/* Anatolian IOOC · diseño del panel del equipo, del área de empresas y del área del jurado (0.13)
   Una sola tipografía, una escala de tamaños corta, botones parejos y espacios más aireados.
   Va encima de app.css solo en esas áreas (clase .ui en <body>); el sitio público no cambia. */
.ui {
  font-size: var(--fs-base); line-height: 1.55; color: var(--ink); background: var(--bg); font-family: var(--font);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  --rc: var(--r-ctrl);
}
:where(.ui) a { color: var(--blue); text-decoration: none; }
:where(.ui) a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ui .kpi:hover, .ui .pend a:hover, .ui .side-item:hover, .ui .state-tabs a:hover, .ui .tabs a:hover, .ui .btn:hover, .ui .statelegend a:hover { text-decoration: none; }
.ui h1, .ui h2, .ui h3, .ui legend { font-family: var(--font); color: var(--ink); letter-spacing: -.015em; }
.ui h1 { font-size: var(--fs-h1); font-weight: var(--fw-heavy); line-height: 1.25; }
.ui h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); line-height: 1.35; margin: 0 0 12px; }
.ui h3 { font-size: 14px; font-weight: 600; }
.ui legend { font-size: 14px; font-weight: 600; }
.ui strong, .ui b { font-weight: var(--fw-bold); }
.ui .kicker { font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.ui .muted { color: var(--muted); }
.ui .small, .ui small { font-size: 12.5px; }
.ui .mono { font-family: var(--font); font-size: inherit; font-weight: 500; letter-spacing: 0; }
.ui code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; background: var(--tint); padding: 1px 5px; border-radius: 4px; }

/* ---------- botones: todos iguales de alto, borde fino, letra delicada ---------- */
.ui .btn {
  min-height: var(--h-btn); padding: 0 14px; gap: 6px; border-radius: var(--rc); border: var(--bw) solid var(--ink);
  background: var(--ink); color: #fff; font: var(--fw-medium) 13.5px/1 var(--font); letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(16,40,60,.12);
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), box-shadow 150ms var(--ease), transform 120ms var(--ease);
}
.ui .btn:hover { background: #24394F; text-decoration: none; }
.ui .btn:active, .ui .link:active { transform: scale(.97); }
.ui .btn-lg { min-height: var(--h-btn-lg); padding: 0 18px; font-size: 14px; }
.ui .btn-sm { min-height: var(--h-btn-sm); padding: 0 12px; font-size: 13px; }
.ui .btn-xs { min-height: var(--h-btn-xs); padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.ui .btn-ghost, .ui .btn-light { background: #fff; color: var(--ink); border-color: var(--line2); box-shadow: 0 1px 2px rgba(16,40,60,.05); }
.ui .btn-ghost:hover, .ui .btn-light:hover { background: var(--hover); border-color: #C3CFDA; }
.ui .btn-green { background: #3E7A27; border-color: #3E7A27; }
.ui .btn-green:hover { background: #356A21; }
.ui .btn-danger-ghost { background: #fff; color: var(--red); border-color: #EBC9C9; box-shadow: none; }
.ui .btn-danger-ghost:hover { background: #FDF3F3; }
.ui .btn[disabled], .ui .btn:disabled { opacity: .5; cursor: default; transform: none; }
.ui .btn svg { width: 15px; height: 15px; }
/* las acciones que antes eran texto subrayado ahora son botones chicos y discretos */
.ui .link {
  display: inline-flex; align-items: center; gap: 4px; min-height: var(--h-btn-xs); padding: 0 9px; border-radius: 7px;
  border: 1px solid var(--line2); background: #fff; color: var(--ink2); font: 500 12.5px/1 var(--font); text-decoration: none;
  box-shadow: 0 1px 2px rgba(16,40,60,.04); white-space: nowrap;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 120ms var(--ease);
}
.ui .link:hover { background: var(--hover); color: var(--ink); border-color: #C3CFDA; text-decoration: none; }
.ui .link.danger, .ui .link.small.danger { color: var(--red); border-color: #EBC9C9; }
.ui .link.danger:hover { background: #FDF3F3; }
.ui .row-links { gap: 8px; align-items: center; }
.ui .inline-form { display: inline-flex; vertical-align: middle; }
.ui .btn:focus-visible, .ui a:focus-visible, .ui button:focus-visible, .ui input:focus-visible, .ui select:focus-visible, .ui textarea:focus-visible { outline: 2px solid rgba(31,111,174,.45); outline-offset: 2px; }

/* ---------- formularios ---------- */
.ui .stack { gap: 16px; }
.ui .fld { gap: 6px; font-size: 13px; }
.ui .fld-l { font-weight: 500; color: var(--ink2); font-size: 13px; }
.ui .fld-h { font-size: 12px; color: var(--muted); }
.ui .fld input, .ui .fld select, .ui .fld textarea, .ui .filters input, .ui .filters select, .ui .tbl input, .ui .tbl select, .ui .inline-form select {
  font: var(--fw-regular) var(--fs-base) var(--font); color: var(--ink); min-height: var(--h-input); padding: 0 11px; border: 1px solid var(--line2); border-radius: var(--rc);
  background: #fff; box-shadow: 0 1px 2px rgba(16,40,60,.03); transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.ui .fld textarea { padding: 9px 11px; line-height: 1.5; }
.ui .fld input:focus, .ui .fld select:focus, .ui .fld textarea:focus, .ui .filters input:focus, .ui .filters select:focus { border-color: #8FB4D3; box-shadow: 0 0 0 3px rgba(31,111,174,.12); outline: none; }
.ui .fld input[type=color] { padding: 3px; width: 56px; }
.ui .chk { font-size: 13.5px; gap: 8px; }
.ui .chk input, .ui .opt input { width: 16px; height: 16px; }
.ui .opt { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; }
.ui .opt:has(input:checked) { border-color: var(--ink); background: var(--tint); }
.ui .form-grid fieldset { padding-top: 18px; margin-top: 10px; }
.ui .form-foot { padding-top: 10px; }
.ui .filters { gap: 8px; padding: 10px 12px !important; }
.ui .code-input input { font-size: 24px; font-weight: 500; }

/* ---------- avisos ---------- */
.ui .flash { padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 500; border: 1px solid transparent; }
.ui .flash-ok { background: #F0F7EC; color: #2C5A1C; border-color: #D9EACF; }
.ui .flash-err { background: #FDF2F2; color: #8A1C1C; border-color: #F2D2D2; }
.ui .flash-warn { background: #FCF7E6; color: #6B5300; border-color: #F0E3B5; }
.ui .flash-x { font-size: 18px; top: 7px; opacity: .6; }
.ui .note { background: var(--tint); border-radius: 10px; font-size: 13.5px; }
.ui .empty { padding: 32px 16px; }
.ui .empty strong { font-size: 14.5px; font-weight: 600; }
.ui .dhl strong { font-family: var(--font); font-weight: 700; font-size: 20px; letter-spacing: .01em; }
.ui .dhl { border-radius: var(--r); }

/* ---------- tarjetas, tablas y estados ---------- */
.ui .card { border-radius: var(--r); padding: 20px 22px; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 16px; }
.ui .grid2 { gap: 16px; }
.ui .tbl { font-size: 13.5px; }
.ui .tbl th { font-size: 11px; font-weight: 500; letter-spacing: .06em; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.ui .tbl td { padding: 11px 12px; border-bottom: 1px solid #EEF2F6; }
.ui .tbl tbody tr { transition: background-color 120ms var(--ease); }
.ui .tbl tbody tr:hover td { background: #FAFBFC; }
.ui .tbl td a strong, .ui .tbl td > a:not(.btn):not(.link) { color: var(--ink); font-weight: 600; }
.ui .tbl td a:hover strong { color: var(--blue); }
.ui .tbl td small { font-size: 12px; }
.ui .pill { font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; line-height: 1.35; }
.ui .kpis { gap: 12px; }
.ui .kpi { border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 16px 18px; gap: 4px; }
.ui .card .kpi { border: 0; }
.ui .kpi span { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ui .kpi strong { font-family: var(--font-display); font-size: var(--fs-kpi); font-weight: var(--fw-heavy); letter-spacing: -.02em; }
.ui .kpi small { font-size: 12px; }
.ui a.kpi { transition: border-color 150ms var(--ease); }
.ui a.kpi:hover { outline: 0; border-color: var(--line2); text-decoration: none; }
.ui .statebar { height: 8px; border-radius: 4px; }
.ui .statelegend { font-size: 13px; gap: 14px; }
/* pestañas de estado: tarjetas blancas con un punto de color (antes, bloques de color fuerte) */
.ui .state-tabs { gap: 8px; margin-bottom: 14px; }
.ui .state-tabs a, .ui .state-tabs .st-unpaid, .ui .state-tabs .st-paid, .ui .state-tabs .st-shipped, .ui .state-tabs .st-received, .ui .state-tabs .st-tasted, .ui .state-tabs .st-customs, .ui .state-tabs .st-all {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--ink); position: relative;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.ui .state-tabs a:hover { border-color: var(--line2); text-decoration: none; }
.ui .state-tabs a span { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ui .state-tabs a span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted2); flex: none; }
.ui .state-tabs .st-unpaid span::before, .ui .state-tabs .st-customs span::before { background: #D9534F; }
.ui .state-tabs .st-paid span::before { background: #D9A93A; }
.ui .state-tabs .st-shipped span::before { background: #4BA3C7; }
.ui .state-tabs .st-received span::before { background: #5FA142; }
.ui .state-tabs .st-tasted span::before { background: #7D72B8; }
.ui .state-tabs a strong { font-family: var(--font); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.ui .state-tabs a.on { border: 1px solid var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
/* pestañas: segmentadas, chicas */
.ui .tabs { gap: 4px; margin-bottom: 16px; }
.ui .tabs a { padding: 6px 12px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--ink2); font-weight: 500; font-size: 13px;
  transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.ui .tabs a:hover { background: #EBF0F5; text-decoration: none; }
.ui .tabs a.on { background: #fff; color: var(--ink); border-color: var(--line2); box-shadow: 0 1px 2px rgba(16,40,60,.06); }
.ui .tabs-sub a { padding: 5px 10px; font-size: 12.5px; }
.ui .tabs b.cnt { font-size: 11px; font-weight: 500; padding: 1px 6px; background: var(--tint); }
.ui .chip span { min-height: 28px; padding: 0 10px; font-size: 12.5px; font-weight: 500; border-width: 1px; }
.ui .pager a, .ui .pager span { min-width: 32px; height: 32px; border-radius: 8px; font-size: 13px; }
.ui .pop-body { border-radius: var(--r); border-color: var(--line); box-shadow: var(--shadow-pop); transform-origin: top right; animation: ui-pop 160ms var(--ease); }
@keyframes ui-pop { from { opacity: 0; transform: scale(.97) translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .ui .pop-body { animation: none; } .ui .btn:active, .ui .link:active { transform: none; } }

/* ---------- menú lateral claro ---------- */
.ui .side { width: 232px; background: #FBFCFD; color: var(--ink); border-right: 1px solid var(--line); }
.ui .side-brand { color: var(--ink); padding: 18px 16px 14px; }
.ui .side-brand img { width: 34px; height: 34px; background: #fff; border-radius: 8px; padding: 0; }
.ui .side-brand strong { font-family: var(--font); font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.ui .side-brand small { font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.ui .side-who { background: transparent; padding: 8px 16px 12px; border-bottom: 1px solid var(--line); }
.ui .av { width: 32px; height: 32px; border-radius: 16px; background: var(--tint); color: var(--ink2); font-size: 12px; font-weight: 600; }
.ui .who-t strong { font-size: 13px; font-weight: 600; }
.ui .who-t small { font-size: 11.5px; color: var(--muted); }
.ui .side-lang { padding: 12px 16px 4px; }
.ui .plangs { border-color: var(--line2) !important; }
.ui .plangs a { color: var(--muted) !important; font-size: 11.5px !important; font-weight: 500 !important; }
.ui .plangs a.on { background: var(--ink) !important; color: #fff !important; }
.ui .side-nav { padding: 6px 0 12px; }
.ui .side-group { margin-bottom: 6px; }
.ui .side-gt { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; color: var(--muted2); padding: 12px 18px 4px; }
.ui .side-item { gap: 10px; padding: 7px 10px; margin: 1px 8px; border-radius: 8px; color: var(--ink2); font-size: 13.5px; font-weight: 400;
  transition: background-color 120ms var(--ease), color 120ms var(--ease); }
.ui .side-item svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.ui .side-item:hover { background: #EEF2F6; color: var(--ink); text-decoration: none; }
.ui .side-item.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line2), 0 1px 2px rgba(16,40,60,.06); }
.ui .side-item.on svg { color: var(--blue); }
.ui .nav-n { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #E5484D; color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.ui .side-foot { border-top: 1px solid var(--line); font-size: 12.5px; }
.ui .side-foot a { color: var(--ink2); }
.ui .side-foot small { color: var(--muted2); }
.ui .staff-main { padding: 28px 36px 48px; max-width: 1480px; }
.ui .ptitle { margin-bottom: 20px; align-items: flex-end; }
.ui .ptitle .ptitle-act { gap: 8px; align-items: center; }

/* ---------- área de empresas (cabecera y menú) ---------- */
.ui .pub-head { padding: 12px 28px; border-bottom: 1px solid var(--line); }
.ui .pub-brand img { width: 36px; height: 36px; }
.ui .pub-brand strong { font-family: var(--font); font-size: 15px; font-weight: 600; }
.ui .pub-brand small { font-size: 10px; letter-spacing: .08em; }
.ui .langs { border-color: var(--line2); }
.ui .langs a { padding: 5px 9px; font-size: 12px; font-weight: 500; }
.ui .langs a.on { background: var(--ink); }
.ui .who-c { font-size: 12.5px; }

/* ---------- área de empresas: menú, cuenta y muestras ---------- */
.ui .co-shell { gap: 32px; padding: 28px 24px; }
.ui .co-nav { gap: 2px; }
.ui .co-nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink2); font-size: 13.5px; font-weight: 400; transition: background-color 120ms var(--ease); }
.ui .co-nav a:hover:not(.on) { background: #EBF0F5; text-decoration: none; }
.ui .co-nav a.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line2), 0 1px 2px rgba(16,40,60,.06); }
.ui .acct { gap: 12px; }
.ui .acct > div { border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 16px 18px; }
.ui .acct span { font-size: 12.5px; font-weight: 500; }
.ui .acct strong { font-family: var(--font); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.ui .acct .warn { background: #fff; border-color: #F2D2D2; } .ui .acct .warn strong { color: #B42318; }
.ui .acct .ok { background: #fff; border-color: #D9EACF; }
.ui .scard, .ui .st-unpaid.scard, .ui .st-paid.scard, .ui .st-shipped.scard, .ui .st-received.scard, .ui .st-tasted.scard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.ui .scard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--muted2); }
.ui .st-unpaid.scard::before { background: #D9534F; } .ui .st-paid.scard::before { background: #D9A93A; } .ui .st-shipped.scard::before { background: #4BA3C7; }
.ui .st-received.scard::before { background: #5FA142; } .ui .st-tasted.scard::before { background: #7D72B8; }
.ui .scard h3 { font-size: 15px; font-weight: 600; }
.ui .scard p { font-size: 13px; }
.ui .cta-ship { border-radius: var(--r); }

/* ---------- piezas de cada página que tenían letra grande ---------- */
.ui .jst > div { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.ui .jst strong { font-family: var(--font); font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.ui .jst span { font-size: 12.5px; }
.ui .pend { gap: 4px; }
.ui .pend a { padding: 8px 10px; border-radius: 8px; background: transparent; font-size: 13.5px; color: var(--ink); transition: background-color 120ms var(--ease); }
.ui .pend a:hover { background: var(--hover); }
.ui .pend b { min-width: 28px; height: 22px; border-radius: 11px; font-family: var(--font); font-size: 12px; font-weight: 600; }
.ui .statelegend a { color: var(--ink2); }
.ui .jd-who h1 { font-size: 20px; }
.ui .v-big, .ui .v-rsc { font-size: 16px; font-weight: 600; }
.ui .v-code { font-size: 13.5px; font-weight: 600; padding: 3px 9px; border-radius: 7px; }
.ui .v-scs { font-family: var(--font); font-size: 13px; font-weight: 500; }
.ui .coi-sum strong, .ui .lv-kpis strong { font-family: var(--font); font-weight: 600; font-size: 20px; }
.ui .cnt-b { font-size: 11.5px; }
.ui .v-rcard, .ui .lv-col { border-radius: var(--r); }
.ui .msg-b { border-radius: 12px 12px 12px 4px; font-size: 13.5px; }
.ui .msg-b.mine { border-radius: 12px 12px 4px 12px; }
.ui .export-sets a { border-width: 1px; border-radius: 10px; }
.ui .export-sets strong { font-size: 14px; font-weight: 600; }
.ui .tb-badge { font-family: var(--font); font-weight: 600; }
.ui .empty-ico, .ui .empty svg { opacity: .6; }

@media (max-width: 860px) {
  .ui .staff-main { padding: 20px 16px 40px; }
  .ui .side { box-shadow: 0 10px 30px rgba(16,40,60,.18); }
}

/* submenús (pestañas) siempre en una sola línea: si no entran, se deslizan de costado, con el borde esfumado */
.ui .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; max-width: 100%; }
.ui .tabs::-webkit-scrollbar { display: none; }
.ui .tabs a { white-space: nowrap; flex: none; }
.ui .tabs.tabs-more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.ui .tabs.tabs-more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.ui .tabs.tabs-more-l.tabs-more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ui .filters .tabs { margin-bottom: 0; min-width: 0; }

/* detalles del repaso */
.ui input[type=file] { font: var(--fw-regular) 13px var(--font); color: var(--muted); max-width: 100%; }
.ui input[type=file]::file-selector-button {
  font: var(--fw-medium) 12.5px var(--font); color: var(--ink); background: #fff; border: var(--bw) solid var(--line2); border-radius: 7px;
  min-height: var(--h-btn-xs); padding: 0 10px; margin-right: 10px; cursor: pointer; box-shadow: 0 1px 2px rgba(16,40,60,.05);
  transition: background-color 150ms var(--ease);
}
.ui input[type=file]::file-selector-button:hover { background: var(--hover); }
.ui .tbl td.mono, .ui .tbl .mono, .ui .tbl td a.mono { white-space: nowrap; }
.ui .fld input[type=file] { min-height: 0; padding: 6px 0; border: 0; box-shadow: none; background: transparent; }
body.ui.bare { background: var(--bg); }
.ui.bare .center-card .card { box-shadow: 0 1px 2px rgba(16,40,60,.04), 0 12px 32px rgba(16,40,60,.06); }
.ui .card p, .ui .card li { font-size: var(--fs-base); }

/* ===== 0.14 · flechas en los submenús ===== */
.ui .tabs-w { display: flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; }
.ui .tabs-w > .tabs { flex: 1 1 auto; min-width: 0; }
.ui .filters .tabs-w { flex: 0 1 auto; margin-bottom: 0 !important; }
.ui .tabs-ar { flex: none; width: 30px; height: 30px; border-radius: var(--r-ctrl); border: var(--bw) solid var(--line2); background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: var(--shadow); transition: transform .15s var(--ease), background-color .15s var(--ease); }
.ui .tabs-ar:hover { background: var(--hover); }
.ui .tabs-ar:active { transform: scale(.94); }
.ui .tabs-ar[hidden] { display: none; }
.ui .tabs.tabs-more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
.ui .tabs.tabs-more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px); mask-image: linear-gradient(90deg, transparent, #000 24px); }
.ui .tabs.tabs-more-l.tabs-more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }

/* ===== 0.14 · menú lateral en acordeón ===== */
.ui .side-top { margin: 4px 0 6px; }
.ui .side-acc { margin-bottom: 2px; }
.ui .side-acc > .side-gt { display: flex; align-items: center; gap: 8px; width: calc(100% - 16px); margin: 0 8px; padding: 8px 10px; border: 0; background: none; border-radius: var(--r-ctrl);
  font: var(--fw-medium) 10.5px/1.2 var(--font); letter-spacing: .08em; color: var(--muted); cursor: pointer; text-align: left; transition: background-color .15s var(--ease), color .15s var(--ease); }
.ui .side-acc > .side-gt:hover { background: #EEF2F6; color: var(--ink); }
.ui .side-acc.open > .side-gt { color: var(--ink); }
.ui .side-acc > .side-gt > span { flex: 1; }
.ui .side-gn { background: var(--red); color: #fff; border-radius: var(--r-pill); font-size: 10px; font-weight: var(--fw-bold); padding: 1px 6px; letter-spacing: 0; line-height: 1.4; }
.ui .side-acc.open .side-gn { display: none; }
.ui .side-ch { flex: none; transform: rotate(-90deg); transition: transform .2s var(--ease); }
.ui .side-acc.open .side-ch { transform: none; }
.ui .side-gi { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s var(--ease); }
.ui .side-gi > div { overflow: hidden; min-height: 0; }
.ui .side-acc.open .side-gi { grid-template-rows: 1fr; }
.ui .side-acc.open .side-gi > div { padding-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .ui .side-gi, .ui .side-ch { transition: none; } }

/* ===== 0.14 · ediciones ===== */
.ui .ed-grid { align-items: start; }
.ui .ed-cur { border-left: 3px solid var(--green2); }
.ui .ed-name { font-size: 17px; margin: 2px 0 6px; }
.ui .ed-warn ol { margin: 6px 0 0; padding-left: 18px; }
.ui .ed-warn li { margin: 3px 0; }
.ui .ed-old { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ui td.r { text-align: right; }

/* ===== 0.14 · mesas del jurado: arrastrar con el dedo ===== */
.jchip { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.jchip img { -webkit-user-drag: none; pointer-events: none; }
.jchip.dragging { opacity: .35; }
.jghost { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; margin: 0; opacity: .95; filter: drop-shadow(0 10px 18px rgba(16,40,60,.28)); transition: none; }
.ui .ed-reset { border-left: 3px solid var(--red); }

/* ===== 0.14 · bloques que se abren y se cierran (área de empresas: resultados e historial) ===== */
.ui details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; -webkit-tap-highlight-color: transparent; }
.ui details.fold > summary::-webkit-details-marker { display: none; }
.ui details.fold > summary .fold-t { font-weight: var(--fw-bold); font-size: var(--fs-md); color: var(--ink); letter-spacing: -.01em; }
.ui details.fold > summary .fold-n { color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.ui details.fold > summary .fold-ch { margin-left: auto; color: var(--muted); flex: none; transform: rotate(-90deg); transition: transform .2s var(--ease); }
.ui details.fold[open] > summary .fold-ch { transform: none; }
.ui details.card.fold { padding-top: 16px; padding-bottom: 16px; }
.ui details.card.fold[open] > summary { margin-bottom: 14px; }
.ui details.card.fold > summary:hover .fold-t { color: var(--blue); }
/* bloques dentro de una edición */
.ui .fold-in { border: var(--bw) solid var(--line); border-radius: var(--r-ctrl); margin-top: 8px; background: #fff; }
.ui .fold-in > summary { padding: 10px 12px; border-radius: var(--r-ctrl); transition: background-color .15s var(--ease); }
.ui .fold-in > summary:hover { background: var(--hover); }
.ui .fold-in > summary .fold-t { font-size: var(--fs-base); font-weight: var(--fw-medium); }
.ui .fold-in .fold-c { min-width: 24px; text-align: center; font-size: var(--fs-xs); font-weight: var(--fw-bold); background: var(--tint); color: var(--ink2); border-radius: var(--r-pill); padding: 1px 8px; font-variant-numeric: tabular-nums; }
.ui .fold-in .fold-o, .ui .fold-in .fold-x { margin-left: auto; font-size: var(--fs-sm); color: var(--blue); }
.ui .fold-in .fold-x, .ui .fold-in[open] .fold-o { display: none; }
.ui .fold-in[open] .fold-x { display: inline; }
.ui details.fold-in > summary .fold-ch { margin-left: 0; }
.ui .fold-in .fold-b { padding: 0 12px 12px; }
.ui .fold-in .fold-b .mini-list { margin-bottom: 0; }
/* resumen de la edición: cuadraditos con los números */
.ui .htiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.ui .htile { border: var(--bw) solid var(--line); border-radius: var(--r-ctrl); padding: 8px 10px; background: var(--bg); display: flex; flex-direction: column; gap: 1px; }
.ui .htile strong { font-size: 18px; font-weight: var(--fw-bold); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.2; }
.ui .htile span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
@media (max-width: 720px) { .ui .htiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ui .hist-intro { max-width: 760px; margin: -6px 0 16px; font-size: var(--fs-base); }
.ui .ed-form .chk { margin: 10px 0; }

/* ---------- 0.17: filtros tipo chip con la misma forma que los botones ---------- */
.ui .chip-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--h-btn); padding: 0 14px; border-radius: var(--rc);
  border: var(--bw) solid var(--line2); background: #fff; color: var(--ink); font: var(--fw-medium) 13.5px/1 var(--font);
  box-shadow: 0 1px 2px rgba(16,40,60,.05); text-decoration: none; white-space: nowrap;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.ui .chip-link:hover { background: var(--hover); border-color: #C3CFDA; text-decoration: none; }
.ui .chip-link.on, .ui .chip-link.on:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.ui .chip span { border-radius: var(--rc); }
/* buscadores y controles sueltos (fuera de .filters) con el mismo aspecto que el resto */
.ui input[type=search], .ui .bulkbar select, .ui .bulkbar input[type=number] {
  font: var(--fw-regular) var(--fs-base) var(--font); color: var(--ink); min-height: var(--h-input); padding: 0 11px; border: 1px solid var(--line2); border-radius: var(--rc);
  background: #fff; box-shadow: 0 1px 2px rgba(16,40,60,.03);
}
.ui input[type=search] { padding-left: 34px; min-width: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237A8C9C' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") no-repeat 11px 50%; }
.ui input[type=search]:focus, .ui .bulkbar select:focus { border-color: #8FB4D3; box-shadow: 0 0 0 3px rgba(31,111,174,.12); outline: none; }
.ui .chips-row .inline-form { margin-left: auto; flex: 0 1 300px; }
.ui .chips-row .inline-form input[type=search] { width: 100%; }
/* búsqueda en vivo */
.ui [data-live-busy] { opacity: .55; transition: opacity .12s; }
.ui .live-none td { padding: 0 !important; }

/* ---------- planillas: ordenar y filtrar (0.19.0) ---------- */
.ui .tbl tr.tt-off { display: none; }
.ui .tbl th.tt-th { padding-top: 6px; padding-bottom: 6px; }
.ui .tt-w { display: inline-flex; align-items: center; gap: 2px; }
.ui .tt-h { appearance: none; border: 0; background: none; padding: 2px 2px; margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; text-align: left; }
.ui .tt-h:hover { color: var(--blue); }
.ui .tt-ar { font-size: 10px; opacity: .35; letter-spacing: 0; }
.ui th.tt-sorted .tt-h { color: var(--navy); font-weight: 700; }
.ui th.tt-sorted .tt-ar { opacity: 1; color: var(--blue); }
.ui .tt-fb { appearance: none; border: 1px solid transparent; background: none; width: 22px; height: 22px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: inherit; opacity: .45; cursor: pointer; }
.ui .tt-fb:hover, .ui .tt-fb:focus-visible { opacity: 1; border-color: var(--line2); background: #fff; }
.ui th.tt-filtered .tt-fb { opacity: 1; background: var(--navy); color: #fff; }
.ui .tbl th.num .tt-w, .ui .tbl th.c .tt-w { justify-content: flex-end; }
.ui .tt-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--tint); border-radius: var(--rc, 10px); padding: 6px 10px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--navy); }
.ui .tt-bar[hidden] { display: none; }
.tt-menu { position: fixed; z-index: 200; width: 270px; max-width: calc(100vw - 16px); background: #fff; border: 1px solid var(--line2, #D2E2EE); border-radius: 12px; box-shadow: 0 12px 34px rgba(14,42,71,.22); padding: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--navy); }
.tt-sorts { display: flex; flex-direction: column; border-bottom: 1px solid var(--line, #E3EBF2); padding-bottom: 6px; }
.tt-sorts button { appearance: none; border: 0; background: none; text-align: left; padding: 7px 8px; border-radius: 8px; font: inherit; color: inherit; cursor: pointer; }
.tt-sorts button:hover { background: var(--tint, #F1F7FB); }
.tt-sorts button.on { color: var(--blue, #1F6FAE); font-weight: 700; }
.tt-menu .tt-q { width: 100%; min-height: 34px; border: 1px solid var(--line2, #D2E2EE); border-radius: 8px; padding: 0 10px; font: inherit; box-sizing: border-box; }
.tt-menu label { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.tt-menu label:hover { background: var(--tint, #F1F7FB); }
.tt-menu label[hidden] { display: none; }
.tt-menu input[type=checkbox] { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--navy, #0E2A47); }
.tt-menu label span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tt-menu label small { color: var(--muted, #46607A); font-size: 12px; }
.tt-all { font-weight: 600; }
.tt-vals { max-height: min(280px, 45vh); overflow-y: auto; display: flex; flex-direction: column; }
.tt-foot { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line, #E3EBF2); padding-top: 8px; }

/* ---------- tablas anchas: barra para correr de costado siempre visible ---------- */
.ui .table-wrap { scrollbar-width: auto; scrollbar-color: #A9BED2 #EEF3F8; }
.ui .table-wrap::-webkit-scrollbar, .ui .sx-bar::-webkit-scrollbar { height: 12px; }
.ui .table-wrap::-webkit-scrollbar-track, .ui .sx-bar::-webkit-scrollbar-track { background: #EEF3F8; border-radius: 6px; }
.ui .table-wrap::-webkit-scrollbar-thumb, .ui .sx-bar::-webkit-scrollbar-thumb { background: #A9BED2; border-radius: 6px; border: 2px solid #EEF3F8; }
.ui .table-wrap::-webkit-scrollbar-thumb:hover, .ui .sx-bar::-webkit-scrollbar-thumb:hover { background: #7F9AB4; }
.ui .table-wrap.sx-r { box-shadow: inset -14px 0 12px -12px rgba(14,42,71,.28); }
.ui .table-wrap.sx-l { box-shadow: inset 14px 0 12px -12px rgba(14,42,71,.28); }
.ui .table-wrap.sx-l.sx-r { box-shadow: inset -14px 0 12px -12px rgba(14,42,71,.28), inset 14px 0 12px -12px rgba(14,42,71,.28); }
.ui .sx-bar { position: sticky; bottom: 0; z-index: 6; overflow-x: auto; overflow-y: hidden; height: 16px; background: rgba(255,255,255,.95); scrollbar-width: auto; scrollbar-color: #A9BED2 #EEF3F8; }
.ui .sx-bar[hidden] { display: none; }
.ui .sx-bar > div { height: 1px; }
@media print { .tt-fb, .tt-ar, .tt-bar, .sx-bar { display: none !important; } }

/* ---------- Cómo usar (manual) ---------- */
.ui .mn-lead { max-width: 760px; margin: -6px 0 18px; }
.ui .mn-langs { display: inline-flex; gap: 4px; background: var(--tint); padding: 4px; border-radius: 999px; flex-wrap: wrap; }
.ui .mn-langs a { padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--navy); text-decoration: none; }
.ui .mn-langs a.on { background: var(--navy); color: #fff; }
.ui .mn { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.ui .mn-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.ui .mn-q input { width: 100%; box-sizing: border-box; }
.ui .mn-toc-t { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.ui .mn-toc nav { display: flex; flex-direction: column; }
.ui .mn-toc .mn-g { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--blue); margin: 12px 0 2px; }
.ui .mn-toc a { padding: 5px 8px; border-radius: 8px; font-size: 14px; color: var(--navy); text-decoration: none; }
.ui .mn-toc a:hover { background: var(--tint); }
.ui .mn-toc a[hidden] { display: none; }
.ui .mn-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ui .mn-group { display: flex; flex-direction: column; gap: 12px; }
.ui .mn-group[hidden], .ui .mn-sec[hidden], .ui .mn-none[hidden] { display: none; }
.ui .mn-gh { font-size: 12px; letter-spacing: .1em; color: var(--blue); margin: 10px 0 0; }
.ui .mn-sec { scroll-margin-top: 16px; }
.ui .mn-sh { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ui .mn-sh h3 { margin: 0; font-size: 18px; }
.ui .mn-sec p { margin: 6px 0; line-height: 1.6; max-width: 820px; }
.ui .mn-sec ul { margin: 6px 0; padding-left: 20px; line-height: 1.6; max-width: 820px; }
.ui .mn-sec li { margin: 3px 0; }
.ui .mn-tip { background: #FBF1CC; color: #4A3B00; border-radius: 10px; padding: 9px 12px !important; }
.ui .mn-tip::before { content: '💡 '; }
@media (max-width: 900px) { .ui .mn { grid-template-columns: 1fr; } .ui .mn-toc { position: static; max-height: none; } .ui .mn-toc nav { display: none; } .ui .mn-toc-t { display: none; } }
