/* Alcatraz Finans v10.5 — tüm yönetim paneli için merkezi okunabilirlik sistemi */
:root {
  --ac-font: "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ac-text: #172033;
  --ac-heading: #101827;
  --ac-muted: #607087;
  --ac-soft: #7c899d;
  --ac-line: #d9e2ec;
}
html.dark-style {
  --ac-text: #e9eff8;
  --ac-heading: #f5f8fc;
  --ac-muted: #b5c0d1;
  --ac-soft: #909db0;
  --ac-line: #334157;
}
html, body,
button, input, select, textarea,
.layout-wrapper, .layout-container, .layout-page, .content-wrapper,
.card, .modal, .dropdown-menu, .offcanvas, .table, .menu, .navbar {
  font-family: var(--ac-font) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}
body {
  font-size: 14px !important;
  line-height: 1.52 !important;
  letter-spacing: 0 !important;
  color: var(--ac-text) !important;
}
body, p, span, div, li, td, th, label, a, button, input, select, textarea {
  text-shadow: none !important;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.page-title, .ac-page-title, .alc-page-title,
.card-title, .modal-title, .offcanvas-title {
  color: var(--ac-heading) !important;
  letter-spacing: -0.02em !important;
  text-wrap: balance;
}
h1, .h1 { font-size: 30px !important; line-height: 1.18 !important; font-weight: 750 !important; }
h2, .h2 { font-size: 24px !important; line-height: 1.24 !important; font-weight: 750 !important; }
h3, .h3 { font-size: 20px !important; line-height: 1.28 !important; font-weight: 720 !important; }
h4, .h4 { font-size: 17px !important; line-height: 1.34 !important; font-weight: 700 !important; }
h5, .h5 { font-size: 15px !important; line-height: 1.38 !important; font-weight: 700 !important; }
h6, .h6 { font-size: 14px !important; line-height: 1.4 !important; font-weight: 700 !important; }
p { line-height: 1.58 !important; }
small, .small { font-size: 12px !important; line-height: 1.48 !important; }
.text-muted, .card-subtitle, .page-description, .ac-page-desc, .alc-page-desc,
.form-text, .help-text, .description, .subtitle {
  color: var(--ac-muted) !important;
}

/* Sol menü ve üst bar */
.layout-menu .menu-header, .menu-header-text {
  font-size: 10.5px !important;
  line-height: 1.35 !important;
  font-weight: 750 !important;
  letter-spacing: .075em !important;
}
.layout-menu .menu-link, .layout-menu .menu-item > .menu-link,
.menu-inner .menu-link, .sidebar a {
  font-size: 13.5px !important;
  line-height: 1.38 !important;
  font-weight: 600 !important;
  letter-spacing: -.005em !important;
}
.layout-menu .menu-icon { font-size: 19px !important; }
.app-brand-text, .brand-text, .sidebar-brand-text { font-weight: 760 !important; letter-spacing: -.015em !important; }
#layout-navbar, .navbar, .topbar { font-size: 13.5px !important; }
#layout-navbar input, .navbar input, .topbar input, .ac-inline-search-box input {
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
}

/* Butonlar ve kontroller */
.btn, .ac-btn, button, [role="button"] {
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}
.btn-sm { font-size: 12px !important; }
.btn-lg { font-size: 14px !important; }
.form-label, label {
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
  color: var(--ac-text) !important;
}
.form-control, .form-select, .input-group-text,
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
}
input::placeholder, textarea::placeholder { color: var(--ac-soft) !important; opacity: 1 !important; }
.form-text { font-size: 11.5px !important; line-height: 1.48 !important; }

/* Kartlar, paneller ve modal içerikleri */
.card, .ac-panel, .alc-card, .modal-content, .dropdown-menu, .offcanvas {
  color: var(--ac-text) !important;
}
.card-title, .ac-card-head h3, .alc-card h3, .panel-title {
  font-size: 16px !important;
  line-height: 1.32 !important;
  font-weight: 750 !important;
}
.card-subtitle, .ac-card-head p, .alc-card p, .panel-subtitle {
  font-size: 12px !important;
  line-height: 1.48 !important;
  font-weight: 500 !important;
}
.card-body, .modal-body, .offcanvas-body, .dropdown-item {
  font-size: 13.5px !important;
  line-height: 1.54 !important;
}
.dropdown-item { font-weight: 500 !important; }
.alert, .toast, .notification-item { font-size: 13px !important; line-height: 1.5 !important; }

/* Tablolar — müşteri, gelir, gider, cari, tedarikçi vb. bütün listeler */
.table, .alc-smart-table, table {
  font-size: 13px !important;
  line-height: 1.48 !important;
}
.table thead th, .alc-smart-table thead th, table thead th {
  font-size: 11.5px !important;
  line-height: 1.38 !important;
  font-weight: 750 !important;
  letter-spacing: .015em !important;
  text-transform: none !important;
  color: var(--ac-heading) !important;
}
.table tbody td, .alc-smart-table tbody td, table tbody td {
  font-size: 13px !important;
  line-height: 1.48 !important;
  font-weight: 500 !important;
  vertical-align: middle !important;
  color: var(--ac-text) !important;
}
.table tbody td strong, .alc-smart-table tbody td strong, table tbody td strong { font-weight: 720 !important; }
.table .text-muted, table small { color: var(--ac-muted) !important; }
.badge, .status-badge, .chip {
  font-size: 10.5px !important;
  line-height: 1.22 !important;
  font-weight: 700 !important;
}

/* Dashboard */
.ac-dashboard { font-family: var(--ac-font) !important; }
.ac-hero h1 { font-size: 27px !important; line-height: 1.18 !important; font-weight: 780 !important; }
.ac-hero p { font-size: 13px !important; line-height: 1.52 !important; font-weight: 500 !important; }
.ac-kpi-label { font-size: 11.5px !important; line-height: 1.38 !important; font-weight: 620 !important; }
.ac-kpi-value { font-size: 20px !important; line-height: 1.15 !important; font-weight: 780 !important; letter-spacing: -.02em !important; }
.ac-kpi-desc { font-size: 10.5px !important; line-height: 1.42 !important; font-weight: 520 !important; }
.ac-card-head { min-height: 64px !important; height: auto !important; padding: 12px 16px !important; }
.ac-card-head h3 { font-size: 16px !important; line-height: 1.32 !important; font-weight: 750 !important; }
.ac-card-head p { font-size: 11.5px !important; line-height: 1.45 !important; font-weight: 500 !important; margin-top: 3px !important; }
.ac-chip { font-size: 10.5px !important; font-weight: 700 !important; }
.ac-list-body { padding: 8px 14px !important; }
.ac-row { min-height: 58px !important; gap: 12px !important; }
.ac-row-copy b { font-size: 12.5px !important; line-height: 1.38 !important; font-weight: 720 !important; }
.ac-row-copy small { font-size: 10.5px !important; line-height: 1.42 !important; font-weight: 500 !important; color: var(--ac-muted) !important; }
.ac-amount { font-size: 12px !important; line-height: 1.25 !important; font-weight: 760 !important; }
.ac-empty { font-size: 12.5px !important; line-height: 1.58 !important; color: var(--ac-muted) !important; }
.ac-ai-item { font-size: 12px !important; line-height: 1.52 !important; font-weight: 520 !important; }
.ac-cat b { font-size: 11.5px !important; line-height: 1.38 !important; font-weight: 700 !important; }
.ac-cat small, .ac-cat span { font-size: 10px !important; line-height: 1.38 !important; }

/* Sayısal değerlerin titreşmeden, net hizalanması */
.ac-kpi-value, .ac-amount, .alc-stat-value, .stat-value, .metric-value,
.money, .price, .amount, td[data-type="money"], .currency {
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
}

/* Tema kontrastı */
html:not(.dark-style) body,
html:not(.dark-style) :where(.card,.ac-panel,.alc-card,.table,.form-control,.form-select,.modal-content,.dropdown-menu) {
  color: var(--ac-text) !important;
}
html.dark-style body,
html.dark-style :where(.card,.ac-panel,.alc-card,.table,.form-control,.form-select,.modal-content,.dropdown-menu) {
  color: var(--ac-text) !important;
}

@media (max-width: 767px) {
  body { font-size: 13.5px !important; }
  h1, .h1 { font-size: 25px !important; }
  h2, .h2 { font-size: 21px !important; }
  .page-title, .ac-page-title, .alc-page-title { font-size: 20px !important; }
  .layout-menu .menu-link, .layout-menu .menu-item > .menu-link { font-size: 13px !important; }
  .ac-hero h1 { font-size: 23px !important; }
  .ac-kpi-value { font-size: 18px !important; }
  .ac-row-copy b { font-size: 12px !important; }
  .ac-amount { font-size: 11.5px !important; }
}
