/* ═══════════════════════════════════════════════════════════════
   Biztek İK — Ortak Tasarım Sistemi
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Değişkenleri ─────────────────────────────────────────── */
:root {
  --c-bg:        #f0f2f5;
  --c-surface:   #ffffff;
  --c-border:    #e2e6ea;
  --c-text:      #1a2332;
  --c-muted:     #6b7a8d;
  --c-shadow:    0 2px 8px rgba(0,0,0,.08);
  --c-shadow-lg: 0 8px 24px rgba(0,0,0,.12);

  --c-primary:   #2563eb;
  --c-primary-d: #1d4ed8;
  --c-primary-l: #eff6ff;

  --c-green:     #16a34a;
  --c-green-l:   #f0fdf4;
  --c-red:       #dc2626;
  --c-red-l:     #fef2f2;
  --c-amber:     #d97706;
  --c-amber-l:   #fffbeb;
  --c-purple:    #7c3aed;
  --c-purple-l:  #f5f3ff;
  --c-blue:      #0284c7;
  --c-blue-l:    #f0f9ff;
  --c-teal:      #0d9488;
  --c-teal-l:    #f0fdfa;
  --c-gray:      #64748b;
  --c-gray-l:    #f8fafc;

  --accent-leave:  var(--c-primary);
  --accent-fleet:  var(--c-purple);
  --accent-admin:  var(--c-red);
  --accent-news:   var(--c-amber);
  --accent-dept:   var(--c-teal);

  --sidebar-w: 240px;
  --header-h:  60px;
  /* Sticky katman offsetleri: tab barı yüksekliği + akordeon başlık bandı yüksekliği.
     Akordeon başlığı tab barının, tablo thead'i akordeon başlığının altında sabitlenir. */
  --sticky-tab-h: 46px;
  --sticky-acc-h: 44px;
  --radius:    10px;
  --radius-sm: 6px;
  --transition: 0.2s ease;

  --c-sidebar-bg:       #f8fafc;
  --c-sidebar-border:   #e2e6ea;
  --c-sidebar-text:     #475569;
  --c-sidebar-hover-bg: #e2e8f0;
  --c-sidebar-active-bg:#dbeafe;
  --c-sidebar-logo:     #1a2332;
  --c-sidebar-sub-bg:   #f1f5f9;
  --c-sidebar-accent:   #2563eb;

  /* Eksik genel değişkenler */
  --c-card:   #ffffff;
  --c-hover:  #f1f5f9;
}

/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
table { border-collapse: collapse; width: 100%; }

/* ─── Layout ────────────────────────────────────────────────────── */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--c-sidebar-bg);
  color: var(--c-sidebar-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  border-right: 1px solid var(--c-sidebar-border);
}

.sidebar-logo {
  padding: 20px 18px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-sidebar-logo);
  border-bottom: 1px solid var(--c-sidebar-border);
  letter-spacing: .3px;
}
.sidebar-logo span { color: var(--c-sidebar-accent); }

#sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.sidebar-bottom-nav {
  border-top: 1px solid var(--c-sidebar-border);
  padding: 6px 0;
  flex-shrink: 0;
}

/* ── Sidebar Alt Menü (Submenu) ── */
.has-submenu { flex-direction: column; }
.submenu-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px;
  border-left: 3px solid transparent;
  transition: var(--transition);
  color: var(--c-sidebar-text);
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
}
.submenu-toggle:hover { background: var(--c-sidebar-hover-bg); color: var(--c-sidebar-logo); }
.submenu-toggle.active { background: var(--c-sidebar-active-bg); border-left-color: #3b82f6; color: var(--c-sidebar-logo); font-weight: 600; }

.submenu-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}
.has-submenu.open .submenu-arrow { transform: rotate(180deg); }

.sidebar-sub-nav {
  background: var(--c-sidebar-sub-bg);
  padding: 4px 0 !important;
}
.sidebar-sub-nav li a {
  padding: 8px 18px 8px 44px !important;
  font-size: 12.5px !important;
  color: var(--c-sidebar-text) !important;
  border-left: none !important;
}
.sidebar-sub-nav li a:hover {
  background: var(--c-sidebar-active-bg) !important;
  color: var(--c-sidebar-logo) !important;
}
.sidebar-logo { position: relative; }
.cswitch-trigger {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; user-select: none;
}
.cswitch-trigger:hover { opacity: .85; }
.cswitch-arrow { font-size: 11px; opacity: .6; margin-left: auto; }
.cswitch-dropdown {
  display: none; position: absolute; top: calc(100% + 4px);
  left: 0; min-width: 180px; background: var(--c-sidebar-sub-bg);
  border: 1px solid var(--c-sidebar-border); border-radius: 10px;
  overflow: hidden; z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.cswitch-dropdown.open { display: block; }
.cswitch-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; cursor: pointer; font-size: 13px;
  color: var(--c-sidebar-text); transition: background .15s;
}
.cswitch-item:hover { background: var(--c-sidebar-active-bg); }
.cswitch-item.active { background: rgba(96,165,250,.12); color: var(--c-sidebar-logo); }
.cswitch-check { margin-left: auto; color: var(--c-sidebar-accent); font-size: 14px; }

.sidebar nav ul { list-style: none; padding: 10px 0; }
.sidebar nav ul li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-left: 3px solid transparent;
  transition: var(--transition);
  color: var(--c-sidebar-text);
  font-size: 13.5px;
}
.sidebar nav ul li a:hover  { background: var(--c-sidebar-hover-bg); color: var(--c-sidebar-logo); }
.sidebar nav ul li.active a { background: var(--c-sidebar-active-bg); border-left-color: #3b82f6; color: var(--c-sidebar-logo); font-weight: 600; }
.sidebar-sep    { border: none; border-top: 1px solid var(--c-sidebar-border); margin: 8px 18px; }
.sidebar-sep-li { list-style: none; }

.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.topbar {
  height: var(--header-h);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  box-shadow: var(--c-shadow);
  /* Sticky üst bar: masaüstünde zaten scroll dışı kardeş; mobilde pencere
     scroll'unda da yukarıda sabit kalsın. Arka plan opak (var(--c-surface)). */
  position: sticky; top: 0; z-index: 100;
}
.topbar-title { font-weight: 600; font-size: 15px; color: var(--c-text); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-user  { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-muted); }
.topbar-user strong { color: var(--c-text); }
.topbar-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c-border); flex-shrink: 0; }

/* ─── Bildirim Zili ──────────────────────────────────────────────── */
.notif-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  transition: background .18s;
  flex-shrink: 0;
}
.notif-btn:hover { background: var(--c-primary-l, #eff6ff); }
.notif-btn svg { display: block; }
.notif-badge {
  display: none; align-items: center; justify-content: center;
  position: absolute; top: 1px; right: 1px;
  background: #ef4444; color: #fff; border-radius: 99px;
  font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; padding: 0 4px;
  line-height: 17px; text-align: center;
  border: 2px solid var(--c-surface, #fff);
  pointer-events: none;
}
@keyframes notif-ring {
  0%,100% { transform: rotate(0); }
  10%,30% { transform: rotate(-12deg); }
  20%,40% { transform: rotate(12deg); }
  50%     { transform: rotate(0); }
}
.notif-has-new svg { animation: notif-ring 1.2s ease; }

/* Panel */
.notif-panel {
  display: none; position: fixed;
  width: 340px; max-height: 440px; overflow-y: auto;
  background: var(--c-card, #fff);
  border: 1px solid var(--c-border, #e2e8f0);
  border-radius: var(--radius, 10px);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  z-index: 500;
}
.notif-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; font-weight: 700; font-size: 13px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text); position: sticky; top: 0;
  background: var(--c-card, #fff);
}
.notif-count {
  background: var(--c-primary); color: #fff; border-radius: 99px;
  font-size: 11px; padding: 1px 7px; margin-left: auto;
}
.notif-empty {
  padding: 28px 16px; text-align: center;
  font-size: 13px; color: var(--c-muted);
}
.notif-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--c-border);
  transition: background .15s; cursor: pointer;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--c-hover, #f8fafc); }
.notif-item-tag {
  font-size: 11px; font-weight: 700; white-space: nowrap;
  padding: 3px 8px; border-radius: 99px; flex-shrink: 0;
}
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-name { font-weight: 600; font-size: 13px; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-meta { font-size: 11px; color: var(--c-muted); margin-top: 2px; }
.notif-item-arrow { font-size: 18px; color: var(--c-muted); flex-shrink: 0; }

/* Dark mode */
html.dark .notif-btn:hover { background: #1e3a5f; }
html.dark .notif-panel { background: #1e293b; border-color: #334155; }
html.dark .notif-header { background: #1e293b; border-color: #334155; }
html.dark .notif-item:hover { background: #0f172a; }
html.dark .notif-badge { border-color: #1e293b; }

.page-content { flex: 1; overflow-y: auto; padding: 24px; }

/* ─── Page Loader ────────────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
}
.loader-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.loader-text { font-size: 14px; color: var(--c-muted); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--c-shadow);
  padding: 20px 22px;
  margin-bottom: 20px;
  border-top: 3px solid var(--c-border);
}
.card-primary { border-top-color: var(--accent-leave); }
.card-fleet   { border-top-color: var(--accent-fleet); }
.card-admin   { border-top-color: var(--accent-admin); }
.card-news    { border-top-color: var(--accent-news);  }
.card-dept    { border-top-color: var(--accent-dept);  }
.card-green   { border-top-color: var(--c-green); }
.card-gray    { border-top-color: var(--c-gray);  }

.card-title {
  font-size: 14px; font-weight: 700; color: var(--c-text);
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

/* ─── Grid & Flex ────────────────────────────────────────────────── */
.row     { display: flex; gap: 20px; flex-wrap: wrap; }
.col     { flex: 1; min-width: 0; }
.col-1-3 { flex: 1; min-width: 280px; }
.col-2-3 { flex: 2; min-width: 360px; }
.grid-2  { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid-3  { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.grid-4  { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }

/* ─── Butonlar ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: none; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm   { padding: 5px 10px; font-size: 12px; }
.btn-lg   { padding: 11px 22px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary   { background: var(--c-primary);  color: #fff; }
.btn-primary:hover:not(:disabled)   { background: var(--c-primary-d); }
.btn-success   { background: var(--c-green);    color: #fff; }
.btn-success:hover:not(:disabled)   { filter: brightness(.9); }
.btn-danger    { background: var(--c-red);      color: #fff; }
.btn-danger:hover:not(:disabled)    { filter: brightness(.9); }
.btn-warning   { background: var(--c-amber);    color: #fff; }
.btn-warning:hover:not(:disabled)   { filter: brightness(.9); }
.btn-secondary { background: var(--c-border);   color: var(--c-text); }
.btn-secondary:hover:not(:disabled) { background: #d1d5db; }
.btn-ghost     { background: transparent; color: var(--c-primary); border: 1.5px solid var(--c-primary); }
.btn-ghost:hover:not(:disabled)     { background: var(--c-primary-l); }
.btn-icon      { padding: 6px; background: transparent; border: none; color: var(--c-muted); border-radius: var(--radius-sm); }
.btn-icon:hover { background: var(--c-border); color: var(--c-text); }

/* ─── Toggle Switch ─────────────────────────────────────────────── */
.toggle { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; }
.toggle input { display: none; }
.toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--c-border); border-radius: 28px; transition: .3s;
}
.toggle-slider::before {
  content: ""; position: absolute;
  width: 22px; height: 22px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: .3s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background: var(--c-primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ─── Form ───────────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-row   { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 140px; }

label.field-label {
  display: block;
  font-size: 12px; font-weight: 600; color: var(--c-muted);
  margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: .4px;
}

.field {
  display: block; width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: #fff; color: var(--c-text);
  transition: border-color var(--transition);
  outline: none;
}
.field:focus      { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.field:read-only  { background: var(--c-gray-l); color: var(--c-muted); }
textarea.field    { resize: vertical; min-height: 80px; }
.field-hint  { font-size: 11px; color: var(--c-muted); margin-top: 4px; }
.field-error { font-size: 11px; color: var(--c-red); margin-top: 4px; font-weight: 600; }

.check-label {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 13px; user-select: none;
  padding: 8px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.check-label:hover { border-color: var(--c-primary); background: var(--c-primary-l); }
.check-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--c-primary); cursor: pointer; }

.day-checks { display: flex; gap: 6px; flex-wrap: wrap; }
.day-check {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition);
  font-size: 12px; font-weight: 600;
}
.day-check input { display: none; }
.day-check:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-l); color: var(--c-primary); }

/* ─── Tablo ──────────────────────────────────────────────────────── */
.tbl th, .tbl td { 
  padding: 11px 14px; 
  border-bottom: 1px solid var(--c-border); 
  text-align: left; 
  vertical-align: middle; /* Eklenen kod */
}
.tbl th { font-size: 11px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .5px; background: var(--c-gray-l); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--c-gray-l); }
.tbl-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--c-border); }

/* ─── Badge ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.badge-green  { background: var(--c-green-l);  color: var(--c-green);  }
.badge-red    { background: var(--c-red-l);    color: var(--c-red);    }
.badge-amber  { background: var(--c-amber-l);  color: var(--c-amber);  }
.badge-blue   { background: var(--c-blue-l);   color: var(--c-blue);   }
.badge-purple { background: var(--c-purple-l); color: var(--c-purple); }
.badge-teal   { background: var(--c-teal-l);   color: var(--c-teal);   }
.badge-gray   { background: var(--c-gray-l);   color: var(--c-gray);   }

.status-pending  { background: var(--c-amber-l);  color: var(--c-amber);  }
.status-approved { background: var(--c-green-l);  color: var(--c-green);  }
.status-rejected { background: var(--c-red-l);    color: var(--c-red);    }
.status-waiting  { background: var(--c-blue-l);   color: var(--c-blue);   }
.status-cut      { background: var(--c-gray-l);   color: var(--c-gray); text-decoration: line-through; }
.status-done     { background: var(--c-teal-l);   color: var(--c-teal);   }
.status-rented   { background: var(--c-purple-l); color: var(--c-purple); }

/* ─── Stat Kartları ──────────────────────────────────────────────── */
.stat-card {
  background: var(--c-surface); border-radius: var(--radius);
  box-shadow: var(--c-shadow); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
  border-left: 4px solid var(--c-border);
}
.stat-card.green  { border-left-color: var(--c-green);   }
.stat-card.blue   { border-left-color: var(--c-primary); }
.stat-card.amber  { border-left-color: var(--c-amber);   }
.stat-card.purple { border-left-color: var(--c-purple);  }
.stat-label { font-size: 11px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .5px; }
.stat-value { font-size: 32px; font-weight: 700; line-height: 1; color: var(--c-text); }
.stat-sub   { font-size: 12px; color: var(--c-muted); }

/* ─── Akordiyon ──────────────────────────────────────────────────── */
.accordion { margin-bottom: 16px; }
.accordion-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--c-surface); border-radius: var(--radius);
  box-shadow: var(--c-shadow);
  cursor: pointer; user-select: none;
  font-weight: 600; font-size: 14px;
  border-left: 4px solid var(--c-border);
  transition: var(--transition);
}
.accordion-hdr:hover { background: var(--c-gray-l); }
.accordion-hdr.open  { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.accordion-hdr .acc-arrow { transition: transform var(--transition); font-size: 12px; color: var(--c-muted); }
.accordion-hdr.open .acc-arrow { transform: rotate(180deg); }
.accordion-body {
  background: var(--c-surface);
  border: 1px solid var(--c-border); border-top: none;
  border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius);
  padding: 18px; display: none; margin-bottom: 16px;
}
.accordion-hdr.primary { border-left-color: var(--c-primary); }
.accordion-hdr.green   { border-left-color: var(--c-green);   }
.accordion-hdr.red     { border-left-color: var(--c-red);     }
.accordion-hdr.amber   { border-left-color: var(--c-amber);   }
.accordion-hdr.purple  { border-left-color: var(--c-purple);  }
.accordion-hdr.teal    { border-left-color: var(--c-teal);    }

/* ═══════════════════════════════════════════════════════════════
   Sticky akordeon başlığı + tablo sütun başlıkları (thead)
   Katman: tab barı (top:0, z40) > akordeon başlığı (z30) > thead (z20) > satırlar.
   Akordeon başlığı, üstteki tab barının; thead, akordeon başlığının altında sabitlenir.
   Arka planlar tema değişkenleriyle opak (dark/light otomatik).
   ═══════════════════════════════════════════════════════════════ */
/* 1) Akordeon başlık bandı — sayfa akışında, tab barının altında sabit */
.accordion-hdr,
#bal-summary-hdr {
  position: sticky;
  top: var(--sticky-tab-h);
  z-index: 30;
}
/* 2) Akordeon içi tablo kendi iç-scroll alanına alınır (yatay scroll korunur,
   overflow-x:auto'nun dikey sticky'yi bozması engellenir). İçerik kısaysa
   max-height devreye girmez. */
.accordion-body .tbl-wrap,
.bal-scroll,
.sticky-scroll {
  max-height: 65vh;
  overflow: auto;
}
/* 3) Sütun başlıkları (thead) iç-scroll alanının tepesinde sabit kalır.
   .sticky-scroll: akordeon dışındaki tablolarda da (ör. Personel sekmesi) kullanılır. */
.accordion-body .tbl thead th,
#bal-summary-tbl thead th,
.sticky-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--c-gray-l);
}
html.dark .accordion-body .tbl thead th,
html.dark #bal-summary-tbl thead th,
html.dark .sticky-scroll thead th { background: #0f172a; }
/* 4) Personel Yönetimi listesi: sabit 65vh yerine tarayıcı yüksekliğine göre
   dinamik yükseklik. Üst bar + alt sekme çubuğu + filtre satırı + sayfa
   padding'i düşülerek liste kalan dikey alanı doldurur, altta boşluk kalmaz. */
#tab-personel .sticky-scroll {
  max-height: calc(100vh - var(--header-h) - 165px);
}

/* ─── Modal ──────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .15s ease;
}
.modal-box {
  background: var(--c-surface); border-radius: var(--radius);
  box-shadow: var(--c-shadow-lg);
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  padding: 24px; animation: slideUp .2s ease;
}
.modal-box.modal-lg { max-width: 720px; }
.modal-title {
  font-size: 16px; font-weight: 700;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.confirm-box { max-width: 380px; text-align: center; }
.confirm-box p { font-size: 14px; color: var(--c-text); line-height: 1.6; margin-bottom: 20px; }

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ─── Toast ──────────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 9998; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--c-surface); border-radius: var(--radius-sm);
  box-shadow: var(--c-shadow-lg); font-size: 13px; font-weight: 500;
  border-left: 4px solid var(--c-gray);
  opacity: 0; transform: translateX(20px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: auto; max-width: 340px;
}
.toast.show    { opacity: 1; transform: none; }
.toast-success { border-left-color: var(--c-green);   }
.toast-error   { border-left-color: var(--c-red);     }
.toast-info    { border-left-color: var(--c-primary); }
.toast-warning { border-left-color: var(--c-amber);   }
.toast-icon    { font-size: 16px; }

/* ─── Alert Kutuları ─────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 12px; border: 1px solid transparent;
}
.alert-warning { background: var(--c-amber-l); border-color: #fde68a; color: #92400e; }
.alert-danger  { background: var(--c-red-l);   border-color: #fecaca; color: #991b1b; }
.alert-info    { background: var(--c-blue-l);  border-color: #bae6fd; color: #0c4a6e; }
.alert-success { background: var(--c-green-l); border-color: #bbf7d0; color: #166534; }
.alert-action  { margin-left: auto; }

/* ─── Liste Öğeleri ──────────────────────────────────────────────── */
.list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--c-border); gap: 12px;
}
.list-item:last-child { border-bottom: none; }
.list-item-left { display: flex; flex-direction: column; gap: 2px; }
.list-item-name { font-weight: 600; font-size: 13px; }
.list-item-sub  { font-size: 11px; color: var(--c-muted); }

/* ─── Haber Öğesi ────────────────────────────────────────────────── */
.news-item { padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.news-item:last-child { border-bottom: none; }
.news-date  { font-size: 11px; color: var(--c-muted); font-weight: 600; margin-bottom: 3px; }
.news-title { font-size: 13px; font-weight: 500; color: var(--c-text); }

/* ─── Giriş Ekranı ───────────────────────────────────────────────── */
.login-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e293b 0%, #1e3a5f 100%);
}
.login-card {
  background: var(--c-surface); border-radius: var(--radius);
  box-shadow: var(--c-shadow-lg); width: 100%; max-width: 400px; padding: 36px 32px;
}
.login-logo { text-align: center; margin-bottom: 28px; font-size: 22px; font-weight: 800; color: var(--c-text); }
.login-logo span { color: var(--c-primary); }
.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--c-muted); font-size: 12px;
}
.login-divider::before, .login-divider::after { content: ""; flex: 1; border-top: 1px solid var(--c-border); }

/* ─── Skeleton ───────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite; border-radius: 4px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ─── Dosya Yükleme ──────────────────────────────────────────────── */
.file-drop {
  border: 2px dashed var(--c-border); border-radius: var(--radius-sm);
  padding: 20px; text-align: center; cursor: pointer;
  transition: var(--transition); background: var(--c-gray-l);
  display: block; /* inline label için */
}
.file-drop:hover   { border-color: var(--c-primary); background: var(--c-primary-l); }
.file-drop.has-file{ border-color: var(--c-green);   background: var(--c-green-l);   }
.file-drop input   { display: none; }
.logo-preview-wrap { display:flex; align-items:center; gap:12px; margin-top:10px; flex-wrap:wrap; }

/* ─── Yardımcılar ────────────────────────────────────────────────── */
.text-muted  { color: var(--c-muted); }
.text-sm     { font-size: 12px; }
.text-xs     { font-size: 11px; }
.text-bold   { font-weight: 700; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.d-none  { display: none !important; }
.d-flex  { display: flex; }
.w-full  { width: 100%; }
.gap-1   { gap: 8px; }
.gap-2   { gap: 16px; }
.flex-end { justify-content: flex-end; }
.align-center { align-items: center; }

/* ─── Hamburger (mobil) ───────────────────────────────────────────── */
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 10px;
  margin-right: 8px;
  color: inherit;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 998;
}
body.sidebar-open .sidebar-overlay { display: block; }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger      { display: inline-block; }
  .sidebar        {
    position: fixed; top: 0; left: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 999;
    box-shadow: 2px 0 16px rgba(0,0,0,.35);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  /* Mobilde 100vh + nested overflow zincirini kır — sayfa native olarak kaysın */
  html, body    { height: auto; min-height: 100%; }
  .app-shell    { height: auto; min-height: 100dvh; overflow: visible; }
  .main-area    { margin-left: 0 !important; width: 100%; overflow: visible; min-height: 100dvh; }
  .page-content { overflow: visible; padding: 16px; padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  /* Mobilde pencere kayar → sekme barı, sticky topbar'ın hemen altında sabitlensin */
  .tabs-nav, .stab-bar { top: var(--header-h); }
  .row           { flex-direction: column; }
  .col-2-3, .col-1-3 { min-width: 0; }
  .tbl th, .tbl td   { padding: 8px 10px; }
  .modal-box     { padding: 18px; }
}

/* ─── Dark Mode ─────────────────────────────────────────── */
html.dark {
  --c-bg:        #0f172a;
  --c-surface:   #1e293b;
  --c-border:    #334155;
  --c-text:      #e2e8f0;
  --c-muted:     #94a3b8;
  --c-gray-l:    #1e293b;
  --c-shadow:    0 2px 8px rgba(0,0,0,.45);
  --c-shadow-lg: 0 8px 24px rgba(0,0,0,.55);
  --c-primary-l: #1e3a5f;
  --c-card:   #1e293b;
  --c-hover:  #334155;
  --c-green-l:   #14532d;
  --c-red-l:     #450a0a;
  --c-amber-l:   #431407;
  --c-blue-l:    #0c2a4a;
  --c-purple-l:  #2e1065;
  --c-teal-l:    #042f2e;

  --c-sidebar-bg:       #1e293b;
  --c-sidebar-border:   #334155;
  --c-sidebar-text:     #94a3b8;
  --c-sidebar-hover-bg: #334155;
  --c-sidebar-active-bg:#1e3a5f;
  --c-sidebar-logo:     #ffffff;
  --c-sidebar-sub-bg:   #0f172a;
  --c-sidebar-accent:   #60a5fa;
}
html.dark body         { background: var(--c-bg); color: var(--c-text); }
html.dark .topbar      { background: #1e293b; border-color: #334155; }
html.dark .card        { background: #1e293b; }
html.dark .field       { background: #0f172a; color: #e2e8f0; border-color: #334155; }
html.dark .tbl th      { background: #0f172a; }
html.dark .tbl tbody tr:hover { background: #0f172a; }
html.dark .modal-box   { background: #1e293b; }
html.dark .btn-secondary   { background: #334155; color: #e2e8f0; }
html.dark .btn-secondary:hover:not(:disabled) { background: #475569; }
html.dark .accordion-hdr   { background: #1e293b; }
html.dark .accordion-body  { background: #1e293b; border-color: #334155; }
html.dark .login-card      { background: #1e293b; }
html.dark .org-card        { background: #1e293b; }
html.dark .leave-toast     { background: #1e293b; }
html.dark .stat-card       { background: #1e293b; }
html.dark .arac-card       { background: #1e293b; }
html.dark .news-item       { border-color: #334155; }
html.dark .list-item       { border-color: #334155; }
html.dark .km-strip        { background: #0f172a; }
html.dark #page-loader     { background: #0f172a; }
html.dark .tbl-wrap        { border-color: #334155; }
html.dark .tbl td          { border-color: #334155; }
html.dark .check-label     { border-color: #334155; }
html.dark .leave-summary   { background: #1e293b; border-color: #334155; }
html.dark .org-card-body   { background: #1e293b; }
html.dark .org-card-footer { background: #1e293b; border-color: #334155; }

/* Dark mode — select & option */
html.dark select.field           { background: #0f172a; color: #e2e8f0; border-color: #334155; }
html.dark select.field option    { background: #0f172a; color: #e2e8f0; }

/* Dark mode — date / time / number inputs */
html.dark input[type="date"],
html.dark input[type="time"],
html.dark input[type="number"]   { background: #0f172a; color: #e2e8f0; border-color: #334155; color-scheme: dark; }

/* Dark mode — alert kutuları */
html.dark .alert-warning { background: #431407; border-color: #78350f; color: #fde68a; }
html.dark .alert-danger  { background: #450a0a; border-color: #7f1d1d; color: #fca5a5; }
html.dark .alert-info    { background: #0c2a4a; border-color: #075985; color: #7dd3fc; }
html.dark .alert-success { background: #14532d; border-color: #166534; color: #86efac; }

/* Dark mode — skeleton */
html.dark .skeleton { background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%); background-size: 200% 100%; }

/* Dark mode — read-only field */
html.dark .field:read-only { background: #0f172a; color: #64748b; }

/* Dark mode — file drop */
html.dark .file-drop { background: #0f172a; border-color: #334155; color: #94a3b8; }
html.dark .file-drop:hover { border-color: var(--c-primary); background: #1e3a5f; }

/* Dark mode — check-label */
html.dark .check-label { background: transparent; }
html.dark .check-label:hover { background: #1e3a5f; border-color: var(--c-primary); }

/* Dark mode — day-check */
html.dark .day-check { border-color: #334155; color: #94a3b8; }
html.dark .day-check:has(input:checked) { border-color: var(--c-primary); background: #1e3a5f; color: #60a5fa; }

/* Dark mode — pill toggle */
html.dark .pill-toggle { border-color: #334155; }
html.dark .pill-toggle label { color: #94a3b8; background: #0f172a; }
html.dark .pill-toggle input:checked + label { background: var(--c-primary); color: #fff; }

/* Dark mode — badge renkleri (yetersiz kontrast düzeltmesi) */
html.dark .badge-green  { background: #14532d; color: #86efac; }
html.dark .badge-red    { background: #450a0a; color: #fca5a5; }
html.dark .badge-amber  { background: #431407; color: #fde68a; }
html.dark .badge-blue   { background: #0c2a4a; color: #7dd3fc; }
html.dark .badge-purple { background: #2e1065; color: #c4b5fd; }
html.dark .badge-teal   { background: #042f2e; color: #5eead4; }
html.dark .badge-gray   { background: #1e293b; color: #94a3b8; }

html.dark .status-pending  { background: #431407; color: #fde68a; }
html.dark .status-approved { background: #14532d; color: #86efac; }
html.dark .status-rejected { background: #450a0a; color: #fca5a5; }
html.dark .status-waiting  { background: #0c2a4a; color: #7dd3fc; }
html.dark .status-done     { background: #042f2e; color: #5eead4; }
html.dark .status-rented   { background: #2e1065; color: #c4b5fd; }
html.dark .status-cut      { background: #1e293b; color: #64748b; }

/* Dark mode — topbar link rengi */
html.dark .topbar a { color: #60a5fa; }

/* Dark mode — accordion hover */
html.dark .accordion-hdr:hover { background: #0f172a; }

/* ─── Pozisyon Seçici Bar ──────────────────────────────────────── */
.pos-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 20px;
  border: 1.5px solid var(--c-border); background: var(--c-bg);
  color: var(--c-text); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
}
.pos-pill:hover:not(.active) { border-color: var(--c-primary); color: var(--c-primary); }
.pos-pill.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
html.dark .pos-pill { background: #0f172a; border-color: #334155; }
html.dark .pos-pill.active { background: var(--c-primary); }

/* ═══════════════════════════════════════════════════════════════
   Yatay Sekme Sistemi (.stab-*)
   settings.html gibi çok sekmeli sayfalar için ortak bileşen
   ═══════════════════════════════════════════════════════════════ */
.stab-bar {
  display: flex;
  gap: 4px;
  padding: 6px 0 0 2px;
  border-bottom: 2px solid var(--c-border);
  margin-bottom: 24px;
  flex-wrap: wrap;
  /* Sticky alt sekme barı (İzin Yönetimi vb. modüllerde) */
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.stab-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--c-muted);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  font-family: inherit;
  margin-bottom: -2px;
}
.stab-btn:hover {
  background: var(--c-hover);
  color: var(--c-text);
}
.stab-btn.active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
  background: var(--c-primary-l);
}
.stab-panel          { display: none; }
.stab-panel.active   { display: block; }

/* Dark mode — stab */
html.dark .stab-bar           { border-color: var(--c-border); }
html.dark .stab-btn           { color: var(--c-muted); }
html.dark .stab-btn:hover     { background: var(--c-hover); color: var(--c-text); }
html.dark .stab-btn.active    { color: #60a5fa; border-bottom-color: #60a5fa; background: #1e3a5f; }

/* ═══════════════════════════════════════════════════════════════
   Sekme Alias'ları (.tabs-nav / .tab-btn / .tab-panel)
   .stab-* ile özdeş görsel stil — farklı sayfalarda kullanım için
   ═══════════════════════════════════════════════════════════════ */
.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--c-border);
  margin-bottom: 24px;
  padding: 6px 2px 0;
  flex-wrap: wrap;
  /* Sticky alt sekme barı — sayfa kaydıkça topbar'ın hemen altında sabit kalır.
     Arka plan opak (tema değişkeni dark/light otomatik). */
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.tab-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin-bottom: -2px;
}
.tab-btn:hover {
  background: var(--c-hover);
  color: var(--c-text);
}
.tab-btn.active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
  background: var(--c-primary-l);
}
.tab-panel          { display: none; }
.tab-panel.active   { display: block; }

/* Dark mode — tabs alias */
html.dark .tabs-nav           { border-color: var(--c-border); }
html.dark .tab-btn            { color: var(--c-muted); }
html.dark .tab-btn:hover      { background: var(--c-hover); color: var(--c-text); }
html.dark .tab-btn.active     { color: #60a5fa; border-bottom-color: #60a5fa; background: #1e3a5f; }

/* Mobil — tabs alias dar ekranda scroll */
@media (max-width: 600px) {
  .tabs-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 1px; }
  .tab-btn  { padding: 8px 14px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   Ayarlar Sayfası Kart & Bölüm Stilleri (.settings-*)
   ═══════════════════════════════════════════════════════════════ */
.settings-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.settings-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}
.section-note {
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.form-grid-2-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .form-grid-2-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* Dark mode — settings cards */
html.dark .settings-card { background: var(--c-card); border-color: var(--c-border); }

/* ═══════════════════════════════════════════════════════════════
   Sidebar Düzenleme Modu (.sb-edit-*)
   ═══════════════════════════════════════════════════════════════ */

/* Dişli çark butonu — sidebar altında admin'e özel */
.sb-edit-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--c-sidebar-border);
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-align: left;
  font-family: inherit;
  letter-spacing: .3px;
}
.sb-edit-btn:hover { background: var(--c-sidebar-hover-bg); color: var(--c-sidebar-logo); }
.sb-edit-btn.active {
  background: var(--c-amber-l);
  color: var(--c-amber);
  border-top-color: var(--c-amber);
}

/* Düzenleme modundaki menü satırı */
.sb-edit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 10px;
  border-left: 3px solid transparent;
  user-select: none;
  transition: background var(--transition);
}
.sb-edit-item.hidden-item {
  opacity: 0.45;
  text-decoration: line-through;
}
.sb-edit-item .drag-handle {
  cursor: grab;
  font-size: 15px;
  color: var(--c-muted);
  flex-shrink: 0;
  padding: 0 2px;
}
.sb-edit-item .drag-handle:active { cursor: grabbing; }
.sb-edit-item .sb-item-label { flex: 1; font-size: 13px; color: var(--c-sidebar-text); }
.sb-edit-item .sb-item-eye {
  font-size: 15px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1;
  transition: background var(--transition);
}
.sb-edit-item .sb-item-eye:hover { background: var(--c-sidebar-hover-bg); }

/* Sürükleme sırasında stil */
.sb-edit-item.dragging { opacity: .35; }
.sb-edit-item.drag-over {
  border-left-color: var(--c-primary);
  background: var(--c-primary-l);
}

/* Kaydet butonu (düzenleme modunda) */
.sb-save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% - 28px);
  margin: 8px 14px;
  padding: 7px 12px;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}
.sb-save-btn:hover { background: var(--c-primary-d); }
.sb-save-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Dark mode — sidebar düzenleme modu */
html.dark .sb-edit-btn:hover       { background: var(--c-sidebar-hover-bg); color: #fff; }
html.dark .sb-edit-btn.active      { background: #431407; color: #fde68a; border-top-color: var(--c-amber); }
html.dark .sb-edit-item.drag-over  { background: #1e3a5f; border-left-color: #60a5fa; }
html.dark .sb-save-btn             { background: var(--c-primary); }
html.dark .sb-save-btn:hover       { background: var(--c-primary-d); }

/* ═══════════════════════════════════════════════════════════════
   Rutin Sanal Etkinlikler (Süt İzni / İş Arama İzni)
   ─ Gerçek izinlerden görsel olarak ayrışması için kesik kenarlık
   ═══════════════════════════════════════════════════════════════ */
.fc .routine-virtual-event {
  border-style: dashed !important;
  opacity: 0.88;
  cursor: default;
  pointer-events: auto;
}
/* Hafta görünümünde metin biraz küçültülsün — dar bloklar için */
.fc-timegrid .routine-virtual-event .fc-event-title {
  font-size: 11px;
  font-weight: 500;
}
/* Dark modda opaklığı biraz artır — kontrast için */
html.dark .fc .routine-virtual-event {
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════════════════════
   İzin Türü Satır Bileşeni (.leave-type-row)
   ═══════════════════════════════════════════════════════════════ */
.leave-type-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
  flex-wrap: wrap;
}
.leave-type-row:last-child { border-bottom: none; }
.leave-type-name  { font-weight: 700; flex: 1; min-width: 120px; }
.leave-type-meta  { font-size: 12px; color: var(--c-muted); flex: 2; }

/* Etiket pill'leri */
.tag        { display: inline-block; padding: 2px 7px; border-radius: 99px; font-size: 11px; font-weight: 600; margin-right: 4px; }
.tag-green  { background: var(--c-green-l);  color: var(--c-green);  }
.tag-amber  { background: var(--c-amber-l);  color: var(--c-amber);  }
.tag-blue   { background: var(--c-blue-l);   color: var(--c-blue);   }
.tag-gray   { background: var(--c-gray-l);   color: var(--c-gray);   }

/* Dark mode — leave-type-row (renkler zaten css-var üzerinden geliyor, ek override gerekmez) */

/* ═══════════════════════════════════════════════════════════════
   Quill Editör Dark Mode
   ═══════════════════════════════════════════════════════════════ */
html.dark .ql-toolbar   { background: var(--c-surface) !important; border-color: var(--c-border) !important; }
html.dark .ql-container { border-color: var(--c-border) !important; }
html.dark .ql-editor    { background: #fff; color: #111; }

/* E-posta taslak menü öğeleri */
.draft-menu-item:hover  { background: var(--c-hover); }
.draft-menu-item.active { background: var(--c-primary-l); font-weight: 700; color: var(--c-primary) !important; }

/* ═══════════════════════════════════════════════════════════════
   Logo Preview & Pill Toggle (paylaşımlı)
   ═══════════════════════════════════════════════════════════════ */
.pill-toggle               { display: flex; gap: 0; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); overflow: hidden; }
.pill-toggle input         { display: none; }
.pill-toggle label         { padding: 7px 14px; font-size: 13px; cursor: pointer; transition: var(--transition); }
.pill-toggle input:checked + label { background: var(--c-primary); color: #fff; font-weight: 700; }

.logo-preview {
  max-height: 60px;
  max-width: 180px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  padding: 4px;
}

/* Mobil uyum — sekme çubuğu dar ekranda scroll */
@media (max-width: 600px) {
  .stab-bar   { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 1px; }
  .stab-btn   { padding: 8px 14px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
  .settings-card { padding: 14px 16px; }
}

/* ───────────────────────────────────────────────────────────────
   Özel İzin Kartları (Süt İzni / İş Arama İzni Ayarları)
   ─────────────────────────────────────────────────────────────── */
.nl-settings-card {
  margin-top: 18px;
  margin-bottom: 6px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fdf2f8, #fce7f3);
  border-radius: 8px;
  border-left: 4px solid #ec4899;
}
.nl-settings-title {
  font-weight: 700;
  font-size: 13px;
  color: #be185d;
  margin-bottom: 12px;
}
.nl-settings-hint {
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 6px;
  padding: 6px 8px;
  background: #ffffff;
  border-radius: 4px;
  border: 1px dashed #f9a8d4;
}

.jsl-settings-card {
  margin-top: 12px;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}
.jsl-settings-title {
  font-weight: 700;
  font-size: 13px;
  color: #1d4ed8;
  margin-bottom: 12px;
}
.jsl-settings-hint {
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 6px;
  padding: 6px 8px;
  background: #ffffff;
  border-radius: 4px;
  border: 1px dashed #93c5fd;
}

/* Dark mod ezmeleri */
html.dark .nl-settings-card {
  background: linear-gradient(135deg, #251022, #3b1435);
  border-left-color: #ec4899;
}
html.dark .nl-settings-title {
  color: #f472b6;
}
html.dark .nl-settings-hint {
  background: #1e293b;
  border-color: #be185d;
}

html.dark .jsl-settings-card {
  background: linear-gradient(135deg, #0e1e38, #172e54);
  border-left-color: #3b82f6;
}
html.dark .jsl-settings-title {
  color: #60a5fa;
}
html.dark .jsl-settings-hint {
  background: #1e293b;
  border-color: #1d4ed8;
}