/* HUU 9.0.55 – Clean typography, smaller financial tiles and separate chart controls. */
/* All five KPIs retain their existing click actions and color meaning. */
.view[data-screen="dashboard"] #stat-grid{gap:10px!important;margin-top:12px!important;margin-bottom:13px!important}
.view[data-screen="dashboard"] #stat-grid>.stat,
.view[data-screen="dashboard"] #stat-grid>.stat:nth-child(-n+3){
  min-height:125px!important;padding:12px 13px!important;border-radius:14px!important;
  box-shadow:0 3px 11px rgba(30,42,55,.04)!important;
  filter:none!important;text-shadow:none!important;transform:none!important;
  transition:background-color .15s ease,border-color .15s ease!important;
}
.view[data-screen="dashboard"] #stat-grid>.stat:hover{
  transform:none!important;filter:none!important;text-shadow:none!important;
  box-shadow:0 3px 11px rgba(30,42,55,.06)!important;
}
.view[data-screen="dashboard"] #stat-grid .huu-kpi-heading{
  grid-template-columns:33px minmax(0,1fr)!important;min-height:33px!important;
  margin:0 0 7px!important;gap:9px!important;
}
.view[data-screen="dashboard"] #stat-grid .huu-kpi-icon{
  width:33px!important;height:33px!important;min-width:33px!important;
  border-radius:10px!important;box-shadow:none!important;
}
.view[data-screen="dashboard"] #stat-grid .huu-kpi-icon svg{
  width:21px!important;height:21px!important;stroke-width:2!important;
}
.view[data-screen="dashboard"] #stat-grid .stat .stat-label{
  font-size:11.3px!important;font-weight:600!important;line-height:1.25!important;
  letter-spacing:0!important;color:#263443!important;
}
.view[data-screen="dashboard"] #stat-grid>.stat>strong{
  font-size:clamp(17px,1.55vw,24px)!important;font-weight:660!important;
  line-height:1.2!important;letter-spacing:-.55px!important;
  margin:0!important;overflow:visible!important;white-space:nowrap!important;
  text-overflow:clip!important;font-variant-numeric:tabular-nums;
}
.view[data-screen="dashboard"] #stat-grid>.stat>.huu-kpi-subtitle{
  font-size:10.2px!important;font-weight:430!important;line-height:1.35!important;
  min-height:0!important;margin:7px 0 0!important;color:#667381!important;
}
.view[data-screen="dashboard"] #stat-grid>.stat>.stat-open{
  font-size:10px!important;font-weight:600!important;margin-top:9px!important;
}
/* Keep left menu compact, nearly black, without hover blur or exaggerated boldness. */
.sidebar nav .huu-menu-link:not(.tier-locked),
.sidebar nav .huu-menu-link:not(.tier-locked) .huu-menu-label{
  font-size:12px!important;font-weight:500!important;letter-spacing:0!important;
  line-height:1.3!important;opacity:1!important;filter:none!important;
  text-shadow:none!important;transform:none!important;-webkit-font-smoothing:auto!important;
}
.sidebar nav .huu-menu-link:not(.tier-locked){min-height:39px!important;padding:9px 12px!important;gap:10px!important}
.sidebar nav .huu-menu-link:not(.tier-locked):not(.active){color:#141a22!important}
.sidebar nav .huu-menu-link.active:not(.tier-locked){color:#fff!important}
.sidebar nav .huu-menu-link.tier-locked .huu-menu-label{font-size:12px!important;font-weight:500!important}
/* Chart heading gets its own row; the year/view/currency selectors form a separate bar. */
.view[data-screen="dashboard"] .chart-panel .chart-title-row{
  display:block!important;margin:0 0 12px!important;padding:0!important;
}
.view[data-screen="dashboard"] .chart-panel .chart-title-row #chart-heading{
  margin:0!important;font-size:17px!important;font-weight:650!important;
  letter-spacing:-.25px!important;line-height:1.35!important;
}
.view[data-screen="dashboard"] .chart-panel .huu-chart-controls{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  margin:0 0 14px!important;padding:9px 0 13px!important;gap:9px!important;
  border-bottom:1px solid #e6eaee!important;flex-wrap:wrap!important;
  position:relative!important;inset:auto!important;float:none!important;
  width:100%!important;background:transparent!important;
}
.view[data-screen="dashboard"] .chart-panel .huu-chart-period,
.view[data-screen="dashboard"] .chart-panel .huu-chart-currencies{
  flex:0 0 auto!important;margin:0!important;
  min-height:34px!important;background:#f6f8fa!important;border-color:#e2e7eb!important;
}
.view[data-screen="dashboard"] .chart-panel .chart-view-toggle{
  display:inline-flex!important;flex:0 1 auto!important;align-items:center!important;justify-content:center!important;
  gap:2px!important;margin:0!important;padding:3px!important;min-height:34px!important;
  background:#f6f8fa!important;border-color:#e2e7eb!important;
}
.view[data-screen="dashboard"] .chart-panel .chart-view-toggle button{
  min-height:28px!important;padding:5px 10px!important;font-size:11px!important;
  font-weight:580!important;border-radius:7px!important;
}
.view[data-screen="dashboard"] .chart-panel .huu-chart-period button{
  width:26px!important;height:28px!important;font-size:19px!important;font-weight:550!important;
}
.view[data-screen="dashboard"] .chart-panel #huu-chart-year-label{font-size:12px!important;font-weight:610!important;min-width:39px!important}
.view[data-screen="dashboard"] .chart-panel .huu-chart-currencies button{
  min-height:28px!important;padding:5px 9px!important;font-size:11px!important;font-weight:570!important;
}
.view[data-screen="dashboard"] .chart-panel .chart-scroll{position:relative!important;clear:both!important;margin-top:3px!important}
/* Invoice listing: same clean reading order as dashboard Recent invoices.
   Preserve original table markup, payment actions, filters and accessibility. */
.view[data-screen="invoices"] .invoice-table-wrap{overflow-x:auto!important;width:100%!important}
.view[data-screen="invoices"] #invoice-list .invoice-table{min-width:700px!important;border-collapse:collapse!important;table-layout:fixed!important}
.view[data-screen="invoices"] #invoice-list .invoice-table thead{display:none!important}
.view[data-screen="invoices"] #invoice-list .invoice-table :is(th,td):nth-child(1){width:13%!important}
.view[data-screen="invoices"] #invoice-list .invoice-table :is(th,td):nth-child(2){width:25%!important}
.view[data-screen="invoices"] #invoice-list .invoice-table :is(th,td):nth-child(3){width:11%!important}
.view[data-screen="invoices"] #invoice-list .invoice-table :is(th,td):nth-child(4){width:12%!important}
.view[data-screen="invoices"] #invoice-list .invoice-table :is(th,td):nth-child(5){width:14%!important}
.view[data-screen="invoices"] #invoice-list .invoice-table :is(th,td):nth-child(6){width:25%!important}
.view[data-screen="invoices"] #invoice-list .invoice-table tr.huu-invoice-row,
.view[data-screen="invoices"] #invoice-list .invoice-table tr.huu-invoice-row:hover{
  background:#fff!important;filter:none!important;backdrop-filter:none!important;
  text-shadow:none!important;transform:none!important;box-shadow:none!important;
  opacity:1!important;transition:background-color .15s ease!important;
}
.view[data-screen="invoices"] #invoice-list .invoice-table tr.huu-invoice-row:hover{background:#f6f8fa!important}
.view[data-screen="invoices"] #invoice-list .invoice-table tr.huu-invoice-row td{
  background:transparent!important;padding:14px 8px!important;
  border-bottom:1px solid #e5e9ec!important;vertical-align:middle!important;
  filter:none!important;backdrop-filter:none!important;text-shadow:none!important;transform:none!important;
  opacity:1!important;
}
.view[data-screen="invoices"] #invoice-list .invoice-table .invoice-number-link{
  font-size:12px!important;font-weight:580!important;color:#4a5766!important;
  text-shadow:none!important;filter:none!important;text-align:left!important;
}
.view[data-screen="invoices"] #invoice-list .invoice-table .invoice-kind{
  font-size:10px!important;font-weight:450!important;color:#647181!important;
  border:0!important;background:transparent!important;padding:0!important;margin:4px 0 0!important;
}
.view[data-screen="invoices"] #invoice-list .invoice-table .invoice-buyer{
  color:#152232!important;font-size:16px!important;font-weight:690!important;
  letter-spacing:-.15px!important;line-height:1.3!important;
  text-shadow:none!important;filter:none!important;white-space:normal!important;
}
.view[data-screen="invoices"] #invoice-list .invoice-table .invoice-row-subtitle{color:#526173!important;font-size:11px!important;font-weight:430!important}
.view[data-screen="invoices"] #invoice-list .invoice-table td:nth-child(3){font-size:11px!important;color:#647181!important}
.view[data-screen="invoices"] #invoice-list .invoice-table td:nth-child(4) strong{font-size:14px!important;font-weight:690!important;white-space:nowrap!important}
.view[data-screen="invoices"] #invoice-list .invoice-table td:nth-child(5) .pill{
  display:inline-flex!important;align-items:center!important;gap:5px!important;
  border-radius:8px!important;padding:7px 8px!important;min-width:0!important;
  font-size:10.5px!important;font-weight:700!important;line-height:1.25!important;
  box-shadow:none!important;white-space:normal!important;
}
.view[data-screen="invoices"] #invoice-list .invoice-table td:nth-child(5) .pill::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;flex:0 0 7px}
.view[data-screen="invoices"] #invoice-list .invoice-table tr.huu-invoice-row--paid td:nth-child(5) .pill{background:#d0efde!important;color:#075f37!important;border:1px solid #a1d8bb!important}
.view[data-screen="invoices"] #invoice-list .invoice-table tr.huu-invoice-row--overdue td:nth-child(5) .pill{background:#ffe0de!important;color:#a52525!important;border:1px solid #f3bab5!important}
.view[data-screen="invoices"] #invoice-list .invoice-table tr.huu-invoice-row--awaiting td:nth-child(5) .pill{background:#ffedcf!important;color:#8c4a04!important;border:1px solid #efce94!important}
.view[data-screen="invoices"] #invoice-list .invoice-row-actions{gap:5px!important;justify-content:flex-start!important}
.view[data-screen="invoices"] #invoice-list .invoice-row-actions button{font-size:10.5px!important;font-weight:570!important;min-height:31px!important;padding:5px 8px!important;border-radius:8px!important}
@media(max-width:1270px){
 .view[data-screen="dashboard"] #stat-grid .stat .stat-label{font-size:11px!important}
 .view[data-screen="dashboard"] #stat-grid>.stat>strong{font-size:clamp(17px,1.85vw,22px)!important}
 .view[data-screen="dashboard"] .chart-panel .huu-chart-controls{justify-content:flex-start!important}
}
@media(max-width:760px){
 .view[data-screen="dashboard"] #stat-grid>.stat,.view[data-screen="dashboard"] #stat-grid>.stat:nth-child(-n+3){min-height:116px!important;padding:11px!important}
 .view[data-screen="dashboard"] #stat-grid .huu-kpi-heading{grid-template-columns:29px minmax(0,1fr)!important;min-height:29px!important;gap:7px!important}
 .view[data-screen="dashboard"] #stat-grid .huu-kpi-icon{width:29px!important;height:29px!important;min-width:29px!important}
 .view[data-screen="dashboard"] #stat-grid .huu-kpi-icon svg{width:19px!important;height:19px!important}
 .view[data-screen="dashboard"] #stat-grid .stat .stat-label{font-size:10.5px!important}
 .view[data-screen="dashboard"] #stat-grid>.stat>strong{font-size:clamp(16px,4.6vw,21px)!important}
 .view[data-screen="dashboard"] .chart-panel .huu-chart-controls{gap:7px!important;justify-content:flex-start!important}
 .view[data-screen="dashboard"] .chart-panel .chart-view-toggle{flex:1 1 100%!important;justify-content:space-between!important;order:3!important}
 .view[data-screen="dashboard"] .chart-panel .chart-view-toggle button{flex:1!important}
 .view[data-screen="invoices"] #invoice-list .invoice-table{min-width:0!important;table-layout:auto!important}
 .view[data-screen="invoices"] #invoice-list .invoice-table tr.huu-invoice-row td{padding:0!important;border-bottom:0!important}
 .view[data-screen="invoices"] #invoice-list .invoice-table tr.huu-invoice-row{border-bottom:1px solid #e5e9ec!important;padding:13px 1px!important}
 .view[data-screen="invoices"] #invoice-list .invoice-table .invoice-buyer{font-size:15px!important}
}
