/* İş Emirleri modül stilleri — sahibi: public/js/workOrders.js
   Ortak sınıflar (.data-table, .pill, .stepper, .progress, .form-grid, .kpi-card, .card…) styles.css'tedir;
   burada yalnızca iş emri listesi / detayı / formuna özgü kurallar tanımlanır. Bütün sınıflar wo- öneklidir.
   Bölümler: 1 ortak · 2 liste · 3 form + rota düzenleyici · 4 detay · 5 müşteri paneli · 6 dar ekran · 7 telefon */

/* --------------------------------------------------------------------------- 1. ORTAK */
.wo-page { min-width: 0; }
.wo-btn-ikon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex: 0 0 auto; }
.wo-btn-ikon svg { width: 18px; height: 18px; }
.btn-sm .wo-btn-ikon svg { width: 16px; height: 16px; }
.wo-sub { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.wo-sub-inline { color: var(--muted); font-weight: 500; }
.wo-nowrap { white-space: nowrap; }
.wo-h-ikon { display: inline-flex; color: var(--muted); line-height: 0; }
.wo-h-ikon svg { width: 18px; height: 18px; }
.wo-head-count {
  display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--tone-gray-soft);
  color: var(--muted); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center;
}
.wo-link { color: var(--blue); font-weight: 600; text-decoration: none; }
.wo-link:hover { text-decoration: underline; color: #17559A; }
.wo-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--muted)); flex: 0 0 auto; }
.wo-pulse { animation: woPulse 1.6s ease-in-out infinite; }
@keyframes woPulse { 0%, 100% { box-shadow: 0 0 0 0 var(--tone-soft); } 50% { box-shadow: 0 0 0 4px var(--tone-soft); } }
@media (prefers-reduced-motion: reduce) { .wo-pulse { animation: none; } }
.wo-empty-mini { font-size: 13px; color: var(--muted); padding: 4px 0 2px; line-height: 1.5; }
.wo-modal-lead { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.wo-form-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.wo-toggle:focus-visible, .wo-act:focus-visible, .wo-chip:focus-visible, .wo-icon-btn:focus-visible,
.wo-table th.th-sort:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* --------------------------------------------------------------------------- 2. LİSTE */
.wo-kpis .kpi-card.clickable { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.wo-kpis .kpi-card.clickable:hover { border-color: var(--line-hover); box-shadow: var(--shadow-lg); }
.wo-kpis .kpi-sub { font-size: 12.5px; color: var(--muted); }

.wo-list-card { overflow: hidden; }
.wo-list-card .tabbar { padding: 4px 16px 0; margin-bottom: 0; }
.wo-list-tools { padding: 14px 16px 10px; }
.wo-toolbar { margin-bottom: 0; }
.wo-toolbar .wo-musteri-sec { min-width: 180px; max-width: 240px; }
.wo-sira-sec { min-width: 190px; }
.wo-toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.wo-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); color: var(--ink);
  font: 600 13px var(--font); cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s;
}
.wo-toggle:hover { background: var(--surface-2); }
.wo-toggle .wo-btn-ikon svg { width: 15px; height: 15px; }
.wo-toggle-red .wo-btn-ikon { color: var(--danger); }
.wo-toggle-orange .wo-btn-ikon { color: var(--orange); }
.wo-toggle-count {
  min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--tone-gray-soft); color: var(--muted);
  font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center;
}
.wo-toggle-red.on { background: var(--tone-red-soft); border-color: var(--danger); color: var(--danger); }
.wo-toggle-red.on .wo-toggle-count { background: var(--danger); color: #fff; }
.wo-toggle-orange.on { background: var(--tone-orange-soft); border-color: var(--orange); color: var(--tone-orange-ink); }
.wo-toggle-orange.on .wo-toggle-count { background: var(--orange); color: #fff; }
.wo-count { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 20px; font-size: 12.5px; color: var(--muted); }
.wo-count .link-btn { font-size: 12.5px; }
.wo-count .wo-count-late { color: var(--danger); font-weight: 600; }

.wo-table-host > .table-wrap { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.wo-table-host > .empty-state, .wo-table-host > .loading { border-top: 1px solid var(--line); }
.wo-table td { vertical-align: middle; }
.wo-table th, .wo-table td { padding-left: 11px; padding-right: 11px; }
.wo-table th:first-child, .wo-table td:first-child { padding-left: 16px; }
.wo-table .wo-musteri { white-space: nowrap; }
.wo-no { font-weight: 700; color: var(--heading); white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums; }
.wo-no:hover { color: var(--primary); text-decoration: underline; }
.wo-is { min-width: 140px; }
.wo-is-title { font-weight: 600; color: var(--ink); line-height: 1.35; }
.wo-musteri { display: inline-block; max-width: 180px; }
.wo-table .wo-musteri { min-width: 96px; }
.wo-due { white-space: nowrap; }
.wo-due-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.wo-due.wo-late .wo-due-day, .wo-due.wo-late .wo-due-sub { color: var(--danger); font-weight: 600; }
.wo-due.wo-soon .wo-due-sub { color: var(--tone-orange-ink); font-weight: 600; }
.wo-td-progress .progress-row { min-width: 120px; }
.wo-now { min-width: 130px; }
.wo-now-op { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; line-height: 1.35; }
.wo-row-late td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.wo-row-closed td, .wo-row-closed .wo-is-title, .wo-row-closed .wo-no { color: var(--muted); }
.wo-no-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.wo-pri-inline, .wo-qty-inline { display: none; }
.wo-th { display: inline-flex; align-items: center; gap: 4px; }
.wo-sort-ikon { display: inline-flex; color: var(--muted); opacity: 0.55; line-height: 0; }
.wo-table th.wo-sorted { color: var(--ink); }
.wo-table th.wo-sorted .wo-sort-ikon { opacity: 1; color: var(--primary); }

/* --------------------------------------------------------------------------- 3. FORM + ROTA DÜZENLEYİCİ */
.modal.wo-form-modal { max-width: 1120px; }
.wo-form-sec + .wo-form-sec { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.wo-form-title { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--heading); }
.wo-form-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.wo-form-sec-head .wo-form-title { margin: 0; }
.wo-input-group { display: flex; gap: 8px; align-items: center; }
.wo-input-group > .input:first-child { flex: 1 1 auto; min-width: 0; }
.wo-input-group > select.input { flex: 0 0 88px; width: 88px; }
.wo-unit { font-size: 13px; color: var(--muted); min-width: 24px; }

.wo-oplist { display: flex; flex-direction: column; gap: 10px; }
.wo-oprow { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 10px 12px 12px; }
.wo-oprow.is-started { background: var(--panel); box-shadow: inset 3px 0 0 var(--tone-blue); }
.wo-oprow-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.wo-oprow-seq {
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: 0 0 auto; margin-right: 4px;
}
.wo-oprow-note { font-size: 12px; color: var(--muted); }
.wo-oprow-spacer { flex: 1 1 auto; }
.wo-icon-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: 0 0 auto;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--panel); color: var(--ink); cursor: pointer;
}
.wo-icon-btn svg { width: 18px; height: 18px; }
.wo-icon-btn:hover:not(:disabled) { background: var(--hover-bg); }
.wo-icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.wo-icon-btn.wo-op-del { color: var(--danger); border-color: #F3B4B4; }
.wo-icon-btn.wo-op-del:hover:not(:disabled) { background: var(--tone-red-soft); }
.wo-oprow-grid {
  display: grid; gap: 8px 10px;
  grid-template-columns: minmax(170px, 2fr) minmax(140px, 1.4fr) minmax(160px, 1.6fr) minmax(140px, 1fr) minmax(84px, 0.6fr) minmax(92px, 0.6fr);
}
.wo-oprow .field { margin-bottom: 0; min-width: 0; }
.wo-oprow .field-label { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.wo-oprow-people { margin-top: 10px; }
.wo-op-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.wo-op-foot .wo-op-quick { width: auto; min-width: 220px; flex: 0 1 280px; }
.wo-op-empty {
  display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius); color: var(--muted); font-size: 13px; line-height: 1.5; background: var(--surface-2);
}
.wo-op-empty-ikon { display: inline-flex; flex: 0 0 auto; line-height: 0; }
.wo-op-empty-ikon svg { width: 26px; height: 26px; }

.wo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wo-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 3px 12px 3px 4px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); color: var(--ink);
  font: 500 13px var(--font); cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.wo-chip:hover { background: var(--hover-bg); }
.wo-chip.on { background: var(--tone-green-soft); border-color: var(--primary); color: var(--primary-d); font-weight: 600; }
.wo-chip-av {
  width: 26px; height: 26px; border-radius: 50%; background: var(--tone-gray-soft); color: var(--tone-gray-ink, var(--muted));
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: 0 0 auto;
}
.wo-chip.on .wo-chip-av { background: var(--primary); color: #fff; }

.modal.wo-plan-modal { max-width: 560px; }
.wo-plan-people { margin-top: 14px; }
.wo-qty-grid .field, .wo-plan-grid .field { margin-bottom: 0; }
.wo-qty-form .wo-form-hint { margin-top: 12px; }
.wo-kdv { min-height: 40px; color: var(--ink); font-size: 13.5px; }
.wo-kdv input { width: 18px; height: 18px; accent-color: var(--primary); }
.wo-inv-total { margin-top: 14px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; }
.wo-mv-warn .notice { margin: 12px 0 0; }

/* --------------------------------------------------------------------------- 4. DETAY */
.wo-hero { padding: 20px 22px; gap: 16px; margin-bottom: 18px; }
.wo-hero.is-late { box-shadow: inset 4px 0 0 var(--danger), var(--shadow); }
.wo-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wo-hero-id { min-width: 0; flex: 1 1 340px; }
.wo-hero-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wo-hero-no { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0.2px; font-variant-numeric: tabular-nums; margin-right: 2px; }
.wo-hero-title { margin: 8px 0 0; font-size: 22px; font-weight: 700; color: var(--heading); letter-spacing: -0.3px; line-height: 1.25; overflow-wrap: anywhere; }
.wo-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.wo-hero-progress { display: flex; align-items: center; gap: 14px; }
.wo-hero-progress .progress { flex: 1 1 auto; }
.wo-hero-progress-text { font-size: 13px; color: var(--muted); white-space: nowrap; }
.wo-hero-progress-text strong { color: var(--ink); font-size: 15px; }
.wo-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.wo-fact { min-width: 0; }
.wo-fact-label { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.wo-fact-value { font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; line-height: 1.4; }
.wo-fact-note { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.wo-fact-value .wo-late, .wo-fact-value .wo-late .wo-fact-note { color: var(--danger); }
.wo-fact-value .wo-soon .wo-fact-note { color: var(--tone-orange-ink); font-weight: 600; }
.wo-notice { margin: 0; }
.wo-notes { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.wo-notes-text { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; color: var(--ink); }
.btn.wo-btn-warn { color: var(--tone-orange-ink); border-color: #F7C58E; }
.btn.wo-btn-warn:hover { background: var(--tone-orange-soft); color: var(--tone-orange-ink); border-color: var(--orange); }
.btn.wo-btn-danger { color: var(--danger); border-color: #F3B4B4; }
.btn.wo-btn-danger:hover { background: var(--tone-red-soft); color: var(--danger); border-color: var(--danger); }

.wo-ops-card { margin-bottom: 18px; }
.wo-stepper-wrap { padding-bottom: 16px; }
.wo-stepper { padding: 6px 0 2px; }
.wo-stepper .step-label { max-width: 100%; }   /* uzun ad adımın genişliğinde kesilir (soldaki ilk adım taşmasın) */
.wo-stepper .step-meta { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.wo-op-table td { vertical-align: top; }
.table-wrap > .wo-op-table { overflow: visible; }   /* .data-table'ın overflow:hidden'ı yapışkan işlem sütununu kilitler */
.wo-op-table tr.is-next td { background: #F6FAFE; }
.wo-op-table tr.is-next td:first-child { box-shadow: inset 3px 0 0 var(--tone-blue); }
.wo-op-table tr.wo-op-done td, .wo-op-table tr.wo-op-skipped td { color: var(--muted); }
.wo-op-table tr.wo-op-done .wo-is-title, .wo-op-table tr.wo-op-skipped .wo-is-title { color: var(--muted); }
.wo-seq {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--tone-gray-soft); color: var(--ink);
  font-size: 12.5px; font-weight: 700; align-items: center; justify-content: center;
}
.wo-op-running .wo-seq { background: var(--tone-blue); color: #fff; }
.wo-op-paused .wo-seq { background: var(--tone-orange); color: #fff; }
.wo-op-done .wo-seq { background: var(--tone-green); color: #fff; }
.wo-machine-cell { min-width: 140px; }
.wo-plan-cell .wo-actual { color: var(--ink); font-weight: 700; }
.wo-machine { line-height: 1.35; }
.wo-machine strong { color: var(--heading); }
.wo-people { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; }
.wo-person { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.wo-person .wo-chip-av { width: 20px; height: 20px; font-size: 9.5px; }
.wo-op-state { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wo-runner { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.wo-strong { font-weight: 700; color: var(--tone-blue); }
.wo-op-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 200px; }   /* td'de min-width yok sayılır: iç kutuda */
.wo-act {
  display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 5px 9px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--panel); color: var(--ink);
  font: 600 12.5px var(--font); cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s;
}
.wo-act-ikon { display: inline-flex; line-height: 0; }
.wo-act-ikon svg { width: 15px; height: 15px; }
.wo-act:hover:not(:disabled) { background: var(--hover-bg); }
.wo-act:disabled { opacity: 0.45; cursor: not-allowed; }
.wo-act-green, .wo-act-solid { background: var(--primary); border-color: var(--primary); color: #fff; }
.wo-act-green:hover:not(:disabled), .wo-act-solid:hover:not(:disabled) { background: var(--primary-d); border-color: var(--primary-d); }
.wo-act-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.wo-act-blue:hover:not(:disabled) { background: #17559A; border-color: #17559A; }
.wo-act-orange { background: var(--tone-orange-soft); border-color: #F7C58E; color: var(--tone-orange-ink); }
.wo-act-orange:hover:not(:disabled) { background: #FCE2C2; }
.wo-act-teal { background: var(--tone-teal-soft); border-color: #9FD8DD; color: var(--tone-teal-ink); }
.wo-act-teal:hover:not(:disabled) { background: #CDEFF1; }
.wo-act-purple { color: var(--purple); border-color: #CDBDF0; }
.wo-act-gray { color: var(--muted); }

.wo-detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.wo-detail-grid.wo-tek { grid-template-columns: minmax(0, 1fr); }
.wo-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wo-hist { display: flex; flex-direction: column; }
.wo-hist-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wo-hist-row:first-child { padding-top: 2px; }
.wo-hist-row:last-child { border-bottom: 0; padding-bottom: 0; }
.wo-hist-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px var(--tone-soft); margin-top: 5px; flex: 0 0 auto; }
.wo-hist-main { min-width: 0; flex: 1; }
.wo-hist-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; line-height: 1.4; }
.wo-hist-text strong { color: var(--heading); }
.wo-hist-act { font-size: 11.5px; font-weight: 700; color: var(--tone); background: var(--tone-soft); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.wo-hist-act.tone-orange { color: var(--tone-orange-ink); }
.wo-hist-act.tone-teal { color: var(--tone-teal-ink); }
.wo-hist-act.tone-gray { color: var(--tone-gray-ink); }
.wo-hist-op { color: var(--ink); }
.wo-hist-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.wo-hist-qty { color: var(--ink); font-weight: 600; }
.wo-hist-term { display: inline-flex; align-items: center; gap: 4px; }
.wo-hist-term svg { width: 13px; height: 13px; }
.wo-hist-note { margin-top: 5px; font-size: 13px; color: var(--ink); background: var(--surface-2); border-radius: var(--radius-sm); padding: 6px 10px; line-height: 1.45; }
.wo-more { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; min-height: 32px; }
.wo-more:hover { color: #17559A; text-decoration: underline; }

.wo-mv-plan { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; }
.wo-mv-plan .wo-fact-label { margin: 0; font-weight: 500; }
.wo-mv-list { display: flex; flex-direction: column; }
.wo-mv-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.wo-mv-row:last-child { border-bottom: 0; }
.wo-mv-main { flex: 1; min-width: 0; }
.wo-mv-item { font-size: 13.5px; overflow-wrap: anywhere; }
.wo-mv-qty { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.wo-mv-qty.out { color: var(--danger); }

.wo-inv-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wo-inv-no { font-size: 16px; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.wo-inv-amount { margin: 6px 0 2px; font-size: 22px; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.wo-inv-text { margin: 0 0 4px; font-size: 13.5px; color: var(--ink); }
.wo-inv-link, .wo-inv-btn { margin-top: 12px; }
.wo-inv-btn + .wo-sub { margin-top: 8px; }
.wo-discussion { margin-bottom: 4px; }

/* --------------------------------------------------------------------------- 5. MÜŞTERİ KARTI PANELİ */
.wo-panel .card-head { flex-wrap: wrap; }
.wo-panel-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wo-panel .table-wrap { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.wo-panel-more, .wo-panel-msg { margin: 0; padding: 10px 20px 14px; font-size: 12.5px; color: var(--muted); }
.wo-panel .wo-panel-empty { border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------- 6. DAR MASAÜSTÜ (641–1360 px) ve DAR EKRAN (≤ 1100 px) */
@media (min-width: 641px) and (max-width: 1360px) {
  .wo-table .wo-col-adet, .wo-table .wo-col-oncelik { display: none; }
  .wo-table .wo-pri-inline { display: inline-flex; }
  .wo-table .wo-qty-inline { display: block; }
  .wo-op-table th, .wo-op-table td { padding-left: 10px; padding-right: 10px; }
  /* tablo yatay kayarsa işlem düğmeleri sağ kenarda sabit kalır */
  .wo-op-table th:last-child, .wo-op-table td:last-child { position: sticky; right: 0; z-index: 1; background: var(--panel); box-shadow: -1px 0 0 var(--line); }
  .wo-op-table th:last-child { background: var(--surface-2); }
  .wo-op-table tr.is-next td:last-child { background: #F6FAFE; }
  .wo-op-table tbody tr:hover td:last-child { background: var(--surface-2); }
}
@media (max-width: 1100px) {
  .wo-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .wo-oprow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------- 7. TELEFON (≤ 640 px): tablolar karta dönüşür, dokunma hedefi ≥ 44 px */
@media (max-width: 640px) {
  .wo-list-card .tabbar { padding: 0 6px; }
  .wo-list-tools { padding: 12px; }
  .wo-toolbar { gap: 8px; }
  .wo-toolbar > .search-box, .wo-toolbar > select.input, .wo-toolbar > .wo-toggles { flex: 1 1 100%; max-width: none; min-width: 0; width: 100%; }
  .wo-toolbar .toolbar-spacer { display: none; }
  .wo-toggles .wo-toggle { flex: 1 1 0; justify-content: center; }
  .wo-toggle, .wo-chip, .wo-act { min-height: 44px; }
  .wo-icon-btn { width: 44px; height: 44px; }

  /* tablo → kart: ilk iki hücre başlık satırı (no + iş), kalanlar "etiket: değer" satırları */
  .wo-table thead, .wo-op-table thead { display: none; }
  .wo-table, .wo-table tbody, .wo-op-table, .wo-op-table tbody { display: block; width: 100%; }
  .wo-table tr, .wo-op-table tr {
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: start;
    padding: 12px 14px; border-bottom: 1px solid var(--line);
  }
  .wo-table tr:last-child, .wo-op-table tr:last-child { border-bottom: 0; }
  .wo-table td, .wo-op-table td {
    grid-column: 1 / -1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    min-width: 0; padding: 4px 0; border: 0; text-align: right; background: none;
  }
  .wo-table td::before, .wo-op-table td::before {
    content: attr(data-label); flex: 0 0 auto; padding-top: 2px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: left;
  }
  .wo-table td:nth-child(1), .wo-op-table td:nth-child(1) { grid-column: 1; }
  .wo-table td:nth-child(2), .wo-op-table td:nth-child(2) { grid-column: 2; justify-content: flex-start; text-align: left; padding-bottom: 8px; }
  .wo-table td:nth-child(1)::before, .wo-table td:nth-child(2)::before,
  .wo-op-table td:nth-child(1)::before, .wo-op-table td:nth-child(2)::before { content: none; }
  .wo-table td > *, .wo-op-table td > * { min-width: 0; }
  .wo-table tbody tr:hover td, .wo-table tbody tr.clickable:hover td { background: none; }
  .wo-table tr.wo-row-late { box-shadow: inset 3px 0 0 var(--danger); }
  .wo-table tr.wo-row-late td:first-child { box-shadow: none; }
  .wo-table .wo-is, .wo-table .wo-now, .wo-table .wo-musteri, .wo-table .wo-td-progress .progress-row, .wo-machine-cell { min-width: 0; }
  .wo-table td.wo-td-progress .progress-row { flex: 0 1 62%; }
  .wo-now-op { justify-content: flex-end; }
  .wo-musteri { max-width: none; }
  .wo-op-table tr.is-next td { background: none; }
  .wo-op-table tr.is-next { background: #F6FAFE; box-shadow: inset 3px 0 0 var(--tone-blue); }
  .wo-op-table tr.is-next td:first-child { box-shadow: none; }
  .wo-op-table td.wo-td-actions { padding-top: 10px; }
  .wo-op-table td.wo-td-actions::before { content: none; }
  .wo-op-table td.wo-td-actions:has(.wo-no-actions) { display: none; }
  .wo-op-actions { width: 100%; min-width: 0; }
  .wo-op-actions .wo-act { flex: 1 1 calc(50% - 6px); justify-content: center; }
  .wo-people, .wo-op-state { justify-content: flex-end; align-items: flex-end; }
  .wo-machine { white-space: normal; }

  .wo-stepper .step { min-width: 92px; }
  .wo-hero { padding: 16px; gap: 14px; }
  .wo-hero-title { font-size: 19px; }
  .wo-hero-actions { width: 100%; justify-content: stretch; }
  .wo-hero-actions .btn { flex: 1 1 auto; min-height: 44px; }
  .wo-hero-progress { flex-direction: column; align-items: stretch; gap: 6px; }
  .wo-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; }

  .wo-form .form-grid .span-2 { grid-column: 1 / -1; }
  .wo-oprow-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wo-oprow-grid .wo-c-name, .wo-oprow-grid .wo-c-type, .wo-oprow-grid .wo-c-machine { grid-column: 1 / -1; }
  .wo-op-foot > * { flex: 1 1 100%; }
  .wo-op-foot .wo-op-quick { min-width: 0; flex: 1 1 100%; }
  .wo-panel-actions { width: 100%; justify-content: space-between; }
  .wo-mv-row { flex-wrap: wrap; }
}
