/* patron.css — Patron paneli: Tabler 1.7.5 üzerine KuyumGo marka ayarları (2026-12-01)
 * Tasarım dili Tabler'ın kendisi (kart, sayfa başlığı, tablo, rozet); burada yalnız marka rengi (lacivert + altın),
 * yazı tipi (Inter) ve panel parçalarının (KPI kartı, grafik yükseklikleri, giriş ekranı yan paneli) ayarları var.
 */
:root {
  --tblr-font-sans-serif: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --pt-ana: #1f4a7a;
  --pt-ana-koyu: #163659;
  --pt-altin: #c39a42;
  --pt-altin-acik: #e3c27a;
  --pt-lacivert: #0f1c2f;
  --tblr-primary: var(--pt-ana);
  --tblr-primary-rgb: 31, 74, 122;
  --tblr-primary-fg: #ffffff;
  --tblr-link-color: var(--pt-ana);
  --tblr-link-color-rgb: 31, 74, 122;
}
[data-bs-theme="dark"] {
  --pt-ana: #6f9fd8;
  --pt-ana-koyu: #4f83c2;
  --tblr-primary: var(--pt-ana);
  --tblr-primary-rgb: 111, 159, 216;
  --tblr-primary-fg: #0b1422;
  --tblr-link-color: var(--pt-ana);
  --tblr-link-color-rgb: 111, 159, 216;
}
body { font-feature-settings: "cv11", "ss01", "tnum"; letter-spacing: -0.003em; }

/* ── Marka ── */
.pt-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none !important; color: inherit; }
.pt-brand-mark {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: .55rem;
  background: linear-gradient(140deg, var(--pt-altin-acik), var(--pt-altin)); color: #1b1505; font-weight: 800; font-size: .8rem; letter-spacing: .02em;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
}
.pt-brand-text { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.pt-brand-sub { font-weight: 500; color: var(--pt-altin); margin-inline-start: .15rem; }
.pt-brand-lg .pt-brand-mark { width: 2.5rem; height: 2.5rem; font-size: .95rem; border-radius: .7rem; }
.pt-brand-lg .pt-brand-text { font-size: 1.35rem; }

/* ── Sol menü ── */
.pt-sidebar { --tblr-navbar-bg: var(--pt-lacivert); background: var(--pt-lacivert) !important; border-inline-end: 0; }
.pt-sidebar .navbar-brand { padding-block: 1rem .25rem; }
.pt-sidebar .navbar-nav .nav-link { border-radius: .45rem; margin-inline: .5rem; position: relative; }
.pt-sidebar .navbar-nav .nav-link.active { background: rgba(255, 255, 255, .07); color: #fff; }
.pt-sidebar .navbar-nav .nav-link.active::before {
  content: ""; position: absolute; inset-inline-start: -.5rem; top: .45rem; bottom: .45rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--pt-altin);
}
.pt-nav-subtitle { padding: 1.1rem 1.25rem .4rem; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .42); }
.pt-firma-menu { display: flex; flex-direction: column; list-style: none; }
.pt-firma-link { display: flex !important; align-items: center; gap: .6rem; padding: .5rem .75rem !important; font-size: .875rem; }
.pt-firma-harf {
  flex: 0 0 auto; width: 1.5rem; height: 1.5rem; border-radius: .4rem; display: inline-grid; place-items: center; font-size: .7rem; font-weight: 700;
  background: rgba(195, 154, 66, .16); color: var(--pt-altin-acik);
}
.pt-firma-link.active .pt-firma-harf { background: var(--pt-altin); color: #1b1505; }
.pt-firma-bos { padding: .5rem 1.25rem; font-size: .8rem; color: rgba(255, 255, 255, .45); }
.pt-topbar { min-height: 3.5rem; }
.pt-topbar .pt-tema-acik { display: none; }
[data-bs-theme="dark"] .pt-topbar .pt-tema-acik { display: inline-block; }
[data-bs-theme="dark"] .pt-topbar .pt-tema-koyu { display: none; }
.pt-avatar { background: linear-gradient(140deg, var(--pt-ana), var(--pt-ana-koyu)); color: #fff; font-weight: 600; }
.pt-avatar-xl { font-size: 1.6rem; }
.pt-lang .dropdown-toggle, .pt-lang button { font-size: .8125rem; }

/* ── Sayfa ── */
.page-header .page-title { font-weight: 700; letter-spacing: -.015em; }
.pt-eylemler { flex-wrap: wrap; justify-content: flex-end; }
.pt-donem-btn { background: var(--tblr-bg-surface); border: 1px solid var(--tblr-border-color); }
.pt-donem-menu { min-width: 18rem; }
.pt-sube-sec { width: auto; min-width: 11rem; }
.pt-yukleniyor { min-height: 14rem; display: grid; place-content: center; text-align: center; }
.pt-sekmeler { margin-bottom: 1.25rem; border-bottom-color: var(--tblr-border-color); flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.pt-sekmeler::-webkit-scrollbar { display: none; }
.pt-sekmeler .nav-link { white-space: nowrap; font-weight: 500; }
.pt-sekmeler .nav-link.active { color: var(--tblr-primary); }

/* ── KPI kartı ── */
.pt-kpi .card-body { padding: 1rem 1.1rem; }
.pt-kpi .subheader { line-height: 1.3; }
.pt-kpi-ico { width: 2.1rem; height: 2.1rem; border-radius: .55rem; display: inline-grid; place-items: center; font-size: 1.15rem; }
.pt-kpi-deger { font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; margin-top: .35rem; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-kpi-yan { font-size: .9rem; font-weight: 600; color: var(--tblr-secondary); }
.pt-kpi-alt { margin-top: .35rem; font-size: .78rem; color: var(--tblr-secondary); }
.pt-kpi-alt .progress { margin-top: .5rem; }
.pt-ayrac { color: var(--tblr-border-color); font-weight: 400; }
.pt-kpi-akis .pt-kpi-deger { font-size: 1.15rem; line-height: 1.35; }
.pt-akis-satir { display: flex; align-items: center; gap: .35rem; }
.pt-akis-satir .ti { font-size: 1rem; }
.pt-kivilcim { height: 2.5rem; margin: .5rem -.25rem -.25rem; }
.pt-progress { height: .35rem; }

/* ── Tablolar ── */
.pt-satir-link { cursor: pointer; }
.pt-satir-link:hover { background: var(--tblr-bg-surface-secondary); }
.pt-satir-link:focus-visible { outline: 2px solid var(--tblr-primary); outline-offset: -2px; }
.pt-firma-avatar { background: rgba(195, 154, 66, .14); color: #8a6a22; font-weight: 700; }
[data-bs-theme="dark"] .pt-firma-avatar { color: var(--pt-altin-acik); }
.pt-banka-avatar { background: var(--tblr-primary-lt); color: var(--tblr-primary); font-weight: 700; font-size: .65rem; }
.pt-form-hucre { min-width: 10rem; }
.pt-aciklama { max-width: 22rem; }
.pt-hareket-tablo td { vertical-align: top; }
.card-table td, .card-table th { font-variant-numeric: tabular-nums; }

/* ── Grafikler ── */
.pt-grafik { height: 17rem; width: 100%; }
.pt-grafik-kisa { height: 15rem; }
.pt-grafik-halka { height: 13rem; }
.pt-lejant { margin-top: .5rem; max-height: 9rem; overflow: auto; }
.pt-nokta { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; vertical-align: middle; }
.pt-nokta-birincil { background: var(--pt-ana); }
.pt-nokta-altin { background: var(--pt-altin); }
.pt-nokta-yesil { background: var(--tblr-success); }
.pt-nokta-kirmizi { background: var(--tblr-danger); }
.pt-nokta-mor { background: var(--tblr-purple); }
.pt-nokta-turuncu { background: var(--tblr-orange); }
.pt-nokta-gri { background: var(--tblr-gray-400); }

/* ── Bildirim ── */
.pt-bildirim { position: fixed; inset-inline-end: 1rem; bottom: 1rem; z-index: 1080; width: min(24rem, calc(100vw - 2rem)); }

/* ── Giriş ekranı ── */
.pt-auth-body { background: var(--tblr-bg-surface-secondary); }
.pt-auth-card { border: 0; box-shadow: 0 1px 2px rgba(15, 28, 47, .06), 0 12px 32px -12px rgba(15, 28, 47, .18); }
.pt-auth-note { display: flex; gap: .5rem; align-items: flex-start; font-size: .8rem; color: var(--tblr-secondary); }
.pt-auth-note i { font-size: 1rem; color: var(--pt-altin); margin-top: .05rem; }
.pt-otp { letter-spacing: .5em; font-weight: 600; font-variant-numeric: tabular-nums; }
.pt-turnstile { min-height: 65px; display: flex; justify-content: center; }
.pt-auth-aside {
  position: relative; overflow: hidden; border-radius: 1rem; padding: 2.75rem 2.5rem 2.25rem; color: #e8edf5;
  background: radial-gradient(120% 90% at 100% 0%, rgba(195, 154, 66, .18), transparent 55%), var(--pt-lacivert);
  box-shadow: 0 24px 48px -24px rgba(15, 28, 47, .55);
}
.pt-auth-aside-eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pt-altin-acik); }
.pt-auth-aside-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: .6rem 0 1.5rem; color: #fff; }
.pt-auth-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .85rem; }
.pt-auth-list li { display: flex; align-items: center; gap: .75rem; font-size: .95rem; color: #d3dbe7; }
.pt-auth-ico { width: 2.1rem; height: 2.1rem; border-radius: .55rem; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--pt-altin-acik); font-size: 1.1rem; }
.pt-auth-preview { border: 1px solid rgba(255, 255, 255, .08); border-radius: .75rem; background: rgba(255, 255, 255, .03); padding: 1rem; }
.pt-auth-preview-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: .75rem; }
.pt-auth-preview-k { height: .4rem; width: 55%; border-radius: 3px; background: rgba(255, 255, 255, .14); margin-bottom: .45rem; }
.pt-auth-preview-v { height: .75rem; border-radius: 4px; background: rgba(255, 255, 255, .28); }
.pt-auth-preview-v.w-66 { width: 66%; }
.pt-auth-preview-chart { width: 100%; height: 5.5rem; display: block; }
.pt-auth-preview-chart .a { fill: rgba(195, 154, 66, .16); }
.pt-auth-preview-chart .l { fill: none; stroke: var(--pt-altin); stroke-width: 2; }
.pt-auth-aside-foot { margin: 1.25rem 0 0; font-size: .8rem; color: rgba(232, 237, 245, .6); }

/* ── Telefon ── */
@media (max-width: 991.98px) {
  .pt-sidebar .navbar-brand { padding-block: .5rem; }
  .pt-kpi-deger { font-size: 1.35rem; }
  .pt-grafik { height: 14rem; }
}
@media (max-width: 575.98px) {
  .page-header .btn-list { width: 100%; }
  .pt-donem-btn, .pt-sube-sec { width: 100%; }
  .pt-eylemler .dropdown { width: 100%; }
}
@media print {
  .pt-sidebar, .pt-topbar, .pt-sekmeler, .pt-eylemler { display: none !important; }
}
