/*
 SFS ERP REVIEW
 Compact navigation, light selection and report typography.
*/

:root {
    --sfs-review-accent: #991b1b;
    --sfs-review-selected: #fff1f2;
    --sfs-review-selected-border: #fecdd3;
    --sfs-review-text: #17243a;
}

/* Sidebar */

aside a,
aside button,
.sidebar a,
.sidebar button,
[data-sidebar] a,
[data-sidebar] button,
.sfs-review-menu-link {
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    letter-spacing: normal !important;
}

aside a *,
aside button *,
.sidebar a *,
.sidebar button *,
[data-sidebar] a *,
[data-sidebar] button *,
.sfs-review-menu-link * {
    font-weight: 400 !important;
}

aside a,
.sidebar a,
[data-sidebar] a,
.sfs-review-menu-link {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
}

/* Module navigation and tabs */

.sfs-review-tab-link,
main nav a,
main [role="tablist"] a,
main [role="tablist"] button {
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
}

.sfs-review-tab-link *,
main nav a *,
main [role="tablist"] a *,
main [role="tablist"] button * {
    font-weight: 400 !important;
}

.sfs-review-tab-link {
    padding: 8px 11px !important;
}

/* Selected menu and tabs */

.sfs-review-selected,
.sfs-review-selected[class*="bg-"],
aside a.active,
aside a[aria-current="page"],
.sidebar a.active,
.sidebar a[aria-current="page"],
[data-sidebar] a.active,
[data-sidebar] a[aria-current="page"],
.sfs-review-tab-link.active,
.sfs-review-tab-link[aria-current="page"],
[role="tab"][aria-selected="true"] {
    background: var(--sfs-review-selected) !important;
    background-color: var(--sfs-review-selected) !important;
    background-image: none !important;
    color: var(--sfs-review-accent) !important;
    font-weight: 400 !important;
    box-shadow: inset 3px 0 0 var(--sfs-review-accent) !important;
}

.sfs-review-selected *,
aside a.active *,
aside a[aria-current="page"] *,
.sidebar a.active *,
.sidebar a[aria-current="page"] *,
.sfs-review-tab-link.active * {
    color: var(--sfs-review-accent) !important;
    font-weight: 400 !important;
}

.sfs-review-menu-link:hover,
.sfs-review-tab-link:hover {
    background-color: #f8f1f2 !important;
    color: #7f1d1d !important;
}

aside svg,
.sidebar svg,
[data-sidebar] svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* Report tables */

table th,
table td {
    font-size: 13px !important;
    line-height: 1.45 !important;
}

table thead th {
    font-weight: 500 !important;
}

table tbody td,
table tbody th {
    font-weight: 400 !important;
}

table th,
table td {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
}

table .sfs-sno-col {
    width: 65px !important;
    min-width: 55px !important;
    max-width: 75px !important;
    text-align: center !important;
    white-space: nowrap !important;
    font-weight: 400 !important;
}

/* Page headings */

main h1 {
    font-size: clamp(24px, 2.1vw, 30px) !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

main h2 {
    font-weight: 500 !important;
}

/* Preserve readable navigation */

aside,
.sidebar,
[data-sidebar] {
    overflow-wrap: normal;
}

aside a,
.sidebar a,
[data-sidebar] a {
    border-radius: 8px;
}

/* Print reports */

@media print {
    .sfs-sno-col {
        display: table-cell !important;
    }

    table thead {
        display: table-header-group;
    }

    table tr {
        break-inside: avoid;
    }
}
