/* Paleta única de lectura. El dosier queda detrás de las superficies, nunca del texto de un campo. */
:root{color-scheme:dark;--background:#101722;--surface:#1b2534;--surface-alt:#222f42;--text:#f1f5fc;--muted:#c4d0e2;--border:#667b99;--reading-surface:#1b2534;--accent:#8fc4ff}
body{color:#f1f5fc;background-color:#101722}
body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),textarea,select){background:#26364c!important;color:#f5f8ff!important;-webkit-text-fill-color:#f5f8ff!important;border-color:#8a9ebc!important;opacity:1!important;color-scheme:dark}
body :is(input,textarea)::placeholder{color:#c0cee1!important;-webkit-text-fill-color:#c0cee1!important;opacity:1!important}
body select option{color:#f5f8ff!important;background:#26364c!important}
body :is(input[type=checkbox],input[type=radio]){accent-color:#89bbff;color-scheme:dark}
body :is(input,select,textarea):disabled{background:#293345!important;color:#dbe5f4!important;-webkit-text-fill-color:#dbe5f4!important;opacity:1!important}
body .button{color:#edf4ff;border-color:#8a9ebc;background-color:#2d3e56}
body .button-primary{background:#215a91;color:#fff;border-color:#8fc4ff}
body .button:hover:not(:disabled){background:#3b567b;color:#fff}
body .button:disabled{color:#c6d2e3;background:#263044;opacity:1;border-style:dashed}
body :is(.icon-button,.sort-button){color:#edf4ff}
body :is(.login-card,.panel,.settings-card,.settings-section,.account-card,.catalog-card,.detail-section,.detail-header-field,.detail-highlight,.field-order-brief,.installation-flow-section,.maintenance-card,.load-card){color:#f1f5fc;background-color:var(--panel-protected-glass,#1b2534)}
body .panel{background-color:var(--panel-glass,#1b2534)}
body :is(.dialog,.login-card){--surface:#1b2534;--surface-2:#222f42;--surface-3:#2d3e56;--border:#667b99;--text:#f1f5fc;--muted:#c4d0e2;--brand:#8fc4ff;--brand-strong:#b9d8ff;--brand-soft:rgba(143,196,255,.15);color:#f1f5fc;background:var(--panel-glass,#182231);border-color:#7c90ae}
body .dialog.dialog-detail{background:var(--detail-glass,#182231)}
body :is(#panelSceneTitle,#panelSceneCaption){color:#edf4ff!important;text-shadow:0 1px 3px #000}
body .filter-multi-caret{color:#e0ebfc}
body .field-brand-logo{background:#182231;border:1px solid #7c90ae}
body #recordDialog :is(strong,h2,h3,h4,legend,label,summary){color:#f1f5fc!important}
body #recordDialog{--muted:#c4d0e2;--text:#f1f5fc;--panel-muted-ink:#c4d0e2}
body #recordDialog :is(p:not([role=alert]):not(.form-error),small){color:#d0ddf0!important}
body :is(.dialog-heading,.dialog-actions,.panel-heading,.settings-hero,.maintenance-toolbar){color:#f1f5fc;background:#202d40;border-color:#667b99}
body :is(.dialog,.panel,.login-card) :is(h1,h2,h3,h4,label,legend,dt){color:#eff5ff}
body :is(.dialog,.panel,.login-card) :is(p,small,dd,.hint,.form-hint,.field-help){color:#d0ddf0}
body :is(.detail-value,.detail-row-value,.detail-field-value,.detail-header-value){color:#f3f7ff}
body :is(.detail-section-grid,.detail-section,.detail-row,.detail-field,.detail-heading,.detail-header-summary,.detail-summary,.detail-meta,.account-access-summary,.account-profile-option,.role-option,.installation-workspace-hero){background-color:#202c3e;color:#eff5ff}
body :is(.detail-row,.detail-field,.detail-section-grid) :is(span,strong,em){color:inherit}
body :is(.eyebrow,.field-label,.settings-field-label,.profile-switcher,.sidebar-version){color:#d3e0f4}
body .inventory-table tbody td{background:var(--panel-protected-glass,#1b2534);color:#f0f5fe}
body .inventory-table tbody tr:nth-child(even) td{background:var(--panel-protected-glass,#202c3e)}
body .inventory-table tbody tr:hover td{background:#344b6a!important;color:#fff!important}
body :is(.inventory-table,.maintenance-table,.compact-table-wrap) th{background:#2b3b52;color:#f6f8ff}
body :is(.table-primary,.table-meter,.table-supply){color:#f1f5fc}
body .table-supply small{color:#c6d7ee}
body :is(.form-error,.error-message,.terrain-sync-error){color:#ffd6de!important;background:#4b2431;border-color:#cf8195}
body :is(.form-warning,.warning-message){color:#ffe6b4;background:#44351e}
body :is(.success-message,.connection-status){color:#c8f4dc}
body :is(.panel,.settings-card,.settings-section,.account-card,.catalog-card,.detail-section,.detail-header-field,.detail-highlight,.field-order-brief,.installation-flow-section,.maintenance-card,.load-card,.dialog-heading,.dialog-actions,.panel-heading,.maintenance-toolbar,.detail-row,.detail-field,.account-access-summary){background-image:none!important}
body :is(.record-location-editor,.installation-empty-note,.account-profile-option,.profile-option,.column-option,.catalog-option,.load-format-note){background:#25344a!important;color:#eff5ff!important}
body :is(.dropdown-menu,.select-menu,.smart-select-menu,.table-location-menu,.multiselect-options,.filter-options){color:#f0f5ff;background:#1c2a3e;border-color:#8399b8}
body :is(.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-tooltip,.map-legend,.leaflet-control-layers,.leaflet-control-attribution){color:#f2f6ff;background:#1b293b;border-color:#869bb8}
body :is(.leaflet-popup-content,.leaflet-tooltip) :is(p,small,span,dt,dd,strong){color:inherit}
body :is(.leaflet-popup-close-button,.leaflet-control-zoom a){color:#f2f6ff!important;background:#22334c!important}
body :is(.leaflet-popup-content,.leaflet-control-attribution,.table-location-menu) a{color:#acd3ff}
body .attention-reason input[type=radio]{width:21px!important;height:21px!important;flex:0 0 21px;padding:0}
body .field-evidence-actions input[type=file]{display:none!important}
:focus-visible{outline:3px solid #b5d5ff!important;outline-offset:3px}

/* Sólo se fija el encabezado al bajar; ninguna columna se inmoviliza al desplazar horizontalmente. */
#parkView .inventory-table tbody td{position:static;left:auto;right:auto}
#parkView .inventory-table thead th{left:auto;right:auto}

/* Gestión administrativa: contenido interno y tarjetas móviles con el mismo contraste que el parque. */
#maintenanceView .maintenance-table thead th{background:#2b3b52;color:#f6f8ff;border-color:#667b99}
#maintenanceView .maintenance-table tbody tr td,
#maintenanceView .maintenance-table tbody tr:nth-child(even) td{background:var(--panel-protected-glass,#1b2534);color:#f0f5fe;border-color:#667b99}
#maintenanceView .maintenance-table tbody tr:is(:hover,:focus,:focus-within) td{background:#344b6a;color:#fff}
#maintenanceView .maintenance-table tbody td strong{color:#f4f7fc}
#maintenanceView .maintenance-table tbody td small{color:#d0dbea}
#maintenanceView :is(.maintenance-ot-summary,.maintenance-card-orders){color:#c8daf5!important}
#maintenanceView :is(.maintenance-ot-summary.pending,.maintenance-card-orders.pending){color:#ffe097!important}
#maintenanceView .maintenance-card{background:var(--panel-protected-glass,#1b2534);color:#f0f5fe;border-color:#7c90ae}
#maintenanceView .maintenance-card:is(:hover,:focus-visible){background:#344b6a}
#maintenanceView :is(.maintenance-card-top>strong,.maintenance-card-product){color:#f4f7fc}
#maintenanceView :is(.maintenance-card-type,.maintenance-card-meta small){color:#d0dbea}
#maintenanceView :is(.maintenance-badge,.installation-phase-badge){background:#344760;color:#f3f6ff;border-color:#91a6c4}
#maintenanceView :is(.maintenance-priority-alta,.maintenance-state-pendiente){background:#493b22;color:#ffe097;border-color:#d4b36b}
#maintenanceView :is(.maintenance-priority-urgente,.maintenance-state-observada){background:#512b35;color:#ffd4dd;border-color:#cd91a2}
#maintenanceView .maintenance-state-completada{background:#293c50;color:#d9ebff;border-color:#8faed1}
