/* HUU 9.0.13 · unified neutral / orange visual system.
   Presentation only; invoice and accounting calculations stay untouched.
   The approved original owl-over-orange-wave artwork is never altered. */
:root {
  --huu-orange:#f47718;
  --huu-orange-dark:#d65d0a;
  --huu-surface:#f4f6f9;
  --huu-white:#ffffff;
  --huu-ink:#1f2935;
  --huu-muted:#718092;
  --huu-stroke:#e2e8f0;
  --huu-stroke-strong:#cbd5e1;
  --huu-shade:#f8fafc;
  --huu-accent-bg:#fff1e7;
  --huu-control-border:#d5dee8;
  --huu-control-focus:#f47718;
  --huu-control-radius:11px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--huu-ink);background:var(--huu-surface);
  -webkit-font-smoothing:antialiased;
}
body,.content{background:var(--huu-surface)!important;color:var(--huu-ink)}
:where(.view, .inner){min-width:0}
:where(h1,h2,h3,h4){color:var(--huu-ink);letter-spacing:-.035em}
.muted,.page-title p,.dashboard-toolbar p{color:var(--huu-muted)!important}
.eyebrow{color:#df690d!important;letter-spacing:1.55px;font-size:10px;font-weight:800}
a,.text-button{color:#da640f}
/* App frame and the uninterrupted full-height LIGHT sidebar */
.app-shell{grid-template-columns:264px minmax(0,1fr)!important}
.sidebar{
  background:var(--huu-white)!important;
  background-image:none!important;
  border-right:1px solid var(--huu-stroke)!important;
  padding:26px 17px 17px!important;
  box-shadow:3px 0 22px rgba(33,53,73,.018);
  z-index:5;
}
.sidebar .brand{padding:0 12px 27px!important;border-bottom:1px solid #edf0f5;margin-bottom:18px}
.sidebar .brand img{width:165px!important;max-height:78px!important}
.sidebar .brand small{font-size:11px;color:#8692a1;letter-spacing:.15px;margin-top:3px}
.sidebar nav{gap:5px!important}
.sidebar nav::before{content:'PRACOVNÍ PROSTOR';display:block;margin:2px 10px 10px;font-size:10px;font-weight:800;letter-spacing:1.8px;color:#9aa6b5}
.sidebar nav button{
  font-size:13px!important;font-weight:670!important;min-height:48px!important;
  padding:11px 13px!important;color:#526071!important;
  border:1px solid transparent!important;border-radius:11px!important;
  transition:background .16s,border-color .16s,color .16s;
}
.sidebar nav button:hover{background:#f5f7fa!important;color:#222e3b!important;border-color:#eef1f5!important}
.sidebar nav button.active{background:var(--huu-accent-bg)!important;color:#c95e0d!important;border:1px solid #ffdbc4!important;padding:11px 13px!important;box-shadow:0 3px 10px rgba(228,101,16,.055)}
.sidebar nav .nav-icon{width:21px!important;min-width:21px;display:inline-flex;align-items:center;justify-content:center;font-size:0!important}
.sidebar nav .nav-icon svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linejoin:round;stroke-linecap:round}
.sidebar-bottom{border-top:1px solid var(--huu-stroke)!important;padding:18px 7px 0!important;gap:9px}
.account-tier{background:#fff0e4!important;color:#c45c0c!important;padding:7px 12px;border:1px solid #ffddc4}
.sidebar-bottom .outline{border:1px solid var(--huu-stroke)!important;border-radius:10px!important;background:#fff!important;color:#425164!important;font-weight:750}
.sidebar-bottom small{color:#a1aab7}
.top{height:76px!important;padding:0 36px!important;border-bottom:1px solid var(--huu-stroke)!important;background:#fff!important}
.top strong{font-size:18px!important;font-weight:780;letter-spacing:-.5px;color:#202d38!important}
.top-tools>span{color:#7b8998!important;font-weight:550}
.online-dot{background:#32ae6d}
.inner{max-width:1460px!important;padding:29px 35px 90px!important}
/* Primary interactions */
.primary,.welcome-new{background:var(--huu-orange)!important;color:#fff!important;border:1px solid var(--huu-orange)!important;border-radius:11px!important;min-height:43px;box-shadow:0 7px 17px rgba(239,108,19,.18)!important;font-weight:770!important;transition:background .16s,box-shadow .16s,transform .16s}
.primary:hover,.welcome-new:hover{background:var(--huu-orange-dark)!important;border-color:var(--huu-orange-dark)!important;box-shadow:0 9px 24px rgba(234,97,12,.22)!important;transform:translateY(-1px)}
.primary:active,.welcome-new:active{transform:none}
.outline{background:#fff!important;border:1px solid var(--huu-stroke-strong)!important;color:#344254!important;border-radius:11px!important;box-shadow:none!important}
.outline:hover{background:#f8fafc!important;border-color:#a6b6c6!important}
.text-button{font-weight:760}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ffd2ae!important;outline-offset:2px}
/* Demo: restrained neutral frame, orange indication rather than beige sheet */
.demo-strip{background:#fff!important;border:1px solid var(--huu-stroke)!important;border-left:3px solid var(--huu-orange)!important;border-radius:12px!important;padding:14px 17px!important;box-shadow:0 4px 16px rgba(31,48,67,.035)!important;margin-bottom:22px!important}
.demo-strip strong{color:#2c3947!important;font-size:12px}
.demo-strip span{color:#7a8795}
.demo-tier-switch{background:#f2f5f8!important;border:1px solid #e5eaf0!important;box-shadow:none!important;border-radius:10px!important;padding:3px!important}
.demo-tier-switch button{color:#5d6a79!important;border-radius:8px!important;padding:8px 16px!important}
.demo-tier-switch button.active{background:#f47718!important;color:#fff!important;box-shadow:0 2px 8px #f4771829!important}
.demo-strip a{color:#cf6518}
.notice{background:#fff!important;border:1px solid #f8d9be!important;border-left:3px solid var(--huu-orange)!important;color:#7b4f32!important}
.notice[data-type="success"]{background:#f0faf4!important;border-color:#bddcc7!important;color:#25704d!important}
/* Brand welcome. Keep ORIGINAL owl asset, natural aspect ratio and entire wave. */
.welcome{background:#fff!important;border:1px solid var(--huu-stroke)!important;border-radius:19px!important;height:224px!important;min-height:224px!important;box-shadow:0 9px 30px rgba(36,51,71,.04)!important;margin-bottom:27px!important;padding:26px 28px!important}
.welcome:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 92% 5%,rgba(255,136,42,.06),transparent 38%);pointer-events:none}
.welcome>img{filter:none!important;opacity:1!important}
.welcome h1{color:#222a33;font-size:38px!important;letter-spacing:-1.6px!important}
.welcome p{color:#6e7b88!important;font-size:14px}
/* Dashboard headings, one clear period selector */
.dashboard-toolbar{margin:16px 0 20px!important;gap:25px}
.dashboard-toolbar h2{font-size:22px!important;font-weight:800;letter-spacing:-.7px!important;margin-bottom:6px!important}
.dashboard-toolbar p{font-size:12px!important;line-height:1.5}
.dashboard-toolbar .filters.period-filter-frame{flex-basis:325px!important}
.dashboard-toolbar #period-filter{height:54px!important;min-height:54px!important;border:1px solid #cbd7e3!important;border-radius:12px!important;box-shadow:0 3px 14px rgba(31,48,67,.045)!important;color:#233242!important;font-size:13px!important;font-weight:750!important;background-color:#fff!important;padding-left:57px!important}
.dashboard-toolbar #period-filter:hover{border-color:#f4a066!important}
.dashboard-toolbar #period-filter:focus{border-color:var(--huu-orange)!important;box-shadow:0 0 0 3px #ffe9db!important}
.dashboard-toolbar .period-calendar-icon{background:#fff0e5!important;color:#e16c13!important;border-radius:9px}
/* KPI: readable numeric hierarchy, soft neutral surfaces, compact state accents */
.stat-grid{gap:14px!important;margin-bottom:22px!important}
.stat,.stat-grid>.stat:nth-child(-n+3){background:#fff!important;border:1px solid var(--huu-stroke)!important;border-radius:16px!important;box-shadow:0 5px 19px rgba(36,53,72,.045)!important;min-height:156px!important;padding:21px 22px!important;transition:transform .16s,box-shadow .16s,border-color .16s!important}
.stat[role="button"],.stat[data-stat-detail]{cursor:pointer}
.stat[data-stat-detail]:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(35,49,66,.1)!important;border-color:#cbd5e1!important}
.stat::before{width:10px!important;height:10px!important;top:22px!important;right:21px!important;box-shadow:0 0 0 5px color-mix(in srgb,var(--dot),transparent 90%)!important}
.stat-label{color:#687789!important;font-size:12px!important;font-weight:730!important;margin-bottom:13px!important}
.stat strong{color:#222b37!important;font-size:clamp(23px,2.3vw,32px)!important;letter-spacing:-1px!important;line-height:1.15}
.stat[data-kind="paid"] strong{color:#248758!important}
.stat[data-kind="awaiting"] strong{color:#b66a1c!important}
.stat[data-kind="advances"] strong{color:#496b9f!important}
.stat[data-kind="expenses"] strong{color:#c34c53!important}
.stat[data-kind="profit"] strong{color:#207e5b!important}
.stat[data-kind="overdue"] strong{color:#323d4b!important}
.stat small{color:#8b98a7!important;font-size:11px;line-height:1.4}
.stat[data-kind]{border-top:1px solid var(--huu-stroke)!important}
.stat[data-kind="profit"]{background:#fbfffd!important;border-color:#d6e9df!important}
/* Panels / content density */
.dashboard-lower{grid-template-columns:minmax(0,1.45fr) minmax(285px,1fr);gap:17px!important}
.white-panel,.edit-card,.settings-tile{background:#fff!important;border:1px solid var(--huu-stroke)!important;border-radius:17px!important;box-shadow:0 5px 23px rgba(36,51,70,.04)!important}
.white-panel{padding:23px!important}
.section-title{margin-bottom:18px!important;align-items:center!important}
.section-title h2{font-size:17px!important;letter-spacing:-.4px;font-weight:800}
.chart{border-bottom:1px solid #e4e9ef!important}
.bar{border-radius:5px 5px 0 0!important;transition:height .2s,opacity .2s}
.bar.awaiting{background:#eeae63!important}
.bar.paid{background:#49ac78!important}
.bar.advances{background:#7796c4!important}
.bar.expenses{background:#e26d73!important}
.chart-legend{color:#6a7889!important}
.chart-legend i{width:10px!important;height:10px!important;border-radius:4px!important}
.invoice-short{border-color:#edf0f4!important;padding:14px 0!important;color:#354153}
.invoice-short small{color:#8896a6!important}
.invoice-short-button:hover{background:#f8fafc!important}
.dashboard-footnote{color:#909aa5!important;font-size:11px}
/* Page headings and document lists */
.page-title{margin:6px 0 26px!important;gap:19px}
.page-title h1{font-size:31px!important;font-weight:830!important;color:#202c38!important;margin:7px 0 8px!important}
.page-title p{font-size:13px;line-height:1.6;max-width:780px}
.edit-card{padding:27px!important;margin-bottom:24px!important}
.edit-card>h2{font-size:22px!important;font-weight:820!important;letter-spacing:-.55px!important}
:where(.edit-card,.auth-card,.filters) label{color:#4b5968!important;font-size:12px!important;font-weight:680!important;gap:8px}
:where(.edit-card,.auth-card,.filters) input:not([type="checkbox"]):not([type="radio"]),
:where(.edit-card,.auth-card,.filters) select,
:where(.edit-card,.auth-card,.filters) textarea{
  background:#fff!important;color:#253244!important;border:1px solid var(--huu-control-border)!important;border-radius:11px!important;box-shadow:0 1px 2px rgba(31,49,67,.025)!important;min-height:44px!important;font-size:13px!important;
}
:where(.edit-card,.auth-card,.filters) :is(input,select,textarea):focus{border-color:#f39451!important;outline:none!important;box-shadow:0 0 0 3px #ffead8!important}
:where(.edit-card,.auth-card,.filters) input::placeholder{color:#a5afbc!important;font-weight:450!important}
.edit-card .form-actions{border-color:#e7ebf1!important}
.list-panel{overflow-x:auto}
.table th{color:#8490a1!important;border-bottom:1px solid #e1e8ef!important;background:#f8fafc;font-weight:800;text-transform:uppercase;letter-spacing:.6px}
.table td{border-bottom:1px solid #edf1f5!important;color:#364356}
.table tbody tr:hover{background:#fbfcfe}
.table button{border-color:#dbe4ed!important;border-radius:9px!important;color:#495869}
.pill{border-radius:7px!important;background:#fff3e9!important;color:#a65c20!important;font-weight:750}
.pill.paid{background:#eaf8f0!important;color:#267d4d!important}
.empty{color:#91a0b0!important}
/* Invoice list: three groups remain clearly separated in the approved order */
#invoice-list{padding:24px!important}
.invoice-filter-grid{gap:12px!important}
.invoice-filter-card{background:#fff!important;border:1px solid var(--huu-stroke)!important;box-shadow:none!important;border-radius:14px!important;padding:18px!important;min-height:148px!important;color:#273747!important}
.invoice-filter-card:hover{background:#f9fbfd!important;border-color:#bfccd9!important;box-shadow:0 5px 13px #2333480a!important}
.invoice-filter-card.selected{background:#fff9f4!important;border-color:#f8ae76!important;box-shadow:0 0 0 2px rgba(244,119,24,.11) inset!important}
.invoice-filter-head{color:#37475a!important}
.invoice-filter-icon{border-radius:10px!important}
.invoice-filter-card[data-invoice-filter="paid"] .invoice-filter-icon{background:#e9f8ef!important;color:#23864e!important}
.invoice-filter-card[data-invoice-filter="awaiting"] .invoice-filter-icon{background:#fff2e8!important;color:#d2761d!important}
.invoice-filter-card[data-invoice-filter="advances"] .invoice-filter-icon{background:#edf3fc!important;color:#577aa8!important}
.invoice-filter-desc,.invoice-list-top p{color:#8c99a8!important}
.invoice-list-top{border-color:#e8edf3!important}
.invoice-table th{background:#f8fafc!important;color:#8693a5!important}
.invoice-table td{border-color:#edf1f5!important}
.invoice-kind.regular{background:#edf1f5!important;color:#5a6c7c!important}
.invoice-kind.final{background:#e9f7ee!important;color:#317b50!important}
.invoice-kind.advance{background:#edf3fd!important;color:#516f9c!important}
.invoice-row-actions button{border-color:#dce4eb!important;background:#fff!important;color:#526075!important}
.invoice-row-actions .row-open{background:#fff2e8!important;border-color:#ffd5b5!important;color:#c26414!important}
.advance-filter-bar button{border-color:#d9e3ed!important;color:#536173!important}
.advance-filter-bar button.selected{background:#edf3fd!important;color:#4d709d!important}
.converted-archive-button{background:#f8fafc!important;border-color:#dce4eb!important;color:#526274!important}
/* Invoice editor: well-structured white form, aligned fields and clear total. */
#invoice-form{max-width:1120px!important;background:#fff!important;border:1px solid var(--huu-stroke)!important;box-shadow:0 12px 34px rgba(35,52,73,.055)!important;padding:32px 39px!important}
#invoice-form>h2{color:#1e2937!important;font-size:25px!important}
#invoice-form>.muted{color:#7d8a99!important}
#invoice-form .invoice-form-section-title{border-bottom:1px solid #e5eaf0!important;color:#263749!important;font-size:15px!important;padding-bottom:14px!important;margin-top:15px!important}
#invoice-form .invoice-section-index{background:#fff0e3!important;border:1px solid #ffdcc0!important;color:#d06713!important}
#invoice-form .invoice-core-grid>label,#invoice-form .invoice-payment-field{color:#526173!important}
#invoice-form .invoice-payment-choices{background:#f3f6f9!important;border-color:#e2e8f0!important}
#invoice-form .invoice-payment-choices button{color:#647589!important}
#invoice-form .invoice-payment-choices button.active{background:#fff!important;color:#d26411!important;border-color:#ffd9be!important;box-shadow:0 2px 8px rgba(31,48,67,.07)!important}
#invoice-form .invoice-items-panel{background:transparent!important;border:0!important}
#invoice-form .invoice-item-row{border-bottom:1px solid #e7ecf1!important}
#invoice-form #invoice-add-item{background:#fff!important;color:#cf650f!important;border:1px solid #ffd3b2!important}
#invoice-form .item-remove{background:#f5f7f9!important;color:#a6533d!important}
#invoice-form .invoice-items-summary>div{border-color:#e5ebf1!important}
#invoice-form .invoice-items-summary strong{color:#233449!important}
#invoice-form .invoice-items-summary .invoice-amount-due strong{color:#e36e10!important}
#invoice-form .form-actions{border-color:#e6ebf2!important}
/* Ultra and category / reminder workflow */
.expense-mini-stat,.expense-entry,.saved-item,.category-row,.reminder-row,.personal-reminder-entry,
.settings-tile,.category-pick{background:#fff!important;border-color:#e1e7ee!important;color:#324254}
.expense-mini-stat,.expense-entry,.saved-item,.category-row,.personal-reminder-entry{box-shadow:0 2px 8px rgba(28,48,71,.025)}
.category-pick{border-radius:12px!important}
.category-pick:hover,.category-pick.selected{border-color:#f6ad7b!important;background:#fff8f2!important}
.category-row:hover,.saved-item:hover{background:#f8fafc!important}
.reminders-panel{background:#fff!important;border:1px solid #e0e7ef!important;border-radius:14px!important}
.reminder-head{color:#354557!important}
.settings-tile{border-radius:15px!important;box-shadow:0 3px 13px rgba(32,48,64,.045)!important}
.settings-tile:hover:not(.static){background:#f8fafc!important;border-color:#bfcbd7!important}
/* Auth screen and print separation */
.auth-screen{background:radial-gradient(circle at 78% 12%,rgba(244,119,24,.09),transparent 37%),#f3f6fa!important}
.auth-card{border:1px solid var(--huu-stroke)!important;border-radius:20px!important;background:#fff!important;box-shadow:0 22px 70px rgba(31,48,67,.09)!important}
.auth-bottom{border-color:#e7edf3!important}
.invoice-document{background:#fff!important;border-color:#e3e7ec!important;box-shadow:0 14px 36px rgba(26,43,63,.095)!important}
/* Mobile: everything remains neutral, airy and comfortably touchable */
@media(max-width:1100px){.inner{padding:25px 24px 90px!important}.dashboard-lower{grid-template-columns:1fr!important}}
@media(max-width:760px){
 .app-shell{display:block!important}
 .sidebar{display:none!important}
 .top{height:65px!important;padding:0 17px!important}
 .inner{padding:17px 14px 105px!important}
 .welcome{height:200px!important;min-height:200px!important;padding:20px 16px!important;margin-bottom:21px!important}
 .welcome h1{font-size:30px!important}
 .welcome p{font-size:12px!important}
 .dashboard-toolbar{align-items:stretch!important;gap:12px!important}
 .dashboard-toolbar .filters.period-filter-frame{flex:0 0 auto!important;width:100%!important}
 .stat-grid{gap:10px!important}
 .stat,.stat-grid>.stat:nth-child(-n+3){min-height:124px!important;padding:15px!important;border-radius:13px!important}
 .stat-label{font-size:11px!important}
 .stat strong{font-size:clamp(18px,4.8vw,24px)!important}
 .white-panel{padding:18px!important}
 .page-title h1{font-size:28px!important}
 .edit-card{padding:18px!important}
 #invoice-form{padding:20px 16px!important}
 .bottom-nav{background:rgba(255,255,255,.97)!important;border-top:1px solid #dee7f0!important;box-shadow:0 -9px 26px rgba(27,44,64,.075)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
 .bottom-nav button{color:#68778a!important}
 .bottom-nav button.active{color:#e56812!important}
 .bottom-nav .mobile-new{background:#f47718!important;color:white!important}
 .invoice-filter-card{min-height:0!important;padding:14px 15px!important}
 .invoice-table tr{border-color:#e1e9f0!important;box-shadow:0 3px 9px rgba(24,43,67,.03)!important}
}
@media(max-width:440px){
 .demo-strip{padding:12px!important}
 .demo-tier-switch{width:100%;justify-content:space-between}
 .demo-tier-switch button{flex:1}
 .welcome>div{max-width:78%!important}
 .welcome p{max-width:195px!important}
 #invoice-form .invoice-item-row{gap:8px!important}
}
/* Critical: keep printed PDFs and exported document canvases white and unmodified. */
@media print{body,.content,.invoice-document{background:#fff!important}.sidebar,.top,.demo-strip,.bottom-nav{display:none!important}}
/* A deposit can be linked only from its source advance invoice. The existing
   select remains in the DOM for internal conversion but is not a manual form control. */
#invoice-form #invoice-applied-advance-wrap{display:none!important}
/* Modern icon geometry on mobile; text labels remain readable. */
.bottom-nav .mobile-nav-icon{display:block;width:22px;height:22px;margin:0 auto 4px;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;fill:none}
.bottom-nav button{font-size:0!important;gap:0!important}
.bottom-nav button small{font-size:10px!important;font-weight:750!important;letter-spacing:.05px}
/* White/cool-gray controls throughout expenses, reminders, contacts and settings. */
:where(.expense-filters,.expense-actions,.settings-links,.category-manager,.reminder-compose) select,
:where(.expense-filters,.expense-actions,.settings-links,.category-manager,.reminder-compose) input,
select:not(.invoice-document select){border-color:#d9e2ec;background-color:#fff;color:#334155;border-radius:11px}
/* A genuinely empty chart should not look like a huge unfinished screen. */
.chart-panel:has(#chart-empty:not([hidden])) .chart{height:138px!important;background:repeating-linear-gradient(to bottom,transparent 0,transparent 42px,#f0f3f7 43px,#f0f3f7 44px)!important}
.chart-panel:has(#chart-empty:not([hidden])) .bar-pair{height:92px!important}
#chart-empty:not([hidden]){font-size:12px!important;line-height:1.65!important;color:#6c7b8e!important;text-align:center;background:#f7f9fc;border:1px dashed #d8e1eb;border-radius:11px;padding:13px 16px;margin-top:15px!important}
@media(max-width:760px){
 .bottom-nav .mobile-nav-icon{width:22px;height:22px}
 .bottom-nav button{font-size:0!important}
 .bottom-nav button small{font-size:10px!important}
 .chart-panel:has(#chart-empty:not([hidden])) .chart{height:138px!important}
}
