/* ============================================================================
   Terkin Makina Yönetim Sistemi — genel stil dosyası (tasarım sistemi)

   Hedef görünüm: docs/tasarim-referans.jpg — açık (light) tema, lacivert yan menü,
   beyaz üst çubuk, gri sayfa zemini, beyaz kartlar. Tek tema vardır; cam (blur),
   parlama (glow) ve üzerine gelince yükselme (hover-lift) efektleri bilerek yoktur.

   Bölümler:
     1. Değişkenler (tokens)          8. Kartlar / paneller / KPI
     2. Sıfırlama ve temel öğeler     9. Tablolar / sekmeler / araç çubuğu
     3. Form alanları                10. İlerleme / adım çubuğu / listeler
     4. Düğmeler                     11. Modal / toast / bildirim
     5. Rozetler (pill / tag)        12. Kiosk (atölye) parçaları
     6. Kabuk: yan menü, üst çubuk   13. Eski modüllerin bileşenleri (görev, CRM, muhasebe…)
     7. Giriş ve sayfa başlığı       14. Duyarlı düzen / dokunma / yazdırma

   Modül stilleri ayrı dosyalardadır: /css/dashboard.css, workorders.css, production.css,
   planning.css, stock.css, costing.css, cari.css. Bu dosya yalnızca ortak sınıfları tanımlar.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. DEĞİŞKENLER
   --------------------------------------------------------------------------- */
:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Sözleşme §5 */
  --primary: #0D884F;
  --primary-d: #0A6E40;
  --primary-l: #12A15C;
  --navy: #18222E;
  --navy-2: #1B232E;
  --blue: #1C68B6;
  --orange: #F28A1E;
  --purple: #6F46C6;
  --teal: #0E9AA7;
  --bg: #EEF3F7;
  --panel: #FFFFFF;
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E5EAF0;
  --danger: #DC2626;
  --warning: #F59E0B;
  --success: #16A34A;
  --radius: 8px;

  /* Ek değişkenler */
  --primary-rgb: 13, 136, 79;
  --on-primary: #FFFFFF;
  --heading: #0F172A;
  --surface-2: #F6F8FB;        /* tablo başlığı, hafif vurgulu alanlar */
  --hover-bg: #F1F5F9;
  --line-strong: #CBD5E1;      /* form alanı kenarı */
  --focus-ring: 0 0 0 3px rgba(var(--primary-rgb), 0.22);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.14);
  --gradient: linear-gradient(90deg, var(--primary) 0%, var(--primary-l) 100%);
  --info: var(--blue);
  --radius-sm: 6px;
  --radius-lg: 10px;
  --sidebar-w: 260px;
  --topbar-h: 72px;

  /* Ton renkleri: bileşenler --tone / --tone-soft çiftini tüketir */
  --tone-green: #0D884F;      --tone-green-soft: #E3F4EB;
  --tone-blue: #1C68B6;       --tone-blue-soft: #E3EEF9;
  --tone-orange: #F28A1E;     --tone-orange-soft: #FDEEDC;
  --tone-red: #DC2626;        --tone-red-soft: #FBE4E4;
  --tone-purple: #6F46C6;     --tone-purple-soft: #ECE6F8;
  --tone-gray: #64748B;       --tone-gray-soft: #EDF1F5;
  --tone-teal: #0E9AA7;       --tone-teal-soft: #DFF3F5;
  --tone-navy: #18222E;       --tone-navy-soft: #E4E8ED;
  /* Yazı olarak kullanılan koyu ton: açık zemin üzerinde okunur kontrast (turuncu/gri/teal marka rengi metin için fazla açık) */
  --tone-orange-ink: #C2410C;  --tone-gray-ink: #475569;  --tone-teal-ink: #0B7F8A;  --amber-ink: #B45309;
  --track: #E2E8F0;            /* ilerleme çubuğu zemini */
  --line-hover: #B6C2D0;       /* düğme / alan kenarı: üzerine gelince */
  --tone: var(--tone-green);
  --tone-soft: var(--tone-green-soft);

  /* Eski kodun başvurduğu takma adlar (JS içi satır içi stiller) */
  --panel-solid: #FFFFFF;
  --panel-border: var(--line);
  --border: var(--line);
  --bg-alt: var(--surface-2);
  --sidebar: var(--navy);
  --sidebarink: rgba(255, 255, 255, 0.85);
  --accent: var(--primary);
}

/* Ton yardımcıları (.tone-*) dosyanın SONUNDA tanımlıdır: bileşenlerin kendi varsayılan
   --tone değerini (eşit özgüllükte) ezebilmeleri için kaynak sırasında sonra gelmeleri gerekir. */

/* ---------------------------------------------------------------------------
   2. SIFIRLAMA VE TEMEL ÖĞELER
   --------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { color: var(--heading); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C7D0DA; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #A9B5C2; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); background: var(--bg); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 16px 0; }

/* Klavye odağı her yerde görünür; form alanları kendi halkasını (box-shadow) kullanır */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.input:focus-visible, .nav-item:focus-visible { outline: none; }
.nav-item:focus-visible { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); }

/* Hata şeridi (index.html satır içi hata yakalayıcı oluşturur) */
.hata-seridi { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1300; display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 32px)); padding: 12px 14px 12px 16px; background: var(--navy); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 13.5px; line-height: 1.4; }
.hata-seridi[hidden] { display: none; }
[hidden] { display: none !important; }   /* display veren sınıflar (.btn vb.) hidden özniteliğini ezmesin */
.hata-seridi .hs-text { flex: 1; }
.hata-seridi .hs-close { flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; font-size: 15px; }
.hata-seridi .hs-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------------------------------------------------------------------------
   3. FORM ALANLARI
   --------------------------------------------------------------------------- */
.input {
  width: 100%; min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font); background: var(--panel); color: var(--ink); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: #94A3B8; }
.input:hover { border-color: var(--line-hover); }
.input:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }
.input:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.input[aria-invalid="true"], .input.invalid { border-color: var(--danger); }
textarea.input { resize: vertical; min-height: 88px; line-height: 1.45; }
select.input { cursor: pointer; padding-right: 32px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
select.input[multiple], select.input[size] { background-image: none; padding-right: 12px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }
.color-input { width: 56px; height: 40px; padding: 2px; cursor: pointer; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.field { display: block; margin-bottom: 14px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.field-row > .field { min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; }
.form-grid .field { margin-bottom: 0; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-all { grid-column: 1 / -1; }

/* Arama kutusu (components.searchBox) */
.search-box { position: relative; display: flex; align-items: center; min-width: 0; }
.search-box .sb-icon { position: absolute; left: 12px; display: inline-flex; color: var(--muted); pointer-events: none; }
.search-box .sb-icon svg { width: 16px; height: 16px; }
.search-box .input { padding-left: 36px; }
.search-box .input::-webkit-search-cancel-button { cursor: pointer; }

/* ---------------------------------------------------------------------------
   4. DÜĞMELER
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.2;
  cursor: pointer; font-family: var(--font); white-space: nowrap; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--line-hover); color: var(--ink); text-decoration: none; }
.btn:active { background: var(--hover-bg); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); color: var(--on-primary); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: #17559A; border-color: #17559A; color: #fff; }
.btn-orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-orange:hover { background: #D9760F; border-color: #D9760F; color: #fff; }
.btn-purple { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn-purple:hover { background: #5B37AB; border-color: #5B37AB; color: #fff; }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: #0F161E; border-color: #0F161E; color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #B91C1C; border-color: #B91C1C; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--hover-bg); border-color: transparent; color: var(--ink); }
.btn-approve { background: var(--success); border-color: var(--success); color: #fff; }
.btn-approve:hover { background: #15803D; border-color: #15803D; color: #fff; }
.btn-reject { background: var(--panel); border-color: var(--orange); color: var(--amber-ink); }
.btn-reject:hover { background: var(--tone-orange-soft); border-color: var(--orange); color: #92400E; }

.btn-block { width: 100%; }
.btn-sm { min-height: 32px; padding: 4px 12px; font-size: 13px; gap: 6px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-lg { min-height: 48px; padding: 10px 22px; font-size: 15px; }
.btn-xl { min-height: 56px; padding: 12px 28px; font-size: 17px; border-radius: var(--radius); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.mini-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 30px; padding: 4px 10px; font-size: 12.5px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--panel); cursor: pointer; color: var(--ink); font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.mini-btn:hover { background: var(--surface-2); border-color: var(--line-hover); text-decoration: none; color: var(--ink); }
.mini-btn.danger { color: var(--danger); border-color: #F3B4B4; }
.mini-btn.danger:hover { background: var(--tone-red-soft); }
.mini-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.icon-btn {
  border: 1px solid transparent; background: transparent; cursor: pointer; font-size: 18px; padding: 0;
  width: 40px; height: 40px; border-radius: var(--radius-sm); color: var(--ink); line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--hover-bg); }
.link-btn { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; padding: 0 4px; font-family: inherit; }
.link-btn:hover { color: var(--primary); }

/* Hızlı işlem düğmesi (panel sağ sütunu): ikon · etiket · ok */
.quick-actions { display: flex; flex-direction: column; gap: 10px; }
.quick-action {
  --tone: var(--primary);
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 14px 0 16px;
  border: 0; border-radius: var(--radius-sm); background: var(--tone); color: #fff;
  font-family: var(--font); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; text-decoration: none;
  transition: filter 0.15s;
}
.quick-action:hover { filter: brightness(0.93); color: #fff; text-decoration: none; }
.quick-action > .qa-icon, .quick-action > .qa-chevron { display: inline-flex; align-items: center; flex: 0 0 auto; }
.quick-action > .qa-icon svg { width: 20px; height: 20px; }
.quick-action > .qa-chevron svg { width: 18px; height: 18px; }
.quick-action > .qa-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-action > :nth-child(2):not(.qa-label) { flex: 1; }
.quick-action.qa-green { --tone: var(--primary); }
.quick-action.qa-blue { --tone: var(--blue); }
.quick-action.qa-orange { --tone: var(--orange); }
.quick-action.qa-purple { --tone: var(--purple); }
.quick-action.qa-navy { --tone: var(--navy); }

/* İkon + yazı etiketli düğmeler (ui.ikonluDugme) */
.ikonlu { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ikonlu .ikonlu-ikon { display: inline-flex; }
.ikonlu .ikonlu-ikon svg { width: 14px; height: 14px; }
.ikonlu.yalniz-ikon { padding-left: 7px; padding-right: 7px; }

/* Seçenek anahtarı (segmented) */
.secenek-anahtari { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--panel); }
.secenek-anahtari button { background: transparent; border: none; color: var(--muted); padding: 7px 14px; min-height: 36px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.secenek-anahtari button + button { border-left: 1px solid var(--line); }
.secenek-anahtari button:hover { background: var(--surface-2); color: var(--ink); }
.secenek-anahtari button.aktif { background: var(--tone-green-soft); color: var(--primary-d); }

/* ---------------------------------------------------------------------------
   5. ROZETLER — .pill (yeni) ve .tag (eski) aynı paleti kullanır
   --------------------------------------------------------------------------- */
.pill, .tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  background: var(--tone-soft); color: var(--tone); border: 1px solid transparent;
  --tone: var(--tone-gray); --tone-soft: var(--tone-gray-soft);
}
.pill svg, .tag svg { width: 13px; height: 13px; }
.pill-icon { display: inline-flex; align-items: center; }
.pill-green  { --tone: var(--tone-green);  --tone-soft: var(--tone-green-soft); }
.pill-blue   { --tone: var(--tone-blue);   --tone-soft: var(--tone-blue-soft); }
.pill-orange { --tone: var(--tone-orange-ink);            --tone-soft: var(--tone-orange-soft); }
.pill-red    { --tone: var(--tone-red);    --tone-soft: var(--tone-red-soft); }
.pill-purple { --tone: var(--tone-purple); --tone-soft: var(--tone-purple-soft); }
.pill-gray   { --tone: var(--tone-gray-ink);            --tone-soft: var(--tone-gray-soft); }
.pill-teal   { --tone: var(--tone-teal-ink);            --tone-soft: var(--tone-teal-soft); }
.pill-navy   { --tone: var(--tone-navy);   --tone-soft: var(--tone-navy-soft); }
.pill-lg { font-size: 14px; padding: 5px 14px; }
.pill-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }

/* Eski rozet sınıfları → aynı palet */
.tag-admin { --tone: var(--tone-navy); --tone-soft: var(--tone-navy-soft); }
.tag-user, .tag-status-lead, .tag-status-contacted { --tone: var(--tone-blue); --tone-soft: var(--tone-blue-soft); }
.tag-status-active, .tag-status-won { --tone: var(--tone-green); --tone-soft: var(--tone-green-soft); }
.tag-status-on_hold, .tag-status-pending, .tag-status-proposal, .prio-tag-medium { --tone: var(--tone-orange-ink); --tone-soft: var(--tone-orange-soft); }
.tag-status-negotiation { --tone: var(--tone-purple); --tone-soft: var(--tone-purple-soft); }
.tag-status-lost, .prio-tag-high { --tone: var(--tone-red); --tone-soft: var(--tone-red-soft); }
.tag-status-completed, .tag-status-todo, .prio-tag-low { --tone: var(--tone-gray-ink); --tone-soft: var(--tone-gray-soft); }

.score-pill { display: inline-block; min-width: 42px; text-align: center; padding: 2px 8px; border-radius: var(--radius-sm); font-weight: 700; font-size: 12px; }
.score-hi { background: var(--tone-green-soft); color: var(--primary-d); }
.score-mid { background: var(--tone-orange-soft); color: var(--tone-orange-ink); }
.score-lo { background: var(--tone-red-soft); color: var(--danger); }
.followup-badge { font-size: 11px; font-weight: 700; color: var(--tone-orange-ink); background: var(--tone-orange-soft); border-radius: var(--radius-sm); padding: 2px 8px; margin-left: 8px; white-space: nowrap; }
.followup-badge.over { color: var(--danger); background: var(--tone-red-soft); }
.chk-badge { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1px 7px; white-space: nowrap; }
.chk-badge.full { color: var(--primary-d); border-color: #BBE3CC; background: var(--tone-green-soft); }
.tab-count { display: inline-block; margin-left: 6px; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--tone-gray-soft); color: var(--muted); font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.tab.active .tab-count, .tab-btn.active .tab-count { background: var(--tone-green-soft); color: var(--primary-d); }
.area-pill { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--tone); }
.pdot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.pdot.on { background: var(--success); }
.pdot.off { background: var(--line-strong); }
.warn-text { color: var(--amber-ink); font-weight: 600; }
.danger-text, .tehlike { color: var(--danger); font-weight: 700; }
.success-text, .basari { color: var(--primary-d); font-weight: 700; }
.guclu { font-weight: 700; }

/* ---------------------------------------------------------------------------
   6. KABUK — yan menü, üst çubuk, içerik, alt bilgi
   --------------------------------------------------------------------------- */
.layout { display: flex; min-height: 100vh; }

/* Yan menü */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); z-index: 60;
  background: var(--navy); color: #fff; display: flex; flex-direction: column;
  transition: width 0.18s ease, transform 0.2s ease;
}
.sidebar-logo { flex: 0 0 auto; height: 92px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 12px 18px; overflow: hidden; cursor: pointer; }
.sidebar-logo img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.sidebar-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 10px 6px; display: flex; flex-direction: column; gap: 2px; }
/* Chromium/Electron: scrollbar-width tanımlıysa ::-webkit-scrollbar yok sayılır; ince çubuk yalnızca Firefox için */
@supports not selector(::-webkit-scrollbar) { .sidebar-nav { scrollbar-width: thin; } }
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border: 0; }
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px; border-radius: var(--radius-sm);
  color: #fff; font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap;
  position: relative; flex: 0 0 auto; transition: background 0.15s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--gradient); color: #fff; }
.nav-icon { width: 22px; height: 22px; flex: 0 0 22px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.nav-icon svg { width: 22px; height: 22px; stroke: currentColor; }
.nav-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-badge { flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; line-height: 20px; text-align: center; }
.nav-item.active .nav-badge { background: #fff; color: var(--primary-d); }
.nav-chevron { flex: 0 0 auto; display: inline-flex; opacity: 0.7; transition: transform 0.15s; }
.nav-chevron svg { width: 14px; height: 14px; }
.nav-group { display: flex; flex-direction: column; }
.nav-group-btn { width: 100%; border: 0; background: none; font-family: inherit; cursor: pointer; text-align: left; }
.nav-group.open > .nav-group-btn { background: rgba(255, 255, 255, 0.06); }
.nav-group.open .nav-chevron { transform: rotate(90deg); opacity: 1; }
.nav-sub { display: none; flex-direction: column; gap: 2px; padding: 4px 0 6px; }
.nav-group.open > .nav-sub { display: flex; }
.nav-sub-item {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px 0 44px; border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.78); font-size: 14px; text-decoration: none; white-space: nowrap; position: relative;
}
.nav-sub-item::before { content: ''; position: absolute; left: 20px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.nav-sub-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
.nav-sub-item.active { color: #fff; font-weight: 600; background: rgba(var(--primary-rgb), 0.28); }
.nav-sub-item.active::before { background: var(--primary-l); }
.sidebar-foot { flex: 0 0 auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sidebar-foot img { width: 160px; max-width: 100%; height: auto; }
.sidebar-tagline { font-size: 11px; line-height: 1.4; color: rgba(255, 255, 255, 0.62); letter-spacing: 0.2px; }

/* Daraltılmış yan menü (masaüstü): yalnızca ikonlar, 72px */
@media (min-width: 901px) {
  body.nav-collapsed { --sidebar-w: 72px; }
  body.nav-collapsed .sidebar-logo { padding: 12px 12px; }
  body.nav-collapsed .sidebar-logo img { width: 48px; height: 48px; object-fit: cover; object-position: left center; }
  body.nav-collapsed .sidebar-nav { padding: 10px 8px; }
  body.nav-collapsed .nav-item { justify-content: center; padding: 0; gap: 0; }
  body.nav-collapsed .nav-group.open > .nav-sub { display: none; }
  body.nav-collapsed .nav-label, body.nav-collapsed .nav-chevron, body.nav-collapsed .nav-sub, body.nav-collapsed .sidebar-tagline, body.nav-collapsed .sidebar-foot img { display: none; }
  body.nav-collapsed .nav-badge { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; font-size: 10px; }
  body.nav-collapsed .sidebar-foot { padding: 12px 8px calc(12px + env(safe-area-inset-bottom)); }
  body.nav-collapsed .nav-group.open > .nav-group-btn { background: rgba(255, 255, 255, 0.06); }
}

/* İçerik sütunu */
.main { flex: 1 1 auto; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; transition: margin-left 0.18s ease; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h); flex: 0 0 auto;
  display: flex; align-items: center; gap: 18px; padding: 0 24px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.nav-toggle { color: var(--ink); }
.topbar-slogan { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar-spacer { flex: 1 1 auto; }
.topbar-date { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.topbar-date .td-icon { display: inline-flex; color: var(--ink); }
.topbar-date .td-icon svg { width: 22px; height: 22px; }
.topbar-date .td-main { font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.topbar-date .td-sub { font-size: 12px; color: var(--muted); line-height: 1.2; }
.topbar-clock { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.topbar-clock svg { width: 22px; height: 22px; }

.bell { position: relative; }
.bell-badge { position: absolute; top: 4px; right: 4px; background: var(--danger); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: none; align-items: center; justify-content: center; padding: 0 4px; font-weight: 700; line-height: 16px; box-shadow: 0 0 0 2px var(--panel); }
.bell-badge.show, .bell-badge[data-count]:not([data-count="0"]) { display: inline-flex; }
.bell-icon { display: inline-flex; align-items: center; }
.bell-icon svg { width: 22px; height: 22px; }

.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; border: 1px solid transparent; background: none; cursor: pointer; padding: 4px 8px 4px 4px; min-height: 44px; border-radius: var(--radius-sm); color: var(--ink); font-family: inherit; text-align: left; }
.user-btn:hover { background: var(--hover-bg); }
.user-btn > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.user-name { font-weight: 600; font-size: 14px; color: var(--heading); white-space: nowrap; }
.user-role { font-size: 12px; color: var(--muted); white-space: nowrap; }
.user-chevron { display: inline-flex; color: var(--muted); }
.user-chevron svg { width: 18px; height: 18px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--tone-navy-soft); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: 0 0 auto; overflow: hidden; }
.avatar svg { width: 20px; height: 20px; }
.avatar-small { width: 26px; height: 26px; font-size: 12px; }
.dropdown { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 120; display: none; flex-direction: column; gap: 2px; }
.user-menu.open > .dropdown, .dropdown.open { display: flex; }
.dropdown-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dropdown-head b { display: block; font-size: 14px; color: var(--heading); }
.dropdown-head span { display: block; font-size: 12px; color: var(--muted); }
.dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; text-decoration: none; }
.dropdown-item:hover { background: var(--hover-bg); color: var(--ink); text-decoration: none; }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item svg { width: 18px; height: 18px; color: var(--muted); }
.dropdown-sep { height: 1px; background: var(--line); margin: 4px 0; }

.view { flex: 1 1 auto; padding: 24px; max-width: 1600px; width: 100%; margin: 0 auto; min-width: 0; }

.app-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; background: var(--bg); }
.app-footer .af-left { display: flex; align-items: center; gap: 10px; }
.app-footer .af-right { display: flex; align-items: center; gap: 14px; }
.app-footer .af-right img { height: 30px; width: auto; }
.app-footer .af-version { color: var(--muted); }

/* Ayarlar merkezi: 15 sekme tek satıra sığmaz, sarılır (kendi sayfası olan bölümlerde de üstte durur) */
.settings-tabs .tabbar { flex-wrap: wrap; overflow: visible; margin-bottom: 20px; }
.settings-tabs .tab { min-height: 42px; padding: 8px 12px; font-size: 13.5px; }
.settings-content > .panel { margin-bottom: 16px; }
.op-type-list { display: flex; flex-direction: column; gap: 6px; }
.op-type-row { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.op-type-key { font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workdays-row { gap: 4px 14px; }
.company-form .field-row > .field { flex: 1 1 200px; }

/* Atölye terminali (atolye.html) taslak başlığı */
.kiosk-wrap { max-width: 1100px; margin: 0 auto; padding: 12px 0; }
.kiosk-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.kiosk-head .kiosk-logo { height: 56px; width: auto; }
.kiosk-head-text { display: flex; flex-direction: column; gap: 2px; }
.kiosk-head-text b { font-size: 17px; color: var(--heading); }

/* Telefon / tablet çekmecesi perdesi */
.nav-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(15, 23, 42, 0.45); display: none; }

/* Kiosk (atölye ekranı): kabuk yok, tam ekran içerik */
body.kiosk .sidebar, body.kiosk .topbar, body.kiosk .app-footer, body.kiosk .nav-scrim { display: none !important; }
body.kiosk .main { margin-left: 0; min-height: 100vh; }
body.kiosk .view, body.kiosk #view { max-width: none; min-height: 100vh; padding: 16px; }
body.kiosk { overscroll-behavior: none; user-select: none; -webkit-user-select: none; }
body.kiosk .input, body.kiosk textarea { user-select: text; -webkit-user-select: text; }

/* ---------------------------------------------------------------------------
   7. GİRİŞ EKRANI VE SAYFA BAŞLIĞI
   --------------------------------------------------------------------------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: 20px; }
.login-card { background: var(--panel); padding: 36px 32px 28px; border-radius: var(--radius-lg); width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.login-logo { display: flex; justify-content: center; margin-bottom: 14px; color: var(--primary); }
.login-logo svg { width: 44px; height: 44px; }
.login-logo img, img.login-logo { display: block; height: 68px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 14px; }
.login-card h1 { margin: 6px 0 2px; text-align: center; font-size: 20px; color: var(--heading); font-weight: 700; letter-spacing: -0.3px; }
.login-sub { text-align: center; color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.login-card .btn { margin-top: 6px; }
.login-error { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 6px; }
.login-foot { margin-top: 20px; text-align: center; font-size: 12px; color: var(--muted); }
.login-form .btn-block { margin-top: 10px; }

.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head > h2 + :last-child, .page-head > .ph-actions { margin-left: auto; }   /* eski biçim (h2 + eylem) ve yeni .ph-actions sağa yaslanır; başlık bloğu simgenin yanında kalır */
.page-head h1, .page-head h2 { margin: 0; font-size: 24px; font-weight: 700; color: var(--heading); letter-spacing: -0.4px; line-height: 1.2; }
.page-head > div { min-width: 0; }
.ph-icon { --tone: var(--primary); --tone-soft: var(--tone-green-soft); width: 52px; height: 52px; border-radius: var(--radius-lg); background: var(--tone-soft); color: var(--tone); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ph-icon svg { width: 28px; height: 28px; }
.ph-title { margin: 0; font-size: 24px; font-weight: 700; color: var(--heading); letter-spacing: -0.4px; line-height: 1.2; }
.ph-sub { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-desc { margin-top: -8px; margin-bottom: 18px; color: var(--muted); }
.section-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--heading); }
.sub-title { font-size: 12px; font-weight: 700; color: var(--muted); margin: 16px 0 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.loading { padding: 20px; color: var(--muted); }

/* Boş durum (components.emptyState) */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 20px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state .es-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; }
.empty-state .es-icon svg { width: 26px; height: 26px; }
.empty-state .es-text { font-size: 14px; max-width: 420px; }
.empty-state .es-action { margin-top: 4px; }
.empty-cell { text-align: center; color: var(--muted); padding: 28px 14px !important; }

/* Araç çubuğu (filtre satırı) */
.toolbar, .filter-bar, .rep-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input, .filter-bar .input, .rep-toolbar .input { width: auto; flex: 0 0 auto; min-width: 150px; }
.toolbar input[type="search"], .filter-bar input[type="search"] { flex: 1 1 220px; min-width: 200px; max-width: 360px; }
.toolbar .search-box, .filter-bar .search-box { flex: 1 1 240px; max-width: 380px; }
.toolbar .search-box .input { width: 100%; }
.toolbar-spacer { flex: 1 1 auto; }
.chkinline { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; user-select: none; min-height: 40px; }
.stat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------------------------------------------------------------------------
   8. KARTLAR, PANELLER, KPI
   --------------------------------------------------------------------------- */
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
.card-head h3, .card-head h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--heading); display: flex; align-items: center; gap: 8px; }
.card-head h3 svg { width: 18px; height: 18px; color: var(--muted); }
.card-link { font-size: 13px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.card-link:hover { color: #17559A; }
.card-body { padding: 0 20px 18px; min-width: 0; }
.card-body:first-child { padding-top: 18px; }
.card-body.flush { padding: 0; }
.card-body.flush .data-table { border: 0; border-radius: 0; box-shadow: none; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.panel { padding: 20px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--heading); }
.panel-head .btn-row { flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.info-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.info-key { color: var(--muted); font-size: 13px; font-weight: 500; }
.project-desc { white-space: pre-wrap; margin: 0 0 16px; color: var(--ink); line-height: 1.6; }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.dashboard-layout { display: flex; gap: 24px; align-items: flex-start; }
.dashboard-main { flex: 3; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* KPI kartı: ikon üstte, etiket, büyük sayı, küçük eğilim satırı */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.kpi-icon { width: 44px; height: 44px; border-radius: var(--radius-lg); background: var(--tone); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-bottom: 6px; font-size: 20px; line-height: 1; }
.kpi-icon svg { width: 22px; height: 22px; }
.kpi-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kpi-label { font-size: 14px; color: var(--muted); font-weight: 500; }
.kpi-value { font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--heading); letter-spacing: -0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.kpi-sub { font-size: 12px; color: var(--muted); }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi-delta svg { width: 14px; height: 14px; }
.kpi-delta.up { color: var(--success); }
.kpi-delta.down { color: var(--danger); }
.kpi-card.kpi-red .kpi-icon { --tone: var(--danger); }
.kpi-card.kpi-green .kpi-icon { --tone: var(--primary); }
.kpi-card.kpi-amber .kpi-icon { --tone: var(--orange); }
.kpi-card.kpi-blue .kpi-icon { --tone: var(--blue); }
.kpi-card.kpi-red .kpi-value { color: var(--danger); }
.kpi-card.kpi-amber .kpi-value { color: var(--tone-orange-ink); }
.kpi-card.kpi-green .kpi-value { color: var(--primary-d); }
.para-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.para-karti .kpi-label { margin-bottom: 4px; }
.para-karti .kpi-eur { font-size: 14px; font-weight: 700; color: var(--blue); margin-top: 2px; white-space: nowrap; }
.para-karti .kpi-sub { white-space: normal; }

/* Grafikler (components.barChart / donutChart) */
.chart { width: 100%; min-width: 0; }
.chart svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.chart-bar .bar { fill: var(--primary); }
.chart-bar .bar.last { fill: var(--primary-d); }
.chart-bar .grid-line { stroke: var(--line); stroke-width: 1; }
.chart-bar .axis-text, .chart-donut .center-label { fill: var(--muted); font-size: 12px; }
.chart-donut { width: auto; }
.chart-donut .center-value { fill: var(--heading); font-size: 30px; font-weight: 700; }
.donut-wrap { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.legend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 180px; }
.legend-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.legend-row:first-child { border-top: 0; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tone); flex: 0 0 auto; }
.legend-label { flex: 1; color: var(--ink); }
.legend-value { font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------------
   9. TABLOLAR, SEKMELER
   --------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.table-wrap .data-table, .card .data-table, .panel .data-table, .modal .data-table { border: 0; border-radius: 0; box-shadow: none; }
.data-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-wrap .data-table { overflow: visible; }   /* kaydırma kabı .table-wrap; sabitlenen (sticky) sütunlar çalışsın */
.data-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--surface-2); }
.data-table th.num, .data-table td.num, .muh-tablo td.sayi, .muh-tablo th.sayi { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table tr.clickable { cursor: pointer; }
.data-table tbody tr.clickable:hover td { background: var(--hover-bg); }
.data-table tr.row-done td { opacity: 0.55; }
.data-table tr.expand-row td { background: var(--surface-2); }
.data-table.sortable th.th-sort { cursor: pointer; user-select: none; }
.data-table.sortable th.th-sort:hover { color: var(--ink); }
.data-table.sortable th.active { color: var(--primary-d); }
.data-table tfoot td, .muh-tablo tfoot td { font-weight: 700; color: var(--heading); border-top: 1px solid var(--line); background: var(--surface-2); }
.data-table .pill, .data-table .tag { vertical-align: middle; }
.cell-strong { font-weight: 600; color: var(--heading); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions .mini-btn { white-space: nowrap; }
.muh-tablo .satir-ad { font-weight: 600; color: var(--heading); }
.muh-tablo tr.satir-gecikti td { background: #FEF2F2; }
.muh-tablo tr.satir-bugun td { background: #FFF7ED; }
.muh-tablo tr.satir-buay td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.muh-tablo tr.satir-plan td { color: var(--muted); }
.durum-hucre, .islem-hucre { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Sekmeler: .tabbar/.tab (yeni) ve .tabs/.tab-btn (eski) aynı görünür */
.tabbar, .tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabbar::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.tab, .tab-btn, button.tab-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px; margin-bottom: -1px;
  border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted);
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover, .tab-btn:hover { color: var(--ink); text-decoration: none; }
.tab.active, .tab-btn.active { color: var(--primary-d); border-bottom-color: var(--primary); }
.tab svg, .tab-btn svg { width: 16px; height: 16px; }
.tab-icon { display: inline-flex; align-items: center; }
@media (min-width: 901px) { .muh-sekmeler { flex-wrap: wrap; } }
.cm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 0; margin-bottom: 12px; overflow-x: auto; }
.cm-tab-btn { background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 600; padding: 10px 14px; min-height: 44px; cursor: pointer; white-space: nowrap; }
.cm-tab-btn:hover { color: var(--ink); }
.cm-tab-btn.active { color: var(--primary-d); border-bottom-color: var(--primary); }
.cm-content { flex: 1; overflow-y: auto; }
.cm-pane { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.activity-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.activity-tab-btn { padding: 6px 12px; min-height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 600; cursor: pointer; background: var(--panel); color: var(--muted); font-family: inherit; }
.activity-tab-btn:hover { background: var(--surface-2); color: var(--ink); }
.activity-tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------------------------------------------------------------------------
   10. İLERLEME, ADIM ÇUBUĞU, LİSTELER
   --------------------------------------------------------------------------- */
.progress { height: 10px; background: var(--track); border-radius: 999px; overflow: hidden; min-width: 60px; }
.progress-fill { height: 100%; width: 0; background: var(--tone, var(--primary)); border-radius: 999px; transition: width 0.3s ease; }
.progress-fill.tone-green { background: var(--tone-green); }
.progress-fill.tone-blue { background: var(--tone-blue); }
.progress-fill.tone-orange { background: var(--tone-orange); }
.progress-fill.tone-red { background: var(--tone-red); }
.progress-fill.tone-purple { background: var(--tone-purple); }
.progress-fill.tone-gray { background: var(--tone-gray); }
.progress-fill.tone-teal { background: var(--tone-teal); }
.progress-fill.tone-navy { background: var(--tone-navy); }
.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-row .progress { flex: 1; }
.progress-row .progress-label { font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.progress-lg { height: 16px; }

/* Eski ince çubuklar */
.tprog { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.tprog-bar { flex: 1; height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; min-width: 60px; }
.tprog-fill { height: 100%; background: var(--primary); border-radius: 4px; }
.tprog-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.workload-bar { flex: 1; height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; min-width: 40px; }
.workload-fill { height: 100%; background: var(--gradient); border-radius: 4px; }
.mini-bar { height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; min-width: 80px; }
.mini-bar-dolu { height: 100%; border-radius: 4px; background: var(--primary); transition: width 0.4s ease; }
.mini-bar-dolu.gelir { background: var(--success); }
.mini-bar-dolu.gider { background: var(--danger); }
.rate-bar { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.rate-bar .bar { flex: 1; height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.rate-bar .bar > i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.rate-bar span { font-size: 12px; color: var(--muted); min-width: 34px; text-align: right; }
.upl-progress { height: 6px; margin-top: 12px; background: var(--track); border-radius: 3px; overflow: hidden; }
.upl-progress > div { height: 100%; width: 0; background: var(--primary); transition: width 0.2s; }

/* Adım çubuğu: operasyon sırası */
.stepper { display: flex; align-items: flex-start; overflow-x: auto; padding: 6px 0; gap: 0; }
.step { --tone: var(--tone-gray); position: relative; flex: 1 1 0; min-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; color: var(--muted); padding: 0 4px; }
.step::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line-strong); z-index: 0; }
.step:first-child::before { display: none; }
.step-bubble { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--panel); color: var(--muted); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.step-bubble svg { width: 16px; height: 16px; }
.step-label { font-weight: 600; color: var(--ink); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-meta { font-size: 11px; color: var(--muted); }
.step.done { --tone: var(--tone-green); }
.step.done::before { background: var(--tone-green); }
.step.done .step-bubble { background: var(--tone-green); border-color: var(--tone-green); color: #fff; }
.step.running { --tone: var(--tone-blue); }
.step.running::before { background: var(--tone-green); }
.step.running .step-bubble { background: var(--tone-blue); border-color: var(--tone-blue); color: #fff; box-shadow: 0 0 0 4px var(--tone-blue-soft); animation: stepPulse 1.6s ease-in-out infinite; }
.step.running .step-label { color: var(--tone-blue); }
.step.paused { --tone: var(--tone-orange); }
.step.paused::before { background: var(--tone-green); }
.step.paused .step-bubble { background: var(--tone-orange); border-color: var(--tone-orange); color: #fff; }
.step.paused .step-label { color: var(--tone-orange-ink); }
.step.waiting .step-bubble { background: var(--panel); border-color: var(--line-strong); color: var(--muted); }
.step.skipped .step-bubble { background: var(--tone-gray-soft); border-style: dashed; color: var(--muted); }
.step.skipped .step-label { text-decoration: line-through; color: var(--muted); }
@keyframes stepPulse { 0%, 100% { box-shadow: 0 0 0 3px var(--tone-blue-soft); } 50% { box-shadow: 0 0 0 7px var(--tone-blue-soft); } }
.stepper-vertical { flex-direction: column; }
.stepper-vertical .step { flex-direction: row; text-align: left; min-width: 0; align-items: center; gap: 12px; padding: 8px 0; }
.stepper-vertical .step::before { left: 15px; top: -50%; width: 2px; height: 100%; }

/* Uyarı listesi (Bekleyen İşler / Uyarılar) */
.alert-list { display: flex; flex-direction: column; }
.alert-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 44px; }
.alert-row:first-child { border-top: 0; }
a.alert-row:hover { color: var(--primary-d); text-decoration: none; }
.alert-dot { --tone: var(--tone-gray); width: 10px; height: 10px; border-radius: 50%; background: var(--tone); flex: 0 0 auto; }
.alert-text { flex: 1; min-width: 0; font-size: 14px; }
.alert-count { --tone: var(--tone-gray); min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--tone); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* Etkinlik listesi (Son Aktiviteler) */
.activity-list { display: flex; flex-direction: column; }
.activity-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); min-width: 0; }
.activity-row:first-child { border-top: 0; }
.activity-row > div { flex: 1; min-width: 0; }
.activity-icon { --tone: var(--tone-gray); width: 40px; height: 40px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); color: var(--tone); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.activity-icon svg { width: 20px; height: 20px; }
.activity-time { font-size: 12px; color: var(--muted); }
.activity-text { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.activity-row .pill { flex: 0 0 auto; }

/* Eski liste satırları */
.presence-list { display: flex; flex-direction: column; }
.presence-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line); }
.presence-row:first-child { border-top: none; }
.presence-name { font-weight: 600; color: var(--heading); }
.presence-seen { margin-left: auto; font-size: 12px; color: var(--muted); }
.presence-seen.online { color: var(--primary-d); font-weight: 600; }
.presence-att { font-size: 11px; white-space: nowrap; }
.workload-list { display: flex; flex-direction: column; gap: 10px; }
.workload-row { display: flex; align-items: center; gap: 10px; }
.workload-name { width: 120px; flex-shrink: 0; font-weight: 600; font-size: 13px; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workload-num { font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 48px; text-align: right; }
.over-list { display: flex; flex-direction: column; }
.over-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); cursor: pointer; }
.over-row:first-child { border-top: none; }
.over-row:hover { background: var(--surface-2); }
.over-title { font-weight: 600; color: var(--heading); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.over-meta { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.over-due { font-size: 12px; color: var(--danger); font-weight: 700; white-space: nowrap; }
.over-more { padding: 10px 2px; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; border-top: 1px solid var(--line); }
.over-more:hover { text-decoration: underline; }
.over-ico { display: inline-flex; vertical-align: -2px; margin-right: 6px; color: var(--muted); }
.over-ico svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------------------
   11. MODAL, TOAST, BİLDİRİM, UYARI KUTULARI
   --------------------------------------------------------------------------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 20px; opacity: 0; transition: opacity 0.2s; z-index: 1100; }
.modal-backdrop.show { opacity: 1; }
.modal { background: var(--panel); border-radius: var(--radius-lg); width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); max-height: 90vh; display: flex; flex-direction: column; transform: translateY(8px); transition: transform 0.2s; }
.modal-backdrop.show .modal { transform: translateY(0); }
.modal-wide { max-width: 1000px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 17px; color: var(--heading); font-weight: 700; }
.modal-body { padding: 20px; padding-bottom: 12px; overflow-y: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.modal-actions.left { justify-content: flex-start; }
.modal-actions.wrap { flex-wrap: wrap; }
.menu-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.confirm-msg { margin: 0; color: var(--ink); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.taskdetail-desc { white-space: pre-wrap; color: var(--ink); }
.subfield { margin: -4px 0 12px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.detail-status { display: block; margin: 4px 0 10px; }
.detail-status .status-select { margin-top: 4px; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; }

.checklist { max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px; background: var(--panel); }
.checkrow { display: flex; align-items: center; gap: 9px; padding: 7px 8px; min-height: 36px; border-radius: var(--radius-sm); cursor: pointer; color: var(--ink); transition: background 0.15s; }
.checkrow:hover { background: var(--surface-2); }
.target-box { margin-top: 4px; }
.chk-inline { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; min-height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; user-select: none; background: var(--panel); }
.chk-inline:hover { border-color: var(--primary); }
.chk-inline input { margin: 0; cursor: pointer; }
.chk-inline:has(input:checked) { border-color: var(--primary); background: var(--tone-green-soft); }

.notif-panel-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.notif-item { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.notif-item.unread { border-left: 3px solid var(--primary); background: #F4FBF7; }
.notif-item.clickable { cursor: pointer; }
.notif-item.clickable:hover { border-color: var(--primary); }
.notif-item-title { font-weight: 700; font-size: 14px; color: var(--heading); }
.notif-item-body { font-size: 13px; color: var(--ink); margin: 2px 0; }
.notif-item-time { font-size: 11px; color: var(--muted); }

.toast-root { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 1200; max-width: 380px; }
.toast { background: var(--navy); border: 1px solid transparent; color: #fff; padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.4; opacity: 0; transform: translateX(20px); transition: opacity 0.3s, transform 0.3s; }
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { background: var(--primary); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--navy); }

.notice { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5; margin-bottom: 14px; border: 1px solid transparent; }
.notice-warn { background: #FFF7ED; border-color: #FED7AA; color: #9A3412; }
.notice-info { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
.notice-ok { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.notice-danger { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.notice a { color: inherit; text-decoration: underline; }
.kur-notu { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.kur-notu.uyari { color: var(--amber-ink); }
.secret-box { font-family: ui-monospace, Consolas, 'Courier New', monospace; font-size: 18px; letter-spacing: 1px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); color: var(--heading); user-select: all; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------------------
   12. KİOSK (ATÖLYE) PARÇALARI — büyük düğme, tuş takımı, çalışan kutuları
   --------------------------------------------------------------------------- */
.big-btn {
  --tone: var(--primary);
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 76px; padding: 12px 20px;
  border: 0; border-radius: var(--radius-lg); background: var(--tone); color: #fff;
  font-family: var(--font); font-size: 22px; font-weight: 700; line-height: 1.2; cursor: pointer; text-decoration: none;
  transition: filter 0.1s;
}
.big-btn svg { width: 28px; height: 28px; flex: 0 0 auto; }
.big-btn:hover { filter: brightness(0.94); color: #fff; }
.big-btn:active { filter: brightness(0.88); }
.big-btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.big-btn.big-green { --tone: var(--primary); }
.big-btn.big-orange { --tone: var(--orange); }
.big-btn.big-red { --tone: var(--danger); }
.big-btn.big-blue { --tone: var(--blue); }
.big-btn.big-navy { --tone: var(--navy); }
.big-btn.big-ghost { background: var(--panel); color: var(--ink); border: 2px solid var(--line-strong); }
.big-btn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

.numpad-wrap { width: 100%; max-width: 340px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.numpad-label { text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); }
.numpad-display { min-height: 56px; display: flex; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--panel); font-size: 32px; font-weight: 700; letter-spacing: 6px; color: var(--heading); font-variant-numeric: tabular-nums; }
.numpad-display:empty::before, .numpad-display.empty::before { content: attr(data-placeholder); color: var(--line-strong); letter-spacing: 2px; font-size: 18px; font-weight: 500; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.numpad-key { min-height: 72px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--panel); color: var(--heading); font-family: var(--font); font-size: 26px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background 0.1s; }
.numpad-key svg { width: 26px; height: 26px; }
.numpad-key:hover { background: var(--surface-2); }
.numpad-key:active { background: var(--track); }
.numpad-key.np-fn { color: var(--muted); font-size: 20px; }
.numpad-key.np-ok { background: var(--primary); border-color: var(--primary); color: #fff; }
.numpad-key.np-ok:hover { background: var(--primary-d); }
.numpad-key.np-cancel { color: var(--danger); }
.numpad-key:disabled { opacity: 0.4; cursor: not-allowed; }
.numpad-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.numpad-actions > :only-child { grid-column: 1 / -1; }
.numpad-error { min-height: 20px; text-align: center; font-size: 13px; color: var(--danger); font-weight: 600; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.tile { min-height: 120px; padding: 16px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; cursor: pointer; color: var(--heading); font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1.25; transition: border-color 0.15s, box-shadow 0.15s; }
.tile:hover { border-color: var(--primary); }
.tile:active { background: var(--surface-2); }
.tile.selected, .tile.active { border-color: var(--primary); box-shadow: var(--focus-ring); }
.tile.disabled, .tile:disabled { opacity: 0.5; cursor: not-allowed; }
.tile .avatar { width: 52px; height: 52px; font-size: 20px; background: var(--tone-green-soft); color: var(--primary-d); }
.tile .tile-sub { font-size: 12px; font-weight: 500; color: var(--muted); }
.tile.tone-green { border-color: var(--tone-green); }
.tile.tone-orange { border-color: var(--tone-orange); }
.tile.tone-blue { border-color: var(--tone-blue); }
.tile.tone-red { border-color: var(--tone-red); }

/* ---------------------------------------------------------------------------
   13. ESKİ MODÜLLERİN BİLEŞENLERİ (görev, proje, takvim, CRM, muhasebe, talepler)
   --------------------------------------------------------------------------- */
/* Alan kartları */
.area-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: border-color 0.15s; }
.area-card:hover { border-color: var(--line-strong); }
.area-card-bar { height: 5px; background: var(--accent, var(--primary)); }
.area-card-body { padding: 16px; cursor: pointer; flex: 1; }
.area-card-body:hover h3 { color: var(--primary); }
.area-card-body h3 { margin: 0 0 6px; font-size: 16px; color: var(--heading); transition: color 0.15s; }
.area-meta { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--muted); }
.area-card-actions { display: flex; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }

/* Proje listesi */
.project-list { display: flex; flex-direction: column; gap: 10px; }
.project-row { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; box-shadow: var(--shadow); transition: border-color 0.15s; }
.project-row:hover { border-color: var(--primary); }
.project-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 3px; color: var(--heading); }
.project-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.drive-link { font-size: 13px; font-weight: 600; }
.progress-mini { font-size: 12px; color: var(--muted); }
.kanban-list { display: flex; flex-direction: column; gap: 12px; }
.kanban-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; box-shadow: var(--shadow); }
.kanban-card:hover { border-color: var(--primary); }

/* Görev kartları */
.taskboard { display: flex; flex-direction: column; gap: 12px; }
.taskcard { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); transition: border-color 0.15s; }
.taskcard:hover { border-color: var(--line-strong); }
.taskcard.prio-high { border-left-color: var(--danger); }
.taskcard.prio-medium { border-left-color: var(--orange); }
.taskcard.prio-low { border-left-color: var(--muted); }
.taskcard.done { opacity: 0.6; }
.taskcard.done .tasktitle { text-decoration: line-through; }
.taskcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.tasktitle { font-weight: 700; font-size: 14.5px; color: var(--heading); cursor: pointer; transition: color 0.15s; }
.tasktitle:hover { color: var(--primary); }
.taskcard-meta { display: flex; gap: 14px; margin: 8px 0; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.due.overdue { color: var(--danger); font-weight: 700; }
.taskcard-bottom { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status-select { width: auto; min-height: 32px; padding: 4px 28px 4px 10px; font-size: 12.5px; font-weight: 600; background-color: var(--panel); border-color: var(--line-strong); color: var(--ink); }
.status-select.st-done { background-color: var(--tone-green-soft); color: var(--primary-d); }
.status-select.st-in_progress { background-color: var(--tone-blue-soft); color: var(--blue); }
.status-select.st-pending { background-color: var(--tone-orange-soft); color: var(--tone-orange-ink); }
.mytasklist { display: flex; flex-direction: column; gap: 8px; }
.mytaskrow { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: var(--radius); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; box-shadow: var(--shadow); }
.mytaskrow.prio-high { border-left-color: var(--danger); }
.mytaskrow.prio-medium { border-left-color: var(--orange); }
.mytaskrow.done { opacity: 0.5; }
.mytaskmain { cursor: pointer; flex: 1; }
.mytaskside { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.pending-panel { border-color: #FED7AA; background: #FFFBF5; }
.pending-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; cursor: pointer; }
.pending-info:hover .over-title { color: var(--primary); }
.pending-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Alt görev / kontrol listesi */
.chk-editor { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.chk-row { display: flex; align-items: center; gap: 8px; }
.chk-row .input { flex: 1; padding: 6px 10px; }
.chk-add { display: flex; gap: 8px; align-items: center; }
.chk-add .input { flex: 1; }
.chk-section { margin: 14px 0 4px; }
.chk-section .tprog { margin-bottom: 8px; max-width: 320px; }
.chk-view { display: flex; flex-direction: column; gap: 4px; }
.chk-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; min-height: 36px; border-radius: var(--radius-sm); cursor: pointer; }
.chk-item:hover { background: var(--surface-2); }
.chk-item.done span { text-decoration: line-through; color: var(--muted); }

/* Görev geçmişi */
.hist-section { margin-top: 14px; }
.hist-list { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.hist-row { display: grid; grid-template-columns: 120px 120px 1fr; gap: 10px; padding: 7px 10px; border-top: 1px solid var(--line); font-size: 12px; }
.hist-row:first-child { border-top: none; }
.hist-time { color: var(--muted); }
.hist-user { color: var(--heading); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Yorumlar ve dosyalar */
.comment-list { display: flex; flex-direction: column; gap: 10px; }
.comment { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px; }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.comment-author { font-weight: 700; font-size: 13px; color: var(--heading); }
.comment-time { font-size: 11px; color: var(--muted); }
.comment-body { font-size: 13px; white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.comment-add { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.comment-add textarea { flex: 1; }
.file-list { display: flex; flex-direction: column; gap: 6px; }
.file-item { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 5px 0; }
.file-link { flex: 1; word-break: break-all; }
.file-size { color: var(--muted); font-size: 11px; }
.file-input { display: none; }
.upload-btn { margin-top: 10px; cursor: pointer; }
.upload-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 20px; border: 2px dashed var(--line-strong); border-radius: var(--radius); cursor: pointer; text-align: center; color: var(--muted); background: var(--panel); transition: border-color 0.15s, color 0.15s; }
.upload-drop:hover, .upload-drop:focus, .upload-drop.drag { border-color: var(--primary); color: var(--ink); outline: none; }
.upload-drop b { color: var(--heading); }
.upload-preview { max-height: 220px; max-width: 100%; border-radius: var(--radius-sm); }
.report-img { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: var(--radius-sm); }

/* Duyurular */
.ann-list { display: flex; flex-direction: column; gap: 12px; }
.ann-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.ann-card.unread { border-left: 4px solid var(--primary); }
.ann-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.ann-title { font-weight: 700; font-size: 15px; flex: 1; color: var(--heading); }
.ann-time { font-size: 12px; color: var(--muted); }
.ann-body { white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.ann-foot { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* CRM: kanban, zaman tüneli, müşteri listesi */
.kanban-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; margin-top: 10px; align-items: flex-start; scrollbar-width: thin; cursor: grab; scroll-behavior: smooth; }
.kanban-board.active { cursor: grabbing; scroll-behavior: auto; }
.kanban-col { flex: 1; min-width: 280px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; max-height: 75vh; }
.kanban-col-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 6px; }
.kanban-col-title { font-weight: 700; font-size: 14px; color: var(--heading); display: flex; align-items: center; gap: 8px; }
.kanban-col-count { background: var(--panel); border: 1px solid var(--line); font-size: 11px; padding: 2px 8px; border-radius: 12px; color: var(--muted); font-weight: 700; }
.kanban-col-value { font-size: 12px; color: var(--primary-d); font-weight: 700; }
.kanban-cards { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; flex: 1; padding: 4px 2px; }
.customer-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); cursor: pointer; position: relative; overflow: hidden; transition: border-color 0.15s; }
.customer-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--primary); opacity: 0; transition: opacity 0.15s; }
.customer-card:hover { border-color: var(--primary); }
.customer-card:hover::before { opacity: 1; }
.customer-card-name { font-weight: 700; font-size: 14px; color: var(--heading); margin-bottom: 2px; }
.customer-card-company { font-size: 12px; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.customer-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 11px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.customer-card-value { color: var(--primary-d); font-weight: 700; }
.customer-card-agent { color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.timeline { display: flex; flex-direction: column; gap: 16px; position: relative; margin-left: 10px; padding-left: 20px; border-left: 2px solid var(--line); }
.timeline-item { position: relative; }
.timeline-badge { position: absolute; left: -29px; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line-strong); color: var(--muted); display: grid; place-items: center; font-size: 10px; }
.timeline-badge svg { width: 10px; height: 10px; }
.timeline-badge.call { border-color: var(--blue); color: var(--blue); }
.timeline-badge.meeting { border-color: var(--primary); color: var(--primary); }
.timeline-badge.email { border-color: var(--orange); color: var(--tone-orange-ink); }
.timeline-badge.note { border-color: var(--purple); color: var(--purple); }
.timeline-content { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; box-shadow: var(--shadow); }
.timeline-header { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; gap: 8px; }
.timeline-user { font-weight: 700; color: var(--heading); }
.timeline-time { color: var(--muted); }
.timeline-body { font-size: 13px; color: var(--ink); white-space: pre-wrap; }
.timeline-delete { color: var(--danger); cursor: pointer; text-decoration: underline; margin-left: 8px; font-size: 11px; border: none; background: none; padding: 0; font-family: inherit; }
.activity-log-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.customer-list-wrap { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; width: 100%; }
.customer-list-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; cursor: pointer; box-shadow: var(--shadow); transition: border-color 0.15s; }
.customer-list-card:hover { border-color: var(--primary); }
.clc-left { flex: 2; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.clc-name { font-size: 16px; font-weight: 700; color: var(--heading); }
.clc-company { font-size: 13px; color: var(--muted); font-weight: 500; }
.clc-mid { flex: 1; display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
.clc-right { flex: 1; display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.clc-agent { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.customer-modal-layout { display: flex; flex-direction: column; gap: 16px; }
.req-row .clc-name { white-space: normal; overflow: visible; }

/* Takvim */
.cal-container { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; box-shadow: var(--shadow); }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.cal-title { font-size: 18px; font-weight: 700; color: var(--heading); }
.cal-nav-btn { background: var(--panel); border: 1px solid var(--line-strong); color: var(--ink); font-size: 16px; min-width: 40px; min-height: 40px; padding: 4px 12px; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; }
.cal-nav-btn:hover { background: var(--surface-2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day-label { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.cal-day { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 84px; padding: 8px; display: flex; flex-direction: column; position: relative; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.cal-day:hover { background: var(--hover-bg); border-color: var(--line-strong); }
.cal-day.empty { background: transparent; border-color: transparent; cursor: default; }
.cal-day.today { background: var(--tone-green-soft); border-color: #BBE3CC; }
.cal-date-num { font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.cal-day.status-safe { border-color: var(--success); }
.cal-day.status-warn { border-color: var(--warning); }
.cal-day.status-urgent { border-color: var(--orange); background: #FFF7ED; }
.cal-day.status-late { border-color: var(--danger); background: #FEF2F2; }
.cal-badge { font-size: 11px; padding: 2px 6px; border-radius: 4px; margin-bottom: 4px; font-weight: 600; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-badge.meeting { background: var(--tone-blue-soft); color: var(--blue); }
.cal-badge.task { background: var(--tone-gray-soft); color: var(--tone-gray-ink); }
.cal-badge.task-late { background: var(--tone-red-soft); color: var(--danger); }
.cal-detail-panel { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.cal-detail-title { font-size: 15px; font-weight: 600; color: var(--heading); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }

/* Teklif formu ve listeler */
.qadd { display: flex; gap: 8px; align-items: center; margin: 4px 0 10px; }
.qadd select { flex: 1; }
.qitems { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.qitem { display: grid; grid-template-columns: minmax(160px, 3fr) 80px 110px 70px 120px 34px; gap: 6px; align-items: center; }
.qitem .input { padding: 6px 8px; min-height: 36px; }
.qitem.qhead { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.qamount { text-align: right; font-weight: 700; color: var(--heading); font-size: 13px; font-variant-numeric: tabular-nums; }
.qtotals { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; font-size: 13px; padding-top: 18px; }
.qtotals .qgrand { font-size: 15px; color: var(--primary-d); font-weight: 700; border-top: 1px solid var(--line); padding-top: 4px; margin-top: 2px; }
.qlist { display: flex; flex-direction: column; }
.qrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.qrow:first-child { border-top: none; }
.qrow.small { padding: 6px 4px; font-size: 12px; }
.qrow.warn { background: #FFF7ED; border-left: 3px solid var(--orange); padding-left: 10px; }
.qrow-side { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qlist.panel { padding: 8px 20px; }

/* Raporlar */
.week-chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding: 12px 4px 0; overflow-x: auto; }
.week-col { flex: 1; min-width: 44px; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.week-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.week-bars i { display: block; width: 12px; border-radius: 3px 3px 0 0; min-height: 2px; }
.week-bars i.c-created { background: var(--blue); opacity: 0.6; }
.week-bars i.c-done { background: var(--primary); }
.week-bars i.c-ontime { background: var(--orange); }
.week-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
.week-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.week-legend b { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.att-days { display: flex; flex-wrap: wrap; gap: 4px; }
.att-day { font-size: 11px; padding: 3px 6px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); white-space: nowrap; color: var(--ink); }
.att-day.late { border-color: #FED7AA; background: #FFF7ED; color: #9A3412; }
.att-day.missing { border-color: #FECACA; background: #FEF2F2; color: #991B1B; }
.att-day.absent { border-style: dashed; color: var(--muted); }
.att-day.in { border-color: #BBE3CC; background: #F0FDF4; color: #166534; }
.att-day.remote { border-color: #BFDBFE; background: #EFF6FF; color: #1E40AF; }
.att-day.sick { border-color: #DDD6FE; background: #F5F3FF; color: #5B21B6; }

/* Çalışan talepleri, sağlık raporları */
.req-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-bottom: 20px; }
.req-action { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; min-height: 76px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; box-shadow: var(--shadow); transition: border-color 0.15s; }
.req-action:hover { border-color: var(--primary); }
.req-action-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: var(--radius-lg); background: var(--tone-green-soft); color: var(--primary); }
.req-action-icon svg { width: 24px; height: 24px; }
.req-action b { display: block; font-size: 15px; color: var(--heading); }
.req-action small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.req-list { display: flex; flex-direction: column; gap: 12px; }
.req-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.req-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.req-card-head b { color: var(--heading); font-size: 15px; }
.req-note { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.req-warn { font-size: 12px; color: var(--amber-ink); }
.req-decide { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.req-decide .input { flex: 1 1 220px; min-width: 0; }
.hr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.hr-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.hr-card.unseen { border-color: var(--orange); }
.hr-thumb { height: 170px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.hr-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hr-pdf { font-size: 40px; color: var(--muted); }
.hr-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

/* Muhasebe */
.ay-secici { display: inline-flex; align-items: center; gap: 6px; }
.ay-secici .ay-etiket { min-width: 110px; text-align: center; font-weight: 700; color: var(--heading); }
.mini-btn.odendi-btn { color: var(--primary-d); border-color: #BBE3CC; }
.mini-btn.odendi-btn:hover { background: var(--tone-green-soft); }
.muh-baslik .panel-head { flex-wrap: wrap; gap: 10px; }
.iki-para { display: flex; flex-direction: column; line-height: 1.25; }
.iki-para .ip-tl { font-weight: 700; color: var(--heading); font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.iki-para .ip-eur { font-size: 13px; color: var(--blue); font-weight: 600; white-space: nowrap; }
.iki-para.basari .ip-tl { color: var(--primary-d); }
.iki-para.uyari .ip-tl { color: var(--tone-orange-ink); }
.ozet-seridi { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-end; padding: 10px 0 4px; border-top: 1px solid var(--line); }
.cift-bar { display: flex; flex-direction: column; gap: 3px; min-width: 120px; }
.bar-hucre { width: 22%; }
.bar-aciklama { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.bar-aciklama .nokta { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bar-aciklama .nokta.gelir { background: var(--success); }
.bar-aciklama .nokta.gider { background: var(--danger); margin-left: 8px; }
.kat-liste { display: flex; flex-direction: column; gap: 12px; }
.kat-satir { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 4px; flex-wrap: wrap; }
.gider-satiri { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.gider-satiri.gecikti { background: #FEF2F2; }
.gider-satiri.bugun { background: #FFF7ED; }
.gider-satiri.pasif { opacity: 0.55; }
.gider-ikon { width: 36px; height: 36px; border-radius: var(--radius-lg); background: var(--tone-blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gider-bilgi { flex: 1 1 220px; min-width: 0; }
.gider-ad { font-weight: 700; color: var(--heading); }
.gider-tutar { text-align: right; min-width: 120px; font-variant-numeric: tabular-nums; }
.gider-durum { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-width: 200px; }
.personel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.personel-karti { padding: 16px; margin-bottom: 0; }
.personel-karti.pasif { opacity: 0.6; }
.personel-bas { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.personel-ad { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 6px; color: var(--heading); }
.personel-toplam { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.personel-odeme { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.kalem-listesi { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.kalem-satiri { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface-2); padding: 8px 10px; border-radius: var(--radius-sm); font-size: 13px; }
.kalem-sag { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ---------------------------------------------------------------------------
   14. DUYARLI DÜZEN, DOKUNMA HEDEFLERİ, YAZDIRMA
   --------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .topbar-slogan { display: none; }
}

/* Tablet ve telefon: yan menü çekmece olur */
@media (max-width: 900px) {
  :root { --sidebar-w: 280px; --topbar-h: 60px; }
  .sidebar { transform: translateX(-100%); box-shadow: none; width: 280px; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  body.nav-open .nav-scrim { display: block; }
  body.nav-open { overflow: hidden; }
  .main { margin-left: 0; }
  .topbar { padding: 0 12px; gap: 10px; }
  .topbar-date .td-sub { display: none; }
  .user-role { display: none; }
  .view { padding: 16px; }
  .app-footer { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .detail-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-layout { flex-direction: column; align-items: stretch; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar .input, .filter-bar .input, .toolbar input[type="search"], .filter-bar input[type="search"], .toolbar .search-box { flex: 1 1 100%; max-width: none; }
  .over-meta { display: none; }
}

@media (max-width: 760px) {
  .qitem { grid-template-columns: 1fr 1fr 1fr; }
  .qitem.qhead { display: none; }
}

/* Telefon */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .topbar-date { display: none; }
  .user-name { display: none; }
  .user-btn { padding: 4px; }
  .view { padding: 12px; }
  .page-head { gap: 10px; margin-bottom: 14px; }
  .page-head h1, .page-head h2, .ph-title { font-size: 20px; }
  .ph-icon { width: 44px; height: 44px; }
  .ph-icon svg { width: 24px; height: 24px; }
  .ph-actions, .page-head .btn-row { width: 100%; flex-wrap: wrap; }
  .ph-actions .btn, .page-head .btn, .page-head .btn-row > * { flex: 1 1 auto; min-height: 44px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .kpi-card { padding: 14px; }
  .kpi-icon { width: 38px; height: 38px; }
  .kpi-value { font-size: 22px; }
  .kpi-label { font-size: 13px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .card-head { padding: 14px 16px 8px; }
  .card-body { padding: 0 16px 14px; }
  .card-body:first-child { padding-top: 14px; }
  .panel { padding: 14px; }
  .panel-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .panel-head .btn-row { width: 100%; flex-wrap: wrap; }
  .customer-list-card { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
  .clc-left, .clc-mid, .clc-right { flex: none; }
  .clc-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .clc-company { font-size: 12.5px; }
  .clc-right { justify-content: stretch; }
  .clc-right .mini-btn, .clc-right a.mini-btn { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
  .qrow { flex-direction: column; align-items: flex-start; gap: 8px; }
  .qrow-side { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
  .qrow-side .mini-btn { min-height: 40px; padding: 8px 12px; }
  .btn, .mini-btn, .icon-btn, .tab, .tab-btn { min-height: 44px; }
  .mini-btn { padding: 10px 14px; font-size: 13px; }
  .input, select.input { min-height: 44px; font-size: 16px; }  /* 16px: iOS yakınlaştırmasını engeller */
  textarea.input { min-height: 88px; }
  .chkinline input[type=checkbox] { width: 20px; height: 20px; }
  .panel table, .cm-pane table { display: block; overflow-x: auto; white-space: nowrap; }
  .modal-backdrop { padding: 8px; align-items: end; }
  .modal { width: 100%; max-width: none; max-height: 94vh; border-radius: var(--radius-lg); }
  .modal-wide { width: 100%; }
  .modal-body { max-height: 76vh; overflow-y: auto; }
  .modal-actions { position: sticky; bottom: -12px; background: var(--panel); padding-top: 10px; padding-bottom: 12px; }
  .modal-actions .btn { flex: 1; min-height: 46px; }
  .field-row { flex-direction: column; gap: 0; }
  .hist-row { grid-template-columns: 1fr; gap: 2px; }
  .cm-tabs { -webkit-overflow-scrolling: touch; }
  .cm-tabs::-webkit-scrollbar { display: none; }
  .req-decide .btn { flex: 1 1 40%; min-height: 44px; }
  .hr-thumb { height: 200px; }
  .gider-tutar { text-align: left; min-width: 0; }
  .gider-durum { min-width: 0; }
  .ay-secici .ay-etiket { min-width: 90px; }
  .bar-hucre { display: none; }
  .stepper .step { min-width: 84px; }
  .donut-wrap { gap: 16px; }
  .toast-root { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (max-width: 380px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* Dokunmatik ekran (atölye terminali, tablet): her genişlikte ≥ 44px hedef */
@media (pointer: coarse) {
  .btn, .mini-btn, .icon-btn, .tab, .tab-btn, .cm-tab-btn, .nav-item, .nav-sub-item, .dropdown-item, .user-btn,
  .input, select.input, .checkrow, .chk-item, .chk-inline, .quick-action, .cal-nav-btn, .activity-tab-btn,
  .secenek-anahtari button, .link-btn, .alert-row, .legend-row { min-height: 44px; }
  .icon-btn { min-width: 44px; }
  .mini-btn { padding: 8px 14px; font-size: 13px; }
  .link-btn { padding: 8px; }
  .numpad-key { min-height: 76px; }
  .big-btn { min-height: 84px; }
  input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Yazdırma: kabuk gizlenir, beyaz zemin */
@media print {
  @page { margin: 12mm; }
  html, body { background: #fff !important; color: #000; height: auto; }
  .sidebar, .topbar, .app-footer, .nav-scrim, .toast-root, .modal-backdrop, .hata-seridi, .ph-actions, .toolbar, .filter-bar, .btn, .mini-btn, .icon-btn { display: none !important; }
  .main { margin-left: 0 !important; min-height: 0; }
  .view, #view { padding: 0 !important; max-width: none !important; }
  .card, .panel, .kpi-card, .table-wrap, .data-table { box-shadow: none !important; border-color: var(--line-strong) !important; break-inside: avoid; }
  .data-table th { background: #F1F5F9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pill, .tag, .kpi-icon, .alert-dot, .alert-count, .progress-fill, .step-bubble { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
}

/* ---------------------------------------------------------------------------
   15. TON YARDIMCILARI — en sonda: .kpi-icon, .alert-dot, .activity-icon, .ph-icon, .step,
   .big-btn gibi bileşenlerin varsayılan --tone değerini aynı özgüllükle ezer.
   Kullanım: <div class="kpi-icon tone-orange"> … bileşen var(--tone) / var(--tone-soft) okur.
   --------------------------------------------------------------------------- */
.tone-green  { --tone: var(--tone-green);  --tone-soft: var(--tone-green-soft); }
.tone-blue   { --tone: var(--tone-blue);   --tone-soft: var(--tone-blue-soft); }
.tone-orange { --tone: var(--tone-orange); --tone-soft: var(--tone-orange-soft); }
.tone-red    { --tone: var(--tone-red);    --tone-soft: var(--tone-red-soft); }
.tone-purple { --tone: var(--tone-purple); --tone-soft: var(--tone-purple-soft); }
.tone-gray   { --tone: var(--tone-gray);   --tone-soft: var(--tone-gray-soft); }
.tone-teal   { --tone: var(--tone-teal);   --tone-soft: var(--tone-teal-soft); }
.tone-navy   { --tone: var(--tone-navy);   --tone-soft: var(--tone-navy-soft); }
