/* =========================================================
   Area 3 V259.28 - Night Mode Contrast Hardening
   Loaded AFTER night-mode-v25927.css.
   Goal: no light-on-light or dark-on-dark combinations across
   legacy/custom module styles while preserving semantic colors.
   ========================================================= */

html[data-theme="dark"]{
  --a3c-bg:#212121;
  --a3c-surface:#2f2f2f;
  --a3c-surface-2:#292929;
  --a3c-surface-3:#343434;
  --a3c-text:#ececec;
  --a3c-muted:#b4b4b4;
  --a3c-border:#4a4a4a;
  --a3c-link:#8bc2ff;
}

/* ---------- Status Alat ---------- */
html[data-theme="dark"] body .status-desktop-table-v198 .status-equipment-link-v198,
html[data-theme="dark"] body .status-desktop-table-v198 .status-equipment-link-v198:link,
html[data-theme="dark"] body .status-desktop-table-v198 .status-equipment-link-v198:visited,
html[data-theme="dark"] body .status-desktop-table-v198 .status-equipment-link-v198 b{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  text-decoration:none!important;
}
html[data-theme="dark"] body .status-desktop-table-v198 .status-equipment-link-v198:hover,
html[data-theme="dark"] body .status-desktop-table-v198 .status-equipment-link-v198:focus,
html[data-theme="dark"] body .status-desktop-table-v198 .status-equipment-link-v198:hover b,
html[data-theme="dark"] body .status-desktop-table-v198 .status-equipment-link-v198:focus b{
  color:#a8d0ff!important;
  -webkit-text-fill-color:#a8d0ff!important;
}
html[data-theme="dark"] body .status-mobile-cards-v198 .alat-card-link,
html[data-theme="dark"] body .status-mobile-cards-v198 .alat-card-link:link,
html[data-theme="dark"] body .status-mobile-cards-v198 .alat-card-link:visited,
html[data-theme="dark"] body .status-mobile-cards-v198 .alat-card-main h3,
html[data-theme="dark"] body .status-mobile-cards-v198 .alat-card-main p{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}

/* Status dropdowns should also be native-dark, not white islands. */
html[data-theme="dark"] body select.status-select,
html[data-theme="dark"] body select.status-select-table-v198{
  background:#292929!important;
  background-color:#292929!important;
  color:#d7dde6!important;
  -webkit-text-fill-color:#d7dde6!important;
  border-color:#626262!important;
}
html[data-theme="dark"] body select.status-select.ready{color:#4ade80!important;-webkit-text-fill-color:#4ade80!important;border-color:#22c55e!important;}
html[data-theme="dark"] body select.status-select.ready-catatan{color:#fde047!important;-webkit-text-fill-color:#fde047!important;border-color:#eab308!important;}
html[data-theme="dark"] body select.status-select.breakdown{color:#fb923c!important;-webkit-text-fill-color:#fb923c!important;border-color:#f97316!important;}
html[data-theme="dark"] body select.status-select.accident{color:#f87171!important;-webkit-text-fill-color:#f87171!important;border-color:#ef4444!important;}

/* ---------- PR/PO donut: intentionally LIGHT center => DARK text ---------- */
html[data-theme="dark"] body .proc-dashboard-v190 .proc-pie-v190:after{
  background:#f8fafc!important;
  background-color:#f8fafc!important;
}
html[data-theme="dark"] body .proc-dashboard-v190 .proc-pie-v190 span,
html[data-theme="dark"] body .proc-dashboard-v190 .proc-pie-v190 span b{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  text-shadow:none!important;
}
html[data-theme="dark"] body .proc-dashboard-v190 .proc-pie-v190 span small{
  color:#475569!important;
  -webkit-text-fill-color:#475569!important;
  text-shadow:none!important;
}

/* ---------- PR/PO Supplier searchable combobox ---------- */
html[data-theme="dark"] body .proc-supplier-trigger-v204{
  background:#2b2b2b!important;
  background-color:#2b2b2b!important;
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
  border-color:#565656!important;
}
html[data-theme="dark"] body .proc-supplier-menu-v204,
html[data-theme="dark"] body .proc-supplier-search-wrap-v204{
  background:#252525!important;
  background-color:#252525!important;
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
  border-color:#565656!important;
}
html[data-theme="dark"] body .proc-supplier-search-wrap-v204 input{
  background:#2b2b2b!important;
  background-color:#2b2b2b!important;
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
  border-color:#5b5b5b!important;
}
html[data-theme="dark"] body .proc-supplier-option-v204{
  background:#252525!important;
  background-color:#252525!important;
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
}
html[data-theme="dark"] body .proc-supplier-option-v204:hover,
html[data-theme="dark"] body .proc-supplier-option-v204:focus{
  background:#343434!important;
  background-color:#343434!important;
  color:#a8d0ff!important;
  -webkit-text-fill-color:#a8d0ff!important;
}
html[data-theme="dark"] body .proc-supplier-empty-v204{
  color:#b4b4b4!important;
  -webkit-text-fill-color:#b4b4b4!important;
}

/* ---------- Legacy/common light surfaces ---------- */
html[data-theme="dark"] body .dash-card,
html[data-theme="dark"] body .chips span,
html[data-theme="dark"] body .desc,
html[data-theme="dark"] body .bubble,
html[data-theme="dark"] body .history-item,
html[data-theme="dark"] body .activity-summary,
html[data-theme="dark"] body .activity-card,
html[data-theme="dark"] body .activity-track,
html[data-theme="dark"] body .link-grid a,
html[data-theme="dark"] body .linked-task-title-card-v7,
html[data-theme="dark"] body .activity-tool-v18412,
html[data-theme="dark"] body .activity-group-v18413,
html[data-theme="dark"] body .activity-formula-v18413,
html[data-theme="dark"] body .inventory-detail-grid-v170>div,
html[data-theme="dark"] body .linimasa-head-v145>span,
html[data-theme="dark"] body .linimasa-head-v146>span,
html[data-theme="dark"] body .linimasa-card-v145,
html[data-theme="dark"] body .linimasa-card-v146,
html[data-theme="dark"] body .linimasa-content-v146,
html[data-theme="dark"] body .notes-composer-v179,
html[data-theme="dark"] body .note-card-v179,
html[data-theme="dark"] body .note-ai-v179,
html[data-theme="dark"] body .notes-search-v1848,
html[data-theme="dark"] body .ai-chat-hero-v180,
html[data-theme="dark"] body .ai-answer-card-v180,
html[data-theme="dark"] body .vmi-report-metrics-v300 article{
  background:#2b2b2b!important;
  background-color:#2b2b2b!important;
  background-image:none!important;
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
  border-color:#4a4a4a!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body .history-item.backward{background:#352528!important;border-color:#74434b!important;}
html[data-theme="dark"] body .history-item.start{background:#25313a!important;}
html[data-theme="dark"] body .dash-card.total{background:#26313a!important;border-color:#47677f!important;}

/* ---------- Tasklist selection / explanation tools ---------- */
html[data-theme="dark"] body .task-report-count-v25918,
html[data-theme="dark"] body .task-report-mini-btn-v25918,
html[data-theme="dark"] body .task-card-check-v25918,
html[data-theme="dark"] body .task-update-add-row-v259,
html[data-theme="dark"] body .task-update-edit-row-v2593 td,
html[data-theme="dark"] body .task-update-lock-v259{
  background:#292929!important;
  background-color:#292929!important;
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
  border-color:#505050!important;
}
html[data-theme="dark"] body .task-report-mini-btn-v25918:hover{background:#363636!important;}

/* Task detail action hover must not flash to white in Night Mode. */
html[data-theme="dark"] body .detail-actions.detail-text-actions-v9 > a.text-btn-v9:hover,
html[data-theme="dark"] body .detail-actions.detail-text-actions-v9 > a.text-btn-v9:focus,
html[data-theme="dark"] body .detail-actions.detail-text-actions-v9 > form > button.text-btn-v9:hover,
html[data-theme="dark"] body .detail-actions.detail-text-actions-v9 > form > button.text-btn-v9:focus{
  background:#343434!important;
  background-color:#343434!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  border-color:#7b7b7b!important;
}
html[data-theme="dark"] body .detail-actions.detail-text-actions-v9 > form > button.text-btn-v9.danger:hover,
html[data-theme="dark"] body .detail-actions.detail-text-actions-v9 > form > button.text-btn-v9.danger:focus{
  background:#442525!important;
  background-color:#442525!important;
  color:#ff9b9b!important;
  -webkit-text-fill-color:#ff9b9b!important;
  border-color:#d86666!important;
}

/* ---------- Notes editor / mode controls ---------- */
html[data-theme="dark"] body .notes-mode-row-v179 button,
html[data-theme="dark"] body .notes-mode-row-v179 label,
html[data-theme="dark"] body .notes-editor-toolbar-v1843 button{
  background:#292929!important;
  background-color:#292929!important;
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
  border-color:#555!important;
}
html[data-theme="dark"] body .notes-mode-row-v179 .active{
  background:#21384a!important;
  color:#8fd3ff!important;
  -webkit-text-fill-color:#8fd3ff!important;
  border-color:#3978a0!important;
}
html[data-theme="dark"] body .notes-wysiwyg-v1843,
html[data-theme="dark"] body .notes-editor-toolbar-v1843,
html[data-theme="dark"] body .notes-editor-v1843,
html[data-theme="dark"] body .notes-search-form-v1848 input[type=search],
html[data-theme="dark"] body .notes-inline-preview-v1843{
  background:#292929!important;
  background-color:#292929!important;
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
  border-color:#555!important;
}
html[data-theme="dark"] body .note-content-v179,
html[data-theme="dark"] body .note-ai-v179 strong,
html[data-theme="dark"] body .ai-chat-hero-v180 h1,
html[data-theme="dark"] body .ai-answer-card-v180>div{
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
}

/* ---------- PR/PO list/detail/upload legacy light surfaces ---------- */
html[data-theme="dark"] body .proc-tabs-v185 a,
html[data-theme="dark"] body .proc-kpi-v185 div,
html[data-theme="dark"] body .proc-detail-grid-v185 span,
html[data-theme="dark"] body .proc-upload-grid-v185 form,
html[data-theme="dark"] body .proc-item-table-v186 td[rowspan],
html[data-theme="dark"] body .proc-item-sub-row-v186 td,
html[data-theme="dark"] body .proc-mobile-card-v189,
html[data-theme="dark"] body .proc-mobile-empty-v189,
html[data-theme="dark"] body .proc-progress-numbers-v190 span{
  background:#2b2b2b!important;
  background-color:#2b2b2b!important;
  background-image:none!important;
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
  border-color:#4a4a4a!important;
}
html[data-theme="dark"] body .proc-tabs-v185 a:hover{background:#363636!important;}
html[data-theme="dark"] body .proc-kpi-v185 span,
html[data-theme="dark"] body .proc-detail-grid-v185 b,
html[data-theme="dark"] body .proc-progress-numbers-v190 small,
html[data-theme="dark"] body .proc-mobile-meta-v189 small{
  color:#b4b4b4!important;
  -webkit-text-fill-color:#b4b4b4!important;
}
html[data-theme="dark"] body .proc-kpi-v185 b,
html[data-theme="dark"] body .proc-progress-numbers-v190 b,
html[data-theme="dark"] body .proc-mobile-card-v189,
html[data-theme="dark"] body .proc-mobile-card-v189 *{
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
}
/* Keep semantic procurement status badges readable. */
html[data-theme="dark"] body .proc-status-v185,
html[data-theme="dark"] body .proc-status-v185 *{
  -webkit-text-fill-color:currentColor!important;
}
html[data-theme="dark"] body .proc-status-v185.s-f{color:#111827!important;-webkit-text-fill-color:#111827!important;}

/* ---------- Linimasa table ---------- */
html[data-theme="dark"] body .linimasa-table-v145{
  background:#252525!important;
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
}

/* ---------- Full-screen activity/Gantt workspace ---------- */
html[data-theme="dark"] body .gantt-workspace-v214,
html[data-theme="dark"] body .gantt-workspace-head-v214,
html[data-theme="dark"] body .gantt-workspace-body-v214,
html[data-theme="dark"] body .gantt-workspace-row-v214>div:nth-child(1),
html[data-theme="dark"] body .gantt-workspace-row-v214>div:nth-child(2),
html[data-theme="dark"] body .gantt-date-header-v215,
html[data-theme="dark"] body .gantt-track-v214,
html[data-theme="dark"] body .gantt-track-v215{
  background:#252525!important;
  background-color:#252525!important;
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
  border-color:#4a4a4a!important;
}
html[data-theme="dark"] body .gantt-workspace-header-v214,
html[data-theme="dark"] body .gantt-workspace-header-v214>div:nth-child(1),
html[data-theme="dark"] body .gantt-workspace-header-v214>div:nth-child(2){
  background:#303744!important;
  color:#f3f5f8!important;
  -webkit-text-fill-color:#f3f5f8!important;
}

/* ---------- AI workspace ---------- */
html[data-theme="dark"] body .aiw-source-btn-v229,
html[data-theme="dark"] body .aiw-file-v229,
html[data-theme="dark"] body .aiw-answer-v229,
html[data-theme="dark"] body .aiw-action-v229,
html[data-theme="dark"] body .aiw-form-v229 fieldset{
  background:#2b2b2b!important;
  background-color:#2b2b2b!important;
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
  border-color:#4a4a4a!important;
}

/* ---------- AI Part Search custom cards ---------- */
html[data-theme="dark"] body .part-ai-hero-v25912,
html[data-theme="dark"] body .part-ai-camera-v25912,
html[data-theme="dark"] body .part-ai-camera-button-v25912,
html[data-theme="dark"] body .part-ai-steps-v25912>div,
html[data-theme="dark"] body .part-ai-clue-card-v25912,
html[data-theme="dark"] body .part-ai-results-v25912,
html[data-theme="dark"] body .part-ai-result-v25912,
html[data-theme="dark"] body .part-ai-result-meta-v25912>span,
html[data-theme="dark"] body .part-ai-empty-v25912,
html[data-theme="dark"] body .part-ai-history-v25914,
html[data-theme="dark"] body .part-ai-history-summary-v25914>span,
html[data-theme="dark"] body .part-ai-history-item-v25914,
html[data-theme="dark"] body .part-ai-history-meta-v25914>span,
html[data-theme="dark"] body .part-ai-runtime-v25915 span{
  background:#2b2b2b!important;
  background-color:#2b2b2b!important;
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
  border-color:#4a4a4a!important;
}
html[data-theme="dark"] body .part-ai-clue-card-v25912 h3,
html[data-theme="dark"] body .part-ai-results-head-v25912 h2,
html[data-theme="dark"] body .part-ai-result-top-v25912 h3,
html[data-theme="dark"] body .part-ai-score-v25912 b,
html[data-theme="dark"] body .part-ai-description-v25912{
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
}
html[data-theme="dark"] body .part-ai-result-top-v25912 small,
html[data-theme="dark"] body .part-ai-reason-v25912,
html[data-theme="dark"] body .part-ai-conclusion-v25912,
html[data-theme="dark"] body .part-ai-history-meta-v25914 small{
  color:#b4b4b4!important;
  -webkit-text-fill-color:#b4b4b4!important;
}

/* Warning/info surfaces remain semantic, but use dark variants. */
html[data-theme="dark"] body .part-ai-uncertainty-v25912,
html[data-theme="dark"] body .part-ai-followup-v25912,
html[data-theme="dark"] body .part-ai-history-note-v25914,
html[data-theme="dark"] body .alert.warning.part-ai-alert-v25912{
  background:#3a3120!important;
  color:#f3d99b!important;
  -webkit-text-fill-color:#f3d99b!important;
  border-color:#6e5a2e!important;
}

/* ---------- Universal muted helpers after old hard-coded dark text ---------- */
html[data-theme="dark"] body .inventory-detail-grid-v170 small,
html[data-theme="dark"] body .linimasa-card-v145 small,
html[data-theme="dark"] body .linimasa-card-v146 small,
html[data-theme="dark"] body .note-card-v179 header time,
html[data-theme="dark"] body .activity-group-head-v18413 small,
html[data-theme="dark"] body .aiw-head-v229 p{
  color:#b4b4b4!important;
  -webkit-text-fill-color:#b4b4b4!important;
}

/* ---------- Focus / disabled readability ---------- */
html[data-theme="dark"] body :disabled,
html[data-theme="dark"] body [aria-disabled="true"]{
  opacity:.68;
}
html[data-theme="dark"] body input:-webkit-autofill,
html[data-theme="dark"] body input:-webkit-autofill:hover,
html[data-theme="dark"] body input:-webkit-autofill:focus{
  -webkit-text-fill-color:#ececec!important;
  -webkit-box-shadow:0 0 0 1000px #2b2b2b inset!important;
  box-shadow:0 0 0 1000px #2b2b2b inset!important;
  caret-color:#ececec!important;
}

/* ---------- Remaining module surfaces found in contrast audit ---------- */
html[data-theme="dark"] body .thumb-card,
html[data-theme="dark"] body .equipment-mini-card,
html[data-theme="dark"] body .task-button,
html[data-theme="dark"] body .history-card-safe,
html[data-theme="dark"] body .history-card-safe-body,
html[data-theme="dark"] body .notif-item,
html[data-theme="dark"] body .notif-item-v11,
html[data-theme="dark"] body .app-card-action,
html[data-theme="dark"] body .hero-task-pill,
html[data-theme="dark"] body .hero-circle,
html[data-theme="dark"] body .hero-device,
html[data-theme="dark"] body .linked-task-title-card,
html[data-theme="dark"] body .alat-result-card,
html[data-theme="dark"] body .activity-mobile-meta-v8 div,
html[data-theme="dark"] body .status-timeline-card-meta-v9 div,
html[data-theme="dark"] body .notif-page-head-v11>span,
html[data-theme="dark"] body .tasklist-table-shell-v12,
html[data-theme="dark"] body .task-card-v12,
html[data-theme="dark"] body .task-card-select-wrap-v25918:nth-child(even) .task-card-v12,
html[data-theme="dark"] body .task-card-meta-v12 span:not(.status),
html[data-theme="dark"] body .more-filter-v15,
html[data-theme="dark"] body .more-filter-v15.more-filter-inline-v16[open],
html[data-theme="dark"] body .import-steps-v15,
html[data-theme="dark"] body .doc-actions-v19,
html[data-theme="dark"] body .doc-section-v19 .doc-actions-v19,
html[data-theme="dark"] body .doc-section-v19 .doc-edit-v19 summary,
html[data-theme="dark"] body .doc-section-v19 .doc-delete-v19,
html[data-theme="dark"] body .readonly-progress-v27,
html[data-theme="dark"] body .linked-graphic-card-v27 .row-actions,
html[data-theme="dark"] body .doc-upload-input-v38,
html[data-theme="dark"] body .doc-delete-v19,
html[data-theme="dark"] body .doc-edit-v19 summary,
html[data-theme="dark"] body .link-form-upload-v38,
html[data-theme="dark"] body .link-form,
html[data-theme="dark"] body .inventory-filter-panel,
html[data-theme="dark"] body .inventory-add-site,
html[data-theme="dark"] body .inventory-import-panel,
html[data-theme="dark"] body .inventory-upload-form input[type=file],
html[data-theme="dark"] body .inventory-more-filter-v43[open],
html[data-theme="dark"] body .dashboard-filter-card-v52 select,
html[data-theme="dark"] body .chart-card-head-v52 span,
html[data-theme="dark"] body .chart-legend-v52 a,
html[data-theme="dark"] body .chart-legend-v52 div,
html[data-theme="dark"] body .age-uom-v54,
html[data-theme="dark"] body .filter-panel,
html[data-theme="dark"] body .filter-card,
html[data-theme="dark"] body .search-panel,
html[data-theme="dark"] body .contract-filter-card,
html[data-theme="dark"] body .contract-table-wrap,
html[data-theme="dark"] body .contract-kpi-grid>div,
html[data-theme="dark"] body .contract-detail-grid>div,
html[data-theme="dark"] body .contract-doc-card,
html[data-theme="dark"] body .contract-thumb,
html[data-theme="dark"] body .contract-mobile-card-v71,
html[data-theme="dark"] body .contract-mobile-meta-v71 span,
html[data-theme="dark"] body .contract-mobile-grid-v71 div,
html[data-theme="dark"] body .contract-mobile-note-v71,
html[data-theme="dark"] body .home-search-page,
html[data-theme="dark"] body .home-search-box,
html[data-theme="dark"] body .search-choice,
html[data-theme="dark"] body .admin-tabs a,
html[data-theme="dark"] body .admin-tab,
html[data-theme="dark"] body .admin-tab-nav a,
html[data-theme="dark"] body .tab-admin a,
html[data-theme="dark"] body .hm-note-v113,
html[data-theme="dark"] body .hm-summary-card-v113,
html[data-theme="dark"] body .hm-table-v113 th:first-child,
html[data-theme="dark"] body .hm-table-v113 td:first-child,
html[data-theme="dark"] body .hm-analysis-card-v113,
html[data-theme="dark"] body .inventory-card-filter-v114,
html[data-theme="dark"] body .status-heatmap-inside-card-v114,
html[data-theme="dark"] body .notes-toolbar-upload-v230,
html[data-theme="dark"] body .notes-existing-attachment-v264,
html[data-theme="dark"] body .contract-doc-input-first-v2595>.contract-add-doc-v2595{
  background:#2b2b2b!important;
  background-color:#2b2b2b!important;
  background-image:none!important;
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
  border-color:#4a4a4a!important;
}

/* Imported result/warning blocks use dark semantic variants. */
html[data-theme="dark"] body .import-result-v15{
  background:#3a3120!important;
  color:#f3d99b!important;
  -webkit-text-fill-color:#f3d99b!important;
  border-color:#6e5a2e!important;
}

/* Dashboard/contract/admin links need readable text after legacy hard-coded navy. */
html[data-theme="dark"] body .contract-kpi-grid>div *,
html[data-theme="dark"] body .contract-detail-grid>div *,
html[data-theme="dark"] body .contract-doc-card *,
html[data-theme="dark"] body .contract-mobile-card-v71 *,
html[data-theme="dark"] body .admin-tabs a,
html[data-theme="dark"] body .admin-tab,
html[data-theme="dark"] body .admin-tab-nav a,
html[data-theme="dark"] body .tab-admin a,
html[data-theme="dark"] body .hm-analysis-card-v113 *{
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
}

/* Status/notification semantic surfaces retain meaning while staying readable. */
html[data-theme="dark"] body .notif-type-v11.assignment{
  background:#4a3c1f!important;
  color:#fde68a!important;
  -webkit-text-fill-color:#fde68a!important;
}
html[data-theme="dark"] body .contract-table .status.small.belum-ada,
html[data-theme="dark"] body .status.small.belum-ada,
html[data-theme="dark"] body .contract-mobile-meta-v71 span.contract-status-belum-ada,
html[data-theme="dark"] body .contract-hero-chips span.contract-status-belum-ada{
  background:#452626!important;
  color:#fca5a5!important;
  -webkit-text-fill-color:#fca5a5!important;
  border-color:#7f3d3d!important;
}

/* ---------- Additional Gantt/activity views ---------- */
html[data-theme="dark"] body .activity-duration-auto-v214,
html[data-theme="dark"] body .gantt-panel-v216,
html[data-theme="dark"] body .gantt-panel-toolbar-v216,
html[data-theme="dark"] body .gantt-panel-canvas-v216,
html[data-theme="dark"] body .gantt-panel-label-v216,
html[data-theme="dark"] body .gantt-panel-track-v216,
html[data-theme="dark"] body .gantt-inline-controls-v217,
html[data-theme="dark"] body .activity-table-v217 tbody tr .activity-sticky-title-v217,
html[data-theme="dark"] body .gantt-inline-track-v217,
html[data-theme="dark"] body .activity-view-switch-v218,
html[data-theme="dark"] body .activity-gantt-view-v218,
html[data-theme="dark"] body .gantt-view-label-head-v218,
html[data-theme="dark"] body .gantt-view-label-v218,
html[data-theme="dark"] body .gantt-view-track-v218{
  background:#252525!important;
  background-color:#252525!important;
  color:#ececec!important;
  -webkit-text-fill-color:#ececec!important;
  border-color:#4a4a4a!important;
}

/* ---------- AI Part Search: confidence chip has intentionally light background ---------- */
html[data-theme="dark"] body .part-ai-confidence-v25912{
  background:#f8fafc!important;
  color:#17365f!important;
  -webkit-text-fill-color:#17365f!important;
}

/* ---------- File/document thumbnail canvas ---------- */
html[data-theme="dark"] body .doc-section-v19 .doc-card-v19 img,
html[data-theme="dark"] body .doc-section-v19 .doc-card-v19 .thumb-fallback,
html[data-theme="dark"] body .thumb-card.doc-card-v19 img,
html[data-theme="dark"] body .doc-open-v19 img{
  background:#202020!important;
  border-color:#4a4a4a!important;
}

/* V259.26 is loaded inside Status Alat after the global header CSS.
   Use higher specificity so its light !important desktop rules cannot win. */
@media screen and (min-width:901px){
  html[data-theme="dark"] body .status-desktop-table-v198.section-card.compact-panel,
  html[data-theme="dark"] body .status-desktop-table-v198.section-card,
  html[data-theme="dark"] body .status-desktop-table-v198{
    background:#2f2f2f!important;
    background-color:#2f2f2f!important;
    background-image:none!important;
    border-color:#4a4a4a!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] body .status-table-v198{
    background:#252525!important;
    background-color:#252525!important;
  }
  html[data-theme="dark"] body .status-table-v198 thead,
  html[data-theme="dark"] body .status-table-v198 thead tr,
  html[data-theme="dark"] body .status-table-v198 thead th{
    background:#303744!important;
    background-color:#303744!important;
    background-image:none!important;
    color:#f3f5f8!important;
    -webkit-text-fill-color:#f3f5f8!important;
    border-color:#4a5563!important;
  }
  html[data-theme="dark"] body .status-table-v198 tbody tr:nth-child(odd){background:#252525!important;}
  html[data-theme="dark"] body .status-table-v198 tbody tr:nth-child(even){background:#2b2b2b!important;}
  html[data-theme="dark"] body .status-table-v198 tbody tr:hover{background:#333333!important;}
  html[data-theme="dark"] body .status-table-v198 tbody td{border-color:#414141!important;}
}
