/* Shop */
.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.shop-product{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-md)}
.shop-product.inactive{opacity:.72}
.shop-product-image{aspect-ratio:4/3;background:#fff;padding:8px;box-sizing:border-box;display:grid;place-items:center;overflow:hidden;border-bottom:1px solid var(--line)}
.shop-product-image img{width:100%;height:100%;object-fit:contain;display:block}
.shop-product-image img.shop-placeholder{width:40%;height:auto;object-fit:contain;opacity:.35}
.shop-product-image.missing img{display:none}
.shop-product-body{padding:14px 16px 6px;display:grid;gap:8px;flex:1;align-content:start}
.shop-product-body h3{margin:0;font-size:16px;line-height:1.3}
.shop-product-body p{margin:0;font-size:12px;color:var(--muted);line-height:1.55;white-space:pre-line}
.shop-product-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.shop-price{font-size:18px;color:var(--red)}
.shop-stock{justify-self:start;padding:4px 10px;border-radius:12px;font-size:10px;font-weight:800}
.shop-stock-in{background:#e7f5ec;color:#1d7a47}
.shop-stock-out{background:#fff4e0;color:#8a5b10}
.shop-stock-missing{background:#eef1f4;color:#4b5563}
.shop-product-actions{display:flex;gap:8px;flex-wrap:wrap;padding:10px 16px 16px}
.shop-product-actions .red-btn{flex:1}
.shop-order-product{font-weight:800;margin:0 0 14px}
.shop-order .shop-order-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.shop-order-status{display:inline-block;padding:4px 10px;border-radius:12px;font-size:10px;font-weight:800;background:#eef1f4;color:#4b5563;white-space:nowrap}
.shop-status-bestellt{background:#fff4e0;color:#8a5b10}
.shop-status-bestätigt{background:#e7f5ec;color:#1d7a47}
.shop-status-erledigt{background:#e8eefb;color:#2c4f9e}
.shop-status-abgelehnt,.shop-status-storniert{background:#fbe9ec;color:#9d2337}
.shop-order-filter{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800}
.shop-order-filter select,.shop-order-table select,.accounting-toolbar select{padding:8px;border:1px solid var(--line);border-radius:9px;background:#fff}
.shop-admin-panel[hidden],#shopMyOrdersPanel[hidden],#shopAdminOrdersPanel[hidden],#accountingFormPanel[hidden],#accountingClose[hidden]{display:none!important}

/* Buchhaltung */
.accounting-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.accounting-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.accounting-toolbar label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800}
.accounting-year-status{padding:6px 12px;border-radius:14px;background:#e7f5ec;color:#1d7a47;font-size:11px;font-weight:800}
.accounting-year-status.closed{background:#eef1f4;color:#4b5563}
.accounting-summary-cards{max-width:none}
.accounting-summary-cards .stat-value{font-size:24px;white-space:nowrap}
.accounting-carry{margin:0 0 14px;font-size:12px;color:var(--muted)}
.accounting-actions-bar{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.accounting-money.negative{color:var(--danger)}
.stat-card.accent .accounting-money.negative{color:#fff;text-decoration:underline}
.accounting-table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius-md);background:#fff}
.accounting-table{width:100%;border-collapse:collapse;font-size:12px}
.accounting-table th,.accounting-table td{padding:9px 8px;border-bottom:1px solid #ece7e2;text-align:left;vertical-align:middle}
.accounting-table thead th{background:#f3f5f6;font-size:11px;white-space:nowrap}
.accounting-table tfoot th,.accounting-table tfoot td{background:#faf8f5;font-weight:800;border-bottom:0}
.accounting-table .num{text-align:right;white-space:nowrap}
.accounting-table td:nth-child(-n+2){white-space:nowrap}
.accounting-table tr.editing td{background:#fff5f7}
.accounting-table td.accounting-actions{white-space:nowrap;width:1%}
.accounting-table td.accounting-actions button{padding:6px 8px;font-size:10px;margin-left:4px}
.accounting-table thead th{letter-spacing:.02em}
.accounting-summaries{display:grid;gap:16px}
.accounting-summary tbody th{font-weight:600}
.accounting-inline-form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.accounting-inline-form label{display:grid;gap:6px;font-size:11px;font-weight:800;color:#5f6267}
.accounting-inline-form input,.accounting-inline-form select{border:1px solid var(--line);background:#fff;border-radius:11px;padding:10px;min-width:200px}
.accounting-hint{font-size:10px}
.accounting-print{display:none}
@media(max-width:620px){
 .shop-grid{grid-template-columns:1fr}
 .accounting-summary-cards .stat-value{font-size:21px}
  .accounting-inline-form input,.accounting-inline-form select{min-width:0;width:100%}
 .accounting-inline-form label{flex:1 1 100%}
}
@media print{
 body.printing-accounting>*:not(#accountingPrintView){display:none!important}
 body.printing-accounting #accountingPrintView{display:block!important;color:#000;font-size:11px}
 #accountingPrintView h1{font-size:20px;margin:0 0 4px}
 #accountingPrintView h2{font-size:14px;margin:18px 0 6px}
 #accountingPrintView .accounting-table-scroll{border:0;overflow:visible}
 #accountingPrintView .accounting-table th,#accountingPrintView .accounting-table td{padding:4px 6px;border-bottom:1px solid #ccc}
}
.accounting-export-hint{margin:-8px 0 18px}
#accountingReopen[hidden]{display:none!important}
.accounting-eur th[scope="row"]{font-weight:400}
.accounting-eur .accounting-eur-head th{background:#f3f5f6;font-size:11px;letter-spacing:.02em}
.accounting-eur .accounting-eur-sum th,.accounting-eur .accounting-eur-sum td{font-weight:800}
.accounting-eur .accounting-eur-result th,.accounting-eur .accounting-eur-result td{font-weight:800;border-top:2px solid #333}
.accounting-signatures{display:none}
.log-detail{margin-top:4px;color:#5f6267;font-size:11px;line-height:1.5}
@media print{
 #accountingPrintView .accounting-signatures{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:48px}
 #accountingPrintView .accounting-signatures div{border-top:1px solid #000;padding-top:4px;font-size:10px}
 #accountingPrintView h2{break-after:avoid}
 #accountingPrintView table{break-inside:auto}
 #accountingPrintView .accounting-eur,#accountingPrintView .accounting-summary{break-inside:avoid}
 #accountingPrintView tr{break-inside:avoid}
}
