/* SBDS Reports — shared professional styling */

.sbds-page {
    padding: 1.25rem 1.5rem 5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.sbds-page__header {
    background: linear-gradient(135deg, #0b4f6c 0%, #006f87 55%, #0891a8 100%);
    border-radius: 14px;
    padding: 1.35rem 1.75rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(11, 79, 108, 0.18);
    margin-bottom: 1.25rem;
}

.sbds-page__header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.sbds-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    opacity: 0.9;
    margin-bottom: 0.65rem;
}

.sbds-page__breadcrumb a {
    color: #e0f4f8;
    text-decoration: none;
}

.sbds-page__breadcrumb a:hover {
    text-decoration: underline;
}

.sbds-page__title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.35rem;
}

.sbds-page__subtitle {
    font-size: 0.9rem;
    opacity: 0.92;
    margin: 0;
}

.sbds-scheme-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.sbds-scheme-chip--gf {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.sbds-scheme-chip--bf {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.sbds-panel {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    margin-bottom: 1rem;
    overflow: hidden;
}

.sbds-panel__head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf2;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #0f3d4f;
}

.sbds-panel__head .mud-icon-root {
    color: #006f87;
}

.sbds-panel__body {
    padding: 1.15rem 1.25rem 1.25rem;
}

.sbds-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf2;
}

.sbds-toolbar--compact {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.sbds-toolbar__meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.sbds-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: #e6f4f7;
    color: #0b4f6c;
    font-size: 0.8125rem;
    font-weight: 600;
}

.sbds-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.sbds-filter-grid .mud-input-control {
    margin-top: 0 !important;
}

.sbds-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
    height: 100%;
    padding-bottom: 2px;
}

.sbds-report-grid {
    padding: 0.5rem 0.75rem 0.75rem;
}

.sbds-report-grid .mud-table-root {
    border-radius: 8px;
    overflow: hidden;
}

.sbds-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: #64748b;
}

.sbds-empty__icon {
    font-size: 2.75rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.sbds-empty__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.sbds-back-bar {
    position: fixed;
    right: 1.5rem;
    bottom: 1.25rem;
    z-index: 100;
}

.mis-config-tabs .mud-tab {
    font-weight: 600;
    text-transform: none;
}

.mis-config-code {
    display: inline-block;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.8125rem;
    background: #f1f5f9;
    color: #0f3d4f;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.mis-config-role-filter {
    min-width: 220px;
    max-width: 320px;
}

.mis-config-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    padding: 0 1rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

.mis-config-filter-field {
    min-width: 150px;
    max-width: 240px;
}

/* Hub page */
.sbds-hub {
    padding: 1.25rem 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.sbds-hub__hero {
    background: linear-gradient(135deg, #0b4f6c 0%, #006f87 100%);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    color: #fff;
    margin-bottom: 1.75rem;
    box-shadow: 0 10px 30px rgba(11, 79, 108, 0.2);
}

.sbds-hub__hero-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.sbds-hub__hero-text {
    margin: 0;
    opacity: 0.92;
    max-width: 720px;
    line-height: 1.55;
}

.sbds-hub__section {
    margin-bottom: 2rem;
}

.sbds-hub__section-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #e8edf2;
}

.sbds-hub__section-head--gf {
    border-bottom-color: #0891a8;
}

.sbds-hub__section-head--bf {
    border-bottom-color: #8b6914;
}

.sbds-hub__section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f3d4f;
    margin: 0;
}

.sbds-hub__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.sbds-report-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 1.15rem 1.2rem;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.sbds-report-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(11, 79, 108, 0.12);
    border-color: #b8dce4;
}

.sbds-report-card__icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.sbds-report-card__icon-wrap--gf {
    background: #e6f6f9;
    color: #006f87;
}

.sbds-report-card__icon-wrap--bf {
    background: #f7f0e3;
    color: #8b6914;
}

.sbds-report-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.45rem;
    line-height: 1.35;
}

.sbds-report-card__desc {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 0.85rem;
    flex: 1;
}

.sbds-report-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #006f87 !important;
}

@media (max-width: 768px) {
    .sbds-page {
        padding: 0.85rem 0.85rem 4.5rem;
    }

    .sbds-page__header {
        padding: 1rem 1.1rem;
    }

    .sbds-hub__hero {
        padding: 1.25rem 1.15rem;
    }

    .sbds-hub__cards {
        grid-template-columns: 1fr;
    }
}
