/* =====================================================================
   GL GROUP - Bootstrap 5.3 tema katmanı (yumuşak / açık tema)
   Renkler Bootstrap'in kendi paletinden alınır: primary #0d6efd (blue),
   gri tonları $gray-100 … $gray-900, durum renkleri Bootstrap'in "subtle"
   (açık zemin + koyu yazı) değişkenleri. Kurumsal logo renkleri yalnızca
   logoda ve PDF / e-posta şablonlarında kullanılır.
   Bu dosya bootstrap.min.css'ten SONRA yüklenir.
   ===================================================================== */

/* ---------- Yazı tipi (yerel, KVKK uyumlu - dış sunucuya istek yok) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tema değişkenleri ---------- */
:root,
[data-bs-theme=light] {
  /* Bootstrap paletinden türetilen yardımcı tonlar */
  --app-primary-soft: #e7f1ff;     /* blue %90 açık (Bootstrap akordeon aktif zemini) */
  --app-primary-strong: #0a58ca;   /* $blue-600 */
  --app-line: #e9ecef;             /* $gray-200 */
  --app-line-strong: #dee2e6;      /* $gray-300 */
  --app-muted: #6c757d;            /* $gray-600 */
  --app-text-soft: #495057;        /* $gray-700 */
  --app-hover: #f8f9fa;            /* $gray-100 */
  --app-surface: #fff;
  --app-page-bg: #f8f9fa;          /* $gray-100: yalnızca sayfa zemini */

  /* --bs-body-bg beyaz kalır: Bootstrap kart, form alanı, tablo, menü ve pencerelerin
     zeminini de bu değişkenden alır; sayfa zemini aşağıda body'ye ayrıca verilir. */
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-size: .875rem;
  --bs-border-color: #e9ecef;
  --bs-border-radius: .5rem;
  --bs-border-radius-lg: .75rem;
  --bs-border-radius-sm: .375rem;
}

body { -webkit-font-smoothing: antialiased; background-color: var(--app-page-bg); }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -.01em; }

/* ---------- Butonlar ve form alanları (yazı boyutu sayfa yazısıyla aynı) ---------- */
.btn { --bs-btn-font-size: .875rem; --bs-btn-font-weight: 500; --bs-btn-padding-x: .85rem; }
.btn-sm { --bs-btn-font-size: .8125rem; --bs-btn-padding-x: .6rem; }
.btn-lg { --bs-btn-font-size: 1rem; }
.btn-icon { --bs-btn-padding-x: .45rem; --bs-btn-padding-y: .25rem; line-height: 1; }
.btn-light {
  --bs-btn-color: #212529;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--app-line-strong);
  --bs-btn-hover-color: #212529;
  --bs-btn-hover-bg: var(--app-hover);
  --bs-btn-hover-border-color: #ced4da;
  --bs-btn-active-color: #212529;
  --bs-btn-active-bg: var(--app-line);
  --bs-btn-active-border-color: #ced4da;
}

@media (min-width: 768px) {
  /* Mobilde 16px kalır (iOS odaklanınca sayfayı yakınlaştırmasın) */
  .form-control, .form-select { font-size: .875rem; }
  .input-group-text { font-size: .875rem; }
}
.form-control-sm, .form-select-sm { font-size: .8125rem; }
.form-label { font-weight: 500; font-size: .8125rem; margin-bottom: .3rem; color: var(--app-text-soft); }
.form-text { font-size: .78rem; }
.form-control::placeholder { color: #adb5bd; }
.form-control.text-mono { font-size: .8125rem; }
.form-control.text-mono::placeholder { font-family: var(--bs-body-font-family); }
.required::after { content: " *"; color: var(--bs-danger); }

.dropdown-menu {
  --bs-dropdown-border-color: var(--app-line);
  --bs-dropdown-font-size: .875rem;
  --bs-dropdown-link-hover-bg: var(--app-hover);
  box-shadow: 0 .5rem 1.5rem rgba(33, 37, 41, .08);
}
.bg-ink { background-color: #343a40 !important; }

/* ---------- Uygulama yerleşimi ---------- */
:root { --sidebar-w: 256px; --topbar-h: 62px; }

.app-sidebar {
  width: var(--sidebar-w);
  background: var(--app-surface);
  color: var(--app-text-soft);
  --bs-offcanvas-width: var(--sidebar-w);
  --bs-offcanvas-bg: var(--app-surface);
  --bs-offcanvas-color: var(--app-text-soft);
}
@media (min-width: 992px) {
  /* Bootstrap .offcanvas-lg geniş ekranda arka planı transparent !important yapar */
  .app-sidebar.offcanvas-lg { background-color: var(--app-surface) !important; }
  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--app-line);
  }
  .app-main { margin-left: var(--sidebar-w); }
}
.app-sidebar .offcanvas-body { display: flex; flex-direction: column; padding: 0; overflow-y: auto; }
.sidebar-brand {
  display: flex;
  align-items: center;
  height: var(--topbar-h);
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--app-line);
  flex-shrink: 0;
}
.sidebar-brand img { height: 40px; width: auto; }
.sidebar-section {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--app-muted);
  padding: 1.1rem 1.4rem .4rem;
  font-weight: 600;
}
.sidebar-nav { list-style: none; margin: 0; padding: 0 .75rem; }
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .75rem;
  margin: 1px 0;
  border-radius: .5rem;
  color: var(--app-text-soft);
  font-weight: 500;
  font-size: .875rem;
}
.sidebar-nav .nav-link .bi { font-size: 1.05rem; width: 1.2rem; text-align: center; color: var(--app-muted); }
.sidebar-nav .nav-link:hover { background: var(--app-hover); color: #212529; }
.sidebar-nav .nav-link.active { background: var(--app-primary-soft); color: var(--app-primary-strong); }
.sidebar-nav .nav-link.active .bi { color: var(--bs-primary); }
.sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.4rem;
  font-size: .72rem;
  color: var(--app-muted);
  border-top: 1px solid var(--app-line);
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--app-line);
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1.25rem;
}
.topbar-search { position: relative; flex: 1 1 auto; max-width: 520px; }
.topbar-search .form-control {
  padding-left: 2.3rem;
  background: var(--app-hover);
  border-color: var(--app-line);
  border-radius: 2rem;
  height: 38px;
}
.topbar-search .form-control:focus { background: #fff; border-color: #86b7fe; }
.topbar-search > .bi { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--app-muted); }
.topbar-search kbd {
  position: absolute; right: .7rem; top: 50%; transform: translateY(-50%);
  font-size: .68rem; background: #fff; color: var(--app-muted); border: 1px solid var(--app-line-strong); padding: .05rem .35rem;
}
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--app-line); border-radius: .75rem;
  box-shadow: 0 1rem 2.5rem rgba(33, 37, 41, .1); max-height: 70vh; overflow-y: auto; z-index: 1050;
}
.picker-results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; min-width: 280px;
  background: #fff; border: 1px solid var(--app-line); border-radius: .6rem;
  box-shadow: 0 1rem 2.5rem rgba(33, 37, 41, .1); max-height: 320px; overflow-y: auto; z-index: 1060;
}
.picker-results a { display: block; padding: .45rem .8rem; color: inherit; text-decoration: none; border-bottom: 1px solid var(--app-hover); }
.picker-results a:last-child { border-bottom: 0; }
.picker-results a:hover, .picker-results a.active { background: var(--app-primary-soft); }
.picker-results .meta { font-size: .76rem; color: var(--app-muted); }
.search-results .group-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--app-muted); padding: .65rem 1rem .25rem; font-weight: 600; }
.search-results a { display: block; padding: .5rem 1rem; color: inherit; text-decoration: none; }
.search-results a:hover, .search-results a.active { background: var(--app-primary-soft); }
.search-results .meta { font-size: .78rem; color: var(--app-muted); }

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bs-primary-bg-subtle); color: var(--app-primary-strong); font-weight: 600; font-size: .8rem; flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: .7rem; }
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; }
.avatar-ink { background: var(--app-line); color: var(--app-text-soft); }

.app-content { padding: 1.5rem; max-width: 1600px; }
@media (max-width: 575.98px) { .app-content { padding: 1rem; } .app-topbar { padding: 0 .75rem; } }

/* ---------- Sayfa başlığı ---------- */
.page-header {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: .75rem 1rem; margin-bottom: 1.25rem;
}
.page-header h1 { font-size: 1.4rem; margin: 0; }
.page-header .breadcrumb { font-size: .78rem; margin-bottom: .25rem; --bs-breadcrumb-divider-color: #adb5bd; }
.page-header .breadcrumb a { color: var(--app-muted); text-decoration: none; }
.page-header .breadcrumb a:hover { color: var(--bs-primary); }
.page-subtitle { color: var(--app-muted); font-size: .85rem; margin-top: .2rem; }

/* ---------- Kartlar ---------- */
.card {
  --bs-card-border-color: var(--app-line);
  --bs-card-border-radius: .75rem;
  --bs-card-cap-bg: transparent;
  --bs-card-spacer-y: 1.1rem;
  --bs-card-spacer-x: 1.25rem;
  box-shadow: 0 1px 2px rgba(33, 37, 41, .04);
}
.card-header { border-bottom-color: var(--app-line); padding-top: .85rem; padding-bottom: .85rem; }
.card-title-sm { font-size: .95rem; font-weight: 600; margin: 0; }
.card-section-title {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--app-muted); font-weight: 600;
  margin: 0 0 .75rem;
}

.stat-card { position: relative; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.stat-card { color: inherit; text-decoration: none; }
a.stat-card:hover { border-color: var(--bs-primary-border-subtle); box-shadow: 0 .4rem 1rem rgba(13, 110, 253, .08); transform: translateY(-1px); }
.stat-card .stat-label { font-size: .78rem; color: var(--app-muted); font-weight: 500; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin-top: .25rem; color: #212529; }
.stat-card .stat-foot { font-size: .76rem; color: var(--app-muted); margin-top: .35rem; }
.stat-icon {
  width: 40px; height: 40px; border-radius: .6rem; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; background: var(--app-primary-soft); color: var(--bs-primary);
}
.stat-icon.ink { background: var(--app-line); color: var(--app-text-soft); }
.stat-icon.green { background: var(--bs-success-bg-subtle); color: var(--bs-success); }
.stat-icon.orange { background: var(--bs-warning-bg-subtle); color: #997404; }
.stat-icon.gray { background: var(--app-hover); color: var(--app-muted); }

/* ---------- Tablolar ---------- */
.table {
  --bs-table-hover-bg: var(--app-hover);
  --bs-table-border-color: var(--app-line);
  margin-bottom: 0;
  font-size: .86rem;
}
.table > thead th {
  background: var(--app-hover);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--app-muted);
  font-weight: 600;
  white-space: nowrap;
  border-bottom-width: 1px;
  padding-top: .65rem;
  padding-bottom: .65rem;
}
.table > :not(caption) > * > * { padding: .7rem .85rem; }
.report-table > :not(caption) > * > * { padding-left: .6rem; padding-right: .6rem; }
.update-file-list { max-height: 18rem; overflow: auto; }
.profit-items-table > thead th { white-space: normal; }
.profit-items-table td.profit-item-cell { min-width: 8rem; }
.report-table > thead th { white-space: normal; }
.report-table > tbody td.report-col-wide { min-width: 11rem; }
.table td { vertical-align: middle; }
.table thead th a { color: inherit; text-decoration: none; }
.table thead th a:hover { color: var(--bs-primary); }
.table thead th .sort-ind { font-size: .7rem; margin-left: .2rem; }
.table-card { border-radius: .75rem; overflow: hidden; }
.cell-title { font-weight: 600; color: #212529; text-decoration: none; }
a.cell-title:hover { color: var(--bs-primary); }
.cell-sub { font-size: .77rem; color: var(--app-muted); }
.text-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82em; }
.row-link { cursor: pointer; }

/* Mobilde tabloları kart görünümüne çevir */
@media (max-width: 767.98px) {
  .table-mobile-cards thead { display: none; }
  .table-mobile-cards, .table-mobile-cards tbody, .table-mobile-cards tr, .table-mobile-cards td { display: block; width: 100%; }
  .table-mobile-cards tr { border-bottom: 1px solid var(--app-line); padding: .6rem .25rem; }
  .table-mobile-cards td { border: 0 !important; padding: .2rem .75rem !important; text-align: left !important; }
  .table-mobile-cards td[data-label]::before {
    content: attr(data-label);
    display: inline-block; min-width: 7.5rem; font-size: .72rem; color: var(--app-muted); text-transform: uppercase; letter-spacing: .04em;
  }
  .table-mobile-cards td.td-actions { padding-top: .45rem !important; }
}

/* ---------- Durum etiketleri (renk + metin; Bootstrap "subtle" renkleri) ---------- */
.badge { font-weight: 600; letter-spacing: .01em; }
.badge-soft { padding: .38em .65em; border-radius: 2rem; font-size: .74rem; border: 1px solid transparent; }
.badge-secondary { background: var(--bs-secondary-bg-subtle); color: var(--bs-secondary-text-emphasis); border-color: var(--bs-secondary-border-subtle); } /* Taslak: gri */
.badge-primary   { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); border-color: var(--bs-primary-border-subtle); } /* Gönderildi: mavi */
.badge-warning   { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); border-color: var(--bs-warning-border-subtle); } /* Takip gerekiyor: sarı */
.badge-success   { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); border-color: var(--bs-success-border-subtle); } /* Kabul: yeşil */
.badge-danger    { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); border-color: var(--bs-danger-border-subtle); }    /* Ret: kırmızı */
.badge-dark-warning { background: #ffe5d0; color: #984c0c; border-color: #fecba1; }  /* Süresi doldu: turuncu ($orange-100 / -700) */
.badge-neutral   { background: var(--app-hover); color: var(--app-muted); border-color: var(--app-line-strong); }                                    /* İptal: nötr gri */
.badge-info      { background: var(--bs-info-bg-subtle); color: var(--bs-info-text-emphasis); border-color: var(--bs-info-border-subtle); }
.badge-dark      { background: var(--app-line); color: #343a40; border-color: var(--app-line-strong); }
.tag-chip {
  display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: 2rem;
  background: var(--app-hover); color: var(--app-text-soft); font-size: .74rem; font-weight: 500; border: 1px solid var(--app-line-strong); text-decoration: none;
}
a.tag-chip:hover { background: var(--app-primary-soft); color: var(--app-primary-strong); border-color: var(--bs-primary-border-subtle); }

/* ---------- Detay sayfası ---------- */
.detail-hero {
  background: #fff; border: 1px solid var(--app-line); border-radius: .75rem; padding: 1.25rem 1.4rem;
  position: relative; overflow: hidden;
}
.detail-hero::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bs-primary-border-subtle);
}
.detail-hero h1 { font-size: 1.35rem; margin: 0; }
.dl-grid { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: .45rem 1rem; margin: 0; font-size: .86rem; }
.dl-grid dt { color: var(--app-muted); font-weight: 500; }
.dl-grid dd { margin: 0; color: #212529; word-break: break-word; }
.nav-tabs-line { border-bottom: 1px solid var(--app-line); gap: .25rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-tabs-line .nav-link {
  border: 0; border-bottom: 2px solid transparent; color: var(--app-muted); font-weight: 500; padding: .7rem .9rem; white-space: nowrap;
  border-radius: 0; background: none;
}
.nav-tabs-line .nav-link:hover { color: #212529; }
.nav-tabs-line .nav-link.active { color: var(--bs-primary); border-bottom-color: var(--bs-primary); }
@media (min-width: 768px) { .nav-tabs-line { flex-wrap: wrap; overflow-x: visible; row-gap: 0; } .nav-tabs-line .nav-link { padding: .65rem .75rem; } }
.nav-tabs-line .count { font-size: .7rem; background: var(--app-line); color: var(--app-text-soft); border-radius: 1rem; padding: .05rem .45rem; margin-left: .3rem; }
.nav-tabs-line .nav-link.active .count { background: var(--bs-primary-bg-subtle); color: var(--app-primary-strong); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: .42rem; top: .35rem; bottom: -.35rem; width: 1px; background: var(--app-line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: .2rem; width: .9rem; height: .9rem; border-radius: 50%; background: #fff; border: 2px solid var(--bs-primary); }
.timeline .dot.success { border-color: var(--bs-success); }
.timeline .dot.danger { border-color: var(--bs-danger); }
.timeline .dot.warning { border-color: var(--bs-warning); }
.timeline .dot.secondary { border-color: #adb5bd; }
.timeline .when { font-size: .74rem; color: var(--app-muted); }

.note-card { border-left: 3px solid var(--app-line-strong); padding: .75rem 1rem; background: var(--app-hover); border-radius: 0 .5rem .5rem 0; }
.note-card.pinned { border-left-color: var(--bs-warning); background: #fffbeb; }

.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--app-muted); }
.empty-state .bi { font-size: 2.2rem; color: #ced4da; display: block; margin-bottom: .5rem; }

/* ---------- Filtre çubuğu ---------- */
.filter-bar { background: #fff; border: 1px solid var(--app-line); border-radius: .75rem; padding: .85rem; }
.filter-chips .chip {
  display: inline-flex; align-items: center; gap: .35rem; background: var(--app-primary-soft); color: var(--app-primary-strong);
  border: 1px solid var(--bs-primary-bg-subtle); border-radius: 2rem; padding: .15rem .6rem; font-size: .76rem; font-weight: 500;
}
.status-tabs .nav-link { padding: .35rem .8rem; font-size: .82rem; font-weight: 500; color: var(--app-muted); border-radius: 2rem; }
.status-tabs .nav-link:hover { background: var(--app-line); color: #212529; }
.status-tabs .nav-link.active { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.status-tabs .nav-link .cnt { opacity: .7; margin-left: .25rem; font-size: .75rem; }

/* ---------- Ayarlar ---------- */
.settings-nav .list-group-item { border: 0; border-radius: .5rem !important; margin-bottom: 2px; font-size: .875rem; font-weight: 500; color: var(--app-text-soft); display: flex; gap: .65rem; align-items: center; }
.settings-nav .list-group-item:hover { background: var(--app-hover); }
.settings-nav .list-group-item.active { background: var(--app-primary-soft); color: var(--app-primary-strong); }
.logo-preview { background: repeating-conic-gradient(#f8f9fa 0% 25%, #fff 0% 50%) 50% / 16px 16px; border: 1px dashed var(--app-line-strong); border-radius: .5rem; padding: 1rem; text-align: center; }
.logo-preview img { max-height: 90px; max-width: 100%; }
.perm-module { border: 1px solid var(--app-line); border-radius: .6rem; }
.perm-module + .perm-module { margin-top: .75rem; }
.perm-module-head { background: var(--app-hover); padding: .55rem .9rem; border-bottom: 1px solid var(--app-line); border-radius: .6rem .6rem 0 0; }

/* ---------- Giriş ekranı ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: #fff; }
@media (min-width: 992px) { .auth-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.auth-brand {
  position: relative; overflow: hidden; background: linear-gradient(160deg, var(--app-primary-soft) 0%, var(--bs-primary-bg-subtle) 100%); color: #212529;
  display: none; padding: 3rem; flex-direction: column; justify-content: space-between;
}
@media (min-width: 992px) { .auth-brand { display: flex; } }
.auth-brand .swirl {
  position: absolute; right: -180px; bottom: -180px; width: 620px; height: 620px; opacity: .07;
  background: url("../img/mark.png") center / contain no-repeat;
}
.auth-brand .swirl-blue {
  position: absolute; left: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 46px solid rgba(13, 110, 253, .08); border-right-color: transparent; border-bottom-color: transparent; transform: rotate(-20deg);
}
.auth-brand h2 { font-size: 2rem; font-weight: 700; color: var(--bs-primary-text-emphasis); max-width: 28rem; line-height: 1.25; }
.auth-brand .lead-sm { color: var(--app-text-soft); max-width: 30rem; }
.auth-brand .auth-copy { color: var(--app-muted); }
.auth-feature { display: flex; gap: .75rem; align-items: flex-start; color: #343a40; font-size: .9rem; margin-top: .9rem; }
.auth-feature .bi { color: var(--bs-primary); font-size: 1.1rem; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: #fff; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .form-control { height: 46px; }
.auth-card .btn-lg { height: 48px; }

/* ---------- Yardımcılar ---------- */
.fw-550 { font-weight: 550; }
.fs-7 { font-size: .8rem; }
.text-ink { color: #212529 !important; }
.min-w-0 { min-width: 0; }
.cursor-pointer { cursor: pointer; }
.sticky-actions {
  position: sticky; bottom: 0; z-index: 10; background: rgba(248, 249, 250, .92); backdrop-filter: blur(6px);
  border-top: 1px solid var(--app-line); margin: 1.5rem -1.5rem -1.5rem; padding: .85rem 1.5rem;
}
@media (max-width: 575.98px) { .sticky-actions { margin: 1rem -1rem -1rem; padding: .75rem 1rem; } }
.alert { --bs-alert-border-radius: .6rem; font-size: .875rem; }
.alert-flash { border: 0; border-left: 4px solid; box-shadow: 0 1px 4px rgba(33, 37, 41, .05); }
.alert-success.alert-flash { border-left-color: var(--bs-success); }
.alert-danger.alert-flash { border-left-color: var(--bs-danger); }
.alert-warning.alert-flash { border-left-color: var(--bs-warning); }
.alert-info.alert-flash { border-left-color: var(--bs-primary); }
.modal { --bs-modal-border-radius: .85rem; --bs-modal-header-border-color: var(--app-line); --bs-modal-footer-border-color: var(--app-line); }
.modal-title { font-size: 1.05rem; font-weight: 600; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; border-bottom: 1px dashed var(--app-line); }
.check-list li:last-child { border-bottom: 0; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 40%) 1fr auto; gap: .6rem; align-items: center; font-size: .82rem; margin-bottom: .55rem; }
.bar-track { height: 8px; background: var(--app-line); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: #6ea8fe; border-radius: 4px; } /* $blue-300 */
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Teklif hazırlama ekranı ---------- */
.quote-lines { font-size: .84rem; }
.quote-lines > :not(caption) > * > * { padding: .45rem .4rem; }
.quote-lines tbody tr { border-bottom: 1px solid var(--app-line); }
.quote-lines tbody tr:hover { background: #fcfcfd; }
.quote-lines .ln-code { width: 6.5rem; flex-shrink: 0; }
.quote-lines .ln-total { padding-top: .75rem !important; }
.quote-lines .ln-no { padding-top: .75rem !important; }
.quote-lines .form-control:disabled { background-color: var(--app-hover); border-color: var(--app-line); } /* iskontosuz satır */
.quote-lines .ln-warn { background: var(--bs-warning-bg-subtle); border: 1px solid var(--bs-warning-border-subtle); color: var(--bs-warning-text-emphasis); border-radius: .4rem; padding: .3rem .5rem; }
.quote-lines-wrap { overflow: visible; }
@media (max-width: 1199.98px) { .quote-lines-wrap { overflow-x: auto; } .quote-lines { min-width: 1000px; } }
.quote-totals { position: sticky; top: calc(var(--topbar-h) + 1rem); }
.quote-grand { background: var(--app-primary-soft); color: var(--bs-primary-text-emphasis); border: 1px solid var(--bs-primary-bg-subtle); border-radius: .6rem; padding: .75rem 1rem; font-size: 1.15rem; font-weight: 700; }
.quote-grand span:first-child { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.quote-doc-lines td { vertical-align: top; }
.btn-check:checked + .btn-outline-primary { color: #fff; }

@media print {
  .app-sidebar, .app-topbar, .page-actions, .no-print { display: none !important; }
  .app-main { margin: 0 !important; }
  body { background: #fff; }
}

/* ---- Aşama 4: fırsat panosu, bildirim menüsü ---- */
.opp-board { align-items: flex-start; }
.opp-col { flex: 1 0 168px; min-width: 168px; }
.opp-col .card-body { background: var(--bs-tertiary-bg); min-height: 120px; }
.opp-card a { word-break: break-word; }
.notif-menu { width: 340px; max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto; }
.notif-menu .dropdown-item { white-space: normal; }
.sidebar-nav .nav-link .badge { font-size: .68rem; }

/* ---------------------------------------------------------------------
   Cari hesap, ekstre, yaşlandırma (Aşama 6)
   --------------------------------------------------------------------- */
.statement-table tr.statement-reversal td { color: var(--bs-warning-text-emphasis); background: #fffbeb; }
.tag-chip.active { border-color: var(--bs-primary); color: var(--bs-primary); }
.aging-bar { display: flex; height: .7rem; border-radius: 999px; overflow: hidden; background: var(--app-line); }
.aging-seg { display: block; height: 100%; }
.aging-dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-right: .3rem; vertical-align: -.05rem; }
.aging-current { background: #20c997; } /* $teal */
.aging-d30 { background: #ffc107; }     /* $yellow */
.aging-d60 { background: #fd7e14; }     /* $orange */
.aging-d90 { background: #dc3545; }     /* $red */
.aging-d90p { background: #842029; }    /* $red-700 */

/* ---------------------------------------------------------------------
   Yönetim paneli grafikleri (App\Support\SvgChart) ve rapor bölümleri (Aşama 7)
   --------------------------------------------------------------------- */
.svg-chart { display: block; width: 100%; height: auto; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .76rem; color: var(--app-text-soft); margin-bottom: .35rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.chart-key { display: inline-block; width: .7rem; height: .7rem; border-radius: .15rem; }
.chart-key.line { height: .2rem; width: 1rem; border-radius: 1rem; }
.report-section-title { font-size: .95rem; font-weight: 600; margin: 1.5rem 0 .6rem; }
.report-section-title .small { font-weight: 400; }
