@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
/* Bal Petshop modern yönetim teması — 2026-09-22 */
:root{
  --ui-bg:#f2f1f8;
  --ui-surface:#ffffff;
  --ui-surface-soft:#f7f7fb;
  --ui-ink:#15151b;
  --ui-muted:#777784;
  --ui-line:#e8e8ef;
  --ui-accent:#baf43b;
  --ui-accent-ink:#172000;
  --ui-purple:#5421d6;
  --ui-purple-2:#7b4df0;
  --ui-orange:#5421d6;
  --primary:#5421d6;
  --primary-dark:#3f14b7;
  --primary-light:#efe9ff;
  --accent:#5421d6;
  --accent-soft:#efe9ff;
  --bg:#f2f1f8;
  --card-bg:#ffffff;
  --card:#ffffff;
  --text:#15151b;
  --text-muted:#777784;
  --border:#e7e5ef;
  --ui-radius:24px;
  --ui-shadow:0 12px 38px rgba(26,26,45,.065);
}

body,body *{font-family:"Manrope","Segoe UI Variable Text","Segoe UI",system-ui,sans-serif;letter-spacing:-.012em}
body{background:var(--ui-bg)}
.bi,.bi:before,[class^="bi-"]:before,[class*=" bi-"]:before{font-family:"bootstrap-icons"!important;letter-spacing:normal}
.content{background:var(--ui-bg);padding:22px 26px 36px}
.main-wrap{background:var(--ui-bg)}

/* Sol menü */
.sidebar{
  width:248px;
  height:calc(100vh - 24px);
  top:12px;
  left:12px;
  border-radius:28px;
  background:var(--ui-surface);
  color:var(--ui-ink);
  border:1px solid rgba(20,20,28,.05);
  box-shadow:var(--ui-shadow);
}
.main-wrap{margin-left:272px}
.sidebar-logo{
  min-height:72px;
  padding:14px 16px;
  gap:11px;
  border-bottom:1px solid var(--ui-line);
}
.sidebar-logo img{width:42px;height:42px;border-radius:14px;border:1px solid var(--ui-line);box-shadow:0 5px 14px rgba(0,0,0,.07)}
.sidebar-logo-txt h6{color:var(--ui-ink);font-size:14px;font-weight:900;letter-spacing:-.02em}
.sidebar-logo-txt small{color:var(--ui-muted);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.sidebar-nav{padding:14px 12px 18px;scrollbar-color:#d5d5de transparent}
.nav-group{margin-bottom:15px}
.nav-group-label{color:#aaaab5;font-size:9px;font-weight:900;letter-spacing:.12em;padding:0 11px;margin:10px 0 7px}
.nav-link-custom{
  min-height:39px;
  gap:10px;
  padding:8px 11px;
  margin-bottom:3px;
  border-radius:13px;
  color:#555560;
  font-size:12px;
  font-weight:750;
}
.nav-link-custom i{width:21px;font-size:17px;color:#6c6c78;transition:color .2s}
.nav-link-custom:hover{background:#f3f3f7;color:var(--ui-ink);transform:translateX(2px)}
.nav-link-custom:hover i{color:var(--ui-ink)}
.nav-link-custom.active{background:linear-gradient(135deg,#17171c 0%,#30284b 100%);color:#fff;box-shadow:0 9px 22px rgba(55,34,112,.18)}
.nav-link-custom.active i{color:var(--ui-accent)}
.nav-badge{background:#f0f0f5;color:#575762;padding:2px 7px;font-size:9px}
.nav-link-custom.active .nav-badge{background:var(--ui-accent);color:var(--ui-accent-ink)}
.sidebar-footer{padding:10px 12px 14px;border-top:1px solid var(--ui-line)}
.sidebar-close-btn{color:var(--ui-ink);background:#f1f1f5}
.sidebar-close-btn:hover{background:#e4e4eb}
.sidebar::-webkit-scrollbar-thumb,.sidebar-nav::-webkit-scrollbar-thumb{background:#d7d7df}

/* Üst bar */
.topbar{
  height:72px;
  margin:0 14px;
  padding:0 12px 0 4px;
  background:rgba(241,241,247,.88);
  border:0;
  box-shadow:none;
  backdrop-filter:blur(16px);
}
.topbar-left h5{font-size:22px;font-weight:950;letter-spacing:-.04em;color:var(--ui-ink)}
.topbar-left small{font-size:11px;color:var(--ui-muted);font-weight:650}
.topbar .btn,.topbar button{border-radius:12px!important}

/* Ortak yüzeyler */
.panel-card,.stat-card{
  background:var(--ui-surface);
  border:1px solid rgba(20,20,30,.055);
  border-radius:var(--ui-radius);
  box-shadow:var(--ui-shadow);
}
.panel-card{overflow:hidden}
.panel-card-header{min-height:62px;padding:17px 20px;border-bottom:1px solid var(--ui-line)}
.panel-card-header h6{font-size:14px;font-weight:900;letter-spacing:-.02em;color:var(--ui-ink)}
.panel-card-header .btn{border-radius:12px!important}
.stat-card{padding:20px!important;transition:transform .2s ease,box-shadow .2s ease}
.stat-card:hover{transform:translateY(-2px);box-shadow:0 17px 45px rgba(26,26,45,.09)}
.stat-icon{width:46px;height:46px;border-radius:15px;font-size:20px}
.stat-val{font-size:clamp(19px,1.55vw,27px);font-weight:950;letter-spacing:-.045em;white-space:nowrap}
.stat-lbl{font-size:11px;color:var(--ui-muted);font-weight:750}
.form-control,.form-select,.input-group-text{border-color:var(--ui-line);border-radius:13px}
.form-control:focus,.form-select:focus{border-color:#b7b7c4;box-shadow:0 0 0 4px rgba(77,22,215,.08)}
.btn{font-weight:750}
.btn-primary{background:linear-gradient(135deg,#5421d6,#7447e8);border-color:#5421d6;box-shadow:0 7px 17px rgba(84,33,214,.18)}
.btn-primary:hover{background:linear-gradient(135deg,#4417bd,#6738df);border-color:#4417bd;transform:translateY(-1px)}

/* Dashboard */
#pageDashboard{max-width:1500px;margin:0 auto}
#pageDashboard .dashboard-hero{
  min-height:150px;
  padding:28px 30px;
  border-radius:28px;
  background:
    radial-gradient(circle at 82% 20%,rgba(186,244,59,.32),transparent 29%),
    linear-gradient(120deg,#17171c 0%,#25252d 72%,#34343c 100%);
  box-shadow:0 18px 45px rgba(20,20,28,.14);
  position:relative;
  overflow:hidden;
}
#pageDashboard .dashboard-hero:after{content:"";position:absolute;right:7%;bottom:-55px;width:185px;height:185px;border:28px solid rgba(255,255,255,.055);border-radius:50%}
#pageDashboard .dashboard-hero>div,#pageDashboard .dashboard-hero>button{position:relative;z-index:1}
#pageDashboard .dashboard-hero h3{font-size:29px;letter-spacing:-.045em}
#pageDashboard .dashboard-hero .btn{background:var(--ui-accent);color:var(--ui-accent-ink);border:0;border-radius:16px!important;padding:12px 18px;box-shadow:0 8px 20px rgba(186,244,59,.18)}
.dash-shortcuts{gap:10px}
.dash-shortcut{
  min-height:82px;
  background:var(--ui-surface);
  color:var(--ui-ink);
  border:1px solid rgba(20,20,30,.055);
  border-radius:20px;
  box-shadow:0 8px 24px rgba(26,26,45,.045);
}
.dash-shortcut i{color:var(--ui-purple);font-size:21px}
.dash-shortcut:hover{background:#17171c;color:#fff;border-color:#17171c;transform:translateY(-2px)}
.dash-shortcut:hover i{color:var(--ui-accent)}
#pageDashboard #dashTodoCard{border-radius:24px}
#pageDashboard #todoYeni{background:var(--ui-surface-soft);border-color:transparent}
#pageDashboard #dashTodoCard .btn{background:#17171c!important;border-radius:12px;color:#fff!important}
#pageDashboard .badge{font-weight:800;letter-spacing:.01em}
#pageDashboard .table-custom thead th{background:#f7f7fa;color:#777784;border-bottom:1px solid var(--ui-line);font-size:10px;text-transform:uppercase;letter-spacing:.08em}

/* İstatistik sahnesi */
#pageIstatistik{max-width:1500px;margin:0 auto}
#pageIstatistik #istatStatRow{margin-bottom:18px!important}
#pageIstatistik #istatStatRow .stat-card{min-height:118px;position:relative;overflow:hidden}
#pageIstatistik #istatStatRow .stat-card:after{content:"";position:absolute;right:-22px;bottom:-30px;width:92px;height:92px;border-radius:50%;background:rgba(77,22,215,.035)}
#pageIstatistik>.row.g-3:not(#istatStatRow){
  display:grid;
  grid-template-columns:minmax(0,1.8fr) minmax(310px,.8fr);
  grid-template-areas:"trend payment" "detail top";
  gap:16px;
  margin:0;
}
#pageIstatistik>.row.g-3:not(#istatStatRow)>div{width:auto;max-width:none;padding:0}
#pageIstatistik>.row.g-3:not(#istatStatRow)>div:nth-child(1){grid-area:trend}
#pageIstatistik>.row.g-3:not(#istatStatRow)>div:nth-child(2){grid-area:top}
#pageIstatistik>.row.g-3:not(#istatStatRow)>div:nth-child(3){grid-area:detail}
#pageIstatistik>.row.g-3:not(#istatStatRow)>div:nth-child(4){grid-area:payment}
#pageIstatistik>.row.g-3:not(#istatStatRow) .panel-card{height:100%}
#pageIstatistik canvas{max-width:100%}
#pageIstatistik #istatChart{min-height:275px;max-height:330px}
#pageIstatistik #odemeChart{max-height:310px}
.product-stat-table thead th{position:sticky;top:0;z-index:2;background:#f6f6f9!important;color:#777784!important;border:0!important;font-size:10px!important;text-transform:uppercase;letter-spacing:.07em}
.product-stat-table tbody td{border-color:var(--ui-line);padding:13px 12px;vertical-align:middle}
.product-stat-table tbody tr:hover td{background:#fafafd}

/* Koyu tema */
[data-theme="dark"]{
  --ui-bg:#111116;
  --ui-surface:#1b1b22;
  --ui-surface-soft:#23232c;
  --ui-ink:#f4f4f7;
  --ui-muted:#9a9aa7;
  --ui-line:#30303a;
  --ui-shadow:0 14px 42px rgba(0,0,0,.24);
}
[data-theme="dark"] body,[data-theme="dark"] .content,[data-theme="dark"] .main-wrap{background:var(--ui-bg);color:var(--ui-ink)}
[data-theme="dark"] .sidebar,[data-theme="dark"] .panel-card,[data-theme="dark"] .stat-card{background:var(--ui-surface);border-color:rgba(255,255,255,.055)}
[data-theme="dark"] .sidebar-logo,[data-theme="dark"] .sidebar-footer,[data-theme="dark"] .panel-card-header{border-color:var(--ui-line)}
[data-theme="dark"] .sidebar-logo-txt h6,[data-theme="dark"] .panel-card-header h6,[data-theme="dark"] .topbar-left h5{color:var(--ui-ink)!important}
[data-theme="dark"] .nav-link-custom{color:#b5b5c0}
[data-theme="dark"] .nav-link-custom i{color:#a3a3af}
[data-theme="dark"] .nav-link-custom:hover{background:#292932;color:#fff}
[data-theme="dark"] .nav-link-custom.active{background:#f3f3f6;color:#17171c}
[data-theme="dark"] .nav-link-custom.active i{color:var(--ui-purple)}
[data-theme="dark"] .topbar{background:rgba(17,17,22,.86)}
[data-theme="dark"] .dash-shortcut{background:var(--ui-surface);color:var(--ui-ink);border-color:rgba(255,255,255,.055)}
[data-theme="dark"] #pageDashboard .table-custom thead th,[data-theme="dark"] .product-stat-table thead th{background:#24242c!important;color:#aaaab5!important}
[data-theme="dark"] .product-stat-table tbody tr:hover td{background:#23232b}
[data-theme="dark"] #pageDashboard #todoYeni{background:var(--ui-surface-soft)}

/* Masaüstü daraltılmış menü */
@media(min-width:992px){
  .sidebar.collapsed{width:68px!important}
  .sidebar.collapsed .sidebar-logo{justify-content:center;padding-left:8px;padding-right:8px}
  .sidebar.collapsed .sidebar-logo img{width:40px;height:40px}
  .sidebar.collapsed .nav-link-custom{min-height:42px;border-radius:13px}
  .main-wrap.expanded{margin-left:92px!important}
}

/* Mobil: uygulama hissi */
@media(max-width:991px){
  .sidebar{top:8px;left:8px;height:calc(100dvh - 16px);width:min(300px,calc(100vw - 32px))!important;border-radius:26px}
  .main-wrap{margin-left:0}
  .content{padding:12px 12px 90px}
  .topbar{height:64px;margin:0 6px;padding:0 5px;background:rgba(241,241,247,.92)}
  [data-theme="dark"] .topbar{background:rgba(17,17,22,.9)}
  #pageDashboard .dashboard-hero{min-height:145px;border-radius:24px;padding:22px}
  #pageDashboard .dashboard-hero h3{font-size:24px}
  .dash-shortcut{min-height:76px;border-radius:18px}
  #pageIstatistik>.row.g-3:not(#istatStatRow){display:flex;margin:0 -6px}
  #pageIstatistik>.row.g-3:not(#istatStatRow)>div{width:100%;padding:0 6px}
  #pageIstatistik #istatChart{min-height:230px}
}

/* Premium palette + report/credit workspaces */
.badge.bg-primary,.bg-primary{background:linear-gradient(135deg,var(--ui-purple),var(--ui-purple-2))!important}.text-primary{color:var(--ui-purple)!important}
.btn-outline-primary{color:var(--ui-purple);border-color:#c9b7f7}.btn-outline-primary:hover{color:#fff;background:linear-gradient(135deg,var(--ui-purple),var(--ui-purple-2));border-color:var(--ui-purple)}
.progress{background:#eceaf3;overflow:hidden}.progress-bar{background:linear-gradient(90deg,var(--ui-purple),var(--ui-purple-2))}
.report-hero,.credit-hero{min-height:154px;padding:28px 32px;border-radius:28px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:24px;position:relative;overflow:hidden;box-shadow:0 20px 46px rgba(62,31,146,.18);background:radial-gradient(circle at 78% 12%,rgba(186,244,59,.28),transparent 28%),linear-gradient(125deg,#17171c 0%,#342163 52%,#6032db 100%)}
.credit-hero{background:radial-gradient(circle at 82% 8%,rgba(186,244,59,.27),transparent 27%),linear-gradient(125deg,#17171c 0%,#2f2455 54%,#5421d6 100%)}
.report-hero:after,.credit-hero:after{content:"";position:absolute;width:210px;height:210px;border:32px solid rgba(255,255,255,.055);border-radius:50%;right:8%;bottom:-105px}.report-hero>*,.credit-hero>*{position:relative;z-index:1}
.report-eyebrow{display:inline-flex;color:var(--ui-accent);font-size:9px;letter-spacing:.18em;font-weight:950;margin-bottom:8px}.report-hero h3,.credit-hero h3{font-size:30px;font-weight:950;letter-spacing:-.045em;margin:0 0 6px}.report-hero p,.credit-hero p{margin:0;color:rgba(255,255,255,.68);font-size:13px;font-weight:600}
.report-hero-icon,.credit-hero-icon{width:74px;height:74px;border-radius:23px;display:grid;place-items:center;font-size:31px;color:#17171c;background:linear-gradient(145deg,#d5ff78,var(--ui-accent));box-shadow:0 14px 28px rgba(186,244,59,.22);flex:0 0 auto}
.report-filter-card{overflow:visible}.report-filter-card>.panel-card-header{background:linear-gradient(90deg,#fbfaff,#fff)}.report-filter-card>.p-4{padding:22px!important}.report-filter-card label{color:#777284;text-transform:uppercase;letter-spacing:.06em;font-size:9px!important}
.report-filter-card .form-control,.report-filter-card .form-select{min-height:44px;background:#faf9fd;border-color:#e4e0ef}.report-filter-card button[onclick="raporOlustur()"]{min-height:44px;background:linear-gradient(135deg,var(--ui-purple),var(--ui-purple-2))!important;box-shadow:0 9px 20px rgba(84,33,214,.2)}
.report-content{margin-top:22px}.report-period-strip{padding:13px 16px;margin-bottom:17px;border-radius:16px;background:linear-gradient(90deg,#f0ebff,#f8f6ff);border:1px solid #e2d9fa;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#6d6480;font-size:12px}.report-period-strip i{color:var(--ui-purple);margin-right:8px}.report-period-strip strong{color:var(--ui-ink)}
.report-order-count{background:#fff;border:1px solid #e4ddf6;border-radius:99px;padding:5px 10px;color:var(--ui-purple);font-weight:850}.report-kpi{position:relative;overflow:hidden;min-height:150px;display:flex;flex-direction:column;justify-content:center}.report-kpi:after{content:"";position:absolute;right:-24px;top:-28px;width:86px;height:86px;border-radius:50%;background:linear-gradient(135deg,rgba(84,33,214,.08),rgba(186,244,59,.13))}
.report-content>.row .panel-card{height:100%}.report-content .table-custom thead th{background:#f5f3fa;color:#777284;text-transform:uppercase;font-size:9px;letter-spacing:.08em}.report-content .table-custom tbody tr:hover{background:#faf8ff}
.best-seller-row{display:flex;align-items:center;gap:12px;padding:11px 12px;margin-bottom:8px;border-radius:16px;background:linear-gradient(105deg,#f8f7fb,#fff);border:1px solid #ece9f3;transition:.18s ease}.best-seller-row:hover{transform:translateX(3px);border-color:#d8cdf4;box-shadow:0 8px 20px rgba(46,33,84,.06)}
.best-seller-rank{width:31px;height:31px;flex:0 0 31px;border-radius:11px;display:grid;place-items:center;background:#eceaf1;color:#6f6a7a;font-weight:950;font-size:12px}.best-seller-rank.rank-1{background:linear-gradient(145deg,#d9ff82,var(--ui-accent));color:#263400;box-shadow:0 6px 14px rgba(186,244,59,.2)}.best-seller-rank.rank-2{background:linear-gradient(145deg,#ede8ff,#cfbfff);color:#5421d6}.best-seller-rank.rank-3{background:linear-gradient(145deg,#efe8dc,#dfc49c);color:#7a4e15}
.best-seller-main{min-width:0;flex:1}.best-seller-title{font-size:12px;font-weight:850;color:var(--ui-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.best-seller-track{height:5px;border-radius:99px;background:#eae7f1;margin-top:7px;overflow:hidden}.best-seller-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--ui-purple),#8b64f1,var(--ui-accent))}.best-seller-count{min-width:58px;text-align:right;font-size:14px;font-weight:950;color:var(--ui-purple)}.best-seller-count small{font-size:8px;color:var(--ui-muted);font-weight:800;text-transform:uppercase}.report-top-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px}
#pageVeresiye{max-width:1500px;margin:0 auto}#pageVeresiye>.row .stat-card{position:relative;overflow:hidden}#pageVeresiye>.row .stat-card:after{content:"";position:absolute;right:-30px;bottom:-38px;width:95px;height:95px;border-radius:50%;background:linear-gradient(135deg,rgba(84,33,214,.06),rgba(186,244,59,.11))}#pageVeresiye>.panel-card>.panel-card-header{background:linear-gradient(90deg,#fbfaff,#fff)}
.credit-customer-card{border:1px solid #e8e4ef;background:#fff;border-radius:21px;margin-bottom:14px;overflow:hidden;box-shadow:0 8px 25px rgba(38,29,65,.05)}.credit-customer-card.is-open{border-left:4px solid var(--ui-purple)}.credit-customer-card.is-paid{border-left:4px solid #96cf20}.credit-customer-head{padding:17px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:linear-gradient(105deg,#f6f2ff 0%,#fff 72%);border-bottom:1px solid #ebe7f2}.credit-customer-card.is-paid .credit-customer-head{background:linear-gradient(105deg,#f5ffe1 0%,#fff 72%)}
.credit-entry-list{padding:5px 14px 11px}.credit-entry{padding:13px 5px;border-bottom:1px solid #eeebf3}.credit-entry:last-child{border-bottom:0}.credit-products{margin-top:10px;border:1px solid #e8e4f0;border-radius:14px;overflow:hidden;background:#faf9fd}.credit-products>div:first-child{background:linear-gradient(90deg,#f0ebff,#f9f7ff)!important;color:#625778!important}.credit-customer-head .btn-primary{background:linear-gradient(135deg,var(--ui-purple),var(--ui-purple-2));border:0}
[data-theme="dark"] .report-filter-card>.panel-card-header,[data-theme="dark"] #pageVeresiye>.panel-card>.panel-card-header{background:linear-gradient(90deg,#211c30,#1c1c23)}[data-theme="dark"] .report-filter-card .form-control,[data-theme="dark"] .report-filter-card .form-select{background:#22222b;border-color:#373541;color:#f5f4f8}[data-theme="dark"] .report-period-strip{background:linear-gradient(90deg,#282035,#211e2c);border-color:#3b3150;color:#aaa7b5}[data-theme="dark"] .report-period-strip strong{color:#fff}[data-theme="dark"] .report-order-count{background:#29242f;border-color:#45385e;color:#cbbaff}
[data-theme="dark"] .best-seller-row{background:linear-gradient(105deg,#23232b,#1e1e25);border-color:#32323d}[data-theme="dark"] .best-seller-title{color:#f6f5fa}[data-theme="dark"] .best-seller-track{background:#373741}[data-theme="dark"] .credit-customer-card{background:#1c1c23;border-color:#34343f}[data-theme="dark"] .credit-customer-head{background:linear-gradient(105deg,#292139,#1c1c23)}[data-theme="dark"] .credit-customer-card.is-paid .credit-customer-head{background:linear-gradient(105deg,#27331c,#1c1c23)}[data-theme="dark"] .credit-entry{border-color:#30303b}[data-theme="dark"] .credit-products{background:#202028;border-color:#353540}
@media(max-width:767.98px){.report-hero,.credit-hero{min-height:138px;padding:22px 20px;border-radius:22px}.report-hero h3,.credit-hero h3{font-size:24px}.report-hero p,.credit-hero p{font-size:11px;max-width:270px}.report-hero-icon,.credit-hero-icon{width:58px;height:58px;border-radius:18px;font-size:25px}.report-filter-card>.p-4{padding:15px!important}.report-top-products{grid-template-columns:1fr}.report-period-strip{align-items:flex-start;flex-direction:column}.best-seller-row{gap:9px;padding:10px}.best-seller-rank{width:28px;height:28px;flex-basis:28px}.best-seller-title{font-size:11px}.best-seller-count{font-size:12px;min-width:49px}.credit-customer-head{padding:14px}.credit-entry-list{padding:4px 10px 9px}}

/* Gece modu bütünlük düzeltmeleri */
[data-theme="dark"]{
  --ui-bg:#101016;--ui-surface:#1b1b23;--ui-surface-soft:#23232d;--ui-ink:#f5f4f8;--ui-muted:#aaa7b4;--ui-line:#34333f;
  --bg:#101016;--card-bg:#1b1b23;--card:#1b1b23;--text:#f5f4f8;--text-muted:#aaa7b4;--border:#34333f;
  --app-bg:#101016;--surface:#1b1b23;--surface-2:#23232d;--ink:#f5f4f8;--muted:#aaa7b4;--line:#34333f;--input-bg:#20202a;--topbar-bg:#15151d;
  color-scheme:dark;
}
[data-theme="dark"] body,[data-theme="dark"] .main-wrap,[data-theme="dark"] .content{background:#101016!important;color:#f5f4f8!important}
[data-theme="dark"] .topbar{background:#151b2b!important;border-bottom:1px solid #263147!important}
[data-theme="dark"] .sidebar,[data-theme="dark"] .panel-card,[data-theme="dark"] .stat-card,[data-theme="dark"] .modal-content,[data-theme="dark"] .offcanvas{background:#1b1b23!important;color:#f5f4f8!important;border-color:#34333f!important}
[data-theme="dark"] .panel-card-header,[data-theme="dark"] .modal-header,[data-theme="dark"] .modal-footer{background:#1d1d26!important;border-color:#34333f!important}
[data-theme="dark"] h1,[data-theme="dark"] h2,[data-theme="dark"] h3,[data-theme="dark"] h4,[data-theme="dark"] h5,[data-theme="dark"] h6,[data-theme="dark"] .fw-bold,[data-theme="dark"] .fw-black{color:#f5f4f8!important}
[data-theme="dark"] .text-muted,[data-theme="dark"] small,[data-theme="dark"] .stat-lbl{color:#aaa7b4!important}
[data-theme="dark"] .form-control,[data-theme="dark"] .form-select,[data-theme="dark"] .input-group-text,[data-theme="dark"] textarea{background:#20202a!important;color:#f5f4f8!important;border-color:#383746!important}
[data-theme="dark"] .form-control::placeholder,[data-theme="dark"] textarea::placeholder{color:#747381!important}
[data-theme="dark"] .form-control:focus,[data-theme="dark"] .form-select:focus{background:#24232e!important;border-color:#7550df!important;box-shadow:0 0 0 4px rgba(100,61,215,.16)!important}
[data-theme="dark"] .table{--bs-table-bg:transparent;--bs-table-color:#ecebf1;--bs-table-border-color:#34333f;--bs-table-hover-bg:#24242e;--bs-table-hover-color:#fff}
[data-theme="dark"] .table-custom tbody td,[data-theme="dark"] .table tbody td{background:#1b1b23!important;color:#ecebf1!important;border-color:#34333f!important}
[data-theme="dark"] .table-custom thead th,[data-theme="dark"] .table thead th{background:#24242e!important;color:#aaa7b4!important;border-color:#34333f!important}
[data-theme="dark"] .dropdown-menu{background:#202029!important;border-color:#373642!important}[data-theme="dark"] .dropdown-item{color:#e9e8ee!important}[data-theme="dark"] .dropdown-item:hover{background:#2b2935!important;color:#fff!important}

[data-theme="dark"] #pageDashboard .dashboard-hero{background:radial-gradient(circle at 82% 18%,rgba(186,244,59,.18),transparent 30%),linear-gradient(120deg,#1c1b25 0%,#2a2440 58%,#3d2d67 100%)!important;border:1px solid #353242}
[data-theme="dark"] #pageDashboard .dashboard-hero h3,[data-theme="dark"] #pageDashboard .dashboard-hero small{color:#fff!important;text-shadow:none!important}
[data-theme="dark"] #pageDashboard .dashboard-hero>div>small:first-child{color:#cdbdff!important}
[data-theme="dark"] #pageDashboard .dashboard-hero .btn{background:linear-gradient(145deg,#d5ff78,#baf43b)!important;color:#172000!important}
[data-theme="dark"] .dash-shortcut{background:linear-gradient(145deg,#1f1f28,#1a1a21)!important;border-color:#353440!important;color:#f5f4f8!important}
[data-theme="dark"] .dash-shortcut i{background:#2e2544!important;color:#c8b5ff!important}
[data-theme="dark"] #dashTodoCard{background:#1b1b23!important;border-color:#34333f!important}
[data-theme="dark"] #dashTodoCard .panel-card-header{background:#201d2b!important}
[data-theme="dark"] #dashTodoCard>.p-3,[data-theme="dark"] #todoListe{background:#1b1b23!important}
[data-theme="dark"] #todoListe>div{border-color:#34333f!important;background:transparent!important}
[data-theme="dark"] #dashTodoCard .btn{background:linear-gradient(135deg,#5421d6,#7548e9)!important}

[data-theme="dark"] #pagePOS,[data-theme="dark"] #posLeftCol,[data-theme="dark"] #posUrunGrid{background:#101016!important}
[data-theme="dark"] #posLeftCol,[data-theme="dark"] #posRightCol{border-color:#34333f!important;box-shadow:0 16px 40px rgba(0,0,0,.28)!important}
[data-theme="dark"] #posLeftCol>div:first-child,[data-theme="dark"] #posLeftCol>div:nth-of-type(3),[data-theme="dark"] #posLeftCol>div:nth-of-type(4),[data-theme="dark"] #posRightCol,[data-theme="dark"] #posRightCol>div:last-child{background:#1b1b23!important;border-color:#34333f!important}
[data-theme="dark"] #posSatisSekmeleri,[data-theme="dark"] #posMusteriAlani,[data-theme="dark"] .pos-sepet-item{background:#202029!important;border-color:#34333f!important}
[data-theme="dark"] .pos-urun-kart{background:#1e1e26!important;border:1px solid #34333f!important;box-shadow:0 8px 22px rgba(0,0,0,.2)!important}
[data-theme="dark"] .pos-urun-kart:hover{border-color:#7550df!important;box-shadow:0 13px 28px rgba(0,0,0,.32)!important}
[data-theme="dark"] .pos-urun-img{background:#292933!important}
[data-theme="dark"] .pos-urun-body{background:#1e1e26!important}
[data-theme="dark"] .pos-urun-ad{color:#f4f3f7!important}
[data-theme="dark"] .pos-urun-fiyat{color:#baf43b!important}
[data-theme="dark"] .pos-kat-tab{background:#292832!important;color:#c1beca!important;border:1px solid #34333f!important}
[data-theme="dark"] .pos-kat-tab.active{background:linear-gradient(135deg,#5421d6,#7042e6)!important;color:#fff!important;border-color:#7042e6!important}
[data-theme="dark"] .pos-odeme-btn{background:#24242d!important;color:#efedf4!important;border-color:#383744!important}
[data-theme="dark"] .pos-odeme-btn:hover{background:#2c2b36!important;border-color:#66518f!important}
[data-theme="dark"] .pos-odeme-btn.active{background:linear-gradient(135deg,#5421d6,#7042e6)!important;color:#fff!important;border-color:#7042e6!important}
[data-theme="dark"] #posRightCol>div:last-child>div:nth-child(3){background:linear-gradient(120deg,#292139,#201d2b)!important;color:#fff!important;border:1px solid #513d7f!important}
[data-theme="dark"] #posRightCol>div:last-child>div:nth-child(3) span{color:#fff!important}
[data-theme="dark"] #posRightCol div:has(> #posToplam){background:linear-gradient(120deg,#292139,#201d2b)!important;color:#fff!important;border:1px solid #513d7f!important}
[data-theme="dark"] #posRightCol div:has(> #posToplam)>span:first-child{color:#f5f4f8!important}
[data-theme="dark"] #posToplam{color:#baf43b!important}

[data-theme="dark"] .report-hero,[data-theme="dark"] .credit-hero{border:1px solid #40365b}
[data-theme="dark"] .report-kpi,[data-theme="dark"] .credit-customer-card,[data-theme="dark"] .best-seller-row{background:#1e1e26!important;border-color:#34333f!important}
[data-theme="dark"] .credit-customer-head{background:linear-gradient(105deg,#292139,#1e1e26)!important}
[data-theme="dark"] .credit-customer-card.is-paid .credit-customer-head{background:linear-gradient(105deg,#26351d,#1e1e26)!important}
[data-theme="dark"] .credit-products,[data-theme="dark"] .report-period-strip{background:#24232d!important;border-color:#393745!important}
[data-theme="dark"] .best-seller-title,[data-theme="dark"] .credit-entry,[data-theme="dark"] .report-period-strip strong{color:#f3f2f6!important}

@media(max-width:575px){
  :root{--ui-radius:20px}
  .topbar-left h5{font-size:18px}
  #pageDashboard .dashboard-hero{margin-bottom:12px!important}
  #pageDashboard .dashboard-hero:after{display:none}
  #pageDashboard .dashboard-hero .btn{width:auto;font-size:12px;padding:10px 13px}
  .dash-shortcuts{grid-template-columns:repeat(3,1fr);gap:8px}
  .dash-shortcut{padding:9px 6px;font-size:10px}
  .panel-card-header{min-height:56px;padding:14px 16px}
  .stat-card{padding:15px!important}
  .stat-val{font-size:17px;letter-spacing:-.055em}
  #pageIstatistik #istatStatRow>.col-6{width:50%}
  #pageIstatistik #istatStatRow .stat-card{min-height:104px;padding:12px!important}
  #pageIstatistik #istatStatRow .stat-card>.d-flex{gap:8px!important}
  #pageIstatistik #istatStatRow .stat-icon{width:38px!important;height:38px!important;font-size:17px!important}
  #pageIstatistik #istatStatRow .stat-val{font-size:15px}
  #pageIstatistik .panel-card-header{align-items:flex-start;gap:10px;flex-wrap:wrap}
  #pageIstatistik #istatUrunAra{max-width:none!important;width:100%}
}

/* Bütün alt sayfalar için ortak tasarım dili */
.content>[id^="page"]:not(#pagePOS){max-width:1500px;margin-inline:auto;animation:uiPageIn .22s ease both}
@keyframes uiPageIn{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:none}}
.content>[id^="page"] .row.g-3{--bs-gutter-x:16px;--bs-gutter-y:16px}
.content>[id^="page"] .card{background:var(--ui-surface);color:var(--ui-ink);border:1px solid rgba(20,20,30,.06)!important;border-radius:20px!important;box-shadow:var(--ui-shadow)}
.content>[id^="page"] .card-header,.content>[id^="page"] .card-footer{background:transparent;border-color:var(--ui-line)}
.table-responsive{border-radius:0 0 var(--ui-radius) var(--ui-radius);scrollbar-color:#cfcfd8 transparent}
.table{--bs-table-bg:transparent;--bs-table-color:var(--ui-ink);margin-bottom:0}
.table>:not(caption)>*>*{padding:13px 15px;border-color:var(--ui-line);vertical-align:middle}
.table thead th,.table-custom thead th{
  background:#f7f7fa!important;
  color:#7c7c89!important;
  border:0!important;
  border-bottom:1px solid var(--ui-line)!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.table tbody tr{transition:background .15s}
.table tbody tr:hover>*{background:#fafafd!important}
.form-label{font-size:11px;font-weight:800!important;color:var(--ui-muted);letter-spacing:.015em}
.form-control,.form-select,.input-group-text{min-height:42px;background:var(--ui-surface);color:var(--ui-ink);border:1px solid var(--ui-line);border-radius:13px!important}
.input-group>.form-control,.input-group>.form-select,.input-group>.input-group-text,.input-group>.btn{border-radius:0!important}
.input-group>:first-child{border-radius:13px 0 0 13px!important}.input-group>:last-child{border-radius:0 13px 13px 0!important}
.form-control-sm,.form-select-sm{min-height:36px}
.nav-pills{padding:5px;background:#e9e9f0;border-radius:15px;gap:4px}
.nav-pills .nav-link{border-radius:11px;color:var(--ui-muted);font-size:12px;font-weight:800}
.nav-pills .nav-link.active{background:var(--ui-surface);color:var(--ui-ink);box-shadow:0 3px 10px rgba(20,20,30,.07)}
.modal-content,.offcanvas{background:var(--ui-surface);color:var(--ui-ink);border:1px solid rgba(20,20,30,.06);border-radius:24px;box-shadow:0 24px 70px rgba(20,20,35,.18)}
.modal-header{background:transparent!important;color:var(--ui-ink)!important;border-bottom:1px solid var(--ui-line);padding:18px 20px}
.modal-title{font-weight:900;letter-spacing:-.025em}.modal-footer{border-color:var(--ui-line)}
.alert{border-radius:16px;border-width:1px;font-size:12px}
.pagination{gap:5px}.pagination .page-link{border:0;border-radius:10px!important;background:var(--ui-surface-soft);color:var(--ui-ink);font-weight:800}.pagination .active .page-link{background:#17171c;color:#fff}
.badge{border-radius:999px!important;padding:.42em .72em;font-weight:850}

/* POS / Kasa */
.main-wrap.pos-full{background:var(--ui-bg)}
.main-wrap.pos-full .topbar{height:64px;margin:0 12px;border-radius:0}
.main-wrap.pos-full .content{padding:10px 12px 12px!important}
#pagePOS{height:calc(100dvh - 76px)!important;background:var(--ui-bg)!important}
#pagePOS>.row{gap:12px;flex-wrap:nowrap}
#posLeftCol,#posRightCol{border:1px solid rgba(20,20,30,.055)!important;border-radius:24px;overflow:hidden!important;box-shadow:var(--ui-shadow)}
@media(min-width:992px){#posLeftCol{width:calc(66.666% - 6px)!important}#posRightCol{width:calc(33.333% - 6px)!important}}
#posLeftCol>div:first-child{padding:14px!important;background:var(--ui-surface)!important;border-bottom:1px solid var(--ui-line)!important}
#posBarkod{height:48px;font-size:15px!important;background:var(--ui-surface-soft)}
#posLeftCol>div:nth-of-type(3){padding:10px 14px!important;background:var(--ui-surface)!important;border-bottom:1px solid var(--ui-line)!important}
#posLeftCol>div:nth-of-type(4){padding:9px 14px!important;background:var(--ui-surface)!important;border-bottom:1px solid var(--ui-line)!important}
#posUrunGrid{padding:14px!important;background:var(--ui-bg)!important}
#posUrunDragGrid{grid-template-columns:repeat(auto-fill,minmax(126px,1fr))!important;gap:12px!important}
.pos-urun-kart{border:0!important;border-radius:18px!important;background:var(--ui-surface)!important;box-shadow:0 7px 22px rgba(20,20,35,.06)!important}
.pos-urun-kart:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(20,20,35,.11)!important}
.pos-urun-img{aspect-ratio:1.18!important;background:#f4f4f7!important}
.pos-urun-body{padding:10px!important}.pos-urun-ad{font-size:11px!important;font-weight:700!important;line-height:1.36!important;letter-spacing:-.018em;min-height:30px!important;color:var(--ui-ink)!important}.pos-urun-fiyat{font-size:15px!important;font-weight:800!important;letter-spacing:-.025em;color:var(--ui-purple)!important}
.pos-kat-tab{padding:7px 13px;border:0!important;background:#f1f1f5!important;color:#666672!important;border-radius:12px!important}
.pos-kat-tab.active{background:#17171c!important;color:#fff!important}.pos-kat-tab.active:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--ui-accent);margin-right:7px;vertical-align:1px}
#posRightCol{background:var(--ui-surface)!important}
#posSatisSekmeleri{background:#f5f5f8!important;border-bottom:1px solid var(--ui-line)!important;padding:10px!important}
#posMusteriAlani{background:#fafafd!important;border-color:var(--ui-line)!important}
#posSepetListesi{padding:12px!important}.pos-sepet-item{padding:10px!important;border:0!important;border-radius:15px!important;background:#f6f6f9!important}
.pos-sepet-emoji{border-radius:12px;background:#ececf2!important}
#posRightCol>div:last-child{max-height:47%;background:var(--ui-surface)!important;border-color:var(--ui-line)!important;padding:14px 14px 78px!important}
#posRightCol>div:last-child>div:nth-child(3){border:0!important;border-radius:16px!important;background:#17171c!important;color:#fff!important;padding:11px 13px!important}
#posToplam{color:var(--ui-accent)!important}
.pos-odeme-btn{border:1px solid var(--ui-line)!important;background:#f6f6f9!important;border-radius:13px!important;color:var(--ui-ink)!important;min-height:44px!important}
.pos-odeme-btn:hover{border-color:#b8b8c4!important}.pos-odeme-btn.active{background:#17171c!important;color:#fff!important;border-color:#17171c!important;box-shadow:0 6px 16px rgba(20,20,25,.13)}
#posSatisiBitirBtn{background:var(--ui-accent)!important;color:var(--ui-accent-ink)!important;border:0;border-radius:14px!important;box-shadow:0 10px 25px rgba(154,205,38,.25)!important}

/* Veresiye / Borç */
#pageVeresiye>.row:first-child{margin-bottom:18px!important}
#pageVeresiye>.row:first-child .stat-card{min-height:118px;position:relative;overflow:hidden}
#pageVeresiye>.row:first-child .stat-card:after{content:"";position:absolute;right:-24px;bottom:-35px;width:105px;height:105px;border-radius:50%;background:rgba(77,22,215,.035)}
#pageVeresiye #vrListe{display:grid;gap:12px}
#pageVeresiye #vrListe>.border,#pageVeresiye #vrListe>.card,#pageVeresiye #vrListe>div{border-color:var(--ui-line)!important;border-radius:18px!important;box-shadow:none}
#pageVeresiye #vrListe .btn{border-radius:11px!important}
#pageVeresiye #vrListe [style*="background"]{border-radius:14px}

/* Yeniden düzenlenen istatistikler */
#pageIstatistik #istatStatRow .stat-value-wrap{min-width:0;flex:1;overflow:hidden}
#pageIstatistik #istatStatRow .stat-val{font-size:clamp(16px,1.35vw,23px);overflow:hidden;text-overflow:ellipsis;display:block}
#pageIstatistik>.row.g-3:not(#istatStatRow){grid-template-columns:minmax(0,1.65fr) minmax(340px,.85fr);gap:18px;grid-template-areas:"trend payment" "detail top"}
#pageIstatistik #istatChart{height:320px!important;min-height:0;max-height:none}
#pageIstatistik #odemeChart{height:280px!important;max-height:none}
#pageIstatistik #istatEnCok{padding:18px!important}
#pageIstatistik #istatEnCok .progress{height:5px!important;background:#ededf3;border-radius:10px;overflow:hidden}
#pageIstatistik #istatEnCok .progress-bar{background:var(--ui-purple)!important;border-radius:10px}
#pageIstatistik #istatEnCok .badge{background:#17171c!important;color:var(--ui-accent)}

[data-theme="dark"] .table thead th,[data-theme="dark"] .table-custom thead th{background:#24242c!important;color:#aaaab5!important}
[data-theme="dark"] .table tbody tr:hover>*{background:#23232b!important}
[data-theme="dark"] .nav-pills{background:#101015}
[data-theme="dark"] .nav-pills .nav-link.active{background:#303039;color:#fff}
[data-theme="dark"] .pos-urun-img,[data-theme="dark"] #posSatisSekmeleri,[data-theme="dark"] #posMusteriAlani,[data-theme="dark"] .pos-sepet-item,[data-theme="dark"] .pos-odeme-btn{background:#24242c!important}
[data-theme="dark"] .pos-kat-tab{background:#292931!important;color:#bbb!important}
[data-theme="dark"] #posRightCol>div:last-child>div:nth-child(3){background:#f3f3f6!important;color:#17171c!important}
[data-theme="dark"] #posToplam{color:var(--ui-purple)!important}

@media(max-width:991px){
  #pagePOS{height:auto!important;overflow:visible!important}
  #pagePOS>.row{display:block}
  #posLeftCol,#posRightCol{border-radius:20px}
  #posUrunDragGrid{grid-template-columns:repeat(auto-fill,minmax(105px,1fr))!important;gap:9px!important}
  #pageIstatistik>.row.g-3:not(#istatStatRow){display:flex!important}
}
/* ── Bal Asistan ───────────────────────────────────────────── */
#pageAsistan{max-width:1480px;margin:0 auto}.ai-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;min-height:190px;padding:34px 40px;margin-bottom:20px;border-radius:32px;color:#fff;background:linear-gradient(125deg,#171229 0%,#5125d7 54%,#8b5cf6 100%);box-shadow:0 18px 50px rgba(76,29,149,.22)}.ai-hero:after{content:"";position:absolute;width:290px;height:290px;border:45px solid rgba(255,255,255,.1);border-radius:50%;right:90px;top:-120px}.ai-eyebrow{display:inline-flex;gap:7px;align-items:center;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.13);font-size:12px;font-weight:700}.ai-hero h2{font-size:40px;line-height:1;margin:20px 0 10px;font-weight:800}.ai-hero p{margin:0;opacity:.78;max-width:650px}.ai-orb{position:relative;z-index:1;display:grid;place-items:center;width:92px;height:92px;border-radius:28px;background:rgba(255,255,255,.16);backdrop-filter:blur(15px);font-size:38px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}.ai-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px}.ai-chat-card,.ai-settings-card{border:1px solid var(--border,#e8e7ee);border-radius:28px;background:var(--card,#fff);box-shadow:0 12px 38px rgba(24,18,45,.07)}.ai-chat-card{min-height:600px;display:flex;flex-direction:column;overflow:hidden}.ai-chat-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--border,#eee)}.ai-chat-head>div,.ai-settings-title>div{display:flex;flex-direction:column}.ai-chat-head strong{font-size:17px}.ai-chat-head small,.ai-settings-title small{color:var(--muted,#8b8798)}.ai-suggestions{display:flex;gap:8px;overflow:auto;padding:15px 22px;border-bottom:1px solid var(--border,#eee)}.ai-suggestions button{white-space:nowrap;border:1px solid rgba(109,40,217,.17);background:rgba(109,40,217,.07);color:#6d28d9;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:700}.ai-messages{flex:1;min-height:340px;max-height:560px;overflow:auto;padding:24px}.ai-welcome{height:100%;min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted,#7d7889);gap:8px}.ai-welcome i{display:grid;place-items:center;width:64px;height:64px;margin-bottom:5px;border-radius:22px;color:#6d28d9;background:linear-gradient(145deg,#ede9fe,#f5f3ff);font-size:27px}.ai-welcome strong{color:var(--text,#1f1b2d);font-size:18px}.ai-message{display:flex;align-items:flex-start;gap:10px;margin:0 0 18px}.ai-message.user{flex-direction:row-reverse}.ai-avatar{flex:0 0 34px;width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:#ede9fe;color:#6d28d9}.ai-message.user .ai-avatar{background:#171229;color:#fff}.ai-bubble{max-width:min(76%,720px);padding:12px 15px;border-radius:8px 20px 20px 20px;background:var(--soft,#f4f3f8);line-height:1.55;font-size:14px}.ai-message.user .ai-bubble{border-radius:20px 8px 20px 20px;background:linear-gradient(135deg,#6d28d9,#8b5cf6);color:#fff}.ai-message.loading .ai-bubble{display:flex;gap:5px;padding:17px}.ai-message.loading .ai-bubble span{width:7px;height:7px;border-radius:50%;background:#8b5cf6;animation:aiDot 1s infinite}.ai-message.loading .ai-bubble span:nth-child(2){animation-delay:.16s}.ai-message.loading .ai-bubble span:nth-child(3){animation-delay:.32s}@keyframes aiDot{0%,60%,100%{transform:translateY(0);opacity:.35}30%{transform:translateY(-5px);opacity:1}}.ai-composer{display:flex;gap:10px;padding:16px;border-top:1px solid var(--border,#eee)}.ai-composer textarea{flex:1;resize:none;border:1px solid var(--border,#ddd);border-radius:17px;padding:13px 15px;background:var(--soft,#f7f6fa);color:var(--text,#1f1b2d);outline:none}.ai-composer textarea:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px rgba(139,92,246,.12)}.ai-composer button,.ai-save{border:0;border-radius:16px;padding:0 22px;background:linear-gradient(135deg,#5b21b6,#8b5cf6);color:#fff;font-weight:750}.ai-composer button:disabled{opacity:.55}.ai-settings-card{align-self:start;padding:24px}.ai-settings-title{display:flex;gap:12px;align-items:center;margin-bottom:24px}.ai-settings-title>i{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:#ede9fe;color:#6d28d9;font-size:20px}.ai-settings-title .ok{color:#16a34a}.ai-settings-title .bad{color:#dc2626}.ai-settings-card>label:not(.ai-switch){display:block;margin:18px 0 7px;font-size:12px;font-weight:800}.ai-settings-card input,.ai-settings-card select{width:100%;border:1px solid var(--border,#ddd);background:var(--soft,#f7f6fa);color:var(--text,#222);padding:11px 12px;border-radius:13px}.ai-key-row{display:flex}.ai-key-row input{border-radius:13px 0 0 13px}.ai-key-row button{border:1px solid var(--border,#ddd);border-left:0;border-radius:0 13px 13px 0;background:var(--soft,#f7f6fa);padding:0 13px;color:var(--muted,#777)}.ai-settings-card>small{display:block;margin-top:6px;color:var(--muted,#888);font-size:11px}.ai-switch{display:flex;align-items:center;gap:10px;margin:22px 0;cursor:pointer}.ai-switch input{display:none}.ai-switch span{position:relative;width:44px;height:24px;border-radius:20px;background:#d8d5df;transition:.2s}.ai-switch span:after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:white;transition:.2s}.ai-switch input:checked+span{background:#7c3aed}.ai-switch input:checked+span:after{transform:translateX(20px)}.ai-save{width:100%;padding:13px}.ai-privacy{display:flex;gap:9px;margin-top:18px;padding:13px;border-radius:15px;background:rgba(34,197,94,.08);color:#418258;font-size:11px;line-height:1.45}
body.dark-mode .ai-chat-card,body.dark-mode .ai-settings-card{--card:#1b1a21;--soft:#24232c;--border:#34323e;--text:#f5f3ff;--muted:#aaa5b7}body.dark-mode .ai-suggestions button{background:rgba(139,92,246,.14);color:#c4b5fd}body.dark-mode .ai-welcome i,body.dark-mode .ai-settings-title>i{background:#2e2545;color:#c4b5fd}
@media(max-width:900px){.ai-layout{grid-template-columns:1fr}.ai-settings-card{order:-1}.ai-hero{min-height:150px;padding:26px;border-radius:24px}.ai-hero h2{font-size:30px}.ai-orb{display:none}.ai-chat-card,.ai-settings-card{border-radius:22px}.ai-suggestions{padding:12px}.ai-messages{padding:16px;max-height:52vh}.ai-bubble{max-width:88%}.ai-composer button{padding:0 16px}.ai-composer button span{display:none}}
/* ── Operasyon Merkezi ───────────────────────────── */
.ops-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;margin-bottom:16px;border-radius:26px;color:#fff;background:radial-gradient(circle at 85% 10%,rgba(197,255,55,.34),transparent 28%),linear-gradient(125deg,#151225 0%,#352064 55%,#6d28d9 100%);box-shadow:0 18px 45px rgba(76,29,149,.18)}
.ops-hero h2{margin:6px 0 4px;font-size:29px;font-weight:850;letter-spacing:-.7px}.ops-hero p{margin:0;color:#ddd6fe}.ops-eyebrow{font-size:11px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:#d9ff73}.ops-hero-actions{display:flex;gap:8px;align-items:center}.ops-hero-actions .form-control{min-width:160px;background:#ffffffed;border:0}.ops-hero-actions .btn{white-space:nowrap;font-weight:750}
.ops-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.ops-kpis article{position:relative;overflow:hidden;min-height:114px;padding:19px 20px;border:1px solid var(--line,#e5e7eb);border-radius:21px;background:var(--surface,#fff);box-shadow:0 8px 24px rgba(30,27,75,.055)}.ops-kpis article:after{content:"";position:absolute;right:-25px;bottom:-35px;width:90px;height:90px;border-radius:50%;background:linear-gradient(145deg,rgba(109,40,217,.12),rgba(196,255,48,.16))}.ops-kpis span{display:block;color:var(--muted,#64748b);font-size:12px;font-weight:700}.ops-kpis strong{display:block;margin-top:9px;color:var(--ink,#171727);font-size:22px;font-weight:850}.ops-kpis i{position:absolute;right:18px;top:17px;display:grid;place-items:center;width:36px;height:36px;border-radius:12px;color:#6d28d9;background:#f2ebff}
.ops-tabs{display:flex;gap:5px;padding:6px;margin-bottom:16px;overflow:auto;border:1px solid var(--line,#e5e7eb);border-radius:18px;background:var(--surface,#fff);scrollbar-width:none}.ops-tabs button{border:0;border-radius:13px;padding:10px 14px;white-space:nowrap;color:var(--muted,#64748b);background:transparent;font-size:12px;font-weight:750}.ops-tabs button i{margin-right:5px}.ops-tabs button.active{color:#fff;background:linear-gradient(135deg,#6d28d9,#4f46e5);box-shadow:0 6px 16px rgba(109,40,217,.22)}
.ops-panel{display:none;padding:22px;border:1px solid var(--line,#e5e7eb);border-radius:24px;background:var(--surface,#fff);box-shadow:0 12px 35px rgba(30,27,75,.055)}.ops-panel.active{display:block}.ops-panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.ops-panel-head h5{margin:0;color:var(--ink,#171727);font-weight:850}.ops-panel-head p{margin:3px 0 0;color:var(--muted,#64748b);font-size:12px}.ops-status{padding:6px 12px;border-radius:99px;color:#166534;background:#dcfce7;font-size:11px;font-weight:800}.ops-status.closed{color:#991b1b;background:#fee2e2}
.ops-two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:15px}.ops-form-card,.ops-list-card{padding:18px;border:1px solid var(--line,#e5e7eb);border-radius:18px;background:var(--surface-soft,#f8f8fc)}.ops-form-card h6,.ops-list-card h6{margin:0 0 14px;color:var(--ink,#171727);font-weight:800}.ops-form-card label{display:block;margin:11px 0 5px;color:var(--ink,#171727);font-size:11px;font-weight:750}.ops-form-card .form-control,.ops-form-card .form-select,.ops-search .form-control{border-color:var(--line,#dfe2ea);border-radius:12px;background:var(--surface,#fff);color:var(--ink,#171727)}.ops-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.ops-summary div{padding:12px;border:1px solid var(--line,#e5e7eb);border-radius:13px;background:var(--surface,#fff)}.ops-summary span,.ops-summary b{display:block}.ops-summary span{font-size:10px;color:var(--muted,#64748b)}.ops-summary b{margin-top:4px;color:var(--ink,#171727)}
.ops-primary,.ops-secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;margin-top:14px;border:0;border-radius:12px;padding:11px 15px;font-size:12px;font-weight:800}.ops-primary{color:#fff;background:linear-gradient(135deg,#6d28d9,#4f46e5);box-shadow:0 7px 17px rgba(109,40,217,.2)}.ops-secondary{color:#4c1d95;background:#ede9fe}.ops-search{display:flex;gap:8px;margin-bottom:15px}.ops-search button{border:0;border-radius:12px;padding:0 17px;white-space:nowrap;color:#fff;background:#171727;font-size:12px;font-weight:750}
.ops-list{display:flex;flex-direction:column;gap:7px}.ops-scroll{max-height:390px;overflow:auto}.ops-list-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border:1px solid var(--line,#e5e7eb);border-radius:13px;background:var(--surface,#fff);color:var(--ink,#171727);font-size:12px}.ops-list-row small,.ops-list-row b{display:block}.ops-list-row small{margin-top:3px;color:var(--muted,#64748b);font-size:10px}.ops-sale-result{width:100%;padding:12px;border:1px solid var(--line,#e5e7eb);border-radius:13px;text-align:left;color:var(--ink,#171727);background:var(--surface,#fff)}.ops-sale-result b,.ops-sale-result span,.ops-sale-result small{display:block}.ops-sale-result span{margin:3px 0;font-size:11px}.ops-sale-result small{color:var(--muted,#64748b);font-size:10px}.ops-sale-result:hover{border-color:#8b5cf6;background:#f7f3ff}.ops-return-items{display:flex;flex-direction:column;gap:7px;margin:12px 0}.ops-return-items label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:10px;border:1px solid var(--line,#e5e7eb);border-radius:12px;background:var(--surface,#fff)}.ops-return-items small{display:block;color:var(--muted,#64748b)}.ops-return-items input{width:74px;border:1px solid var(--line,#e5e7eb);border-radius:9px;padding:7px;background:var(--surface,#fff);color:var(--ink,#171727)}
.ops-empty{display:flex;min-height:120px;align-items:center;justify-content:center;flex-direction:column;gap:9px;color:var(--muted,#94a3b8);text-align:center}.ops-empty i{font-size:29px}.ops-empty.small{min-height:65px;font-size:11px}.ops-table-wrap{overflow:auto;border:1px solid var(--line,#e5e7eb);border-radius:15px}.ops-table{width:100%;border-collapse:collapse;color:var(--ink,#171727);font-size:11px}.ops-table th{position:sticky;top:0;z-index:1;padding:11px 12px;text-align:left;color:var(--muted,#64748b);background:var(--surface-soft,#f7f7fb);font-size:10px;text-transform:uppercase;letter-spacing:.5px}.ops-table td{padding:10px 12px;border-top:1px solid var(--line,#e5e7eb);vertical-align:middle}.ops-table td small{display:block;color:var(--muted,#64748b)}.ops-table input{width:90px;border:1px solid var(--line,#e5e7eb);border-radius:9px;padding:7px;background:var(--surface,#fff);color:var(--ink,#171727)}.ops-diff{font-weight:800;color:#6d28d9}.ops-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ops-form-grid.three{grid-template-columns:1.2fr 1fr 1fr}.ops-icon-btn{border:0;border-radius:9px;padding:7px 9px;color:#5b21b6;background:#ede9fe}.ops-icon-btn.danger{margin-left:4px;color:#b91c1c;background:#fee2e2}.ops-suggestions{position:relative;display:flex;flex-wrap:wrap;gap:6px;margin:-8px 0 12px}.ops-suggestions button{padding:8px 10px;border:1px solid #ddd6fe;border-radius:10px;text-align:left;color:#4c1d95;background:#f5f3ff;font-size:10px}.ops-suggestions b,.ops-suggestions small{display:block}.ops-purchase-total{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:14px;color:var(--ink,#171727)}.ops-purchase-total strong{font-size:20px}.ops-sync-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.ops-sync-grid article{padding:16px;border:1px solid var(--line,#e5e7eb);border-radius:16px;background:var(--surface-soft,#f8f8fc)}.ops-sync-grid article i{display:grid;place-items:center;width:34px;height:34px;margin-bottom:12px;border-radius:11px;color:#6d28d9;background:#ede9fe}.ops-sync-grid article span,.ops-sync-grid article strong{display:block}.ops-sync-grid article span{color:var(--muted,#64748b);font-size:10px}.ops-sync-grid article strong{margin-top:4px;color:var(--ink,#171727);font-size:13px}.grid-full{grid-column:1/-1}.ops-chip{display:inline-block;margin:2px;padding:3px 6px;border-radius:6px;color:#5b21b6;background:#ede9fe;font-size:9px}
[data-theme="dark"] .ops-kpis i,[data-theme="dark"] .ops-sync-grid article i{color:#c4b5fd;background:#30234e}[data-theme="dark"] .ops-sale-result:hover{background:#261d3d}[data-theme="dark"] .ops-secondary,[data-theme="dark"] .ops-chip{color:#ddd6fe;background:#30234e}[data-theme="dark"] .ops-suggestions button{color:#ddd6fe;border-color:#4c3b70;background:#251d39}
[data-theme="dark"] .ops-form-card,[data-theme="dark"] .ops-list-card,[data-theme="dark"] .ops-summary div,[data-theme="dark"] .ops-list-row,[data-theme="dark"] .ops-sale-result,[data-theme="dark"] .ops-return-items label,[data-theme="dark"] .ops-sync-grid article{background:#191922;border-color:#31313c}[data-theme="dark"] .ops-table th{background:#20202a}[data-theme="dark"] .ops-table-wrap,[data-theme="dark"] .ops-table td{border-color:#31313c}[data-theme="dark"] .ops-empty{color:#8b8b9b}
@media(max-width:900px){.ops-kpis{grid-template-columns:repeat(2,1fr)}.ops-two-col{grid-template-columns:1fr}.ops-sync-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:575px){.ops-hero{align-items:flex-start;flex-direction:column;padding:20px;border-radius:20px}.ops-hero h2{font-size:24px}.ops-hero-actions{width:100%}.ops-hero-actions .form-control{min-width:0}.ops-kpis{gap:8px}.ops-kpis article{min-height:95px;padding:14px}.ops-kpis strong{font-size:17px}.ops-kpis i{right:12px;top:12px;width:30px;height:30px}.ops-panel{padding:13px;border-radius:18px}.ops-panel-head{align-items:flex-start;flex-direction:column}.ops-summary{grid-template-columns:1fr}.ops-form-grid,.ops-form-grid.three{grid-template-columns:1fr}.ops-sync-grid{grid-template-columns:1fr}.ops-table{min-width:650px}.ops-tabs{position:sticky;top:58px;z-index:20}}

/* ── Satış detayı, notlar ve gizli ciro ──────────── */
.gizli-ciro-tetik{cursor:default;color:inherit}.secret-turnover{overflow:hidden;border:1px solid #ded6ff!important;border-radius:26px!important;background:radial-gradient(circle at 85% 0,#c6ff3d55,transparent 35%),linear-gradient(145deg,#fff,#f1edff)!important;box-shadow:0 28px 90px #35147d35}.secret-icon{display:grid;place-items:center;width:48px;height:48px;margin:6px auto 13px;border-radius:16px;color:#fff;background:linear-gradient(135deg,#6d28d9,#4f46e5);font-size:20px}.secret-turnover small{display:block;color:#74698c;font-size:10px;font-weight:800;letter-spacing:1.4px}.secret-turnover strong{display:block;margin:7px 0 18px;color:#17131f;font-size:31px;font-weight:900}.secret-turnover #gizliCiroDagilim{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.secret-turnover #gizliCiroDagilim span{padding:9px 4px;border-radius:11px;color:#777085;background:#ffffffb8;font-size:9px}.secret-turnover #gizliCiroDagilim b{display:block;margin-top:3px;color:#211a2d;font-size:11px}
.sale-detail-modal{overflow:hidden;border:1px solid var(--ui-line,#e7e4ef)!important;border-radius:26px!important;background:var(--ui-surface,#fff)!important;box-shadow:0 30px 100px #140b273d}.sale-detail-modal>.modal-header{padding:17px 22px;border-color:var(--ui-line,#e7e4ef);background:transparent}.sale-detail-modal>.modal-header h5{font-weight:850}.sale-detail-modal>.modal-body{padding:20px 22px}.sale-detail-modal>.modal-footer{border-color:var(--ui-line,#e7e4ef)}.sale-detail-hero{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px;border-radius:20px;color:#fff;background:radial-gradient(circle at 80% 0,#c6ff3d55,transparent 38%),linear-gradient(130deg,#17121f,#5521a8)}.sale-detail-hero span,.sale-total-badge small{display:block;color:#d8cff0;font-size:9px;font-weight:800;letter-spacing:1.2px}.sale-detail-hero strong{display:block;margin-top:5px;font-size:14px}.sale-total-badge{text-align:right}.sale-total-badge b{display:block;font-size:24px}.sale-meta-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:11px 0}.sale-meta-grid>div{position:relative;padding:13px 11px 12px 38px;border:1px solid var(--ui-line,#e7e4ef);border-radius:14px;background:var(--ui-surface-soft,#f8f7fb)}.sale-meta-grid i{position:absolute;left:12px;top:15px;color:#6d28d9}.sale-meta-grid span,.sale-meta-grid b{display:block}.sale-meta-grid span{color:var(--ui-muted,#787486);font-size:9px}.sale-meta-grid b{margin-top:3px;color:var(--ui-ink,#17171c);font-size:11px}.sale-customer-card{margin-bottom:10px;padding:13px;border:1px solid #b9e99c;border-radius:15px;background:#effbe8}.sale-products{overflow:hidden;border:1px solid var(--ui-line,#e7e4ef);border-radius:17px}.sale-section-title{padding:12px 14px;border-bottom:1px solid var(--ui-line,#e7e4ef);font-size:11px;font-weight:850}.sale-products .table{margin:0}.sale-products .table th{padding:9px 12px;color:var(--ui-muted,#787486);background:var(--ui-surface-soft,#f8f7fb);font-size:9px}.sale-products .table td{padding:11px 12px;border-color:var(--ui-line,#e7e4ef);color:var(--ui-ink,#17171c);font-size:11px}.sale-product-name{font-weight:750}.sale-products td small{color:var(--ui-muted,#787486);font-size:9px}.sale-qty{display:inline-grid;place-items:center;min-width:26px;height:26px;border-radius:8px;color:#5b21b6;background:#ede9fe;font-weight:850}.sale-totals{margin-top:11px;padding:15px;border-radius:16px;background:var(--ui-surface-soft,#f8f7fb);font-size:11px}.sale-grand-total{display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding-top:10px;border-top:1px solid var(--ui-line,#e7e4ef)}.sale-grand-total strong{color:#6d28d9;font-size:20px}.sale-close-btn{padding:8px 18px;border-radius:11px;color:#fff;background:#17171c;font-weight:750}
.notes-pro{overflow:hidden}.notes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.note-pro-card{position:relative;min-height:130px;padding:14px;border:1px solid var(--ui-line,#e7e4ef);border-radius:17px;background:linear-gradient(150deg,color-mix(in srgb,var(--note-color) 18%,white),white 72%);box-shadow:0 8px 20px #1f15310b}.note-pro-card:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;border-radius:17px 0 0 17px;background:var(--note-color)}.note-pro-top{display:flex;align-items:center;justify-content:space-between}.note-pro-top>span{padding:4px 7px;border-radius:7px;color:#494052;background:#ffffffb8;font-size:9px;font-weight:800}.note-pro-top button{border:0;border-radius:7px;padding:4px 6px;color:#6f6879;background:transparent;font-size:10px}.note-pro-top button:hover{color:#5b21b6;background:#ede9fe}.note-pro-card p{margin:13px 0 20px;color:#25202c;font-size:12px;font-weight:650;line-height:1.55}.note-pro-card footer{position:absolute;left:14px;bottom:11px;color:#7c7485;font-size:9px}.notes-empty{grid-column:1/-1;display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:150px;color:var(--ui-muted,#787486)}.notes-empty i{font-size:28px}.notes-empty button{margin-top:8px;border:0;border-radius:9px;padding:7px 11px;color:#5b21b6;background:#ede9fe;font-size:10px;font-weight:750}
.ops-log-row{cursor:pointer}.ops-log-row:hover td{background:#f7f4ff}.ops-log-modal{overflow:hidden;border:0!important;border-radius:24px!important;background:var(--ui-surface,#fff)!important}.ops-log-modal .modal-header{padding:19px 22px;border-color:var(--ui-line,#e7e4ef)}.ops-log-modal .modal-header small{color:#6d28d9;font-size:9px;font-weight:850;letter-spacing:1.3px}.ops-log-modal .modal-title{margin-top:3px;font-size:15px;font-weight:850}.log-action-label{display:inline-block;margin-bottom:12px;padding:5px 9px;border-radius:8px;color:#5b21b6;background:#ede9fe;font-size:10px;font-weight:800}.log-detail-card{margin-bottom:10px;padding:14px;border:1px solid var(--ui-line,#e7e4ef);border-radius:16px;background:var(--ui-surface-soft,#f8f7fb)}.log-detail-card.added{border-left:4px solid #22c55e}.log-detail-card.removed{border-left:4px solid #ef4444}.log-detail-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}.log-detail-head span{font-weight:800}.log-detail-head b{color:#6d28d9;font-size:10px}.log-detail-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.log-detail-summary div{padding:9px;border-radius:10px;background:var(--ui-surface,#fff)}.log-detail-summary small,.log-detail-summary strong{display:block}.log-detail-summary small{color:var(--ui-muted,#787486);font-size:8px}.log-detail-summary strong{margin-top:3px;font-size:10px}.log-products{margin-top:9px;border-top:1px solid var(--ui-line,#e7e4ef)}.log-product{display:flex;justify-content:space-between;gap:10px;padding:8px 3px;border-bottom:1px solid var(--ui-line,#e7e4ef);font-size:10px}.log-product small{display:block;color:var(--ui-muted,#787486)}
[data-theme="dark"] .secret-turnover{background:radial-gradient(circle at 85% 0,#7aa21e44,transparent 35%),linear-gradient(145deg,#211b2d,#17171d)!important;border-color:#3a304b!important}[data-theme="dark"] .secret-turnover strong,[data-theme="dark"] .secret-turnover #gizliCiroDagilim b{color:#fff}[data-theme="dark"] .secret-turnover #gizliCiroDagilim span{background:#292331;color:#aaa1b5}[data-theme="dark"] .sale-customer-card{border-color:#34502c;background:#1d2a1b}[data-theme="dark"] .sale-qty{color:#d8ccff;background:#322653}[data-theme="dark"] .note-pro-card{background:linear-gradient(150deg,color-mix(in srgb,var(--note-color) 10%,#24242c),#1c1c23 72%)}[data-theme="dark"] .note-pro-card p{color:#f4f2f7}[data-theme="dark"] .note-pro-top>span{color:#c9c3d0;background:#292932}[data-theme="dark"] .ops-log-row:hover td{background:#251f32}[data-theme="dark"] .log-action-label{color:#d8ccff;background:#322653}
@media(max-width:700px){.sale-meta-grid,.log-detail-summary{grid-template-columns:repeat(2,1fr)}#dashNotlarCol{display:block!important;order:-1;width:100%;max-width:100%}#dashNotlarCol .notes-pro{display:block!important;width:100%}#dashNotlarCol .notes-grid{grid-template-columns:1fr}.sale-detail-modal>.modal-body{padding:14px}.sale-detail-hero{padding:16px}.sale-total-badge b{font-size:19px}}
