/* ============================================================
   SITE HEADER — SDGI design system (.site-header / .site-nav)
   ============================================================ */
body {
    font-family: var(--font-sans, "Hanken Grotesk", system-ui, sans-serif);
    background: var(--bg, #FBF9F7);
    color: var(--fg-1, #0E0C0B);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-topbar {
    background: var(--n-900, #0E0C0B);
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 500;
}
.site-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
@media (min-width: 992px) {
    .site-topbar-inner { padding-left: 28px; padding-right: 28px; }
}
.site-topbar-loc,
.site-topbar-tel {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
}
.site-topbar-loc .bi { color: var(--palm-orange, #E84626); }
.site-topbar-tel {
    font-weight: 700;
    color: #fff;
}
.site-topbar-tel:hover { color: #fff; opacity: .9; }

.site-nav {
    --sn-h: 72px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--hairline, rgba(14,12,11,.08));
    box-shadow: none;
    padding: 0;
    min-height: var(--sn-h);
    transition: box-shadow var(--dur, 240ms) var(--ease-out, ease);
}
.site-header.is-scrolled .site-nav {
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(30,27,25,.06), 0 2px 6px rgba(30,27,25,.05));
}
.site-nav .container-fluid {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    min-height: var(--sn-h);
}
@media (min-width: 992px) {
    .site-nav .container-fluid {
        padding-left: 28px;
        padding-right: 28px;
    }
}

/* Logo + product badge */
.site-nav .navbar-brand {
    padding: 0;
    margin-right: 12px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}
.site-nav .navbar-brand img {
    height: 36px;
    width: auto;
    display: block;
}
.site-app-badge {
    display: none;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    margin-right: 8px;
    border-radius: var(--radius-pill, 999px);
    border: 1px solid var(--border, #E9E4DF);
    background: var(--n-25, #FBF9F7);
    color: var(--n-600, #4E4945);
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}
@media (min-width: 576px) {
    .site-app-badge { display: inline-flex; }
}

/* Toggler */
.site-nav .navbar-toggler {
    border: 1px solid var(--border-strong, #D8D2CC);
    padding: .4rem .6rem;
    border-radius: var(--radius-sm, 8px);
}
.site-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(201, 12, 15, .14);
}

/* Nav links */
.site-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .85rem !important;
    font-family: var(--font-sans, "Hanken Grotesk", system-ui, sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--n-800, #1E1B19);
    border-radius: var(--radius-sm, 8px);
    white-space: nowrap;
    transition: color var(--dur-fast, 140ms) ease, background var(--dur-fast, 140ms) ease;
}
.site-nav .nav-link .bi {
    font-size: 1rem;
    opacity: .7;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: var(--palm-red, #C90C0F);
    background: rgba(201, 12, 15, .05);
}
.site-nav .nav-link:hover .bi,
.site-nav .nav-link.active .bi { opacity: 1; }
.site-nav .nav-link.active {
    color: var(--palm-red, #C90C0F);
    background: rgba(201, 12, 15, .08);
    font-weight: 700;
}

.site-nav-primary {
    gap: 2px;
}
@media (min-width: 992px) {
    .site-nav-primary { margin-left: .5rem; }
}

/* Dropdown */
.site-nav .dropdown-menu {
    border: 1px solid var(--border, #E9E4DF);
    border-radius: var(--radius-md, 12px);
    padding: .4rem;
    box-shadow: var(--shadow-md, 0 4px 10px rgba(30,27,25,.07), 0 12px 24px rgba(30,27,25,.06));
    min-width: 220px;
}
.site-nav .dropdown-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .7rem;
    font-size: 14px;
    font-weight: 500;
    color: var(--n-700, #332F2C);
    border-radius: var(--radius-sm, 8px);
}
.site-nav .dropdown-item .bi {
    font-size: .95rem;
    color: var(--n-400, #968F88);
    width: 1.1rem;
    text-align: center;
}
.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
    background: rgba(201, 12, 15, .06);
    color: var(--palm-red, #C90C0F);
}
.site-nav .dropdown-item:hover .bi,
.site-nav .dropdown-item.active .bi { color: var(--palm-red, #C90C0F); }
.site-nav .dropdown-item.active {
    background: rgba(201, 12, 15, .08);
    color: var(--palm-red, #C90C0F);
    font-weight: 600;
}

/* Right-side actions */
.site-nav .nav-actions {
    gap: .15rem;
    align-items: center;
}
.site-nav .btn-nav-login {
    padding: .55rem 1.1rem !important;
    background: var(--palm-red, #C90C0F);
    color: #fff !important;
    font-weight: 700;
    border-radius: var(--radius-pill, 999px);
    margin-left: .35rem;
    box-shadow: none;
    transition: background var(--dur-fast, 140ms) ease, box-shadow var(--dur, 240ms) ease, transform var(--dur-fast, 140ms) ease;
}
.site-nav .btn-nav-login:hover,
.site-nav .btn-nav-login:focus {
    background: var(--accent-hover, #B00A0D);
    color: #fff !important;
    box-shadow: var(--shadow-brand, 0 10px 30px rgba(201,12,15,.28));
    transform: translateY(-1px);
}
.site-nav .btn-nav-logout {
    color: var(--n-500, #6E6862) !important;
}
.site-nav .btn-nav-logout:hover {
    color: var(--palm-red, #C90C0F) !important;
}

/* Mobile collapsed menu */
@media (max-width: 991.98px) {
    .site-topbar-loc { display: none; }
    .site-nav .navbar-collapse {
        padding: .75rem 0 1rem;
        border-top: 1px solid var(--border, #E9E4DF);
        margin-top: .5rem;
    }
    .site-nav .nav-link {
        padding: .65rem .5rem !important;
    }
    .site-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: .5rem;
    }
    .site-nav .btn-nav-login {
        margin-left: 0;
        margin-top: .5rem;
        justify-content: center;
    }
}

/* ============================================================
   SITE FOOTER — scoped to .site-footer
   ============================================================ */
.site-footer {
    --sf-bg:        #0b1216;
    --sf-bg-2:      #0e1a1f;
    --sf-text:      #e8eef2;
    --sf-muted:     #8b97a0;
    --sf-line:      rgba(255,255,255,.08);
    --sf-accent:    var(--brand-red, #c0001e);
    background:
        radial-gradient(900px 400px at 90% 0%, rgba(1,100,202,.1), transparent 55%),
        radial-gradient(700px 350px at 0% 100%, rgba(0,77,36,.14), transparent 55%),
        linear-gradient(180deg, var(--sf-bg-2) 0%, var(--sf-bg) 100%);
    color: var(--sf-text);
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    pointer-events: none;
}
.site-footer .container-fluid { position: relative; z-index: 1; }

.site-footer .footer-top {
    padding: 64px 0 48px;
}

.site-footer .footer-brand img {
    height: 52px;
    margin-bottom: 1.25rem;
    filter: brightness(1.05);
}
.site-footer .footer-brand p {
    font-size: .88rem;
    line-height: 1.7;
    color: var(--sf-muted);
    margin: 0;
    max-width: 320px;
}

.site-footer .footer-heading {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.25rem;
    padding-bottom: .65rem;
    border-bottom: 2px solid var(--sf-accent);
    display: inline-block;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer .footer-links li { margin-bottom: .55rem; }
.site-footer .footer-links a {
    color: var(--sf-muted);
    text-decoration: none;
    font-size: .88rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: color .2s ease, transform .2s ease;
}
.site-footer .footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}
.site-footer .footer-links a .bi {
    font-size: .75rem;
    opacity: .5;
}
.site-footer .footer-links a:hover .bi { opacity: 1; color: var(--sf-accent); }

.site-footer .footer-divider {
    border: none;
    border-top: 1px solid var(--sf-line);
    margin: .75rem 0;
}

.site-footer .footer-contact li {
    font-size: .88rem;
    color: var(--sf-muted);
    margin-bottom: .45rem;
    display: flex;
    align-items: flex-start;
    gap: .55rem;
}
.site-footer .footer-contact .bi {
    color: var(--sf-accent);
    font-size: .9rem;
    margin-top: .15rem;
    flex-shrink: 0;
}
.site-footer .footer-contact a {
    color: var(--sf-muted);
    text-decoration: none;
    transition: color .2s ease;
}
.site-footer .footer-contact a:hover { color: #fff; }
.site-footer .footer-contact .org-name {
    font-weight: 600;
    color: #c5ced4;
    margin-bottom: .25rem;
}

.site-footer .footer-bottom {
    border-top: 1px solid var(--sf-line);
    padding: 1.25rem 0;
}
.site-footer .footer-bottom p {
    margin: 0;
    font-size: .8rem;
    color: var(--sf-muted);
    text-align: center;
    line-height: 1.6;
}
.site-footer .footer-bottom .sep {
    opacity: .35;
    margin: 0 .4rem;
}

@media (max-width: 767.98px) {
    .site-footer .footer-top { padding: 48px 0 32px; }
    .site-footer .footer-brand { margin-bottom: 2rem; }
}

/* ============================================================
   POWER BI DASHBOARD — scoped to .dash-* (all dashboard pages)
   Per-page accent colour is set via inline style: --dp-accent
   ============================================================ */
.page-dashboard footer { display: none; }

.dash-page {
    --dp-accent: var(--brand-red, #c0001e);
    background: #f0f2f4;
    min-height: calc(100vh - 58px);
    display: flex;
    flex-direction: column;
}

.dash-topbar {
    background: #fff;
    border-bottom: 1px solid #e4e9ec;
    padding: .85rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.25rem;
    flex-shrink: 0;
}
.dash-topbar .dash-icon {
    width: 42px; height: 42px; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--dp-accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--dp-accent) 28%, transparent);
    color: var(--dp-accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.dash-topbar .dash-title-wrap { flex: 1; min-width: 200px; }
.dash-topbar .dash-title {
    font-size: 1.15rem; font-weight: 700; color: #0e1418;
    margin: 0; letter-spacing: -.01em;
}
.dash-topbar .dash-subtitle {
    font-size: .82rem; color: #6b7280; margin: .1rem 0 0;
}
.dash-topbar .dash-breadcrumb { font-size: .78rem; margin: 0 0 .15rem; }
.dash-topbar .dash-breadcrumb a {
    color: #6b7280; text-decoration: none;
}
.dash-topbar .dash-breadcrumb a:hover { color: var(--dp-accent); }
.dash-topbar .dash-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
}
.dash-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .65rem; border-radius: 999px;
    background: #ecfdf5; color: #065f46;
    border: 1px solid #a7f3d0;
}
.dash-badge .dot {
    width: 6px; height: 6px; border-radius: 50%; background: #34d399;
}
.dash-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem .75rem;
    font-size: .8125rem; font-weight: 600;
    border-radius: 8px;
    border: 1px solid #dde2e6;
    background: #fff;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, filter .15s;
}
.dash-btn:hover {
    background: #f9fafb;
    border-color: #c5ccd1;
    color: #0e1418;
}
.dash-btn.primary {
    background: var(--dp-accent);
    border-color: var(--dp-accent);
    color: #fff;
}
.dash-btn.primary:hover {
    filter: brightness(0.9);
    color: #fff;
}

.dash-viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    min-height: 0;
}
.dash-frame-shell {
    flex: 1;
    position: relative;
    background: #fff;
    border: 1px solid #e4e9ec;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(14, 20, 24, .08);
    min-height: calc(100vh - 58px - 90px - 2.25rem);
}
.dash-frame-shell:fullscreen { border-radius: 0; border: none; }
.dash-frame-shell iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%; border: 0;
}

.dash-loading {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: #f9fafb;
    z-index: 2;
    transition: opacity .4s ease, visibility .4s ease;
}
.dash-loading.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.dash-loading .spinner {
    width: 40px; height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--dp-accent);
    border-radius: 50%;
    animation: dash-spin .8s linear infinite;
}
@keyframes dash-spin { to { transform: rotate(360deg); } }
.dash-loading p { margin: .85rem 0 0; font-size: .85rem; color: #6b7280; }

.dash-gate {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 1.5rem;
}
.dash-gate-card {
    max-width: 420px; text-align: center;
    background: #fff;
    border: 1px solid #e4e9ec;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(14, 20, 24, .08);
}
.dash-gate-card .ico {
    width: 56px; height: 56px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    background: #fef2f2; color: var(--brand-red, #c0001e);
    margin-bottom: 1rem;
}
.dash-gate-card h2 {
    font-size: 1.25rem; font-weight: 700; color: #0e1418;
    margin-bottom: .5rem;
}
.dash-gate-card p { color: #6b7280; font-size: .92rem; margin-bottom: 1.25rem; }

@media (max-width: 575.98px) {
    .dash-topbar { padding: .75rem 1rem; }
    .dash-viewport { padding: .75rem; }
    .dash-frame-shell {
        min-height: calc(100vh - 58px - 120px - 1.5rem);
        border-radius: 10px;
    }
}

/* ============================================================
   BLEND CALCULATOR � SDGI design system (.bc-page)
   Visual only; does not alter entry flow or element IDs.
   ============================================================ */
.bc-page {
    background: var(--bg, #FBF9F7);
    color: var(--fg-1, #0E0C0B);
    font-family: var(--font-sans, "Hanken Grotesk", system-ui, sans-serif);
    min-height: 50vh;
}

.bc-page-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    border-bottom: 1px solid var(--hairline, rgba(14,12,11,.08));
    background: var(--bg-raised, #fff);
}
@media (min-width: 992px) {
    .bc-page-bar { padding-left: 28px; padding-right: 28px; }
}

.bc-breadcrumb {
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    padding: 0;
}
.bc-breadcrumb .breadcrumb-item a {
    color: var(--link, #0164CA);
    text-decoration: none;
}
.bc-breadcrumb .breadcrumb-item a:hover { color: var(--palm-red, #C90C0F); }
.bc-breadcrumb .breadcrumb-item.active { color: var(--fg-2, #4E4945); }
.bc-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--n-300, #BDB6AF); }

.bc-auth {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 12px;
    color: var(--fg-3, #968F88);
    letter-spacing: .02em;
}

.bc-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 20px 64px;
}
@media (min-width: 992px) {
    .bc-shell { padding-left: 28px; padding-right: 28px; }
}

.bc-intro { margin-bottom: 24px; }
.bc-title {
    font-family: var(--font-display, "Hanken Grotesk", system-ui, sans-serif);
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    letter-spacing: -.02em;
    color: var(--fg-1, #0E0C0B);
    margin: .35rem 0 .5rem;
}
.bc-subtitle {
    color: var(--fg-2, #4E4945);
    font-size: 1rem;
    margin: 0;
    max-width: 560px;
}
.bc-lead {
    color: var(--fg-2, #4E4945);
    font-size: 1.05rem;
    padding: 2rem 0;
}
.bc-lead a { color: var(--palm-red, #C90C0F); font-weight: 600; }

.bc-panel {
    background: var(--bg-raised, #fff);
    border: 1px solid var(--border, #E9E4DF);
    border-radius: var(--radius-lg, 18px);
    padding: 24px 22px;
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(30,27,25,.06));
    margin-bottom: 28px;
}
.bc-setup-row { margin-bottom: .35rem; }

.bc-label,
.bc-page label.bc-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-2, #4E4945);
    margin-bottom: 6px;
}
.bc-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-3, #968F88);
    margin: .55rem 0 .25rem;
}
.bc-required {
    font-style: normal;
    font-weight: 500;
    color: var(--fg-3, #968F88);
    font-size: .9em;
}

.bc-page .form-control,
.bc-page .form-select {
    font-family: var(--font-sans, "Hanken Grotesk", system-ui, sans-serif);
    font-size: 15px;
    padding: 10px 14px;
    border: 1.5px solid var(--n-200, #D8D2CC);
    border-radius: 10px;
    background: #fff;
    color: var(--fg-1, #0E0C0B);
    box-shadow: none;
}
.bc-page .form-control:focus,
.bc-page .form-select:focus {
    border-color: var(--palm-red, #C90C0F);
    box-shadow: 0 0 0 3px rgba(201, 12, 15, .14);
}
.bc-page .form-control:disabled,
.bc-page .form-select:disabled {
    background: var(--n-50, #F4F1EE);
    color: var(--fg-3, #968F88);
}

.bc-btn {
    font-family: var(--font-sans, "Hanken Grotesk", system-ui, sans-serif);
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-pill, 999px);
    padding: .65rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1.5px solid transparent;
    transition: background .15s ease, box-shadow .2s ease, transform .15s ease, border-color .15s ease, color .15s ease;
}
.bc-btn-primary {
    background: var(--palm-red, #C90C0F);
    color: #fff !important;
    border-color: var(--palm-red, #C90C0F);
}
.bc-btn-primary:hover,
.bc-btn-primary:focus {
    background: var(--accent-hover, #B00A0D);
    border-color: var(--accent-hover, #B00A0D);
    color: #fff !important;
    box-shadow: var(--shadow-brand, 0 10px 30px rgba(201,12,15,.28));
    transform: translateY(-1px);
}
.bc-btn-ghost {
    background: #fff;
    color: var(--fg-1, #0E0C0B) !important;
    border-color: var(--n-200, #D8D2CC);
}
.bc-btn-ghost:hover,
.bc-btn-ghost:focus {
    border-color: var(--palm-red, #C90C0F);
    color: var(--palm-red, #C90C0F) !important;
    background: rgba(201, 12, 15, .04);
}

.bc-section {
    background: var(--bg-raised, #fff);
    border: 1px solid var(--border, #E9E4DF);
    border-radius: var(--radius-lg, 18px);
    overflow: hidden;
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(30,27,25,.06));
}
.bc-section-head {
    background: var(--n-900, #0E0C0B);
    color: rgba(255,255,255,.94);
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .01em;
    padding: .85rem 1.1rem;
}
.bc-section-head-actions {
    background: var(--n-800, #1E1B19);
}
.bc-section-head .form-check-label {
    color: rgba(255,255,255,.88);
    font-size: .85rem;
    font-weight: 500;
}
.bc-section-head .form-check-input {
    border-color: rgba(255,255,255,.35);
    background-color: transparent;
}
.bc-section-head .form-check-input:checked {
    background-color: var(--palm-red, #C90C0F);
    border-color: var(--palm-red, #C90C0F);
}
.bc-section-body {
    background: #fff;
    border-top: 1px solid var(--border, #E9E4DF);
    padding: .5rem .35rem 1rem;
}

.bc-card {
    border: 1px solid var(--border, #E9E4DF);
    border-radius: var(--radius-md, 12px);
    background: var(--n-25, #FBF9F7);
    box-shadow: none;
}
.bc-card .card-title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--fg-1, #0E0C0B);
    margin-bottom: .35rem;
}

.bc-page .table {
    font-size: .82rem;
    --bs-table-border-color: var(--border, #E9E4DF);
}
.bc-page .table thead th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--fg-2, #4E4945);
    background: var(--n-50, #F4F1EE);
    border-bottom-width: 1px;
    white-space: nowrap;
}
.bc-page .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: var(--n-25, #FBF9F7);
}

.bc-link {
    color: var(--palm-red, #C90C0F);
    font-weight: 600;
    text-decoration: none;
    font-size: .9rem;
}
.bc-link:hover { text-decoration: underline; color: var(--accent-hover, #B00A0D); }

.bc-totals p {
    margin-bottom: .35rem;
    font-size: .92rem;
    color: var(--fg-2, #4E4945);
}
.bc-totals span[id^="manual"] {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-weight: 600;
    color: var(--fg-1, #0E0C0B);
}
.bc-warn { color: var(--palm-red, #C90C0F); font-weight: 600; }

.bc-page #spinner {
    position: fixed;
    z-index: 9999;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.bc-page #t_product_data thead th { font-size: 11px; }

.bc-page .modal-content {
    border: 1px solid var(--border, #E9E4DF);
    border-radius: var(--radius-lg, 18px);
    overflow: hidden;
}
.bc-page .modal-header {
    background: var(--n-25, #FBF9F7);
    border-bottom: 1px solid var(--border, #E9E4DF);
}
.bc-page .modal-title {
    font-weight: 700;
    letter-spacing: -.01em;
}

/* ============================================================
   HOMEPAGE HERO ? SDGI design system (.home-hero)
   ============================================================ */
.home-page {
    background: var(--n-900, #0E0C0B);
}

.home-hero {
    position: relative;
    min-height: calc(100vh - 108px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--n-900, #0E0C0B);
}

.home-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(105deg, rgba(14, 12, 11, .88) 0%, rgba(14, 12, 11, .55) 42%, rgba(14, 12, 11, .28) 72%),
        radial-gradient(70% 55% at 78% 18%, rgba(232, 70, 38, .38), transparent 60%),
        radial-gradient(90% 80% at 8% 100%, rgba(156, 16, 6, .45), transparent 60%),
        url("../img/background.png") center / cover no-repeat;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 20px;
}

@media (min-width: 992px) {
    .home-hero-inner {
        padding: 96px 28px;
    }
}

.home-hero-brand {
    margin: 0 0 20px;
    font-family: var(--font-display, "Hanken Grotesk", system-ui, sans-serif);
    font-weight: 800;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #fff;
}

.home-hero-title {
    margin: 0;
    max-width: 16ch;
    font-family: var(--font-display, "Hanken Grotesk", system-ui, sans-serif);
    font-weight: 700;
    font-size: clamp(22px, 3.2vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: rgba(255, 255, 255, .92);
}

.home-hero-lead {
    margin: 22px 0 0;
    max-width: 36ch;
    font-family: var(--font-sans, "Hanken Grotesk", system-ui, sans-serif);
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.6;
    font-weight: 400;
    color: rgba(255, 255, 255, .78);
}

.home-hero-cta {
    margin-top: 36px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: 16px 28px;
    font-family: var(--font-sans, "Hanken Grotesk", system-ui, sans-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    border-radius: var(--radius-pill, 999px);
    border: 1px solid transparent;
    transition:
        background var(--dur-fast, 140ms) ease,
        box-shadow var(--dur, 240ms) var(--ease-out, ease),
        transform var(--dur-fast, 140ms) ease;
}

.home-btn-primary {
    background: var(--palm-red, #C90C0F);
    color: #fff;
}

.home-btn-primary:hover,
.home-btn-primary:focus {
    background: var(--accent-hover, #B00A0D);
    color: #fff;
    box-shadow: var(--shadow-brand, 0 10px 30px rgba(201, 12, 15, .28));
    transform: translateY(-1px);
}

.home-btn-primary:active {
    background: var(--accent-press, #970A0C);
    transform: translateY(0) scale(.99);
}

.home-btn .bi {
    font-size: 1.05rem;
    line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
    .home-btn {
        transition: none;
    }
    .home-btn-primary:hover,
    .home-btn-primary:focus {
        transform: none;
    }
}

/* ============================================================
   LOGIN — SDGI design system (.login-page)
   ============================================================ */
.login-page {
    background: var(--n-25, #FBF9F7);
}

.login-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: calc(100vh - 108px);
}

.login-visual {
    position: relative;
    overflow: hidden;
    background: var(--n-900, #0E0C0B);
    color: #fff;
    min-height: 280px;
}

.login-visual-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(14, 12, 11, .82) 0%, rgba(14, 12, 11, .45) 55%, rgba(156, 16, 6, .35) 100%),
        radial-gradient(70% 55% at 80% 15%, rgba(232, 70, 38, .4), transparent 60%),
        url("../img/background.png") center / cover no-repeat;
}

.login-visual-copy {
    position: relative;
    z-index: 1;
    max-width: 420px;
    padding: 72px 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.login-visual-brand {
    margin: 0 0 14px;
    font-family: var(--font-display, "Hanken Grotesk", system-ui, sans-serif);
    font-weight: 800;
    font-size: clamp(36px, 4.5vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.login-visual-lead {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .82);
    max-width: 28ch;
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px 56px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.login-breadcrumb {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 28px;
    font-size: 13px;
    font-weight: 500;
    color: var(--n-400, #968F88);
}

.login-breadcrumb a {
    color: var(--n-600, #4E4945);
    text-decoration: none;
}

.login-breadcrumb a:hover {
    color: var(--palm-red, #C90C0F);
}

.login-title {
    margin: 0 0 10px;
    font-family: var(--font-display, "Hanken Grotesk", system-ui, sans-serif);
    font-weight: 800;
    font-size: clamp(32px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--fg-1, #0E0C0B);
}

.login-lead {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--fg-2, #4E4945);
}

.login-flash {
    margin-bottom: 20px;
}

.login-flash .alert {
    margin: 0;
    border-radius: var(--radius-md, 12px);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
}

.login-flash .alert-warning {
    background: #FDEBE7;
    border-color: rgba(232, 70, 38, .25);
    color: var(--palm-brown, #9C1006);
}

.login-flash .alert-primary {
    background: rgba(0, 77, 36, .08);
    border-color: rgba(0, 77, 36, .2);
    color: var(--sustain-green, #004D24);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-2, #4E4945);
}

.login-field .form-control {
    width: 100%;
    padding: 13px 14px;
    font-family: var(--font-sans, "Hanken Grotesk", system-ui, sans-serif);
    font-size: 15px;
    color: var(--fg-1, #0E0C0B);
    background: #fff;
    border: 1.5px solid var(--border-strong, #D8D2CC);
    border-radius: 10px;
    box-shadow: none;
}

.login-field .form-control::placeholder {
    color: var(--n-400, #968F88);
}

.login-field .form-control:focus {
    border-color: var(--palm-red, #C90C0F);
    box-shadow: 0 0 0 3px rgba(201, 12, 15, .14);
    outline: none;
}

.login-capswarn {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--palm-orange, #E84626);
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin-top: 8px;
    width: 100%;
    padding: 15px 28px;
    font-family: var(--font-sans, "Hanken Grotesk", system-ui, sans-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: var(--palm-red, #C90C0F);
    border: none;
    border-radius: var(--radius-pill, 999px);
    cursor: pointer;
    transition:
        background var(--dur-fast, 140ms) ease,
        box-shadow var(--dur, 240ms) var(--ease-out, ease),
        transform var(--dur-fast, 140ms) ease;
}

.login-submit:hover,
.login-submit:focus {
    background: var(--accent-hover, #B00A0D);
    box-shadow: var(--shadow-brand, 0 10px 30px rgba(201, 12, 15, .28));
    transform: translateY(-1px);
    color: #fff;
}

.login-submit:active {
    background: var(--accent-press, #970A0C);
    transform: translateY(0) scale(.99);
}

.login-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--palm-red, #C90C0F);
    text-decoration: none;
    transition: gap var(--dur-fast, 140ms) ease;
}

.login-back:hover {
    color: var(--accent-hover, #B00A0D);
    gap: .65rem;
}

@media (max-width: 991.98px) {
    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-visual {
        min-height: 220px;
    }

    .login-visual-copy {
        padding: 40px 24px;
        justify-content: flex-end;
    }

    .login-panel {
        padding: 36px 20px 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-submit,
    .login-back {
        transition: none;
    }
    .login-submit:hover,
    .login-submit:focus {
        transform: none;
    }
}
