.page-shell {
    max-width: 1180px;
    margin: 10px auto 30px auto;
    padding: 0 14px;
    box-sizing: border-box;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    align-items: start;
}

.dashboard-main {
    min-width: 0;
}

.dashboard-sidebar {
    min-width: 0;
}

.dashboard-sidebar-sticky {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 22px;
    align-self: start;
}

.dashboard-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.dashboard-section-block {
    margin-bottom: 24px;
}

.dashboard-section-heading {
    margin-top: 25px;
    margin-bottom: 14px;
}

.dashboard-section-heading h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    line-height: 1.2;
    color: #111827;
}

.dashboard-section-heading.is-side h2 {
    font-size: 18px;
}

.dashboard-section-subtitle {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.dashboard-section-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 10px;
}

.dashboard-hero-card .page-title {
    margin: 0 0 8px 0;
    font-size: 26px;
    line-height: 1.2;
    color: #111827;
}

.dashboard-hero-lead {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #111827;
}

.dashboard-hero-subtext {
    margin: 0 0 18px 0;
    color: #6b7280;
    line-height: 1.6;
}

.dashboard-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-btn {
    text-decoration: none !important;
}

.dashboard-btn-small {
    padding: 8px 14px;
    font-size: 13px;
}

.dashboard-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-module-card {
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    min-height: 180px;
}

.dashboard-module-card:hover {
    transform: translateY(-2px);
    border-color: #d1d5db;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
    text-decoration: none !important;
}

.dashboard-module-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dashboard-module-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eef2ff;
    color: #3157d5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.dashboard-module-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    white-space: nowrap;
}

.dashboard-module-status.locked {
    background: #fee2e2;
    color: #991b1b;
}

.dashboard-module-status.preview {
    background: #e5e7eb;
    color: #374151;
}

.dashboard-module-card h3 {
    margin: 0 0 8px 0;
    font-size: 17px;
    color: #111827;
}

.dashboard-module-card p {
    margin: 0 0 16px 0;
    color: #4b5563;
    line-height: 1.55;
    font-size: 14px;
}

.dashboard-module-meta {
    font-size: 13px;
    color: #6b7280;
}

.dashboard-module-overlay {
    margin-top: 14px;
}

.dashboard-news-list {
    display: grid;
    gap: 14px;
}

.dashboard-news-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.dashboard-news-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dashboard-news-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3157d5;
}

.dashboard-news-date {
    font-size: 12px;
    color: #6b7280;
}

.dashboard-news-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #111827;
}

.dashboard-news-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

.dashboard-alert-grid {
    display: grid;
    gap: 12px;
}

.dashboard-alert-card {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    text-decoration: none !important;
    color: inherit;
}

.dashboard-alert-card.is-overdue {
    border-color: #fecaca;
    background: #fff8f8;
}

.dashboard-alert-card.is-due-soon {
    border-color: #fde68a;
    background: #fffdf3;
}

.dashboard-alert-card.is-notice {
    border-color: #dbeafe;
    background: #f8fbff;
}

.dashboard-alert-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.dashboard-alert-summary {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
}

.dashboard-next-actions-list {
    display: grid;
    gap: 12px;
}

.next-action-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    text-decoration: none !important;
    color: inherit;
}

.next-action-item span.fa {
    color: #3157d5;
    margin-top: 2px;
}

.next-action-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
}

.next-action-desc {
    font-size: 13px;
    color: #6b7280;
}

.dashboard-totals-stack {
    display: grid;
    gap: 14px;
}

.dashboard-total-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    background: #fff;
}

.dashboard-total-label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.dashboard-total-value {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 10px;
}

.dashboard-total-meta {
    font-size: 13px;
    color: #6b7280;
}

.dashboard-cta-card h2 {
    margin: 0 0 10px 0;
    color: #111827;
}

.dashboard-cta-card p {
    margin: 0 0 18px 0;
    color: #4b5563;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .dashboard-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar-sticky {
        position: static;
    }

    .dashboard-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 0 12px;
    }

    .dashboard-card {
        padding: 18px;
    }

    .dashboard-module-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-card .page-title {
        font-size: 24px;
    }

    .dashboard-section-heading h2 {
        font-size: 18px;
    }
}