/* Bertaş kurumsal palet — masaüstü B_* sabitleri ile hizalı */
:root {
  --ana-lacivert: #0B1F3A;
  --arka-plan: #E9EDF2;
  --login-primary: #003F87;
  --login-hover: #135BA8;
  --beyaz: #FFFFFF;
  --surface-page: #E9EDF2;
  --surface-main: #E9EDF2;
  --surface-head: #EEF2F6;
  --surface-panel: #EDF1F6;
  --surface-shell: #EDF1F6;
  --surface-card: #E4EAF1;
  --surface-card-head: #DCE6F2;
  --surface-card-body: #F2F4F7;
  --surface-input: #FFFFFF;
  --surface-border-soft: #C9D4E2;
  --soft-beyaz: #F2F4F7;
  --card-bg: #EEF2F6;
  --card-border: #C9D4E2;
  --card-elev-bg: #E4EAF1;
  --card-elev-border: #B8CBE6;
  --kenar-gri: #D6E0EE;
  --gumus: #7B8DA6;
  --alt-baslik: #A0C4FF;
  --header-bg: #0F2A4A;
  --header-border: #335779;
  --sidebar-bg: #111C2C;
  --sidebar-btn: #142B45;
  --sidebar-hover: #1E4A7A;
  --sidebar-sub-hover: #3A5F8A;
  --sidebar-border: #2A5580;
  --sidebar-active: #30465F;
  --sidebar-active-border: #38BDF8;
  --sidebar-footer: #18263A;
  --sidebar-subwell: #0F2238;
  --sidebar-glass: #223247;
  --sidebar-glass-active: #30465F;
  --sidebar-glass-hover: #2C3F57;
  --parlak-mavi: #3A5471;
  --hover-mavi: #4A6685;
  --buton-iptal: #64748B;
  --tree-zebra-odd: #F0F3F7;
  --rapor-row-bg: #FAFBFC;
  --rapor-row-hover: #EEF4FC;
  --rapor-grup-master-bg: #EDF3FA;
  --rapor-grup-master-line: #B8CBE6;
  --rapor-grup-detay-bg: #F5F7FA;
  --rapor-grup-detay-zebra: #EFF2F6;
  --rapor-grup-detay-stripe: #5B8FC7;
  --rapor-secili-bg: #D9E8F8;
  --rapor-secili-border: #003F87;
  --rapor-secili-hover: #C5DCF5;
  --warn-bg: #FFFBEB;
  --warn-border: #FCD34D;
  --warn-text: #92400E;
  --error-bg: #FEF2F2;
  --error-border: #FCA5A5;
  --error-text: #991B1B;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius-card: 16px;
  --radius-btn: 8px;
  --radius-glass: 12px;
  --sidebar-w: 266px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ana-lacivert); background: var(--arka-plan); }

/* —— Giriş —— */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--arka-plan); padding: 1rem;
}
.login-shell { width: 100%; max-width: 340px; }
.login-card {
  background: var(--beyaz); border: 1px solid var(--card-border);
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: 0 12px 32px rgba(11, 31, 58, 0.08);
}
.login-accent { height: 3px; background: var(--login-primary); }
.login-header { text-align: center; padding: 1rem 1.25rem 0.5rem; }
.login-logo-wrap {
  width: 96px; height: 72px; margin: 0 auto 0.5rem;
  background: var(--card-elev-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-glass); display: flex; align-items: center; justify-content: center;
}
.login-logo-img { height: 62px; width: auto; max-width: 88px; object-fit: contain; display: block; }
.login-logo-letter { font-size: 1.6rem; font-weight: 700; color: var(--login-primary); }
.login-header h1 { margin: 0.35rem 0 0; font-size: 0.95rem; font-weight: 700; color: var(--login-primary); letter-spacing: 0.02em; }
.login-sub { margin: 0.2rem 0 0; font-size: 0.72rem; color: var(--ana-lacivert); }
.login-badge {
  display: inline-block; margin-top: 0.45rem; padding: 0.2rem 0.65rem;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 10px;
  font-size: 0.68rem; color: var(--gumus);
}
.login-divider { height: 1px; background: var(--card-border); margin: 0.5rem 1.25rem 0.65rem; }
.login-error {
  margin: 0 1.25rem 0.5rem; padding: 0.55rem 0.7rem;
  background: var(--error-bg); border: 1px solid var(--error-border);
  border-radius: var(--radius-btn); color: var(--error-text); font-size: 0.82rem;
}
.login-form { padding: 0 1.35rem 1.1rem; }
.login-foot { text-align: center; font-size: 0.68rem; color: var(--gumus); padding: 0 1rem 1rem; margin: 0; }

/* —— Form elemanları —— */
.field-label {
  display: block; font-size: 0.72rem; font-weight: 600; color: var(--ana-lacivert);
  margin-bottom: 0.25rem; letter-spacing: 0.02em;
}
.field-input {
  width: 100%; height: 34px; border: 1px solid var(--card-border);
  border-radius: var(--radius-btn); padding: 0 0.65rem; font: inherit;
  color: var(--ana-lacivert); background: var(--surface-input);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-input:focus {
  outline: none; border-color: #3B82F6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.field-block { min-width: 0; }
.field-grow { grid-column: span 2; }
.field-date { max-width: 9rem; }
.field-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.4rem; }

.btn-primary, .btn-outline, .btn-login {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 0.85rem; border-radius: var(--radius-btn);
  font: inherit; font-size: 0.88rem; cursor: pointer; text-decoration: none;
  border: 0; white-space: nowrap;
}
.btn-primary, .btn-login {
  background: var(--login-primary); color: #fff;
}
.btn-primary:hover, .btn-login:hover { background: var(--login-hover); }
.btn-outline {
  background: transparent; color: var(--ana-lacivert);
  border: 1px solid var(--buton-iptal);
}
.btn-outline:hover { background: #F8FAFC; }
.btn-login { width: 100%; height: 34px; margin-top: 0.35rem; }

/* —— Uygulama iskelet (masaüstü: ust_bar + sidebar + içerik) —— */
.app-body {
  display: flex; flex-direction: column; min-height: 100vh; height: 100vh;
  overflow: hidden; background: var(--arka-plan);
}
.ust-bar {
  flex-shrink: 0; height: 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem 0 1.15rem; background: #1C2B3E; border-bottom: 1px solid #335779;
}
.ust-bar-marka {
  display: flex; align-items: center; gap: 0.55rem; min-width: 0;
  text-decoration: none; color: inherit;
}
.ust-bar-sol { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
.btn-sidebar-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 10px;
  border: 1px solid #335779; background: #142B45; color: #E2E8F0;
  font-size: 1.25rem; cursor: pointer; flex-shrink: 0;
}
.btn-sidebar-toggle:hover { background: #1E4A7A; }
.ust-bar-marka:hover .ust-bar-unvan { color: #E2E8F0; }
.ust-bar-logo-img { height: 48px; width: auto; max-width: 120px; object-fit: contain; display: block; flex-shrink: 0; }
.ust-bar-logo {
  width: 34px; height: 34px; border-radius: 10px; background: #142B45;
  border: 1px solid #2A5580; color: #38BDF8; font-weight: 700; font-size: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ust-bar-unvan { font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: 0.02em; white-space: nowrap; }
.ust-bar-durum { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.ust-durum-kutu {
  display: flex; align-items: center; gap: 0.5rem; height: 40px;
  padding: 0 0.65rem; border-radius: 12px; border: 1px solid #5D738E; background: #2A3A4F;
}
.ust-durum-motorin { min-width: 0; }
.ust-durum-bas { font-size: 0.62rem; font-weight: 700; color: #D7DCC8; line-height: 1.15; white-space: nowrap; }
.ust-durum-deger { font-size: 0.72rem; font-weight: 700; color: #EEF1E6; white-space: nowrap; }
.ust-durum-doviz { gap: 0.75rem; padding: 0 0.75rem; }
.ust-durum-parite { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.ust-durum-etiket { font-size: 0.58rem; font-weight: 700; color: #BECBDC; }
.ust-etiket-eur { color: #C5D8CF; }
.ust-durum-parite span:last-child { font-size: 0.7rem; font-weight: 700; color: #EEF1E6; }

.app-shell {
  flex: 1; min-height: 0; display: flex; gap: 0.65rem;
  padding: 0.5rem 0.75rem 0.65rem;
}
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; display: flex; flex-direction: column;
  background: var(--sidebar-bg); color: #E2E8F0; border-radius: 16px;
  border: 1px solid var(--sidebar-border); overflow: hidden;
}
.sidebar-nav {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 0.55rem 0.5rem 0.5rem;
  scrollbar-width: thin; scrollbar-color: #2A5580 transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb {
  background: #2A5580; border-radius: 999px;
}
.nav-accordion { margin-bottom: 0.2rem; }
.nav-acc-toggle {
  width: 100%; border: none; background: transparent; cursor: pointer;
  font: inherit; text-align: left;
}
.nav-acc-panel {
  display: grid; grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.24s ease;
}
.nav-accordion.is-open .nav-acc-panel { grid-template-rows: 1fr; }
.nav-acc-panel-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0.12rem 0 0.15rem 0.25rem;
  margin: 0 0 0.05rem 0.35rem;
  transition: padding 0.24s ease, margin 0.24s ease;
}
.nav-accordion:not(.is-open) .nav-acc-panel-inner {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}
.nav-accordion:not(.is-open) .nav-sub {
  min-height: 0;
  margin-bottom: 0;
  border-color: transparent;
  box-shadow: none;
  pointer-events: none;
}
.nav-acc-toggle.group-active {
  background: var(--sidebar-glass-active);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.14);
}
.nav-item {
  position: relative; display: flex; align-items: center; gap: 0.5rem;
  min-height: 38px; padding: 0 0.65rem; margin-bottom: 0.2rem;
  border-radius: 12px; color: #F8FAFC; text-decoration: none; font-size: 0.84rem;
  font-weight: 600; border: 1px solid transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.18s ease;
}
.nav-item::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--sidebar-active-border);
  opacity: 0; transform: scaleY(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-item:hover {
  background: var(--sidebar-glass-hover);
  color: #fff;
}
.nav-item:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.45);
}
.nav-item.active {
  background: var(--sidebar-glass-active);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.12);
}
.nav-item.active::before {
  opacity: 1; transform: scaleY(1);
}
.nav-item.nav-tiklandi { transform: scale(0.985); }
.nav-sub {
  min-height: 36px; font-size: 0.82rem; padding-left: 0.45rem;
  margin-bottom: 0.15rem;
}
.nav-sub::before,
.nav-acc-toggle::before {
  display: none;
}
.nav-ico {
  width: 1.2rem; text-align: center; flex-shrink: 0;
  opacity: 0.95; transition: opacity 0.2s ease;
}
.nav-item:hover .nav-ico,
.nav-item.active .nav-ico { opacity: 1; }
.nav-label { flex: 1; min-width: 0; line-height: 1.25; }
.nav-chev {
  margin-left: auto; font-size: 0.7rem; color: #94A3B8; flex-shrink: 0;
  display: inline-block; line-height: 1;
  transition: transform 0.24s ease, color 0.2s ease;
}
.nav-acc-toggle:hover .nav-chev,
.nav-accordion.is-open .nav-chev { color: #CBD5E1; }
.nav-accordion.is-open .nav-chev { transform: rotate(90deg); }
.nav-yakinda { opacity: 0.78; }
.tag-yakinda {
  margin-left: auto; font-size: 0.58rem; padding: 0.12rem 0.4rem;
  border-radius: 6px; background: #1E3A5F; color: #93C5FD;
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.sidebar-footer {
  padding: 0.65rem 0.75rem; background: var(--sidebar-footer);
  border-top: 1px solid var(--sidebar-border);
}
.footer-user { font-size: 0.8rem; font-weight: 600; }
.footer-role { font-size: 0.7rem; color: #94A3B8; margin: 0.08rem 0 0.35rem; }
.footer-logout {
  display: inline-block; color: var(--alt-baslik); font-size: 0.76rem;
  text-decoration: none; padding: 0.15rem 0;
  transition: color 0.18s ease;
}
.footer-parola {
  display: inline-block; color: #93C5FD; font-size: 0.76rem;
  text-decoration: none; padding: 0.15rem 0; margin-right: 0.65rem;
  transition: color 0.18s ease;
}
.footer-parola:hover { color: #BFDBFE; text-decoration: none; }
.footer-logout:hover { color: #BFDBFE; text-decoration: none; }
.parola-degistir-card { max-width: 520px; }
.parola-degistir-grid { grid-template-columns: 1fr; }
.admin-k-layout { display: flex; flex-direction: column; gap: 0.75rem; }
.admin-k-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: stretch;
}
.admin-k-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.admin-k-card-head {
  padding: 0.75rem 0.9rem 0.55rem;
  border-bottom: 1px solid var(--card-border);
  background: var(--surface-panel);
}
.admin-k-card-head .section-title { margin: 0 0 0.2rem; font-size: 0.92rem; }
.admin-k-card-body { padding: 0.75rem 0.9rem; flex: 1; }
.admin-k-card-foot {
  padding: 0.55rem 0.9rem 0.75rem;
  border-top: 1px solid var(--card-border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; justify-content: flex-end;
}
.admin-k-form-grid { grid-template-columns: 1fr 1fr; gap: 0.55rem 0.65rem; }
.admin-k-form-stack { grid-template-columns: 1fr; }
.admin-k-table-card .admin-k-card-head { padding-bottom: 0.45rem; }
.admin-k-table-scroll { max-height: min(52vh, 520px); }
.admin-k-table .admin-k-th-islem { min-width: 17rem; }
.admin-k-td-giris { font-weight: 600; color: var(--ana-lacivert); }
.admin-k-row-benim { background: rgba(37, 99, 235, 0.04); }
.admin-k-islem {
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
}
.admin-k-btn-sm {
  font-size: 0.76rem; padding: 0.22rem 0.55rem; min-height: 28px; line-height: 1.2;
}
.admin-k-rol {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  padding: 0.12rem 0.45rem; border-radius: 6px; text-transform: capitalize;
}
.admin-k-rol-admin { background: #DBEAFE; color: #1D4ED8; }
.admin-k-rol-muh { background: #D1FAE5; color: #047857; }
.admin-k-rol-op { background: #E0E7FF; color: #4338CA; }
.admin-k-durum {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  padding: 0.12rem 0.45rem; border-radius: 6px;
}
.admin-k-durum-ok { background: #DCFCE7; color: #166534; }
.admin-k-durum-off { background: #FEE2E2; color: #991B1B; }
.field-pass-wrap { position: relative; width: 100%; }
.field-pass-wrap .field-input { width: 100%; padding-right: 2.35rem; box-sizing: border-box; }
.field-pass-toggle {
  position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 0.2rem 0.35rem;
  color: var(--gumus); border-radius: 6px;
}
.field-pass-toggle:hover { color: var(--parlak-mavi); background: rgba(37, 99, 235, 0.08); }
.field-pass-toggle.is-open { color: var(--parlak-mavi); }
.admin-k-modal-card {
  background: var(--surface-card-body);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(11, 37, 69, 0.28);
  width: min(440px, 96vw);
  max-height: 90vh; overflow: auto;
  display: flex; flex-direction: column;
}
.admin-k-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem;
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--card-border);
  background: var(--surface-panel);
}
.admin-k-modal-head h3 { margin: 0; font-size: 1rem; color: var(--ana-lacivert); }
.admin-k-modal-sub { margin: 0.2rem 0 0; font-size: 0.78rem; color: var(--gumus); }
.admin-k-modal-body { padding: 0.85rem 1rem 0.65rem; }
.admin-k-modal-body .op-field { margin-bottom: 0.55rem; }
.admin-k-modal-msg { display: block; margin-top: 0.35rem; min-height: 1.2em; }
.admin-k-modal-foot {
  padding: 0.65rem 1rem 0.85rem; border-top: 1px solid var(--card-border);
  display: flex; justify-content: flex-end; gap: 0.45rem;
}
body.admin-k-modal-open { overflow: hidden; }
.admin-k-btn-sil { color: #B91C1C; border-color: #FCA5A5; }
.admin-k-btn-sil:hover { color: #991B1B; background: #FEF2F2; }
@media (max-width: 900px) {
  .admin-k-duo { grid-template-columns: 1fr; }
  .admin-k-form-grid { grid-template-columns: 1fr; }
}
.op-hint { font-size: 0.76rem; color: var(--gumus); margin: 0.35rem 0 0; }

.main {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  background: var(--surface-main); border-radius: 16px; border: 1px solid var(--card-border);
  overflow: hidden; box-shadow: 0 2px 8px rgba(11, 31, 58, 0.05);
}

/* —— Tüm sayfalarda içerik geçişi (Ana panel ile aynı mantık) —— */
@keyframes pageFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-animate-in {
  animation: pageFadeUp 0.38s ease both;
}
.page-animate-delay-1 { animation-delay: 0.06s; }

.page-head {
  flex-shrink: 0; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem; padding: 0.65rem 1rem; border-bottom: 1px solid var(--card-border);
  background: var(--surface-head);
}
.page-head-text { min-width: 0; }
.page-head h1 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--login-primary); }
.page-sub { margin: 0.15rem 0 0; font-size: 0.76rem; color: var(--gumus); }
.page-desc { margin: 0.15rem 0 0; font-size: 0.76rem; color: var(--gumus); }
.dev-badge {
  font-size: 0.65rem; background: #EFF6FF; color: #1D4ED8;
  padding: 0.18rem 0.45rem; border-radius: 6px; border: 1px solid #BFDBFE; flex-shrink: 0;
}
.content {
  flex: 1; min-height: 0; padding: 0.65rem 0.85rem 0.75rem;
  overflow-x: hidden; overflow-y: auto;
  background: var(--surface-page);
}
.content:has(> .rapor-table-panel:last-child),
.content:has(.rapor-table-panel) {
  display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0.5rem;
}
.content:has(.rapor-table-panel) > .rapor-filtre-panel,
.content:has(.rapor-table-panel) > .panel-card:not(.rapor-table-panel),
.content:has(.rapor-table-panel) > .alert { flex-shrink: 0; }
.content:has(.rapor-table-panel) > .rapor-table-panel { flex: 1; min-height: 0; margin-bottom: 0; }

/* —— Paneller —— */
.panel-card {
  background: var(--surface-panel); border: 1px solid var(--surface-border-soft);
  border-radius: 12px; margin-bottom: 0.65rem; overflow: hidden;
  box-shadow: none;
}
.panel-card:last-child { margin-bottom: 0; }
.panel-card-head {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 0.85rem; background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  font-size: 0.82rem; font-weight: 600; color: var(--login-primary);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.panel-card-ico { font-size: 1rem; }
.panel-card-meta { margin-left: auto; font-size: 0.72rem; font-weight: 500; color: var(--gumus); text-transform: none; }

.alert {
  padding: 0.65rem 0.85rem; border-radius: var(--radius-btn);
  margin-bottom: 1rem; font-size: 0.84rem; line-height: 1.45;
}
.alert-warn {
  background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text);
}

/* —— Rapor (masaüstü hizalı) —— */
.rapor-filtre-panel .rapor-form { padding: 0.65rem 0.85rem 0; }
.rapor-filtre-grid-desktop {
  display: grid;
  grid-template-columns: repeat(13, minmax(62px, 1fr));
  gap: 0.3rem 0.35rem;
  background: var(--card-elev-bg);
  border: 1px solid var(--card-elev-border);
  border-radius: 14px;
  padding: 0.55rem 0.5rem;
}
.filtre-hucre { min-width: 0; }
.filtre-hucre .field-label { font-size: 0.68rem; margin-bottom: 0.18rem; }
.filtre-hucre .field-input { height: 30px; font-size: 0.8rem; padding: 0 0.45rem; }
.rapor-filtre-grid-depo { grid-template-columns: repeat(10, minmax(62px, 1fr)); }
.rapor-donem-kisayol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.85rem 0.55rem;
}
.rapor-donem-etiket { font-size: 0.72rem; font-weight: 600; color: var(--gumus); margin-right: 0.15rem; }
.field-select { appearance: auto; cursor: pointer; }
.field-date-row { display: flex; gap: 0.25rem; align-items: center; }

.rapor-aksiyon-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem; padding: 0.55rem 0.85rem 0.75rem;
}
.rapor-rozetler { display: flex; flex-wrap: wrap; gap: 0.4rem; flex: 1; min-width: 12rem; }
.rozet {
  font-size: 0.78rem; font-weight: 600; padding: 0.35rem 0.65rem;
  border-radius: 12px; border: 1px solid transparent; white-space: nowrap;
}
.rozet-warn { background: #FFF7ED; border-color: #FDBA74; color: #9A3412; }
.rozet-info { background: #EFF6FF; border-color: #BFDBFE; color: #1E3A8A; }
.rozet-neutral { background: #F8FAFC; border-color: #CBD5E1; color: #334155; }
.rozet-secim { background: #FAF5FF; border-color: #E9D5FF; color: #5B21B6; }

.btn-takvim {
  flex: 0 0 28px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px;
  background: var(--parlak-mavi); color: #fff; font-size: 0.85rem; cursor: pointer;
}
.btn-takvim:hover { background: var(--hover-mavi); }

.takvim-overlay {
  position: fixed; inset: 0; z-index: 1000; background: transparent;
}
.takvim-modal {
  position: fixed; left: 0; top: 0; z-index: 1001;
  width: 380px; max-width: calc(100vw - 20px); background: var(--beyaz); border: 1px solid var(--card-border);
  border-radius: var(--radius-card); padding: 0.75rem;
  box-shadow: 0 12px 32px rgba(11, 31, 58, 0.22);
}
.takvim-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.takvim-ay-yil { font-weight: 600; color: var(--ana-lacivert); font-size: 0.9rem; }
.takvim-nav {
  width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--parlak-mavi);
  color: #fff; cursor: pointer; font-size: 1.1rem;
}
.takvim-nav:hover { background: var(--hover-mavi); }
.takvim-hafta {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  font-size: 0.68rem; font-weight: 600; color: var(--gumus); text-align: center; margin-bottom: 0.25rem;
}
.takvim-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; min-height: 12rem; }
.takvim-gun {
  height: 34px; border: 0; border-radius: 8px; background: var(--card-bg); color: var(--ana-lacivert);
  font-size: 0.82rem; cursor: pointer;
}
.takvim-gun:hover { background: #DCE9FF; }
.takvim-bos { height: 34px; }
.takvim-alt { display: flex; justify-content: flex-end; margin-top: 0.65rem; }

.rapor-ust-butonlar { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.btn-action {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 0.55rem; border-radius: 8px; font-size: 0.82rem;
  text-decoration: none; cursor: pointer; border: 0; font: inherit; white-space: nowrap;
}
.btn-action-primary { background: #003F87; color: #fff; }
.btn-action-teal { background: #0EA5A4; color: #fff; }
.btn-action-mavi { background: var(--parlak-mavi); color: #fff; }
.btn-action-mavi:hover { background: var(--hover-mavi); }
.btn-action-outline {
  background: transparent; color: var(--ana-lacivert);
  border: 1px solid var(--buton-iptal);
}
.btn-action-excel { background: #107C10; color: #fff; }
.btn-action-gold { background: #C9A227; color: #fff; }
.btn-soon { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.rapor-form-grid,
.rapor-form-grid-2,
.rapor-ozet { display: none; }

.rapor-filtre-panel { flex-shrink: 0; }
.rapor-table-panel {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  margin-bottom: 0; overflow: hidden;
}
.rapor-table-scroll {
  flex: 1; min-height: 0; overflow: auto; max-height: none;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
.rapor-scroll-sentinel { height: 4px; width: 100%; pointer-events: none; }
.rapor-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.76rem;
  table-layout: auto;
  background: var(--rapor-row-bg);
}
.rapor-table thead {
  background: var(--header-bg);
}
.rapor-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: var(--header-bg) !important;
  color: #E2E8F0;
  font-weight: 600;
  text-align: left;
  padding: 0.45rem 0.55rem;
  border: 0;
  box-shadow:
    inset 0 -2px 0 var(--header-border),
    1px 0 0 var(--header-bg);
  white-space: nowrap;
}
.rapor-table thead th:last-child {
  box-shadow: inset 0 -2px 0 var(--header-border);
}
.rapor-table td {
  padding: 0.38rem 0.55rem;
  border: none;
  white-space: nowrap;
  color: var(--ana-lacivert);
  vertical-align: middle;
  background: transparent;
}
.rapor-table tbody tr {
  background: var(--rapor-row-bg);
  box-shadow: inset 0 -1px 0 #EEF2F7;
}
.rapor-table tbody tr:nth-child(even):not(.row-grup-master):not(.row-grup-detay):not(.row-secili) {
  background: var(--tree-zebra-odd);
}
.rapor-table tbody tr:hover:not(.row-secili):not(.row-grup-master):not(.row-grup-detay) {
  background: var(--rapor-row-hover);
}
.rapor-table tbody tr.row-grup-master:hover:not(.row-secili) {
  background: #E3ECF7 !important;
}
.rapor-table tbody tr.row-grup-detay:hover:not(.row-secili) {
  background: #EAF1F9 !important;
}
.rapor-table tr.row-pasif { background: #FCA5A5 !important; opacity: 0.55; }
.rapor-table tr.row-pasif td { color: #450A0A; background: transparent !important; }
.rapor-table tr.row-komisyon { background: var(--warn-bg) !important; }
.rapor-table tr.row-komisyon td { color: var(--ana-lacivert); background: transparent !important; }
.rapor-table tbody tr.row-grup-master {
  background: var(--rapor-grup-master-bg) !important;
  font-weight: 600;
  box-shadow: inset 0 -1px 0 var(--rapor-grup-master-line), inset 0 1px 0 #F8FBFF;
}
.rapor-table tbody tr.row-grup-master td {
  background: transparent !important;
  color: var(--ana-lacivert);
}
.rapor-table tbody tr.row-grup-detay {
  background: var(--rapor-grup-detay-bg) !important;
  box-shadow: inset 3px 0 0 var(--rapor-grup-detay-stripe), inset 0 -1px 0 #E8EEF5;
}
.rapor-table tbody tr.row-grup-detay td {
  background: transparent !important;
  color: var(--ana-lacivert);
}
.rapor-table tbody tr.row-grup-detay:nth-child(even) {
  background: var(--rapor-grup-detay-zebra) !important;
}
.rapor-table tr.row-teslim-eksik td.col-kont-teslim { color: #B45309 !important; font-weight: 600; }
.rapor-table tr.row-grup-acik-gizli { display: none; }
.rapor-table td.col-is-emri { cursor: default; user-select: none; }
.rapor-table tr[data-genisletilebilir="1"] td.col-is-emri { cursor: pointer; }

/* Masaüstü tree tag renkleri — tüm hücre metni (foreground) */
.rapor-table tr.row-durum-fatura_kesildi td { color: #14532D !important; font-weight: 600; }
.rapor-table tr.row-durum-beklemede td { color: #78350F !important; font-weight: 600; }
.rapor-table tr.row-durum-iptal td { color: #7F1D1D !important; font-weight: 600; }
.rapor-table tr.row-durum-operasyon_tamamlandi td,
.rapor-table tr.row-durum-operasyon_tamamlandı td { color: var(--ana-lacivert) !important; font-weight: 600; }
.rapor-table tr.row-durum-aktif_sefer td { color: var(--ana-lacivert) !important; font-weight: 600; }
.rapor-table tr.row-komisyon td { color: var(--ana-lacivert) !important; }
.rapor-table tr.row-pasif td { color: #450A0A !important; }
.rapor-table tr.row-taslak td { font-style: italic; }

/* Masaüstü: ● yanıp söner — metin değişmez, sütun genişliği sabit kalır */
.rapor-blink-dot {
  display: inline-block;
  width: 1em;
  min-width: 1em;
  max-width: 1em;
  text-align: center;
  color: #DC2626;
  font-weight: 700;
  line-height: 1;
  font-family: Consolas, "Courier New", monospace;
  vertical-align: baseline;
  overflow: hidden;
  animation: rapor-blink-nabiz 650ms steps(1, end) infinite;
}
@keyframes rapor-blink-nabiz {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.2; }
}
.rapor-uyari-bang {
  display: inline-block;
  width: 1em;
  min-width: 1em;
  max-width: 1em;
  text-align: center;
  color: #B45309;
  font-weight: 700;
  vertical-align: baseline;
}

/* Rapor seçimi — açık kurumsal mavi zemin + lacivert çerçeve */
.rapor-table tbody tr.row-secili {
  background: var(--rapor-secili-bg) !important;
  box-shadow: inset 0 0 0 1px var(--rapor-secili-border) !important;
  position: relative;
  z-index: 1;
}
.rapor-table tbody tr.row-secili td {
  color: var(--ana-lacivert) !important;
  font-weight: 600;
  background: transparent !important;
  outline: none;
  box-shadow: none;
}
.rapor-table tbody tr.row-secili.row-grup-master {
  background: #C5DCF5 !important;
  box-shadow: inset 0 0 0 1px var(--rapor-secili-border), inset 0 -1px 0 var(--rapor-grup-master-line) !important;
}
.rapor-table tbody tr.row-secili.row-grup-detay {
  background: #C9DFF5 !important;
  box-shadow: inset 3px 0 0 var(--login-primary), inset 0 0 0 1px var(--rapor-secili-border) !important;
}
.rapor-table tbody tr.row-secili.row-komisyon {
  background: #FEF3C7 !important;
  box-shadow: inset 0 0 0 1px #D97706 !important;
}
.rapor-table tbody tr.row-secili.row-komisyon td {
  color: #78350F !important;
}
.rapor-table tbody tr.row-secili:hover {
  background: var(--rapor-secili-hover) !important;
}
.rapor-table tbody tr.row-secili.row-komisyon:hover {
  background: #FDE68A !important;
}
.rapor-table tr.row-secili.row-pasif { opacity: 1; }
.rapor-table tr.row-secili.row-pasif td { color: #450A0A !important; }
.rapor-table tr.row-filtre-gizli { display: none; }

.rapor-ctx-menu {
  position: fixed; z-index: 9000; min-width: 15rem;
  background: var(--rapor-row-bg); border: 1px solid var(--parlak-mavi); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 63, 135, 0.18); padding: 0.25rem 0;
  font-size: 0.82rem; color: var(--ana-lacivert);
}
.rapor-ctx-menu button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 0.42rem 0.75rem; font: inherit; cursor: pointer; color: inherit;
}
.rapor-ctx-menu button:hover:not(:disabled) { background: #EAF2FF; }
.rapor-ctx-menu button:disabled { opacity: 0.45; cursor: not-allowed; }
.rapor-ctx-sep { height: 1px; background: var(--kenar-gri); margin: 0.2rem 0; }
.rapor-ctx-label { padding: 0.35rem 0.75rem; font-weight: 600; color: var(--parlak-mavi); font-size: 0.78rem; }

.rapor-modal-backdrop {
  position: fixed; inset: 0; z-index: 8500; background: rgba(11, 37, 69, 0.35);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.rapor-modal {
  background: var(--rapor-row-bg); border-radius: 10px; border: 1px solid var(--card-border);
  box-shadow: 0 12px 32px rgba(0, 63, 135, 0.2); width: min(720px, 96vw);
  max-height: 90vh; overflow: auto;
}
.rapor-modal-head {
  padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--kenar-gri);
  font-weight: 600; color: var(--ana-lacivert);
}
.rapor-modal-body { padding: 0.75rem 0.85rem; }
.rapor-modal-foot {
  padding: 0.55rem 0.85rem; border-top: 1px solid var(--kenar-gri);
  display: flex; gap: 0.4rem; justify-content: flex-end;
}
.rapor-modal-field { margin-bottom: 0.55rem; }
.rapor-modal-field label { display: block; font-size: 0.78rem; margin-bottom: 0.2rem; color: var(--gumus); }
.rapor-modal-field input, .rapor-modal-field textarea, .rapor-modal-field select {
  width: 100%; box-sizing: border-box; padding: 0.38rem 0.5rem;
  border: 1px solid var(--kenar-gri); border-radius: 8px; font: inherit;
}

.op-modal {
  position: fixed; inset: 0; z-index: 8400;
  background: rgba(11, 37, 69, 0.35);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.op-modal[hidden] { display: none !important; }
.op-modal-card {
  width: min(920px, 96vw); max-height: 92vh; overflow: auto;
}
.op-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--card-border);
}
.op-modal-head h3 { margin: 0; font-size: 1rem; color: var(--ana-lacivert); }
.btn-icon-close {
  border: 0; background: transparent; color: var(--gumus); font-size: 1rem;
  cursor: pointer; width: 28px; height: 28px; border-radius: 8px;
}
.btn-icon-close:hover { background: #E2E8F0; color: var(--ana-lacivert); }
.rapor-kom-tablo { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.rapor-kom-tablo th, .rapor-kom-tablo td {
  padding: 0.35rem 0.45rem; border-bottom: 1px solid var(--kenar-gri); text-align: left;
}
.rapor-kom-tablo tr.kom-secili td { background: #EAF2FF; cursor: pointer; }

/* Rapor Al — masaüstü RaporExcelSutunDialog */
.rapor-export-modal { width: min(620px, 96vw); max-height: 90vh; display: flex; flex-direction: column; }
.rapor-export-modal .rapor-modal-body { overflow: auto; flex: 1; min-height: 0; }
.rapor-export-aciklama { margin: 0 0 0.65rem; font-size: 0.82rem; color: var(--ana-lacivert); line-height: 1.45; }
.rapor-export-fmt {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem 1rem;
  margin-bottom: 0.65rem; padding: 0.45rem 0.55rem; background: var(--card-bg);
  border-radius: 8px; border: 1px solid var(--card-border); font-size: 0.82rem;
}
.rapor-export-fmt-label { font-weight: 600; color: var(--ana-lacivert); margin-right: 0.25rem; }
.rapor-export-fmt label { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; color: var(--ana-lacivert); }
.rapor-export-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 0.75rem;
  max-height: 360px; overflow: auto; padding: 0.25rem 0;
}
.rapor-export-item {
  display: flex; align-items: flex-start; gap: 0.4rem; font-size: 0.82rem;
  color: var(--ana-lacivert); cursor: pointer; padding: 0.2rem 0;
}
.rapor-export-item input { margin-top: 0.15rem; accent-color: var(--login-primary); }
.rapor-export-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.rapor-export-foot-spacer { flex: 1; min-width: 0.5rem; }

.rapor-kayit-modal { width: min(480px, 96vw); }
.rapor-kayit-etiket { display: block; font-size: 0.82rem; font-weight: 600; margin: 0.35rem 0 0.25rem; color: var(--ana-lacivert); }
.rapor-kayit-ad {
  width: 100%; box-sizing: border-box; padding: 0.4rem 0.55rem;
  border: 1px solid var(--card-border); border-radius: 8px; font: inherit;
}
.rapor-kayit-uyari {
  margin: 0 0 0.65rem; padding: 0.5rem 0.6rem; font-size: 0.78rem; line-height: 1.45;
  background: #FFF7ED; border: 1px solid #FDBA74; border-radius: 8px; color: #9A3412;
}
.rapor-kom-tablo tr { cursor: pointer; }
.rapor-kom-tablo tr:hover td { background: #F5F9FF; }

/* Rapor bilgi balonu — masaüstü _rapor_hizli_bilgi_balonu */
.rapor-info-balonu {
  position: fixed; z-index: 9100; max-width: min(28rem, calc(100vw - 1rem));
  background: #EFF6FF; border: 1px solid #93C5FD; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12); pointer-events: none;
}
.rapor-info-balonu-baslik {
  padding: 0.55rem 0.75rem 0.15rem; font-size: 0.82rem; font-weight: 700; color: #1E3A8A;
}
.rapor-info-balonu-metin {
  padding: 0 0.75rem 0.6rem; font-size: 0.88rem; font-weight: 700; color: #0F172A; line-height: 1.45;
}
.rapor-table tbody td { cursor: default; }

.rapor-empty { padding: 1.5rem 1rem; text-align: center; color: var(--gumus); }
.rapor-empty p { margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--ana-lacivert); }
.rapor-empty-sub { font-size: 0.78rem !important; color: var(--gumus) !important; }

/* —— Cari Kayıtlar —— */
.cari-layout { display: flex; flex-direction: column; gap: 0.85rem; }
.cari-form-panel { max-width: 960px; }
.cari-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
  padding: 0.85rem 1rem 0.5rem;
}
.cari-field-full { grid-column: 1 / -1; }
.cari-field-pair .cari-inline-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.cari-hr { height: 1px; background: var(--kenar-gri); margin: 0.15rem 0; padding: 0; }
.field-hint { margin: 0.2rem 0 0; font-size: 0.72rem; font-style: italic; color: #475569; }
.field-warn { margin: 0.2rem 0 0; font-size: 0.78rem; color: #B91C1C; }
.cari-radio-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; }
.cari-radio-group { display: flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; font-size: 0.82rem; }
.cari-radio-group label { display: inline-flex; align-items: center; gap: 0.25rem; cursor: pointer; }
.cari-radio-sep { width: 1px; height: 20px; background: var(--kenar-gri); margin: 0 0.25rem; }
.cari-check { font-size: 0.82rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; }
.field-textarea { min-height: 52px; resize: vertical; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.cari-aksiyon-bar {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  padding: 0.5rem 1rem 0.85rem;
  border-top: 1px solid var(--card-border);
}
.cari-liste-panel { flex: 1; min-height: 280px; display: flex; flex-direction: column; }
.cari-liste-baslik {
  padding: 0.65rem 1rem 0.35rem;
  font-size: 0.88rem; font-weight: 600; color: var(--ana-lacivert);
}
.cari-liste-filtre {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  padding: 0 1rem 0.55rem;
}
.cari-filtre-select { width: 208px; max-width: 100%; height: 34px; }
.cari-ara-label { font-size: 0.82rem; color: #475569; }
.cari-ara-input { flex: 1; min-width: 180px; max-width: 320px; height: 34px; }
.cari-table-scroll { flex: 1; overflow: auto; padding: 0 0.65rem 0.75rem; }
.cari-table {
  width: 100%; border-collapse: collapse; font-size: 0.78rem;
}
.cari-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--header-bg); color: #E2E8F0;
  font-weight: 600; text-align: left; padding: 0.42rem 0.5rem;
  border: 0; box-shadow: inset 0 -2px 0 var(--header-border);
  white-space: nowrap;
}
.cari-table td {
  padding: 0.36rem 0.5rem; border: 0;
  box-shadow: inset 0 -1px 0 #EEF2F7;
  color: var(--ana-lacivert); white-space: nowrap;
}
.cari-table tbody tr { cursor: pointer; background: var(--rapor-row-bg); }
.cari-table tbody tr:nth-child(even) { background: var(--tree-zebra-odd); }
.cari-table tbody tr:hover { background: #DCE9FF; }
.cari-table tbody tr.row-secili { background: #BFDBFE !important; }
.cari-empty-row td { text-align: center; color: var(--gumus); cursor: default !important; }
.alert-ok {
  background: #ECFDF5; border: 1px solid #6EE7B7; color: #065F46;
  border-radius: var(--radius-btn); padding: 0.55rem 0.75rem; margin: 0 1rem 0.75rem;
  font-size: 0.82rem;
}

/* —— Ana panel —— */
@keyframes dashHeroGlow {
  0%, 100% { opacity: 0.55; transform: translateX(-4%); }
  50% { opacity: 0.85; transform: translateX(4%); }
}
.dash-animate-in {
  animation: pageFadeUp 0.45s ease both;
  animation-delay: calc(0.1s + var(--dash-delay, 0s));
}
.dash-page-sub { margin-top: 0.1rem; }

.dash-bloklar { display: flex; flex-direction: column; gap: 0.7rem; }
.dash-blok {
  border: 1px solid var(--card-border); border-radius: var(--radius-card);
  background: var(--surface-panel); overflow: hidden;
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.04);
}
.dash-blok-baslik {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.85rem; background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
}
.dash-blok-baslik-ikon { font-size: 1.15rem; flex-shrink: 0; }
.dash-blok-baslik-metin { flex: 1; min-width: 0; }
.dash-blok-baslik-metin h2 {
  margin: 0; font-size: 0.84rem; font-weight: 700; color: var(--login-primary);
}
.dash-blok-baslik-metin p { margin: 0.12rem 0 0; font-size: 0.68rem; color: var(--gumus); line-height: 1.35; }
.dash-blok-etiket {
  flex-shrink: 0; font-size: 0.62rem; font-weight: 600; color: var(--gumus);
  padding: 0.15rem 0.45rem; border-radius: 999px;
  background: var(--card-elev-bg); border: 1px solid var(--card-elev-border);
}
.dash-blok-icerik { padding: 0.65rem 0.75rem 0.75rem; }
.dash-blok-icerik-kpi { padding-top: 0.55rem; padding-bottom: 0.65rem; }
.dash-blok-operasyon .dash-blok-baslik { border-left: 3px solid #2563EB; }
.dash-blok-rapor .dash-blok-baslik { border-left: 3px solid #003F87; }
.dash-blok-moduller .dash-blok-baslik { border-left: 3px solid #64748B; }
.dash-blok-kpi .dash-blok-baslik { border-left: 3px solid #059669; }

.dash-blok-hero {
  position: relative; overflow: hidden;
  border-color: #2A5580;
  background: linear-gradient(135deg, #0F2A4A 0%, #142B45 48%, #1C3A5C 100%);
  color: #F8FAFC; box-shadow: 0 8px 24px rgba(11, 31, 58, 0.12);
}
.dash-hero-bg {
  position: absolute; inset: -40% -20%; pointer-events: none;
  background: radial-gradient(ellipse at 30% 40%, rgba(56, 189, 248, 0.22), transparent 55%),
              radial-gradient(ellipse at 80% 20%, rgba(0, 63, 135, 0.35), transparent 50%);
  animation: dashHeroGlow 9s ease-in-out infinite;
}
.dash-hero-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding: 1rem 1.15rem;
}
.dash-hero-etiket {
  margin: 0 0 0.2rem; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #93C5FD;
}
.dash-hero-baslik { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.01em; }
.dash-hero-alt {
  margin: 0.35rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; color: #CBD5E1;
}
.dash-rol-badge {
  display: inline-block; padding: 0.12rem 0.5rem; border-radius: 999px;
  background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.35);
  color: #E0F2FE; font-size: 0.72rem; font-weight: 600;
}
.dash-hero-ayrac { opacity: 0.45; }
.dash-hero-durum { display: flex; gap: 0.45rem; flex-shrink: 0; }
.dash-mini-durum {
  min-width: 4.5rem; padding: 0.45rem 0.6rem; border-radius: 10px;
  background: rgba(15, 34, 56, 0.55); border: 1px solid rgba(93, 115, 142, 0.65);
  text-align: center;
}
.dash-mini-etiket { display: block; font-size: 0.62rem; color: #94A3B8; letter-spacing: 0.04em; }
.dash-mini-durum strong { display: block; margin-top: 0.1rem; font-size: 0.82rem; color: #fff; }

.dash-kpi-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.65rem; margin: 0;
}
.dash-kpi {
  position: relative; display: block; padding: 0.75rem 0.8rem 0.65rem;
  border-radius: var(--radius-glass); text-decoration: none; color: inherit;
  border: 1px solid var(--card-border); background: var(--surface-card-body);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.dash-kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--login-primary); opacity: 0.85;
}
.dash-kpi-mavi::before { background: #2563EB; }
.dash-kpi-lacivert::before { background: #003F87; }
.dash-kpi-amber::before { background: #D97706; }
.dash-kpi-rose::before { background: #E11D48; }
.dash-kpi-yesil::before { background: #059669; }
.dash-kpi:hover {
  transform: translateY(-2px);
  border-color: #93C5FD;
  box-shadow: 0 8px 20px rgba(0, 63, 135, 0.1);
}
.dash-kpi-ust { display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; }
.dash-kpi-ikon { font-size: 1.1rem; }
.dash-kpi-deger { font-size: 1.45rem; font-weight: 700; color: var(--login-primary); line-height: 1; }
.dash-kpi-bas { margin-top: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--ana-lacivert); }
.dash-kpi-alt { font-size: 0.68rem; color: var(--gumus); margin-top: 0.08rem; }
.dash-kpi-ok {
  position: absolute; right: 0.55rem; bottom: 0.45rem; font-size: 1rem;
  color: #CBD5E1; transition: transform 0.15s, color 0.15s;
}
.dash-kpi:hover .dash-kpi-ok { transform: translateX(2px); color: var(--login-primary); }

.dash-modul-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 0.55rem;
}
.dash-modul-kart {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.65rem 0.7rem; border-radius: var(--radius-glass);
  border: 1px solid var(--card-border); background: var(--card-bg);
  text-decoration: none; color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.dash-modul-kart:hover {
  border-color: var(--login-primary);
  box-shadow: 0 4px 14px rgba(0, 63, 135, 0.08);
  transform: translateY(-1px);
}
.dash-modul-ikon {
  width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--card-elev-bg); border: 1px solid var(--card-elev-border);
  font-size: 1rem; flex-shrink: 0;
}
.dash-modul-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.05rem; }
.dash-modul-ad { font-size: 0.84rem; font-weight: 600; color: var(--login-primary); }
.dash-modul-gir { font-size: 0.68rem; color: var(--gumus); }
.dash-modul-chevron { color: #CBD5E1; font-size: 1.1rem; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .page-animate-in, .dash-animate-in, .dash-hero-bg { animation: none !important; }
  .dash-kpi:hover, .dash-modul-kart:hover { transform: none; }
  .nav-acc-panel { transition: none; }
  .nav-item, .nav-chev, .nav-item::before { transition: none; }
  .nav-item.nav-tiklandi { transform: none; }
}

@media (max-width: 700px) {
  .dash-hero-inner { flex-direction: column; align-items: flex-start; }
  .dash-hero-durum { width: 100%; justify-content: flex-start; }
}

@media (max-width: 1400px) {
  .rapor-filtre-grid-desktop {
    grid-template-columns: repeat(6, minmax(68px, 1fr));
  }
}
@media (max-width: 1100px) {
  .ust-bar-unvan { font-size: 0.85rem; }
  .ust-durum-bas { font-size: 0.58rem; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .sidebar { width: 220px; --sidebar-w: 220px; }
  .op-desktop-cols, .op-desktop-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .maliyet-ozet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rapor-filtre-grid-desktop { grid-template-columns: repeat(4, minmax(68px, 1fr)); }
  .modul-filter { width: 7.5rem; }
}

@media (max-width: 900px) {
  .app-shell { flex-direction: column; padding: 0.35rem; }
  .btn-sidebar-toggle { display: inline-flex; }
  .sidebar {
    width: 100%; max-height: 0; opacity: 0; overflow: hidden;
    border-radius: 12px; transition: max-height 0.28s ease, opacity 0.2s ease, margin 0.2s ease;
    margin-bottom: 0; pointer-events: none;
  }
  .app-shell.sidebar-open .sidebar {
    max-height: min(52vh, 420px); opacity: 1; margin-bottom: 0.35rem; pointer-events: auto;
  }
  .ust-bar { padding: 0 0.65rem; }
  .ust-bar-unvan { display: none; }
  .rapor-filtre-grid-desktop { grid-template-columns: repeat(2, 1fr); }
  .rapor-aksiyon-bar { flex-direction: column; align-items: stretch; }
  .rapor-ust-butonlar { justify-content: flex-start; }
  .btn-primary, .btn-outline, .btn-secondary, .btn-takvim, .btn-donem {
    min-height: 44px; min-width: 44px;
  }
  .field-input, select.field-input { min-height: 44px; font-size: 16px; }
  .nav-item { min-height: 44px; }
  .op-modal, .op-arac-modal-card { padding: 0.35rem; align-items: flex-end; }
  .op-modal-card, .op-arac-modal-card { width: 100%; max-height: 94vh; border-radius: 12px 12px 0 0; }
  .op-arac-modal-scroll { max-height: min(52vh, 420px); min-height: 220px; }
  .modul-toolbar-pro, .op-nak-toolbar { padding: 0.45rem 0.55rem; }
  .rapor-table { font-size: 0.72rem; }
  .rapor-table th, .rapor-table td { padding: 0.35rem 0.45rem; }
  .content { padding: 0.35rem 0.45rem; }
}

/* —— Operasyon / modül formları —— */
.content:has(.op-nak-layout),
.content:has(.op-depo-layout) {
  display: flex; flex-direction: column; overflow: hidden; padding: 0.3rem 0.5rem 0.35rem;
}
.app-shell:has(.op-nak-layout) {
  padding: 0.35rem 0.5rem 0.4rem; gap: 0.4rem;
}
.app-shell:has(.op-depo-layout) {
  padding: 0.35rem 0.5rem 0.4rem; gap: 0.4rem;
}
.main:has(.op-nak-layout) .page-head {
  padding: 0.28rem 0.7rem; flex-shrink: 0;
}
.main:has(.op-depo-layout) .page-head {
  padding: 0.28rem 0.7rem; flex-shrink: 0;
}
.main:has(.op-nak-layout) .page-head h1 { font-size: 0.88rem; }
.main:has(.op-depo-layout) .page-head h1 { font-size: 0.88rem; }
.op-nak-layout, .op-depo-layout { flex: 1; min-height: 0; gap: 0.35rem; }
.op-nak-shell, .op-depo-shell { flex: 1; min-height: 0; }

.op-layout { display: flex; flex-direction: column; gap: 0.75rem; }
.op-form { padding: 0; }
.op-form.op-form-padded { padding: 0.85rem 1rem; }
.op-form-body { padding: 0.55rem 0.65rem 0.25rem; }
.op-mode-desc { font-size: 0.72rem; }
.op-form-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem 0.65rem;
}
.op-form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.op-form-section {
  margin-bottom: 0.55rem; padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--card-border);
}
.op-form-section:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.op-form-section .op-section-title {
  margin: 0 0 0.4rem; padding: 0;
  font-size: 0.78rem; font-weight: 600; color: var(--login-primary);
  letter-spacing: 0.02em;
}
.op-form-grid-1 { grid-template-columns: 1fr; }
.op-desktop-cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; align-items: start;
}
.op-desktop-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.op-desktop-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.op-desktop-col { min-width: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.op-nak-toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 0.55rem 1rem; padding: 0.55rem 0.85rem;
  background: linear-gradient(90deg, var(--surface-card-head) 0%, #E8EDF3 55%, var(--surface-shell) 100%);
  border-bottom: 1px solid var(--card-border); flex-shrink: 0;
}
.op-nak-toolbar-grup { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.55rem 0.85rem; }
.op-nak-toolbar-sag { margin-left: auto; }
.op-nak-toolbar-top { padding: 0.38rem 0.6rem; }
.op-nak-toolbar-satir {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 0.35rem 0.55rem; width: 100%;
}
.op-nak-toolbar-aksiyonlar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 0.32rem; margin-left: auto;
}
.op-msg-toolbar {
  font-size: 0.72rem; max-width: 12rem; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.op-msg-toolbar:empty {
  display: none;
}
.op-msg-toolbar.alert-ok,
.op-msg-toolbar.alert-warn {
  background: transparent; border: none; padding: 0; margin: 0;
}
.op-msg-toolbar.alert-ok { color: #166534; }
.op-msg-toolbar.alert-warn { color: #B45309; }
.op-mode-rozet {
  align-self: center; font-size: 0.62rem; font-weight: 600;
  padding: 0.18rem 0.42rem; border-radius: 999px;
  background: #DBEAFE; border: 1px solid #93C5FD; color: var(--login-primary);
  white-space: nowrap;
}
.btn-op-compact {
  height: 28px !important; padding: 0 0.55rem !important; font-size: 0.78rem !important;
}
.op-toolbar-field { display: flex; flex-direction: column; gap: 0.18rem; min-width: 0; }
.op-toolbar-field .field-label { font-size: 0.68rem; margin-bottom: 0; color: var(--gumus); }
.op-toolbar-select { min-width: 9.5rem; max-width: 100%; height: 30px; font-weight: 600; color: var(--ana-lacivert); }

/* Nakliye — masaüstü kutu genişlikleri (px): tur/tip 132, tarih üst 122, alan 244, bekleme 130, kont.teslim 132 */
.op-nak-shell {
  --op-nak-w-tur: 132px;
  --op-nak-w-tarih-ust: 122px;
  --op-nak-w-alan: 244px;
  --op-nak-w-bekleme: 130px;
  --op-nak-w-tarih-alan: 132px;
}
.op-select-nak {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  width: var(--op-nak-w-tur); min-width: var(--op-nak-w-tur); max-width: var(--op-nak-w-tur);
  height: 30px; padding: 0 1.35rem 0 0.5rem;
  border-radius: 10px; border: 1px solid #3A5471;
  background-color: #2E435C; color: #EEF3F8; font-weight: 600; font-size: 0.82rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23EEF3F8' d='M1.5 3.5 5 7 8.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.42rem center; background-size: 0.55rem;
  cursor: pointer;
}
.op-select-nak:focus {
  outline: none; border-color: #4A6685;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}
.op-select-nak:disabled {
  background-color: #F0F0F0; color: #2E435C; border-color: #C8CED6; cursor: not-allowed;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%232E435C' d='M1.5 3.5 5 7 8.5 3.5'/%3E%3C/svg%3E");
}
.op-nak-shell .field-input:disabled,
.op-nak-shell select.field-input:disabled,
.op-nak-shell .btn-takvim:disabled {
  background-color: #F0F0F0; color: #6B7280; cursor: not-allowed;
}
.op-nak-shell .op-nak-toolbar .field-date-row .op-tarih-input {
  width: var(--op-nak-w-tarih-ust); flex: 0 0 var(--op-nak-w-tarih-ust);
}
.op-nak-shell .op-card-body .field-input:not(.op-tarih-input),
.op-nak-shell .op-card-body select.field-input:not(.op-select-nak),
.op-nak-shell .op-card-body .field-textarea {
  width: var(--op-nak-w-alan); max-width: 100%; box-sizing: border-box;
}
.op-depo-fit.op-nak-shell .op-card-body .field-input:not(.op-tarih-input),
.op-depo-fit.op-nak-shell .op-card-body select.field-input:not(.op-select-nak),
.op-depo-fit.op-nak-shell .op-card-body .field-textarea,
.op-depo-fit.op-nak-shell .op-card-body .op-akilli-wrap {
  width: var(--op-depo-w-alan, var(--op-nak-w-alan));
  max-width: 100%;
}
.op-nak-shell .op-inline-bek .field-input {
  width: var(--op-nak-w-bekleme); flex: 0 0 var(--op-nak-w-bekleme); min-width: var(--op-nak-w-bekleme);
}
.op-nak-shell .op-card-body .field-date-row .op-tarih-input {
  width: var(--op-nak-w-tarih-alan); flex: 0 0 var(--op-nak-w-tarih-alan);
}
.op-nak-shell .op-card-body .field-textarea.op-textarea-compact {
  width: var(--op-nak-w-alan); min-height: 48px; max-height: 48px;
}
.op-nak-shell .op-card-body .op-field { align-items: flex-start; }
.op-nak-shell .op-bek-btn,
.op-nak-shell .op-emanet-btn,
.op-nak-shell .op-toggle-row .btn-outline {
  width: 42px; min-width: 42px; max-width: 42px; padding: 0; justify-content: center; text-align: center;
}
.op-nak-shell .op-toggle-row .btn-outline.op-toggle-pasif:disabled,
.op-nak-shell .op-toggle-row .btn-outline:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #F0F0F0;
  border-color: #C8CED6;
  color: #6B7280;
}
.op-nak-shell .field-input.op-field-pasif-gecmis:disabled { background: #F7F7F7; color: var(--ana-lacivert); }
.op-depo-fit .field-input.op-field-pasif-gecmis:disabled { background: #F1F5F9; color: var(--ana-lacivert); }

/* Akıllı öneri (masaüstü akilli_input combobox) */
.op-akilli-wrap {
  position: relative; width: 100%; max-width: 100%;
  display: flex; align-items: stretch;
  border: 1px solid var(--card-border); border-radius: var(--radius-btn);
  background: var(--surface-input); overflow: visible;
  transition: border-color 0.15s;
}
.op-akilli-wrap.op-akilli-wrap-open {
  border-color: var(--card-elev-border);
}
.op-akilli-wrap .op-akilli-input {
  flex: 1; min-width: 0; width: auto; height: 34px;
  padding: 0 0.35rem 0 0.65rem;
  border: none; border-radius: 0; box-shadow: none;
  background: transparent;
}
.op-akilli-wrap .op-akilli-input:focus {
  outline: none; border: none; box-shadow: none;
}
.op-akilli-wrap:focus-within {
  border-color: var(--card-elev-border);
  box-shadow: none;
}
.op-akilli-arrow {
  position: relative; flex-shrink: 0;
  width: 28px; min-width: 28px; height: auto; padding: 0; margin: 0;
  border: none; border-left: 1px solid var(--card-border);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  background: #EAF2FF; color: var(--login-primary);
  font-size: 0.72rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.op-akilli-arrow:hover { background: #DBEAFE; color: #135BA8; }
.op-akilli-arrow-open { background: var(--login-primary); color: #fff; }
.op-akilli-arrow-open:hover { background: #135BA8; color: #fff; }
.op-akilli-wrap:has(.op-akilli-input:disabled) {
  background: #F0F0F0; border-color: #C8CED6;
}
.op-akilli-wrap .op-akilli-input:disabled ~ .op-akilli-arrow {
  background: #F0F0F0; color: #64748B; cursor: not-allowed;
}
.op-akilli-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 120;
  margin: 0; padding: 0;
  background: var(--beyaz); border: 1px solid var(--card-elev-border); border-radius: 10px;
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.1);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.op-akilli-list[hidden] { display: none !important; }
/* Akıllı öneri açıkken kart/form blok kaydırması kapalı — liste tekerlek ile kayar */
.op-akilli-scroll-lock,
.op-nak-fit .op-card-body:has(.op-akilli-wrap-open),
.op-depo-fit .op-card-body:has(.op-akilli-wrap-open),
.op-nak-shell .op-card-body:has(.op-akilli-wrap-open),
.op-depo-shell .op-card-body:has(.op-akilli-wrap-open),
.op-form-body:has(.op-akilli-wrap-open) {
  overflow: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.op-akilli-scroll-lock::-webkit-scrollbar,
.op-nak-fit .op-card-body:has(.op-akilli-wrap-open)::-webkit-scrollbar,
.op-depo-fit .op-card-body:has(.op-akilli-wrap-open)::-webkit-scrollbar,
.op-nak-shell .op-card-body:has(.op-akilli-wrap-open)::-webkit-scrollbar,
.op-depo-shell .op-card-body:has(.op-akilli-wrap-open)::-webkit-scrollbar,
.op-form-body:has(.op-akilli-wrap-open)::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.op-akilli-list-viewport {
  overflow: hidden;
  max-height: 10.5rem;
  background: var(--beyaz);
  transform: translateZ(0);
}
.op-akilli-list-track {
  position: relative;
  background: var(--beyaz);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.op-akilli-list-more {
  width: 100%; height: 22px; padding: 0; margin: 0; flex-shrink: 0;
  border: none;
  background: #EAF2FF; color: var(--login-primary);
  font-size: 0.68rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.op-akilli-list-more:hover { background: #DBEAFE; color: #135BA8; }
.op-akilli-list-more[hidden] { display: none; }
.op-akilli-item {
  display: block; width: 100%; text-align: left;
  border: none; outline: none; background: var(--beyaz);
  box-sizing: border-box; margin: 0; padding: 0 0.55rem;
  height: 28px; line-height: 28px;
  font: inherit; font-size: 0.82rem; color: var(--ana-lacivert);
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  appearance: none; -webkit-appearance: none;
  vertical-align: top;
  box-shadow: none;
}
.op-akilli-item:focus,
.op-akilli-item:focus-visible {
  outline: none; box-shadow: none; border: none;
}
.op-akilli-item:hover,
.op-akilli-item-active {
  background: #EAF2FF; color: var(--login-primary);
  outline: none; box-shadow: none; border: none;
}
.op-nak-fit .op-akilli-wrap { height: 32px; }
.op-nak-fit .op-akilli-wrap .op-akilli-input { height: 100%; }
.op-arac-tablo .op-akilli-wrap { height: 26px; min-height: 26px; }
.op-arac-tablo .op-akilli-wrap .op-akilli-input { height: 100%; font-size: 0.76rem; }
.op-arac-tablo .op-akilli-arrow { width: 24px; min-width: 24px; }
.op-nak-shell .op-field > .op-akilli-wrap { width: var(--op-nak-w-alan); max-width: 100%; }
.op-arac-tablo .op-akilli-wrap { min-width: 6.5rem; }
.op-arac-tablo .op-akilli-list { min-width: 14rem; }
.op-arac-tablo .op-akilli-list-viewport { max-height: 12.5rem; }
.op-arac-modal-card .op-akilli-list-viewport { max-height: 14rem; }
.op-arac-modal-card .op-akilli-list { min-width: 16rem; }
.op-select-nak.op-toolbar-select { min-width: var(--op-nak-w-tur); color: #EEF3F8; }
.op-nak-header {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 0.5rem 1rem; margin-bottom: 0.65rem; padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--card-border);
}
.op-nak-header-left, .op-nak-header-right { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 0.75rem; }
.op-field-inline { display: flex; flex-direction: column; gap: 0.2rem; }
.op-tarih-input { width: 9.5rem; min-width: 0; }
.op-inline-bek { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.op-inline-bek .field-input { flex: 1; min-width: 5rem; }
.op-bek-btn { height: 28px; padding: 0 0.55rem; font-size: 0.82rem; }
.op-arac-rozet {
  font-size: 0.8rem; font-weight: 600; color: var(--ana-lacivert);
  background: #DBEAFE; border: 1px solid #93C5FD; border-radius: 999px; padding: 0.2rem 0.65rem;
}
@media (max-width: 1500px) {
  .op-desktop-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op-desktop-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .op-desktop-cols, .op-desktop-cols-2, .op-desktop-cols-3 { grid-template-columns: 1fr; }
  .op-nak-toolbar-sag { margin-left: 0; width: 100%; }
}
.paylas-alan-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem 0.75rem;
  max-height: 220px; overflow: auto; margin-bottom: 0.5rem;
}
.paylas-alan-grid label { font-size: 0.8rem; display: flex; align-items: center; gap: 0.35rem; }
.paylas-metin {
  width: 100%; min-height: 140px; font-family: inherit; font-size: 0.82rem;
  border: 1px solid var(--card-border); border-radius: var(--radius-btn); padding: 0.5rem;
}
.maliyet-ozet { padding: 0.75rem 1rem; margin-bottom: 0.65rem; }
.maliyet-ozet-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem;
}
.maliyet-ozet-kart {
  background: var(--soft-beyaz, #f8fafc); border: 1px solid var(--card-border);
  border-radius: var(--radius-glass); padding: 0.5rem 0.65rem;
}
.maliyet-ozet-bas { font-size: 0.75rem; color: var(--gumus); margin-bottom: 0.2rem; }
.maliyet-ozet-deger { font-size: 1rem; font-weight: 600; color: var(--ana-lacivert); }
.maliyet-kar { color: #15803D; }
.maliyet-zarar { color: #DC2626; }
.maliyet-dagilim {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.85rem; margin-top: 0.55rem;
  font-size: 0.78rem; color: var(--gumus);
}
.maliyet-satir-zarar td { color: #B45309; }
@media (max-width: 900px) {
  .maliyet-ozet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.op-field { min-width: 0; }
.op-span2 { grid-column: span 2; }
.op-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.75rem;
}
.op-msg { flex: 1; font-size: 0.82rem; }
.page-desc { margin: 0.15rem 0 0; font-size: 0.82rem; color: var(--gumus); }
.modul-toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.45rem 0.65rem; padding: 0.65rem 0.85rem;
}
.modul-filter { width: 8.5rem; max-width: 100%; min-width: 0; }
.modul-meta { margin-left: auto; font-size: 0.78rem; color: var(--gumus); }
.rapor-yenile-meta { font-size: 0.72rem; color: var(--gumus); align-self: center; white-space: nowrap; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 0.85rem; border-radius: var(--radius-btn);
  font: inherit; font-size: 0.88rem; cursor: pointer; border: 0;
  background: var(--buton-iptal); color: var(--ana-lacivert);
}
.btn-secondary:hover { filter: brightness(0.97); }
.alert-ok { color: #166534; }
.alert-warn { color: #B45309; }
.section-title { margin: 0 0 0.5rem; font-size: 0.92rem; color: var(--ana-lacivert); }
.teklif-layout { gap: 0.75rem; }
.op-section { margin-top: 0.75rem; padding-top: 0.65rem; border-top: 1px solid var(--card-border); }
.op-section-title { font-size: 0.82rem; font-weight: 600; color: var(--ana-lacivert); margin-bottom: 0.45rem; }
.op-toggle-row { display: flex; gap: 0.35rem; }
.op-toggle.op-toggle-on { background: var(--login-primary); color: #fff; border-color: var(--login-primary); }
.op-coklu-panel { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; padding: 0.35rem 0.5rem 0.55rem; }
.op-coklu-ozet { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; width: 100%; }
.op-coklu-ipucu { margin: 0; font-size: 0.74rem; color: var(--gumus); text-align: center; line-height: 1.35; max-width: 18rem; }
.btn-arac-yonet {
  width: min(240px, 100%); height: 30px; border-radius: 8px; font-size: 0.82rem;
  background: #003F87; border-color: #003F87;
}
.btn-arac-yonet:hover { background: #135BA8; border-color: #135BA8; }
.op-arac-modal-card {
  width: min(96vw, 1680px); max-height: 94vh; min-height: min(72vh, 680px);
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden;
  background: var(--surface-panel);
  border-color: var(--surface-border-soft);
}
.op-arac-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.65rem 0.85rem; background: var(--ana-lacivert); color: #fff;
}
.op-arac-modal-head h3 { margin: 0; font-size: 1.05rem; color: #fff; font-weight: 600; }
.btn-arac-yeni {
  height: 32px; padding: 0 0.85rem; border-radius: 14px; font-size: 0.82rem; font-weight: 600;
  background: #22C55E; border-color: #16A34A; color: #fff;
}
.btn-arac-yeni:hover { background: #16A34A; }
.btn-arac-yeni:disabled { opacity: 0.45; cursor: not-allowed; }
.op-arac-modal-body {
  padding: 0.55rem 0.75rem; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.45rem;
  background: var(--surface-shell);
}
.op-arac-modal-scroll {
  flex: 1; min-height: 280px; max-height: min(68vh, 620px);
  border: 1px solid var(--card-border); border-radius: var(--radius-btn);
  background: var(--surface-card-body);
}
.op-arac-tablo .field-input, .op-arac-tablo .op-select-nak {
  width: 100%; min-width: 4.2rem; font-size: 0.76rem; height: 26px; padding: 0 0.3rem;
}
.op-arac-modal-tablo th { font-size: 0.72rem; white-space: nowrap; padding: 0.35rem 0.3rem; }
.op-arac-modal-tablo td { padding: 0.2rem 0.25rem; vertical-align: middle; }
.op-arac-modal-stats {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem;
  font-size: 0.8rem; color: var(--ana-lacivert); font-weight: 600;
}
.op-arac-stat-dolu { color: #16A34A; }
.op-arac-stat-ie { font-weight: 500; color: var(--gumus); }
.op-arac-stat-ayrac { color: #94A3B8; font-weight: 400; }
.op-arac-modal-foot {
  display: flex; justify-content: center; gap: 0.55rem; padding: 0.65rem 0.85rem 0.85rem;
  border-top: 1px solid var(--card-border);
  background: var(--surface-panel);
}
.op-arac-tablo .ar-sil { height: 26px; padding: 0 0.45rem; font-size: 0.72rem; }
.op-arac-tablo .ar-tip { min-width: 4.5rem; }
.op-arac-tablo .ar-pasif { background: #F1F5F9; color: #64748B; }
.op-banner {
  padding: 0.5rem 0.75rem; border-radius: var(--radius-glass);
  background: #EAF2FF; color: var(--ana-lacivert); font-size: 0.82rem;
}
.op-banner-salt {
  background: var(--warn-bg); border: 1px solid var(--warn-border);
  color: var(--warn-text); font-weight: 600;
}
.op-form-salt-okunur .field-input,
.op-form-salt-okunur .field-textarea,
.op-form-salt-okunur select {
  background: #F8FAFC; color: var(--gumus);
}
.op-form-salt-okunur .btn-primary,
.op-form-salt-okunur .btn-outline.btn-op-compact:not(#nakKapat):not(#depoKapat) {
  display: none;
}

/* —— Profesyonel modül araç çubuğu / sekmeler —— */
.modul-toolbar-pro {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.4rem 0.5rem;
  padding: 0.55rem 0.65rem; background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
}
.modul-toolbar-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.45rem 0.65rem;
  width: 100%;
}
.modul-rozet-satir {
  display: flex; flex-wrap: wrap; gap: 0.4rem; width: 100%; margin-top: 0.15rem;
}
.btn-donem {
  height: 28px; padding: 0 0.55rem; border-radius: 8px; font-size: 0.78rem;
  border: 1px solid var(--card-elev-border); background: var(--beyaz);
  color: var(--ana-lacivert); cursor: pointer; font: inherit;
}
.btn-donem:hover { background: #EAF2FF; }
.btn-donem-on { background: var(--login-primary); color: #fff; border-color: var(--login-primary); }
.seg-tabs {
  display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.45rem 0.85rem 0;
  background: var(--card-bg); border-bottom: 1px solid var(--card-border);
}
.seg-tab {
  height: 30px; padding: 0 0.75rem; border-radius: 8px 8px 0 0;
  border: 1px solid transparent; border-bottom: 0;
  background: transparent; color: var(--gumus); font: inherit; font-size: 0.82rem;
  cursor: pointer;
}
.seg-tab:hover { color: var(--ana-lacivert); background: #EAF2FF; }
.seg-tab-on {
  background: var(--beyaz); color: var(--login-primary); font-weight: 600;
  border-color: var(--card-border); margin-bottom: -1px;
}
.kpi-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem;
  padding: 0.45rem 0.65rem 0.55rem; width: 100%;
}
.kpi-kart {
  background: var(--soft-beyaz); border: 1px solid var(--card-border);
  border-radius: var(--radius-glass); padding: 0.45rem 0.6rem;
}
.kpi-bas { font-size: 0.72rem; color: var(--gumus); margin-bottom: 0.15rem; }
.kpi-deger { font-size: 0.95rem; font-weight: 700; color: var(--login-primary); }
.stok-chip-satir {
  display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.55rem 0.85rem 0.65rem;
  border-bottom: 1px solid var(--card-border); background: var(--card-elev-bg);
}
.stok-chip {
  font-size: 0.72rem; font-weight: 600; padding: 0.28rem 0.55rem;
  border-radius: 999px; border: 1px solid var(--card-elev-border);
  background: var(--beyaz); color: var(--ana-lacivert); white-space: nowrap;
}
.stok-chip strong { color: var(--login-primary); margin-left: 0.2rem; }

/* —— Operasyon kart başlığı + alt aksiyon çubuğu —— */
.op-form-shell { padding: 0; display: flex; flex-direction: column; min-height: 0; }
.op-form-body {
  padding: 0.65rem 0.75rem 0.55rem; flex: 1; min-height: 0; overflow: auto;
  background: var(--surface-shell);
}
.op-card {
  border: 1px solid var(--card-border); border-radius: 14px;
  background: var(--surface-card); overflow: hidden;
  box-shadow: 0 1px 3px rgba(11, 31, 58, 0.05);
}
.op-card-head {
  padding: 0.4rem 0.7rem;
  background: var(--surface-card-head);
  border-bottom: 1px solid var(--card-border);
  color: var(--ana-lacivert);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em;
}
.op-card-body { padding: 0.55rem 0.65rem 0.65rem; background: var(--surface-card-body); }
.op-card-fatura { margin-top: 0.65rem; }
.op-card .op-form-grid-1 { gap: 0.45rem; }
.op-card .field-label { font-size: 0.72rem; }
.op-card .field-input,
.op-card .field-textarea,
.op-card select.field-input { font-size: 0.84rem; }
.op-footer-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.65rem; margin-top: 0;
  background: var(--card-bg); border-top: 1px solid var(--card-border);
  flex-shrink: 0;
}
.op-footer-bar-pro {
  padding: 0.55rem 0.75rem;
  background: linear-gradient(180deg, #F8FBFF 0%, #ECF3FF 100%);
}
.op-footer-bar .op-msg { flex: 1; min-width: 8rem; }
.op-footer-aksiyonlar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.4rem;
  margin-left: auto;
}
.btn-op-ghost {
  border-color: #0EA5A4; color: #0F766E; background: #fff;
}
.btn-op-ghost:hover { background: #F0FDFA; }
.btn-op-kaydet {
  min-width: 11rem; height: 32px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 63, 135, 0.18);
}
.btn-op-kaydet:hover { box-shadow: 0 3px 12px rgba(0, 63, 135, 0.22); }
.btn-op-kapat {
  border-color: var(--buton-iptal); color: var(--ana-lacivert); background: #fff;
}
.btn-op-kapat:hover { background: #F8FAFC; }
.btn-op-yeni { background: #0EA5A4; color: #fff; }
.btn-op-yeni:hover { filter: brightness(1.05); }

/* Nakliye — üst aksiyon + tek ekrana sığdırma */
.op-nak-fit {
  display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden;
}
.op-nak-fit .op-form-body {
  flex: 1; min-height: 0; overflow: hidden;
  padding: 0.22rem 0.32rem 0.28rem;
}
.op-nak-fit .op-desktop-cols-3 {
  height: 100%; min-height: 0; gap: 0.2rem; align-items: stretch;
}
.op-nak-fit .op-desktop-col {
  gap: 0.18rem; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.op-nak-fit .op-card {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
}
.op-nak-fit .op-card-head {
  padding: 0.32rem 0.55rem; font-size: 0.8rem; flex-shrink: 0;
}
.op-nak-fit .op-card-body {
  flex: 1; min-height: 0; overflow-y: auto; padding: 0.32rem 0.42rem 0.38rem;
  scrollbar-width: thin;
}
.op-nak-fit .op-card .op-form-grid-1 { gap: 0.28rem; }
.op-nak-fit .field-label { font-size: 0.72rem; margin-bottom: 0.12rem; }
.op-nak-fit .op-nak-toolbar .op-toolbar-field .field-label { font-size: 0.74rem; }
.op-nak-fit .field-input,
.op-nak-fit select.field-input {
  height: 32px; font-size: 0.86rem; padding: 0 0.5rem;
}
.op-nak-fit .field-textarea.op-textarea-compact {
  min-height: 40px; max-height: 50px; padding: 0.32rem 0.5rem; font-size: 0.84rem;
}
.op-nak-fit .op-select-nak { height: 30px; font-size: 0.82rem; }
.op-nak-fit .op-nak-toolbar .field-date-row .op-tarih-input {
  width: var(--op-nak-w-tarih-ust); flex: 0 0 var(--op-nak-w-tarih-ust);
}
.op-nak-fit .btn-takvim { width: 30px; height: 30px; min-width: 30px; }
.op-nak-fit .op-bek-btn { height: 28px; font-size: 0.78rem; padding: 0 0.48rem; }
.op-nak-fit .op-toggle-row .btn-outline { height: 28px; font-size: 0.78rem; }
.op-nak-fit .op-arac-scroll { max-height: 58px; }
.op-nak-fit .op-arac-tablo .field-input { height: 24px; font-size: 0.72rem; }
.op-nak-fit .rapor-table th,
.op-nak-fit .rapor-table td { padding: 0.18rem 0.28rem; font-size: 0.7rem; }
.op-nak-fit .op-coklu-head { margin-bottom: 0.28rem; }
.op-nak-fit .op-arac-rozet { font-size: 0.72rem; padding: 0.12rem 0.45rem; }
.op-nak-fit .btn-secondary { height: 26px; font-size: 0.74rem; padding: 0 0.5rem; }

/* Depolama operasyon — sabit kutu genişliği (sütunu doldurmaz), nakliye ile hizalı aralık */
.op-depo-fit.op-nak-fit {
  --op-depo-w-alan: 236px;
  --op-depo-w-tarih: 124px;
}
.op-depo-fit.op-nak-fit .op-form-body {
  padding: 0.28rem 0.45rem 0.32rem;
}
.op-depo-fit.op-nak-fit .op-desktop-cols-3 {
  gap: 0.45rem;
  align-items: start;
}
.op-depo-fit.op-nak-fit .op-desktop-col {
  gap: 0.38rem;
}
.op-depo-fit.op-nak-fit .op-card {
  flex: 0 0 auto;
}
.op-depo-fit.op-nak-fit .op-depo-card-coklu {
  flex: 1 1 auto;
  min-height: 0;
}
.op-depo-fit.op-nak-fit .op-card-head {
  padding: 0.36rem 0.62rem;
}
.op-depo-fit.op-nak-fit .op-card-body {
  padding: 0.38rem 0.55rem 0.42rem;
}
.op-depo-fit.op-nak-fit .op-card .op-form-grid-1,
.op-depo-fit.op-nak-fit .op-depo-card-hesap .op-form-grid-1 {
  gap: 0.26rem;
}
.op-depo-fit.op-nak-fit .field-label {
  font-size: 0.68rem;
  margin-bottom: 0.1rem;
}
.op-depo-fit.op-nak-fit .field-input,
.op-depo-fit.op-nak-fit select.field-input {
  width: var(--op-depo-w-alan);
  max-width: 100%;
  height: 32px;
  font-size: 0.82rem;
  padding: 0 0.48rem;
  box-sizing: border-box;
}
.op-depo-fit.op-nak-fit .op-akilli-wrap {
  width: var(--op-depo-w-alan);
  max-width: 100%;
  height: 32px;
}
.op-depo-fit.op-nak-fit .op-akilli-wrap .op-akilli-input {
  height: 100%;
  font-size: 0.82rem;
}
.op-depo-fit.op-nak-fit .op-select-nak {
  height: 30px;
  font-size: 0.78rem;
}
.op-depo-fit.op-nak-fit .btn-takvim {
  width: 30px;
  height: 30px;
  min-width: 30px;
}
.op-depo-fit.op-nak-fit .op-card-body .field-date-row {
  width: calc(var(--op-depo-w-alan) + 34px);
  max-width: 100%;
}
.op-depo-fit.op-nak-fit .op-card-body .field-date-row .op-tarih-input {
  width: var(--op-depo-w-tarih);
  flex: 0 0 var(--op-depo-w-tarih);
  min-width: 0;
}
.op-depo-fit.op-nak-fit .field-textarea.op-textarea-compact {
  width: var(--op-depo-w-alan);
  max-width: 100%;
  min-height: 44px;
  max-height: 44px;
  padding: 0.34rem 0.48rem;
  font-size: 0.8rem;
  box-sizing: border-box;
  line-height: 1.35;
}
.op-depo-fit.op-nak-fit .op-depo-card-hesap .op-card-body {
  flex: 0 0 auto;
  overflow: visible;
  max-height: none;
}
.op-depo-fit.op-nak-fit .op-depo-card-fatura .op-card-body {
  padding-bottom: 0.42rem;
}
.op-depo-fit.op-nak-fit .op-depo-coklu-panel {
  padding: 0.42rem 0.55rem 0.5rem;
  gap: 0.32rem;
}
.op-depo-fit.op-nak-fit .op-depo-coklu-panel .op-coklu-ozet {
  gap: 0.32rem;
}
.op-depo-fit.op-nak-fit .op-depo-coklu-rozet {
  width: 100%;
  display: flex;
  justify-content: center;
}
.op-depo-fit.op-nak-fit .op-depo-coklu-panel .op-coklu-ipucu {
  margin: 0 auto;
  text-align: center;
  max-width: 16rem;
  font-size: 0.72rem;
  line-height: 1.4;
}
.op-depo-fit.op-nak-fit .op-field {
  width: auto;
  max-width: 100%;
}
.op-depo-fit.op-nak-shell .op-field > .op-akilli-wrap {
  width: var(--op-depo-w-alan);
  max-width: 100%;
}

@media (max-width: 1200px) {
  .op-nak-toolbar-aksiyonlar { width: 100%; margin-left: 0; justify-content: flex-start; }
}
@media (max-width: 900px) {
  .op-nak-fit .op-desktop-cols-3 { height: auto; }
  .op-nak-fit .op-desktop-col { overflow: visible; }
  .op-nak-fit .op-card-body { overflow: visible; max-height: none; }
  .op-depo-fit.op-nak-fit .op-desktop-cols-3 { height: auto; }
  .op-depo-fit.op-nak-fit .op-desktop-col { overflow: visible; }
  .op-depo-fit.op-nak-fit .op-card-body { overflow: visible; max-height: none; }
}

.field-textarea {
  width: 100%; min-height: 52px; border: 1px solid var(--card-border);
  border-radius: var(--radius-btn); padding: 0.4rem 0.65rem; font: inherit;
  color: var(--ana-lacivert); background: var(--surface-input); resize: vertical;
}
@media (max-width: 900px) {
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* —— Araç giderleri kayıt formu —— */
.gider-kayit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem 0.5rem;
  padding: 0.55rem 0.65rem 0.65rem;
  align-items: end;
}
.gider-kayit-alan { min-width: 0; }
.gider-kayit-genis { grid-column: span 2; }
.gider-kayit-aksiyon {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  padding-top: 0.35rem; border-top: 1px solid var(--card-border); margin-top: 0.15rem;
}
.gider-kayit-aksiyon .op-msg { flex: 1; min-width: 8rem; }
.gider-filt-genel { min-width: 8rem; flex: 1 1 10rem; max-width: 16rem; }
.gider-liste-panel { display: flex; flex-direction: column; min-height: 280px; }
.gider-liste-panel .rapor-table-scroll { flex: 1; min-height: 0; }
.content:has(.gider-liste-panel) {
  display: flex; flex-direction: column; overflow: hidden;
}
.content:has(.gider-liste-panel) > .gider-kayit-panel { flex-shrink: 0; }
.content:has(.gider-liste-panel) > .gider-liste-panel { flex: 1; min-height: 0; margin-bottom: 0; }
@media (max-width: 1100px) {
  .gider-kayit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gider-kayit-genis { grid-column: span 3; }
}
@media (max-width: 700px) {
  .gider-kayit-grid { grid-template-columns: 1fr 1fr; }
  .gider-kayit-genis { grid-column: span 2; }
  .kpi-strip { grid-template-columns: 1fr 1fr; }
  .rapor-filtre-grid-desktop { grid-template-columns: 1fr; }
  .ust-durum-kutu { height: auto; min-height: 44px; padding: 0.35rem 0.5rem; }
  .ust-bar-durum { flex-wrap: wrap; justify-content: flex-end; gap: 0.25rem; }
  .modul-toolbar-row { flex-direction: column; align-items: stretch; }
  .modul-meta { margin-left: 0; }
  .op-nak-toolbar-aksiyonlar { gap: 0.35rem; }
  .op-nak-toolbar-aksiyonlar .btn-outline,
  .op-nak-toolbar-aksiyonlar .btn-primary { flex: 1 1 calc(50% - 0.2rem); justify-content: center; }
}
