/* OZGUR SU ARITMA - Merkezi Tema Sistemi v1.0.0
   Light, orijinal tasarimi korur. Dark, ekranda uygulanan temadir.
   Fatura, tahsilat, form veya veritabani mantigina dokunmaz. */
:root {color-scheme:light; --oz-theme-surface:#ffffff; --oz-theme-page:#f3f5f9; --oz-theme-ink:#17243a; --oz-theme-muted:#64748b; --oz-theme-line:#dbe4ee; }
.oz-theme-toggle { display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-width:38px;height:38px;padding:0 10px;border:1px solid #d9e5f3;border-radius:12px;background:#f1f7ff;color:#1e5dab;font-size:15px;line-height:1;cursor:pointer;box-shadow:0 2px 7px #142e5210;transition:background .18s,color .18s,border-color .18s; }
.oz-theme-toggle:hover { background:#e2efff;border-color:#b6d3f4; }
.oz-theme-toggle:focus-visible { outline:3px solid #5595eb;outline-offset:2px; }
.oz-theme-toggle .bi {font-size:17px;}
.oz-theme-toggle .oz-theme-caption {font-size:12px;font-weight:700;}
@media(max-width:900px) {.oz-theme-toggle{width:36px;min-width:36px;height:36px;padding:0;border-radius:10px;}.oz-theme-toggle .oz-theme-caption{display:none}}
@media(prefers-reduced-motion:reduce){.oz-theme-toggle{transition:none;}}

/* Light'in mevcut site gorunumunu degistirmemek icin kapsam yalnizca dark. */
html[data-oz-theme="dark"] {
  color-scheme:dark;
  --oz-theme-page:#0d1625;
  --oz-theme-surface:#162338;
  --oz-theme-ink:#e8eff9;
  --oz-theme-muted:#a7b8d0;
  --oz-theme-line:#32465e;
  --app-bg:#0e1726;
  --panel:#17263b;
  --border:#33455d;
  --text:#e9f1fc;
  --muted:#abbed4;
  --shadow:0 12px 30px rgba(0,0,0,.27);
  --shadow-sm:0 8px 18px rgba(0,0,0,.24);
  --bs-body-bg:#0e1726;
  --bs-body-color:#e9f1fc;
  --bs-secondary-color:#a7b8d0;
  --bs-border-color:#32465e;
  --bs-tertiary-bg:#213249;
  --bs-secondary-bg:#17263b;
  --bs-emphasis-color:#f6faff;
}
html[data-oz-theme="dark"] body,
html[data-oz-theme="dark"] body.oz-admin-ui,
html[data-oz-theme="dark"] body.oz-customer-ui,
html[data-oz-theme="dark"] .content,
html[data-oz-theme="dark"] .content-inner { background-color:var(--oz-theme-page)!important;color:var(--oz-theme-ink); }
html[data-oz-theme="dark"] h1, html[data-oz-theme="dark"] h2, html[data-oz-theme="dark"] h3, html[data-oz-theme="dark"] h4, html[data-oz-theme="dark"] h5, html[data-oz-theme="dark"] h6,
html[data-oz-theme="dark"] .text-dark {color:var(--oz-theme-ink)!important;}
html[data-oz-theme="dark"] .text-muted, html[data-oz-theme="dark"] .text-secondary,
html[data-oz-theme="dark"] .small.text-muted { color:var(--oz-theme-muted)!important; }
html[data-oz-theme="dark"] .topbar,
html[data-oz-theme="dark"] nav.navbar,
html[data-oz-theme="dark"] .navbar.oz-public-unified-nav,
html[data-oz-theme="dark"] .sidebar,
html[data-oz-theme="dark"] .offcanvas,
html[data-oz-theme="dark"] .offcanvas-header,
html[data-oz-theme="dark"] .dropdown-menu,
html[data-oz-theme="dark"] .modal-content,
html[data-oz-theme="dark"] .popover,
html[data-oz-theme="dark"] .list-group-item,
html[data-oz-theme="dark"] .card,
html[data-oz-theme="dark"] .card-soft,
html[data-oz-theme="dark"] .sub-slider-card,
html[data-oz-theme="dark"] .urun-card,
html[data-oz-theme="dark"] .table-card,
html[data-oz-theme="dark"] .accordion-item,
html[data-oz-theme="dark"] .oz-finance-intro,
html[data-oz-theme="dark"] .oz-finance-stat,
html[data-oz-theme="dark"] .oz-finance-shortcut,
html[data-oz-theme="dark"] .oz-chat-contacts,
html[data-oz-theme="dark"] .oz-chat-shell,
html[data-oz-theme="dark"] .oz-chat-header,
html[data-oz-theme="dark"] .oz-chat-compose,
html[data-oz-theme="dark"] .oz-dropdown-panel,
html[data-oz-theme="dark"] .nav-dd,
html[data-oz-theme="dark"] .auth-dropdown,
html[data-oz-theme="dark"] .bg-white,
html[data-oz-theme="dark"] .bg-light {
 background:var(--oz-theme-surface)!important;
 background-color:var(--oz-theme-surface)!important;
 color:var(--oz-theme-ink)!important;
 border-color:var(--oz-theme-line)!important;
}
html[data-oz-theme="dark"] .topbar,
html[data-oz-theme="dark"] .sidebar,
html[data-oz-theme="dark"] .oz-finance-stat,
html[data-oz-theme="dark"] .oz-finance-intro {border-color:var(--oz-theme-line)!important;}
html[data-oz-theme="dark"] :is(.card,.card-soft,.oz-finance-stat,.oz-finance-intro) :is(.label,.menu-text,.value,.oz-finance-balance) {color:var(--oz-theme-ink);}
html[data-oz-theme="dark"] .dropdown-item, html[data-oz-theme="dark"] .nav-dd-link,
html[data-oz-theme="dark"] .oz-alert-entry,
html[data-oz-theme="dark"] .oz-alert-main,
html[data-oz-theme="dark"] .oz-alert-sub,
html[data-oz-theme="dark"] .oz-dropdown-head,
html[data-oz-theme="dark"] .oz-dropdown-footer,
html[data-oz-theme="dark"] .nav-dd-head,
html[data-oz-theme="dark"] .menu-item {color:var(--oz-theme-ink)!important;}
html[data-oz-theme="dark"] :is(.dropdown-item,.menu-item,.nav-dd-link,.oz-alert-entry):hover {background:#253952!important;color:#f2f7ff!important;}
html[data-oz-theme="dark"] .menu-item.active {background:#203e63!important;color:#b9dfff!important;}
html[data-oz-theme="dark"] .menu-item.active i {color:#7fc1ff!important;}
html[data-oz-theme="dark"] .oz-customer-ui .menu-item[href="mesajlar.php"] {background:#123b31!important;color:#85f3c6!important;border-color:#206e56!important;}
html[data-oz-theme="dark"] .oz-customer-ui .menu-item.is-logout {background:#41242b!important;color:#ffb1b7!important;}
html[data-oz-theme="dark"] .oz-theme-toggle {background:#273952;color:#ffdf94;border-color:#4b607d;}
html[data-oz-theme="dark"] .oz-theme-toggle:hover {background:#354b69;}
html[data-oz-theme="dark"] :is(input,textarea,select,.form-control,.form-select,.input-group-text),
html[data-oz-theme="dark"] :is(.form-control,.form-select):focus {background-color:#1c2e44!important;color:#e8f0fc!important;border-color:#455e7b!important;}
html[data-oz-theme="dark"] :is(input,textarea,.form-control)::placeholder {color:#9db3ca!important;opacity:1;}
html[data-oz-theme="dark"] :is(.form-control,.form-select):focus {box-shadow:0 0 0 3px #458feb40!important;}
html[data-oz-theme="dark"] :is(.btn-light,.btn-outline-dark,.btn-outline-secondary) {background-color:#20344d!important;color:#e9f2ff!important;border-color:#405b78!important;}
html[data-oz-theme="dark"] :is(.btn-light,.btn-outline-dark,.btn-outline-secondary):hover {background-color:#2c4868!important;}
html[data-oz-theme="dark"] :is(.table,.table-striped,.table-hover) {--bs-table-bg:#17263b;--bs-table-color:#e8eff9;--bs-table-border-color:#33485f;--bs-table-striped-bg:#1d3049;--bs-table-striped-color:#e8eff9;--bs-table-hover-bg:#27415f;--bs-table-hover-color:#fff; color:#e8eff9;}
html[data-oz-theme="dark"] .table thead th,html[data-oz-theme="dark"] .table th {background-color:#243850!important;color:#e9f2fc!important;}
html[data-oz-theme="dark"] .table td {background-color:transparent;color:var(--oz-theme-ink);}
html[data-oz-theme="dark"] .table-responsive {border-color:var(--oz-theme-line);}
html[data-oz-theme="dark"] :is(.border,.border-top,.border-bottom,.border-start,.border-end,.border-light,.dropdown-divider,.hr,hr) {border-color:var(--oz-theme-line)!important;}
html[data-oz-theme="dark"] .oz-finance-tabs a:not(.is-active) {background:#1b2d44;color:#dbeafb;border-color:#3b5471;}
html[data-oz-theme="dark"] .oz-finance-balance {background:#17375a!important;color:#b5dcff!important;}
html[data-oz-theme="dark"] .oz-finance-shortcut small {color:#a7bad1;}
html[data-oz-theme="dark"] .oz-chat-stream {background:#0e1f29!important;color:#eaf5f3;}
html[data-oz-theme="dark"] .oz-chat-peer .oz-chat-bubble {background:#233747!important;border-color:#344f5c!important;}
html[data-oz-theme="dark"] .oz-chat-own .oz-chat-bubble {background:#205443!important;border-color:#2b6955!important;}
html[data-oz-theme="dark"] .oz-chat-text {color:#f0f9f6!important;}
html[data-oz-theme="dark"] .oz-chat-header,html[data-oz-theme="dark"] .oz-chat-contacts-head {border-color:#355064!important;}
html[data-oz-theme="dark"] .oz-chat-contact strong,html[data-oz-theme="dark"] .oz-chat-contacts-head strong {color:#e8f4f6!important;}
html[data-oz-theme="dark"] .oz-chat-contact small,html[data-oz-theme="dark"] .oz-chat-time {color:#abc3ca!important;}
html[data-oz-theme="dark"] .oz-chat-contacts-scroll .list-group-item {background:#1b2d3c!important;color:#e8f4f6!important;border-color:#344b60!important;}
html[data-oz-theme="dark"] .oz-chat-contacts-scroll .list-group-item.active {background:#1c5142!important;color:#eafff4!important;}
html[data-oz-theme="dark"] .oz-chat-input {background:#1c3340!important;color:#fff!important;border-color:#456173!important;}
html[data-oz-theme="dark"] .oz-chat-compose-meta {color:#b0c3cb!important;}
html[data-oz-theme="dark"] #productSuggest,html[data-oz-theme="dark"] #productSuggest .search-hit {background:#17263b!important;color:#e8eff9!important;border-color:#344960!important;}
html[data-oz-theme="dark"] #productSuggest .search-hit:hover {background:#28415d!important;}
html[data-oz-theme="dark"] .top-search input,html[data-oz-theme="dark"] .oz-panel-search input {background-color:#21344b!important;color:#e8eff9!important;}
html[data-oz-theme="dark"] .product-image-placeholder {background:#203955;color:#6ab7e5;}
html[data-oz-theme="dark"] .hero-premium .hero-slider,html[data-oz-theme="dark"] .hero-premium .hero-slider img {background:#f8fbff!important;}
/* Istisna: gercek urun fotograflarina ve marka logolarina invert uygulanmaz. */
@media print {html[data-oz-theme="dark"] {color-scheme:light!important;}html[data-oz-theme="dark"] body,html[data-oz-theme="dark"] .content {background:#fff!important;color:#000!important;} .oz-theme-toggle{display:none!important;}}
/* Ortak ust menu kullanmayan giris/sifre sayfalarinda istege bagli sabit dugme. */
.oz-theme-toggle.oz-theme-floating {position:fixed;top:14px;right:14px;z-index:1099;}


/* -----------------------------------------------------------
   A8P - PROFESYONEL YONETIM DARK TEMA
   Yalnizca html[data-oz-theme="dark"] + body.oz-admin-ui.
   Light tema, musteri tarafi, finans is kurallari etkilenmez.
   ----------------------------------------------------------- */
html[data-oz-theme="dark"] body.oz-admin-ui {
  --app-bg: #0b1422;
  --panel: #141f30;
  --border: #30445f;
  --text: #e7f1fe;
  --muted: #9eb4cf;
  --primary: #5ba7ff;
  --shadow: 0 16px 45px rgb(0 0 0 / .26);
  --shadow-sm: 0 8px 26px rgb(0 0 0 / .20);
  --oz-ad-page: #0b1422;
  --oz-ad-surface: #162439;
  --oz-ad-surface-2: #1c2d45;
  --oz-ad-surface-3: #243b57;
  --oz-ad-stroke: #30445e;
  --oz-ad-ink: #ebf3fd;
  --oz-ad-sub: #adbed4;
  --oz-ad-blue: #76b9ff;
  --oz-ad-green: #56dbad;
  background: var(--oz-ad-page) !important;
  color: var(--oz-ad-ink) !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
html[data-oz-theme="dark"] body.oz-admin-ui .content,
html[data-oz-theme="dark"] body.oz-admin-ui .content-inner {
  background: var(--oz-ad-page) !important;
  color: var(--oz-ad-ink) !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .topbar {
  background: linear-gradient(105deg, #18263c 0%, #122239 63%, #122c42 100%) !important;
  border-bottom: 1px solid #344963 !important;
  box-shadow: 0 5px 25px rgb(0 0 0 / .22);
}
html[data-oz-theme="dark"] body.oz-admin-ui .sidebar,
html[data-oz-theme="dark"] body.oz-admin-ui #mobileMenu,
html[data-oz-theme="dark"] body.oz-admin-ui #mobileMenu .offcanvas-body {
  background: linear-gradient(160deg, #152238, #121d30) !important;
  border-color: #2b4059 !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .sidebar-title {
  color: #85a8cb !important;
  letter-spacing: .11em;
}
html[data-oz-theme="dark"] body.oz-admin-ui .menu-item {
  border-radius: 12px;
  color: #ccdcee !important;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
html[data-oz-theme="dark"] body.oz-admin-ui .menu-item i {
  color: #94b6d7 !important;
  transition: color .18s;
}
html[data-oz-theme="dark"] body.oz-admin-ui .menu-item:hover,
html[data-oz-theme="dark"] body.oz-admin-ui .menu-item:focus-visible {
  background: #223b57 !important;
  color: #fff !important;
  border-color: #3a607e !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .menu-item.active {
  background: linear-gradient(100deg, #1d4d77, #183c62) !important;
  color: #f5faff !important;
  border: 1px solid #488bc3 !important;
  box-shadow: inset 3px 0 0 #69c8f7, 0 8px 20px rgb(0 0 0 / .14);
}
html[data-oz-theme="dark"] body.oz-admin-ui .menu-item.active i,
html[data-oz-theme="dark"] body.oz-admin-ui .menu-item:hover i {color: #95ddff !important;}
/* Ust bildirimlerde rozetler ve islevler aynen kalir. */
html[data-oz-theme="dark"] body.oz-admin-ui .oz-top-alert,
html[data-oz-theme="dark"] body.oz-admin-ui #sidebarToggle,
html[data-oz-theme="dark"] body.oz-admin-ui [data-bs-target="#mobileMenu"] {
  background: #21364e !important;
  border: 1px solid #3b5673 !important;
  color: #deebf8 !important;
  border-radius: 12px;
}
html[data-oz-theme="dark"] body.oz-admin-ui .oz-top-alert:hover,
html[data-oz-theme="dark"] body.oz-admin-ui .oz-top-alert:focus-visible {
  background: #2b4b6c !important;
  border-color: #6696c3 !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .oz-top-count {
  border-color: #142239 !important;
  background: #e94861 !important;
  color: #fff !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .oz-dropdown-panel,
html[data-oz-theme="dark"] body.oz-admin-ui .dropdown-menu,
html[data-oz-theme="dark"] body.oz-admin-ui .modal-content,
html[data-oz-theme="dark"] body.oz-admin-ui .offcanvas {
  background: #18283f !important;
  border: 1px solid #395370 !important;
  color: var(--oz-ad-ink) !important;
  box-shadow: 0 22px 58px rgb(0 0 0 / .36) !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .oz-dropdown-head,
html[data-oz-theme="dark"] body.oz-admin-ui .oz-dropdown-footer,
html[data-oz-theme="dark"] body.oz-admin-ui .modal-header,
html[data-oz-theme="dark"] body.oz-admin-ui .modal-footer {
  background: #20344d !important;
  border-color: #344f6b !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .oz-alert-entry {
  color: #ecf3fb !important;
  background: transparent !important;
  border-color: #304862 !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .oz-alert-entry:hover,
html[data-oz-theme="dark"] body.oz-admin-ui .dropdown-item:hover {background: #294565 !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .oz-alert-sub {color: #a9bdd4 !important;}
/* Is kartlari, dashboard, ayarlar, stok ve bakim. */
html[data-oz-theme="dark"] body.oz-admin-ui :is(
  .dashboard-card, .table-card, .table-header, .card, .card-soft, .card-settings,
  .bank-card, .fatura-box, .ozet-alan, .oz-stock-tile, .invoice-card,
  .ozcari-item, .ozcari-fatura, .oz-finance-intro, .oz-finance-stat,
  .oz-chat-contacts, .oz-chat-shell, .list-group-item, .accordion-item,
  .img-preview-box
) {
  background: var(--oz-ad-surface) !important;
  background-color: var(--oz-ad-surface) !important;
  color: var(--oz-ad-ink) !important;
  border-color: var(--oz-ad-stroke) !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui :is(
  .dashboard-card, .table-card, .card, .card-soft, .card-settings, .bank-card,
  .invoice-card, .ozcari-item
) {box-shadow: 0 12px 32px rgb(0 0 0 / .17) !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .dashboard-card:hover,
html[data-oz-theme="dark"] body.oz-admin-ui .card:hover {border-color: #41617d !important;}
html[data-oz-theme="dark"] body.oz-admin-ui :is(.table-header, .card-header, .accordion-header, .ozcari-item[open] > summary) {
  background: var(--oz-ad-surface-2) !important;
  color: var(--oz-ad-ink) !important;
  border-color: var(--oz-ad-stroke) !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .ozcari-card-name,
html[data-oz-theme="dark"] body.oz-admin-ui .ozcari-fatura-title,
html[data-oz-theme="dark"] body.oz-admin-ui .ozcari-fatura,
html[data-oz-theme="dark"] body.oz-admin-ui .ozcari-item > summary {color: #ecf5ff !important;}
html[data-oz-theme="dark"] body.oz-admin-ui :is(.ozcari-card-meta,.ozcari-recent,.ozcari-payments,.ozcari-payment-line) {color: #b8c8da !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .oz-stock-tile {
  background: #2a2438 !important;
  border-color: #68485d !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .oz-stock-tile-name {color: #f4eaf0 !important;}
/* Finans ozetlerini renklerine gore ayristir, degerler solmasin. */
html[data-oz-theme="dark"] body.oz-admin-ui .card-finance {border: 1px solid #40536b !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .card-finance.bg-soft-indigo {background: #29234b !important; color: #ddd3ff !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .card-finance.bg-soft-purple {background: #30234b !important; color: #ddd3ff !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .card-finance.bg-soft-pink {background: #43243d !important; color: #ffcae0 !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .card-finance.bg-soft-teal {background: #153f3d !important; color: #9beed7 !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .card-finance.bg-soft-success {background: #1b4035 !important; color: #acf2d0 !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .card-finance.bg-soft-primary {background: #1b3557 !important; color: #abd5ff !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .card-finance.bg-soft-info {background: #174353 !important; color: #9ce6fa !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .card-finance.bg-soft-warning {background: #483a20 !important; color: #ffdea0 !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .card-finance :is(.h4,.h5,.small) {color:inherit !important;}
/* Tablo: metin karsitligi, secili satir, sticky baslik. */
html[data-oz-theme="dark"] body.oz-admin-ui .table {
  --bs-table-bg: #16263b;
  --bs-table-color: #e8f0fb;
  --bs-table-hover-bg: #24405d;
  --bs-table-hover-color: #fff;
  --bs-table-striped-bg: #1b3149;
  --bs-table-striped-color: #e8f0fb;
  --bs-table-border-color: #304761;
  background: #16263b !important;
  color: #e8f0fb !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .table :is(thead th,thead td,.table-sticky-header thead th) {
  background: #20364f !important;
  color: #dbeafe !important;
  border-color: #3d5671 !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .table :is(tbody td,tbody th) {
  color: #e7f1fd !important;
  border-color: #304761 !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .table-hover tbody tr:hover {--bs-table-accent-bg:#294867;}
/* Form elemanlari; disabled ve readonly ifadeleri okunabilir kalir. */
html[data-oz-theme="dark"] body.oz-admin-ui :is(
  .form-control,.form-select,.input-group-text,textarea,input:not([type="checkbox"]):not([type="radio"]),select
) {
  background: #1b2e46 !important;
  color: #edf5ff !important;
  border-color: #46607c !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui :is(.form-control,.form-select,textarea,input,select)::placeholder {color:#b1c4d9 !important;}
html[data-oz-theme="dark"] body.oz-admin-ui :is(.form-control,.form-select,textarea):focus {
  border-color: #77b9f8 !important;
  box-shadow: 0 0 0 3px rgb(85 159 245 / .20) !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui :is(input[disabled],textarea[disabled],.readonly-bg,.form-control:disabled,.form-control[readonly]) {
  background: #25344a !important;
  color: #bbcbde !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui :is(.img-preview-box,.iban-box,.bg-light,.bg-white) {
  background: var(--oz-ad-surface-2) !important;
  border-color: var(--oz-ad-stroke) !important;
  color: var(--oz-ad-ink) !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui :is(.nav-link:not(.active),.nav-pills .nav-link:not(.active)) {
  color: #b9d2ee !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .nav-pills .nav-link:not(.active) {
  background: #233951 !important;
  border-color: #3f5b78 !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui :is(.btn-light,.btn-white,.btn-outline-secondary,.btn-outline-dark) {
  background: #253b55 !important;
  color: #eaf5ff !important;
  border-color: #486684 !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui :is(.btn-light,.btn-white,.btn-outline-secondary,.btn-outline-dark):hover {
  background: #355575 !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .badge.bg-light,
html[data-oz-theme="dark"] body.oz-admin-ui .badge.bg-white {
  background: #2e425b !important;
  color: #e8f4ff !important;
  border-color: #49637f !important;
}
/* Bootstrap semantik renkleri korunur; koyu arkaplanda yazilar okunur. */
html[data-oz-theme="dark"] body.oz-admin-ui .text-muted,
html[data-oz-theme="dark"] body.oz-admin-ui .text-secondary,
html[data-oz-theme="dark"] body.oz-admin-ui .oz-bakim-wa-unavailable {color:#b0c2d8 !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .text-dark {color:#edf5ff !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .text-primary {color:#8ec9ff !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .text-success {color:#6ee6b1 !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .text-danger {color:#ff8c9e !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .text-warning {color:#ffe0a0 !important;}
html[data-oz-theme="dark"] body.oz-admin-ui a:not(.btn):not(.menu-item):not(.oz-alert-entry) {text-underline-offset: 3px;}
html[data-oz-theme="dark"] body.oz-admin-ui a:not(.btn):not(.menu-item):hover {color:#9dd4ff;}
html[data-oz-theme="dark"] body.oz-admin-ui :focus-visible {outline:2px solid #7ac7ff;outline-offset:2px;}
html[data-oz-theme="dark"] body.oz-admin-ui ::-webkit-scrollbar {width:9px;height:9px;}
html[data-oz-theme="dark"] body.oz-admin-ui ::-webkit-scrollbar-thumb {background:#3c5874;border-radius:8px;}
html[data-oz-theme="dark"] body.oz-admin-ui ::-webkit-scrollbar-track {background:#152338;}
/* Karsitlik ayri ele alinmasi gereken acik uyarilar. */
html[data-oz-theme="dark"] body.oz-admin-ui .alert-info {background:#173751!important;border-color:#397a9f!important;color:#c9ebff!important;}
html[data-oz-theme="dark"] body.oz-admin-ui .alert-warning {background:#40341d!important;border-color:#98733b!important;color:#ffe9bd!important;}
html[data-oz-theme="dark"] body.oz-admin-ui .alert-danger {background:#482632!important;border-color:#a85b70!important;color:#ffd7df!important;}
html[data-oz-theme="dark"] body.oz-admin-ui .alert-success {background:#1e3c34!important;border-color:#468b72!important;color:#c1f5d9!important;}
/* Acik renkli semantik bakim rozetlerinde koyu yazi korunur. */
html[data-oz-theme="dark"] body.oz-admin-ui .badge.bg-info.text-dark,
html[data-oz-theme="dark"] body.oz-admin-ui .badge.bg-warning.text-dark {color:#102239 !important;}
/* Yazdirma ve fatura belge ciktisinda beyaz zemin. */
@media print {
  html[data-oz-theme="dark"] body.oz-admin-ui,
  html[data-oz-theme="dark"] body.oz-admin-ui .content,
  html[data-oz-theme="dark"] body.oz-admin-ui .table,
  html[data-oz-theme="dark"] body.oz-admin-ui .card {
    background: #fff !important; color:#111 !important; box-shadow:none!important;
  }
  html[data-oz-theme="dark"] body.oz-admin-ui .topbar,
  html[data-oz-theme="dark"] body.oz-admin-ui .sidebar,
  html[data-oz-theme="dark"] body.oz-admin-ui .oz-theme-toggle {display:none !important;}
}
@media(prefers-reduced-motion:reduce){
  html[data-oz-theme="dark"] body.oz-admin-ui .menu-item {transition:none;}
}


/* ================================================================
 * A8Q | MÜŞTERİ MAĞAZA - DARK GÖRÜNÜM EKSİK KARTLAR
 * Bu alan yalnızca renkleri değiştirir. Ürün, fiyat, galeri, buton
 * bağlantıları ve JS işlemleri değiştirilmez.
 * ================================================================ */
html[data-oz-theme="dark"] body.oz-customer-ui .product-card {
  background: #17283d !important;
  color: #e8f3ff !important;
  border: 1px solid #354b64 !important;
  box-shadow: 0 10px 25px rgba(0,0,0,.20) !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .product-card:hover {
  border-color: #679ac7 !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.34) !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .product-img-wrapper {
  background: #203249 !important;
  border-bottom-color: #354b64 !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .product-info {
  color: #e8f3ff !important;
  background: #17283d !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .product-title {
  color: #eaf4ff !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .product-price {
  color: #7fc5ff !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .product-card .btn-outline-primary {
  background: #223e61 !important;
  color: #d4ebff !important;
  border-color: #639ad1 !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .product-card .btn-outline-primary:hover,
html[data-oz-theme="dark"] body.oz-customer-ui .product-card .btn-outline-primary:focus-visible {
  background: #2b659d !important;
  color: #ffffff !important;
  border-color: #8bcaff !important;
}
/* Galeri okları koyu zemin üzerinde görünür olsun. */
html[data-oz-theme="dark"] body.oz-customer-ui .product-card .carousel-control-prev-icon,
html[data-oz-theme="dark"] body.oz-customer-ui .product-card .carousel-control-next-icon {
  filter: none !important;
}
/* Kartların sayfa arka planı ve kutu sınırları dışında genel yapı değişmez. */


/* ===============================================================
   A8R | MUSTERI URUNLERI - DARK MOD INCELE VE URUN DETAYI
   Tek merkezi oz-tema.css dosyasina eklenir.
   Sadece dark ve musteri arayuzunde gecerlidir.
   =============================================================== */
/* Magaza: dark modda Incele dugmesi turuncu. */
html[data-oz-theme="dark"] body.oz-customer-ui .product-card a.btn.btn-outline-primary {
  color: #1b2435 !important;
  background: linear-gradient(135deg, #ffbf58 0%, #f59e0b 100%) !important;
  border: 1px solid #ffc96d !important;
  box-shadow: 0 3px 13px rgba(245,158,11,.14) !important;
  font-weight: 800 !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .product-card a.btn.btn-outline-primary:hover,
html[data-oz-theme="dark"] body.oz-customer-ui .product-card a.btn.btn-outline-primary:focus-visible {
  color: #111a28 !important;
  background: #ffcb73 !important;
  border-color: #ffdf9b !important;
  box-shadow: 0 4px 17px rgba(245,158,11,.25) !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .product-card a.btn.btn-outline-primary:focus-visible {
  outline: 2px solid #ffe3a9 !important;
  outline-offset: 2px;
}

/* Urun detay: sayfa icindeki beyaz bilgi kutusu koyu; metinler okunur. */
html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper .info-card {
  background: #1a2b41 !important;
  color: #eaf3ff !important;
  border: 1px solid #35516c !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.26) !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper .info-card h3,
html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper .info-card .text-dark {
  color: #f5f9ff !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper .price-text {
  color: #77c4ff !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper .desc-text,
html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper .info-card .text-muted {
  color: #bed0e6 !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper .info-card .border-bottom {
  border-color: #435c78 !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper .info-card .badge.bg-primary.bg-opacity-10 {
  background: #244766 !important;
  color: #a6dfff !important;
  border: 1px solid #386f9b !important;
}
/* Listeye Geri Don: beyaz zemin yerine koyu ikincil dugme. */
html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper .info-card a.btn-outline-light {
  background: #233a55 !important;
  color: #eaf4ff !important;
  border-color: #587a9e !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper .info-card a.btn-outline-light:hover,
html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper .info-card a.btn-outline-light:focus-visible {
  background: #345575 !important;
  color: #fff !important;
  border-color: #8db9e0 !important;
}
/* Urun fotografi oldugu gibi kalir; galeri kabinin rengi uyarlanir. */
html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper .slider-card,
html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper #urunSlayt .carousel-item {
  background: #20334a !important;
  border-color: #35516c !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper #urunSlayt .carousel-control-prev-icon,
html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper #urunSlayt .carousel-control-next-icon {
  filter: none !important;
  background-color: rgba(26,47,71,.86) !important;
  border: 1px solid #7295ba !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper a.text-muted {
  color: #b4cbe4 !important;
}
/* Mobilde ayrintili urun kutusunun gereksiz boslugu azalir. */
@media (max-width: 575.98px) {
  html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper .info-card {padding: 20px !important;}
  html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper .slider-card,
  html[data-oz-theme="dark"] body.oz-customer-ui .detail-wrapper #urunSlayt .carousel-item {height: 300px !important;}
}

/* ====================================================================
   A8S — 14.11.2026
   DARK GORUNUM: Incele dugmesinde TEK sabit stil, yonetim kartlari.
   Yalnizca gorseldir. PHP, veri, odeme, form ve islem kodu DEGISTIRMEZ.
   Dosyanin EN SONUNA ekleyin. Light moda etki etmez.
   ==================================================================== */

/* MAGAZA: Mavi/turuncu onceki kurallari tek petrol-mavi stile bagla.
   Base, ziyaret edilmis link, hover ve focus ayni renk ailesindedir. */
html[data-oz-theme="dark"] body.oz-customer-ui .product-card a.btn.btn-outline-primary,
html[data-oz-theme="dark"] body.oz-customer-ui .product-card a.btn.btn-outline-primary:link,
html[data-oz-theme="dark"] body.oz-customer-ui .product-card a.btn.btn-outline-primary:visited {
  background: #23465a !important;
  background-image: none !important;
  border: 1px solid #62b7c5 !important;
  color: #f0fdff !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  transform: none !important;
  transition: background-color .17s ease, border-color .17s ease, box-shadow .17s ease !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .product-card a.btn.btn-outline-primary:hover,
html[data-oz-theme="dark"] body.oz-customer-ui .product-card a.btn.btn-outline-primary:focus,
html[data-oz-theme="dark"] body.oz-customer-ui .product-card a.btn.btn-outline-primary:focus-visible,
html[data-oz-theme="dark"] body.oz-customer-ui .product-card a.btn.btn-outline-primary:active {
  background: #295267 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #80d2dc !important;
  box-shadow: 0 0 0 2px rgba(100,196,209,.10) !important;
  text-shadow: none !important;
  filter: none !important;
  transform: none !important;
}
html[data-oz-theme="dark"] body.oz-customer-ui .product-card a.btn.btn-outline-primary:focus-visible {
  outline: 2px solid #9ce7ed !important;
  outline-offset: 2px;
}

/* YONETIM — Musteriler: beyaz kart / beyaz yazi sorununu duzelt. */
html[data-oz-theme="dark"] body.oz-admin-ui .musteri-card,
html[data-oz-theme="dark"] body.oz-admin-ui .musteri-card.type-pasif {
  background: #192b42 !important;
  color: #eff7ff !important;
  border-top-color: #3c556f !important;
  border-right-color: #3c556f !important;
  border-bottom-color: #3c556f !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.18) !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .musteri-card.type-pasif {background: #2b2635 !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .musteri-card:hover {
  border-top-color: #5c87ad !important;
  border-right-color: #5c87ad !important;
  border-bottom-color: #5c87ad !important;
  box-shadow: 0 12px 25px rgba(0,0,0,.27) !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .musteri-card :is(h5,.text-dark,.fw-medium) {color:#eef6ff !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .musteri-card :is(.text-muted,.small.text-muted) {color:#adbed3 !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .musteri-card .card-actions {
  background: #142438 !important;
  border-top: 1px solid #35516e !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .musteri-card .btn-action:not(.btn-wa) {
  background: #23374e !important;
  color: #dceeff !important;
  border-color: #3c5570 !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .musteri-card .btn-action:not(.btn-wa):hover {
  background: #314c68 !important;
  color: white !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .musteri-card .btn-wa {
  background: #194337 !important; color:#a2f4cb !important; border-color:#2d6c55 !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .musteri-card .btn-wa:hover {
  background: #24644e !important; color:white !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .musteri-card :is(.badge-bireysel,.badge-kurumsal) {
  background: #254366 !important; color:#c4e3ff !important; border-color:#416b99 !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .musteri-card .badge-pasif {
  background:#49313c !important; color:#ffd0d8 !important; border-color:#945267 !important;
}

/* YONETIM — Cihazlar: asil kart ve bakim kutusunun kontrasti. */
html[data-oz-theme="dark"] body.oz-admin-ui .device-card,
html[data-oz-theme="dark"] body.oz-admin-ui .device-card.pasif-cihaz {
  background: #192b42 !important;
  color: #eff7ff !important;
  border: 1px solid #3c556f !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.18) !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .device-card.pasif-cihaz {
  background: #2c2634 !important;
  border-color: #9a5865 !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .device-card:hover {border-color:#6296b9 !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .device-card :is(h5,.text-dark,.fw-medium) {color:#eaf5ff !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .device-card :is(.text-muted,.small.text-muted) {color:#abc2d9 !important;}
html[data-oz-theme="dark"] body.oz-admin-ui .device-card .device-icon {
  background:#244969 !important; color:#9ddaff !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .device-card .maintenance-box {
  background:#20364e !important; color:#ecf5ff !important; border-color:#3d5c78 !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .device-card .maintenance-box.urgent {
  background:#442b38 !important; border-color:#a75a68 !important; color:#ffe1e6 !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .device-card .maintenance-box.soon {
  background:#3d362a !important; border-color:#ad884d !important; color:#ffe2a8 !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .device-card .maintenance-box.urgent .text-danger {
  color:#ff9aaa !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .device-card :is(.bg-soft-success,.bg-soft-warning,.bg-soft-danger,.bg-soft-secondary) {
  background:#284459 !important; color:#d9f0ff !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .device-card .action-btn:hover {background:#304961 !important;}

/* YONETIM — Randevular: Liste/Ajanda anahtarini koyulastir. */
html[data-oz-theme="dark"] body.oz-admin-ui .view-toggler-container {
  background:#1d3046 !important; border:1px solid #3e5772 !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .view-toggler .btn {
  background:transparent !important; color:#b7cbe0 !important; border-color:transparent !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .view-toggler .btn:not(.active):hover {
  background:#2a445e !important; color:#f0f8ff !important;
}
html[data-oz-theme="dark"] body.oz-admin-ui .view-toggler .btn.active,
html[data-oz-theme="dark"] body.oz-admin-ui .view-toggler .btn.active:hover {
  background:#28557b !important; color:#ffffff !important;
  box-shadow:0 1px 7px rgba(0,0,0,.18) !important;
}

@media (prefers-reduced-motion: reduce) {
  html[data-oz-theme="dark"] body.oz-customer-ui .product-card a.btn.btn-outline-primary {
    transition:none !important;
  }
}
