/* =========================================================================
   Panther7 · sistema de diseño del panel administrativo
   Se carga DESPUÉS de bootstrap/style/responsive y reemplaza los estilos
   sueltos que cada pantalla traía. Un solo lugar para colores, tipografía,
   tablas, formularios, botones, estados y el inicio de sesión.
   ========================================================================= */

/* ---------- Tipografías (alojadas en el sitio) -------------------------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/panther/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/panther/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/panther/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/panther/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}


/* El tema antiguo pedía Work Sans, Nunito y Poppins. Se apuntan a IBM Plex Sans
   para que ningún estilo suelto vuelva a caer en una tipografía distinta. */
@font-face { font-family: "Work Sans"; src: url("../fonts/panther/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 100 450; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/panther/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 451 550; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/panther/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 551 900; font-display: swap; }
@font-face { font-family: "work-Sans"; src: url("../fonts/panther/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 100 450; font-display: swap; }
@font-face { font-family: "work-Sans"; src: url("../fonts/panther/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 451 550; font-display: swap; }
@font-face { font-family: "work-Sans"; src: url("../fonts/panther/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 551 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/panther/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 100 450; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/panther/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 451 550; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/panther/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 551 900; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/panther/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 100 450; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/panther/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 451 550; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/panther/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 551 900; font-display: swap; }

/* ---------- Tokens ------------------------------------------------------ */
:root {
  /* Pelaje: menú lateral e inicio de sesión */
  --p-coat: #0c0e13;
  --p-coat-2: #141821;
  --p-coat-3: #1d2330;
  --p-on-coat: rgba(255, 255, 255, .74);
  --p-on-coat-dim: rgba(255, 255, 255, .46);

  /* Ojo: único acento de marca */
  --p-eye: #e3a82b;
  --p-eye-bright: #f0c35a;
  --p-eye-ink: #3a2700;
  --p-eye-soft: #fff3d4;

  /* Superficies y texto del área de trabajo */
  --p-bg: #f4f5f7;
  --p-card: #ffffff;
  --p-line: #e3e6ec;
  --p-line-strong: #cdd2dd;
  --p-ink: #14171f;
  --p-ink-2: #3c4254;
  --p-muted: #667085;

  /* Estados (siempre con ícono o texto, nunca solo color) */
  --p-ok: #17704a;      --p-ok-bg: #e2f5ea;
  --p-warn: #7a4f00;    --p-warn-bg: #fff1cf;
  --p-info: #2a4db0;    --p-info-bg: #e5ecff;
  --p-bad: #ab2d27;     --p-bad-bg: #fde7e5;
  --p-neutral: #475066; --p-neutral-bg: #e9ecf1;

  /* Forma */
  --p-r-card: 14px;
  --p-r-control: 8px;
  --p-r-pill: 999px;

  --p-font-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --p-font-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
}

/* ---------- Base -------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--p-font-ui);
  font-size: 14px;
  line-height: 1.5;
  color: var(--p-ink);
  background: var(--p-bg);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--p-font-display);
  font-weight: 600;
  color: var(--p-ink);
  letter-spacing: -.01em;
  text-transform: none;
}
p, li, td, th, label, input, select, textarea, button, .btn { font-family: var(--p-font-ui); }
a { color: #1f3fa0; }
a:hover { color: #14298a; }
::selection { background: var(--p-eye-soft); color: var(--p-ink); }
:focus-visible { outline: 2px solid #b8800f; outline-offset: 2px; }
.text-muted { color: var(--p-muted) !important; }

/* ---------- Compatibilidad con clases de Bootstrap 5 --------------------
   Las pantallas usan me-2, text-end, form-select, btn-close... pero el tema
   trae Bootstrap 4.1. Estas reglas hacen que funcionen sin reescribir vistas. */
.me-1 { margin-right: .25rem !important; } .me-2 { margin-right: .5rem !important; }
.me-3 { margin-right: 1rem !important; }   .me-4 { margin-right: 1.5rem !important; }
.me-5 { margin-right: 3rem !important; }
.ms-1 { margin-left: .25rem !important; }  .ms-2 { margin-left: .5rem !important; }
.ms-3 { margin-left: 1rem !important; }    .ms-auto { margin-left: auto !important; }
.me-auto { margin-right: auto !important; }
.ps-1 { padding-left: .25rem !important; } .ps-2 { padding-left: .5rem !important; } .ps-3 { padding-left: 1rem !important; }
.pe-1 { padding-right: .25rem !important; } .pe-2 { padding-right: .5rem !important; } .pe-3 { padding-right: 1rem !important; }
.text-end { text-align: right !important; }
.text-start { text-align: left !important; }
.float-end { float: right !important; } .float-start { float: left !important; }
.fw-normal { font-weight: 400 !important; } .fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; } .fw-bold { font-weight: 700 !important; }
.gap-1 { gap: .25rem !important; } .gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }   .gap-4 { gap: 1.5rem !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.row.g-1, .row.g-2, .row.g-3, .row.g-4, .row.g-5 { margin-left: calc(var(--p-g) / -2); margin-right: calc(var(--p-g) / -2); }
.row.g-1 { --p-g: .25rem; } .row.g-2 { --p-g: .5rem; } .row.g-3 { --p-g: 1rem; }
.row.g-4 { --p-g: 1.5rem; } .row.g-5 { --p-g: 3rem; }
.row.g-1 > *, .row.g-2 > *, .row.g-3 > *, .row.g-4 > *, .row.g-5 > * {
  padding-left: calc(var(--p-g) / 2); padding-right: calc(var(--p-g) / 2); margin-top: var(--p-g);
}
.btn-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23667085'%3E%3Cpath d='M3.7 2.3 8 6.6l4.3-4.3 1.4 1.4L9.4 8l4.3 4.3-1.4 1.4L8 9.4l-4.3 4.3-1.4-1.4L6.6 8 2.3 3.7z'/%3E%3C/svg%3E") center / 12px no-repeat;
  opacity: .7; cursor: pointer;
}
.btn-close:hover { opacity: 1; background-color: rgba(20, 23, 31, .06); }
.btn-close-white { filter: invert(1); }
.form-select { /* mismo aspecto que .custom-select, ver más abajo */
  display: block; width: 100%;
}

/* ---------- Estructura general ----------------------------------------- */
.page-wrapper .page-body-wrapper .page-body {
  background: var(--p-bg);
  padding: 0 24px 24px;
}
.page-wrapper .page-body-wrapper .page-body .page-header {
  background: transparent; box-shadow: none; padding: 28px 0 20px; margin: 0;
}
.page-wrapper .page-body-wrapper .page-body .page-header .page-header-left h3 {
  font-family: var(--p-font-display);
  font-size: 28px; font-weight: 650; line-height: 1.15; letter-spacing: -.02em;
  color: var(--p-ink); margin: 0 0 6px; text-transform: none;
}
.page-wrapper .page-body-wrapper .page-body .page-header .page-header-left h3 small { display: none; }
.page-wrapper .page-body-wrapper .page-body .page-header .page-header-left { display: block; }
.page-wrapper .page-body-wrapper .page-body .page-header .page-header-left h3 { display: block; padding: 0; }
.page-wrapper .page-body-wrapper .page-body .page-header .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; float: none; }
.page-wrapper .page-body-wrapper .page-body .page-header .breadcrumb {
  background: transparent; padding: 0; margin: 0; font-size: 12.5px; color: var(--p-muted);
}
.page-wrapper .page-body-wrapper .page-body .page-header .breadcrumb .breadcrumb-item,
.page-wrapper .page-body-wrapper .page-body .page-header .breadcrumb .breadcrumb-item a { color: var(--p-muted); }
.page-wrapper .page-body-wrapper .page-body .page-header .breadcrumb .breadcrumb-item.active { color: var(--p-ink-2); font-weight: 500; }
.page-wrapper .page-body-wrapper .page-body .page-header .breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--p-line-strong); content: "/"; }
.page-wrapper .page-body-wrapper .page-body .page-header .breadcrumb svg { width: 14px; height: 14px; stroke-width: 2; }
.page-wrapper .page-body-wrapper .footer {
  background: transparent; border-top: 1px solid var(--p-line); color: var(--p-muted); font-size: 12.5px; box-shadow: none;
}

/* ---------- Encabezado superior ---------------------------------------- */
.page-wrapper .page-main-header {
  background: var(--p-card);
  border-bottom: 1px solid var(--p-line);
  box-shadow: none;
}
.page-wrapper .page-main-header .main-header-right .nav-right .nav-menus > li > a,
.page-wrapper .page-main-header .main-header-right .nav-right .nav-menus > li > a svg { color: var(--p-ink-2); }
.page-wrapper .page-main-header .main-header-right .nav-right .nav-menus > li > a svg { stroke-width: 1.8; width: 20px; height: 20px; }
.page-wrapper .page-main-header .main-header-right .nav-right .nav-menus > li > a:hover svg { color: var(--p-ink); }
.page-wrapper .page-main-header .main-header-right .profile-dropdown {
  border: 1px solid var(--p-line); border-radius: 12px; padding: 8px;
  box-shadow: 0 12px 32px rgba(12, 14, 19, .12);
}
.page-wrapper .page-main-header .main-header-right .profile-dropdown li a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  font-size: 13.5px; color: var(--p-ink-2);
}
.page-wrapper .page-main-header .main-header-right .profile-dropdown li a:hover { background: var(--p-bg); color: var(--p-ink); }
.page-wrapper .page-main-header .main-header-right .profile-dropdown li a svg { width: 16px; height: 16px; }
.page-wrapper .page-main-header .main-header-right .img-50 { width: 38px; height: 38px; object-fit: cover; }

/* ---------- Menú lateral ------------------------------------------------ */
.page-wrapper .page-body-wrapper .page-sidebar {
  background: var(--p-coat);
  box-shadow: none;
  border-right: 1px solid rgba(255, 255, 255, .04);
}
.page-wrapper .page-body-wrapper .page-sidebar .main-header-left {
  background: transparent; box-shadow: none; padding: 0 20px;
  border-bottom: 1px solid var(--p-coat-line, rgba(255, 255, 255, .07));
}
.page-wrapper .page-body-wrapper .page-sidebar .logo-wrapper { background: transparent; padding: 0; text-align: left; width: 100%; }
.page-wrapper .page-body-wrapper .page-sidebar .logo-wrapper a { display: inline-flex; align-items: center; gap: 12px; }
.page-wrapper .page-body-wrapper .page-sidebar .logo-wrapper img { height: 38px; width: auto; max-height: none; transform: none; }
.page-wrapper .page-body-wrapper .page-sidebar .logo-wrapper .brand-name {
  font-family: var(--p-font-display); font-weight: 650; font-size: 19px; letter-spacing: -.01em; color: #fff;
}
.page-wrapper .page-body-wrapper .page-sidebar .sidebar { background: transparent; height: calc(100vh - 80px); }
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-user {
  padding: 18px 20px 16px; margin: 0; text-align: left !important; border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-user h6 {
  color: #fff; font-family: var(--p-font-ui); font-size: 14px; font-weight: 600; letter-spacing: 0; margin: 0 0 2px !important;
}
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-user p { color: var(--p-on-coat-dim); font-size: 12px !important; margin: 0; }
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-user i { color: var(--p-eye); margin-right: 6px; }

.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu { padding: 14px 12px 28px; margin: 0; list-style: none; }
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu > li { margin: 0 0 2px; animation: none; opacity: 1; }
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu > li > a.sidebar-header,
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu .sidebar-header {
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 10px 12px; border-radius: 9px;
  color: var(--p-on-coat); font-size: 14px; font-weight: 500; text-decoration: none;
  transform: none; box-shadow: none; background: transparent;
  transition: background .15s ease, color .15s ease;
}
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu .sidebar-header:hover {
  background: rgba(255, 255, 255, .06); color: #fff; padding-left: 12px; transform: none;
}
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu .sidebar-header.active {
  background: rgba(227, 168, 43, .14); color: #fff; box-shadow: none;
}
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu .sidebar-header svg {
  width: 18px; height: 18px; margin: 0; stroke-width: 1.8; flex: none; color: var(--p-on-coat-dim); vertical-align: middle;
}
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu .sidebar-header:hover svg { color: #fff; }
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu .sidebar-header.active svg { color: var(--p-eye-bright); }
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu .sidebar-header span { flex: 1; font-size: 14px; font-weight: 500; }
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu .sidebar-header .fa-angle-right {
  margin: 0; color: var(--p-on-coat-dim); font-size: 13px; transition: transform .2s ease;
}
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu .sidebar-header[aria-expanded="true"] .fa-angle-right { transform: rotate(90deg); }

.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu .sidebar-submenu {
  list-style: none; margin: 2px 0 6px 21px; padding: 0 0 0 14px; border-left: 1px solid rgba(255, 255, 255, .09);
}
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu .sidebar-submenu li { margin: 0; }
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu .sidebar-submenu li a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px;
  color: var(--p-on-coat-dim); font-size: 13.5px; font-weight: 400; text-decoration: none; transform: none;
  transition: background .15s ease, color .15s ease;
}
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu .sidebar-submenu li a:hover {
  background: rgba(255, 255, 255, .05); color: #fff; padding-left: 10px; transform: none;
}
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu .sidebar-submenu li a.active {
  background: transparent; color: var(--p-eye-bright); box-shadow: none; font-weight: 500;
}
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu .sidebar-submenu li a i { display: none; }
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu .menu-badge {
  margin-left: auto; background: var(--p-eye); color: var(--p-eye-ink);
  font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 7px; border-radius: var(--p-r-pill);
}
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 6px; }

/* Texto normal en frases: sin mayúsculas forzadas */
.page-wrapper .page-sidebar .sidebar-user h6,
.page-wrapper .page-sidebar .sidebar-user p,
.page-wrapper .page-sidebar .sidebar-menu span,
.page-wrapper .page-sidebar .sidebar-menu a,
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-user h6,
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-user p,
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu span,
.page-wrapper .page-body-wrapper .page-sidebar .sidebar-menu a,
.page-body .card .card-header h5, .page-body .card .card-header h6, .page-body .card .card-header .card-title,
.page-body .card h5, .page-body .card h6 { text-transform: none !important; }

/* ---------- Tarjetas ---------------------------------------------------- */
.card {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: var(--p-r-card);
  box-shadow: none;
  margin-bottom: 20px;
}
.card.shadow-sm, .card.shadow { box-shadow: none !important; }
.card > .card-header, .card-header {
  background: transparent; border-bottom: 1px solid var(--p-line);
  padding: 16px 22px; border-radius: var(--p-r-card) var(--p-r-card) 0 0;
}
.card-header h5, .card-header h6, .card-header .card-title {
  font-family: var(--p-font-display); font-size: 17px !important; font-weight: 600; margin: 0; color: var(--p-ink); text-transform: none;
}
.card-header h5 i, .card-header h6 i { color: var(--p-muted); margin-right: 8px; }
.card-body { padding: 22px; }
.card-footer { background: transparent; border-top: 1px solid var(--p-line); padding: 14px 22px; border-radius: 0 0 var(--p-r-card) var(--p-r-card); }

/* Íconos de encabezado: neutros, sin los colores sueltos del tema */
.card-header .text-primary, .card-header .text-success, .card-header .text-info, .card-header .text-warning, .card-header .text-danger { color: var(--p-muted) !important; }
.btn-outline-primary, .btn-outline-info, .btn-outline-success {
  background: #fff; border: 1px solid var(--p-line-strong); color: var(--p-ink-2);
}
.btn-outline-primary:hover, .btn-outline-info:hover, .btn-outline-success:hover { background: var(--p-bg); border-color: #aeb5c4; color: var(--p-ink); }

/* Filtros: una franja tranquila arriba de la tabla */
.filter-card {
  background: #fafbfc; border: 0; border-bottom: 1px solid var(--p-line); border-radius: var(--p-r-card) var(--p-r-card) 0 0;
  padding: 18px 22px 20px; margin: 0; box-shadow: none;
}
.card > .filter-card:first-child, .filter-card:first-child { border-radius: var(--p-r-card) var(--p-r-card) 0 0; }
.filter-card label, .form-card label, .form-group > label, .theme-form label {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--p-ink-2); margin: 0 0 6px;
}
.filter-card label i, .form-group > label i, .form-card label i { color: var(--p-muted); font-size: 12px; margin-right: 4px; }

/* Bloques de formulario */
.form-card { background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-r-card); box-shadow: none; overflow: hidden; margin-bottom: 20px; }
.form-card .card-header { background: #fafbfc; border-radius: 0; }
.form-card .card-header h5 i { color: var(--p-eye); }
.form-section { padding: 4px 0 8px; margin: 0 0 18px; }
.form-section-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--p-font-display); font-size: 15px; font-weight: 600; color: var(--p-ink);
  margin: 0 0 14px; padding: 0 0 10px; border-bottom: 1px solid var(--p-line);
}
.form-section-title i { color: var(--p-muted); font-size: 14px; }

/* Cajas de información */
.info-box, .info-section, .detail-card, .summary-card, .stat-card {
  background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-r-card);
  box-shadow: none; padding: 18px 20px;
}
.info-box { background: #fafbfc; }
.gradient-card { background: var(--p-coat); color: #fff; border: 0; border-radius: var(--p-r-card); box-shadow: none; }
.gradient-card h1, .gradient-card h2, .gradient-card h3, .gradient-card h4, .gradient-card h5, .gradient-card h6 { color: #fff; }

/* ---------- Tablas ------------------------------------------------------ */
.table { color: var(--p-ink); font-size: 14px; margin-bottom: 0; }
.table thead th,
.table thead.thead-light th {
  background: #f7f8fa; color: var(--p-muted);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
  border: 0; border-bottom: 1px solid var(--p-line-strong); padding: 12px 16px; white-space: nowrap; vertical-align: middle;
}
.table td, .table tbody td { padding: 12px 16px; border-top: 1px solid var(--p-line); vertical-align: middle; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover, .table-hover tbody tr:hover { background: #f9fafc; transform: none; box-shadow: none; }
.table tbody tr:first-child td { border-top: 0; }
.table .amount-cell, .amount-cell { font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .text-center .badge-status { margin: 0 auto; }
.table-responsive { border-radius: 0 0 var(--p-r-card) var(--p-r-card); }
.card-body.p-0 .table-responsive { border-radius: 0 0 var(--p-r-card) var(--p-r-card); }

/* El pie repite los encabezados: se oculta */
.table tfoot { display: none; }

/* DataTables */
.dataTables_wrapper { padding: 0; font-size: 13.5px; color: var(--p-ink-2); }
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { padding: 14px 22px 4px; }
.dataTables_wrapper .dataTables_info { padding: 16px 22px; color: var(--p-muted); font-size: 13px; }
.dataTables_wrapper .dataTables_paginate { padding: 12px 22px; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  height: 36px; border: 1px solid var(--p-line-strong); border-radius: var(--p-r-control); padding: 0 12px; background: #fff; margin-left: 8px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: 1px solid transparent !important; border-radius: 8px !important; padding: 6px 12px !important; margin: 0 2px !important;
  color: var(--p-ink-2) !important; background: transparent !important; box-shadow: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--p-bg) !important; color: var(--p-ink) !important; border-color: var(--p-line) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--p-ink) !important; color: #fff !important; border-color: var(--p-ink) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled { opacity: .45; }
table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc { background-color: #f7f8fa; }
table.dataTable.no-footer { border-bottom: 0; }

/* Acciones por fila */
.action-icons, td .action-icons { display: inline-flex; align-items: center; gap: 6px; }
.action-icons a, .action-icons button, .btn-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border-radius: 8px; border: 1px solid var(--p-line);
  background: #fff; color: var(--p-ink-2); font-size: 14px; text-decoration: none; cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.action-icons a:hover, .action-icons button:hover, .btn-action:hover { background: var(--p-bg); border-color: var(--p-line-strong); color: var(--p-ink); transform: none; box-shadow: none; }
.action-icons a.action-delete:hover, .action-delete:hover { background: var(--p-bad-bg); border-color: #f2bcb8; color: var(--p-bad); }
.action-icons a.action-edit:hover, .action-edit:hover { background: var(--p-info-bg); border-color: #bccaf6; color: var(--p-info); }
.action-icons a.action-token:hover, .action-token:hover, .action-icons a.action-invest:hover, .action-invest:hover { background: var(--p-eye-soft); border-color: #f0d38b; color: var(--p-warn); }
.actions-header { text-align: center; }

/* Botón de acción cuadrado dentro de tablas (anula el azul de btn-info) */
.btn.btn-action, .btn-info.btn-action, .btn-sm.btn-action {
  background: #fff !important; border: 1px solid var(--p-line) !important; color: var(--p-ink-2) !important; width: 32px; height: 32px; padding: 0;
}
.btn.btn-action:hover, .btn-info.btn-action:hover { background: var(--p-info-bg) !important; border-color: #bccaf6 !important; color: var(--p-info) !important; }

/* ---------- Formularios ------------------------------------------------- */
.form-control, .custom-select, .form-select, select.form-control, .input-group-text {
  height: 40px; padding: 8px 12px; font-size: 14px; line-height: 1.4; color: var(--p-ink);
  background-color: #fff; border: 1px solid var(--p-line-strong); border-radius: var(--p-r-control);
  box-shadow: none; transition: border-color .12s ease, box-shadow .12s ease;
}
textarea.form-control { height: auto; min-height: 90px; }
.form-control::placeholder { color: #9aa1b2; }
.form-control:hover, .custom-select:hover, .form-select:hover { border-color: #aeb5c4; }
.form-control:focus, .custom-select:focus, .form-select:focus {
  border-color: var(--p-ink-2); box-shadow: 0 0 0 3px rgba(227, 168, 43, .30); outline: 0; background-color: #fff;
}
.form-control:disabled, .form-control[readonly] { background-color: #f4f5f7; color: var(--p-muted); }
.custom-select, .form-select {
  -webkit-appearance: none; appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
}
.input-group-text { background: #f4f5f7; color: var(--p-muted); }
.form-group { margin-bottom: 16px; }
.form-text, small.form-text { color: var(--p-muted); font-size: 12.5px; }
.invalid-feedback { font-size: 12.5px; color: var(--p-bad); }
.form-control.is-invalid { border-color: var(--p-bad); }
.checkbox label, .custom-control-label { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--p-ink-2); }

/* Requisitos de contraseña */
.password-requirements { font-size: 12.5px; color: var(--p-muted); }
.password-requirements .valid, .password-requirements .valid i { color: var(--p-ok); }
.password-requirements .invalid, .password-requirements .invalid i { color: var(--p-bad); }

/* ---------- Botones ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.2;
  padding: 10px 18px; border-radius: var(--p-r-control); border: 1px solid transparent;
  box-shadow: none; transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.btn:hover { transform: none; box-shadow: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn i, .btn svg { margin: 0; }

/* Primario: tinta oscura */
.btn-primary, .btn-search, .btn-submit, .btn-procesar, .btn-login, .btn-export {
  background: var(--p-ink); border: 1px solid var(--p-ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0;
  padding: 10px 18px; border-radius: var(--p-r-control); box-shadow: none; cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.btn-primary:hover, .btn-primary:focus, .btn-search:hover, .btn-submit:hover, .btn-procesar:hover, .btn-login:hover, .btn-export:hover,
.btn-primary:not(:disabled):not(.disabled):active {
  background: var(--p-coat-3); border-color: var(--p-coat-3); color: #fff; transform: none; box-shadow: none;
}
.btn-search { width: 100%; margin-top: 0; height: 40px; }
.filter-card .d-flex.align-items-end .btn-search, .filter-card .col-md-2 .btn-search { margin-top: 0; }
.btn-search i, .btn-submit i, .btn-procesar i, .btn-export i { margin: 0; }
.btn-primary:disabled, .btn-search:disabled, .btn-submit:disabled, .btn-login:disabled { opacity: .6; cursor: not-allowed; }

/* Crear: el único botón dorado */
.btn-add, .btn-warning {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--p-eye); border: 1px solid var(--p-eye); color: var(--p-eye-ink);
  font-size: 14px; font-weight: 600; text-transform: none; padding: 10px 18px; border-radius: var(--p-r-control);
  box-shadow: none; text-decoration: none; cursor: pointer;
}
.btn-add:hover, .btn-warning:hover { background: var(--p-eye-bright); border-color: var(--p-eye-bright); color: var(--p-eye-ink); transform: none; box-shadow: none; }

/* Secundario */
.btn-secondary, .btn-back, .btn-cancel, .btn-light, .btn-outline-secondary, .btn-explorer {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; border: 1px solid var(--p-line-strong); color: var(--p-ink-2);
  font-size: 14px; font-weight: 600; text-transform: none; padding: 10px 18px; border-radius: var(--p-r-control);
  box-shadow: none; text-decoration: none; cursor: pointer;
}
.btn-secondary:hover, .btn-back:hover, .btn-cancel:hover, .btn-light:hover, .btn-outline-secondary:hover, .btn-explorer:hover {
  background: var(--p-bg); border-color: #aeb5c4; color: var(--p-ink); transform: none; box-shadow: none;
}
.back-container { margin: 0 0 16px; }

/* Éxito / peligro */
.btn-success, .btn-gradient-success {
  background: var(--p-ok); border: 1px solid var(--p-ok); color: #fff; box-shadow: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: var(--p-r-control); cursor: pointer;
}
.btn-success:hover, .btn-gradient-success:hover { background: #0f5a3a; border-color: #0f5a3a; color: #fff; transform: none; box-shadow: none; }
.btn-danger, .btn-reject, .btn-gradient-danger {
  background: #fff; border: 1px solid #e9b3af; color: var(--p-bad); box-shadow: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: var(--p-r-control); cursor: pointer;
}
.btn-danger:hover, .btn-reject:hover, .btn-gradient-danger:hover { background: var(--p-bad); border-color: var(--p-bad); color: #fff; transform: none; box-shadow: none; }
.btn-info { background: var(--p-info); border: 1px solid var(--p-info); color: #fff; }
.btn-info:hover { background: #1f3b8a; border-color: #1f3b8a; color: #fff; }

/* ---------- Estados ----------------------------------------------------- */
.badge-status, .badge-type, .badge-id, .badge-admin, .badge-default, .badge-fijo, .badge-porcentual,
.badge-aprobado, .badge-proceso, .badge-enproceso, .badge-pendiente, .badge-iniciado, .badge-revision,
.badge-rechazado, .badge-finalizado, .badge-deposito, .badge-retiro, .badge-inversion, .file-type-badge, .type-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 9px; border-radius: var(--p-r-pill);
  font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none;
  background: var(--p-neutral-bg); color: var(--p-neutral); border: 0; white-space: nowrap;
}
.badge-status::before, .badge-aprobado::before, .badge-proceso::before, .badge-enproceso::before, .badge-pendiente::before,
.badge-iniciado::before, .badge-revision::before, .badge-rechazado::before, .badge-finalizado::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none;
}
.badge-aprobado, .badge-deposito { background: var(--p-ok-bg); color: var(--p-ok); }
.badge-proceso, .badge-enproceso, .badge-pendiente, .badge-iniciado, .badge-retiro { background: var(--p-warn-bg); color: var(--p-warn); }
.badge-revision, .badge-inversion { background: var(--p-info-bg); color: var(--p-info); }
.badge-rechazado { background: var(--p-bad-bg); color: var(--p-bad); }
.badge-finalizado, .badge-default, .badge-id, .badge-fijo, .badge-porcentual, .badge-admin, .badge-type { background: var(--p-neutral-bg); color: var(--p-neutral); }
.badge { font-family: var(--p-font-ui); font-weight: 600; letter-spacing: 0; text-transform: none; }
.badge.bg-success { background: var(--p-ok-bg) !important; color: var(--p-ok); }
.badge.bg-danger { background: var(--p-bad-bg) !important; color: var(--p-bad); }
.badge.bg-warning { background: var(--p-warn-bg) !important; color: var(--p-warn); }
.badge.bg-info, .badge.bg-primary { background: var(--p-info-bg) !important; color: var(--p-info); }
.badge.bg-secondary { background: var(--p-neutral-bg) !important; color: var(--p-neutral); }
.hash-link { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--p-info); }

/* ---------- Avisos ------------------------------------------------------ */
.alert, .alert-custom {
  position: relative; border: 1px solid transparent; border-radius: 10px;
  padding: 12px 44px 12px 16px; font-size: 14px; box-shadow: none; animation: none;
}
.alert i, .alert-custom i { margin-right: 6px; }
.alert-success, .alert-success-custom { background: var(--p-ok-bg); border-color: #bfe6cf; color: #0f5a3a; }
.alert-danger, .alert-danger-custom { background: var(--p-bad-bg); border-color: #f4c6c2; color: #8a231e; }
.alert-warning { background: var(--p-warn-bg); border-color: #f1d9a0; color: var(--p-warn); }
.alert-info { background: var(--p-info-bg); border-color: #c6d3f7; color: #223f95; }
.alert-dismissible .close { padding: 12px 16px; color: inherit; opacity: .6; }

/* ---------- Modales, pestañas, paginación, menús ------------------------ */
.modal-content { border: 1px solid var(--p-line); border-radius: 16px; box-shadow: 0 24px 64px rgba(12, 14, 19, .22); overflow: hidden; }
.modal-header { background: #fafbfc; border-bottom: 1px solid var(--p-line); padding: 16px 22px; }
.modal-title { font-family: var(--p-font-display); font-size: 18px; font-weight: 600; }
.modal-footer { border-top: 1px solid var(--p-line); padding: 14px 22px; }
.modal-backdrop.show { opacity: .5; }
.nav-tabs { border-bottom: 1px solid var(--p-line); }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--p-muted); font-weight: 500; padding: 10px 16px; border-radius: 0; }
.nav-tabs .nav-link:hover { color: var(--p-ink); border-color: var(--p-line-strong); }
.nav-tabs .nav-link.active { color: var(--p-ink); border-color: var(--p-eye); background: transparent; }
.page-link { color: var(--p-ink-2); border: 1px solid var(--p-line); margin: 0 2px; border-radius: 8px !important; }
.page-item.active .page-link { background: var(--p-ink); border-color: var(--p-ink); color: #fff; }
.dropdown-menu { border: 1px solid var(--p-line); border-radius: 12px; padding: 6px; box-shadow: 0 12px 32px rgba(12, 14, 19, .12); }
.dropdown-item { border-radius: 8px; padding: 8px 12px; font-size: 13.5px; }
.dropdown-item:hover { background: var(--p-bg); }
.progress { background: var(--p-neutral-bg); border-radius: var(--p-r-pill); height: 8px; }
.progress-bar { background: var(--p-ink); }

/* ---------- Tablero ----------------------------------------------------- */
.section-head { display: flex; align-items: center; gap: 16px; margin: 0 0 4px; }
.section-head::after { content: ""; flex: 1; height: 1px; background: var(--p-line); }
.section-title {
  font-family: var(--p-font-display); font-size: 19px; font-weight: 600; letter-spacing: -.015em;
  color: var(--p-ink); margin: 0; text-transform: none;
}

/* Indicador: ícono en un chip, etiqueta, cifra */
.card.kpi { margin-bottom: 16px; }
.card.kpi .card-body { padding: 0; }
.kpi-body {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto;
  column-gap: 12px; row-gap: 2px; align-items: center;
  padding: 16px 18px 17px; color: inherit; text-decoration: none; border-radius: var(--p-r-card);
}
a.kpi-body { transition: background .12s ease; }
a.kpi-body:hover { background: #fafbfc; color: inherit; text-decoration: none; }
.kpi-text { display: contents; }
.kpi-label { grid-column: 1; grid-row: 1; font-size: 13px; font-weight: 500; color: var(--p-muted); line-height: 1.3; }
.kpi-icon {
  grid-column: 2; grid-row: 1; justify-self: end;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; background: var(--p-neutral-bg); color: var(--p-ink);
}
.kpi-value {
  grid-column: 1 / -1; grid-row: 2; margin-top: 6px;
  font-family: var(--p-font-display); font-size: 25px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15;
  color: var(--p-ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kpi-note { grid-column: 1 / -1; grid-row: 3; font-size: 12.5px; color: var(--p-muted); }
.kpi-icon svg { width: 18px; height: 18px; stroke-width: 1.8; }
.kpi--ok .kpi-icon { background: var(--p-ok-bg); color: var(--p-ok); }
.kpi--eye .kpi-icon { background: var(--p-eye-soft); color: var(--p-warn); }
.kpi--bad .kpi-icon { background: var(--p-bad-bg); color: var(--p-bad); }
.kpi--info .kpi-icon { background: var(--p-info-bg); color: var(--p-info); }
.kpi--neutral .kpi-icon { background: var(--p-neutral-bg); color: var(--p-neutral); }

.chart-container { position: relative; height: 300px; }
.no-data-message { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 200px; color: var(--p-muted); text-align: center; }
.no-data-message i { font-size: 28px; opacity: .5; }
.opacity-50 { opacity: .5; }
.btn-procesar.btn-lg { padding: 13px 24px; font-size: 15px; }

/* ---------- Visor de documentos y piezas compartidas -------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1050; display: none; align-items: center; justify-content: center;
  background: rgba(12, 14, 19, .72); padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal-document {
  width: 100%; max-width: 1100px; background: #fff; border: 1px solid var(--p-line); border-radius: 16px;
  overflow: hidden; box-shadow: 0 24px 64px rgba(12, 14, 19, .32); animation: modalFadeIn .2s ease;
}
@keyframes modalFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-document .modal-header {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--p-coat); color: #fff; padding: 14px 20px; border-bottom: 0;
}
.modal-document .modal-header h5 { margin: 0; color: #fff; font-family: var(--p-font-display); font-size: 17px !important; }
.modal-document .modal-body { padding: 20px; min-height: 400px; max-height: 72vh; overflow-y: auto; text-align: center; }
.document-viewer-pdf { width: 100%; height: 66vh; border: 0; border-radius: 10px; }
.document-viewer-image { max-width: 100%; max-height: 66vh; height: auto; display: block; margin: 0 auto; border-radius: 10px; }
.btn-close-white, .btn-close-modal {
  background: transparent; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: .7; transition: opacity .12s ease;
}
.btn-close-white:hover, .btn-close-modal:hover { opacity: 1; }

.doc-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--p-r-control);
  background: var(--p-neutral-bg); color: var(--p-ink-2); text-decoration: none; font-weight: 500; cursor: pointer;
  transition: background .12s ease;
}
.doc-link:hover { background: #dde1e8; color: var(--p-ink); text-decoration: none; }
td .doc-link { padding: 0; width: 32px; height: 32px; justify-content: center; background: transparent; font-size: 1.1rem; }
td .doc-link:hover { background: var(--p-info-bg); color: var(--p-info); }

.amount-positive { color: var(--p-ok); font-weight: 600; }
.amount-negative { color: var(--p-bad); font-weight: 600; }
.amount-field { font-weight: 700; background-color: var(--p-eye-soft) !important; }
.checkbox-custom { width: 18px; height: 18px; margin-right: 8px; cursor: pointer; vertical-align: middle; accent-color: var(--p-ink); }
.password-requirements ul { margin: 0; padding-left: 20px; }
.password-requirements li { color: var(--p-muted); margin-bottom: 3px; }
.password-requirements li.valid { color: var(--p-ok); }
.password-requirements li.invalid { color: var(--p-bad); }

/* Estado de cliente (variante status-*) */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--p-r-pill);
  font-size: 12px; font-weight: 600; background: var(--p-neutral-bg); color: var(--p-neutral);
}
.status-badge.status-aprobado, .status-aprobado { background: var(--p-ok-bg); color: var(--p-ok); }
.status-badge.status-iniciado, .status-iniciado { background: var(--p-warn-bg); color: var(--p-warn); }
.status-badge.status-revision, .status-revision { background: var(--p-info-bg); color: var(--p-info); }
.status-badge.status-rechazado, .status-rechazado { background: var(--p-bad-bg); color: var(--p-bad); }
.status-badge.status-suspendido, .status-suspendido { background: var(--p-neutral-bg); color: var(--p-neutral); }
.btn-save, .btn-update { background: var(--p-ink); border: 1px solid var(--p-ink); color: #fff; padding: 10px 18px; border-radius: var(--p-r-control); font-weight: 600; cursor: pointer; }
.btn-save:hover, .btn-update:hover { background: var(--p-coat-3); color: #fff; }
.btn-approve { background: var(--p-ok); border: 1px solid var(--p-ok); color: #fff; padding: 10px 18px; border-radius: var(--p-r-control); font-weight: 600; cursor: pointer; }
.btn-approve:hover { background: #0f5a3a; color: #fff; }

/* ---------- Inicio de sesión -------------------------------------------- */
body.auth-body { background: var(--p-coat); }
.auth-split {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); min-height: 100vh;
  font-family: var(--p-font-ui);
}
.auth-brand {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px 56px; color: #fff;
  background-color: var(--p-coat);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640' viewBox='0 0 640 640' fill='none'%3E%3Cline x1='70' y1='96' x2='214' y2='44' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='214' y1='44' x2='338' y2='170' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='338' y1='170' x2='508' y2='76' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='508' y1='76' x2='590' y2='236' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='338' y1='170' x2='252' y2='296' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='252' y1='296' x2='426' y2='330' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='426' y1='330' x2='590' y2='236' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='252' y1='296' x2='92' y2='338' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='92' y1='338' x2='156' y2='510' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='156' y1='510' x2='342' y2='468' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='342' y1='468' x2='426' y2='330' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='342' y1='468' x2='524' y2='548' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='524' y1='548' x2='604' y2='430' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='604' y1='430' x2='590' y2='236' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='70' y1='96' x2='92' y2='338' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='342' y1='468' x2='420' y2='600' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='156' y1='510' x2='36' y2='590' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='524' y1='548' x2='420' y2='600' stroke='white' stroke-opacity='.07' stroke-width='1'/%3E%3Ccircle cx='70' cy='96' r='9' stroke='white' stroke-opacity='.16' stroke-width='1.4'/%3E%3Ccircle cx='70' cy='96' r='2.6' fill='white' fill-opacity='.16'/%3E%3Ccircle cx='214' cy='44' r='9' stroke='white' stroke-opacity='.16' stroke-width='1.4'/%3E%3Ccircle cx='214' cy='44' r='2.6' fill='white' fill-opacity='.16'/%3E%3Ccircle cx='338' cy='170' r='9' stroke='%23e3a82b' stroke-opacity='.55' stroke-width='1.4'/%3E%3Ccircle cx='338' cy='170' r='2.6' fill='%23e3a82b' fill-opacity='.55'/%3E%3Ccircle cx='508' cy='76' r='9' stroke='white' stroke-opacity='.16' stroke-width='1.4'/%3E%3Ccircle cx='508' cy='76' r='2.6' fill='white' fill-opacity='.16'/%3E%3Ccircle cx='590' cy='236' r='9' stroke='white' stroke-opacity='.16' stroke-width='1.4'/%3E%3Ccircle cx='590' cy='236' r='2.6' fill='white' fill-opacity='.16'/%3E%3Ccircle cx='426' cy='330' r='9' stroke='white' stroke-opacity='.16' stroke-width='1.4'/%3E%3Ccircle cx='426' cy='330' r='2.6' fill='white' fill-opacity='.16'/%3E%3Ccircle cx='252' cy='296' r='9' stroke='white' stroke-opacity='.16' stroke-width='1.4'/%3E%3Ccircle cx='252' cy='296' r='2.6' fill='white' fill-opacity='.16'/%3E%3Ccircle cx='92' cy='338' r='9' stroke='white' stroke-opacity='.16' stroke-width='1.4'/%3E%3Ccircle cx='92' cy='338' r='2.6' fill='white' fill-opacity='.16'/%3E%3Ccircle cx='156' cy='510' r='9' stroke='white' stroke-opacity='.16' stroke-width='1.4'/%3E%3Ccircle cx='156' cy='510' r='2.6' fill='white' fill-opacity='.16'/%3E%3Ccircle cx='342' cy='468' r='9' stroke='%23e3a82b' stroke-opacity='.55' stroke-width='1.4'/%3E%3Ccircle cx='342' cy='468' r='2.6' fill='%23e3a82b' fill-opacity='.55'/%3E%3Ccircle cx='524' cy='548' r='9' stroke='white' stroke-opacity='.16' stroke-width='1.4'/%3E%3Ccircle cx='524' cy='548' r='2.6' fill='white' fill-opacity='.16'/%3E%3Ccircle cx='604' cy='430' r='9' stroke='white' stroke-opacity='.16' stroke-width='1.4'/%3E%3Ccircle cx='604' cy='430' r='2.6' fill='white' fill-opacity='.16'/%3E%3Ccircle cx='420' cy='600' r='9' stroke='white' stroke-opacity='.16' stroke-width='1.4'/%3E%3Ccircle cx='420' cy='600' r='2.6' fill='white' fill-opacity='.16'/%3E%3Ccircle cx='36' cy='590' r='9' stroke='white' stroke-opacity='.16' stroke-width='1.4'/%3E%3Ccircle cx='36' cy='590' r='2.6' fill='white' fill-opacity='.16'/%3E%3C/svg%3E");
  background-size: 640px 640px;
}
.auth-brand::before {
  content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at 30% 35%, rgba(227, 168, 43, .13), transparent 62%);
  animation: auth-sheen 32s ease-in-out infinite alternate;
}
@keyframes auth-sheen {
  from { transform: translate3d(-6%, -4%, 0); }
  to   { transform: translate3d(34%, 22%, 0); }
}
.auth-brand .auth-mark { width: min(440px, 70%); height: auto; display: block; margin-top: 8vh; }
.auth-brand .auth-name {
  font-family: var(--p-font-display); font-weight: 650; font-size: clamp(40px, 5vw, 64px);
  line-height: 1; letter-spacing: -.03em; margin: 28px 0 14px; color: #fff;
}
.auth-brand .auth-lede { max-width: 36ch; font-size: 17px; line-height: 1.5; color: var(--p-on-coat); margin: 0; }
.auth-brand .auth-foot { font-size: 12.5px; color: var(--p-on-coat-dim); }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: var(--p-card); }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 32px; font-weight: 650; letter-spacing: -.025em; margin: 0 0 8px; }
.auth-card .auth-sub { color: var(--p-muted); font-size: 15px; margin: 0 0 28px; }
.auth-card .form-group { margin-bottom: 18px; }
.auth-card .form-control { height: 46px; font-size: 15px; }
.auth-card .auth-check { display: flex; align-items: center; gap: 8px; margin: 4px 0 22px; font-size: 14px; color: var(--p-ink-2); }
.auth-card .auth-check input { width: 16px; height: 16px; accent-color: var(--p-ink); }
.auth-card .auth-check label { margin: 0; font-weight: 400; }
.auth-card .btn-login { width: 100%; height: 48px; font-size: 15px; }
.auth-card .auth-links { margin-top: 18px; text-align: center; font-size: 13.5px; }
.auth-card .auth-links a { color: var(--p-ink-2); text-decoration: underline; text-underline-offset: 3px; }
.auth-card .auth-alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 0 0 20px; }
.auth-card .auth-alert.is-error { background: var(--p-bad-bg); color: #8a231e; border: 1px solid #f4c6c2; }
.auth-card .auth-alert.is-ok { background: var(--p-ok-bg); color: #0f5a3a; border: 1px solid #bfe6cf; }
.auth-card .auth-alert ul { margin: 0; padding-left: 18px; }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { padding: 28px 24px; min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; }
  .auth-brand .auth-mark { width: 88px; margin: 0; }
  .auth-brand .auth-name { font-size: 28px; margin: 0; }
  .auth-brand .auth-lede, .auth-brand .auth-foot { display: none; }
  .auth-panel { padding: 32px 20px 48px; align-items: flex-start; }
}

/* ---------- Pantallas pequeñas ------------------------------------------ */
@media (max-width: 991px) {
  .page-wrapper .page-body-wrapper .page-body { padding: 0 14px 20px; }
  .page-wrapper .page-body-wrapper .page-body .page-header { padding: 20px 0 14px; }
  .page-wrapper .page-body-wrapper .page-body .page-header .page-header-left h3 { font-size: 23px; }
  .filter-card { padding: 14px 16px 16px; }
  .card-body { padding: 16px; }
}

/* ---------- Movimiento reducido ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Anulación de los colores !important de la plantilla ---------- */
.btn.btn-primary { background-color: var(--p-ink) !important; border-color: var(--p-ink) !important; color: #fff !important; }
.btn.btn-primary:hover, .btn.btn-primary:focus, .btn.btn-primary:active { background-color: var(--p-coat-3) !important; border-color: var(--p-coat-3) !important; color: #fff !important; }
.btn.btn-secondary, .btn.btn-light { background-color: #fff !important; border-color: var(--p-line-strong) !important; color: var(--p-ink-2) !important; }
.btn.btn-secondary:hover, .btn.btn-light:hover { background-color: var(--p-bg) !important; border-color: #aeb5c4 !important; color: var(--p-ink) !important; }
.btn.btn-success { background-color: var(--p-ok) !important; border-color: var(--p-ok) !important; color: #fff !important; }
.btn.btn-success:hover { background-color: #0f5a3a !important; border-color: #0f5a3a !important; }
.btn.btn-danger { background-color: #fff !important; border-color: #e9b3af !important; color: var(--p-bad) !important; }
.btn.btn-danger:hover { background-color: var(--p-bad) !important; border-color: var(--p-bad) !important; color: #fff !important; }
.btn.btn-warning { background-color: var(--p-eye) !important; border-color: var(--p-eye) !important; color: var(--p-eye-ink) !important; }
.btn.btn-warning:hover { background-color: var(--p-eye-bright) !important; border-color: var(--p-eye-bright) !important; }
.btn.btn-dark { background-color: var(--p-coat) !important; border-color: var(--p-coat) !important; color: #fff !important; }
.btn.btn-info:not(.btn-action) { background-color: var(--p-info) !important; border-color: var(--p-info) !important; color: #fff !important; }

/* ---------- Iconos: Font Awesome 4/5 sustituido por Lucide (ISC) ----------
   Mismas clases (.fa-*), glifos modernos de trazo fino. Las marcas sociales conservan la fuente. */
[class*=" fa-"]:not(.fab)::before, [class^="fa-"]:not(.fab)::before { }
.fa-address-card::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/contact.svg) center / contain no-repeat; mask: url(../icons/contact.svg) center / contain no-repeat; font-size: inherit; }
.fa-align-left::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/align-left.svg) center / contain no-repeat; mask: url(../icons/align-left.svg) center / contain no-repeat; font-size: inherit; }
.fa-angle-double-right::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/chevrons-right.svg) center / contain no-repeat; mask: url(../icons/chevrons-right.svg) center / contain no-repeat; font-size: inherit; }
.fa-angle-down::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/chevron-down.svg) center / contain no-repeat; mask: url(../icons/chevron-down.svg) center / contain no-repeat; font-size: inherit; }
.fa-angle-right::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/chevron-right.svg) center / contain no-repeat; mask: url(../icons/chevron-right.svg) center / contain no-repeat; font-size: inherit; }
.fa-angle-up::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/chevron-up.svg) center / contain no-repeat; mask: url(../icons/chevron-up.svg) center / contain no-repeat; font-size: inherit; }
.fa-arrow-down::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/arrow-down.svg) center / contain no-repeat; mask: url(../icons/arrow-down.svg) center / contain no-repeat; font-size: inherit; }
.fa-arrow-left::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/arrow-left.svg) center / contain no-repeat; mask: url(../icons/arrow-left.svg) center / contain no-repeat; font-size: inherit; }
.fa-arrow-up::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/arrow-up.svg) center / contain no-repeat; mask: url(../icons/arrow-up.svg) center / contain no-repeat; font-size: inherit; }
.fa-ban::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/ban.svg) center / contain no-repeat; mask: url(../icons/ban.svg) center / contain no-repeat; font-size: inherit; }
.fa-bank::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/landmark.svg) center / contain no-repeat; mask: url(../icons/landmark.svg) center / contain no-repeat; font-size: inherit; }
.fa-bar-chart::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/chart-column.svg) center / contain no-repeat; mask: url(../icons/chart-column.svg) center / contain no-repeat; font-size: inherit; }
.fa-barcode::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/barcode.svg) center / contain no-repeat; mask: url(../icons/barcode.svg) center / contain no-repeat; font-size: inherit; }
.fa-bell::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/bell.svg) center / contain no-repeat; mask: url(../icons/bell.svg) center / contain no-repeat; font-size: inherit; }
.fa-bitcoin::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/bitcoin.svg) center / contain no-repeat; mask: url(../icons/bitcoin.svg) center / contain no-repeat; font-size: inherit; }
.fa-book::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/book-open.svg) center / contain no-repeat; mask: url(../icons/book-open.svg) center / contain no-repeat; font-size: inherit; }
.fa-briefcase::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/briefcase.svg) center / contain no-repeat; mask: url(../icons/briefcase.svg) center / contain no-repeat; font-size: inherit; }
.fa-building::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/building-2.svg) center / contain no-repeat; mask: url(../icons/building-2.svg) center / contain no-repeat; font-size: inherit; }
.fa-building-o::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/building-2.svg) center / contain no-repeat; mask: url(../icons/building-2.svg) center / contain no-repeat; font-size: inherit; }
.fa-calculator::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/calculator.svg) center / contain no-repeat; mask: url(../icons/calculator.svg) center / contain no-repeat; font-size: inherit; }
.fa-calendar::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/calendar.svg) center / contain no-repeat; mask: url(../icons/calendar.svg) center / contain no-repeat; font-size: inherit; }
.fa-calendar-alt::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/calendar.svg) center / contain no-repeat; mask: url(../icons/calendar.svg) center / contain no-repeat; font-size: inherit; }
.fa-calendar-check-o::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/calendar-check.svg) center / contain no-repeat; mask: url(../icons/calendar-check.svg) center / contain no-repeat; font-size: inherit; }
.fa-calendar-o::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/calendar.svg) center / contain no-repeat; mask: url(../icons/calendar.svg) center / contain no-repeat; font-size: inherit; }
.fa-camera::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/camera.svg) center / contain no-repeat; mask: url(../icons/camera.svg) center / contain no-repeat; font-size: inherit; }
.fa-caret-right::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/chevron-right.svg) center / contain no-repeat; mask: url(../icons/chevron-right.svg) center / contain no-repeat; font-size: inherit; }
.fa-chart-bar::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/chart-column.svg) center / contain no-repeat; mask: url(../icons/chart-column.svg) center / contain no-repeat; font-size: inherit; }
.fa-chart-line::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/chart-line.svg) center / contain no-repeat; mask: url(../icons/chart-line.svg) center / contain no-repeat; font-size: inherit; }
.fa-chart-pie::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/chart-pie.svg) center / contain no-repeat; mask: url(../icons/chart-pie.svg) center / contain no-repeat; font-size: inherit; }
.fa-check::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/check.svg) center / contain no-repeat; mask: url(../icons/check.svg) center / contain no-repeat; font-size: inherit; }
.fa-check-circle::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/circle-check.svg) center / contain no-repeat; mask: url(../icons/circle-check.svg) center / contain no-repeat; font-size: inherit; }
.fa-check-circle-o::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/circle-check.svg) center / contain no-repeat; mask: url(../icons/circle-check.svg) center / contain no-repeat; font-size: inherit; }
.fa-check-square-o::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/square-check.svg) center / contain no-repeat; mask: url(../icons/square-check.svg) center / contain no-repeat; font-size: inherit; }
.fa-chevron-up::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/chevron-up.svg) center / contain no-repeat; mask: url(../icons/chevron-up.svg) center / contain no-repeat; font-size: inherit; }
.fa-child::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/user.svg) center / contain no-repeat; mask: url(../icons/user.svg) center / contain no-repeat; font-size: inherit; }
.fa-circle::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/circle.svg) center / contain no-repeat; mask: url(../icons/circle.svg) center / contain no-repeat; font-size: inherit; }
.fa-circle-o::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/circle.svg) center / contain no-repeat; mask: url(../icons/circle.svg) center / contain no-repeat; font-size: inherit; }
.fa-clock-o::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/clock.svg) center / contain no-repeat; mask: url(../icons/clock.svg) center / contain no-repeat; font-size: inherit; }
.fa-cloud-upload-alt::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/cloud-upload.svg) center / contain no-repeat; mask: url(../icons/cloud-upload.svg) center / contain no-repeat; font-size: inherit; }
.fa-cog::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/settings.svg) center / contain no-repeat; mask: url(../icons/settings.svg) center / contain no-repeat; font-size: inherit; }
.fa-cogs::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/settings.svg) center / contain no-repeat; mask: url(../icons/settings.svg) center / contain no-repeat; font-size: inherit; }
.fa-coins::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/coins.svg) center / contain no-repeat; mask: url(../icons/coins.svg) center / contain no-repeat; font-size: inherit; }
.fa-comment::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/message-square.svg) center / contain no-repeat; mask: url(../icons/message-square.svg) center / contain no-repeat; font-size: inherit; }
.fa-copy::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/copy.svg) center / contain no-repeat; mask: url(../icons/copy.svg) center / contain no-repeat; font-size: inherit; }
.fa-credit-card::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/credit-card.svg) center / contain no-repeat; mask: url(../icons/credit-card.svg) center / contain no-repeat; font-size: inherit; }
.fa-cube::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/box.svg) center / contain no-repeat; mask: url(../icons/box.svg) center / contain no-repeat; font-size: inherit; }
.fa-cubes::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/boxes.svg) center / contain no-repeat; mask: url(../icons/boxes.svg) center / contain no-repeat; font-size: inherit; }
.fa-cut::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/scissors.svg) center / contain no-repeat; mask: url(../icons/scissors.svg) center / contain no-repeat; font-size: inherit; }
.fa-dollar::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/dollar-sign.svg) center / contain no-repeat; mask: url(../icons/dollar-sign.svg) center / contain no-repeat; font-size: inherit; }
.fa-dollar-sign::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/dollar-sign.svg) center / contain no-repeat; mask: url(../icons/dollar-sign.svg) center / contain no-repeat; font-size: inherit; }
.fa-download::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/download.svg) center / contain no-repeat; mask: url(../icons/download.svg) center / contain no-repeat; font-size: inherit; }
.fa-edit::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/square-pen.svg) center / contain no-repeat; mask: url(../icons/square-pen.svg) center / contain no-repeat; font-size: inherit; }
.fa-ellipsis-v::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/ellipsis-vertical.svg) center / contain no-repeat; mask: url(../icons/ellipsis-vertical.svg) center / contain no-repeat; font-size: inherit; }
.fa-envelope::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/mail.svg) center / contain no-repeat; mask: url(../icons/mail.svg) center / contain no-repeat; font-size: inherit; }
.fa-exchange::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/arrow-left-right.svg) center / contain no-repeat; mask: url(../icons/arrow-left-right.svg) center / contain no-repeat; font-size: inherit; }
.fa-exclamation-circle::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/circle-alert.svg) center / contain no-repeat; mask: url(../icons/circle-alert.svg) center / contain no-repeat; font-size: inherit; }
.fa-exclamation-triangle::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/triangle-alert.svg) center / contain no-repeat; mask: url(../icons/triangle-alert.svg) center / contain no-repeat; font-size: inherit; }
.fa-external-link::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/external-link.svg) center / contain no-repeat; mask: url(../icons/external-link.svg) center / contain no-repeat; font-size: inherit; }
.fa-eye::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/eye.svg) center / contain no-repeat; mask: url(../icons/eye.svg) center / contain no-repeat; font-size: inherit; }
.fa-file::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/file.svg) center / contain no-repeat; mask: url(../icons/file.svg) center / contain no-repeat; font-size: inherit; }
.fa-file-excel::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/file-spreadsheet.svg) center / contain no-repeat; mask: url(../icons/file-spreadsheet.svg) center / contain no-repeat; font-size: inherit; }
.fa-file-excel-o::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/file-spreadsheet.svg) center / contain no-repeat; mask: url(../icons/file-spreadsheet.svg) center / contain no-repeat; font-size: inherit; }
.fa-file-image::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/file-image.svg) center / contain no-repeat; mask: url(../icons/file-image.svg) center / contain no-repeat; font-size: inherit; }
.fa-file-invoice::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/file-text.svg) center / contain no-repeat; mask: url(../icons/file-text.svg) center / contain no-repeat; font-size: inherit; }
.fa-file-o::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/file.svg) center / contain no-repeat; mask: url(../icons/file.svg) center / contain no-repeat; font-size: inherit; }
.fa-file-pdf::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/file-text.svg) center / contain no-repeat; mask: url(../icons/file-text.svg) center / contain no-repeat; font-size: inherit; }
.fa-file-pdf-o::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/file-text.svg) center / contain no-repeat; mask: url(../icons/file-text.svg) center / contain no-repeat; font-size: inherit; }
.fa-file-signature::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/file-signature.svg) center / contain no-repeat; mask: url(../icons/file-signature.svg) center / contain no-repeat; font-size: inherit; }
.fa-file-text-o::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/file-text.svg) center / contain no-repeat; mask: url(../icons/file-text.svg) center / contain no-repeat; font-size: inherit; }
.fa-file-word::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/file-text.svg) center / contain no-repeat; mask: url(../icons/file-text.svg) center / contain no-repeat; font-size: inherit; }
.fa-filter::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/filter.svg) center / contain no-repeat; mask: url(../icons/filter.svg) center / contain no-repeat; font-size: inherit; }
.fa-flag::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/flag.svg) center / contain no-repeat; mask: url(../icons/flag.svg) center / contain no-repeat; font-size: inherit; }
.fa-flag-checkered::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/flag.svg) center / contain no-repeat; mask: url(../icons/flag.svg) center / contain no-repeat; font-size: inherit; }
.fa-folder::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/folder.svg) center / contain no-repeat; mask: url(../icons/folder.svg) center / contain no-repeat; font-size: inherit; }
.fa-folder-open::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/folder-open.svg) center / contain no-repeat; mask: url(../icons/folder-open.svg) center / contain no-repeat; font-size: inherit; }
.fa-gavel::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/gavel.svg) center / contain no-repeat; mask: url(../icons/gavel.svg) center / contain no-repeat; font-size: inherit; }
.fa-gem::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/gem.svg) center / contain no-repeat; mask: url(../icons/gem.svg) center / contain no-repeat; font-size: inherit; }
.fa-globe::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/globe.svg) center / contain no-repeat; mask: url(../icons/globe.svg) center / contain no-repeat; font-size: inherit; }
.fa-google::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/globe.svg) center / contain no-repeat; mask: url(../icons/globe.svg) center / contain no-repeat; font-size: inherit; }
.fa-google-plus::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/globe.svg) center / contain no-repeat; mask: url(../icons/globe.svg) center / contain no-repeat; font-size: inherit; }
.fa-handshake-o::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/handshake.svg) center / contain no-repeat; mask: url(../icons/handshake.svg) center / contain no-repeat; font-size: inherit; }
.fa-hashtag::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/hash.svg) center / contain no-repeat; mask: url(../icons/hash.svg) center / contain no-repeat; font-size: inherit; }
.fa-heart::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/heart.svg) center / contain no-repeat; mask: url(../icons/heart.svg) center / contain no-repeat; font-size: inherit; }
.fa-history::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/history.svg) center / contain no-repeat; mask: url(../icons/history.svg) center / contain no-repeat; font-size: inherit; }
.fa-home::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/house.svg) center / contain no-repeat; mask: url(../icons/house.svg) center / contain no-repeat; font-size: inherit; }
.fa-id-card::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/id-card.svg) center / contain no-repeat; mask: url(../icons/id-card.svg) center / contain no-repeat; font-size: inherit; }
.fa-image::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/image.svg) center / contain no-repeat; mask: url(../icons/image.svg) center / contain no-repeat; font-size: inherit; }
.fa-info-circle::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/info.svg) center / contain no-repeat; mask: url(../icons/info.svg) center / contain no-repeat; font-size: inherit; }
.fa-key::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/key-round.svg) center / contain no-repeat; mask: url(../icons/key-round.svg) center / contain no-repeat; font-size: inherit; }
.fa-line-chart::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/chart-line.svg) center / contain no-repeat; mask: url(../icons/chart-line.svg) center / contain no-repeat; font-size: inherit; }
.fa-link::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/link.svg) center / contain no-repeat; mask: url(../icons/link.svg) center / contain no-repeat; font-size: inherit; }
.fa-list::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/list.svg) center / contain no-repeat; mask: url(../icons/list.svg) center / contain no-repeat; font-size: inherit; }
.fa-location-arrow::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/navigation.svg) center / contain no-repeat; mask: url(../icons/navigation.svg) center / contain no-repeat; font-size: inherit; }
.fa-lock::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/lock.svg) center / contain no-repeat; mask: url(../icons/lock.svg) center / contain no-repeat; font-size: inherit; }
.fa-long-arrow-down::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/arrow-down.svg) center / contain no-repeat; mask: url(../icons/arrow-down.svg) center / contain no-repeat; font-size: inherit; }
.fa-map::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/map.svg) center / contain no-repeat; mask: url(../icons/map.svg) center / contain no-repeat; font-size: inherit; }
.fa-map-marker::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/map-pin.svg) center / contain no-repeat; mask: url(../icons/map-pin.svg) center / contain no-repeat; font-size: inherit; }
.fa-minus::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/minus.svg) center / contain no-repeat; mask: url(../icons/minus.svg) center / contain no-repeat; font-size: inherit; }
.fa-money::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/banknote.svg) center / contain no-repeat; mask: url(../icons/banknote.svg) center / contain no-repeat; font-size: inherit; }
.fa-money-bill::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/banknote.svg) center / contain no-repeat; mask: url(../icons/banknote.svg) center / contain no-repeat; font-size: inherit; }
.fa-paper-plane::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/send.svg) center / contain no-repeat; mask: url(../icons/send.svg) center / contain no-repeat; font-size: inherit; }
.fa-paperclip::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/paperclip.svg) center / contain no-repeat; mask: url(../icons/paperclip.svg) center / contain no-repeat; font-size: inherit; }
.fa-pencil::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/pencil.svg) center / contain no-repeat; mask: url(../icons/pencil.svg) center / contain no-repeat; font-size: inherit; }
.fa-percent::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/percent.svg) center / contain no-repeat; mask: url(../icons/percent.svg) center / contain no-repeat; font-size: inherit; }
.fa-phone::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/phone.svg) center / contain no-repeat; mask: url(../icons/phone.svg) center / contain no-repeat; font-size: inherit; }
.fa-piggy-bank::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/piggy-bank.svg) center / contain no-repeat; mask: url(../icons/piggy-bank.svg) center / contain no-repeat; font-size: inherit; }
.fa-plus::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/plus.svg) center / contain no-repeat; mask: url(../icons/plus.svg) center / contain no-repeat; font-size: inherit; }
.fa-plus-circle::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/circle-plus.svg) center / contain no-repeat; mask: url(../icons/circle-plus.svg) center / contain no-repeat; font-size: inherit; }
.fa-print::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/printer.svg) center / contain no-repeat; mask: url(../icons/printer.svg) center / contain no-repeat; font-size: inherit; }
.fa-qrcode::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/qr-code.svg) center / contain no-repeat; mask: url(../icons/qr-code.svg) center / contain no-repeat; font-size: inherit; }
.fa-question-circle::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/circle-help.svg) center / contain no-repeat; mask: url(../icons/circle-help.svg) center / contain no-repeat; font-size: inherit; }
.fa-receipt::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/receipt.svg) center / contain no-repeat; mask: url(../icons/receipt.svg) center / contain no-repeat; font-size: inherit; }
.fa-refresh::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/refresh-cw.svg) center / contain no-repeat; mask: url(../icons/refresh-cw.svg) center / contain no-repeat; font-size: inherit; }
.fa-reply::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/reply.svg) center / contain no-repeat; mask: url(../icons/reply.svg) center / contain no-repeat; font-size: inherit; }
.fa-reply-all::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/reply-all.svg) center / contain no-repeat; mask: url(../icons/reply-all.svg) center / contain no-repeat; font-size: inherit; }
.fa-rss::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/rss.svg) center / contain no-repeat; mask: url(../icons/rss.svg) center / contain no-repeat; font-size: inherit; }
.fa-save::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/save.svg) center / contain no-repeat; mask: url(../icons/save.svg) center / contain no-repeat; font-size: inherit; }
.fa-search::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/search.svg) center / contain no-repeat; mask: url(../icons/search.svg) center / contain no-repeat; font-size: inherit; }
.fa-share::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/share-2.svg) center / contain no-repeat; mask: url(../icons/share-2.svg) center / contain no-repeat; font-size: inherit; }
.fa-share-alt::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/share-2.svg) center / contain no-repeat; mask: url(../icons/share-2.svg) center / contain no-repeat; font-size: inherit; }
.fa-shield::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/shield-check.svg) center / contain no-repeat; mask: url(../icons/shield-check.svg) center / contain no-repeat; font-size: inherit; }
.fa-sign-out::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/log-out.svg) center / contain no-repeat; mask: url(../icons/log-out.svg) center / contain no-repeat; font-size: inherit; }
.fa-sort::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/arrow-up-down.svg) center / contain no-repeat; mask: url(../icons/arrow-up-down.svg) center / contain no-repeat; font-size: inherit; }
.fa-spinner::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/loader-circle.svg) center / contain no-repeat; mask: url(../icons/loader-circle.svg) center / contain no-repeat; font-size: inherit; }
.fa-star::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/star.svg) center / contain no-repeat; mask: url(../icons/star.svg) center / contain no-repeat; font-size: inherit; }
.fa-star-half-o::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/star-half.svg) center / contain no-repeat; mask: url(../icons/star-half.svg) center / contain no-repeat; font-size: inherit; }
.fa-star-o::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/star.svg) center / contain no-repeat; mask: url(../icons/star.svg) center / contain no-repeat; font-size: inherit; }
.fa-sticky-note::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/sticky-note.svg) center / contain no-repeat; mask: url(../icons/sticky-note.svg) center / contain no-repeat; font-size: inherit; }
.fa-tachometer::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/gauge.svg) center / contain no-repeat; mask: url(../icons/gauge.svg) center / contain no-repeat; font-size: inherit; }
.fa-tag::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/tag.svg) center / contain no-repeat; mask: url(../icons/tag.svg) center / contain no-repeat; font-size: inherit; }
.fa-times::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/x.svg) center / contain no-repeat; mask: url(../icons/x.svg) center / contain no-repeat; font-size: inherit; }
.fa-times-circle::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/circle-x.svg) center / contain no-repeat; mask: url(../icons/circle-x.svg) center / contain no-repeat; font-size: inherit; }
.fa-trash::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/trash-2.svg) center / contain no-repeat; mask: url(../icons/trash-2.svg) center / contain no-repeat; font-size: inherit; }
.fa-trash-o::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/trash-2.svg) center / contain no-repeat; mask: url(../icons/trash-2.svg) center / contain no-repeat; font-size: inherit; }
.fa-undo::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/undo-2.svg) center / contain no-repeat; mask: url(../icons/undo-2.svg) center / contain no-repeat; font-size: inherit; }
.fa-upload::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/upload.svg) center / contain no-repeat; mask: url(../icons/upload.svg) center / contain no-repeat; font-size: inherit; }
.fa-user::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/user.svg) center / contain no-repeat; mask: url(../icons/user.svg) center / contain no-repeat; font-size: inherit; }
.fa-user-circle::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/circle-user.svg) center / contain no-repeat; mask: url(../icons/circle-user.svg) center / contain no-repeat; font-size: inherit; }
.fa-user-circle-o::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/circle-user.svg) center / contain no-repeat; mask: url(../icons/circle-user.svg) center / contain no-repeat; font-size: inherit; }
.fa-users::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/users.svg) center / contain no-repeat; mask: url(../icons/users.svg) center / contain no-repeat; font-size: inherit; }
.fa-wallet::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/wallet.svg) center / contain no-repeat; mask: url(../icons/wallet.svg) center / contain no-repeat; font-size: inherit; }
.fa-warning::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url(../icons/triangle-alert.svg) center / contain no-repeat; mask: url(../icons/triangle-alert.svg) center / contain no-repeat; font-size: inherit; }
.fa-lg::before { }
.fa.fa-spin, .fas.fa-spin { animation: p-spin 1s linear infinite; display: inline-block; }
@keyframes p-spin { to { transform: rotate(360deg); } }

/* ---------- Acciones de tabla (editar / ver / eliminar) ---------- */
.tbl-act { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0 2px;
  border: 1px solid var(--p-line); border-radius: 10px; background: #fff; color: var(--p-ink-2) !important; text-decoration: none !important;
  transition: background .12s ease, border-color .12s ease, color .12s ease; cursor: pointer; }
.tbl-act i { font-size: 16px; line-height: 1; }
.tbl-act:hover { background: var(--p-bg); border-color: var(--p-line-strong); color: var(--p-ink) !important; }
.tbl-act--edit:hover, .tbl-act--view:hover { background: var(--p-info-bg); border-color: #bccaf6; color: var(--p-info) !important; }
.tbl-act--delete:hover { background: var(--p-bad-bg); border-color: #f2bcb8; color: var(--p-bad) !important; }
.action-icons a i, .doc-icons a i, .btn-action i { font-size: 16px; }
.doc-icons a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--p-line); background: #fff; color: var(--p-ink-2); margin: 0 2px; }
.doc-icons a:hover { background: var(--p-eye-soft); border-color: #f0d38b; color: var(--p-warn); }

/* ---------- Dashboard: cabecera ---------- */
.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 32px 36px 28px; margin: 0 0 28px; color: #fff;
  background: radial-gradient(900px 340px at 92% -10%, rgba(227,168,43,.20), transparent 60%), linear-gradient(135deg, #0c0e13 0%, #151a24 100%);
  box-shadow: 0 24px 48px -28px rgba(12,14,19,.7); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='240' viewBox='0 0 360 240' fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Cpath d='M20 200 L90 130 L170 160 L250 70 L340 110'/%3E%3Cpath d='M90 130 L120 40 L250 70'/%3E%3Cpath d='M170 160 L220 215'/%3E%3Ccircle cx='20' cy='200' r='5'/%3E%3Ccircle cx='90' cy='130' r='5'/%3E%3Ccircle cx='170' cy='160' r='5'/%3E%3Ccircle cx='250' cy='70' r='5'/%3E%3Ccircle cx='340' cy='110' r='5'/%3E%3Ccircle cx='120' cy='40' r='5'/%3E%3C/svg%3E"); }
.hero > * { position: relative; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.hero-date { margin: 0 0 6px; font-size: 14px; color: rgba(255,255,255,.62); }
.hero-title { margin: 0; font-family: var(--p-font-display, 'Bricolage Grotesque', sans-serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.02em; line-height: 1.08; color: #fff; }
.hero-sub { margin: 8px 0 0; font-size: 15px; color: rgba(255,255,255,.7); max-width: 46ch; }
.hero-queue { display: flex; gap: 12px; flex-wrap: wrap; }
.queue-item { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i c" "l l"; align-items: center; column-gap: 12px; row-gap: 4px; min-width: 168px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff !important; text-decoration: none !important; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.queue-item:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.28); transform: translateY(-2px); }
.queue-icon { grid-area: i; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.queue-icon svg { width: 17px; height: 17px; }
.queue-count { grid-area: c; font-family: var(--p-font-display, 'Bricolage Grotesque', sans-serif); font-weight: 700; font-size: 34px; line-height: 1; justify-self: end; }
.queue-label { grid-area: l; font-size: 13px; color: rgba(255,255,255,.7); }
.queue-item.has-items { border-color: rgba(227,168,43,.55); background: rgba(227,168,43,.10); }
.queue-item.has-items .queue-icon { background: #e3a82b; color: #1c1405; }
.queue-item.has-items .queue-count { color: #f3c45a; }
.hero-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); align-items: end; }
.hero-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.figure-label { display: block; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.figure-value { display: block; font-family: var(--p-font-display, 'Bricolage Grotesque', sans-serif); font-weight: 700; font-size: clamp(24px, 2.5vw, 34px); letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.figure-value small { font-size: .55em; font-weight: 600; color: #f3c45a; margin-right: 4px; vertical-align: .32em; }
.figure-value em { font-style: normal; font-size: .58em; font-weight: 500; color: rgba(255,255,255,.5); }
.hero-spark { min-width: 0; }
.spark-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 6px; }
.spark-head b { font-size: 15px; color: #fff; font-weight: 600; }
.hero-spark svg { width: 100%; height: 86px; display: block; overflow: visible; }
.spark-line { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: p-draw 1.4s .2s ease-out forwards; }
@keyframes p-draw { to { stroke-dashoffset: 0; } }
.spark-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: rgba(255,255,255,.45); margin-top: 4px; }
@media (max-width: 991px) {
  .hero { padding: 24px 20px; border-radius: 16px; }
  .hero-body { grid-template-columns: 1fr; gap: 24px; }
  .queue-item { flex: 1 1 140px; min-width: 0; }
}
@media (max-width: 480px) { .hero-figures { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .spark-line { stroke-dashoffset: 0; animation: none; } }

/* ---------- Rejilla de tarjetas KPI ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 0 0 8px; }
.kpi-row > [class*="col-"] { width: auto; max-width: none; padding: 0; flex: none; }

/* ---------- Tipografía ---------- */
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/panther/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/panther/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
:root { --p-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
body { font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "kern", "liga"; }
h1, h2, h3, h4, h5, h6, .card-header h5, .section-title, .modal-title, .kpi-value, .page-header-left h3 { font-family: var(--p-font-display); letter-spacing: -.015em; }
h5, .card-header h5, .section-title { font-weight: 650; font-size: 18px; }
.kpi-value { font-weight: 700; font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-label { font-weight: 500; font-size: 13.5px; color: var(--p-ink-2); }
.kpi-note { font-size: 12.5px; }
table.table td, table.dataTable td, .kpi-value, .figure-value, .amount-field, .badge-id { font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "kern"; }
table.table thead th, table.dataTable thead th { font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: var(--p-ink-2); }
label, .form-label { font-size: 13px; font-weight: 600; color: var(--p-ink-2); letter-spacing: 0; }
code, kbd, pre, samp, .mono, td code { font-family: var(--p-font-mono) !important; font-size: .88em; background: var(--p-bg); color: var(--p-ink-2); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--p-line); }
small, .small, .text-muted { font-size: 12.5px; }
.btn, button, .btn-add, .btn-search { font-family: var(--p-font-ui); letter-spacing: 0; }

/* =====================================================================
   TABLAS DE DATOS (DataTables)
   ===================================================================== */
.dataTables_wrapper { position: relative; }
.dataTables_wrapper::after { content: ""; display: table; clear: both; }
.dataTables_wrapper .dataTables_length { float: left; padding: 18px 0 14px 22px; }
.dataTables_wrapper .dataTables_filter { float: right; padding: 18px 22px 14px 0; text-align: right; }
.dataTables_wrapper .dataTables_length label, .dataTables_wrapper .dataTables_filter label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 500; color: var(--p-muted); }
.dataTables_wrapper .dataTables_filter input {
  width: 260px; max-width: 100%; height: 40px; margin: 0; padding: 0 14px 0 40px; font-size: 14px; color: var(--p-ink);
  border: 1px solid var(--p-line-strong); border-radius: 12px; background: #fff no-repeat 13px center / 17px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a93a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  transition: border-color .12s ease, box-shadow .12s ease, width .2s ease;
}
.dataTables_wrapper .dataTables_filter input:focus { outline: 0; border-color: var(--p-ink-2); box-shadow: 0 0 0 3px rgba(227,168,43,.30); width: 300px; }
.dataTables_wrapper .dataTables_length select {
  -webkit-appearance: none; appearance: none; height: 40px; margin: 0; padding: 0 34px 0 14px; font-size: 14px; font-weight: 500; color: var(--p-ink);
  border: 1px solid var(--p-line-strong); border-radius: 12px; background: #fff no-repeat right 12px center / 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
}
.dataTables_wrapper .dataTables_length select:focus { outline: 0; border-color: var(--p-ink-2); box-shadow: 0 0 0 3px rgba(227,168,43,.30); }
.dataTables_wrapper .dataTables_scroll, .dataTables_wrapper > table, .dataTables_wrapper .table-responsive { clear: both; }
table.dataTable { border-collapse: separate !important; border-spacing: 0; width: 100% !important; margin: 0 !important; }
table.dataTable thead th { position: relative; cursor: pointer; border-top: 1px solid var(--p-line); user-select: none; }
table.dataTable thead th::before, table.dataTable thead th::after,
table.dataTable thead .sorting::before, table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::before, table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::before, table.dataTable thead .sorting_desc::after { display: none !important; content: none !important; }
table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc, table.dataTable thead .sorting_asc_disabled, table.dataTable thead .sorting_desc_disabled {
  padding-right: 32px !important; background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 12px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b6bccb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E") !important;
}
table.dataTable thead .sorting_asc { color: var(--p-ink) !important; background-color: #f1f3f7 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0e13' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E") !important; }
table.dataTable thead .sorting_desc { color: var(--p-ink) !important; background-color: #f1f3f7 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0e13' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; }
table.dataTable thead th:hover { background-color: #f1f3f7; color: var(--p-ink); }
table.dataTable tbody tr { background: #fff; }
table.dataTable tbody tr:hover > td { background: #fbf8ef; }
table.dataTable tbody td { border-top: 1px solid var(--p-line); }
table.dataTable tbody td:first-child { font-variant-numeric: tabular-nums; }
.dataTables_wrapper .dataTables_info { float: left; padding: 16px 0 18px 22px; }
.dataTables_wrapper .dataTables_paginate { float: right; padding: 12px 22px 14px 0; }
.dataTables_wrapper .dataTables_paginate .paginate_button { min-width: 36px; text-align: center; font-weight: 500; font-size: 13.5px; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { box-shadow: 0 6px 14px -8px rgba(12,14,19,.8) !important; }
.dataTables_wrapper .dataTables_empty { padding: 48px 16px !important; text-align: center; color: var(--p-muted); }
@media (max-width: 767px) {
  .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate { float: none; text-align: left; padding: 12px 16px 0; }
  .dataTables_wrapper .dataTables_filter input { width: 100%; }
  .dataTables_wrapper .dataTables_filter input:focus { width: 100%; }
}

/* =====================================================================
   FORMULARIOS Y CONTROLES
   ===================================================================== */
.form-control, .custom-select, .form-select, select.form-control { height: 44px; padding: 10px 14px; font-size: 14.5px; border-radius: 12px; border-color: #d3d8e2; }
textarea.form-control { height: auto; min-height: 104px; line-height: 1.5; padding: 12px 14px; resize: vertical; }
select.form-control, .custom-select, .form-select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
}
select.form-control:focus, .custom-select:focus, .form-select:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230c0e13' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 10 4-4 4 4'/%3E%3C/svg%3E"); }
select option { padding: 8px; font-size: 14px; }
select[multiple].form-control, select[size].form-control { height: auto; background-image: none; padding-right: 14px; }
.form-control[type="date"], .form-control[type="datetime-local"], .form-control[type="month"], .form-control[type="time"] { font-variant-numeric: tabular-nums; }
.form-control[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; padding: 4px; border-radius: 6px; }
.form-control[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; background: var(--p-bg); }
.form-control[type="number"] { font-variant-numeric: tabular-nums; }
.form-control.is-valid { border-color: var(--p-ok); }
.form-control.is-valid:focus { box-shadow: 0 0 0 3px rgba(23,112,74,.18); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(171,45,39,.18); }
.form-group > label, .theme-form label { display: block; margin-bottom: 6px; }
.form-group > label .text-danger, label .required { color: var(--p-bad); }
.form-group { margin-bottom: 20px; }
.form-group small.text-muted, .form-group .form-text { display: block; margin-top: 6px; }
.input-group > .form-control, .input-group > .custom-select { height: 44px; }
.input-group-text { height: 44px; padding: 0 14px; border-radius: 12px; color: var(--p-ink-2); font-weight: 600; background: #f4f5f7; }
.input-group > .input-group-prepend > .input-group-text, .input-group > .input-group-prepend > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .form-control:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* Casillas, radios e interruptores */
.custom-control { min-height: 24px; padding-left: 32px; }
.custom-control-label { cursor: pointer; line-height: 24px; font-size: 14px; }
.custom-control-label::before { width: 22px; height: 22px; top: 1px; left: -32px; border: 1.5px solid #b9c0cd; background: #fff; border-radius: 7px; box-shadow: none; transition: background .12s ease, border-color .12s ease; }
.custom-control-label::after { width: 22px; height: 22px; top: 1px; left: -32px; }
.custom-radio .custom-control-label::before { border-radius: 50%; }
.custom-control-input:checked ~ .custom-control-label::before { background-color: var(--p-ink); border-color: var(--p-ink); }
.custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 3px rgba(227,168,43,.35); }
.custom-switch { padding-left: 52px; }
.custom-switch .custom-control-label::before { width: 42px; height: 24px; left: -52px; border-radius: 999px; }
.custom-switch .custom-control-label::after { top: 4px; left: -48px; width: 16px; height: 16px; border-radius: 50%; background: #b9c0cd; transition: transform .15s ease, background .15s ease; }
.custom-switch .custom-control-input:checked ~ .custom-control-label::after { background: var(--p-eye); transform: translateX(18px); }
input[type="checkbox"]:not(.custom-control-input), input[type="radio"]:not(.custom-control-input) { accent-color: var(--p-ink); width: 17px; height: 17px; cursor: pointer; }

/* Selector de archivos */
.custom-file { height: 44px; }
.custom-file-input { height: 44px; cursor: pointer; }
.custom-file-label { height: 44px; padding: 10px 14px; line-height: 1.6; border: 1px dashed #b9c0cd; border-radius: 12px; background: #fafbfc; color: var(--p-muted); font-size: 14px; transition: border-color .12s ease, background .12s ease; }
.custom-file-label::after { height: 42px; padding: 10px 16px; content: "Elegir archivo"; background: var(--p-ink); color: #fff; border: 0; border-radius: 0 11px 11px 0; font-weight: 600; font-size: 13.5px; }
.custom-file:hover .custom-file-label { border-color: var(--p-ink-2); background: #fff; }
.custom-file-input:focus ~ .custom-file-label { border-color: var(--p-ink-2); box-shadow: 0 0 0 3px rgba(227,168,43,.30); }
input[type="file"].form-control { height: auto; padding: 8px 12px; background: #fafbfc; border-style: dashed; }
input[type="file"].form-control::file-selector-button { margin-right: 14px; padding: 7px 14px; border: 0; border-radius: 8px; background: var(--p-ink); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; }
input[type="file"].form-control::file-selector-button:hover { background: var(--p-coat-3); }

/* Select2 / bootstrap-select con el mismo aspecto */
.select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple, .bootstrap-select > .dropdown-toggle {
  min-height: 44px; border: 1px solid #d3d8e2 !important; border-radius: 12px !important; background: #fff; display: flex; align-items: center; box-shadow: none;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px; padding-left: 14px; color: var(--p-ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; right: 8px; }
.select2-container--default.select2-container--focus .select2-selection--multiple, .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--p-ink-2) !important; box-shadow: 0 0 0 3px rgba(227,168,43,.30); }
.select2-dropdown { border: 1px solid var(--p-line-strong); border-radius: 12px; overflow: hidden; box-shadow: 0 14px 36px rgba(12,14,19,.16); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--p-ink); color: #fff; }
.bootstrap-select .dropdown-menu { border-radius: 12px; }

/* Tarjetas de formulario */
.form-card .card-body { padding: 26px 28px 8px; }
.form-section { padding: 0; margin: 0 0 8px; }
.form-section + .form-section { margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--p-line); }
.form-section-title { font-family: var(--p-font-display); font-size: 16px; font-weight: 650; letter-spacing: -.01em; text-transform: none; color: var(--p-ink); margin: 0 0 18px; }
.form-card .card-footer, .form-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; flex-wrap: wrap; padding: 18px 28px; margin: 8px -28px -8px; background: #fafbfc; border-top: 1px solid var(--p-line); }
.form-card .card-footer { margin: 0; }
.info-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--p-info-bg); color: #223d8f; border: 1px solid #cfd9f7; font-size: 13.5px; margin: 8px 0 20px; }
.info-box i { margin-top: 3px; }
.btn-block { width: 100%; }
@media (max-width: 767px) { .form-card .card-body { padding: 18px 16px 4px; } .form-actions { margin: 8px -16px -4px; padding: 14px 16px; } }

/* ---------- Listados: barra superior y ajustes finales de DataTables ---------- */
.list-toolbar { border-bottom: 1px solid var(--p-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px 18px; }
.list-title { margin: 0; font-size: 20px; }
.list-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--p-muted); }
div.dataTables_wrapper div.dataTables_filter input { width: 260px !important; max-width: 100%; height: 42px !important; margin: 0 !important; padding: 0 14px 0 42px !important; border-radius: 12px !important; border: 1px solid #d3d8e2 !important; }
div.dataTables_wrapper div.dataTables_filter input:focus { width: 300px !important; }
div.dataTables_wrapper div.dataTables_length select { width: auto !important; height: 42px !important; margin: 0 !important; padding: 0 34px 0 14px !important; border-radius: 12px !important; border: 1px solid #d3d8e2 !important; }
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { padding-top: 16px; padding-bottom: 16px; }
.list-toolbar + .card-body > .table-responsive > .dataTables_wrapper { margin-top: 0; }
table.dataTable.display tbody tr > .sorting_1, table.dataTable.order-column tbody tr > .sorting_1,
table.dataTable.display tbody tr.odd > .sorting_1, table.dataTable.display tbody tr.even > .sorting_1,
table.dataTable tbody tr.odd, table.dataTable.stripe tbody tr.odd { background-color: transparent !important; }
table.dataTable tbody tr:hover > td, table.dataTable.display tbody tr:hover > .sorting_1 { background-color: #fbf8ef !important; }
.dataTables_wrapper > .row, .dataTables_wrapper .dataTables_wrapper { margin: 0; }
div.dataTables_wrapper div.dataTables_info { padding: 18px 0 18px 24px; }
div.dataTables_wrapper div.dataTables_paginate { padding: 12px 24px 12px 0; margin: 0; }
div.dataTables_wrapper div.dataTables_paginate ul.pagination { margin: 0; }
.dataTables_wrapper table.dataTable thead th, .dataTables_wrapper table.dataTable tbody td { padding-left: 20px; padding-right: 20px; }
.dataTables_wrapper table.dataTable thead th:first-child, .dataTables_wrapper table.dataTable tbody td:first-child { padding-left: 24px; }
.dataTables_wrapper table.dataTable thead th:last-child, .dataTables_wrapper table.dataTable tbody td:last-child { padding-right: 24px; }

/* Pie de los formularios: acciones a la derecha, la principal al final */
.form-card .card-footer .row { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 12px; margin: 0; }
.form-card .card-footer .row > [class*="col-"] { flex: none; width: auto; max-width: none; padding: 0; }
.form-card .card-footer { text-align: right !important; }
.btn-submit, .btn-back, .btn-cancel, .btn-primary, .btn-add, .btn-success, .btn-danger, .btn-secondary { white-space: nowrap; }
.btn-submit, .btn-back { min-height: 44px; padding: 0 22px; }
.btn-block { display: flex; }

/* =====================================================================
   ACCIONES DE FILA: todas neutras, con significado al pasar el cursor
   ===================================================================== */
.action-icons { gap: 6px; flex-wrap: wrap; justify-content: center; }
.action-icons a, .action-icons a[style], .action-icons button {
  background: #fff !important; background-image: none !important; border: 1px solid var(--p-line) !important; color: var(--p-ink-2) !important;
  width: 34px; height: 34px; border-radius: 10px; box-shadow: none !important;
}
.action-icons a i, .action-icons button i { font-size: 16px; color: inherit !important; }
.action-icons a:hover { background: var(--p-bg) !important; border-color: var(--p-line-strong) !important; color: var(--p-ink) !important; transform: none; }
.action-icons a.action-edit:hover, .action-icons a.action-mov:hover, .action-icons a.action-email:hover { background: var(--p-info-bg) !important; border-color: #bccaf6 !important; color: var(--p-info) !important; }
.action-icons a.action-invest:hover, .action-icons a.action-token:hover, .action-icons a.action-doc:hover, .action-icons a.action-child:hover { background: var(--p-eye-soft) !important; border-color: #f0d38b !important; color: var(--p-warn) !important; }
.action-icons a.tokenizado, .action-icons a.tokenizado:hover { background: var(--p-ok-bg) !important; border-color: #bfe6cf !important; color: var(--p-ok) !important; }

/* Encabezados de modal con degradados incrustados */
.modal-header[style*="gradient"], #resultadoHeader { background: var(--p-coat) !important; color: #fff !important; }
.modal-header[style*="gradient"] .modal-title, #resultadoHeader .modal-title, .modal-header[style*="gradient"] h5 { color: #fff !important; }
.modal-header[style*="gradient"] .close, .modal-header[style*="gradient"] .btn-close { color: #fff !important; opacity: .8; text-shadow: none; filter: none; }
#confirmarTokenizar[style] { background: var(--p-ink) !important; border-color: var(--p-ink) !important; color: #fff !important; }

.list-toolbar--page { padding: 4px 2px 18px; border: 0; }
.list-toolbar--page .list-title { font-size: 22px; }

/* Controles heredados de las pantallas de proyectos */
.btn-delete { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid #e9b3af; background: #fff; color: var(--p-bad); font-weight: 600; cursor: pointer; transition: background .12s ease, color .12s ease; }
.btn-delete:hover { background: var(--p-bad); border-color: var(--p-bad); color: #fff; }
.switch-custom { display: inline-block; position: relative; width: 48px; height: 28px; margin: 0; }
.switch-custom input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch-custom .slider { position: absolute; inset: 0; cursor: pointer; background: #c3c9d5; border-radius: 999px; transition: background .15s ease; }
.switch-custom .slider::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(12,14,19,.3); transition: transform .15s ease; }
.switch-custom input:checked + .slider { background: var(--p-ink); }
.switch-custom input:checked + .slider::before { transform: translateX(20px); background: var(--p-eye); }
.switch-custom input:focus-visible + .slider { box-shadow: 0 0 0 3px rgba(227,168,43,.4); }
.pf-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }

/* =====================================================================
   FORMULARIO DE PROYECTO
   ===================================================================== */
.pf-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; padding: 28px 32px; margin: 0 0 22px; border-radius: 20px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(700px 260px at 100% -20%, rgba(227,168,43,.22), transparent 60%), linear-gradient(135deg, #0c0e13, #151a24); box-shadow: 0 22px 44px -30px rgba(12,14,19,.8); }
.pf-hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='240' viewBox='0 0 360 240' fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Cpath d='M20 200 L90 130 L170 160 L250 70 L340 110'/%3E%3Cpath d='M90 130 L120 40 L250 70'/%3E%3Ccircle cx='20' cy='200' r='5'/%3E%3Ccircle cx='90' cy='130' r='5'/%3E%3Ccircle cx='170' cy='160' r='5'/%3E%3Ccircle cx='250' cy='70' r='5'/%3E%3Ccircle cx='340' cy='110' r='5'/%3E%3C/svg%3E"); }
.pf-hero > * { position: relative; }
.pf-kicker { margin: 0 0 6px; font-size: 13.5px; color: rgba(255,255,255,.62); }
.pf-title { margin: 0; font-family: var(--p-font-display); font-weight: 700; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.02em; line-height: 1.1; color: #fff; max-width: 22ch; }
.pf-sub { margin: 10px 0 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.7); }
.pf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.12); color: #fff; }
.pf-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8a93a6; }
.pf-chip--3::before { background: #38c486; } .pf-chip--2::before { background: #6f8cf0; } .pf-chip--1::before { background: #f3c45a; } .pf-chip--0::before { background: #f0776f; }
.pf-hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.pf-stat span { display: block; font-size: 12.5px; color: rgba(255,255,255,.58); margin-bottom: 3px; }
.pf-stat b { font-family: var(--p-font-display); font-size: 24px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-stat--lead b { font-size: clamp(28px, 3.2vw, 40px); color: #f3c45a; }

.pf-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; align-items: start; }
.pf-aside { position: sticky; top: 92px; display: grid; gap: 16px; }
.pf-nav { display: grid; gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--p-line); border-radius: 16px; }
.pf-link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--p-ink-2) !important; font-size: 14px; font-weight: 500; text-decoration: none !important; border-left: 3px solid transparent; transition: background .12s ease, color .12s ease; }
.pf-link i { font-size: 16px; color: var(--p-muted); }
.pf-link:hover { background: var(--p-bg); color: var(--p-ink) !important; }
.pf-link.is-active { background: var(--p-eye-soft); color: var(--p-ink) !important; border-left-color: var(--p-eye); font-weight: 600; }
.pf-link.is-active i { color: var(--p-warn); }
.pf-progress { padding: 14px 16px; background: #fff; border: 1px solid var(--p-line); border-radius: 16px; }
.pf-progress-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--p-muted); margin-bottom: 10px; }
.pf-progress-top b { color: var(--p-ink); font-variant-numeric: tabular-nums; }
.pf-progress-bar { height: 8px; border-radius: 999px; background: var(--p-neutral-bg); overflow: hidden; }
.pf-progress-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--p-eye), #f3c45a); transition: width .3s ease; }

.pf-main { display: grid; gap: 18px; min-width: 0; }
.pf-sec { background: #fff; border: 1px solid var(--p-line); border-radius: 18px; scroll-margin-top: 90px; overflow: hidden; }
.pf-sec-head { min-height: 0; display: flex; align-items: center; gap: 14px; padding: 20px 26px 16px; border-bottom: 1px solid var(--p-line); background: linear-gradient(180deg, #fcfcfd, #fff); }
.pf-sec-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--p-coat); color: #f3c45a; }
.pf-sec-ico i { font-size: 19px; }
.pf-sec-head h3 { margin: 0; font-size: 18px; line-height: 1.2; }
.pf-sec-head p { margin: 3px 0 0; font-size: 13.5px; color: var(--p-muted); }
.pf-sec-body { padding: 24px 26px 6px; }
.pf-sec-body .form-group { margin-bottom: 22px; }
.pf-sec-body .amount-field, .pf-sec-body input[readonly] { background: var(--p-eye-soft) !important; border-color: #f0d38b; color: var(--p-ink); font-weight: 700; }
.pf-sec-body input[disabled], .pf-sec-body select[disabled] { background: #f4f5f7; color: var(--p-muted); cursor: not-allowed; }

.rate-split { margin: 0 0 22px; padding: 16px 18px; border-radius: 14px; background: #fafbfc; border: 1px solid var(--p-line); }
.rate-split-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--p-neutral-bg); }
.rate-split-bar i { display: block; height: 100%; transition: width .35s ease; }
.rs-inv { background: var(--p-coat); } .rs-pan { background: var(--p-eye); }
.rate-split-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; color: var(--p-ink-2); }
.rate-split-legend b { font-variant-numeric: tabular-nums; color: var(--p-ink); margin-left: 4px; }
.rate-split-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.dot-inv { background: var(--p-coat); } .dot-pan { background: var(--p-eye); }
.rate-split-legend .rs-total { margin-left: auto; color: var(--p-muted); }
.rate-split.is-over { border-color: #f2bcb8; background: var(--p-bad-bg); }

.pf-actions { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px; margin: 22px -4px 0; padding: 14px 20px; border: 1px solid var(--p-line); border-radius: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 -14px 30px -22px rgba(12,14,19,.55); }
.pf-actions-spacer { flex: 1; }
@media (max-width: 991px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-aside { position: static; }
  .pf-nav { display: flex; overflow-x: auto; gap: 6px; }
  .pf-link { flex: none; border-left: 0; }
  .pf-progress { display: none; }
  .pf-hero { padding: 22px 20px; }
  .pf-sec-body { padding: 20px 18px 4px; } .pf-sec-head { min-height: 0; padding: 16px 18px 14px; }
}

/* Acciones de fila siempre en una sola línea */
.action-icons { flex-wrap: nowrap !important; gap: 4px; }
.action-icons a, .action-icons button { width: 32px !important; height: 32px !important; flex: none; }
td:has(> .action-icons) { white-space: nowrap; min-width: 232px; }
