* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #18202a;
    background: #eef1f4;
    font-family: Tahoma, Geneva, sans-serif;
}

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    z-index: 30;
    top: 0;
    height: 100vh;
    overflow: visible;
    display: flex;
    flex-direction: column;
    background: #0f2439;
    color: #fff;
    padding: 22px 18px;
}

.brand {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 28px;
    text-decoration: none;
}

.brand-logo {
    background: #061a2d;
    border-radius: 0;
    padding: 30px 20px;30px 20px;
    margin: -22px -18px 24px;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;

}

.sidebar .nav {
    gap: 0 !important;
}

.sidebar .nav-link {
    position: relative;
    color: #d8dee6;
    border-radius: 0;
    padding: 10px 12px 11px;
    border-bottom: 0;
    font-size: 19px;
px;
}

.sidebar .nav-link::after,
.requests-nav-row::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 1px;
    background: rgba(216, 222, 230, 0.06);
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: #fff;
    background: #;
}

.nav-item-dropdown {
    position: relative;
}

.nav-link-parent {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.nav-arrow {
    font-size: 12px;
    line-height: 1;
    color: #d8dee6;
    transition: none;
}

.nav-item-dropdown.open .nav-arrow,
.nav-item-dropdown:hover .nav-arrow {
    color: #d8dee6;
}

.nav-submenu {
    position: absolute;
    left: 116px;
    top: 0px;
    z-index: 20;
    min-width: 100px;
    opacity: 0;
    pointer-events: none;
    height: 100%;
    padding: 0;
    
    border-left: 1px solid rgba(216, 222, 230, 0.08);
    transform: translateX(0);
    transition: none;
}

.nav-item-dropdown.open .nav-submenu,
.nav-item-dropdown:hover .nav-submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.nav-sub-link {
    display: flex;
    align-items: center;
    color: #d8dee6;
    height: 100%;
    padding: 0 12px;
    font-size: 16px;
    text-decoration: none;
    transition: none;
}

.nav-sub-link:hover,
.nav-sub-link:focus,
.nav-sub-link:active,
.nav-sub-link.active {
    color: #d8dee6;
    background: transparent;
    outline: none;
}

.sidebar .nav-link.disabled {
    color: #788390;
}

.sidebar-divider {
    height: 0;
    margin: 14px 12px 18px;
}

.sidebar-role {
    margin-top: auto;
    padding: 18px 12px 14px;
    color: #788390;
    font-size: 12px;
    line-height: 1.45;
}

.sidebar-role-address {
    margin-top: 0;
}

.workspace {
    min-width: 0;
    padding: 22px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.eyebrow {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

h1 {
    margin: 2px 0 0;
    font-size: 28px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.page-head p,
.muted {
    color: #64748b;
    margin: 6px 0 0;
}

.status-pill {
    background: #dff7e9;
    color: #166534;
    border: 1px solid #a7e3bd;
    border-radius: 6px;
    padding: 9px 12px;
    font-weight: 700;
}

.status-pill.small {
    display: inline-block;
    padding: 5px 8px;
    font-size: 13px;
}

.metrics {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) repeat(6, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.metrics.compact {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.search,
.metric,
.panel {
    background: #fff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
}

.search {
    display: grid;
    gap: 6px;
    padding: 12px;
}

.search span,
.metric span {
    color: #64748b;
    font-size: 13px;
}

.search input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 10px;
}

.metric {
    padding: 12px;
}

.metric strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 18px;
}

.supply-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.panel {
    padding: 16px;
    overflow-x: auto;
}

.panel.narrow {
    max-width: 760px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.panel h2 {
    margin: 0;
    font-size: 15px;
}

.document-list {
    display: grid;
    gap: 10px;
}

.document-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.document-actions,
.status-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-actions {
    flex-wrap: wrap;
    margin: 14px 0;
}

.status-actions form {
    margin: 0;
}

.document-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.summary-table th,
.summary-table td,
.supply-items-table th,
.supply-items-table td {
    white-space: nowrap;
}

.summary-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.summary-table {
    width: max-content;
    min-width: 100%;
    font-size: 14px;
}

.summary-table th,
.summary-table td {
    padding: 7px 8px;
}

.summary-table th:nth-child(2),
.summary-table td:nth-child(2) {
    min-width: 360px;
}

.warehouse-selector {
    margin-bottom: 14px;
}

.warehouse-selector-form {
    display: grid;
    grid-template-columns: 190px minmax(360px, 1fr);
    gap: 14px;
    align-items: end;
}

.warehouse-selector-form label span,
.warehouse-supply-list-title {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.warehouse-supply-list {
    display: grid;
    gap: 6px;
}

.warehouse-date-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.warehouse-selection-actions {
    display: grid;
    gap: 8px;
}

.warehouse-selection-actions .btn {
    width: 100%;
}

.warehouse-supply-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    
    border-radius: 6px;
    background: #f8fafc;
    cursor: pointer;
}

.warehouse-supply-check input {
    margin-top: 4px;
}

.warehouse-request-info {
    flex: 1;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.warehouse-request-view {
    flex: 0 0 auto;
    align-self: center;
    white-space: nowrap;
}

.warehouse-request-new {
    border-color: #f5c96a;
    background: #fff9e6;
}

.warehouse-request-formed {
    border-color: #9fd3a7;
    background: #eaf7ec;
}

.warehouse-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #d8dee6;
    color: #475569;
    font-size: 13px;
}

.warehouse-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.warehouse-legend-color {
    display: inline-block;
    width: 18px;
    height: 14px;
    border: 1px solid;
    border-radius: 3px;
}

.warehouse-legend-new {
    border-color: #f5c96a;
    background: #fff8df;
}

.warehouse-legend-formed {
    border-color: #9fd3a7;
    background: #eaf7ec;
}

.warehouse-print-confirm {
    position: fixed;
    z-index: 2200;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 36, 57, 0.58);
    backdrop-filter: blur(3px);
}

.warehouse-print-confirm[hidden] {
    display: none;
}

.warehouse-print-confirm-dialog {
    width: min(500px, 100%);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 26px;
    border: 1px solid #d8dee6;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 36, 57, 0.28);
}

.warehouse-print-confirm-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.warehouse-print-confirm-content {
    flex: 1;
}

.warehouse-print-confirm-content h2 {
    margin: 2px 0 8px;
    color: #0f2439;
    font-size: 23px;
}

.warehouse-print-confirm-content p {
    margin: 0;
    color: #64748b;
    line-height: 1.45;
}

.warehouse-print-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.warehouse-supply-check small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.supply-items-table thead th {
    text-align: center;
    vertical-align: middle;
}

.supply-items-table {
    table-layout: fixed;
    min-width: 1320px;
    font-size: 14px;
    border-collapse: collapse;
}

.supply-items-table th,
.supply-items-table td {
    border: 1px solid #cbd5e1;
}

.supply-items-table thead th {
    background: #f8fafc;
    line-height: 1.2;
}

.supply-items-table .box-count-cell {
    background: #f4fcf3;
    color: #17251a;
}

.supply-items-table.table-hover tbody tr:hover .box-count-cell {
    background: #dcefdc;
}

.supply-items-table tbody td {
    text-align: center;
    vertical-align: middle;
}

.supply-items-table tbody td:nth-child(1) {
    text-align: left;
    padding-left: 16px;
}

.supply-items-table tfoot th {
    border: 1px solid #cbd5e1;
    text-align: right;
    background: #f8fafc;
}

.supply-items-table tfoot th:last-child {
    text-align: center;
}

.supply-items-table .col-row-number {
    width: 54px;
}

.supply-items-table .col-product {
    width: 360px;
}

.supply-items-table .col-unit {
    width: 48px;
}

.supply-items-table .col-price {
    width: 72px;
}

.supply-items-table .col-box {
    width: 64px;
}

.warehouse-load-table {
    font-size: 14px;
    border-collapse: collapse;
}

.warehouse-stores-heading {
    margin-left: 8px;
    font-size: 14px;
    line-height: 1.3;
}

.warehouse-load-table th,
.warehouse-load-table td {
    border: 1px solid #cbd5e1;
    padding: 6px 8px;
    vertical-align: middle;
}

.warehouse-load-table thead th,
.warehouse-load-table tfoot th {
    background: #f8fafc;
}

.warehouse-load-table th:not(:nth-child(2)),
.warehouse-load-table td:not(:nth-child(2)) {
    text-align: center;
    white-space: nowrap;
}

.warehouse-load-table td:nth-child(2) {
    min-width: 360px;
    padding-left: 12px;
}

.warehouse-print-title {
    margin-bottom: 12px;
}

.print-only {
    display: none;
}

.dashboard-head {
    margin-bottom: 18px;
}

.dashboard-clean-head {
    align-items: center;
    margin-bottom: 16px;
}

.dashboard-supplies-report {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 13px;
}

.dashboard-supplies-report strong {
    font-size: 24px;
    line-height: 1;
    color: #0f172a;
}

.dashboard-head-reports {
    display: flex;
    gap: 9px;
}

.dashboard-current-datetime {
    display: flex;
    align-items: center;
    position: relative;
    gap: 12px;
    min-width: 205px;
    padding: 8px 18px;
    border: 1px solid #b8c8da;
    border-radius: 8px;
    background: #fff;
}

.dashboard-current-datetime::after {
    content: attr(data-date-label);
    position: absolute;
    z-index: 20;
    top: calc(100% + 7px);
    left: 50%;
    padding: 7px 11px;
    border: 1px solid #b8c8da;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.16);
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -3px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.dashboard-current-datetime:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.dashboard-instruction-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    font-weight: 600;
    white-space: nowrap;
}

.instructions-head {
    margin-bottom: 14px;
}

.instructions-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
    padding: 10px;
}

.instructions-nav a {
    padding: 6px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #1e4f87;
    text-decoration: none;
    font-size: 13px;
}

.instructions-nav a:hover {
    background: #e2ecf8;
}

.instructions-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.instruction-column {
    display: grid;
    gap: 14px;
    align-content: start;
}

.instruction-section {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    scroll-margin-top: 12px;
}

.instruction-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e6f0ff;
    color: #1554a0;
    font-size: 16px;
    font-weight: 700;
}

.instruction-section h2 {
    margin: 2px 0 9px;
    font-size: 19px;
}

.instruction-section p,
.instruction-section li {
    line-height: 1.5;
}

.instruction-section p {
    margin: 0 0 9px;
}

.instruction-section p:last-child {
    margin-bottom: 0;
}

.instruction-section ul,
.instruction-section ol {
    margin: 0;
    padding-left: 21px;
}

.instruction-section li + li {
    margin-top: 5px;
}

.instruction-warning {
    border-color: #efcf7a;
    background: #fffdf5;
}

@media (max-width: 1050px) {
    .instructions-content {
        grid-template-columns: 1fr;
    }
}

.dashboard-current-datetime strong {
    color: #0f172a;
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.dashboard-stores-panel {
    margin-top: 0;
    padding: 14px;
}

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: minmax(520px, 1.15fr) minmax(360px, 0.85fr);
    gap: 14px;
    align-items: start;
    margin-top: 14px;
}

.dashboard-bottom-grid .dashboard-consumption-panel {
    order: 1;
}

.dashboard-bottom-grid .dashboard-stores-panel {
    order: 2;
}

.dashboard-stores-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dashboard-stores-head h2 {
    margin: 0;
    font-size: 18px;
}

.dashboard-stores-head > strong {
    min-width: 31px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf2f7;
    text-align: center;
    font-size: 14px;
}

.dashboard-stores-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.dashboard-store-item {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 8px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #0f172a;
    text-decoration: none;
    font-size: 13px;
}

.dashboard-store-item:hover {
    border-color: #9cb7d8;
    background: #f8fbff;
}

.dashboard-store-number {
    color: #64748b;
    text-align: center;
}

.dashboard-store-item > span:last-child {
    overflow: hidden;
    color: #475569;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-consumption-panel {
    margin-top: 0;
    padding: 11px 12px;
}

@media (max-width: 1250px) {
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-consumption-panel .dashboard-stores-head p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 12px;
}

.dashboard-consumption-leader {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
    padding: 8px 10px;
    border: 1px solid #f2ca65;
    border-radius: 7px;
    background: #fff9e8;
}

.dashboard-consumption-leader > span {
    color: #8a6500;
    font-size: 12px;
}

.dashboard-consumption-leader > b {
    color: #725300;
    font-size: 14px;
}

.dashboard-consumption-list {
    display: grid;
    gap: 2px;
}

.dashboard-consumption-row {
    display: grid;
    grid-template-columns: 28px minmax(260px, 1fr) 90px 100px;
    align-items: center;
    gap: 7px;
    padding: 5px 7px;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-consumption-row:last-child {
    border-bottom: 0;
}

.dashboard-consumption-store {
    display: grid;
    gap: 3px;
    font-size: 12px;
}

.dashboard-consumption-store i {
    display: block;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef5;
}

.dashboard-consumption-store i span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #3b82f6;
}

.dashboard-consumption-row small {
    color: #64748b;
    font-size: 11px;
    text-align: right;
}

.dashboard-consumption-row > b {
    font-size: 12px;
    text-align: right;
}

@media (max-width: 800px) {
    .dashboard-consumption-leader {
        grid-template-columns: 1fr auto;
    }

    .dashboard-consumption-leader > span {
        grid-column: 1 / -1;
    }

    .dashboard-consumption-row {
        grid-template-columns: 24px minmax(0, 1fr) auto;
    }

    .dashboard-consumption-row small {
        display: none;
    }
}

.store-request-created {
    margin-bottom: 14px;
}

.store-request-panel-head {
    align-items: center;
    gap: 16px;
}

.store-request-panel-head h2 {
    margin: 0;
}

.store-request-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.request-items-table input:disabled {
    color: #475569;
    background: #e9eef4;
    border-color: #cbd5e1;
    cursor: not-allowed;
    opacity: 1;
}

.store-request-summary {
    padding: 0;
    overflow: hidden;
}

.store-request-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-bottom: 1px solid #d8e0e8;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.store-request-summary-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

.store-request-summary-actions form {
    margin: 0;
}

.store-request-status {
    padding: 5px 10px;
    border: 1px solid #f0a000;
    border-radius: 7px;
    color: #9a6700;
    background: #fff8e6;
    font-size: 14px;
    font-weight: 700;
}

.store-request-status-printed,
.store-request-status-shipped {
    border-color: #4f86ed;
    color: #245db8;
    background: #edf4ff;
}

.store-request-status-delivered {
    border-color: #2fa864;
    color: #187442;
    background: #edf9f2;
}

.store-request-summary-body {
    padding: 16px 18px 18px;
}

.store-request-summary-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-bottom: 14px;
    color: #526986;
}

.store-request-summary-table {
    margin-bottom: 0;
}

.history-panel {
    overflow-x: auto;
}

.history-table {
    min-width: 820px;
    margin-bottom: 0;
}

.history-table th:first-child,
.history-time {
    width: 155px;
    white-space: nowrap;
}

.history-table th:nth-child(2) {
    width: 310px;
}

.history-action-label {
    font-weight: 700;
}

.store-requests-list {
    display: grid;
    gap: 12px;
}

.store-request-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.store-request-list-item:hover {
    color: inherit;
    border-color: #91acd0;
    box-shadow: 0 4px 14px rgba(15, 40, 67, 0.08);
}

.store-request-list-main,
.store-request-list-meta {
    display: flex;
    align-items: center;
    gap: 18px;
}

.store-request-list-main strong {
    font-size: 18px;
}

.store-request-list-main small {
    color: #607895;
}

.store-request-list-meta {
    color: #526986;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .store-request-list-item,
    .store-request-list-main,
    .store-request-list-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .store-request-summary-head,
    .store-request-summary-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 1100px) {
    .dashboard-stores-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dashboard-head-reports,
    .dashboard-stores-list {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.dashboard-status-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 14px;
    align-items: stretch;
}

.dashboard-status-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px;
    border-top: 3px solid #94a3b8;
}

.dashboard-status-column.is-open {
    border-top-color: #f59e0b;
}

.dashboard-status-column.is-shipped {
    border-top-color: #3b82f6;
}

.dashboard-status-column.is-closed {
    border-top-color: #22a05a;
}

.dashboard-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
}

.dashboard-status-head h2 {
    margin: 0 0 2px;
    font-size: 18px;
}

.dashboard-status-head p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.dashboard-status-head > strong {
    min-width: 31px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf2f7;
    text-align: center;
    font-size: 14px;
}

.dashboard-status-list {
    display: grid;
    flex: 1 1 auto;
    align-content: start;
    gap: 7px;
    height: 378px;
    max-height: 378px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dashboard-status-list::-webkit-scrollbar {
    display: none;
}

.dashboard-status-request {
    display: grid;
    gap: 4px;
    padding: 9px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.15;
}

.dashboard-status-request:hover {
    border-color: #9cb7d8;
    background: #f8fbff;
}

.dashboard-status-request-main,
.dashboard-status-request-meta {
    display: grid;
    gap: 2px;
}

.dashboard-status-request-main {
    gap: 4px;
}

.dashboard-status-request-main small,
.dashboard-status-request-meta {
    color: #64748b;
    font-size: 14px;
}

.dashboard-status-request-meta {
    grid-template-columns: minmax(0, 1fr) auto;
}

.dashboard-status-empty {
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 28px 8px;
}

@media (max-width: 1180px) {
    .dashboard-status-columns {
        grid-template-columns: 1fr;
    }

    .dashboard-status-list {
        height: 378px;
        max-height: 378px;
    }
}

.dashboard-compact-totals {
    display: flex;
    gap: 8px;
}

.dashboard-compact-totals span {
    padding: 7px 11px;
    border: 1px solid #d7e0ea;
    border-radius: 7px;
    background: #fff;
    color: #64748b;
    font-size: 13px;
}

.dashboard-compact-totals strong {
    margin-left: 5px;
    color: #0f172a;
}

.dashboard-workspace {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 620px;
    padding: 0;
    overflow: hidden;
}

.dashboard-workspace-stores {
    padding: 14px;
    border-right: 1px solid #dbe3ec;
    overflow-y: auto;
}

.dashboard-workspace-stores h2,
.dashboard-compact-requests h2,
.dashboard-inline-chat h2 {
    margin: 0 0 9px;
    font-size: 16px;
}

.dashboard-store-workarea {
    display: grid;
    grid-template-rows: auto auto minmax(250px, 1fr);
    min-width: 0;
    padding: 14px 16px;
}

.dashboard-selected-store {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 11px;
    border-bottom: 1px solid #dbe3ec;
}

.dashboard-selected-store div {
    display: grid;
    gap: 2px;
}

.dashboard-selected-store div span,
.dashboard-selected-store > span {
    color: #64748b;
    font-size: 12px;
}

.dashboard-compact-requests {
    padding: 12px 0;
    border-bottom: 1px solid #dbe3ec;
}

.dashboard-compact-request-list {
    display: grid;
    gap: 5px;
    max-height: 190px;
    overflow-y: auto;
}

.dashboard-compact-request {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr) 110px 70px;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid #e2e8f0;
    border-left-width: 3px;
    border-radius: 6px;
    color: #0f172a;
    text-decoration: none;
    font-size: 12px;
}

.dashboard-compact-request.is-open {
    border-left-color: #f59e0b;
}

.dashboard-compact-request.is-closed {
    border-left-color: #22a05a;
    background: #f3fbf6;
}

.dashboard-compact-request:hover {
    background: #f8fbff;
}

.dashboard-compact-request small {
    color: #64748b;
}

.dashboard-compact-request em {
    color: #64748b;
    font-style: normal;
    text-align: right;
}

.dashboard-inline-chat {
    display: grid;
    grid-template-rows: auto minmax(140px, 1fr) auto;
    min-height: 0;
    padding-top: 12px;
}

.dashboard-comments-messages {
    min-height: 140px;
    max-height: 290px;
    padding: 5px 2px 10px;
}

.dashboard-comments-compose textarea {
    min-height: 50px;
    max-height: 90px;
}

@media (max-width: 900px) {
    .dashboard-workspace {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .dashboard-compact-request {
        grid-template-columns: 50px minmax(0, 1fr) 65px;
    }

    .dashboard-compact-request small {
        display: none;
    }
}

.dashboard-request-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 260px));
    gap: 12px;
    margin-bottom: 18px;
}

.dashboard-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #d7e0ea;
    border-radius: 9px;
    background: #fff;
}

.dashboard-summary-card span {
    color: #475569;
}

.dashboard-summary-card strong {
    font-size: 24px;
}

.dashboard-summary-open {
    border-left: 4px solid #f59e0b;
}

.dashboard-summary-closed {
    border-left: 4px solid #22a05a;
}

.dashboard-request-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.dashboard-request-panel {
    padding: 18px;
}

.dashboard-section-head,
.dashboard-store-head,
.dashboard-request-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dashboard-section-head {
    margin-bottom: 14px;
}

.dashboard-section-head h2 {
    margin: 0 0 3px;
    font-size: 20px;
}

.dashboard-section-head p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.dashboard-section-count,
.dashboard-store-count {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 3px 9px;
    background: #edf2f7;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-store-list {
    display: grid;
    gap: 12px;
}

.dashboard-store-card {
    overflow: hidden;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #fff;
}

.dashboard-store-head {
    padding: 11px 13px;
    background: #f8fafc;
}

.dashboard-store-head div {
    display: grid;
    gap: 2px;
}

.dashboard-store-head span {
    color: #64748b;
    font-size: 12px;
}

.dashboard-store-head .dashboard-store-count {
    color: #475569;
}

.dashboard-request-row {
    padding: 10px 13px;
    border-top: 1px solid #e2e8f0;
    color: #0f172a;
    text-decoration: none;
}

.dashboard-request-row:hover {
    background: #f8fbff;
}

.dashboard-request-row > span:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.dashboard-request-row small {
    color: #64748b;
}

.dashboard-request-meta {
    display: grid;
    flex: 0 0 auto;
    gap: 2px;
    text-align: right;
    font-size: 12px;
}

.dashboard-request-panel.is-open .dashboard-request-meta > span {
    color: #9a6700;
}

.dashboard-request-panel.is-closed .dashboard-request-meta > span {
    color: #08783e;
}

.dashboard-empty {
    padding: 24px 12px;
}

.dashboard-comments-panel {
    margin-top: 16px;
    padding: 18px;
}

.dashboard-comment-threads {
    display: grid;
    gap: 8px;
}

.dashboard-comment-thread {
    display: grid;
    grid-template-columns: minmax(250px, 0.8fr) minmax(280px, 1.2fr);
    gap: 18px;
    padding: 11px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    color: #0f172a;
    text-decoration: none;
}

.dashboard-comment-thread:hover {
    border-color: #93b4df;
    background: #f8fbff;
}

.dashboard-comment-thread > span:first-child {
    display: grid;
    gap: 2px;
}

.dashboard-comment-thread small,
.dashboard-comment-preview {
    color: #64748b;
}

.dashboard-comment-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comments-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 16px;
}

.comments-layout-store {
    grid-template-columns: minmax(0, 900px);
}

.comments-stores,
.comments-chat {
    padding: 16px;
}

.comments-stores h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.comments-store-link {
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: 7px;
    color: #0f172a;
    text-decoration: none;
}

.comments-store-link span {
    color: #64748b;
    font-size: 12px;
}

.comments-store-link > span:last-child {
    font-size: 15px;
}

.comments-store-link:hover,
.comments-store-link.active {
    background: #eaf2ff;
}

.comments-store-link.has-unread {
    background: #fff5f5;
}

.comments-store-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}


.comments-chat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.comments-chat-identity {
    display: grid;
    gap: 2px;
}

.comments-delete-all {
    align-self: flex-end;
    margin-right: 16px;
}

.comments-chat-head span {
    color: #64748b;
    font-size: 13px;
}

.comments-messages {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 280px;
    max-height: 520px;
    overflow-y: auto;
    padding: 15px 2px;
}

.comments-reply-reminders {
    display: grid;
    gap: 8px;
    width: calc(100% - 326px);
    margin: 16px 0 0 326px;
}

.comments-reply-reminders[hidden] {
    display: none;
}

.comments-reply-reminder {
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #f1f5f9;
    color: #475569;
    font-size: 15px;
    font-weight: 400;
}

.comments-reply-reminder a {
    color: inherit;
    text-decoration: none;
}

.comments-reply-reminder a:hover,
.comments-reply-reminder a:focus {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 850px) {
    .comments-reply-reminders {
        width: 100%;
        margin-left: 0;
    }
}

.comment-message {
    align-self: flex-start;
    max-width: min(75%, 680px);
    padding: 9px 12px;
    border-radius: 10px 10px 10px 2px;
    background: #f1f5f9;
    white-space: normal;
    overflow-wrap: anywhere;
}

.comment-message.is-admin {
    align-self: flex-end;
    border-radius: 10px 10px 2px 10px;
    background: #e6f0ff;
}

.comment-message-author {
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 700;
}

.comment-message time {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    text-align: right;
}

.comments-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.comments-compose textarea {
    min-height: 68px;
    resize: vertical;
}

.comments-compose .btn {
    align-self: end;
}

@media (max-width: 850px) {
    .comments-layout,
    .dashboard-request-summary {
        grid-template-columns: 1fr;
    }

    .dashboard-comment-thread {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 1050px) {
    .dashboard-request-sections {
        grid-template-columns: 1fr;
    }
}

.warehouse-print-title h1 {
    margin: 0 0 4px;
    font-size: 26px;
}

.warehouse-print-title p {
    margin: 2px 0;
    color: #475569;
}

.warehouse-print-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.warehouse-print-logo {
    display: none;
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

.warehouse-check-cell {
    width: 78px;
    font-size: 22px;
    text-align: center;
}

@media (max-width: 1100px) {
    .warehouse-selector-form {
        grid-template-columns: 1fr;
    }
}

.supply-items-table .col-total {
    width: 96px;
}

.supply-items-table td:nth-child(2) {
    white-space: normal;
}

.supply-items-edit-table .item-name-input {
    min-height: 42px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.25;
}

.supply-items-edit-table .item-number-input {
    min-width: 0;
    padding: 4px 6px;
    text-align: center;
}

.supply-items-edit-table td {
    vertical-align: middle;
}

.document-metrics {
    grid-template-columns: 0.8fr 0.9fr 2fr 0.9fr;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
}

.document-metrics .metric {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.document-metrics .metric span {
    font-size: 12px;
}

.document-metrics .metric strong {
    font-size: 16px;
    line-height: 1.3;
}

.document-card {
    padding: 16px;
}

.document-card .document-meta {
    gap: 6px 18px;
    padding-bottom: 10px;
    font-size: 14px;
}

.document-card .status-actions {
    margin: 8px 0 10px;
}

.document-status-button {
    background: transparent;
    font-weight: 500;
}

.document-status-button.is-confirmed {
    border-color: #f59e0b;
    color: #b56700;
}

.document-status-button.is-shipped {
    border-color: #3b82f6;
    color: #2563eb;
}

.document-status-button.is-delivered {
    border-color: #22a766;
    color: #16834d;
}

.document-status-button.is-confirmed:hover,
.document-status-button.is-confirmed:focus {
    background: #f59e0b;
    color: #fff;
}

.document-status-button.is-shipped:hover,
.document-status-button.is-shipped:focus {
    background: #3b82f6;
    color: #fff;
}

.document-status-button.is-delivered:hover,
.document-status-button.is-delivered:focus {
    background: #22a766;
    color: #fff;
}

.document-table {
    margin-bottom: 0;
    table-layout: fixed;
    font-size: 14px;
}

.document-table th,
.document-table td {
    padding: 7px 8px;
    vertical-align: middle;
}

.document-table th {
    line-height: 1.2;
}

.document-table td:nth-child(2) {
    white-space: normal;
}

.document-table th:nth-child(1),
.document-table td:nth-child(1) {
    width: 7%;
}

.document-table th:nth-child(2),
.document-table td:nth-child(2) {
    width: 34%;
}

.document-table th:nth-child(3),
.document-table td:nth-child(3) {
    width: 7%;
}

.document-table th:nth-child(4),
.document-table td:nth-child(4),
.document-table th:nth-child(5),
.document-table td:nth-child(5),
.document-table th:nth-child(6),
.document-table td:nth-child(6),
.document-table th:nth-child(7),
.document-table td:nth-child(7),
.document-table th:nth-child(8),
.document-table td:nth-child(8) {
    width: 8%;
}

.document-table th:nth-child(9),
.document-table td:nth-child(9) {
    width: 12%;
}

@media print {
    .sidebar,
    .header-actions,
    .status-actions,
    .no-print {
        display: none !important;
    }

    .app-shell {
        display: block;
    }

    .workspace {
        padding: 0;
    }

    body {
        background: #fff;
    }

    .panel,
    .metric {
        border: 0;
    }

    @page {
        size: A4 portrait;
        margin: 8mm 4mm;
    }

    body {
        font-size: 11px;
        line-height: 1.25;
    }

    .print-sheet {
        width: 92%;
        margin: 0 auto;
        font-size: 14.5px;
    }

    .page-head {
        margin-bottom: 8px;
    }

    .page-head h1 {
        margin: 0 0 4px;
        font-size: 22px;
        line-height: 1.1;
    }

    .page-head p {
        margin: 0;
        font-size: 12px;
    }

    .document-metrics {
        grid-template-columns: 0.8fr 0.9fr 2fr 0.9fr !important;
        gap: 6px !important;
        margin-bottom: 8px !important;
    }

    .document-metrics .metric {
        background: transparent;
        border-radius: 0;
        padding: 0;
    }

    .document-metrics .metric span {
        font-size: 10px;
    }

    .document-metrics .metric strong {
        margin-top: 2px;
        font-size: 12px;
    }

    .document-card {
        padding: 0;
        background: transparent;
    }

    .document-card .document-meta {
        gap: 3px 16px;
        padding-bottom: 6px;
        margin-bottom: 6px;
        font-size: 11px;
        line-height: 1.25;
    }

    .document-table {
        font-size: 10px;
        line-height: 1.18;
    }

    .document-table th,
    .document-table td {
        padding: 3px 4px;
    }

    .document-table thead th {
        font-size: 10px;
    }

    .document-table tfoot th {
        padding: 4px;
        font-size: 10px;
    }

    .store-document-print {
        display: block !important;
        width: 100%;
        color: #111;
        font-family: Arial, sans-serif;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .store-print-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 2mm 0 11mm;
    }

    .store-print-brand {
        display: flex;
        align-items: center;
        gap: 4mm;
    }

    .store-print-brand img {
        width: 24mm;
        height: 24mm;
        object-fit: contain;
    }

    .store-print-contact {
        display: grid;
        gap: 0.5mm;
    }

    .store-print-contact span {
        color: #444;
        font-size: 17px;
        line-height: 1.1;
    }

    .store-print-contact strong {
        font-size: 21px;
        line-height: 1.08;
        font-weight: 800;
    }

    .store-print-contact strong:first-of-type {
        font-size: 22px;
        font-weight: 700;
    }

    .store-print-date {
        display: grid;
        justify-items: end;
        gap: 1.5mm;
    }

    .store-print-date strong {
        font-size: 21px;
        line-height: 1;
    }

    .store-print-date span {
        color: #111;
        font-size: 22px;
        line-height: 1;
        font-weight: 700;
    }

    .store-print-date small {
        margin-top: 1mm;
        color: #444;
        font-size: 12px;
        font-weight: 400;
    }

    .store-print-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        font-size: 12px;
    }

    .store-print-table th,
    .store-print-table td {
        padding: 3.5mm 2.5mm;
        border: 1px solid #b9bec4;
        vertical-align: middle;
    }

    .store-print-table th {
        background: #f2f3f5 !important;
        font-size: 13px;
        line-height: 1.05;
        font-weight: 800;
    }

    .store-print-table th small {
        display: block;
        margin-top: 1mm;
        font-size: 9px;
        font-weight: 400;
    }

    .store-print-table th:nth-child(1) { width: 7%; }
    .store-print-table th:nth-child(2) { width: 36%; text-align: left; }
    .store-print-table th:nth-child(3) { width: 12%; }
    .store-print-table th:nth-child(4),
    .store-print-table th:nth-child(5) { width: 10%; }
    .store-print-table th:nth-child(6) { width: 11%; }
    .store-print-table th:nth-child(7) { width: 14%; }

    .store-print-table td:not(:nth-child(2)) {
        text-align: center;
    }

    .store-print-table td > strong {
        font-size: 14px;
    }

    .store-print-table td:nth-child(2) strong {
        display: block;
        font-size: 12px;
    }

    .store-print-table td:nth-child(2) small {
        display: block;
        margin-top: 1.5mm;
        color: #555;
        font-size: 9px;
    }

    .store-print-totals {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 8mm;
    }

    .store-print-box-total,
    .store-print-money-total {
        display: flex;
        align-items: center;
        gap: 4mm;
        padding: 2mm 7mm;
    }

    .store-print-money-total {
        border-left: 0;
    }

    .store-print-box-total > div {
        display: grid;
        grid-template-columns: auto auto;
        align-items: end;
        column-gap: 4mm;
    }

    .store-print-box-total span,
    .store-print-money-total span {
        font-size: 16px;
        font-weight: 700;
    }

    .store-print-box-total strong {
        font-size: 36px;
        line-height: 0.9;
    }

    .store-print-box-total small {
        grid-column: 1 / -1;
        margin-top: 3mm;
        color: #555;
        font-size: 12px;
    }

    .store-print-money-total strong {
        margin-left: auto;
        font-size: 27px;
        white-space: nowrap;
    }
}

.form-grid {
    display: grid;
    gap: 15px;
    font-size: 18px;
}

.form-grid label {
    display: grid;
    gap: 6px;
    color: #334155;
    font-weight: 700;
}

.form-grid label span {
    font-size: 14px;
}

.form-grid .checkline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.form-grid .checkline input {
    width: 18px;
    height: 18px;
}

.hint {
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.table-actions {
    white-space: nowrap;
}

.table-actions > * {
    display: inline-flex;
    vertical-align: middle;
    margin-right: 8px;
}

.table-actions > *:last-child {
    margin-right: 0;
}

.table-actions form {
    margin: 0;
}

.table-actions .store-link-copy-btn {
    margin-right: 2px;
}

.actions-col {
    width: 340px;
}

.store-move-btn {
    width: 34px;
    padding-left: 0;
    padding-right: 0;
}

.stores-total {
    margin-top: 4px;
    color: #334155;
}

.store-number-col {
    width: 54px;
    text-align: center;
    white-space: nowrap;
}

.empty {
    color: #64748b;
    text-align: center;
    padding: 28px;
}

.small-text {
    font-size: 12px;
}

.request-items-table .box-picker-input {
    min-width: 0;
    width: 72px;
    height: 30px;
    padding: 2px 4px;
    background: #ffffff;
    color: #0f172a;
    cursor: text;
    text-align: center;
}

.box-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.box-remaining {
    min-width: 24px;
    color: #166534;
    font-size: 14px;
}

.readonly-box-cell {
    text-align: center;
}

.request-items-table input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.request-items-table input:disabled {
    background: #e9edf2;
    color: #64748b;
    cursor: not-allowed;
    opacity: 1;
}

.requests-table td {
    vertical-align: middle;
}

.requests-table td:nth-child(5) {
    max-width: 280px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.request-actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.request-actions form {
    margin: 0;
}

.requests-bulk-delete {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.requests-bulk-delete .form-select {
    width: 120px;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.requests-nav-row {
    position: relative;
    display: flex;
    align-items: center;
}

.requests-nav-link {
    flex: 1;
    border-bottom: 0;
}

.requests-nav-link::after {
    display: none;
}

.settings-nav-row {
    display: flex;
    align-items: center;
}

.settings-label {
    display: inline-block;
    padding: 7px 4px 11px 12px;
    color: #788390;
    cursor: default;
}

.request-alert {
    display: inline-flex;
    align-items: center;
    margin-left: 1px;
    color: #ef4444;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.request-alert-count {
    display: inline-block;
    min-width: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    transform: translateY(1px);
}

.request-alert-count.is-pulsing {
    animation: request-alert-number-blink 1s infinite;
}

.comments-nav-link {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.comment-alert-count {
    display: inline-block;
    min-width: 0;
    padding: 0;
    background: transparent;
    color: #788390;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(1px);
}

.comment-alert-count[hidden] {
    display: none !important;
}

.sound-toggle {
    border: 0;
    background: transparent;
    color: #cbd5e1;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 15px;
}

.sound-toggle:hover {
    color: #ffffff;
}

.delete-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.store-accept-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(5, 20, 35, 0.58);
}

.store-accept-modal[hidden] {
    display: none;
}

.store-accept-dialog {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    width: min(610px, 96vw);
    padding: 28px 30px 26px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 40, 67, 0.24);
}

.store-accept-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.store-accept-content {
    min-width: 0;
}

.store-accept-dialog h2 {
    margin: 2px 0 10px;
    font-size: 23px;
    font-weight: 500;
}

.store-accept-dialog p {
    margin: 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.5;
}

.store-accept-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

@media (max-width: 560px) {
    .store-accept-dialog {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 14px;
        padding: 22px 18px;
    }

    .store-accept-logo {
        width: 50px;
        height: 50px;
    }

    .store-accept-dialog-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }
}

.delete-confirm-modal[hidden] {
    display: none;
}

.delete-confirm-dialog {
    position: relative;
    width: min(780px, 96vw);
    color: #ffffff;
    background: #0f2b46;
    border-radius: 0;
    
    text-align: center;
    padding: 118px 0 0;
    overflow: visible;
transform: translateY(-60px);


}

.delete-confirm-close {
    position: absolute;
    right: 20px;
    top: 16px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
}

.delete-confirm-close:hover,
.delete-confirm-close:focus {
    color: #ffffff;
}

.delete-confirm-icon {
    position: absolute;
    left: 50%;
    top: 55px;;
    width: 100px;
    max-width: 44vw;
    transform: translateX(-50%);
    filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

.delete-confirm-title {
    margin: 70px 34px 12px;
    font-size: clamp(46px, 8vw, 76px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1px;
}

.delete-confirm-message {
    margin: 0 34px 80px;
    font-size: clamp(30px, 4.6vw, 46px);
    line-height: 1.15;
}

.delete-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: transparent;
    padding-top: 0;
}

.delete-confirm-no,
.delete-confirm-yes {
    min-height: 112px;
    border: 0;
    color: #ffffff;
    font-size: clamp(30px, 7vw, 58px);
    line-height: 1;
    cursor: pointer;
}








.delete-confirm-no {
    background: #870000;
    border-radius: 0;
}

.delete-confirm-yes {
    background: #155800;
    border-radius: 0;
}


.delete-confirm-no:hover,
.delete-confirm-no:focus {
    background: #9d0000;
}



.delete-confirm-yes:hover,
.delete-confirm-yes:focus {
    background: #248300;
}










@keyframes request-alert-number-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.db-info {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

.db-info div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}

.db-info dt {
    color: #64748b;
    font-weight: 700;
}

.db-info dd {
    margin: 0;
}

.scroll-top-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(216, 222, 230, 0.22);
    border-radius: 50%;
    background: #1f2d3f;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.scroll-top-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-button:hover {
    background: #243f5b;
}

.public-page {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    background: #0f2439;
    color: #f4f8fb;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #0f2439;
}

.login-card {
    width: min(448px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateY(-28px);
}

.login-logo {
    width: 400px;
    height: 263px;
    object-fit: contain;
    margin-bottom: 30px;
}

.login-brand {
    line-height: 1;
    letter-spacing: 1.6px;
    color: #fff;
}

.login-brand-title {
    font-size: 44px;
    font-weight: 700;
}

.login-brand-subtitle {
    margin-top: 8px;
    font-size: 33px;
    font-weight: 300;
}

.login-divider {
    width: 100%;
    height: 2px;
    margin: 0 0 24px;
    background: rgba(194, 207, 219, 0.35);
}

.login-title {
    margin: 0 0 16px;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
}

.login-form {
    width: 224px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-form label {
    display: block;
    text-align: left;
}

.login-form label span {
    display: block;
    margin-bottom: 4px;
    color: rgba(244, 248, 251, 0.78);
    font-size: 13px;
}

.login-form input {
    width: 100%;
    height: 38px;
    border: 1px solid rgba(218, 229, 239, 0.72);
    border-radius: 8px;
    padding: 7px 12px;
    color: #fff;
    background: transparent;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-form input:focus {
    border-color: #70a9e8;
    box-shadow: 0 0 0 3px rgba(112, 169, 232, 0.18);
}

.login-form button {
    height: 40px;
    border: 0px solid rgba(218, 229, 239, 0.72);
    border-radius: 8px;
    margin-top: 12px;
    color: #fff;
    background: #18324d;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.login-form button:hover {
    background: #183450;
    border-color: rgba(244, 248, 251, 0.9);
}

.login-error {
    width: min(340px, 100%);
    margin-top: 16px;
    border: 1px solid rgba(255, 121, 121, 0.5);
    border-radius: 8px;
    padding: 10px 12px;
    color: #ffd9d9;
    background: rgba(126, 16, 28, 0.32);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .metrics,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .page-head {
        display: grid;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .metrics.compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) and (max-height: 728px) {
    .login-page {
        padding: 20px;
    }

    .login-card {
        transform: translateY(-18px);
    }

    .login-logo {
        width: 118px;
        height: 118px;
        margin-bottom: 24px;
    }

    .login-brand-title {
        font-size: 38px;
    }

    .login-brand-subtitle {
        font-size: 28px;
    }

    .login-divider {
        margin: 0 0 20px;
    }
}

@media print {
    .scroll-top-button {
        display: none !important;
    }

    .screen-warehouse-sheet {
        display: none !important;
    }

    .warehouse-paginated-print,
    .warehouse-paginated-print .print-only {
        display: block !important;
    }

    .warehouse-print-page {
        display: flex !important;
        flex-direction: column;
        box-sizing: border-box;
        min-height: 276mm;
        break-after: page;
        page-break-after: always;
    }

    .warehouse-print-page:last-child {
        break-after: auto;
        page-break-after: auto;
    }

    .warehouse-print-page .warehouse-card {
        flex: 0 0 auto;
    }

    .warehouse-print-page-number {
        margin-top: auto;
        padding-top: 5mm;
        color: #334155;
        font-size: 11px;
        font-weight: 700;
        text-align: center;
    }

    .metrics.compact.document-metrics {
        grid-template-columns: 0.8fr 0.9fr 2fr 0.9fr !important;
    }

    .warehouse-load-table {
        width: 100%;
        margin: 0;
        font-size: 13.3px;
    }

    .warehouse-stores-heading {
        margin-left: 6px;
        padding: 3px 5px !important;
        font-size: 13px !important;
    }

    .warehouse-card {
        padding: 0;
        overflow: visible;
    }

    .warehouse-load-table th,
    .warehouse-load-table td {
        border-color: #94a3b8;
        padding: 3px 4px;
    }

    .warehouse-load-table th:last-child,
    .warehouse-load-table td:last-child {
        border-right-width: 0.5px;
    }

    .warehouse-load-table td:nth-child(2) {
        min-width: 0;
        padding-left: 7px;
    }

    .warehouse-print-title h1 {
        font-size: 20px;
    }

    .warehouse-print-logo {
        display: block;
    }

}
