/* Mietrix – Betriebsmodul (Lager, Übergaben, Scan Center); tabletfreundlich */
.ops-tiles a.stat { color: var(--ink); text-decoration: none; transition: box-shadow .12s; }
.ops-tiles a.stat:hover { box-shadow: var(--sh-l); }
.ops-overdue, td.ops-overdue { color: var(--bad); font-weight: 700; }
tr.ops-late td { background: #fff6f4; }
tr.ops-diff td { background: #fff8e6; }
tr.ops-new td { background: #eaf7ee; transition: background 1s; }
tr.ops-dayrow td { background: #f3f6f7; font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.table.ops-big td { padding: .75rem .7rem; }
.ok-text { color: var(--ok); font-weight: 600; }
.ops-scanbox { border: 2px solid var(--brand-l); }
.ops-scan-input { font-size: 1.25rem !important; padding: .8rem .9rem !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ops-video { width: 100%; max-width: 480px; border-radius: var(--r); margin-top: .8rem; background: #000; }
.ops-num { width: 96px !important; text-align: right; }
.ops-facts .panel { margin-bottom: 0; }
.ops-facts { margin-bottom: 1.2rem; }
.ops-pos { border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; margin-bottom: .8rem; background: #fff; }
.ops-pos.ops-comp { margin-left: 1.4rem; border-left: 4px solid var(--brand-l); }
.ops-pos.ops-set { background: #f6f8f9; border-style: dashed; }
.ops-pos-h { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.ops-soll { font-size: 1.05rem; white-space: nowrap; }
.ops-soll b { font-size: 1.4rem; }
.ops-pos-f { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: flex-end; margin-top: .6rem; }
.ops-pos-f .field { margin: 0; }
.ops-pos-f .grow { flex: 1; min-width: 220px; }
.ops-ok { padding-bottom: .5rem; font-weight: 600; }
.ops-ok input, .ops-unit input, .ops-unit-back input { width: 20px; height: 20px; }
.ops-units { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.ops-unit { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: #fafbfc; cursor: pointer; }
.ops-unit:has(input:checked) { background: var(--ok-l); border-color: #9fd3b1; }
.ops-hit { outline: 3px solid var(--accent); outline-offset: 1px; }
.ops-unit-back { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; padding: .5rem .2rem; border-bottom: 1px dashed var(--line); }
.ops-unit-back label { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.ops-extra { margin: .35rem 0 0 .2rem; }
.ops-sig canvas { width: 100%; height: 200px; border: 2px dashed #b8c4c9; border-radius: var(--r); background: #fff; touch-action: none; display: block; margin-bottom: .5rem; }
.ops-submit { display: flex; justify-content: flex-end; align-items: center; gap: 1.2rem; flex-wrap: wrap; position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -4px 16px rgba(16, 24, 40, .08); }
.ops-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.ops-photos img { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.ops-qr canvas { width: 180px; height: 180px; margin: 0 auto; }
.ops-strip { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.ops-day { text-align: center; border-radius: 6px; padding: .3rem 0; background: #e6f4f1; color: #0d5f55; font-size: .75rem; display: flex; flex-direction: column; }
.ops-day b { font-size: .95rem; }
.ops-day i { font-style: normal; font-weight: 700; }
.ops-day.l { background: #fff3d6; color: #7a5300; }
.ops-day.x { background: #f6e3e1; color: #a03a2f; }
.ops-free { display: inline-block; margin-top: 4px; padding: 1px 6px; border-radius: 4px; background: #e6f4f1; color: #0d5f55; font-weight: 700; font-size: .78rem; }
.ops-free.x { background: #f6e3e1; color: #a03a2f; }
.ops-free.big { font-size: 1.1rem; padding: .3rem .6rem; }
.ops-mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ops-mcal .h { font-size: .8rem; font-weight: 600; color: var(--muted, #667); text-align: center; padding: .25rem 0; }
.ops-mcal .d { min-height: 96px; min-width: 0; overflow: hidden; }
.ops-mcal .d .ev { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-mcal .d .n { font-weight: 700; color: var(--ink); text-decoration: none; }
.ops-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.ops-wday { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .5rem; min-height: 180px; }
.ops-wday.t { border-color: var(--brand); }
.ops-wh { display: block; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.ops-wev { display: block; font-size: .8rem; padding: .35rem .45rem; border-radius: 6px; margin-bottom: .35rem; background: var(--brand-l); color: var(--brand-d); text-decoration: none !important; }
.ops-wev small { display: block; color: var(--mute); font-size: .72rem; }
.ops-wev.a { background: var(--warn-l); color: var(--warn); }
.ops-wev.b { background: #eef1f3; color: #55616c; }
@media (max-width: 1100px) { .ops-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ops-strip { grid-template-columns: repeat(7, 1fr); } }
.ops-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.ops-act { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.ops-act select, .ops-act input { width: auto; min-width: 140px; }
.ops-act.grow { flex: 1; }
.ops-act.grow input { flex: 1; min-width: 200px; }
.ops-stops { padding-left: 1.4rem; margin: 0; }
.ops-stops li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.print-only { display: none; }
@media (hover: none) { .btn { padding: .75rem 1.1rem; } .btn-sm { padding: .5rem .8rem; } }

/* Etikettenbögen */
.ops-labels-page { background: #e9eef0; }
.ops-label-bar { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; padding: .8rem 1rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; }
.ops-label-bar select { width: auto; }
.ops-sheet { width: 210mm; min-height: 297mm; margin: 1rem auto; background: #fff; box-shadow: var(--sh-l); display: grid; align-content: start; }
.ops-l-3x8 { grid-template-columns: repeat(3, 70mm); grid-auto-rows: 37mm; padding-top: .5mm; }
.ops-l-2x5 { grid-template-columns: repeat(2, 105mm); grid-auto-rows: 59.4mm; }
.ops-l-1x1 { width: 62mm; min-height: 0; grid-template-columns: 62mm; grid-auto-rows: 29mm; }
.ops-label { display: flex; gap: 2.5mm; align-items: center; padding: 2.5mm 3mm; overflow: hidden; outline: 1px dashed #d4dadd; outline-offset: -1px; }
.ops-label-qr canvas { width: 26mm; height: 26mm; display: block; }
.ops-l-2x5 .ops-label-qr canvas { width: 42mm; height: 42mm; }
.ops-l-1x1 .ops-label-qr canvas { width: 22mm; height: 22mm; }
.ops-label-txt { display: flex; flex-direction: column; font-size: 8pt; line-height: 1.25; min-width: 0; }
.ops-label-txt b { font-size: 11pt; word-break: break-all; }
.ops-l-2x5 .ops-label-txt { font-size: 10pt; }
.ops-l-2x5 .ops-label-txt b { font-size: 15pt; }
.ops-label-txt span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ops-label-txt small { color: #666; font-size: 7pt; margin-top: 1mm; }
.ops-l-1x1 .ops-label { page-break-after: always; break-after: page; }

@media print {
  .ops-labels-page { background: #fff; }
  .ops-label-bar { display: none; }
  .ops-sheet { margin: 0; box-shadow: none; min-height: 0; }
  .ops-label { outline: 0; }
  .print-only { display: block; }
  .ops-tour-sheet { border: 0; box-shadow: none; padding: 0; }
  .ops-sign { margin-top: .6rem; font-size: .85rem; }
  .split { display: block; }
}
@media (max-width: 1000px) { .ops-hide-m { display: none; } }
