/* Mismo lenguaje visual que Trustway Logistics y Carrier */
:root {
  --bg: #f5f6f8; --side: #fff; --side-text: #3f4652; --side-text-h: #191c22; --side-hover: #f2f4f7; --side-sep: #8a919c;
  --panel: #fff; --panel-2: #f8f9fb; --panel-3: #eef0f3; --border: #e6e8ec; --border-2: #d5d9e0;
  --text: #191c22; --text-2: #3f4652; --muted: #6b7280;
  --green: #15803d; --green-soft: #e8f5ec; --amber: #b45309; --amber-soft: #fdf3e1; --red: #c0262d; --red-soft: #fcebeb;
  --primary: #0865ce; --primary-2: #0652a6; --primary-soft: rgba(8, 101, 206, .09);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04); --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: 'Open Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 13.5px; line-height: 1.45; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
a { color: var(--primary); text-decoration: none; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { width: 100%; min-width: 0; height: 36px; border: 1px solid var(--border-2); border-radius: 8px; padding: 0 11px; background: #fff; font-size: 13px; }
textarea { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8, 101, 206, .12); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 500; color: var(--text-2); min-width: 0; }
label.chk { flex-direction: row; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); }
.hint { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.mu { color: var(--muted); font-size: 12.5px; margin: 0; }
.err { color: var(--red); font-size: 12.5px; }
.err:empty { display: none; }
.sp { flex: 1; }
.r { text-align: right; }
.nw { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--panel); color: var(--text); font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .12s; }
.btn:hover { background: var(--panel-2); }
.btn svg.i { width: 16px; height: 16px; }
.btn.pri { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.pri:hover { background: var(--primary-2); }
.btn.sm { height: 28px; padding: 0 9px; font-size: 12px; }
.btn.lg { height: 40px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: .6; pointer-events: none; }
.iconbtn { width: 36px; height: 36px; border-radius: 9px; display: inline-grid; place-items: center; color: var(--text-2); background: transparent; border: 0; cursor: pointer; }
.iconbtn:hover { background: var(--panel-2); color: var(--text); }
.ib { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--muted); }
.ib:hover { background: var(--panel-3); color: var(--text); }
.ib svg.i { width: 15px; height: 15px; }
.lnk { border: 0; background: none; color: var(--primary); cursor: pointer; padding: 3px 6px; font-size: 12.5px; font-weight: 500; border-radius: 5px; }
.lnk:hover { background: var(--primary-soft); text-decoration: none; }
.lnk.bad { color: var(--red); } .lnk.bad:hover { background: var(--red-soft); }

/* Acceso (igual que Logistics y Carrier) */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 540px); background: #fff; }
.auth-aside { position: relative; overflow: hidden; padding: 44px 56px; display: flex; flex-direction: column; justify-content: flex-end; gap: 32px; background: linear-gradient(160deg, #f3f6fb 0%, #fff 55%, #e7eef8 100%); border-right: 1px solid #e1e8f2; }
.auth-art { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--primary); pointer-events: none; }
.auth-intro, .auth-foot { position: relative; }
.auth-intro { max-width: 470px; margin: auto 0; }
.auth-intro h2 { font-size: 28px; line-height: 1.22; font-weight: 650; color: #191c22; margin: 0 0 12px; letter-spacing: -.02em; }
.auth-intro p { color: #4f5866; font-size: 15px; line-height: 1.55; margin: 0 0 28px; }
.auth-intro ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-intro li { display: flex; align-items: center; gap: 12px; color: #343a46; font-size: 14.5px; }
.auth-intro li > span:first-child { width: 34px; height: 34px; border-radius: 9px; background: #fff; border: 1px solid #e1e8f2; display: grid; place-items: center; color: var(--primary); flex: none; }
.auth-intro li svg.i { width: 18px; height: 18px; stroke-width: 1.6; }
.auth-foot { color: #8a93a2; font-size: 12px; }
.auth { display: flex; align-items: center; justify-content: center; padding: 56px 32px 40px; }
.auth-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.auth-logo { height: 40px; width: auto; max-width: min(100%, 300px); object-fit: contain; align-self: center; }
.auth-tit { text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: -8px 0 14px; }
.auth label.f { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); gap: 7px; }
.ifield { position: relative; display: block; }
.ifield > span:first-child svg.i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #9aa1ac; stroke-width: 1.6; pointer-events: none; }
.ifield .input { height: 46px; font-size: 14.5px; background: #f6f7f9; color: #191c22; border: 1px solid #e6e8ec; border-radius: 10px; padding-left: 44px; }
.ifield .input::placeholder { color: #a7adb7; }
.ifield .input:hover { border-color: #d5d9e0; }
.ifield .input:focus { background: #fff; border-color: var(--primary); }
.ifield:focus-within > span:first-child svg.i { color: var(--primary); }
.ifield.pw .input { padding-right: 46px; }
.pw-ver { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 0; color: #8a919c; cursor: pointer; border-radius: 7px; }
.pw-ver:hover { color: var(--primary); background: #eef0f3; }
.btn-brand { height: 48px; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 2px; }
.btn-brand:hover { background: var(--primary-2); }
.btn-brand:disabled { opacity: .65; }
.msg-err { font-size: 13px; border-radius: 8px; padding: 10px 12px; background: #fdf2f2; color: #b42318; border: 1px solid #f5d5d2; }
.msg-err:empty { display: none; }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth { min-height: 100vh; align-items: flex-start; padding: 72px 20px 32px; }
}

/* Estructura */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px 14px; color: var(--side-text); z-index: 40; }
.brand { display: flex; flex-direction: column; gap: 4px; padding: 2px 10px 22px; }
.brand img { height: 24px; width: auto; align-self: flex-start; }
.brand span { font-size: 11.5px; color: var(--side-sep); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; flex: 1; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: var(--side-text); font-weight: 500; font-size: 13.5px; }
.nav a svg.i { color: var(--side-sep); stroke-width: 1.7; }
.nav a:hover { background: var(--side-hover); color: var(--side-text-h); }
.nav a:hover svg.i { color: var(--side-text-h); }
.nav a.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav a.on svg.i { color: var(--primary); }
.nav .sep { margin: 16px 10px 6px; font-size: 11.5px; color: var(--side-sep); font-weight: 500; }
.nav .cnt { margin-left: auto; background: var(--red-soft); color: var(--red); border-radius: 9px; font-size: 11px; padding: 0 7px; font-weight: 600; line-height: 18px; }
.side-ver { padding: 10px 10px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 11.5px; }
.side-bg { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--border); background: var(--panel); position: sticky; top: 0; z-index: 30; }
.top .burger { display: none; }
.spacer { flex: 1; }
.userbox { display: flex; align-items: center; gap: 10px; padding-left: 10px; border-left: 1px solid var(--border); }
.userbox .n { font-weight: 600; font-size: 12.5px; line-height: 1.15; }
.userbox .r { color: var(--muted); font-size: 11.5px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; font-weight: 600; color: var(--primary); font-size: 12px; }
.content { padding: 22px 24px 32px; flex: 1; min-width: 0; }
.page-h { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-h h1 { font-size: 20px; font-weight: 650; letter-spacing: -.015em; }
.page-h .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page { display: grid; gap: 16px; align-content: start; min-width: 0; }

/* Tarjetas */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); min-height: 48px; flex-wrap: wrap; }
.card-h h2 { font-size: 14px; font-weight: 600; }
.card-h .sub { color: var(--muted); font-size: 12px; }
.card-b { padding: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; gap: 10px; min-width: 0; box-shadow: var(--shadow); }
.kpi .ic { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--panel-2); border: 1px solid var(--border); color: var(--primary); }
.kpi .ic.ok { color: var(--green); } .kpi .ic.warn { color: var(--amber); } .kpi .ic.bad { color: var(--red); }
.kpi > div:last-child { min-width: 0; flex: 1; }
.kpi .k { font-size: 12px; color: var(--text-2); font-weight: 500; }
.kpi .v { font-size: 24px; font-weight: 650; line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; }
.kpi .d { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tablas */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--panel-2); }
.tbl th.r { text-align: right; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.clic { cursor: pointer; } .tbl tr.clic:hover td { background: var(--panel-2); }
.tbl .sub { color: var(--muted); font-size: 12px; }
.tbl .acc { white-space: nowrap; text-align: right; }
.empty { padding: 32px 20px; text-align: center; color: var(--muted); }
.empty svg.i { width: 30px; height: 30px; color: #b8bec8; margin-bottom: 6px; }
.empty b { display: block; color: var(--text); font-size: 14px; margin-bottom: 3px; font-weight: 600; }

.st { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12.5px; }
.st:before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #9aa1ac; }
.st.ok:before { background: var(--green); } .st.warn:before { background: var(--amber); } .st.bad:before { background: var(--red); }
.st-err { color: var(--red); font-size: 12px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 6px; padding: 1px 7px; background: var(--panel-3); color: var(--text-2); white-space: nowrap; }
.pill.ok { background: var(--green-soft); color: var(--green); } .pill.warn { background: var(--amber-soft); color: var(--amber); } .pill.bad { background: var(--red-soft); color: var(--red); } .pill.br { background: var(--primary-soft); color: var(--primary); }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }

.sw { position: relative; width: 34px; height: 20px; flex: none; display: inline-block; }
.sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw span { position: absolute; inset: 0; background: #cfd4dc; border-radius: 20px; cursor: pointer; transition: background .15s; }
.sw span:before { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: transform .15s; }
.sw input:checked + span { background: var(--primary); }
.sw input:checked + span:before { transform: translateX(14px); }
.nm { display: flex; align-items: center; gap: 12px; }
.nm b { font-weight: 600; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 20px; }
.kv .k { font-size: 12px; color: var(--muted); }
.kv .v { font-weight: 600; word-break: break-word; }

/* Gráfica por hora */
.chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; }
.chart .b { flex: 1; background: var(--primary); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .85; }
.chart .b:hover { opacity: 1; }
.chart .b.z { background: var(--panel-3); opacity: 1; }
.chart-x { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 6px; }

/* Listas */
.lst { display: grid; }
.lst .it { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); color: inherit; }
.lst .it:last-child { border-bottom: 0; }
.lst .it .t { flex: 1; min-width: 0; }
.lst .it small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Registro y respuestas crudas */
.log { font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; height: calc(100vh - 200px); min-height: 320px; overflow: auto; padding: 6px 0; }
.log .ln { display: grid; grid-template-columns: 170px 180px minmax(0, 1fr); gap: 12px; padding: 2px 16px; }
.log .ln:hover { background: var(--panel-2); }
.log .ln.e { color: var(--red); background: #fffafa; }
.log .ln .h { color: var(--muted); white-space: nowrap; }
.log .ln .s { color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
pre.raw { margin: 0; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 12px 14px; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: auto; max-height: 60vh; white-space: pre-wrap; word-break: break-all; }
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filtros select, .filtros input { width: auto; min-width: 180px; }

/* Diálogos */
dialog { border: 1px solid var(--border); border-radius: 12px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px); color: var(--text); box-shadow: 0 16px 48px rgba(16, 24, 40, .18); }
dialog.wide { width: min(1100px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(16, 24, 40, .35); }
dialog form { display: contents; }
.dh { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.dh h3 { font-size: 15px; }
.x { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.db { padding: 16px 18px; overflow: auto; max-height: calc(100vh - 170px); }
.df { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--panel-2); border-radius: 0 0 12px 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.full { grid-column: 1 / -1; }
details.adv { border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
details.adv summary { cursor: pointer; padding: 9px 12px; font-weight: 600; font-size: 12.5px; color: var(--text-2); }
details.adv[open] summary { border-bottom: 1px solid var(--border); }
details.adv > div { padding: 12px; }
textarea.code { font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 260px; }

/* Mapas */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; height: min(68vh, 620px); }
.map { height: 100%; min-height: 300px; }
.map-list { overflow: auto; border-left: 1px solid var(--border); font-size: 12.5px; }
.map-list div { padding: 8px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.map-list div:hover { background: var(--panel-2); }
.map-list small { display: block; color: var(--muted); }
.lbl { background: #fff; border: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); padding: 1px 6px; font: 600 11px 'Open Sans', Arial, sans-serif; border-radius: 3px; }
.lbl:before { display: none; }

/* Asistente MARIA */
.maria-hero { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.maria-hero .ic { width: 40px; height: 40px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.maria-hero h2 { font-size: 15px; }
.maria-hero p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.drop { border: 1.5px dashed var(--border-2); border-radius: 9px; padding: 22px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; color: var(--muted); font-size: 12.5px; }
.drop:hover, .drop.on { border-color: var(--primary); background: var(--primary-soft); }
.drop svg.i { width: 26px; height: 26px; color: var(--primary); }
.drop b { display: block; color: var(--text); margin: 6px 0 2px; font-weight: 600; font-size: 13.5px; }
.files { display: grid; gap: 6px; }
.files:empty { display: none; }
.files div { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.files div > svg.i { color: var(--muted); width: 16px; height: 16px; }
.files div span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pasos { display: grid; padding: 6px 0; }
.paso { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; padding: 7px 16px; align-items: start; }
.paso .p { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); color: var(--text-2); margin-top: 1px; }
.paso .p svg.i { width: 12px; height: 12px; stroke-width: 2.6; }
.paso.ok .p { background: var(--green-soft); color: var(--green); } .paso.aviso .p { background: var(--amber-soft); color: var(--amber); } .paso.error .p { background: var(--red-soft); color: var(--red); }
.paso small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.spin { width: 13px; height: 13px; border: 2px solid var(--border-2); border-top-color: var(--primary); border-radius: 50%; animation: g .8s linear infinite; }
@keyframes g { to { transform: rotate(360deg); } }
.res-ok, .res-bad { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius); border: 1px solid; }
.res-ok { background: var(--green-soft); border-color: #cfe9d8; color: #14532d; }
.res-bad { background: var(--amber-soft); border-color: #f3dfb8; color: #7c3d06; }
.res-ok svg.i, .res-bad svg.i { width: 20px; height: 20px; margin-top: 1px; }
.explica { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--primary); padding: 11px 14px; border-radius: 8px; white-space: pre-wrap; }
.avisos { margin: 4px 0 0; padding-left: 18px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #191c22; color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 13px; z-index: 9999; }

@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 1001; transform: translateX(-100%); transition: transform .2s; }
  .app.abierto .side { transform: none; box-shadow: 0 0 24px rgba(16, 24, 40, .12); }
  .app.abierto .side-bg { display: block; position: fixed; inset: 0; background: rgba(16, 24, 40, .35); z-index: 1000; }
  .top { padding: 0 12px; }
  .top .burger { display: inline-grid; }
  .content { padding: 16px 14px 28px; }
  .page-h h1 { font-size: 18px; }
  .page-h .actions { margin-left: 0; width: 100%; }
  .g2, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .map-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 160px; height: 70vh; }
  .map-list { border-left: 0; border-top: 1px solid var(--border); }
  .log .ln { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 6px 14px; border-bottom: 1px solid var(--border); }
  .filtros select, .filtros input { flex: 1 1 160px; min-width: 0; }
  .userbox > div { display: none; }
}
@media (max-width: 560px) { .kpis { grid-template-columns: minmax(0, 1fr); } }
