/* Uygulama stilleri: tasarım tuvalindeki satır içi stillerin sınıflara taşınmış hali. Token'lar flux-ui.css'te. */
html, body { height: 100%; }
body { background: var(--mist); }
.shell { min-height: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip-link:focus { left: 8px; outline: 2px solid var(--accent); }
button.linklike { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-align: left; }
button.linklike:hover { color: var(--ink); text-decoration: underline; }
button.sub.linklike { font-size: 12px; line-height: 1.2; }
.strong { font-weight: 600; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Açılış: oturum başına bir kez (karar sunucuda: fx-intro oturum çerezi, bu yüzden yenilemede yanıp sönme yok). Katman opak beyazdır;
   shell.js sayfa ve yazı tipleri hazır olunca .splash-leave ekler (yumuşak solma + sayfa hafifçe yerine oturur); betik çalışmazsa CSS yedek süresi kapatır. */
.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; background: #fff; animation: splash-out .45s ease 6s forwards; }
.splash.splash-leave { animation: splash-out .45s ease 0s forwards; }
.stroke { stroke-dasharray: 170; stroke-dashoffset: 170; animation: draw .55s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; }
.d4 { animation-delay: .33s; } .d5 { animation-delay: .41s; } .d6 { animation-delay: .49s; }
.d7 { animation-delay: .56s; } .d8 { animation-delay: .60s; } .d9 { animation-delay: .64s; }
.wm { opacity: 0; transform: translateY(10px); animation: rise .5s ease-out .75s forwards; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wm-name { font-size: 44px; font-weight: 600; letter-spacing: -1.5px; line-height: 1; }
.wm-sub { font-size: 14px; color: var(--muted); margin-top: 10px; }
.track { width: 240px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; opacity: 0; animation: show .3s ease-out 1.1s forwards; }
.sweep { width: 90px; height: 100%; background: #556EE6; border-radius: 2px; animation: slide 1.1s cubic-bezier(.45,0,.2,1) 1.2s infinite; }
.splash-ver { position: absolute; bottom: 28px; font-size: 12px; color: #9A9EB0; }
body.intro-done .shell, body.intro-done .auth { animation: page-in .55s ease both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
@keyframes page-in { from { opacity: 0; transform: scale(.992); } to { opacity: 1; transform: none; } }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes show { to { opacity: 1; } }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
  body.intro-done .shell, body.intro-done .auth { animation: none; }
}

/* Giriş ve firma seçimi */
/* Giriş sonrası içeri geçiş (~0,85 sn): karar sunucuda (fx-enter çerezi). Yalnız transform/opacity; kabuk yerinde kalır (CLS=0).
   Katman opak beyaz → logo çizgileri hızla çizilir, hız çizgileri soldan sağa süpürür → katman solar, kabuk hafifçe yukarı oturur. */
.enter { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; pointer-events: none; animation: enter-out .4s ease .42s forwards; }
.enter svg { position: relative; }
.estroke { stroke-dasharray: 170; stroke-dashoffset: 170; animation: draw .3s cubic-bezier(.2,.7,.2,1) forwards; }
.e1 { animation-delay: .02s; } .e2 { animation-delay: .05s; } .e3 { animation-delay: .08s; }
.e4 { animation-delay: .11s; } .e5 { animation-delay: .14s; } .e6 { animation-delay: .17s; }
.e7 { animation-delay: .2s; } .e8 { animation-delay: .21s; } .e9 { animation-delay: .22s; }
.enter-streak { position: absolute; left: 0; width: 70vw; height: 5px; border-radius: 3px; background: linear-gradient(90deg, rgba(85,110,230,0), #556EE6 70%, rgba(85,110,230,.15)); opacity: 0; transform: translateX(-80vw) skewX(-24deg); animation: streak .42s cubic-bezier(.55,.05,.25,1) forwards; }
.enter-streak.s1 { top: 40%; animation-delay: .1s; }
.enter-streak.s2 { top: 50%; height: 7px; animation-delay: .16s; }
.enter-streak.s3 { top: 60%; animation-delay: .22s; }
.enter ~ .shell { animation: enter-settle .5s cubic-bezier(.2,.7,.2,1) .4s both; }
.enter ~ .auth { animation: enter-settle .5s cubic-bezier(.2,.7,.2,1) .4s both; }
@keyframes streak { 0% { opacity: 0; transform: translateX(-80vw) skewX(-24deg); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(130vw) skewX(-24deg); } }
@keyframes enter-out { to { opacity: 0; visibility: hidden; } }
@keyframes enter-settle { from { opacity: 0; transform: translateY(10px) scale(.992); } to { opacity: 1; transform: none; } }

/* Giriş formunun gönderimi: panel hafifçe solup küçülür, düğmede ilerleme çizgisi akar (istek sürerken görünür geri bildirim). */
.auth-form { transition: opacity .22s ease, transform .22s ease; transform-origin: 30% 40%; }
.auth-form.leaving { opacity: .55; transform: scale(.985); }
.auth-form.leaving .btn-primary { position: relative; overflow: hidden; pointer-events: none; }
.auth-form.leaving .btn-primary::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.75); transform-origin: left; animation: leave-bar 1s ease-in-out infinite; }
@keyframes leave-bar { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .enter { display: none; }
  .enter ~ .shell, .enter ~ .auth { animation: none; }
  .auth-form { transition: none; }
  .auth-form.leaving { opacity: 1; transform: none; }
  .auth-form.leaving .btn-primary::after { animation: none; }
}

.auth { min-height: 100vh; display: flex; background: #fff; }
.auth-left { width: 560px; flex: 0 0 560px; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-size: 20px; font-weight: 600; letter-spacing: -.6px; line-height: 1; }
.auth-form form { display: flex; flex-direction: column; gap: 18px; max-width: 400px; }
.auth-form h1 { font-size: 28px; font-weight: 600; letter-spacing: -.4px; line-height: 1.2; }
.auth-form h1:focus { outline: none; }
.auth-form .lead { color: var(--muted); margin-top: -10px; }
.auth-foot { display: flex; gap: 20px; font-size: 12px; color: var(--muted); }
.auth-foot .push { margin-left: auto; }
.auth-right { flex: 1; background: var(--slate); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 72px 80px; color: #fff; }
.auth-strokes { position: absolute; right: -120px; top: -90px; width: 620px; height: 620px; opacity: .14; }
.auth-right h2 { font-size: 34px; font-weight: 600; letter-spacing: -.5px; line-height: 1.2; max-width: 460px; position: relative; }
.auth-right p { color: #B9BDCC; margin-top: 14px; max-width: 440px; font-size: 15px; position: relative; }
.feat { list-style: none; padding: 0; margin: 36px 0 0; max-width: 420px; position: relative; }
.feat li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 15px; color: #DADDE7; display: flex; gap: 14px; align-items: center; }
.feat svg { width: 20px; height: 20px; color: #8FA0F2; flex: 0 0 auto; }
.field { display: flex; flex-direction: column; }
.field-error { color: var(--red); font-size: 12px; margin-top: 4px; }
.req { color: var(--muted); font-weight: 400; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.opt.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.opt:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #C9CDD8; flex: 0 0 auto; }
.opt.on .radio { border: 5px solid var(--accent); }
.opt-text { min-width: 0; display: flex; flex-direction: column; }
.opt-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.opt-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.form-alert { background: #FDF0F0; border: 1px solid #F0C4C4; color: #8F2A2A; border-radius: 8px; padding: 10px 14px; font-size: 13px; }

/* Kabuk */
.rail a { border: 0; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar .firm .sub { color: var(--muted); }
.usermenu { position: relative; }
.userbtn { display: flex; align-items: center; gap: 10px; margin-left: 10px; padding: 0 0 0 16px; border: 0; border-left: 1px solid var(--line); background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #E9ECF5; color: var(--ink); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.userline { display: flex; flex-direction: column; }
.uname { font-size: 13px; font-weight: 500; line-height: 1.2; }
.usub { font-size: 11px; color: var(--muted); line-height: 1.2; }
.menu { position: absolute; right: 0; top: 46px; min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; z-index: 20; box-shadow: 0 8px 24px rgba(31,36,51,.12); display: flex; flex-direction: column; }
.menu[hidden] { display: none; }
.menu form { margin: 0; display: flex; flex-direction: column; }
.menu button, .menu a { text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 6px; cursor: pointer; font: inherit; color: inherit; text-decoration: none; display: block; }
.menu button:hover, .menu a:hover { background: var(--mist); color: var(--ink); }
.menu-note p { padding: 10px 12px; color: var(--muted); font-size: 13px; }
.iconbtn { text-decoration: none; }
.content:focus { outline: none; }
.screen { display: flex; flex-direction: column; gap: 28px; }
.page-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 600; letter-spacing: -.3px; }
.page-head .btn svg { width: 16px; height: 16px; }
.search-note { margin-top: -12px; }

/* Bölümler */
.sec-block { display: block; }
.band-text { position: relative; }
.band-cta { position: relative; }
.strip { background: var(--accent-soft); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 16px; font-size: 14px; }
.strip-link { color: var(--strip-ink, var(--ink)); text-decoration: none; font-weight: 500; }
.strip-link:hover { text-decoration: underline; color: var(--strip-ink, var(--ink)); }
.qa-static { list-style: none; margin: 0; padding: 0; }
.qa-static li { flex: 1 1 180px; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-right: 1px solid var(--line); min-width: 0; }
.qa-static li:last-child { border-right: 0; }
.qa-static svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }
.qa span.t, .qa-static span.t { display: block; font-weight: 500; font-size: 14px; line-height: 1.2; }
.qa span.d, .qa-static span.d { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; margin-top: 2px; }
.sec a, .sec button { font-size: 13px; }
.news { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.news li { display: flex; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.news li:last-child { border-bottom: 0; }
.news-meta { font-size: 12px; color: var(--muted); flex: 0 0 120px; }
.textblock { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.textblock h2 { font-size: 16px; font-weight: 600; }
.rich p { margin: 0 0 10px; } .rich ul, .rich ol { margin: 0 0 10px; padding-left: 20px; }
.faq { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 18px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq details > div { margin-top: 8px; color: var(--muted); }
.td-name { display: flex; align-items: center; gap: 12px; }
.empty, .errview { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.empty h2, .errview h2 { font-size: 16px; font-weight: 600; }
.empty p, .errview p { color: var(--muted); max-width: 640px; }
.empty-action, .errview-actions { margin-top: 6px; display: flex; gap: 8px; }
.errview-meta { margin: 10px 0 0; display: flex; gap: 24px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.errview-meta div { display: flex; gap: 6px; }
.errview-meta dt { font-weight: 500; } .errview-meta dd { margin: 0; font-variant-numeric: tabular-nums; word-break: break-all; }
.state-loading { padding: 40px 0; display: flex; justify-content: center; }
.track-inline { width: 160px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.fatal { min-height: 100vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: 44px 72px; max-width: 640px; background: #fff; }
.fatal h1 { font-size: 28px; font-weight: 600; }
.fatal p { color: var(--muted); }
.fatal .errview { border: 0; padding: 0; }

/* Ürün tablosu ve liste */
.sel { height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 12px; font: inherit; font-size: 13px; color: var(--ink); }
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.filterbar .input { height: 40px; max-width: 240px; }
.filterbar .sort { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.switch { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { width: 36px; height: 20px; border-radius: 10px; background: #C9CDD8; position: relative; display: inline-block; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked + .sw { background: var(--accent); }
.switch input:checked + .sw::after { left: 18px; }
.switch input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.pager div { display: flex; gap: 8px; }
.tbl th[scope="row"] { background: #FAFBFD; width: 240px; }
.row-off td { color: var(--muted); }
.editor-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.editor-actions { white-space: nowrap; }
.editor-actions .btn { margin-left: 6px; }
.editor-zone legend { font-weight: 600; margin-bottom: 8px; }

/* Sepet / ödeme */
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split-main { flex: 1 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.split-aside { flex: 0 1 300px; min-width: 260px; }
.sum { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.sum h3 { font-size: 15px; font-weight: 600; }
.sum .l { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sum .l b { color: var(--ink); font-weight: 500; }
.sum .total { border-top: 1px solid var(--line); padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.sum .amount { font-size: 18px; font-weight: 600; }
.oform { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.textarea { height: auto; min-height: 88px; padding: 10px 14px; }
.oform-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* Alt bilgi ve bildirim */
.page-footer { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--line); }
.footer-group { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.footer-title { font-weight: 500; }
.footer-link { color: inherit; text-decoration: none; }
.footer-link:hover { text-decoration: underline; color: var(--ink); }
.footer-end { margin-left: auto; }
.toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; }
.toast { background: var(--slate); color: #fff; padding: 12px 18px; border-radius: 8px; font-size: 13px; }

@media (max-width: 900px) {
  .auth { flex-direction: column; }
  .auth-left { width: auto; flex: 1 1 auto; padding: 28px 24px; gap: 28px; }
  .auth-right { padding: 32px 24px; min-height: 220px; }
  .fatal { padding: 28px 24px; }
}
@media (max-width: 720px) {
  .qa-static li { border-right: 0; border-bottom: 1px solid var(--line); }
  .news li { flex-direction: column; gap: 4px; }
  .userbtn { margin-left: 0; padding-left: 8px; }
}

/* Sunucu render yardimcilari */
.linkform { display: inline; margin: 0; }
.field-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.toast-region:empty { display: none; }
.toast[hidden] { display: none; }
.island-fallback { color: var(--muted); }
.row-link { color: inherit; text-decoration: none; }
.lang { display: inline-flex; gap: 10px; }
.lang a { color: inherit; text-decoration: none; }
.lang a[aria-current="true"] { font-weight: 600; color: var(--ink); }
.pager a.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.opt:has(input:checked) .radio { border: 5px solid var(--accent); }
.sum-actions { display: flex; flex-direction: column; gap: 10px; }

/* Sayfa geçişi: ince ilerleme çubuğu, ekran okuyucu duyurusu (nav.js) */
.fx-progress { position: fixed; left: 0; top: 0; width: 100%; height: 3px; z-index: 90; pointer-events: none; }
.fx-progress::before { content: ""; display: block; height: 100%; width: 0; background: var(--accent); }
.fx-progress[data-state="loading"]::before { width: 82%; transition: width 6s cubic-bezier(.1,.6,.2,1); }
.fx-progress[data-state="done"]::before { width: 100%; opacity: 0; transition: width .2s ease, opacity .3s ease .15s; }
.main #app-main:focus, #app-main h1:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .fx-progress::before { transition: none !important; } }

/* Geniş yerleşim: 12 sütun, bölümler geniş ekranda yan yana */
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: start; }
.col-12 { grid-column: span 12; } .col-9 { grid-column: span 9; } .col-8 { grid-column: span 8; } .col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; }
@media (max-width: 1100px) { .col-9, .col-8, .col-6, .col-4, .col-3 { grid-column: span 12; } }
.stack { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { font-size: 15px; font-weight: 600; }
.panel-head a { font-size: 13px; text-decoration: none; }
.panel-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.panel > .tbl-wrap { border: 0; border-radius: 0 0 10px 10px; }
.back-link { font-size: 13px; text-decoration: none; display: inline-flex; margin-bottom: 6px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Ana sayfa */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.dash-date { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.dash-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.4px; line-height: 1.2; }
.dash-head .help { margin-top: 4px; font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; text-decoration: none; color: var(--ink); border-right: 1px solid var(--line); min-width: 0; }
.kpi:last-child { border-right: 0; }
.kpi:hover { background: #FAFBFE; color: var(--ink); }
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-value { font-size: 26px; font-weight: 600; letter-spacing: -.5px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi-note { font-size: 12px; color: var(--muted); }
.kpi-note.warn { color: var(--red); }
@media (max-width: 720px) { .kpi { border-right: 0; border-bottom: 1px solid var(--line); } .kpi:last-child { border-bottom: 0; } }
.qa-title { font-size: 13px; font-weight: 500; color: var(--muted); margin: 0 0 8px; }

/* Durum rozetleri */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.4; background: var(--mist); color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: #E6F5EF; color: #157A55; } .pill-warn { background: #FBF1DC; color: #8E5F0C; } .pill-bad { background: #FBE9E9; color: #A93434; } .pill-info { background: var(--accent-soft); color: var(--ink); }

/* Süzme çipleri */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 8px; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; }
.chip:hover { border-color: var(--muted); color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-current="true"] .chip-count { color: #C9CDD8; }
.filterbar .search-field { flex: 1 1 260px; max-width: 360px; }

/* Sevkiyat zaman çizgisi */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; display: flex; gap: 14px; padding: 0 0 22px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 2px; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps .done::before { background: var(--green); }
.step-dot { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; border: 2px solid var(--line); background: #fff; position: relative; z-index: 1; }
.steps .done .step-dot { background: var(--green); border-color: var(--green); }
.steps .current .step-dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.step-name { display: block; font-weight: 500; font-size: 14px; line-height: 1.3; }
.step-date { display: block; font-size: 12px; color: var(--muted); }
.steps .upcoming .step-name { color: var(--muted); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; min-width: 0; }

/* Adet adımlayıcı ve sepet */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.stepper button { width: 32px; height: 34px; border: 0; background: transparent; font-size: 16px; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--mist); }
.stepper input { width: 52px; height: 34px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: inherit; font-size: 13px; color: var(--ink); appearance: textfield; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.sum .l.muted { color: var(--muted); }
.line-item { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.line-item span:first-child { min-width: 0; }
.line-item .sub { display: block; font-size: 12px; color: var(--muted); }

/* Cari hesap */
.aging { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.aging-cell { padding: 14px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.aging-cell:last-child { border-right: 0; }
.aging-label { font-size: 12px; color: var(--muted); }
.aging-amount { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.aging-cell.late .aging-amount.has { color: var(--red); }
@media (max-width: 900px) { .aging { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aging-cell { border-bottom: 1px solid var(--line); } }
.meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 8px; }
.meter > span { display: block; height: 100%; background: var(--accent); }
.tbl td.debit { color: var(--ink); } .tbl td.credit { color: var(--green); }
.demo-note { margin-top: 4px; font-size: 12px; color: var(--muted); max-width: 720px; }
