:root {
      /* Colores IDHAC */
      --idhac-dorado: #a99563;
      --idhac-dorado-oscuro2: #857c53;
}

.app-sidebar__user-avatar {
      width: 48px;
      background: gray;
      padding: 6px;
}
.app-sidebar__toggle {
      display: -webkit-flex;
      display: -moz-flex;
      display: -ms-flex;
      display: -o-flex;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 15pt;
}
.app-sidebar__toggle::before {
      display: none;
}

.headerRegister,
.header-primary,
.headerUpdate {
      background: var(--idhac-dorado);
      color: #fff;
}

.textcenter {
      text-align: center !important;
}
.textright {
      text-align: right;
}
.textleft {
      text-align: left;
}

.bootstrap-select > .dropdown-toggle {
      border: 1px solid #ccc;
}

/*Estilos login*/
#divLoading {
      position: fixed;
      top: 0;
      width: 100%;
      height: 100%;
      display: none;
      justify-content: center;
      align-items: center;
      background: rgba(254, 254, 255, 0.65);
      z-index: 9999;
}
#divLoading img {
      width: 50px;
      height: 50px;
}
.required {
      color: red;
      font-size: 13pt;
      font-weight: bold;
}

.login-head {
      color: #958d70 !important;
      text-align: center;
      margin-bottom: 30px;
}
.utility {
      text-align: right;
}
.utility a {
      color: #958d70 !important;
      text-decoration: none;
      font-size: 14px;
}
.utility a:hover {
      text-decoration: underline;
}

/* .btn-primary {
      background-color: #958d70 !important;
      color: white;
      border: none;
      padding: 12px;
      width: 100%;
      border-radius: 25px;
      font-size: 16px;
      cursor: pointer;
}
.btn-primary:hover {
      background-color: #0c244a;
} */

/* style portada categoría */
.prevPhoto {
      display: flex;
      justify-content: space-between;
      width: 300px;
      height: 200px;
      border: 1px solid #ccc;
      position: relative;
      cursor: pointer;
      background: url(../images/uploads/portada_categoria.png) no-repeat
            center/cover;
      margin: auto;
}
.prevPortada {
      width: 100%;
      min-width: 200px;
      background: none;
}
.prevPhoto label {
      cursor: pointer;
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 2;
}
.prevPhoto img {
      width: 100%;
      height: 100%;
}
.upimg,
.notblock {
      display: none !important;
}
.errorArchivo {
      font-size: 16px;
      font-family: arial;
      color: #cc0000;
      text-align: center;
      font-weight: bold;
      margin-top: 10px;
}
.delPhoto {
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 50%;
      width: 25px;
      height: 25px;
      background: red;
      position: absolute;
      right: -10px;
      top: -10px;
      z-index: 10;
}
#tbl_list_productos img {
      width: 50px;
}
.imgProductoDelete {
      width: 175px;
}

#imgCategoria {
      text-align: center;
}
#imgCategoria img {
      width: 200px;
      margin: auto;
}

/* Upload fotos*/
#containerImages {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      flex-wrap: wrap;
}
#containerImages > div {
      margin-right: 10px;
      margin-bottom: 8px;
}
.prevImage {
      border: 1px solid #ccc;
      width: 120px;
      height: 148px;
      display: flex;
      justify-content: center;
      align-items: center;
}
.prevImage img {
      width: 100%;
}
.inputUploadfile {
      display: none;
}
.btnUploadfile,
.btnDeleteImage {
      border: 0;
      background-color: #009688;
      text-align: center;
      padding: 2px 3px;
      color: #fff;
      font-size: 9pt;
      cursor: pointer;
      width: 100%;
}
.btnDeleteImage {
      background-color: #dc3545;
}
.prevImage .loading {
      width: 30px;
      height: 30px;
}
#celFotos img {
      width: 150px;
      margin: 10px;
}

.btn-outline-primary {
      color: var(--idhac-dorado) !important;
      border-color: var(--idhac-dorado) !important;
}
.btn-outline-primary:hover {
      color: #fff !important;
      background-color: var(--idhac-dorado) !important;
      border-color: var(--idhac-dorado) !important;
}

/* TIENDA VIRTUAL */
.divmetodpago label,
#divCondiciones {
      width: 100%;
      display: flex;
}
.divmetodpago label input,
#divCondiciones input {
      margin-right: 15px;
}
#divCondiciones a {
      margin-left: 5px;
}
#divCondiciones label {
      margin-bottom: 0;
}

.linkw:hover {
      text-decoration: none;
}
.container-title {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
}
.container-title input {
      border: 1px solid #ccc;
      padding: 4px;
      border-radius: 5px;
      margin-right: 5px;
}
.dflex {
      display: flex;
      justify-content: space-around;
      align-items: center;
}
.ui-datepicker-calendar {
      display: none;
}

.page-content ul li {
      list-style-type: disc;
      margin-left: 15px;
      margin-bottom: 10px;
}
.page-content ol li {
      list-style-type: decimal;
      margin-left: 15px;
      margin-bottom: 10px;
}
.page-content ul li ul li,
.page-content ol li ul li {
      list-style-type: circle;
      list-style-position: inside;
      margin-left: 15px;
}
.page-content ol li ol li,
.page-content ul li ol li {
      list-style-type: lower-latin;
      list-style-position: inside;
      margin-left: 15px;
}

.page-error {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      min-height: calc(100vh - 110px);
      margin-bottom: 0;
}
.page-error h1 {
      margin: 10px;
      color: #dc3545;
      font-size: 42px;
}

.btn-success {
      color: #fff;
      background-color: #353838;
      border-color: #353838;
}
.btn-success:hover {
      color: #fff;
      background-color: #4375aa;
      border-color: #4375aa;
}

.custom-file-upload {
      display: inline-block;
      padding: 10px 20px;
      cursor: pointer;
      background-color: #353838;
      color: white;
      border-radius: 5px;
      font-family: sans-serif;
      font-size: 14px;
      transition: background-color 0.3s ease;
}
.custom-file-upload:hover {
      background-color: #4375aa;
}
input[type="file"] {
      display: none;
}
#file-name {
      margin-left: 10px;
      font-family: sans-serif;
      font-size: 14px;
      color: #333;
}

.warning-message {
      background-color: #fdecea;
      color: #b71c1c;
      border: 1px solid #f5c6cb;
      padding: 15px;
      border-radius: 5px;
      font-family: sans-serif;
      font-size: 14px;
      margin-top: 10px;
}
.warning-message strong {
      display: block;
      margin-bottom: 5px;
}
.warning-message a {
      color: #b71c1c;
      text-decoration: underline;
      font-weight: bold;
}

/* ✅ Textos en blanco en componentes DataTables */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_processing {
      color: white !important;
}

.boton-descarga-documento {
      background-color: #0d6efd;
      color: white;
      font-weight: bold;
      padding: 5px 10px;
      border: none;
      border-radius: 5px;
}
.boton-descarga-documento:focus,
.boton-descarga-documento:active {
      outline: none !important;
      box-shadow: none !important;
      background-color: #0d6efd;
      color: white;
}
.boton-descarga-documento[disabled],
.btn-disabled {
      pointer-events: none;
      opacity: 0.6;
      background-color: #aaa;
      color: #444;
}

@media (max-width: 768px) {
      td.celda-password[data-tipo]:not([data-tipo="Video"])::before,
      td.celda-password[data-tipo]:not([data-tipo="Video"]) {
            display: none !important;
      }
}

/* Responsive Migrante */
.form-pdf-container {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
}
.captura-form,
.pdf-visor {
      flex: 1 1 400px;
      min-width: 300px;
}
.captura-form .field {
      margin-bottom: 1rem;
}
.captura-form label {
      display: block;
      margin-bottom: 0.25rem;
      font-weight: bold;
}
.captura-form input {
      width: 100%;
      padding: 0.5rem;
      box-sizing: border-box;
}
@media (max-width: 768px) {
      .form-pdf-container {
            flex-direction: column;
      }
      .pdf-visor {
            height: 300px;
      }
}

/* Css para los cuadros tipo encuesta */
.contenedor-portal {
      padding: 40px 20px;
}
.texto-portal {
      font-size: 18px;
      line-height: 1.6;
      color: #222;
}
.dorado-bold {
      font-weight: bold;
      color: #a8904c;
}
.cursiva-bold {
      font-style: italic;
      font-weight: bold;
      display: inline-block;
      margin-top: 20px;
}
.aviso-alerta {
      background-color: #353838;
      color: #fff;
      padding: 12px 20px;
      border-radius: 4px;
      text-align: center;
      font-weight: bold;
      margin: 20px 0;
      text-transform: uppercase;
      font-size: 13px;
}
.lista-encuestas {
      display: flex;
      justify-content: center;
      gap: 30px;
      list-style: none;
      padding: 0;
      flex-wrap: wrap;
}
.btn-encuesta {
      display: block;
      text-align: center;
      text-decoration: none;
      background-color: #958d70;
      color: white;
      padding: 25px 20px;
      border-radius: 3px;
      font-weight: bold;
      width: 200px;
      font-size: 16px;
      box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
      transition: background-color 0.3s ease;
}
.btn-encuesta:hover {
      background-color: #958d70;
}
.estado {
      display: block;
      margin-top: 10px;
      padding: 4px 6px;
      font-size: 13px;
      border-radius: 4px;
}
.sin-contestar {
      background-color: #a10000;
      color: white;
}
.contestada {
      background-color: green;
      color: white;
}
.fa-times-circle,
.fa-check-circle {
      margin-right: 4px;
}

/* ====== ESTILOS (aislados para no chocar con tu admin) ====== */
:root {
      --brand: var(--bs-primary, #0e3b5a);
      --brand-dark: #07324b;
      --accent: #b9a774;
      --ok: #198754;
      --bad: #dc3545;
      --muted: #6c757d;
      --card: #fff;
      --chip: #f1f3f5;
      --ring: #e9ecef;
      --shadow: 0 10px 30px rgba(25, 40, 60, 0.08);
}

/* === Migración ancho completo === */
.mg-wrap {
      max-width: none !important;
      width: 100% !important;
}
.app-content .tile .tile-body {
      max-width: none !important;
}
.mg-stepper-row,
.mg-card {
      width: 100%;
}

.mg-card {
      background: var(--card);
      border-radius: 14px;
      box-shadow: var(--shadow);
      padding: 18px;
}
.mg-card.subtle {
      box-shadow: 0 2px 14px rgba(10, 20, 30, 0.06);
}

.mg-stepper {
      display: flex;
      gap: 14px;
      align-items: center;
      flex-wrap: wrap;
}
.mg-step {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
}

.mg-dot {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: #fff;
      background: #adb5bd;
}
.mg-dot.done {
      background: var(--ok);
}
.mg-dot.curr {
      background: var(--brand);
}

.mg-bar {
      height: 4px;
      background: #e9ecef;
      border-radius: 999px;
      position: relative;
      margin: 8px 0 6px;
}
.mg-stepper-row .mg-bar {
      width: 100%;
}
.mg-bar > span {
      position: absolute;
      inset: 0;
      width: 0;
      background: var(--accent);
}

.mg-hint {
      font-size: 0.95rem;
      color: var(--muted);
}
.mg-title {
      font-weight: 700;
}
.mg-muted {
      color: var(--muted);
}

.mg-row {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
}
.mg-spacer {
      flex: 1;
}

.mg-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 0.8rem;
      font-weight: 700;
      background: var(--chip);
}
.mg-chip.ok {
      background: rgba(25, 135, 84, 0.12);
      color: #0a6240;
}
.mg-chip.bad {
      background: rgba(220, 53, 69, 0.12);
      color: #7a1320;
}
.mg-chip.wip {
      background: rgba(14, 59, 90, 0.12);
      color: var(--brand);
}

.mg-btn {
      border: 0;
      border-radius: 12px;
      padding: 10px 14px;
      font-weight: 700;
      cursor: pointer;
}
.mg-btn.primary {
      background: #958d70 !important;
      color: #fff;
}
.mg-btn.primary:hover {
      background: #7f785f !important;
}
.mg-btn.ghost {
      background: #f1f3f5;
}
.mg-btn.link {
      background: transparent;
      color: var(--brand);
      text-decoration: underline;
      padding: 0;
}
.mg-btn:disabled {
      opacity: 0.55;
      cursor: not-allowed;
}

.mg-input {
      padding: 12px;
      border: 1px solid var(--ring);
      border-radius: 12px;
      outline: none;
      min-width: 180px;
      flex: 1 1 0;
      box-sizing: border-box;
}
.mg-input:focus {
      border-color: #c7d2df;
      box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.08);
}

.mg-small {
      font-size: 0.9rem;
}
.mg-sep {
      border: none;
      border-top: 1px dashed #e9ecef;
      margin: 12px 0;
}

iframe.mg-view {
      width: 100%;
      height: 230px;
      border: 1px solid #e9ecef;
      border-radius: 12px;
}

.mg-footer {
      position: sticky;
      bottom: 0;
      background: #f8f9fa;
      border-top: 1px solid #e9ecef;
      margin-top: 18px;
}
.mg-footer .inner {
      padding: 12px 0;
      display: flex;
      gap: 12px;
      align-items: center;
}

.mg-toast {
      position: fixed;
      right: 16px;
      bottom: 16px;
      background: #212529;
      color: #fff;
      padding: 10px 14px;
      border-radius: 12px;
      opacity: 0;
      transform: translateY(8px);
      transition: 0.25s;
      z-index: 10;
}
.mg-toast.show {
      opacity: 1;
      transform: none;
}

.mg-stepper-row {
      margin-bottom: 16px;
}
.mg-form-row,
.mg-grid-4 {
      margin-top: 24px;
}

.mg-grid-4 {
      display: grid;
      gap: 16px;
}
@media (min-width: 1200px) {
      .mg-grid-4 {
            grid-template-columns: repeat(4, 1fr);
      }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
      .mg-grid-4 {
            grid-template-columns: repeat(2, 1fr);
      }
}
@media (max-width: 991.98px) {
      .mg-grid-4 {
            grid-template-columns: 1fr;
      }
}

/* Visores PDF a todo lo ancho y ocultos hasta tener src */
.mg-view {
      width: 100% !important;
      min-height: 420px;
      border: 1px solid #eee;
      border-radius: 10px;
      display: none;
}

/* === Sidebar: mejor espaciado de iconos en submenú === */
.treeview-menu .treeview-item {
      display: inline-flex;
      align-items: center;
      gap: 10px; /* separa icono y texto */
}
.treeview-menu .treeview-item i {
      width: 18px;
      min-width: 18px;
      text-align: center;
      margin-right: 6px; /* fallback si gap no aplica */
}

/* ==== Sidebar: hover/active limpio para Migración ==== */
:root {
      --side-hover: rgba(255, 255, 255, 0.06);
      --side-active: rgba(255, 255, 255, 0.12);
}

/* Item padre (fila "Migración") */
.app-menu__item:hover {
      background: var(--side-hover) !important;
}

/* Submenú */
.treeview-menu {
      background: transparent !important;
      padding: 6px 0 10px 0;
}

/* Estilo base del item del submenú */
.treeview-menu .treeview-item {
      display: inline-flex;
      align-items: center;
      gap: 10px; /* separa icono y texto */
      padding: 8px 14px 8px 22px;
      margin: 2px 10px;
      color: #f1f1f1; /* texto claro sobre sidebar oscuro */
      background: transparent; /* sin “pastilla” */
      border-left: 3px solid transparent;
      border-radius: 6px; /* esquinas suaves si se pinta el fondo */
      transition: background 0.18s ease, color 0.18s ease,
            border-color 0.18s ease;
}

/* Ícono del item mantiene el color del texto */
.treeview-menu .treeview-item i {
      width: 18px;
      min-width: 18px;
      text-align: center;
      color: currentColor;
      opacity: 0.9;
}

/* Hover: sutil, con acento dorado a la izquierda */
.treeview-menu .treeview-item:hover {
      background: var(--side-hover);
      border-left-color: var(--idhac-dorado);
      color: #ffffff;
}

/* Activo/enfocado: un poco más marcado */
.treeview-menu .treeview-item.active,
.treeview-menu .treeview-item:focus,
.treeview-menu .treeview-item:focus-visible {
      background: var(--side-active);
      border-left-color: var(--idhac-dorado);
      color: #ffffff;
      outline: none;
}

/* Si tu tema pinta “selected” de otra forma, fuerza aquí: */
.treeview.is-expanded .treeview-menu .treeview-item.selected {
      background: var(--side-active) !important;
      border-left-color: var(--idhac-dorado) !important;
      color: #ffffff !important;
}
