/* Navigia Nova. Screen rules use the staff appearance selected in this browser. */
@media screen {
    html[data-nv-style="nova"] {
        --nv-primary:#4956BF;
        --nv-primary-top:#6A79D1;
        --nv-primary-edge:#3B47A3;
        --nv-teal:#8DCACA;
        --nv-teal-edge:#1F5656;
        --nv-chart-teal:#287E81;
        --nv-page:#F4F5FA;
        --nv-surface:#FFFFFF;
        --nv-ink:#22263A;
        --nv-muted:#626981;
        --nv-line:#E6E8F2;
        --nv-soft:#F6F7FB;
        --nv-control:#828AA3;
        --nv-focus:#4956BF;
        --nv-link:#4956BF;
        --nv-nav:linear-gradient(180deg,#4956BF,#5B68BC);
        --nv-nav-text:#FFFFFF;
        --nv-nav-selected:#3B47A3;
        --nv-good:#1F7A4A;
        --nv-good-soft:#E1F2E8;
        --nv-warn:#8A6400;
        --nv-warn-soft:#FBF1D6;
        --nv-bad:#B23434;
        --nv-bad-soft:#FBE6E6;
        --nv-card-radius:14px;
        --nv-card-shadow:0 1px 2px #1f23300d,0 8px 22px #4956bf14;
        --nv-nova-indigo:#ECEEFB;
        --nv-nova-seafoam:#DCEFEF;
        --nv-nova-tool:#EEF0F4;
        --nv-nova-ease:cubic-bezier(.2,.8,.2,1);
        --nv-nova-body:Roboto,"Segoe UI",system-ui,sans-serif;
        --nv-nova-display:Poppins,"Segoe UI",system-ui,sans-serif;
        --nv-nova-mono:"Roboto Mono",Consolas,monospace;
        --nva-good:var(--nv-good);
        --nva-bad:var(--nv-bad);
        color-scheme:light;
    }

    html[data-nv-style="nova"] body {
        background:var(--nv-page);
        color:var(--nv-ink);
        font:13px/1.55 var(--nv-nova-body);
    }
    html[data-nv-style="nova"] #content { background:var(--nv-page); min-width:0; }
    html[data-nv-style="nova"] #sidebar {
        background:var(--nv-nav);
        color:var(--nv-nav-text);
        border-right:1px solid var(--nv-line);
    }
    html[data-nv-style="nova"] #sidebar .sidebar-header { background:transparent; padding:22px 16px; }
    html[data-nv-style="nova"] #sidebar a { color:var(--nv-nav-text); }
    html[data-nv-style="nova"] #sidebar #nv-dropdown-menu { padding-inline:10px; }
    html[data-nv-style="nova"] #sidebar #nv-dropdown-menu>li>a {
        min-height:44px;
        padding:10px 12px;
        margin-block:2px;
        border-radius:12px;
        font-size:13px;
    }
    html[data-nv-style="nova"] #sidebar #nv-dropdown-menu ul a {
        display:flex;
        align-items:center;
        background:transparent;
        color:var(--nv-nav-text);
        min-height:44px;
        font-size:12.5px;
        margin:2px 0 2px 12px;
        padding:7px 9px 7px 12px;
        border-radius:9px;
        overflow-wrap:anywhere;
    }
    html[data-nv-style="nova"] #sidebar #nv-dropdown-menu :is(a:hover,a[aria-expanded=true],.active-menu>a) {
        background:var(--nv-nav-selected);
        color:var(--nv-nav-text);
    }
    html[data-nv-style="nova"] #sidebar .nv-menu-section { background:transparent; color:var(--nv-nav-text); }
    html[data-nv-style="nova"] #sidebar a:focus-visible { outline-color:#FFFFFF; outline-offset:-3px; }

    html[data-nv-style="nova"] :is(.nv-header,.nv-subheader,.nva-top,.nva-tabs) {
        background:var(--nv-surface);
        color:var(--nv-ink);
        border-color:var(--nv-line);
        box-shadow:none;
    }
    html[data-nv-style="nova"] :is(.nv-subheader-title,.nva-top-title,.nvd-top h2) {
        font-family:var(--nv-nova-display);
        font-weight:600;
        font-size:18px;
        line-height:1.35;
        color:var(--nv-ink);
    }
    html[data-nv-style="nova"] :is(.nv-subheader-desc,.nv-account-display,.nva-note,.nva-sub) {
        color:var(--nv-muted);
    }
    html[data-nv-style="nova"] .nv-header .nv-header-center {
        align-items:center;
        border:1px solid var(--nv-line);
        border-radius:999px;
        background:var(--nv-soft);
        max-width:42rem;
    }
    html[data-nv-style="nova"] .nv-header .nv-header-center :is(input,.btn) {
        background:transparent;
        border:0;
        box-shadow:none;
        color:var(--nv-ink);
    }
    html[data-nv-style="nova"] .nv-header .nv-header-center input::placeholder { color:var(--nv-muted); }
    html[data-nv-style="nova"] .nv-nova-search-key {
        display:inline-block!important;
        order:3;
        margin-inline:5px 9px;
        border:1px solid var(--nv-line);
        border-radius:5px;
        background:var(--nv-surface);
        color:var(--nv-muted);
        font:11.5px var(--nv-nova-mono);
        white-space:nowrap;
    }
    html[data-nv-style="nova"] :is(.nv-appearance-picker>summary,.nv-task-help,.nv-phone-app) {
        background:var(--nv-surface);
        color:var(--nv-link);
        border-color:var(--nv-line);
        border-radius:999px;
    }
    html[data-nv-style="nova"] :is(.nv-appearance-panel,.nv-header .dropdown-menu) {
        background:var(--nv-surface);
        color:var(--nv-ink);
        border-color:var(--nv-line);
        border-radius:var(--nv-card-radius);
        box-shadow:var(--nv-card-shadow);
    }
    html[data-nv-style="nova"] .nv-appearance-dark-row[hidden] { display:none; }
    html[data-nv-style="nova"] :is(a,button,input,select,textarea,summary):focus-visible {
        outline:3px solid var(--nv-focus);
        outline-offset:2px;
    }

    html[data-nv-style="nova"] :is(#content,.nva-main) :is(.btn,.nva-btn,.nvd-btn,.rp-button,.nms-btn,.rl-btn,.nsw-button) {
        border-radius:999px;
        min-height:36px;
        touch-action:manipulation;
        transition:transform 120ms var(--nv-nova-ease),box-shadow 120ms var(--nv-nova-ease);
    }
    html[data-nv-style="nova"] :is(#content,.nva-main) :is(.btn-primary,.nva-btn.main,.nvd-btn,.rp-primary) {
        color:#fff;
        background:var(--nv-primary);
        border-color:var(--nv-primary-edge);
        box-shadow:0 2px 0 var(--nv-primary-edge),0 4px 10px #4956bf24;
        font-weight:600;
    }
    html[data-nv-style="nova"] :is(#content,.nva-main) :is(.btn-action-default,.btn-secondary,.btn-outline-primary,.btn-light) {
        color:var(--nv-link);
        background:var(--nv-surface);
        border-color:var(--nv-line);
    }
    html[data-nv-style="nova"] :is(#content,.nva-main) .btn-info { background:var(--nv-nova-seafoam); color:var(--nv-teal-edge); border-color:var(--nv-teal); }
    html[data-nv-style="nova"] :is(#content,.nva-main) .btn-success { background:var(--nv-good); border-color:var(--nv-good); color:#fff; }
    html[data-nv-style="nova"] :is(#content,.nva-main) .btn-danger { background:var(--nv-bad); border-color:var(--nv-bad); color:#fff; }
    html[data-nv-style="nova"] :is(#content,.nva-main) :is(.btn,.nva-btn,.nvd-btn,.rp-button):hover:not(:disabled,.disabled,[aria-disabled=true],[aria-busy=true]) { transform:translateY(-1px); }
    html[data-nv-style="nova"] :is(#content,.nva-main) :is(.btn,.nva-btn,.nvd-btn,.rp-button):active:not(:disabled,.disabled,[aria-disabled=true],[aria-busy=true]) { transform:translateY(1px); }
    html[data-nv-style="nova"] :is(#content,.nva-main) :is(.btn,.nva-btn,.nvd-btn,.rp-button):is(:disabled,.disabled,[aria-disabled=true],[aria-busy=true]) { box-shadow:none; transform:none; }

    html[data-nv-style="nova"] .nv-subheader-wrapper:has(:is(a,button):not(.hide,.d-none,[hidden])) {
        display:flex;
        flex-wrap:wrap;
        align-items:center;
        gap:5px;
        padding:3px 5px;
        border:1px solid var(--nv-line);
        border-radius:20px;
        background:var(--nv-surface);
    }
    html[data-nv-style="nova"] .nv-subheader-wrapper .nv-nova-actions-label { display:none; }
    html[data-nv-style="nova"] .nv-subheader-wrapper :is(.action,[data-nv-icon-action])[data-nv-action-label]:not(.hide,.d-none,[hidden]) {
        --nova-action-bg:var(--nv-nova-indigo);
        --nova-action-ink:var(--nv-primary);
        display:inline-flex;
        justify-content:center;
        align-items:center;
        position:relative;
        width:38px;
        height:38px;
        min-height:38px;
        padding:0;
        border:1px solid transparent;
        border-radius:50%;
        background:var(--nova-action-bg);
        color:var(--nova-action-ink);
        box-shadow:none;
        margin:0;
    }
    html[data-nv-style="nova"] .nv-subheader-wrapper [data-nv-action-label]:is([data-nv-tone-action=move],:has([data-icon=truck],[data-icon=calendar-minus],[data-icon=calendar-alt],.fa-truck,.fa-calendar-minus,.fa-calendar-alt)) {
        --nova-action-bg:var(--nv-nova-seafoam);
        --nova-action-ink:var(--nv-teal-edge);
    }
    html[data-nv-style="nova"] .nv-subheader-wrapper [data-nv-action-label]:is([data-nv-tone-action=tool],:has([data-icon=history],[data-icon=print],[data-icon=download],.fa-history,.fa-print,.fa-download)) {
        --nova-action-bg:var(--nv-nova-tool);
        --nova-action-ink:var(--nv-ink);
    }
    html[data-nv-style="nova"] .nv-subheader-wrapper [data-nv-action-label]:is(.btn-primary,[data-nv-tone-action=primary]) {
        --nova-action-bg:var(--nv-primary);
        --nova-action-ink:#fff;
        width:42px;
        height:42px;
        min-height:42px;
    }
    html[data-nv-style="nova"] .nv-subheader-wrapper [data-nv-action-label].btn-success {
        --nova-action-bg:var(--nv-good);
        --nova-action-ink:#fff;
    }
    html[data-nv-style="nova"] .nv-subheader-wrapper [data-nv-action-label].btn-danger {
        --nova-action-bg:var(--nv-bad);
        --nova-action-ink:#fff;
    }
    html[data-nv-style="nova"] .nv-subheader-wrapper [data-nv-action-label]>:is(svg,i) { font-size:19px; height:19px; }
    html[data-nv-style="nova"] .nv-subheader-wrapper [data-nv-action-label] .nv-nova-action-text,
    html[data-nv-style="nova"] .nv-subheader-wrapper [data-nv-action-label] .nv-nova-legacy-icon { display:none!important; }
    html[data-nv-style="nova"] .nv-subheader-wrapper [data-nv-action-label] .nv-nova-icon { display:inline-block!important; }
    html[data-nv-style="nova"] .nv-subheader-wrapper [data-nv-action-label]:is(:hover,:focus-visible)::after {
        content:attr(data-nv-action-label);
        position:absolute;
        top:calc(100% + 7px);
        inset-inline-end:0;
        z-index:1060;
        max-width:14rem;
        width:max-content;
        padding:5px 9px;
        border-radius:7px;
        background:var(--nv-ink);
        color:white;
        font:12px/1.4 var(--nv-nova-body);
        pointer-events:none;
    }

    html[data-nv-style="nova"] :is(#content,.nva-main) :is(.form-control,.custom-select,.select2-selection):not(.gm-style *) {
        background-color:var(--nv-surface);
        color:var(--nv-ink);
        border-radius:8px;
        border-color:var(--nv-control);
        font-size:13px;
    }
    html[data-nv-style="nova"] :is(#content,.nva-main) :is(.form-control,.custom-select):not(textarea):not(.gm-style *) { min-height:36px; }
    html[data-nv-style="nova"] :is(#content,.nva-main) :is(.form-control,.custom-select):disabled { background:var(--nv-soft); }
    html[data-nv-style="nova"] #content :is(.table,.dataTable):not(.gm-style *) { font-variant-numeric:tabular-nums; color:var(--nv-ink); }
    html[data-nv-style="nova"] #content :is(.table,.dataTable):not(.gm-style *) :is(td,th) { border-color:var(--nv-line); }
    html[data-nv-style="nova"] #content :is(.table,.dataTable):not(.gm-style *) thead th {
        background:var(--nv-soft);
        color:var(--nv-ink);
        font-size:12px;
        letter-spacing:.015em;
    }
    html[data-nv-style="nova"] #content :is(.dataTables_info,.dataTables_length,.dataTables_filter) { color:var(--nv-muted); }
    html[data-nv-style="nova"] #content .dataTables_paginate .paginate_button { border-radius:8px; }
    html[data-nv-style="nova"] #content .dataTables_paginate .paginate_button.current { background:var(--nv-primary); color:white!important; }
    html[data-nv-style="nova"] #content .nav-tabs {
        gap:4px;
        flex-wrap:wrap;
        background:transparent;
        border-color:var(--nv-line);
        padding:4px;
    }
    html[data-nv-style="nova"] #content .nav-tabs .nav-link {
        border:1px solid var(--nv-line);
        border-radius:999px;
        background:var(--nv-surface);
        color:var(--nv-ink);
    }
    html[data-nv-style="nova"] #content .nav-tabs .nav-link.active { color:white; background:var(--nv-primary); border-color:var(--nv-primary); }
    html[data-nv-style="nova"] #content .nv-nova-pickups .table-responsive {
        border:1px solid var(--nv-line);
        border-radius:var(--nv-card-radius);
        box-shadow:var(--nv-card-shadow);
    }
    html[data-nv-style="nova"] #content .nv-nova-pickups .sts {
        display:inline-flex;
        align-items:center;
        gap:6px;
        border-radius:999px;
        color:var(--nv-ink);
        background:var(--nv-nova-tool);
        white-space:normal;
        padding:.25em .75em;
    }
    html[data-nv-style="nova"] #content .nv-nova-pickups .sts::before {
        content:"";
        width:.45em;
        height:.45em;
        flex:none;
        border-radius:50%;
        background:currentColor;
    }
    html[data-nv-style="nova"] #content .nv-nova-pickups .sts[data-nv-status=completed] { background:var(--nv-good-soft); color:var(--nv-good); }
    html[data-nv-style="nova"] #content .nv-nova-pickups .sts[data-nv-status=cancelled] { background:var(--nv-bad-soft); color:var(--nv-bad); }
    html[data-nv-style="nova"] #content .nv-nova-pickups .sts[data-nv-status=pending] { background:var(--nv-warn-soft); color:var(--nv-warn); }
    html[data-nv-style="nova"] #content .nv-nova-pickups .sts[data-nv-status=routed] { background:var(--nv-nova-indigo); color:var(--nv-link); }

    html[data-nv-style="nova"] .nvd {
        --nvd-bg:var(--nv-page); --nvd-surface:var(--nv-surface); --nvd-ink:var(--nv-ink); --nvd-quiet:var(--nv-muted);
        --nvd-line:var(--nv-line); --nvd-soft:var(--nv-soft); --nvd-accent:var(--nv-primary);
        --nvd-accent-soft:var(--nv-nova-indigo); --nvd-sea:var(--nv-chart-teal); --nvd-sea-soft:var(--nv-teal);
        --nvd-good:var(--nv-good); --nvd-bad:var(--nv-bad);
    }
    html[data-nv-style="nova"] .nvd :is(.nvd-panel,.nvd-kpi) {
        border:1px solid var(--nv-line);
        border-radius:var(--nv-card-radius);
        box-shadow:var(--nv-card-shadow);
    }
    html[data-nv-style="nova"] .nvd .nvd-kpis {
        background:transparent;
        border:0;
        border-radius:0;
        overflow:visible;
        gap:12px;
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
    html[data-nv-style="nova"] .nvd .nvd-kpi .num { font-size:clamp(20px,2.15vw,29px); font-variant-numeric:tabular-nums; }
    html[data-nv-style="nova"] .nvd .nvd-pills { padding:4px; border:1px solid var(--nv-line); border-radius:999px; background:var(--nv-surface); }
    html[data-nv-style="nova"] .nvd .nvd-pills :is(a,summary) { border-radius:999px; }
    html[data-nv-style="nova"] .nvd .nvd-pills .on { color:#fff; background:var(--nv-primary); }
    html[data-nv-style="nova"] .nvd .nvd-stackbar { border-radius:999px; }
    html[data-nv-style="nova"] .nvd .nvd-stackbar .s2 { background:var(--nv-teal); }
    html[data-nv-style="nova"] .nvd .nv-nova-collection { display:flex!important; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; color:var(--nv-muted); font-size:12px; }

    html[data-nv-style="nova"] main.na {
        --na-navy:var(--nv-ink); --na-primary:var(--nv-primary); --na-hover:var(--nv-primary-edge); --na-pressed:var(--nv-primary-edge);
        --na-canvas:var(--nv-page); --na-surface:var(--nv-surface); --na-ink:var(--nv-ink); --na-muted:var(--nv-muted);
        --na-line:var(--nv-line); --na-soft:var(--nv-soft); --na-control:var(--nv-control); --na-success:var(--nv-good); --na-danger:var(--nv-bad);
    }
    html[data-nv-style="nova"] main.ni {
        --ni-navy:var(--nv-ink); --ni-primary:var(--nv-primary); --ni-hover:var(--nv-primary-edge); --ni-pressed:var(--nv-primary-edge);
        --ni-canvas:var(--nv-page); --ni-surface:var(--nv-surface); --ni-ink:var(--nv-ink); --ni-muted:var(--nv-muted);
        --ni-line:var(--nv-line); --ni-soft:var(--nv-soft); --ni-control:var(--nv-control); --ni-success:var(--nv-good); --ni-danger:var(--nv-bad);
    }
    html[data-nv-style="nova"] .nvs {
        --nvs-bg:var(--nv-page); --nvs-surface:var(--nv-surface); --nvs-ink:var(--nv-ink); --nvs-muted:var(--nv-muted);
        --nvs-line:var(--nv-line); --nvs-accent:var(--nv-primary); --nvs-accent-soft:var(--nv-nova-indigo);
        --nvs-sea:var(--nv-chart-teal); --nvs-sea-soft:var(--nv-nova-seafoam);
    }
    html[data-nv-style="nova"] main.nsw {
        --nsw-navy:var(--nv-ink); --nsw-primary:var(--nv-primary); --nsw-ink:var(--nv-ink);
        --nsw-muted:var(--nv-muted); --nsw-line:var(--nv-line); --nsw-control:var(--nv-control); --nsw-soft:var(--nv-soft);
    }
    html[data-nv-style="nova"] .nvrp { --rp-ink:var(--nv-ink); --rp-muted:var(--nv-muted); --rp-line:var(--nv-line); --rp-accent:var(--nv-primary); }
    html[data-nv-style="nova"] #navigia-map-settings {
        --nms-bg:var(--nv-page); --nms-surface:var(--nv-surface); --nms-ink:var(--nv-ink);
        --nms-muted:var(--nv-muted); --nms-line:var(--nv-line); --nms-accent:var(--nv-primary); --nms-soft:var(--nv-soft);
        --nms-sea:var(--nv-chart-teal); --nms-sea-soft:var(--nv-nova-seafoam);
    }
    html[data-nv-style="nova"] :is(.bol,.nv-bol,.bol-shell,.bol-page) {
        --bol-primary:var(--nv-primary); --bol-teal:var(--nv-chart-teal); --bol-bg:var(--nv-page);
        --bol-card:var(--nv-surface); --bol-ink:var(--nv-ink); --bol-border:var(--nv-line); --bol-muted:var(--nv-muted);
    }
    html[data-nv-style="nova"] :is(.na-card,.ni-card,.nvs-panel,.nsw-section,.rp-panel,.rp-summary>div,.nms-card,.nv-calc-card,.nva-card) {
        border-radius:var(--nv-card-radius);
        box-shadow:var(--nv-card-shadow);
    }
    html[data-nv-style="nova"] .label-controls,
    html[data-nv-style="nova"] #label-print-dialog {
        color:var(--nv-ink);
        background:var(--nv-surface);
        border-color:var(--nv-line);
        border-radius:var(--nv-card-radius);
        box-shadow:var(--nv-card-shadow);
    }
    html[data-nv-style="nova"] .label-controls p,
    html[data-nv-style="nova"] #label-print-dialog p { color:var(--nv-muted); }
    html[data-nv-style="nova"] :is(.label-controls,#label-print-dialog) button {
        min-height:44px;
        border-radius:999px;
        background:var(--nv-primary);
        border-color:var(--nv-primary-edge);
        color:#fff;
    }
    html[data-nv-style="nova"] :is(.label-controls,#label-print-dialog) button.secondary {
        background:var(--nv-nova-indigo);
        border-color:var(--nv-control);
        color:var(--nv-link);
    }
    html[data-nv-style="nova"] body.nva { background:var(--nv-page); color:var(--nv-ink); }
    html[data-nv-style="nova"] .nva-tab.on { color:var(--nv-primary); }
}

@media screen and (max-width: 900px) {
    html[data-nv-style="nova"] .nvd .nvd-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media screen and (max-width: 767px) {
    html[data-nv-style="nova"] #content { padding-top:70px; }
    html[data-nv-style="nova"] #content .nv-subheader {
        position:static;
        width:auto;
        max-width:none;
        margin:0 -16px 14px;
    }
    html[data-nv-style="nova"] .nvd .nvd-panel { grid-template-columns:minmax(0,1fr); }
    html[data-nv-style="nova"] .nvd .nvd-container-form select { width:100%; min-height:44px; }
    html[data-nv-style="nova"] .nvd .nvd-pills :is(a,summary) { min-height:44px; }
    html[data-nv-style="nova"] #tbl-payments_wrapper { max-width:100%; overflow-x:auto; }
    html[data-nv-style="nova"] #tbl-payments_wrapper :is(.dataTables_filter,.dataTables_length) { float:none; margin-block:6px; }
    html[data-nv-style="nova"] #tbl-payments_wrapper .dataTables_filter input { max-width:100%; margin-inline-start:0; }
    html[data-nv-style="nova"] .nv-nova-search-key.d-none { display:none!important; }
    html[data-nv-style="nova"] :is(#content,.nva-main) :is(.btn,.nva-btn,.nvd-btn,.rp-button,.form-control,.custom-select) { min-height:44px; }
    html[data-nv-style="nova"] .nv-subheader-wrapper :is(.action,[data-nv-icon-action])[data-nv-action-label]:not(.hide,.d-none,[hidden]) {
        flex-direction:column;
        gap:3px;
        height:auto!important;
        width:auto;
        min-height:48px;
        min-width:44px;
        max-width:124px;
        padding:5px 8px;
        border-radius:12px;
    }
    html[data-nv-style="nova"] .nv-subheader-wrapper [data-nv-action-label]::after {
        content:attr(data-nv-action-label);
        font-size:11.5px;
        white-space:normal;
        line-height:1.15;
        text-align:center;
    }
    html[data-nv-style="nova"] .nv-subheader-wrapper [data-nv-action-label]:is(:hover,:focus-visible)::after {
        position:static;
        padding:0;
        width:auto;
        background:transparent;
        color:inherit;
        font:inherit;
        font-size:11.5px;
    }
    html[data-nv-style="nova"] #content .nv-nova-pickups .dt-pickup:has(td[data-nv-column]) {
        display:block;
        width:100%!important;
    }
    html[data-nv-style="nova"] #content .nv-nova-pickups .dt-pickup:has(td[data-nv-column]) thead {
        position:absolute;
        inline-size:1px;
        block-size:1px;
        overflow:hidden;
        clip-path:inset(50%);
        white-space:nowrap;
    }
    html[data-nv-style="nova"] #content .nv-nova-pickups .dt-pickup:has(td[data-nv-column]) tbody {
        display:grid;
        gap:10px;
    }
    html[data-nv-style="nova"] #content .nv-nova-pickups .dt-pickup tr:has(td[data-nv-column]) {
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        padding:8px;
        border:1px solid var(--nv-line);
        border-radius:12px;
        white-space:normal!important;
    }
    html[data-nv-style="nova"] #content .nv-nova-pickups .dt-pickup tr:has(td[data-nv-column]) td {
        display:block;
        min-width:0;
        border:0;
        padding:6px 8px;
        text-align:start;
        overflow-wrap:anywhere;
    }
    html[data-nv-style="nova"] #content .nv-nova-pickups .dt-pickup td[data-nv-column]::before {
        content:attr(data-nv-column);
        display:block;
        font:600 11.5px/1.4 var(--nv-nova-body);
        color:var(--nv-muted);
    }
    html[data-nv-style="nova"] #content .nv-nova-pickups .dt-pickup td[data-nv-wide] { grid-column:1/-1; }
    html[data-nv-style="nova"] #content .nv-nova-pickups .dt-pickup tr:has(td[data-nv-column]) :is(a,input[type=checkbox]) { min-height:44px; }
    html[data-nv-style="nova"] #content .nv-nova-pickups .dt-pickup tr:has(td[data-nv-column]) td a { display:inline-flex; align-items:center; }
}
@media screen and (prefers-reduced-motion: reduce) {
    html[data-nv-style="nova"] *,html[data-nv-style="nova"] *::before,html[data-nv-style="nova"] *::after {
        animation-duration:.01ms!important;
        transition-duration:.01ms!important;
        scroll-behavior:auto!important;
    }
}


@media screen {
    html[data-nv-style="nova"] :is(.modal-content,.swal2-popup,.popover,.dropdown-menu,.select2-dropdown) {
        background:var(--nv-surface); color:var(--nv-ink); border-color:var(--nv-line);
    }
    html[data-nv-style="nova"] :is(.modal-content,.swal2-popup,.popover) {
        border-radius:var(--nv-card-radius); box-shadow:var(--nv-card-shadow);
    }
    html[data-nv-style="nova"] :is(.modal-title,.swal2-title,.popover-header) { color:var(--nv-ink); font-family:var(--nv-nova-display); overflow-wrap:anywhere; }
    html[data-nv-style="nova"] :is(.modal-header,.modal-footer,.popover-header) { border-color:var(--nv-line); }
    html[data-nv-style="nova"] .popover-header { background:var(--nv-soft); }
    html[data-nv-style="nova"] :is(.modal-body,.swal2-content,.popover-body) { color:var(--nv-ink); overflow-wrap:anywhere; }
    html[data-nv-style="nova"] :is(.modal-footer .btn,.swal2-actions button) { min-height:44px; border-radius:999px; }
    html[data-nv-style="nova"] .modal-header .close { min-width:44px; min-height:44px; opacity:1; color:var(--nv-ink); }
    html[data-nv-style="nova"] .modal .form-control { min-width:0; }
    html[data-nv-style="nova"] .nova-confirm-dialog {
        width:min(540px,calc(100vw - 24px)); max-height:min(90vh,90dvh); overflow:auto; overscroll-behavior:contain;
        padding:clamp(16px,4vw,24px); border:1px solid var(--nv-line); border-radius:var(--nv-card-radius);
        background:var(--nv-surface); color:var(--nv-ink); box-shadow:var(--nv-card-shadow);
    }
    html[data-nv-style="nova"] .nova-confirm-dialog::backdrop { background:#11152cb3; }
    html[data-nv-style="nova"] .nova-confirm-dialog h2 { font-size:1.3rem; margin:0 0 10px; }
    html[data-nv-style="nova"] .nova-confirm-dialog p { overflow-wrap:anywhere; }
    html[data-nv-style="nova"] .nova-confirm-dialog label { display:block; margin:12px 0; }
    html[data-nv-style="nova"] .nova-confirm-dialog textarea {
        display:block; width:100%; padding:10px; margin-top:5px; border:1px solid var(--nv-control); border-radius:10px; font:inherit;
    }
    html[data-nv-style="nova"] .nova-confirm-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; margin-top:14px; }
    html[data-nv-style="nova"] .nova-confirm-actions button {
        min-height:44px; padding:8px 16px; border:1px solid var(--nv-control); border-radius:999px;
        background:var(--nv-surface); color:var(--nv-ink); font:inherit; font-weight:650; cursor:pointer;
    }
    html[data-nv-style="nova"] .nova-confirm-actions .nova-confirm-primary { background:var(--nv-primary); border-color:var(--nv-primary); color:white; }
}
@media screen and (max-width:575px) {
    html[data-nv-style="nova"] .modal-dialog { width:auto; max-width:calc(100% - 16px); margin:8px auto; }
    html[data-nv-style="nova"] .modal-footer { flex-wrap:wrap; gap:6px; }
    html[data-nv-style="nova"] .modal-footer .btn { white-space:normal; }
}
@media screen {
    html[data-nv-style="nova"] .nova-auth :is(.nv-card-signin,.nv-card-dev-registration) {
        background:var(--nv-surface); color:var(--nv-ink); border:1px solid var(--nv-line);
        border-radius:18px; box-shadow:var(--nv-card-shadow);
    }
    html[data-nv-style="nova"] .nova-auth .nv-signin-wrapper { padding-inline:12px; }
    html[data-nv-style="nova"] .nova-auth .nv-card-signin { width:min(100%,440px); padding:clamp(18px,5vw,32px); }
    html[data-nv-style="nova"] .nova-auth .nv-card-dev-registration { max-width:min(calc(100vw - 24px),720px); }
    html[data-nv-style="nova"] .nova-auth :is(h2,h4) { font-family:var(--nv-nova-display); }
    html[data-nv-style="nova"] .nova-auth :is(.form-control,.btn) { min-height:44px; }
    html[data-nv-style="nova"] .nova-auth .form-control { border-radius:10px; border-color:var(--nv-control); min-width:0; }
    html[data-nv-style="nova"] .nova-auth .btn-nv-primary { border-radius:999px; background:var(--nv-primary); color:white; }
    html[data-nv-style="nova"] .nova-auth .dev-registration-header { border-radius:14px 14px 0 0; background:var(--nv-primary); }
    html[data-nv-style="nova"] .nova-auth .nova-auth-otp {
        font-family:var(--nv-nova-mono); font-size:1.3rem; letter-spacing:.42em; margin:6px 0 14px;
    }
    html[data-nv-style="nova"] .nova-auth .nova-auth-otp::placeholder { letter-spacing:normal; font-family:var(--nv-nova-body); font-size:.85rem; }
}
@media screen and (max-width:575px) {
    html[data-nv-style="nova"] .nova-auth .nova-auth-inputs { flex-direction:column; gap:10px; }
    html[data-nv-style="nova"] .nova-auth .nova-auth-inputs>* { margin-inline:0 !important; }
}

@media screen {
    html[data-nv-style="nova"] :is(.nv-nova-scan,.nv-nova-load-list,.nv-nova-offline) {
        background:var(--nv-page); color:var(--nv-ink);
    }
    html[data-nv-style="nova"] .nv-nova-scan .search { max-width:100%; }
    html[data-nv-style="nova"] .nv-nova-scan .modal :is(.table,.table-sm) { color:var(--nv-ink); }
    html[data-nv-style="nova"] .nv-nova-scan .modal.modal-wide .modal-dialog {
        max-width:min(1100px,calc(100% - 20px)) !important;
    }
    html[data-nv-style="nova"] .nv-nova-load-list .nvs :is(.nvs-card,.nvs-panel) {
        background:var(--nv-surface); color:var(--nv-ink); border-color:var(--nv-line);
    }
    html[data-nv-style="nova"] .nv-nova-offline .box {
        background:var(--nv-surface); color:var(--nv-ink); border-color:var(--nv-line);
        border-radius:var(--nv-card-radius); box-shadow:var(--nv-card-shadow);
    }
    html[data-nv-style="nova"] .nv-nova-offline :is(svg,h1) { color:var(--nv-primary); }
    html[data-nv-style="nova"] .nv-nova-offline .box p { color:var(--nv-muted); }
    html[data-nv-style="nova"] .nv-nova-offline .box button { background:var(--nv-primary); }
    html[data-nv-style="nova"] .nai {
        color:var(--nv-ink); background:var(--nv-surface); border-color:var(--nv-line);
        border-radius:var(--nv-card-radius); box-shadow:var(--nv-card-shadow);
    }
    html[data-nv-style="nova"] .nai :is([data-ai-upload],[data-ai-review]) { background:var(--nv-soft); }
    html[data-nv-style="nova"] .nai :is(.nai-help,[data-ai-status]) { color:var(--nv-muted); }
    html[data-nv-style="nova"] .nai .nai-error { color:var(--nv-bad); }
    html[data-nv-style="nova"] .nai :is(button,[type="file"]) { min-height:44px; }
    html[data-nv-style="nova"] :is(.modal,.nvrp,#content,.nva-main) .input-group-text {
        background:var(--nv-soft); color:var(--nv-ink); border-color:var(--nv-control);
    }
    html[data-nv-style="nova"] .select2-container .select2-selection--multiple .select2-selection__choice {
        background:var(--nv-nova-indigo); color:var(--nv-ink); border-color:var(--nv-line);
    }
    html[data-nv-style="nova"] .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
    html[data-nv-style="nova"] .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
        background:var(--nv-soft); color:var(--nv-muted) !important; border-color:transparent;
    }
    html[data-nv-style="nova"] .dataTables_wrapper :is(.dataTables_info,.dataTables_length,.dataTables_filter) {
        color:var(--nv-muted);
    }
}


@media screen {
    html:not([data-nv-style="nova"]) .nv-nova-only { display:none; }
    html[data-nv-style="nova"] .nv-nova-list-head {
        display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap;
        gap:12px; padding:16px 20px; margin:0 0 12px; background:var(--nv-surface);
        border:1px solid var(--nv-line); border-radius:var(--nv-card-radius);
    }
    html[data-nv-style="nova"] .nv-nova-list-head h2 { margin:0 0 4px; font:600 1.2rem var(--nv-nova-display); }
    html[data-nv-style="nova"] .nv-nova-list-head p { color:var(--nv-muted); margin:0; }
    html[data-nv-style="nova"] .nv-nova-list-head label { min-width:min(240px,100%); margin:0; }
    html[data-nv-style="nova"] .nv-nova-list-head select { margin-top:4px; min-height:44px; }
    html[data-nv-style="nova"] .nv-nova-call-summary {
        display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr)); gap:12px; margin:12px 0;
    }
    html[data-nv-style="nova"] .nv-nova-call-summary > div {
        display:grid; gap:3px; padding:14px; background:var(--nv-surface); border:1px solid var(--nv-line);
        border-radius:var(--nv-card-radius); box-shadow:var(--nv-card-shadow);
    }
    html[data-nv-style="nova"] .nv-nova-call-summary span { color:var(--nv-muted); }
    html[data-nv-style="nova"] .nv-nova-call-summary strong { color:var(--nv-ink); font-size:1.3rem; font-variant-numeric:tabular-nums; }
    html[data-nv-style="nova"] #nav-errors-admin :is(.nve-card,.nve-panel,.nve-detail) {
        color:var(--nv-ink); background:var(--nv-surface); border-color:var(--nv-line);
        border-radius:var(--nv-card-radius);
    }
    html[data-nv-style="nova"] #nav-errors-admin .nve-detail {
        max-width:calc(100% - 24px); max-height:calc(100dvh - 24px); overflow:auto;
    }
    html[data-nv-style="nova"] #nav-errors-admin :is(.nve-tab,.nve-button) { min-height:44px; }
    html[data-nv-style="nova"] #nav-errors-admin .nve-button { border-radius:999px; }
    html[data-nv-style="nova"] #nav-errors-admin :is(pre,code,.nve-help) { overflow-wrap:anywhere; }
}

@media screen {
    html:not([data-nv-style="nova"]) .nova-record-only { display:none; }
    html[data-nv-style="nova"] .nova-record-header {
        display:flex; align-items:center; padding:18px 22px; margin:0 0 14px;
        border:1px solid var(--nv-line); border-radius:var(--nv-card-radius);
        background:var(--nv-surface); box-shadow:var(--nv-card-shadow);
        overflow-wrap:anywhere;
    }
    html[data-nv-style="nova"] .nova-record-header h2 {
        margin:3px 0; font:600 clamp(1.12rem,3vw,1.52rem)/1.35 var(--nv-nova-display); color:var(--nv-ink);
    }
    html[data-nv-style="nova"] .nova-record-header p,
    html[data-nv-style="nova"] .nova-record-area { margin:0; color:var(--nv-muted); }
    html[data-nv-style="nova"] .nova-record-area { font-weight:600; }
    html[data-nv-style="nova"] .nova-company-overview {
        display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px;
    }
    html[data-nv-style="nova"] .nova-company-overview .nova-record-header { margin:0; flex:1 1 245px; }
    html[data-nv-style="nova"] .nova-branch-cards {
        display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:12px; margin-bottom:18px;
    }
    html[data-nv-style="nova"] .nova-branch-card,
    html[data-nv-style="nova"] .nova-setup-form {
        background:var(--nv-surface); border:1px solid var(--nv-line);
        border-radius:var(--nv-card-radius); box-shadow:var(--nv-card-shadow);
    }
    html[data-nv-style="nova"] .nova-branch-card {
        display:grid; align-content:start; gap:10px; min-width:0; padding:16px; overflow-wrap:anywhere;
    }
    html[data-nv-style="nova"] .nova-branch-card h3 { font-size:1.1rem; margin:0 0 3px; }
    html[data-nv-style="nova"] .nova-branch-card p { margin:0; color:var(--nv-muted); }
    html[data-nv-style="nova"] :is(.nova-branch-status,.nova-branch-actions) { display:flex; flex-wrap:wrap; gap:8px; }
    html[data-nv-style="nova"] .nova-branch-status > span:not(.sts) {
        background:var(--nv-nova-indigo); color:var(--nv-ink); padding:2px 8px; border-radius:999px;
    }
    html[data-nv-style="nova"] .nova-setup-form { margin-inline:0; }
    html[data-nv-style="nova"] .nova-setup-form :is(img,textarea) { max-width:100%; }
    html[data-nv-style="nova"] .nova-setup-form label { font-weight:600; }
    html[data-nv-style="nova"] .nova-setup-section { font-size:1rem; color:var(--nv-ink); }
    html[data-nv-style="nova"] #content [data-nova-record-tabs] { flex-wrap:wrap; padding:7px; }
    html[data-nv-style="nova"] #content [data-nova-record-tabs] .nav-link { min-height:44px; display:flex; align-items:center; gap:6px; }
    html[data-nv-style="nova"] [data-nova-record-actions] { gap:12px; }
    html[data-nv-style="nova"] [data-nova-record-tabs] + .tab-content {
        background:var(--nv-surface); border:1px solid var(--nv-line); border-radius:var(--nv-card-radius); margin-top:8px;
    }
    html[data-nv-style="nova"] :is(#addConsigneeModal,#addressmodal,#phonesmodal,#addressmodalPickup,#phonesmodalPickup) .form-group { min-width:0; }
    html[data-nv-style="nova"] #addConsigneeModal [data-consignee-step-link] { white-space:normal; line-height:1.25; min-height:44px; }
    html[data-nv-style="nova"] #addConsigneeModal [data-consignee-step-link][aria-current="step"] { background:var(--nv-primary); color:white; }
    html[data-nv-style="nova"] #addConsigneeModal [data-consignee-heading] { color:var(--nv-ink); margin-block:8px; }
    html[data-nv-style="nova"] .nva-list .nva-item.unread {
        background:var(--nv-nova-indigo); border-inline-start:3px solid var(--nv-primary);
    }
    html[data-nv-style="nova"] .nva-list .nva-item-time { color:var(--nv-muted); }
}
@media screen and (max-width:600px) {
    html[data-nv-style="nova"] .nova-record-header { padding:14px; }
    html[data-nv-style="nova"] #content [data-nova-record-tabs] + .tab-content { min-width:0; }
    html[data-nv-style="nova"] #content [data-nova-record-tabs] + .tab-content .table-responsive { max-width:100%; }
    html[data-nv-style="nova"] #addConsigneeModal .modal-footer > button { flex:1 1 auto; }
}

@media screen {
    html[data-nv-style="nova"] .nvs-offline-queue:not([hidden]) { margin-bottom:14px; box-shadow:var(--nv-card-shadow); }
    html[data-nv-style="nova"] .nvs-offline-queue output { color:var(--nv-primary); font-weight:700; }
    html[data-nv-style="nova"] .nvs-offline-queue :is(p,ol) { margin-block:0; overflow-wrap:anywhere; }
    html[data-nv-style="nova"] .nvs-offline-queue ol { max-height:160px; overflow:auto; }
    html[data-nv-style="nova"] .nvs-offline-queue :is(summary,button) { min-height:44px; }
    html[data-nv-style="nova"] .nvs-offline-queue summary { align-content:center; }
    html[data-nv-style="nova"] :is(.nvs-camera-result,.nvs-last).is-queued {
        background:var(--nv-warn-soft); color:var(--nv-warn); border-color:var(--nv-warn);
    }
    html[data-nv-style="nova"] .nvs-tag.is-queued { background:var(--nv-warn-soft); color:var(--nv-warn); }
}

@media screen {
    html[data-nv-style="nova"] .nova-profile-actions { display:flex; flex-wrap:wrap; gap:8px; }
    html[data-nv-style="nova"] .nova-profile-actions > * { min-height:44px; }
    html[data-nv-style="nova"] .modal :is(.form-group,.row > [class*="col-"]) { min-width:0; }
}

@media screen {
    html[data-nv-style="nova"] .nova-main-branch { grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); }
    html[data-nv-style="nova"] .nova-main-branch dt { color:var(--nv-muted); }
    html[data-nv-style="nova"] .nova-main-branch dd { margin:4px 0 0; }
}

/* Appearance menu as cards (Views\Shared\_AppearancePicker.cshtml; Board 10-12 Nov 2026, drawing "Appearance menu").
   Shown only in Nova; the other styles keep today's drop-down. The small previews are sketches of each style. */
html[data-nv-style="nova"] .nv-appearance-panel .nv-appearance-style{display:none}
html[data-nv-style="nova"] .nv-appearance-panel{width:min(360px,calc(100vw - 24px));border-radius:16px;padding:14px;box-shadow:0 18px 44px rgba(31,35,48,.20)}
html[data-nv-style="nova"] .nv-appearance-panel>strong{font:600 14.5px/1.3 Poppins,"Segoe UI",sans-serif}
html[data-nv-style="nova"] .nv-appearance-panel .nv-style-cards[hidden]{display:grid!important;gap:8px;margin:10px 0}
html[data-nv-style="nova"] .nv-style-cards button{display:grid;grid-template-columns:64px minmax(0,1fr) 20px;gap:10px;align-items:center;width:100%;min-height:58px;height:auto;text-align:left;padding:8px 10px!important;border:1px solid var(--nv-line)!important;border-radius:12px!important;background:var(--nv-surface)!important;background-image:none!important;box-shadow:none!important;color:var(--nv-ink)!important;cursor:pointer;font:inherit;transform:none}
html[data-nv-style="nova"] .nv-style-cards button[aria-checked="true"]{border-color:var(--nv-primary)!important;box-shadow:0 0 0 2px rgba(73,86,191,.18)!important}
html[data-nv-style="nova"] .nv-style-cards button:focus-visible{outline:3px solid var(--nv-primary);outline-offset:2px}
html[data-nv-style="nova"] .nv-style-name b{display:block;font-weight:500;font-size:13px}
html[data-nv-style="nova"] .nv-style-name small{display:block;font-size:11.5px;color:var(--nv-muted)}
html[data-nv-style="nova"] .nv-style-radio{width:17px;height:17px;border-radius:50%;border:2px solid #b9bfd2;background:var(--nv-surface);box-sizing:border-box}
html[data-nv-style="nova"] .nv-style-cards button[aria-checked="true"] .nv-style-radio{border:5px solid var(--nv-primary)}
html[data-nv-style="nova"] .nv-mini{height:42px;border-radius:8px;display:grid;grid-template-columns:16px minmax(0,1fr);overflow:hidden;border:1px solid var(--nv-line);background:var(--nv-surface)}
html[data-nv-style="nova"] .nv-mini i{display:block}
html[data-nv-style="nova"] .nv-mini u{display:grid;gap:4px;padding:6px;text-decoration:none;align-content:start}
html[data-nv-style="nova"] .nv-mini u::before,html[data-nv-style="nova"] .nv-mini u::after{content:"";height:5px;border-radius:3px;background:#e2e5ef}
html[data-nv-style="nova"] .nv-mini.is-classic i{background:var(--nv-surface);border-right:1px solid #e2e5ef}
html[data-nv-style="nova"] .nv-mini.is-classic u{background:linear-gradient(#7386d5 0 9px,#fff 9px)}
html[data-nv-style="nova"] .nv-mini.is-nova i{background:linear-gradient(180deg,var(--nv-primary),#6a79d1)}
html[data-nv-style="nova"] .nv-mini.is-nova u::before{background:#eceefb}
html[data-nv-style="nova"] .nv-mini.is-signature i{background:#261a36}
html[data-nv-style="nova"] .nv-mini.is-signature u::before{background:#e7e4ef}
html[data-nv-style="nova"] .nv-mini.is-aurora i{background:linear-gradient(180deg,#6964be,#51bcbc)}
html[data-nv-style="nova"] .nv-mini.is-aurora u::before{background:#dff1f1}

/* Invoices list (Invoices/Index; Board 10-12 Nov 2026, drawing "Invoices"): count chips and four summary tiles above the
   filters, from the rows the page already loaded; today's totals in the filter band are shown by the tiles instead. */
html[data-nv-style="nova"] .nv-inv-top[hidden]{display:grid!important;gap:12px;margin:0 0 14px}
html[data-nv-style="nova"] .nv-inv-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0}
html[data-nv-style="nova"] .nv-inv-chips .nv-chip{cursor:pointer;font:inherit;font-size:12.5px}
html[data-nv-style="nova"] .nv-inv-chips .nv-chip[aria-pressed="true"]{background:#4956bf;border-color:#4956bf;color:#fff;font-weight:500}
html[data-nv-style="nova"] .nv-inv-chips .nv-chip[aria-pressed="true"] b{color:#fff}
html[data-nv-style="nova"] .nv-inv-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:12px}
html[data-nv-style="nova"] .nv-inv-tile{background:var(--nv-surface);border:1px solid var(--nv-line);border-radius:14px;box-shadow:var(--nv-card-shadow);padding:14px 16px;display:grid;gap:2px}
html[data-nv-style="nova"] .nv-inv-tile b{font:600 22px/1.2 Poppins,sans-serif;color:var(--nv-ink);font-variant-numeric:tabular-nums}
html[data-nv-style="nova"] .nv-inv-tile span{font-size:12.5px;color:var(--nv-muted)}
html[data-nv-style="nova"] .nv-inv-tile.is-warn{background:#fffaf0;border-color:#ecd28a}


/* Nova Settings search filters the existing authorized links. */
@media screen {
    html[data-nv-style="nova"] .nova-settings-search[hidden] { display:grid!important; gap:4px; width:min(100%,26rem); margin-bottom:16px; }
    html[data-nv-style="nova"] .nova-settings-search [role="status"] { margin:4px 0 0; color:var(--nv-muted); }
    html[data-nv-style="nova"] #nova-settings-results :is(section,li)[hidden] { display:none!important; }
}

/* Shared header, catalog navigation and overviews from the Nova reference checkout. */
@media screen {
    html[data-nv-style="nova"] .nv-header .nv-header-center { display:flex; }
    html[data-nv-style="nova"] .nv-header .nv-header-center input { flex:1 1 auto; min-width:0; }
    html[data-nv-style="nova"] .nv-header .nv-header-center .btn { flex:none; position:static; }
    html[data-nv-style="nova"] .nv-header .nv-header-center:focus-within { outline:2px solid var(--nv-focus); }
    html[data-nv-style="nova"] .nv-header .nv-lang-seg[hidden] { display:flex!important; align-items:center; }
    html[data-nv-style="nova"] .nv-header .languageLi,
    html[data-nv-style="nova"] .nv-header .avatar img.rounded-circle { display:none!important; }
    html[data-nv-style="nova"] .nv-header .nv-seg { display:inline-flex; gap:2px; padding:2px; margin:0; border:1px solid var(--nv-line); border-radius:999px; background:var(--nv-surface); }
    html[data-nv-style="nova"] .nv-header .nv-seg button[type="submit"] {
        min-width:40px!important; min-height:40px!important; width:auto!important; height:auto!important;
        padding:4px 8px!important; border:0!important; border-radius:999px!important;
        background:transparent!important; box-shadow:none!important; color:var(--nv-ink)!important; font:600 12px var(--nv-nova-body);
    }
    html[data-nv-style="nova"] .nv-header .nv-seg button[aria-pressed="true"] { background:var(--nv-primary)!important; color:white!important; }
    html[data-nv-style="nova"] .nv-header .avatar .nv-avatar-initials[hidden] {
        display:inline-grid!important; place-items:center; width:34px; height:34px; border-radius:50%;
        background:var(--nv-nova-indigo); color:var(--nv-primary); font-weight:600; vertical-align:middle;
    }
    html[data-nv-style="nova"] .nv-header .avatar>.nav-link { display:inline-flex; align-items:center; gap:8px; }
    html[data-nv-style="nova"] .nv-style-cards button[type="button"] { min-height:58px; }
    html[data-nv-style="nova"] .nv-nova-catalog-tabs[hidden] {
        display:flex!important; flex-wrap:wrap; gap:8px; margin:0 0 14px; padding:8px;
        border:1px solid var(--nv-line); border-radius:var(--nv-card-radius); background:var(--nv-surface);
    }
    html[data-nv-style="nova"] .nv-nova-catalog-tabs a,
    html[data-nv-style="nova"] .nv-inv-chips button {
        display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:6px 12px;
        border:1px solid var(--nv-line); border-radius:999px; background:var(--nv-surface); color:var(--nv-link);
    }
    html[data-nv-style="nova"] .nv-nova-catalog-tabs a[aria-current="page"],
    html[data-nv-style="nova"] .nv-inv-chips button[aria-pressed="true"] { background:var(--nv-primary); color:white; }
    html[data-nv-style="nova"] .nv-inv-top[hidden].d-none { display:none!important; }
    html[data-nv-style="nova"] .nv-invoice-filters { background:var(--nv-soft)!important; border:1px solid var(--nv-line); border-radius:var(--nv-card-radius); }
    html[data-nv-style="nova"] body:has(.nv-inv-top:not(.d-none)) .nv-invoice-legacy-total { display:none!important; }
    html[data-nv-style="nova"] .nv-cont-open[hidden] {
        display:grid!important; gap:12px; margin-bottom:16px; padding:16px;
        border:1px solid var(--nv-line); border-radius:var(--nv-card-radius); background:var(--nv-surface);
    }
    html[data-nv-style="nova"] .nv-cont-open header { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:8px; }
    html[data-nv-style="nova"] .nv-cont-open h2 { margin:0; font:600 17px var(--nv-nova-display); }
    html[data-nv-style="nova"] .nv-cont-open progress { width:100%; accent-color:var(--nv-primary); }
    html[data-nv-style="nova"] .nova-auth { background:var(--nv-page)!important; }
    html[data-nv-style="nova"] .nova-auth .nv-login-brand[hidden] {
        display:flex!important; flex-direction:column; justify-content:space-between; gap:20px;
        padding:clamp(20px,4vw,48px); background:linear-gradient(150deg,var(--nv-primary),var(--nv-primary-edge));
        color:white;
    }
    html[data-nv-style="nova"] .nv-login-brand img { display:block; width:150px; height:auto; }
    html[data-nv-style="nova"] .nv-login-brand p { margin:0; color:white; }
    html[data-nv-style="nova"] .nv-login-brand .nv-login-tag { max-width:18ch; font:600 clamp(20px,2.5vw,32px)/1.3 var(--nv-nova-display); }
    html[data-nv-style="nova"] .nova-auth .nv-signin-wrapper {
        margin:0!important; height:auto; min-height:0; display:grid; place-items:center; padding:64px 16px 28px; background:none;
    }
    html[data-nv-style="nova"] .nova-auth .nv-signin-wrapper .nv-card-signin { height:auto; min-height:0; }
    @media (min-width:861px) {
        html[data-nv-style="nova"] .nova-auth { display:grid; grid-template-columns:minmax(260px,34%) minmax(0,1fr); min-height:100vh; }
        html[data-nv-style="nova"] .nova-auth>.nv-login-brand { grid-column:1; grid-row:1; }
        html[data-nv-style="nova"] .nova-auth>.nv-signin-wrapper { grid-column:2; grid-row:1; }
    }
    @media (max-width:860px) {
        html[data-nv-style="nova"] .nova-auth .nv-login-brand .nv-login-sub { display:none; }
        html[data-nv-style="nova"] .nova-auth .nv-signin-wrapper { padding-top:20px; }
    }
    @media (max-width:620px) {
        html[data-nv-style="nova"] .nv-header .nv-lang-seg[hidden] { display:none!important; }
        html[data-nv-style="nova"] .nv-header .languageLi { display:flex!important; }
    }
}

/* Routes and employees use cards on phones. Pickups retain their existing Nova cards. */
@media screen and (max-width:620px) {
    html[data-nv-style="nova"] table[data-nv-phone-cards] { display:block; width:100%!important; border:0; background:none; }
    html[data-nv-style="nova"] table[data-nv-phone-cards]>thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
    html[data-nv-style="nova"] table[data-nv-phone-cards]>tbody { display:grid; gap:10px; }
    html[data-nv-style="nova"] table[data-nv-phone-cards]>tbody>tr {
        display:grid; gap:4px; min-width:0; padding:10px 12px;
        border:1px solid var(--nv-line); border-radius:12px; background:var(--nv-surface);
    }
    html[data-nv-style="nova"] table[data-nv-phone-cards]>tbody>tr.selected { border-color:var(--nv-primary); background:var(--nv-nova-indigo); }
    html[data-nv-style="nova"] table[data-nv-phone-cards]>tbody>tr>td:not(.d-none):not([hidden]) {
        display:block; width:auto!important; min-width:0; padding:4px 0!important; border:0!important;
        background:none!important; white-space:normal!important; overflow-wrap:anywhere;
    }
    html[data-nv-style="nova"] table[data-nv-phone-cards] td[data-nv-column-label]::before {
        content:attr(data-nv-column-label); display:inline-block; width:38%; padding-right:6px; color:var(--nv-muted); font-size:.8rem; vertical-align:baseline;
    }
    html[data-nv-style="nova"] table[data-nv-phone-cards] td.select-checkbox { height:44px; }
}

/* Employee access and setup readiness are Nova staff tools. */
@media screen {
    html[data-nv-style="nova"] .nova-settings-overview:has(.nova-setup-readiness:not(.d-none)) {
        display:grid;
        grid-template-columns:minmax(0,2fr) minmax(280px,1fr);
        gap:16px;
        align-items:start;
    }
    html[data-nv-style="nova"] .nova-setup-readiness[hidden]:not(.d-none) { display:block!important; }
    html[data-nv-style="nova"] :is(.nova-setup-readiness,.nova-employee-access) {
        color:var(--nv-ink);
        background:var(--nv-surface);
        border:1px solid var(--nv-line);
        border-radius:var(--nv-card-radius);
        box-shadow:var(--nv-card-shadow);
        padding:18px;
    }
    html[data-nv-style="nova"] .nova-setup-readiness h2,
    html[data-nv-style="nova"] .nova-employee-access h2 { font:600 1.1rem/1.3 var(--nv-nova-display); margin:0 0 8px; }
    .nova-setup-progress { display:block; width:100%; margin:8px 0; accent-color:var(--nv-primary); }
    .nova-setup-steps { list-style:none; margin:0; padding:0; }
    .nova-setup-steps li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; border-top:1px solid var(--nv-line); }
    .nova-setup-steps a { display:flex; align-items:center; min-height:44px; padding:6px 0; color:var(--nv-link); font-weight:600; }
    .nova-readiness-status { display:inline-block; padding:3px 8px; border-radius:999px; background:var(--nv-soft); color:var(--nv-muted); font-size:.76rem; font-weight:600; }
    .nova-readiness-status.is-ready { color:var(--nv-good); background:var(--nv-good-soft); }
    .nova-readiness-status.is-pending { color:var(--nv-warn); background:var(--nv-warn-soft); }
    html[data-nv-style="nova"] .nova-employee-access-trigger[hidden] {
        display:inline-flex!important;
        align-items:center;
        min-height:44px;
        padding:6px 10px;
        margin-left:6px;
        border:1px solid var(--nv-line);
        border-radius:999px;
        background:var(--nv-soft);
        color:var(--nv-link);
    }
    html[data-nv-style="nova"] .nova-employee-access[open] {
        position:fixed;
        inset:16px 16px 16px auto;
        width:min(420px,calc(100% - 32px));
        max-width:none;
        max-height:calc(100% - 32px);
        margin:0;
        overflow:auto;
    }
    .nova-employee-access::backdrop { background:rgba(24,28,51,.45); }
    .nova-employee-access-bar { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:18px; }
    .nova-employee-access-bar .btn { min-height:44px; }
    .nova-employee-access-facts { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); gap:10px 12px; margin:12px 0 18px; }
    .nova-employee-access-facts dd { margin:0; overflow-wrap:anywhere; }
    .nova-employee-access-links { display:flex; flex-wrap:wrap; gap:8px; }
    @media (max-width:1050px) {
        html[data-nv-style="nova"] .nova-settings-overview:has(.nova-setup-readiness:not(.d-none)) { grid-template-columns:minmax(0,1fr); }
        html[data-nv-style="nova"] .nova-setup-readiness { grid-row:1; }
    }
    @media (max-width:620px) {
        html[data-nv-style="nova"] .nova-employee-access[open] { inset:auto 0 0; width:100%; max-height:85vh; max-height:85dvh; padding-bottom:max(18px,env(safe-area-inset-bottom)); }
        html[data-nv-style="nova"] .nova-employee-access-trigger[hidden] { margin-left:0; }
    }
}
