/* HUU 9.0.51 – purposeful invoice lists, aligned reminder form and refined KPI line weight. */
/* Invoice lists – client-first hierarchy and soft full-row status coloring (regular + advances). */
.view[data-screen="invoices"] .invoice-table{width:100%;table-layout:auto;border-collapse:separate;border-spacing:0 5px;min-width:720px}
.view[data-screen="invoices"] .invoice-table th{background:transparent!important;border:0!important;padding:10px 12px!important;font-size:10px!important;letter-spacing:.065em!important}
.view[data-screen="invoices"] .invoice-table td{background:#fff;border-bottom:1px solid #e6ebef!important;border-top:1px solid #e6ebef;padding:17px 12px!important;vertical-align:middle}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--paid td{background:#d9f2e3!important;border-top-color:#9fd9b6!important;border-bottom-color:#9fd9b6!important}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--overdue td{background:#ffe0dc!important;border-top-color:#efada5!important;border-bottom-color:#efada5!important}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--awaiting td{background:#ffedce!important;border-top-color:#efca87!important;border-bottom-color:#efca87!important}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--void td{background:#f5f6f8!important;border-top-color:#e9ecf0;border-bottom-color:#e9ecf0!important}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td:first-child{border-radius:11px 0 0 11px;border-left:4px solid #cbd5e1;padding-left:13px!important}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td:last-child{border-radius:0 11px 11px 0;border-right:1px solid #e1e7eb}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--paid td:first-child{border-left-color:#259b60}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--overdue td:first-child{border-left-color:#d84f4e}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--awaiting td:first-child{border-left-color:#e59a39}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row:hover td{filter:none!important;backdrop-filter:none!important;text-shadow:none!important}
.view[data-screen="invoices"] .invoice-table td:first-child{min-width:132px!important;font-weight:500!important}
.view[data-screen="invoices"] .invoice-table td:nth-child(2){min-width:205px!important;width:26%}
.view[data-screen="invoices"] .invoice-table td:nth-child(5){min-width:140px!important}
.view[data-screen="invoices"] .invoice-table td:nth-child(6){min-width:160px!important}
.view[data-screen="invoices"] .invoice-table .invoice-number-link{display:block!important;text-align:left!important;border:0!important;background:transparent!important;padding:0!important;min-height:auto!important;color:#64748b!important;font-size:12px!important;line-height:1.4!important;font-weight:720!important;text-decoration:underline;text-decoration-color:#b9c5d0;text-underline-offset:3px}
.view[data-screen="invoices"] .invoice-table .invoice-number-link:hover{color:#cf671d!important;text-decoration-color:#cf671d}
.view[data-screen="invoices"] .invoice-table .invoice-kind{display:inline-flex;margin:6px 0 0!important;font-size:9px!important;padding:3px 6px!important;white-space:nowrap}
.view[data-screen="invoices"] .invoice-table .invoice-buyer{display:block;font-size:15.5px!important;font-weight:830!important;line-height:1.3!important;letter-spacing:-.2px;color:#202f3e!important;overflow-wrap:anywhere}
.view[data-screen="invoices"] .invoice-table .invoice-row-subtitle{font-size:11px!important;line-height:1.4;color:#435466!important;max-width:265px;margin-top:5px}
.view[data-screen="invoices"] .invoice-table td:nth-child(4) strong{font-size:13px;font-weight:850;white-space:nowrap;font-variant-numeric:tabular-nums}
.view[data-screen="invoices"] .invoice-table td:nth-child(5) .pill{display:inline-flex;align-items:center;gap:7px;min-height:31px;max-width:190px;padding:7px 10px!important;border-radius:9px!important;font-size:11.5px!important;line-height:1.25!important;font-weight:830!important;color:#854000!important;background:#ffd996!important;white-space:normal}
.view[data-screen="invoices"] .invoice-table td:nth-child(5) .pill::before{content:'';width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#d17b12}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--paid .pill{color:#075d35!important;background:#b9e9cd!important}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--paid .pill::before{background:#10824e}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--overdue .pill{color:#9c2020!important;background:#ffc4be!important}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--overdue .pill::before{background:#ca3838}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--void .pill{color:#5c6775!important;background:#e4e9ed!important}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--void .pill::before{background:#64748b}
.view[data-screen="invoices"] .invoice-row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;max-width:none!important}
.view[data-screen="invoices"] .invoice-row-actions button{min-height:33px;white-space:nowrap!important;text-align:center!important;font-size:11px!important;padding:7px 9px!important;border-radius:8px!important}
/* Alerts – actual three-column input grid with consistently aligned field labels. */
.view[data-screen="notifications"] #personal-reminder-form{max-width:970px!important}
.view[data-screen="notifications"] #personal-reminder-form .huu-reminder-form-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;align-items:start!important;margin:20px 0!important}
.view[data-screen="notifications"] #personal-reminder-form .huu-reminder-form-grid>label{grid-column:span 1;min-width:0;min-height:0;display:flex!important;flex-direction:column;gap:7px!important;margin:0!important;color:#435265!important;line-height:1.25!important;font-size:12px!important;font-weight:750!important}
.view[data-screen="notifications"] #personal-reminder-form .huu-reminder-form-grid>label.huu-reminder-wide{grid-column:1/-1}
.view[data-screen="notifications"] #personal-reminder-form .huu-reminder-form-grid>label.huu-reminder-customer{grid-column:span 2}
.view[data-screen="notifications"] #personal-reminder-form .huu-reminder-form-grid :is(input,select){width:100%;height:46px!important;min-height:46px!important;min-width:0!important;box-sizing:border-box;font-size:13px!important;margin:0!important}
.view[data-screen="notifications"] #personal-reminder-form .form-actions{display:flex;align-items:center;gap:10px!important;margin-top:22px!important;padding-top:18px!important}
/* KPI symbols remain clear but slightly less heavy than v9.0.50. */
.view[data-screen="dashboard"] #stat-grid .huu-kpi-icon svg{stroke-width:2.1!important}
@media(max-width:900px){
 .view[data-screen="notifications"] #personal-reminder-form .huu-reminder-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .view[data-screen="notifications"] #personal-reminder-form .huu-reminder-form-grid>label.huu-reminder-customer{grid-column:span 1}
 .view[data-screen="notifications"] #personal-reminder-form .huu-reminder-form-grid>label.huu-reminder-repeat{grid-column:span 2}
}
@media(max-width:760px){
 .view[data-screen="invoices"] .invoice-table{display:block!important;min-width:0!important;width:100%;border-spacing:0}
 .view[data-screen="invoices"] .invoice-table tbody{display:grid;gap:10px}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 12px;border:1px solid #e5eaf0;border-left:4px solid #cbd5e1;border-radius:13px;padding:14px 15px;box-shadow:0 2px 8px #2333480b!important}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--paid{background:#d9f2e3;border-left-color:#259b60}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--overdue{background:#ffe0dc;border-left-color:#d84f4e}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--awaiting{background:#ffedce;border-left-color:#e59a39}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--void{background:#f5f6f8}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td{display:block;min-width:0!important;width:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;filter:none!important}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td:first-child{grid-column:1;grid-row:1;padding-left:0!important;border-left:0!important}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td:nth-child(2){grid-column:1/-1;grid-row:2}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td:nth-child(3){grid-column:1/-1;grid-row:3;font-size:11px}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td:nth-child(4){grid-column:2;grid-row:1;text-align:right}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td:nth-child(5){grid-column:1/-1;grid-row:4}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td:nth-child(6){grid-column:1/-1;grid-row:5;border-top:1px solid #e2e6ec!important;padding-top:10px!important}
 .view[data-screen="invoices"] .invoice-table .invoice-buyer{font-size:16px!important}
 .view[data-screen="invoices"] .invoice-table td:nth-child(5) .pill{min-height:28px;padding:6px 9px!important}
}
@media(max-width:540px){
 .view[data-screen="notifications"] #personal-reminder-form .huu-reminder-form-grid{grid-template-columns:1fr!important;gap:14px!important}
 .view[data-screen="notifications"] #personal-reminder-form .huu-reminder-form-grid>label.huu-reminder-wide,
 .view[data-screen="notifications"] #personal-reminder-form .huu-reminder-form-grid>label.huu-reminder-customer,
 .view[data-screen="notifications"] #personal-reminder-form .huu-reminder-form-grid>label.huu-reminder-repeat{grid-column:1!important}
}

/* 9.0.53: no compositor filter on table cell text. Contrast remains stable on mouse hover. */
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td,
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row:hover td{
 filter:none!important;opacity:1!important;backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;text-shadow:none!important;
 transform:none!important;transition:background-color .12s ease,border-color .12s ease!important;
}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--paid:hover td{background:#d1ecdd!important}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--overdue:hover td{background:#ffd4cf!important}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--awaiting:hover td{background:#ffe5bb!important}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--paid td:first-child{border-left-color:#0f9153!important}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--overdue td:first-child{border-left-color:#cb3333!important}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--awaiting td:first-child{border-left-color:#ce7a10!important}
@media(max-width:760px){
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--paid{background:#d9f2e3!important}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--overdue{background:#ffe0dc!important}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row--awaiting{background:#ffedce!important}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row:hover td{background:transparent!important}
}
