/* Fit archive columns to the available space; narrow screens use complete cards. */
#receipts .receipt-table-wrap{width:100%;min-width:0;overflow:visible}
#receipts .receipt-table input[type=checkbox]{width:16px;min-width:16px;max-width:16px;height:16px;min-height:16px;padding:0;margin:0 auto;display:block}
#receipts .receipt-table{width:100%;min-width:0;table-layout:fixed}
#receipts .receipt-table th,#receipts .receipt-table td{min-width:0;max-width:none;padding:14px 10px;white-space:normal;overflow-wrap:anywhere}
#receipts .receipt-table th:nth-child(1),#receipts .receipt-table td:nth-child(1){width:36px;padding:10px 6px}
#receipts .receipt-table th:nth-child(2),#receipts .receipt-table td:nth-child(2){width:94px}
#receipts .receipt-table th:nth-child(3),#receipts .receipt-table td:nth-child(3){width:auto}
#receipts .receipt-table th:nth-child(4),#receipts .receipt-table td:nth-child(4){width:145px}
#receipts .receipt-table th:nth-child(5),#receipts .receipt-table td:nth-child(5){width:15%}
#receipts .receipt-table th:nth-child(6),#receipts .receipt-table td:nth-child(6){width:115px}
#receipts .receipt-table th:nth-child(7),#receipts .receipt-table td:nth-child(7){width:170px}
#receipts .receipt-document-cell{min-width:0;gap:10px}
#receipts .receipt-document-cell>span:last-child{min-width:0;flex:1;white-space:normal}
#receipts .receipt-document-cell b,#receipts .receipt-document-cell small{max-width:100%;white-space:normal;overflow-wrap:anywhere}
#receipts .receipt-type-chip,#receipts .receipt-category-chip{max-width:100%;white-space:normal;font-size:11px;line-height:1.4}
#receipts .receipt-row-actions{gap:6px;justify-content:flex-end}
#receipts .receipt-open-action{min-width:76px;height:36px;padding:0 10px}
.receipt-icon-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#receipts .receipt-icon-action{width:32px;height:36px;min-width:32px}
.data-logo-panel .workspace-toolbar{margin-bottom:12px}
.data-logo-panel .brand-logo-list{display:grid;gap:0}
.data-logo-panel .brand-logo-item{grid-template-columns:44px minmax(0,1fr) 32px 32px;gap:12px;padding:10px 4px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;min-height:64px}
.data-logo-panel .brand-logo-item:last-child{border-bottom:0}
.data-logo-panel .brand-logo-item img{width:40px;height:40px;padding:5px;border-radius:8px}
.data-logo-panel .brand-logo-item strong{font-size:14px;font-weight:600}
.data-logo-panel .brand-logo-item small{display:none}
.data-logo-panel .receipt-icon-action{width:32px;height:32px;min-width:32px;border-radius:8px}
.data-logo-panel .brand-logo-edit{background:#fff4e9;color:#a86937;border-color:#efdbc9}
.data-logo-panel .receipt-icon-action.delete{background:#fff5f4;color:#b4534b;border-color:#f0d4d0}
html[data-theme=dark] .data-logo-panel .brand-logo-item{background:transparent}
html[data-theme=dark] .data-logo-panel .receipt-icon-action.delete{background:#302020;color:#e9978e;border-color:#64413d}
#brandLogoModal{background:rgba(18,22,29,.46);backdrop-filter:blur(5px)}
#brandLogoModal .brand-logo-dialog{width:min(520px,100%);border-radius:20px;box-shadow:0 24px 80px #0003}
#brandLogoModal .receipt-dialog-head{padding:25px 26px 20px;align-items:flex-start;background:transparent}
#brandLogoModal .receipt-dialog-head h2{font-size:23px;letter-spacing:-.6px;line-height:1.3}
#brandLogoModal .receipt-dialog-head .muted{font-size:13px;line-height:1.6;margin:8px 0 0}
#brandLogoModal .receipt-modal-close{width:34px;height:34px;min-height:34px;flex:none;border:0;background:var(--bg);color:var(--ink);padding:0;display:grid;place-items:center;border-radius:9px}
#brandLogoModal .brand-logo-form{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:20px;padding:24px 26px 12px;overflow-y:auto}
#brandLogoModal .brand-logo-form label{font-size:13px;gap:9px;color:var(--muted);font-weight:500}
#brandLogoModal .brand-logo-form label[hidden]{display:none}
#brandLogoModal .brand-logo-form input,#brandLogoModal .brand-logo-form select{width:100%;min-width:0;min-height:46px;font-size:14px;border-color:var(--line);color:var(--ink);background:var(--panel,#fff);border-radius:10px;padding:0 12px}
#brandLogoModal .brand-logo-form input[type=file]{height:auto;min-height:90px;border:1px dashed #b8b8ac;padding:18px;background:var(--bg);line-height:1.6}
#brandLogoModal input[type=file]::file-selector-button{font:inherit;font-weight:600;border:1px solid var(--line);border-radius:7px;background:var(--panel,#fff);color:var(--ink);padding:8px 11px;margin-right:12px;cursor:pointer}
html[data-theme=dark] #brandLogoModal input[type=file]::file-selector-button{background:#333;color:#eee;border-color:#555}
#brandLogoModal .brand-logo-form small{font-size:12px;line-height:1.5}
#brandLogoModal .brand-logo-form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:2px}
#brandLogoModal .brand-logo-form-actions button{min-height:42px;padding:0 18px;font-size:14px;border-radius:9px}
#brandLogoModal #brandLogoState{font-size:12px;line-height:1.5;padding:0 26px 18px;margin:0}
html[data-theme=dark] #brandLogoModal .brand-logo-form input,html[data-theme=dark] #brandLogoModal .brand-logo-form select{background:#1d1d1d;color:#eee;border-color:#424242}
@media(max-width:1200px){
 #receipts .receipt-table,#receipts .receipt-table tbody{display:block;width:100%;min-width:0}
 #receipts .receipt-table thead{display:none}
 #receipts .receipt-table tbody{display:grid;gap:12px;padding:0 18px 16px}
 #receipts .receipt-table tbody tr{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 18px;border:1px solid var(--line);border-radius:12px;padding:18px;background:var(--panel,#fff)}
 #receipts .receipt-table tbody td{display:block;width:auto!important;min-width:0;max-width:none!important;padding:0!important;border:0;background:transparent!important;text-align:left}
 #receipts .receipt-table tbody td:nth-child(1){position:absolute;top:18px;right:18px;width:24px!important;text-align:center}
 #receipts .receipt-table tbody td:nth-child(3){grid-column:1/-1;grid-row:1;padding-right:34px!important}
 #receipts .receipt-table tbody td:nth-child(8){grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px!important}
 #receipts .receipt-table tbody td[colspan]{grid-column:1/-1;position:static!important;width:auto!important}
 #receipts .receipt-table tbody td:nth-child(2)::before{content:'Datum'}
 #receipts .receipt-table tbody td:nth-child(4)::before{content:'Belegart'}
 #receipts .receipt-table tbody td:nth-child(5)::before{content:'Rechnungsempfänger'}
 #receipts .receipt-table tbody td:nth-child(6)::before{content:'Betrag'}
 #receipts .receipt-table tbody td:nth-child(7)::before{content:'Kategorie'}
 #receipts .receipt-table tbody td:nth-child(n+2):nth-child(-n+7):not(:nth-child(3))::before{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}
 #receipts .receipt-filters{grid-template-columns:1fr 1fr}
 html[data-theme=dark] #receipts .receipt-table tbody tr{background:#191919}
}
@media(max-width:600px){#brandLogoModal .receipt-dialog-head{padding:20px}#brandLogoModal .brand-logo-form{padding:20px 20px 10px}#brandLogoModal .brand-logo-form-actions button{flex:1;padding:0 12px}#brandLogoModal #brandLogoState{padding:0 20px 16px}.data-logo-panel .brand-logo-item{gap:9px}#receipts .receipt-filters{grid-template-columns:1fr}#receipts .receipt-table tbody{padding:0 12px 12px}#receipts .receipt-table tbody tr{padding:15px;gap:12px}#receipts .receipt-table tbody td:nth-child(1){top:15px;right:15px}}

@media(min-width:1201px){#receipts .receipt-table :is(td,th):nth-child(3){width:24%}#receipts .receipt-table :is(td,th):nth-child(4){width:126px}#receipts .receipt-table :is(td,th):nth-child(5){width:auto}#receipts .receipt-table :is(td,th):nth-child(6){width:105px;text-align:right}#receipts .receipt-table :is(td,th):nth-child(7){width:130px}#receipts .receipt-table :is(td,th):nth-child(8){width:184px}#receipts .receipt-row-actions{display:grid;grid-template-columns:64px 25px 32px 32px;justify-content:end;gap:5px}#receipts .receipt-row-actions [data-edit-receipt]{grid-column:3}#receipts .receipt-row-actions [data-delete-receipt]{grid-column:4}#receipts .receipt-sent-symbol{width:25px}}.receipt-value-cell{font-variant-numeric:tabular-nums;font-weight:650}

#receipts .receipt-row-actions .receipt-open-action{width:100%;min-width:0;padding-inline:7px;justify-content:center}#receipts .receipt-row-actions .receipt-icon-action{width:32px;min-width:32px;margin:0}#receipts .receipt-row-actions .receipt-sent-symbol{margin:0;justify-self:center}


@media(min-width:1201px){
 #receipts .receipt-table :is(th,td){box-sizing:border-box}
 #receipts .receipt-table :is(th,td):nth-child(3){width:26%}
 #receipts .receipt-table :is(th,td):nth-child(4){width:124px}
 #receipts .receipt-table :is(th,td):nth-child(5){width:auto}
 #receipts .receipt-table :is(th,td):nth-child(6){width:100px}
 #receipts .receipt-table :is(th,td):nth-child(7){width:156px}
 #receipts .receipt-table :is(th,td):nth-child(8){width:228px}
 #receipts .receipt-row-actions{display:grid;grid-template-columns:88px 34px 32px 32px;gap:6px}
}
#receipts .receipt-category-chip{white-space:nowrap;max-width:none}
#receipts .receipt-row-actions .receipt-sent-symbol{display:inline-flex;align-items:center;justify-content:center;width:34px;height:36px;border:1px solid #ccd6df;border-radius:9px;background:#eef2f6;color:#718296;opacity:1;box-sizing:border-box}
#receipts .receipt-sent-symbol svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8}
#receipts .receipt-row-actions .receipt-sent-symbol.sent{background:#e1f3e9;border-color:#93c9ac;color:#21794f}
#receipts .receipt-row-actions .receipt-sent-symbol.review{background:#fff0de;border-color:#edc590;color:#a65e10}
