/* HUU 9.0.52 — Číslo dokladu první, dobře čitelný zákazník hned vedle.
 * Pouze seznam Faktur a Zálohových faktur; finanční logika beze změny.
 */
.view[data-screen="invoices"] .invoice-table-wrap{overflow-x:auto;max-width:100%}
.view[data-screen="invoices"] .invoice-table{
  width:100%!important;min-width:790px!important;table-layout:fixed!important;
}
/* Priorita sloupců: malé číslo, dominantní odběratel, datum, částka, stav, akce. */
.view[data-screen="invoices"] .invoice-table :is(th,td):nth-child(1){width:13%!important;min-width:0!important}
.view[data-screen="invoices"] .invoice-table :is(th,td):nth-child(2){width:28%!important;min-width:0!important}
.view[data-screen="invoices"] .invoice-table :is(th,td):nth-child(3){width:11%!important;min-width:0!important}
.view[data-screen="invoices"] .invoice-table :is(th,td):nth-child(4){width:13%!important;min-width:0!important}
.view[data-screen="invoices"] .invoice-table :is(th,td):nth-child(5){width:15%!important;min-width:0!important}
.view[data-screen="invoices"] .invoice-table :is(th,td):nth-child(6){width:20%!important;min-width:0!important}
.view[data-screen="invoices"] .invoice-table th{padding:10px 9px!important;text-align:left!important}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td{padding:15px 9px!important}
.view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td:first-child{padding-left:11px!important}
.view[data-screen="invoices"] .invoice-table .invoice-number-link{
 display:inline-block!important;color:#303b49!important;font-size:11.5px!important;
 font-weight:650!important;line-height:1.4!important;white-space:normal!important;
 overflow-wrap:anywhere!important;max-width:100%!important;text-align:left!important;
}
.view[data-screen="invoices"] .invoice-table .invoice-kind{
 display:block!important;width:max-content;max-width:100%;margin-top:6px!important;
 font-size:9px!important;white-space:normal!important;font-weight:550!important;
}
.view[data-screen="invoices"] .invoice-table .invoice-buyer{
 display:block!important;color:#1c2937!important;font-size:18px!important;
 font-weight:780!important;line-height:1.25!important;letter-spacing:-.25px!important;
 white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;
 opacity:1!important;visibility:visible!important;
}
.view[data-screen="invoices"] .invoice-table .invoice-row-subtitle{
 display:block!important;font-size:12px!important;line-height:1.4!important;
 color:#46515d!important;margin-top:4px!important;max-width:none!important;
 white-space:normal!important;
}
.view[data-screen="invoices"] .invoice-table td:nth-child(4) strong{
 font-size:13px!important;white-space:nowrap!important;font-weight:780!important;
}
.view[data-screen="invoices"] .invoice-table td:nth-child(5) .pill{
 font-size:11px!important;font-weight:750!important;padding:6px 8px!important;
 white-space:normal!important;
}
.view[data-screen="invoices"] .invoice-row-actions{gap:5px!important;flex-wrap:wrap!important}
.view[data-screen="invoices"] .invoice-row-actions button{
 padding:6px 7px!important;min-height:31px!important;font-size:10.5px!important;
 white-space:normal!important;line-height:1.25!important;
}
@media(max-width:760px){
 .view[data-screen="invoices"] .invoice-table{min-width:0!important;table-layout:auto!important}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row{
  display:grid!important;grid-template-columns:minmax(96px,29%) minmax(0,1fr)!important;
  gap:9px 12px!important;align-items:start!important;
 }
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td{
  width:auto!important;min-width:0!important;padding:0!important;
 }
 /* I v mobilním řádku je vlevo nejdřív číslo, ihned vedle zákazník. */
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td:nth-child(1){grid-column:1!important;grid-row:1!important;padding:0!important}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td:nth-child(2){grid-column:2!important;grid-row:1!important}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td:nth-child(3){grid-column:1!important;grid-row:3!important;font-size:11px!important}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td:nth-child(4){grid-column:2!important;grid-row:2!important;text-align:left!important}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td:nth-child(5){grid-column:1!important;grid-row:2!important}
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row td:nth-child(6){grid-column:1/-1!important;grid-row:4!important;border-top:1px solid #dfe7ec!important;padding-top:10px!important}
 .view[data-screen="invoices"] .invoice-table .invoice-buyer{font-size:16.5px!important}
 .view[data-screen="invoices"] .invoice-table .invoice-row-subtitle{font-size:11px!important}
 .view[data-screen="invoices"] .invoice-table .invoice-number-link{font-size:11px!important}
 .view[data-screen="invoices"] .invoice-table .invoice-kind{font-size:8.5px!important}
}
@media(max-width:390px){
 .view[data-screen="invoices"] .invoice-table tr.huu-invoice-row{grid-template-columns:minmax(90px,30%) minmax(0,1fr)!important;gap:8px!important}
 .view[data-screen="invoices"] .invoice-table .invoice-buyer{font-size:15.5px!important}
}
