/* HesaPlus | Refined dark theme | only active when html.dark */
html.dark { color-scheme: dark; }
html.dark .client-name-link,
html.dark .client-name-link:visited { color: #b9c2cc !important; }
html.dark .client-name-link:hover,
html.dark .client-name-link:focus { color: #e4e9ef !important; }
html.dark .client-balance-zero { color: #c5cbd2 !important; }
html.dark body, html.dark .body, html.dark .inner-wrapper, html.dark .content-body { background: #181a1d !important; color: #e1e3e6 !important; }
html.dark .header, html.dark .header.header-dark, html.dark .header .logo-container, html.dark .header .header-right { background: #202226 !important; border-color: #35383d !important; }
html.dark .card-stats .kasa-stock-action-icon { background: transparent !important; border-radius: 0 !important; }
html.dark .sidebar-left, html.dark.sidebar-light .sidebar-left, html.dark .sidebar-left .sidebar-header, html.dark .sidebar-left .nano, html.dark .sidebar-left .sidebar-widget { background: #1c1e21 !important; border-color: #35383d !important; }
html.dark .sidebar-left a, html.dark .sidebar-left .nav-main li a, html.dark .sidebar-left .nav-main li a span { color: #c3c7cc !important; }
html.dark .sidebar-left .nav-main li a:hover, html.dark .sidebar-left .nav-main li.nav-active > a, html.dark .sidebar-left .nav-main li.nav-expanded > a { background: #30343a !important; color: #f5f5f6 !important; }
html.dark .card, html.dark .panel, html.dark .well, html.dark .widget-summary, html.dark .modal-content, html.dark .dropdown-menu, html.dark .popover, html.dark .select2-dropdown, html.dark .select2-container--default .select2-results__option { background: #25282c !important; color: #e1e3e6 !important; border-color: #383c42 !important; }
html.dark .card-header, html.dark .panel-heading, html.dark .modal-header, html.dark .modal-footer, html.dark .card-footer { background: #2a2d31 !important; border-color: #383c42 !important; }
html.dark .card-title, html.dark .page-header h2, html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6, html.dark label, html.dark .control-label, html.dark .modal-title { color: #f1f2f4 !important; }
html.dark .form-control, html.dark .custom-select, html.dark .select2-container--default .select2-selection--single, html.dark .select2-container--default .select2-selection--multiple, html.dark .input-group-text, html.dark .input-group-addon, html.dark textarea, html.dark select, html.dark input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]) { background: #202327 !important; color: #f1f2f4 !important; border-color: #41454c !important; }
html.dark input::placeholder, html.dark textarea::placeholder { color: #a5abb3 !important; opacity: 1; }
html.dark .form-control:focus, html.dark input:focus, html.dark select:focus, html.dark textarea:focus { border-color: #8b9bad !important; box-shadow: 0 0 0 .15rem rgba(103,150,204,.15) !important; }
html.dark .table, html.dark table { color: #e1e3e6 !important; }
html.dark .table thead th, html.dark .table th, html.dark table.dataTable thead th { background: #30343a !important; color: #f1f2f4 !important; border-color: #42464d !important; }
html.dark .table td, html.dark .table tbody th, html.dark .table-bordered, html.dark .table-bordered td, html.dark .table-bordered th, html.dark table.dataTable td { border-color: #383c42 !important; }
html.dark .table tbody tr, html.dark .table-striped tbody tr:nth-of-type(odd), html.dark table.dataTable tbody tr { background: #25282c !important; }
html.dark .table-hover tbody tr:hover, html.dark table.dataTable tbody tr:hover, html.dark .table-striped tbody tr:nth-of-type(odd):hover { background: #33373c !important; }
html.dark .dataTables_wrapper, html.dark .dataTables_info, html.dark .dataTables_length, html.dark .dataTables_filter, html.dark .dataTables_paginate { color: #b7bec6 !important; }
html.dark .pagination .page-link, html.dark .pagination > li > a, html.dark .pagination > li > span { background: #2a2d31 !important; color: #e1e3e6 !important; border-color: #41454c !important; }
html.dark .pagination .active .page-link, html.dark .pagination > .active > a { background: #4c5969 !important; border-color: #697687 !important; }
html.dark .dropdown-item:hover { background: #434c57 !important; color: #fff !important; }

/* Shared Select2 dark theme: applies to page controls, AJAX fields, and modal dropdowns. */
html.dark .select2-container--bootstrap .select2-selection,
html.dark .select2-container--default .select2-selection {
 background: #202327 !important;
 border: 1px solid #49515b !important;
 border-radius: 5px !important;
 color: #edf1f5 !important;
 box-shadow: none !important;
 transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
html.dark .select2-container--bootstrap .select2-selection--single,
html.dark .select2-container--default .select2-selection--single {
 display: flex !important;
 align-items: center !important;
 box-sizing: border-box !important;
 min-height: 38px;
 padding-top: 0 !important;
 padding-bottom: 0 !important;
 padding-left: 0 !important;
 padding-right: 0 !important;
}
html.dark .select2-container--bootstrap .select2-selection--single .select2-selection__rendered,
html.dark .select2-container--default .select2-selection--single .select2-selection__rendered {
 display: block;
 flex: 1 1 auto;
 min-width: 0;
 margin: 0 !important;
 box-sizing: border-box;
 color: #edf1f5 !important;
 line-height: 1.4 !important;
 padding: 0 30px 0 12px !important;
}
html.dark .select2-container--bootstrap .select2-selection__placeholder,
html.dark .select2-container--default .select2-selection__placeholder { color: #aeb7c2 !important; }
html.dark .select2-container--bootstrap .select2-selection__arrow,
html.dark .select2-container--default .select2-selection__arrow { min-height: 0; }
html.dark .select2-container--bootstrap .select2-selection__arrow b,
html.dark .select2-container--default .select2-selection__arrow b { border-top-color: #aeb7c2 !important; border-bottom-color: #aeb7c2 !important; }
html.dark .select2-container--bootstrap .select2-selection__clear,
html.dark .select2-container--default .select2-selection__clear { color: #c4cbd3 !important; }
html.dark .select2-container--bootstrap .select2-selection--multiple,
html.dark .select2-container--default .select2-selection--multiple { min-height: 38px; padding: 3px 6px !important; }
html.dark .select2-container--bootstrap .select2-selection--multiple .select2-selection__rendered,
html.dark .select2-container--default .select2-selection--multiple .select2-selection__rendered { color: #edf1f5 !important; padding: 0 4px !important; }
html.dark .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice,
html.dark .select2-container--default .select2-selection--multiple .select2-selection__choice {
 background: #343b44 !important; border: 1px solid #4c5662 !important; border-radius: 4px !important; color: #edf1f5 !important;
}
html.dark .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove,
html.dark .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: #c4cbd3 !important; }
html.dark .select2-container--bootstrap.select2-container--focus .select2-selection,
html.dark .select2-container--bootstrap.select2-container--open .select2-selection,
html.dark .select2-container--default.select2-container--focus .select2-selection,
html.dark .select2-container--default.select2-container--open .select2-selection {
 border-color: #55a9d8 !important; box-shadow: 0 0 0 3px rgba(65, 164, 220, .16) !important;
}
html.dark .select2-container--bootstrap.select2-container--disabled .select2-selection,
html.dark .select2-container--default.select2-container--disabled .select2-selection { background: #292d32 !important; color: #858e99 !important; opacity: .75; }
html.dark .select2-container--bootstrap .select2-dropdown,
html.dark .select2-container--default .select2-dropdown,
html.dark .select2-dropdown {
 background: #252a30 !important; border: 1px solid #48515c !important; border-radius: 6px !important;
 box-shadow: 0 10px 26px rgba(0,0,0,.42) !important; color: #e7ebf0 !important; overflow: hidden;
}
html.dark .select2-container--bootstrap .select2-search--dropdown,
html.dark .select2-container--default .select2-search--dropdown { background: #252a30 !important; padding: 7px !important; }
html.dark .select2-container--bootstrap .select2-search--dropdown .select2-search__field,
html.dark .select2-container--default .select2-search--dropdown .select2-search__field,
html.dark .select2-container--bootstrap .select2-search__field,
html.dark .select2-container--default .select2-search__field {
 background: #1c2024 !important; border: 1px solid #4b5662 !important; border-radius: 4px !important;
 color: #f1f4f7 !important; box-shadow: none !important; outline: 0 !important; min-height: 34px;
}
html.dark .select2-container--bootstrap .select2-search__field:focus,
html.dark .select2-container--default .select2-search__field:focus { border-color: #55a9d8 !important; box-shadow: 0 0 0 2px rgba(65,164,220,.16) !important; }
html.dark .select2-container--bootstrap .select2-search__field::placeholder,
html.dark .select2-container--default .select2-search__field::placeholder { color: #9ca7b3 !important; opacity: 1; }
html.dark .select2-container--bootstrap .select2-results__options,
html.dark .select2-container--default .select2-results__options { background: #252a30 !important; color: #e7ebf0 !important; }
html.dark .select2-container--bootstrap .select2-results__option,
html.dark .select2-container--default .select2-results__option { background: #252a30 !important; color: #e1e6ec !important; padding: 8px 12px !important; }
html.dark .select2-container--bootstrap .select2-results__option[aria-selected="true"],
html.dark .select2-container--default .select2-results__option[aria-selected="true"] { background: #343d47 !important; color: #fff !important; }
html.dark .select2-container--bootstrap .select2-results__option--highlighted[aria-selected],
html.dark .select2-container--default .select2-results__option--highlighted[aria-selected] { background: #176d9a !important; color: #fff !important; }
html.dark .select2-container--bootstrap .select2-results__option[aria-disabled="true"],
html.dark .select2-container--default .select2-results__option[aria-disabled="true"] { background: #252a30 !important; color: #858e99 !important; }
html.dark .select2-container--bootstrap .select2-results__group,
html.dark .select2-container--default .select2-results__group { background: #2d333a !important; color: #b8c3ce !important; font-weight: 600; }
html.dark .select2-container--open { z-index: 1065; }
html.dark .modal .select2-container--open { z-index: 1065; }
html.dark .cke_chrome { border-color: #41464e !important; }
html.dark .cke_top, html.dark .cke_bottom { background: #2a2d31 !important; border-color: #41464e !important; }
html.dark .cke_contents { background: #202327 !important; }
html.dark .cke_button, html.dark .cke_combo_button { background: #30343a !important; border-color: #4a5059 !important; }
html.dark .timeline > li,
html.dark .sales-history-timeline > li { background: #25282c !important; color: #e1e3e6 !important; }
html.dark .timeline > li span,
html.dark .sales-history-timeline > li span { color: #adb5bf !important; }
html.dark .timeline > li::before,
html.dark .sales-history-timeline > li::before { background-color: #484f58 !important; }
html.dark .timeline > li::after,
html.dark .sales-history-timeline > li::after { background-color: #343940 !important; border-color: #59616b !important; color: #e1e3e6 !important; }
html.dark .iziToast {
 background: #252a30 !important;
 border: 1px solid #46515d !important;
 color: #e6ebf0 !important;
 box-shadow: 0 8px 24px rgba(0,0,0,.36) !important;
}
html.dark .iziToast .iziToast-title,
html.dark .iziToast > .iziToast-body .iziToast-title { color: #f5f7fa !important; }
html.dark .iziToast .iziToast-message,
html.dark .iziToast > .iziToast-body .iziToast-message { color: #d6dde5 !important; }
html.dark .iziToast.iziToast-color-green { border-left: 4px solid #43c58a !important; }
html.dark .iziToast.iziToast-color-red { border-left: 4px solid #f07178 !important; }
html.dark .iziToast.iziToast-color-orange { border-left: 4px solid #f2b75b !important; }
html.dark .iziToast.iziToast-color-blue { border-left: 4px solid #58b6ef !important; }
html.dark .iziToast.iziToast-color-yellow { border-left: 4px solid #e9cf62 !important; }
html.dark .iziToast > .iziToast-progressbar { background: rgba(255,255,255,.1) !important; }
html.dark .iziToast > .iziToast-progressbar > div { background: rgba(225,233,241,.72) !important; }
html.dark .iziToast > .iziToast-close { filter: invert(1); opacity: .82; }
html.dark .iziToast > .iziToast-body .iziToast-buttons > button,
html.dark .iziToast > .iziToast-body .iziToast-buttons > a { background: #3a424c !important; color: #f3f6f9 !important; }
html.dark .dropdown-menu a, html.dark .dropdown-item, html.dark .list-group-item, html.dark .breadcrumb, html.dark .breadcrumb a { color: #d2d5d9 !important; }
html.dark .list-group-item, html.dark .breadcrumb, html.dark .nav-tabs, html.dark .nav-tabs > li > a { background: #25282c !important; border-color: #383c42 !important; }
html.dark .text-muted, html.dark small, html.dark .help-block { color: #adb3bb !important; }
html.dark .alert-info { background: #1b354c !important; border-color: #36617d !important; color: #c5e7fb !important; }
html.dark .alert-warning { background: #43351f !important; border-color: #765d31 !important; color: #ffe4a3 !important; }
html.dark .alert-success { background: #1c3d35 !important; border-color: #357561 !important; color: #b6f0d9 !important; }
html.dark .alert-danger { background: #4b2830 !important; border-color: #8b4452 !important; color: #ffd0d6 !important; }
html.dark .btn-default, html.dark .btn-light { background: #34383d !important; border-color: #484d54 !important; color: #f1f2f4 !important; }
html.dark .btn-default:hover, html.dark .btn-light:hover { background: #41464d !important; }
html.dark hr, html.dark .divider { border-color: #3a3e44 !important; }
/* Keep printed invoices and PDF output on white paper. */
@media print { html.dark, html.dark body, html.dark .content-body, html.dark .card, html.dark .table, html.dark .table td, html.dark .table th { background: #fff !important; color: #000 !important; border-color: #ddd !important; } }

/* Neutral charcoal surfaces: eliminate bright card outlines and shadows. */
html.dark .card, html.dark .card-body, html.dark .card-header, html.dark .card-footer,
html.dark .panel, html.dark .panel-body, html.dark .panel-heading,
html.dark .widget-summary, html.dark .widget-summary-col, html.dark .modal-content,
html.dark .card-featured, html.dark .card-featured-primary, html.dark .card-featured-secondary,
html.dark .card-featured-success, html.dark .card-featured-warning, html.dark .card-featured-danger,
html.dark .card-body.bg-white, html.dark .bg-white {
 background-color:#25282c !important; border-color:#383c42 !important; color:#e1e3e6 !important;
 box-shadow:none !important;
}
html.dark .card::before, html.dark .card::after, html.dark .panel::before, html.dark .panel::after { border-color:#383c42 !important; }
html.dark .card-header, html.dark .card-footer, html.dark .panel-heading { background:#2a2d31 !important; border-color:#383c42 !important; }
html.dark .card-featured { border-top-color:#4b525b !important; }
html.dark .card .card-actions a, html.dark .card .card-actions button { color:#c9cdd2 !important; }
html.dark .bg-light, html.dark .bg-light-1, html.dark .bg-light-2 { background-color:#303338 !important; }
html.dark .border, html.dark .border-top, html.dark .border-bottom, html.dark .border-left, html.dark .border-right { border-color:#383c42 !important; }
html.dark .card .card-body, html.dark .panel .panel-body { background-color:transparent !important; }

/* Sales create/edit: cart and CKEditor 4. Dark mode only. */
html.dark .siparis-urun-bg,
html.dark .siparis-urun-bg .scrollable-content,
html.dark #list_form,
html.dark #list_form .alert,
html.dark #list_form .alert-light {
 background:#25282c !important; color:#e1e3e6 !important; border-color:#383c42 !important;
}
html.dark .siparis-urun-bg { border-color:#383c42 !important; }
html.dark #list_form .alert { background:#303338 !important; color:#c6cbd1 !important; }
html.dark .cke, html.dark .cke_chrome, html.dark .cke_inner,
html.dark .cke_top, html.dark .cke_bottom, html.dark .cke_contents,
html.dark .cke_wysiwyg_frame, html.dark .cke_toolgroup {
 background:#25282c !important; border-color:#383c42 !important; box-shadow:none !important;
}
html.dark .cke_top, html.dark .cke_bottom { background:#2a2d31 !important; }
html.dark .cke_button:hover, html.dark .cke_button:focus,
html.dark .cke_button_on { background:#3a3e44 !important; }
html.dark .cke_button_icon { filter:brightness(1.8) grayscale(1); }
html.dark .cke_button_label, html.dark .cke_combo_text, html.dark .cke_path_item,
html.dark .cke_path_empty, html.dark .cke_resizer { color:#dce0e5 !important; }
html.dark .bootstrap-tagsinput, html.dark .tagsinput {
 background:#202327 !important; border:1px solid #41454c !important;
 color:#e1e3e6 !important; box-shadow:none !important;
}
html.dark .tagsinput input { color:#e1e3e6 !important; }

/* CKEditor 4 editing canvas is an iframe: apply its body colors on instanceReady via CSS injection. */

/* Offer and after-sales status history: darken both the timeline rows and its scroll viewport. */
html.dark .status-history-scroll,
html.dark .status-history-scroll .scrollable-content,
html.dark .status-history-timeline,
html.dark .status-history-timeline > li {
  background-color: #25282c !important;
  color: #e1e3e6 !important;
}
html.dark .status-history-timeline > li span {
  color: #adb5bf !important;
}
html.dark .status-history-timeline > li::before {
  background-color: #484f58 !important;
}
html.dark .status-history-timeline > li::after {
  background-color: #343940 !important;
  border-color: #59616b !important;
  color: #e1e3e6 !important;
}
/* Customer list totals modal. */
html.dark .client-total-value {
  background: #202327 !important;
  border-color: #454b53 !important;
  color: #f1f3f5;
}
html.dark .client-total-debt { color: #ff7772 !important; }
html.dark .client-total-credit { color: #53d17b !important; }
html.dark .client-totals-modal .modal-footer {
  background: #202327 !important;
  border-color: #383c42 !important;
}
html.dark .client-total-label { color: #e1e3e6 !important; }

/* Mobile user menu: follow trigger width, never force trigger to grow. */
@media (max-width: 1199px) {
  .header #userbox { min-width: 0 !important; width: auto !important; box-sizing: border-box; }
  .header #userbox > a[data-toggle="dropdown"] { display: block; box-sizing: border-box; }
  .header #userbox > .dropdown-menu,
  .header #userbox.show > .dropdown-menu {
    left: 0 !important; right: auto !important;
    width: 100% !important; min-width: 0 !important; max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .header #userbox .dropdown-menu a { white-space: normal; }
}
/* Remove light triangular seams caused by rounded nav links over a light parent. */
@media (max-width: 1199px) {
  html.dark .header.header-nav-menu .header-nav-main,
  html.dark .header.header-nav-menu .header-nav-main nav,
  html.dark .header.header-nav-menu .header-nav-main nav > ul,
  html.dark .header.header-nav-menu .header-nav-main nav > ul > li {
    background-color: #2d353d !important;
    border-color: #404850 !important;
  }
  html.dark .header.header-nav-menu .header-nav-main nav > ul > li > a {
    border: 0 !important; border-radius: 0 !important;
    box-shadow: none !important;
    background-color: #2d353d !important;
    margin-left: 0 !important; margin-right: 0 !important;
  }
  html.dark .header.header-nav-menu .header-nav-main nav > ul > li > a:hover,
  html.dark .header.header-nav-menu .header-nav-main nav > ul > li.active > a {
    background-color: #36414b !important;
  }
  html.dark .header.header-nav-menu .header-nav-main nav > ul li.dropdown .dropdown-menu,
  html.dark .header.header-nav-menu .header-nav-main nav > ul li.dropdown .dropdown-menu li {
    background-color: #252b31 !important;
    border-color: #404850 !important;
    box-shadow: none !important;
  }
}


/* 05.11.2026: Mobil kullanıcı butonu - içerik dikey merkezde kalmalı.
   Bu dosya custom.css sonrasında yüklendiği için önceki display:block
   kuralını yalnızca telefonda burada geçersiz kılıyoruz. */
@media (max-width: 767px) {
  .header #userbox {
    margin-top: 0;
  }
  .header #userbox > a[data-toggle="dropdown"] {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
  }
  .header #userbox .profile-picture,
  .header #userbox .profile-info,
  .header #userbox .custom-caret {
    align-self: center;
  }
}
