/* HT Business official visual direction: graphite, champagne gold and clean light surfaces. */
:root{--bg:#f3f5f9;--surface:#fff;--ink:#1c2635;--muted:#697686;--line:#e2e7ed;--coal:#151d2a;--gold:#c9a05f;--gold-soft:#fcf4e5;--gold-ink:#84602b;--shadow:0 12px 42px rgba(18,29,45,.055)}
body{background:radial-gradient(ellipse at 87% -7%,rgba(201,160,95,.11),transparent 38%),#f3f5f9;color:#1c2635}
::selection{background:#f1d9a7;color:#152031}
.side{background:linear-gradient(165deg,#242832 0%,#141a25 50%,#0b111a 100%)!important;border-inline-end:1px solid #4e4332;position:relative}
.side:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#906b39,#f1d39c,#936b36)}
.brandmark{width:54px;height:54px;display:block;flex:0 0 54px;background:none!important;border:none!important;border-radius:13px!important;box-shadow:none!important}
.brandmark img{width:100%;height:100%;display:block;object-fit:contain}
.brand strong{color:#fff;font-size:1.04rem;font-weight:900}.brand small{color:#b8bec7}
.side nav a{color:#bec6d0!important;border-color:transparent!important}
.side nav a:hover{color:#fff!important;background:rgba(255,255,255,.07)!important}
.side nav a.current{background:linear-gradient(100deg,rgba(223,174,98,.19),rgba(255,255,255,.045))!important;color:#f7d7a0!important;border:1px solid rgba(225,178,111,.33)!important;border-inline-start:3px solid #e7bc78!important}
.sidefoot{background:rgba(255,255,255,.045)!important;border-color:rgba(231,184,111,.24)!important}
.top{background:rgba(255,255,255,.95)!important;border-bottom:1px solid #e6e9ee!important;box-shadow:0 4px 18px rgba(18,31,49,.04)}
.topbrand{color:#202836!important}.topbrand:before{background:#bd9455!important}
.body-content{max-width:1470px}.crumb{color:#928269}
.panel,.quote-card{border-color:#e2e8ed!important;box-shadow:0 12px 34px rgba(27,38,55,.04)!important}
.button,.hero-action{background:linear-gradient(115deg,#27313f,#131b29)!important;color:#fff!important;border-color:#283241!important}
.button:hover:not(:disabled){background:#34322e!important;border-color:#c69b59!important}
.button.outline{background:#fff!important;color:#725329!important;border-color:#e1c99c!important}
.lang:hover{background:#fff8ea!important;border-color:#d6b77c!important}
input:focus,select:focus,textarea:focus{border-color:#c8a064!important;box-shadow:0 0 0 4px rgba(203,165,103,.16)!important}
.advanced[open],.help[open]{border-color:#ddc69d!important}
.panel>h2:first-child:before{background:#c49b56!important}
.demo-flag{background:#fdf0d6!important;color:#805928!important;border-color:#eccf94!important}
.gateway-logo{background:none!important;border:none!important;box-shadow:none!important;object-fit:contain;display:block}
.gateway-brand>span strong{color:#fff}
body:has(.setup-screen),body:has(.login-screen){background:radial-gradient(ellipse at 85% 10%,rgba(202,161,96,.1),transparent 42%),#f5f6f9!important}
.setup-banner{background:#fff8ed!important;color:#7b5935!important;border-color:#d7b888!important}
.login-card button{background:#151c28!important}
.main-auth-lines,.gateway-circuit .circuit-center{background:linear-gradient(140deg,rgba(218,180,116,.18),rgba(255,255,255,.03))!important;border-color:rgba(241,209,151,.35)!important}
.main-auth-card .auth-card-mark{background:none!important;object-fit:contain}
.hero-eyebrow,.gateway-overline{color:#edce9b!important}
.role-tile:hover{border-color:#d2ae75!important}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #c59d5e;outline-offset:3px}
@media(max-width:760px){.top{background:#18212d!important}.topbrand{color:#fff!important}.topactions .lang{color:#fff!important;background:rgba(255,255,255,.08)!important;border-color:rgba(232,199,143,.3)!important}}
.hb-command-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;position:relative;overflow:hidden;isolation:isolate;margin-bottom:15px;padding:clamp(25px,3vw,41px);border-radius:23px;min-height:236px;border:1px solid rgba(232,188,117,.32);background:radial-gradient(circle at 93% 5%,rgba(223,175,101,.24),transparent 42%),linear-gradient(115deg,#101824,#252a34 65%,#333136);box-shadow:0 24px 58px rgba(28,31,40,.17)}
.hb-command-hero:before{content:"";inset:0;position:absolute;z-index:-1;background-image:linear-gradient(rgba(229,184,112,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(229,184,112,.09) 1px,transparent 1px);background-size:32px 32px}
.hb-command-copy{position:relative;z-index:1;max-width:680px}
.hb-overline{display:flex;gap:8px;align-items:center;color:#eccb93;font-size:.74rem;font-weight:760}.hb-overline-dot{display:inline-block;width:4px;height:4px;border-radius:50%;background:#f0d396}
.hb-command-hero h1{color:#fff;font-size:clamp(1.8rem,3.25vw,2.55rem);margin:12px 0 7px;font-weight:900}
.hb-command-hero p{color:#c5cbd7;font-size:.92rem;max-width:570px}
.hb-command-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}
.hb-command-btn{display:inline-flex;gap:21px;align-items:center;justify-content:space-between;border:1px solid rgba(255,255,255,.22);border-radius:11px;background:rgba(255,255,255,.07);color:#fff;padding:10px 16px;font-size:.81rem;font-weight:790;transition:transform .18s}
.hb-command-btn.primary{background:linear-gradient(120deg,#f0daa9,#bc9255);color:#20232a;border-color:#e1c18a}
.hb-command-btn:hover,.hb-quick-grid a:hover{transform:translateY(-2px)}
.hb-command-art{width:190px;height:180px;flex:0 0 190px;display:grid;place-items:center;position:relative}
.hb-command-logo{width:130px;height:130px;position:relative;z-index:2;box-shadow:0 18px 53px #0005;border-radius:27px}
.hb-command-logo img{width:100%;height:100%}
.hb-orbit{position:absolute;width:210px;height:210px;border:1px solid rgba(239,198,125,.3);border-radius:50%;transform:rotate(25deg) scaleY(.65)}
.hb-orbit-b{width:250px;height:250px;transform:rotate(-38deg) scaleY(.52)}
.hb-art-dot{position:absolute;width:8px;height:8px;border-radius:50%;background:#e8c88f;box-shadow:0 0 0 7px #ce9b5522}.hb-dot-a{top:16px;right:14px}.hb-dot-b{bottom:17px;left:13px}
.hb-demo-notice{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:9px 15px;margin:0 0 15px;background:#fff6e8;border:1px solid #ebd1a6;border-radius:12px;color:#655132;font-size:.77rem}
.hb-demo-marker{width:7px;height:7px;border-radius:50%;background:#c99d59;box-shadow:0 0 0 4px #c99d5922}
.hb-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:14px}
.hb-kpi{min-width:0;min-height:157px;display:flex;flex-direction:column;gap:4px;border:1px solid #e6e9ee;border-radius:17px;padding:20px;background:linear-gradient(140deg,#fff,#fafbfc);box-shadow:0 10px 28px #1c25320b;transition:transform .18s,border-color .18s}
.hb-kpi:hover{transform:translateY(-3px);border-color:#d9bf91}
.hb-kpi-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.74rem;color:#747f8e;font-weight:780}
.hb-kpi-symbol{flex:0 0 31px;width:31px;height:31px;display:grid;place-items:center;background:#faf0df;border:1px solid #f0e0c7;color:#a47738;border-radius:10px}
.hb-kpi strong{font-size:clamp(1.32rem,2vw,1.95rem);font-weight:900;color:#202936;display:block;text-align:start;direction:ltr;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.hb-kpi small{font-size:.68rem;color:#8a95a3;margin-top:auto}
.hb-kpi-0{background:linear-gradient(145deg,#2a303a,#131b29);border-color:#4b4640}
.hb-kpi-0 .hb-kpi-head,.hb-kpi-0 small{color:#c6c9cb}.hb-kpi-0 strong{color:#f5d59e}
.hb-analysis{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,.85fr);gap:14px;margin-bottom:14px}
.hb-data-panel{background:#fff;border:1px solid #e7eaf0;border-radius:18px;padding:23px;min-width:0;box-shadow:0 13px 32px #18263809}
.hb-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}
.hb-section-head h2{font-size:1.02rem;font-weight:890;color:#202b39;margin:4px 0 0}
.hb-overline-sub{color:#b58b4f;font-size:.68rem;font-weight:880}
.hb-data-pill{border:1px solid #e7dcc8;background:#fbf4e9;border-radius:99px;padding:4px 12px;color:#957346;font-size:.69rem}
.hb-chart-legend{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:12px;font-size:.72rem;color:#657385}
.hb-chart-legend span{display:flex;align-items:center;gap:6px}
.hb-key{display:inline-block;width:9px;height:9px;border-radius:3px}
.hb-key-sales,.hb-vertical-sales{background:linear-gradient(180deg,#f2d697,#bc8b45)}
.hb-key-purchase,.hb-vertical-purchase{background:linear-gradient(180deg,#677989,#273848)}
.hb-key-stock,.hb-vertical-stock{background:linear-gradient(180deg,#c8a16c,#806136)}
.hb-bar-chart{height:225px;margin:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;align-items:end;background:repeating-linear-gradient(to top,#eaeef2 0 1px,transparent 1px 48px);background-size:100% calc(100% - 25px);background-repeat:no-repeat}
.hb-period{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:7px;min-width:0}
.hb-bar-set{height:185px;width:100%;display:flex;align-items:end;justify-content:center;gap:4px;padding:0 4px}
.hb-vertical{min-width:6px;max-width:32px;flex:1 1 8px;border-radius:6px 6px 2px 2px;min-height:0}
.hb-period small{color:#8b96a4;font-size:.64rem;white-space:nowrap}
.hb-chart-bottom{margin-top:8px;color:#929baa;font-size:.68rem}
.hb-chart-note{padding:13px;background:#fff8ef;border-radius:11px}
.hb-tasks{display:grid;gap:8px}
.hb-task{display:flex;align-items:center;gap:10px;min-height:48px;background:#fbfcfd;border:1px solid #e9edf2;border-radius:11px;padding:10px}
.hb-task:hover{border-color:#d7b986;background:#fffaf4}
.hb-task-icon{flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;background:#f7ecd8;border-radius:9px;color:#997039}
.hb-task-label{flex:1;font-size:.78rem;font-weight:740;color:#3e4959}.hb-task strong{color:#a3773e}
.hb-no-tasks{padding:20px;background:#f7fafb;border:1px dashed #e5e8ee;text-align:center;border-radius:12px}
.hb-task-tip{color:#929ca7;font-size:.68rem;margin-top:15px}
.hb-navigation-panel{margin-bottom:12px}
.hb-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.hb-quick-grid a{display:flex;flex-direction:column;gap:5px;padding:13px;min-width:0;min-height:91px;border:1px solid #e7ebef;border-radius:13px;background:linear-gradient(145deg,#fff,#f8fafc);transition:transform .18s}
.hb-quick-grid a:hover{border-color:#dcb983}.hb-quick-arrow{text-align:end;color:#af8449}
.hb-quick-grid strong{font-size:.8rem;color:#334052}.hb-quick-grid small{color:#9199a5;font-size:.7rem}
.hb-boundary-notice{color:#796d5b;background:#fff9ef;padding:9px 13px;border-inline-start:3px solid #cda66b;border-radius:4px;font-size:.73rem;margin-bottom:24px}
@media(max-width:1120px){.hb-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.hb-analysis{grid-template-columns:1fr}.hb-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.hb-command-hero{min-height:192px;padding:21px;border-radius:18px}.hb-command-art{display:none}.hb-command-hero h1{font-size:1.7rem}.hb-command-hero p{font-size:.8rem}.hb-command-btn{flex:1 1 auto;justify-content:center;padding:9px 12px}.hb-metrics{gap:9px}.hb-kpi{min-height:142px;padding:14px}.hb-kpi strong{font-size:1.3rem}.hb-kpi-head{font-size:.68rem}.hb-data-panel{padding:17px}.hb-bar-chart{height:204px}.hb-bar-set{height:162px}.hb-period small{font-size:.59rem}}
@media(max-width:390px){.hb-kpi{padding:11px}.hb-kpi strong{font-size:1.2rem}.hb-kpi-head{font-size:.63rem}.hb-quick-grid a{padding:10px}}
@media(prefers-reduced-motion:reduce){.hb-kpi,.hb-command-btn,.hb-quick-grid a{transition:none!important}}

.hb-detail-widgets{display:grid;grid-template-columns:minmax(270px,1fr) minmax(0,1.1fr);gap:14px;margin-bottom:15px}
.hb-status-list{display:grid;gap:16px;margin:8px 0 16px}
.hb-status-head{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#5e6979;font-size:.78rem;margin-bottom:6px}
.hb-status-head strong{color:#a37c45;font-weight:900;font-variant-numeric:tabular-nums}
.hb-status-track{height:8px;border-radius:100px;background:#f2f2f3;overflow:hidden}
.hb-status-track span{display:block;height:100%;border-radius:100px;background:linear-gradient(90deg,#d9b579,#b38345);min-width:0}
.hb-widget-foot{color:#87929f;font-size:.69rem;margin:13px 0 0}
.hb-recent-list{display:grid;gap:6px}
.hb-recent-row{display:flex;align-items:center;gap:11px;min-width:0;border:1px solid #e9edf1;border-radius:11px;padding:10px 11px;background:#fbfcfe}
.hb-recent-row:hover{border-color:#d7b682;background:#fffaf3}
.hb-recent-code{font-size:.7rem;font-weight:800;color:#967047;flex:0 1 110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start}
.hb-recent-meta{flex:1;min-width:0;display:grid;gap:3px}
.hb-recent-meta strong{font-size:.78rem;color:#324052}.hb-recent-meta small{font-size:.64rem;color:#939da8}
.hb-recent-status{font-size:.66rem;color:#81643e;border:1px solid #e9d8bc;border-radius:30px;background:#fff7e9;padding:4px 7px;white-space:nowrap}
@media(max-width:1000px){.hb-detail-widgets{grid-template-columns:1fr}}
@media(max-width:400px){.hb-recent-row{gap:6px;padding:9px 7px}.hb-recent-code{flex-basis:72px;font-size:.63rem}.hb-recent-status{font-size:.6rem;padding:3px 5px}}

/* Every action inside a work page uses one coherent, high-contrast control. */
.body-content .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;
 min-height:44px;padding:10px 19px;border:1px solid #273242;border-radius:11px;
 font-weight:820;font-size:.84rem;line-height:1.5;box-shadow:0 5px 14px rgba(12,25,40,.10);
 transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.body-content .button:not(.outline):hover:not(:disabled){
 background:linear-gradient(115deg,#38414d,#232b36)!important;
 border-color:#bd9356!important;box-shadow:0 9px 21px rgba(10,21,37,.15);
 transform:translateY(-1px)}
.body-content .button.outline{border:1px solid #d4b584!important;background:#fffaf2!important;
 color:#735326!important;box-shadow:none!important}
.body-content .button.outline:hover:not(:disabled){background:#f9eedc!important;border-color:#b88b4e!important}
.body-content .button:disabled{opacity:.44!important;cursor:not-allowed!important;box-shadow:none!important}
.body-content .formactions,.body-content .detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.body-content .formactions .link,.body-content .detail-actions .link{display:inline-flex;min-height:40px;align-items:center;
 padding:8px 11px;border-radius:9px;color:#77572d}
.body-content .formactions .link:hover,.body-content .detail-actions .link:hover{background:#fff6e9}
.body-content .text-link{min-height:35px;border-radius:7px;padding:5px 9px;color:#846135;font-weight:740}
.body-content .text-link:hover{background:#fff4e1;color:#55401f}
@media(max-width:580px){.body-content .formactions>.button{min-width:130px;flex:1 1 auto}
 .body-content .formactions,.body-content .detail-actions{gap:8px}}
@media(prefers-reduced-motion:reduce){.body-content .button{transition:none!important;transform:none!important}}


/* Compact mobile showroom header, 2 aligned rows; no overlapping touch targets. */
.hb-logout-short{display:none}
@media(max-width:760px){
  .top:has(.demo-roles){
    position:sticky;top:0;z-index:20;display:grid!important;
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-rows:30px 36px;
    align-items:center;align-content:center;
    min-height:82px;height:auto!important;
    padding:7px 13px!important;column-gap:9px;row-gap:6px;
    background:linear-gradient(105deg,#151c28,#202633)!important;
    box-shadow:0 6px 22px rgba(11,19,31,.17)!important;
  }
  .top:has(.demo-roles) .topbrand{
    order:initial!important;grid-row:1;grid-column:1 / span 2;
    min-width:0;flex:none!important;font-size:.9rem!important;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    margin:0;
  }
  .top:has(.demo-roles) .topactions{display:contents!important}
  .top:has(.demo-roles) .topactions>a.lang[lang]{
    order:initial!important;grid-row:1;grid-column:3;justify-self:end;
    min-height:29px;height:29px;padding:3px 10px!important;
    font-size:.71rem!important;border:1px solid rgba(231,195,134,.23)!important;
    background:rgba(255,255,255,.055)!important;border-radius:9px!important;
  }
  .top:has(.demo-roles) .demo-flag{
    order:initial!important;grid-row:2;grid-column:1;justify-self:start;
    margin:0;padding:6px 8px!important;white-space:nowrap;
    font-size:.62rem!important;line-height:1.2;
    border-radius:9px;
  }
  .top:has(.demo-roles) .demo-roles{
    order:initial!important;grid-row:2;grid-column:2;
    min-width:0;width:100%;margin:0;justify-content:center;
  }
  .top:has(.demo-roles) .demo-roles select{
    min-width:0!important;max-width:100%!important;width:100%;
    height:35px;min-height:35px;font-size:.73rem;
    padding:5px 9px;border:1px solid rgba(216,195,163,.35);
    background:#f7f7fa;color:#243044;border-radius:9px;
    text-align:center;
  }
  .top:has(.demo-roles) .topactions>a.lang:last-child{
    order:initial!important;grid-row:2;grid-column:3;
    justify-self:end;max-width:none!important;min-width:56px;
    min-height:35px;padding:6px 9px!important;
    font-size:.71rem!important;white-space:nowrap;
    background:rgba(255,255,255,.07)!important;
    border-color:rgba(239,201,141,.25)!important;
    border-radius:9px!important;
  }
  .top:has(.demo-roles) .hb-logout-full{display:none}
  .top:has(.demo-roles) .hb-logout-short{display:inline}
  .top:has(.demo-roles) .demo-roles button{display:none}
  .body-content{padding-top:17px!important}
  .hb-navigation-panel{padding:18px!important}
  .hb-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .hb-quick-grid .hb-quick-card{
    min-height:112px;height:auto!important;padding:13px!important;
    border-radius:14px!important;gap:6px!important;
    justify-content:space-between!important;
  }
}
@media(max-width:370px){
  .top:has(.demo-roles){column-gap:6px;padding-inline:9px!important}
  .top:has(.demo-roles) .demo-flag{font-size:.57rem!important;padding:6px!important}
  .top:has(.demo-roles) .topactions>a.lang:last-child{min-width:49px;padding:6px!important}
  .hb-quick-grid{gap:8px}
  .hb-quick-grid .hb-quick-card{padding:11px!important}
}
/* Icons from the same internal navigation set, not system-dependent emoji. */
.hb-quick-grid .hb-quick-card{
  display:flex;flex-direction:column;justify-content:space-between;
  min-height:120px;padding:14px 16px;
  border:1px solid #e3e7ec;border-radius:14px;
  background:linear-gradient(145deg,#fff,#fafbfc);
  text-decoration:none;box-shadow:0 5px 19px rgba(20,33,50,.035);
}
.hb-quick-top{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px}
.hb-quick-icon{
  display:grid;place-items:center;width:37px;height:37px;
  flex:0 0 37px;border-radius:11px;
  color:#a97b40;background:linear-gradient(145deg,#fff8e8,#f0e3cb);
  border:1px solid #ead8b8;
}
.hb-quick-icon svg{width:23px;height:23px;display:block}
.hb-quick-chevron{
  display:grid;place-items:center;width:23px;height:23px;
  border-radius:50%;color:#a17b44;background:#f8f2e7;
}
.hb-quick-chevron svg{width:16px;height:16px}
html[dir=ltr] .hb-quick-chevron svg{transform:rotate(180deg)}
.hb-quick-grid .hb-quick-card strong{
  font-size:.84rem;font-weight:830;color:#273545;line-height:1.55;margin:2px 0 0;
}
.hb-quick-grid .hb-quick-card small{font-size:.69rem;color:#8792a1}
.hb-quick-grid .hb-quick-card:hover,.hb-quick-grid .hb-quick-card:focus-visible{
  border-color:#cba773;background:#fffaf1;box-shadow:0 7px 18px rgba(130,96,51,.09);
}

/* Keep the compact layout after shared quick-card declarations. */
@media(max-width:760px){
 .hb-navigation-panel{padding:17px!important}
 .hb-quick-grid .hb-quick-card{min-height:108px!important;height:auto!important;padding:12px!important;gap:5px!important}
 .hb-quick-grid .hb-quick-card strong{font-size:.8rem}
 .hb-quick-icon{width:33px;height:33px;flex-basis:33px;border-radius:9px}
 .hb-quick-icon svg{width:20px;height:20px}
 .hb-quick-chevron{width:22px;height:22px}
}


/* Mobile workbench v3: menu lives in the header, not a full-width blank panel. */
.topbrand{display:inline-flex;align-items:center;gap:9px}
.hb-header-brand-icon{display:block;width:29px;height:29px;object-fit:contain;flex:0 0 29px}
.hb-hero-action-icon{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:rgba(208,169,99,.2);color:inherit;flex:0 0 22px}
.hb-hero-action-icon svg{display:block;width:16px;height:16px}
html[dir=ltr] .hb-hero-action-icon svg{transform:rotate(180deg)}
@media(min-width:761px){.top>.mobile-nav{display:none!important}}
@media(max-width:760px){
  .top:has(.demo-roles){
    grid-template-columns:auto minmax(0,1fr) auto!important;
    grid-template-rows:32px 36px!important;
    min-height:86px!important;height:86px!important;
    padding:7px 11px!important;
    column-gap:7px!important;row-gap:4px!important;
    align-content:center;
  }
  .top:has(.demo-roles) .topbrand{
    grid-row:1!important;grid-column:1 / 3!important;
    justify-self:start!important;align-self:center;
    width:max-content;max-width:calc(100% - 76px);
    display:inline-flex!important;align-items:center;gap:8px;
    font-size:.83rem!important;letter-spacing:0!important;
    text-align:start;
  }
  .topbrand::before,.topbrand::after{display:none!important;content:none!important}
  .hb-header-brand-icon{width:25px;height:25px;flex-basis:25px}
  .top:has(.demo-roles) .topactions>a.lang[lang]{
    grid-row:1!important;grid-column:2!important;
    justify-self:end!important;align-self:center;
    margin-inline-end:3px;min-height:30px!important;height:30px!important;
    font-size:.68rem!important;border-radius:8px!important;
  }
  .top:has(.demo-roles)>.mobile-nav{
    grid-row:1!important;grid-column:3!important;
    justify-self:end!important;align-self:center;
  }
  .top:has(.demo-roles) .demo-flag{
    grid-row:2!important;grid-column:1!important;
    justify-self:start;align-self:center;min-height:32px;
    display:inline-flex;align-items:center;padding:5px 7px!important;
    font-size:.58rem!important;
  }
  .top:has(.demo-roles) .demo-roles{
    grid-row:2!important;grid-column:2!important;
    justify-self:stretch!important;align-self:center;width:100%;
    min-width:0;
  }
  .top:has(.demo-roles) .demo-roles select{
    width:100%;min-width:0!important;max-width:none!important;
    height:35px;min-height:35px;border-radius:9px;
  }
  .top:has(.demo-roles) .topactions>a.lang:last-child{
    grid-row:2!important;grid-column:3!important;align-self:center;
    min-width:53px!important;max-width:none!important;
    min-height:35px!important;padding:5px 7px!important;
  }
  .top:not(:has(.demo-roles)){
    display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto;
    height:60px!important;gap:6px;padding:6px 10px!important;
  }
  .top:not(:has(.demo-roles)) .topactions{display:contents!important}
  .top:not(:has(.demo-roles)) .topbrand{grid-column:1;min-width:0;font-size:.82rem;max-width:100%}
  .top:not(:has(.demo-roles)) .topactions>a.lang[lang]{grid-column:2}
  .top:not(:has(.demo-roles)) .topactions>a.lang:last-child{grid-column:3}
  .top:not(:has(.demo-roles))>.mobile-nav{grid-column:4}
  .top>.mobile-nav{
    display:block!important;position:static!important;
    width:auto!important;min-width:0!important;margin:0!important;padding:0!important;
    border:0!important;background:transparent!important;box-shadow:none!important;
    z-index:30;
  }
  .top>.mobile-nav summary{
    cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px;
    min-width:53px;height:33px;min-height:33px;margin:0;padding:4px 7px!important;
    list-style:none;font-size:.72rem;font-weight:800;color:#f1ddb8!important;
    background:rgba(244,216,161,.085)!important;border:1px solid rgba(233,191,115,.32)!important;
    border-radius:9px;white-space:nowrap;
  }
  .top>.mobile-nav summary::-webkit-details-marker{display:none}
  .top>.mobile-nav summary::marker{content:""}
  .hb-menu-trigger-symbol{display:inline-flex}
  .hb-menu-trigger-symbol svg{width:17px;height:17px;display:block}
  .top>.mobile-nav[open] summary{background:rgba(237,198,129,.2)!important;color:#fff!important}
  .top>.mobile-nav>.hb-mobile-menu-panel{
    position:absolute;z-index:55;top:calc(100% + 7px);inset-inline:10px;
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;
    border:1px solid #e0d0b6;border-radius:15px;padding:12px;
    background:rgba(255,255,255,.99);box-shadow:0 20px 52px rgba(16,25,41,.23);
    backdrop-filter:blur(8px);
  }
  .hb-mobile-menu-panel a{
    display:flex!important;align-items:center;gap:8px;
    min-height:46px;padding:9px 11px!important;border:1px solid #e7eaef;
    border-radius:10px;color:#273444!important;font-weight:750;font-size:.74rem;
    background:#fbfcfe;white-space:normal;min-width:0;line-height:1.4;
  }
  .hb-mobile-menu-panel a.current{
    background:#fff7e8!important;color:#79562d!important;border-color:#dbbf90!important;
  }
  .hb-menu-item-icon{display:inline-flex;align-items:center;color:#a67c42;flex:0 0 21px}
  .hb-menu-item-icon svg{width:21px;height:21px;display:block}
  .body-content:has(.hb-command-hero)>.crumb{display:none}
  .body-content:has(.hb-command-hero){padding-top:14px!important}
  .hb-command-hero{min-height:0!important;padding:21px 17px 18px!important;margin:0 0 12px!important;border-radius:18px}
  .hb-command-hero h1{font-size:clamp(1.46rem,5.6vw,1.72rem)!important;line-height:1.38;margin:9px 0 6px!important}
  .hb-command-hero p{font-size:.79rem!important;line-height:1.85;margin:0}
  .hb-overline{font-size:.68rem}
  .hb-command-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px!important}
  .hb-command-actions>.hb-command-btn{
    min-width:0;min-height:43px;gap:5px;padding:7px 10px!important;
    justify-content:space-between!important;border-radius:11px;
    font-size:.71rem!important;font-weight:830;white-space:normal;line-height:1.5;
  }
  .hb-command-btn .hb-hero-action-icon{width:19px;height:19px;flex-basis:19px}
  .hb-command-btn .hb-hero-action-icon svg{width:14px;height:14px}
  .hb-demo-notice{padding:9px 12px!important;font-size:.73rem!important;line-height:1.75}
  .hb-kpi{min-height:119px!important;padding:13px 12px!important}
  .hb-kpi-head{gap:5px!important;align-items:flex-start!important}
  .hb-kpi-head>span:first-child{line-height:1.55}
  .hb-kpi-symbol{width:29px;height:29px;flex-basis:29px}
  .hb-kpi strong{font-size:clamp(1rem,3.95vw,1.22rem)!important;letter-spacing:-.035em;white-space:nowrap;overflow:visible;text-overflow:clip}
  .hb-kpi small{line-height:1.5;font-size:.63rem}
}
@media(max-width:350px){
 .top:has(.demo-roles){column-gap:5px!important;padding-inline:7px!important}
 .top:has(.demo-roles) .topbrand{font-size:.77rem!important}
 .hb-header-brand-icon{width:22px;height:22px;flex-basis:22px}
 .top:has(.demo-roles) .topactions>a.lang[lang]{padding-inline:5px!important;font-size:.63rem!important}
 .top>.mobile-nav summary{min-width:45px;padding-inline:4px!important}
 .hb-menu-trigger-title{font-size:.67rem}
 .hb-command-actions>.hb-command-btn{padding:7px!important;font-size:.67rem!important}
 .hb-kpi{padding:10px!important}
 .hb-kpi strong{font-size:.93rem!important}
 .hb-mobile-menu-panel a{font-size:.69rem;padding:8px!important}
}


/* Unified native vector icons: no OS-dependent blue emoji in task rows,
 * KPI tiles, or demo role selection. */
.hb-task-icon{
  width:31px;height:31px;flex:0 0 31px;
  background:#fcf4e6;border:1px solid #ebdabe;
  border-radius:10px;color:#967144;
}
.hb-task-icon svg{width:18px;height:18px;display:block}
html[dir=ltr] .hb-task-icon svg{transform:rotate(180deg)}
.hb-kpi-symbol{
  width:32px;height:32px;flex-basis:32px;
  display:grid;place-items:center;
}
.hb-kpi-symbol svg{width:19px;height:19px;display:block;stroke:currentColor}
.hb-kpi-0 .hb-kpi-symbol{color:#e8c58d;background:rgba(220,169,86,.12);border-color:rgba(232,196,140,.32)}
.role-chevron{
  width:24px;height:24px;display:grid;place-items:center;
  color:#bd9153!important;
}
.role-chevron svg{width:17px;height:17px;display:block}
html[dir=ltr] .role-chevron svg{transform:rotate(180deg)}
@media(max-width:760px){
 .hb-task-icon{width:30px;height:30px;flex-basis:30px}
 .hb-task-icon svg{width:18px;height:18px}
 .hb-kpi-symbol svg{width:18px;height:18px}
}

/* The finance link is contextual for owners to keep the main menu compact. */
.hb-finance-entry-link{display:flex;align-items:center;gap:12px;min-height:65px;
 padding:11px 15px;margin:0 0 14px;border:1px solid #d7bc8c;border-radius:13px;
 background:linear-gradient(110deg,#fff9ee,#fdfbf8);color:#364050;
 box-shadow:0 4px 13px rgba(135,99,52,.05)}
.hb-finance-entry-icon{display:grid;place-items:center;width:36px;height:36px;
 flex:0 0 36px;border-radius:10px;border:1px solid #ead6b5;background:#f9efd9;color:#ac8044}
.hb-finance-entry-icon svg{width:21px;height:21px}
.hb-finance-entry-link>span:nth-child(2){display:grid;gap:3px;min-width:0;flex:1}
.hb-finance-entry-link strong{font-size:.83rem}
.hb-finance-entry-link small{font-size:.68rem;color:#788493;line-height:1.55}
.hb-finance-entry-chevron{color:#ad824a}
.hb-finance-entry-chevron svg{width:17px;height:17px;display:block}
html[dir=ltr] .hb-finance-entry-chevron svg{transform:rotate(180deg)}
.hb-finance-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px}
.hb-finance-kpi{cursor:default!important;min-width:0;min-height:125px}
.hb-finance-kpi strong{font-size:clamp(1.08rem,2vw,1.6rem);overflow-wrap:anywhere}
.hb-finance-form,.hb-finance-history{margin-bottom:15px}
.hb-finance-entry-list{display:grid;gap:10px;margin:14px 0}
.hb-finance-entry{border:1px solid #e4e9ee;border-radius:12px;padding:14px;background:#fbfcfe}
.hb-finance-entry-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hb-finance-entry p{font-size:.83rem;margin:9px 0}
.hb-finance-entry small{display:block;color:#7f8898;font-size:.7rem;margin:5px 0;overflow-wrap:anywhere}
.hb-finance-review{border-top:1px solid #e5eaf0;margin-top:12px;padding-top:10px}
@media(max-width:850px){.hb-finance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){
 .hb-finance-metrics{gap:8px}
 .hb-finance-kpi{padding:11px!important;min-height:110px!important}
 .hb-finance-kpi strong{font-size:.91rem!important;white-space:normal}
 .hb-finance-entry-link{padding:10px;gap:9px}
}


/* Cheque custody complements the receipt/payment page without new navigation. */
.hb-cheque-overview{margin:25px 0 12px}
.hb-cheque-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:14px 0}
.hb-cheque-stat{min-height:89px;background:linear-gradient(150deg,#fff,#fbf7f1);
 border:1px solid #e9ddca;border-radius:14px;padding:15px;
 display:flex;flex-direction:column;justify-content:space-between;gap:9px}
.hb-cheque-stat small{color:#6b7280;font-weight:650;font-size:.73rem}
.hb-cheque-stat strong{font-size:1.6rem;color:#9a7140}
.hb-cheque-registration{margin-bottom:16px}
.hb-cheque-registration .advanced>summary{font-weight:800}
.hb-cheque-form{margin-top:15px}
.hb-cheque-history{margin-bottom:18px}
.hb-cheque-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:13px}
.hb-cheque-row{min-width:0;border:1px solid #e5eaf0;border-radius:14px;
 background:linear-gradient(155deg,#fff,#fbfcfe);padding:17px;display:flex;flex-direction:column;gap:11px}
.hb-cheque-row-head{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;font-size:.8rem}
.hb-cheque-amount{display:flex;gap:8px;align-items:baseline;font-size:1.25rem;color:#192d49}
.hb-cheque-amount small{font-weight:500;font-size:.7rem;color:#7d8795}
.hb-cheque-info{display:grid;grid-template-columns:1fr 1fr;gap:9px;
 font-size:.74rem;color:#525e6e;line-height:1.7}
.hb-cheque-info span,.hb-cheque-info b{overflow-wrap:anywhere;min-width:0}
.hb-cheque-note{font-size:.72rem;color:#876a43}
.hb-cheque-overdue{background:#fff0dd;color:#b56b16}
.hb-cheque-footnote{color:#7a8594;font-size:.75rem;margin-top:14px}
@media(max-width:830px){
 .hb-cheque-list{grid-template-columns:1fr}
 .hb-cheque-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
 .hb-cheque-stat{min-height:75px;padding:12px}
 .hb-cheque-stat strong{font-size:1.28rem}
 .hb-cheque-row{padding:12px}
 .hb-cheque-info{grid-template-columns:1fr}
 .hb-cheque-amount{font-size:1.09rem}
}

/* Compact party dossiers and clearly named finance participants. */
.hb-party-file{margin:16px 0;min-width:0}
.hb-party-group{margin:10px 0;border:1px solid #e7e5df;border-radius:14px;
  background:linear-gradient(135deg,#fff,#f9fafb);padding:12px 14px}
.hb-party-group>summary{cursor:pointer;font-weight:750;color:#1d304e;
  display:flex;align-items:center;justify-content:space-between;gap:12px}
.hb-party-group>p{padding:10px 0;color:#748098;font-size:.78rem}
.hb-party-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.hb-party-record{min-width:0;display:grid;gap:6px;padding:12px;border:1px solid #e3e8ee;
  background:#fff;border-radius:10px;overflow-wrap:anywhere;font-size:.8rem}
.hb-party-record strong{font-weight:800;color:#213653}
.hb-party-record span{font-size:.75rem;color:#805f38}
.hb-party-record small{font-size:.72rem;color:#69778b}
.hb-party-note{color:#777;font-size:.75rem;margin-top:12px}
.hb-finance-party{display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  margin:8px 0;font-size:.79rem}
.hb-finance-party>span{color:#747d8c}
.hb-finance-party>a,.hb-finance-short-doc{color:#295a93;font-weight:750;
  text-decoration:underline;text-underline-offset:3px}
.hb-finance-people{display:flex;gap:10px;flex-wrap:wrap;margin:9px 0;font-size:.73rem;color:#697384}
.hb-finance-people b{font-weight:750;color:#1b314f}
.hb-supplier-file-links{margin-top:14px;display:flex;gap:9px;flex-wrap:wrap}
.hb-supplier-file-links a{border:1px solid #e0cda8;border-radius:9px;padding:8px 11px;
  font-size:.75rem;color:#2a3951;background:#fdfaf2}
@media(max-width:660px){
 .hb-party-list{grid-template-columns:1fr}
 .hb-finance-party,.hb-finance-people{gap:6px}
}

/* Explicit independent creator and approver alongside source documents. */
.hb-document-people{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0!important}
.hb-document-people>div{display:flex;align-items:center;gap:9px;flex:1;
 min-width:190px;border:1px solid #e9e6de;border-radius:10px;padding:10px 12px}
.hb-document-people strong{color:#7a6749;font-size:.79rem}
.hb-document-people span{font-size:.82rem;color:#203755}

/* Keep system and banking identifiers available, but out of the main visual hierarchy. */
.hb-finance-reference{margin-top:10px;font-size:.75rem;color:#7d6b51}
.hb-finance-reference summary{cursor:pointer;font-weight:700}
.hb-finance-reference code{display:block;white-space:normal;overflow-wrap:anywhere;
  font-size:.73rem;color:#667386;padding:6px 0}


/* Stage 7: readable per-document receivables and payables without fake due dates. */
.hb-position-wrap{margin:26px 0}
.hb-position-section{margin:15px 0}
.hb-position-heading{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.hb-position-heading h3{font-weight:850;font-size:1.13rem;margin:0}
.hb-position-list{display:grid;grid-template-columns:1fr;gap:12px;margin:15px 0}
.hb-position-item{border:1px solid #e2e7eb;border-radius:15px;
 padding:15px;background:linear-gradient(140deg,#fff,#fafbfe)}
.hb-position-item-head{display:flex;align-items:center;justify-content:space-between;
 gap:12px;flex-wrap:wrap}
.hb-position-item-identity{display:flex;flex-direction:column;gap:5px;min-width:0}
.hb-position-doc{font-weight:830;color:#263a58;text-decoration:underline;text-underline-offset:3px}
.hb-position-party{font-size:.85rem;color:#8c6d3e;overflow-wrap:anywhere}
.hb-position-date{color:#798596;font-size:.73rem;margin:10px 0}
.hb-position-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:14px}
.hb-position-metric{min-width:0;border:1px solid #e8e9eb;border-radius:10px;
 background:#fff;padding:9px 11px;display:flex;flex-direction:column;gap:8px}
.hb-position-metric small{font-size:.67rem;color:#687587;line-height:1.5}
.hb-position-metric strong{font-size:.95rem;font-weight:840;color:#253954}
.hb-position-emphasis{background:#f8f4e9;border-color:#e6d4b2}
.hb-position-emphasis strong{color:#8b6235}
.hb-position-issue{border-color:#d78585;background:#fff9f7}
.hb-position-alert{background:#fff0ec;color:#a74c43}
.hb-position-page-totals{padding:11px 0;border-top:1px solid #e7e9ed;
 display:flex;justify-content:space-between;flex-wrap:wrap;gap:9px;font-size:.79rem;color:#4b5a6b}
.hb-position-pages{display:flex;align-items:center;justify-content:center;gap:17px;flex-wrap:wrap;margin-top:13px}
.hb-position-pages a{border:1px solid #cbb28b;border-radius:10px;padding:8px 11px;
 color:#233855;background:#fff;font-weight:720}
.hb-position-pages span{font-size:.77rem;color:#6b7584}
.hb-position-help{color:#788392;font-size:.73rem;margin:12px 0}
@media(max-width:640px){
 .hb-position-item{padding:12px}
 .hb-position-amounts{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .hb-position-metric{padding:8px}
 .hb-position-metric strong{font-size:.9rem}
}
@media(max-width:355px){.hb-position-amounts{grid-template-columns:1fr 1fr}}


/* Internal sales invoice is an immutable document, not a tax authority invoice. */
.hb-invoice-printarea{display:grid;gap:13px}
.hb-invoice-heading{border-top:3px solid #b99b67}
.hb-invoice-heading small{color:#68778a}
.hb-invoice-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.hb-invoice-detail-grid>div{border:1px solid #e9e9ef;border-radius:12px;background:#f9fafc;padding:12px;
 display:flex;flex-direction:column;gap:8px;min-width:0}
.hb-invoice-detail-grid strong,.hb-invoice-detail-grid a{font-weight:780;overflow-wrap:anywhere;color:#213752}
.hb-invoice-lines{margin-top:0}
.hb-invoice-create{margin-top:14px;padding:16px;border:1px solid #d9c5a0;border-radius:14px;background:#fffaf1}
.hb-invoice-create h3{font-size:1.02rem}
.hb-invoice-link{margin-top:16px}
.hb-invoice-secondary-actions{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;margin:16px 0}
@media(max-width:620px){
 .hb-invoice-detail-grid{grid-template-columns:1fr}
 .hb-invoice-secondary-actions .button{flex:1;white-space:normal}
}
@media print{
 .top,.side,.crumb,.hb-invoice-actions,.hb-invoice-secondary-actions,.help,.page-head>a{display:none!important}
 .body-content,.main,.app{margin:0!important;padding:0!important;max-width:none!important}
 .hb-invoice-printarea{break-inside:avoid}
 .hb-invoice-printarea .panel{box-shadow:none!important;border:1px solid #c6c6c6!important}
}


/* Finance: explicit identities for persons/companies, no fabricated legacy names. */
.hb-party-evidence-fields{border:1px solid #d6c29c;border-radius:16px;
 padding:15px;margin:18px 0;background:linear-gradient(135deg,#fffdf8,#f8f8fa)}
.hb-party-evidence-fields legend{font-size:1rem;font-weight:850;color:#273953;padding:0 8px}
.hb-party-evidence-warning{font-size:.78rem;color:#735a35;margin:3px 0 14px}
.hb-party-evidence-fields .two-cards{margin:12px 0}
.hb-party-evidence-fields small{color:#697789;line-height:1.7}
.hb-party-evidence-fields .hb-party-third-fields{display:none}
.hb-party-evidence-fields:has(select[name="party_relationship"] option[value="third_party"]:checked)
 .hb-party-third-fields{display:grid}
.hb-party-identity-read{display:flex;align-items:center;flex-wrap:wrap;gap:8px;
 margin:10px 0;font-size:.84rem;color:#33465d}
.hb-party-identity-read strong{font-weight:840}
.hb-party-identity-read small{font-size:.73rem;color:#6c7a8a}
.hb-party-identity-read .hb-third-party-flag{background:#f9efda;
 border:1px solid #e1c9a1;border-radius:8px;padding:4px 7px;color:#705435}
.hb-party-identity-read .hb-identity-unverified{color:#9b6b44}
@media(max-width:640px){.hb-party-evidence-fields{padding:12px}
 .hb-party-evidence-fields .two-cards{grid-template-columns:1fr}}

/* Explain document-to-customer/supplier links above the native mobile picker. */
.hb-transaction-document-hint{display:block;color:#596980;line-height:1.75;
 font-size:.83rem;margin:1px 0 8px}


/* Standalone money movements: clear, separate from order-linked balances. */
.hb-direct-finance,.hb-direct-history{margin-top:22px}
.hb-direct-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:12px;margin:18px 0}
.hb-direct-stat{padding:14px;border:1px solid #e7e9f0;border-radius:14px;
 background:linear-gradient(145deg,#fff,#f8f7fa);display:flex;
 flex-direction:column;gap:8px;min-width:0}
.hb-direct-stat strong{font-size:clamp(1.12rem,2vw,1.58rem);font-weight:850;
 color:#23324a;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.hb-direct-stat small{color:#6a7587;font-size:.8rem}
.hb-direct-info{font-size:.82rem;color:#6d5d44;line-height:1.75}
.hb-direct-create{border:1px solid #ded3bd;border-radius:14px;padding:14px;
 margin-top:20px;background:#fffdf9}
.hb-direct-create summary{font-weight:820;color:#263650;cursor:pointer}
.hb-direct-form{padding-top:14px}
.hb-direct-other-name{display:none;padding:12px;background:#faf9f5;
 border:1px solid #e9decb;border-radius:12px;margin:12px 0}
.hb-direct-form:has(#directParty option[value="other"]:checked)
 .hb-direct-other-name{display:block}
@media(max-width:720px){
 .hb-direct-summary{grid-template-columns:1fr 1fr}
 .hb-direct-stat:last-child{grid-column:1/-1}
 .hb-direct-create{padding:12px}
}


/* Standalone order-free cheques, grouped with existing finance workspace. */
.hb-direct-cheques,.hb-direct-cheques-list{margin-top:22px}
.hb-direct-cheque-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 gap:12px;margin:18px 0}
.hb-direct-cheque-stat{display:flex;flex-direction:column;gap:7px;
 padding:14px 12px;background:linear-gradient(135deg,#fff,#f7f8fc);
 border:1px solid #e3e7ef;border-radius:13px;min-width:0}
.hb-direct-cheque-stat small{color:#66768c;font-size:.79rem}
.hb-direct-cheque-stat strong{font-variant-numeric:tabular-nums;
 color:#273950;font-size:1.43rem;font-weight:860}
.hb-direct-cheque-new{margin-top:16px;border:1px solid #ddcaaa;border-radius:13px;
 background:#fffdfa;padding:14px}
.hb-direct-cheque-new summary{font-weight:820;color:#233651;cursor:pointer}
.hb-direct-cheque-form{padding-top:17px}
.hb-direct-cheque-other{display:none;margin:12px 0;padding:12px;
 background:#faf9f6;border:1px solid #e7ddc9;border-radius:12px}
.hb-direct-cheque-form:has(#dcParty option[value="other"]:checked)
 .hb-direct-cheque-other{display:block}
@media(max-width:720px){
 .hb-direct-cheque-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hb-direct-cheque-new{padding:11px}
}

/* Daily-work first: one disclosure per intent; existing permissions and forms remain. */
.hb-finance-shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:0 0 15px}
.hb-finance-shortcuts a{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:12px;min-height:60px;border:1px solid #e0e5eb;border-radius:12px;background:#fff;color:#273443;text-decoration:none;overflow-wrap:anywhere}
.hb-finance-shortcuts a:hover,.hb-finance-shortcuts a:focus-visible{border-color:#ad8749;outline-offset:3px}
.hb-finance-shortcuts a strong{font-size:.84rem;line-height:1.55}
.hb-finance-shortcuts a small{font-size:.72rem;color:#785b26}
.hb-work-group{border:1px solid #dfe5eb;background:#fff;border-radius:14px;margin:0 0 13px;overflow:clip;scroll-margin-top:85px}
.hb-work-group>summary{display:flex;align-items:center;gap:12px;padding:14px 17px;cursor:pointer;list-style:none;min-height:62px;color:#24313e}
.hb-work-group>summary::-webkit-details-marker{display:none}
.hb-work-group>summary:after{content:"";border-inline-end:2px solid currentColor;border-bottom:2px solid currentColor;width:8px;height:8px;transform:rotate(45deg);margin-inline-start:auto;flex:none}
.hb-work-group[open]>summary:after{transform:rotate(225deg)}
.hb-work-group>summary>span:first-child{display:grid;gap:4px;min-width:0;flex:1}
.hb-work-group>summary strong{font-size:.94rem}
.hb-work-group>summary small{font-size:.74rem;color:#627181;line-height:1.6}
.hb-work-group>summary:focus-visible{outline:2px solid #9b7944;outline-offset:-3px}
.hb-work-pending{flex:none;font-size:.71rem;background:#fff6e3;border:1px solid #e8d8ae;color:#755617;border-radius:8px;padding:4px 8px;max-width:38%;overflow-wrap:anywhere}
.hb-work-group-content{border-top:1px solid #e6ebf0;padding:12px;min-width:0}
.hb-work-group-content [id]{scroll-margin-top:85px}
.hb-analysis-single{grid-template-columns:minmax(0,1fr)}
.hb-task-card{margin-bottom:14px}
@media(max-width:850px){.hb-finance-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:450px){.hb-finance-shortcuts{gap:7px}.hb-finance-shortcuts a{padding:10px;min-height:50px}.hb-work-group>summary{padding:11px 12px;gap:8px}.hb-work-group-content{padding:7px}.hb-work-group>summary small{font-size:.7rem}.hb-work-pending{font-size:.65rem}}

.hb-finance-extra-totals>summary{min-height:44px;padding-block:9px}.hb-work-subgroup{margin:12px 0}.hb-work-subgroup>summary{min-height:50px}

.hb-inventory-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:600px){.hb-inventory-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}

.hb-document-filter{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:10px;align-items:end;margin:0 0 10px}.hb-document-filter label{display:block}.hb-document-filter input,.hb-document-filter select{width:100%;min-width:0}.hb-document-count{color:#627181;font-size:.8rem;margin:5px 0 12px}.hb-document-pagination{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:15px 0}@media(max-width:600px){.hb-document-filter{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.hb-document-filter>div:first-child{grid-column:1/-1}}

.hb-stock-availability{display:grid;gap:4px;text-align:end}.hb-stock-availability small{font-size:.76rem;color:#596a77;line-height:1.55}.hb-stock-availability strong{white-space:nowrap}

.hb-shortage-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:12px}.hb-shortage-results .hb-finance-entry{margin:0}.hb-shortage-results .stock-warning{margin:.5rem 0}

/* Ht Business 5: recognizable company + signed-in identity, and calm admin forms. */
.hb-workspace-identity{display:flex;flex-direction:column;min-width:0;gap:2px;max-width:290px;line-height:1.45}
.hb-workspace-identity strong{font-size:.87rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.hb-workspace-identity small{font-size:.71rem;color:var(--text-muted,#68727b);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.hb-my-account{white-space:nowrap}
.hb-admin-sections{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}
.hb-admin-sections a{display:inline-flex;padding:9px 14px;border:1px solid var(--border,#d9e1e4);border-radius:11px;text-decoration:none;background:var(--panel,#fff);color:inherit}
.hb-admin-panel{margin-bottom:14px;max-width:100%;scroll-margin-top:24px}
.hb-admin-panel form{display:grid;gap:10px;max-width:750px}
.hb-admin-panel form input,.hb-admin-panel form select,.hb-admin-panel form textarea{max-width:100%;min-width:0}
.hb-admin-panel form button{justify-self:start}
.hb-admin-users{display:grid;gap:10px}
.hb-admin-user{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:13px;border:1px solid var(--border,#d9e1e4);border-radius:12px}
.hb-admin-user>div{display:grid;min-width:0;gap:4px}
.hb-admin-user>div strong{overflow-wrap:anywhere}
.hb-admin-user>details{min-width:190px}
.hb-admin-user small{color:var(--text-muted,#68727b)}
.hb-admin-creation{border-top:1px solid var(--border,#d9e1e4);padding-top:15px;margin-top:18px}
.hb-admin-creation>summary{cursor:pointer;font-weight:700;padding:10px 0}
@media(max-width:700px){.hb-workspace-identity{max-width:150px}.hb-workspace-identity strong{font-size:.73rem}.hb-workspace-identity small{font-size:.65rem}.hb-admin-user{display:block}.hb-admin-user>details{margin-top:10px;min-width:0}.hb-admin-sections a{font-size:.8rem;padding:8px 10px}.hb-my-account{font-size:.73rem}}
/* Classified revenue/expense trend is intentionally labeled as incomplete P&L. */
.hb-profit-panel{margin:16px 0}
.hb-profit-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:.81rem;margin-bottom:12px}
.hb-profit-dot{width:12px;height:12px;border-radius:4px;display:inline-block;margin-inline-end:5px}
.hb-profit-income{background:#157a69}
.hb-profit-cost{background:#ca805a}
.hb-profit-months{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));min-height:210px;gap:12px;align-items:end}
.hb-profit-month{display:flex;flex-direction:column;align-items:center;min-width:0;gap:5px}
.hb-profit-columns{display:flex;gap:5px;align-items:end;justify-content:center;height:145px;width:100%;border-bottom:1px solid #d5e0dc}
.hb-profit-bar{display:block;width:28%;border-radius:5px 5px 0 0;min-height:1px}
.hb-profit-month small{font-size:.72rem;color:var(--text-muted,#68727b)}
.hb-profit-month strong{font-size:.8rem;white-space:nowrap}
@media(max-width:600px){.hb-profit-months{gap:4px}.hb-profit-month strong{font-size:.62rem}.hb-profit-bar{width:35%;}.hb-profit-month small{font-size:.64rem}}

/* A compact financial summary is shown only to authorized dashboard roles. */
.hb-finance-snapshot{margin:14px 0}
.hb-finance-snapshot .hb-profit-months{min-height:150px;gap:7px}
.hb-finance-snapshot .hb-profit-columns{height:100px}
.hb-finance-snapshot-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.hb-finance-snapshot-totals>div{display:grid;align-content:center;gap:4px;padding:12px;border:1px solid #e1e9e9;border-radius:12px;min-width:0;background:#f9fbfa}
.hb-finance-snapshot-totals strong{font-size:clamp(.9rem,1.8vw,1.26rem);overflow-wrap:anywhere;direction:ltr;text-align:start}
.hb-finance-snapshot-totals small{font-size:.72rem;color:#596c70}
.hb-finance-snapshot-link{font-size:.78rem;white-space:nowrap;color:var(--primary,#197c6e);text-decoration:underline;text-underline-offset:3px}
.hb-finance-snapshot-note{font-size:.75rem;color:#697982;line-height:1.75;margin:10px 0 0}
@media(max-width:600px){.hb-finance-snapshot-totals{gap:6px}.hb-finance-snapshot-totals>div{padding:9px 7px}.hb-finance-snapshot .hb-profit-months{gap:3px}.hb-finance-snapshot .hb-profit-columns{height:86px}.hb-finance-snapshot-link{white-space:normal}}

/* Ht Business 6 / 1405-09-11: desktop demo hero, no extra sign-in steps. */
.demo-auth-body{
 background:
   radial-gradient(ellipse at 12% 32%,rgba(47,102,159,.22),transparent 42%),
   radial-gradient(ellipse at 84% 4%,rgba(208,164,97,.11),transparent 37%),
   linear-gradient(140deg,#08111d 0%,#101d2e 46%,#14253b 100%);
}
.demo-gateway{width:100%;max-width:1512px}
.demo-gateway .gateway-heading{position:relative;z-index:1}
.demo-gateway .gateway-content{grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);gap:clamp(28px,4vw,70px);padding:26px 0 34px}
.demo-gateway .gateway-intro{min-width:0;min-height:570px;padding:12px 0;isolation:isolate}
.demo-gateway .gateway-intro:before{
 opacity:.12;background-size:36px 36px;
 mask-image:radial-gradient(ellipse at center,#000,transparent 74%)
}
.demo-gateway .gateway-overline{
 display:inline-flex;align-self:flex-start;align-items:center;gap:10px;
 padding:7px 13px;border:1px solid rgba(224,185,120,.32);border-radius:100px;
 background:rgba(203,158,88,.08);font-size:.76rem;letter-spacing:0;
}
.demo-gateway .gateway-overline:before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:#dfbd82;box-shadow:0 0 0 4px rgba(223,189,130,.13)}
.demo-gateway .gateway-intro h1{
 max-width:650px;font-size:clamp(2.4rem,3.8vw,3.65rem);
 line-height:1.55;letter-spacing:-.03em;margin:19px 0 12px;
 text-wrap:balance;
}
.demo-gateway .gateway-intro h1 span{
 display:block;color:#ecd5aa;
 background:linear-gradient(100deg,#f9e6bf,#c99e61 65%,#f0d7a2);
 -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.demo-gateway .gateway-intro>p{max-width:540px;font-size:.95rem;line-height:2;color:#c4cbd7}
.demo-gateway .gateway-proof{gap:7px;margin:19px 0 0;align-items:center}
.demo-gateway .gateway-proof>span{
 min-height:32px;padding:6px 11px;background:rgba(255,255,255,.045);
 border:1px solid rgba(215,224,237,.11);border-radius:999px;
 font-size:.72rem;color:#d4ddeb;white-space:nowrap;
}
.demo-gateway .gateway-proof i{background:#d8b27b;box-shadow:0 0 0 3px rgba(216,178,123,.12)}
.gateway-showcase{
 width:min(100%,555px);min-height:255px;position:relative;margin:25px 0 5px;
 padding:14px 15px 20px;align-self:flex-start;isolation:isolate;
}
.gateway-showcase:before{
 content:"";position:absolute;inset:30px 12px -1px;border-radius:45%;
 background:linear-gradient(120deg,rgba(68,122,191,.18),rgba(223,167,89,.15));
 filter:blur(40px);z-index:-1;
}
.gateway-showcase-window{
 overflow:hidden;border-radius:20px;border:1px solid rgba(247,220,172,.31);
 box-shadow:0 25px 62px rgba(0,3,14,.36),0 0 0 7px rgba(255,255,255,.025);
 transform:perspective(1100px) rotateY(-5deg) rotateX(3deg);
 transition:transform .35s ease,box-shadow .35s ease;
 background:#fff;
}
.demo-gateway .gateway-showcase:hover .gateway-showcase-window{transform:perspective(1100px) rotateY(0deg) rotateX(0deg);box-shadow:0 30px 70px rgba(0,3,14,.39)}
.gateway-showcase-toolbar{
 height:43px;background:linear-gradient(105deg,#283444,#162332);display:flex;align-items:center;gap:11px;
 padding:0 15px;direction:ltr;color:#c8d2df;font-size:.62rem;font-weight:650;
}
.gateway-showcase-window-dots{display:flex;gap:5px}
.gateway-showcase-window-dots i{width:7px;height:7px;border-radius:50%;background:#c9a76e;opacity:.82}
.gateway-showcase-window-dots i:nth-child(2){background:#8294a7}
.gateway-showcase-window-dots i:nth-child(3){background:#597887}
.gateway-showcase-toolbar-brand{margin-left:auto;color:#f2d5a4;font-weight:900;font-family:Arial,sans-serif;font-size:.69rem}
.gateway-showcase-body{display:flex;min-height:183px;background:linear-gradient(155deg,#f9fbfe,#ebf1f7);color:#29394a;direction:rtl}
.gateway-showcase-sidebar{
 flex:0 0 54px;background:#1f2c3a;display:flex;flex-direction:column;align-items:center;
 gap:13px;padding:15px 9px;border-left:1px solid #354050;
}
.gateway-showcase-sidebar img{width:28px;height:28px;border-radius:7px}
.gateway-showcase-sidebar span{width:20px;height:5px;border-radius:10px;background:rgba(223,232,241,.19)}
.gateway-showcase-sidebar .gateway-showcase-nav-active{width:26px;background:#e6c68f}
.gateway-showcase-main{flex:1;min-width:0;padding:16px 16px 14px;display:grid;align-content:space-between;gap:11px}
.gateway-showcase-title{display:grid;gap:3px}
.gateway-showcase-title strong{font-size:.86rem;font-weight:900;color:#273443}
.gateway-showcase-title>span{font-size:.64rem;color:#788493}
.gateway-showcase-modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.gateway-showcase-modules>span{
 display:flex;flex-direction:column;justify-content:space-between;gap:11px;min-width:0;
 padding:11px 9px 10px;min-height:65px;border:1px solid #e0e6eb;
 border-radius:11px;background:#fff;box-shadow:0 5px 13px rgba(41,58,87,.045);
}
.gateway-showcase-modules b{font-size:.7rem;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gateway-showcase-module-line{width:50%;height:4px;display:block;border-radius:4px;background:linear-gradient(90deg,#d9bc89,#f2e4c7)}
.gateway-showcase-modules>span:nth-child(2) .gateway-showcase-module-line{width:72%;background:linear-gradient(90deg,#7992ab,#cbd9e5)}
.gateway-showcase-modules>span:nth-child(3) .gateway-showcase-module-line{width:58%}
.gateway-showcase-workflow{display:flex;align-items:center;justify-content:space-between;gap:10px}
.gateway-showcase-workflow-label{font-size:.63rem;color:#697c91;white-space:nowrap}
.gateway-showcase-flow{display:flex;align-items:center;gap:7px;direction:ltr}
.gateway-showcase-flow i{display:block;width:8px;height:8px;border-radius:50%;background:#bf9861;box-shadow:0 0 0 3px #f4e9d8}
.gateway-showcase-flow i+ i:before{content:"";display:block;width:8px;height:1px;background:#ddc8a9;transform:translateX(-11px) translateY(3px)}
.gateway-showcase-flow i:nth-child(2){background:#c7ac82}
.gateway-showcase-flow i:nth-child(3){background:#8c9faf}
.gateway-showcase-flow i:nth-child(4){background:#657c91}
.gateway-showcase-tag{
 position:absolute;bottom:2px;inset-inline-end:-1px;
 padding:9px 14px;border:1px solid rgba(229,190,124,.62);border-radius:10px;
 background:#d9b67f;color:#242c34;font-size:.73rem;font-weight:900;
 box-shadow:0 12px 27px rgba(0,0,0,.2)
}
.demo-gateway .gateway-roles{
 border-radius:24px;padding:clamp(22px,2.7vw,35px);
 box-shadow:0 32px 95px rgba(0,5,20,.36);
 background:#fff;
}
.demo-gateway .role-list-heading{margin-bottom:17px}
.demo-gateway .role-grid{gap:10px}
.demo-gateway .role-tile{min-height:94px;padding:13px}
.demo-gateway .role-entry:last-child .role-tile{min-height:76px}
.demo-gateway .role-tile:hover,.demo-gateway .role-tile:focus-visible{
 border-color:#cda365;box-shadow:0 10px 24px rgba(45,51,61,.10)
}
.demo-gateway .role-entry:first-child .role-icon{
 background:linear-gradient(130deg,#283744,#121c2c);
 color:#f0d3a0;
}
.demo-gateway .roles-count{color:#c7a46d}
@media(min-width:861px) and (max-width:1160px){
 .demo-gateway .gateway-content{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:24px}
 .demo-gateway .gateway-intro h1{font-size:clamp(2rem,3.5vw,2.65rem)}
 .demo-gateway .gateway-proof>span{font-size:.66rem}
 .demo-gateway .gateway-showcase{padding-inline:0;margin-top:18px}
 .demo-gateway .gateway-roles{padding:21px}
 .demo-gateway .role-tile{min-height:87px}
}
@media(max-width:860px){
 .demo-gateway .gateway-content{display:flex;flex-direction:column;align-items:stretch;padding:30px 0 18px;gap:22px}
 .demo-gateway .gateway-intro{min-height:unset;padding:0}
 .demo-gateway .gateway-intro h1{font-size:clamp(1.95rem,5vw,2.7rem);margin-block:14px 10px}
 .demo-gateway .gateway-showcase{display:none}
 .demo-gateway .gateway-proof{margin-top:17px}
}
@media(max-width:550px){
 .demo-gateway .gateway-content{padding-top:23px}
 .demo-gateway .gateway-intro h1{font-size:1.76rem}
 .demo-gateway .gateway-proof{gap:6px}
 .demo-gateway .gateway-proof>span{font-size:.63rem;padding:5px 8px;min-height:29px}
 .demo-gateway .gateway-roles{border-radius:19px;padding:17px}
 .demo-gateway .role-tile{padding:11px;min-height:99px}
 .demo-gateway .role-entry:last-child .role-tile{min-height:76px}
}
@media(prefers-reduced-motion:reduce){
 .gateway-showcase-window{transition:none!important;transform:none!important}
 .demo-gateway .gateway-showcase:hover .gateway-showcase-window{transform:none!important}
}
/* Ht Business 6 / report analytics; visual controls never grant new permissions. */
.hb-report-periods{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:15px 0 18px;font-size:.81rem}
.hb-report-periods>span{font-weight:750;color:#586777;margin-inline-end:7px}
.hb-report-periods a{display:inline-flex;justify-content:center;align-items:center;min-height:42px;padding:8px 18px;border:1px solid #dfe5e9;border-radius:11px;background:#fff;color:#314356;text-decoration:none;font-weight:790;transition:border-color .15s,background .15s}
.hb-report-periods a:hover,.hb-report-periods a:focus-visible{border-color:#b99761;background:#fbf6ed}
.hb-report-periods a.current{color:#fff;background:#222e3d;border-color:#222e3d;box-shadow:0 6px 20px #202f3b26}
.hb-report-chart-scroll{overflow-x:auto;max-width:100%;padding:2px 3px 12px;scrollbar-color:#b7c2cf #eef1f4}
.hb-report-chart-scroll:focus-visible{outline:2px solid #ad8b54;outline-offset:2px;border-radius:9px}
.hb-report-chart-scroll .hb-profit-months{grid-template-columns:repeat(var(--hb-report-months,6),minmax(62px,1fr));min-width:max(100%,calc(var(--hb-report-months,6) * 79px))}
.hb-report-net-months{display:grid;grid-template-columns:repeat(var(--hb-report-months,6),minmax(66px,1fr));gap:12px;min-width:max(100%,calc(var(--hb-report-months,6) * 91px))}
.hb-report-net-month{min-width:0;display:grid;grid-template-rows:auto 104px auto;align-items:end;gap:8px;text-align:center}
.hb-report-net-month strong{font-size:.77rem;white-space:nowrap;direction:ltr}
.hb-report-net-month small{font-size:.73rem;color:#6b7b8e}
.hb-report-net-track{position:relative;height:104px;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #cdd8dd;background:repeating-linear-gradient(to top,#eef1f4 0 1px,transparent 1px 25px)}
.hb-report-net-track>span{display:block;width:min(36px,58%);min-height:1px;border-radius:7px 7px 0 0}
.hb-report-net-track .hb-report-net-up{background:linear-gradient(180deg,#66ae93,#1b7862)}
.hb-report-net-track .hb-report-net-down{background:linear-gradient(180deg,#ddaa8f,#ae563e)}
.hb-report-net-positive{color:#116e59}.hb-report-net-negative{color:#a24530}
.hb-report-breakdown-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.hb-report-breakdown-section{border:1px solid #e3e8ec;background:#fcfdff;border-radius:15px;padding:18px;min-width:0}
.hb-report-breakdown-section h3{margin:0 0 17px;color:#25364a;font-size:.99rem;font-weight:860}
.hb-report-account-list{display:grid;gap:14px}
.hb-report-account-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:.79rem;margin-bottom:7px}
.hb-report-account-caption span{overflow-wrap:anywhere;min-width:0}
.hb-report-account-caption strong{flex:none;color:#273d50;font-weight:850;font-size:.82rem}
.hb-report-account-track{height:8px;border-radius:20px;overflow:hidden;background:#e9edf0;direction:rtl}
.hb-report-account-track span{height:100%;display:block;border-radius:20px}
.hb-report-empty{font-size:.79rem;color:#6d7987}
@media(max-width:750px){
 .hb-report-breakdown-grid{grid-template-columns:1fr;gap:12px}
 .hb-report-breakdown-section{padding:14px}
 .hb-report-chart-scroll .hb-profit-months{min-width:max(100%,calc(var(--hb-report-months,6) * 76px))}
}
@media(max-width:390px){
 .hb-report-periods{gap:5px}.hb-report-periods a{padding:8px 12px;min-height:42px}
 .hb-report-net-months{gap:9px}
}
@media(prefers-reduced-motion:reduce){.hb-report-periods a{transition:none}}

/* HT Business 6: keep every demo header action reachable on small laptop displays. */
@media(min-width:761px) and (max-width:1020px){
 .top:has(.demo-roles){
  height:auto!important;min-height:105px;
  padding:10px clamp(13px,2.4vw,25px)!important;
  display:flex!important;flex-direction:column;align-items:stretch;
  justify-content:center;gap:7px;
 }
 .top:has(.demo-roles) .topbrand{
  min-width:0;max-width:100%;font-size:.88rem;
  display:inline-flex;align-items:center;justify-content:flex-start;
 }
 .top:has(.demo-roles) .hb-workspace-identity{
  min-width:0;max-width:100%;
 }
 .top:has(.demo-roles) .topactions{
  min-width:0;max-width:100%;
  display:flex!important;flex-wrap:wrap;
  align-items:center;justify-content:flex-start;gap:6px;
 }
 .top:has(.demo-roles) .topactions>.lang,
 .top:has(.demo-roles) .topactions>a.lang{
  min-height:34px;font-size:.7rem;padding:5px 9px;max-width:100%;
 }
 .top:has(.demo-roles) .demo-roles{
  min-width:0;display:flex;align-items:center;gap:5px;
 }
 .top:has(.demo-roles) .demo-roles select{min-width:82px;max-width:120px}
 .top:has(.demo-roles) .demo-roles button{min-height:34px}
}

/* Ht Business 6 / report review actions, not a financial completeness certificate. */
.hb-report-readiness{margin:12px 0 16px}
.hb-report-readiness .hb-section-head p{margin:7px 0 0;color:#6b7482;font-size:.81rem;line-height:1.9}
.hb-report-readiness-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:17px 0}
.hb-report-readiness-item{display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-width:0;padding:13px;border:1px solid #e6e9ed;border-radius:12px;background:#fafbfd}
.hb-report-readiness-item span{font-size:.73rem;color:#5d6876;line-height:1.8}
.hb-report-readiness-item strong{font-size:1.32rem;color:#273443;font-variant-numeric:tabular-nums}
.hb-report-readiness-note{font-size:.78rem;color:#687483;margin:7px 0 13px}
.hb-report-review-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 19px;border:1px solid #bba178;border-radius:11px;color:#61461f;background:#fff8ee;font-weight:800;font-size:.8rem;text-decoration:none}
.hb-report-review-link:hover,.hb-report-review-link:focus-visible{background:#f8ecd7;border-color:#96733d}
@media(max-width:980px){.hb-report-readiness-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.hb-report-readiness-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hb-report-readiness-item{padding:10px}}

/* Ht Business 6 / read-only company reset planning, no delete control. */
.hb-reset-preview-panel{margin-bottom:20px}
.hb-reset-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.hb-reset-preview-head h2{margin-bottom:5px}
.hb-reset-preview-head p{margin:0;color:#6b7482;font-size:.81rem}
.hb-reset-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:17px 0}
.hb-reset-overview>div{padding:18px;border:1px solid #dfe6ed;border-radius:13px;background:#f8fafc;display:grid;gap:9px}
.hb-reset-overview span,.hb-reset-category span{color:#607081;font-size:.81rem;line-height:1.75}
.hb-reset-overview strong{font-size:1.45rem;color:#203549;font-variant-numeric:tabular-nums}
.hb-reset-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hb-reset-category{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0;background:#fff;border:1px solid #e1e6eb;padding:15px;border-radius:12px}
.hb-reset-category strong{font-size:1rem;color:#24374a;font-variant-numeric:tabular-nums}
.hb-reset-footnote{font-size:.77rem;color:#687789;margin:16px 0 0}
.hb-reset-safety-steps{padding-inline-start:25px;line-height:2;color:#43556b}
@media(max-width:750px){.hb-reset-categories{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.hb-reset-overview,.hb-reset-categories{grid-template-columns:1fr}}

/* Ht Business 6 / internal sales and purchase handoff actions. */
.hb-closeout-panel{margin:12px 0 16px}.hb-closeout-panel .hb-section-head p{margin:7px 0 0;color:#6b7482;font-size:.81rem;line-height:1.9}
.hb-closeout-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:17px 0}
.hb-closeout-side{min-width:0;border:1px solid #e1e6eb;border-radius:13px;padding:15px;background:#fcfdff}
.hb-closeout-side h3{margin:0 0 12px;font-size:1rem}
.hb-closeout-counters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px}
.hb-closeout-counters>div{border:1px solid #e5e9ef;border-radius:10px;padding:9px 11px;background:#fff;display:flex;justify-content:space-between;align-items:center;gap:7px;min-width:0}
.hb-closeout-counters span{font-size:.77rem;line-height:1.65;color:#647183}.hb-closeout-counters strong{font-size:1.1rem;flex:none;color:#21374e}
.hb-closeout-actions{display:grid;gap:10px}
.hb-closeout-action-group{border-top:1px solid #eceff3;padding-top:12px}
.hb-closeout-action-group>strong{font-size:.8rem}
.hb-closeout-action-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.hb-closeout-action-links a{border:1px solid #d6dee9;padding:8px 12px;border-radius:9px;color:#294a69;text-decoration:none;min-height:40px}
.hb-closeout-action-links a:hover,.hb-closeout-action-links a:focus-visible{background:#edf5fa}
@media(max-width:850px){.hb-closeout-grid{grid-template-columns:1fr}}
@media(max-width:420px){.hb-closeout-counters{grid-template-columns:1fr}}

/* Ht Business 6 / verified read-only internal invoice payment details. */
.hb-document-payment{margin:17px 0;padding:20px}
.hb-document-payment-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.hb-document-payment-header h2{margin-bottom:5px}
.hb-document-payment-header p{margin:0;color:#6b7482;font-size:.81rem;line-height:1.75}
.hb-document-payment-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:17px 0}
.hb-document-payment-numbers>div{border:1px solid #e1e8ef;background:#f8fafc;padding:14px;border-radius:12px;display:grid;gap:5px;min-width:0}
.hb-document-payment-numbers span{font-size:.77rem;line-height:1.8;color:#51667b}
.hb-document-payment-numbers strong{font-size:1.26rem;color:#203a50;font-variant-numeric:tabular-nums}
.hb-document-payment-numbers small{font-size:.7rem;color:#687789}
.hb-document-payment-note{line-height:1.9;color:#62738a;font-size:.78rem;margin-bottom:12px}
@media(max-width:850px){.hb-document-payment-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.hb-document-payment{padding:14px}.hb-document-payment-numbers{gap:7px}.hb-document-payment-numbers>div{padding:10px}.hb-document-payment-numbers strong{font-size:1.05rem}}
@media print{.hb-document-payment{display:none!important}}

/* Ht Business 6 / conservative stock-backed delivered commercial comparison. */
.hb-report-stock-link{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 17px}
.hb-report-stock-link small{font-size:.77rem;line-height:1.75;color:#68778a}
.hb-stock-margin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:17px 0}
.hb-stock-margin-card{display:flex;flex-direction:column;gap:6px;min-width:0;background:#f8fafc;border:1px solid #e3e9f1;border-radius:12px;padding:14px}
.hb-stock-margin-card small{font-size:.78rem;color:#596d81;line-height:1.75}
.hb-stock-margin-card strong{font-size:clamp(1rem,2vw,1.4rem);font-variant-numeric:tabular-nums;color:#183954}
.hb-stock-margin-card span{font-size:.72rem;color:#6b798b}
.hb-stock-margin-bars{display:grid;gap:14px;margin:18px 0}
.hb-stock-margin-bar>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.81rem;margin-bottom:7px}
.hb-stock-margin-bar strong{font-variant-numeric:tabular-nums}
.hb-stock-margin-bar-track{height:13px;border-radius:999px;background:#e8eff5;overflow:hidden}
.hb-stock-margin-bar-track>span{display:block;height:100%;border-radius:999px;background:#4d748b}
.hb-stock-margin-bar:nth-child(2) .hb-stock-margin-bar-track>span{background:#b49265}
@media(max-width:700px){.hb-stock-margin-grid{grid-template-columns:1fr}.hb-stock-margin-card{padding:12px}}
@media print{.hb-stock-margin-bars{break-inside:avoid}}

/* Stock valuation table stays inside the usable screen on mobile. */
.hb-stock-cost-table{max-width:100%;min-width:0}
@media(max-width:760px){.hb-stock-cost-table{overflow:visible}.hb-stock-cost-table td{white-space:normal;overflow-wrap:anywhere}.hb-stock-cost-table tr{max-width:100%}}

/* Ht Business 6 / physical stock evidence monthly bridge, NEVER part of booked P&L. */
.hb-month-delivery-evidence{min-width:0;margin:20px 0}
.hb-month-delivery-evidence .hb-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.hb-delivery-month-scroll{overflow-x:auto;max-width:100%;margin:12px 0}
.hb-delivery-month-chart{display:grid;grid-template-columns:repeat(var(--hb-report-months),minmax(75px,1fr));min-width:max(100%,calc(var(--hb-report-months)*75px));gap:7px;min-height:184px;align-items:end}
.hb-delivery-month{display:grid;align-content:end;justify-items:center;min-width:0;gap:5px;font-size:.74rem}
.hb-delivery-month>strong{font-variant-numeric:tabular-nums;font-size:.75rem}
.hb-delivery-month-chartbars{height:125px;width:100%;display:flex;align-items:end;justify-content:center;gap:5px;background:#f8fafc;border:1px solid #e8edf2;border-radius:10px;padding:8px}
.hb-delivery-month-chartbars>span{display:block;width:35%;border-radius:5px 5px 0 0;min-height:0}
.hb-delivery-month-sale{background:#527f98}
.hb-delivery-month-cost{background:#b49265}
.hb-delivery-month-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:.75rem;color:#596d81;margin:12px 0}
.hb-delivery-month-legend span{display:inline-flex;align-items:center;gap:6px}
.hb-delivery-month-legend i{display:inline-block;width:11px;height:11px;border-radius:3px}
.hb-delivery-month-table{max-width:100%;min-width:0}
@media(max-width:760px){.hb-delivery-month-table{overflow:visible}.hb-delivery-month-table td{overflow-wrap:anywhere;white-space:normal}.hb-delivery-month-chart{min-width:max(100%,calc(var(--hb-report-months)*90px))}}

/* Ht Business 6 / independent order -> stock -> invoice -> accounting reconciliation. */
.hb-sale-accounting-trace{min-width:0;margin:20px 0}
.hb-sale-accounting-trace .hb-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.hb-sale-trace-counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:17px 0}
.hb-sale-trace-counters>div{display:flex;flex-direction:column;justify-content:space-between;gap:8px;min-width:0;padding:12px;border:1px solid #e3eaf0;border-radius:12px;background:#f8fafc}
.hb-sale-trace-counters small{font-size:.77rem;line-height:1.75;color:#617388}
.hb-sale-trace-counters strong{font-variant-numeric:tabular-nums;font-size:1.24rem;color:#1b3e55}
.hb-sale-trace-table{max-width:100%;min-width:0}
.hb-sale-trace-table bdi{font-variant-numeric:tabular-nums}
@media(max-width:760px){.hb-sale-trace-counters{grid-template-columns:repeat(2,minmax(0,1fr))}.hb-sale-trace-table{overflow:visible}.hb-sale-trace-table td{overflow-wrap:anywhere;white-space:normal}}

/* Ht Business 6 | always-visible Tehran Persian date and second-accurate time.
   Independent of the dense mobile demo role header and browser local clock. */
.hb-clock-rail{
  display:flex;align-items:center;justify-content:flex-start;
  min-width:0;min-height:43px;padding:5px clamp(19px,3vw,44px);
  background:linear-gradient(90deg,rgba(244,239,250,.91),rgba(250,248,252,.96));
  border-bottom:1px solid #e6e5ec;
}
.hb-live-clock{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:100%;min-width:0;
  padding:4px 11px 4px 8px;border:1px solid rgba(187,177,208,.42);
  border-radius:10px;background:rgba(255,255,255,.82);
  color:#303e56;font-size:.75rem;line-height:1.55;font-weight:700;
  font-variant-numeric:tabular-nums;
}
.hb-clock-mark{width:18px;height:18px;flex:0 0 18px;display:grid;place-items:center;color:#8c78ba}
.hb-clock-mark svg{display:block;width:17px;height:17px}
.hb-clock-zone{font-size:.7rem;font-weight:620;color:#747489;white-space:nowrap}
#hb-clock-time{display:inline-flex;align-items:center;flex-wrap:wrap;column-gap:11px;row-gap:0;min-width:0}
#hb-clock-date{white-space:nowrap;unicode-bidi:isolate}
#hb-clock-seconds{font-size:.91rem;line-height:1.5;font-weight:850;letter-spacing:.015em;white-space:nowrap;color:#28334d}
.hb-clock-note{color:#965432;font-weight:650;font-size:.68rem}
.hb-clock-note[hidden]{display:none}
@media(max-width:760px){
 .hb-clock-rail{min-height:39px;padding:4px 10px;background:#f4f3f9}
 .hb-live-clock{padding:4px 7px;gap:6px;border-radius:8px;font-size:.70rem}
 .hb-clock-zone{display:none}
 #hb-clock-time{column-gap:8px}
 #hb-clock-seconds{font-size:.80rem}
}
@media(max-width:350px){
 .hb-clock-rail{padding-inline:7px}
 .hb-clock-mark{width:15px;height:15px;flex-basis:15px}
 .hb-clock-mark svg{width:15px;height:15px}
 .hb-live-clock{gap:4px;font-size:.66rem}
 #hb-clock-time{column-gap:5px}
 #hb-clock-seconds{font-size:.74rem}
}
@media print{.hb-clock-rail{display:none!important}}

/* Clear next action from the traced source document; no auto posting. */
.hb-sale-trace-next{display:block;width:max-content;max-width:100%;margin-top:5px;color:#6254a5;font-size:.77rem;font-weight:780;text-decoration:underline;text-underline-offset:3px;white-space:normal}
.hb-sale-trace-next:hover{color:#40318f}

/* Ht Business 6: source-linked invoice recognition readiness, distinct from P&L. */
.hb-invoice-accounting-coverage{min-width:0;margin:20px 0}
.hb-invoice-accounting-coverage .hb-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.hb-invoice-coverage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:17px 0}
.hb-invoice-coverage-grid>div{display:flex;flex-direction:column;justify-content:space-between;gap:8px;min-width:0;padding:12px;border:1px solid #e3eaf0;border-radius:12px;background:#f8fafc}
.hb-invoice-coverage-grid small{font-size:.77rem;line-height:1.75;color:#617388}
.hb-invoice-coverage-grid strong{font-variant-numeric:tabular-nums;font-size:1.24rem;color:#1b3e55}
.hb-invoice-coverage-table{max-width:100%;min-width:0}
.hb-invoice-coverage-table bdi{font-variant-numeric:tabular-nums}
@media(max-width:900px){.hb-invoice-coverage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.hb-invoice-coverage-table{overflow:visible}.hb-invoice-coverage-table td{overflow-wrap:anywhere;white-space:normal}}

/* Financial closeout checklist: no implied P&L certification. */
.hb-profit-readiness{margin:18px 0}
.hb-profit-readiness-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.hb-profit-readiness-item{border:1px solid #e4e9ef;border-radius:12px;padding:13px 15px;display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-width:0;background:#fcfdff}
.hb-profit-readiness-item strong{font-size:.87rem;color:#243b52}
.hb-profit-readiness-item p{font-size:.77rem;line-height:1.85;color:#657588;margin:7px 0 0}
.hb-profit-readiness-action{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.hb-profit-readiness-action span{font-size:.75rem;color:#744f16}
.hb-profit-readiness-action a{font-size:.78rem;min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:4px}
.hb-profit-readiness-item[data-state="unavailable"]{border-inline-start:3px solid #af753c}
@media(max-width:760px){.hb-profit-readiness-items{grid-template-columns:1fr}}


/* HT Business 7: keep the shared desktop navigation beside long work pages.
   A later brand rule previously changed the sidebar to position:relative,
   overriding the sticky rule in business-live.css. The enterprise skin also
   disabled independent navigation scrolling with overflow:hidden. */
@media(min-width:761px){
 .app > .side{
  position:sticky;
  top:0;
  align-self:start;
  height:100vh;
  height:100dvh;
  max-height:100vh;
  max-height:100dvh;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  scrollbar-width:thin;
  scrollbar-color:rgba(207,189,158,.62) transparent;
 }
}


/* HT Business 7: source-scoped cost of sales journal readiness, never auto-post. */
.hb-cost-journal-readiness{min-width:0;margin:18px 0}
.hb-cost-journal-readiness .hb-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.hb-cost-journal-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:12px 0 16px}
.hb-cost-journal-grid>div{border:1px solid #e3e7ed;background:#fafbfc;border-radius:11px;padding:12px;display:grid;gap:6px;min-width:0}
.hb-cost-journal-grid small{font-size:.73rem;color:#67768a}
.hb-cost-journal-grid strong{font-size:1.25rem;color:#24374f}
.hb-cost-journal-table{max-width:100%;min-width:0}
.hb-cost-journal-table td{overflow-wrap:anywhere}
.hb-cost-journal-table td a{color:#66509a;text-decoration:underline;text-underline-offset:3px}
@media(max-width:1000px){.hb-cost-journal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.hb-cost-journal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hb-cost-journal-table{overflow:visible}}

/* Ht Business 7: two-person cost-of-sales proposals; no implicit posting. */
.hb-cost-postings{min-width:0;margin:18px 0}
.hb-cost-postings .hb-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.hb-cost-posting-requests{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px;margin:14px 0}
.hb-cost-posting-form{display:grid;align-content:start;gap:12px;padding:16px;border:1px solid #dfe5ee;border-radius:12px;background:#fafbfc;min-width:0}
.hb-cost-posting-form h3{margin:0;font-size:1rem}
.hb-cost-posting-form p{margin:0}
.hb-cost-posting-form-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hb-cost-posting-form-fields label,.hb-cost-posting-form>label{display:grid;gap:6px;min-width:0;font-size:.86rem}
.hb-cost-posting-form select,.hb-cost-posting-form textarea{box-sizing:border-box;max-width:100%;width:100%;border:1px solid #cbd4df;border-radius:9px;padding:10px;background:#fff;color:#213247;font:inherit}
.hb-cost-posting-confirm{display:flex!important;align-items:flex-start;gap:8px;line-height:1.55;font-size:.84rem}
.hb-cost-posting-confirm input{flex:0 0 auto;margin-top:5px}
.hb-cost-posting-decisions{max-width:100%;min-width:0}
.hb-cost-posting-decisions form{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.hb-cost-posting-decisions form .hb-cost-posting-confirm{flex-basis:100%}
.hb-cost-posting-decisions .btn{min-height:36px;padding:8px 11px}
@media(max-width:760px){.hb-cost-posting-form-fields{grid-template-columns:1fr}.hb-cost-posting-decisions{overflow:visible}}

/* Company-specific logo, live quotation PDF preview and owner exports. */
.topbrand .hb-header-brand-icon.hb-company-custom-logo{
 width:46px;height:46px;max-width:46px;max-height:46px;object-fit:contain;
 border-radius:11px;background:#fff;border:1px solid #e6eaec;padding:3px;
}
.hb-company-logo-panel{border-top:1px solid #dfe7e4;margin-top:18px;padding-top:16px}
.hb-company-logo-sample{display:flex;align-items:center;gap:12px;padding:13px;
 background:#f6faf8;border:1px solid #dfebe5;border-radius:12px;min-width:0}
.hb-company-logo-sample img{width:64px;height:64px;border-radius:12px;object-fit:contain;
 background:white;border:1px solid #e2e8e4;padding:4px;flex-shrink:0}
.hb-company-logo-sample div{min-width:0;display:grid;gap:3px}
.hb-company-logo-sample small{color:#4d635c}
.hb-company-logo-panel form{display:grid;gap:10px;max-width:560px;margin-top:14px}
.hb-company-logo-panel input[type=file]{min-width:0;max-width:100%;padding:10px;
 background:#fff;border:1px solid #d6e0dd;border-radius:9px}
.hb-admin-quote-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:15px}
.hb-admin-quote-preview{background:#fff!important;color:#194e43!important;border:1px solid #194e43!important}
.hb-admin-export-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));
 gap:12px;margin:17px 0}
.hb-admin-export-item{padding:14px;border:1px solid #dbe7e2;border-radius:12px;
 background:#fafcfb;display:grid;gap:12px}
.hb-admin-export-actions{display:flex;gap:10px;flex-wrap:wrap}
.hb-admin-export-actions a{display:inline-flex;min-height:36px;align-items:center}
.hb-admin-muted{color:#53645f;line-height:1.75}
@media(max-width:600px){.hb-company-logo-sample{padding:10px}.hb-admin-quote-actions>*{width:100%}}

/* Public demo visual sandbox: per-session editable branding and PDF exports. */
.hb-demo-personal-message{padding:14px 16px;border:1px solid #d5e5dc;border-radius:12px;
 background:#eef7f0;color:#194b3d;line-height:1.9;margin:12px 0}
.hb-demo-reset-panel{padding:16px;border:1px solid #e6ddd1;border-radius:12px;margin:16px 0}
.hb-demo-reset-panel form{display:grid;justify-items:start;gap:12px}
.hb-demo-reset-panel button{background:#fff!important;color:#6b4932!important;
 border:1px solid #bca68d!important}
@media(max-width:600px){.hb-demo-reset-panel button{width:100%}}

/* Private signature image is a per-PDF opt-in, not an automatic digital signature. */
.hb-signature-panel{scroll-margin-top:85px}
.hb-signature-panel form{display:grid;gap:12px;max-width:570px;margin:15px 0}
.hb-signature-panel input[type=file]{min-width:0;max-width:100%;
 padding:10px;border:1px solid #9db9aa;border-radius:10px;background:#fff}
.hb-signature-preview{display:flex;align-items:center;gap:14px;flex-wrap:wrap;
 border:1.5px solid #a9c2b4;border-radius:12px;background:#f4f9f5;padding:12px}
.hb-signature-preview img{width:230px;max-width:100%;height:100px;
 object-fit:contain;background:#fff;border-radius:8px}
.hb-signature-preview span{color:#314d3d;font-size:.88rem;line-height:1.65}
.hb-signature-remove{background:#fff!important;color:#684733!important;
 border:1px solid #c5aa95!important}
.hb-signature-optin{display:flex;gap:10px;align-items:center;
 padding:12px;border:1.5px solid #a1bcb0;border-radius:10px;
 background:#f3f8f5;max-width:570px;font-weight:650}
.hb-signature-optin input{width:19px;height:19px;flex-shrink:0}
@media(max-width:600px){.hb-signature-panel button{width:100%}}

/* Ht Business 7: two-row demo header. The old account button had no grid slot,
   creating an implicit third row over page content on mobile Safari. The account
   destination remains present inside the authorized mobile navigation menu. */
@media(max-width:760px){
 .top>.topactions>.hb-my-account{display:none!important}
 .top:has(.demo-roles){grid-template-rows:32px 38px!important;
   height:92px!important;min-height:92px!important;max-height:92px!important;
   padding-block:8px!important;align-content:center!important;
   row-gap:6px!important}
 .top:has(.demo-roles)>.mobile-nav{grid-row:1!important;grid-column:3!important;
   align-self:center!important;justify-self:end!important}
 .top:has(.demo-roles) .topbrand{grid-row:1!important;grid-column:1/3!important;
   min-width:0!important;max-width:min(100%,calc(100% - 62px))!important;
   overflow:hidden!important}
 .top:has(.demo-roles) .topactions>a.lang[lang]{grid-row:1!important;grid-column:2!important;
   align-self:center!important;justify-self:end!important}
 .top:has(.demo-roles) .demo-flag{grid-row:2!important;grid-column:1!important;
   align-self:center!important}
 .top:has(.demo-roles) .demo-roles{grid-row:2!important;grid-column:2!important;
   align-self:center!important;min-width:0!important;max-width:100%!important}
 .top:has(.demo-roles) .topactions>.hb-demo-logout{grid-row:2!important;
   grid-column:3!important;align-self:center!important;justify-self:end!important}
 .top>.mobile-nav>.hb-mobile-menu-panel{max-height:min(65dvh,520px);overflow-y:auto;
   overscroll-behavior:contain}
 .hb-mobile-menu-panel .hb-mobile-account-link{background:#f6f1e8!important;
   border-color:#d6bd91!important}
 .hb-admin-panel#quote-settings .hb-admin-quote-actions{width:100%;max-width:750px}
 .hb-admin-panel#quote-settings .hb-admin-quote-actions>.button{width:100%;
   min-height:50px;justify-content:center;box-sizing:border-box;
   font-size:.92rem!important;line-height:1.55;white-space:normal}
}
/* All three quote-template actions must use the same usable horizontal space. */
.hb-admin-panel#quote-settings .hb-quote-saved-wrap{
  width:100%;max-width:750px;margin:10px 0 0;
}
.hb-admin-panel#quote-settings .hb-quote-saved-pdf{
  display:flex;width:100%;min-height:45px;align-items:center;
  justify-content:center;box-sizing:border-box;text-align:center;
  font-size:.92rem;line-height:1.55;padding:11px 19px;
  white-space:normal;
}
@media(max-width:760px){
 .hb-admin-panel#quote-settings .hb-quote-saved-pdf{
   min-height:50px;padding:12px 15px;
 }
}

/* Financial correction: readable, bounded, and non-overlaying at every viewport. */
.hb-return-cost-reversals{min-width:0;margin:18px 0}
.hb-return-cost-reversals .hb-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.hb-return-cost-reversals .hb-cost-posting-form{max-width:780px}
.hb-return-cost-reversals .hb-cost-posting-decisions{max-width:100%;overflow-x:auto}
.hb-return-cost-reversals .hb-cost-posting-decisions form{min-width:0}
@media(max-width:600px){.hb-return-cost-reversals .hb-cost-posting-form button{width:100%;min-height:44px}}
