/* ═══════════════════════════════════════════════════════════════════
   PROMIX WEB — KOYU TEMA (css/dark.css)
   Bu dosya dark_uret.py tarafından ÜRETİLİR; elle düzenleme için
   css/dark_manual.css kullanın (sona eklenir).
   Etkin olma koşulu: <html data-theme="dark">
   ═══════════════════════════════════════════════════════════════════ */

/* ── otomatik: style.css ── */
html[data-theme="dark"] {
  --gray-100: #161d25;
  --gray-200: #26313d;
  --gray-300: #26313d;
  --gray-400: #313e4c;
  --gray-500: #313e4c;
  --gray-600: #465463;
}
html[data-theme="dark"] body {
  color: #e7ecf1;
}
html[data-theme="dark"] .card {
  background: #161d25;
}
html[data-theme="dark"] .btn-success {
  background: linear-gradient(135deg, var(--secondary), #28b363);
}
html[data-theme="dark"] .btn-warning {
  background: linear-gradient(135deg, var(--warning), #d26f18);
}
html[data-theme="dark"] .btn-danger {
  background: linear-gradient(135deg, var(--danger), #a73225);
}
html[data-theme="dark"] .btn-outline {
  background: #161d25;
}
html[data-theme="dark"] .alert-success {
  background: #1b3b23;
  color: #7cdf92;
}
html[data-theme="dark"] .alert-danger {
  background: #3f181b;
  color: #df7c85;
}
html[data-theme="dark"] .alert-warning {
  background: #3f3518;
  color: #f7d164;
}
html[data-theme="dark"] .alert-info {
  background: #18393f;
  color: #6edbed;
}
html[data-theme="dark"] .badge-success {
  background: #1b3b23;
  color: #7cdf92;
}
html[data-theme="dark"] .badge-danger {
  background: #3f181b;
  color: #df7c85;
}
html[data-theme="dark"] .badge-warning {
  background: #3f3518;
  color: #f7d164;
}
html[data-theme="dark"] .badge-info {
  background: #18393f;
  color: #6edbed;
}
html[data-theme="dark"] .modal {
  background: #161d25;
}
html[data-theme="dark"] .toast {
  background: #161d25;
}
html[data-theme="dark"] .loading-overlay {
  background: #26313d;
}
html[data-theme="dark"] .stat-card {
  background: #161d25;
}
html[data-theme="dark"] .stat-icon.success {
  background: linear-gradient(135deg, var(--secondary), #28b363);
}
html[data-theme="dark"] .stat-icon.warning {
  background: linear-gradient(135deg, var(--warning), #d26f18);
}
html[data-theme="dark"] .stat-icon.danger {
  background: linear-gradient(135deg, var(--danger), #a73225);
}
html[data-theme="dark"] .table-action-btn.edit {
  background: #182e3f;
}
html[data-theme="dark"] .table-action-btn.delete {
  background: #3f181e;
}
html[data-theme="dark"] .hamburger span {
  background: #161d25;
}
html[data-theme="dark"] .paylasim-rozet {
  background: #c42020;
}
html[data-theme="dark"] .table-action-btn.send, html[data-theme="dark"] .kr-btn-send {
  background: #691eea;
}
html[data-theme="dark"] .table-action-btn.send:hover, html[data-theme="dark"] .kr-btn-send:hover {
  background: #6022c0;
}
html[data-theme="dark"] .cf-send {
  background: #1f183f;
  color: #a174e6;
}
html[data-theme="dark"] .yardim-rozet {
  background: #d98b09;
}

/* ── otomatik: hayvan_rasyon.css ── */
html[data-theme="dark"] {
  --primary-dark: #6af0a5;
  --surface: #161d25;
  --surface-alt: #1c2b3b;
  --border: #3f5879;
  --text: #81a3da;
  --text-muted: #94a0ac;
}
html[data-theme="dark"] .solver-header select, html[data-theme="dark"] .solver-header input[type="text"] {
  background: #26313d;
}
html[data-theme="dark"] .btn-solve {
  background: linear-gradient(135deg, #e05e00, #ff7314);
}
html[data-theme="dark"] .btn-reset {
  background: #161d25;
}
html[data-theme="dark"] .btn-hafiza {
  background: linear-gradient(135deg, #2d183f, #2c183f);
  color: #b377e4;
  border: 1px solid #5c298e;
}
html[data-theme="dark"] .btn-hafiza:hover {
  background: linear-gradient(135deg, #2c183f, #2b183f);
}
html[data-theme="dark"] .btn-indicator {
  background: linear-gradient(135deg, #4449bf, #311f5c);
}
html[data-theme="dark"] .btn-indicator:hover {
  background: linear-gradient(135deg, #4145a2, #6731e2);
}
html[data-theme="dark"] .td-mevcut {
  color: #94a0ac;
}
html[data-theme="dark"] .th-mevcut {
  color: #6f7c89 !important;
}
html[data-theme="dark"] .td-mevcut-foot {
  color: #6f7c89;
}
html[data-theme="dark"] .constraint-mevcut {
  color: #6f7c89;
}
html[data-theme="dark"] .cost-mini {
  background: linear-gradient(135deg, #0d8c43, #0e8140);
}
html[data-theme="dark"] .picker-item:hover {
  background: #1c3b1e;
}
html[data-theme="dark"] .unified-table th.section-ing {
  background: linear-gradient(135deg, #1a5f2a, #219552);
}
html[data-theme="dark"] .unified-table td {
  border-bottom: 1px solid #2b3641;
}
html[data-theme="dark"] .unified-table tbody tr:hover {
  background: #183f39;
}
html[data-theme="dark"] .unified-table tbody tr.result-row {
  background: linear-gradient(90deg, #1c3b1e, #161d25);
}
html[data-theme="dark"] .ing-name .remove-btn {
  color: #ef8a80;
}
html[data-theme="dark"] .unified-table input[type="number"] {
  border: 1px solid #2b3641;
  background: #161d25;
}
html[data-theme="dark"] .unified-table .inp-fiyat {
  background: #3f3c18;
}
html[data-theme="dark"] .unified-table .inp-miktar {
  background: #182e3f;
}
html[data-theme="dark"] .totals-row {
  background: linear-gradient(90deg, #1c3b1e, #182e3f) !important;
}
html[data-theme="dark"] .constraint-header {
  background: linear-gradient(135deg, #1256a4, #1667b7);
}
html[data-theme="dark"] .constraint-row {
  border-bottom: 1px solid #2b3641;
}
html[data-theme="dark"] .constraint-row.km-row {
  background: linear-gradient(90deg, #1c3b1e, #161d25);
}
html[data-theme="dark"] .constraint-row.energy-row {
  background: linear-gradient(90deg, #3f3018, #161d25);
}
html[data-theme="dark"] .constraint-row.pdi-row {
  background: linear-gradient(90deg, #3f1825, #161d25);
}
html[data-theme="dark"] .constraint-row.mineral-row {
  background: linear-gradient(90deg, #182e3f, #161d25);
}
html[data-theme="dark"] .constraint-row.kaba-yem-row {
  background: linear-gradient(90deg, #1c3b1e, #1d3a1e);
  border-top: 2px solid #44d581;
}
html[data-theme="dark"] .constraint-input {
  border: 1px solid #2b3641;
}
html[data-theme="dark"] .constraint-input:disabled {
  background: #1d2630;
  color: #94a0ac;
}
html[data-theme="dark"] .constraint-input.nut-min-pct, html[data-theme="dark"] .constraint-input.nut-max-pct {
  background: #3f3c18;
}
html[data-theme="dark"] .constraint-input.nut-min-pct:disabled, html[data-theme="dark"] .constraint-input.nut-max-pct:disabled {
  background: #1d2630;
  border-color: #2b3641;
}
html[data-theme="dark"] .constraint-gram {
  background: #1c3b1e;
}
html[data-theme="dark"] .constraint-pct {
  background: #1c3b1e;
}
html[data-theme="dark"] .constraint-status.low {
  background: #e43321;
}
html[data-theme="dark"] .constraint-status.high {
  background: #db8b0b;
}
html[data-theme="dark"] .constraint-status.none {
  background: #313e4c;
}
html[data-theme="dark"] .constraint-error {
  background: #3f181e !important;
}
html[data-theme="dark"] .constraint-error .constraint-name {
  color: #e1837a;
}
html[data-theme="dark"] .panel-actions .btn-outline {
  background: #161d25;
}
html[data-theme="dark"] .progress-container {
  background: #161d25;
}
html[data-theme="dark"] .progress-bar-custom {
  background: #26313d;
}
html[data-theme="dark"] .modal {
  background: #161d25;
}
html[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #1d2630;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #313e4c;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #3d4a58;
}
html[data-theme="dark"] .milk-summary-panel {
  background: linear-gradient(135deg, #182e3f, #182d3f);
}
html[data-theme="dark"] .milk-summary-title {
  color: #6ca9ef;
}
html[data-theme="dark"] .milk-summary-item {
  background: #161d25;
}
html[data-theme="dark"] .milk-summary-item.target {
  background: linear-gradient(135deg, #3f3618, #3f3518);
}
html[data-theme="dark"] .milk-summary-item.target .value {
  color: #f79864;
}
html[data-theme="dark"] .milk-summary-item.achieved {
  background: linear-gradient(135deg, #1c3b1e, #1d3a1e);
}
html[data-theme="dark"] .milk-summary-item.achieved .value {
  color: #81da85;
}
html[data-theme="dark"] .milk-summary-item.limited {
  background: linear-gradient(135deg, #3f181e, #3f181c);
}
html[data-theme="dark"] .milk-summary-item.limited .value {
  color: #e47777;
}
@media (max-width: 600px) {
html[data-theme="dark"] .mobile-tab-bar {
  background: #161d25;
  border-top: 1px solid #3f5879;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mobile-tab-label {
  color: #90b1df;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mobile-fab-cost-value {
  color: #86e9aa;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mobile-fab-cost-unit {
  color: #90b1df;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mobile-fab-optimize {
  background: linear-gradient(135deg, #e05e00, #ff7314);
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mob-icon-hayvan {
  background: #26313d !important;
  color: #81a3da !important;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .hayvan-picker-btn {
  background: #26313d;
  color: #81a3da;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .hayvan-picker-sheet {
  background: #161d25;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .hayvan-picker-sheet-header {
  color: #81a3da;
  border-bottom: 1px solid #2b3641;
  background: #161d25;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .hayvan-picker-close {
  color: #94a0ac;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .hayvan-picker-item {
  color: #81a3da;
  border-bottom: 1px solid #2b3641;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .hayvan-picker-item:active {
  background: #182f3f;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .hayvan-picker-item.is-selected {
  background: #183f24;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .hayvan-picker-item.is-manual {
  color: #94a0ac;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .milk-panel-header {
  background: linear-gradient(135deg, #1256a4, #1667b7);
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .picker-search input {
  background: #26313d;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .picker-item .add-icon {
  background: #1c3b1e;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .save-panel-header {
  background: linear-gradient(135deg, #691eea, #311f5c);
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .save-card-icon {
  background: #2b183f;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .save-card-btn.save-outline {
  background: #161d25;
}
}
html[data-theme="dark"] .diagnose-highlight {
  background: #3f1818 !important;
}
html[data-theme="dark"] .constraint-row#nfcRow {
  background: linear-gradient(90deg, #3f3018, #3f2f18);
}
html[data-theme="dark"] .inp-min.at-limit {
  background: #3f3718;
  color: #f7a464;
}
html[data-theme="dark"] .lim-ind.is-min {
  background: linear-gradient(145deg, #fab606, #d98b09);
}
html[data-theme="dark"] .inp-max.at-limit {
  background: #3f3718;
  color: #f7a464;
}
html[data-theme="dark"] .lim-ind.is-max {
  background: linear-gradient(145deg, #fab606, #d98b09);
}
html[data-theme="dark"] .inp-min.violated, html[data-theme="dark"] .inp-max.violated {
  background: #2b183f;
  border-color: #5d298e;
  color: #b173e8;
}
html[data-theme="dark"] .lim-ind.is-viol {
  background: linear-gradient(145deg, #3d1f5c, #8418e7);
}
html[data-theme="dark"] .unified-table .inp-miktar.st-min {
  background: #3f3718;
  color: #f19d6a;
}
html[data-theme="dark"] .unified-table .inp-miktar.st-max {
  background: #3f3718;
  color: #f19d6a;
}
html[data-theme="dark"] .unified-table .inp-miktar.st-free {
  background: #183f2c;
  border-color: #298e60;
  border-left: 3px solid #2cedad;
  color: #65f5cd;
}
html[data-theme="dark"] .unified-table .inp-miktar.st-viol {
  background: #2b183f;
  border-color: #5a298e;
  color: #b377e4;
}
html[data-theme="dark"] .unified-table .inp-miktar.st-zero {
  background: #1c2b3b;
  border-color: #3f5879;
  color: #90b1df;
}
html[data-theme="dark"] .unified-table tbody tr:hover > td {
  background: #18293f;
}
html[data-theme="dark"] .unified-table tbody tr:focus-within > td {
  background: #182a3f;
}
html[data-theme="dark"] .unified-table tbody tr:focus-within > td.ing-name {
  color: #748fe7;
}
html[data-theme="dark"] .unified-table tbody td {
  border-bottom: 1px solid #2b3641;
}
@media (max-width: 900px) {
html[data-theme="dark"] .unified-table thead th:first-child, html[data-theme="dark"] .unified-table tbody td.ing-name, html[data-theme="dark"] .unified-table tfoot td:first-child {
  background: #161d25;
}
}
@media (max-width: 900px) {
html[data-theme="dark"] .unified-table tbody tr:nth-child(even) > td.ing-name {
  background: #1d2630;
}
}
@media (max-width: 900px) {
html[data-theme="dark"] .unified-table tbody tr.result-row > td.ing-name {
  background: #1e3923;
}
}
@media (max-width: 900px) {
html[data-theme="dark"] .unified-table tbody tr:hover > td.ing-name {
  background: #18293f;
}
}
@media (max-width: 900px) {
html[data-theme="dark"] .unified-table tbody tr:focus-within > td.ing-name {
  background: #182a3f;
}
}
@media (max-width: 900px) {
html[data-theme="dark"] .unified-table tfoot td:first-child {
  background: #1c3b1e;
}
}
@media (max-width: 900px) {
html[data-theme="dark"] .unified-table tbody tr:active > td {
  background: #18293f;
}
}
@media (min-width: 901px) {
html[data-theme="dark"] .solver-header #hhdBtn {
  background: #26313d;
  color: var(--primary-dark, #6bf0a4);
}
}
@media (min-width: 901px) {
html[data-theme="dark"] .solver-header #hhdBtn:hover {
  background: #161d25;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mobile-verim-strip.mvs-visible {
  background: #1c2b3b;
  border-bottom: 1px solid #3f5879;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mvs-item {
  background: #161d25;
  border: 1px solid #3f5879;
  border-left: 3px solid #49596e;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mvs-btn {
  background: #1c2b3b;
  color: #81a5da;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mvs-btn:active {
  background: #212a36;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mvs-hedef {
  color: #6f90ec;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mvs-sifirla {
  background: #18293f;
  color: #6f90ec;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mvs-dengele {
  border: 1px solid #29568e;
  background: #18293f;
  color: #6f90ec;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mvs-dengele:active {
  background: #18293f;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mvs-dengele.aktif {
  background: #1944bd;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mvs-lbl {
  color: #94a0ac;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mvs-val {
  color: #819bda;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mvs-item.mvs-ok {
  border-left-color: #35e475;
  background: #183f24;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mvs-item.mvs-ok  .mvs-val {
  color: #73e89f;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mvs-item.mvs-low {
  background: #3f3718;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mvs-item.mvs-low .mvs-val {
  color: #f7a464;
}
}
html[data-theme="dark"] .va-ok {
  border: 1px solid #435a74;
  background: #1c2b3b;
  color: #81a5da;
}
html[data-theme="dark"] .va-ok:hover {
  background: #1f2a38;
}
html[data-theme="dark"] .va-ok:active {
  background: #212a36;
}
html[data-theme="dark"] .va-hedef {
  color: #6f90ec;
}
html[data-theme="dark"] .va-sifirla {
  background: #18293f;
  color: #6f90ec;
}
html[data-theme="dark"] .va-dengele {
  border: 1px solid #29568e;
  background: #18293f;
  color: #6f90ec;
}
html[data-theme="dark"] .va-dengele:hover {
  background: #18293f;
}
html[data-theme="dark"] .va-dengele.aktif {
  background: #1944bd;
}
@media (max-width: 600px) {
html[data-theme="dark"] .mtk {
  background: #1c2b3b;
  border-top: 1px solid #435a74;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mtk-tus {
  background: #161d25;
  color: #819bda;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mtk-tus:active {
  background: #1f2a38;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mtk-sil {
  background: #1f2a38;
  color: #81a5da;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mtk-yukari, html[data-theme="dark"] .mtk-asagi {
  background: #18293f;
  color: #6f90ec;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mtk-tamam {
  background: var(--primary, #147b3a);
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .solver-layout input.mtk-aktif {
  outline: 2px solid var(--primary, #3adf77) !important;
  background: #183f24 !important;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .mobile-verim-strip.mvs-visible {
  border-top: 1px solid #3f5879;
}
}
html[data-theme="dark"] .hd-bas {
  background: linear-gradient(135deg, #2d3f18, #1c3b1e);
  border: 1px solid #5f8a2e;
}
html[data-theme="dark"] .hd-ad {
  color: #80db87;
}
html[data-theme="dark"] .hd-rz {
  background: #161d25;
  border: 1px solid #5f8a2e;
  color: #99db80;
}
html[data-theme="dark"] .hd-rz.fiyat {
  background: #3f3618;
  border-color: #8e7529;
  color: #f79864;
}
html[data-theme="dark"] .hd-baslik-satir b {
  color: #81a5da;
}
html[data-theme="dark"] .hd-adet {
  color: #94a0ac;
  background: #1c2b3b;
}
html[data-theme="dark"] .hd-not {
  color: #94a0ac;
}
html[data-theme="dark"] .hd-liste {
  border: 1px solid #3f5879;
}
html[data-theme="dark"] .hd-satir {
  border-bottom: 1px solid #375c81;
}
html[data-theme="dark"] .hd-satir:nth-child(even) {
  background: #1c2b3b;
}
html[data-theme="dark"] .hd-ad2 {
  color: #81a5da;
}
html[data-theme="dark"] .hd-deger {
  color: #819bda;
}
html[data-theme="dark"] .hd-deger i {
  color: #90b1df;
}
html[data-theme="dark"] .hd-ac {
  border: 1px dashed #435a74;
  background: #1c2b3b;
  color: #94a0ac;
}
html[data-theme="dark"] .hd-ac:hover {
  background: #1c2b3b;
  color: #81a5da;
}
html[data-theme="dark"] .hd-bos {
  color: #90b1df;
  background: #1c2b3b;
  border: 1px dashed #435a74;
}
html[data-theme="dark"] .constraint-row.dcad-row {
  background: linear-gradient(90deg, #2b183f, transparent);
}
html[data-theme="dark"] .dcad-uyari {
  background: #3f3718;
  color: #f7a464;
}
html[data-theme="dark"] .constraint-row.dcad-row .nut-gram, html[data-theme="dark"] .constraint-row.dcad-row .nut-pct {
  color: #a174e6;
}

/* ── otomatik: fabrika_rasyon.css ── */
@media (max-width: 600px) {
html[data-theme="dark"] .fab-mobile-icon-bar {
  background: linear-gradient(135deg, #c74600, #e08600);
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-mob-tur {
  background: #26313d !important;
  color: #81a3da !important;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-mob-icon-hafiza.dolu::after {
  background: #671a88;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-mobile-tab-bar {
  background: #161d25;
  border-top: 1px solid #3f5879;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-mobile-tab-label {
  color: #90b1df;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-mobile-tab.active .fab-mobile-tab-label {
  color: #f79864;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-mobile-tab.active::after {
  background: #e08600;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-mobile-fab-cost-value {
  color: #f8d477;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-mobile-fab-optimize {
  background: linear-gradient(135deg, #e05e00, #ff7314);
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-panel-hammadde {
  background: #161d25;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-panel-besin {
  background: #161d25;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-panel-hammadde .card-header {
  background: linear-gradient(135deg, #c74600, #e08600) !important;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-mobile-save-panel {
  background: #161d25;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-save-header {
  background: linear-gradient(135deg, #691eea, #311f5c);
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-save-card {
  background: #161d25;
  border: 1px solid #3f5879;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-save-card-icon {
  background: #3f3018;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-save-card-title {
  color: #81a3da;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-save-card-desc {
  color: #94a0ac;
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-save-card-btn.fab-save-primary {
  background: linear-gradient(135deg, #c74600, #e08600);
}
}
@media (max-width: 600px) {
html[data-theme="dark"] .fab-save-card-btn.fab-save-outline {
  background: #161d25;
  color: #81a3da;
  border: 1px solid #3f5879;
}
}
html[data-theme="dark"] #tblIng tbody.sirali td[data-rank]::before {
  color: #f79864;
}
html[data-theme="dark"] #tblIng tbody.sirali tr.siralanmis:nth-child(1) td[data-rank]::before, html[data-theme="dark"] #tblIng tbody.sirali tr.siralanmis:nth-child(2) td[data-rank]::before, html[data-theme="dark"] #tblIng tbody.sirali tr.siralanmis:nth-child(3) td[data-rank]::before {
  background: #c74600;
}
html[data-theme="dark"] #tblIng tbody.sirali tr.siralanmis + tr[data-id]:not(.siralanmis) {
  border-top: 2px solid #8e6629;
}
html[data-theme="dark"] .hd-bas {
  background: linear-gradient(135deg, #2d3f18, #1c3b1e);
  border: 1px solid #5f8a2e;
}
html[data-theme="dark"] .hd-ad {
  color: #80db87;
}
html[data-theme="dark"] .hd-rz {
  background: #161d25;
  border: 1px solid #5f8a2e;
  color: #99db80;
}
html[data-theme="dark"] .hd-rz.fiyat {
  background: #3f3618;
  border-color: #8e7529;
  color: #f79864;
}
html[data-theme="dark"] .hd-baslik-satir b {
  color: #81a5da;
}
html[data-theme="dark"] .hd-adet {
  color: #94a0ac;
  background: #1c2b3b;
}
html[data-theme="dark"] .hd-not {
  color: #94a0ac;
}
html[data-theme="dark"] .hd-liste {
  border: 1px solid #3f5879;
}
html[data-theme="dark"] .hd-satir {
  border-bottom: 1px solid #375c81;
}
html[data-theme="dark"] .hd-satir:nth-child(even) {
  background: #1c2b3b;
}
html[data-theme="dark"] .hd-ad2 {
  color: #81a5da;
}
html[data-theme="dark"] .hd-deger {
  color: #819bda;
}
html[data-theme="dark"] .hd-deger i {
  color: #90b1df;
}
html[data-theme="dark"] .hd-ac {
  border: 1px dashed #435a74;
  background: #1c2b3b;
  color: #94a0ac;
}
html[data-theme="dark"] .hd-ac:hover {
  background: #1c2b3b;
  color: #81a5da;
}
html[data-theme="dark"] .hd-bos {
  color: #90b1df;
  background: #1c2b3b;
  border: 1px dashed #435a74;
}
html[data-theme="dark"] .nut-row.nfc-row {
  background: #3f2e18;
  border-top: 2px solid #8e5f29;
}
html[data-theme="dark"] .nut-row.nfc-row .nut-pct {
  color: #f79864;
}
html[data-theme="dark"] .nut-row.dcad-row {
  background: #2b183f;
  border-top: 2px solid #3b298e;
}
html[data-theme="dark"] .nut-row.dcad-row .nut-pct {
  color: #a174e6;
}
html[data-theme="dark"] .dcad-uyari {
  color: #f7a464;
}
html[data-theme="dark"] .inp-min.at-limit {
  background: #3f3718;
  color: #f7a464;
}
html[data-theme="dark"] .lim-ind.is-min {
  background: linear-gradient(145deg, #fab606, #d98b09);
}
html[data-theme="dark"] .inp-max.at-limit {
  background: #3f3718;
  color: #f7a464;
}
html[data-theme="dark"] .lim-ind.is-max {
  background: linear-gradient(145deg, #fab606, #d98b09);
}
html[data-theme="dark"] .inp-min.violated, html[data-theme="dark"] .inp-max.violated {
  background: #2b183f;
  border-color: #5d298e;
  color: #b173e8;
}
html[data-theme="dark"] .lim-ind.is-viol {
  background: linear-gradient(145deg, #3d1f5c, #8418e7);
}

/* ── otomatik: modern-rasyon.css ── */
html[data-theme="dark"] {
  --bg-primary: #161d25;
  --bg-secondary: #242b33;
  --bg-tertiary: #1d2630;
  --text-primary: #819dda;
  --text-secondary: #94a0ac;
  --border-color: #2b3641;
}
html[data-theme="dark"] body {
  background: #1c2b3b;
}
html[data-theme="dark"] .btn-danger:hover {
  background: #c42020;
}
html[data-theme="dark"] .update:hover {
  background: #bb6705;
}
html[data-theme="dark"] input:hover, html[data-theme="dark"] select:hover {
  border-color: #435a74;
}
html[data-theme="dark"] input[style*="background-color: rgb(147, html[data-theme="dark"] 237, html[data-theme="dark"] 168)"], html[data-theme="dark"] input[style*="background-color: rgb(212, html[data-theme="dark"] 237, html[data-theme="dark"] 218)"], html[data-theme="dark"] input[style*="#93eda8"], html[data-theme="dark"] input[style*="#d4edda"] {
  background: #183f2c !important;
}
html[data-theme="dark"] .status.ok {
  background: #183f24;
  color: #79e2a1;
}
html[data-theme="dark"] .status.no {
  background: #3f1818;
  color: #e77474;
}
html[data-theme="dark"] #summaryPanel {
  background: linear-gradient(to right, #183f24, #183f25);
  border: 1px solid #298e4d;
}
html[data-theme="dark"] #summaryPanel h3 {
  color: #79e2a1;
}
html[data-theme="dark"] #summaryPanel p {
  color: #73e89f;
}
html[data-theme="dark"] .total-cost-centered {
  background: linear-gradient(to right, #3f3718, #5c501f);
}
html[data-theme="dark"] .warning {
  background: #3f1818;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #212a36;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #333c47;
}
@media print {
html[data-theme="dark"] body {
  background: #161d25;
}
}

/* ── otomatik: suru.css ── */
html[data-theme="dark"] {
  --suru-green-dark: #73e89f;
  --suru-bg: #1d2630;
}
html[data-theme="dark"] .module-card.mod-rasyon {
  background: linear-gradient(135deg, #2c3e50, #2489cc);
}
html[data-theme="dark"] .kpi {
  background: #161d25;
}
html[data-theme="dark"] .cat-Buzağı {
  background: #3f3718;
  color: #f19d6a;
}
html[data-theme="dark"] .cat-Düve {
  background: #18293f;
  color: #748fe7;
}
html[data-theme="dark"] .cat-GebeDüve {
  background: #1f183f;
  color: #a175e6;
}
html[data-theme="dark"] .cat-İnek {
  background: #183f25;
  color: #79e2a1;
}
html[data-theme="dark"] .cat-Kuruİnek {
  background: #1d2630;
  color: #c0c9d3;
}
html[data-theme="dark"] .cat-Boğa {
  background: #3f1818;
  color: #e77474;
}
html[data-theme="dark"] .cat-Besi {
  background: #3f2e18;
  color: #ee8d6d;
}
html[data-theme="dark"] .rd-Boş {
  background: #1d2630;
  color: #c0c9d3;
}
html[data-theme="dark"] .rd-Tohumlandı {
  background: #3f3c18;
  color: #efb16b;
}
html[data-theme="dark"] .rd-Gebe {
  background: #183f25;
  color: #79e2a1;
}
html[data-theme="dark"] .rd-Kuruda {
  background: #18213f;
  color: #8681da;
}
html[data-theme="dark"] .du-Aktif {
  background: #183f25;
  color: #79e2a1;
}
html[data-theme="dark"] .du-Satıldı {
  background: #18293f;
  color: #748fe7;
}
html[data-theme="dark"] .du-Öldü {
  background: #3f1818;
  color: #e77474;
}
html[data-theme="dark"] .du-Kesim {
  background: #3f2e18;
  color: #ee8d6d;
}
html[data-theme="dark"] .so-Bekliyor {
  background: #3f3c18;
  color: #efb16b;
}
html[data-theme="dark"] .so-Gebe {
  background: #183f25;
  color: #79e2a1;
}
html[data-theme="dark"] .so-Boş {
  background: #3f1818;
  color: #e77474;
}
html[data-theme="dark"] .so-Tekrar {
  background: #3f2e18;
  color: #ee8d6d;
}
html[data-theme="dark"] .task-item {
  background: #161d25;
}
html[data-theme="dark"] .t-urgent .task-badge {
  background: #3f1818;
  color: #e77474;
}
html[data-theme="dark"] .t-soon   .task-badge {
  background: #3f3718;
  color: #f19d6a;
}
html[data-theme="dark"] .tl-item::before {
  border: 2px solid #2b3641;
}
html[data-theme="dark"] .chip {
  background: #161d25;
}
html[data-theme="dark"] .row-warn {
  background: #3f2e18 !important;
}
html[data-theme="dark"] .row-danger {
  background: #3f1818 !important;
}
html[data-theme="dark"] .protokol-banner {
  background: linear-gradient(90deg,#147b3a,#1dab52);
}
html[data-theme="dark"] .up-item {
  background: linear-gradient(135deg,#166534,#12883e);
}
html[data-theme="dark"] .up-item.up-red {
  background: linear-gradient(135deg,#9e1818,#ed2828);
}
html[data-theme="dark"] .filtre-serit {
  background: #183f2c;
  border: 1px solid #298e60;
  color: #65f5cd;
}
html[data-theme="dark"] .filtre-serit a {
  color: #64f7cd;
}
html[data-theme="dark"] .senkron-kart {
  background: #161d25;
}
html[data-theme="dark"] .senkron-kart.secili {
  background: #183f24;
}
html[data-theme="dark"] .bilgi-kutu {
  background: #183f24;
  border: 1px solid #298e4d;
  color: #79e2a1;
}
html[data-theme="dark"] .btn-danger {
  background: var(--danger,#c42020);
}
html[data-theme="dark"] .up-item.up-amber {
  background: linear-gradient(135deg,#974608,#d98b09);
}
html[data-theme="dark"] .gor-btn {
  background: #161d25;
}
html[data-theme="dark"] .gor-btn:hover {
  background: var(--suru-green-50,#183f24);
}
html[data-theme="dark"] button.kpi-link:focus-visible {
  outline: 2px solid var(--suru-green,#35e475);
}
html[data-theme="dark"] .stok-uyari {
  color: var(--suru-red,#e87272);
}
html[data-theme="dark"] .stok-ok {
  color: var(--gray-400,#6f7c89);
}
html[data-theme="dark"] .module-card.mod-muhasebe {
  background: linear-gradient(135deg, #3f187b, #691eea);
}
html[data-theme="dark"] .sayfa-nav .sn-btn {
  background: #161d25;
}
html[data-theme="dark"] .sayfa-nav .sn-bosluk {
  color: var(--gray-400, #6f7c89);
}
html[data-theme="dark"] .tk-alan {
  background: #161d25;
  color: var(--gray-700, #81a3da);
}
html[data-theme="dark"] .tk-kutu {
  background: #161d25;
}
html[data-theme="dark"] .tk-ayad {
  color: var(--gray-800, #81a6da);
}
html[data-theme="dark"] .tk-nav {
  background: #161d25;
}
html[data-theme="dark"] .tk-gad.hs {
  color: #f7a464;
}
html[data-theme="dark"] .tk-gun {
  color: var(--gray-700, #81a3da);
}
html[data-theme="dark"] .tk-gun:hover:not(:disabled) span {
  background: #183f24;
}
html[data-theme="dark"] .tk-gun.isaretli span {
  background: #183f25;
  color: #79e2a1;
}
html[data-theme="dark"] .tk-gun.isaretli i {
  background: #12883e;
}
html[data-theme="dark"] .tk-gun.secili i, html[data-theme="dark"] .tk-gun.uc i, html[data-theme="dark"] .tk-gun.bas i, html[data-theme="dark"] .tk-gun.bit i {
  background: #161d25;
}
html[data-theme="dark"] .tk-gun.ic {
  background: #183f2c;
}
html[data-theme="dark"] .tk-gun.ic.isaretli span {
  background: #183f25;
}
html[data-theme="dark"] .tk-gun.bas:not(.bit) {
  background: linear-gradient(90deg, transparent 50%, #183f2c 50%);
}
html[data-theme="dark"] .tk-gun.bit:not(.bas) {
  background: linear-gradient(90deg, #183f2c 50%, transparent 50%);
}
html[data-theme="dark"] .tk-liste {
  border-top: 1px solid var(--gray-100, #375c81);
}
html[data-theme="dark"] .tk-etiket {
  border: 1px solid #298e4d;
  background: #183f24;
  color: #79e2a1;
}
html[data-theme="dark"] .tk-alt {
  border-top: 1px solid var(--gray-100, #375c81);
}
html[data-theme="dark"] .tk-lejant .l-isaret {
  background: #183f25;
}
html[data-theme="dark"] .tk-lejant .l-aralik {
  background: #183f2c;
}
html[data-theme="dark"] .tk-hazir {
  background: #161d25;
}
html[data-theme="dark"] .tk-aralik-ozet {
  border-bottom: 1px solid var(--gray-100, #375c81);
}
html[data-theme="dark"] .tk-ok {
  color: var(--gray-400, #6f7c89);
}

/* ── otomatik: mobile-app.css ── */
@media (max-width: 768px) {
html[data-theme="dark"] body.m-app {
  --m-bg: #222935;
  --m-surface: #161d25;
  --m-border: #2b3641;
  --m-text: #81a6da;
  --m-muted: #94a0ac;
}
}
@media (max-width: 768px) {
html[data-theme="dark"] .m-bottom-nav {
  background: #26313d;
}
}
@media (max-width: 768px) {
html[data-theme="dark"] .m-sheet {
  background: var(--m-surface, #161d25);
}
}
@media (max-width: 768px) {
html[data-theme="dark"] .m-sheet-grab {
  background: #26313d;
}
}
@media (max-width: 768px) {
html[data-theme="dark"] .m-sheet-head {
  border-bottom: 1px solid var(--m-border, #2b3641);
}
}
@media (max-width: 768px) {
html[data-theme="dark"] .m-sheet-user-name {
  color: var(--m-text, #81a6da);
}
}
@media (max-width: 768px) {
html[data-theme="dark"] .m-sheet-user-sub {
  color: var(--m-muted, #94a0ac);
}
}
@media (max-width: 768px) {
html[data-theme="dark"] .m-sheet-logout {
  background: #3f1818;
  color: #e87272;
  border: 1px solid #8e2929;
}
}
@media (max-width: 768px) {
html[data-theme="dark"] .m-sheet-link {
  background: #1c2b3b;
  border: 1px solid var(--m-border, #2b3641);
  color: var(--m-text, #81a6da);
}
}
@media (max-width: 768px) {
html[data-theme="dark"] .m-sheet-link.active {
  border-color: var(--m-accent, #6b8cae);
  color: var(--m-accent, #81adda);
}
}
@media (max-width: 768px) {
html[data-theme="dark"] body.m-app table.m-cards td {
  border-bottom: 1px solid #485870;
}
}
@media (max-width: 768px) {
html[data-theme="dark"] body.m-app .modal::before {
  background: #26313d;
}
}
@media (max-width: 768px) {
html[data-theme="dark"] body.m-app .modal-close {
  background: #1d2630;
}
}

/* ── otomatik: satır-içi style="…" eşlemeleri ── */
html[data-theme="dark"] [style*="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)"] { background: linear-gradient(135deg, #1f2a5c 0%, #67418d 100%) !important; }
html[data-theme="dark"] [style*="background:#0d7c3d"] { background: #0e8140 !important; }
html[data-theme="dark"] [style*="background:#0d9488"] { background: #0c8379 !important; }
html[data-theme="dark"] [style*="background:#10b981"] { background: #0e9d6d !important; }
html[data-theme="dark"] [style*="background:#15803d"] { background: #147b3a !important; }
html[data-theme="dark"] [style*="background:#16a34a"] { background: #12883e !important; }
html[data-theme="dark"] [style*="background:#2563eb"] { background: #1453dd !important; }
html[data-theme="dark"] [style*="background:#3498db"] { background: #2489cc !important; }
html[data-theme="dark"] [style*="background:#3b82f6"] { background: #1e6ff5 !important; }
html[data-theme="dark"] [style*="background:#4caf50"] { background: #439a46 !important; }
html[data-theme="dark"] [style*="background:#7c3aed"] { background: #691eea !important; }
html[data-theme="dark"] [style*="background:#7f1d1d"] { background: #741b1b !important; }
html[data-theme="dark"] [style*="background:#cbd5e1"] { background: #212a36 !important; }
html[data-theme="dark"] [style*="background:#dc2626"] { background: #c42020 !important; }
html[data-theme="dark"] [style*="background:#dcfce7"] { background: #183f25 !important; }
html[data-theme="dark"] [style*="background:#e0f2fe"] { background: #182f3f !important; }
html[data-theme="dark"] [style*="background:#e2e8f0"] { background: #1f2a38 !important; }
html[data-theme="dark"] [style*="background:#e3f2fd"] { background: #182e3f !important; }
html[data-theme="dark"] [style*="background:#e8f5e9"] { background: #1c3b1e !important; }
html[data-theme="dark"] [style*="background:#ede9fe"] { background: #1f183f !important; }
html[data-theme="dark"] [style*="background:#eee"] { background: #1d2630 !important; }
html[data-theme="dark"] [style*="background:#ef4444"] { background: #ed2828 !important; }
html[data-theme="dark"] [style*="background:#eff6ff"] { background: #18293f !important; }
html[data-theme="dark"] [style*="background:#f0f4f8"] { background: #1d2b3a !important; }
html[data-theme="dark"] [style*="background:#f0fdf4"] { background: #183f24 !important; }
html[data-theme="dark"] [style*="background:#f1f5f9"] { background: #1c2b3b !important; }
html[data-theme="dark"] [style*="background:#f1f8e9"] { background: #2d3f18 !important; }
html[data-theme="dark"] [style*="background:#f3e5f5"] { background: #381a3d !important; }
html[data-theme="dark"] [style*="background:#f3e5ff"] { background: #2d183f !important; }
html[data-theme="dark"] [style*="background:#f59e0b"] { background: #d98b09 !important; }
html[data-theme="dark"] [style*="background:#f8fafb"] { background: #212f36 !important; }
html[data-theme="dark"] [style*="background:#f8fafc"] { background: #1c2b3b !important; }
html[data-theme="dark"] [style*="background:#fafafa"] { background: #161d25 !important; }
html[data-theme="dark"] [style*="background:#fce7f3"] { background: #3f182e !important; }
html[data-theme="dark"] [style*="background:#fecaca"] { background: #3f1818 !important; }
html[data-theme="dark"] [style*="background:#fed7aa"] { background: #3f2d18 !important; }
html[data-theme="dark"] [style*="background:#fee"] { background: #3f1818 !important; }
html[data-theme="dark"] [style*="background:#fee2e2"] { background: #3f1818 !important; }
html[data-theme="dark"] [style*="background:#fef2f2"] { background: #3f1818 !important; }
html[data-theme="dark"] [style*="background:#fef3c7"] { background: #3f3718 !important; }
html[data-theme="dark"] [style*="background:#fef9c3"] { background: #3f3c18 !important; }
html[data-theme="dark"] [style*="background:#fff"] { background: #161d25 !important; }
html[data-theme="dark"] [style*="background:#fff3cd"] { background: #3f3518 !important; }
html[data-theme="dark"] [style*="background:#fff3e0"] { background: #3f3018 !important; }
html[data-theme="dark"] [style*="background:#fff7ed"] { background: #3f2e18 !important; }
html[data-theme="dark"] [style*="background:#fffbeb"] { background: #3f3718 !important; }
html[data-theme="dark"] [style*="background:linear-gradient(135deg,#27ae60,#2ecc71)"] { background: linear-gradient(135deg,#219552,#28b363) !important; }
html[data-theme="dark"] [style*="background:linear-gradient(135deg,#4caf50,#388e3c)"] { background: linear-gradient(135deg,#439a46,#2f7833) !important; }
html[data-theme="dark"] [style*="background:linear-gradient(135deg,#b45309,#d97706)"] { background: linear-gradient(135deg,#974608,#bb6705) !important; }
html[data-theme="dark"] [style*="background:linear-gradient(135deg,#ef4444,#dc2626)"] { background: linear-gradient(135deg,#ed2828,#c42020) !important; }
html[data-theme="dark"] [style*="background:linear-gradient(135deg,#f0fdf4,#dcfce7)"] { background: linear-gradient(135deg,#183f24,#183f25) !important; }
html[data-theme="dark"] [style*="background:linear-gradient(90deg,#16a34a,#22c55e)"] { background: linear-gradient(90deg,#12883e,#1dab52) !important; }
html[data-theme="dark"] [style*="background:white"] { background: #161d25 !important; }
html[data-theme="dark"] [style*="border-bottom:1px solid #e2e8f0"] { border-bottom: 1px solid #3f5879 !important; }
html[data-theme="dark"] [style*="border-bottom:2px solid #bbf7d0"] { border-bottom: 2px solid #298e4d !important; }
html[data-theme="dark"] [style*="border-bottom:2px solid #bfdbfe"] { border-bottom: 2px solid #29568e !important; }
html[data-theme="dark"] [style*="border-color:#9c27b0"] { border-color: #c043d5 !important; }
html[data-theme="dark"] [style*="border-color:#b45309"] { border-color: #f47e24 !important; }
html[data-theme="dark"] [style*="border-top:1px solid #e0e0e0"] { border-top: 1px solid #2b3641 !important; }
html[data-theme="dark"] [style*="border-top:1px solid #eee"] { border-top: 1px solid #2b3641 !important; }
html[data-theme="dark"] [style*="border-top:1px solid #f1f5f9"] { border-top: 1px solid #375c81 !important; }
html[data-theme="dark"] [style*="border:1px dashed #6ee7b7"] { border: 1px dashed #298e66 !important; }
html[data-theme="dark"] [style*="border:1px dashed #cbd5e1"] { border: 1px dashed #435a74 !important; }
html[data-theme="dark"] [style*="border:1px solid #16a34a33"] { border: 1px solid #35e475 !important; }
html[data-theme="dark"] [style*="border:1px solid #86efac"] { border: 1px solid #298e4e !important; }
html[data-theme="dark"] [style*="border:1px solid #93c5fd"] { border: 1px solid #29598e !important; }
html[data-theme="dark"] [style*="border:1px solid #bbf7d0"] { border: 1px solid #298e4d !important; }
html[data-theme="dark"] [style*="border:1px solid #bfdbfe"] { border: 1px solid #29568e !important; }
html[data-theme="dark"] [style*="border:1px solid #d9770633"] { border: 1px solid #f99420 !important; }
html[data-theme="dark"] [style*="border:1px solid #e2e8f0"] { border: 1px solid #3f5879 !important; }
html[data-theme="dark"] [style*="border:1px solid #e5e7eb"] { border: 1px solid #2b3641 !important; }
html[data-theme="dark"] [style*="border:1px solid #fca5a5"] { border: 1px solid #8e2929 !important; }
html[data-theme="dark"] [style*="border:1px solid #fcc"] { border: 1px solid #8e2929 !important; }
html[data-theme="dark"] [style*="border:1px solid #fecaca"] { border: 1px solid #8e2929 !important; }
html[data-theme="dark"] [style*="border:1px solid #fed7aa"] { border: 1px solid #8e5f29 !important; }
html[data-theme="dark"] [style*="border:2px dashed #27ae60"] { border: 2px dashed #44d581 !important; }
html[data-theme="dark"] [style*="border:2px solid #16a34a"] { border: 2px solid #35e475 !important; }
html[data-theme="dark"] [style*="border:2px solid #e0e0e0"] { border: 2px solid #2b3641 !important; }
html[data-theme="dark"] [style*="border:4px solid #1e293b"] { border: 4px solid #6783b2 !important; }
html[data-theme="dark"] [style*="color: #666"] { color: #c0c9d3 !important; }
html[data-theme="dark"] [style*="color: #ff9800"] { color: #f7bc64 !important; }
html[data-theme="dark"] [style*="color:#0369a1"] { color: #64c3f7 !important; }
html[data-theme="dark"] [style*="color:#065f46"] { color: #65f5cd !important; }
html[data-theme="dark"] [style*="color:#075985"] { color: #64c4f7 !important; }
html[data-theme="dark"] [style*="color:#0d7c3d"] { color: #6bf0a4 !important; }
html[data-theme="dark"] [style*="color:#111"] { color: #e7ecf1 !important; }
html[data-theme="dark"] [style*="color:#15803d"] { color: #73e89f !important; }
html[data-theme="dark"] [style*="color:#166534"] { color: #79e2a1 !important; }
html[data-theme="dark"] [style*="color:#16a34a"] { color: #6fec9d !important; }
html[data-theme="dark"] [style*="color:#1a7d3e"] { color: #78e39f !important; }
html[data-theme="dark"] [style*="color:#1d4ed8"] { color: #6f90ec !important; }
html[data-theme="dark"] [style*="color:#1e293b"] { color: #81a3da !important; }
html[data-theme="dark"] [style*="color:#1e3a8a"] { color: #7994e2 !important; }
html[data-theme="dark"] [style*="color:#27ae60"] { color: #7ae1a5 !important; }
html[data-theme="dark"] [style*="color:#2e7d32"] { color: #81da85 !important; }
html[data-theme="dark"] [style*="color:#333"] { color: #e7ecf1 !important; }
html[data-theme="dark"] [style*="color:#334155"] { color: #81a5da !important; }
html[data-theme="dark"] [style*="color:#374151"] { color: #81a3da !important; }
html[data-theme="dark"] [style*="color:#475569"] { color: #81a5da !important; }
html[data-theme="dark"] [style*="color:#555"] { color: #c0c9d3 !important; }
html[data-theme="dark"] [style*="color:#5b21b6"] { color: #a175e6 !important; }
html[data-theme="dark"] [style*="color:#6366f1"] { color: #7c7ef3 !important; }
html[data-theme="dark"] [style*="color:#64748b"] { color: #94a0ac !important; }
html[data-theme="dark"] [style*="color:#666"] { color: #c0c9d3 !important; }
html[data-theme="dark"] [style*="color:#6a1b9a"] { color: #bb74e7 !important; }
html[data-theme="dark"] [style*="color:#6b7280"] { color: #94a0ac !important; }
html[data-theme="dark"] [style*="color:#6d28d9"] { color: #a174e6 !important; }
html[data-theme="dark"] [style*="color:#7a5c00"] { color: #f7d364 !important; }
html[data-theme="dark"] [style*="color:#854d0e"] { color: #efb16b !important; }
html[data-theme="dark"] [style*="color:#888"] { color: #94a0ac !important; }
html[data-theme="dark"] [style*="color:#8e44ad"] { color: #c081da !important; }
html[data-theme="dark"] [style*="color:#92400e"] { color: #f19d6a !important; }
html[data-theme="dark"] [style*="color:#94a3b8"] { color: #90b1df !important; }
html[data-theme="dark"] [style*="color:#991b1b"] { color: #e77474 !important; }
html[data-theme="dark"] [style*="color:#999"] { color: #94a0ac !important; }
html[data-theme="dark"] [style*="color:#9a3412"] { color: #ee8d6d !important; }
html[data-theme="dark"] [style*="color:#9d174d"] { color: #ea71a2 !important; }
html[data-theme="dark"] [style*="color:#aaa"] { color: #6f7c89 !important; }
html[data-theme="dark"] [style*="color:#b45309"] { color: #f7a464 !important; }
html[data-theme="dark"] [style*="color:#b91c1c"] { color: #ea7171 !important; }
html[data-theme="dark"] [style*="color:#bbb"] { color: #6f7c89 !important; }
html[data-theme="dark"] [style*="color:#c33"] { color: #de7c7c !important; }
html[data-theme="dark"] [style*="color:#c62828"] { color: #e47777 !important; }
html[data-theme="dark"] [style*="color:#ccc"] { color: #6f7c89 !important; }
html[data-theme="dark"] [style*="color:#d97706"] { color: #f7b364 !important; }
html[data-theme="dark"] [style*="color:#dc2626"] { color: #e87272 !important; }
html[data-theme="dark"] [style*="color:#e65100"] { color: #f79864 !important; }
html[data-theme="dark"] [style*="color:#e74c3c"] { color: #ef8a80 !important; }

/* ── elle cila (dark_manual.css) ── */
/* ═══════════════════════════════════════════════════════════════════
   KOYU TEMA — ELLE CİLA (css/dark_manual.css)
   Palet: sayfa #0e1318 · kart #161d25 · yükseltilmiş #1d2630 ·
          giriş/hover #26313d · kenarlık #2b3641 / #3a4755 ·
          metin #e7ecf1 / #c0c9d3 / #94a0ac · vurgu yeşil #4ade80
   Okunabilirlik: gövde metni ≥ 12:1, ikincil ≥ 7:1, soluk ≥ 4.5:1
   ═══════════════════════════════════════════════════════════════════ */
html[data-theme="dark"] {
    color-scheme: dark;
    --primary: #1f6b3d;
    --primary-light: #2a8a50;
    --secondary: #34c76a;
    --danger: #f36c6c;
    --warning: #f5b543;
    --info: #5aa9f0;
    --gray-100: #161d25;
    --gray-200: #1d2630;
    --gray-300: #2b3641;
    --gray-400: #3a4755;
    --gray-500: #6f7c89;
    --gray-600: #94a0ac;
    --shadow: 0 2px 10px rgba(0,0,0,0.45);
    --text-muted: #94a0ac;
    --dm-bg0: #0e1318; --dm-bg1: #161d25; --dm-bg2: #1d2630; --dm-bg3: #26313d;
    --dm-bd1: #2b3641; --dm-bd2: #3a4755;
    --dm-tx1: #e7ecf1; --dm-tx2: #c0c9d3; --dm-tx3: #94a0ac;
    /* Rasyon / sürü sayfalarının kendi değişkenleri */
    --primary-dark: #4ade80;
    --surface: #161d25; --surface-alt: #1d2630; --border: #2b3641;
    --text: #e7ecf1; --text-muted: #94a0ac; --accent: #ff8a3d;
    background: #0e1318;
}
html[data-theme="dark"] body {
    background: #0e1318 !important;
    color: #e7ecf1;
}
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3,
html[data-theme="dark"] h4, html[data-theme="dark"] h5, html[data-theme="dark"] h6 { color: #e7ecf1; }
html[data-theme="dark"] a { color: #7cc4ff; }
html[data-theme="dark"] a.btn, html[data-theme="dark"] a.nav-link, html[data-theme="dark"] a.navbar-brand { color: inherit; }
html[data-theme="dark"] hr { border-color: #2b3641; }
html[data-theme="dark"] ::selection { background: #2a8a50; color: #fff; }
html[data-theme="dark"] ::placeholder { color: #6f7c89 !important; opacity: 1; }

/* Navbar: koyu yeşil, brand ve linkler açık */
html[data-theme="dark"] .navbar {
    background: linear-gradient(135deg, #0f2a1a, #133d24) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    border-bottom: 1px solid #1e4a2e;
}
html[data-theme="dark"] .navbar-brand, html[data-theme="dark"] .navbar-user { color: #f1f5f4; }
html[data-theme="dark"] .nav-link { color: rgba(241,245,244,0.82); }
html[data-theme="dark"] .nav-link:hover, html[data-theme="dark"] .nav-link.active { background: rgba(255,255,255,0.14); color: #fff; }
html[data-theme="dark"] .navbar-nav.open { background: #133d24; }
html[data-theme="dark"] .hamburger span { background: #f1f5f4; }

/* Tema düğmesi (navbar) */
.tema-dugme {
    border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.10); color: #fff;
    width: 32px; height: 32px; border-radius: 8px; font-size: 1rem; line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; padding: 0;
    -webkit-tap-highlight-color: transparent; transition: background 0.15s;
}
.tema-dugme:hover { background: rgba(255,255,255,0.2); }
.navbar-sag-mobil { display: flex; align-items: center; gap: 6px; }
.tema-dugme-mobil { display: none; }
body.m-has-bottomnav .tema-dugme-mobil { display: inline-flex !important; }
@media (max-width: 900px) {
    .tema-dugme-mobil { display: inline-flex !important; }
    .navbar-user .tema-dugme { display: none; }
}

/* Kartlar, paneller, tablolar */
html[data-theme="dark"] .card, html[data-theme="dark"] .stat-card, html[data-theme="dark"] .panel,
html[data-theme="dark"] .modal, html[data-theme="dark"] .modal-content, html[data-theme="dark"] .dropdown-menu {
    background: #161d25 !important; color: #e7ecf1; border-color: #2b3641;
    box-shadow: 0 2px 10px rgba(0,0,0,0.45);
}
html[data-theme="dark"] .card-header { background: #1d2630 !important; border-bottom: 1px solid #2b3641; color: #e7ecf1; }
html[data-theme="dark"] .card-title { color: #e7ecf1; }
html[data-theme="dark"] .text-muted, html[data-theme="dark"] .muted, html[data-theme="dark"] small { color: #94a0ac !important; }
html[data-theme="dark"] table { color: #e7ecf1; }
html[data-theme="dark"] th { background: #1d2630 !important; color: #c0c9d3 !important; border-color: #2b3641 !important; }
html[data-theme="dark"] td { border-color: #2b3641 !important; color: #e7ecf1; }
html[data-theme="dark"] tr:nth-child(even) td { background: #182029; }
html[data-theme="dark"] tr:hover td { background: #1f2934; }
html[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) { background: #182029; }

/* Form denetimleri */
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]),
html[data-theme="dark"] select, html[data-theme="dark"] textarea {
    background: #26313d !important; color: #e7ecf1 !important; border-color: #3a4755 !important;
}
html[data-theme="dark"] input:disabled, html[data-theme="dark"] select:disabled, html[data-theme="dark"] textarea:disabled,
html[data-theme="dark"] input[readonly] { background: #1d2630 !important; color: #94a0ac !important; }
html[data-theme="dark"] input:focus, html[data-theme="dark"] select:focus, html[data-theme="dark"] textarea:focus {
    border-color: #34c76a !important; box-shadow: 0 0 0 3px rgba(52,199,106,0.25) !important; outline: none;
}
html[data-theme="dark"] select option { background: #1d2630; color: #e7ecf1; }
html[data-theme="dark"] label { color: #c0c9d3; }
html[data-theme="dark"] .btn-secondary, html[data-theme="dark"] .btn-light, html[data-theme="dark"] .btn-outline {
    background: #26313d !important; color: #e7ecf1 !important; border-color: #3a4755 !important;
}
html[data-theme="dark"] .btn-success { background: #1f8f4c !important; color: #fff !important; }
html[data-theme="dark"] .btn-warning { background: #d9961e !important; color: #1a1400 !important; }
html[data-theme="dark"] .btn-danger { background: #d84a4a !important; color: #fff !important; }
html[data-theme="dark"] .btn-primary, html[data-theme="dark"] .btn-info { color: #fff !important; }
html[data-theme="dark"] .badge { filter: brightness(1.05); }

/* Uyarılar */
html[data-theme="dark"] .alert { border-color: #3a4755; color: #e7ecf1; }
html[data-theme="dark"] .alert-success { background: #12301d !important; border-color: #1f6b3d !important; color: #bff0cf !important; }
html[data-theme="dark"] .alert-warning { background: #33270a !important; border-color: #8a6a1e !important; color: #ffe2a3 !important; }
html[data-theme="dark"] .alert-danger, html[data-theme="dark"] .alert-error { background: #3a1616 !important; border-color: #8a2e2e !important; color: #ffc9c9 !important; }
html[data-theme="dark"] .alert-info { background: #10283d !important; border-color: #1e5a8a !important; color: #c6e3ff !important; }

/* Kaydırma çubukları */
html[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: #161d25; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #3a4755; border-radius: 6px; border: 2px solid #161d25; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #4a5867; }
html[data-theme="dark"] * { scrollbar-color: #3a4755 #161d25; }

/* ── Hayvan / Fabrika rasyon sayfaları ── */
html[data-theme="dark"] .solver-header { background: linear-gradient(135deg, #0f2a1a, #133d24) !important; }
html[data-theme="dark"] .main-panel-header, html[data-theme="dark"] .constraint-panel-header,
html[data-theme="dark"] .picker-header { color: #f1f5f4; }
html[data-theme="dark"] .main-table-wrap, html[data-theme="dark"] .constraint-list, html[data-theme="dark"] .picker-list,
html[data-theme="dark"] .main-panel, html[data-theme="dark"] .constraint-panel, html[data-theme="dark"] .ingredient-picker {
    background: #161d25 !important; border-color: #2b3641 !important;
}
html[data-theme="dark"] .main-table th { background: #1d2630 !important; color: #c0c9d3 !important; }
html[data-theme="dark"] .main-table td { background: transparent; }
html[data-theme="dark"] .main-table tr.selected-row td, html[data-theme="dark"] .main-table tr.editing td { background: #12301d !important; }
html[data-theme="dark"] .total-row td { background: #1d2630 !important; color: #e7ecf1 !important; font-weight: 700; }
html[data-theme="dark"] .picker-item { background: #1d2630; color: #e7ecf1; border-color: #2b3641; }
html[data-theme="dark"] .picker-item:hover { background: #26313d; }
html[data-theme="dark"] .picker-item.selected { background: #14532d; color: #fff; }
html[data-theme="dark"] .picker-category { background: #12301d; color: #86efac; }
html[data-theme="dark"] .constraint-row { border-color: #2b3641; }
html[data-theme="dark"] .constraint-row.header-row { background: #1d2630; color: #c0c9d3; }
html[data-theme="dark"] .constraint-name { color: #e7ecf1; }
html[data-theme="dark"] .unit-badge { background: #26313d; color: #94a0ac; }
html[data-theme="dark"] .status-ok { color: #4ade80 !important; }
html[data-theme="dark"] .status-low { color: #fbbf24 !important; }
html[data-theme="dark"] .status-high { color: #f87171 !important; }
html[data-theme="dark"] .milk-summary-panel { background: #10283d !important; border-color: #1e5a8a !important; }
html[data-theme="dark"] .milk-summary-title { color: #c6e3ff !important; }
html[data-theme="dark"] .milk-summary-item { background: #161d25 !important; color: #e7ecf1; }
html[data-theme="dark"] .milk-summary-item .label { color: #94a0ac; }
html[data-theme="dark"] .milk-summary-item .value { color: #e7ecf1; }
html[data-theme="dark"] .milk-summary-item.achieved { background: #12301d !important; }
html[data-theme="dark"] .milk-summary-item.achieved .value { color: #4ade80; }
html[data-theme="dark"] .milk-summary-item.limited { background: #3a1616 !important; }
html[data-theme="dark"] .milk-summary-item.limited .value { color: #f87171; }
html[data-theme="dark"] .milk-summary-item.target { background: #33270a !important; }
html[data-theme="dark"] .milk-summary-item.target .value { color: #fbbf24; }
html[data-theme="dark"] .va-ok { background: #26313d; border-color: #3a4755; color: #c0c9d3; }
html[data-theme="dark"] .va-hedef, html[data-theme="dark"] .mvs-hedef { color: #7cc4ff; }
html[data-theme="dark"] .va-sifirla, html[data-theme="dark"] .mvs-sifirla { background: #1e3a5f; color: #c6e3ff; }
html[data-theme="dark"] .va-dengele, html[data-theme="dark"] .mvs-dengele { background: #1e3a5f; color: #c6e3ff; border-color: #2c5282; }
html[data-theme="dark"] .va-dengele.aktif, html[data-theme="dark"] .mvs-dengele.aktif { background: #2563eb; color: #fff; border-color: #2563eb; }

/* Rasyon sayfası: kalan noktalar */
html[data-theme="dark"] .btn-reset { background: #26313d !important; color: #e7ecf1 !important; border-color: #3a4755 !important; }
html[data-theme="dark"] .btn-solve, html[data-theme="dark"] .mobile-fab-optimize { background: #c2410c !important; color: #fff !important; }
html[data-theme="dark"] .cost-mini { background: #0b6b35 !important; }
html[data-theme="dark"] .mob-icon, html[data-theme="dark"] .mob-icon-hayvan { background: #26313d !important; color: #e7ecf1 !important; border-color: #3a4755 !important; }
html[data-theme="dark"] .mob-icon-hayvan .picker-arrow, html[data-theme="dark"] .mob-icon-hayvan span { color: #c0c9d3 !important; }
html[data-theme="dark"] .mobile-tab-label { color: #94a0ac !important; }
html[data-theme="dark"] .mobile-tab.active .mobile-tab-label { color: #4ade80 !important; }
html[data-theme="dark"] .constraint-gram, html[data-theme="dark"] .constraint-pct { color: #bff0cf !important; }
html[data-theme="dark"] .constraint-row.ok .constraint-gram, html[data-theme="dark"] .constraint-row.ok .constraint-pct { color: #4ade80 !important; }
html[data-theme="dark"] .constraint-row.low .constraint-gram, html[data-theme="dark"] .constraint-row.low .constraint-pct { color: #fbbf24 !important; }
html[data-theme="dark"] .constraint-row.high .constraint-gram, html[data-theme="dark"] .constraint-row.high .constraint-pct { color: #f87171 !important; }
html[data-theme="dark"] .btn-success, html[data-theme="dark"] .btn-success:hover { background: #1a7a41 !important; }

/* Mobil şerit, tuş takımı, alt menü, maliyet çubuğu */
html[data-theme="dark"] .mobile-verim-strip.mvs-visible { background: #10161c; border-color: #2b3641; }
html[data-theme="dark"] .mvs-item { background: #161d25; border-color: #2b3641; border-left-color: #6f7c89; }
html[data-theme="dark"] .mvs-lbl { color: #94a0ac; }
html[data-theme="dark"] .mvs-val { color: #e7ecf1; }
html[data-theme="dark"] .mvs-item.mvs-ok { background: #12301d; border-left-color: #34c76a; }
html[data-theme="dark"] .mvs-item.mvs-ok .mvs-val { color: #4ade80; }
html[data-theme="dark"] .mvs-item.mvs-low { background: #33270a; border-left-color: #f5b543; }
html[data-theme="dark"] .mvs-item.mvs-low .mvs-val { color: #fbbf24; }
html[data-theme="dark"] .mvs-btn { background: #26313d; color: #c0c9d3; }
html[data-theme="dark"] .mtk { background: #10161c; border-top-color: #2b3641; box-shadow: 0 -6px 24px rgba(0,0,0,0.6); }
html[data-theme="dark"] .mtk-tus { background: #26313d; color: #e7ecf1; box-shadow: 0 1px 2px rgba(0,0,0,0.5); }
html[data-theme="dark"] .mtk-tus:active { background: #3a4755; }
html[data-theme="dark"] .mtk-sil { background: #1d2630; color: #c0c9d3; }
html[data-theme="dark"] .mtk-yukari, html[data-theme="dark"] .mtk-asagi { background: #1e3a5f; color: #7cc4ff; }
html[data-theme="dark"] .mtk-tamam { background: #1f8f4c; color: #fff; }
html[data-theme="dark"] .solver-layout input.mtk-aktif { background: #12301d !important; outline-color: #34c76a !important; }
html[data-theme="dark"] .mobile-tab-bar { background: #10161c !important; border-top: 1px solid #2b3641 !important; box-shadow: 0 -2px 12px rgba(0,0,0,0.5); }
html[data-theme="dark"] .mobile-tab { color: #94a0ac; }
html[data-theme="dark"] .mobile-tab.active { color: #4ade80; }
html[data-theme="dark"] .mobile-tab.active::before { background: #4ade80; }
html[data-theme="dark"] .mobile-fab-bar { background: #1d2630 !important; box-shadow: 0 4px 16px rgba(0,0,0,0.6); }
html[data-theme="dark"] .mobile-icon-bar { background: #133d24 !important; }

/* Sayfa yükleyici ve bildirimler */
html[data-theme="dark"] #sayfaYukleyici { background: #0e1318; }
html[data-theme="dark"] .sy-ad { color: #86efac; }
html[data-theme="dark"] .sy-mesaj { color: #94a0ac; }
html[data-theme="dark"] .sy-cubuk { background: #26313d; }
html[data-theme="dark"] .sy-yuzde { color: #4ade80; }
html[data-theme="dark"] .toast { background: #1d2630; color: #e7ecf1; }
html[data-theme="dark"] .progress-overlay { background: rgba(14,19,24,0.9) !important; }
html[data-theme="dark"] .progress-container { background: #161d25 !important; color: #e7ecf1; }
html[data-theme="dark"] .modal-overlay { background: rgba(0,0,0,0.7) !important; }
html[data-theme="dark"] #hmPencere, html[data-theme="dark"] #hhdOverlay > div { background: #161d25; color: #e7ecf1; }

/* Dashboard */
html[data-theme="dark"] .stat-card h3 { color: #e7ecf1; }
html[data-theme="dark"] .stat-card p { color: #94a0ac; }
html[data-theme="dark"] .stat-icon { filter: brightness(1.1); }

/* Görünüm seçici (dashboard kartı) */
.tema-secici { display: flex; gap: 8px; flex-wrap: wrap; }
.tema-secenek {
    flex: 1 1 120px; border: 2px solid var(--gray-300, #dee2e6); border-radius: 10px; padding: 10px 12px;
    background: white; cursor: pointer; text-align: left; font: inherit; color: inherit;
    display: flex; align-items: center; gap: 10px; transition: border-color 0.15s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.tema-secenek .ts-ico { font-size: 1.4rem; line-height: 1; }
.tema-secenek .ts-ad { font-weight: 700; font-size: 0.85rem; }
.tema-secenek .ts-aciklama { font-size: 0.7rem; color: var(--gray-600, #6c757d); }
.tema-secenek.secili { border-color: #27ae60; background: #f0fdf4; }
.tema-secenek.secili .ts-ad::after { content: ' ✓'; color: #27ae60; }
html[data-theme="dark"] .tema-secenek { background: #1d2630; border-color: #3a4755; color: #e7ecf1; }
html[data-theme="dark"] .tema-secenek .ts-aciklama { color: #94a0ac; }
html[data-theme="dark"] .tema-secenek.secili { border-color: #34c76a; background: #12301d; }
html[data-theme="dark"] .tema-secenek.secili .ts-ad::after { color: #4ade80; }

/* Görseller ve grafikler: koyu zeminde hafif yumuşat */
html[data-theme="dark"] img:not(.no-dim), html[data-theme="dark"] canvas { filter: brightness(0.9); }
html[data-theme="dark"] .navbar img, html[data-theme="dark"] .no-dim { filter: none; }

/* Odak görünürlüğü (klavye) */
html[data-theme="dark"] :focus-visible { outline: 2px solid #34c76a; outline-offset: 2px; }
