.hgb{--ink:#172c32;--muted:#52686c;--rule:#d9e1df;--paper:#fff;--wash:#f1f5f2;--teal:#086c60;container-type:inline-size;max-width:1160px;margin:clamp(12px,2vw,32px) auto;padding:clamp(12px,2.3vw,30px);border:1px solid var(--rule);border-radius:20px;background:#f4f6f3;color:var(--ink);font:400 14px/1.48 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:start}
.hgb *,.hgb *::before,.hgb *::after{box-sizing:border-box}
.hgb [hidden]{display:none!important}
.hgb h2,.hgb h3,.hgb strong,.hgb b{color:inherit;font-family:inherit;line-height:1.2;letter-spacing:normal;text-transform:none}
.hgb h2,.hgb h3,.hgb p,.hgb dl,.hgb dt,.hgb dd{margin:0}
.hgb a{box-shadow:none;color:inherit;text-decoration:none}
.hgb summary,.hgb a,.hgb input,.hgb button{font-family:inherit}
.hgb summary,.hgb button{cursor:pointer}
.hgb summary{list-style:none}
.hgb summary::-webkit-details-marker{display:none}
.hgb :is(a,summary,button,input):focus-visible{outline:3px solid #298c9c;outline-offset:3px;position:relative;z-index:2}
.hgb .dashicons{font-size:18px;width:18px;height:18px;line-height:1;flex-shrink:0}
.hgb .hgb-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.hgb-header h2{font-weight:730;font-size:clamp(25px,3.4vw,41px);letter-spacing:-.055em}
.hgb .hgb-date{display:inline-flex;gap:7px;align-items:center;color:var(--muted);font-size:13px;font-weight:550}
.hgb-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:18px 0}
.hgb-toolbar nav{display:inline-flex;align-items:stretch;background:#e6ece8;border-radius:10px;padding:3px;max-width:100%;margin:0}
.hgb-toolbar nav a{padding:8px 12px;border-radius:7px;font-size:13px;font-weight:600;line-height:1.3;text-align:center;color:#3f5559}
.hgb-toolbar nav a:hover,.hgb-custom summary:hover{color:var(--teal)}
.hgb-toolbar nav [aria-current]{background:white;color:var(--ink);box-shadow:0 1px 3px #23393624}
.hgb-custom{position:relative;z-index:3;margin:0}
.hgb-custom summary{display:flex;align-items:center;gap:8px;min-height:38px;border:1px solid var(--rule);background:white;border-radius:9px;padding:6px 10px;font-size:13px;font-weight:600}
.hgb-custom form{position:absolute;right:0;top:calc(100% + 6px);width:260px;padding:14px;background:#fff;border:1px solid var(--rule);border-radius:12px;box-shadow:0 10px 28px #18392f24;display:grid;grid-template-columns:1fr;gap:10px;margin:0}
.hgb-custom label{display:grid;gap:3px;margin:0;font-size:12px;color:var(--muted)}
.hgb-custom input,.hgb-search input{min-width:0;width:100%;height:35px;margin:0;background:#fff;border:1px solid #bccbc7;border-radius:6px;font:inherit;color:var(--ink);box-shadow:none}
.hgb-custom button{min-height:35px;background:#133d38;color:white;border:0;border-radius:7px;margin:0;text-transform:none;letter-spacing:0}
.hgb-overview{display:grid;grid-template-columns:minmax(0,1.32fr) minmax(0,1fr);gap:14px}
.hgb-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-width:0;border-radius:16px;background:linear-gradient(115deg,#102e30,#164840);color:white}
.hgb-hero::before{content:"";position:absolute;z-index:-1;top:-65px;right:-77px;width:235px;height:235px;border:1px solid #9bd9bb24;border-radius:50%;box-shadow:0 0 0 18px #94dbc10b,0 0 0 36px #94dbc110,0 0 0 56px #94dbc10a;pointer-events:none}
.hgb .hgb-cash{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:21px 24px 14px;color:white}
.hgb-cash:hover .hgb-see{text-decoration:underline}
.hgb-hero-title,.hgb-see{display:flex;align-items:center;gap:8px}
.hgb-hero-title{font-size:15px;font-weight:600;color:#e4f3eb}
.hgb-cash>strong{font-size:clamp(32px,4.5vw,58px);letter-spacing:-.055em}
.hgb .woocommerce-Price-currencySymbol{font-size:.78em}
.hgb .hgb-see{font-size:12px;font-weight:600;color:#c7e9d9}
.hgb-see .dashicons{font-size:14px;width:14px;height:14px}
.hgb-ca{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;border-top:1px solid #ffffff26;padding:12px 24px;font-size:13px;color:#e7f0eb}
.hgb-ca small{display:block;font-size:11px;color:#b7d2c7}
.hgb-ca b{color:white;font-size:17px;letter-spacing:-.03em}
.hgb-flow,.hgb-gain-grid,.hgb-panel{background:var(--paper);border:1px solid var(--rule);border-radius:15px}
.hgb-flow{display:grid;grid-auto-rows:1fr;padding:0 18px}
.hgb-flow-row{display:grid;grid-template-columns:35px minmax(0,1fr) auto 14px;align-items:center;gap:11px;padding:12px 0;min-height:53px;font-weight:600}
.hgb-flow-row+.hgb-flow-row{border-top:1px solid var(--rule)}
.hgb-flow-row i,.hgb-shop-name>i{display:grid;place-content:center;width:34px;height:34px;border-radius:10px;background:#eaf0fb;color:#365e98;font-style:normal}
.hgb-delivered i{background:#e2f3e9;color:#196943}.hgb-follow i{background:#fff0db;color:#925113}
.hgb-flow-row>strong{font-size:26px;letter-spacing:-.045em}
.hgb-flow-row>.dashicons,.hgb-shop>summary>.dashicons,.hgb-seller>summary>.dashicons{width:14px;height:14px;font-size:14px;color:var(--muted)}
.hgb-flow-row:hover,.hgb-gain:hover,.hgb-panel header a:hover{color:var(--teal)}
.hgb-gains{margin:20px 0}
.hgb h3{font-size:19px;font-weight:685;letter-spacing:-.035em}
.hgb-gains h3{margin-bottom:10px}
.hgb-gain-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(135px,100%),1fr));padding:4px}
.hgb-gain{padding:11px 13px;display:grid;gap:8px;align-content:start;border-radius:10px}
.hgb-gain:hover,.hgb-shop>summary:hover,.hgb-seller>summary:hover{background:#f2f7f4}
.hgb-gain>span{font-size:12px;font-weight:570;color:var(--muted)}
.hgb-gain>strong{font-size:21px;letter-spacing:-.045em}
.hgb-waiting strong{color:#87511b}.hgb-settled strong{color:var(--teal)}
.hgb-panel{margin-top:18px;overflow:hidden}
.hgb-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:16px 19px}
.hgb-panel>header a{font-size:13px;color:var(--teal);text-decoration:underline}
.hgb .hgb-search{display:flex;align-items:center;gap:7px;padding:0 9px;max-width:100%;background:#f6f8f7;border:1px solid var(--rule);border-radius:8px;margin:0;color:var(--muted)}
.hgb-search input{background:transparent;border:0;height:33px;width:160px;font-size:13px;padding:0}
.hgb .hgb-table-head,.hgb-shop>summary{display:grid;grid-template-columns:minmax(135px,1.5fr) minmax(85px,.65fr) minmax(90px,1fr) 16px;gap:12px;align-items:center}
.hgb-table-head{background:#f1f5f2;border-block:1px solid var(--rule);padding:8px 19px;font-size:11px;color:var(--muted);font-weight:650}
.hgb-table-head>span:nth-child(3),.hgb-turnover{text-align:right}
.hgb-shop{margin:0}.hgb-shop+.hgb-shop,.hgb-order+.hgb-order{border-top:1px solid var(--rule)}
.hgb-shop>summary{padding:10px 19px;min-height:51px}
.hgb-shop-name,.hgb-seller-name{display:flex;gap:9px;align-items:center;min-width:0}
.hgb-shop-name i{width:29px;height:29px;flex-shrink:0;background:#edf3f1;color:#44655d;border-radius:8px}
.hgb-shop-name .dashicons{font-size:15px;width:15px;height:15px}
.hgb-vol{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.hgb-vol>small{display:none}
.hgb-vol>i{display:block;width:40px;height:4px;background:#e3ebe6;border-radius:4px;overflow:hidden}.hgb-vol>i>i{display:block;height:100%;background:#498776;border-radius:inherit}
.hgb-turnover{font-weight:650}
.hgb-shop[open]>summary,.hgb-seller[open]>summary{background:#f1f6f2}
.hgb details[open]>summary>.dashicons:last-child{transform:rotate(180deg)}
.hgb-seller{margin:8px 14px 8px 28px;border:1px solid var(--rule);border-radius:8px;overflow:hidden}
.hgb-seller>summary{display:flex;align-items:center;justify-content:space-between;padding:10px;font-size:13px}
.hgb-seller-name{flex-wrap:wrap}.hgb-seller-name .dashicons{color:var(--muted)}.hgb-seller-name small,.hgb-order p,.hgb-subtotal,.hgb-empty,.hgb-timeline{color:var(--muted)}
.hgb .hgb-subtotal,.hgb .hgb-empty{padding:12px 16px}
.hgb-order{padding:13px 16px;border-top:1px solid var(--rule)}
.hgb-order-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.hgb-order p,.hgb-timeline{font-size:12px}
.hgb-status{border-radius:6px;padding:2px 7px;background:#eef2f2;color:#45575d;font-size:11px;font-weight:650}
.hgb-status.hold{background:#fff0dc;color:#804b1c}.hgb-status.done{background:#e2f2e7;color:#216441}
.hgb .hgb-timeline{display:flex;flex-wrap:wrap;gap:4px 14px;list-style:none;padding:0;margin:7px 0}.hgb-timeline li{margin:0;padding:0}
.hgb-amounts{display:flex;flex-wrap:wrap;gap:7px 24px}.hgb-amounts dt,.hgb-amounts dd small{color:var(--muted);font-size:11px;font-weight:500}.hgb-amounts dd{font-size:13px;font-weight:650}.hgb-amounts dd small{display:block}
#hgb-detail{scroll-margin-top:50px}
@container(max-width:680px){
.hgb-overview{grid-template-columns:1fr}.hgb-flow-row{min-height:48px;padding:7px 0}.hgb-gain-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hgb-custom form{position:static;margin-top:5px;box-shadow:none}.hgb-cash>strong{font-size:40px}
}
@container(max-width:475px){
.hgb-header{align-items:flex-start}.hgb-header h2{width:100%;font-size:28px}.hgb-toolbar{margin:13px 0;gap:7px}.hgb-toolbar nav{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.hgb-toolbar nav a{font-size:12px;padding:8px 2px}.hgb-custom{width:100%}.hgb-custom summary{width:fit-content;font-size:12px}.hgb-custom form{width:100%}.hgb .hgb-cash{padding:16px}.hgb-ca{padding:10px 16px}.hgb-flow{padding:0 12px}.hgb-gain-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hgb-gain{padding:9px}.hgb-gain>strong{font-size:18px}
.hgb-panel>header{padding:12px}.hgb .hgb-table-head{display:none}.hgb-shop>summary{grid-template-columns:minmax(0,1fr) auto 13px;gap:3px 7px;padding:10px 12px}.hgb-shop-name{grid-column:1;grid-row:1}.hgb-shop-name>i{display:none}.hgb-vol{grid-row:2;grid-column:1;gap:3px;font-size:11px}.hgb-vol>i{display:none}.hgb-vol>small{display:inline}.hgb-turnover{grid-column:2;grid-row:1 / span 2}.hgb-shop>summary>.dashicons{grid-row:1 / span 2;grid-column:3}.hgb-seller{margin:5px}.hgb-order{padding:10px}.hgb-panel .hgb-search{width:100%}.hgb-search input{width:100%}
}

/* Align the administrator and seller views with the operations workspace. */
.hgb {
    --ink: #172c49;
    --muted: #506279;
    --rule: #d4dfeb;
    --teal: #224e8b;
    background: #f4f7fb;
    border-radius: 18px;
}
.hgb .hgb-header {
    position: static; width: auto; padding: 18px clamp(14px, 2.3vw, 26px);
    border-inline-start: 5px solid #dc384b; border-radius: 5px 14px 14px 5px;
    background: #193457; color: #fff;
}
.hgb .hgb-header h2 { color: #fff; font-size: clamp(25px,3.2vw,38px); }
.hgb .hgb-date { color: #e5edfb; }
.hgb-toolbar nav { background: #e3eaf4; }
.hgb-toolbar nav [aria-current] { background: #224e8b; color: #fff; }
.hgb-hero { background: linear-gradient(115deg,#153354,#244f85); }
.hgb-hero::before { border-color: #cedff336; box-shadow: 0 0 0 16px #cedff30d,0 0 0 33px #cedff312; }
.hgb .hgb-see,.hgb-ca small,.hgb-hero-title { color: #e3ecfa; }
.hgb-flow-row { min-height: 56px; }
.hgb .hgb-gain-grid { background: transparent; border: 0; padding: 0; gap: 8px; }
.hgb .hgb-gain { border: 1px solid var(--rule); background: #fff; }
.hgb .hgb-gain:hover,.hgb .hgb-shop>summary:hover,.hgb .hgb-seller>summary:hover { background: #eaf1fa; }
.hgb .hgb-shop[open]>summary,.hgb .hgb-seller[open]>summary,.hgb-table-head { background: #eff4fa; }
.hgb .hgb-shop-name i { background: #e6eef9; color: #224e8b; }
.hgb .hgb-vol>i>i { background: #4774ae; }
.hgb .hgb-order-head { margin-bottom: 5px; }
.hgb a.hgl-pdf { display: inline-flex; align-items: center; min-height: 36px; padding: 5px 11px; margin: 0; border-radius: 7px; border: 1px solid #cbdaf0; background: #e9f0fb; color: #1a457b; font: 650 13px/1.35 Inter,system-ui,sans-serif; text-transform: none; letter-spacing: 0; white-space: normal; }
.hgb a.hgl-pdf:hover { background: #dce9fa; }

.hgb a.hgb-stock-link,.hgb-stock-form button{display:inline-block;background:#075e54;color:white;border:0;border-radius:8px;padding:9px 16px;margin:10px 0;font-weight:650}
.hgb-stock-back,.hgb-stock nav a,.hgb-stock th a{color:var(--teal);text-decoration:underline}
.hgb-stock header{margin:15px 0 8px}
.hgb-stock-form{display:flex;align-items:flex-end;gap:10px;margin:16px 0}
.hgb-stock-form label{display:grid;gap:4px}
.hgb-stock-form input{width:100%;margin:0;border:1px solid #99aaa8;border-radius:6px;padding:7px}
.hgb-stock-form button{margin:0}
.hgb-stock table{width:100%;border-collapse:collapse;background:white;table-layout:fixed}
.hgb-stock th,.hgb-stock td{padding:10px 5px;border-bottom:1px solid var(--rule);text-align:center;font-size:clamp(12px,2vw,16px)}
.hgb-stock th:first-child{width:44%;text-align:left}
.hgb-stock thead{background:#dcece6}
.hgb-stock small{color:#596660}
.hgb-stock nav{margin-top:12px;display:flex;gap:16px}
@container (max-width:450px){.hgb-stock th:first-child{width:37%}.hgb-stock td,.hgb-stock th{padding:8px 2px}}

.hgb-admin {
    --ink: #19332f;
    --muted: #546760;
    --rule: #d2dfd9;
    --teal: #075e54;
    background: #f5f8f6;
}
.hgb-admin .hgb-header { background: #163f39; border-inline-start-color: #74ceb0; }
.hgb-admin .hgb-header .hgb-date { color: #e1f4eb; }
.hgb-admin-tabs,.hgb-admin-links { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.hgb-admin-tabs { padding: 5px; background: white; border: 1px solid var(--rule); border-radius: 12px; }
.hgb-admin-tabs a,.hgb-admin-links a { padding: 9px 13px; border-radius: 7px; font-weight: 650; }
.hgb-admin-tabs a[aria-current],.hgb-admin .hgb-toolbar nav [aria-current] { background: #075e54; color: white; }
.hgb-admin-links a,.hgb-admin .hgb-toolbar nav { background: #e5eee9; color: #234e43; }
.hgb-admin .hgb-hero { background: #163f39; }
.hgb-admin .hgb-hero::before { display:none; }
.hgb-admin .hgb-shop[open]>summary,.hgb-admin .hgb-table-head { background: #ecf4ef; }
.hgb-admin .hgb-receipt-list { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0 19px 16px; }
.hgb-receipt-list dd { font-weight: 700; font-size: 17px; }
.hgb-admin .hgl-dispatch-items { list-style: none; padding: 0; margin: 12px 0; }
.hgb-admin .hgl-dispatch-items li { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:10px; padding:6px 0; border-top:1px solid var(--rule); }
.hgb-admin .hgl-dispatch-photo,.hgb-admin .hgl-photo-empty { width:48px; height:48px; object-fit:contain; border-radius:6px; background:white; }
.hgb-admin .hgl-photo-empty { font-size:11px; text-align:center; display:grid; place-items:center; }
.hgb-admin .hgl-dispatch-qty { font-size:13px; font-weight:600; }
@container(max-width:475px) {
    .hgb-admin-tabs a { flex:1; padding:7px 4px; text-align:center; font-size:13px; }
}

.hgb-custom:not([open]) > form { display: none; }

/* Flatsome gives WooCommerce amounts their own text color. */
.hgb-dashboard .hgb-hero :is(.amount, .woocommerce-Price-currencySymbol) {
    color: #fff;
}

@media (max-width: 767px) {
    .my-account .woocommerce .woocommerce-MyAccount-content:has(> .hgb-dashboard) {
        padding-inline: 0;
        border-inline: 0;
        box-shadow: none;
    }
    .my-account .vertical-tabs > .col:has(.hgb-dashboard) {
        min-width: 0;
        padding-inline: 8px;
    }
    .hgb.hgb-dashboard {
        box-sizing: border-box;
        margin: 6px 0 12px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    .hgb-dashboard .hgb-header {
        padding: 9px 12px;
        gap: 3px 12px;
    }
    .hgb-dashboard .hgb-header h2 {
        width: auto;
        font-size: 22px;
        line-height: 1.18;
    }
    .hgb-dashboard .hgb-date { font-size: 12px; }
    .hgb-dashboard .hgb-admin-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 8px 0;
        padding: 2px;
        gap: 2px;
    }
    .hgb-dashboard .hgb-admin-tabs a,
    .hgb-dashboard .hgb-toolbar nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px;
        min-height: 44px;
        line-height: 1.2;
        text-align: center;
    }
    .hgb-dashboard .hgb-toolbar { margin: 8px 0; gap: 4px; }
    .hgb-dashboard .hgb-toolbar nav {
        display: grid;
        width: 100%;
        grid-template-columns: 1.15fr .65fr 1.25fr .95fr;
    }
    .hgb-dashboard .hgb-custom summary { min-height: 44px; }
    .hgb-dashboard .hgb-overview { gap: 8px; }
    .hgb-dashboard .hgb-cash { padding: 12px; gap: 4px; }
    .hgb-dashboard .hgb-cash > strong { font-size: clamp(29px, 8vw, 36px); }
    .hgb-dashboard .hgb-ca { padding: 8px 12px; }
    .hgb-dashboard .hgb-flow { padding-inline: 10px; }
    .hgb-dashboard .hgb-flow-row { min-height: 44px; padding: 4px 0; gap: 8px; }
    .hgb-dashboard .hgb-panel, .hgb-dashboard .hgb-gains { margin-top: 10px; }
}

/* Use the same typography, navigation and surfaces as the order workspace. */
.hgb.hgb-dashboard,.hgb.hgb-inventory {
 --ink:#272127;--muted:#695e65;--rule:#e1dade;--teal:#98163c;
 box-sizing:border-box;max-width:1200px;padding:clamp(12px,2vw,24px);background:#faf8f9;border:1px solid var(--rule);border-radius:14px;color:var(--ink)
}
.hgb.hgb-dashboard .hgb-header,.hgb.hgb-inventory .hgb-header {background:transparent;border:0;padding:4px 0 12px;border-radius:0;box-shadow:none;color:var(--ink)}
.hgb.hgb-dashboard .hgb-header h2,.hgb.hgb-inventory .hgb-header h2 {margin:0;font-size:clamp(24px,3vw,34px);line-height:1.18;letter-spacing:-.035em;color:var(--ink)}
.hgb.hgb-dashboard .hgb-date {background:white;border:1px solid var(--rule);padding:6px 10px;border-radius:7px;color:var(--muted)}
.hgb.hgb-dashboard .hgb-admin-tabs {margin:0 0 10px;padding:0;gap:4px;border:0;border-bottom:1px solid var(--rule);border-radius:0;background:transparent}
.hgb.hgb-dashboard .hgb-admin-tabs a {border-radius:0;border-bottom:3px solid transparent;color:#60535c;display:inline-flex;align-items:center;min-height:44px;background:none}
.hgb.hgb-dashboard .hgb-admin-tabs a[aria-current] {color:#911038;border-color:#a20f3c;background:none}
.hgb.hgb-dashboard .hgb-toolbar {border:0;box-shadow:none;background:none;padding:0;margin:12px 0}
.hgb.hgb-dashboard .hgb-toolbar nav {background:#eee9ed;border-radius:8px}
.hgb.hgb-dashboard .hgb-toolbar a[aria-current] {background:white;color:#821336;box-shadow:0 1px 4px #31202a21}
.hgb.hgb-dashboard .hgb-hero {
    --hgb-cash-surface: radial-gradient(ellipse at 88% 14%, #d5294a 0%, #a11136 40%, #690f29 85%);
    background: #690f29 var(--hgb-cash-surface);
    border-radius: 12px;
}
.hgb.hgb-dashboard .hgb-hero::before { display: none; }
.hgb.hgb-dashboard .hgb-cash>strong {font-size:clamp(32px,3.7vw,48px);color:white}
.hgb.hgb-dashboard .hgb-hero :is(.hgb-hero-title,.hgb-see,.hgb-ca small) {color:#f3e9ee}
.hgb.hgb-dashboard :is(.hgb-flow,.hgb-panel,.hgb-gain-grid) {border-color:var(--rule);border-radius:12px}
.hgb.hgb-dashboard .hgb-panel>header,.hgb.hgb-dashboard .hgb-gains>h3 {color:var(--ink)}
.hgb.hgb-dashboard .hgb-receipt-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:8px;padding:0 16px 16px}
.hgb.hgb-dashboard .hgb-receipt-list>div {background:#f7f4f6;border-radius:8px;padding:10px 12px}
.hgb.hgb-dashboard .hgb-table-head,.hgb.hgb-dashboard .hgb-shop[open]>summary {background:#f8f3f5}
.hgb.hgb-dashboard .hgb-shop-name>i {background:#f3e7ec;color:#822043}
.hgb.hgb-dashboard .hgb-gain {padding:14px;min-width:0;border-color:var(--rule)}
.hgb.hgb-dashboard .hgb-gain strong {font-size:clamp(19px,2vw,26px)}
.hgb.hgb-inventory .hgb-stock-back {display:inline-flex;align-items:center;color:#861037;min-height:40px;font-weight:650}
.hgb.hgb-inventory .hgb-header {padding-bottom:4px}
.hgb.hgb-inventory .stock-intro {color:var(--muted);margin:0 0 14px}
.hgb.hgb-inventory .hgb-stock-form {display:grid;gap:5px;padding:13px 16px;background:white;border:1px solid var(--rule);border-radius:10px;margin:0 0 14px}
.hgb-inventory .hgb-stock-form>div {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hgb.hgb-inventory .hgb-stock-form input {width:auto;flex:1 1 150px;min-width:0;min-height:42px;margin:0;border:1px solid #bfb4bc;border-radius:7px}
.hgb.hgb-inventory .hgb-stock-form button {margin:0;min-height:42px;border:0;border-radius:7px;background:#961236;color:white;padding:6px 15px}
.hgb-inventory .stock-list {width:100%;border:1px solid var(--rule);border-collapse:separate;border-spacing:0;border-radius:10px;overflow:hidden;background:white}
.hgb.hgb-inventory .stock-list thead {background:#f1edf0}
.hgb-inventory .stock-list :is(td,th){padding:9px 12px}
.hgb-inventory .stock-product {display:flex;align-items:center;gap:12px;text-align:left;line-height:1.35;color:#342831}
.hgb-inventory .stock-product:hover span {text-decoration:underline}
.hgb-inventory .stock-product img {width:44px;height:44px;flex:none;object-fit:contain;border-radius:7px;background:white;border:1px solid #ece7ea}
.hgb-inventory .stock-product small {display:block;color:var(--muted);font-weight:450}
.hgb-inventory .stock-place {display:none}
.hgb-inventory .stock-qty {display:inline-flex;justify-content:center;align-items:center;padding:4px 8px;border-radius:6px;font-size:13px;font-weight:650;line-height:1.3}
.hgb-inventory .stock-qty.is-pending {background:#f3efea;color:#705836}
.hgb-inventory .stock-qty.is-zero {background:#f8e7eb;color:#921a3e}
.hgb-inventory .stock-qty.is-counted {background:#e4f2ec;color:#245c46}
.hgb.hgb-inventory .stock-pages {display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.hgb-inventory .stock-pages span {margin-right:auto;color:var(--muted)}
.hgb-inventory .stock-pages a {padding:9px 13px;background:white;border:1px solid var(--rule);border-radius:7px;color:#81163a;font-weight:600}
@container(max-width:620px) {
 .hgb.hgb-dashboard .hgb-admin-tabs a {line-height:1.25;text-align:center}
 .hgb.hgb-inventory .stock-list {display:block;border:0;background:none;overflow:visible}
 .hgb-inventory .stock-list thead {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 .hgb-inventory .stock-list tbody {display:grid;gap:9px}
 .hgb.hgb-inventory .stock-list tbody tr {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:white;border:1px solid var(--rule);border-radius:9px}
 .hgb.hgb-inventory .stock-list tbody th {grid-column:1/-1;width:auto;padding:10px 12px;border-bottom:1px solid var(--rule)}
 .hgb.hgb-inventory .stock-list td {min-width:0;border:0;padding:8px 2px;text-align:center}
 .hgb-inventory .stock-place {display:block;color:var(--muted);font-size:11px;margin:0 0 3px}
 .hgb-inventory .stock-qty {font-size:12px}
}

/* Set both sides of the contrast pair inside the storefront and the admin. */
:is(#hgc-workspace,#wpbody) .hgb.hgb-dashboard .hgb-hero {
    background: #690f29 var(--hgb-cash-surface);
    color: #fff;
}
:is(#hgc-workspace,#wpbody) .hgb.hgb-dashboard .hgb-hero :is(a,strong,b,bdi,span,.hgb-ca) {
    color: #fff;
}
:is(#hgc-workspace,#wpbody) .hgb.hgb-dashboard .hgb-hero .hgb-ca small {
    color: #fff;
}
.hgb.hgb-dashboard .hgb-receipt-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3px 12px;
}
.hgb.hgb-dashboard .hgb-receipt-list dd { margin: 0; }
@media (max-width: 600px) {
    #hgc-workspace .workspace-account .hgb.hgb-dashboard .hgb-header {
        align-items: center;
        gap: 6px 12px;
        padding: 10px 12px;
    }
    #hgc-workspace .workspace-account .hgb.hgb-dashboard .hgb-header h2 {
        width: auto;
        margin: 0;
        font-size: 23px;
    }
    #hgc-workspace .workspace-account .hgb.hgb-dashboard .hgb-header .hgb-date {
        background: transparent;
        border: 0;
        padding: 2px 0;
    }
}

.hgb-admin .hgb-expense-card {
    display: grid;
    align-content: center;
    gap: 8px;
    min-width: 0;
    padding: clamp(16px, 2vw, 24px);
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: white;
}
.hgb-admin .hgb-expense-card h3 { display:flex; align-items:center; gap:8px; font-size:16px; }
.hgb-admin .hgb-expense-card h3 .dashicons { color:#995900; }
.hgb-admin .hgb-expense-total { font-size:clamp(26px,3vw,40px); }
.hgb-admin .hgb-expense-card > span, .hgb-expense-list small { color:var(--muted); }
.hgb-admin .hgb-expense-card a { display:inline-flex; align-items:center; gap:6px; width:fit-content; color:#891137; font-weight:650; min-height:40px; }
.hgb-admin .hgb-overview > .hgb-flow { grid-column:1/-1; }
.hgb-admin .hgb-attention > p { padding:0 16px 12px; }
.hgb-admin .hgb-attention nav { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:8px; padding:0 16px 16px; }
.hgb-admin .hgb-attention nav a { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px 12px; border:1px solid var(--rule); border-radius:8px; }
.hgb-admin .hgb-attention nav a b { margin-inline-start:auto; color:#891137; }
.hgb-admin .hgb-expense-list { margin:0; padding:0 16px; list-style:none; }
.hgb-admin .hgb-expense-list li { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:12px 0; margin:0; }
.hgb-admin .hgb-expense-list li + li { border-top:1px solid var(--rule); }
.hgb-admin .hgb-expense-list li > div { display:grid; gap:3px; }
.hgb-admin .hgb-expense-pages { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:12px 16px; }
@container (min-width:700px) {
    .hgb-admin .hgb-overview > .hgb-flow { grid-template-columns:repeat(auto-fit,minmax(175px,1fr)); }
    .hgb-admin .hgb-overview > .hgb-flow .hgb-flow-row + .hgb-flow-row { border-top:0; }
}
