/* Koyu mod — "Mor gece" (20C): antrasit-mor yüzeyler, pembe vurgu (#ec4899).
   Yalnız html.koyu altında geçerli; açık temaya dokunmaz. Önce değişkenler, sonra şablonlardaki sabit açık renkler. */

/* ---- değişkenler ---- */
html.koyu,html.koyu[data-theme=sentos]{color-scheme:dark;
 --bg:#191526;--card:#211c33;--tx:#ece9f5;--mut:#b3abcc;--mut2:#8a82a6;
 --ln:#2f2846;--ln2:#3a3256;--chip:#2c2542;--chip2:#352d50;--thbg:#2c2542;--inp:#2c2542;--topbg:rgba(33,28,51,.92);
 --cardln:#2f2846;--sh:0 1px 3px rgba(0,0,0,.35);
 --osoft:#3a2140;--oln:#5b2d55;--orsoft:#3a2140;--ortx:#f9a8d4;
 --oksoft:#16301f;--okln:#24502f;--ok:#4ade80;--badsoft:#3a1820;--badln:#6b2635;--bad:#f87171;
 --warnsoft:#3a2c12;--warnln:#6b5020;--warn:#fbbf24;--warntx:#fcd34d;--infosoft:#1b2547;--infoln:#2c3d73;--info:#93b4ff;
 --viosoft:#2c2152;--vio:#c4b5fd;--focus:rgba(236,72,153,.28);--snt-gri:#4a4163;--snt-ic:#3a3256}
html.koyu body{background:#191526;color:#ece9f5}

/* ---- yüzeyler, yazılar ---- */
html.koyu .card,html.koyu .snt.card,html.koyu .masa,html.koyu .tw,html.koyu .page>.card{background:#211c33;border-color:#2f2846;color:#ece9f5}
html.koyu h1,html.koyu h2,html.koyu h3,html.koyu h4,html.koyu b,html.koyu strong,html.koyu label{color:#ece9f5}
html.koyu .sub,html.koyu small,html.koyu .mut{color:#b3abcc}
html.koyu hr{border-color:#2f2846}
html.koyu a:not(.btn):not(.ui):not(.pill){color:inherit}
html.koyu [style*="color:#333"],html.koyu [style*="color:#555"],html.koyu [style*="color:#444"]{color:#ece9f5!important}
html.koyu [style*="color:#777"],html.koyu [style*="color:#888"],html.koyu [style*="color:#999"],html.koyu [style*="color:#666"]{color:#b3abcc!important}
html.koyu [style*="background:#fff;"],html.koyu [style*="background:#fff\""],html.koyu [style*="background:#fafafa"],html.koyu [style*="background:#f5f5f5"],
html.koyu [style*="background:#f7f7f7"],html.koyu [style*="background:#f9f9f9"],html.koyu [style*="background:#fafbfc"],html.koyu [style*="background:var(--bg)"]{background:#2c2542!important}

/* ---- üst çubuk ve menüler ---- */
html.koyu[data-theme=sentos] .top{background:#211c33;box-shadow:inset 0 -2px 0 #ec4899}
html.koyu[data-theme=sentos] .top input{background:#2c2542;border-color:#3a3256;color:#ece9f5}
html.koyu .ub-m,html.koyu .uk-m{background:#211c33;color:#ece9f5;box-shadow:0 14px 40px rgba(0,0,0,.55);border:1px solid #2f2846}
html.koyu .ub-l a,html.koyu .uk-m a{color:#ece9f5;border-top-color:#2f2846}
html.koyu .ub-l a:hover,html.koyu .uk-m a:hover{background:#2c2542}
html.koyu .ub-l a small,html.koyu .ub-bos{color:#b3abcc}
html.koyu .ub-sek{background:#2c2542}html.koyu .ub-sek button{color:#c9c2e0}
html.koyu .uk-m hr{border-top-color:#2f2846}html.koyu .uk-m a svg{color:#c9c2e0}
html.koyu .ub-ic{background:#16301f;color:#86efac}html.koyu .ub-k{background:#3a2c12;color:#fbbf24}html.koyu .ub-k0{background:#3a1820;color:#f87171}
html.koyu[data-theme=sentos] aside .nav a.on{background:linear-gradient(90deg,rgba(236,72,153,.25),transparent);box-shadow:inset 3px 0 0 #ec4899}

/* ---- tablolar ---- */
html.koyu table{color:#ece9f5}
html.koyu td,html.koyu th{border-color:#2f2846}
html.koyu[data-theme=sentos] thead th{background:#2c2542;color:#c9c2e0}html.koyu[data-theme=sentos] thead th a{color:#c9c2e0}
@media(min-width:641px){html.koyu[data-theme=sentos] tbody tr:nth-child(even):not([style*=background])>td{background:#1d1830}
 html.koyu[data-theme=sentos] tbody tr:not([style*=background]):hover>td{background:#2a2340}
 html.koyu[data-theme=sentos] tbody tr.sel>td{background:#3a2140}}
html.koyu[data-theme=sentos] .pager .on{background:#ec4899;color:#fff}
@media(max-width:640px){html.koyu main table.kt tr{background:#211c33;border-color:#2f2846}}

/* ---- form alanları ---- */
html.koyu[data-theme=sentos] :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select,textarea),
html.koyu input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),html.koyu select,html.koyu textarea{background:#2c2542;border-color:#3a3256;color:#ece9f5}
html.koyu input::placeholder,html.koyu textarea::placeholder{color:#8a82a6}
html.koyu input:focus,html.koyu select:focus,html.koyu textarea:focus{border-color:#ec4899;box-shadow:0 0 0 3px rgba(236,72,153,.25)}
html.koyu input[type=date]::-webkit-calendar-picker-indicator{filter:invert(1) opacity(.7)}
html.koyu input[type=checkbox],html.koyu input[type=radio]{accent-color:#ec4899}
html.koyu option{background:#211c33;color:#ece9f5}
/* sipariş masası / süzgeç satırlarının alt çizgili alanları */
html.koyu .snt-f input,html.koyu .snt-f select,html.koyu .flt input,html.koyu .flt select,html.koyu .bar input,html.koyu .bar select,html.koyu select.dsec{
 background:transparent!important;border-bottom-color:#4a4163!important;color:#ece9f5!important}

/* ---- düğmeler ---- */
html.koyu[data-theme=sentos] .btn.g,html.koyu[data-theme=sentos] button.g{background:#4a4163;color:#fff;border-color:transparent}
html.koyu .mb-hepsi{background:#2c2542;border-color:#3a3256;color:#ece9f5}

/* ---- süzgeç düğmeleri, etiketler ---- */
html.koyu .snt .snl{color:#ece9f5}
html.koyu .snt .tabs a,html.koyu .snt .chans a,html.koyu .snt .kd a,html.koyu[data-theme=sentos] .tabs a,html.koyu[data-theme=sentos] .chans a,html.koyu[data-theme=sentos] .kd a{background:#4a4163}
html.koyu .snt .sic{background:#3a3256}
html.koyu .snt-f .filtrele{background:#4a4163}
html.koyu[data-theme=sentos] :not(.snt)>.tabs a{color:#b3abcc!important;background:transparent}
html.koyu[data-theme=sentos] :not(.snt)>.tabs a:hover{color:#fff!important}
html.koyu .pill{background:#2c2542;color:#d6d0ea}
html.koyu #masaf .pill{background:#4a4163!important}html.koyu #masaf .pill::before{background-color:#3a3256}
html.koyu .badge{color:#fff}
html.koyu code,html.koyu kbd,html.koyu .kbd{background:#2c2542;color:#ece9f5;border-color:#3a3256}

/* ---- mesaj kutuları ---- */
html.koyu[data-theme=sentos] .msg{background:#1b2547;border-color:#2c3d73;color:#c7d6ff;--mi:#93b4ff}
html.koyu[data-theme=sentos] .msg.msg-ok{background:#16301f;border-color:#24502f;color:#bbf7d0;--mi:#4ade80}
html.koyu[data-theme=sentos] .msg.msg-uyari{background:#3a2c12;border-color:#6b5020;color:#fde68a;--mi:#fbbf24}
html.koyu[data-theme=sentos] .msg.msg-hata{background:#3a1820;border-color:#6b2635;color:#fecaca;--mi:#f87171}
html.koyu .msg[style*="warn"]{color:#fde68a!important;border-color:#a87a2a!important}

/* ---- sipariş masası ---- */
html.koyu .masa-bar{background:rgba(33,28,51,.96);border-bottom-color:#2f2846;box-shadow:0 8px 18px -10px rgba(0,0,0,.6)}
html.koyu .tm-m,html.koyu .tm-sub,html.koyu .rm-m{background:#211c33;border-color:#2f2846;color:#ece9f5}
html.koyu .lnr .thumb,html.koyu .thumb{background:#2c2542}
html.koyu .hz-kapida{background:#16301f;color:#86efac;border-color:#24502f}html.koyu .hz-kargo{background:#1b2547;color:#93b4ff;border-color:#2c3d73}
html.koyu .hz-hediye{background:#3a1830;color:#f9a8d4;border-color:#6b2655}html.koyu .hz-hizmet{background:#2c2542;color:#c9c2e0;border-color:#3a3256}
html.koyu .oc-u{background:#2c2542;color:#ece9f5}
html.koyu .oc-l+.oc-l{border-top-color:#3a3256}
html.koyu .sira{color:inherit}

/* ---- özet ve panolar ---- */
html.koyu .sp-c,html.koyu .sp-tot{background:#211c33;color:#ece9f5}
html.koyu .sp-c.z{background:transparent;border-color:#2f2846}
html.koyu .sp-tot .ring{background:#16301f;border-color:#24502f;color:#86efac}
html.koyu .it,html.koyu .it:hover{color:#ece9f5}
html.koyu .meter{background:#2c2542}
html.koyu .chart .lb,html.koyu .chart .d{color:#b3abcc}

/* ---- açılır pencere, onay penceresi ---- */
html.koyu dialog,html.koyu .modal,html.koyu .rv-onay-kutu{background:#211c33;color:#ece9f5;border-color:#2f2846}

/* ---- kaydırma çubuğu ---- */
html.koyu[data-theme=sentos]{scrollbar-color:#ec4899 #211c33}
html.koyu[data-theme=sentos] main ::-webkit-scrollbar-track,html.koyu[data-theme=sentos]::-webkit-scrollbar-track{background:#211c33}
html.koyu[data-theme=sentos] main ::-webkit-scrollbar-thumb,html.koyu[data-theme=sentos]::-webkit-scrollbar-thumb{background:#ec4899}

/* ---- sayfa başlığı, şablonlardaki sabit açık kutular ---- */
html.koyu[data-theme=sentos] .page>.head{background:#211c33;border-color:#2f2846}
html.koyu .card[style*="background:#f"],html.koyu .card[style*="background:#e"],html.koyu div[style*="background:#f0f"],html.koyu div[style*="background:#fafafa"]{background:#2c2542!important;border-color:#3a3256!important}
html.koyu [style*="box-shadow:0 0 0 4px #f0f1f3"]{box-shadow:0 0 0 4px #2c2542,0 0 0 5px #98a2b3!important}
/* sipariş detay kartları (10C): yeşil üst çizgi kalır, zemin koyu */
html.koyu main:has(#geriListe) .card{background:linear-gradient(90deg,#7cb342,#2e7d32) top/100% 3px no-repeat,#211c33!important;border-color:#2f2846!important}
/* fatura panosu küçük sayaçlar */
html.koyu .mk-mor{background:#2c2152;color:#ddd6fe}html.koyu .mk-mavi{background:#12304a;color:#bae6fd}
html.koyu .mk-sari{background:#3a2c12;color:#fde68a}html.koyu .mk-kirmizi,html.koyu [class*=mk-kir]{background:#3a1820;color:#fecaca}
html.koyu .mk b{color:inherit}

/* ---- kart başlık şeridi ---- */
html.koyu[data-theme=sentos] .card>.ch{background:linear-gradient(90deg,#2c2542 0%,#211c33 70%);border-bottom-color:#2f2846}
html.koyu[data-theme=sentos] .card>.ch h2::before{background:linear-gradient(180deg,#ec4899,#9333ea)}
/* entegrasyonlar / kanallar / hesabım / kullanıcılar kartları */
html.koyu .ent>.card,html.koyu .hk,html.koyu .uk{background:#211c33;border-color:#2f2846}
html.koyu .rl-admin,html.koyu .uc select.r-admin{background:#3a1820!important;color:#fecaca}
html.koyu .rl-yonetici,html.koyu .uc select.r-yonetici{background:#1b2547!important;color:#c7d6ff}
html.koyu .rl-depo,html.koyu .uc select.r-depo{background:#3a2c12!important;color:#fde68a}
/* satış raporu */
html.koyu .sr-chips label:has(input:checked),html.koyu .sr-pre a.on,html.koyu .sr-pre a:hover{background:#16301f;color:#86efac;border-color:#4d7c2a}
html.koyu .sr tfoot td{background:#16301f;color:#bbf7d0}html.koyu .sr .day td{background:#1d2a1f;color:#a7d98a}
/* ürün detay kanal etiketleri */
html.koyu .v8-kanal .pill.p-ok{background:#16301f!important;color:#86efac!important}
html.koyu .v8-kanal .pill.p-bekliyor{background:#3a2c12!important;color:#fde68a!important}
html.koyu[data-theme=sentos] .page>.head h1{color:#ece9f5}html.koyu[data-theme=sentos] .page>.head .sub{color:#b3abcc}
html.koyu[data-theme=sentos] .page>.head a:not(.btn){color:#c9c2e0}
/* sayfa numaraları, bildirim baloncuğu */
html.koyu[data-theme=sentos] .pager{background:#211c33;color:#c9c2e0;box-shadow:0 2px 10px rgba(0,0,0,.4)}
html.koyu[data-theme=sentos] :is(.pager,.pg .pp) a{background:#4a4163!important}
html.koyu[data-theme=sentos] :is(.pager,.pg .pp) .on{background:#120f1c}
html.koyu .toast-k{background:#2c2542;color:#ece9f5;border-color:#3a3256;box-shadow:0 10px 26px rgba(0,0,0,.5)}
/* beyaz kalan kartlar (yedekler, canlıya geçiş, depo sayfaları) ve stok giriş */
html.koyu .y7{background:#211c33!important;border-color:#2f2846}
html.koyu .dp-h .grid>.card:not(.kpi),html.koyu .dpf .card,html.koyu .scan,html.koyu :is(.pk-c,.tp-c) .list .it{background:#211c33;border-color:#2f2846;color:#ece9f5}
html.koyu .modes button:not(.on){background:#2c2542;color:#ece9f5;border-color:#3a3256}
html.koyu #code,html.koyu #code:focus{background:#2c2542;color:#ece9f5}
html.koyu input[type=file]{background:#2c2542!important;color:#b3abcc;border-color:#3a3256}
html.koyu input[type=file]::file-selector-button{background:#4a4163;color:#ece9f5;border:0;border-radius:6px}
html.koyu th,html.koyu[data-theme=sentos] th{color:#c9c2e0}
html.koyu .uk-m .uk-koyu{color:#ece9f5}
html.koyu a[style*="color:var(--o)"]{color:#86efac!important}
