.theme-toggle{
  width:40px;
  height:40px;
  border:1px solid var(--border-color, #e2e8f0);
  background:transparent;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#64748b;
  cursor:pointer;
  padding:0;
  transition:background .2s ease, border-color .2s ease, color .2s ease;
}
.theme-toggle:hover{
  background:#f8fafc;
  color:#1e293b;
}
.theme-toggle .material-icons-outlined{font-size:22px;line-height:1}
html[data-bs-theme="light"] .theme-icon-sun,
html:not([data-bs-theme]) .theme-icon-sun{display:none}
html[data-bs-theme="dark"] .theme-icon-moon{display:none}

html[data-bs-theme="dark"]{
  color-scheme:dark;
  --text-main:#e2e8f0;
  --text-muted:#94a3b8;
  --bg-body:#0b1220;
  --card-bg:#151c2c;
  --border-color:#2a3548;
  --primary-color:#f89d1d;
  --primary-dark:#e88612;
  --bs-body-bg:#151c2c;
  --bs-body-bg-2:#0b1220;
  --bs-body-color:#e2e8f0;
  --bs-heading-color:#f8fafc;
  --bs-border-color:#2a3548;
  --bs-secondary-bg:#1e293b;
}

html[data-bs-theme="dark"] body{
  background-color:var(--bg-body) !important;
  color:var(--text-main);
}

html[data-bs-theme="dark"] .theme-toggle{
  border-color:#334155;
  color:#e2e8f0;
}
html[data-bs-theme="dark"] .theme-toggle:hover{
  background:#1e293b;
  color:#fff;
}

html[data-bs-theme="dark"] .top-header .navbar{
  background:#111827 !important;
  border-bottom:1px solid #1f2937 !important;
  box-shadow:none;
}
html[data-bs-theme="dark"] .top-header .navbar .btn-toggle a,
html[data-bs-theme="dark"] .top-header .navbar .text-secondary{
  color:#cbd5e1 !important;
}

html[data-bs-theme="dark"] .balance-wrapper{
  background:#1e293b;
  border-color:#334155;
}
html[data-bs-theme="dark"] .balance-wrapper:hover{
  border-color:#475569;
  box-shadow:none;
}
html[data-bs-theme="dark"] .balance-icon-box{
  background:rgba(248,157,29,.14);
}
html[data-bs-theme="dark"] .user-profile-img{
  border-color:#1e293b;
  box-shadow:0 0 0 1px #334155;
}

html[data-bs-theme="dark"] .sidebar-wrapper,
html[data-bs-theme="dark"] .sidebar-wrapper .sidebar-header,
html[data-bs-theme="dark"] .sidebar-wrapper .sidebar-nav,
html[data-bs-theme="dark"] .sidebar-wrapper .sidebar-bottom{
  background-color:#111827 !important;
  border-color:#1f2937 !important;
}
html[data-bs-theme="dark"] .sidebar-bottom .bg-light{
  background:#1e293b !important;
  border-color:#334155 !important;
}
html[data-bs-theme="dark"] .sidebar-bottom .text-dark{
  color:#e2e8f0 !important;
}
html[data-bs-theme="dark"] .has-arrow .menu-title:after{
  border-left-color:#94a3b8;
  border-bottom-color:#94a3b8;
}

html[data-bs-theme="dark"] .main-wrapper{
  background:var(--bg-body);
}

html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .dashboard-card,
html[data-bs-theme="dark"] .modern-card,
html[data-bs-theme="dark"] .offcanvas,
html[data-bs-theme="dark"] .accordion-item{
  background:var(--card-bg) !important;
  border-color:var(--border-color) !important;
  color:var(--text-main);
}
html[data-bs-theme="dark"] .card-header,
html[data-bs-theme="dark"] .card-footer,
html[data-bs-theme="dark"] .modal-header,
html[data-bs-theme="dark"] .modal-footer{
  background-color:transparent;
  border-color:var(--border-color) !important;
  color:var(--text-main);
}
html[data-bs-theme="dark"] .modal-content{
  background:var(--card-bg);
  color:var(--text-main);
}

html[data-bs-theme="dark"] .bg-white{background-color:var(--card-bg) !important}
html[data-bs-theme="dark"] .bg-light{background-color:#1e293b !important}
html[data-bs-theme="dark"] .text-dark,
html[data-bs-theme="dark"] .text-main,
html[data-bs-theme="dark"] .text-black{color:#e2e8f0 !important}
html[data-bs-theme="dark"] .text-muted{color:#94a3b8 !important}
html[data-bs-theme="dark"] .text-secondary{color:#94a3b8 !important}

html[data-bs-theme="dark"] .border,
html[data-bs-theme="dark"] .border-top,
html[data-bs-theme="dark"] .border-bottom,
html[data-bs-theme="dark"] .border-start,
html[data-bs-theme="dark"] .border-end{
  border-color:var(--border-color) !important;
}
html[data-bs-theme="dark"] hr{
  border-color:#334155;
  opacity:1;
}

html[data-bs-theme="dark"] .table,
html[data-bs-theme="dark"] .table > :not(caption) > * > *,
html[data-bs-theme="dark"] .table-modern,
html[data-bs-theme="dark"] .table-modern td,
html[data-bs-theme="dark"] .table-modern th{
  background-color:var(--card-bg) !important;
  color:var(--text-main) !important;
  border-color:var(--border-color) !important;
}
html[data-bs-theme="dark"] .table thead th,
html[data-bs-theme="dark"] .table-modern th{
  background-color:#0f172a !important;
  color:#94a3b8 !important;
}
html[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > *{
  --bs-table-bg-type:rgba(255,255,255,.03);
  background-color:rgba(255,255,255,.03) !important;
  color:inherit;
}
html[data-bs-theme="dark"] .table-hover > tbody > tr:hover > *{
  background-color:rgba(248,157,29,.08) !important;
  color:inherit;
}
html[data-bs-theme="dark"] .table-bordered{border-color:var(--border-color)}

html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .form-control-compact,
html[data-bs-theme="dark"] .dataTables_filter input,
html[data-bs-theme="dark"] .dataTables_length select{
  background-color:#0f172a;
  border-color:#334155;
  color:#e2e8f0;
}
html[data-bs-theme="dark"] .form-control:focus,
html[data-bs-theme="dark"] .form-select:focus,
html[data-bs-theme="dark"] .form-control-compact:focus{
  background-color:#0f172a;
  border-color:#f89d1d;
  color:#e2e8f0;
  box-shadow:0 0 0 .2rem rgba(248,157,29,.18);
}
html[data-bs-theme="dark"] .form-control::placeholder{color:#64748b}

html[data-bs-theme="dark"] .dropdown-menu{
  background:#1e293b;
  border-color:#334155;
  color:#e2e8f0;
}
html[data-bs-theme="dark"] .dropdown-item{color:#e2e8f0}
html[data-bs-theme="dark"] .dropdown-item:hover,
html[data-bs-theme="dark"] .list-group-item-action:hover{
  background:#0f172a;
  color:#fff;
}
html[data-bs-theme="dark"] .list-group-item{
  background:transparent;
  color:#e2e8f0;
}

html[data-bs-theme="dark"] .btn-export,
html[data-bs-theme="dark"] .btn-white,
html[data-bs-theme="dark"] .btn-light,
html[data-bs-theme="dark"] .btn-action,
html[data-bs-theme="dark"] .dt-button{
  background:#1e293b !important;
  color:#cbd5e1 !important;
  border-color:#334155 !important;
}
html[data-bs-theme="dark"] .btn-export:hover,
html[data-bs-theme="dark"] .btn-white:hover,
html[data-bs-theme="dark"] .btn-light:hover{
  background:#0f172a !important;
  color:#fff !important;
}

html[data-bs-theme="dark"] .badge.bg-light,
html[data-bs-theme="dark"] .badge.bg-white{
  background:#334155 !important;
  color:#e2e8f0 !important;
}

html[data-bs-theme="dark"] .progress-thin{background-color:#0f172a}
html[data-bs-theme="dark"] .bg-soft-primary{background:rgba(248,157,29,.14) !important;color:#f89d1d !important}
html[data-bs-theme="dark"] .bg-soft-success{background:rgba(16,185,129,.14) !important;color:#34d399 !important}
html[data-bs-theme="dark"] .bg-soft-dark{background:#0f172a !important;color:#e2e8f0 !important}
html[data-bs-theme="dark"] .bg-soft-info{background:rgba(59,130,246,.14) !important;color:#93c5fd !important}

html[data-bs-theme="dark"] .breadcrumb-title,
html[data-bs-theme="dark"] .page-breadcrumb,
html[data-bs-theme="dark"] .breadcrumb-item,
html[data-bs-theme="dark"] .breadcrumb-item.active{
  color:#94a3b8;
}
html[data-bs-theme="dark"] .pagination .page-link{
  background:#151c2c;
  border-color:#334155;
  color:#cbd5e1;
}
html[data-bs-theme="dark"] .pagination .page-item.active .page-link{
  background:#f89d1d;
  border-color:#f89d1d;
  color:#fff;
}

html[data-bs-theme="dark"] .dataTables_wrapper,
html[data-bs-theme="dark"] .dataTables_info,
html[data-bs-theme="dark"] .dataTables_length,
html[data-bs-theme="dark"] .dataTables_filter,
html[data-bs-theme="dark"] .dataTables_paginate{
  color:#94a3b8;
}

html[data-bs-theme="dark"] .swal2-popup,
html[data-bs-theme="dark"] .swal2-modal,
html[data-bs-theme="dark"] .sweet-alert{
  background:#151c2c !important;
  color:#e2e8f0 !important;
  border:1px solid #2a3548;
  border-radius:20px !important;
  box-shadow:0 28px 70px rgba(0,0,0,.55);
  padding:1.6rem 1.5rem 1.4rem !important;
}
html[data-bs-theme="dark"] .swal2-title,
html[data-bs-theme="dark"] .swal2-modal .swal2-title,
html[data-bs-theme="dark"] .sweet-alert h2{
  color:#f8fafc !important;
  font-size:1.35rem !important;
  line-height:1.3 !important;
  font-weight:700 !important;
  padding:0 !important;
  margin:0 0 .4rem !important;
}
html[data-bs-theme="dark"] .swal2-content,
html[data-bs-theme="dark"] .swal2-modal .swal2-content,
html[data-bs-theme="dark"] .swal2-html-container,
html[data-bs-theme="dark"] .sweet-alert p{
  color:#94a3b8 !important;
  font-size:.95rem !important;
}
html[data-bs-theme="dark"] .swal2-styled.swal2-confirm,
html[data-bs-theme="dark"] .swal2-confirm,
html[data-bs-theme="dark"] .sweet-alert .confirm{
  background-color:#f89d1d !important;
  border-color:#f89d1d !important;
  color:#111827 !important;
  font-weight:700;
  border-radius:12px !important;
  padding:.55rem 1.6rem !important;
  box-shadow:0 8px 20px rgba(248,157,29,.28);
}
html[data-bs-theme="dark"] .swal2-container.swal2-in{
  background-color:rgba(2,6,23,.72);
}
html[data-bs-theme="dark"] .swal2-icon.swal2-success{
  border-color:#f89d1d !important;
}
html[data-bs-theme="dark"] .swal2-icon.swal2-success::before,
html[data-bs-theme="dark"] .swal2-icon.swal2-success::after,
html[data-bs-theme="dark"] .swal2-icon.swal2-success .fix{
  background:#151c2c !important;
}
html[data-bs-theme="dark"] .swal2-icon.swal2-success .line{
  background-color:#f89d1d !important;
}
html[data-bs-theme="dark"] .swal2-icon.swal2-success .placeholder{
  border-color:rgba(248,157,29,.28) !important;
}
html[data-bs-theme="dark"] .swal2-icon.swal2-warning{
  border-color:#f89d1d !important;
  color:#f89d1d !important;
}
html[data-bs-theme="dark"] .swal2-icon.swal2-error{
  border-color:#f87171 !important;
}

html[data-bs-theme="dark"] .apexcharts-canvas,
html[data-bs-theme="dark"] .apexcharts-svg,
html[data-bs-theme="dark"] .apexcharts-inner{
  background:transparent !important;
}
html[data-bs-theme="dark"] .apexcharts-tooltip{
  background:#1e293b !important;
  color:#e2e8f0 !important;
  border-color:#334155 !important;
}
html[data-bs-theme="dark"] .apexcharts-gridline{stroke:#334155 !important}
html[data-bs-theme="dark"] .apexcharts-xaxis-label,
html[data-bs-theme="dark"] .apexcharts-yaxis-label,
html[data-bs-theme="dark"] .apexcharts-legend-text{
  fill:#94a3b8 !important;
  color:#94a3b8 !important;
}

html[data-bs-theme="dark"] .customer-card-hover:hover{
  background-color:rgba(248,157,29,.08) !important;
}
html[data-bs-theme="dark"] .product-row:hover{
  background-color:#1e293b !important;
}
html[data-bs-theme="dark"] .quantity-control{
  background:#0f172a;
  border-color:#334155;
}
html[data-bs-theme="dark"] .quantity-input,
html[data-bs-theme="dark"] .quantity-btn{
  color:#e2e8f0;
}

html[data-bs-theme="dark"] .shadow,
html[data-bs-theme="dark"] .shadow-sm{
  box-shadow:0 10px 30px rgba(0,0,0,.28) !important;
}

html[data-bs-theme="dark"] .welcome-header .badge.bg-white{
  background:#fff !important;
  color:#1a237e !important;
}

html[data-bs-theme="dark"] .desk-page{color:#e2e8f0}
html[data-bs-theme="dark"] .desk-kpi,
html[data-bs-theme="dark"] .desk-box{
  background:#151c2c;
  border-color:#2a3548;
}
html[data-bs-theme="dark"] .desk-row{
  border-bottom-color:#1f2937;
  color:#e2e8f0;
}
html[data-bs-theme="dark"] .desk-row:hover{color:#fdba74}
html[data-bs-theme="dark"] .desk-type-lisans{background:rgba(37,99,235,.18);color:#93c5fd}
html[data-bs-theme="dark"] .desk-type-yazarkasa{background:rgba(248,157,29,.18);color:#fdba74}
html[data-bs-theme="dark"] .desk-kicker{color:#94a3b8}
html[data-bs-theme="dark"] .dropdown-notify a.text-dark{color:#e2e8f0 !important}

html[data-bs-theme="dark"]{
  --text-dark:#e2e8f0;
  --text-gray:#94a3b8;
  --border-light:#2a3548;
  --primary-soft:rgba(248,157,29,.12);
  --bs-table-bg:#151c2c;
  --bs-table-color:#e2e8f0;
  --bs-table-striped-bg:rgba(255,255,255,.03);
  --bs-table-hover-bg:rgba(248,157,29,.1);
  --bs-table-hover-color:#e2e8f0;
  --bs-body-color:#e2e8f0;
}

html[data-bs-theme="dark"] .price-item,
html[data-bs-theme="dark"] .card-modern,
html[data-bs-theme="dark"] .form-container,
html[data-bs-theme="dark"] .log-card,
html[data-bs-theme="dark"] .wallet-widget,
html[data-bs-theme="dark"] .payment-wrapper .form-container{
  background:var(--card-bg) !important;
  background-color:var(--card-bg) !important;
  border-color:var(--border-color) !important;
  color:var(--text-main);
  box-shadow:0 10px 30px rgba(0,0,0,.22);
}

html[data-bs-theme="dark"] .price-item:hover{
  border-color:#f89d1d !important;
  box-shadow:0 12px 28px rgba(0,0,0,.32);
}
html[data-bs-theme="dark"] .item-info h6{color:#e2e8f0 !important}
html[data-bs-theme="dark"] .item-info p{color:#94a3b8 !important}
html[data-bs-theme="dark"] .price-tag{
  color:#f8fafc !important;
}
html[data-bs-theme="dark"] .price-label{
  color:#94a3b8 !important;
}
html[data-bs-theme="dark"] .item-icon{
  background:rgba(248,157,29,.14) !important;
  color:#f89d1d !important;
}
html[data-bs-theme="dark"] .category-header{border-bottom-color:#334155 !important}
html[data-bs-theme="dark"] .category-header h5{color:#cbd5e1 !important}

html[data-bs-theme="dark"] .dealer-card-hover:hover,
html[data-bs-theme="dark"] .dealer-card-hover:hover > *,
html[data-bs-theme="dark"] .customer-card-hover:hover,
html[data-bs-theme="dark"] .customer-card-hover:hover > *,
html[data-bs-theme="dark"] .table-custom tbody tr:hover,
html[data-bs-theme="dark"] .table-custom tbody tr:hover > *{
  background-color:rgba(248,157,29,.1) !important;
  color:#e2e8f0 !important;
}

html[data-bs-theme="dark"] .table-custom th,
html[data-bs-theme="dark"] .table-custom thead th{
  background-color:#0f172a !important;
  color:#94a3b8 !important;
  border-color:#2a3548 !important;
}
html[data-bs-theme="dark"] .table-custom td{
  background-color:transparent !important;
  color:#e2e8f0 !important;
  border-color:#2a3548 !important;
}

html[data-bs-theme="dark"] .form-label,
html[data-bs-theme="dark"] .compact-label,
html[data-bs-theme="dark"] .field-container label{
  color:#cbd5e1 !important;
}
html[data-bs-theme="dark"] .input-group-text{
  background-color:#0f172a !important;
  border-color:#334155 !important;
  color:#94a3b8 !important;
}
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .field-container input,
html[data-bs-theme="dark"] .field-container select{
  background-color:#0f172a !important;
  border-color:#334155 !important;
  color:#e2e8f0 !important;
}
html[data-bs-theme="dark"] .nav-modern{
  border-bottom-color:#2a3548 !important;
}
html[data-bs-theme="dark"] .wallet-widget{
  background:#0f172a !important;
}
html[data-bs-theme="dark"] .wallet-widget::after{color:rgba(255,255,255,.06)}
html[data-bs-theme="dark"] .profile-avatar,
html[data-bs-theme="dark"] .profile-initials{
  border-color:#151c2c !important;
  background:#1e293b;
}
html[data-bs-theme="dark"] .info-icon{
  background:rgba(248,157,29,.14);
  color:#f89d1d;
}
html[data-bs-theme="dark"] .section-title{
  color:#f89d1d;
  border-bottom-color:#2a3548;
}
html[data-bs-theme="dark"] .alert-warning{
  background:#3b2a12;
  border-color:#854d0e;
  color:#fcd34d;
}
html[data-bs-theme="dark"] .btn-close{filter:invert(1) grayscale(1)}

html[data-bs-theme="dark"] .sidebar-wrapper .logo-full{
  filter:brightness(0) invert(1);
}

.theme-toggle--login{
  position:absolute;
  top:24px;
  right:24px;
  z-index:30;
}
.theme-toggle .bi{font-size:1.15rem;line-height:1}
@media (max-width:992px){
  .theme-toggle--login{top:14px;right:14px}
}

.crm-list{
  --crm-line:#eef2f6;
  --crm-head:#64748b;
  --crm-name:#0f172a;
  --crm-muted:#64748b;
  --crm-hover:#fff8ef;
  --crm-chip:#f1f5f9;
  --crm-chip-txt:#475569;
}
html[data-bs-theme="dark"] .crm-list{
  --crm-line:#243044;
  --crm-head:#94a3b8;
  --crm-name:#f1f5f9;
  --crm-muted:#94a3b8;
  --crm-hover:rgba(248,157,29,.08);
  --crm-chip:#1e293b;
  --crm-chip-txt:#cbd5e1;
}
.crm-list thead th{
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--crm-head) !important;
  background:transparent !important;
  border-bottom:1px solid var(--crm-line) !important;
  padding:10px 14px !important;
  white-space:nowrap;
}
.crm-list tbody td{
  padding:10px 14px !important;
  border-bottom:1px solid var(--crm-line) !important;
  vertical-align:middle;
  font-size:13px;
}
.crm-list tbody tr.crm-row:hover,
.crm-list tbody tr.crm-row:hover > *{
  background:var(--crm-hover) !important;
}
.crm-list .crm-row{cursor:pointer}
.crm-list .crm-ava{
  width:36px;
  height:36px;
  border-radius:10px;
  object-fit:cover;
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:13px;
  background:#fff7ed;
  color:#c2410c;
  overflow:hidden;
}
img.crm-ava{display:block;padding:0;background:transparent}
html[data-bs-theme="dark"] .crm-list .crm-ava{
  background:rgba(248,157,29,.14);
  color:#fdba74;
}
.crm-list .crm-name{
  font-size:13px;
  font-weight:650;
  color:var(--crm-name);
  margin:0;
  line-height:1.25;
}
.crm-list .crm-sub{
  font-size:12px;
  color:var(--crm-muted);
  line-height:1.3;
}
.crm-chip{
  display:inline-flex;
  align-items:center;
  font-size:11px;
  font-weight:600;
  padding:2px 8px;
  border-radius:999px;
  background:var(--crm-chip);
  color:var(--crm-chip-txt);
  white-space:nowrap;
}
.crm-chip.is-mongo{background:rgba(248,157,29,.16);color:#c2410c}
.crm-chip.is-sql{background:rgba(56,189,248,.16);color:#0284c7}
.crm-chip.is-ok{background:rgba(16,185,129,.14);color:#059669}
.crm-chip.is-warn{background:rgba(245,158,11,.16);color:#d97706}
.crm-chip.is-bad{background:rgba(239,68,68,.14);color:#dc2626}
html[data-bs-theme="dark"] .crm-chip.is-mongo{color:#fdba74}
html[data-bs-theme="dark"] .crm-chip.is-sql{color:#7dd3fc}
html[data-bs-theme="dark"] .crm-chip.is-ok{color:#6ee7b7}
html[data-bs-theme="dark"] .crm-chip.is-warn{color:#fcd34d}
html[data-bs-theme="dark"] .crm-chip.is-bad{color:#fca5a5}
.crm-list .crm-bal{
  font-variant-numeric:tabular-nums;
  font-weight:700;
  font-size:13px;
  color:#059669;
}
html[data-bs-theme="dark"] .crm-list .crm-bal{color:#6ee7b7}
.crm-list .crm-actions{
  display:inline-flex;
  align-items:stretch;
  height:30px;
  padding:0;
  border-radius:8px;
  overflow:hidden;
  background:rgba(148,163,184,.12);
}
html[data-bs-theme="dark"] .crm-list .crm-actions{
  background:rgba(255,255,255,.06);
}
.crm-list .crm-actions .btn-action{
  width:30px;
  height:30px;
  padding:0 !important;
  margin:0 !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  background:transparent !important;
  border:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
  color:#64748b;
  line-height:1 !important;
  font-size:0;
  transform:none !important;
  appearance:none;
  -webkit-appearance:none;
}
.crm-list .crm-actions .btn-action + .btn-action{
  border-left:1px solid var(--crm-line) !important;
}
.crm-list .crm-actions .btn-action i{
  font-size:18px;
  line-height:1;
  width:18px;
  height:18px;
  display:block;
}
.crm-list .crm-actions .btn-action:hover{
  background:rgba(248,157,29,.16) !important;
  color:#f89d1d;
  transform:none !important;
  box-shadow:none !important;
}
html[data-bs-theme="dark"] .crm-list .crm-actions .btn-action{color:#94a3b8}
html[data-bs-theme="dark"] .crm-list .crm-actions .btn-action:hover{
  background:rgba(248,157,29,.16) !important;
  color:#f89d1d;
}
.crm-list .crm-actions .btn-action.text-danger:hover{
  color:#ef4444 !important;
  background:rgba(239,68,68,.14) !important;
}
div.dataTables_wrapper:has(.crm-list){
  padding:12px 8px 8px;
}
div.dataTables_wrapper:has(.crm-list) .dataTables_filter input{
  border-radius:10px;
  min-width:220px;
}
.crm-list tbody tr:last-child td{border-bottom:none !important}
.ver-toggle{
  display:inline-flex;
  align-items:stretch;
  padding:3px;
  gap:3px;
  border-radius:10px;
  background:rgba(148,163,184,.14);
}
.ver-toggle .ver-opt,
.ver-toggle .license-version-card{
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:8px !important;
  padding:6px 12px !important;
  font-size:12px;
  font-weight:700;
  color:#64748b !important;
  line-height:1.2;
  white-space:nowrap;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}
.ver-toggle .ver-opt.active[data-select-version="mongo"],
.ver-toggle .license-version-card.active[data-select-version="mongo"]{
  background:#f89d1d !important;
  color:#fff !important;
}
.ver-toggle .ver-opt.active[data-select-version="sql"],
.ver-toggle .license-version-card.active[data-select-version="sql"]{
  background:#0ea5e9 !important;
  color:#fff !important;
}
html[data-bs-theme="dark"] .ver-toggle{background:rgba(255,255,255,.08)}
html[data-bs-theme="dark"] .ver-toggle .ver-opt,
html[data-bs-theme="dark"] .ver-toggle .license-version-card{color:#94a3b8 !important}
.ver-chip{
  display:inline-flex;
  align-items:center;
  font-size:11px;
  font-weight:700;
  padding:3px 8px;
  border-radius:999px;
}
.ver-chip.is-mongo{background:rgba(248,157,29,.18);color:#c2410c}
.ver-chip.is-sql{background:rgba(14,165,233,.18);color:#0369a1}
html[data-bs-theme="dark"] .ver-chip.is-mongo{color:#fdba74}
html[data-bs-theme="dark"] .ver-chip.is-sql{color:#7dd3fc}
.sale-screen .modern-card{border-radius:12px}
.sale-screen .card-header{padding:10px 14px !important}
.sale-screen .table thead th{
  font-size:11px;
  letter-spacing:.03em;
  padding:8px 12px !important;
  white-space:nowrap;
}
.sale-screen .table tbody td{padding:7px 12px !important}
.sale-screen .quantity-control{height:28px;border-radius:8px}
.sale-screen .quantity-btn{width:26px;height:28px}
.sale-screen .quantity-input{width:34px;font-size:12px}
.sale-screen .form-check-input{width:1.05em;height:1.05em}
.sale-screen .product-row:hover{transform:none}
html[data-bs-theme="dark"] .sale-screen .quantity-control{
  background:rgba(255,255,255,.04);
  border-color:#334155;
}
html[data-bs-theme="dark"] .sale-screen .quantity-btn{color:#94a3b8}
html[data-bs-theme="dark"] .sale-screen .quantity-input{color:#e2e8f0}
html[data-bs-theme="dark"] .sale-screen .product-row:hover{background:rgba(248,157,29,.06)}
.rpt-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:16px}
.rpt-kpi{
  border-radius:12px;
  padding:12px 14px;
  background:rgba(148,163,184,.10);
  cursor:pointer;
  border:1px solid transparent;
}
.rpt-kpi.is-on{border-color:#f89d1d;background:rgba(248,157,29,.12)}
.rpt-kpi .n{font-size:22px;font-weight:800;line-height:1.1;color:#0f172a}
.rpt-kpi .l{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#64748b;margin-top:4px}
.rpt-kpi.is-dolan .n{color:#dc2626}
.rpt-kpi.is-d7 .n{color:#d97706}
.rpt-kpi.is-d30 .n{color:#ca8a04}
.rpt-kpi.is-ok .n{color:#059669}
html[data-bs-theme="dark"] .rpt-kpi{background:rgba(255,255,255,.05)}
html[data-bs-theme="dark"] .rpt-kpi .n{color:#f1f5f9}
html[data-bs-theme="dark"] .rpt-kpi .l{color:#94a3b8}
.rpt-filters{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.rpt-chip{
  border:0;background:rgba(148,163,184,.14);color:#64748b;
  border-radius:999px;padding:5px 10px;font-size:12px;font-weight:700;cursor:pointer;
}
.rpt-chip.is-on{background:#f89d1d;color:#fff}
html[data-bs-theme="dark"] .rpt-chip{background:rgba(255,255,255,.08);color:#94a3b8}
html[data-bs-theme="dark"] .rpt-chip.is-on{background:#f89d1d;color:#fff}
.rpt-models{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.rpt-model{
  display:flex;align-items:center;gap:8px;
  border:1px solid transparent;background:rgba(148,163,184,.10);
  border-radius:12px;padding:8px 12px;cursor:pointer;text-align:left;
}
.rpt-model .ad{font-size:13px;font-weight:700;color:#0f172a;line-height:1.2}
.rpt-model .ad .n{display:block;font-size:11px;font-weight:600;color:#64748b;margin-top:2px}
.rpt-model.is-on{border-color:#f89d1d;background:rgba(248,157,29,.14)}
html[data-bs-theme="dark"] .rpt-model{background:rgba(255,255,255,.05)}
html[data-bs-theme="dark"] .rpt-model .ad{color:#f1f5f9}
html[data-bs-theme="dark"] .rpt-model .ad .n{color:#94a3b8}
.rpt-pick{
  min-width:180px;max-width:260px;height:34px;border-radius:8px;border:1px solid #e2e8f0;background:#fff;
  color:#334155;font-size:12px;font-weight:600;padding:0 10px;
}
html[data-bs-theme="dark"] .rpt-pick{background:#1e293b;border-color:#334155;color:#e2e8f0}
@media (max-width:1200px){.rpt-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:992px){
  .theme-toggle--login{top:14px;right:14px}
}

.main-wrapper .main-content,
main.main-wrapper{padding:22px 24px 40px !important}
html[data-bs-theme="dark"] .sidebar-wrapper{background:#0e1626 !important;border-right:1px solid #1f2a3d}
html[data-bs-theme="dark"] .sidebar-header{background:#0e1626 !important;border-bottom-color:#1f2a3d !important}
html[data-bs-theme="dark"] .sidebar-nav .metismenu a{border-radius:10px;margin:2px 10px;padding:9px 12px}
html[data-bs-theme="dark"] .sidebar-nav .metismenu a:hover,
html[data-bs-theme="dark"] .sidebar-nav .metismenu .mm-active>a{background:rgba(248,157,29,.12)}
html[data-bs-theme="dark"] .price-item{background:#151d2e !important;border:1px solid #243044 !important;border-radius:16px}
html[data-bs-theme="dark"] .price-item:hover{border-color:#f89d1d !important}
html[data-bs-theme="dark"] .card{background:#151d2e;border-color:#243044;border-radius:16px}

/* —— UnPOS admin shell —— */
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.page-kicker{margin:0;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#94a3b8}
.page-title{margin:2px 0 4px;font-size:22px;font-weight:800;letter-spacing:-.03em;color:#0f172a}
.page-sub{margin:0;color:#64748b;font-size:13px}
html[data-bs-theme="dark"] .page-title{color:#f8fafc}

html[data-bs-theme="light"] .sidebar-wrapper,
html:not([data-bs-theme="dark"]) .sidebar-wrapper{
  background:#ffffff !important;
  border-right:1px solid #e8eef5 !important;
}
html[data-bs-theme="light"] .sidebar-wrapper .sidebar-header,
html:not([data-bs-theme="dark"]) .sidebar-wrapper .sidebar-header{
  background:#ffffff !important;
  border-bottom:1px solid #e8eef5 !important;
  padding:16px 14px 12px !important;
}
html[data-bs-theme="light"] .sidebar-wrapper .logo-full,
html:not([data-bs-theme="dark"]) .sidebar-wrapper .logo-full{
  filter:none;
  max-width:132px;
}
.sidebar-nav .metismenu{padding:8px 8px 16px}
.sidebar-nav .metismenu > li > a,
.sidebar-nav .metismenu ul a{
  display:flex;align-items:center;gap:10px;
  border-radius:10px;
  margin:2px 6px;
  padding:9px 12px;
  font-size:13.5px;
  font-weight:600;
  text-decoration:none;
}
html[data-bs-theme="light"] .sidebar-nav .metismenu > li > a,
html[data-bs-theme="light"] .sidebar-nav .metismenu ul a,
html:not([data-bs-theme="dark"]) .sidebar-nav .metismenu > li > a,
html:not([data-bs-theme="dark"]) .sidebar-nav .metismenu ul a{
  color:#334155 !important;
}
.sidebar-nav .metismenu .parent-icon,
.sidebar-nav .metismenu .parent-icon i,
.sidebar-nav .metismenu a i{
  font-size:20px;
  width:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
html[data-bs-theme="light"] .sidebar-nav .metismenu .parent-icon i,
html[data-bs-theme="light"] .sidebar-nav .metismenu a i,
html:not([data-bs-theme="dark"]) .sidebar-nav .metismenu .parent-icon i,
html:not([data-bs-theme="dark"]) .sidebar-nav .metismenu a i{
  color:#94a3b8 !important;
}
html[data-bs-theme="light"] .sidebar-nav .metismenu > li > a:hover,
html[data-bs-theme="light"] .sidebar-nav .metismenu .mm-active > a,
html[data-bs-theme="light"] .sidebar-nav .metismenu li.is-open > a.has-arrow,
html[data-bs-theme="light"] .sidebar-nav .metismenu ul a:hover,
html:not([data-bs-theme="dark"]) .sidebar-nav .metismenu > li > a:hover,
html:not([data-bs-theme="dark"]) .sidebar-nav .metismenu .mm-active > a,
html:not([data-bs-theme="dark"]) .sidebar-nav .metismenu li.is-open > a.has-arrow,
html:not([data-bs-theme="dark"]) .sidebar-nav .metismenu ul a:hover{
  background:#fff7ed !important;
  color:#9a3412 !important;
}
html[data-bs-theme="light"] .sidebar-nav .metismenu > li > a:hover .parent-icon i,
html[data-bs-theme="light"] .sidebar-nav .metismenu li.is-open > a .parent-icon i,
html[data-bs-theme="light"] .sidebar-nav .metismenu a:hover i,
html:not([data-bs-theme="dark"]) .sidebar-nav .metismenu > li > a:hover .parent-icon i,
html:not([data-bs-theme="dark"]) .sidebar-nav .metismenu li.is-open > a .parent-icon i,
html:not([data-bs-theme="dark"]) .sidebar-nav .metismenu a:hover i{
  color:#f89d1d !important;
}
.sidebar-nav .metismenu ul{padding:2px 0 8px}
.sidebar-nav .metismenu ul a{padding:7px 12px 7px 40px;font-weight:550;font-size:13px}
html[data-bs-theme="light"] .sidebar-bottom,
html:not([data-bs-theme="dark"]) .sidebar-bottom{
  background:#ffffff !important;
  border-top:1px solid #e8eef5;
}
html[data-bs-theme="light"] .sidebar-bottom .bg-light,
html:not([data-bs-theme="dark"]) .sidebar-bottom .bg-light{
  background:#f8fafc !important;
  border:1px solid #e8eef5 !important;
  color:#0f172a;
  border-radius:12px;
}
html[data-bs-theme="light"] .sidebar-bottom .text-muted,
html:not([data-bs-theme="dark"]) .sidebar-bottom .text-muted{color:#64748b !important}
html[data-bs-theme="light"] .sidebar-bottom .text-dark,
html:not([data-bs-theme="dark"]) .sidebar-bottom .text-dark{color:#0f172a !important}

.top-header .navbar{
  background:#fff;
  border-bottom:1px solid #e8eef5;
  height:64px;
}
.main-wrapper .main-content, main.main-wrapper{padding:20px 28px 48px !important}

.card,.modern-card,.dashboard-card{
  border-radius:16px !important;
  border:1px solid #e8eef5 !important;
  box-shadow:none;
}
html[data-bs-theme="light"] body,
html:not([data-bs-theme="dark"]) body{background:#f5f7fb !important}
html[data-bs-theme="light"] .main-wrapper,
html:not([data-bs-theme="dark"]) .main-wrapper{background:#f5f7fb}
html[data-bs-theme="light"] .card,
html[data-bs-theme="light"] .dcard,
html[data-bs-theme="light"] .price-item,
html:not([data-bs-theme="dark"]) .card,
html:not([data-bs-theme="dark"]) .dcard,
html:not([data-bs-theme="dark"]) .price-item{
  background:#fff !important;
  border-color:#e8eef5 !important;
}
.btn-primary,.btn-warning{
  background:#f89d1d !important;
  border-color:#f89d1d !important;
  color:#111827 !important;
  font-weight:700;
  border-radius:10px;
}
.btn-primary:hover,.btn-warning:hover{background:#e88612 !important;border-color:#e88612 !important}
.btn-outline-primary{
  border-color:#f89d1d !important;
  color:#c2410c !important;
  border-radius:10px;
  font-weight:700;
}
.form-control,.form-select{border-radius:10px;border-color:#e2e8f0}

html[data-bs-theme="dark"] .sidebar-wrapper{
  background:#0b1220 !important;
  border-right:1px solid #1f2a3d !important;
}
html[data-bs-theme="dark"] .sidebar-wrapper .sidebar-header{
  background:#0b1220 !important;
  border-bottom-color:#1f2a3d !important;
}
html[data-bs-theme="dark"] .sidebar-wrapper .logo-full{filter:brightness(0) invert(1);max-width:132px}
html[data-bs-theme="dark"] .sidebar-nav .metismenu > li > a,
html[data-bs-theme="dark"] .sidebar-nav .metismenu ul a{color:#cbd5e1 !important}
html[data-bs-theme="dark"] .sidebar-nav .metismenu .parent-icon i,
html[data-bs-theme="dark"] .sidebar-nav .metismenu a i{color:#94a3b8 !important}
html[data-bs-theme="dark"] .sidebar-nav .metismenu > li > a:hover,
html[data-bs-theme="dark"] .sidebar-nav .metismenu .mm-active > a,
html[data-bs-theme="dark"] .sidebar-nav .metismenu li.is-open > a.has-arrow,
html[data-bs-theme="dark"] .sidebar-nav .metismenu ul a:hover{
  background:rgba(248,157,29,.14) !important;
  color:#fff !important;
}
html[data-bs-theme="dark"] .sidebar-nav .metismenu > li > a:hover .parent-icon i,
html[data-bs-theme="dark"] .sidebar-nav .metismenu li.is-open > a .parent-icon i,
html[data-bs-theme="dark"] .sidebar-nav .metismenu a:hover i{color:#f89d1d !important}
html[data-bs-theme="dark"] .sidebar-bottom{
  background:#0b1220 !important;
  border-top:1px solid #1f2a3d;
}
html[data-bs-theme="dark"] .sidebar-bottom .bg-light{
  background:rgba(255,255,255,.05) !important;
  border:1px solid rgba(255,255,255,.08) !important;
}
html[data-bs-theme="dark"] .sidebar-bottom .text-muted{color:#94a3b8 !important}
html[data-bs-theme="dark"] .sidebar-bottom .text-dark{color:#e2e8f0 !important}
html[data-bs-theme="dark"] .top-header .navbar{background:#0f172a !important;border-bottom-color:#1f2a3d !important}
html[data-bs-theme="dark"] .main-wrapper{background:#0b1220}

.up-form{border:0;border-radius:20px;overflow:hidden;background:#fff}
.up-form-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  padding:20px 24px 0;
}
.up-form-head h5{margin:2px 0 0;font-size:20px;font-weight:800;letter-spacing:-.03em;color:#0f172a}
.up-kicker{margin:0;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#f89d1d}
.up-form-body{padding:18px 24px 8px}
.up-form-foot{
  display:flex;justify-content:flex-end;gap:8px;
  padding:12px 24px 20px;
}
.up-sec{
  margin:16px 0 10px;font-size:11px;font-weight:800;letter-spacing:.08em;
  text-transform:uppercase;color:#94a3b8;
}
.up-sec:first-child{margin-top:0}
.up-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.up-grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
.up-span-2{grid-column:span 2}
.up-form .compact-label{font-size:12px;font-weight:700;color:#64748b;margin-bottom:6px;display:block}
.up-form .form-control,
.up-form .form-select{
  height:42px;border-radius:12px;border:1px solid #e8eef5;font-size:13.5px;font-weight:600;
}
.up-form textarea.form-control{height:auto;min-height:72px;padding-top:10px}
.up-form .form-control:focus,
.up-form .form-select:focus{
  border-color:#f89d1d;box-shadow:0 0 0 4px rgba(248,157,29,.14);
}
.up-form .form-check-input:checked{background-color:#f89d1d;border-color:#f89d1d}
.up-btn{border:0;border-radius:12px;height:40px;padding:0 16px;font-weight:800;font-size:13px}
.up-btn-ghost{background:#f1f5f9;color:#334155}
.up-btn-main{background:#f89d1d;color:#111}
.up-btn-main:hover{background:#e88612;color:#111}
.up-pick{border:1px dashed #cbd5e1;border-radius:12px;padding:8px 10px;background:#f8fafc}
@media (max-width:768px){
  .up-grid,.up-grid-3{grid-template-columns:1fr}
  .up-span-2{grid-column:auto}
}
html[data-bs-theme="dark"] .up-form{background:#151d2e}
html[data-bs-theme="dark"] .up-form-head h5{color:#f8fafc}
html[data-bs-theme="dark"] .up-form .form-control,
html[data-bs-theme="dark"] .up-form .form-select{
  background:#0f172a;border-color:#334155;color:#e2e8f0;
}
html[data-bs-theme="dark"] .up-btn-ghost{background:#1e293b;color:#e2e8f0}
html[data-bs-theme="dark"] .up-pick{background:#0f172a;border-color:#334155}

