/* ==========================================================================
   NextAwed tasarim sistemi (Faz 10 - Tasarim turu)
   premium.css'ten SONRA yuklenir. premium.css'in --pr-* degiskenlerini yeniden tanimlar
   (bu yuzden tum ekranlar otomatik yukselir) ve yeni bilesenler ekler.
   Yalnizca gorunum: DOM, sinif adlari ve JS secicileri korunur.

   Bolumler
     1 Degiskenler (--pr-* ve --ds-*)      2 Koyu mod              3 Temel / hareket
     4 Yan menu                             5 Ust cubuk + hizli git + kullanici menusu
     6 Sayfa basligi (hero)                 7 Kartlar + gosterge (KPI) kartlari
     8 Formlar + filtre cubugu              9 Butonlar
     10 Tablolar + eylem dugmeleri          11 Rozet, sekme, menu, modal, uyari
     12 Veri durumlari (iskelet, bos)       13 Sayfa ozel uyumlar (hero'lar, takvim, versiyon, notlar)
     14 Giris ekranlari                     15 Responsive                16 Hareket azaltma / baski
   ========================================================================== */


/* ==========================================================================
   1. DEGISKENLER
   ========================================================================== */
:root {
  /* Marka: indigo -> mor. premium.css'teki adlar korunur, degerler guclendirilir. */
  --pr-accent: #3d4fd1;
  --pr-accent-hover: #3342b8;
  --pr-accent-active: #29359b;
  --pr-accent-soft: #eceffd;
  --pr-accent-ring: rgba(61, 79, 209, 0.30);

  --pr-side-bg: #0e1330;
  --pr-side-hover: rgba(255, 255, 255, 0.06);
  --pr-side-active: #9aa6ff;
  --pr-side-text: #aeb7d6;
  --pr-side-text-strong: #ffffff;

  --pr-bg: #f1f4fb;
  --pr-surface: #ffffff;
  --pr-surface-2: #f6f8fd;
  --pr-surface-3: #e8ecf6;
  --pr-border: #e2e7f2;
  --pr-border-strong: #c9d1e3;
  --pr-text: #151c33;
  --pr-text-2: #3b4562;
  --pr-muted: #5a657f;
  --pr-placeholder: #6b7690;

  --pr-success: #0b7a47;
  --pr-success-soft: #e0f6ea;
  --pr-warning: #8a5100;
  --pr-warning-soft: #fdf0d3;
  --pr-warning-fill: #f2b01e;
  --pr-danger: #c02a35;
  --pr-danger-soft: #fde8ea;
  --pr-info: #0b6a99;
  --pr-info-soft: #def1fa;

  --pr-radius-sm: 8px;
  --pr-radius: 14px;
  --pr-radius-lg: 20px;
  --pr-ctl-h: 40px;

  --pr-shadow-xs: 0 1px 2px rgba(16, 24, 64, 0.06);
  --pr-shadow-sm: 0 1px 2px rgba(16, 24, 64, 0.05), 0 6px 16px -6px rgba(16, 24, 64, 0.10);
  --pr-shadow-md: 0 2px 4px rgba(16, 24, 64, 0.06), 0 14px 32px -10px rgba(16, 24, 64, 0.20);
  --pr-shadow-lg: 0 24px 60px -12px rgba(10, 16, 48, 0.40);
  --pr-ease: 160ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Yeni belirteclar */
  --ds-violet: #7a4fe0;
  --ds-grad-brand: linear-gradient(135deg, #4a5fe8 0%, #3443b8 55%, #5b3fc9 100%);
  --ds-grad-hero: linear-gradient(120deg, #141b4d 0%, #2b3aa8 52%, #6a45d6 100%);
  --ds-grad-side: linear-gradient(180deg, #0e1330 0%, #131a45 100%);
  --ds-glow: 0 8px 22px -6px rgba(61, 79, 209, 0.55);
  --ds-page-bg: radial-gradient(1200px 420px at 85% -120px, rgba(106, 69, 214, 0.10), transparent 70%), radial-gradient(900px 360px at 0% -80px, rgba(61, 79, 209, 0.09), transparent 70%), var(--pr-bg);
  --ds-zebra: rgba(61, 79, 209, 0.028);
  --ds-th-bg: linear-gradient(180deg, #f3f5fc 0%, #eaeef9 100%);
  --ds-th-text: #3a4466;
  --ds-hover-row: #f1f3fe;
  --ds-ring: 0 0 0 4px var(--pr-accent-ring);

  /* KPI renkleri (anlama gore) */
  --ds-kpi-1: #3d4fd1;  --ds-kpi-1-soft: #eceffd;
  --ds-kpi-2: #0b7a47;  --ds-kpi-2-soft: #e0f6ea;
  --ds-kpi-3: #0b6a99;  --ds-kpi-3-soft: #def1fa;
  --ds-kpi-4: #b26a00;  --ds-kpi-4-soft: #fdf0d3;
  --ds-kpi-5: #8a3fc0;  --ds-kpi-5-soft: #f3e8fb;

  /* Tipografi olcegi */
  --ds-fs-title: 26px;
  --ds-fs-kpi: 32px;
  --ds-fs-card: 14.5px;
}


/* ==========================================================================
   2. KOYU MOD  (dugme ile; kabuk.js html[data-theme="dark"] yazar, secim localStorage'da)
   ========================================================================== */
html[data-theme="dark"] {
  color-scheme: dark;
  --pr-accent: #8b99ff;
  --pr-accent-hover: #a4afff;
  --pr-accent-active: #becaff;
  --pr-accent-soft: rgba(139, 153, 255, 0.14);
  --pr-accent-ring: rgba(139, 153, 255, 0.40);

  --pr-bg: #0b1020;
  --pr-surface: #141b33;
  --pr-surface-2: #19223f;
  --pr-surface-3: #222c4d;
  --pr-border: #263055;
  --pr-border-strong: #36426b;
  --pr-text: #e8ecf8;
  --pr-text-2: #c3cbe3;
  --pr-muted: #98a3c4;
  --pr-placeholder: #8792b3;

  --pr-success: #4fd694;
  --pr-success-soft: rgba(79, 214, 148, 0.14);
  --pr-warning: #f5b94a;
  --pr-warning-soft: rgba(245, 185, 74, 0.14);
  --pr-danger: #ff7a85;
  --pr-danger-soft: rgba(255, 122, 133, 0.14);
  --pr-info: #5fc4f2;
  --pr-info-soft: rgba(95, 196, 242, 0.14);

  --pr-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --pr-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 20px -8px rgba(0, 0, 0, 0.55);
  --pr-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 36px -10px rgba(0, 0, 0, 0.65);

  --ds-violet: #b18cff; /* yalniz yazi rengi (Paket Takip): #7a4fe0 koyu zeminde 3.3:1 kaliyordu */
  --ds-grad-brand: linear-gradient(135deg, #5f72f2 0%, #4153d6 55%, #6c4fd8 100%);
  --ds-grad-hero: linear-gradient(120deg, #151c52 0%, #27369f 55%, #5a3cb8 100%);
  --ds-glow: 0 8px 22px -6px rgba(95, 114, 242, 0.55);
  --ds-page-bg: radial-gradient(1200px 420px at 85% -120px, rgba(106, 69, 214, 0.18), transparent 70%), var(--pr-bg);
  --ds-zebra: rgba(255, 255, 255, 0.025);
  --ds-th-bg: linear-gradient(180deg, #1c2546 0%, #19223f 100%);
  --ds-th-text: #c3cbe3;
  --ds-hover-row: #1d2748;
  --ds-kpi-1: #8b99ff;  --ds-kpi-1-soft: rgba(139, 153, 255, 0.15);
  --ds-kpi-2: #4fd694;  --ds-kpi-2-soft: rgba(79, 214, 148, 0.14);
  --ds-kpi-3: #5fc4f2;  --ds-kpi-3-soft: rgba(95, 196, 242, 0.14);
  --ds-kpi-4: #f5b94a;  --ds-kpi-4-soft: rgba(245, 185, 74, 0.14);
  --ds-kpi-5: #c79bf2;  --ds-kpi-5-soft: rgba(199, 155, 242, 0.14);
}
html[data-theme="dark"] body,
html[data-theme="dark"] #page-wrapper.gray-bg { color: var(--pr-text); }
html[data-theme="dark"] .btn-primary { color: #0b1020; }
html[data-theme="dark"] .btn-primary:hover, html[data-theme="dark"] .btn-primary:focus { color: #0b1020; }
html[data-theme="dark"] .table, html[data-theme="dark"] .table td, html[data-theme="dark"] .table th { color: var(--pr-text); }
html[data-theme="dark"] .alert-success { color: #bff0d8; border-color: rgba(79, 214, 148, 0.3); }
html[data-theme="dark"] .alert-info { color: #c3e8f9; border-color: rgba(95, 196, 242, 0.3); }
html[data-theme="dark"] .alert-warning { color: #fbe2b0; border-color: rgba(245, 185, 74, 0.3); }
html[data-theme="dark"] .alert-danger { color: #ffd0d4; border-color: rgba(255, 122, 133, 0.3); }
html[data-theme="dark"] select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2398a3c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #4a5782; background-clip: content-box; }
html[data-theme="dark"] .modal-backdrop.show { background-color: #02050f; opacity: 0.7; }
html[data-theme="dark"] .fc-unthemed td.fc-today { background: rgba(139, 153, 255, 0.12); }
html[data-theme="dark"] .fc-event { color: #fff; }
html[data-theme="dark"] hr { border-top-color: var(--pr-border); }
html[data-theme="dark"] .dropdown-menu { background: var(--pr-surface-2); }
html[data-theme="dark"] .page-link, html[data-theme="dark"] .pagination > li > a { background: var(--pr-surface-2); color: var(--pr-text-2); }
html[data-theme="dark"] .label-primary, html[data-theme="dark"] .badge-primary { color: #c9d1ff; }
html[data-theme="dark"] .btn-warning, html[data-theme="dark"] .btn-warning:hover { color: #3b2a00; }
html[data-theme="dark"] .navbar.navbar-static-top { background: rgba(20, 27, 51, 0.82); }

/* --------------------------------------------------------------------------
   2b. KOYU MOD: acik renk SABIT zemin veren eski kurallarin karsiligi
   Sorun: koyu modda metin rengi --pr-* ile acilir, ama asagidaki kurallar zemini
   sabit acik renkte birakir -> acik zemin + acik yazi (kontrast 1.1-2.5).
     - style.css (Inspinia)  .inmodal .modal-body { background: #f8fafb }
     - summernote-bs4.css    .note-editor.note-frame .note-editing-area .note-editable { #fff / #000 }
     - sayfa <style> bloklari (SonDestekler, Takvim, SatilanUrunler): #fff / #f8fafc / #eff6ff ...
       Bu bloklar _Layout'ta tasarim.css'ten ONCE yuklenir; esit ozgullukte burasi kazanir.
   Acik mod degismez: hepsi html[data-theme="dark"] altinda.
   -------------------------------------------------------------------------- */
/* Modal govdeleri ve icindeki bolum kartlari */
html[data-theme="dark"] .inmodal .modal-body,
html[data-theme="dark"] .calendar-modal-body, html[data-theme="dark"] .support-modal-body, html[data-theme="dark"] .modern-modal-body,
html[data-theme="dark"] .calendar-form-section, html[data-theme="dark"] .support-form-section,
html[data-theme="dark"] .calendar-description-box { background: var(--pr-surface); color: var(--pr-text); }
/* Bootstrap / Inspinia beyaz yuzeyleri (Talep Detay .card, Musteri Detay sekmeleri, paneller) */
html[data-theme="dark"] .card, html[data-theme="dark"] .panel, html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .tabs-container .panel-body { background-color: var(--pr-surface); color: var(--pr-text); }
html[data-theme="dark"] .tabs-container .panel-body { border-color: var(--pr-border); }
/* Govde koyulasinca icindeki bilgi karti (Destek: musteri bilgisi) ayirt edilsin */
html[data-theme="dark"] .inmodal .modal-body .ibox-content { background: var(--pr-surface-2); border: 1px solid var(--pr-border); border-radius: var(--pr-radius-sm); }
html[data-theme="dark"] .calendar-modal-footer, html[data-theme="dark"] .modern-modal-footer,
html[data-theme="dark"] .calendar-ticket-card, html[data-theme="dark"] .calendar-detail-card,
html[data-theme="dark"] .calendar-switch-label, html[data-theme="dark"] .support-switch-label { background: var(--pr-surface-2); color: var(--pr-text-2); }
/* Takvim sayfasi bu altligi !important ile #f8fafc veriyor; yalniz !important ile yenilir */
html[data-theme="dark"] .calendar-modern-modal .modal-footer { background: var(--pr-surface-2) !important; border-top-color: var(--pr-border) !important; }
/* Ayni sayfa bloklarindaki #e5e7eb / #eef2f7 kenarlar koyu zeminde beyaz cerceve gibi parliyordu */
html[data-theme="dark"] .support-summary-card, html[data-theme="dark"] .support-table-card, html[data-theme="dark"] .support-card-header,
html[data-theme="dark"] .support-table-footer, html[data-theme="dark"] .support-modal-header, html[data-theme="dark"] .support-modal-footer,
html[data-theme="dark"] .support-form-section, html[data-theme="dark"] .support-switch-label,
html[data-theme="dark"] .calendar-filter-card, html[data-theme="dark"] .calendar-card, html[data-theme="dark"] .calendar-card-header, html[data-theme="dark"] .calendar-loader,
html[data-theme="dark"] #calendar .fc-view-container, html[data-theme="dark"] .calendar-modal-header, html[data-theme="dark"] .calendar-modal-footer,
html[data-theme="dark"] .calendar-form-section, html[data-theme="dark"] .calendar-switch-label, html[data-theme="dark"] .calendar-ticket-card,
html[data-theme="dark"] .calendar-detail-card, html[data-theme="dark"] .calendar-detail-item, html[data-theme="dark"] .calendar-description-box, html[data-theme="dark"] .calendar-detail-actions,
html[data-theme="dark"] .filter-card, html[data-theme="dark"] .table-card, html[data-theme="dark"] .table-card-header,
html[data-theme="dark"] .modern-pagination-area, html[data-theme="dark"] .modern-modal-header, html[data-theme="dark"] .modern-modal-footer { border-color: var(--pr-border); }
/* Tablo cizgileri sayfada !important ile verilmis */
html[data-theme="dark"] .support-table thead th, html[data-theme="dark"] .modern-product-table thead th { border-bottom-color: var(--pr-border-strong) !important; }
html[data-theme="dark"] .support-table tbody td, html[data-theme="dark"] .modern-product-table tbody td { border-top-color: var(--pr-border) !important; }
html[data-theme="dark"] .section-title, html[data-theme="dark"] .calendar-detail-card h5, html[data-theme="dark"] .calendar-detail-item strong,
html[data-theme="dark"] .support-card-header h3, html[data-theme="dark"] .calendar-card-header h3, html[data-theme="dark"] .table-card-header h3,
html[data-theme="dark"] .support-summary-card strong { color: var(--pr-text); }
html[data-theme="dark"] .section-title i, html[data-theme="dark"] .calendar-detail-item i { color: var(--pr-accent); }
html[data-theme="dark"] .calendar-detail-item span, html[data-theme="dark"] .support-card-header span, html[data-theme="dark"] .calendar-card-header span,
html[data-theme="dark"] .table-card-header span, html[data-theme="dark"] .support-summary-card span, html[data-theme="dark"] .calendar-legend,
html[data-theme="dark"] .support-loader, html[data-theme="dark"] .calendar-loader, html[data-theme="dark"] .modern-loader,
html[data-theme="dark"] .pagination-info { color: var(--pr-muted); }

/* Sayfa kartlari ve alanlari (sayfa <style> bloklarindaki #fff / #f8fafc) */
html[data-theme="dark"] .support-page, html[data-theme="dark"] .calendar-page, html[data-theme="dark"] .products-page { color: var(--pr-text); }
html[data-theme="dark"] .support-summary-card, html[data-theme="dark"] .support-table-card,
html[data-theme="dark"] .calendar-card, html[data-theme="dark"] .table-card,
html[data-theme="dark"] .support-card-header, html[data-theme="dark"] .calendar-card-header { background: var(--pr-surface); }
html[data-theme="dark"] .support-table-footer, html[data-theme="dark"] .modern-pagination-area { background: var(--pr-surface-2); }
html[data-theme="dark"] .support-table tbody tr:hover, html[data-theme="dark"] .modern-product-table tbody tr:hover { background: var(--ds-hover-row); }
html[data-theme="dark"] #paging li a { background: var(--pr-surface-2); color: var(--pr-text-2); border-color: var(--pr-border); }
html[data-theme="dark"] #paging li a:hover { background: var(--pr-accent-soft); color: var(--pr-accent); border-color: var(--pr-accent); }
html[data-theme="dark"] #paging li.active a { background: var(--pr-accent); border-color: var(--pr-accent); }

/* Hap / rozetler: acik pastel zemin yerine yumusak koyu ton */
html[data-theme="dark"] .support-pill-blue, html[data-theme="dark"] .package-pill,
html[data-theme="dark"] .support-card-badge, html[data-theme="dark"] .table-card-badge, html[data-theme="dark"] .summary-blue { background: var(--pr-accent-soft); color: var(--pr-accent); }
html[data-theme="dark"] .support-card-badge span, html[data-theme="dark"] .table-card-badge span { color: var(--pr-text-2); }
html[data-theme="dark"] .support-pill-gray, html[data-theme="dark"] .currency-pill { background: var(--pr-surface-3); color: var(--pr-text-2); }
html[data-theme="dark"] .support-pill-green, html[data-theme="dark"] .status-pill-paid,
html[data-theme="dark"] .status-action-paid, html[data-theme="dark"] .summary-green { background: var(--pr-success-soft); color: var(--pr-success); }
html[data-theme="dark"] .support-pill-orange, html[data-theme="dark"] .status-pill-waiting, html[data-theme="dark"] .summary-orange { background: var(--pr-warning-soft); color: var(--pr-warning); }
html[data-theme="dark"] .status-action-waiting { background: var(--pr-danger-soft); color: var(--pr-danger); }
html[data-theme="dark"] .summary-purple { background: var(--ds-kpi-5-soft); color: var(--ds-kpi-5); }

/* Talep listesi "Alis Tarihi" yas rengi (common.js: talep-yas-yeni / talep-yas-eski).
   Acik moddaki degerler eski satir ici renklerle ayni. */
.talep-yas-yeni { color: green; }
.talep-yas-eski { color: red; }
html[data-theme="dark"] .talep-yas-yeni { color: var(--pr-success); }
html[data-theme="dark"] .talep-yas-eski { color: var(--pr-danger); }

/* Takvim (sayfa kurallari; .fc-today'i sayfa !important veriyor) */
html[data-theme="dark"] #calendar .fc-widget-header { background: var(--pr-surface-2); border-color: var(--pr-border); }
html[data-theme="dark"] #calendar .fc-day-header, html[data-theme="dark"] #calendar .fc-day-number { color: var(--pr-text-2); }
html[data-theme="dark"] #calendar .fc-day { background: var(--pr-surface); }
html[data-theme="dark"] #calendar .fc-day:hover { background: var(--pr-surface-2); }
html[data-theme="dark"] #calendar .fc-today { background: rgba(139, 153, 255, 0.12) !important; }

/* Acik vurgu (--pr-accent #8b99ff) zeminli dolgu ogeler: beyaz yazi 2.6:1 kaliyordu, koyu yazi 7:1 */
html[data-theme="dark"] .btn.btn-calendar-primary, html[data-theme="dark"] .btn.btn-support-primary, html[data-theme="dark"] .btn.btn-modern-primary,
html[data-theme="dark"] .btn.btn-calendar-primary:hover, html[data-theme="dark"] .btn.btn-support-primary:hover, html[data-theme="dark"] .btn.btn-modern-primary:hover,
html[data-theme="dark"] .btn.btn-calendar-primary:focus, html[data-theme="dark"] .btn.btn-support-primary:focus, html[data-theme="dark"] .btn.btn-modern-primary:focus,
html[data-theme="dark"] .btn.btn-calendar-tab.active, html[data-theme="dark"] #paging li.active a, html[data-theme="dark"] #page-wrapper .tab.active,
html[data-theme="dark"] .kul-siz, html[data-theme="dark"] .row-action-btn,
html[data-theme="dark"] .vy-btn-primary, html[data-theme="dark"] .vy-btn-primary:hover:not([disabled]),
html[data-theme="dark"] .dropdown-menu > .active > a, html[data-theme="dark"] .dropdown-item.active,
html[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] { color: #0b1020; }
/* Hero icindeki saydam dugmeler beyaz yazili kalir */
html[data-theme="dark"] .calendar-hero .btn.btn-calendar-primary, html[data-theme="dark"] .support-hero .btn.btn-support-primary { color: #fff; }
/* Next icerik arac cubugu dugmesi koyu degrade zeminli: beyaz yazi kalir */
html[data-theme="dark"] .nx-arac .vy-btn-primary { color: #fff; }

/* Girdi ekleri (bootstrap .input-group-text #495057 yazi verir) */
html[data-theme="dark"] .input-group-text { background-color: var(--pr-surface-2); color: var(--pr-text-2); border-color: var(--pr-border-strong); }

/* Summernote: kutuphane kurali 4 sinif ozgullugunde #fff / #000 veriyor */
html[data-theme="dark"] .note-editor.note-frame .note-editing-area .note-editable { background-color: var(--pr-surface); color: var(--pr-text); }
html[data-theme="dark"] .note-editor.note-frame .note-statusbar { background-color: var(--pr-surface-2); border-top-color: var(--pr-border); }
html[data-theme="dark"] .note-editor.note-frame .note-statusbar .note-resizebar .note-icon-bar { border-top-color: var(--pr-border-strong); }
html[data-theme="dark"] .note-editor .note-placeholder { color: var(--pr-placeholder); }
html[data-theme="dark"] .note-editor .note-dropzone { background-color: var(--pr-surface); }

/* Tarih secici (datepicker3.css: #eee ustune gelme, #999 eski/yeni gunler, beyaz ok) */
html[data-theme="dark"] .datepicker table tr td.day:hover, html[data-theme="dark"] .datepicker table tr td.focused,
html[data-theme="dark"] .datepicker table tr td span:hover, html[data-theme="dark"] .datepicker .datepicker-switch:hover,
html[data-theme="dark"] .datepicker .prev:hover, html[data-theme="dark"] .datepicker .next:hover,
html[data-theme="dark"] .datepicker tfoot tr th:hover { background: var(--pr-surface-3); color: var(--pr-text); }
html[data-theme="dark"] .datepicker table tr td.old, html[data-theme="dark"] .datepicker table tr td.new,
html[data-theme="dark"] .datepicker table tr td.disabled, html[data-theme="dark"] .datepicker table tr td.disabled:hover { color: var(--pr-muted); }
html[data-theme="dark"] .datepicker table tr td.today, html[data-theme="dark"] .datepicker table tr td.today:hover { background: var(--pr-warning-soft); color: var(--pr-warning); }
/* Ustteki genel "td" koyu kurali kutuphanenin secili gun rengini de eziyordu: secili gun gorunmuyordu */
html[data-theme="dark"] .datepicker table tr td.active, html[data-theme="dark"] .datepicker table tr td.active:hover,
html[data-theme="dark"] .datepicker table tr td span.active, html[data-theme="dark"] .datepicker table tr td span.active:hover { background: var(--pr-accent); color: #0b1020; text-shadow: none; }
html[data-theme="dark"] .datepicker-dropdown:after { border-bottom-color: var(--pr-surface-2); }
html[data-theme="dark"] .datepicker-dropdown.datepicker-orient-top:after { border-top-color: var(--pr-surface-2); }

/* Satir ici kod (Notlar yardim metni): style.css acik pembe zemin verir */
html[data-theme="dark"] code { background: var(--pr-surface-3); color: #ffb3c1; }

/* SweetAlert (sweetalert.css sonra yuklenir; premium.css "body" onekini kullanir) */
html[data-theme="dark"] body .sweet-alert button.cancel:hover { background-color: var(--pr-border-strong) !important; color: var(--pr-text); }
html[data-theme="dark"] body .sweet-alert input, html[data-theme="dark"] body .sweet-alert textarea { background: var(--pr-surface-2); color: var(--pr-text); }
html[data-theme="dark"] body .sweet-alert .sa-error-container { background: var(--pr-surface-2); }
/* Basari simgesinin kivrimlari beyaz kutularla cizilir: koyu zeminde beyaz leke olur */
html[data-theme="dark"] body .sweet-alert .sa-icon.sa-success::before, html[data-theme="dark"] body .sweet-alert .sa-icon.sa-success::after,
html[data-theme="dark"] body .sweet-alert .sa-icon.sa-success .sa-fix { background: var(--pr-surface); }


/* ==========================================================================
   3. TEMEL / HAREKET
   ========================================================================== */
body { background: var(--ds-page-bg); background-attachment: fixed; letter-spacing: -0.003em; }
#page-wrapper.gray-bg, .gray-bg { background: transparent; }
body.gray-bg { background: var(--ds-page-bg); }

h1, h2, h3, h4, h5, h6 { letter-spacing: -0.02em; font-weight: 700; }
a { text-underline-offset: 3px; }
::selection { background: var(--pr-accent); color: #fff; }

/* Odak halkasi: iki katmanli, her zeminde gorunur */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, .btn:focus-visible, summary:focus-visible,
.page-link:focus-visible, .nav-link:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--pr-accent);
  outline-offset: 2px;
  border-radius: 8px;
}

@keyframes ds-giris { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ds-parilti { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes ds-nabiz { 0%, 100% { box-shadow: 0 0 0 0 rgba(192, 42, 53, 0.45); } 50% { box-shadow: 0 0 0 5px rgba(192, 42, 53, 0); } }

/* Sayfa icerigi yumusak girer (animated sinifi olmayanlar da) */
#page-wrapper > .wrapper-content, #page-wrapper > .row:not(.border-bottom), #page-wrapper > .sayfa-baslik,
#page-wrapper > .ibox-content, #page-wrapper > div:not(.row):not(.footer):not(.wrapper-content):not(.modal):not(.modal-backdrop) { animation: ds-giris 380ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
#page-wrapper > .sayfa-baslik { animation-delay: 0ms; }
#page-wrapper > .row:not(.border-bottom) .ibox { animation: ds-giris 420ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
#page-wrapper > .row:not(.border-bottom) > div:nth-child(2) .ibox { animation-delay: 50ms; }
#page-wrapper > .row:not(.border-bottom) > div:nth-child(3) .ibox { animation-delay: 100ms; }
#page-wrapper > .row:not(.border-bottom) > div:nth-child(4) .ibox { animation-delay: 150ms; }
#page-wrapper > .row:not(.border-bottom) > div:nth-child(5) .ibox { animation-delay: 200ms; }
#page-wrapper > .row:not(.border-bottom) > div:nth-child(6) .ibox { animation-delay: 250ms; }

.pace .pace-progress { background: var(--ds-grad-brand); height: 3px; }


/* ==========================================================================
   4. YAN MENU
   ========================================================================== */
.navbar-default.navbar-static-side, nav.navbar-static-side {
  background: var(--ds-grad-side);
  box-shadow: 4px 0 24px -12px rgba(8, 12, 40, 0.5);
}
.navbar-default.navbar-static-side { border-right: 0; }
.sidebar-collapse { padding-bottom: 24px; }

.nav-header { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: transparent; }
.marka { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marka-isaret {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ds-grad-brand); color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -0.02em;
  box-shadow: var(--ds-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.marka-yazi { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.marka-yazi b { color: #fff; font-size: 17px; font-weight: 800; letter-spacing: 0.16em; }
.marka-yazi small { color: var(--pr-side-text); font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em; margin-top: 3px; }
.nav-header .profile-element { padding: 0; }
.logo-element { padding: 18px 0; font-size: 14px; letter-spacing: 0.08em; }
body.mini-navbar .nav-header { background: transparent; padding: 0; }
body.mini-navbar .logo-element { display: grid; place-items: center; width: 40px; height: 40px; margin: 14px auto; padding: 0; border-radius: 12px; background: var(--ds-grad-brand); box-shadow: var(--ds-glow); font-size: 17px; font-weight: 800; letter-spacing: 0; }

/* Bolum basliklari */
.nav-bolum {
  list-style: none; padding: 20px 28px 6px; color: #7d89b3; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: none;
}
body.mini-navbar .nav-bolum { height: 1px; padding: 0; margin: 10px 18px; overflow: hidden; background: rgba(255, 255, 255, 0.08); font-size: 0; }

.navbar-static-side .nav > li > a {
  display: flex; align-items: center; gap: 12px;
  margin: 2px 12px; padding: 10px 14px; border-radius: 12px;
  font-size: 14px; font-weight: 500; color: var(--pr-side-text);
  position: relative;
}
.navbar-static-side .nav > li > a i.fa { flex: 0 0 22px; width: 22px; font-size: 16px; text-align: center; opacity: 0.8; transition: transform var(--pr-ease), opacity var(--pr-ease); }
.navbar-static-side .nav > li > a:hover i.fa { opacity: 1; transform: scale(1.08); }
.navbar-static-side .nav > li > a .nav-label { flex: 1 1 auto; }
.navbar-static-side .nav > li > a .arrow { flex: 0 0 auto; float: none; position: static; margin: 0; opacity: 0.55; transition: transform var(--pr-ease); }
.navbar-default .nav > li > a:hover, .navbar-default .nav > li > a:focus { background: rgba(255, 255, 255, 0.07); color: #fff; }
.navbar-static-side .nav > li.active { background: transparent; border-left: 0; }
.navbar-static-side .nav > li.active > a {
  color: #fff; font-weight: 600; padding-left: 14px;
  background: linear-gradient(90deg, rgba(139, 153, 255, 0.28) 0%, rgba(139, 153, 255, 0.07) 100%);
  box-shadow: inset 0 0 0 1px rgba(139, 153, 255, 0.18);
}
.navbar-static-side .nav > li.active > a::before {
  content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--pr-side-active);
  box-shadow: 0 0 12px rgba(154, 166, 255, 0.8);
}
.navbar-static-side .nav > li.active > a i.fa { color: var(--pr-side-active); opacity: 1; }
ul.nav-second-level { background: transparent; margin: 2px 10px 6px 24px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.10); }
.nav-second-level li a {
  position: relative; padding: 8px 10px; margin: 1px 0; border-radius: 9px; font-size: 13px; color: var(--pr-side-text); white-space: nowrap;
}
.nav-second-level li a::before { content: ""; position: absolute; left: -11px; top: 50%; width: 9px; height: 1px; background: rgba(255, 255, 255, 0.18); }
.nav-second-level li a:hover, .nav-second-level li a:focus { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-second-level li.active a { color: #fff; background: rgba(139, 153, 255, 0.16); font-weight: 600; }
.nav-second-level li.active a::before { background: var(--pr-side-active); height: 2px; }
.navbar-static-side a:focus-visible { outline-color: var(--pr-side-active); outline-offset: -2px; }

/* Daraltilmis menu */
body.mini-navbar .navbar-static-side .nav > li > a { justify-content: center; margin: 3px 10px; padding: 11px 0; }
body.mini-navbar .navbar-static-side .nav > li > a i.fa { font-size: 17px; flex: 0 0 auto; }
body.mini-navbar .navbar-static-side .nav > li.active > a::before { left: -10px; }
body.mini-navbar .navbar-static-side .nav > li > a .arrow { display: none; }
body.mini-navbar .nav-second-level { margin: 0; border: 0; padding: 0; }
body.mini-navbar .nav-second-level li a::before { display: none; }
body.mini-navbar .nav li:hover > .nav-second-level, body.mini-navbar .navbar-default .nav-second-level {
  background: #1b2352; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0 12px 12px 0; box-shadow: var(--pr-shadow-md);
}
/* Daraltilmis menude ikon ipuclari */
body.mini-navbar .navbar-static-side .nav > li > a:hover::after {
  content: attr(data-ipucu); position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 10px;
  background: #1b2352; color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 5;
}
body.mini-navbar .navbar-static-side .nav > li > a:not([data-ipucu]):hover::after { display: none; }
.metismenu .arrow { opacity: 0.55; }
.navbar-static-side .nav > li.active > a .arrow, .navbar-static-side .nav > li > a[aria-expanded="true"] .arrow { opacity: 0.9; }


/* ==========================================================================
   5. UST CUBUK + HIZLI GIT + KULLANICI MENUSU
   ========================================================================== */
#page-wrapper > .row.border-bottom { margin-bottom: var(--pr-s3); position: sticky; top: 0; z-index: 30; }
.navbar.navbar-static-top {
  min-height: 68px; background: rgba(255, 255, 255, 0.86); border-bottom: 1px solid var(--pr-border); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 30px -18px rgba(16, 24, 64, 0.35);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  gap: 16px;
}
.navbar-static-top .navbar-header { gap: 12px; flex: 0 0 auto; }
.navbar-minimalize.btn { width: 40px; height: 40px; border-radius: 12px; background: var(--pr-surface-2); border-color: var(--pr-border); }

/* Hizli git (Ctrl+K) */
.hizli-git { position: relative; flex: 1 1 320px; max-width: 460px; min-width: 0; }
.hizli-git > .fa-search { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--pr-muted); pointer-events: none; font-size: 14px; }
.hizli-git input {
  width: 100%; height: 42px; padding: 0 64px 0 40px; border: 1px solid var(--pr-border); border-radius: 12px;
  background: var(--pr-surface-2); color: var(--pr-text); font-size: 14px; transition: border-color var(--pr-ease), box-shadow var(--pr-ease), background-color var(--pr-ease);
}
.hizli-git input::placeholder { color: var(--pr-placeholder); }
.hizli-git input:hover { border-color: var(--pr-border-strong); }
.hizli-git input:focus { outline: 0; background: var(--pr-surface); border-color: var(--pr-accent); box-shadow: var(--ds-ring); }
.hizli-git kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 2px 7px; border-radius: 6px; font: 600 11px/1.5 var(--pr-font);
  color: var(--pr-muted); background: var(--pr-surface); border: 1px solid var(--pr-border); box-shadow: 0 1px 0 var(--pr-border); pointer-events: none;
}
.hizli-sonuc {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 6px; list-style: none; max-height: 340px; overflow: auto;
  background: var(--pr-surface); border: 1px solid var(--pr-border); border-radius: 14px; box-shadow: var(--pr-shadow-md);
}
.hizli-sonuc[hidden] { display: none; }
.hizli-sonuc li a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--pr-text); text-decoration: none; font-size: 14px; font-weight: 500;
}
.hizli-sonuc li a .fa { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--pr-accent-soft); color: var(--pr-accent); font-size: 14px; }
.hizli-sonuc li a small { margin-left: auto; color: var(--pr-muted); font-size: 11.5px; font-weight: 500; }
.hizli-sonuc li a:hover, .hizli-sonuc li.secili a { background: var(--pr-accent-soft); color: var(--pr-accent); }
.hizli-sonuc .bos { padding: 14px; color: var(--pr-muted); font-size: 13px; text-align: center; }

.navbar-top-links { gap: 4px; flex: 0 0 auto; }
.navbar-top-links > li { padding: 0; }
.navbar-top-links .sifre-chip {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 5px 14px; margin-right: 6px; border-radius: 12px;
  background: var(--pr-accent-soft); border: 1px solid transparent; line-height: 1.15; cursor: default;
}
.navbar-top-links .sifre-chip span { color: var(--pr-muted) !important; font-size: 10.5px; font-weight: 600; text-align: left; letter-spacing: 0.02em; }
.navbar-top-links .sifre-chip h3 { font-size: 15px; font-weight: 700; color: var(--pr-accent); margin: 0; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; min-height: 18px; }
.navbar-top-links .btn.dim, .ust-ikon {
  width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 12px; display: inline-grid; place-items: center; font-size: 15px;
  background: var(--pr-surface-2); border: 1px solid var(--pr-border); color: var(--pr-text-2); position: relative;
}
.navbar-top-links .btn.dim:hover, .ust-ikon:hover { background: var(--pr-accent-soft); border-color: var(--pr-accent); color: var(--pr-accent); transform: translateY(-1px); }
.navbar-static-top .navbar-top-links > li > a.count-info { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 12px; background: var(--pr-surface-2); border: 1px solid var(--pr-border); font-size: 15px; }
.navbar-static-top .navbar-top-links > li > a.count-info:hover { background: var(--pr-accent-soft) !important; border-color: var(--pr-accent); }
.navbar-top-links .count-info .label { top: -5px; right: -5px; min-width: 19px; padding: 1px 5px; line-height: 15px; font-size: 10.5px; font-weight: 700; animation: ds-nabiz 2.4s ease-out infinite; }
.navbar-top-links .count-info .label-danger { background: var(--pr-danger); color: #fff; box-shadow: 0 0 0 2px var(--pr-surface); }
html[data-theme="dark"] .navbar-top-links .count-info .label-danger { color: #1b0508; }

/* Kullanici menusu */
.kullanici-menu > a.kullanici-dugme {
  display: flex !important; align-items: center; gap: 10px; padding: 4px 10px 4px 4px !important; height: 44px; border-radius: 999px !important;
  background: var(--pr-surface-2); border: 1px solid var(--pr-border); color: var(--pr-text) !important; text-decoration: none;
}
.kullanici-menu > a.kullanici-dugme:hover { background: var(--pr-accent-soft) !important; border-color: var(--pr-accent); }
.avatar-ds {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ds-grad-brand); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; box-shadow: var(--ds-glow);
}
.kullanici-dugme .kullanici-ad { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; line-height: 1.1; }
.kullanici-dugme .kullanici-ad small { display: block; font-size: 11px; font-weight: 500; color: var(--pr-muted); }
.kullanici-menu .dropdown-menu { min-width: 300px; padding: 8px; margin-top: 10px; border-radius: 16px; }
.kullanici-menu .menu-ust { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--pr-border); }
.kullanici-menu .menu-ust .avatar-ds { width: 42px; height: 42px; font-size: 15px; }
.kullanici-menu .menu-ust b { display: block; font-size: 13.5px; color: var(--pr-text); overflow-wrap: anywhere; }
.kullanici-menu .menu-ust small { color: var(--pr-muted); font-size: 12px; }
.kullanici-menu .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-weight: 500; font-size: 13.5px; }
.kullanici-menu .dropdown-item .fa { width: 18px; text-align: center; color: var(--pr-muted); }
.kullanici-menu .dropdown-item:hover .fa { color: var(--pr-accent); }
.kullanici-menu .dropdown-item.cikis:hover { background: var(--pr-danger-soft); color: var(--pr-danger); }
.kullanici-menu .dropdown-item.cikis:hover .fa { color: var(--pr-danger); }
.kullanici-menu .dropdown-item .tema-durum { margin-left: auto; font-size: 11px; color: var(--pr-muted); }

.footer { margin-top: 28px; padding: 16px var(--pr-gutter) 18px; border-top: 1px solid var(--pr-border); color: var(--pr-muted); font-size: 12.5px; display: flex; justify-content: space-between; align-items: center; background: transparent; }
.footer.fixed { position: static; }
/* Alt bilgi: icerik uzunsa icerigin altinda, kisaysa sayfanin dibinde (eski mutlak konum icerigin ustune biniyordu) */
#page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
#page-wrapper > .footer { position: static; margin-top: auto; flex: 0 0 auto; width: 100%; }
#page-wrapper > .row.border-bottom { flex: 0 0 auto; }
.vy-head a, .vy-head .vy-geri { color: rgba(255, 255, 255, 0.85); }
.vy-head a:hover { color: #fff; }


/* ==========================================================================
   6. SAYFA BASLIGI (hero) - _Layout otomatik uretir; sayfaya ozel basliklar da buna benzetilir
   ========================================================================== */
.sayfa-baslik, .calendar-hero, .support-hero, .products-hero, .vy-head {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ds-grad-hero); color: #fff; border: 0; border-radius: var(--pr-radius-lg);
  box-shadow: 0 18px 40px -18px rgba(43, 58, 168, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.sayfa-baslik::before, .calendar-hero::before, .support-hero::before, .products-hero::before, .vy-head::before {
  content: ""; position: absolute; z-index: -1; right: -60px; top: -90px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0) 65%);
}
.sayfa-baslik::after, .calendar-hero::after, .support-hero::after, .products-hero::after, .vy-head::after {
  content: ""; position: absolute; z-index: -1; right: 120px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(154, 166, 255, 0.28), rgba(154, 166, 255, 0) 68%);
}
.sayfa-baslik {
  display: flex; align-items: center; gap: 20px; padding: 22px 28px; margin: 0 0 var(--pr-s3);
}
.sayfa-baslik-ikon {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; color: #fff;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 20px -8px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sayfa-baslik-metin { min-width: 0; flex: 1 1 auto; }
.sayfa-baslik-ust { color: rgba(255, 255, 255, 0.72); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; margin: 0 0 4px; }
.sayfa-baslik-ad { margin: 0; color: #fff; font-size: var(--ds-fs-title); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.sayfa-baslik-aciklama { margin: 6px 0 0; color: rgba(255, 255, 255, 0.82); font-size: 14px; line-height: 1.5; max-width: 70ch; }
.sayfa-baslik-eylem { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.sayfa-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.13); border: 1px solid rgba(255, 255, 255, 0.24); white-space: nowrap;
}
.sayfa-chip .fa { opacity: 0.85; }

/* Sayfaya ozel hero'lar: ayni dil */
.calendar-hero, .support-hero, .products-hero { padding: 22px 28px; margin-bottom: var(--pr-s3); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; box-shadow: 0 18px 40px -18px rgba(43, 58, 168, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.calendar-title, .support-title, .products-title { color: #fff; font-size: var(--ds-fs-title); font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.calendar-kicker, .support-kicker, .products-kicker { color: rgba(255, 255, 255, 0.72); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 4px; opacity: 1; }
.calendar-subtitle, .support-subtitle, .products-subtitle { color: rgba(255, 255, 255, 0.82); margin: 6px 0 0; }
.hero-info-card { background: rgba(255, 255, 255, 0.13); border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 14px; color: #fff; }
.hero-info-card span { color: rgba(255, 255, 255, 0.75); }
.hero-info-card strong { color: #fff; }


/* ==========================================================================
   7. KARTLAR + GOSTERGE (KPI) KARTLARI
   ========================================================================== */
.ibox {
  border-radius: var(--pr-radius); border: 1px solid var(--pr-border); background: var(--pr-surface);
  box-shadow: var(--pr-shadow-sm); transition: box-shadow 220ms ease, transform 220ms ease, border-color 220ms ease;
}
.ibox:has(> .row) { background: transparent; border: 0; box-shadow: none; }
.ibox-title {
  min-height: 56px; padding: 15px 22px; border-radius: var(--pr-radius) var(--pr-radius) 0 0;
  background: linear-gradient(180deg, var(--pr-surface) 0%, var(--pr-surface-2) 100%); border-bottom: 1px solid var(--pr-border);
  align-items: center;
}
.ibox-title h5 { font-size: var(--ds-fs-card); font-weight: 700; color: var(--pr-text); letter-spacing: -0.012em; display: flex; align-items: center; gap: 10px; }
.ibox-title h5::before { content: ""; flex: 0 0 auto; width: 4px; height: 16px; border-radius: 4px; background: var(--ds-grad-brand); }
.ibox-title h5 .fa { color: var(--pr-accent); }
.ibox-tools a { font-weight: 600; font-size: 13px; }
.ibox-content { padding: 22px; }
.ibox-content.m-b-sm, .wrapper-content > .ibox-content, .ibox-content.border-bottom {
  border-radius: var(--pr-radius); background: var(--pr-surface); border: 1px solid var(--pr-border) !important;
  box-shadow: var(--pr-shadow-sm); margin-bottom: var(--pr-s3) !important; padding: 20px 22px; position: relative;
}
.ibox > .row > [class*="col-"] > .ibox-title { background: linear-gradient(180deg, var(--pr-surface) 0%, var(--pr-surface-2) 100%); border-radius: var(--pr-radius) var(--pr-radius) 0 0; }
.ibox > .row > [class*="col-"] > .ibox-title + .ibox-content { border-radius: 0 0 var(--pr-radius) var(--pr-radius); box-shadow: var(--pr-shadow-sm); }
.ibox-footer { border-radius: 0 0 var(--pr-radius) var(--pr-radius); }
.card, .panel, .well, .tabs-container { border-radius: var(--pr-radius); }

/* KPI: sayi + ikon baloncugu. Renk, kartin rozetinden (Kisisel / Genel / Aylik) turetilir. */
.ibox:has(h1.no-margins) {
  --kpi: var(--ds-kpi-1); --kpi-soft: var(--ds-kpi-1-soft);
  position: relative; border-top: 3px solid var(--kpi); overflow: hidden;
}
.ibox:has(.label-success) { --kpi: var(--ds-kpi-2); --kpi-soft: var(--ds-kpi-2-soft); }
.ibox:has(.label-info) { --kpi: var(--ds-kpi-3); --kpi-soft: var(--ds-kpi-3-soft); }
.ibox:has(.label-warning) { --kpi: var(--ds-kpi-4); --kpi-soft: var(--ds-kpi-4-soft); }
.ibox:has(.label-danger) { --kpi: var(--ds-kpi-5); --kpi-soft: var(--ds-kpi-5-soft); }
.ibox:has(h1.no-margins)::after {
  content: ""; position: absolute; right: -26px; bottom: -34px; width: 96px; height: 96px; border-radius: 50%; background: var(--kpi-soft); opacity: 0.55; pointer-events: none; z-index: 0;
}
.ibox:has(h1.no-margins) .ibox-title { background: transparent; border-bottom: 0; min-height: 0; padding: 16px 20px 0; align-items: flex-start; }
.ibox:has(h1.no-margins) .ibox-title h5 { font-size: 12.5px; font-weight: 600; color: var(--pr-muted); letter-spacing: 0.01em; line-height: 1.35; }
.ibox:has(h1.no-margins) .ibox-title h5::before { display: none; }
.ibox:has(h1.no-margins) .ibox-content { padding: 6px 20px 18px; position: relative; z-index: 1; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ibox-content h1.no-margins { font-size: var(--ds-fs-kpi); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; color: var(--pr-text); min-height: 35px; }
.ibox:has(h1.no-margins) .ibox-content::after {
  content: "\f080"; font-family: FontAwesome; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--kpi-soft); color: var(--kpi); font-size: 20px; transition: transform 240ms cubic-bezier(0.3, 1.5, 0.5, 1);
}
.ibox:has(h1.no-margins):hover { transform: translateY(-4px); box-shadow: var(--pr-shadow-md); border-color: var(--pr-border-strong); border-top-color: var(--kpi); }
.ibox:has(h1.no-margins):hover .ibox-content::after { transform: rotate(-8deg) scale(1.12); }
.ibox:has(h1.no-margins) .label { font-size: 10.5px; padding: 2px 9px; }
/* Ikon secimi: kimlige gore */
.ibox:has(#MusteriSayisi) .ibox-content::after { content: "\f0c0"; }
.ibox:has(#SozlesmeAdet) .ibox-content::after { content: "\f0f6"; }
.ibox:has(#OdemeAdet) .ibox-content::after { content: "\f09d"; }
.ibox:has(#SorunAdet) .ibox-content::after { content: "\f188"; }
.ibox:has(#DestekAdet) .ibox-content::after { content: "\f1cd"; }
.ibox:has(#NextSorunAdet) .ibox-content::after { content: "\f0e7"; }
.ibox:has(#cozumTalepler) .ibox-content::after { content: "\f00c"; }
.ibox:has(#takipTalepler) .ibox-content::after { content: "\f06e"; }
.ibox:has(#toplamTalepler) .ibox-content::after { content: "\f0ae"; }
.ibox:has(#genelTalepler) .ibox-content::after { content: "\f1b3"; }
.ibox:has(#SorunSayi) .ibox-content::after { content: "\f188"; }
.ibox:has(#SuperSifre) .ibox-content::after { content: "\f084"; }
.col-lg-2 > .ibox, .col-lg-3 > .ibox, .col-md-3 > .ibox { height: calc(100% - var(--pr-s3)); }
.col-lg-2 > .ibox .ibox-title, .col-lg-3 > .ibox .ibox-title, .col-md-3 > .ibox .ibox-title { min-height: 0; padding: 16px 20px 0; }
.col-lg-2 > .ibox .ibox-content, .col-lg-3 > .ibox .ibox-content, .col-md-3 > .ibox .ibox-content { padding: 6px 20px 18px; }
.ibox > a:hover h5 { color: var(--kpi, var(--pr-accent)); }

/* Yukleniyor: bos sayi kutusu iskelet olur */
.ibox-content h1.no-margins:empty::before {
  content: ""; display: block; width: 84px; height: 30px; border-radius: 10px;
  background: linear-gradient(90deg, var(--pr-surface-3) 25%, var(--pr-surface-2) 50%, var(--pr-surface-3) 75%); background-size: 200% 100%; animation: ds-parilti 1.3s linear infinite;
}

/* Grafik kartlari */
.grafik-kutu { height: 320px; }
.grafik-baslik { font-weight: 700; }
.chart-container1 { border-radius: var(--pr-radius); }

/* Anasayfa: hatirlatma karti */
.hatirlatma-karti .ibox-content { padding: 18px 22px; }
.hatirlatma-karti .ibox-title h5 .fa { color: var(--ds-kpi-4); }


/* ==========================================================================
   8. FORMLAR + FILTRE CUBUGU
   ========================================================================== */
label, .control-label { font-size: 12.5px; font-weight: 600; color: var(--pr-text-2); letter-spacing: 0.005em; margin-bottom: 6px; }
.form-control, select.form-control, .custom-select, .input-group-text, .input-group-addon {
  border-radius: 10px; border-color: var(--pr-border-strong); background-color: var(--pr-surface); font-size: 14px;
}
.form-control:not(textarea):not([multiple]):not([size]), .custom-select { height: 42px; padding: 7px 14px; }
.input-group-addon { border-radius: 10px 0 0 10px; background: var(--pr-surface-2); color: var(--pr-muted); }
.form-control:hover { border-color: var(--pr-accent); }
.form-control:focus, .custom-select:focus { border-color: var(--pr-accent); box-shadow: var(--ds-ring); }
.form-control-sm, .input-sm { height: 34px !important; border-radius: 9px; }
.form-group { margin-bottom: 18px; }
.help-block, .form-text { font-size: 12px; }
textarea.form-control { border-radius: 12px; }

/* Filtre cubugu: ince arka plan, sol aksan cizgisi */
.ibox-content.m-b-sm.border-bottom, .ibox-content.m-b-sm, .filter-card, .support-filter-card, .calendar-filter-card, .ist-filtre {
  background: linear-gradient(180deg, var(--pr-surface) 0%, var(--pr-surface-2) 100%);
}
.ibox-content.m-b-sm.border-bottom::before, .filter-card::before, .support-filter-card::before, .calendar-filter-card::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ds-grad-brand);
}
.filter-card, .support-filter-card, .calendar-filter-card { position: relative; }
.filter-label, .calendar-label, .support-label { font-size: 12px; font-weight: 700; color: var(--pr-muted); letter-spacing: 0.02em; }

/* Cip (filtre etiketi) */
.ds-cip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--pr-accent-soft); color: var(--pr-accent); border: 1px solid transparent; }
.ds-cip button { border: 0; background: transparent; color: inherit; padding: 0; line-height: 1; cursor: pointer; }

/* Tarih / typeahead / select2 */
.datepicker-dropdown, .flatpickr-calendar, ul.typeahead.dropdown-menu, .select2-dropdown { border-radius: 14px; }
.select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple { min-height: 42px; border-radius: 10px; background: var(--pr-surface); }
html[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--pr-text); }
html[data-theme="dark"] .select2-dropdown, html[data-theme="dark"] .select2-results__option { background: var(--pr-surface-2); color: var(--pr-text); }
html[data-theme="dark"] .datepicker, html[data-theme="dark"] .datepicker table tr td, html[data-theme="dark"] .datepicker-dropdown { background: var(--pr-surface-2); color: var(--pr-text); }


/* ==========================================================================
   9. BUTONLAR
   ========================================================================== */
.btn { border-radius: 10px; min-height: 40px; padding: 8px 18px; font-weight: 600; letter-spacing: -0.005em; transition: background-color var(--pr-ease), border-color var(--pr-ease), color var(--pr-ease), box-shadow var(--pr-ease), transform var(--pr-ease); }
.btn:active { transform: translateY(1px); }
.btn-sm { border-radius: 9px; min-height: 34px; }
.btn-xs { border-radius: 8px; }
.btn-primary, .btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active {
  background: var(--ds-grad-brand); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -6px rgba(61, 79, 209, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover, .btn-primary:focus { background: var(--ds-grad-brand); border-color: transparent; color: #fff; box-shadow: var(--ds-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22); transform: translateY(-1px); filter: brightness(1.06); }
.btn-primary:focus { box-shadow: var(--ds-ring), var(--ds-glow); }
.btn-default, .btn-white, .btn-secondary, .btn-light { border-color: var(--pr-border-strong); background: var(--pr-surface); box-shadow: var(--pr-shadow-xs); }
.btn-default:hover, .btn-white:hover, .btn-secondary:hover, .btn-light:hover { background: var(--pr-accent-soft); border-color: var(--pr-accent); color: var(--pr-accent); transform: translateY(-1px); }
.btn-danger { background: linear-gradient(135deg, #d6384a 0%, #b02437 100%); border-color: transparent; box-shadow: 0 6px 16px -6px rgba(192, 42, 53, 0.55); }
.btn-danger:hover, .btn-danger:focus { background: linear-gradient(135deg, #e0475a 0%, #a01f31 100%); border-color: transparent; transform: translateY(-1px); }
.btn-success { background: linear-gradient(135deg, #12945a 0%, #0b6f42 100%); border-color: transparent; box-shadow: 0 6px 16px -6px rgba(11, 122, 71, 0.55); }
.btn-success:hover, .btn-success:focus { background: linear-gradient(135deg, #17a566 0%, #0a6239 100%); border-color: transparent; transform: translateY(-1px); }
.btn-info { background: linear-gradient(135deg, #1486bd 0%, #0b6a99 100%); border-color: transparent; box-shadow: 0 6px 16px -6px rgba(11, 106, 153, 0.5); }
.btn-info:hover, .btn-info:focus { background: linear-gradient(135deg, #1c96d0 0%, #095d87 100%); border-color: transparent; transform: translateY(-1px); }
.btn-warning { background: linear-gradient(135deg, #f7bf3a 0%, #eba10f 100%); border-color: transparent; box-shadow: 0 6px 16px -6px rgba(235, 161, 15, 0.55); }
.btn-warning:hover, .btn-warning:focus { background: linear-gradient(135deg, #fac84f 0%, #e0980a 100%); border-color: transparent; transform: translateY(-1px); }
.btn-outline.btn-primary { background: var(--pr-surface); }
.btn.btn-circle { border-radius: 50%; box-shadow: none; }
.btn-group > .btn { transform: none; }
.btn-group > .btn.active, .btn-group > .btn-white.active { background: var(--pr-accent-soft); border-color: var(--pr-accent); color: var(--pr-accent); box-shadow: none; }
.btn[disabled], .btn.disabled { transform: none; filter: grayscale(0.2); }


/* ==========================================================================
   10. TABLOLAR + EYLEM DUGMELERI
   ========================================================================== */
.table { font-size: 13.5px; }
.table > thead > tr > th, .table thead th, .table .thead-light th {
  background: var(--ds-th-bg); color: var(--ds-th-text); font-size: 12px; font-weight: 700; letter-spacing: 0.025em;
  padding: 12px 14px; border-bottom: 1px solid var(--pr-border-strong);
}
.table > thead > tr > th:first-child { border-top-left-radius: 10px; }
.table > thead > tr > th:last-child { border-top-right-radius: 10px; }
.table td, .table th { padding: 11px 14px; }
.table > tbody > tr > td { transition: background-color var(--pr-ease); }
.table > tbody > tr:not([class*="table-"]):not([class*="bg-"]):nth-of-type(even) > td { background-color: var(--ds-zebra); }
.table > tbody > tr:not([class*="table-"]):not([class*="bg-"]):hover > td { background-color: var(--ds-hover-row); }
.table > tbody > tr:not([class*="table-"]):not([class*="bg-"]):hover > td:first-child { box-shadow: inset 3px 0 0 var(--pr-accent); }
.table-striped > tbody > tr:not([class*="table-"]):not([class*="bg-"]):nth-of-type(odd) { background-color: transparent; }
.table-responsive { border-radius: 12px; }
.table-responsive > .table > thead > tr > th { box-shadow: 0 1px 0 var(--pr-border-strong); }
.table-bordered { border-radius: 12px; overflow: hidden; }
.table-bordered thead th:first-child { border-top-left-radius: 12px; }
.table-bordered thead th:last-child { border-top-right-radius: 12px; }

/* Eylem dugmeleri: yuvarlatilmis kare, yumusak ton; ustune gelince dolgu */
.table td .btn.btn-circle, .table td .btn-circle, .ibox-content .btn.btn-circle.btn-primary:not(.btn-lg):not(.btn-xl) {
  width: 32px; height: 32px; border-radius: 10px; background: var(--pr-accent-soft); color: var(--pr-accent); border: 1px solid transparent; box-shadow: none;
}
.table td .btn.btn-circle:hover, .ibox-content .btn.btn-circle.btn-primary:not(.btn-lg):not(.btn-xl):hover {
  background: var(--ds-grad-brand); color: #fff; transform: translateY(-1px) scale(1.06); box-shadow: var(--ds-glow); filter: none;
}
.table td .btn.btn-circle.btn-danger { background: var(--pr-danger-soft); color: var(--pr-danger); }
.table td .btn.btn-circle.btn-danger:hover { background: var(--pr-danger); color: #fff; box-shadow: 0 6px 16px -6px rgba(192, 42, 53, 0.6); }
.table td .btn.btn-circle.btn-success { background: var(--pr-success-soft); color: var(--pr-success); }
.table td .btn.btn-circle.btn-success:hover { background: var(--pr-success); color: #fff; }
.table td .btn.btn-circle.btn-warning { background: var(--pr-warning-soft); color: var(--pr-warning); }
.table td .btn.btn-circle.btn-warning:hover { background: var(--pr-warning-fill); color: #3b2a00; }
.table td .btn.btn-circle.btn-info { background: var(--pr-info-soft); color: var(--pr-info); }
.table td .btn.btn-circle.btn-info:hover { background: var(--pr-info); color: #fff; }
.table td .btn:not(.btn-circle) { border-radius: 9px; }

/* Sayfalama */
.pagination > li > a, .pagination > li > span, .page-link { border-radius: 10px !important; min-width: 36px; padding: 6px 11px; font-weight: 600; }
.pagination > .active > a, .page-item.active .page-link, .pagination > li.active > a, .pagination > .active > span { background: var(--ds-grad-brand); border-color: transparent; color: #fff; box-shadow: var(--ds-glow); }
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { background: var(--ds-grad-brand); border-color: transparent; border-radius: 10px; }
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: 10px; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { height: 38px; border-radius: 10px; }
.dataTables_wrapper .dataTables_filter input { min-width: 240px; }

/* Bos durum: dataTables ve genel */
td.dataTables_empty, .dataTables_empty, .empty-state, .no-data { padding: 44px 16px !important; color: var(--pr-muted); }
td.dataTables_empty::before, .empty-state::before {
  content: "\f1c0"; font-family: FontAwesome; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; font-size: 26px;
  background: var(--pr-accent-soft); color: var(--pr-accent);
}


/* ==========================================================================
   11. ROZET, SEKME, MENU, MODAL, UYARI
   ========================================================================== */
.label, .badge { padding: 3px 10px; font-size: 11.5px; font-weight: 700; border: 1px solid transparent; }
.label-primary, .badge-primary { background: var(--pr-accent-soft); color: var(--pr-accent-active); border-color: rgba(61, 79, 209, 0.16); }
.label-success, .badge-success { background: var(--pr-success-soft); color: var(--pr-success); border-color: rgba(11, 122, 71, 0.16); }
.label-warning, .badge-warning { background: var(--pr-warning-soft); color: var(--pr-warning); border-color: rgba(138, 81, 0, 0.16); }
.label-danger, .badge-danger { background: var(--pr-danger-soft); color: var(--pr-danger); border-color: rgba(192, 42, 53, 0.16); }
.label-info, .badge-info { background: var(--pr-info-soft); color: var(--pr-info); border-color: rgba(11, 106, 153, 0.16); }
.navbar-top-links .label-danger { border-color: transparent; }

.alert { border-radius: 12px; border-left-width: 4px; padding: 14px 18px; box-shadow: var(--pr-shadow-xs); }
.nav-tabs { border-bottom: 1px solid var(--pr-border); }
.nav-tabs > li > a, .nav-tabs .nav-link { border-radius: 10px 10px 0 0; font-weight: 600; }
.nav-tabs > li.active > a, .nav-tabs .nav-link.active { color: var(--pr-accent); border-bottom: 3px solid var(--pr-accent); background: linear-gradient(180deg, transparent, var(--pr-accent-soft)); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: var(--ds-grad-brand); box-shadow: var(--ds-glow); }
.dropdown-menu { border-radius: 14px; box-shadow: var(--pr-shadow-md); }
.progress { height: 10px; }
.progress-bar { background: var(--ds-grad-brand); }

/* Modal */
.modal-backdrop.show, .modal-backdrop.in { background-color: #080d26; opacity: 0.6; }
.modal.fade .modal-dialog { transform: translateY(18px) scale(0.98); transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease; }
.modal.show .modal-dialog { transform: none; }
.modal-content { border-radius: 20px; border: 1px solid var(--pr-border); overflow: visible; box-shadow: var(--pr-shadow-lg); position: relative; }
.modal-content::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 20px 20px 0 0; background: var(--ds-grad-brand); z-index: 2;
}
.modal-header { padding: 22px 28px 16px; border-radius: 20px 20px 0 0; border-bottom: 1px solid var(--pr-border); background: linear-gradient(180deg, var(--pr-surface-2), var(--pr-surface)); }
.modal-header .modal-title { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.modal-header .close { width: 36px; height: 36px; border-radius: 12px; background: var(--pr-surface-2); font-size: 22px; }
.modal-header .close:hover { background: var(--pr-danger-soft); color: var(--pr-danger); }
.modal-body { padding: 24px 28px; }
.modal-footer { padding: 16px 28px; border-radius: 0 0 20px 20px; }
body .sweet-alert { border-radius: 20px; }
body .sweet-alert button.confirm { background: var(--ds-grad-brand) !important; border-radius: 10px; box-shadow: var(--ds-glow) !important; }
body .sweet-alert button.cancel { border-radius: 10px; }
#toast-container > div { border-radius: 14px; box-shadow: var(--pr-shadow-md); }
.tooltip-inner { border-radius: 8px; font-weight: 500; }


/* ==========================================================================
   12. VERI DURUMLARI
   ========================================================================== */
.veri-durum { background: var(--pr-surface); font-weight: 500; }
.veri-durum-bos::before, .veri-durum-hata::before {
  content: "\f01c"; font-family: FontAwesome; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; font-size: 22px; background: var(--pr-accent-soft); color: var(--pr-accent);
}
.veri-durum-hata::before { content: "\f071"; background: var(--pr-danger-soft); color: var(--pr-danger); }
.veri-iskelet { height: 60%; border-radius: 14px; }
.text-muted:empty { display: none; }


/* ==========================================================================
   13. SAYFA OZEL UYUMLAR
   ========================================================================== */
.hero-info-card, .calendar-hero-actions .btn-calendar-light, .support-hero-actions .btn-support-light { border-radius: 12px; }
.calendar-hero .btn.btn-calendar-light, .support-hero .btn.btn-support-light {
  background: rgba(255, 255, 255, 0.95); color: #1b2370; border-color: transparent; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5);
}
.calendar-hero .btn.btn-calendar-light:hover, .support-hero .btn.btn-support-light:hover { background: #fff; color: #2b3aa8; }
.calendar-hero .btn.btn-calendar-primary, .support-hero .btn.btn-support-primary { background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.38); color: #fff; box-shadow: none; }
.calendar-hero .btn.btn-calendar-primary:hover, .support-hero .btn.btn-support-primary:hover { background: rgba(255, 255, 255, 0.28); filter: none; }
.support-summary-card { border-radius: var(--pr-radius); border: 1px solid var(--pr-border); box-shadow: var(--pr-shadow-sm); transition: transform 220ms ease, box-shadow 220ms ease; }
.support-summary-card:hover { transform: translateY(-4px); box-shadow: var(--pr-shadow-md); }
.summary-icon { border-radius: 14px; }
.calendar-card, .support-table-card, .table-card { border-radius: var(--pr-radius); }

/* Versiyon / notlar: baslik bandi (sayfa CSS'i kendi basligini koyu metinle veriyor) */
.vy-head { padding: 22px 28px; margin-bottom: var(--pr-s3); align-items: center; }
.vy-head h1 { color: #fff; font-size: var(--ds-fs-title); font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.vy-head p { color: rgba(255, 255, 255, 0.82); margin: 6px 0 0; }
.vy-tabs { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 14px; box-shadow: none; padding: 4px; }
.vy-tab { color: rgba(255, 255, 255, 0.86); border-radius: 10px; font-weight: 600; }
.vy-tab:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.vy-tab[aria-selected="true"] { background: #fff; color: #2b3aa8; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.45); }
.vy-card { border-radius: var(--pr-radius); box-shadow: var(--pr-shadow-sm); border-color: var(--pr-border); }

.notlar-ust {
  position: relative; overflow: hidden; isolation: isolate; background: var(--ds-grad-hero); border-radius: var(--pr-radius-lg); padding: 22px 28px; margin-bottom: var(--pr-s3);
  box-shadow: 0 18px 40px -18px rgba(43, 58, 168, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.notlar-ust::before { content: ""; position: absolute; z-index: -1; right: -60px; top: -90px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0) 65%); }
.notlar-ust h2 { color: #fff; font-size: var(--ds-fs-title); font-weight: 800; letter-spacing: -0.025em; }
.notlar-ust .not-sayac { background: rgba(255, 255, 255, 0.18); color: #fff; border-radius: 999px; }
.notlar-ust .btn-white, .notlar-ust .btn-white:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.notlar-ust .btn-white.active { background: #fff; color: #2b3aa8; border-color: #fff; }
.notlar-ust .btn-primary { background: #fff; color: #2b3aa8; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5); }
.notlar-ust .notlar-arama .form-control { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.notlar-ust .notlar-arama .form-control::placeholder, .notlar-ust .notlar-arama .fa { color: rgba(255, 255, 255, 0.75); }


/* Tablo icinde yalniz ikonlu butonlar (btn-circle olmayanlar da): yumusak ton, ustune gelince dolgu */
.table td .btn:has(> i.fa:only-child), .table td a.btn:has(> i.fa:only-child) {
  width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 10px; box-shadow: none; filter: none;
  background: var(--pr-accent-soft); color: var(--pr-accent); border: 1px solid transparent;
}
.table td .btn:has(> i.fa:only-child) .fa::before { margin: 0; }
.table td .btn:has(> i.fa:only-child):hover { background: var(--ds-grad-brand); color: #fff; transform: translateY(-1px) scale(1.06); box-shadow: var(--ds-glow); }
.table td .btn-danger:has(> i.fa:only-child) { background: var(--pr-danger-soft); color: var(--pr-danger); }
.table td .btn-danger:has(> i.fa:only-child):hover { background: var(--pr-danger); color: #fff; box-shadow: 0 6px 16px -6px rgba(192, 42, 53, 0.6); }
.table td .btn-warning:has(> i.fa:only-child) { background: var(--pr-warning-soft); color: var(--pr-warning); }
.table td .btn-warning:has(> i.fa:only-child):hover { background: var(--pr-warning-fill); color: #3b2a00; box-shadow: none; }
.table td .btn-success:has(> i.fa:only-child) { background: var(--pr-success-soft); color: var(--pr-success); }
.table td .btn-success:has(> i.fa:only-child):hover { background: var(--pr-success); color: #fff; }
.table td .btn-info:has(> i.fa:only-child) { background: var(--pr-info-soft); color: var(--pr-info); }
.table td .btn-info:has(> i.fa:only-child):hover { background: var(--pr-info); color: #fff; }

/* Filtrelerde "label" sinifi rozet degil, duz etiket olsun (Log ekranlari) */
.ibox-content label.label, .filter-card label.label {
  display: block; background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0 0 6px; color: var(--pr-text-2); font-size: 12.5px; font-weight: 600; white-space: normal;
}
.ibox-content label.label:empty { display: none; }

/* Versiyon sayfasi: ortadaki dar sutun yerine diger ekranlar gibi tam genislik */
.vy-page { max-width: none; padding: 0 0 32px; }
.vy-head { margin: 0 0 var(--pr-s3); }

/* Istatistik ozet kartlari: gosterge (KPI) kartlari gibi */
.ist-ozet .ist-kart {
  --kpi: var(--ds-kpi-1); --kpi-soft: var(--ds-kpi-1-soft);
  position: relative; overflow: hidden; border: 1px solid var(--pr-border) !important; border-top: 3px solid var(--kpi) !important; padding: 18px 20px; min-height: 100px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.ist-ozet > div:nth-child(2) .ist-kart { --kpi: var(--ds-kpi-3); --kpi-soft: var(--ds-kpi-3-soft); }
.ist-ozet > div:nth-child(3) .ist-kart { --kpi: var(--ds-kpi-5); --kpi-soft: var(--ds-kpi-5-soft); }
.ist-ozet > div:nth-child(4) .ist-kart { --kpi: var(--ds-kpi-4); --kpi-soft: var(--ds-kpi-4-soft); }
.ist-ozet .ist-kart small { font-size: 12.5px; font-weight: 600; color: var(--pr-muted); }
.ist-ozet .ist-kart strong { display: block; font-size: var(--ds-fs-kpi); font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; margin-top: 4px; }
.ist-ozet .ist-kart::after {
  content: "\f145"; font-family: FontAwesome; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; background: var(--kpi-soft); color: var(--kpi); font-size: 20px; transition: transform 240ms cubic-bezier(0.3, 1.5, 0.5, 1);
}
.ist-ozet > div:nth-child(2) .ist-kart::after { content: "\f072"; }
.ist-ozet > div:nth-child(3) .ist-kart::after { content: "\f0ac"; }
.ist-ozet > div:nth-child(4) .ist-kart::after { content: "\f19c"; }
.ist-ozet .ist-kart:hover { transform: translateY(-4px); box-shadow: var(--pr-shadow-md); }
.ist-ozet .ist-kart:hover::after { transform: translateY(-50%) rotate(-8deg) scale(1.12); }

/* Daraltilmis menu logosu */
body.mini-navbar .logo-element { font-size: 12px; letter-spacing: 0; }

/* ==========================================================================
   14. GIRIS EKRANLARI (ayri duzen: Login/Index, Sifremi unuttum, Hata)
   ========================================================================== */
body.gray-bg:not(.giris) { background: var(--ds-page-bg); }
body.giris { display: block; padding: 0; min-height: 100vh; background: var(--pr-bg); }
body.giris::before, body.giris::after { display: none !important; }
.giris-duzen { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100vh; }
.giris-vitrin {
  position: relative; overflow: hidden; isolation: isolate; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: radial-gradient(900px 520px at 10% 0%, rgba(106, 69, 214, 0.55), transparent 60%), radial-gradient(700px 600px at 100% 100%, rgba(61, 79, 209, 0.65), transparent 60%), linear-gradient(160deg, #0b1030 0%, #161f5c 55%, #1d2a86 100%);
}
.giris-vitrin::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
.giris-vitrin .orb { position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px); }
.giris-vitrin .orb.o1 { width: 340px; height: 340px; right: -90px; top: 14%; background: radial-gradient(circle at 30% 30%, rgba(154, 166, 255, 0.45), rgba(154, 166, 255, 0) 68%); animation: ds-yuz 9s ease-in-out infinite; }
.giris-vitrin .orb.o2 { width: 220px; height: 220px; left: 12%; bottom: 8%; background: radial-gradient(circle at 40% 40%, rgba(160, 110, 255, 0.45), rgba(160, 110, 255, 0) 68%); animation: ds-yuz 11s ease-in-out infinite reverse; }
@keyframes ds-yuz { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.giris-marka { display: flex; align-items: center; gap: 14px; }
.giris-marka .marka-isaret { width: 48px; height: 48px; font-size: 22px; border-radius: 14px; }
.giris-marka b { font-size: 20px; letter-spacing: 0.18em; font-weight: 800; }
.giris-marka small { display: block; color: rgba(255, 255, 255, 0.7); font-size: 12px; letter-spacing: 0.03em; margin-top: 3px; font-weight: 500; }
.giris-slogan { max-width: 520px; }
.giris-slogan h2 { color: #fff; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -0.035em; margin: 0 0 16px; }
.giris-slogan h2 span { background: linear-gradient(90deg, #aeb8ff, #d6b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.giris-slogan p { color: rgba(255, 255, 255, 0.78); font-size: 16px; line-height: 1.6; margin: 0 0 28px; }
.giris-ozellik { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.giris-ozellik li { display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, 0.9); font-size: 14.5px; font-weight: 500; }
.giris-ozellik li .fa { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: #c3caff; font-size: 16px; }
.giris-alt { color: rgba(255, 255, 255, 0.55); font-size: 12.5px; }
.giris-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--ds-page-bg); position: relative; }
.giris-kart {
  width: 100%; max-width: 430px; padding: 44px 40px 32px; background: var(--pr-surface); border: 1px solid var(--pr-border); border-radius: 24px; box-shadow: var(--pr-shadow-md);
  animation: ds-giris 520ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; position: relative;
}
.giris-kart::before { content: ""; position: absolute; left: 36px; right: 36px; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: var(--ds-grad-brand); }
.giris-kart .giris-mobil-marka { display: none; }
.giris-kart h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 6px; color: var(--pr-text); text-align: left; }
.giris-kart .giris-alt-baslik { margin: 0 0 26px; color: var(--pr-muted); font-size: 14.5px; text-align: left; }
.giris-kart .alan { position: relative; margin-bottom: 16px; text-align: left; }
.giris-kart .alan > .fa.ikon { position: absolute; left: 15px; top: 41px; color: var(--pr-muted); font-size: 15px; pointer-events: none; }
.giris-kart .alan label { display: block; font-size: 12.5px; font-weight: 700; color: var(--pr-text-2); margin-bottom: 7px; }
.giris-kart .alan input.form-control { height: 50px !important; padding: 0 46px 0 44px; border-radius: 14px; font-size: 15px; background: var(--pr-surface-2); }
.giris-kart .alan input.form-control:focus { background: var(--pr-surface); }
.giris-kart .goz {
  position: absolute; right: 8px; top: 34px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--pr-muted); cursor: pointer; display: grid; place-items: center;
}
.giris-kart .goz:hover { background: var(--pr-accent-soft); color: var(--pr-accent); }
.giris-kart .alan .text-danger { display: block; margin-top: 6px; font-size: 12.5px; }
.giris-kart .btn-giris { width: 100%; height: 52px; min-height: 52px; margin-top: 6px; border-radius: 14px; font-size: 15.5px; font-weight: 700; display: flex; }
.giris-kart .giris-link { display: block; margin-top: 18px; text-align: center; font-size: 13.5px; font-weight: 600; }
.giris-kart .giris-telif { margin: 26px 0 0; text-align: center; color: var(--pr-muted); font-size: 12px; }
.giris-kart .alert { text-align: left; margin-bottom: 18px; }
.giris-tema { position: absolute; top: 18px; right: 18px; }

/* Eski (Hata, Sifre onay) kartlari: ayni dilde */
body.gray-bg .middle-box, body.gray-bg .passwordBox, body.gray-bg .loginscreen { border-radius: 24px; box-shadow: var(--pr-shadow-md); background: var(--pr-surface); }
body.gray-bg .logo-name { color: var(--pr-accent); }
body.gray-bg .passwordBox h2.font-bold { color: var(--pr-text); }
body.gray-bg .btn.full-width, body.gray-bg .btn.block { border-radius: 14px; min-height: 48px; }
body.gray-bg .form-control { height: 48px !important; border-radius: 12px; }


/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */
@media (max-width: 1199.98px) {
  .hizli-git { flex-basis: 220px; }
  .hizli-git kbd { display: none; }
  .hizli-git input { padding-right: 14px; }
  .kullanici-dugme .kullanici-ad { display: none; }
  .kullanici-menu > a.kullanici-dugme { padding-right: 4px !important; }
}
@media (max-width: 991.98px) {
  .giris-duzen { grid-template-columns: 1fr; }
  .giris-vitrin { display: none; }
  .giris-kart .giris-mobil-marka { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
  .giris-kart .giris-mobil-marka b { font-size: 17px; letter-spacing: 0.16em; color: var(--pr-text); }
  .sayfa-baslik { flex-wrap: wrap; }
  .sayfa-baslik-eylem { width: 100%; justify-content: flex-start; }
  .navbar-top-links .sifre-chip { display: none; }
}
@media (max-width: 767.98px) {
  .navbar.navbar-static-top { min-height: 60px; gap: 8px; padding: 0 12px; }
  .hizli-git { display: none; }
  .navbar-top-links { gap: 2px; margin-left: auto; }
  .navbar-top-links .btn.dim, .navbar-static-top .navbar-top-links > li > a.count-info, .navbar-minimalize.btn { width: 38px; height: 38px; min-height: 38px; }
  .navbar-top-links .btn.dim { margin: 0 !important; }
  .navbar-static-top .navbar-top-links > li > a.btn { font-size: 14px; }
  .sayfa-baslik, .calendar-hero, .support-hero, .products-hero, .vy-head, .notlar-ust { padding: 18px 18px; border-radius: 16px; gap: 14px; }
  .sayfa-baslik-ikon { width: 46px; height: 46px; font-size: 20px; border-radius: 14px; }
  .sayfa-baslik-ad, .calendar-title, .support-title, .products-title, .vy-head h1, .notlar-ust h2 { font-size: 22px; }
  .sayfa-baslik-aciklama { font-size: 13px; }
  .ibox-title { padding: 13px 16px; }
  .ibox-content { padding: 16px; }
  .ibox:has(h1.no-margins):hover { transform: none; }
  .ds-fs-kpi, :root { --ds-fs-kpi: 28px; }
  .grafik-kutu { height: 260px; }
  .modal-content { border-radius: 0; }
  .modal-content::before, .modal-header { border-radius: 0; }
  .footer { flex-direction: column; gap: 4px; text-align: center; }
  .giris-kart { padding: 36px 24px 26px; border-radius: 20px; }
  .giris-panel { padding: 20px 14px; align-items: flex-start; }
  body.mini-navbar .navbar-static-side .nav > li > a:hover::after { display: none; }
}

/* ==========================================================================
   15b. TABLOLAR: BASLIKLA SIRALAMA (js/app/tablo-siralama.js) + OKUNAKLI SATIRLAR
   ========================================================================== */
#page-wrapper table.ts-tablo thead th.ts-th {
  cursor: pointer; user-select: none; position: relative; padding-right: 24px !important; white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
#page-wrapper table.ts-tablo thead th.ts-th:hover { color: var(--pr-accent); background-color: var(--pr-accent-soft); }
#page-wrapper table.ts-tablo thead th.ts-th:focus-visible { outline: 2px solid var(--pr-accent); outline-offset: -2px; }
#page-wrapper table.ts-tablo thead th .ts-ok { position: absolute; right: 8px; top: 50%; width: 8px; height: 12px; margin-top: -6px; opacity: .35; }
#page-wrapper table.ts-tablo thead th .ts-ok::before,
#page-wrapper table.ts-tablo thead th .ts-ok::after { content: ""; position: absolute; left: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; }
#page-wrapper table.ts-tablo thead th .ts-ok::before { top: 0; border-bottom: 5px solid currentColor; }
#page-wrapper table.ts-tablo thead th .ts-ok::after { bottom: 0; border-top: 5px solid currentColor; }
#page-wrapper table.ts-tablo thead th.ts-artan, #page-wrapper table.ts-tablo thead th.ts-azalan { color: var(--pr-accent); }
#page-wrapper table.ts-tablo thead th.ts-artan .ts-ok, #page-wrapper table.ts-tablo thead th.ts-azalan .ts-ok { opacity: 1; }
#page-wrapper table.ts-tablo thead th.ts-artan .ts-ok::after { opacity: .2; }
#page-wrapper table.ts-tablo thead th.ts-azalan .ts-ok::before { opacity: .2; }

/* Talep listeleri (Destek / Next / Bekleyen / Telefon): yeni baslik satiri + sakin zebra */
#page-wrapper table.problemlist thead th {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--pr-muted); background: var(--pr-surface-2); border-bottom: 1px solid var(--pr-border-strong); border-top: 0;
}
#page-wrapper table.problemlist > tbody > tr:nth-child(even) > td { background-color: var(--pr-surface-2); }
#page-wrapper table.problemlist > tbody > tr:hover > td { background-color: var(--pr-accent-soft); }

/* Satilan Urunler: her satir ayri okunur (yumusak zebra), kodlar tek satir, buyuk durum dugmeleri */
#page-wrapper #productList.modern-product-table > thead > tr > th {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--pr-muted);
  background: var(--pr-surface-2); white-space: nowrap; vertical-align: middle;
}
#page-wrapper #productList.modern-product-table > tbody > tr > td {
  vertical-align: middle; padding: 12px 10px; border-top: 1px solid var(--pr-border); font-size: 13.5px; color: var(--pr-text);
}
#page-wrapper #productList.modern-product-table > tbody > tr:nth-child(odd) > td { background-color: var(--pr-surface); }
#page-wrapper #productList.modern-product-table > tbody > tr:nth-child(even) > td { background-color: var(--pr-surface-2); }
#page-wrapper #productList.modern-product-table > tbody > tr:hover > td { background-color: var(--pr-accent-soft); }
#productList td.su-kod, #productList td.su-tarih, #productList td.su-tutar { white-space: nowrap; }
#productList td.su-kod { font-variant-numeric: tabular-nums; color: var(--pr-text-2); }
#productList td.su-tutar { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
#productList td.su-tarih small { color: var(--pr-muted); margin-left: 2px; }
#productList td.su-musteri { font-weight: 600; min-width: 160px; }
#productList td.su-odeme-ref span {
  display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
  font-size: 12.5px; color: var(--pr-text-2);
}
#productList .su-paket {
  display: inline-block; white-space: nowrap; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: #1d4ed8; background: #e8efff; border: 1px solid #d3e0ff;
}
#productList .su-odeme {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 124px;
  padding: 8px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700; line-height: 1; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
#productList .su-odeme i { font-size: 15px; }
#productList .su-odeme:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15, 23, 42, .10); }
#productList .su-odeme:focus-visible { outline: 2px solid var(--pr-accent); outline-offset: 2px; }
#productList .su-odendi { color: #0f7a4a; background: #e3f6ec; border-color: #bfe8d2; }
#productList .su-odendi:hover { background: #d5f1e2; }
#productList .su-bekliyor { color: #9a5b00; background: #fff3d9; border-color: #f5dca3; }
#productList .su-bekliyor:hover { background: #ffecc2; }
#productList .su-detay { width: 34px; height: 34px; border-radius: 10px; }
html[data-theme="dark"] #productList .su-paket { color: #a9c2ff; background: rgba(59, 103, 255, .16); border-color: rgba(120, 150, 255, .28); }
html[data-theme="dark"] #productList .su-odendi { color: #7fe0b0; background: rgba(16, 185, 129, .14); border-color: rgba(16, 185, 129, .3); }
html[data-theme="dark"] #productList .su-bekliyor { color: #ffd27a; background: rgba(245, 158, 11, .14); border-color: rgba(245, 158, 11, .3); }

/* ==========================================================================
   16. HAREKET AZALTMA / BASKI
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ibox:has(h1.no-margins):hover, .support-summary-card:hover, .btn:hover { transform: none !important; }
  .orb, .count-info .label, .ibox-content h1.no-margins:empty::before { animation: none !important; }
}
@media print {
  .sayfa-baslik, .hizli-git, .giris-vitrin { display: none !important; }
  .ibox:has(h1.no-margins)::after, .ibox:has(h1.no-margins) .ibox-content::after { display: none; }
  body { background: #fff !important; }
}

/* Faz 45 - Satilan Urunler: Odeme Tipi rozeti (OdemeTip: 0 Havale, 1 Kredi karti) + Referans / Aciklama sutunu */
html:root body .su-tip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: color-mix(in srgb, var(--ink, #22222a) 9%, transparent); color: var(--ink, #22222a); }
html:root body .su-tip-havale { background: color-mix(in srgb, #2b7457 16%, transparent); color: #1f5a43; }
html:root body .su-tip-kart { background: color-mix(in srgb, #3b5bdb 15%, transparent); color: #2f49b0; }
html:root body .su-tip-stripe { background: color-mix(in srgb, #7048e8 15%, transparent); color: #5a38c0; }
html:root body td.su-odeme-ref { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink2, #5a5a64); }