.dashboard {
    color: #172b4d;
}

.dashboard .dash-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 8px 0 24px;
}

.dashboard .dash-heading h1 {
    margin: 4px 0 8px;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.dashboard .dash-eyebrow {
    margin: 0;
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard .dash-muted {
    margin: 0;
    color: #64748b;
    font-size: 0.86rem;
}

.dashboard .dash-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard .dash-metric {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #172b4d;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.dashboard .dash-metric:hover {
    border-color: #93c5fd;
    background: #fafcff;
}

.dashboard .dash-metric strong {
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.dashboard .dash-metric-label {
    font-size: 0.87rem;
    font-weight: 650;
}

.dashboard .dash-metric-hint {
    color: #64748b;
    font-size: 0.76rem;
}

.dashboard .dash-metric--danger strong {
    color: #b91c1c;
}

.dashboard .dash-metric--warning strong {
    color: #b45309;
}

.dashboard .dash-overview-note {
    margin: 10px 0 22px;
    color: #64748b;
    font-size: 0.76rem;
}

.dashboard .dash-surface {
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.dashboard .dash-views {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    overflow-x: auto;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard .dash-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #52657a;
    font-size: 0.85rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard .dash-view:hover {
    background: #f1f5f9;
}

.dashboard .dash-view.is-active {
    background: #eff6ff;
    color: #1d4ed8;
}

.dashboard .dash-view span {
    padding: 2px 6px;
    border-radius: 999px;
    background: #e2e8f0;
    font-size: 0.72rem;
}

.dashboard .dash-filters {
    display: grid;
    grid-template-columns:
        minmax(230px, 2fr)
        minmax(140px, 1fr)
        minmax(160px, 1fr)
        minmax(140px, 1fr)
        auto;
    align-items: end;
    gap: 12px;
    padding: 18px;
}

.dashboard .dash-filters label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.dashboard .dash-filters label > span {
    color: #52657a;
    font-size: 0.75rem;
    font-weight: 650;
}

.dashboard .dash-filters input,
.dashboard .dash-filters select {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #172b4d;
    font: inherit;
    font-size: 0.85rem;
}

.dashboard .dash-filters input:focus,
.dashboard .dash-filters select:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
}

.dashboard .dash-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
}

.dashboard .dash-reset,
.dashboard .dash-open {
    color: #1d4ed8;
    font-size: 0.83rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard .dash-reset:hover,
.dashboard .dash-open:hover {
    text-decoration: underline;
}

.dashboard .dash-filter-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 18px 16px;
    color: #64748b;
    font-size: 0.77rem;
}

.dashboard .dash-chip {
    padding: 4px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    overflow-wrap: anywhere;
}

.dashboard .dash-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-top: 1px solid #e2e8f0;
}

.dashboard .dash-section-heading h2 {
    margin: 0;
    font-size: 1rem;
}

.dashboard .dash-section-heading p {
    margin-top: 5px;
}

.dashboard .dash-table-wrap {
    overflow-x: auto;
}

.dashboard .dash-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
}

.dashboard .dash-table th,
.dashboard .dash-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #edf1f6;
    text-align: left;
    vertical-align: middle;
}

.dashboard .dash-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard .dash-table td {
    font-size: 0.85rem;
}

.dashboard .dash-table tbody tr:hover {
    background: #fafcff;
}

.dashboard .dash-table tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard .dash-file-cell {
    min-width: 230px;
    max-width: 340px;
}

.dashboard .dash-reference {
    display: block;
    margin-bottom: 5px;
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.dashboard .dash-file-title {
    display: block;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.dashboard .dash-secondary {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.dashboard .dash-schedule > span {
    display: block;
    margin: 3px 0;
    white-space: nowrap;
}

.dashboard .dash-secondary-label {
    display: inline-block;
    width: 30px;
    color: #64748b;
    font-size: 0.73rem;
}

.dashboard .dash-document-link {
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard .dash-document-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.dashboard .dash-status {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard .dash-status--open,
.dashboard .dash-status--departed {
    background: #eff6ff;
    color: #1d4ed8;
}

.dashboard .dash-status--on-hold,
.dashboard .dash-status--follow-up,
.dashboard .dash-status--ready-to-close {
    background: #fffbeb;
    color: #92400e;
}

.dashboard .dash-status--arrived,
.dashboard .dash-status--closed {
    background: #ecfdf5;
    color: #047857;
}

.dashboard .dash-status--cancelled {
    background: #fef2f2;
    color: #b91c1c;
}

.dashboard .dash-empty {
    padding: 28px 18px !important;
    color: #64748b;
    text-align: center !important;
}

.dashboard .dash-empty a {
    color: #1d4ed8;
}

.dashboard .dash-urgent .dash-section-heading {
    border-top: 0;
}

.dashboard .dash-urgent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 18px;
    border-top: 1px solid #edf1f6;
}

.dashboard .dash-urgent-item > div {
    min-width: 0;
}

.dashboard .dash-deadline {
    display: inline-block;
    margin-bottom: 7px;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
}

.dashboard .dash-deadline--overdue {
    background: #fef2f2;
    color: #b91c1c;
}

.dashboard .dash-deadline--today {
    background: #fffbeb;
    color: #92400e;
}

.dashboard .dash-urgent-title {
    display: block;
    color: #172b4d;
    font-size: 0.87rem;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.dashboard .dash-urgent-title:hover {
    color: #1d4ed8;
}

.dashboard .dash-urgent-footer {
    margin: 0;
    padding: 14px 18px;
    border-top: 1px solid #edf1f6;
    color: #64748b;
    font-size: 0.8rem;
}

.dashboard a:focus-visible,
.dashboard button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

@media (max-width: 1150px) {
    .dashboard .dash-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard .dash-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .dashboard .dash-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard .dash-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard .dash-section-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .dashboard .dash-urgent-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 460px) {
    .dashboard .dash-overview,
    .dashboard .dash-filters {
        grid-template-columns: 1fr;
    }

    .dashboard .dash-metric {
        padding: 16px;
    }
}