/* HUU 9.0.39: compact invoice date fields, dashboard period controlled only inside chart */
.view[data-screen="dashboard"]>.dashboard-toolbar{display:none!important}
.view[data-screen="dashboard"] .stat-grid{margin-top:16px!important}
/* Chart period controls, no calendar/period card above the financial tiles */
.view[data-screen="dashboard"] .chart-title-row{display:flex!important;align-items:flex-start!important;gap:15px;flex-wrap:wrap!important}
.view[data-screen="dashboard"] .huu-chart-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0;margin-left:auto}
.view[data-screen="dashboard"] .huu-chart-period,
.view[data-screen="dashboard"] .huu-chart-currencies{display:inline-flex;align-items:center;border:1px solid #e6e6e3;background:#f9faf9;border-radius:10px;padding:3px;gap:3px;white-space:nowrap}
.view[data-screen="dashboard"] .huu-chart-period button{display:grid;place-items:center;width:31px;height:33px;border:0;background:#fff;border-radius:7px;color:#bc641d;font-size:24px;font-weight:700;line-height:1}
.view[data-screen="dashboard"] .huu-chart-period button:hover{background:#fff0e0}
.view[data-screen="dashboard"] #huu-chart-year-label{font-weight:800;min-width:45px;text-align:center;color:#2b3843;font-variant-numeric:tabular-nums}
.view[data-screen="dashboard"] .huu-chart-currencies button{border:0;border-radius:7px;padding:8px 10px;background:transparent;color:#687582;font-weight:750;min-height:33px}
.view[data-screen="dashboard"] .huu-chart-currencies button.active{background:#fff;color:#ea7417;box-shadow:0 2px 7px #202d3d12}
.view[data-screen="dashboard"] .huu-chart-back{display:inline-block;border:0;background:#fff6ed;color:#c15d11;font-size:12px;font-weight:800;border-radius:9px;padding:10px 13px;margin:0 0 7px}
.view[data-screen="dashboard"] .huu-chart-back[hidden]{display:none!important}
.view[data-screen="dashboard"] .huu-chart-hit{cursor:pointer}
/* Keep both invoice types compact: their form is shared. */
#invoice-form .invoice-core-grid .huu-invoice-dates{display:grid!important;grid-template-columns:repeat(2,minmax(0,228px))!important;align-items:start!important;column-gap:15px!important;row-gap:14px!important;width:100%!important;max-width:472px!important;min-width:0!important;margin:16px 0 23px!important;grid-column:1/-1!important}
#invoice-form .invoice-core-grid .huu-invoice-dates>label{display:flex!important;flex-direction:column!important;gap:7px!important;align-items:stretch!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;width:100%!important;max-width:100%!important;font-size:12px!important;font-weight:750!important;color:#586578!important;line-height:1.4!important}
#invoice-form .invoice-core-grid .huu-invoice-dates>label>input,
#invoice-form .invoice-core-grid .huu-invoice-dates>label>select{display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;min-height:43px!important;height:44px!important;margin:0!important;padding:9px 11px!important;border-radius:10px!important;border:1px solid #dce2e6!important;background-color:white!important;font-size:13px!important;color:#233545!important}
#invoice-form .invoice-core-grid .huu-invoice-dates>label:focus-within :is(input,select){border-color:#ef8b39!important;box-shadow:0 0 0 3px #fbdcc5!important;outline:0!important}
#invoice-form .invoice-core-grid .huu-invoice-dates #invoice-own-days-wrap[hidden]{display:none!important}
#invoice-form .invoice-core-grid .huu-invoice-dates .field-help{display:block!important;font-size:10px!important;line-height:1.4!important;color:#8b959b!important;margin:1px 0 0!important;grid-column:auto!important}
@media(max-width:1060px){
 .view[data-screen="dashboard"] .huu-chart-controls{margin-left:0;justify-content:flex-start;width:100%}
}
@media(max-width:650px){
 #invoice-form .invoice-core-grid .huu-invoice-dates{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:100%!important;column-gap:10px!important}
 .view[data-screen="dashboard"] .huu-chart-controls{gap:6px}
 .view[data-screen="dashboard"] .huu-chart-controls .chart-view-toggle{width:auto!important;flex:1 1 100%;order:-1}
 .view[data-screen="dashboard"] .huu-chart-currencies{margin-left:auto}
}
@media(max-width:390px){
 #invoice-form .invoice-core-grid .huu-invoice-dates{grid-template-columns:1fr!important}
}
