/* SPS Manager UI: small additions to Metronic demo14 (dark mode only), shared with the sps-platform admin UI. */

/* 2LC brand font, self-hosted (vendor/montserrat) */
:root, [data-bs-theme=dark] { --bs-font-sans-serif: Montserrat, Helvetica, Arial, sans-serif; --bs-body-font-family: var(--bs-font-sans-serif); }
body, .btn, .form-control, .form-select, .select2-container, .swal2-popup { font-family: var(--bs-body-font-family); }

/* Dark theme: neutral greys instead of demo14's blue-black. Page #141517, cards and sidebar #1E1F22, header #0E0F10;
   solid inputs one step lighter than the card. Primary = 2LC logo blue #007CAF (filled elements); text and links use
   a lighter tint of it for contrast on grey. */
html[data-bs-theme=dark] {
    --bs-page-bg: #141517;
    --bs-app-blank-bg: #141517;
    --bs-body-bg: #1e1f22;
    --bs-body-bg-rgb: 30, 31, 34;
    --bs-body-color: #ececee;
    --bs-body-color-rgb: 236, 236, 238;
    --bs-border-color: #303136;
    --bs-gray-100: #27282c; --bs-gray-100-rgb: 39, 40, 44;
    --bs-gray-200: #2e2f34; --bs-gray-200-rgb: 46, 47, 52;
    --bs-gray-300: #3b3c42; --bs-gray-300-rgb: 59, 60, 66;
    --bs-gray-400: #50515a; --bs-gray-400-rgb: 80, 81, 90;
    --bs-gray-500: #7a7b82; --bs-gray-500-rgb: 122, 123, 130;
    --bs-gray-600: #96979e; --bs-gray-600-rgb: 150, 151, 158;
    --bs-gray-700: #b3b4ba; --bs-gray-700-rgb: 179, 180, 186;
    --bs-gray-800: #d0d1d5; --bs-gray-800-rgb: 208, 209, 213;
    --bs-gray-900: #f3f3f4; --bs-gray-900-rgb: 243, 243, 244;
    --bs-light: #27282c; --bs-light-rgb: 39, 40, 44; --bs-light-active: #2e2f34; --bs-light-light: #232427; --bs-light-inverse: #b3b4ba;
    --bs-dropdown-bg: #232427;
    --bs-component-hover-bg: #27282c;
    --bs-aside-bg-color: #1e1f22;
    --bs-aside-menu-link-bg-color-active: #2a2b30;
    --bs-primary: #007caf; --bs-primary-rgb: 0, 124, 175;
    --bs-primary-active: #0a92cb;
    --bs-primary-light: #142c38;
    --bs-primary-clarity: rgba(0, 124, 175, 0.2);
    --bs-primary-inverse: #ffffff;
    --bs-text-primary: #3eaee0;
    --bs-link-color: #3eaee0; --bs-link-color-rgb: 62, 174, 224;
    --bs-link-hover-color: #6cc3ea; --bs-link-hover-color-rgb: 108, 195, 234;
    --bs-component-active-bg: #007caf;
    --bs-component-hover-color: #3eaee0;
    --bs-component-checked-bg: #007caf;
    --bs-primary-text-emphasis: #6cc3ea;
    --bs-primary-bg-subtle: #0d2a37;
    --bs-primary-border-subtle: #0a5679;
}
html[data-bs-theme=dark] .card { --bs-card-bg: var(--bs-body-bg); --bs-card-border-color: #2a2b30; }
html[data-bs-theme=dark] .header { background-color: #0e0f10; }

/* room below the last card (demo14 has no page footer here) */
#kt_content { padding-bottom: 2.5rem; }

/* header brand: the small 2LC logo */
/* 2lc-icon.png is square: crop it to the lettering (2.6:1) */
.sps-brand img { height: 30px; aspect-ratio: 13 / 5; object-fit: cover; display: block; }

/* Font Awesome duotone in the primary colour */
.fa-duotone { --fa-secondary-opacity: 0.45; }
.menu-link .menu-icon .fa-duotone { color: var(--bs-gray-500); }
.menu-link.active .menu-icon .fa-duotone,
.menu-link:hover .menu-icon .fa-duotone { color: var(--bs-primary); }

.sps-auth { background: radial-gradient(circle at 50% 0%, rgba(0, 124, 175, 0.16), transparent 60%), var(--bs-page-bg); }

/* card header icons */
.card-title .fa-duotone { color: var(--bs-primary); }

/* DataTables: compact pager row; wide tables scroll inside their card */
div.dt-container div.dt-paging { margin-top: 0.75rem; }
div.dt-container .dt-layout-table { overflow-x: auto; }
