.scr-page{display:grid;gap:16px;width:100%}.scr-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px;background:#203f70;color:#fff;border-radius:16px}.scr-head a{color:#dce9fa;text-decoration:none}.scr-head h1{margin:7px 0 3px}.scr-head p{margin:0;color:#dce9fa}.scr-head button{padding:10px 15px;color:#203f70;background:#fff;border:0;border-radius:10px;font:inherit;font-weight:800}.scr-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.scr-metrics article,.scr-card{padding:17px;background:#fff;border:1px solid #e0e7f0;border-radius:14px}.scr-metrics span{display:block;color:#68768a;font-size:.82rem}.scr-metrics strong{display:block;margin-top:6px;color:#203f70;font-size:1.7rem}.scr-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.scr-card h2{margin:0 0 13px;color:#e96f25}.scr-group-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #edf1f6}.scr-group-row span{color:#69778a}.scr-table-head{display:flex;justify-content:space-between;gap:12px}.scr-table-wrap{width:100%;overflow-x:auto}.scr-table-wrap table{width:100%;border-collapse:collapse;min-width:1000px}.scr-table-wrap th,.scr-table-wrap td{padding:11px 9px;text-align:left;border-bottom:1px solid #edf1f6}.scr-table-wrap th{color:#203f70;font-size:.8rem;text-transform:uppercase}.scr-status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:.78rem;font-weight:800}.scr-status.converted{color:#1e6b3a;background:#e7f6ec}.scr-status.completed{color:#8a5b00;background:#fff4d8}.scr-status.draft{color:#5c6675;background:#edf1f5}.scr-error{color:#a12a20;background:#fdecea}@media(max-width:1100px){.scr-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.scr-head,.scr-group-row{display:grid}.scr-metrics,.scr-groups{grid-template-columns:1fr 1fr}}@media(max-width:480px){.scr-metrics,.scr-groups{grid-template-columns:1fr}}


/* Stock-count report entry links */
.field-report-action {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 0 0 14px;
}

.field-report-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    color: #fff;
    background: #1f3864;
    border: 1px solid #1f3864;
    border-radius: 11px;
    font-weight: 800;
    text-decoration: none;
}

.field-report-button:hover {
    color: #fff;
    background: #172f57;
}

@media (max-width: 600px) {
    .field-report-action,
    .field-report-button {
        width: 100%;
    }

    .field-report-button {
        justify-content: center;
    }
}


/* Stock-count report export and heading fix */
.scr-head h1 {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.scr-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.scr-head .scr-refresh,
.scr-head .scr-export {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 10px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.scr-head .scr-refresh {
    color: #203f70;
    background: #ffffff;
    border: 1px solid #ffffff;
}

.scr-head .scr-export {
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .72);
}

.scr-head .scr-export:hover {
    background: rgba(255, 255, 255, .12);
}

.scr-head button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

@media (max-width: 600px) {
    .scr-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
}


/* Stock-count report PDF export */
.scr-export-pdf {
    border-color: rgba(255, 255, 255, .72) !important;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 10mm;
    }

    html,
    body {
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #172f57 !important;
        background: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.stock-count-pdf-export .sidebar,
    body.stock-count-pdf-export .nexus-sidebar,
    body.stock-count-pdf-export nav,
    body.stock-count-pdf-export .scr-actions,
    body.stock-count-pdf-export .field-report-action,
    body.stock-count-pdf-export #blazor-error-ui {
        display: none !important;
    }

    body.stock-count-pdf-export .shell,
    body.stock-count-pdf-export main.nexus-main,
    body.stock-count-pdf-export .app-content-frame,
    body.stock-count-pdf-export .scr-page {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.stock-count-pdf-export .scr-head {
        padding: 12px 14px !important;
        border-radius: 8px !important;
        break-inside: avoid;
    }

    body.stock-count-pdf-export .scr-head a {
        display: none !important;
    }

    body.stock-count-pdf-export .scr-head h1 {
        margin-top: 0 !important;
        font-size: 22pt !important;
    }

    body.stock-count-pdf-export .scr-metrics {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin-top: 8px !important;
        break-inside: avoid;
    }

    body.stock-count-pdf-export .scr-metrics article,
    body.stock-count-pdf-export .scr-card {
        padding: 9px !important;
        border-radius: 7px !important;
        box-shadow: none !important;
    }

    body.stock-count-pdf-export .scr-metrics strong {
        font-size: 16pt !important;
    }

    body.stock-count-pdf-export .scr-groups {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 8px !important;
        break-inside: avoid;
    }

    body.stock-count-pdf-export .scr-table-wrap {
        overflow: visible !important;
    }

    body.stock-count-pdf-export .scr-table-wrap table {
        min-width: 0 !important;
        width: 100% !important;
        table-layout: fixed;
        font-size: 8pt;
    }

    body.stock-count-pdf-export .scr-table-wrap thead {
        display: table-header-group;
    }

    body.stock-count-pdf-export .scr-table-wrap tr {
        break-inside: avoid;
    }

    body.stock-count-pdf-export .scr-table-wrap th,
    body.stock-count-pdf-export .scr-table-wrap td {
        padding: 5px 4px !important;
        overflow-wrap: anywhere;
    }

    body.stock-count-pdf-export .scr-table-wrap th:nth-child(1),
    body.stock-count-pdf-export .scr-table-wrap td:nth-child(1) { width: 13%; }
    body.stock-count-pdf-export .scr-table-wrap th:nth-child(2),
    body.stock-count-pdf-export .scr-table-wrap td:nth-child(2) { width: 20%; }
    body.stock-count-pdf-export .scr-table-wrap th:nth-child(3),
    body.stock-count-pdf-export .scr-table-wrap td:nth-child(3) { width: 14%; }
    body.stock-count-pdf-export .scr-table-wrap th:nth-child(4),
    body.stock-count-pdf-export .scr-table-wrap td:nth-child(4) { width: 7%; }
    body.stock-count-pdf-export .scr-table-wrap th:nth-child(5),
    body.stock-count-pdf-export .scr-table-wrap td:nth-child(5) { width: 10%; }
    body.stock-count-pdf-export .scr-table-wrap th:nth-child(6),
    body.stock-count-pdf-export .scr-table-wrap td:nth-child(6) { width: 8%; }
    body.stock-count-pdf-export .scr-table-wrap th:nth-child(7),
    body.stock-count-pdf-export .scr-table-wrap td:nth-child(7) { width: 8%; }
    body.stock-count-pdf-export .scr-table-wrap th:nth-child(8),
    body.stock-count-pdf-export .scr-table-wrap td:nth-child(8) { width: 12%; }
    body.stock-count-pdf-export .scr-table-wrap th:nth-child(9),
    body.stock-count-pdf-export .scr-table-wrap td:nth-child(9) { width: 8%; }
}

/* Phase 4E count schedules */
.schedule-card{margin:14px 0}.schedule-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.schedule-grid label{display:grid;gap:6px;color:#1f3864;font-weight:800}.schedule-grid input,.schedule-grid select{box-sizing:border-box;width:100%;padding:11px;border:1px solid #cbd5e1;border-radius:10px;font:inherit}.schedule-facts{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.schedule-facts span{padding:8px 10px;background:#f6f8fb;border-radius:9px;color:#64748b}.schedule-status,.scr-status.overdue,.scr-status.duetoday{color:#9b241b;background:#fde9e7}.schedule-status.duesoon,.scr-status.duesoon,.scr-status.grace{color:#8a5b00;background:#fff4d8}.schedule-status.upcoming,.scr-status.upcoming{color:#1e6b3a;background:#e7f6ec}.schedule-status.notscheduled,.scr-status.notscheduled,.scr-status.needsfirstduedate{color:#5c6675;background:#edf1f5}.scr-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}@media(max-width:900px){.schedule-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.schedule-grid{grid-template-columns:1fr}}


/* Account card heading consistency */
.schedule-card .schedule-title {
    margin: 0;
    color: #df6c2f;
}
