/* ═══════════════════════════════════════════════════════════════════════════
   Operasyon sayfaları — tek tema katmanı (açık / koyu: product-theme.css)
   Yükleme sırası: product-theme.css → shared-nav.css → [sayfa style] → product-ops.css
   body class="pt-ops" zorunlu
   ═══════════════════════════════════════════════════════════════════════════ */

/* Screen only — must not override @media print paper styles on belge pages */
@media screen {
  html[data-theme] body.pt-ops {
    background: var(--pt-bg) !important;
    color: var(--pt-text) !important;
  }
}

html[data-theme] body.pt-ops .wrap,
html[data-theme] body.pt-ops .app {
  color: var(--pt-text);
}

html[data-theme] body.pt-ops .topbar,
html[data-theme] body.pt-ops .page-topbar {
  border-bottom-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops .topbar h1,
html[data-theme] body.pt-ops .page-topbar h1,
html[data-theme] body.pt-ops h1,
html[data-theme] body.pt-ops h2 {
  color: var(--pt-text);
}
html[data-theme] body.pt-ops .sub,
html[data-theme] body.pt-ops .hint,
html[data-theme] body.pt-ops .muted {
  color: var(--pt-muted) !important;
}

html[data-theme] body.pt-ops .card,
html[data-theme] body.pt-ops .panel,
html[data-theme] body.pt-ops .stat-box,
html[data-theme] body.pt-ops .side {
  background: var(--pt-surface) !important;
  border-color: var(--pt-border) !important;
  color: var(--pt-text);
}

@media screen {
  html[data-theme] body.pt-ops table th {
    background: var(--pt-input-bg) !important;
    color: var(--pt-muted) !important;
    border-color: var(--pt-border) !important;
  }
  html[data-theme] body.pt-ops table td {
    color: var(--pt-text-secondary) !important;
    border-color: var(--pt-border) !important;
  }
  html[data-theme] body.pt-ops tr:hover {
    background: var(--pt-primary-dim) !important;
  }
}

html[data-theme] body.pt-ops .btn,
html[data-theme] body.pt-ops button.btn {
  background: var(--pt-surface-2) !important;
  border-color: var(--pt-border-strong) !important;
  color: var(--pt-text) !important;
}
html[data-theme] body.pt-ops .btn:hover {
  background: var(--pt-primary-dim) !important;
  border-color: var(--pt-primary-border) !important;
}
html[data-theme] body.pt-ops .btn.primary,
html[data-theme] body.pt-ops .btn-primary {
  background: var(--pt-primary) !important;
  border-color: var(--pt-primary) !important;
  color: #ffffff !important;
}
html[data-theme] body.pt-ops .btn.success {
  background: var(--pt-st-active-bg) !important;
  border-color: var(--pt-st-active-bd) !important;
  color: var(--pt-st-active-fg) !important;
}
html[data-theme] body.pt-ops .btn.warning {
  background: var(--pt-st-pending-bg) !important;
  border-color: var(--pt-st-pending-bd) !important;
  color: var(--pt-st-pending-fg) !important;
}
html[data-theme] body.pt-ops .btn.danger {
  background: var(--pt-st-suspended-bg) !important;
  border-color: var(--pt-st-suspended-bd) !important;
  color: var(--pt-st-suspended-fg) !important;
}

html[data-theme] body.pt-ops input,
html[data-theme] body.pt-ops select,
html[data-theme] body.pt-ops textarea {
  background: var(--pt-input-bg) !important;
  color: var(--pt-text) !important;
  border-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops input:focus,
html[data-theme] body.pt-ops select:focus,
html[data-theme] body.pt-ops textarea:focus {
  border-color: var(--pt-primary) !important;
  outline: none;
}

html[data-theme] body.pt-ops .badge,
html[data-theme] body.pt-ops .status-badge {
  font-weight: 700;
}
html[data-theme] body.pt-ops .badge.draft,
html[data-theme] body.pt-ops .badge.pending,
html[data-theme] body.pt-ops .status-pending {
  background: var(--pt-st-pending-bg) !important;
  color: var(--pt-st-pending-fg) !important;
  border: 1px solid var(--pt-st-pending-bd) !important;
}
html[data-theme] body.pt-ops .badge.completed,
html[data-theme] body.pt-ops .badge.active,
html[data-theme] body.pt-ops .status-completed {
  background: var(--pt-st-active-bg) !important;
  color: var(--pt-st-active-fg) !important;
  border: 1px solid var(--pt-st-active-bd) !important;
}

html[data-theme] body.pt-ops a.link,
html[data-theme] body.pt-ops .link {
  color: var(--pt-primary) !important;
}

html[data-theme] body.pt-ops .stat-box.green .val { color: var(--pt-success) !important; }
html[data-theme] body.pt-ops .stat-box.yellow .val { color: var(--pt-warning) !important; }
html[data-theme] body.pt-ops .stat-box.blue .val { color: var(--pt-primary) !important; }

/* ─── sevkiyat-hazirla & operasyon formları (inline koyu CSS override) ─── */
html[data-theme] body.pt-ops .op-header {
  background: var(--pt-nav-bg) !important;
  border-bottom-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops .op-header-top h1,
html[data-theme] body.pt-ops .op-title-group h1 {
  color: var(--pt-text) !important;
}
html[data-theme] body.pt-ops .op-header-top .sub {
  color: var(--pt-muted) !important;
}
html[data-theme] body.pt-ops .op-status.unsaved {
  color: var(--pt-st-pending-fg) !important;
  background: var(--pt-st-pending-bg) !important;
}
html[data-theme] body.pt-ops .op-status.ok {
  color: var(--pt-st-active-fg) !important;
  background: var(--pt-st-active-bg) !important;
}
html[data-theme] body.pt-ops .op-status.err {
  color: var(--pt-st-suspended-fg) !important;
  background: var(--pt-st-suspended-bg) !important;
}
html[data-theme] body.pt-ops .op-tab {
  color: var(--pt-muted) !important;
}
html[data-theme] body.pt-ops .op-tab:hover {
  color: var(--pt-text-secondary) !important;
  background: var(--pt-primary-dim) !important;
}
html[data-theme] body.pt-ops .op-tab.active {
  color: var(--pt-primary) !important;
  border-bottom-color: var(--pt-primary) !important;
}
html[data-theme] body.pt-ops .op-tab.tab-save { color: var(--pt-success) !important; }
html[data-theme] body.pt-ops .op-tab.tab-primary { color: var(--pt-primary) !important; }
html[data-theme] body.pt-ops .op-tab.tab-warn { color: var(--pt-st-pending-fg) !important; }

html[data-theme] body.pt-ops .slide-panel {
  background: var(--pt-surface) !important;
}
html[data-theme] body.pt-ops .slide-panel.open {
  border-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops .slide-panel iframe {
  background: var(--pt-bg) !important;
}
html[data-theme] body.pt-ops .slide-panel-bar {
  background: var(--pt-surface-2) !important;
}
html[data-theme] body.pt-ops .slide-panel-close {
  border-color: var(--pt-border-strong) !important;
  color: var(--pt-muted) !important;
}
html[data-theme] body.pt-ops .slide-panel-close:hover {
  color: var(--pt-text) !important;
}

html[data-theme] body.pt-ops .card-head h3 {
  color: var(--pt-muted) !important;
}
html[data-theme] body.pt-ops .card-head h3 .ref {
  background: var(--pt-surface-2) !important;
  color: var(--pt-muted) !important;
}
html[data-theme] body.pt-ops .field label {
  color: var(--pt-muted) !important;
}
html[data-theme] body.pt-ops .field .hint,
html[data-theme] body.pt-ops .master-note {
  color: var(--pt-muted-2) !important;
}

html[data-theme] body.pt-ops .section-box {
  background: var(--pt-surface) !important;
  border-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops .section-title {
  color: var(--pt-primary) !important;
}
html[data-theme] body.pt-ops .section-sub {
  color: var(--pt-muted) !important;
}

html[data-theme] body.pt-ops .item-row {
  background: var(--pt-input-bg) !important;
  border-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops .item-row:hover {
  border-color: var(--pt-border-strong) !important;
}
html[data-theme] body.pt-ops .item-un { color: var(--pt-primary) !important; }
html[data-theme] body.pt-ops .item-psn { color: var(--pt-text) !important; }
html[data-theme] body.pt-ops .item-meta,
html[data-theme] body.pt-ops .item-num { color: var(--pt-muted) !important; }

html[data-theme] body.pt-ops .save-bar {
  background: var(--pt-surface) !important;
  border-top-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops .save-bar .status-msg { color: var(--pt-muted) !important; }
html[data-theme] body.pt-ops .save-bar .status-msg.ok { color: var(--pt-success) !important; }
html[data-theme] body.pt-ops .save-bar .status-msg.err { color: var(--pt-danger) !important; }

html[data-theme] body.pt-ops .shipment-no {
  color: var(--pt-primary) !important;
  background: var(--pt-primary-dim) !important;
  border-color: var(--pt-primary-border) !important;
}

html[data-theme] body.pt-ops .un-status {
  background: var(--pt-surface) !important;
  border-color: var(--pt-border) !important;
  color: var(--pt-primary) !important;
}
html[data-theme] body.pt-ops .edit-bar {
  background: var(--pt-st-pending-bg) !important;
  border-color: var(--pt-st-pending-bd) !important;
  color: var(--pt-st-pending-fg) !important;
}
html[data-theme] body.pt-ops .entry-actions {
  border-top-color: var(--pt-border) !important;
}

html[data-theme] body.pt-ops .exempt-cb-label {
  background: var(--pt-input-bg) !important;
  border-color: var(--pt-border) !important;
  color: var(--pt-text-secondary) !important;
}
html[data-theme] body.pt-ops .taBlock,
html[data-theme] body.pt-ops .ta-row-cells,
html[data-theme] body.pt-ops .refTable td {
  background: var(--pt-surface) !important;
  border-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops .taCell {
  background: var(--pt-input-bg) !important;
  border-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops .taTitle,
html[data-theme] body.pt-ops .taCell-h,
html[data-theme] body.pt-ops .refTable th,
html[data-theme] body.pt-ops .outputs h3 {
  color: var(--pt-muted) !important;
  border-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops .taCell-v,
html[data-theme] body.pt-ops .cellScroll {
  color: var(--pt-text) !important;
}

/* ─── Uyarı / durum kutuları — açık temada koyu metin, koyu temada açık metin ─── */
html[data-theme] body.pt-ops .ghm-alert-warn {
  background: var(--pt-st-pending-bg) !important;
  border-color: var(--pt-st-pending-bd) !important;
  color: var(--pt-st-pending-fg) !important;
}
html[data-theme] body.pt-ops .ghm-alert-warn .ghm-alert-title,
html[data-theme] body.pt-ops .ghm-alert-warn .ghm-alert-msg {
  color: var(--pt-st-pending-fg) !important;
}
html[data-theme] body.pt-ops .ghm-alert-info {
  background: var(--pt-st-info-bg) !important;
  border-color: var(--pt-st-info-bd) !important;
  color: var(--pt-st-info-fg) !important;
}
html[data-theme] body.pt-ops .ghm-alert-info .ghm-alert-title,
html[data-theme] body.pt-ops .ghm-alert-info .ghm-alert-msg {
  color: var(--pt-st-info-fg) !important;
}
html[data-theme] body.pt-ops .ghm-alert-chip-info {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .7rem;
  margin: 2px;
  background: var(--pt-st-info-bg) !important;
  border: 1px solid var(--pt-st-info-bd) !important;
  color: var(--pt-st-info-fg) !important;
}
html[data-theme] body.pt-ops .ghm-alert-inline-warn {
  font-size: .72rem;
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 8px;
  background: var(--pt-st-pending-bg) !important;
  border: 1px solid var(--pt-st-pending-bd) !important;
  color: var(--pt-st-pending-fg) !important;
}

html[data-theme] body.pt-ops .ghm-readiness-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .75rem;
  border: 1px solid transparent;
}
html[data-theme] body.pt-ops .ghm-readiness-warn {
  background: var(--pt-st-pending-bg) !important;
  border-color: var(--pt-st-pending-bd) !important;
  color: var(--pt-st-pending-fg) !important;
}
html[data-theme] body.pt-ops .ghm-readiness-info {
  background: var(--pt-st-info-bg) !important;
  border-color: var(--pt-st-info-bd) !important;
  color: var(--pt-st-info-fg) !important;
}
html[data-theme] body.pt-ops .ghm-readiness-ok {
  background: var(--pt-st-active-bg) !important;
  border-color: var(--pt-st-active-bd) !important;
  color: var(--pt-st-active-fg) !important;
}

html[data-theme] body.pt-ops .sp-warn-card.warning {
  background: var(--pt-st-pending-bg) !important;
  border-color: var(--pt-st-pending-bd) !important;
  color: var(--pt-st-pending-fg) !important;
}
html[data-theme] body.pt-ops .sp-warn-card.warning .sp-code,
html[data-theme] body.pt-ops .sp-warn-card.warning .sp-badge,
html[data-theme] body.pt-ops .sp-warn-card.warning .sp-text {
  color: var(--pt-st-pending-fg) !important;
}
html[data-theme] body.pt-ops .sp-warn-card.danger {
  background: var(--pt-st-suspended-bg) !important;
  border-color: var(--pt-st-suspended-bd) !important;
  color: var(--pt-st-suspended-fg) !important;
}
html[data-theme] body.pt-ops .sp-warn-card.danger .sp-code,
html[data-theme] body.pt-ops .sp-warn-card.danger .sp-badge,
html[data-theme] body.pt-ops .sp-warn-card.danger .sp-text {
  color: var(--pt-st-suspended-fg) !important;
}
html[data-theme] body.pt-ops .sp-warn-card.success {
  background: var(--pt-st-active-bg) !important;
  border-color: var(--pt-st-active-bd) !important;
  color: var(--pt-st-active-fg) !important;
}
html[data-theme] body.pt-ops .sp-warn-card.success .sp-code,
html[data-theme] body.pt-ops .sp-warn-card.success .sp-badge,
html[data-theme] body.pt-ops .sp-warn-card.success .sp-text {
  color: var(--pt-st-active-fg) !important;
}
html[data-theme] body.pt-ops .sp-warn-card.info {
  background: var(--pt-st-info-bg) !important;
  border-color: var(--pt-st-info-bd) !important;
  color: var(--pt-st-info-fg) !important;
}
html[data-theme] body.pt-ops .sp-warn-card.info .sp-code,
html[data-theme] body.pt-ops .sp-warn-card.info .sp-badge,
html[data-theme] body.pt-ops .sp-warn-card.info .sp-text {
  color: var(--pt-st-info-fg) !important;
}

html[data-theme] body.pt-ops .exempt-chip.warn {
  background: var(--pt-st-pending-bg) !important;
  border-color: var(--pt-st-pending-bd) !important;
  color: var(--pt-st-pending-fg) !important;
}
html[data-theme] body.pt-ops .exempt-chip.active {
  background: var(--pt-st-active-bg) !important;
  border-color: var(--pt-st-active-bd) !important;
  color: var(--pt-st-active-fg) !important;
}
html[data-theme] body.pt-ops .exempt-chip.err {
  background: var(--pt-st-suspended-bg) !important;
  border-color: var(--pt-st-suspended-bd) !important;
  color: var(--pt-st-suspended-fg) !important;
}
html[data-theme] body.pt-ops .btn.warning {
  background: var(--pt-st-pending-bg) !important;
  border-color: var(--pt-st-pending-bd) !important;
  color: var(--pt-st-pending-fg) !important;
}
html[data-theme] body.pt-ops #ctx_lock_hint {
  color: var(--pt-st-pending-fg) !important;
}

/* ─── Ek sayfa bileşenleri ─── */
html[data-theme] body.pt-ops .topbar {
  background: var(--pt-nav-bg) !important;
  border-bottom-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops .tbl-wrap {
  background: var(--pt-surface) !important;
  border-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops thead th {
  background: var(--pt-input-bg) !important;
}
html[data-theme] body.pt-ops tbody tr {
  border-bottom-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops tbody tr:hover {
  background: var(--pt-primary-dim) !important;
}
html[data-theme] body.pt-ops .cell-no { color: var(--pt-primary) !important; }
html[data-theme] body.pt-ops .cell-party { color: var(--pt-text) !important; }
html[data-theme] body.pt-ops .cell-date,
html[data-theme] body.pt-ops .cell-items { color: var(--pt-muted) !important; }
html[data-theme] body.pt-ops .filters select,
html[data-theme] body.pt-ops .filters input {
  background: var(--pt-input-bg) !important;
  color: var(--pt-text) !important;
  border-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops .id-item {
  background: var(--pt-input-bg) !important;
  border-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops .id-item .value { color: var(--pt-text) !important; }
html[data-theme] body.pt-ops .id-item .label { color: var(--pt-muted) !important; }
html[data-theme] body.pt-ops .search-box input {
  background: var(--pt-input-bg) !important;
  color: var(--pt-text) !important;
  border-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops .ship-badge {
  background: var(--pt-st-active-bg) !important;
  border-color: var(--pt-st-active-bd) !important;
}
html[data-theme] body.pt-ops .ship-badge .ship-no { color: var(--pt-st-active-fg) !important; }
html[data-theme] body.pt-ops .un-item,
html[data-theme] body.pt-ops .sim-box,
html[data-theme] body.pt-ops .role-check {
  background: var(--pt-input-bg) !important;
  border-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops .role-check.active {
  border-color: var(--pt-primary) !important;
  background: var(--pt-primary-dim) !important;
  color: var(--pt-primary) !important;
}
html[data-theme] body.pt-ops .btn-primary,
html[data-theme] body.pt-ops .btn.primary {
  background: var(--pt-primary) !important;
  border-color: var(--pt-primary) !important;
  color: #fff !important;
}
html[data-theme] body.pt-ops .btn-green {
  background: var(--pt-st-active-bg) !important;
  border-color: var(--pt-st-active-bd) !important;
  color: var(--pt-st-active-fg) !important;
}
html[data-theme] body.pt-ops .empty { color: var(--pt-muted) !important; }
html[data-theme] body.pt-ops .loading { color: var(--pt-muted) !important; }

/* olay-bildirimi */
html[data-theme] body.pt-ops .criteria-box {
  background: var(--pt-st-info-bg) !important;
  border-color: var(--pt-st-info-bd) !important;
}
html[data-theme] body.pt-ops .criteria-title { color: var(--pt-st-info-fg) !important; }
html[data-theme] body.pt-ops .criteria-list { color: var(--pt-text-secondary) !important; }
html[data-theme] body.pt-ops .opt-item {
  background: var(--pt-input-bg) !important;
  border-color: var(--pt-border) !important;
  color: var(--pt-text-secondary) !important;
}
html[data-theme] body.pt-ops .opt-item.active {
  border-color: var(--pt-primary) !important;
  background: var(--pt-primary-dim) !important;
  color: var(--pt-primary) !important;
}
html[data-theme] body.pt-ops .un-row {
  background: var(--pt-input-bg) !important;
  border-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops .status-bar {
  background: var(--pt-surface) !important;
  border-color: var(--pt-border) !important;
  color: var(--pt-text-secondary) !important;
}
html[data-theme] body.pt-ops .btn-green {
  background: var(--pt-st-active-bg) !important;
  border-color: var(--pt-st-active-bd) !important;
  color: var(--pt-st-active-fg) !important;
}
html[data-theme] body.pt-ops .btn-red {
  background: var(--pt-st-suspended-bg) !important;
  border-color: var(--pt-st-suspended-bd) !important;
  color: var(--pt-st-suspended-fg) !important;
}
html[data-theme] body.pt-ops .card-title { color: var(--pt-text-secondary) !important; }
html[data-theme] body.pt-ops .card-title .badge {
  background: var(--pt-surface-2) !important;
  border-color: var(--pt-border-strong) !important;
  color: var(--pt-muted) !important;
}

/* Açık temada JS inline sarı metinleri ez (uyarı kutuları içinde) */
[data-theme="light"] body.pt-ops .ghm-alert-warn *,
[data-theme="light"] body.pt-ops .ghm-readiness-warn *,
[data-theme="light"] body.pt-ops .ghm-alert-inline-warn,
[data-theme="light"] body.pt-ops .sp-warn-card.warning * {
  color: var(--pt-st-pending-fg) !important;
}
[data-theme="light"] body.pt-ops .ghm-alert-info *,
[data-theme="light"] body.pt-ops .ghm-readiness-info * {
  color: var(--pt-st-info-fg) !important;
}
[data-theme="light"] body.pt-ops .ghm-readiness-ok * {
  color: var(--pt-st-active-fg) !important;
}

/* ─── ADR Arama / Yardım / rapor sayfaları: gömülü koyu CSS light-mode düzeltmeleri ─── */
html[data-theme] body.pt-ops .search-area,
html[data-theme] body.pt-ops .shortcuts,
html[data-theme] body.pt-ops .results-info {
  color: var(--pt-text-secondary) !important;
}
html[data-theme] body.pt-ops .shortcuts .title,
html[data-theme] body.pt-ops .result-score,
html[data-theme] body.pt-ops .toc h2,
html[data-theme] body.pt-ops .section h3 {
  color: var(--pt-muted) !important;
}
html[data-theme] body.pt-ops .search-row input,
html[data-theme] body.pt-ops .filters select,
html[data-theme] body.pt-ops .filters input,
html[data-theme] body.pt-ops .search-box input,
html[data-theme] body.pt-ops .qty-tbl input[type=number],
html[data-theme] body.pt-ops .trn-tbl input[type=number] {
  background: var(--pt-input-bg) !important;
  border-color: var(--pt-border) !important;
  color: var(--pt-text) !important;
}
html[data-theme] body.pt-ops .search-row input::placeholder,
html[data-theme] body.pt-ops .search-box input::placeholder {
  color: var(--pt-muted-2) !important;
}
html[data-theme] body.pt-ops .search-row input:focus,
html[data-theme] body.pt-ops .filters select:focus,
html[data-theme] body.pt-ops .filters input:focus,
html[data-theme] body.pt-ops .search-box input:focus,
html[data-theme] body.pt-ops .qty-tbl input:focus,
html[data-theme] body.pt-ops .trn-tbl input:focus {
  border-color: var(--pt-primary) !important;
}
html[data-theme] body.pt-ops .stat-chip,
html[data-theme] body.pt-ops .sc-btn,
html[data-theme] body.pt-ops .result-card,
html[data-theme] body.pt-ops .toc,
html[data-theme] body.pt-ops .section,
html[data-theme] body.pt-ops .no-print,
html[data-theme] body.pt-ops code {
  background: var(--pt-surface) !important;
  border-color: var(--pt-border) !important;
  color: var(--pt-text-secondary) !important;
}
html[data-theme] body.pt-ops .result-card:hover,
html[data-theme] body.pt-ops .sc-btn:hover {
  background: var(--pt-primary-dim) !important;
  border-color: var(--pt-primary-border) !important;
  color: var(--pt-primary) !important;
}
html[data-theme] body.pt-ops .stat-chip .num,
html[data-theme] body.pt-ops .result-ref {
  color: var(--pt-primary) !important;
}
html[data-theme] body.pt-ops .result-text,
html[data-theme] body.pt-ops .section p,
html[data-theme] body.pt-ops .section li,
html[data-theme] body.pt-ops .section ul li,
html[data-theme] body.pt-ops .toc li {
  color: var(--pt-text-secondary) !important;
}
html[data-theme] body.pt-ops .section h2 {
  color: var(--pt-text) !important;
  border-bottom-color: var(--pt-border) !important;
}
html[data-theme] body.pt-ops .section th {
  background: var(--pt-input-bg) !important;
  border-bottom-color: var(--pt-border) !important;
  color: var(--pt-muted) !important;
}
html[data-theme] body.pt-ops .section td {
  border-bottom-color: var(--pt-border) !important;
  color: var(--pt-text-secondary) !important;
}
html[data-theme] body.pt-ops .callout {
  background: var(--pt-st-info-bg) !important;
  border-color: var(--pt-st-info-bd) !important;
  color: var(--pt-st-info-fg) !important;
}
html[data-theme] body.pt-ops .callout.important {
  background: var(--pt-st-suspended-bg) !important;
  border-color: var(--pt-st-suspended-bd) !important;
  color: var(--pt-st-suspended-fg) !important;
}
html[data-theme] body.pt-ops .highlight {
  background: var(--pt-st-pending-bg) !important;
  color: var(--pt-st-pending-fg) !important;
}
html[data-theme] body.pt-ops .flag.blocked {
  background: var(--pt-st-suspended-bg) !important;
  color: var(--pt-st-suspended-fg) !important;
}
html[data-theme] body.pt-ops .flag.exempt {
  background: var(--pt-st-active-bg) !important;
  color: var(--pt-st-active-fg) !important;
}
html[data-theme] body.pt-ops .flag.cond {
  background: var(--pt-st-pending-bg) !important;
  color: var(--pt-st-pending-fg) !important;
}
@media screen {
  html[data-theme] body.pt-ops .qty-tbl th,
  html[data-theme] body.pt-ops .trn-tbl th {
    background: var(--pt-input-bg) !important;
    border-bottom-color: var(--pt-border) !important;
    color: var(--pt-muted) !important;
  }
  html[data-theme] body.pt-ops .qty-tbl th.mode-header,
  html[data-theme] body.pt-ops .trn-tbl th.mode-header {
    background: var(--pt-surface-2) !important;
    color: var(--pt-muted) !important;
  }
  html[data-theme] body.pt-ops .qty-tbl td,
  html[data-theme] body.pt-ops .trn-tbl td {
    border-bottom-color: var(--pt-border) !important;
  }
  html[data-theme] body.pt-ops .qty-tbl .cls-label,
  html[data-theme] body.pt-ops .trn-tbl .cls-label {
    color: var(--pt-text) !important;
  }
  html[data-theme] body.pt-ops .qty-tbl .row-total {
    color: var(--pt-success) !important;
  }
}

[data-theme="light"] body.pt-ops [style*="background:#0f172a"],
[data-theme="light"] body.pt-ops [style*="background:#020617"],
[data-theme="light"] body.pt-ops [style*="background: #0f172a"],
[data-theme="light"] body.pt-ops [style*="background: #020617"] {
  background: var(--pt-surface) !important;
}
[data-theme="light"] body.pt-ops [style*="border:1px solid #1e293b"],
[data-theme="light"] body.pt-ops [style*="border: 1px solid #1e293b"],
[data-theme="light"] body.pt-ops [style*="border-color:#1e293b"],
[data-theme="light"] body.pt-ops [style*="border-color: #1e293b"] {
  border-color: var(--pt-border) !important;
}
[data-theme="light"] body.pt-ops [style*="color:#94a3b8"],
[data-theme="light"] body.pt-ops [style*="color: #94a3b8"],
[data-theme="light"] body.pt-ops [style*="color:#64748b"],
[data-theme="light"] body.pt-ops [style*="color: #64748b"],
[data-theme="light"] body.pt-ops [style*="color:#475569"],
[data-theme="light"] body.pt-ops [style*="color: #475569"] {
  color: var(--pt-muted) !important;
}
[data-theme="light"] body.pt-ops mark,
[data-theme="light"] body.pt-ops [style*="background:rgba(251,191,36"] {
  background: #fff3cd !important;
  color: #8a5a00 !important;
}

/* ADR arama tip rozetleri — açık temada okunur tonlar */
[data-theme="light"] body.pt-ops .result-type.paragraph { background:#dbeafe !important;color:#1e40af !important; }
[data-theme="light"] body.pt-ops .result-type.SP { background:#ede9fe !important;color:#5b21b6 !important; }
[data-theme="light"] body.pt-ops .result-type.CV,
[data-theme="light"] body.pt-ops .result-type.MEVZUAT { background:#fee2e2 !important;color:#991b1b !important; }
[data-theme="light"] body.pt-ops .result-type.S,
[data-theme="light"] body.pt-ops .result-type.EXM,
[data-theme="light"] body.pt-ops .result-type.LQ { background:#dcfce7 !important;color:#166534 !important; }
[data-theme="light"] body.pt-ops .result-type.V,
[data-theme="light"] body.pt-ops .result-type.CREW { background:#cffafe !important;color:#0e7490 !important; }
[data-theme="light"] body.pt-ops .result-type.PI,
[data-theme="light"] body.pt-ops .result-type.TUNNEL { background:#fef3c7 !important;color:#92400e !important; }
[data-theme="light"] body.pt-ops .result-type.DEF { background:#f1f5f9 !important;color:#475569 !important; }
[data-theme="light"] body.pt-ops .result-type.DOC,
[data-theme="light"] body.pt-ops .result-type.MARK { background:#fae8ff !important;color:#86198f !important; }

/* ─── Yüksek kontrast light katmanı: ADR belge/kapsam/kod/danışman sayfaları ─── */
[data-theme="light"] body.pt-ops .topbar {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}
[data-theme="light"] body.pt-ops .card,
[data-theme="light"] body.pt-ops .stat,
[data-theme="light"] body.pt-ops .code-card,
[data-theme="light"] body.pt-ops .detail-row,
[data-theme="light"] body.pt-ops .id-item,
[data-theme="light"] body.pt-ops .did-row,
[data-theme="light"] body.pt-ops .ta-expand,
[data-theme="light"] body.pt-ops .te-sub-detail,
[data-theme="light"] body.pt-ops .variant-box {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
  color: #172033 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
[data-theme="light"] body.pt-ops .code-card:hover,
[data-theme="light"] body.pt-ops .detail-row:hover,
[data-theme="light"] body.pt-ops .did-row:hover {
  background: #f8fafc !important;
  border-color: rgba(29, 78, 216, 0.42) !important;
}
[data-theme="light"] body.pt-ops .card h3,
[data-theme="light"] body.pt-ops .card-head h3,
[data-theme="light"] body.pt-ops .preview-wrap h2,
[data-theme="light"] body.pt-ops section h2,
[data-theme="light"] body.pt-ops .sec-header,
[data-theme="light"] body.pt-ops .ta-row-label,
[data-theme="light"] body.pt-ops .ta-expand .te-title,
[data-theme="light"] body.pt-ops .te-sub-detail .sd-label {
  color: #334155 !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
}
[data-theme="light"] body.pt-ops .card h3 .ref,
[data-theme="light"] body.pt-ops section h2 span,
[data-theme="light"] body.pt-ops .col-badge,
[data-theme="light"] body.pt-ops .tag.opt {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #1e293b !important;
}
[data-theme="light"] body.pt-ops .field label,
[data-theme="light"] body.pt-ops .field .hint,
[data-theme="light"] body.pt-ops .stat-label,
[data-theme="light"] body.pt-ops .id-item .label,
[data-theme="light"] body.pt-ops .item-meta,
[data-theme="light"] body.pt-ops .item-num,
[data-theme="light"] body.pt-ops .code-ref,
[data-theme="light"] body.pt-ops .search-row .count,
[data-theme="light"] body.pt-ops .no-result,
[data-theme="light"] body.pt-ops .vb-detail {
  color: #334155 !important;
}
[data-theme="light"] body.pt-ops .id-item .value,
[data-theme="light"] body.pt-ops .detail-row .text,
[data-theme="light"] body.pt-ops .code-text,
[data-theme="light"] body.pt-ops .did-text,
[data-theme="light"] body.pt-ops .ta-expand,
[data-theme="light"] body.pt-ops .ta-expand .te-text,
[data-theme="light"] body.pt-ops .te-sub-detail .sd-text,
[data-theme="light"] body.pt-ops .item-psn {
  color: #172033 !important;
}
[data-theme="light"] body.pt-ops .id-item .value.mono,
[data-theme="light"] body.pt-ops .item-un,
[data-theme="light"] body.pt-ops .ta-expand .te-code,
[data-theme="light"] body.pt-ops .tbl td.ref {
  color: #1d4ed8 !important;
}
[data-theme="light"] body.pt-ops .tbl th,
[data-theme="light"] body.pt-ops .refTable th {
  background: #eef2f7 !important;
  color: #334155 !important;
  border-bottom-color: rgba(15, 23, 42, 0.18) !important;
}
[data-theme="light"] body.pt-ops .tbl td,
[data-theme="light"] body.pt-ops .refTable td {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  color: #172033 !important;
}
[data-theme="light"] body.pt-ops .tbl tr:hover td {
  background: #eef6ff !important;
}
[data-theme="light"] body.pt-ops .tbl td.title {
  color: #0b1220 !important;
}
[data-theme="light"] body.pt-ops .tbl td.api {
  color: #047857 !important;
}
[data-theme="light"] body.pt-ops .tbl td.file {
  color: #c2410c !important;
}
[data-theme="light"] body.pt-ops .tbl td.cnt {
  color: #6d28d9 !important;
}
[data-theme="light"] body.pt-ops .part-header,
[data-theme="light"] body.pt-ops .part-header td {
  background: #dbeafe !important;
  color: #1e40af !important;
  border-bottom-color: rgba(29, 78, 216, 0.3) !important;
}

[data-theme="light"] body.pt-ops .tab,
[data-theme="light"] body.pt-ops .ta-btn,
[data-theme="light"] body.pt-ops .te-sub {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
  color: #334155 !important;
}
[data-theme="light"] body.pt-ops .tab:hover,
[data-theme="light"] body.pt-ops .ta-btn:hover,
[data-theme="light"] body.pt-ops .te-sub:hover {
  background: #eef6ff !important;
  border-color: rgba(29, 78, 216, 0.45) !important;
  color: #1d4ed8 !important;
}
[data-theme="light"] body.pt-ops .tab.on,
[data-theme="light"] body.pt-ops .tab.active,
[data-theme="light"] body.pt-ops .ta-btn.active,
[data-theme="light"] body.pt-ops .te-sub.active {
  background: #dbeafe !important;
  border-color: #3b82f6 !important;
  color: #1e40af !important;
}
[data-theme="light"] body.pt-ops .tab.blue.on { background:#dbeafe !important;border-color:#3b82f6 !important;color:#1e40af !important; }
[data-theme="light"] body.pt-ops .tab.orange.on { background:#ffedd5 !important;border-color:#fb923c !important;color:#9a3412 !important; }
[data-theme="light"] body.pt-ops .tab.green.on { background:#dcfce7 !important;border-color:#22c55e !important;color:#166534 !important; }
[data-theme="light"] body.pt-ops .tab.purple.on { background:#ede9fe !important;border-color:#8b5cf6 !important;color:#5b21b6 !important; }
[data-theme="light"] body.pt-ops .tab.yellow.on,
[data-theme="light"] body.pt-ops .tab.amber.on { background:#fef3c7 !important;border-color:#f59e0b !important;color:#92400e !important; }
[data-theme="light"] body.pt-ops .tab.pink.on { background:#fce7f3 !important;border-color:#ec4899 !important;color:#9d174d !important; }
[data-theme="light"] body.pt-ops .tab.sky.on { background:#e0f2fe !important;border-color:#0ea5e9 !important;color:#075985 !important; }

[data-theme="light"] body.pt-ops .code-chip.sp,
[data-theme="light"] body.pt-ops .badge-s { background:#ede9fe !important;border-color:#8b5cf6 !important;color:#5b21b6 !important; }
[data-theme="light"] body.pt-ops .code-chip.pi,
[data-theme="light"] body.pt-ops .badge-v { background:#dbeafe !important;border-color:#3b82f6 !important;color:#1e40af !important; }
[data-theme="light"] body.pt-ops .code-chip.tank,
[data-theme="light"] body.pt-ops .summary-chip.yellow { background:#fef3c7 !important;border-color:#f59e0b !important;color:#92400e !important; }
[data-theme="light"] body.pt-ops .code-chip.cv,
[data-theme="light"] body.pt-ops .code-chip.warn,
[data-theme="light"] body.pt-ops .summary-chip.red,
[data-theme="light"] body.pt-ops .badge-cv { background:#fee2e2 !important;border-color:#ef4444 !important;color:#991b1b !important; }
[data-theme="light"] body.pt-ops .code-chip.s,
[data-theme="light"] body.pt-ops .code-chip.ok,
[data-theme="light"] body.pt-ops .summary-chip.green,
[data-theme="light"] body.pt-ops .badge-bk,
[data-theme="light"] body.pt-ops .badge-vc { background:#dcfce7 !important;border-color:#22c55e !important;color:#166534 !important; }
[data-theme="light"] body.pt-ops .code-chip.v,
[data-theme="light"] body.pt-ops .summary-chip.blue,
[data-theme="light"] body.pt-ops .badge-ap { background:#cffafe !important;border-color:#06b6d4 !important;color:#0e7490 !important; }
[data-theme="light"] body.pt-ops .badge.ui { background:#dbeafe !important;border-color:#3b82f6 !important;color:#1e40af !important; }
[data-theme="light"] body.pt-ops .badge.json { background:#ffedd5 !important;border-color:#fb923c !important;color:#9a3412 !important; }
[data-theme="light"] body.pt-ops .badge.api,
[data-theme="light"] body.pt-ops .badge.ok { background:#dcfce7 !important;border-color:#22c55e !important;color:#166534 !important; }
[data-theme="light"] body.pt-ops .badge.xlsx,
[data-theme="light"] body.pt-ops .badge.warn { background:#fef3c7 !important;border-color:#f59e0b !important;color:#92400e !important; }
[data-theme="light"] body.pt-ops .badge.plan { background:#e2e8f0 !important;border-color:#94a3b8 !important;color:#334155 !important; }

[data-theme="light"] body.pt-ops .variant-box {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
}
[data-theme="light"] body.pt-ops .variant-box .vb-info {
  color: #92400e !important;
}
[data-theme="light"] body.pt-ops .variant-box.single {
  background: #dcfce7 !important;
  border-color: #22c55e !important;
}
[data-theme="light"] body.pt-ops .variant-box.single .vb-info {
  color: #166534 !important;
}
[data-theme="light"] body.pt-ops .error-box {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}
[data-theme="light"] body.pt-ops .tag.mand {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

/* Danışman Desteği — Tablo A özeti iç metinleri */
[data-theme="light"] body.pt-ops .ta-btn .ta-col {
  color: #475569 !important;
}
[data-theme="light"] body.pt-ops .ta-btn .ta-val {
  color: #172033 !important;
}
[data-theme="light"] body.pt-ops .ta-expand .te-item {
  border-bottom-color: rgba(15, 23, 42, 0.14) !important;
}
[data-theme="light"] body.pt-ops .te-sub.warn {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}
[data-theme="light"] body.pt-ops .te-sub.ok {
  background: #dcfce7 !important;
  border-color: #22c55e !important;
  color: #166534 !important;
}

/* Güvenlik Planı — light mode kontrast */
[data-theme="light"] body.pt-ops .page-layout,
[data-theme="light"] body.pt-ops .main-content {
  color: #0b1220 !important;
}
[data-theme="light"] body.pt-ops .sidebar {
  scrollbar-color: rgba(15, 23, 42, 0.2) transparent !important;
}
[data-theme="light"] body.pt-ops .sb-title,
[data-theme="light"] body.pt-ops .sb-progress .lbl,
[data-theme="light"] body.pt-ops .sb-ptext,
[data-theme="light"] body.pt-ops .card-subtitle,
[data-theme="light"] body.pt-ops .check-item .adr-ref,
[data-theme="light"] body.pt-ops .print-mode-bar label {
  color: #334155 !important;
}
[data-theme="light"] body.pt-ops .sb-link,
[data-theme="light"] body.pt-ops .sb-top {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  color: #334155 !important;
}
[data-theme="light"] body.pt-ops .sb-link:hover,
[data-theme="light"] body.pt-ops .sb-link.active,
[data-theme="light"] body.pt-ops .sb-top:hover {
  background: #dbeafe !important;
  border-color: #3b82f6 !important;
  color: #1e40af !important;
}
[data-theme="light"] body.pt-ops .sb-pbar {
  background: #e2e8f0 !important;
}
[data-theme="light"] body.pt-ops .sb-progress .pct {
  color: #15803d !important;
}
[data-theme="light"] body.pt-ops .card-title {
  color: #0b1220 !important;
}
[data-theme="light"] body.pt-ops .check-item,
[data-theme="light"] body.pt-ops .print-mode-bar {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
  color: #172033 !important;
}
[data-theme="light"] body.pt-ops .check-item:hover {
  background: #f8fafc !important;
  border-color: rgba(29, 78, 216, 0.42) !important;
}
[data-theme="light"] body.pt-ops .check-item.done {
  background: #dcfce7 !important;
  border-color: #22c55e !important;
}
[data-theme="light"] body.pt-ops .check-item .ck {
  border-color: #64748b !important;
}
[data-theme="light"] body.pt-ops .check-item .ck-text {
  color: #172033 !important;
}
[data-theme="light"] body.pt-ops .check-item.done .ck-text {
  color: #166534 !important;
}
[data-theme="light"] body.pt-ops .thr-tbl th {
  background: #eef2f7 !important;
  border-bottom-color: rgba(15, 23, 42, 0.18) !important;
  color: #334155 !important;
}
[data-theme="light"] body.pt-ops .thr-tbl td {
  border-bottom-color: rgba(15, 23, 42, 0.14) !important;
  color: #172033 !important;
}
[data-theme="light"] body.pt-ops .thr-tbl tr:hover td {
  background: #eef6ff !important;
}
[data-theme="light"] body.pt-ops .thr-tbl .val-zero {
  color: #b91c1c !important;
}
[data-theme="light"] body.pt-ops .thr-tbl .val-exempt {
  color: #15803d !important;
}

[data-theme="light"] body.pt-ops .warn-box {
  background: #fcd34d !important;
  border-color: #d97706 !important;
  color: #111827 !important;
}
[data-theme="light"] body.pt-ops .warn-box * {
  color: #111827 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATCH-ALL light mode: yaygın class tabanlı dark → light düzeltme
   Sadece spesifik class isimlerini hedefler — attribute selector KULLANMAZ
   (attribute selector'lar diğer sayfalarda bilinçli koyu arkaplanlı
   elementleri bozabilir). Yeni sayfada sorun çıkarsa buraya class ekle.
   ═══════════════════════════════════════════════════════════════════════════ */

/* cellScroll: ADR sayfalarında PSN/teknik ad gösterimi */
[data-theme="light"] body.pt-ops .cellScroll { color: #172033 !important; }
/* taBlock, taRow, taCell: Table A gösterimleri */
[data-theme="light"] body.pt-ops .taBlock,
[data-theme="light"] body.pt-ops .taRow,
[data-theme="light"] body.pt-ops .taCell { background: rgba(15,23,42,.03) !important; border-color: rgba(15,23,42,.15) !important; }
[data-theme="light"] body.pt-ops .taCell-h { color: #64748b !important; }
[data-theme="light"] body.pt-ops .taCell-v { color: #172033 !important; }
/* item-row: tehlikeli madde kalemleri listesi */
[data-theme="light"] body.pt-ops .item-row { background: #f8fafc !important; border-color: rgba(15,23,42,.15) !important; }
[data-theme="light"] body.pt-ops .item-row:hover { border-color: rgba(15,23,42,.3) !important; }
[data-theme="light"] body.pt-ops .item-num { color: #64748b !important; }
[data-theme="light"] body.pt-ops .item-psn { color: #172033 !important; }
[data-theme="light"] body.pt-ops .item-meta { color: #475569 !important; }
[data-theme="light"] body.pt-ops .item-un { color: #1d4ed8 !important; }
/* un-lookup, un-data, un-status: UN arama alanları */
[data-theme="light"] body.pt-ops .un-data { background: #f8fafc !important; border-color: rgba(15,23,42,.2) !important; color: #1d4ed8 !important; }
[data-theme="light"] body.pt-ops .un-status { color: #475569 !important; }
/* gate: checkbox gate alanı */
[data-theme="light"] body.pt-ops .gate { background: #fff !important; border-color: rgba(15,23,42,.2) !important; }
[data-theme="light"] body.pt-ops .gate label { color: #172033 !important; }
[data-theme="light"] body.pt-ops .gate .desc { color: #64748b !important; }
/* chk-item: checkbox item'lar */
[data-theme="light"] body.pt-ops .chk-item { background: #f8fafc !important; border-color: rgba(15,23,42,.2) !important; color: #334155 !important; }
[data-theme="light"] body.pt-ops .chk-item.active { border-color: #3b82f6 !important; background: rgba(59,130,246,.1) !important; color: #1d4ed8 !important; }
/* edit-mode-bar: düzenleme modu göstergesi */
[data-theme="light"] body.pt-ops .edit-mode-bar { background: rgba(251,191,36,.1) !important; border-color: rgba(251,191,36,.4) !important; color: #8a5a00 !important; }
/* master-note: yardım metinleri */
[data-theme="light"] body.pt-ops .master-note { color: #64748b !important; }

/* ── ADR Kontrol Listesi: icon chips beside questions stay dark without these ──
   Page CSS hardcodes .cl-state-btn / .attach-btn to #0f172a; light body text
   then paints glyphs near-black on those dark chips. Scope: checklist only. */
[data-theme="light"] body.pt-ops .cl-item {
  border-color: rgba(15, 23, 42, 0.18) !important;
}
[data-theme="light"] body.pt-ops .cl-item:hover {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.28) !important;
}
[data-theme="light"] body.pt-ops .cl-item.checked {
  background: #dcfce7 !important;
  border-color: #22c55e !important;
}
[data-theme="light"] body.pt-ops .cl-item.failed {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
}
[data-theme="light"] body.pt-ops .cl-item.na-state {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
}
[data-theme="light"] body.pt-ops .cl-item.checked .cl-text { color: #166534 !important; }
[data-theme="light"] body.pt-ops .cl-item.failed .cl-text { color: #991b1b !important; }
[data-theme="light"] body.pt-ops .cl-item.na-state .cl-text { color: #64748b !important; }
[data-theme="light"] body.pt-ops .cl-state-btn {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.28) !important;
  color: #334155 !important;
}
[data-theme="light"] body.pt-ops .cl-state-btn:hover {
  background: #eef2f7 !important;
  border-color: rgba(15, 23, 42, 0.42) !important;
  color: #0f172a !important;
}
[data-theme="light"] body.pt-ops .cl-state-btn.active-evet {
  background: #16a34a !important;
  border-color: #15803d !important;
  color: #ffffff !important;
}
[data-theme="light"] body.pt-ops .cl-state-btn.active-hayir {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
}
[data-theme="light"] body.pt-ops .cl-state-btn.active-na {
  background: #64748b !important;
  border-color: #475569 !important;
  color: #ffffff !important;
}
[data-theme="light"] body.pt-ops .attach-btn {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.28) !important;
  color: #334155 !important;
}
[data-theme="light"] body.pt-ops .attach-btn:hover {
  background: #eef6ff !important;
  border-color: #3b82f6 !important;
}
[data-theme="light"] body.pt-ops .cl-dynamic-badge {
  background: #dbeafe !important;
  border-color: #3b82f6 !important;
  color: #1e40af !important;
}
[data-theme="light"] body.pt-ops .cl-custom-badge {
  background: #ffedd5 !important;
  border-color: #f59e0b !important;
  color: #9a3412 !important;
}
[data-theme="light"] body.pt-ops .cl-ref,
[data-theme="light"] body.pt-ops .cl-progress {
  color: #475569 !important;
}
[data-theme="light"] body.pt-ops .progress-bar {
  background: #e2e8f0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BELGE / PRINT OUTPUT ISOLATION
   Theme !important rules above must NOT restyle printable document surfaces.
   Keep paper appearance in both dark and light app chrome.
   ═══════════════════════════════════════════════════════════════════════════ */
html[data-theme] body.pt-ops #docPreview,
html[data-theme] body #docPreview,
html[data-theme] body.pt-ops .pt-doc-paper,
html[data-theme] body .pt-doc-paper {
  background: #ffffff !important;
  color: #111111 !important;
  color-scheme: light;
  box-shadow: none;
}
html[data-theme] body.pt-ops #docPreview h1,
html[data-theme] body.pt-ops #docPreview h2,
html[data-theme] body.pt-ops #docPreview h3,
html[data-theme] body.pt-ops #docPreview p,
html[data-theme] body.pt-ops #docPreview li,
html[data-theme] body.pt-ops #docPreview strong,
html[data-theme] body.pt-ops #docPreview .doc-value,
html[data-theme] body.pt-ops #docPreview .entry-line,
html[data-theme] body.pt-ops .pt-doc-paper h1,
html[data-theme] body.pt-ops .pt-doc-paper h2,
html[data-theme] body.pt-ops .pt-doc-paper h3,
html[data-theme] body.pt-ops .pt-doc-paper p,
html[data-theme] body.pt-ops .pt-doc-paper .doc-value {
  color: #111111 !important;
  border-color: #111111;
}
html[data-theme] body.pt-ops #docPreview .doc-label,
html[data-theme] body.pt-ops #docPreview .entry-meta,
html[data-theme] body.pt-ops #docPreview .sig-box,
html[data-theme] body.pt-ops #docPreview .declaration,
html[data-theme] body.pt-ops .pt-doc-paper .doc-label,
html[data-theme] body.pt-ops .pt-doc-paper .declaration {
  color: #555555 !important;
}
html[data-theme] body.pt-ops #docPreview .goods-entry {
  background: #f9f9f9 !important;
  border-color: #cccccc !important;
  color: #111111 !important;
}
html[data-theme] body.pt-ops #docPreview table th,
html[data-theme] body.pt-ops #docPreview .goods-table th,
html[data-theme] body.pt-ops .pt-doc-paper table th {
  background: #f0f0f0 !important;
  color: #333333 !important;
  border-color: #999999 !important;
}
html[data-theme] body.pt-ops #docPreview table td,
html[data-theme] body.pt-ops #docPreview .goods-table td,
html[data-theme] body.pt-ops .pt-doc-paper table td {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #cccccc !important;
}
html[data-theme] body.pt-ops #docPreview tr:hover,
html[data-theme] body.pt-ops #docPreview table tr:hover,
html[data-theme] body.pt-ops .pt-doc-paper tr:hover {
  background: transparent !important;
}
/* Preserve intentional badge colors on paper */
html[data-theme] body.pt-ops #docPreview .exempt-badge {
  background: #e0f2fe !important;
  border-color: #7dd3fc !important;
  color: #0369a1 !important;
}
html[data-theme] body.pt-ops #docPreview .tunnel-code,
html[data-theme] body.pt-ops #docPreview .mp-badge {
  background: #fef3c7 !important;
  border-color: #fcd34d !important;
  color: #92400e !important;
}
html[data-theme] body.pt-ops #docPreview .mmf td {
  background: #ffffff !important;
  border-color: #111111 !important;
  color: #111111 !important;
}
html[data-theme] body.pt-ops #docPreview .mmf .goods-hd {
  background: #e8e8e8 !important;
  color: #111111 !important;
}

/* Print: neutralize theme !important so belge pages stay paper */
@media print {
  html[data-theme] body.pt-ops,
  html[data-theme] body {
    background: #ffffff !important;
    color: #111111 !important;
  }
  html[data-theme] body.pt-ops .card,
  html[data-theme] body.pt-ops .panel,
  html[data-theme] body.pt-ops .stat-box,
  html[data-theme] body.pt-ops .side,
  html[data-theme] body.pt-ops table th,
  html[data-theme] body.pt-ops table td,
  html[data-theme] body.pt-ops .qty-tbl th,
  html[data-theme] body.pt-ops .qty-tbl td,
  html[data-theme] body.pt-ops .trn-tbl th,
  html[data-theme] body.pt-ops .trn-tbl td,
  html[data-theme] body.pt-ops .qty-tbl th.mode-header,
  html[data-theme] body.pt-ops .trn-tbl th.mode-header {
    background: #ffffff !important;
    color: #111111 !important;
    border-color: #cccccc !important;
    box-shadow: none !important;
  }
  html[data-theme] body.pt-ops .qty-tbl th,
  html[data-theme] body.pt-ops .trn-tbl th {
    background: #f0f0f0 !important;
    color: #333333 !important;
  }
  html[data-theme] body.pt-ops .qty-tbl .cls-label,
  html[data-theme] body.pt-ops .trn-tbl .cls-label,
  html[data-theme] body.pt-ops .card-title,
  html[data-theme] body.pt-ops .field label {
    color: #111111 !important;
  }
  html[data-theme] body.pt-ops tr:hover {
    background: transparent !important;
  }
  html[data-theme] body.pt-ops input,
  html[data-theme] body.pt-ops select,
  html[data-theme] body.pt-ops textarea {
    background: #ffffff !important;
    color: #111111 !important;
    border-color: #cccccc !important;
  }
  html[data-theme] body.pt-ops #docPreview,
  html[data-theme] body.pt-ops .pt-doc-paper {
    background: #ffffff !important;
    color: #111111 !important;
  }
}
