.dashboard-state-banner,
.dashboard-panel,
.dashboard-inline-alert {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.dashboard-state-banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
}

.dashboard-state-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-state-kicker {
    margin: 0 0 6px 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.dashboard-state-title {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
    color: #0f172a;
}

.dashboard-state-text {
    margin: 10px 0 0 0;
    font-size: 0.94rem;
    line-height: 1.6;
    color: #475569;
}

.dashboard-state-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.dashboard-action-btn,
.dashboard-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.dashboard-action-btn[hidden],
.dashboard-action-link[hidden] {
    display: none !important;
}

.dashboard-action-btn:hover,
.dashboard-action-link:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 23, 42, 0.18);
}

.dashboard-action-btn.primary,
.dashboard-action-link.primary {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.dashboard-action-btn.secondary,
.dashboard-action-link.secondary {
    background: rgba(248, 250, 252, 0.9);
}

.dashboard-inline-alert {
    display: none;
    padding: 12px 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #991b1b;
    background: rgba(254, 242, 242, 0.9);
    border-color: rgba(248, 113, 113, 0.24);
    box-shadow: none;
}

.dashboard-inline-alert.is-visible {
    display: block;
}

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

.dashboard-panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    color: #0f172a;
}

.dashboard-panel-subtitle {
    margin: 6px 0 0 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #64748b;
}

.dashboard-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.dashboard-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: #f8fafc;
    font-size: 0.78rem;
    color: #334155;
}

.dashboard-pill strong {
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.dashboard-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.dashboard-list-item:first-child {
    padding-top: 0;
    border-top: none;
}

.dashboard-list-copy {
    min-width: 0;
}

.dashboard-list-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 620;
    color: #0f172a;
}

.dashboard-list-meta {
    margin: 4px 0 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #64748b;
}

.dashboard-list-value {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.dashboard-empty-card {
    padding: 22px;
    text-align: center;
    border: 1px dashed rgba(203, 213, 225, 0.9);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.7);
    color: #64748b;
}

.dashboard-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.details-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(15, 23, 42, 0.36);
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.details-drawer.open {
    display: flex;
}

.drawer-container {
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.drawer-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.drawer-close:hover {
    background: #f8fafc;
    color: #0f172a;
}

.drawer-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.drawer-loading,
.drawer-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 220px;
    text-align: center;
    color: #64748b;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #0f172a;
    border-radius: 50%;
    animation: dashboard-spin 0.8s linear infinite;
}

@keyframes dashboard-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .dashboard-state-banner {
        flex-direction: column;
        padding: 18px;
    }

    .dashboard-state-actions {
        width: 100%;
    }

    .dashboard-action-btn,
    .dashboard-action-link {
        width: 100%;
    }

    .details-drawer {
        padding: 0;
        align-items: stretch;
    }

    .drawer-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}
