:root {
    --hbl-ink: #192c2a;
    --hbl-muted: #687672;
    --hbl-green: #245548;
    --hbl-dark: #183c36;
    --hbl-light: #edf3ef;
    --hbl-border: #dce3de;
    --hbl-canvas: #f6f7f3;
    --hbl-gold: #caae77;
    --bs-primary: #245548;
    --bs-primary-rgb: 36, 85, 72;
    --bs-body-color: #192c2a;
    --bs-body-bg: #f6f7f3;
    --bs-border-color: #dce3de;
    --bs-border-radius: .35rem;
    --bs-link-color: #245548;
    --bs-link-hover-color: #153b31;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif; font-size: .94rem; line-height: 1.6; }
h1, h2, h3, h4 { color: var(--hbl-ink); font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); margin: 0 0 .6rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
a { text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, .btn, .form-control, .form-select { min-height: 44px; }
.btn { padding: .65rem 1.1rem; font-size: .9rem; font-weight: 600; border-radius: .3rem; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.btn-primary { --bs-btn-bg: var(--hbl-green); --bs-btn-border-color: var(--hbl-green); --bs-btn-hover-bg: #183c36; --bs-btn-hover-border-color: #183c36; --bs-btn-active-bg: #153b31; --bs-btn-active-border-color: #153b31; --bs-btn-disabled-bg: #69867c; --bs-btn-disabled-border-color: #69867c; }
.btn-outline-primary { --bs-btn-color: var(--hbl-green); --bs-btn-border-color: #9bada3; --bs-btn-hover-bg: var(--hbl-green); --bs-btn-hover-border-color: var(--hbl-green); --bs-btn-active-bg: var(--hbl-green); --bs-btn-active-border-color: var(--hbl-green); }
.btn-outline-secondary { --bs-btn-color: #586660; --bs-btn-border-color: #cad4cd; }
.btn-light { --bs-btn-bg: #f9faf5; --bs-btn-color: var(--hbl-dark); }
.btn:focus-visible, :focus-visible { outline: 3px solid #a07e39; outline-offset: 3px; }
.form-control, .form-select { background-color: #fff; font-size: .94rem; border-color: #cbd6ce; }
.form-control:focus, .form-select:focus { border-color: #6c8f7d; box-shadow: 0 0 0 .2rem #2455481a; }
.form-label { font-weight: 600; font-size: .85rem; margin-bottom: .4rem; }
.form-text, .text-secondary { color: var(--hbl-muted) !important; }
.form-check-input:checked { background-color: var(--hbl-green); border-color: var(--hbl-green); }
.form-check { min-height: 44px; display: flex; align-items: center; gap: .6rem; }
.form-check .form-check-input { margin-top: 0; }
.app-frame { display: flex; min-height: 100vh; }
.app-sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; background: #fff; border-right: 1px solid var(--hbl-border); padding: 30px 20px 24px; flex-direction: column; z-index: 20; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--hbl-ink); font-size: .72rem; font-weight: 600; line-height: 1.45; margin-bottom: 42px; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; background: var(--hbl-dark); color: white; font-size: 1.05rem; letter-spacing: -.04em; border-radius: 3px; }
.brand small { display: block; letter-spacing: .18em; font-size: .6rem; color: var(--hbl-muted); margin-top: .3rem; }
.nav-caption { font-size: .59rem; font-weight: 700; letter-spacing: .14em; color: #809087; margin: 0 12px 14px; }
.workspace-nav { display: flex; flex-direction: column; gap: 5px; }
.workspace-nav a { color: #61726a; display: flex; gap: 14px; padding: 12px 14px; text-decoration: none; border-radius: 3px; min-height: 46px; font-size: .86rem; }
.workspace-nav a:hover { background-color: #f1f5f0; color: var(--hbl-green); }
.workspace-nav a[aria-current="page"] { background-color: var(--hbl-light); color: var(--hbl-green); font-weight: 650; }
.workspace-nav svg { width: 20px; height: 20px; flex: 0 0 20px; }
.workspace-nav svg, .empty-icon svg, .icon-box svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-separator { border-top: 1px solid var(--hbl-border); margin: 18px 10px; }
.sidebar-bottom { margin-top: auto; padding: 28px 12px 0; }
.small-label { font-size: .57rem; letter-spacing: .13em; color: #8a978e; font-weight: 700; }
.sidebar-bottom p { font-size: .96rem; color: #66776d; margin: 13px 0; }
.sidebar-bottom a { font-size: .75rem; text-decoration: none; display: flex; justify-content: space-between; }
.app-main { min-width: 0; flex: 1; }
.app-topbar { height: 72px; display: flex; align-items: center; padding: 0 40px; gap: 16px; background: #fff; border-bottom: 1px solid var(--hbl-border); }
.workspace-label { color: #7b8981; font-size: .77rem; }
.topbar-status { margin-left: auto; display: flex; align-items: center; gap: 20px; color: #54685c; font-size: .76rem; }
.connection-status { display: flex; align-items: center; gap: 7px; text-decoration: none; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #90a58c; display: inline-block; }
.connection-status[data-offline="true"] .status-dot { background: #b78639; }
.topbar-divider { height: 20px; border-left: 1px solid var(--hbl-border); }
.main-content { max-width: 1660px; padding: 38px 40px 48px; margin: 0 auto; min-height: calc(100vh - 129px); }
.app-footer { margin: 0 40px; padding: 18px 0; border-top: 1px solid var(--hbl-border); display: flex; justify-content: space-between; gap: 12px; font-size: .63rem; color: #8b978e; letter-spacing: .06em; }
.app-footer a { color: #7b8c81; text-decoration: none; letter-spacing: 0; }
.page-heading, .page-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.eyebrow { font-size: .64rem; font-weight: 700; letter-spacing: .15em; color: #6c8173; margin-bottom: .7rem; }
.welcome-panel { min-height: 290px; background: var(--hbl-dark); color: #ebf2e9; border-radius: 5px; overflow: hidden; display: flex; margin-bottom: 24px; }
.welcome-copy { padding: 34px 38px; flex: 1; z-index: 1; }
.section-kicker { color: #b9cbbd; letter-spacing: .12em; font-weight: 600; font-size: .58rem; }
.welcome-panel h2 { font-size: clamp(1.8rem, 2.6vw, 2.65rem); color: #fbfcf6; font-weight: 450; line-height: 1.16; margin: 14px 0; }
.welcome-panel p { color: #bdd0c2; font-size: .83rem; line-height: 1.7; margin-bottom: 24px; }
.welcome-panel .btn { font-size: .78rem; padding: .6rem .95rem; }
.welcome-art { width: 32%; min-width: 220px; position: relative; margin-right: 20px; overflow: hidden; }
.line-tree { width: 130px; height: 165px; border: 1px solid #688775; clip-path: polygon(50% 0, 100% 85%, 58% 85%, 58% 100%, 42% 100%, 42% 85%, 0 85%); background: #53776044; position: absolute; transform: rotate(-4deg); }
.tree-one { top: 70px; left: 20%; width: 140px; height: 190px; background: #73977c36; }
.tree-two { top: 122px; left: 52%; width: 93px; height: 126px; background: #94b19830; transform: rotate(4deg); }
.art-star { position: absolute; color: var(--hbl-gold); font-size: 42px; font-weight: 300; }
.star-one { top: 36px; left: 42%; }.star-two { top: 105px; left: 8%; font-size: 26px; }
.art-dot { position: absolute; height: 4px; width: 4px; background: #bdc9a5; border-radius: 50%; }.dot-one { top: 85px; right: 12%; }.dot-two { bottom: 55px; left: 13%; }
.art-caption { position: absolute; bottom: 31px; right: 20px; font-size: .53rem; line-height: 1.7; letter-spacing: .18em; color: #afbdab; text-align: right; }
.activity-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.metric-card { background: white; border: 1px solid var(--hbl-border); padding: 20px 22px; text-decoration: none; color: var(--hbl-ink); border-radius: 4px; display: flex; flex-direction: column; transition: border-color .15s; }
.metric-card:hover { border-color: #94aa97; color: var(--hbl-ink); }.metric-card>span { font-size: .79rem; color: #6b796f; }.metric-card strong { font-size: 1.9rem; font-weight: 550; line-height: 1.8; font-variant-numeric: tabular-nums; }.metric-card small { font-size: .65rem; color: #819084; display: flex; justify-content: space-between; gap: 8px; }
.surface-card, .card { background: white; border: 1px solid var(--hbl-border); border-radius: 4px; box-shadow: none; }.surface-card { padding: 26px; }
.section-heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; }.section-heading h2 { margin: 0; font-size: 1rem; }.section-heading a { text-decoration: none; font-size: .75rem; }
.empty-state { padding: 36px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 240px; }.empty-state h3 { font-size: 1.05rem; margin: 18px 0 12px; }.empty-state p { color: #8a978d; font-size: .81rem; margin-bottom: 20px; }.empty-icon { color: #9eb3a0; width: 47px; height: 47px; }.empty-icon svg { width: 100%; height: 100%; }
.icon-box { width: 46px; height: 46px; background: #edf2ea; border: 1px solid #e1e8dc; border-radius: 4px; padding: 11px; color: #5e7f63; }.icon-box svg { width: 22px; height: 22px; }.device-card { background: #f1f4ed; display: flex; flex-direction: column; }.device-card h2 { font-size: 1.35rem; font-weight: 550; max-width: 240px; }.device-card p:not(.eyebrow) { color: #7a8a79; font-size: .82rem; margin: 12px 0 24px; }
.admin-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }.admin-link { text-decoration: none; color: inherit; padding: 30px; }.admin-link h2 { font-size: 1.2rem; }.admin-link p { color: var(--hbl-muted); font-size: .86rem; }.admin-link>span { font-size: .8rem; color: var(--hbl-green); font-weight: 600; }
.table { --bs-table-bg: #fff; --bs-table-color: var(--hbl-ink); vertical-align: middle; }.table thead th { background: #f2f5ef; font-weight: 600; font-size: .75rem; color: #647768; border-bottom-width: 1px; white-space: nowrap; padding: .9rem; }.table td { padding: .85rem .9rem; font-size: .86rem; }.table td input { min-width: 70px; }.table-responsive { border-radius: 3px; }.pagination { gap: 4px; }.page-link { min-height: 44px; min-width: 44px; display: grid; place-items: center; color: var(--hbl-green); }.page-item.active .page-link { background: var(--hbl-green); border-color: var(--hbl-green); }
.badge { border-radius: 3px; padding: .4rem .55rem; font-weight: 550; }.alert { border-radius: 4px; font-size: .86rem; }.alert-warning { background: #faf5e9; color: #775d27; border-color: #e8d9b3; }.alert-success { background: #eef5ed; color: #3a6144; border-color: #cddfcf; }.alert-danger { background: #fff2ee; color: #963e30; border-color: #e8c7c0; }
.modal-content { border-radius: 5px; }.modal-header, .modal-footer { padding: 20px 24px; }.modal-body { padding: 24px; }.mobile-brand { font-weight: 750; font-size: 1.2rem; text-decoration: none; }.mobile-navigation { background: white; padding: 12px 20px; border-bottom: 1px solid var(--hbl-border); }.skip-link { position: fixed; top: -80px; left: 20px; z-index: 2000; background: #fff; padding: 12px; }.skip-link:focus { top: 10px; }
.product-image, .catalog-thumbnail { object-fit: contain; background: #f6f7f3; }.catalog-thumbnail { width: 72px; height: 72px; }.product-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 20px; }.product-card img { width: 100%; aspect-ratio: 1.2; object-fit: contain; }.price { font-variant-numeric: tabular-nums; font-weight: 600; }.sticky-summary { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--hbl-border); padding: 16px; z-index: 15; }.capture-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }.toolbar .form-control { flex: 1; min-width: 180px; }
[hidden] { display: none !important; }
.catalog-detail-image { object-fit: contain; flex: 0 0 auto; }
.capture-action-bar { position: sticky; bottom: 0; z-index: 15; background: #fff; border: 1px solid var(--hbl-border); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: 0 -4px 12px #193c3508; }
.print-document { background: #fff; padding: 35px; max-width: 900px; margin: 0 auto; }
@media(min-width: 1400px) { .app-main { margin-left: 244px; } }
@media(max-width: 1199px) { .main-content { padding: 30px 28px 40px; }.app-topbar { padding: 0 28px; }.metric-card { padding: 17px; }.metric-card small { font-size: .61rem; }.admin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 767px) { .main-content { padding: 26px 18px 32px; }.app-topbar { padding: 0 18px; height: 64px; }.topbar-status { gap: 9px; }.topbar-divider { display: none; }#current-user-name { max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.page-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; }.page-heading>div { flex: 1 0 100%; }.welcome-copy { padding: 26px; }.welcome-art { display: none; }.welcome-panel { min-height: 0; }.activity-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.surface-card { padding: 21px; }.admin-grid, .capture-layout { grid-template-columns: 1fr; }.app-footer { margin: 0 18px; flex-direction: column; gap: 5px; }.section-heading { flex-wrap: wrap; }.product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.table { font-size: .8rem; } }
@media(prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
