.shop-toolbar,.shop-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.shop-toolbar{margin:10px 0 14px}.shop-toolbar .field{min-width:min(180px,100%);max-width:100%;flex:0 1 320px;margin:0}.shop-actions{align-items:center}.shop-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}.shop-wide{grid-column:1/-1}.shop-fields .shop-actions{grid-column:1/-1}.shop-edit{margin:12px 0}.shop-edit .field{min-width:0;margin:0}.shop-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));gap:10px;margin:12px 0}.shop-metric{padding:12px;border:1px solid var(--line,#d4dfe7);border-radius:12px;min-width:0}.shop-metric small,.shop-table td small{display:block;font-size:.78rem;opacity:.82}.shop-metric strong{display:block;margin-top:6px;font-size:1.22rem;overflow-wrap:anywhere}.shop-table{min-width:760px}.shop-table td{white-space:normal;overflow-wrap:anywhere}.shop-table .shop-group th{background:rgba(26,130,121,.10);text-align:left;padding:8px}.shop-done td:nth-child(2) strong{text-decoration:line-through}.shop-check{display:flex;align-items:center;gap:8px;padding:8px}.shop-check input,.shop-table input[type=checkbox]{width:18px;height:18px;accent-color:#187c74}.shop-evidence{padding:8px 0;overflow-wrap:anywhere}.shop-edit input,.shop-edit select,.shop-toolbar select{max-width:100%;min-width:0}.shop-table .shop-actions{gap:5px}.shop-table .small-btn{white-space:normal}.shop-table .shop-done{opacity:.85}#shop-receipt-area summary{cursor:pointer}#shop-budget-values{min-width:0}.shop-print-mode #shop-printable{overflow:visible}@media(max-width:768px){.shop-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-toolbar .field{flex:1 1 160px}.shop-table{min-width:700px}}@media(max-width:450px){.shop-fields{grid-template-columns:1fr}.shop-toolbar .field{flex-basis:100%}.shop-toolbar button{white-space:normal}.shop-actions button{white-space:normal}}@media print{body.shop-print-mode .sidebar,body.shop-print-mode #topbar,body.shop-print-mode #content>*:not(#shop-printable),body.shop-print-mode #shop-printable .shop-toolbar,body.shop-print-mode #shop-printable button,body.shop-print-mode #shop-printable thead th:last-child,body.shop-print-mode #shop-printable tbody td:last-child{display:none!important}body.shop-print-mode #app,body.shop-print-mode main,body.shop-print-mode #content{display:block!important;width:100%!important;margin:0!important;padding:0!important;max-width:none!important}body.shop-print-mode #shop-printable{margin:0!important;padding:0!important;border:none!important;box-shadow:none!important}body.shop-print-mode #shop-printable .kkm21-table-wrap{overflow:visible!important}body.shop-print-mode #shop-printable table{min-width:0!important;width:100%!important;font-size:9pt}body.shop-print-mode #shop-printable tr{break-inside:avoid}}
/* Keep the existing application header intact; adapt only the new shopping panels. */
#shop-printable .panel-head,#shop-catalog-panel .panel-head{flex-wrap:wrap;gap:10px}#shop-printable .panel-head>div,#shop-catalog-panel .panel-head>div{min-width:0}#shop-catalog-panel .panel-head button{max-width:100%;white-space:normal}
@media screen and (max-width:600px){
 #shop-printable .panel-head,#shop-catalog-panel .panel-head{flex-direction:column;align-items:stretch}#shop-printable .panel-head .shop-actions{flex-direction:row;align-items:center}#shop-printable .panel-head .shop-actions button{flex:1 1 auto}#shop-catalog-panel .panel-head button{align-self:flex-start}
 .shop-table{min-width:0;display:block;width:100%}.shop-table thead{display:none}.shop-table tbody{display:block;width:100%}.shop-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 9px;padding:10px;border-bottom:1px solid var(--line,#d4dfe7)}.shop-table tbody tr.shop-group{display:block;padding:0}.shop-table .shop-group th{display:block}.shop-table td{padding:5px!important;border:0;display:block;text-align:left!important;min-width:0}.shop-table td[colspan]{grid-column:1/-1}.shop-items-table tr:not(.shop-group) td:nth-child(1){grid-column:1;grid-row:1}.shop-items-table tr:not(.shop-group) td:nth-child(2){grid-column:2;grid-row:1}.shop-items-table td:nth-child(7),.shop-items-table td:nth-child(8),.shop-catalog-table td:nth-child(1),.shop-catalog-table td:nth-child(6){grid-column:1/-1}.shop-items-table td:nth-child(3):before{content:'Menge'}.shop-items-table td:nth-child(4):before,.shop-catalog-table td:nth-child(3):before{content:'Händler'}.shop-items-table td:nth-child(5):before{content:'Geplant'}.shop-items-table td:nth-child(6):before{content:'Tatsächlich'}.shop-items-table td:nth-child(7):before{content:'Hinzugefügt / erledigt von'}.shop-catalog-table td:nth-child(2):before{content:'Standardmenge'}.shop-catalog-table td:nth-child(4):before{content:'Schätzpreis / Einheit'}.shop-catalog-table td:nth-child(5):before{content:'Letzter Ist-Preis / Einheit'}.shop-table td:before{display:block;opacity:.75;font-size:.72rem;margin-bottom:3px}.shop-table td[colspan]:before{content:none!important}
}
