:root{color-scheme:light;--cargo-bar:#153958;--cargo-active:#264764;--cargo-teal:#087e91;--cargo-turquoise:#02a7be;--cargo-gold:#f5c32a;--cargo-bg:#f0fbfb;--navy:#001b44;--paper:#fff;--panel-heading:#f7f9fc;--ink:#0f172a;--muted:#64748b;--line:#dbe5ed;--green:#16a34a;--red:#dc2626}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--cargo-bg);color:var(--ink);font-family:"Segoe UI",Arial,sans-serif;font-size:13px;min-width:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid transparent;border-radius:5px;padding:7px 12px;font-weight:700;white-space:nowrap}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--cargo-turquoise);outline-offset:3px}input,select{width:100%;height:34px;background:white;border:1px solid #cbd5e1;border-radius:5px;padding:6px 9px;color:var(--ink)}
.cargo-header{min-height:82px;padding:8px 16px;display:flex;align-items:center;gap:20px;background:var(--cargo-bar);color:#fff;border-bottom:3px solid var(--cargo-gold);box-shadow:0 1px 5px #15395820}.brand{display:flex;align-items:center;gap:14px;flex-shrink:0}.cargo-logo{width:181px;height:54px;display:block;flex:none}.brand-caption{border-left:1px solid #ffffff35;padding-left:13px;white-space:nowrap}.brand-caption strong{display:block;font-size:13px;letter-spacing:.55px;color:white}.brand-caption small{display:block;margin-top:3px;color:#d5e9ef;font-size:11px}.top-nav{display:none;align-items:center;gap:5px;min-width:0;flex-wrap:wrap}.tab{border-radius:5px 5px 0 0;background:transparent;color:white;text-transform:uppercase;font-size:11px;letter-spacing:.2px;min-height:39px;display:flex;align-items:center;gap:7px;border-bottom:3px solid transparent}.tab:hover{background:#264764}.tab.active{background:var(--cargo-active);border-bottom-color:var(--cargo-gold)}.nav-icon{flex:none;vertical-align:middle}.header-actions{margin-left:auto;display:flex;align-items:center;gap:8px;flex-shrink:0}.local-badge{display:none;background:#16a34a;color:#fff;padding:7px 10px;border-radius:7px;font-size:10px;letter-spacing:.2px;font-weight:800;white-space:nowrap}.icon-btn{display:flex;align-items:center;justify-content:center;width:35px;height:35px;background:var(--cargo-teal);color:white;border-color:#35b0c0;padding:5px;border-radius:5px}.icon-btn:hover{background:#086a7d}.refresh-btn{display:none}.version{font-size:11px;font-weight:800;color:#e0edf4;border:1px solid #ffffff38;border-radius:5px;padding:5px 8px;white-space:nowrap}body:has(#workspace:not([hidden])) .top-nav{display:flex}body:has(#workspace:not([hidden])) .local-badge{display:inline-block}body:has(#workspace:not([hidden])) .refresh-btn{display:flex}
main{width:100%;margin:0 auto;padding:13px 15px 8px}h1{margin:0;font-size:21px;font-weight:750;color:var(--navy)}p{margin:5px 0;color:var(--muted);line-height:1.4}.login-wrap{display:flex;justify-content:center;align-items:flex-start;padding-top:65px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:9px;box-shadow:0 3px 10px #1539580c;overflow:hidden}.login{max-width:414px;width:100%;padding:25px;border-top:3px solid var(--cargo-teal);box-shadow:0 10px 28px #15395813}.login form{display:grid;gap:9px;margin-top:20px}.login label,.filters label{font-size:11px;letter-spacing:.15px;color:var(--navy);font-weight:700}.primary{background:var(--cargo-teal);color:white;border-color:#086a7d}.primary:hover{background:#086a7d}.quiet{background:white;color:var(--navy);border-color:#cedde8}.quiet:hover{background:#eef5fb}.error{color:var(--red);font-weight:600}.page-heading{background:var(--panel-heading);border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 9px 24px #15395815;margin-bottom:12px}.section-head{padding:12px 15px}.section-head h1{text-transform:uppercase;font-size:20px;letter-spacing:.15px}.section-head p{font-size:11px;color:#516477}.notice{background:#e3f7f6;color:#254c58;border:1px solid #c4e8e8;border-left:3px solid var(--cargo-teal);border-radius:5px;font-size:11px;padding:6px 10px;margin:0 0 10px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:11px}.stat{background:white;border:1px solid #dce7ed;border-radius:7px;box-shadow:0 2px 7px #15395808;padding:10px 12px;display:flex;flex-direction:column;gap:4px;border-top:3px solid var(--cargo-teal)}.stat:nth-child(4){border-top-color:var(--cargo-gold)}.stat span{font-size:11px;color:#53677b;font-weight:600}.stat strong{font-size:24px;color:var(--navy);font-variant-numeric:tabular-nums}.filters{display:flex;align-items:end;gap:9px;flex-wrap:wrap;padding:10px 13px 12px;background:#fff}.filters label{display:flex;flex-direction:column;gap:5px;min-width:125px}.filters .search{flex:1;min-width:180px}.table-wrap{overflow:auto;max-height:calc(100vh - 360px);min-height:120px;border-top:1px solid var(--line)}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}th,td{padding:8px 11px;text-align:left;border-bottom:1px solid #e9f0f4}th{position:sticky;top:0;background:#eaf4f7;color:var(--navy);font-size:11px;text-transform:uppercase;letter-spacing:.1px;z-index:1}tbody tr:nth-child(even){background:#f7f9fc}tbody tr:hover{background:#e3f7f6}.num{font-variant-numeric:tabular-nums;font-weight:700;color:var(--navy)}.muted{color:var(--muted)}.table-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 13px;background:#fff;color:var(--muted);font-size:11px}.table-footer div{display:flex;align-items:center;gap:8px}footer{text-align:right;font-size:10px;color:#52667b;padding:5px 15px 9px}#error{padding:0 13px}
@media(max-width:1050px){.cargo-header{gap:12px;padding:8px 12px}.brand{gap:9px}.brand-caption{padding-left:9px}.brand-caption strong{font-size:11px}.brand-caption small{font-size:10px}.cargo-logo{width:154px;height:auto}.header-actions{gap:6px}.local-badge{display:none!important}.tab{font-size:10px;padding:7px 8px}.top-nav{gap:3px}}@media(max-width:700px){.cargo-header{min-height:64px;flex-wrap:wrap;gap:4px 8px;padding:6px 10px}.brand-caption{border-left:0;padding-left:0}.brand-caption strong{font-size:10px}.brand-caption small{display:none}.cargo-logo{width:122px}.header-actions{gap:5px}.icon-btn{width:30px;height:30px}.version{font-size:10px;padding:4px 5px}.top-nav{order:3;width:100%;padding-top:3px;gap:4px}.tab{font-size:10px;min-height:31px;padding:4px 8px}.nav-icon{width:15px;height:15px}main{padding:9px 8px 6px}.page-heading{margin-bottom:8px}.section-head{padding:9px 10px}.section-head h1{font-size:17px}.notice{margin-bottom:8px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:8px}.stat{padding:7px 9px}.stat strong{font-size:20px}.filters{padding:8px;gap:6px}.filters label{min-width:95px;flex:1}.filters .search{min-width:120px}.table-wrap{max-height:48vh;min-height:120px}.table-footer{padding:6px 8px;flex-wrap:wrap}.login-wrap{padding:34px 13px}.login{padding:20px}footer{padding-right:8px}}
@media(min-width:1051px) and (min-height:650px){body:has(#workspace:not([hidden])){height:100dvh;display:flex;flex-direction:column;overflow:hidden}.cargo-header,footer{flex:none}#workspace:not([hidden]){flex:1;min-height:0;display:flex;flex-direction:column}#workspace>.page-heading,#workspace>.notice,#workspace>.cards{flex:none}#workspace>.panel{flex:1;min-height:0;display:flex;flex-direction:column}#workspace>.panel>.filters,#workspace>.panel>.table-footer,#workspace>.panel>#error{flex:none}#workspace>.panel>.table-wrap{flex:1;min-height:0;max-height:none;overflow:auto}}

.fx-card{display:flex;flex-direction:column;gap:2px;min-width:146px;padding:5px 9px;background:#e3f7f6;border:1px solid #b0e1e3;border-radius:6px;color:#153958;line-height:1.15;font-variant-numeric:tabular-nums;white-space:nowrap}.fx-card span{font-size:9px;font-weight:750;letter-spacing:.15px}.fx-card strong{font-size:17px;color:#0a6352}.fx-card small{font-size:10px}.fx-card[data-state="stale"],.fx-card[data-state="unavailable"]{background:#fff5df;border-color:#f5c32a;color:#725314}.fx-card[data-state="stale"] strong,.fx-card[data-state="unavailable"] strong{color:#725314}.fx-card[data-state="loading"] strong{color:#64748b}
@media(max-width:1050px){.cargo-header{flex-wrap:wrap}.fx-card{min-width:125px}}@media(max-width:700px){.header-actions{flex-wrap:wrap;max-width:100%;margin-left:0}.fx-card{min-width:120px;padding:4px 7px}.fx-card strong{font-size:15px}.fx-card small{font-size:9px}.brand{max-width:100%}.top-nav{order:4}}
.fx-card{text-align:left;cursor:pointer}.fx-card:hover{border-color:#02a7be}.fx-link{font-weight:750;text-decoration:underline}.fx-card:focus-visible{outline:2px solid #f5c32a;outline-offset:2px}#fxDialog{width:min(720px,95vw);max-height:86vh;padding:0;border:1px solid #bcd1db;border-radius:10px;color:var(--ink);box-shadow:0 16px 65px #001b4440}#fxDialog::backdrop{background:#001b4477}.fx-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:15px;background:var(--cargo-bar);border-bottom:3px solid var(--cargo-gold)}.fx-dialog-head h1,.fx-dialog-head p{color:#fff}.fx-dialog-head p{font-size:11px}.fx-dialog-head button{font-size:20px;padding:1px 10px}.fx-status{padding:5px 13px;color:var(--navy)}.fx-table{max-height:44vh;min-height:70px}.fx-bottom{padding:12px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.fx-bottom a{color:#087e91}

/* R5: compact controls, preserve CARGODEC identity and visible version. */
.cargo-header{flex-wrap:wrap;gap:8px 14px}.brand{gap:10px}.cargo-logo{max-width:160px}.header-actions{flex-wrap:wrap;max-width:100%;gap:6px}.top-nav{flex:1 1 auto}.control-warning{background:#fff5df;border-color:#e5c769;color:#725314;font-weight:650}.control-context{margin-bottom:8px;flex:none}.control-cards{grid-template-columns:repeat(5,minmax(0,1fr))}.control-cards .stat:nth-child(2){border-top-color:#16a34a}.control-cards .stat:nth-child(3){border-top-color:#d97706}.control-cards .stat:nth-child(4){border-top-color:#2563eb}.control-cards .stat:nth-child(5){border-top-color:#dc2626}.control-status{font-size:11px;padding:5px 12px;margin:0;color:var(--muted)}.control-filters{flex-wrap:wrap}.control-filters label{min-width:110px}.control-filters input{min-width:110px}.ctl-state{font-weight:700}.ctl-state.disponible{color:#166534}.ctl-state.reservado{color:#92400e}.ctl-state.asignado{color:#1d4ed8}.ctl-state.cancelado{color:#b91c1c}.ctl-row-button{font-size:11px;padding:4px 7px;margin:2px}.control-dialog{width:min(540px,95vw);max-height:88vh;padding:0;border:1px solid #bcd1db;border-radius:10px;box-shadow:0 16px 65px #001b4440;color:var(--ink)}.control-dialog::backdrop{background:#001b4477}.control-form{display:grid;gap:10px;padding:16px}.control-form label{display:grid;gap:4px;font-size:12px;font-weight:650;color:var(--navy)}.control-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.control-form .check{display:flex;align-items:center;font-weight:500}.control-form .check input{width:16px;height:16px;flex:none}.control-history{width:min(1050px,96vw)}.control-history .table-wrap{max-height:58vh}.control-table .table-wrap{min-height:80px}.control-table td{white-space:normal;overflow-wrap:anywhere}.control-table td:last-child{min-width:185px}.control-context .filters{align-items:flex-end}
@media(min-width:1051px) and (min-height:650px){#controlPanel:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto}#controlPanel>.notice,#controlPanel>.cards{flex:none}.control-table{flex:1;min-height:120px;display:flex;flex-direction:column}.control-table>.table-wrap{flex:1;min-height:50px;max-height:none;overflow:auto}.control-table>.filters,.control-table>.table-footer{flex:none}}
@media(max-width:800px){.control-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.control-cards .stat:last-child{grid-column:span 2}.cargo-logo{max-width:122px}.top-nav{flex-basis:100%}}
/* R5A: client catalog and assignment; no change to shared palette. */
#ctlClientSummary:not(:empty){background:#e3f7f6;color:#153958;border-top:1px solid #c4e8e8;padding:7px 12px}#ctlClientsDialog .table-wrap{max-height:36vh}#ctlClientForm{border-top:1px solid #dce7ed}#ctlClientForm h2{font-size:16px;color:#153958;margin:0}#ctlClientFilter{max-width:260px}#ctlClient{width:100%;max-width:100%}.client-low{color:#92400e;font-weight:700}.control-dialog[open]{overflow:auto}.control-form input,.control-form select{min-width:0;width:100%}.control-form .check input{width:16px}.control-filters button{white-space:nowrap}

@media(min-width:1000px){.control-cards{grid-template-columns:repeat(4,minmax(0,1fr));}}
#ctlSyncInfo,#ctlNextInfo{margin:4px 8px;}

/* R7A */
#ctlRange,#ctlBlock,#ctlClientNew,#ctlClientsRows button:first-child,#ctlRows .ctl-row-button,#ctlClientForm{display:none!important}.monitor-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.monitor-box{padding:14px}.monitor-box h2,.monitor-head h2{font-size:14px;margin:0 0 6px;color:#153958}.monitor-box strong{font-size:22px;color:#087e91}.monitor-box p{font-size:12px;overflow-wrap:anywhere}.monitor-head{display:flex;justify-content:space-between;align-items:center;margin:15px 0 9px;gap:8px}.monitor-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.m-worker{background:white;border:1px solid #c5dce1;border-radius:6px;padding:11px;min-width:0}.m-worker b{font-size:15px;color:#153958}.m-worker strong{display:block;font-size:22px;margin:5px 0;color:#087e91}.m-worker small{display:block;color:#526878;font-size:11px}.monitor-foot{font-size:12px;margin:8px 0}.monitor-box strong[data-bad=true]{color:#b45309}#monitorPanel{min-height:0;overflow:auto}@media(max-width:850px){.monitor-top{grid-template-columns:1fr}.monitor-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:520px){.monitor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* R7B: keep all top-level panels inside viewport; retain existing CARGODEC palette. */
html,body{width:100%;max-width:100%;margin:0;min-width:0}main,#workspace,#monitorPanel,.monitor-top,.monitor-grid,.pilot-console{max-width:100%;min-width:0}.cargo-header{width:100%;max-width:100%;min-width:0;flex-wrap:wrap;gap:8px 12px}.brand{min-width:0;max-width:100%}.header-actions{min-width:0;max-width:100%;flex-wrap:wrap;justify-content:flex-end}.top-nav{min-width:0;flex:1 1 auto}.monitor-box,.m-worker{min-width:0;overflow-wrap:anywhere}#monitorPanel{padding-right:2px;padding-bottom:4px;overflow-x:hidden}.pilot-console{padding:10px 12px;margin:10px 0}.pilot-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.pilot-head h2{margin:0;font-size:15px;color:var(--navy)}.pilot-head p{font-size:11px;margin:3px 0}.pilot-actions{display:flex;gap:6px;flex-wrap:wrap}.pilot-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:8px 0}.pilot-stats>div{background:#f3f8fa;border:1px solid var(--line);border-radius:5px;padding:6px 9px;min-width:0}.pilot-stats span{display:block;color:var(--muted);font-size:10px}.pilot-stats strong{display:block;font-size:16px;color:var(--navy);overflow-wrap:anywhere}.pilot-worker{padding:7px 10px}.pilot-worker b{font-size:12px}.pilot-worker strong{font-size:16px;margin:3px 0}.pilot-worker[data-state=LEYENDO]{border-color:var(--cargo-teal);background:#e7f7f8}.pilot-worker[data-state=OK] strong{color:#15803d}.pilot-worker[data-state=ERROR] strong{color:#b91c1c}.pilot-worker[data-state=LIBRE] strong,.pilot-worker[data-state=PENDIENTE] strong{color:#64748b}.pilot-note{font-size:11px;line-height:1.35}.pilot-history,.lab-details{margin-top:6px;border:1px solid var(--line);padding:7px 9px;border-radius:5px;background:white;min-width:0;max-width:100%}summary{cursor:pointer;color:var(--navy);font-weight:700;font-size:12px}.pilot-table{overflow:auto;max-height:180px;margin-top:7px}.pilot-table th,.pilot-table td{padding:5px 8px}.pilot-table table{white-space:nowrap}.monitor-box{padding:10px 13px}.monitor-box p{margin:3px 0}.monitor-box strong{font-size:20px}
@media(max-width:1050px){.cargo-header .top-nav{flex:1 0 100%;order:4}.header-actions{margin-left:auto}.pilot-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:520px){.header-actions{margin-left:0;justify-content:flex-start}.pilot-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.pilot-head{align-items:flex-start}.pilot-actions{width:100%}.pilot-console{padding:9px}.pilot-worker strong{font-size:14px}}
/* R7D Dashboard: compact, same CARGODEC palette, no external scripts. */
#dashboardPanel{min-width:0;max-width:100%}.dash-filter{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px 12px;padding:10px 12px}.dash-field{display:flex;flex-direction:column;gap:4px;min-width:0}.dash-field label{font-size:11px;font-weight:700;color:#526779}.dash-field input,.dash-field select{min-width:0;max-width:100%;border:1px solid #cbd8e3;background:#fff;border-radius:5px;padding:7px 8px;color:#153958}.dash-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin:8px 0}.dash-charts{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(260px,1fr);gap:10px}.dash-chart{padding:12px;min-width:0}.dash-heading h2{font-size:14px;margin:0;color:#153958}.dash-heading p,.dash-source{font-size:11px;color:#526779;margin:4px 0}.dash-legend{display:flex;gap:6px 12px;flex-wrap:wrap;margin:8px 0}.dash-legend span{display:flex;align-items:center;gap:5px;font-size:11px}.dash-daily{max-width:100%;overflow-x:auto}.dash-svg{width:100%;height:auto;display:block;max-height:280px}.dash-long .dash-svg{width:auto;min-width:100%;max-height:none;height:235px}.dash-totals svg{width:100%;height:auto;max-height:260px}.dash-totals{max-height:295px;overflow:auto}.dash-detail{margin-top:8px}.dash-detail summary{padding:9px 12px;font-weight:700;color:#153958;cursor:pointer}.dash-detail .table-wrap{max-height:250px;overflow:auto}.dash-total-row{font-weight:700;background:#e3f7f6}.dash-detail td:not(:first-child),.dash-detail th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}#dashError:empty,#dashEmpty:empty{display:none}
@media(min-width:1051px) and (min-height:650px){#dashboardPanel:not([hidden]){flex:1;min-height:0;overflow:auto}}
@media(max-width:900px){.dash-charts{grid-template-columns:1fr}.dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-daily .dash-svg{min-width:640px}.dash-totals svg{max-height:220px}}@media(max-width:500px){.dash-field{flex:1 1 44%}.dash-field input,.dash-field select{width:100%}.dash-kpis .stat{padding:8px}.dash-kpis .stat strong{font-size:20px}.dash-chart{padding:8px}}
/* R7E overlay: dashboard only, compatible with original R7D. */
.dash-e-actions{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto}.dash-e-summary{display:flex;gap:7px 20px;flex-wrap:wrap;margin:4px 0 9px;padding:7px 10px;background:#fff;border:1px solid #dbe5ed;border-radius:6px;color:#153958;font-size:12px}.dash-e-summary span{min-width:0;overflow-wrap:anywhere}.dash-e-summary span:first-child{font-weight:700}#dashReportMeta{font-weight:600}#dashAdu{max-width:235px}.dash-totals svg{max-height:none}.dash-totals{max-height:295px}.dash-detail th:nth-child(2),.dash-detail td:nth-child(2){text-align:left}
@media(max-width:700px){.dash-e-actions{margin-left:0}.dash-e-summary{flex-direction:column;gap:4px}.dash-totals svg{max-height:none}#dashAdu{max-width:100%}}
@media print{@page{size:landscape;margin:12mm}body.dash-print{background:white!important;height:auto!important;overflow:visible!important;color:#000;print-color-adjust:exact;-webkit-print-color-adjust:exact}body.dash-print .cargo-header,body.dash-print footer,body.dash-print .dash-filter,body.dash-print .dash-detail summary,body.dash-print #loginPanel,body.dash-print #fxDialog{display:none!important}body.dash-print main,body.dash-print #workspace,body.dash-print #dashboardPanel,body.dash-print #dashResults{display:block!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;padding:0!important}body.dash-print #workspace[hidden],body.dash-print #dashboardPanel[hidden],body.dash-print #dashResults[hidden]{display:none!important}body.dash-print .panel,body.dash-print .stat,body.dash-print .page-heading{box-shadow:none!important}body.dash-print .dash-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}body.dash-print .dash-charts{grid-template-columns:2fr 1fr;break-inside:avoid}body.dash-print .dash-daily,body.dash-print .dash-totals,body.dash-print .dash-detail .table-wrap{overflow:visible!important;max-height:none!important;min-height:0!important}body.dash-print .dash-svg,body.dash-print .dash-totals svg{width:100%!important;height:auto!important;min-width:0!important;max-height:240px!important}body.dash-print .dash-detail{overflow:visible!important;break-before:auto}body.dash-print .dash-detail table{white-space:normal;font-size:9px}body.dash-print .dash-detail th{position:static;font-size:9px}body.dash-print .dash-detail thead{display:table-header-group}body.dash-print .dash-detail tr{break-inside:avoid}body.dash-print .dash-detail th,body.dash-print .dash-detail td{padding:4px 5px}}
@media screen and (min-width:1051px){#dashboardPanel .dash-svg{max-height:225px}#dashboardPanel .dash-long .dash-svg{max-height:none;height:215px}#dashboardPanel .dash-filter{padding:8px 12px}#dashboardPanel .dash-chart{padding:10px}}

/* R8F history */
.r8f-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}.r8f-cards .panel{padding:16px;min-width:0}.r8f-cards small{display:block;color:#475569;font-size:12px}.r8f-cards strong{display:block;font-size:26px;color:#153958;margin-top:6px}.history-filters{flex-wrap:wrap}.history-status{padding:8px 16px;font-size:12px;color:#475569}.history-pager{display:flex;gap:12px;align-items:center;justify-content:flex-end;padding:12px}.hist-error{color:#b91c1c;font-weight:600}.hist-ok{color:#15803d;font-weight:600}@media(max-width:800px){.r8f-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Monitor operativo: estados de evidencia, no inferencias de actividad. */
#opWorkers .m-worker strong{font-size:15px;min-height:36px;line-height:1.25;color:#64748b}#opWorkers .m-worker[data-state="busy"]{border-left:4px solid #087e91}#opWorkers .m-worker[data-state="busy"] strong{color:#087e91}#opWorkers .m-worker[data-state="free"] strong{color:#15803d}#opWorkers .m-worker small{overflow-wrap:anywhere;font-size:12px}#monitorPanel .pilot-console>h2{font-size:14px;color:#153958}#monitorPanel .pilot-console>p{font-size:12px}

.q-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.q-customs{border:1px solid #d6e2e8;border-radius:8px;padding:9px 12px;margin:0}.q-customs legend{font-weight:600}.q-customs #qCustoms{display:flex;flex-wrap:wrap;gap:8px 18px}.q-customs label{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:13px}.q-customs input{width:auto;margin:0}.q-actions,.q-totals{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}.q-totals{justify-content:flex-start;margin:12px 0}.q-totals span{background:#edf7f8;border-radius:6px;padding:7px 12px}.q-actions span{font-size:13px;color:#476474}@media(max-width:650px){.q-fields{grid-template-columns:1fr}.q-actions button{width:100%}}
