:root {
    --blb-blue: #1767a8;
    --blb-blue-dark: #0d4778;
    --blb-red: #e33f46;
    --blb-yellow: #ffdf20;
    --blb-ink: #172033;
    --blb-muted: #667085;
    --blb-line: #dfe6ef;
    --blb-surface: #ffffff;
    --blb-bg: #f3f6fa;
    --blb-shadow: 0 16px 40px rgba(20, 48, 78, .10);
    --blb-sidebar-width: 276px;
    --blb-sidebar-collapsed-width: 84px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--blb-ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 223, 32, .14), transparent 24rem),
        radial-gradient(circle at 94% 10%, rgba(23, 103, 168, .13), transparent 26rem),
        var(--blb-bg) !important;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

a, button, input, select { transition: .18s ease; }

/* Application shell */
body.blb-has-sidebar {
    padding-left: var(--blb-sidebar-width);
    background: #f7f8fa !important;
}

.blb-sidebar {
    position: fixed;
    z-index: 1000;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--blb-sidebar-width);
    padding: 0 12px 14px;
    flex-direction: column;
    color: #243041;
    background: #f0f2f5;
    border-right: 1px solid #dfe3e8;
    transition: width .2s ease, transform .2s ease;
}

.blb-sidebar-accent {
    height: 4px;
    margin: 0 -12px;
    flex: 0 0 auto;
    background: linear-gradient(90deg, var(--blb-red) 0 33.33%, var(--blb-yellow) 33.33% 66.66%, var(--blb-blue) 66.66%);
}

.blb-sidebar-brand-row {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 4px 10px;
}

.blb-sidebar-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    color: #162033;
    text-decoration: none;
}

.blb-sidebar-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e0e5eb;
    border-radius: 12px;
}

.blb-sidebar-brand-copy,
.blb-user-copy {
    min-width: 0;
}

.blb-sidebar-brand-copy strong,
.blb-sidebar-brand-copy small,
.blb-user-copy strong,
.blb-user-copy small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.blb-sidebar-brand-copy strong { font-size: 15px; letter-spacing: .04em; }
.blb-sidebar-brand-copy small { margin-top: 3px; color: #7a8492; font-size: 10px; }

.blb-sidebar-collapse,
.blb-icon-button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    flex: 0 0 auto;
    place-items: center;
    color: #657184;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.blb-sidebar-collapse:hover,
.blb-icon-button:hover { color: var(--blb-blue-dark); background: #e2e7ed; }
.blb-sidebar-collapse svg,
.blb-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.blb-sidebar-nav {
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 2px 16px;
    flex: 1 1 auto;
    scrollbar-width: thin;
}

.blb-nav-section + .blb-nav-section { margin-top: 18px; }
.blb-nav-heading { padding: 0 10px 7px; color: #8a94a2; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }

.blb-nav-link {
    display: flex;
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    align-items: center;
    gap: 11px;
    color: #3f4b5d;
    background: transparent;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.blb-nav-link:hover { color: #162033; background: #e5e9ee; }
.blb-nav-link.active { color: var(--blb-blue-dark); background: #fff; box-shadow: 0 1px 3px rgba(20, 38, 61, .08); font-weight: 800; }
.blb-nav-icon { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; }
.blb-nav-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.blb-nav-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.blb-sidebar-footer { flex: 0 0 auto; padding-top: 10px; border-top: 1px solid #dce1e7; }
.blb-user-card { display: flex; margin-bottom: 6px; padding: 9px 8px; align-items: center; gap: 10px; color: #263244; border-radius: 10px; text-decoration: none; }
.blb-user-card:hover { background: #e5e9ee; }
.blb-user-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blb-blue-dark), var(--blb-blue)); border-radius: 10px; font-size: 13px; font-weight: 850; }
.blb-user-copy strong { font-size: 12px; }
.blb-user-copy small { margin-top: 3px; color: #818b98; font-size: 10px; }
.blb-logout-link { color: #a13a40; }

.blb-mobilebar,
.blb-sidebar-backdrop { display: none; }

body.blb-sidebar-collapsed { padding-left: var(--blb-sidebar-collapsed-width); }
body.blb-sidebar-collapsed .blb-sidebar { width: var(--blb-sidebar-collapsed-width); }
body.blb-sidebar-collapsed .blb-sidebar-brand-copy,
body.blb-sidebar-collapsed .blb-nav-heading,
body.blb-sidebar-collapsed .blb-nav-label,
body.blb-sidebar-collapsed .blb-user-copy { display: none; }
body.blb-sidebar-collapsed .blb-sidebar-brand-row { justify-content: center; }
body.blb-sidebar-collapsed .blb-sidebar-collapse { position: absolute; top: 57px; right: -13px; background: #fff; border: 1px solid #dfe3e8; box-shadow: 0 3px 10px rgba(28, 42, 60, .09); transform: rotate(180deg); }
body.blb-sidebar-collapsed .blb-nav-link { justify-content: center; padding-inline: 8px; }
body.blb-sidebar-collapsed .blb-user-card { justify-content: center; }

body.blb-has-sidebar .page,
body.blb-has-sidebar .container,
body.blb-has-sidebar .blb-page {
    width: min(1460px, calc(100% - 48px)) !important;
    max-width: 1460px !important;
    padding-top: 28px !important;
}

body.blb-has-sidebar .topbar,
body.blb-has-sidebar .blb-hero {
    overflow: visible;
    margin-bottom: 18px !important;
    padding: 2px 0 20px !important;
    color: var(--blb-ink);
    background: transparent !important;
    border-bottom: 1px solid #e1e5ea;
    border-radius: 0;
    box-shadow: none !important;
}

body.blb-has-sidebar .topbar::after,
body.blb-has-sidebar .blb-hero::after { display: none; }
body.blb-has-sidebar .topbar h1,
body.blb-has-sidebar .blb-hero h1 { color: #172033 !important; font-size: clamp(25px, 2.4vw, 34px) !important; }
body.blb-has-sidebar .topbar .subtitle,
body.blb-has-sidebar .blb-hero .subtitle { color: #687385 !important; }
body.blb-has-sidebar .blb-eyebrow { color: var(--blb-blue); }
body.blb-has-sidebar .time-card { box-shadow: none !important; }
body.blb-has-sidebar .panel,
body.blb-has-sidebar .card,
body.blb-has-sidebar .blb-panel,
body.blb-has-sidebar .stat-card,
body.blb-has-sidebar .blb-kpi { border-color: #e1e5ea !important; box-shadow: 0 1px 2px rgba(21, 35, 52, .04) !important; }
body.blb-has-sidebar th { color: #475467 !important; background: #f4f6f8 !important; border-bottom: 1px solid #dfe4e9 !important; }

@media (max-width: 980px) {
    body.blb-has-sidebar,
    body.blb-sidebar-collapsed { padding: 64px 0 0; }
    .blb-mobilebar {
        position: fixed;
        z-index: 990;
        inset: 0 0 auto 0;
        display: flex;
        height: 64px;
        padding: 0 16px;
        align-items: center;
        gap: 11px;
        background: rgba(255,255,255,.96);
        border-bottom: 1px solid #e0e5ea;
        backdrop-filter: blur(14px);
    }
    .blb-mobile-brand { display: flex; align-items: center; gap: 8px; color: #172033; text-decoration: none; font-size: 13px; font-weight: 850; letter-spacing: .04em; }
    .blb-mobile-brand img { width: 33px; height: 33px; object-fit: contain; border: 1px solid #e1e5ea; border-radius: 9px; }
    .blb-mobile-context { margin-left: auto; color: #7b8694; font-size: 11px; font-weight: 700; }
    .blb-sidebar { width: min(300px, 88vw) !important; transform: translateX(-105%); box-shadow: 18px 0 50px rgba(13, 29, 48, .18); }
    body.blb-sidebar-open .blb-sidebar { transform: translateX(0); }
    .blb-sidebar-backdrop { position: fixed; z-index: 995; inset: 0; background: rgba(15,23,42,.35); backdrop-filter: blur(2px); }
    body.blb-sidebar-open .blb-sidebar-backdrop { display: block; }
    body.blb-sidebar-open { overflow: hidden; }
    .blb-sidebar-collapse { display: none; }
    body.blb-sidebar-collapsed .blb-sidebar-brand-copy,
    body.blb-sidebar-collapsed .blb-nav-heading,
    body.blb-sidebar-collapsed .blb-nav-label,
    body.blb-sidebar-collapsed .blb-user-copy { display: block; }
    body.blb-sidebar-collapsed .blb-sidebar-brand-row { justify-content: space-between; }
    body.blb-sidebar-collapsed .blb-nav-link { justify-content: flex-start; padding-inline: 10px; }
    body.blb-has-sidebar .page,
    body.blb-has-sidebar .container,
    body.blb-has-sidebar .blb-page { width: min(100% - 28px, 1460px) !important; padding-top: 22px !important; }
}

.blb-brandbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px max(22px, calc((100vw - 1320px) / 2));
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(223, 230, 239, .9);
    box-shadow: 0 5px 24px rgba(13, 71, 120, .06);
}

.blb-brandbar::after,
.blb-tricolor {
    content: "";
    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blb-red) 0 33.33%, var(--blb-yellow) 33.33% 66.66%, var(--blb-blue) 66.66%);
}

.blb-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    color: var(--blb-ink);
    text-decoration: none;
}

.blb-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 15px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 5px 18px rgba(23, 103, 168, .15);
}

.blb-brand-name { font-size: 16px; font-weight: 850; letter-spacing: .01em; }
.blb-brand-product { margin-top: 3px; color: var(--blb-muted); font-size: 12px; font-weight: 650; }
.blb-account { color: var(--blb-muted); font-size: 13px; text-align: right; }
.blb-account strong { display: block; color: var(--blb-ink); font-size: 14px; }

.page, .container, .blb-page {
    width: min(1320px, calc(100% - 40px)) !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 34px 0 48px !important;
}

.topbar, .blb-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px !important;
    padding: 30px !important;
    color: white;
    border-radius: 22px;
    background:
        linear-gradient(115deg, rgba(13, 71, 120, .98), rgba(23, 103, 168, .92)),
        var(--blb-blue-dark);
    box-shadow: 0 18px 48px rgba(13, 71, 120, .23);
}

.topbar::after, .blb-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -75px;
    top: -95px;
    border: 34px solid rgba(255, 223, 32, .88);
    border-radius: 50%;
    opacity: .32;
    pointer-events: none;
}

.topbar > *, .blb-hero > * { position: relative; z-index: 2; }

.topbar h1, .blb-hero h1, .topbar .subtitle, .blb-hero .subtitle { position: relative; z-index: 1; }
.topbar h1, .blb-hero h1 { margin: 0; color: white !important; font-size: clamp(26px, 3vw, 38px) !important; line-height: 1.12; }
.topbar .subtitle, .blb-hero .subtitle { margin: 9px 0 0 !important; color: rgba(255,255,255,.78) !important; line-height: 1.55; }
.blb-eyebrow { margin-bottom: 8px; color: var(--blb-yellow); font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }

.time-card {
    position: relative;
    z-index: 2;
    min-width: 220px;
    padding: 15px 18px !important;
    color: var(--blb-ink);
    background: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(255,255,255,.85) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.13) !important;
}

.time-card .clock { color: var(--blb-blue-dark) !important; }

.nav-row, .blb-toolbar { margin-bottom: 24px !important; }
.actions, .blb-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.button, .search-button, .reset-button, .detail-button, .back, .back-button, .btn, .logout, .blb-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px !important;
    color: #fff !important;
    background: var(--blb-blue) !important;
    border: 1px solid transparent !important;
    border-radius: 11px !important;
    box-shadow: 0 7px 18px rgba(23, 103, 168, .16);
    text-decoration: none !important;
    font-weight: 760 !important;
    cursor: pointer;
}

.button:hover, .search-button:hover, .detail-button:hover, .back:hover, .back-button:hover, .blb-button:hover {
    transform: translateY(-2px);
    filter: brightness(.96);
}

.button.secondary, .reset-button, .blb-button.secondary { color: var(--blb-ink) !important; background: #fff !important; border-color: var(--blb-line) !important; box-shadow: none; }
.button.success, .detail-button, .blb-button.success { background: #16865c !important; box-shadow: 0 7px 18px rgba(22, 134, 92, .16); }
.button.danger, .logout, .blb-button.danger { background: var(--blb-red) !important; box-shadow: 0 7px 18px rgba(227, 63, 70, .18); }
.blb-button.yellow { color: #3d3200 !important; background: var(--blb-yellow) !important; box-shadow: 0 7px 18px rgba(255, 223, 32, .2); }

.stats-grid, .blb-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px !important;
}

.stat-card, .blb-kpi {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 20px !important;
    color: var(--blb-ink);
    background: rgba(255,255,255,.96) !important;
    border: 1px solid var(--blb-line) !important;
    border-radius: 17px !important;
    box-shadow: var(--blb-shadow) !important;
    text-decoration: none;
}

.stat-card::before, .blb-kpi::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--blb-blue); }
.stat-card:nth-child(2)::before, .blb-kpi.red::before { background: var(--blb-red); }
.stat-card:nth-child(3)::before, .blb-kpi.yellow::before { background: var(--blb-yellow); }
.stat-card:nth-child(4)::before, .blb-kpi.blue::before { background: var(--blb-blue); }
.stat-card:hover, a.blb-kpi:hover { transform: translateY(-3px); border-color: rgba(23,103,168,.32) !important; }
.stat-label, .blb-kpi-label { color: var(--blb-muted) !important; font-size: 13px !important; font-weight: 700; }
.stat-value, .blb-kpi-value { margin-top: 12px; color: var(--blb-blue-dark) !important; font-size: 34px !important; font-weight: 880 !important; line-height: 1; }
.blb-kpi-note { margin-top: 9px; color: var(--blb-muted); font-size: 12px; }

.panel, .card, .blb-panel {
    padding: 22px !important;
    background: rgba(255,255,255,.97) !important;
    border: 1px solid var(--blb-line) !important;
    border-radius: 17px !important;
    box-shadow: var(--blb-shadow) !important;
}

.panel { margin-bottom: 22px !important; }
.panel-title, .blb-panel-title { margin: 0 0 16px !important; color: var(--blb-blue-dark) !important; font-size: 19px !important; font-weight: 850 !important; }
.blb-section-copy { margin: -8px 0 18px; color: var(--blb-muted); font-size: 14px; line-height: 1.5; }

.grid, .blb-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.item-card, .blb-card { position: relative; padding: 20px !important; background: #fff !important; border: 1px solid var(--blb-line) !important; border-radius: 15px !important; box-shadow: none !important; }
.item-card:hover, a.blb-card:hover { transform: translateY(-3px); border-color: rgba(23,103,168,.38) !important; box-shadow: 0 12px 30px rgba(13,71,120,.10) !important; }
.item-title, .blb-card-title { color: var(--blb-blue-dark) !important; font-weight: 850 !important; }
.item-meta, .blb-card-copy { color: var(--blb-muted) !important; line-height: 1.5; }
.item-count { color: var(--blb-red) !important; }
.blb-card { display: block; color: var(--blb-ink); text-decoration: none; }
.blb-card-icon { display: grid; width: 46px; height: 46px; margin-bottom: 18px; place-items: center; color: var(--blb-blue-dark); background: #eaf3fb; border-radius: 13px; font-size: 23px; }
.blb-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; color: var(--blb-blue); font-size: 13px; font-weight: 800; }

.mini-card { background: #f8fafc !important; border-color: var(--blb-line) !important; border-radius: 13px !important; }
.mini-value { color: var(--blb-blue-dark) !important; }

.search-input, input, select, textarea {
    border: 1px solid #cfd8e5 !important;
    border-radius: 11px !important;
    outline: none;
}
.search-input:focus, input:focus, select:focus, textarea:focus { border-color: var(--blb-blue) !important; box-shadow: 0 0 0 3px rgba(23,103,168,.12) !important; }

.blb-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--blb-line); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th { padding: 13px !important; color: white !important; background: linear-gradient(100deg, var(--blb-blue-dark), var(--blb-blue)) !important; border: 0 !important; font-size: 13px !important; letter-spacing: .01em; }
td { padding: 13px !important; border: 0 !important; border-bottom: 1px solid #e8edf3 !important; font-size: 13px !important; }
tbody tr:nth-child(even) td { background: #f8fafc !important; }
tbody tr:hover td { background: #f1f7fc !important; }

.empty, .empty-state { padding: 22px !important; color: var(--blb-muted) !important; background: #f8fafc !important; border: 1px dashed #b9c7d8 !important; border-radius: 13px !important; box-shadow: none !important; }
.badge { padding: 6px 10px !important; border-radius: 999px !important; font-size: 11px !important; }

.blb-login-body { display: grid; min-height: 100vh; place-items: center; padding: 28px; }
.blb-login-shell { position: relative; overflow: hidden; display: grid; width: min(1040px, 100%); grid-template-columns: 1.08fr .92fr; background: #fff; border: 1px solid var(--blb-line); border-radius: 26px; box-shadow: 0 28px 70px rgba(13,71,120,.18); }
.blb-login-story { position: relative; display: flex; min-height: 610px; padding: 52px; flex-direction: column; justify-content: space-between; color: #fff; background: linear-gradient(145deg, var(--blb-blue-dark), var(--blb-blue)); }
.blb-login-story::after { content: ""; position: absolute; width: 280px; height: 280px; right: -100px; bottom: -115px; border: 46px solid var(--blb-yellow); border-radius: 50%; opacity: .36; }
.blb-login-logo { width: 90px; height: 90px; object-fit: contain; background: #fff; border-radius: 23px; box-shadow: 0 16px 38px rgba(0,0,0,.18); }
.blb-login-story h1 { max-width: 500px; margin: 28px 0 14px; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; }
.blb-login-story p { max-width: 500px; color: rgba(255,255,255,.79); font-size: 16px; line-height: 1.65; }
.blb-feature-list { display: grid; gap: 12px; margin-top: 30px; }
.blb-feature { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.9); font-size: 13px; font-weight: 650; }
.blb-feature::before { content: ""; width: 8px; height: 8px; flex: 0 0 auto; background: var(--blb-yellow); border-radius: 50%; }
.blb-login-form { display: flex; padding: 52px; flex-direction: column; justify-content: center; }
.blb-login-form h2 { margin: 0; color: var(--blb-ink); font-size: 30px; }
.blb-login-form > p { margin: 9px 0 30px; color: var(--blb-muted); line-height: 1.5; }
.input-group { margin-bottom: 18px !important; }
.input-group label { display: block; margin-bottom: 8px; color: #344054 !important; font-size: 13px; font-weight: 780; }
.input-group input { width: 100%; min-height: 48px; padding: 12px 14px !important; font-size: 15px !important; }
.btn-login { width: 100%; min-height: 50px; margin-top: 4px; color: white; background: linear-gradient(100deg, var(--blb-blue-dark), var(--blb-blue)); border: 0; border-radius: 12px; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(23,103,168,.22); }
.btn-login:hover { transform: translateY(-2px); }
.error { margin-bottom: 20px !important; padding: 13px 14px !important; color: #9d2027 !important; background: #fff0f0 !important; border: 1px solid #ffd1d3; border-radius: 11px !important; }
.footer { margin-top: 24px !important; color: #98a2b3 !important; font-size: 12px !important; text-align: center; }

@media (max-width: 900px) {
    .blb-login-shell { grid-template-columns: 1fr; }
    .blb-login-story { min-height: auto; padding: 38px; }
    .blb-login-form { padding: 38px; }
    .stats-grid, .blb-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .topbar, .blb-hero { flex-direction: column; }
    .time-card { width: 100%; text-align: left !important; }
}

@media (max-width: 600px) {
    .blb-brandbar { padding: 12px 16px; }
    .blb-logo { width: 44px; height: 44px; }
    .blb-account { display: none; }
    .page, .container, .blb-page { width: min(100% - 28px, 1320px) !important; padding-top: 24px !important; }
    .topbar, .blb-hero { padding: 23px !important; border-radius: 18px; }
    .stats-grid, .blb-kpi-grid, .mini-grid { grid-template-columns: 1fr !important; }
    .search-form { flex-direction: column; }
    .blb-login-body { padding: 14px; }
    .blb-login-story, .blb-login-form { padding: 27px; }
    .blb-login-story h1 { font-size: 32px; }
}

/* Dashboard interaction and detail refinements */
.blb-back,
a.back-button,
a.back,
a.button.secondary,
a.btn.btn-secondary {
    display: inline-flex !important;
    min-height: 42px;
    padding: 9px 14px !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #344054 !important;
    background: #fff !important;
    border: 1px solid #d6dde7 !important;
    border-radius: 11px !important;
    box-shadow: 0 1px 2px rgba(16,24,40,.04) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 780 !important;
    transition: border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.blb-back:hover,
a.back-button:hover,
a.back:hover,
a.button.secondary:hover,
a.btn.btn-secondary:hover {
    color: var(--blb-blue-dark) !important;
    border-color: rgba(23,103,168,.42) !important;
    box-shadow: 0 7px 18px rgba(13,71,120,.09) !important;
    transform: translateY(-1px);
}

.blb-hero-with-actions,
.blb-section-heading,
.blb-legacy-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.blb-hero-actions,
.blb-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blb-legacy-page-header { margin-bottom: 22px; }
.blb-legacy-page-header h1 { margin: 0 !important; }
.stat-card, .mini-card, .item-card-link { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.stat-card { display: flex; flex-direction: column; }
.stat-link, .mini-link { margin-top: auto; padding-top: 14px; color: var(--blb-blue); font-size: 12px; font-weight: 800; }
.mini-card { display: flex; min-height: 124px; padding: 15px; flex-direction: column; color: var(--blb-ink); text-decoration: none; }
.mini-card:hover { transform: translateY(-2px); border-color: rgba(23,103,168,.36) !important; box-shadow: 0 8px 22px rgba(13,71,120,.08) !important; }
.item-card-link { display: block; color: var(--blb-ink); text-decoration: none; }

.blb-filter-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    align-items: end;
    border-bottom: 1px solid #e5e9ef;
}

.blb-filter-field { display: grid; gap: 7px; }
.blb-filter-field > span { color: #667085; font-size: 12px; font-weight: 760; }
.blb-filter-field select { width: 100%; min-height: 44px; padding: 9px 12px; color: #344054; background: #fff; }
.blb-section-heading { margin-bottom: 18px; }
.blb-section-heading .blb-panel-title { margin-bottom: 6px !important; }

.blb-export-today {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    margin-bottom: 22px;
    padding: 22px;
    align-items: center;
    background: linear-gradient(120deg, #eff8f4, #f8fbfd);
    border: 1px solid #cfe8dc;
    border-radius: 17px;
}

.blb-export-today-icon { display: grid; width: 52px; height: 52px; place-items: center; color: #fff; background: #16865c; border-radius: 15px; font-size: 25px; font-weight: 900; }
.blb-export-today-copy h2 { margin: 0; color: #17324d; font-size: 20px; }
.blb-export-today-copy p { margin: 5px 0 0; color: #667085; }
.blb-period-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.blb-period-card { display: flex; min-height: 218px; padding: 18px; flex-direction: column; background: #fff; border: 1px solid #e0e6ed; border-radius: 15px; }
.blb-period-card.active { background: linear-gradient(145deg, #f5faff, #fff); border-color: rgba(23,103,168,.36); box-shadow: inset 0 3px 0 var(--blb-blue); }
.blb-period-card-top { display: flex; justify-content: space-between; gap: 14px; }
.blb-period-name { color: #17324d; font-size: 18px; font-weight: 850; }
.blb-period-label { margin-top: 5px; color: #667085; font-size: 12px; line-height: 1.45; }
.blb-period-count { display: flex; margin: 20px 0; align-items: baseline; gap: 8px; color: #667085; font-size: 12px; }
.blb-period-count strong { color: var(--blb-blue-dark); font-size: 30px; }
.blb-period-card .blb-button { width: 100%; margin-top: auto; }
.blb-info-chip { padding: 8px 11px; color: #365470; background: #eef5fb; border: 1px solid #d7e6f3; border-radius: 999px; font-size: 11px; font-weight: 750; }
.blb-notice { display: flex; gap: 10px; margin-top: 18px; padding: 14px 16px; color: #4d5e70; background: #fff9e8; border: 1px solid #f2df9d; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.blb-notice strong { color: #715d12; white-space: nowrap; }
.filter-select { min-height: 44px; padding: 9px 12px; color: #344054; background: #fff; border: 1px solid #d4dbe3; border-radius: 10px; }
.blb-custom-export { margin-top: 18px; }
.blb-date-presets { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
.blb-date-preset { padding: 9px 13px; color: #31516d; background: #f1f6fa; border: 1px solid #d6e3ee; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 780; }
.blb-date-preset:hover, .blb-date-preset.active { color: #fff; background: var(--blb-blue); border-color: var(--blb-blue); }
.blb-date-form { display: grid; grid-template-columns: minmax(180px,1fr) auto minmax(180px,1fr) auto; gap: 14px; align-items: end; padding: 18px; background: #f8fafc; border: 1px solid #e1e7ed; border-radius: 14px; }
.blb-date-form label > span { display: block; margin-bottom: 7px; color: #485d72; font-size: 12px; font-weight: 800; }
.blb-date-form input { width: 100%; min-height: 45px; padding: 9px 11px; color: #263b50; background: #fff; border: 1px solid #ccd6e0; border-radius: 9px; box-sizing: border-box; font: inherit; }
.blb-date-arrow { display: grid; height: 45px; place-items: center; color: var(--blb-blue); font-size: 20px; font-weight: 900; }
.blb-date-help { margin: 12px 2px 0; color: #657589; font-size: 12px; }
.blb-export-error { display: grid; gap: 5px; margin-top: 15px; padding: 13px 15px; color: #991b1b; background: #fff1f1; border: 1px solid #fecaca; border-radius: 10px; font-size: 13px; }
.blb-export-error strong { margin-bottom: 2px; }

.blb-status-pill, .blb-badge { display: inline-flex; padding: 7px 11px; align-items: center; border-radius: 999px; font-size: 11px; font-weight: 820; }
.blb-status-pill.selesai, .blb-status-pill.terkirim, .blb-badge.active { color: #12623f; background: #dcf6e9; }
.blb-status-pill.draft { color: #92550a; background: #fff0cc; }
.blb-badge.neutral { color: #5c6675; background: #edf1f5; }
.blb-detail-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.blb-summary-item { min-width: 0; padding: 16px; background: #fff; border: 1px solid #e1e6ec; border-radius: 14px; }
.blb-summary-item span, .blb-info-item span, .blb-coordinate-box span, .blb-photo-meta span { display: block; margin-bottom: 6px; color: #7a8492; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.blb-summary-item strong { display: block; overflow: hidden; color: #233347; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.blb-detail-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr); gap: 22px; margin-bottom: 22px; }
.blb-detail-layout > .blb-panel { margin: 0 !important; }
.blb-report-detail > .blb-panel { margin-bottom: 22px !important; }
.blb-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 22px; }
.blb-info-item { min-width: 0; padding: 14px 0; border-bottom: 1px solid #edf0f4; }
.blb-info-item.wide { grid-column: 1 / -1; }
.blb-info-item strong { color: #26384d; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.blb-coordinate-box { display: grid; gap: 10px; margin: 18px 0; }
.blb-coordinate-box > div { padding: 13px; background: #f6f8fa; border: 1px solid #e4e9ef; border-radius: 11px; }
.blb-coordinate-box strong { color: #253a50; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.blb-full-button { width: 100%; }
.blb-empty-inline { padding: 13px; color: #7a8492; background: #f7f8fa; border: 1px dashed #cfd6df; border-radius: 11px; font-size: 13px; }
.blb-meter-comparison { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 16px; align-items: center; }
.blb-meter-card { padding: 18px; background: #f8fafb; border: 1px solid #e0e6ec; border-radius: 14px; }
.blb-meter-card.new { background: #f3faf7; border-color: #d4e9df; }
.blb-meter-heading { display: flex; margin-bottom: 14px; align-items: center; justify-content: space-between; gap: 12px; color: #20354c; font-weight: 850; }
.blb-meter-card dl { margin: 0; }
.blb-meter-card dl > div { display: flex; padding: 10px 0; align-items: baseline; justify-content: space-between; gap: 14px; border-top: 1px solid #e6eaef; }
.blb-meter-card dt { color: #7b8491; font-size: 12px; }
.blb-meter-card dd { margin: 0; color: #24384d; font-size: 13px; font-weight: 760; text-align: right; }
.blb-meter-arrow { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--blb-blue); border-radius: 50%; font-weight: 900; }
.blb-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.blb-photo-card { overflow: hidden; background: #f8fafb; border: 1px solid #e0e6ec; border-radius: 14px; }
.blb-photo-heading { display: flex; padding: 14px; align-items: center; justify-content: space-between; gap: 10px; }
.blb-photo-heading > strong { color: #25394f; font-size: 14px; }
.blb-photo-preview { position: relative; display: block; overflow: hidden; height: 230px; color: #fff; background: #dfe5eb; text-decoration: none; }
.blb-photo-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.blb-photo-preview span { position: absolute; right: 10px; bottom: 10px; padding: 7px 9px; color: #fff; background: rgba(13,31,50,.78); border-radius: 8px; font-size: 11px; font-weight: 750; }
.blb-photo-preview:hover img { transform: scale(1.025); }
.blb-photo-meta { display: grid; gap: 11px; padding: 14px; }
.blb-photo-meta strong, .blb-photo-meta a { color: #344b62; font-size: 12px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.blb-photo-empty { display: grid; min-height: 230px; padding: 20px; place-items: center; align-content: center; gap: 10px; color: #8b95a3; background: #f1f4f7; font-size: 13px; }
.blb-photo-empty span { font-size: 30px; }

@media (max-width: 1080px) {
    .blb-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blb-filter-actions { align-self: end; }
    .blb-detail-layout { grid-template-columns: 1fr; }
    .blb-detail-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .blb-date-form { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
    .blb-date-form .blb-button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 700px) {
    .blb-hero-with-actions, .blb-section-heading, .blb-legacy-page-header { flex-direction: column; align-items: stretch; }
    .blb-export-today { grid-template-columns: auto 1fr; }
    .blb-export-today .blb-button { grid-column: 1 / -1; width: 100%; }
    .blb-filter-bar, .blb-detail-summary, .blb-info-grid { grid-template-columns: 1fr; }
    .blb-info-item.wide { grid-column: auto; }
    .blb-meter-comparison { grid-template-columns: 1fr; }
    .blb-meter-arrow { margin: -2px auto; transform: rotate(90deg); }
    .blb-notice { flex-direction: column; }
    .blb-date-form { grid-template-columns: 1fr; }
    .blb-date-arrow { height: 20px; transform: rotate(90deg); }
    .blb-date-form .blb-button { grid-column: auto; }
}
