/* Modul Markt: Klassen mit Präfix mk- */
.mk-top{margin:0 0 10px;align-items:flex-end}
.mk-filter{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.mk-sel{display:flex;flex-direction:column;gap:2px;font-size:.78rem;color:var(--muted);flex:1 1 110px;min-width:100px}
.mk-sel select,.mk-sel input{min-height:40px;padding:6px 8px;color:var(--text)}
.mk-tabs .chips{position:static;margin:0 0 6px;padding-top:0}
.mk-warn{background:#fff8ea;border:1px solid var(--accent);border-radius:8px;padding:8px 10px;margin:8px 0;font-size:.88rem}
.mk-abgesagt .t{text-decoration:line-through;color:var(--muted)}
.mk-chk{display:flex;flex-wrap:wrap;gap:4px 14px}
.mk-chk-i{display:flex;align-items:center;gap:8px;padding:5px 0;font-size:.9rem;cursor:pointer}
.mk-chk-i input{width:20px;height:20px;flex:none}
.mk-auswahl{margin-top:6px}
.mk-ag{font-weight:700;color:var(--headline);margin:12px 0 2px;border-bottom:1px solid var(--border)}
.mk-feier{margin:8px 0 0}
.mk-uz .mk-dat{flex:none;width:74px;font-weight:600;font-size:.85rem;color:var(--headline)}
.mk-wb{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}
.mk-bar{margin-top:3px;min-width:60px}
.tbl.mk-wt td:first-child,.tbl.mk-wt th:first-child{position:sticky;left:0;background:#fff}
.tbl.mk-wt th:first-child{background:#f6efe0}
.mk .tbl .muted{font-weight:400}

/* Jahreskalender (Bildschirm) */
.mk-scroll{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius);background:#fff;-webkit-overflow-scrolling:touch}
.mk-jahr{min-width:1180px;color:#000;background:#fff;font-size:11px}
.mk-kopf{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 8px;border-bottom:1px solid #999}
.mk-titel{font-weight:700;font-size:15px;color:var(--headline)}
.mk-legende{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;font-size:10px}
.mk-legende>span{display:inline-flex;align-items:center;gap:3px}
.mk-raster{display:grid;grid-template-columns:repeat(12,1fr);grid-auto-rows:26px;grid-template-rows:22px}
.mk-mkopf{background:var(--headline);color:#fff;font-weight:700;text-align:center;line-height:22px;font-size:11px;border-left:1px solid #fff}
.mk-z{position:relative;display:flex;align-items:center;gap:2px;padding:0 2px;border-left:1px solid #bbb;border-bottom:1px solid #ddd;overflow:hidden;white-space:nowrap;min-width:0}
.mk-z.mk-leer{background:#eee}
.mk-z.mk-we{background:#efe9de}
.mk-z.mk-ft{background:#f8d9d4}
.mk-d{flex:none;width:23px;font-size:8px;color:#444;line-height:1}
.mk-d b{font-size:10px;color:#000;margin-right:1px}
.mk-i{display:flex;align-items:center;gap:2px;min-width:0;overflow:hidden;flex:1}
.mk-e{font-style:normal;font-size:9px;font-weight:600;padding:0 3px;border-radius:2px;border:1px solid transparent;line-height:1.35;max-width:100%;overflow:hidden;text-overflow:clip}
.mk-e.mk-woche{background:#ffd98a;border-color:#c97f00;color:#3a2600}
.mk-e.mk-sonder{background:#e9b8d6;border-color:#8a2a68;color:#3a002a}
.mk-e.mk-vorl{border-style:dashed;background-image:none;opacity:.85}
.mk-e.mk-abg{text-decoration:line-through;background:#eee;border-color:#999;color:#777;font-weight:400}
.mk-fn{font-size:7.5px;font-style:italic;color:#7a1f14;flex:none;overflow:hidden;text-overflow:ellipsis;min-width:0}
.mk-kw{flex:none;font-size:7.5px;font-weight:700;border:1px solid #555;border-radius:2px;padding:0 2px;line-height:1.2;background:#fff;color:#000;margin-left:auto}
.mk-sw{display:inline-block;width:12px;height:10px;border:1px solid #999}
.mk-sw.mk-we{background:#efe9de}.mk-sw.mk-ft{background:#f8d9d4}
.mk-legende .mk-kw{margin:0}

/* Packliste (Bildschirm) */
.mk-vorschau{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:10px;overflow-x:auto}
.mk-pack{min-width:560px;color:#000;font-size:12px}
.mk-pk{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:2px solid #000;padding-bottom:6px;margin-bottom:8px}
.mk-pt{font-size:22px;font-weight:700;color:var(--headline)}.mk-ps{color:#555}
.mk-pm{text-align:right;font-size:14px}
.mk-kasse,.mk-art{border-collapse:collapse;width:100%}
.mk-kasse{margin-bottom:10px}
.mk-kasse th,.mk-kasse td,.mk-art th,.mk-art td{border:1px solid #777;padding:3px 5px;text-align:left}
.mk-kasse thead th,.mk-art thead th{background:#eee;font-weight:700}
.mk-kasse tbody th{font-weight:600;width:28%;white-space:nowrap}
.mk-art td.r,.mk-art th.r{text-align:right}
.mk-art td{height:26px}
.mk-art td.mk-an{font-weight:500}
.mk-art tr.mk-gr td{background:#f4ead2;font-weight:700;height:20px}
.mk-hand{min-width:44px}
.mk-pf{margin-top:6px;font-size:10px;color:#555}

/* Druck */
@media print{
 #print-area .mk-jahr{width:281mm;height:193mm;min-width:0;font-size:6.5pt;display:flex;flex-direction:column;overflow:hidden;page-break-inside:avoid;break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 #print-area .mk-kopf{height:9mm;flex:none;padding:0 1mm 1mm}
 #print-area .mk-titel{font-size:13pt}
 #print-area .mk-legende{font-size:6.5pt;gap:1mm 3mm}
 #print-area .mk-raster{flex:1;min-height:0;grid-template-rows:4.5mm repeat(31,1fr);grid-auto-rows:auto}
 #print-area .mk-mkopf{font-size:7.5pt;line-height:4.5mm}
 #print-area .mk-z{padding:0 .4mm}
 #print-area .mk-d{width:5.6mm;font-size:5pt}
 #print-area .mk-d b{font-size:6.5pt}
 #print-area .mk-e{font-size:6pt;padding:0 .6mm}
 #print-area .mk-fn{font-size:5.3pt}
 #print-area .mk-kw{font-size:5.3pt;padding:0 .5mm}
 #print-area .mk-pack{min-width:0;width:190mm;font-size:9pt;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 #print-area .mk-pt{font-size:18pt}
 #print-area .mk-pm{font-size:11pt}
 #print-area .mk-art td{height:6.8mm;padding:0 1.5mm}
 #print-area .mk-art tr.mk-gr td{height:5.5mm}
 #print-area .mk-art thead{display:table-header-group}
 #print-area .mk-art tr,#print-area .mk-kasse tr{page-break-inside:avoid;break-inside:avoid}
 #print-area .mk-kasse td{height:6.5mm}
}

/* Marktliste (Bildschirm) */
.ml-kopf{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:8px}
.mk-chk{display:flex;flex-wrap:wrap;gap:6px 14px;margin:4px 0}
.mk-chk-i{display:flex;align-items:center;gap:6px;font-size:14px}
.ml-in{width:5.2em;padding:8px 6px;text-align:right;font-size:16px;border:1px solid var(--line,#ccc);border-radius:6px;background:var(--bg,#fff);color:inherit}
.ml-kasse{width:100%;border-collapse:collapse}
.ml-kasse th,.ml-kasse td{padding:4px 4px;text-align:left;font-weight:500;font-size:14px}
.ml-kasse thead th{font-size:12px;color:var(--muted,#666)}
.ml-kasse td .ml-in{width:100%;min-width:4.5em;box-sizing:border-box}
.ml-kasse .r{text-align:right;white-space:nowrap}
.ml-erg-z th,.ml-erg-z td{border-top:1px solid var(--line,#ddd);font-size:15px}
.ml-zeile{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:flex-end;padding:8px 0;border-bottom:1px solid var(--line,#eee)}
.ml-info{flex:1 1 150px;min-width:140px}
.ml-name{font-weight:600}
.ml-erg{flex:0 0 auto;text-align:right;font-size:13px;min-width:6em}
.ml-ein{display:flex;gap:6px;flex:1 1 100%}
.ml-ein label{display:flex;flex-direction:column;font-size:11px;color:var(--muted,#666);flex:1}
.ml-ein .ml-in{width:100%;box-sizing:border-box}
.ml-ab{display:grid;grid-template-columns:1fr auto;gap:4px 12px;margin-bottom:6px}
.ml-ab>b,.ml-ab>span{text-align:right}
.ml-vz{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:4px 0}
.bad-t{color:#b00020}
.mk-grau{background:#ddd}
.mk-art tr.mk-sum td{font-weight:700;background:#f4f4f4;height:22px}
#print-area .mk-art tr.mk-sum td{height:6mm}
.ml-kasse{table-layout:fixed}
.ml-kasse th:first-child{width:23%;font-size:12px;word-break:break-word;hyphens:auto}
.ml-kasse th,.ml-kasse td{padding:3px 2px}
.ml-kasse td .ml-in{width:100%;min-width:0;padding:8px 3px;font-size:15px}
.ml-kasse thead th:last-child,.ml-kasse tbody td.r{width:19%;font-size:13px}
.ml-erg-z th{font-size:13px;white-space:normal}
