/* HEXA V2 ? ERP shell + dense productivity layer */
:root{
  --hexa-sidebar:220px;
  --hexa-sidebar-collapsed:64px;
  --hexa-topbar:38px;
  --hexa-ink:#1b2430;
  --hexa-muted:#6b7785;
  --hexa-line:#d5dde5;
  --hexa-bg:#eef2f5;
  --hexa-panel:#fff;
  --hexa-navy:#0f2a3d;
  --hexa-accent:#1f6f9f;
  --hexa-ok:#0f7a55;
  --hexa-warn:#9a6b00;
  --hexa-danger:#b42318;
  --hexa-info:#1f6f9f;
  --hexa-pending:#5b6b7c;
  --hexa-row:28px;
  --hexa-font:12.5px;
  --hexa-fw-regular:400;
  --hexa-fw-medium:600;
  --hexa-fw-semibold:650;
  --hexa-fw-bold:700;
  --hexa-gap:6px;
  --hexa-pad:8px 10px;
  --hexa-section-gap:8px;
}

body.hexa-erp{
  margin:0;
  background:var(--hexa-bg);
  color:var(--hexa-ink);
  font:var(--hexa-fw-regular) var(--hexa-font)/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;
}
body.hexa-erp.ux360 .button,
body.hexa-erp.ux360 .logout-button,
body.hexa-erp.ux360 .file-button,
body.hexa-erp.ux360 .button.small-button{
  min-height:28px;
  padding:4px 9px;
  border-radius:6px;
  font-size:11.5px;
  font-weight:var(--hexa-fw-semibold);
  letter-spacing:.01em;
  transform:none;
}
body.hexa-erp.ux360 .guide-banner{padding:6px 8px;margin-bottom:6px;font-size:11.5px;border-radius:6px}
body.hexa-erp .card{padding:8px 10px;margin-bottom:8px;border-radius:8px;box-shadow:none}
body.hexa-erp .page-heading{margin-bottom:8px;gap:8px}
body.hexa-erp .page-heading h1,
body.hexa-erp .record-header h1{font-size:1.2rem;font-weight:var(--hexa-fw-bold)}
body.hexa-erp .summary-grid{gap:6px;margin-bottom:8px}
body.hexa-erp .metric{padding:6px 8px;border:1px solid var(--hexa-line);border-radius:7px;background:#fff}
body.hexa-erp .metric strong{font-size:1.1rem;margin-top:1px;font-weight:var(--hexa-fw-bold)}
body.hexa-erp .metric span{font-size:10px;font-weight:var(--hexa-fw-regular)}
body.hexa-erp th,body.hexa-erp td{padding:3px 6px;font-size:11.5px;font-weight:var(--hexa-fw-regular)}
body.hexa-erp th{font-size:10.5px;background:#e8eef3;position:sticky;top:0;z-index:1;font-weight:var(--hexa-fw-semibold)}
body.hexa-erp input,body.hexa-erp select,body.hexa-erp textarea{min-height:30px;padding:5px 7px;border-radius:6px;font-size:12px;font-weight:var(--hexa-fw-regular)}
body.hexa-erp .filters,.body.hexa-erp .form-grid{gap:6px}
body.hexa-erp .container{width:auto;margin:0;max-width:none}
body.hexa-erp .app-header,body.hexa-erp .app-footer{display:none!important}

.hexa-shell{display:flex;min-height:100vh;min-height:100dvh}
.hexa-sidebar{
  position:sticky;top:0;z-index:30;align-self:flex-start;
  width:var(--hexa-sidebar);flex:0 0 var(--hexa-sidebar);
  height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;
  background:var(--hexa-navy);color:#e8f1f7;overflow:hidden;
  display:flex;flex-direction:column;transition:width .18s ease;
}
.hexa-erp.is-sidebar-collapsed .hexa-sidebar{width:var(--hexa-sidebar-collapsed);flex-basis:var(--hexa-sidebar-collapsed)}
.hexa-erp.is-sidebar-collapsed .hexa-nav__label,
.hexa-erp.is-sidebar-collapsed .hexa-brand small,
.hexa-erp.is-sidebar-collapsed .hexa-sidebar__user small,
.hexa-erp.is-sidebar-collapsed .hexa-sidebar__user strong{display:none}
.hexa-sidebar__brand{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:10px 10px 8px;border-bottom:1px solid #ffffff18;flex:0 0 auto}
.hexa-brand{color:#fff;text-decoration:none;display:flex;flex-direction:column;line-height:1.1;min-width:0}
.hexa-brand strong{font-size:15px;letter-spacing:.04em}
.hexa-brand small{font-size:9px;opacity:.7;margin-top:3px}
.hexa-nav{display:flex;flex-direction:column;gap:2px;padding:8px 6px;flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto}
.hexa-nav__item{
  display:flex;align-items:center;gap:10px;min-height:34px;padding:6px 8px;border-radius:7px;
  color:#d7e6f0;text-decoration:none;font-weight:700;font-size:11.5px;
}
.hexa-nav__item:hover{background:#ffffff14;color:#fff}
.hexa-nav__item.is-active{background:#1f6f9f;color:#fff}
.hexa-nav__icon{width:18px;text-align:center;flex:0 0 18px}
.hexa-sidebar__meta{
  margin-top:auto;flex:0 0 auto;padding:10px 8px calc(10px + env(safe-area-inset-bottom,0px));
  border-top:1px solid #ffffff18;display:flex;flex-direction:column;gap:8px;
  background:var(--hexa-navy);position:sticky;bottom:0;z-index:2;
}
.hexa-sidebar__user{display:flex;flex-direction:column;gap:1px;padding:0 4px;text-align:center}
.hexa-sidebar__user strong{font-size:11px}
.hexa-sidebar__user small{font-size:9px;opacity:.7}
.hexa-sidebar__logout{width:100%;justify-content:center;text-align:center}
.hexa-sidebar__meta form{margin:0;display:flex;justify-content:center}
.hexa-main{flex:1;min-width:0;display:flex;flex-direction:column}
.hexa-topbar{
  position:sticky;top:0;z-index:20;height:var(--hexa-topbar);
  display:flex;align-items:center;gap:8px;padding:0 12px;
  background:#fff;border-bottom:1px solid var(--hexa-line);
}
.hexa-topbar__crumb{flex:0 1 auto;max-width:28%;font-weight:800;font-size:12px;color:var(--hexa-navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hexa-topbar__search{position:relative;flex:1 1 auto;min-width:140px;max-width:420px}
.hexa-topbar__search form{margin:0}
.hexa-topbar__search input[type=search]{
  width:100%;min-height:28px;border:1px solid var(--hexa-line);border-radius:6px;
  padding:4px 10px;font-size:12px;background:#f7fafc;color:var(--hexa-navy);
}
.hexa-topbar__search input[type=search]:focus{outline:2px solid #c5dae8;background:#fff}
.hexa-search-panel{
  position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:40;
  background:#fff;border:1px solid var(--hexa-line);border-radius:8px;
  box-shadow:0 8px 24px rgba(15,40,70,.12);max-height:min(70vh,420px);overflow:auto;padding:6px;
}
.hexa-search-item{
  display:block;width:100%;text-align:left;border:0;background:transparent;padding:8px 10px;
  border-radius:6px;cursor:pointer;color:inherit;text-decoration:none;
}
.hexa-search-item:hover,.hexa-search-item:focus{background:#eef5fa;outline:none}
.hexa-search-item strong{display:block;font-size:12px;color:var(--hexa-navy)}
.hexa-search-item span{display:block;font-size:11px;color:var(--hexa-muted);line-height:1.35}
.hexa-search-item .hexa-search-open{display:inline-block;margin-top:4px;font-size:10px;font-weight:800;color:var(--hexa-accent)}
.hexa-search-empty{padding:10px;font-size:12px;font-weight:700;color:var(--hexa-muted)}
.hexa-ownership-banner{
  margin:0 0 8px;padding:8px 10px;border:1px solid #f0d48a;background:#fff8e8;border-radius:7px;
  font-size:12px;font-weight:700;color:var(--hexa-navy);
}
.hexa-taken-by{font-weight:800;font-size:11px;color:var(--hexa-navy)}
.hexa-topbar__right{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto}
.hexa-topbar__version{font-size:10px;font-weight:800;color:var(--hexa-accent);border:1px solid #c5dae8;padding:2px 6px;border-radius:999px}
.hexa-topbar__logout{margin:0}
.hexa-content{padding:10px 12px 24px;flex:1}
.hexa-footer{display:flex;justify-content:space-between;gap:8px;padding:8px 12px;border-top:1px solid var(--hexa-line);color:var(--hexa-muted);font-size:10.5px;background:#f7fafc}

.hexa-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.hexa-page-header h1{margin:0;font-size:1.2rem}
.hexa-page-header__sub,.hexa-muted{margin:2px 0 0;color:var(--hexa-muted);font-size:11px;font-weight:600}
.hexa-eyebrow{margin:0;color:var(--hexa-accent);font-size:10px;font-weight:800;letter-spacing:.06em}
.hexa-page-header__actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}

.hexa-kpi-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:6px;margin-bottom:10px}
.hexa-kpi{padding:7px 9px;background:#fff;border:1px solid var(--hexa-line);border-radius:7px;min-height:58px}
.hexa-kpi__label{display:block;font-size:9.5px;color:var(--hexa-muted);font-weight:700}
.hexa-kpi__value{display:block;margin-top:2px;font-size:1.15rem;font-weight:800;line-height:1.1}
.hexa-kpi__hint{display:block;margin-top:2px;font-size:9.5px;color:var(--hexa-muted)}
.hexa-kpi--ok{border-color:#b9e4d3}.hexa-kpi--ok .hexa-kpi__value{color:var(--hexa-ok)}
.hexa-kpi--warn{border-color:#f0d48a}.hexa-kpi--warn .hexa-kpi__value{color:var(--hexa-warn)}
.hexa-kpi--danger{border-color:#f0b4ae}.hexa-kpi--danger .hexa-kpi__value{color:var(--hexa-danger)}
.hexa-kpi--info{border-color:#b7d3e8}.hexa-kpi--info .hexa-kpi__value{color:var(--hexa-accent)}
a.hexa-kpi--clickable{display:block;text-decoration:none;color:inherit;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .12s ease}
a.hexa-kpi--clickable:hover{border-color:var(--hexa-accent);box-shadow:0 1px 0 rgba(15,35,55,.06);transform:translateY(-1px)}
a.hexa-kpi--clickable:focus-visible{outline:2px solid var(--hexa-accent);outline-offset:2px}
.hexa-kpi--active{border-color:var(--hexa-accent)!important;box-shadow:inset 0 0 0 1px var(--hexa-accent);background:#f3f8fc}
.hexa-kpi-drilldown{margin:0 0 12px}
.hexa-kpi-drilldown__bar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 8px;padding:6px 8px;background:#f3f8fc;border:1px solid #c5d8ea;border-radius:7px;font-size:12px}

.hexa-panel{background:#fff;border:1px solid var(--hexa-line);border-radius:8px;margin-bottom:10px}
.hexa-panel__head,.hexa-panel__summary{padding:8px 10px;border-bottom:1px solid var(--hexa-line);font-weight:800}
.hexa-panel__head h2{margin:0;font-size:12px}
.hexa-panel__summary{cursor:pointer;list-style:none}
.hexa-panel__summary::-webkit-details-marker{display:none}
.hexa-panel__body{padding:8px 10px}

.hexa-ibtn{
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
  min-height:28px;padding:4px 8px;border-radius:6px;border:1px solid transparent;
  font:inherit;font-size:11px;font-weight:750;cursor:pointer;text-decoration:none;white-space:nowrap;
}
.hexa-ibtn--primary{background:var(--hexa-accent);color:#fff}
.hexa-ibtn--secondary{background:#e8eef3;color:var(--hexa-navy);border-color:var(--hexa-line)}
.hexa-ibtn--danger{background:var(--hexa-danger);color:#fff}
.hexa-ibtn--ghost{background:transparent;color:inherit;border-color:#ffffff30}
.hexa-topbar .hexa-ibtn--ghost,.hexa-content .hexa-ibtn--ghost{border-color:var(--hexa-line);color:var(--hexa-navy)}

.hexa-menu{position:relative;display:inline-block}
.hexa-menu>summary{list-style:none;cursor:pointer}
.hexa-menu>summary::-webkit-details-marker{display:none}
.hexa-menu__panel{
  position:absolute;right:0;top:calc(100% + 4px);z-index:15;min-width:160px;
  padding:6px;background:#fff;border:1px solid var(--hexa-line);border-radius:8px;
  box-shadow:0 10px 28px #102b4326;display:flex;flex-direction:column;gap:4px;
}
.hexa-menu__panel a,.hexa-menu__panel button,.hexa-menu__panel .button{
  width:100%;justify-content:flex-start;text-align:left;
}

.hexa-grid{margin-bottom:10px}
.hexa-grid__toolbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:6px}
.hexa-grid__scroll{overflow:auto;max-height:min(70vh,720px);border:1px solid var(--hexa-line);border-radius:8px;background:#fff}
.hexa-grid table{width:100%;border-collapse:separate;border-spacing:0;min-width:900px}
.hexa-grid tbody tr{height:var(--hexa-row)}
.hexa-grid tbody tr:hover td{background:#f5f9fc}
.hexa-grid th[data-col],.hexa-grid td[data-col]{}
.hexa-grid .is-col-hidden{display:none!important}
.hexa-grid__dialog{border:0;padding:0;border-radius:10px;width:min(92vw,420px);box-shadow:0 18px 50px #102b4360}
.hexa-grid__dialog::backdrop{background:#102b4399}
.hexa-grid__customize{padding:12px;display:flex;flex-direction:column;gap:8px}
.hexa-grid__customize header,.hexa-grid__customize footer{display:flex;justify-content:space-between;gap:8px;align-items:center}
.hexa-grid__col-list{list-style:none;margin:0;padding:0;max-height:280px;overflow:auto;border:1px solid var(--hexa-line);border-radius:7px}
.hexa-grid__col-list li{display:flex;align-items:center;gap:8px;padding:7px 8px;border-bottom:1px solid var(--hexa-line);font-size:11.5px}
.hexa-grid__col-list li:last-child{border-bottom:0}
.hexa-grid__col-list button{min-width:28px}

.hexa-project-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.hexa-project-card{
  display:flex;flex-direction:column;gap:8px;padding:10px;background:#fff;
  border:1px solid var(--hexa-line);border-radius:8px;
}
.hexa-project-card h2{margin:0;font-size:13px}
.hexa-project-card .progress{height:7px}
.hexa-project-meta{margin:0;font-size:11px;color:var(--hexa-muted);line-height:1.35}
.hexa-inline-actions{display:flex;flex-wrap:nowrap;gap:4px;align-items:center}

/* Densidad tipo Odoo: cambia filas, padding, tipograf?a y botones */
.hexa-grid{
  --hexa-row:30px;--hexa-cell-pad:4px 7px;--hexa-font-size:11.5px;--hexa-btn-h:26px;--hexa-scroll:min(72vh,760px);
}
.hexa-grid--compact{
  --hexa-row:26px;--hexa-cell-pad:2px 6px;--hexa-font-size:11px;--hexa-btn-h:22px;--hexa-scroll:min(78vh,860px);
}
.hexa-grid--normal{
  --hexa-row:36px;--hexa-cell-pad:8px 10px;--hexa-font-size:12.5px;--hexa-btn-h:30px;--hexa-scroll:min(68vh,700px);
}
.hexa-grid--comfortable{
  --hexa-row:48px;--hexa-cell-pad:12px 12px;--hexa-font-size:13.5px;--hexa-btn-h:36px;--hexa-scroll:min(62vh,640px);
}
.hexa-grid .hexa-grid__scroll{max-height:var(--hexa-scroll)}
.hexa-grid table{font-size:var(--hexa-font-size)}
.hexa-grid tbody tr{height:var(--hexa-row)}
.hexa-grid th,.hexa-grid td{padding:var(--hexa-cell-pad)!important;font-size:var(--hexa-font-size)!important;line-height:1.25}
.hexa-grid .hexa-ibtn,.hexa-grid .badge{
  min-height:var(--hexa-btn-h);padding:2px 7px;font-size:calc(var(--hexa-font-size) - .5px);
}
.hexa-density{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:var(--hexa-fw-semibold)}
.hexa-density select{min-height:26px;width:auto;padding:2px 6px}

/* View Builder ? panel flotante (sin dialog nativo) */
.hexa-view-builder[hidden]{display:none!important}
.hexa-view-builder{
  position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;
  padding:12px;
}
.hexa-view-builder__backdrop{position:absolute;inset:0;z-index:0;background:#102b43b8;cursor:pointer}
.hexa-view-builder__shell{
  position:relative;z-index:2;display:flex;flex-direction:column;
  width:min(96vw,720px);max-height:90vh;background:#fff;border-radius:12px;
  box-shadow:0 24px 70px #102b4360;overflow:hidden;pointer-events:auto;
}
.hexa-view-builder__header,.hexa-view-builder__footer,.hexa-view-builder__tools{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--hexa-line);background:#fff;position:relative;z-index:3}
.hexa-view-builder__header strong{font-weight:var(--hexa-fw-bold)}
.hexa-view-builder__header p{margin:2px 0 0;font-weight:var(--hexa-fw-regular);text-transform:none}
.hexa-view-builder__footer{border-bottom:0;border-top:1px solid var(--hexa-line)}
.hexa-view-builder__tools{gap:8px;flex-wrap:wrap}
.hexa-view-builder__tools input[type=search]{flex:1;min-height:32px;min-width:140px}
.hexa-view-builder__body{padding:8px 12px;overflow:auto;display:block;background:#fff;position:relative;z-index:3}
.hexa-view-builder__body ul[data-hexa-flat-list]{list-style:none;margin:0;padding:0}
.hexa-view-builder__body ul[data-hexa-flat-list] li{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:5px 4px;border-bottom:1px solid #e6edf3;font-size:12px;font-weight:var(--hexa-fw-regular)}
.hexa-view-builder__body ul[data-hexa-flat-list] li:last-child{border-bottom:0}
.hexa-view-builder__body ul[data-hexa-flat-list] label{display:flex;gap:8px;align-items:center;flex:1;font-weight:var(--hexa-fw-regular);cursor:pointer;flex-wrap:nowrap;text-transform:none}
.hexa-view-builder__body ul[data-hexa-flat-list] label span{text-transform:none}
.hexa-view-builder__body ul[data-hexa-flat-list] label small{font-size:10px;text-transform:none;white-space:nowrap}
.hexa-view-builder__body ul[data-hexa-flat-list] input[type=checkbox]{width:16px;height:16px;accent-color:var(--hexa-accent);flex:0 0 auto}
.hexa-view-builder__group{border:1px solid var(--hexa-line);border-radius:8px;padding:8px;background:#f8fafc}
.hexa-view-builder__group h3{margin:0 0 8px;font-size:11px;text-transform:uppercase}
.hexa-view-builder__group ul{list-style:none;margin:0;padding:0}
.hexa-view-builder__group li{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:5px 4px;border-bottom:1px solid #e6edf3;font-size:12px}
.hexa-view-builder__group li:last-child{border-bottom:0}
.hexa-view-builder__group label{display:flex;gap:8px;align-items:center;flex:1;font-weight:var(--hexa-fw-regular);cursor:pointer}
.hexa-view-builder__group input[type=checkbox]{width:16px;height:16px;accent-color:var(--hexa-accent)}

/* Estados de validaci?n / badges ? sem?foro visible en listados */
.badge,.hexa-status{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:20px;padding:2px 8px;border-radius:999px;
  font-size:10.5px;font-weight:700;letter-spacing:.02em;line-height:1.2;
  white-space:nowrap;border:1px solid transparent;text-transform:uppercase;
}
.badge--ok,.hexa-status--ok,.hexa-state--accepted,.hexa-state--authorized{
  background:#d9f5e7;color:#0a6b48;border-color:#8fd6b2;
}
.badge--danger,.hexa-status--danger,.hexa-state--rejected{
  background:#fde2e1;color:#9f1d1d;border-color:#f0a8a6;
}
.badge--warn,.hexa-status--warn,.hexa-state--correction{
  background:#ffe8c2;color:#8a5a00;border-color:#f0c56e;
}
.badge--info,.hexa-status--info,.hexa-state--pending-review{
  background:#e3f0fb;color:#155a8a;border-color:#9fc4e8;
}
.badge--pending,.hexa-status--pending,.hexa-state--pending{
  background:#fff3cd;color:#8a6d00;border-color:#f0d56a;
}
.badge--muted,.hexa-status--muted,.hexa-state--cancelled,.hexa-state--canceled{
  background:#eceff2;color:#5b6775;border-color:#cfd6dd;
}
body.hexa-erp td .hexa-status,body.hexa-erp td .badge{font-size:10px;padding:2px 7px}

body.hexa-erp .dossier-section,
body.hexa-erp .hexa-panel{margin-bottom:var(--hexa-section-gap)}
body.hexa-erp .dossier-section h2,
body.hexa-erp .hexa-panel__summary{margin:0 0 6px;font-size:12.5px;font-weight:var(--hexa-fw-bold)}
body.hexa-erp .kv-grid{gap:4px 10px}
body.hexa-erp .kv-grid dt{font-weight:var(--hexa-fw-semibold);font-size:10.5px;color:var(--hexa-muted)}
body.hexa-erp .kv-grid dd{font-weight:var(--hexa-fw-regular);margin:0 0 4px}
body.hexa-view-builder-open{overflow:hidden}

/* Validaci?n */
.hexa-validation-dock{position:sticky;top:42px;z-index:12;display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px 10px;margin-bottom:10px;background:#12304a;color:#fff;border-radius:8px}
.hexa-validation-dock__state{font-size:11px;opacity:.9;margin-right:4px}
.hexa-validation-dock .hexa-ibtn--primary{background:#2f9e6b;border-color:#2f9e6b;color:#fff}
.hexa-validation-dock .hexa-ibtn--danger{background:#d64545;color:#fff}
.hexa-validation-dock .hexa-ibtn--secondary{background:#e8eef3;color:#12304a}
.hexa-logo{display:inline-flex;align-items:center;gap:8px}
.hexa-logo img{height:28px;width:auto;object-fit:contain;background:#fff;border-radius:4px;padding:2px}
.hexa-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;justify-content:space-between;margin-bottom:8px;padding:8px;border:1px solid var(--hexa-line);border-radius:8px;background:#f8fafc}
.hexa-filters__fields{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;flex:1}
.hexa-filters__fields label{display:grid;gap:3px;font-size:11px;font-weight:700;min-width:140px}
.hexa-filters__fields input,.hexa-filters__fields select{min-height:30px}
.hexa-filters__actions{display:flex;gap:6px;align-items:center}

/* Galer?a / visor: NUNCA flechas gigantes fuera del di?logo abierto */
.hexa-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}
.hexa-gallery__thumb-btn{display:block;width:100%;padding:0;border:1px solid var(--hexa-line);border-radius:6px;background:#111;cursor:pointer;overflow:hidden}
.hexa-gallery__thumb-btn img{display:block;width:100%;height:110px;object-fit:contain;object-position:center;background:#0f1c27}
.hexa-gallery__thumb-btn--file{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:110px;padding:10px;background:#1a2b3a;color:#d7e6f0;cursor:default}
.hexa-gallery__thumb-btn--file strong{font-size:14px}
.hexa-gallery__thumb-btn--file small{font-size:10px;text-align:center;word-break:break-all}
.hexa-panel__head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.hexa-gallery__lightbox{border:0;padding:0;width:min(96vw,960px);max-height:92vh;background:#0b1c2b;color:#fff;border-radius:10px}
.hexa-gallery__lightbox:not([open]){display:none!important}
.hexa-gallery__lightbox::backdrop{background:#000c}
.hexa-gallery__toolbar{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:8px 10px;background:#102b43}
.hexa-gallery__stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:50vh;padding:12px 48px}
.hexa-gallery__stage img[data-gallery-main]{max-width:100%;max-height:70vh;object-fit:contain;transition:transform .15s ease}
.hexa-gallery__nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:2;
  width:36px;height:36px;min-width:36px;min-height:36px;max-width:36px;max-height:36px;
  border:0;border-radius:999px;background:#ffffff22;color:#fff;font-size:22px;line-height:1;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;padding:0;
}
.hexa-gallery__nav--prev{left:8px}
.hexa-gallery__nav--next{right:8px}
.hexa-gallery__thumbs{display:flex;gap:6px;overflow:auto;padding:8px;background:#102b43}
.hexa-gallery__thumbs button{border:2px solid transparent;padding:0;background:transparent;border-radius:4px;cursor:pointer;width:64px;height:48px;overflow:hidden}
.hexa-gallery__thumbs button.is-active{border-color:#7dd3fc}
.hexa-gallery__thumbs img{height:48px;width:64px;object-fit:contain;object-position:center;background:#0f1c27;display:block}
.is-col-hidden{display:none!important}

/* Paginaci?n HEXA (sin SVG Tailwind) */
.hexa-pagination{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin-top:10px;padding:8px 0}
.hexa-pagination__links{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.hexa-pagination__current{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;padding:4px 8px;border-radius:6px;background:var(--hexa-accent);color:#fff;font-weight:800;font-size:11px}
.hexa-pagination__disabled{display:inline-flex;align-items:center;min-height:28px;padding:4px 8px;color:var(--hexa-muted);font-size:11px;font-weight:700}
.hexa-pagination__meta{margin:0;color:var(--hexa-muted);font-size:11px;font-weight:650}
.hexa-pagination svg{display:none!important;width:0!important;height:0!important}

/* Antiflechas / anti-SVG rotos en todo el ERP */
body.hexa-erp summary{list-style:none}
body.hexa-erp summary::-webkit-details-marker,
body.hexa-erp summary::marker{display:none!important;content:none!important;font-size:0!important}
body.hexa-erp nav[role=navigation] svg,
body.hexa-erp .pagination svg,
body.hexa-erp svg.w-5,
body.hexa-erp svg.h-5{display:none!important;width:0!important;height:0!important;max-width:0!important;max-height:0!important}
dialog:not([open]){display:none!important}
body.hexa-view-builder-open{overflow:hidden}
.hexa-secondary{margin-top:8px}
.hexa-secondary>summary{cursor:pointer;font-weight:700;font-size:11px}
.hexa-version-list{margin:6px 0 0;padding-left:18px;font-size:11px}
.hexa-section-title{margin:8px 0 4px;font-size:12px}
.hexa-toolbar{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.hexa-toolbar__left,.hexa-toolbar__right{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.hexa-validation-bar{border-left:4px solid var(--hexa-accent)}
.hexa-timeline{list-style:none;margin:0;padding:0}
.hexa-timeline__item{display:grid;grid-template-columns:14px 1fr;gap:8px;padding:0 0 12px;position:relative}
.hexa-timeline__item:not(:last-child)::before{content:"";position:absolute;left:5px;top:12px;bottom:0;width:2px;background:#d7e2ea}
.hexa-timeline__dot{width:10px;height:10px;margin-top:4px;border-radius:50%;background:var(--hexa-accent);box-shadow:0 0 0 3px #d9eaf5}
.hexa-timeline__when{display:block;font-size:10.5px;font-weight:800;color:var(--hexa-muted)}
.hexa-timeline__text{margin:2px 0;font-size:12px;font-weight:700}
.hexa-timeline__meta,.hexa-timeline__empty{color:var(--hexa-muted);font-size:11px}
.hexa-viewer{border:1px solid var(--hexa-line);border-radius:8px;overflow:hidden;background:#0f1c27;margin-bottom:8px}
.hexa-viewer__bar{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:6px 8px;background:#152636;color:#e8f1f7}
.hexa-viewer__name{font-size:11px}
.hexa-viewer__stage{min-height:360px;display:grid;place-items:center;overflow:auto;background:#111}
.hexa-viewer__stage iframe,.hexa-viewer__stage img{width:100%;min-height:420px;border:0;background:#111}
.hexa-viewer__stage img{object-fit:contain;max-height:70vh;width:auto;max-width:100%;transition:transform .15s ease}
.hexa-viewer__fallback{padding:24px;color:#d7e6f0;text-align:center}
.hexa-viewer.is-fullscreen{position:fixed;inset:0;z-index:80;border-radius:0;margin:0}
.hexa-viewer.is-fullscreen .hexa-viewer__stage{min-height:calc(100vh - 42px)}
body.hexa-erp .card{padding:10px 12px;margin-bottom:10px;border-radius:8px}
body.hexa-erp .button{min-height:30px;padding:5px 10px;font-size:11.5px;border-radius:6px}
body.hexa-erp section.card h2{font-size:12px;margin:0 0 8px}

/* Densidad global ? expediente / listados / formularios */
body.hexa-erp .info-grid{gap:4px 12px;margin:0}
body.hexa-erp .info-grid dt{font-size:10.5px;font-weight:var(--hexa-fw-semibold);color:var(--hexa-muted);margin:0}
body.hexa-erp .info-grid dd{font-size:12px;font-weight:var(--hexa-fw-regular);margin:0 0 2px}
body.hexa-erp .hexa-panel__head h2,
body.hexa-erp .hexa-panel__head{margin:0;padding:6px 10px;min-height:0}
body.hexa-erp .hexa-panel__body{padding:8px 10px}
body.hexa-erp .hexa-content{padding:8px 10px 18px}
body.hexa-erp .hexa-kpi-strip{gap:6px;margin-bottom:8px}
body.hexa-erp .breadcrumbs{margin:0 0 6px;font-size:11px;font-weight:var(--hexa-fw-regular)}
body.hexa-erp .note{padding:6px 8px;margin:0 0 6px}
body.hexa-erp .note p{margin:0;font-weight:var(--hexa-fw-regular)}
body.hexa-erp td strong,
body.hexa-erp .hexa-datagrid td strong{font-weight:var(--hexa-fw-regular)}
body.hexa-erp .dossier-photo figcaption{gap:2px;margin-top:4px;font-weight:var(--hexa-fw-regular)}
body.hexa-erp .dossier-photo{padding:6px}
body.hexa-erp .hexa-gallery{gap:6px}
body.hexa-erp .client-exec .hexa-panel{margin-bottom:6px}
body.hexa-erp .dossier-block>summary{padding:7px 10px!important;font-weight:var(--hexa-fw-bold)!important;font-size:12px!important}
body.hexa-erp .dossier-block .info-grid,
body.hexa-erp .dossier-block .dossier-gallery,
body.hexa-erp .dossier-block .file-list,
body.hexa-erp .dossier-block .timeline,
body.hexa-erp .dossier-block h3,
body.hexa-erp .dossier-block .hint,
body.hexa-erp .dossier-block .note{margin:6px 10px!important}
body.hexa-erp .dossier-block h3{margin:8px 10px 4px!important;font-size:12px!important}
body.hexa-erp .hexa-timeline__text{font-weight:var(--hexa-fw-regular)!important}
body.hexa-erp .badge,
body.hexa-erp .hexa-status{font-weight:700}
body.hexa-erp .filters label,
body.hexa-erp .hexa-filters__fields label{font-weight:var(--hexa-fw-semibold)}

@media(max-width:900px){
  .hexa-sidebar{
    position:fixed;left:0;top:0;transform:translateX(-105%);box-shadow:8px 0 30px #0004;
    height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;
  }
  .hexa-erp.is-sidebar-open .hexa-sidebar{transform:none}
  .hexa-erp.is-sidebar-collapsed .hexa-sidebar{width:var(--hexa-sidebar);flex-basis:var(--hexa-sidebar)}
  .hexa-erp.is-sidebar-collapsed .hexa-nav__label,
  .hexa-erp.is-sidebar-collapsed .hexa-brand small,
  .hexa-erp.is-sidebar-collapsed .hexa-sidebar__user small,
  .hexa-erp.is-sidebar-collapsed .hexa-sidebar__user strong{display:initial}
  .hexa-content{padding:8px}
  .hexa-grid table{min-width:0}
  .hexa-grid tbody tr{height:auto}
}

/* === Misi?n activos / controles compactos === */
.hexa-project-card__identity{display:flex;gap:10px;align-items:flex-start}
.hexa-project-card__dependency{margin:0;font-size:11px;font-weight:800;letter-spacing:.04em;color:var(--hexa-accent,#1f6f9f);text-transform:uppercase}
.hexa-project-card__label{display:inline-block;margin-right:4px;font-size:9px;font-weight:700;letter-spacing:.06em;opacity:.65;text-transform:uppercase}
.hexa-project-card h2{margin:2px 0 0;font-size:15px;line-height:1.25}
.hexa-pending-banner{margin:8px 0 12px;padding:10px 12px;border:1px solid #f0c36a;background:#fff8e8;border-radius:8px}
.hexa-pending-banner strong{display:block;color:#8a5a00;font-size:14px}
.hexa-pending-banner p{margin:4px 0 0;font-size:12px;color:#5c4a1f}
.hexa-check{width:16px!important;height:16px!important;min-width:16px;margin:0;accent-color:var(--hexa-accent,#1f6f9f);flex:0 0 16px}
.hexa-check-row,.hexa-na-toggle{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600}
body.hexa-erp input[type=checkbox],
body.ux360 input[type=checkbox]{width:16px!important;height:16px!important;min-width:16px;min-height:16px;accent-color:var(--hexa-accent,#1f6f9f)}
body.hexa-erp .check,
body.ux360 .check{display:inline-flex;align-items:center;gap:8px;min-height:auto;font-size:12px;font-weight:600}
.hexa-field{display:flex;flex-direction:column;gap:4px}
.hexa-field__head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-weight:700;font-size:12px;min-height:18px}
.hexa-na-toggle{font-weight:600;color:#6b7280;white-space:nowrap}
.hexa-na-toggle--action{margin:6px 0 10px;padding:4px 8px;border:1px solid #d7e0e8;border-radius:8px;background:#f8fafc;cursor:pointer}
.hexa-na-toggle--section{flex:0 0 auto;padding:4px 8px;border:1px solid #d7e0e8;border-radius:8px;background:#fff;margin-left:6px}
.hexa-na-toggle.is-disabled{opacity:.45;pointer-events:none}
.hexa-field--optional .hexa-na-toggle{opacity:.85}
.hexa-field--optional .hexa-na-toggle:hover{opacity:1;color:#374151}
.evidence-item.is-na-complete{opacity:.92;border-style:dashed}
.evidence-na-form{margin:0}
.hexa-user-picker{display:flex;flex-direction:column;gap:6px;max-height:320px;overflow:auto;padding:4px 0}
.hexa-user-picker .hexa-check-row{padding:8px;border:1px solid var(--hexa-line,#d7e0e8);border-radius:8px;background:#fff}
.hexa-user-picker .hexa-check-row__body{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.ux-step-header{display:flex;align-items:center;gap:4px;width:100%}
.ux-step-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:1;width:auto;padding:8px 10px;min-height:40px}
.ux-step.is-section-na .form-grid{opacity:.55;pointer-events:none;filter:grayscale(.15)}
.hexa-section-na-hint{margin:0 0 8px;font-size:12px;color:#6b7280}
.ux-step-title{display:flex;flex-direction:column;gap:2px;text-align:left}
.ux-step-title strong{font-size:13px}
.ux-step-title small{font-size:10px;opacity:.75}
.ux-step-meta{display:inline-flex;align-items:center;gap:8px}
.ux-step-chevron{font-size:12px;line-height:1;opacity:.7}
.ux-step-meter{width:64px;height:6px;border-radius:999px;background:#e5eef5;overflow:hidden}
.ux-step-meter > span{display:block;height:100%;background:var(--hexa-accent,#1f6f9f)}
.evidence-actions .file-button{position:relative;overflow:hidden}
.evidence-actions .file-button input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}
input.is-na{background:#f3f4f6;color:#6b7280}

/* ?? Work Assignments UX V2 ?? */
.wa-alert{margin:0 0 12px}
.wa-quick-form,.wa-expediente-header,.wa-stages,.wa-panel{border:1px solid var(--hexa-line,#d7e0e8);border-radius:12px;background:#fff}
.wa-fieldset{border:0;margin:0;padding:0}
.wa-fieldset legend{font-size:12px;font-weight:700;margin-bottom:8px;color:#334155}
.wa-choice-row{display:flex;flex-wrap:wrap;gap:8px}
.wa-choice-chip{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #c9d6e2;border-radius:10px;background:#f8fafc;cursor:pointer;font-weight:600;font-size:13px;min-height:44px}
.wa-choice-chip--sm{padding:8px 12px;min-height:38px;font-size:12px}
.wa-choice-chip:has(input:checked){border-color:#1f6f9f;background:#e8f3fa;color:#0f3f5c;box-shadow:inset 0 0 0 1px #1f6f9f}
.wa-choice-chip input{accent-color:#1f6f9f}
.wa-form-grid,.wa-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
.wa-field{display:flex;flex-direction:column;gap:4px;position:relative}
.wa-field--wide{grid-column:1 / -1}
.wa-field label,.wa-field > label{font-size:12px;font-weight:700;color:#334155}
.wa-ac-input,.wa-field input,.wa-field select,.wa-field textarea,.wa-quick-form textarea{width:100%;min-height:40px;border:1px solid #c9d6e2;border-radius:8px;padding:8px 10px;background:#fff;font:inherit}
.wa-ac-panel{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 2px);max-height:220px;overflow:auto;border:1px solid #c9d6e2;border-radius:8px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.12)}
.wa-ac-item{display:block;width:100%;text-align:left;padding:10px 12px;border:0;background:#fff;cursor:pointer;font-size:13px}
.wa-ac-item:hover,.wa-ac-item:focus{background:#eef6fb}
.wa-ac-empty{padding:10px 12px;color:#64748b;font-size:12px}
.wa-more{margin-top:4px;padding:10px 12px;border:1px dashed #c9d6e2;border-radius:10px;background:#fbfdff}
.wa-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.wa-expediente-header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;padding:16px 18px;margin-bottom:12px}
.wa-expediente-kicker{margin:0;font-size:12px;font-weight:700;letter-spacing:.04em;color:#64748b}
.wa-expediente-title{margin:4px 0 6px;font-size:clamp(1.25rem,2.4vw,1.75rem);line-height:1.2;color:#0f172a}
.wa-expediente-meta{margin:0;color:#475569;font-size:13px}
.wa-expediente-header__side{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.wa-stages{display:flex;flex-wrap:wrap;gap:8px;padding:12px;margin-bottom:12px}
.wa-stage-form{margin:0}
.wa-stage{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid #c9d6e2;background:#f8fafc;font-size:12px;font-weight:700;color:#475569;cursor:pointer}
.wa-stage.is-active{background:#1f6f9f;border-color:#1f6f9f;color:#fff}
.wa-stage:disabled{cursor:default}
.wa-stages--readonly .wa-stage{cursor:default}
.wa-expediente-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,.8fr);gap:12px;align-items:start}
.wa-panel{padding:14px 16px}
.wa-panel__title{margin:0 0 12px;font-size:14px;font-weight:800;color:#0f172a}
.wa-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:0}
.wa-detail-grid dt{font-size:11px;font-weight:700;color:#64748b;margin:0}
.wa-detail-grid dd{margin:2px 0 0;font-size:13px;color:#0f172a}
.wa-readonly{margin:0;font-size:13px;color:#0f172a;min-height:32px;padding:5px 8px;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc}
.wa-activity-placeholder{margin:0 0 12px;padding-left:18px;color:#334155;font-size:13px}
.wa-activity-actions{display:flex;gap:8px;flex-wrap:wrap}
.wa-breadcrumbs{margin-bottom:10px;font-size:12px}
.wa-status-pill{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;background:#e8f3fa;color:#0f3f5c}
@media (max-width:860px){
  .wa-form-grid,.wa-kv,.wa-detail-grid,.wa-expediente-layout{grid-template-columns:1fr}
  .wa-expediente-header__side{align-items:stretch}
  .wa-stages{gap:6px}
}

/* ?? WA B4/B5 activity + files + map ?? */
.wa-expediente-main{display:flex;flex-direction:column;gap:12px;min-width:0}
.wa-comment-form{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.wa-comment-form textarea{min-height:72px;border:1px solid #c9d6e2;border-radius:8px;padding:8px 10px;font:inherit}
.wa-timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.wa-timeline__item{padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}
.wa-timeline__item strong{display:block;font-size:13px;color:#0f172a}
.wa-timeline__item time{display:block;font-size:11px;color:#64748b;margin:2px 0 6px}
.wa-timeline__item p{margin:0;font-size:13px;color:#334155}
.wa-timeline__quote{font-style:italic}
.wa-attach-form{margin-bottom:12px}
.wa-attach-row{display:flex;flex-wrap:wrap;gap:8px;align-items:end}
.wa-file-btn{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border:1px solid #c9d6e2;border-radius:8px;background:#fff;font-size:12px;font-weight:700;cursor:pointer}
.wa-file-btn input{position:absolute;inset:0;opacity:0;cursor:pointer}
.wa-file-btn--photo{border-color:#1f6f9f;color:#0f3f5c;background:#e8f3fa}
.wa-file-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.wa-file-item{display:flex;gap:10px;align-items:center;padding:8px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
.wa-file-thumb{flex:0 0 56px;width:56px;height:56px;border-radius:8px;overflow:hidden;background:#eef2f7}
.wa-file-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.wa-file-icon{flex:0 0 56px;width:56px;height:56px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#e8f3fa;font-size:11px;font-weight:800;color:#0f3f5c}
.wa-file-meta{flex:1;min-width:0}
.wa-file-meta a{font-weight:700;font-size:13px;color:#0f172a;text-decoration:none}
.wa-file-meta small{display:block;color:#64748b;font-size:11px;margin-top:2px}
.wa-map{height:240px;border-radius:10px;border:1px solid #d7e0e8;overflow:hidden;background:#eef2f7}
@media (max-width:860px){
  .wa-map{height:200px}
  .wa-attach-row{flex-direction:column;align-items:stretch}
}

.wa-time-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;min-width:220px;padding:8px 10px;border:1px solid #d7e0e8;border-radius:10px;background:#f8fafc}
.wa-time-strip span{display:block;font-size:10px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.03em}
.wa-time-strip strong{font-size:13px;color:#0f172a}
@media (max-width:860px){.wa-time-strip{min-width:0;width:100%}}

/* ?? Compact densification UX V2.1 ?? */
.wa-quick-form{padding:10px 12px;border-radius:10px}
.wa-fieldset{margin:0 0 8px}
.wa-fieldset legend{font-size:11px;font-weight:700;margin-bottom:4px;color:#475569;text-transform:uppercase;letter-spacing:.03em}
.wa-choice-row{display:flex;flex-wrap:wrap;gap:4px}
.wa-choice-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border:1px solid #c9d6e2;border-radius:6px;background:#f8fafc;cursor:pointer;font-weight:600;font-size:12px;min-height:28px;line-height:1.2}
.wa-choice-chip--sm{padding:3px 8px;min-height:26px;font-size:11px}
.wa-choice-chip input{width:14px;height:14px;margin:0}
.wa-form-grid,.wa-kv{gap:8px 10px}
.wa-field label,.wa-field > label{font-size:11px;font-weight:700;color:#475569;margin-bottom:2px;display:block}
.wa-ac-input,.wa-field input,.wa-field select,.wa-field textarea,.wa-quick-form textarea{min-height:32px;padding:5px 8px;border-radius:6px;font-size:13px}
.wa-quick-form textarea{min-height:56px}
.wa-quick-form .hint,.wa-panel .hint{margin:2px 0 0;font-size:11px;color:#64748b}
.wa-actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.wa-expediente-header{padding:10px 12px;margin-bottom:8px;gap:10px;border-radius:10px}
.wa-expediente-kicker{font-size:10px}
.wa-expediente-title{margin:2px 0 4px;font-size:clamp(1.05rem,2vw,1.35rem)}
.wa-expediente-meta{font-size:12px}
.wa-time-strip{min-width:200px;padding:6px 8px;gap:4px 8px;border-radius:8px}
.wa-time-strip span{font-size:9px}
.wa-time-strip strong{font-size:12px}
.wa-stages{padding:6px;gap:4px;margin-bottom:8px}
.wa-stage{padding:6px 10px;font-size:12px;min-height:30px;border-radius:6px}
.wa-panel{padding:10px 12px;border-radius:10px}
.wa-panel__title{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin:0 0 8px;color:#334155}
.wa-expediente-layout{gap:8px}
.wa-expediente-main{gap:8px}
.wa-ac-item.is-active,.wa-ac-item:hover{background:#e8f3fa}
.wa-row-link{cursor:pointer}
.wa-row-link:hover{background:#f1f5f9}
.wa-menu{position:relative;display:inline-block}
.wa-menu summary{list-style:none;cursor:pointer;padding:2px 8px;border:1px solid #c9d6e2;border-radius:6px;font-size:14px;line-height:1.2;background:#fff}
.wa-menu summary::-webkit-details-marker{display:none}
.wa-menu__panel{position:absolute;right:0;top:110%;z-index:20;min-width:180px;background:#fff;border:1px solid #d7e0e8;border-radius:8px;box-shadow:0 8px 24px rgba(15,23,42,.12);padding:4px}
.wa-menu__panel a,.wa-menu__panel button{display:block;width:100%;text-align:left;padding:6px 10px;border:0;background:transparent;font:inherit;font-size:12px;cursor:pointer;border-radius:4px;color:#0f172a;text-decoration:none}
.wa-menu__panel a:hover,.wa-menu__panel button:hover{background:#f1f5f9}
.wa-menu__panel .is-danger{color:#b91c1c}
.wa-menu__panel hr{border:0;border-top:1px solid #e2e8f0;margin:4px 0}
.wa-menu__hint{display:block;padding:6px 10px;font-size:11px;color:#64748b;line-height:1.35}
.wa-expediente-header--dense{padding:6px 10px;margin-bottom:6px;gap:6px}
.wa-expediente-row1{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;width:100%}
.wa-expediente-id{font-size:11px;font-weight:700;color:#64748b;white-space:nowrap;line-height:1.3}
.wa-expediente-row1 .wa-expediente-title{flex:1 1 180px;margin:0;font-size:clamp(.95rem,1.8vw,1.15rem);line-height:1.25;min-width:0}
.wa-expediente-row1__actions{display:flex;align-items:center;gap:4px;margin-left:auto;flex-shrink:0}
.wa-expediente-badge{font-size:10px;padding:2px 6px}
.wa-expediente-meta,.wa-expediente-geo{margin:0;font-size:11px;line-height:1.35;color:#475569}
.wa-expediente-geo{color:#64748b}
.wa-time-strip--compact{min-width:160px;padding:4px 6px;gap:2px 6px}
.wa-time-strip--compact div{display:flex;justify-content:space-between;gap:8px;width:100%}
.wa-panel--compact{padding:8px 10px}
.wa-map--interactive{height:280px}
.wa-map--preview{height:200px}
.wa-create-map-panel{margin-top:4px}
.wa-nearby-panel{margin-bottom:10px}
.wa-nearby{margin-top:8px;font-size:12px}
.wa-map--preview.wa-map--interactive{height:240px}
.wa-map-legend{margin:4px 0 8px;font-size:11px}
.wa-map-legend__dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:2px;vertical-align:middle}
.wa-map-legend__dot--ticket{background:#38bdf8;border:2px solid #1f6f9f}
.wa-map-legend__dot--tech{background:#22c55e;border:2px solid #15803d}
.wa-nearby--under-map{margin-top:10px;padding-top:8px;border-top:1px solid #e2e8f0}
.wa-nearby__subtitle{margin:0 0 6px;font-size:12px;font-weight:700;color:#0f172a}
.wa-map-popup__dist{font-size:11px;color:#475569}
.leaflet-popup-content .wa-map-assign{margin-top:6px}
.wa-nearby summary{cursor:pointer;font-weight:600;color:#0f172a}
.wa-nearby-list{list-style:none;margin:6px 0 0;padding:0}
.wa-nearby-list li{display:flex;justify-content:space-between;gap:8px;padding:4px 0;border-bottom:1px solid #f1f5f9;font-size:12px}
.wa-nearby-list button{border:0;background:transparent;color:#0369a1;cursor:pointer;font:inherit;padding:0;text-align:left}
.hexa-ibtn--sm{padding:4px 8px;font-size:11px;min-height:28px}
.wa-econ-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 8px}
.wa-econ-grid label{font-size:10px;font-weight:700;color:#64748b}
.wa-econ-grid input,.wa-econ-grid select{min-height:28px;padding:3px 6px;font-size:12px}
.wa-econ-totals{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px;font-size:12px}
.wa-econ-totals strong{font-size:13px}
@media (max-width:860px){.wa-econ-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wa-choice-chip{min-height:36px;padding:8px 12px}}

/* Finance Foundation V1 */
.fin-field-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;max-height:320px;overflow:auto}
.fin-field-picker fieldset{border:1px solid #e2e8f0;border-radius:8px;padding:6px 8px;margin:0}
.fin-field-picker legend{font-size:10px;font-weight:800;text-transform:uppercase;color:#64748b;padding:0 4px}
.fin-chip{display:inline-flex;align-items:center;gap:4px;font-size:12px;margin:2px 4px 2px 0;font-weight:600}
.fin-table{font-size:12px;white-space:nowrap}
.fin-table th,.fin-table td{padding:4px 8px}

/* UX V3 ? Asignaciones densas */
.wa-stages-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:4px 8px;margin-bottom:6px;border:1px solid var(--hexa-line,#d7e0e8);border-radius:8px;background:#fff}
.wa-stages-bar__stages{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.wa-stages-bar__actions{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.wa-stages-bar__times{display:flex;flex-wrap:wrap;gap:8px 12px;margin-left:auto;font-size:10px;color:#64748b;align-items:center}
.wa-stages-bar__times strong{font-size:11px;color:#0f172a;font-weight:700;margin-left:2px}
.wa-stage--cancel{border-style:dashed}
.wa-stage--muted{opacity:.45;cursor:default}
.wa-stage.is-cancelled{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.wa-inline-form{display:inline;margin:0}
.wa-bulk-bar{display:flex;align-items:center;gap:10px;padding:6px 10px;margin-bottom:6px;font-size:12px;font-weight:700;color:#0f172a}
.wa-bulk-menu{position:relative}
.wa-bulk-menu summary{list-style:none;cursor:pointer}
.wa-bulk-menu summary::-webkit-details-marker{display:none}
.wa-bulk-menu__panel{position:absolute;left:0;top:110%;z-index:30;min-width:220px;background:#fff;border:1px solid #d7e0e8;border-radius:8px;box-shadow:0 8px 24px rgba(15,23,42,.12);padding:4px}
.wa-bulk-menu__panel button{display:block;width:100%;text-align:left;padding:6px 10px;border:0;background:transparent;font:inherit;font-size:12px;cursor:pointer;border-radius:4px}
.wa-bulk-menu__panel button:hover{background:#f1f5f9}
.wa-col-select{width:28px;max-width:28px;padding:2px 4px!important;text-align:center}
.wa-col-select input[type=checkbox]{width:14px;height:14px;margin:0;cursor:pointer}
@media (min-width:1100px){.wa-kv{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:860px){.wa-stages-bar__times{width:100%;margin-left:0;margin-top:4px}}
