/* HUU 9.0 beta 3 — visual repair against approved HUU 8.18.
   Exact same approved 1266×220 owl-wave asset; do not recreate mascot. */
:root{--huu-orange:#f47e18;--huu-ink:#262b28;--huu-soft:#fff8ef}
.app-shell{grid-template-columns:254px minmax(0,1fr)}
.sidebar{background:linear-gradient(180deg,#fffdfa,#fff9f2);border-right:1px solid #eee5d9;padding:27px 16px 17px}
.sidebar .brand{padding:0 12px 20px}
.sidebar .brand img{width:164px;max-height:80px}
.sidebar-new{display:flex;align-items:center;justify-content:center;gap:8px;min-height:49px;width:100%;font-size:14px;font-weight:850;margin:6px 0 18px;box-shadow:0 8px 21px #f47d182b}
.sidebar nav button{font-size:14px;min-height:48px;letter-spacing:.02px;padding:12px 14px}
.sidebar nav button.active{background:#fff0df;color:#bb5b0d;border-left:3px solid var(--huu-orange);padding-left:11px}
.content{background:#fffcf8}
.top{height:83px;padding:0 36px;background:#fff;border-bottom:1px solid #eee9df}
.top strong{font-size:18px;color:var(--huu-ink)}
.top-tools{display:flex;align-items:center;gap:21px}
.top-tools>span{font-size:12px;color:#86877f}
.top-new{min-height:43px;padding:11px 20px;font-size:13px;box-shadow:0 5px 13px #e8821826}
.inner{padding:25px 31px 88px;max-width:1350px}
.demo-strip{box-shadow:0 3px 12px #b67a1520}
.welcome{height:218px;min-height:218px;border:1px solid #f4e8d9;border-radius:17px;overflow:hidden;margin-bottom:25px;padding:25px 28px 25px;background:linear-gradient(110deg,#fff,#fffdf8 67%,#fff3e4)}
.welcome>div{z-index:3;align-self:flex-start;max-width:62%;position:relative}
.welcome .eyebrow{font-size:10px;color:#d46a10;letter-spacing:1.8px;font-weight:800}
.welcome h1{font-size:37px;line-height:1.07;margin:10px 0 8px;letter-spacing:-.8px}
.welcome p{font-size:14px;color:#74766f;max-width:440px;margin:0 0 19px}
.welcome>img{position:absolute;z-index:2;bottom:-1px;right:-28px!important;width:1190px!important;min-width:1190px!important;height:auto!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:bottom right;pointer-events:none}
.welcome-new{position:relative;z-index:4;display:inline-flex;gap:20px;align-items:center;min-height:44px;padding:12px 18px;background:#f47e18;font-size:13px;font-weight:850;box-shadow:0 8px 22px #e885242d}
.welcome-new span{font-size:18px;font-weight:400}
.dashboard-toolbar h2{font-size:21px;margin:0 0 5px;font-weight:830;letter-spacing:-.4px}
.dashboard-toolbar{margin-bottom:18px}
.dashboard-toolbar p{color:#8b8d85}
.stat-grid{gap:13px;margin-bottom:20px}
.stat{background:#fff;min-height:144px;border:1px solid #eae5dc;border-radius:15px;padding:20px 20px 18px;box-shadow:0 6px 18px #9f7d4010;overflow:hidden}
.stat::before{width:11px;height:11px;top:20px;right:21px;box-shadow:0 0 0 5px color-mix(in srgb,var(--dot),transparent 88%)}
.stat-label{font-size:12px;color:#666b67}
.stat strong{font-size:clamp(23px,2.25vw,32px);letter-spacing:-1.2px;color:#252a27}
.stat[data-kind="paid"] strong{color:#32814b}
.stat[data-kind="overdue"] strong{color:#282b29}
.stat[data-kind="expenses"] strong{color:#b34040}
.stat[data-kind="awaiting"] strong{color:#b86614}
.stat[data-kind="profit"]{background:linear-gradient(120deg,#f7fff6,#ffffff 68%);border-color:#e0ecdf}
.stat[data-kind="profit"] strong{color:#356c47}
.stat[data-kind="invoiced"]{border-top:3px solid #ed963a}
.stat[data-kind="paid"]{border-top:3px solid #57ae6e}
.stat[data-kind="awaiting"]{border-top:3px solid #e9a03b}
.stat[data-kind="overdue"]{border-top:3px solid #343636}
.stat[data-kind="expenses"]{border-top:3px solid #dc6262}
.stat[data-kind="profit"]{border-top:3px solid #6e9a76}
.white-panel{border:1px solid #ebe5dc;padding:22px;border-radius:15px;box-shadow:0 8px 24px #a3895110}
.section-title h2{font-size:17px}
.invoice-short-button{width:100%;border:0;background:transparent;text-align:left;cursor:pointer;align-items:center}
.invoice-short-button:hover{background:#fff7ed;border-radius:8px}
.invoice-short-button .arrow-hint{color:var(--huu-orange);font-size:22px}
.invoice-number-link{border:0!important;background:none!important;padding:0!important;color:#ca6a1b;font-size:13px!important;font-weight:800!important;text-decoration:underline;text-underline-offset:3px}
.row-open{font-weight:750;color:#c36c20;border-color:#eed7be!important}
.chart{min-width:530px}
.bar-month small{font-weight:700;font-size:9px;color:#575d56}
.invoice-detail-heading{margin-bottom:13px}
.invoice-detail-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}
.invoice-detail-actions button{font-size:13px;min-height:43px;padding:10px 17px}
.invoice-document{max-width:780px;margin:0 auto;padding:50px 52px 30px;border:1px solid #e2e0dc;border-left:13px solid #eee;background:#fff;box-shadow:0 19px 45px #413e321c;color:#1d2220;font-family:Arial,sans-serif;min-height:810px}
.invoice-doc-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding-bottom:32px;border-bottom:1px solid #e4e4e1}
.invoice-doc-head h2{font-size:27px;margin:10px 0 5px}.invoice-doc-head small{font-size:10px;color:#8b8b89}.invoice-kicker{font-size:13px;font-weight:750;letter-spacing:5px}
.invoice-brand{background:#37393a;padding:30px 20px;color:white;max-width:200px;text-align:center;font-size:13px;font-weight:750;overflow-wrap:anywhere}
.invoice-doc-parties{display:grid;grid-template-columns:1fr 1fr;gap:36px;margin:31px 0 18px}
.invoice-doc-parties>div>span{font-size:10px;letter-spacing:1.6px;color:#7b7d77;font-weight:800;display:block;margin-bottom:10px}
.invoice-doc-parties strong{font-size:16px}.invoice-doc-parties p{font-size:12px;white-space:pre-wrap;line-height:1.45;color:#525750;margin:7px 0}
.invoice-doc-dates{display:flex;justify-content:space-between;gap:10px;padding:17px 0;border-top:1px solid #e5e4df;border-bottom:1px solid #e5e4df;font-size:10px;color:#777}
.invoice-doc-dates strong{display:block;font-size:12px;margin-top:6px;color:#292e29}
.invoice-document table{width:100%;border-collapse:collapse;margin:28px 0 25px;font-size:13px}
.invoice-document th{padding:12px;text-align:left;border-bottom:2px solid #7c807b;color:#4e514e;font-size:11px;text-transform:uppercase}
.invoice-document td{padding:16px 12px;border-bottom:1px solid #deded9}
.invoice-document td:last-child,.invoice-document th:last-child{text-align:right}
.invoice-doc-total{display:flex;justify-content:flex-end;align-items:baseline;gap:15px;margin:29px 0 36px}
.invoice-doc-total span{font-size:12px}.invoice-doc-total strong{font-size:24px}
.invoice-doc-bottom p{font-size:12px;margin:8px 0;color:#565a55}.invoice-doc-bottom em{font-size:10px;color:#999;font-style:normal}
.invoice-doc-footer{border-top:1px solid #ddd;margin-top:65px;padding-top:17px;font-size:11px;color:#9a9c96}
.detail-footnote{max-width:780px;font-size:12px;margin:19px auto;line-height:1.6;color:#777a75}
@media(max-width:1120px){.welcome>img{width:1050px!important;min-width:1050px!important;right:-65px!important}.top-tools>span{display:none}}
@media(max-width:760px){
  .app-shell{display:block}.sidebar{display:none}
  .top{height:70px;padding:0 17px}
  .top-tools{margin-left:auto}.top-new{display:none}
  .inner{padding:17px 14px 108px}
  .welcome{height:196px;min-height:196px;padding:19px 16px 20px;margin-bottom:20px;align-items:flex-start}
  .welcome>div{max-width:76%}
  .welcome h1{font-size:29px;margin:9px 0 7px}
  .welcome p{font-size:12px;line-height:1.35;max-width:212px;margin-bottom:16px}
  .welcome>img{width:805px!important;min-width:805px!important;height:auto!important;max-height:none!important;right:-110px!important;bottom:-1px!important;opacity:1!important}
  .welcome-new{padding:10px 13px;min-height:39px;font-size:12px;gap:7px}
  .stat{min-height:123px;padding:16px 13px}.stat strong{font-size:clamp(18px,5vw,24px)}
  .bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr));height:83px;padding:7px 5px max(6px,env(safe-area-inset-bottom))}
  .bottom-nav button{font-size:24px;gap:1px}.bottom-nav .mobile-new{color:white!important;background:#f5811b;border-radius:15px;width:56px;height:58px;justify-self:center;align-self:center;box-shadow:0 6px 18px #e4772138;font-size:28px}
  .bottom-nav .mobile-new small{font-size:10px;font-weight:850}
  .invoice-document{padding:25px 17px 22px;border-left-width:7px;min-height:650px}
  .invoice-doc-head h2{font-size:21px}.invoice-brand{max-width:115px;padding:17px 10px;font-size:10px}
  .invoice-doc-parties{gap:15px}.invoice-doc-parties strong{font-size:13px}.invoice-doc-parties p{font-size:10px}
  .invoice-doc-dates{gap:8px}.invoice-doc-dates strong{font-size:10px}
  .invoice-doc-total{flex-wrap:wrap}.invoice-doc-total strong{font-size:21px}
  .invoice-detail-actions{display:grid;grid-template-columns:repeat(2,1fr)}.invoice-detail-actions button{font-size:12px;padding:8px 5px}
}
@media(max-width:420px){.welcome>img{width:780px!important;min-width:780px!important;right:-100px!important}.welcome>div{max-width:80%}.welcome p{max-width:190px}.welcome-new{font-size:11px}}
@media print{
 .invoice-detail-actions,.detail-footnote,.sidebar,.top,.bottom-nav,.demo-strip,.page-title{display:none!important}
 .invoice-document{box-shadow:none;border:0;max-width:210mm;min-height:0}
}
