/* ===========================================================================
   Nane Finans — tema katmanı
   ===========================================================================

   office.css'ten SONRA yüklenir ve onu EZER. office.css'e dokunulmadı.

   NİYE KATMAN, NİYE YENİDEN YAZIM DEĞİL: office.css 25 KB, tek satıra
   sıkıştırılmış ve bordro, KDV2, mutabakat, belge arşivi, firma kaydı gibi
   bu turda tek tek açılamayan ekranları da besliyor. Baştan yazmak görünmeyen
   bir seçiciyi düşürme riski taşıyor. Katman yalnız EKLER ve EZER; geri almak
   office.html'deki tek <link> satırını silmektir.

   Kaldıraç: office.css renklerinin çoğunu altı değişken üzerinden okuyor
   (--o-ink, --o-muted, --o-brand, --o-line, --o-bg, --o-sidebar). Bunları
   marka tokenlarına bağlamak tüm ekranlara yayılıyor; gerisi hedefli ezme.

   SONRAKİ ADIM (bu turun kapsamı dışında): office.css'teki elle yazılmış hex
   değerleri temizlenip bu katmanla birleştirilir, dosya tek kaynağa iner.
   =========================================================================== */

/* --- MARKA FONTU ----------------------------------------------------------
   app.css ile AYNI yerel dosyalar. office.html app.css'i yüklemiyor ve bugüne
   dek system-ui kullanıyordu: pazarlama sayfaları ile uygulama farklı yazı
   tipindeydi. Google Fonts'a bağlanılmaz (çevrimdışı-öncelik kuralı). */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../vendor/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../vendor/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- TOKENLAR -------------------------------------------------------------
   Değerler app.css'teki tasarım sistemiyle birebir aynı. office.css'in kendi
   --o-* değişkenleri bunlara bağlanıyor, böylece tek bir yerden yönetiliyor. */
:root {
  /* İlkel — app.css ile aynı */
  --nf-ink:       #0a1512;
  --nf-ink-2:     #2c3a34;
  --nf-muted:     #5a6b63;
  --nf-muted-2:   #7c8a83;
  --nf-line:      #dde5e0;
  --nf-surface:   #ffffff;
  --nf-surface-2: #f4f7f4;
  --nf-surface-3: #eaf0ec;
  --nf-brand:     #14563c;
  --nf-brand-dark:#0f4230;
  --nf-brand-soft:#e6f2ea;
  --nf-brand-ink: #0b3325;
  --nf-accent:    #b9ff6a;
  --nf-ok:     #1a6534;  --nf-ok-bg:     #e7f6e9;  --nf-ok-line:   #c2e3c8;
  --nf-warn:   #7d5100;  --nf-warn-bg:   #fff6e3;  --nf-warn-line: #f0dcaf;
  --nf-danger: #a32717;  --nf-danger-bg: #fef0ed;

  --nf-sh-1: 0 1px 2px rgba(10,21,18,.06);
  --nf-sh-2: 0 2px 10px rgba(10,21,18,.07);
  --nf-sh-3: 0 12px 32px rgba(10,21,18,.10);

  --nf-font: 'Plus Jakarta Sans', ui-sans-serif, -apple-system, BlinkMacSystemFont,
             'Segoe UI', Roboto, sans-serif;

  --nf-dur-fast: 140ms;
  --nf-dur: 220ms;
  --nf-ease: cubic-bezier(.4,0,.2,1);

  /* office.css'in okuduğu değişkenler — artık marka tokenlarından geliyor. */
  --o-ink:     var(--nf-ink);
  --o-muted:   var(--nf-muted);
  --o-brand:   var(--nf-brand);
  --o-line:    var(--nf-line);
  --o-bg:      var(--nf-surface-2);
  --o-sidebar: var(--nf-brand-ink);
}

/* --- TİPOGRAFİ ------------------------------------------------------------
   Mevcut panelde 9-11px gövde metni vardı (.metric-card small = 9px,
   .office-action small = 9px, .office-badge = 9px). Modüler ölçek:
   12 · 13 · 14 · 16 · 20 · 28 · 36. En küçük boyut 11px'e (yalnız rozet ve
   alt gezinme etiketi), gövde metni 12px'e çıkarıldı. */
body { font-family: var(--nf-font); font-size: 14px; line-height: 1.55; }

h1 { font-size: 30px; letter-spacing: -1.2px; font-weight: 750; }
h2 { font-size: 17px; letter-spacing: -.3px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 650; }

.office-eyebrow        { font-size: 12px; letter-spacing: 1.4px; }
.office-intro p        { font-size: 14px; }
.metric-card span      { font-size: 13px; }
.metric-card small     { font-size: 12px; }
.office-action span    { font-size: 13px; }
.office-action small   { font-size: 12px; }
.card-head p           { font-size: 12px; }
.office-row p          { font-size: 12px; }
.office-row strong     { font-size: 15px; }
.office-row h3         { font-size: 14px; }
.text-btn              { font-size: 12px; }
.office-badge          { font-size: 11px; }
.office-pill           { font-size: 12px; }
.office-note           { font-size: 13px; }
.office-footer         { font-size: 12px; }
.mini-accounts span    { font-size: 12px; }
.mini-accounts strong  { font-size: 16px; }
.statement-table       { font-size: 13px; }
.statement-table th    { font-size: 11px; letter-spacing: .5px; }
.finance-register      { font-size: 13px; }
.finance-register th   { font-size: 11px; letter-spacing: .5px; }
.detail-metrics span   { font-size: 12px; }
.detail-metrics strong { font-size: 20px; }
.office-nav button     { font-size: 14px; }
.office-nav button small { font-size: 11px; }
.nav-label             { font-size: 10px; letter-spacing: 1.6px; }
.sidebar-business strong { font-size: 14px; }
.sidebar-business small  { font-size: 12px; }
.sidebar-tip, .sidebar-tip strong, .sidebar-tip p { font-size: 12px; }
.sidebar-bottom > a    { font-size: 12px; }
.top-breadcrumb        { font-size: 13px; }
.office-empty          { font-size: 13px; }
.office-btn            { font-size: 13px; }
.office-mobile-nav button { font-size: 11px; }
.flow-label            { font-size: 12px; }
.onboarding p          { font-size: 12px; }
.onboarding-steps span { font-size: 13px; }
.onboarding-steps small{ font-size: 11px; }

/* Finansal rakamlar: sabit genişlikli basamak, sütunlar hizalanır. */
.metric-card strong,
.office-row strong,
.detail-metrics strong,
.mini-accounts strong,
.statement-table td,
.finance-register td,
.office-amount-in,
.office-amount-out,
.flow-label {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* --- İKONLAR --------------------------------------------------------------
   office-icons.js, glifleri (▦ ♙ ▤ ⇄ ▥ ⊞ ⚙) aynı <span> içine yazdığı SVG
   ile değiştirir. Span zaten office.css'te 18px genişlikte; burada SVG'yi
   ortalıyoruz. Glif kalırsa (JS yüklenmezse) görünüm bozulmaz. */
.office-nav button > span,
.office-mobile-nav button > span {
  display: inline-grid; place-items: center;
}
/* Yan menüdeki ikincil satırlar (.office-btn) sonradan eklendiği için ikon
   yerleri yoktu; office-icons.js bir <span> açıyor. Bu satırlar artık nav
   öğeleriyle aynı hizada: sola yaslı, aynı boşluk. */
.office-nav .office-btn {
  justify-content: flex-start; gap: 13px; text-align: left;
  border-color: transparent; background: none; color: #bdcfc4;
  padding: 11px 13px; min-height: 42px; font-weight: 550;
}
.office-nav .office-btn:hover:not(:disabled) { background: rgba(255,255,255,.06); color: #eaf3ee; }
.office-nav .office-btn > span[aria-hidden="true"] { display: inline-grid; place-items: center; width: 18px; }
.office-nav .office-btn > span[aria-hidden="true"] > svg {
  width: 20px; height: 20px; stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.office-nav button > span > svg,
.office-mobile-nav button > span > svg,
.office-action > b > svg,
.metric-card i > svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.office-mobile-nav button > span > svg { width: 22px; height: 22px; }
/* SVG geldiğinde glif yazı tipi ayarları gereksiz; satır yüksekliği sıfırlanır. */
.office-nav button > span:has(svg),
.office-mobile-nav button > span:has(svg) { font-size: 0; line-height: 0; }

/* --- YAN MENÜ ------------------------------------------------------------- */
.office-sidebar { padding-top: 26px; }
.office-nav button {
  transition: background var(--nf-dur-fast) var(--nf-ease),
              color var(--nf-dur-fast) var(--nf-ease);
}
.office-nav button[aria-current="page"] { box-shadow: inset 3px 0 var(--nf-accent); }
.nav-label { color: #7f9a8c; }

/* Abonelik kısayolu: "İŞLETMEM" bölümünde, adlandırılmış ve rozetli.
   Eskiden yan menünün dibinde, bölüm başlığı olmayan sıradan bir düğmeydi. */
.office-nav button .nav-badge {
  margin-left: auto; flex-shrink: 0;
  font-size: 10px; font-weight: 700; line-height: 1.4;
  padding: 2px 7px; border-radius: 999px;
  background: var(--nf-warn-bg); color: var(--nf-warn);
}

/* --- ÜST ÇUBUK ------------------------------------------------------------ */
.office-top { height: 64px; }
.office-pill { border-radius: 999px; background: var(--nf-ok-bg); border-color: var(--nf-ok-line); color: var(--nf-ok); }
.office-pill:before { background: var(--nf-ok); }
.icon-btn { transition: background var(--nf-dur-fast) var(--nf-ease); }
.icon-btn:hover { background: var(--nf-surface-2); }

/* --- KPI KARTLARI ---------------------------------------------------------
   Dördü de aynı ağırlıktaydı; ekranda hiyerarşi yoktu. Birinci kart birincil
   (koyu, gölgeli), diğerleri sakin. Hover'da ölçülü bir yükselti. */
.office-totals { gap: 16px; }
.metric-card {
  border-radius: 16px; padding: 20px;
  transition: box-shadow var(--nf-dur) var(--nf-ease), transform var(--nf-dur) var(--nf-ease);
}
.metric-card:hover { box-shadow: var(--nf-sh-2); transform: translateY(-1px); }
.metric-card:first-child {
  background: var(--nf-brand); border-color: var(--nf-brand);
  box-shadow: var(--nf-sh-2);
}
.metric-card:first-child span,
.metric-card:first-child small { color: #a9c7b7; }
.metric-card:first-child i { background: rgba(255,255,255,.14); color: var(--nf-accent); }
.metric-card strong { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -1.2px; font-weight: 700; }
.metric-card i { width: 30px; height: 30px; border-radius: 8px; background: var(--nf-brand-soft); color: var(--nf-brand); }
.overdue-metric i { background: var(--nf-warn-bg); color: var(--nf-warn); }
.overdue-metric strong { color: var(--nf-warn); }

/* --- HIZLI İŞLEMLER ------------------------------------------------------- */
.office-action {
  border-radius: 12px;
  transition: border-color var(--nf-dur-fast) var(--nf-ease), background var(--nf-dur-fast) var(--nf-ease);
}
.office-action:hover { border-color: var(--nf-brand); background: var(--nf-brand-soft); }
.office-action > b { width: 34px; height: 34px; border-radius: 9px; background: var(--nf-surface-3); color: var(--nf-brand); }

/* --- KARTLAR VE TABLOLAR -------------------------------------------------- */
.office-card { border-radius: 16px; }
.statement-table th, .finance-register th {
  background: var(--nf-surface-2); color: var(--nf-muted);
  text-transform: uppercase; font-weight: 650;
}
.statement-table tbody tr, .finance-register tbody tr {
  transition: background var(--nf-dur-fast) var(--nf-ease);
}
.statement-table tbody tr:hover, .finance-register tbody tr:hover { background: var(--nf-surface-2); }
.office-amount-in  { color: var(--nf-ok); font-weight: 700; }
.office-amount-out { color: var(--nf-danger); font-weight: 700; }
.office-badge         { border-radius: 6px; background: var(--nf-surface-3); color: var(--nf-ink-2); }
.office-badge.warning { background: var(--nf-warn-bg); color: var(--nf-warn); }
.office-badge.danger  { background: var(--nf-danger-bg); color: var(--nf-danger); }

/* --- DÜĞMELER ------------------------------------------------------------- */
.office-btn {
  border-radius: 8px; font-weight: 650;
  transition: background var(--nf-dur-fast) var(--nf-ease),
              border-color var(--nf-dur-fast) var(--nf-ease),
              transform var(--nf-dur-fast) var(--nf-ease);
}
.office-btn:hover:not(:disabled) { background: var(--nf-surface-2); }
.office-btn:active:not(:disabled) { transform: translateY(1px); }
.office-btn.primary { background: var(--nf-brand); border-color: var(--nf-brand); }
.office-btn.primary:hover:not(:disabled) { background: var(--nf-brand-dark); border-color: var(--nf-brand-dark); }
.text-btn { font-weight: 650; }
.text-btn:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #7fb98f; outline-offset: 2px; }

/* --- NAKİT AKIŞI GRAFİĞİ --------------------------------------------------
   office-chart.js tarafından doldurulur. Eski iki CSS ilerleme çubuğu
   (.flow-line) korunuyor: grafik çizilemezse ekran boş kalmasın. */
.nf-cashflow { margin: 4px 0 2px; }
.nf-cashflow svg { width: 100%; height: 180px; display: block; }
.nf-cashflow .grid { stroke: var(--nf-line); stroke-width: 1; }
.nf-cashflow .axis { fill: var(--nf-muted-2); font-size: 11px; font-family: var(--nf-font); }
.nf-cashflow .bar-in  { fill: var(--nf-brand); }
.nf-cashflow .bar-out { fill: #c9b78f; }
.nf-cashflow g { transition: opacity var(--nf-dur-fast) var(--nf-ease); }
.nf-cashflow g:hover { opacity: .78; }
.nf-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--nf-muted); }
.nf-legend span { display: inline-flex; align-items: center; gap: 8px; }
.nf-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.nf-legend .in  { background: var(--nf-brand); }
.nf-legend .out { background: #c9b78f; }

/* --- MOBİL ---------------------------------------------------------------- */
@media (max-width: 800px) {
  h1 { font-size: 26px; }
  .office-mobile-nav button[aria-current="page"] { background: var(--nf-brand-soft); color: var(--nf-brand); }
  .metric-card strong { font-size: 26px; }
  .nf-cashflow svg { height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .metric-card, .office-action, .office-btn, .office-nav button, .icon-btn,
  .statement-table tbody tr, .finance-register tbody tr, .nf-cashflow g {
    transition: none !important;
  }
  .metric-card:hover { transform: none; }
}

/* ===========================================================================
   AŞAMA 2 — tüm Nane Finans modülleri
   ===========================================================================
   Aynı kural: yalnız EKLER ve EZER. office.css'e dokunulmadı; sınıf adları
   ve DOM yapısı aynı kaldığı için office.js ve modüllerin render mantığı
   değişmedi.
   =========================================================================== */

/* --- FİLTRE ÇUBUĞU VE ARAMA ----------------------------------------------- */
.filter-bar { gap: 10px; margin-bottom: 16px; }
.office-search,
.filter-bar select,
.filter-bar input[type="date"],
.filter-bar input[type="month"],
.office-detail-filters input,
.office-detail-filters select {
  border-radius: 10px; border-color: var(--nf-line);
  background: var(--nf-surface); color: var(--nf-ink);
  transition: border-color var(--nf-dur-fast) var(--nf-ease),
              box-shadow var(--nf-dur-fast) var(--nf-ease);
}
.office-search:hover, .filter-bar select:hover { border-color: #c4d0c9; }
.office-search:focus, .filter-bar select:focus,
.office-detail-filters input:focus, .office-detail-filters select:focus {
  border-color: var(--nf-brand); box-shadow: 0 0 0 3px var(--nf-brand-soft); outline: none;
}
/* Aramaya büyüteç: ikon office-ux.js tarafından eklenir. */
.office-search { padding-left: 38px; }
.nf-search-wrap { position: relative; display: flex; flex: 1; min-width: 0; }
.nf-search-wrap > svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; pointer-events: none;
  stroke: var(--nf-muted-2); fill: none; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.office-detail-filters { gap: 12px; }
.office-detail-filters label { font-weight: 600; color: var(--nf-muted); }

.finance-filter-details {
  border-radius: 12px; border-color: var(--nf-line); background: var(--nf-surface);
}
.finance-filter-details > summary { font-weight: 650; }
.finance-list-tabs [aria-pressed="true"] { background: var(--nf-brand); border-color: var(--nf-brand); }
.finance-list-summary { background: var(--nf-brand-soft); color: var(--nf-brand-ink); border-radius: 12px; }

/* --- KAYIT LİSTELERİ ------------------------------------------------------ */
.record-list { padding: 4px 0; }
.office-row {
  padding: 14px 8px; border-radius: 10px; border-bottom-color: var(--nf-surface-3);
  transition: background var(--nf-dur-fast) var(--nf-ease);
}
.office-row:hover { background: var(--nf-surface-2); }

/* --- TABLOLAR ------------------------------------------------------------- */
.statement-table-wrap, .finance-register-wrap {
  border: 1px solid var(--nf-line); border-radius: 12px; overflow: auto;
}
.statement-table th, .finance-register th {
  position: sticky; top: 0; z-index: 1;
  border-bottom: 1px solid var(--nf-line);
}
.statement-table td, .finance-register td { border-bottom-color: var(--nf-surface-3); }
.finance-register-pager { border-top: 1px solid var(--nf-line); background: var(--nf-surface-2); }

/* --- MODÜL KARTLARI ------------------------------------------------------- */
.module-card { border-radius: 16px; }
.module-row {
  border-radius: 10px; padding: 12px;
  transition: background var(--nf-dur-fast) var(--nf-ease);
}
.module-row:hover { background: var(--nf-surface-2); }
.module-disclaimer {
  border: 1px solid var(--nf-line); border-radius: 10px; padding: 12px;
  background: var(--nf-surface-2);
}
.module-disclaimer summary { font-weight: 650; cursor: pointer; }
.module-balance { font-variant-numeric: tabular-nums; }
.module-product-link {
  display: flex; align-items: center; gap: 10px;
  border-radius: 8px; padding: 10px 13px; color: #bdcfc4;
  transition: background var(--nf-dur-fast) var(--nf-ease);
}
.module-product-link:hover { background: rgba(255,255,255,.06); color: #eaf3ee; }

/* --- FORMLAR VE DİYALOGLAR ------------------------------------------------ */
dialog { border-radius: 18px; box-shadow: var(--nf-sh-3); }
dialog::backdrop { background: rgba(10,34,25,.5); backdrop-filter: blur(4px); }
.office-dialog-head { border-bottom: 1px solid var(--nf-line); padding-bottom: 16px; }
.office-dialog-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -.4px; }
.office-close { background: var(--nf-surface-2); transition: background var(--nf-dur-fast) var(--nf-ease); }
.office-close:hover { background: var(--nf-surface-3); }
dialog label { font-size: 13px; font-weight: 650; color: var(--nf-ink-2); }
dialog input, dialog select, .company-step textarea {
  border-radius: 10px; border-color: var(--nf-line);
  transition: border-color var(--nf-dur-fast) var(--nf-ease),
              box-shadow var(--nf-dur-fast) var(--nf-ease);
}
dialog input:focus, dialog select:focus, .company-step textarea:focus {
  border-color: var(--nf-brand); box-shadow: 0 0 0 3px var(--nf-brand-soft); outline: none;
}
dialog input:invalid:not(:placeholder-shown) { border-color: #e0b4ab; }
.form-hint {
  background: var(--nf-brand-soft); border-color: var(--nf-ok-line);
  color: var(--nf-brand-ink); border-radius: 10px; font-size: 13px;
}
/* Hata: yalnız renk değil, ikon ve çerçeve de taşır. */
.office-error:not(:empty) {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--nf-danger-bg); border: 1px solid #f0c5bc;
  color: var(--nf-danger); border-radius: 10px; padding: 12px 14px;
  font-size: 13px; font-weight: 600;
}
.office-error:not(:empty)::before { content: '!'; font-weight: 800; flex: 0 0 auto; }
.office-dropzone {
  border: 2px dashed var(--nf-line-2, #c4d0c9); border-radius: 12px;
  background: var(--nf-surface-2); padding: 16px;
  transition: border-color var(--nf-dur-fast) var(--nf-ease), background var(--nf-dur-fast) var(--nf-ease);
}
.office-dropzone:hover { border-color: var(--nf-brand); background: var(--nf-brand-soft); }
.quick-grid .office-btn { border-radius: 12px; flex-direction: column; gap: 4px; }

/* --- FİRMA KAYIT ADIMLARI ------------------------------------------------- */
.company-progress span { border-radius: 10px; font-size: 13px; }
.company-progress [aria-current="step"] { background: var(--nf-brand); }
.company-step legend { font-size: 20px; font-weight: 750; letter-spacing: -.5px; }
.company-optional { border-radius: 10px; border-color: var(--nf-line); }

/* --- BOŞ DURUM ------------------------------------------------------------ */
.office-empty { padding: 44px 20px; color: var(--nf-muted); }
.office-empty strong { color: var(--nf-ink-2); font-size: 15px; margin-bottom: 8px; }

/* --- YÜKLENİYOR -----------------------------------------------------------
   Modüller yüklenirken view içine tek bir .office-note yazıyor. Onu kayan
   ışıltılı bir yükleme bloğuna çeviriyoruz; ek JS gerekmiyor. */
.office-view > .office-note:only-child {
  display: block; border-radius: 12px; padding: 22px;
  background: linear-gradient(90deg, var(--nf-surface-2) 25%, var(--nf-surface-3) 37%, var(--nf-surface-2) 63%);
  background-size: 400% 100%;
  animation: nf-shimmer 1.4s ease-in-out infinite;
  color: var(--nf-muted);
}
@keyframes nf-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Yeniden kullanılabilir iskelet satırı. */
.nf-skeleton {
  border-radius: 8px; height: 14px;
  background: linear-gradient(90deg, var(--nf-surface-2) 25%, var(--nf-surface-3) 37%, var(--nf-surface-2) 63%);
  background-size: 400% 100%; animation: nf-shimmer 1.4s ease-in-out infinite;
}

/* --- TOAST BİLDİRİMİ ------------------------------------------------------
   #officeStatus zaten role="status" aria-live="polite" taşıyor ve office.js
   ile modüller mesajlarını oraya yazıyor. Yeni bir bildirim altyapısı
   kurmak yerine o kanalı görünür bir toast'a çeviriyoruz: mesaj akışı,
   erişilebilirlik ve çağrı noktaları aynı kalıyor. */
.office-status:not(:empty) {
  position: fixed; z-index: 60;
  right: 24px; bottom: 24px; max-width: min(380px, calc(100vw - 48px));
  margin: 0; padding: 14px 18px;
  background: var(--nf-brand-ink); color: #eaf3ee;
  border-radius: 12px; box-shadow: var(--nf-sh-3);
  font-size: 13px; font-weight: 600; line-height: 1.5;
  animation: nf-toast-in 220ms var(--nf-ease);
}
.office-status[data-state="offline"]:not(:empty),
.office-status[data-state="conflict"]:not(:empty) {
  background: #7a4a1c; color: #fff3e2;
}
.office-status[data-state="saved"]:not(:empty) { background: #14563c; }
@keyframes nf-toast-in { from { opacity: 0; transform: translateY(8px); } }

/* --- ONBOARDING ----------------------------------------------------------- */
.onboarding { border-radius: 16px; background: var(--nf-surface); }
.onboarding-steps button {
  border-radius: 10px; transition: background var(--nf-dur-fast) var(--nf-ease);
}
.onboarding-steps button:hover { background: var(--nf-surface-2); }
.onboarding-steps b { border-color: var(--nf-line); color: var(--nf-muted); }
.onboarding-steps button.done b { background: var(--nf-brand-soft); color: var(--nf-brand); border-color: var(--nf-brand-soft); }

/* --- TABLET --------------------------------------------------------------- */
@media (max-width: 1150px) and (min-width: 801px) {
  .office-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-action small { display: block; }
}

/* --- MOBİL ---------------------------------------------------------------- */
@media (max-width: 800px) {
  .office-status:not(:empty) {
    right: 12px; left: 12px; bottom: calc(76px + env(safe-area-inset-bottom));
    max-width: none;
  }
  .filter-bar { flex-direction: column; }
  .filter-bar > * { width: 100%; }
  .nf-search-wrap { width: 100%; }
  .statement-table-wrap, .finance-register-wrap { border: 0; border-radius: 0; }
  /* office.css tabloları mobilde karta çeviriyor; kart görünümünü düzenliyoruz. */
  .statement-table tr, .finance-register tr {
    border-radius: 12px; border-color: var(--nf-line); background: var(--nf-surface);
    padding: 14px; box-shadow: var(--nf-sh-1);
  }
  .statement-table td::before, .finance-register td:before {
    font-size: 11px; color: var(--nf-muted-2); font-weight: 650;
    text-transform: uppercase; letter-spacing: .4px;
  }
  .office-row { padding: 14px 4px; }
  dialog { border-radius: 18px 18px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .office-view > .office-note:only-child, .nf-skeleton { animation: none; }
  .office-status:not(:empty) { animation: none; }
}

/* --- PAKETİM VE ÖDEME -----------------------------------------------------
   İçeriği office-cloud.js üretiyor ve backend'in gerçekten desteklediği
   alanları gösteriyor: aktif paket, durum, deneme/ödeme bitişi, otomatik
   yenileme (kapalı), dönem sonu iptali ve geri alma, satın alma adımları.
   Ödeme geçmişi bilerek "yok" diyor — sağlayıcı bağlı değil. Burada yalnız
   sunum düzenleniyor; hiçbir ödeme yeteneği ima edilmiyor. */
.billing-dialog { padding: 24px 26px 26px; }
.billing-dialog h2 { font-size: 21px; font-weight: 750; letter-spacing: -.5px; }
.billing-dialog > p { color: var(--nf-muted); font-size: 13px; margin: 6px 0 0; }
.billing-dialog > strong {
  display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 4px;
  background: var(--nf-brand-soft); color: var(--nf-brand-ink);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700;
}
.billing-dialog h3 {
  font-size: 15px; font-weight: 700; margin: 24px 0 10px;
  padding-top: 18px; border-top: 1px solid var(--nf-line);
}
.billing-plan {
  margin: 12px 0; padding: 18px; border-radius: 14px;
  border: 1px solid var(--nf-line); background: var(--nf-surface-2);
  display: grid; gap: 6px;
}
.billing-plan h4 { font-size: 16px; font-weight: 700; margin: 0; }
.billing-plan p { margin: 0; font-size: 13px; color: var(--nf-muted); }
.billing-plan strong {
  justify-self: start; background: var(--nf-warn-bg); color: var(--nf-warn);
  border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 700;
}
.billing-plan .office-btn { justify-self: start; margin-top: 8px; }
.billing-dialog > a { display: inline-block; margin-top: 10px; font-weight: 650; color: var(--nf-brand); }
.billing-dialog > a:hover { text-decoration: underline; }
@media (max-width: 800px) {
  .billing-dialog { padding: 20px; }
  .billing-plan .office-btn { justify-self: stretch; width: 100%; }
}
