:root {
  --efelab-blue-50: #EAF3FF;
  --efelab-blue-100: #D6E8FF;
  --efelab-blue-200: #ADD1FF;
  --efelab-blue-300: #7AB3FF;
  --efelab-blue-400: #4090FF;
  --efelab-blue-500: #0071E3;
  --efelab-blue-600: #005BC4;
  --efelab-blue-700: #0047A0;
  --efelab-blue-800: #08387D;
  --efelab-blue-900: #0A2C5E;

  --success: #34C759;
  --success-text: #1E7B3A;
  --success-bg: #E7F9EC;
  --warning: #FF9500;
  --warning-text: #C26A00;
  --warning-bg: #FFF3E0;
  --danger: #FF3B30;
  --danger-text: #D70015;
  --danger-bg: #FFEBEA;
  --info: #5E5CE6;
  --info-bg: #EEEDFD;

  --gray-50: #F7F7F9;
  --gray-100: #ECECF0;
  --gray-200: #DCDCE2;
  --gray-300: #C7C7CC;
  --gray-400: #AEAEB2;
  --gray-500: #8E8E93;
  --gray-600: #6E6E73;
  --gray-800: #48484A;
  --gray-900: #1D1D1F;

  --surface: #fff;
  --surface-2: #FBFBFC;
  --col-bg: #EFEFF3;
  --on-strong: #fff;

  --sidebar-bg: #0E1320;
  --sidebar-w: 248px;

  --shadow-xs: 0 1px 2px rgba(16,24,40,.05);
  --shadow-sm: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow-md: 0 8px 24px -6px rgba(16,24,40,.10), 0 2px 6px rgba(16,24,40,.05);
  --shadow-lg: 0 20px 40px -12px rgba(16,24,40,.18), 0 4px 10px rgba(16,24,40,.06);

  --radius-card: 14px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Inter Tight', 'Inter', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { color-scheme: light; background: var(--gray-50); }
html[data-theme="dark"] { color-scheme: dark; }
body {
  font-family: var(--font-body); -webkit-font-smoothing: antialiased;
  background: var(--gray-50); color: var(--gray-900); margin: 0;
  font-size: 14px; letter-spacing: -.006em; min-height: 100vh;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--efelab-blue-500); text-decoration: none; }
a.underline { text-decoration: underline; }
.muted { color: var(--gray-600); }
svg.lucide { width: 20px; height: 20px; stroke-width: 1.85; flex-shrink: 0; }
.ico-sm svg.lucide, svg.lucide.ico-sm { width: 14px; height: 14px; }

/* ============ Uygulama iskeleti ============ */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.app-main { min-width: 0; display: flex; flex-direction: column; }

.sidebar { background: var(--sidebar-bg); color: #C9CFDB; display: flex; flex-direction: column;
  padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 20px; color: inherit; }
.brandmark { height: 30px; width: auto; aspect-ratio: 1426 / 624; border-radius: 8px; flex-shrink: 0; display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 16px -6px rgba(253,220,6,.35); }
.brand-text b { color: #fff; font: 800 15px var(--font-display); display: block; }
.brand-text small { white-space: nowrap; font-size: 9px; letter-spacing: .08em; color: #7B8497; font-weight: 600; }
.side-sec { font-size: 10.5px; letter-spacing: .09em; color: #5E6679; font-weight: 700; padding: 14px 10px 6px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: #AEB5C4;
  font-weight: 500; transition: background .15s, color .15s; }
.side-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.side-link.is-active { background: linear-gradient(90deg,rgba(0,113,227,.30),rgba(0,113,227,.08)); color: #fff;
  box-shadow: inset 2px 0 0 #3B9BFF; }
.side-link .count { margin-left: auto; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 99px; }
.side-foot { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 14px 10px 4px;
  border-top: 1px solid rgba(255,255,255,.07); color: inherit; border-radius: 10px; }
.side-foot:hover { background: rgba(255,255,255,.04); }
.side-foot b { color: #fff; font-size: 13px; display: block; }
.side-foot small { color: #7B8497; font-size: 11.5px; }

.topbar { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 32px;
  background: rgba(247,247,249,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--gray-100); }
.topbar-brand { display: none; align-items: center; gap: 9px; font: 800 15px var(--font-display); color: var(--gray-900); }
.topbar-brand .brandmark { height: 26px; border-radius: 7px; }
.searchbox { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--gray-100);
  border-radius: 11px; padding: 0 12px; height: 38px; width: 380px; max-width: 100%; box-shadow: var(--shadow-xs); color: var(--gray-500); }
.searchbox input, .searchbox input[type=text] { border: 0; box-shadow: none; width: auto; min-width: 0; outline: 0; flex: 1; font-size: 13.5px; background: transparent; height: auto; padding: 0; }
.searchbox input:focus { border: 0; padding: 0; box-shadow: none; }
.kbd { font-size: 11px; border: 1px solid var(--gray-200); border-radius: 6px; padding: 1px 6px; color: var(--gray-600); white-space: nowrap; }
.iconbtn { width: 38px; height: 38px; border-radius: 11px; background: var(--surface); border: 1px solid var(--gray-100);
  display: grid; place-items: center; position: relative; box-shadow: var(--shadow-xs); color: var(--gray-900); cursor: pointer; }
.iconbtn:hover { background: var(--gray-50); }
.iconbtn .badge-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center;
  justify-content: center; padding: 0 4px; border: 2px solid var(--surface); }

.content { padding: 28px 32px 48px; width: 100%; max-width: 1520px; }
.content--narrow { max-width: 880px; }
.content--form { max-width: 760px; }

.tabbar { display: none; }

/* ============ Sayfa başlığı ============ */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font: 700 26px var(--font-display); letter-spacing: -.02em; }
.page-head .sub { color: var(--gray-600); margin-top: 4px; font-size: 13.5px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--gray-600); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.backlink:hover { color: var(--gray-900); }

/* Eski sınıflar (geriye dönük) */
.page { max-width: 1520px; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-body { }
.divider { height: 1px; background: var(--gray-100); }

/* ============ Mesajlar ============ */
.flash-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.flash { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; font-size: 13.5px;
  font-weight: 600; background: var(--success-bg); color: var(--success-text); border: 1px solid rgba(52,199,89,.25); }
.flash--error { background: var(--danger-bg); color: var(--danger-text); border-color: rgba(255,59,48,.25); }
.flash--warning { background: var(--warning-bg); color: var(--warning-text); border-color: rgba(255,149,0,.25); }

/* ============ Kart / panel ============ */
.card { background: var(--surface); border-radius: var(--radius-card); padding: 16px; display: flex; flex-direction: column;
  gap: 10px; border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); }
.panel { background: var(--surface); border: 1px solid var(--gray-100); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px;
  border-bottom: 1px solid var(--gray-100); }
.panel-head h3 { font: 700 15px var(--font-display); display: flex; gap: 8px; align-items: center; }
.panel-head h3 svg.lucide { color: var(--efelab-blue-500); }
.panel-body { padding: 18px 20px; }
.panel-body > * + * { margin-top: 12px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.kpis--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.kpis--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--gray-100); border-radius: var(--radius-card); padding: 18px;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; color: inherit; display: block; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi-head { display: flex; justify-content: space-between; align-items: center; color: var(--gray-600); font-weight: 600; font-size: 13px; gap: 8px; }
.kpi-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.kpi-value { font: 700 30px var(--font-display); margin-top: 10px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.kpi-value--text { font-size: 20px; }
.kpi-foot { font-size: 12px; margin-top: 6px; color: var(--gray-500); display: flex; align-items: center; gap: 4px; }

.tone-blue { background: var(--efelab-blue-50); color: var(--efelab-blue-500); }
.tone-red { background: var(--danger-bg); color: var(--danger); }
.tone-orange { background: var(--warning-bg); color: var(--warning); }
.tone-green { background: var(--success-bg); color: var(--success); }
.tone-violet { background: var(--info-bg); color: var(--info); }
.tone-gray { background: var(--gray-100); color: var(--gray-600); }

.icontile { border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.icontile svg.lucide { width: 60%; height: 60%; }

/* ============ Pill / rozet / etiket ============ */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: var(--radius-pill); white-space: nowrap; }
.pill svg.lucide { width: 13px; height: 13px; }
.pill-waiting { background: var(--gray-100); color: var(--gray-600); }
.pill-in-progress { background: var(--efelab-blue-50); color: var(--efelab-blue-600); }
.pill-closed { background: var(--success-bg); color: var(--success-text); }
.pill-overdue { background: var(--danger-bg); color: var(--danger-text); }
.pill-today { background: var(--efelab-blue-50); color: var(--efelab-blue-600); }
.pill-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--radius-pill); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 7px; font-size: 11.5px;
  font-weight: 600; background: var(--gray-50); color: var(--gray-600); border: 1px solid var(--gray-100); max-width: 100%; }
.tag svg.lucide { width: 12px; height: 12px; }
.tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catdot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #fff; flex-shrink: 0; }
.catdot svg.lucide { width: 14px; height: 14px; }
.code { font-family: var(--font-mono); font-size: 11.5px; color: var(--gray-500); letter-spacing: 0; }

.avatar { border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-weight: 700; color: #fff; background: linear-gradient(135deg,#4AA3FF,#0060D0); width: 32px; height: 32px; font-size: 12px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-photo { background: #E3C39C; }
.avatar--sm { width: 24px; height: 24px; font-size: 10px; }
.avatar--empty { background: var(--gray-100); color: var(--gray-500); }

/* ============ Butonlar ============ */
.btn { height: 38px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent; cursor: pointer;
  font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg.lucide { width: 16px; height: 16px; }
.btn-primary { background: var(--efelab-blue-500); color: #fff; box-shadow: 0 6px 14px -6px rgba(0,113,227,.7); }
.btn-primary:hover { background: var(--efelab-blue-600); }
.btn-secondary { background: var(--surface); color: var(--gray-900); border-color: var(--gray-100); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-200); }
.btn-ghost { background: transparent; color: var(--efelab-blue-500); }
.btn-ghost:hover { background: var(--efelab-blue-50); }
.btn-destructive { background: var(--danger); color: #fff; }
.btn-destructive:hover { background: var(--danger-text); }
.btn-danger-soft { background: var(--danger-bg); color: var(--danger-text); }
.btn-danger-soft:hover { background: #FFDAD7; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn-sm svg.lucide { width: 14px; height: 14px; }
.btn-icon { width: 34px; padding: 0; }
.btn:disabled, .btn[disabled] { background: var(--gray-100); color: var(--gray-400); cursor: not-allowed; box-shadow: none; border-color: transparent; }

/* Segment / sekme */
.tabs { display: inline-flex; gap: 4px; background: var(--gray-100); padding: 3px; border-radius: 11px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; font-size: 13px;
  font-weight: 600; color: var(--gray-600); }
.tab svg.lucide { width: 15px; height: 15px; }
.tab:hover { color: var(--gray-900); }
.tab.is-active { background: var(--surface); color: var(--gray-900); box-shadow: var(--shadow-xs); }
.tab .n { font-size: 11px; background: var(--gray-100); border-radius: 99px; padding: 0 6px; }

.subnav { display: flex; gap: 4px; margin-bottom: 22px; overflow-x: auto; padding-bottom: 2px; border-bottom: 1px solid var(--gray-100); }
.subnav a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; font-size: 13px; font-weight: 600;
  color: var(--gray-600); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subnav a svg.lucide { width: 15px; height: 15px; }
.subnav a:hover { color: var(--gray-900); }
.subnav a.is-active { color: var(--efelab-blue-600); border-bottom-color: var(--efelab-blue-500); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--gray-100); font-weight: 600; font-size: 12.5px; color: var(--gray-600); box-shadow: var(--shadow-xs); }
.chip svg.lucide { width: 15px; height: 15px; }
.chip:hover { color: var(--gray-900); border-color: var(--gray-200); }
.chip.is-active { background: var(--gray-900); color: var(--on-strong); border-color: var(--gray-900); }
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }

/* ============ Form ============ */
label.field-label, .field-label { font-size: 11px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=datetime-local], input[type=time],
input[type=number], input[type=url], input[type=tel], input[type=search], select, textarea {
  height: 40px; border-radius: 10px; border: 1px solid var(--gray-200); padding: 0 12px; font-size: 13.5px; outline: none;
  width: 100%; background: var(--surface); color: var(--gray-900); transition: border-color .15s, box-shadow .15s;
}
input[type=color] { height: 40px; width: 64px; border: 1px solid var(--gray-200); border-radius: 10px; padding: 3px; background: var(--surface); }
textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--efelab-blue-500); box-shadow: 0 0 0 4px rgba(0,113,227,.12); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--efelab-blue-500); }

/* Django {{ form.as_p }} çıktısı */
.form-stack p { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.form-stack p:has(input[type=checkbox]) { flex-direction: row; align-items: center; gap: 8px; }
.form-stack label { font-size: 12.5px; font-weight: 600; color: var(--gray-800); }
.form-stack .helptext { font-size: 12px; color: var(--gray-500); }
.form-stack ul.errorlist { list-style: none; padding: 0; margin: 0 0 6px; color: var(--danger-text); font-size: 12.5px; font-weight: 600; }
.form-stack ul { padding-left: 0; list-style: none; margin: 0; }
.form-stack ul li label { font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 14px; border-top: 1px solid var(--gray-100); margin-top: 6px; }
.subform { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 12px; padding: 16px 16px 2px; margin-bottom: 12px; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters select, .filters input { width: auto; min-width: 160px; height: 38px; }

/* ============ Tablo ============ */
.table-wrap { background: var(--surface); border: 1px solid var(--gray-100); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); overflow-x: auto; }
table.datatable { width: 100%; border-collapse: collapse; background: var(--surface); }
.panel table.datatable, .table-wrap table.datatable { border: 0; }
table.datatable th { text-align: left; font-size: 11px; font-weight: 700; color: var(--gray-500); white-space: nowrap;
  text-transform: uppercase; letter-spacing: .05em; padding: 12px 20px; background: var(--surface-2); border-bottom: 1px solid var(--gray-100); }
table.datatable td { padding: 13px 20px; border-bottom: 1px solid var(--gray-100); font-size: 13.5px; vertical-align: middle; }
table.datatable tr:last-child td { border-bottom: 0; }
table.datatable tbody tr { transition: background .12s; }
table.datatable tbody tr:hover td { background: var(--surface-2); }
.cell-title { font-weight: 600; color: var(--gray-900); }
.cell-sub { font-size: 12px; color: var(--gray-500); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.cell-sub svg.lucide { width: 13px; height: 13px; }
.cell-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.row-link { color: inherit; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 16px; color: var(--gray-500); text-align: center; font-size: 13px; }
.empty svg.lucide { width: 32px; height: 32px; color: var(--gray-300); }
.empty b { color: var(--gray-800); font-size: 14px; }

.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-top: 1px solid var(--gray-100); gap: 10px; flex-wrap: wrap; }
.pager-links { display: flex; gap: 6px; }
.pager-links .btn { width: 32px; height: 32px; padding: 0; }

/* ============ Kanban ============ */
.board { display: grid; grid-template-columns: repeat(3, minmax(230px, 1fr)); gap: 14px; align-items: start; min-width: 0; overflow-x: auto; }
.board-layout { grid-template-columns: minmax(0,1fr) 290px; }
.board-col { background: var(--col-bg); border: 2px solid var(--gray-300); border-radius: 16px; padding: 12px; min-width: 0; box-shadow: var(--shadow-xs); }
.board-col-head { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px; }
.board-col-head .icontile { width: 28px; height: 28px; border-radius: 8px; }
.board-col-head b { font: 700 14px var(--font-display); }
.board-col-head .n { background: var(--surface); border-radius: 99px; padding: 1px 9px; font-size: 12px; font-weight: 700; color: var(--gray-600); }
.board-col-hint { font-size: 11.5px; color: var(--gray-500); padding: 0 6px 10px 43px; }
.board-col-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ecard { display: block; background: var(--surface); border-radius: 12px; padding: 14px; border: 1px solid rgba(0,0,0,.04);
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; color: inherit; }
.ecard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ecard.is-overdue { box-shadow: inset 3px 0 0 var(--danger), var(--shadow-sm); }
.ecard.is-overdue:hover { box-shadow: inset 3px 0 0 var(--danger), var(--shadow-md); }
.ecard.is-waiting { background: var(--surface-2); border: 1px dashed var(--gray-200); box-shadow: none; }
.ecard.is-closed { opacity: .78; }
.ecard.is-closed .ecard-title { text-decoration: line-through; text-decoration-color: var(--gray-300); }
.ecard-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.ecard-title { font-weight: 600; line-height: 1.38; margin-bottom: 9px; }
.ecard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ecard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px;
  border-top: 1px solid var(--gray-100); font-size: 12px; color: var(--gray-500); }
.ecard-foot span { display: inline-flex; align-items: center; gap: 4px; }
.ecard-foot svg.lucide { width: 13px; height: 13px; }
.board-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px; margin-top: 10px;
  border: 1.5px dashed var(--gray-300); border-radius: 11px; color: var(--gray-600); font-weight: 600; font-size: 13px;
  background: transparent; cursor: pointer; transition: .15s; }
.board-add:hover { border-color: var(--efelab-blue-400); color: var(--efelab-blue-600); background: rgba(0,113,227,.04); }
.board-empty { padding: 18px 8px; text-align: center; color: var(--gray-500); font-size: 12.5px; }

.layout-2col { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* Zaman çizelgesi */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--gray-100); }
.feed-item:last-child { border-bottom: 0; }
.feed-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.feed-icon svg.lucide { width: 15px; height: 15px; }
.feed-item b { font-weight: 600; }
.feed-text { font-size: 13px; line-height: 1.45; min-width: 0; }
.feed-time { color: var(--gray-500); font-size: 11.5px; margin-top: 2px; }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.bars .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar { width: 100%; border-radius: 7px; background: linear-gradient(180deg,#5AAEFF,#0071E3); min-height: 4px; }
.bars .bar.is-empty { background: var(--gray-100); }
.bars .bar-label { font-size: 11px; color: var(--gray-500); font-weight: 600; }
.bars .bar-val { font-size: 11px; font-weight: 700; color: var(--gray-800); }

.progress { height: 6px; background: var(--gray-100); border-radius: 9px; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg,#3B9BFF,#0071E3); }

/* Modal (<dialog>) */
dialog.modal { border: 0; padding: 0; border-radius: 18px; width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(14,19,32,.45); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--gray-100); }
.modal-head h3 { font: 700 17px var(--font-display); display: flex; align-items: center; gap: 9px; }
.modal-body { padding: 20px 22px 6px; max-height: 70vh; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 18px; }

/* Takvim */
.cal { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cal th { font-size: 11px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; padding: 12px 10px; text-align: left; background: var(--surface-2); border-bottom: 1px solid var(--gray-100); }
.cal td { vertical-align: top; height: 118px; padding: 8px; border-right: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.cal td:last-child { border-right: 0; }
.cal tr:last-child td { border-bottom: 0; }
.cal td.is-out { background: var(--surface-2); }
.cal td.is-out .cal-day { color: var(--gray-300); }
.cal-day { font-weight: 600; font-size: 12.5px; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin-bottom: 4px; }
.cal td.is-today .cal-day { background: var(--efelab-blue-500); color: #fff; }
.cal-ev { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 7px; border-radius: 6px;
  margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-ev span { overflow: hidden; text-overflow: ellipsis; }
.cal-more { font-size: 11px; color: var(--gray-500); margin-top: 4px; font-weight: 600; }

/* Rapor seçici */
.report-list { display: flex; flex-direction: column; gap: 6px; }
.report-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; color: inherit; transition: .15s; }
.report-item:hover { background: var(--gray-50); }
.report-item.is-active { background: var(--efelab-blue-50); border-color: var(--efelab-blue-100); }
.report-item b { display: block; font-size: 13.5px; font-weight: 600; }
.report-item small { color: var(--gray-500); font-size: 12px; line-height: 1.4; display: block; margin-top: 2px; }
.report-item.is-active b { color: var(--efelab-blue-700); }
.hbar { display: grid; grid-template-columns: 140px 1fr 48px; gap: 12px; align-items: center; padding: 7px 0; font-size: 13px; }
.hbar-track { height: 10px; background: var(--gray-100); border-radius: 9px; overflow: hidden; }
.hbar-track i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg,#5AAEFF,#0071E3); }

/* Bildirim listesi */
/* Kartta hızlı işlemler */
.qa-row { display: flex; gap: 6px; margin: 2px 0 12px; }
.qa-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 30px; border-radius: 9px; cursor: pointer;
  background: var(--gray-50); border: 1px solid var(--gray-100); font: 600 12px var(--font-body); color: var(--gray-800); transition: background .12s; }
.qa-btn:hover { background: var(--gray-100); }
.qa-btn svg.lucide { width: 14px; height: 14px; }
.qa-btn.is-primary { background: var(--efelab-blue-50); border-color: var(--efelab-blue-100); color: var(--efelab-blue-600); }
.qa-pop { position: fixed; z-index: 60; width: 210px; background: var(--surface); border: 1px solid var(--gray-100); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; }
.qa-pop b { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px 4px; }
.qa-pop button, .qa-pop label { all: unset; padding: 8px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.qa-pop button:hover, .qa-pop label:hover { background: var(--gray-50); }
.qa-pop textarea { width: 100%; min-height: 70px; margin: 4px 0 6px; }
.notif-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; white-space: nowrap; letter-spacing: -6px; overflow: hidden; flex-shrink: 0; background: var(--gray-50); filter: grayscale(.35); opacity: .75; }
.notif-ic.is-unread { background: var(--efelab-blue-50); filter: none; opacity: 1; }
.notif { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--gray-100); align-items: flex-start; }
.notif:last-child { border-bottom: 0; }
.notif.is-unread { background: #FAFCFF; }
.notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--efelab-blue-500); margin-top: 6px; flex-shrink: 0; }

/* Giriş */
.login-shell { min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, #1B3A6B 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #16325E 0%, transparent 55%), var(--sidebar-bg);
  display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; padding: 34px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); backdrop-filter: blur(10px); }
.login-input { height: 44px; border-radius: 11px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff;
  padding: 0 12px; font-size: 14px; outline: none; width: 100%; }
.login-input:focus { border-color: #3B9BFF; box-shadow: 0 0 0 4px rgba(59,155,255,.18); }
.login-label { font-size: 12px; font-weight: 600; color: #C9CFDB; }

/* ============ Duyarlı ============ */
@media (max-width: 1360px) {
  .board-layout { grid-template-columns: 1fr; }
  .board-layout > .stack { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .layout-2col { grid-template-columns: 1fr !important; }
  .board { grid-template-columns: repeat(3, 300px); overflow-x: auto; padding-bottom: 8px; }
}
@media (max-width: 1023px) and (min-width: 768px) {
  :root { --sidebar-w: 76px; }
  .sidebar { padding: 18px 10px; }
  .brand { justify-content: center; padding: 4px 0 20px; }
  .brand-text, .side-sec, .side-link .label, .side-foot > div:not(.avatar), .side-link .count { display: none; }
  .side-link { justify-content: center; padding: 11px 0; position: relative; }
  .side-foot { justify-content: center; padding: 14px 0 4px; }
  .searchbox { width: 280px; }
}
@media (max-width: 767px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 0 16px; height: 58px; }
  .topbar-brand { display: flex; }
  .searchbox, .topbar .hide-mobile { display: none; }
  .content { padding: 18px 16px 100px; }
  .page-head { flex-direction: column; align-items: stretch; margin-bottom: 18px; }
  .page-head h1 { font-size: 22px; }
  .board-layout > .stack { grid-template-columns: 1fr; }
  .kpis, .kpis--3 { gap: 10px; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 24px; }
  .board { grid-template-columns: repeat(3, 86vw); scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; gap: 12px; }
  .board-col { scroll-snap-align: center; }
  table.datatable.stack-mobile thead { display: none; }
  table.datatable.stack-mobile tr { display: block; border-bottom: 1px solid var(--gray-100); padding: 12px 16px; }
  table.datatable.stack-mobile td { display: block; border: 0; padding: 3px 0; }
  table.datatable.stack-mobile td.hide-mobile { display: none; }
  .cal td { height: 76px; padding: 4px; }
  .cal-ev span { display: none; }
  .cal-ev { padding: 3px; justify-content: center; }
  .hbar { grid-template-columns: 90px 1fr 36px; }
  .filters select, .filters input { min-width: 0; flex: 1; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 68px; z-index: 30;
    background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--gray-100); justify-content: space-around; align-items: center; padding-bottom: env(safe-area-inset-bottom, 6px); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600;
    color: var(--gray-500); position: relative; min-width: 56px; }
  .tabbar a.is-active { color: var(--efelab-blue-500); }
  .tabbar .js-unread-badge { position: absolute; top: -3px; right: 12px; min-width: 16px; height: 16px; border-radius: 8px;
    background: var(--danger); color: #fff; font-size: 9.5px; font-weight: 800; align-items: center; justify-content: center; padding: 0 4px; }
}

/* Kategori formu: ikon ızgarası + renk paleti */
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 8px; }
.icon-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px;
  border: 1px solid var(--gray-100); border-radius: 12px; cursor: pointer; background: var(--surface); transition: .15s; text-align: center; }
.icon-opt:hover { border-color: var(--gray-200); background: var(--gray-50); }
.icon-opt input { position: absolute; opacity: 0; pointer-events: none; }
.icon-opt-box { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--gray-100); color: var(--gray-600); transition: .15s; }
.icon-opt-label { font-size: 11px; font-weight: 600; color: var(--gray-600); line-height: 1.25; }
.icon-opt:has(input:checked) { border-color: var(--cat-color, var(--efelab-blue-500)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat-color, #0071E3) 18%, transparent); }
.icon-opt:has(input:checked) .icon-opt-box { background: var(--cat-color, var(--efelab-blue-500)); color: #fff; }
.icon-opt:has(input:checked) .icon-opt-label { color: var(--gray-900); }
.icon-opt:has(input:focus-visible) { outline: 2px solid var(--efelab-blue-500); outline-offset: 2px; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--gray-200); cursor: pointer; padding: 0; transition: transform .12s; }
.swatch:hover { transform: scale(1.1); }
.swatch.is-selected { box-shadow: 0 0 0 2px var(--gray-900); }
.swatch--custom { position: relative; display: grid; place-items: center; background: conic-gradient(#FF3B30,#FFCC00,#34C759,#00C7BE,#0071E3,#AF52DE,#FF3B30); color: #fff; overflow: hidden; }
.swatch--custom svg.lucide { width: 14px; height: 14px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.swatch--custom input[type=color] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }

/* Eskalasyon adımları */
.rule-intro { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--efelab-blue-50); color: var(--efelab-blue-800); font-size: 13px; line-height: 1.5; margin-bottom: 16px; }
.rule-intro svg.lucide { color: var(--efelab-blue-500); margin-top: 1px; }
.rule-timeline { position: relative; height: 58px; margin: 4px 8px 18px; }
.tl-line { position: absolute; left: 0; right: 0; top: 22px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #BFDBFE 0%, #BFDBFE 50%, #FECACA 50%, #FECACA 100%); }
.tl-due { position: absolute; left: 50%; top: 8px; width: 2px; height: 32px; background: var(--gray-900); transform: translateX(-1px); }
.tl-due span { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; white-space: nowrap; }
.tl-cap { position: absolute; top: 36px; font-size: 11px; color: var(--gray-500); font-weight: 600; }
.tl-cap--l { left: 0; } .tl-cap--r { right: 0; }
.tl-dot { position: absolute; top: 12px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--efelab-blue-500); color: #fff;
  font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); box-shadow: var(--shadow-sm); }
.tl-dot.is-due { background: var(--gray-900); }
.tl-dot.is-late { background: var(--danger); }
.rules { display: flex; flex-direction: column; gap: 12px; }
.rule { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 12px; }
.rule-rail { display: flex; justify-content: center; padding-top: 14px; position: relative; }
.rule-num { width: 30px; height: 30px; border-radius: 50%; background: var(--efelab-blue-500); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; box-shadow: 0 4px 10px -4px rgba(0,113,227,.7); }
.rule.is-due .rule-num { background: var(--gray-900); box-shadow: none; }
.rule.is-late .rule-num { background: var(--danger); box-shadow: 0 4px 10px -4px rgba(255,59,48,.7); }
.rule-body { border: 1px solid var(--gray-100); border-radius: 14px; padding: 14px 16px; background: var(--surface); box-shadow: var(--shadow-xs); }
.rule-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.rule-summary { font-size: 13.5px; color: var(--gray-800); }
.rule-summary b { color: var(--gray-900); }
.rule-section { margin-bottom: 14px; }
.rule-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--gray-600); margin-bottom: 8px; }
.rule-label svg.lucide { width: 14px; height: 14px; }
.rule-when { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rule-when input { width: 80px !important; }
.rule-when select { width: auto !important; min-width: 110px; }
.rule-error { color: var(--danger-text); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.target-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.target-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--gray-100); border-radius: 12px; cursor: pointer; transition: .15s; background: var(--surface); }
.target-opt:hover { background: var(--gray-50); border-color: var(--gray-200); }
.target-opt input { position: absolute; opacity: 0; pointer-events: none; }
.target-opt b { display: block; font-size: 13px; font-weight: 600; }
.target-opt small { display: block; font-size: 11.5px; color: var(--gray-500); line-height: 1.3; margin-top: 1px; }
.target-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--gray-100); color: var(--gray-600); flex-shrink: 0; }
.target-ico svg.lucide { width: 16px; height: 16px; }
.target-opt:has(input:checked) { border-color: var(--efelab-blue-500); background: var(--efelab-blue-50); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.target-opt:has(input:checked) .target-ico { background: var(--efelab-blue-500); color: #fff; }
.target-opt:has(input:focus-visible) { outline: 2px solid var(--efelab-blue-500); outline-offset: 2px; }
.rule-user { margin-top: 10px; max-width: 360px; }
.rule-adv summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--gray-600); display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.rule-adv summary::-webkit-details-marker { display: none; }
.rule-adv summary svg.lucide { width: 14px; height: 14px; }
.rule-adv small { display: block; font-size: 12px; margin-top: 6px; }
.rule-adv select { max-width: 360px; }
@media (max-width: 767px) { .rule { grid-template-columns: 1fr; } .rule-rail { display: none; } }

/* Logo Wings kaynak rozeti */
.src-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 6px; border-radius: 7px; background: #FDECEF;
  border: 1px solid rgba(200,16,46,.18); color: #A10D25; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.src-badge img { height: 11px; width: auto; display: block; }
.ecard-head:empty { display: none; }
.ecard-head { justify-content: flex-start; flex-wrap: wrap; }
.ecard-head > .pill:last-child { margin-left: auto; }

/* Takvim seçici (flatpickr) teması */
.flatpickr-input[readonly] { cursor: pointer; background: var(--surface); }
input.flatpickr-input.form-control, .flatpickr-input + input { cursor: pointer; }
.flatpickr-calendar { font-family: var(--font-body); border: 1px solid var(--gray-100); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 10px; width: 328px !important; }
.flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowTop:after,
.flatpickr-calendar.arrowBottom:before, .flatpickr-calendar.arrowBottom:after { display: none; }
.flatpickr-months { padding: 2px 0 8px; align-items: center; }
.flatpickr-months .flatpickr-month { height: 36px; color: var(--gray-900); }
.flatpickr-current-month { font-size: 15px; font-weight: 700; padding-top: 8px; font-family: var(--font-display); }
.flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 700; appearance: none; -webkit-appearance: none; height: auto; width: auto; border: 0; padding: 0 4px; box-shadow: none; }
.flatpickr-current-month input.cur-year { font-weight: 700; height: auto; border: 0; box-shadow: none; padding: 0 0 0 4px; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { top: 12px; height: 32px; width: 32px; padding: 8px;
  border-radius: 9px; display: grid; place-items: center; }
.flatpickr-months .flatpickr-prev-month { left: 10px; } .flatpickr-months .flatpickr-next-month { right: 10px; }
.flatpickr-months .flatpickr-prev-month:hover, .flatpickr-months .flatpickr-next-month:hover { background: var(--gray-50); }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--efelab-blue-500); }
.flatpickr-innerContainer, .flatpickr-rContainer, .flatpickr-days, .dayContainer { width: 100% !important; min-width: 0 !important; max-width: none !important; }
span.flatpickr-weekday { font-size: 11px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; }
.flatpickr-day { border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--gray-900); height: 38px; line-height: 38px; max-width: none; flex-basis: 14.2857%; border: 0; }
.flatpickr-day:hover, .flatpickr-day:focus { background: var(--gray-100); }
.flatpickr-day.today { border: 0; box-shadow: inset 0 0 0 1.5px var(--efelab-blue-300); color: var(--efelab-blue-600); font-weight: 700; }
.flatpickr-day.today:hover { background: var(--efelab-blue-50); color: var(--efelab-blue-600); }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.selected:focus { background: var(--efelab-blue-500); color: #fff;
  box-shadow: 0 6px 14px -6px rgba(0,113,227,.8); font-weight: 700; }
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: var(--gray-300); }
.flatpickr-day.flatpickr-disabled { color: var(--gray-200); }
.flatpickr-calendar.hasTime .flatpickr-time { border-top: 1px solid var(--gray-100); margin-top: 8px; padding-top: 8px; height: 56px; max-height: 56px; line-height: 40px; }
.flatpickr-time input { font-size: 20px; font-weight: 700; font-family: var(--font-display); color: var(--gray-900); height: 40px; border: 0; box-shadow: none; border-radius: 10px; padding: 0; font-variant-numeric: tabular-nums; }
.flatpickr-time input:hover, .flatpickr-time input:focus { background: var(--gray-50); box-shadow: none; }
.flatpickr-time .flatpickr-time-separator { font-size: 20px; font-weight: 700; color: var(--gray-400); line-height: 40px; }
.flatpickr-time .numInputWrapper span.arrowUp, .flatpickr-time .numInputWrapper span.arrowDown { border: 0; opacity: .6; }
.numInputWrapper:hover { background: transparent; }

/* Tekrarlayan görev formu */
.tpl-summary { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); position: sticky; top: 76px; z-index: 5; }
.tpl-summary b { font: 700 16px var(--font-display); display: block; }
.tpl-summary .muted { font-size: 13px; margin-top: 2px; }
.step-no { width: 22px; height: 22px; border-radius: 50%; background: var(--efelab-blue-500); color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.choice-grid { display: grid; gap: 10px; }
.choice-grid--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.choice-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--gray-100); border-radius: 14px; cursor: pointer; transition: .15s; }
.choice-card:hover { background: var(--gray-50); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card b { display: block; font-size: 14px; font-weight: 700; }
.choice-card small { display: block; font-size: 12.5px; color: var(--gray-500); line-height: 1.45; margin-top: 3px; }
.choice-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--gray-100); color: var(--gray-600); flex-shrink: 0; }
.choice-card:has(input:checked) { border-color: var(--efelab-blue-500); background: var(--efelab-blue-50); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.choice-card:has(input:checked) .choice-ico { background: var(--efelab-blue-500); color: #fff; }
.tab-radio { cursor: pointer; position: relative; }
.tab-radio input { position: absolute; opacity: 0; pointer-events: none; }
.tab-radio:has(input:checked) { background: var(--surface); color: var(--gray-900); box-shadow: var(--shadow-xs); }
[data-rec] { margin-top: 16px; }
.day-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.day-chip { position: relative; cursor: pointer; }
.day-chip input { position: absolute; opacity: 0; pointer-events: none; }
.day-chip span { display: inline-grid; place-items: center; min-width: 52px; height: 40px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--gray-100);
  font-size: 13px; font-weight: 600; color: var(--gray-800); background: var(--surface); transition: .12s; }
.day-chip:hover span { background: var(--gray-50); }
.day-chip input:checked + span { background: var(--efelab-blue-500); border-color: var(--efelab-blue-500); color: #fff; box-shadow: 0 6px 14px -6px rgba(0,113,227,.8); }
.day-chip input:focus-visible + span { outline: 2px solid var(--efelab-blue-500); outline-offset: 2px; }
.month-grid { display: grid; grid-template-columns: repeat(7, 44px); gap: 6px; }
.day-chip--sq span { min-width: 44px; width: 44px; padding: 0; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 767px) { .work-grid { grid-template-columns: 1fr; } .month-grid { grid-template-columns: repeat(7, 1fr); } .day-chip--sq span { width: 100%; min-width: 0; } .tpl-summary { top: 64px; } }

/* Ayarlar: üstte sekme kartı */
.subnav { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; margin-bottom: 22px; background: var(--surface); border: 1px solid var(--gray-100);
  border-radius: 14px; box-shadow: var(--shadow-xs); overflow: visible; }
.subnav a { border: 0; margin: 0; border-radius: 10px; padding: 8px 12px; }
.subnav a:hover { background: var(--gray-50); }
.subnav a.is-active { background: var(--efelab-blue-50); color: var(--efelab-blue-700); }
@media (max-width: 767px) {
  .subnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .subnav::-webkit-scrollbar { display: none; }
}

/* Seçim kutuları: sistem fontu + özel ok */
select { appearance: none; -webkit-appearance: none; padding-right: 36px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
select[multiple] { background-image: none; padding-right: 12px !important; height: auto; min-height: 120px; padding-top: 6px; padding-bottom: 6px; }
select, option, optgroup { font-family: var(--font-body); font-size: 13.5px; color: var(--gray-900); }
option { padding: 6px 8px; }
select:has(option:checked[value=""]) , select.is-placeholder { color: var(--gray-500); }
input::placeholder, textarea::placeholder { color: var(--gray-400); font-family: var(--font-body); }
input[type=file] { font-family: var(--font-body); font-size: 13px; color: var(--gray-600); }
input[type=file]::file-selector-button { font-family: var(--font-body); font-weight: 600; font-size: 13px; border: 1px solid var(--gray-200);
  background: var(--surface); border-radius: 9px; padding: 7px 12px; margin-right: 10px; cursor: pointer; color: var(--gray-900); }
input[type=file]::file-selector-button:hover { background: var(--gray-50); }

/* Daraltılabilir sidebar (masaüstü) */
.sidebar-toggle { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 0; background: rgba(255,255,255,.06);
  color: #AEB5C4; cursor: pointer; margin-left: auto; flex-shrink: 0; transition: .15s; }
.sidebar-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
.sidebar-toggle svg.lucide { width: 16px; height: 16px; }
.brand-row { display: flex; align-items: center; gap: 8px; padding-bottom: 20px; }
.brand-row .brand { padding-bottom: 0; min-width: 0; }
@media (min-width: 768px) {
  html.sb-collapsed { --sidebar-w: 76px; }
  html.sb-collapsed .sidebar { padding: 18px 10px; }
  html.sb-collapsed .brand-row { flex-direction: column; gap: 12px; }
  html.sb-collapsed .brand { justify-content: center; padding: 4px 0 0; }
  html.sb-collapsed .brand-text, html.sb-collapsed .side-sec, html.sb-collapsed .side-link .label,
  html.sb-collapsed .side-foot > div:not(.avatar), html.sb-collapsed .side-link .count { display: none !important; }
  html.sb-collapsed .side-link { justify-content: center; padding: 11px 0; }
  html.sb-collapsed .side-foot { justify-content: center; padding: 14px 0 4px; }
  html.sb-collapsed .sidebar-toggle { margin: 0; }
  html.sb-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
  .app { transition: grid-template-columns .2s ease; }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .brand-row { flex-direction: column; gap: 12px; }
  .sidebar-toggle { display: none; }
}

/* Aç/kapa satırları */
.toggle-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--gray-100); cursor: pointer; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row:hover { background: var(--surface-2); }
.toggle-row b { display: block; font-size: 14px; font-weight: 600; }
.toggle-row small { display: block; font-size: 12.5px; color: var(--gray-500); margin-top: 2px; line-height: 1.4; }
.switch { position: relative; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { display: block; width: 44px; height: 26px; border-radius: 99px; background: var(--gray-200); transition: .18s; position: relative; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .18s; }
.switch input:checked + .switch-ui { background: var(--success); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--efelab-blue-500); outline-offset: 2px; }

.tag--warn { background: var(--warning-bg); color: var(--warning-text); border-color: rgba(255,149,0,.3); }
.panel--warn { border-color: rgba(255,149,0,.45); box-shadow: 0 0 0 3px rgba(255,149,0,.10), var(--shadow-sm); }
.panel--warn .panel-head h3 svg.lucide { color: var(--warning); }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; border: 2px dashed var(--gray-200);
  border-radius: 14px; cursor: pointer; text-align: center; transition: .15s; color: var(--gray-600); }
.dropzone:hover { border-color: var(--efelab-blue-400); background: rgba(0,113,227,.03); }
.dropzone svg.lucide { width: 34px; height: 34px; color: var(--success); }
.dropzone b { color: var(--gray-900); font-size: 14px; }
.dropzone small { font-size: 12px; color: var(--gray-500); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Global arama / komut paleti */
.searchbox--btn { cursor: pointer; font-family: inherit; text-align: left; }
.searchbox--btn:hover { border-color: var(--gray-200); }
.searchbox-ph { flex: 1; font-size: 13.5px; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-mobile { display: none; }
dialog.palette { border: 0; padding: 0; width: min(640px, calc(100vw - 24px)); margin: 12vh auto auto; border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(14,19,32,.45); overflow: hidden; background: var(--surface); }
dialog.palette::backdrop { background: rgba(14,19,32,.40); backdrop-filter: blur(3px); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--gray-100); color: var(--gray-500); }
.palette-input svg.lucide { width: 20px; height: 20px; }
.palette-input input, .palette-input input[type=text] { border: 0; box-shadow: none !important; padding: 0; height: 32px; font-size: 16px; flex: 1; }
.palette-results { max-height: 56vh; overflow-y: auto; padding: 6px 8px 10px; }
.palette-group { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); padding: 12px 10px 6px; }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; color: var(--gray-900); }
.palette-item.is-active { background: var(--efelab-blue-50); }
.palette-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--gray-100); color: var(--gray-600); flex-shrink: 0; }
.palette-ico svg.lucide { width: 16px; height: 16px; }
.palette-text { flex: 1; min-width: 0; }
.palette-text b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-text small { display: block; font-size: 12px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-enter { width: 15px !important; height: 15px !important; color: var(--efelab-blue-500); opacity: 0; }
.palette-item.is-active .palette-enter { opacity: 1; }
.palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--gray-100); font-size: 12px; color: var(--gray-500); background: var(--surface-2); flex-wrap: wrap; }
.palette-foot .kbd { margin-right: 3px; }
@media (max-width: 767px) {
  .show-mobile { display: grid; }
  dialog.palette { margin-top: 8px; }
  .palette-foot { display: none; }
}

.st-edit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; margin-top: -4px; border: 1px dashed var(--efelab-blue-200); border-radius: 11px; background: var(--efelab-blue-50); }
.st-edit[hidden] { display: none; }

/* Yüklenen görsel ikonlar */
img.custom-icon { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.catdot img.custom-icon, .icon-opt-box img.custom-icon, .palette-ico img.custom-icon { width: 100% !important; height: 100% !important; border-radius: inherit; object-fit: cover; }
.tag img.custom-icon { width: 14px; height: 14px; }
.cal-ev img.custom-icon { width: 14px !important; height: 14px !important; }
.catdot:has(img.custom-icon), .icon-opt-box:has(img.custom-icon), .palette-ico:has(img.custom-icon) { background: transparent !important; }
.catdot img.custom-icon, .icon-opt-box img.custom-icon, .palette-ico img.custom-icon { border-radius: 50%; }
.icon-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.icon-admin { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 10px; border: 1px solid var(--gray-100); border-radius: 12px; text-align: center; }
.icon-admin b { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.icon-admin small { font-size: 10.5px; color: var(--gray-500); word-break: break-all; }
.icon-admin.is-hidden { opacity: .45; border-style: dashed; }
.icon-admin-actions { display: flex; gap: 4px; margin-top: 6px; }

.flatpickr-wrapper { display: block; width: 100%; }
dialog .flatpickr-calendar.static { position: relative; top: 6px; margin-bottom: 8px; box-shadow: var(--shadow-md); }

/* Kompakt dosya yükleme */
.file-drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1.5px dashed var(--gray-200);
  border-radius: 12px; cursor: pointer; transition: .15s; color: var(--gray-500); }
.file-drop:hover { border-color: var(--efelab-blue-400); background: rgba(0,113,227,.03); color: var(--efelab-blue-500); }
.file-drop b { display: block; font-size: 13px; font-weight: 600; color: var(--gray-800); }
.file-drop small { display: block; font-size: 12px; color: var(--gray-500); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Daha büyük ikonlar */
.tag svg.lucide, .tag img.custom-icon { width: 14px; height: 14px; }
.catdot { width: 30px; height: 30px; }
.catdot svg.lucide { width: 16px; height: 16px; }
.cell-sub svg.lucide, .ecard-foot svg.lucide { width: 14px; height: 14px; }
.pill svg.lucide { width: 14px; height: 14px; }
.kpi-icon { width: 40px; height: 40px; }
.kpi-icon svg.lucide { width: 21px; height: 21px; }
.side-link svg.lucide { width: 20px; height: 20px; }
.btn svg.lucide { width: 17px; height: 17px; }
.panel-head h3 svg.lucide { width: 19px; height: 19px; }
.icon-opt-box { width: 42px; height: 42px; }
.icon-opt-box svg.lucide { width: 22px; height: 22px; }
.board-col-head .icontile { width: 30px; height: 30px; }

/* Sidebar marka: logo üstte, yazı altta */
.brand-row { position: relative; justify-content: center; padding: 6px 0 18px; }
.brand-row .brand { flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 0; }
.brand-row .brandmark { height: 40px; border-radius: 10px; }
.brand-row .brand-text b { font-size: 16px; letter-spacing: .02em; }
.brand-row .brand-text small { display: block; margin-top: 2px; }
.brand-row .sidebar-toggle { position: absolute; top: 0; right: 0; margin: 0; }
html.sb-collapsed .brand-row { padding-bottom: 14px; }
html.sb-collapsed .brand-row .brandmark { height: 26px; border-radius: 7px; }
html.sb-collapsed .brand-row .sidebar-toggle { position: static; }
.flatpickr-day.is-offday:not(.selected) { color: var(--gray-400); background: var(--surface-2); }
.flatpickr-day.is-holiday:not(.selected) { color: var(--danger-text); background: var(--danger-bg); }
.date-hint { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--warning-text); }

.cal td.is-holiday { background: #FFF7F6; }
.cal-holiday { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--danger-text); margin-bottom: 2px; overflow: hidden; white-space: nowrap; }
.cal-holiday svg.lucide { width: 12px; height: 12px; }
.cal-holiday span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) { .cal-holiday span { display: none; } }
.brand-preview { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: var(--sidebar-bg); margin-bottom: 16px; }
.brand-preview img { height: 40px; max-width: 160px; object-fit: contain; border-radius: 8px; }
.brand-preview b { display: block; color: #fff; font: 800 16px var(--font-display); }
.brand-preview small { display: block; color: #9AA3B5; font-size: 12px; margin-top: 2px; }
.holiday-list { margin-top: 12px; border: 1px solid var(--gray-100); border-radius: 12px; overflow: hidden; }
.holiday-item { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-bottom: 1px solid var(--gray-100); font-size: 13px; }
.holiday-item:last-child { border-bottom: 0; }
.day-chip input[type=checkbox] { position: absolute; opacity: 0; }
input[type=time] { width: 100%; }

/* Tema uyumlu seçim kutusu (select.js) */
.sel { position: relative; width: 100%; }
.sel-native { position: absolute !important; inset: 0; opacity: 0; pointer-events: none; width: 100% !important; height: 100% !important; }
.sel-btn { width: 100%; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--gray-200); background: var(--surface); font: 400 13.5px var(--font-body); color: var(--gray-900);
  cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.sel-btn:hover { border-color: var(--gray-300); }
.sel-btn:focus-visible, .sel.is-open .sel-btn { outline: 0; border-color: var(--efelab-blue-500); box-shadow: 0 0 0 4px rgba(0,113,227,.12); }
.sel-btn.is-placeholder .sel-label { color: var(--gray-400); }
.sel-btn.is-invalid { border-color: var(--danger); }
.sel-btn:disabled { background: var(--gray-50); color: var(--gray-500); cursor: not-allowed; }
.sel-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-chev { color: var(--gray-500); flex-shrink: 0; transition: transform .15s; }
.sel.is-open .sel-chev { transform: rotate(180deg); }
.sel-pop { position: fixed; z-index: 1000; background: var(--surface); border: 1px solid var(--gray-100);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 180px; animation: selIn .12s ease-out; }
@keyframes selIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sel-list { max-height: 260px; overflow-y: auto; }
.sel-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--gray-900); cursor: pointer; }
.sel-opt.is-active { background: var(--gray-50); }
.sel-opt.is-selected { color: var(--efelab-blue-600); font-weight: 600; background: var(--efelab-blue-50); }
.sel-opt.is-selected::after { content: ""; width: 14px; height: 14px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.sel-opt.is-empty { color: var(--gray-500); }
.sel-opt.is-disabled { opacity: .4; cursor: not-allowed; }
.sel-none { padding: 12px; font-size: 13px; color: var(--gray-500); text-align: center; }
.sel-search { display: flex; align-items: center; gap: 8px; padding: 2px 8px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--gray-100); color: var(--gray-400); }
.sel-search input, .sel-search input[type=text] { border: 0 !important; box-shadow: none !important; height: 30px; padding: 0; font-size: 13.5px; }
.filters .sel { width: auto; min-width: 170px; }
.filters .sel-btn { height: 38px; }
.rule-when .sel { width: auto; min-width: 120px; }

/* Yaklaşan terminler */
.upcoming { align-items: center; }
.up-date { width: 42px; height: 44px; border-radius: 10px; background: var(--gray-50); border: 1px solid var(--gray-100); display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }
.up-date b { font: 800 16px var(--font-display); color: var(--gray-900); }
.up-date small { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--gray-500); margin-top: 2px; }
.up-date.is-today { background: var(--efelab-blue-50); border-color: var(--efelab-blue-100); }
.up-date.is-today b, .up-date.is-today small { color: var(--efelab-blue-600); }
.up-date.is-late { background: var(--danger-bg); border-color: rgba(255,59,48,.2); }
.up-date.is-late b, .up-date.is-late small { color: var(--danger-text); }

/* Alt görev onay kutusu (tıklanınca tamamla / geri al) */
.st-check { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--gray-300); background: var(--surface); flex-shrink: 0; cursor: pointer;
  display: grid; place-items: center; padding: 0; color: #fff; transition: .12s; }
.st-check:hover { border-color: var(--success); }
.st-check.is-done { background: var(--success); border-color: var(--success); }
.st-check.is-done:hover { background: var(--surface); color: var(--gray-400); border-color: var(--gray-300); }
.st-check:disabled { cursor: not-allowed; opacity: .7; }
.st-check.is-done:disabled:hover { background: var(--success); color: #fff; border-color: var(--success); }

/* Hafta yükü şeridi */
.wstrip { margin-bottom: 20px; overflow: visible; }
.wstrip .panel-head h3 .muted { margin-left: 4px; }
.wstrip .tabs .tab { border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.wstrip .tabs .tab.is-active { background: var(--surface); }
.wdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wday { position: relative; display: block; padding: 13px 15px 14px; border-right: 1px solid var(--gray-100); color: inherit; min-width: 0; transition: background .12s; }
.wday:last-child { border-right: 0; }
.wday:hover { background: var(--surface-2); }
.wday.is-today { background: linear-gradient(180deg, var(--efelab-blue-50), var(--surface) 75%); }
.wday.is-today::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--efelab-blue-500); }
.wday.is-off { background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, var(--surface-2) 8px 16px); }
.wday.is-selected { box-shadow: inset 0 0 0 2px var(--efelab-blue-500); }
.wday-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.wday-head b { font: 700 13px var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wday-head small { font-size: 11px; color: var(--gray-500); font-weight: 600; }
.wday.is-today .wday-head b { color: var(--efelab-blue-600); }
.wday.is-off .wday-head b { color: var(--gray-400); }
.wday-big { font: 800 26px var(--font-display); letter-spacing: -.02em; margin-top: 8px; display: flex; align-items: baseline; gap: 5px; }
.wday-big small { font: 600 11.5px var(--font-body); color: var(--gray-500); }
.wday-big.is-over { color: var(--danger-text); }
.wday-big.muted-num { color: var(--gray-300); }
.wday-cap { font-size: 11.5px; color: var(--gray-500); margin-top: 6px; }
.wday .chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.chip.r { background: var(--danger-bg); color: var(--danger-text); border-color: transparent; }
.chip.g { background: var(--success-bg); color: var(--success-text); border-color: transparent; }
.chip.o { background: var(--warning-bg); color: var(--warning-text); border-color: transparent; }
.wday .chip, .help-body .chip { height: auto; padding: 2px 7px; border-radius: 99px; font-size: 11px; box-shadow: none; border: 0; gap: 3px; }
.wday .chip svg.lucide { width: 12px; height: 12px; }
.wload { height: 6px; border-radius: 9px; background: var(--gray-100); margin-top: 10px; overflow: hidden; }
.wload i, .wbar i { display: block; height: 100%; border-radius: 9px; }
.lv-ok { background: var(--success); } .lv-busy { background: var(--warning); } .lv-over { background: var(--danger); }
.wperson { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; }
.wperson-av { position: relative; display: inline-flex; }
.wperson .warn-dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }
.wbar { flex: 1; height: 6px; border-radius: 9px; background: var(--gray-100); overflow: hidden; }
.wperson b { min-width: 14px; text-align: right; font-weight: 700; }
.wperson b.is-over { color: var(--danger-text); }
.wlegend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; padding: 10px 18px; border-top: 1px solid var(--gray-100); font-size: 11.5px; color: var(--gray-600); }
.wlegend span { display: inline-flex; align-items: center; gap: 5px; }
.wlegend i { width: 10px; height: 6px; border-radius: 3px; display: inline-block; }
/* güne gelince açılan liste */
.wpop { display: none; position: absolute; top: calc(100% - 6px); left: 50%; transform: translateX(-50%); width: 290px; z-index: 30;
  background: var(--surface); border: 1px solid var(--gray-100); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; cursor: pointer; }
.wday:hover .wpop { display: block; }
.wday:first-child .wpop { left: 0; transform: none; }
.wday:last-child .wpop { left: auto; right: 0; transform: none; }
.wpop-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 8px; font-size: 12.5px; }
.wpop-head b { font-family: var(--font-display); }
.wpop-item { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; font-size: 12px; }
.wpop-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--efelab-blue-500); flex-shrink: 0; }
.wpop-item .dot.is-late { background: var(--danger); }
.wpop-item .dot.is-closed { background: var(--success); }
.wpop-item .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.wpop-item small { color: var(--gray-500); font-size: 11px; white-space: nowrap; }
.wpop-foot { font-size: 11.5px; color: var(--efelab-blue-600); font-weight: 600; text-align: center; padding: 8px 0 2px; border-top: 1px solid var(--gray-100); margin-top: 4px; }
.help-body h4 { font: 700 14px var(--font-display); margin: 14px 0 6px; }
.help-body h4:first-child { margin-top: 0; }
.help-body p, .help-body li { font-size: 13px; line-height: 1.6; color: var(--gray-800); }
.help-body ul { padding-left: 0; list-style: none; margin: 4px 0 8px; }
.help-body li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.lvl { width: 14px; height: 8px; border-radius: 4px; display: inline-block; flex-shrink: 0; }
@media (max-width: 1100px) { .wdays { grid-template-columns: repeat(7, 150px); overflow-x: auto; } .wpop { display: none !important; } }
@media (max-width: 767px) { .wdays { grid-template-columns: repeat(7, 130px); } .wlegend .muted { margin-left: 0 !important; } }

/* Logo siparişi içeriği ve stok */
.stock-sum { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 14px 20px; background: var(--surface-2); border-bottom: 1px solid var(--gray-100); }
.stock-ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--success) 0 calc(var(--ok) * 1%), var(--warning) calc(var(--ok) * 1%) calc((var(--ok) + var(--part)) * 1%),
    var(--danger) calc((var(--ok) + var(--part)) * 1%) calc((var(--ok) + var(--part) + var(--no)) * 1%), var(--gray-200) 0); }
.stock-ring b { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font: 800 13.5px var(--font-display); }
.stock-sum-title { display: block; font: 700 14.5px var(--font-display); margin-bottom: 2px; }
.stock-counts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.order-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-table .mono { font-family: var(--font-mono); }
.miat { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--warning-text); background: var(--warning-bg); padding: 1px 6px; border-radius: 6px; margin-top: 4px; }
.miat svg.lucide { width: 11px; height: 11px; }
.stock-st { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.stock-st b { display: block; font-size: 12.5px; font-weight: 700; }
.stock-st small { display: block; font-size: 11.5px; color: var(--gray-500); }
.stock-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.stock-ic svg.lucide { width: 13px; height: 13px; stroke-width: 3; }
.stock-ic.is-ok { background: var(--success); } .stock-ic.is-part { background: var(--warning); }
.stock-ic.is-no { background: var(--danger); } .stock-ic.is-unknown { background: var(--gray-300); }
.stock-ic.is-shipped { background: var(--gray-400); }
.order-table tr.is-shipped td { color: var(--gray-500); }
.order-table tr.is-shipped .cell-title { color: var(--gray-500); }
.t-ok { color: var(--success-text); } .t-part { color: var(--warning-text); } .t-no { color: var(--danger-text); }
.stock-bar { display: block; width: 110px; height: 5px; border-radius: 9px; background: var(--gray-100); overflow: hidden; margin-top: 5px; }
.stock-bar i { display: block; height: 100%; background: var(--warning); border-radius: 9px; }
.order-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 20px; border-top: 1px solid var(--gray-100); background: var(--surface-2); font-size: 12px; color: var(--gray-500); }
.order-foot b { color: var(--gray-800); }
/* Pano kartı stok satırı */
.stockline { display: flex; flex-direction: column; gap: 6px; padding: 7px 10px 8px; border-radius: 9px; font-size: 12px; font-weight: 600; margin-bottom: 10px; min-width: 0; }
.stockline-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.stockline-top span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stockline-top small { margin-left: auto; font-weight: 500; opacity: .75; white-space: nowrap; }
.stockline-bar { display: flex; gap: 2px; height: 5px; border-radius: 3px; overflow: hidden; }
.stockline-bar i { flex-basis: 0; min-width: 3px; }
.stockline-bar i.is-ok { background: var(--success); } .stockline-bar i.is-part { background: var(--warning); }
.stockline-bar i.is-no { background: var(--danger); } .stockline-bar i.is-unknown { background: var(--gray-300); }
.stockline-bar i.is-shipped { background: var(--gray-400); }
.stockline svg.lucide { width: 15px; height: 15px; }
.stockline-dots { display: flex; gap: 3px; margin-left: auto; }
.stockline-dots i { width: 8px; height: 8px; border-radius: 50%; }
.stockline-dots i.is-ok { background: var(--success); } .stockline-dots i.is-part { background: var(--warning); }
.stockline-dots i.is-no { background: var(--danger); } .stockline-dots i.is-unknown { background: var(--gray-300); }
.stockline.is-ok { background: var(--success-bg); color: var(--success-text); }
.stockline.is-part { background: var(--warning-bg); color: var(--warning-text); }
.stockline.is-no { background: var(--danger-bg); color: var(--danger-text); }
.stockline.is-unknown { background: var(--gray-50); color: var(--gray-600); }
@media (max-width: 767px) { .stock-sum { grid-template-columns: auto 1fr; } .stock-counts { grid-column: 1 / -1; justify-content: flex-start; } }

/* Pano: kompakt özet göstergeleri */
.page-head--compact { align-items: center; margin-bottom: 18px; }
.stat-row { display: flex; gap: 8px; flex-wrap: wrap; }
.stat { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 11px; background: var(--surface);
  border: 1px solid var(--gray-100); box-shadow: var(--shadow-xs); font-size: 12.5px; color: var(--gray-600); font-weight: 500; white-space: nowrap; }
.stat b { font: 800 16px var(--font-display); color: var(--gray-900); font-variant-numeric: tabular-nums; }
.stat svg.lucide { width: 16px; height: 16px; color: var(--gray-500); }
a.stat:hover { border-color: var(--gray-200); background: var(--gray-50); }
.stat.is-alert { background: var(--danger-bg); border-color: rgba(255,59,48,.2); color: var(--danger-text); }
.stat.is-alert b, .stat.is-alert svg.lucide { color: var(--danger-text); }
.tone-ic-blue { color: var(--efelab-blue-500) !important; } .tone-ic-orange { color: var(--warning) !important; } .tone-ic-green { color: var(--success) !important; }
@media (max-width: 767px) { .stat-row { gap: 6px; } .stat { height: 32px; padding: 0 10px; } }

/* Hafta yükü: daraltma */
.wsummary { display: none; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--gray-600); flex: 1; min-width: 0; }
.wsummary b { color: var(--gray-900); font-weight: 700; }
.wsummary .is-alert, .wsummary .is-alert b { color: var(--danger-text); }
.wdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 2px 0 4px; vertical-align: 0; }
.wtoggle svg.lucide { transition: transform .2s; }
html.ws-collapsed .wstrip .wdays, html.ws-collapsed .wstrip .wlegend, html.ws-collapsed .wstrip .wcontrols { display: none !important; }
html.ws-collapsed .wstrip .panel-head { border-bottom: 0; padding-top: 11px; padding-bottom: 11px; }
html.ws-collapsed .wstrip .wsummary { display: flex; }
html.ws-collapsed .wtoggle svg.lucide { transform: rotate(180deg); }
.wstrip .panel-head h3 { flex-shrink: 0; }

/* Logo entegrasyon sayfası */
.agent-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gray-300); flex-shrink: 0; box-shadow: 0 0 0 5px var(--gray-100); }
.agent-status.is-online .agent-dot { background: var(--success); box-shadow: 0 0 0 5px var(--success-bg); animation: agentPulse 2s infinite; }
.agent-status.is-offline .agent-dot { background: var(--danger); box-shadow: 0 0 0 5px var(--danger-bg); }
.agent-status.is-offline { border-color: rgba(255,59,48,.3); }
@keyframes agentPulse { 50% { box-shadow: 0 0 0 9px rgba(52,199,89,.12); } }
.agent-title { font: 700 15px var(--font-display); }
.agent-meta { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; padding-left: 16px; border-left: 1px solid var(--gray-100); }
.agent-meta span { color: var(--gray-500); font-size: 11.5px; }
.token-box { background: var(--warning-bg); border: 1px dashed rgba(255,149,0,.5); border-radius: 12px; padding: 12px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.token-box code { font-family: var(--font-mono); font-size: 12.5px; word-break: break-all; background: var(--surface); padding: 8px 10px; border-radius: 8px; }
.setup-steps ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; }
.setup-steps .mono { font-family: var(--font-mono); font-size: 12px; background: var(--gray-50); padding: 1px 5px; border-radius: 5px; }

/* Takvim: modal içinde ortada, Tamam butonu */
.flatpickr-calendar.fp-centered { position: fixed !important; top: 50% !important; left: 50% !important; right: auto !important;
  transform: translate(-50%, -50%); margin: 0 !important; z-index: 1000; }
.flatpickr-calendar.fp-centered.open { animation: none; }
dialog.fp-dim::after { content: ""; position: fixed; inset: 0; background: rgba(14,19,32,.25); border-radius: inherit; pointer-events: none; }
.fp-confirm { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 4px 2px; border-top: 1px solid var(--gray-100); margin-top: 6px; }
.fp-ok { height: 34px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--efelab-blue-500); color: #fff; font: 600 13.5px var(--font-body); cursor: pointer; }
.fp-ok:hover { background: var(--efelab-blue-600); }
.fp-link { border: 0; background: none; color: var(--efelab-blue-600); font: 600 13px var(--font-body); cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.fp-link:hover { background: var(--efelab-blue-50); }
.flatpickr-current-month .flatpickr-monthDropdown-months { font-family: var(--font-display); }
dialog .flatpickr-calendar.static { position: fixed; }

/* Sıralanabilir tablo başlığı */
.th-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.th-sort svg.lucide { width: 13px; height: 13px; opacity: .35; }
.th-sort:hover { color: var(--gray-900); }
.th-sort:hover svg.lucide, .th-sort.is-active svg.lucide { opacity: 1; }
.th-sort.is-active { color: var(--efelab-blue-600); }

/* Yeni EFELAB logosu */
.brand-row .brand { gap: 6px; }
.brand-lockup { display: block; height: 30px; width: auto; max-width: 100%; object-fit: contain; }
.brand-row .brand-lockup { height: 32px; }
.brand-icon { display: none; width: 40px; height: 40px; border-radius: 11px; object-fit: contain; }
.brand-row .brand-text small { font-size: 9px; letter-spacing: .14em; color: #7B8497; }
html.sb-collapsed .brand-lockup { display: none; }
html.sb-collapsed .brand-icon { display: block; }
@media (max-width: 1023px) and (min-width: 768px) { .sidebar .brand-lockup { display: none; } .sidebar .brand-icon { display: block; } }
.topbar-brand .brand-lockup { height: 22px; }
.login-lockup { height: 40px; width: auto; align-self: flex-start; }
.card-lockup { height: 26px; width: auto; align-self: flex-start; }
.brand-preview img { height: 34px; max-width: 220px; border-radius: 0; }

/* Menü daraltma: alt kısımda, kullanıcı kartının üstünde */
.side-collapse { margin-top: auto; width: 100%; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; margin-bottom: 6px; }
.side-collapse + .side-foot { margin-top: 0; }
.side-link.theme-toggle { margin-top: auto; width: 100%; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
.theme-toggle + .side-collapse { margin-top: 0; }
.side-collapse svg.lucide { transition: transform .2s; }
html.sb-collapsed .side-collapse svg.lucide { transform: rotate(180deg); }
.brand-row { padding-bottom: 14px; }
@media (max-width: 1023px) and (min-width: 768px) { .side-collapse { display: none; } }

/* Üst çubuk kalktı: arama ve bildirim sol menüde. Telefonda sade üst çubuk kalır. */
@media (min-width: 768px) { .topbar { display: none; } }
.content--wide { max-width: none; }
.side-search { display: flex; align-items: center; gap: 9px; width: calc(100% - 8px); margin: 4px 4px 2px; height: 38px; padding: 0 10px;
  border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #8B93A5;
  font: 500 13px var(--font); cursor: pointer; text-align: left; }
.side-search:hover { background: rgba(255,255,255,.1); color: #C7CCD6; }
.side-search svg.lucide { width: 16px; height: 16px; flex-shrink: 0; }
.side-search .kbd { margin-left: auto; font: 600 10.5px var(--font); background: rgba(255,255,255,.08); border: 0; color: #9AA1B0; border-radius: 5px; padding: 2px 6px; }
.side-link { position: relative; }
html.sb-collapsed .side-search { justify-content: center; padding: 0; }
html.sb-collapsed .side-search .label, html.sb-collapsed .side-search .kbd { display: none; }
/* Daraltılmış menüde bildirim sayısı ikonun köşesinde nokta olarak */
html.sb-collapsed .side-link .count[style*="flex"] { display: flex !important; position: absolute; top: 6px; right: 14px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 9.5px; }
@media (max-width: 1023px) and (min-width: 768px) {
  .side-search { justify-content: center; padding: 0; }
  .side-search .label, .side-search .kbd { display: none; }
  .side-link .count[style*="flex"] { display: flex !important; position: absolute; top: 6px; right: 14px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 9.5px; }
}

/* ---------- Pano v2: kategori sütunları, liste, hızlı kapatma ---------- */
.board-page { padding-top: 22px; }
.board-page [hidden] { display: none !important; }
.board-welcome { overflow: hidden; max-height: 120px; transition: max-height .6s ease, opacity .5s ease, margin .6s ease; }
.board-welcome.is-gone { max-height: 0; opacity: 0; margin: 0 !important; }
.bbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.bbar .spacer { flex: 1; }
.bfilters { display: inline-flex; background: var(--surface); border: 1px solid var(--gray-100); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.bfilters a { height: 30px; padding: 0 12px; border-radius: 8px; font: 600 13px var(--font); color: var(--gray-600); display: inline-flex; align-items: center; gap: 6px; }
.bfilters a svg.lucide { width: 15px; height: 15px; }
.bfilters a b { font-weight: 700; color: var(--gray-400); font-size: 12px; }
.bfilters a:hover { background: var(--gray-100); color: var(--gray-900); }
.bfilters a.t-red svg, .bfilters a.t-red b { color: var(--danger-text); }
.bfilters a.t-orange svg { color: var(--warning, #FF9500); }
.bfilters a.t-wait svg, .bfilters a.t-wait b { color: #B26B00; }
.bfilters a.is-on { background: var(--gray-900); color: var(--on-strong); }
.bfilters a.is-on svg { color: var(--on-strong); }
.bfilters a.is-on b { color: var(--on-strong); opacity: .65; }
.bday { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 10px; background: var(--efelab-blue-500); color: #fff; font: 600 12.5px var(--font); }
.bday svg.lucide { width: 14px; height: 14px; }
.bghost { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--gray-100); background: var(--surface); font: 600 13px var(--font); color: var(--gray-800); cursor: pointer; }
.bghost svg.lucide { width: 15px; height: 15px; }
.bcolmenu { position: relative; }
.bpop { position: absolute; right: 0; top: 42px; z-index: 30; width: 280px; background: var(--surface); border: 1px solid var(--gray-100); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 6px; }
.bpop-h, .bpop-f { font-size: 11.5px; color: var(--gray-500); padding: 6px 8px; }
.bpop-f { border-top: 1px solid var(--gray-100); margin-top: 4px; }
.bpoprow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; }
.bpoprow:hover { background: var(--gray-100); }
.bpoprow .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.bpoprow .nm { flex: 1; }
.bpoprow b { color: var(--gray-400); font-size: 12px; }
.bpoprow em { font-style: normal; background: var(--danger); color: #fff; font-size: 10.5px; border-radius: 99px; padding: 0 6px; }
.bpoprow .eye { border: 0; background: none; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: var(--gray-500); cursor: pointer; }
.bpoprow .eye svg.lucide { width: 15px; height: 15px; }
.bpoprow.is-off .nm, .bpoprow.is-off b { opacity: .4; text-decoration: line-through; }
.bseg { display: inline-flex; background: var(--surface); border: 1px solid var(--gray-100); border-radius: 10px; padding: 3px; }
.bseg button { border: 0; background: none; height: 28px; width: 34px; border-radius: 7px; color: var(--gray-600); cursor: pointer; display: grid; place-items: center; }
.bseg button svg.lucide { width: 16px; height: 16px; }
.bseg button.is-on { background: var(--gray-900); color: var(--on-strong); }

.bwrap { position: relative; }
.bboard { display: flex; gap: 14px; overflow-x: auto; align-items: flex-start; padding-bottom: 12px; scroll-snap-type: x proximity; }
.bcol { flex: 1 1 0; min-width: 260px; scroll-snap-align: start; position: relative; }
.bcol.is-off { display: none; }
.bcol .board-col-head { flex-wrap: nowrap; min-width: 0; }
.bcol .board-col-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bcol[draggable="true"] .board-col-head { cursor: grab; }
.bcol.is-dragging { opacity: .4; }
.bcol.is-drop-before { box-shadow: inset 4px 0 0 var(--efelab-blue-500); }
.bcol.is-drop-after { box-shadow: inset -4px 0 0 var(--efelab-blue-500); }
.bcol.is-flash { box-shadow: inset 0 0 0 3px var(--efelab-blue-500); transition: box-shadow .3s; }
.btools { position: absolute; right: 10px; top: 12px; display: flex; gap: 4px; background: var(--col-bg); padding-left: 4px; opacity: 0; transition: opacity .15s; }
.bcol:hover .btools, .bcol:focus-within .btools { opacity: 1; }
.btools button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--surface); color: var(--gray-600); display: grid; place-items: center; cursor: pointer; }
.btools button:hover { color: var(--gray-900); }
.btools button svg.lucide { width: 15px; height: 15px; }
@media (hover: none) { .btools { opacity: 1; position: static; margin-left: auto; background: none; } }
.blate { background: var(--danger-bg); color: var(--danger-text); font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 8px; }
.bcol .board-col-hint { padding-left: 43px; }
.bcol.is-min { flex: 0 0 54px; min-width: 54px; cursor: pointer; }
.bcol.is-min .board-col-head { writing-mode: vertical-rl; padding: 8px 4px; gap: 10px; }
.bcol.is-min .board-col-head b { overflow: visible; }
.bcol.is-min .icontile { writing-mode: horizontal-tb; }
.bcol.is-min .board-col-list, .bcol.is-min .btools, .bcol.is-min .board-col-hint { display: none; }
.barrow { position: absolute; top: 8px; z-index: 5; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gray-100); background: var(--surface); box-shadow: var(--shadow-md); display: none; place-items: center; cursor: pointer; color: var(--gray-800); }
.barrow svg.lucide { width: 18px; height: 18px; }
.barrow.is-left { left: -12px; } .barrow.is-right { right: -12px; }
.bwrap.can-left .barrow.is-left, .bwrap.can-right .barrow.is-right { display: grid; }
.bwrap.can-right::after { content: ""; position: absolute; top: 0; right: 0; bottom: 12px; width: 40px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--gray-50)); }
.bsub { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; padding: 4px 4px 0; }
.bsub svg.lucide { width: 14px; height: 14px; }
.bsub b { background: var(--surface); border-radius: 99px; padding: 0 7px; color: var(--gray-600); }
.bsub.is-wait { color: #B26B00; }

.bcard-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.bcard-top .ecard-title { flex: 1; margin: 4px 0 0; }
.bcard-top .pill { flex-shrink: 0; }
.bcard-av { width: 30px; height: 30px; font-size: 11px; }
.avatar--logo { background: #1D1D1F; color: #FBDC08; font-weight: 800; }
.bcard .ecard-foot { gap: 12px; }
.bcard-stack { margin-left: auto; display: flex; justify-content: flex-end; }
.bcard-stack .avatar { box-shadow: 0 0 0 2px #fff; }
.bcard-stack .avatar + .avatar { margin-left: -7px; }
.bcard-done { margin-left: 8px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gray-200); background: var(--surface); color: var(--gray-400); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: all .15s; opacity: 0; }
.bcard-done svg.lucide { width: 15px; height: 15px; }
.bcard:hover .bcard-done, .btable tr:hover .bcard-done, .bcard-done:focus-visible { opacity: 1; }
.bcard-done:hover { background: var(--success); border-color: var(--success); color: #fff; }
.bcard-done.is-locked { cursor: not-allowed; }
.bcard-done.is-locked:hover { background: var(--gray-100); border-color: var(--gray-200); color: var(--gray-500); }
@media (hover: none) { .bcard-done { opacity: 1; } }
.bcard-ship { margin-left: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--gray-500); white-space: nowrap; }
.bcard-ship svg.lucide { width: 13px; height: 13px; }
.is-closing { transition: opacity .35s, transform .35s, max-height .4s .2s, margin .4s .2s, padding .4s .2s; opacity: 0; transform: scale(.96); max-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; margin: 0 !important; overflow: hidden; }
tr.is-closing { display: none; }
.is-done-flash { box-shadow: inset 0 0 0 2px var(--success) !important; background: #F1FBF4 !important; }
.bnotepop { position: fixed; z-index: 60; width: 300px; background: var(--surface); border: 1px solid var(--gray-100); border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.18); padding: 12px; }
.bnotepop b { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 8px; }
.bnotepop b svg.lucide { width: 15px; height: 15px; color: var(--efelab-blue-500); }
.bnotepop textarea { width: 100%; }
.bnp-f { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.btoast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--gray-900); color: #fff; border-radius: 12px; padding: 10px 12px 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
.btoast[hidden], .bnotepop[hidden] { display: none; }
.btoast svg.lucide { width: 17px; height: 17px; color: #4ADE80; flex-shrink: 0; }
.btoast.is-warn svg.lucide { color: #FBBF24; }
.btoast button { border: 0; background: rgba(255,255,255,.12); color: #fff; font: 600 12.5px var(--font); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.btable { width: 100%; border-collapse: collapse; font-size: 13px; }
.btable th { text-align: left; padding: 11px 14px; font-size: 11.5px; color: var(--gray-500); font-weight: 600; border-bottom: 1px solid var(--gray-100); white-space: nowrap; }
.btable th a { color: inherit; }
.btable th a.is-sorted { color: var(--gray-900); }
.btable td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.btable tr:hover td { background: var(--surface-2); }
.btable .btitle { font-weight: 600; color: var(--gray-900); }
.btable .t-late { color: var(--danger-text); font-weight: 600; }
.btable .bcell-done { width: 44px; text-align: right; }
.new-more summary { cursor: pointer; font-size: 12.5px; color: var(--gray-500); font-weight: 600; margin-bottom: 8px; }
@media (max-width: 767px) {
  .bcol { flex: 0 0 86vw; min-width: 0; scroll-snap-align: center; }
  .bboard { margin: 0 -16px; padding: 0 16px 8px; scroll-snap-type: x mandatory; }
  .barrow { display: none !important; }
  .bfilters { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
}

/* Bildirim tablosu */
.ntable td b { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.ntable td small { display: block; color: var(--gray-500); font-size: 11.5px; margin-top: 2px; }
.ntable .c { text-align: center; width: 90px; }
.ntable input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--efelab-blue-500); }

.bcard .ecard-foot > span:not(.bcard-stack) { white-space: nowrap; }

/* Olay geçmişi: varsayılan kapalı */
.hist > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.hist > summary::-webkit-details-marker { display: none; }
.hist:not([open]) > summary { border-bottom: 0; }
.hist .hist-chev { width: 18px; height: 18px; color: var(--gray-500); transition: transform .2s; }
.hist[open] .hist-chev { transform: rotate(180deg); }
.hist > summary h3 .tag { margin-left: 6px; }

/* E-posta şablonu önizlemesi */
.mailprev { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; }
.mailprev-list { display: flex; flex-direction: column; gap: 2px; max-height: 720px; overflow-y: auto; }
.mailprev-list button { text-align: left; border: 0; background: none; border-radius: 10px; padding: 9px 11px; cursor: pointer; font: inherit; color: inherit; }
.mailprev-list button:hover { background: var(--gray-100); }
.mailprev-list button.is-on { background: var(--efelab-blue-50); }
.mailprev-list b { display: block; font-size: 13px; }
.mailprev-list small { display: block; color: var(--gray-500); font-size: 11.5px; line-height: 1.35; }
.mailprev-view { border: 1px solid var(--gray-100); border-radius: 14px; overflow: hidden; background: #F5F5F7; display: flex; flex-direction: column; }
.mailprev-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface); border-bottom: 1px solid var(--gray-100); }
.mailprev-view iframe { width: 100%; height: 720px; border: 0; background: #F5F5F7; }
@media (max-width: 900px) { .mailprev { grid-template-columns: 1fr; } .mailprev-list { flex-direction: row; overflow-x: auto; } .mailprev-list button { min-width: 180px; } }

.bcard-top .src-badge { flex-shrink: 0; margin-top: 3px; }

/* Tedarikçiden beklenen */
.incoming { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--efelab-blue-600); background: var(--efelab-blue-50); border-radius: 7px; padding: 2px 7px; }
.incoming svg.lucide { width: 13px; height: 13px; }
.incoming.is-late { color: var(--warning-text); background: var(--warning-bg); }
.incoming-sup { display: block; color: var(--gray-500); font-size: 11px; margin-top: 2px; }

/* Takvimde planlı tekrarlayan görev (henüz açılmamış) */
.cal-planned { background: transparent !important; color: var(--c) !important; border: 1px dashed var(--c); text-decoration: none; }
.cal-planned:hover { background: color-mix(in srgb, var(--c) 10%, transparent) !important; }

.cal-bday { background: #FFF1F6 !important; color: #B0275E !important; font-weight: 600; }

/* Sütun araçları her zaman görünür; + belirgin, ✓ gri görünür */
.btools { position: static; opacity: 1; margin-left: auto; background: none; padding-left: 0; flex-shrink: 0; align-items: center; gap: 6px; }
.btools button[data-new] { width: 34px; height: 34px; border-radius: 10px; background: var(--efelab-blue-500); color: #fff; box-shadow: 0 2px 6px rgba(0,113,227,.3); }
.btools button[data-new] svg.lucide { width: 19px; height: 19px; stroke-width: 2.4; }
.btools button[data-new]:hover { background: var(--efelab-blue-600); color: #fff; transform: translateY(-1px); }
.btools button[data-min] { width: 28px; height: 28px; background: transparent; color: var(--gray-400); }
.btools button[data-min]:hover { background: var(--surface); color: var(--gray-800); }
.bcard-done { opacity: 1; }
.bcard-done:not(.is-locked) { border-color: var(--gray-300); color: var(--gray-500); }
.bcard-done:not(.is-locked):hover { background: var(--success); border-color: var(--success); color: #fff; }
.bcard-done.is-locked { opacity: .7; }

.close-map { display: block; width: 100%; height: 190px; border: 0; }


/* ============ Karanlık tema (html[data-theme="dark"]) ============ */
html[data-theme="dark"] {
  --gray-50: #0F1115;
  --gray-100: #262A31;
  --gray-200: #343942;
  --gray-300: #4A505A;
  --gray-400: #6B717C;
  --gray-500: #8B919B;
  --gray-600: #A4AAB3;
  --gray-800: #D5D8DD;
  --gray-900: #F2F3F5;

  --surface: #181B21;
  --surface-2: #1D2027;
  --col-bg: #13161B;
  --on-strong: #0F1115;

  --efelab-blue-50: #12263F;
  --efelab-blue-100: #173152;
  --efelab-blue-500: #3B9BFF;
  --efelab-blue-600: #5AAEFF;
  --efelab-blue-700: #7DBFFF;

  --success-text: #4ADE80;
  --success-bg: #12301D;
  --warning-text: #FFB547;
  --warning-bg: #33230D;
  --danger-text: #FF6B61;
  --danger-bg: #3A1614;
  --info-bg: #1F1E3D;

  --sidebar-bg: #0A0C10;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.45);
  --shadow-md: 0 8px 24px -6px rgba(0,0,0,.55);
  --shadow-lg: 0 20px 40px -12px rgba(0,0,0,.7);
}
html[data-theme="dark"] .ecard { border-color: var(--gray-100); }
html[data-theme="dark"] .wday.is-off { background: repeating-linear-gradient(135deg, #16191E 0 8px, #1A1D23 8px 16px); }
html[data-theme="dark"] .topbar { background: rgba(15,17,21,.82); }
html[data-theme="dark"] .tabbar { background: rgba(24,27,33,.94); }
.topbar-brand .brand-on-dark { display: none; }
html[data-theme="dark"] .topbar-brand .brand-on-light { display: none; }
html[data-theme="dark"] .topbar-brand .brand-on-dark { display: block; }
html[data-theme="dark"] .flatpickr-calendar { background: var(--surface); box-shadow: var(--shadow-lg); }
html[data-theme="dark"] .flatpickr-day, html[data-theme="dark"] .flatpickr-month,
html[data-theme="dark"] .flatpickr-current-month, html[data-theme="dark"] span.flatpickr-weekday { color: var(--gray-900); fill: var(--gray-900); }
html[data-theme="dark"] .flatpickr-day:hover { background: var(--gray-100); border-color: var(--gray-100); }

/* Tema düğmesi */
.theme-toggle .ico-dark { display: none; }
html[data-theme="dark"] .theme-toggle .ico-dark { display: inline; }
html[data-theme="dark"] .theme-toggle .ico-light { display: none; }

/* Karttan gelinen bölüm (#ata, #devret) vurgulanır */
.panel:target { scroll-margin-top: 80px; box-shadow: 0 0 0 3px var(--efelab-blue-100), var(--shadow-sm); }

/* Boş ekran: ikon, mesaj ve sonraki adım */
.empty-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 14px; }
.empty-cta .em { font-size: 34px; line-height: 1; }
.empty-cta b { font: 700 14.5px var(--font-display); color: var(--gray-900); }
.empty-cta small { color: var(--gray-500); font-size: 12.5px; }
.bfilters a.t-green svg, .bfilters a.t-green b { color: var(--success-text); }

/* Planlama yardımı (Sorumlu + Termin Ata) */
.plan-help { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.plan-lbl { font-size: 11.5px; color: var(--gray-500); font-weight: 600; margin-top: 2px; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 10px; border: 1px solid var(--gray-100);
  font: 500 12.5px var(--font-body); background: var(--surface); color: var(--gray-900); cursor: pointer; }
.pick button:hover { border-color: var(--gray-300); }
.pick button.on { border-color: var(--efelab-blue-500); background: var(--efelab-blue-50); color: var(--efelab-blue-600); }
.pick button svg.lucide { width: 14px; height: 14px; }
.pick small { color: var(--gray-500); font-weight: 500; }
.pick .avatar--sm { width: 20px; height: 20px; font-size: 9px; }
/* Sipariş yolculuğu */
.journey { display: flex; padding: 16px 20px 12px; }
.journey-step { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--gray-500); }
.journey-step:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--gray-200); }
.journey-step.done:not(:last-child)::after, .journey-step.warn:not(:last-child)::after { background: var(--efelab-blue-500); }
.journey-dot { width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; background: var(--gray-100); color: var(--gray-400); }
.journey-step.done .journey-dot { background: var(--efelab-blue-500); color: #fff; }
.journey-step.warn .journey-dot { background: var(--warning); color: #fff; }
.journey-dot svg.lucide { width: 15px; height: 15px; }
.journey-step b { display: block; color: var(--gray-900); font-size: 12.5px; }

/* Müşteri kartı */
.cust-av { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font: 800 18px var(--font-display); color: var(--efelab-blue-600); background: var(--efelab-blue-50); flex-shrink: 0; }
.tag[data-href] { cursor: pointer; }
.tag[data-href]:hover { border-color: var(--efelab-blue-200); color: var(--efelab-blue-600); }
.bfilters a.is-on.t-green b, .bfilters a.is-on.t-green svg, .bfilters a.is-on.t-red b, .bfilters a.is-on.t-red svg, .bfilters a.is-on.t-wait b, .bfilters a.is-on.t-wait svg { color: var(--on-strong); }

/* Notlar */
.note-form { display: flex; gap: 8px; align-items: center; }
.note-form input { flex: 1; height: 36px; }
.note-form .btn { height: 36px; flex-shrink: 0; }
.note-item { display: flex; gap: 10px; padding: 12px 0 0; margin-top: 12px; border-top: 1px solid var(--gray-100); }
.note-meta { font-size: 12px; color: var(--gray-500); }
.note-meta b { color: var(--gray-800); font-weight: 600; }
.note-text { font-size: 13.5px; line-height: 1.55; margin-top: 2px; color: var(--gray-900); }

/* Sevkiyat */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.kv > span:nth-child(even) { text-align: right; }
.dlv-edit { margin-top: 12px; }
.dlv-edit summary { cursor: pointer; font-size: 12.5px; color: var(--efelab-blue-600); font-weight: 600; }
.bcard-ship.is-awaiting { color: var(--warning-text); font-weight: 600; }
.bcard-ship.is-in_transit { color: var(--efelab-blue-600); font-weight: 600; }

/* Katlanır panel (details.panel) */
.fold-panel > summary { list-style: none; cursor: pointer; }
.fold-panel > summary::-webkit-details-marker { display: none; }
.fold-panel:not([open]) > summary { border-bottom: 0; }
.fold-hint { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.fold-hint svg.lucide { width: 16px; height: 16px; transition: transform .2s; }
.fold-panel[open] .fold-hint svg.lucide { transform: rotate(180deg); }

/* Giriş ekranı: telefonda üst/alt güvenli alan ve kaydırma taşmasında beyaz görünmesin */
html:has(.login-shell), html:has(.login-shell) body { background: var(--sidebar-bg); }
.login-shell { min-height: 100dvh; padding-top: max(24px, env(safe-area-inset-top)); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.login-lockup { max-width: 100%; object-fit: contain; object-position: left center; }

/* Parçalı sipariş */
.order-table tr.is-other-part td { opacity: .45; }
.datatable tr.is-current td { background: var(--efelab-blue-50); }
/* İrsaliyesi kesilmemiş planlı Logo işi: taralı ve soluk */
.ecard.is-prewaybill { background: repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--gray-50) 10px 20px); opacity: .78; }
.ecard.is-prewaybill:hover { opacity: 1; }
.bcard-ship.is-pre { color: var(--gray-500); font-weight: 600; }
.part-tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--info-bg); color: var(--info); }

/* Uygulama işareti (üç nokta): sol üstte ortalı, yazısız */
.brand-row .brand { width: 100%; justify-content: center; }
.brand-mark { height: 34px; width: auto; max-width: 150px; object-fit: contain; display: block; margin: 0 auto; }
html.sb-collapsed .brand-mark { height: 18px; max-width: 52px; }
.topbar-brand .brand-mark { height: 24px; margin: 0; }

/* Kurum logosu */
.cust-logo { object-fit: contain; background: #fff; padding: 4px; border: 1px solid var(--gray-100); }
.inst-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid var(--gray-100); padding: 2px; flex-shrink: 0; }
.tag-logo { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; background: #fff; flex-shrink: 0; }
.ev-inst-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--gray-100); padding: 3px; }

/* Kurum logosu: daha büyük ve oranı korunur */
.tag-logo { width: auto; height: 22px; max-width: 72px; border-radius: 4px; object-fit: contain; }
.tag:has(.tag-logo) { padding: 3px 9px 3px 5px; gap: 7px; }
.ev-inst-logo { width: auto; height: 46px; max-width: 120px; }
.inst-logo { width: auto; height: 36px; max-width: 90px; }
.cust-logo { width: auto; max-width: 140px; }
/* Kurum formu: logo satırı */
.logo-field > label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.logo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-prev { height: 52px; min-width: 52px; max-width: 160px; border-radius: 12px; border: 1px solid var(--gray-100); background: #fff;
  display: grid; place-items: center; padding: 4px 8px; color: var(--gray-300); }
.logo-prev img { max-height: 44px; max-width: 144px; object-fit: contain; }
.logo-clear { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-600); }

/* Profil fotoğrafı önizlemesi: yuvarlak */
.avatar-prev { width: 52px; min-width: 52px; height: 52px; padding: 0; border-radius: 50%; overflow: hidden; }
.avatar-prev img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }

/* Kargo firması logosu */
.carrier-logo { width: 18px; height: 18px; border-radius: 50%; object-fit: contain; vertical-align: -4px; margin-right: 4px; flex-shrink: 0; }
.carrier-logo-wide { height: 16px; width: auto; flex-shrink: 0; }

/* İş kartında kargo durumu (kargoyla giden işler) */
.cargo-line { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 6px 9px; border-radius: 9px; background: rgba(0,113,227,.12); color: #2b7de0; font-size: 12px; font-weight: 600; min-width: 0; }
.cargo-line span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cargo-line small { font-weight: 500; opacity: .7; flex-shrink: 0; }
.cargo-line svg.lucide { width: 14px; height: 14px; flex-shrink: 0; }
.cargo-line.is-done { background: rgba(52,199,89,.12); color: #1f8a3c; }
.cargo-line .carrier-logo { margin-right: 0; }

/* Seçenek resmi / simgesi (ör. kargo firması logosu) */
.sel-img { width: 20px; height: 20px; border-radius: 50%; object-fit: contain; margin-right: 8px; vertical-align: -5px; background: #fff; }
.sel-ico { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; color: var(--gray-500); }
svg.sel-ico { display: inline-block; }

/* Kart başlığında Logo sipariş no */
.bcard-ordno { font: 600 12px var(--font-mono, ui-monospace, monospace); color: var(--gray-500); white-space: nowrap; margin-left: 4px; }

/* Sevk uyarısı: planlanmadan irsaliye (kırmızı) / irsaliyesi kesilmemiş, termini gelmiş (turuncu) */
.has-ship-ov { position: relative; overflow: hidden; }
.has-ship-ov > *:not(.ship-ov):not(.bcard-top) { filter: blur(2.6px) grayscale(.35); opacity: .5; pointer-events: none; }  /* başlık satırı (kurum + sipariş no) net kalır */
.ship-ov { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; padding: 10px; }
.ship-ov-ico { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,59,48,.10); animation: shipglow 1.8s ease-in-out infinite; }
.ship-ov-ico svg { width: 32px; height: 32px; color: #ff3b30; filter: drop-shadow(0 0 6px rgba(255,59,48,.7)); }
.ship-ov-ico::after { content: ""; position: absolute; width: 50px; height: 4px; border-radius: 3px; background: #ff3b30; transform: rotate(-38deg); box-shadow: 0 0 8px rgba(255,59,48,.9); }
.ship-ov b { font-weight: 700; font-size: 13px; color: #d70015; }
.ship-ov small { font-size: 11.5px; color: #6e6e73; max-width: 240px; line-height: 1.35; }
.ship-ov-btn { margin-top: 2px; font-weight: 600; font-size: 12px; padding: 6px 12px; border-radius: 9px; background: #fff; border: 1px solid rgba(255,59,48,.35); color: #d70015; box-shadow: 0 2px 8px rgba(255,59,48,.15); }
.ship-ov.is-amber .ship-ov-ico { background: rgba(255,149,0,.12); animation-name: shipglowA; }
.ship-ov.is-amber .ship-ov-ico svg { color: #ff9500; filter: drop-shadow(0 0 6px rgba(255,149,0,.7)); }
.ship-ov.is-amber .ship-ov-ico::after { display: none; }  /* belge simgesinde çizgi yok */
.ship-ov.is-amber b, .ship-ov.is-amber .ship-ov-btn { color: #c76a00; }
.ship-ov.is-amber .ship-ov-btn { border-color: rgba(255,149,0,.4); }
@keyframes shipglow { 0%,100% { box-shadow: 0 0 0 0 rgba(255,59,48,.35), 0 0 14px rgba(255,59,48,.35); } 50% { box-shadow: 0 0 0 10px rgba(255,59,48,0), 0 0 26px rgba(255,59,48,.55); } }
@keyframes shipglowA { 0%,100% { box-shadow: 0 0 0 0 rgba(255,149,0,.35), 0 0 14px rgba(255,149,0,.35); } 50% { box-shadow: 0 0 0 10px rgba(255,149,0,0), 0 0 26px rgba(255,149,0,.55); } }
@media (prefers-reduced-motion: reduce) { .ship-ov-ico { animation: none; } }

/* Kırmızı uyarı: yalnızca kamyon (tam ortada) ve altında Sorumlu ata */
.ship-ov.is-min { gap: 0; }
.ship-ov.is-min .ship-ov-btn.is-below { position: absolute; top: calc(50% + 40px); left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; }

/* Kamyon + düğme birlikte (grup olarak) kartın dikey ortasında */
.ship-ov.is-min { padding: 0; gap: 10px; }
.ship-ov.is-min .ship-ov-btn.is-below { position: static; transform: none; }

/* Detaylar paneli: katlanır ek bilgiler */
.meta-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--gray-600); }
.meta-more > summary::-webkit-details-marker { display: none; }
.meta-more > summary:hover { color: var(--gray-900); }
.meta-more .hist-chev { width: 16px; height: 16px; color: var(--gray-500); transition: transform .2s; }
.meta-more[open] .hist-chev { transform: rotate(180deg); }

/* Takvim: ay kartı + sağda seçili gün ve yaklaşanlar */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.cal-card { padding: 16px; }
.cal-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-bar h2 { margin: 0; font-size: 18px; }
.cal-card .cal { border-collapse: separate; border-spacing: 6px; margin: 0 -6px; width: calc(100% + 12px); }
.cal-card .cal th { background: transparent; border: 0; padding: 6px 8px; font-size: 11px; }
.cal-card .cal td { border: 0; border-radius: 12px; background: var(--surface-2); height: 104px; padding: 8px; position: relative; }
.cal-card .cal td.is-out { background: transparent; opacity: .55; }
.cal-card .cal td.is-holiday { background: color-mix(in srgb, var(--danger-text, #C0392B) 9%, var(--surface-2)); }
.cal-card .cal td.is-today { box-shadow: inset 0 0 0 1.5px var(--efelab-blue-500); }
.cal-card .cal td.is-selected { box-shadow: inset 0 0 0 2px var(--efelab-blue-500); background: color-mix(in srgb, var(--efelab-blue-500) 6%, var(--surface-2)); }
.cal-card .cal-day { text-decoration: none; color: inherit; }
.cal-card .cal-day:hover { background: var(--gray-100); }
.cal-card .cal td.is-today .cal-day { background: var(--efelab-blue-500); color: #fff; }
.cal-more { display: block; text-decoration: none; }
.cal-side { display: flex; flex-direction: column; gap: 16px; }
.cal-day-card, .cal-up-card { padding: 16px; }
.cal-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--efelab-blue-500); }
.cal-day-card h2 { margin: 2px 0 10px; font-size: 24px; }
.cal-up-card h3 { margin: 0 0 8px; font-size: 15px; }
.cal-list { display: flex; flex-direction: column; gap: 8px; }
.cal-item { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--c); text-decoration: none; color: inherit; }
a.cal-item:hover, a.cal-up:hover { background: var(--gray-100); }
.cal-time { min-width: 38px; font-size: 12px; font-weight: 600; color: var(--gray-500); font-variant-numeric: tabular-nums; }
.cal-item-body { display: flex; flex-direction: column; min-width: 0; }
.cal-item-body b { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.cal-item-body small { font-size: 12px; color: var(--gray-500); }
.cal-up { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; text-decoration: none; color: inherit; }
.cal-badge { flex: none; width: 40px; padding: 4px 0; text-align: center; border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); display: flex; flex-direction: column; line-height: 1.1; }
.cal-badge i { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; }
.cal-badge b { font-size: 16px; }
.cal-empty { display: flex; align-items: center; gap: 8px; padding: 12px 4px; font-size: 13px; color: var(--gray-500); }
@media (max-width: 1100px) { .cal-layout { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .cal-card .cal td { height: 64px; padding: 4px; } .cal-card { padding: 10px; } .cal-card .cal { border-spacing: 3px; margin: 0 -3px; width: calc(100% + 6px); } }

/* ---- Olay detayı: satır içi atama, yatay sevkiyat, kalem listesi, Detaylar paneli */
.pa-table .pa-row[data-selectable] { cursor: pointer; }
.pa-table .pa-row[data-selectable]:hover td { background: var(--gray-50); }
.pa-go { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--gray-500); }
.pa-go:hover { background: rgba(0,113,227,.08); color: var(--efelab-blue-600, #0071e3); }
table.pa-table tbody tr.is-current td { background: rgba(0,113,227,.09); }
table.pa-table tbody tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--efelab-blue-500); }
.pa-hint { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--gray-400); }
.pa-assign { display: grid; grid-template-columns: minmax(170px, 240px) 130px 18px; gap: 6px; align-items: center; }
.pa-assign.is-ro { grid-template-columns: minmax(170px, 240px) 130px; }
.pa-who { display: flex; align-items: center; gap: 2px; min-width: 0; font-weight: 600; }
.pa-assign.is-ro .pa-who { gap: 8px; padding-left: 4px; }
.pa-pic { display: inline-flex; flex-shrink: 0; padding-left: 4px; }
.pa-pic .avatar--sm { width: 26px; height: 26px; }
.pa-who .sel { flex: 1; min-width: 0; }
.pa-who .sel-btn { height: 34px; border-color: transparent; background: transparent; box-shadow: none; padding: 0 8px; font-weight: 600; font-size: 13.5px; }
.pa-who .sel-btn:hover, .pa-who .sel.is-open .sel-btn { background: rgba(0,113,227,.07); border-color: transparent; box-shadow: none; }
.pa-who .sel-btn .sel-img { display: none; }
.pa-who .sel-chev { color: var(--gray-400); }
.pa-when { position: relative; }
.pa-when input, .pa-when input.flatpickr-input[readonly] { height: 34px; width: 100%; border-color: transparent; background: transparent; box-shadow: none; padding: 0 8px; font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; cursor: pointer; }
.pa-when input:hover, .pa-when input:focus { background: rgba(0,113,227,.07); border-color: transparent; box-shadow: none; }
.pa-when input::placeholder { color: var(--gray-400); font-weight: 500; }
.pa-when .date-hint { display: none !important; }
.pa-assign.is-overdue .pa-when input { color: var(--danger-text); }
.pa-when.need { border-radius: 10px; animation: paNeed 1s ease-in-out 3; }
@keyframes paNeed { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,149,0,0); } 50% { box-shadow: 0 0 0 3px rgba(255,149,0,.55); } }
.pa-ok { color: var(--success, #1f8a3c); font-weight: 800; opacity: 0; transition: opacity .2s; }
.pa-ok.on { opacity: 1; }
.pa-assign.is-busy { opacity: .6; pointer-events: none; }
.pa-help { padding: 4px 18px 14px; font-size: 13px; }
.pa-help > summary { cursor: pointer; color: var(--gray-500); font-weight: 600; padding: 6px 0; }
.pa-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #1d1d1f; color: #fff; border-radius: 12px; padding: 10px 12px 10px 16px; display: flex; align-items: center; gap: 14px; font-size: 13.5px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .2s, transform .2s; z-index: 1100; overflow: hidden; max-width: calc(100vw - 32px); }
.pa-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.pa-toast.is-err { background: var(--danger, #d92d20); }
.pa-toast button { background: transparent; border: 0; color: #4da3ff; font: inherit; font-weight: 700; cursor: pointer; padding: 4px 6px; }
.pa-toast i.bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #4da3ff; transform-origin: left; }

.shp-row { display: flex; align-items: stretch; flex-wrap: wrap; }
.shp-cell { padding: 12px 18px; border-right: 1px solid var(--gray-100); min-width: 0; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.shp-cell small { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.shp-cell b { font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.shp-cell b.mono, .shp-cell .mono { font-size: 12.5px; }
.shp-cell .pill { align-self: flex-start; }
.shp-sub { font-size: 12px; color: var(--gray-500); }
.shp-note { flex: 1; border-right: 0; font-size: 12.5px; color: var(--gray-500); min-width: 200px; }
.shp-edit { border-top: 1px solid var(--gray-100); padding: 0 18px; font-size: 13px; }
.shp-edit:empty { display: none; }
.shp-edit .dlv-edit > summary { padding: 9px 0; display: inline-flex; gap: 6px; align-items: center; }
.shp-edit .dlv-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 12px; }
.shp-edit .dlv-form > * { flex: 1 1 200px; width: auto; }
.shp-edit .dlv-form > button { flex: 0 0 auto; }
.shp-edit .dlv-form [hidden] { display: none; }

.oi-tools { display: flex; gap: 8px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--gray-100); flex-wrap: wrap; }
.oi-chip { border: 1px solid var(--gray-200); background: var(--surface); border-radius: 99px; padding: 5px 11px; font-size: 12px; font-weight: 600; color: var(--gray-600); cursor: pointer; }
.oi-chip.on { background: rgba(0,113,227,.12); border-color: rgba(0,113,227,.45); color: var(--efelab-blue-600, #0071e3); }
.oi-search { margin-left: auto; max-width: 240px; height: 32px !important; }
.oi-scroll { max-height: 520px; overflow: auto; }
.oi-scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--gray-50); }
.wb-table .wb-grp td { background: rgba(0,113,227,.06); font-size: 12.5px; }
.wb-table .wb-grp td > * { margin-right: 14px; }
.wb-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.dt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .dt-grid { grid-template-columns: minmax(0, 1fr); } }
.dt-scrim { position: fixed; inset: 0; background: rgba(10,14,25,.28); z-index: 900; }
.dt-scrim[hidden] { display: none; }
.dt-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); background: var(--bg, var(--gray-50)); box-shadow: -12px 0 40px rgba(0,0,0,.18); transform: translateX(105%); transition: transform .22s ease; z-index: 901; display: flex; flex-direction: column; visibility: hidden; }
.dt-drawer.open { transform: none; visibility: visible; }
.dt-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--gray-100); background: var(--surface); }
.dt-drawer-head h3 { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 15px; }
.dt-drawer-body { padding: 16px; overflow: auto; flex: 1; }
table.pa-table tbody tr.is-current.is-only td { background: transparent; box-shadow: none; }
.wpop-item.is-closed .t { color: var(--gray-500); font-weight: 500; text-decoration: line-through; text-decoration-color: var(--gray-300); }
.wpop-item .wpop-ok { width: 12px; height: 12px; color: var(--success); flex-shrink: 0; stroke-width: 3; }
.wpop-no { color: var(--gray-500); font-weight: 500; font-size: 11px; }

.oi-table { table-layout: fixed; }
.oi-table td, .oi-table th { padding: 10px 16px; font-size: 13px; vertical-align: middle; }
.oi-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.oi-table td.oi-name { white-space: normal; line-height: 1.35; font-weight: 500; }
.oi-table td.oi-name small { display: block; font: 500 11.5px var(--font-mono, ui-monospace, monospace); color: var(--gray-500); margin-top: 3px; }
.oi-unit { font-size: 11px; text-transform: uppercase; }
.oi-table tr.oi-grp td { background: rgba(0,113,227,.05); font-weight: 700; font-size: 12.5px; }
.oi-table tr.oi-grp.is-sel td { background: rgba(0,113,227,.12); }
.oi-table tr.is-dim td { opacity: .45; }
.oi-bar { height: 4px; border-radius: 3px; background: var(--gray-100); overflow: hidden; margin-top: 5px; margin-left: auto; }
.oi-bar i { display: block; height: 100%; background: var(--success, #34c759); }
.oi-st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.oi-st svg.lucide { width: 13px; height: 13px; }
.oi-st.ok { background: rgba(52,199,89,.14); color: var(--success-text, #1f8a3c); }
.oi-st.no { background: rgba(255,59,48,.12); color: var(--danger-text, #c0262d); }
.oi-st.part { background: rgba(255,149,0,.14); color: var(--warning-text, #b26a00); }
.oi-st.ship { background: var(--gray-100); color: var(--gray-600); }
.oi-table td .incoming { margin-top: 4px; display: flex; }

/* Kargo parçası: otomatik takip etiketi */
.pa-auto { display: flex; align-items: center; gap: 8px; color: var(--gray-600); font-size: 13px; }
.pa-auto[hidden], .pa-assign[hidden] { display: none; }
.pa-auto > svg.lucide { width: 16px; height: 16px; color: var(--efelab-blue-500); flex: none; }
.pa-auto > span { display: flex; flex-direction: column; font-weight: 600; color: var(--gray-700); }
.pa-auto small { font-weight: 400; font-size: 11.5px; color: var(--gray-500); }
.pa-add { margin-left: auto; background: none; border: 0; padding: 2px 4px; font-size: 12px; font-weight: 600; color: var(--efelab-blue-500); cursor: pointer; }
.pa-add:hover { text-decoration: underline; }

/* Kargo Takip */
.bfilters a.t-blue svg, .bfilters a.t-blue b { color: var(--efelab-blue-500); }
.bfilters a.is-on.t-blue b, .bfilters a.is-on.t-blue svg { color: var(--on-strong); }
.ct-items { margin-top: 4px; }
.ct-items summary { cursor: pointer; font-size: 12.5px; color: var(--efelab-blue-500); font-weight: 600; list-style: none; }
.ct-items summary::-webkit-details-marker { display: none; }
.ct-items ul { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--gray-600); }
.ct-flags { display: flex; gap: 4px; flex-wrap: wrap; }
.ct-days { font-variant-numeric: tabular-nums; font-weight: 700; }

/* Kenar çubuğu grubu (Raporlar) */
.side-group-btn { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
.side-group-btn .side-chev { margin-left: auto; width: 16px !important; height: 16px !important; transition: transform .2s; opacity: .7; }
.side-group.is-open .side-chev { transform: rotate(180deg); }
.side-sub-wrap { display: none; }
.side-group.is-open .side-sub-wrap { display: block; }
.side-sub { padding-left: 22px; font-size: 13px; }
.side-sub svg.lucide { width: 18px; height: 18px; }
html.sb-collapsed .side-group-btn { display: none; }
html.sb-collapsed .side-sub-wrap { display: block; }
html.sb-collapsed .side-sub { padding-left: 0; }
@media (max-width: 1023px) and (min-width: 768px) {
  .side-group-btn { display: none; }
  .side-sub-wrap { display: block; }
  .side-sub { padding-left: 0; }
}

/* Form içindeki açıklama paragrafları satır içi akar (form-stack p alt alta dizerdi) */
.form-stack p.muted { display: block; }

/* Ayarlar ana ekranı ve grup içi gezinti */
.set-grp { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); margin: 22px 0 8px; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.set-card { display: flex; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--gray-100); border-radius: var(--radius-card); box-shadow: var(--shadow-xs); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.set-card:hover { border-color: var(--efelab-blue-300); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.set-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--efelab-blue-50); color: var(--efelab-blue-500); }
.set-ic svg { width: 20px; height: 20px; }
.set-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.set-body b { font-size: 14px; }
.set-body small { font-size: 12px; color: var(--gray-500); line-height: 1.4; }
.set-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--gray-600); }
.set-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-300); flex: none; }
.set-st.is-ok { color: var(--success-text); } .set-st.is-ok i { background: var(--success); }
.set-st.is-warn { color: var(--warning-text); } .set-st.is-warn i { background: var(--warning); }
.subnav .subnav-back { color: var(--efelab-blue-500); font-weight: 600; }
.subnav .subnav-grp { display: inline-flex; align-items: center; padding: 0 10px 0 6px; margin-right: 4px; border-right: 1px solid var(--gray-200); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); }

/* Not düzenleme */
.note-edit-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--efelab-blue-500); cursor: pointer; }
.note-edit-btn:hover { text-decoration: underline; }
.note-edit-form { margin-top: 6px; }
.note-edit-form[hidden], .note-text[hidden] { display: none; }
.note-edit-form textarea { width: 100%; resize: vertical; min-height: 56px; }
.note-edit-actions { display: flex; gap: 6px; margin-top: 6px; }

/* Kargo durum satırı: DHL'de kayıt yoksa dikkat çeker */
.cargo-line.is-warn { background: rgba(255,149,0,.14); color: #c76a00; }
.shp-retry { margin-top: 6px; }

/* İş detayı başlığı: kurum adı büyük, açılış tarihi belirgin, sipariş no arka planda */
.ev-sub { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.ev-opened { display: inline-flex; align-items: center; gap: 5px; color: var(--gray-700, var(--gray-800)); font-size: 14px; }
.ev-opened b { color: var(--gray-900); font-weight: 700; }
.ev-ordno { color: var(--gray-400); font-size: 12.5px; font-weight: 500; }

.bulk-btn{display:inline-flex;align-items:center;gap:6px;width:100%;justify-content:center;padding:12px 16px;font-size:15px}
@media(min-width:760px){.bulk-btn{width:auto}}
.bcard-ship.is-group { color: var(--primary, #0071e3); }

/* Ek dosya ön izlemesi (görsel / PDF ilk sayfa) */
.att-thumb { position: relative; display: block; flex-basis: 100%; border-radius: 10px; overflow: hidden; background: var(--gray-50, #f5f5f7); border: 1px solid var(--gray-100); cursor: zoom-in; }
.att-thumb img { display: block; width: 100%; max-height: 220px; object-fit: contain; }
.att-pdf iframe { display: block; width: 100%; height: 220px; border: 0; pointer-events: none; background: #fff; }
.att-zoom { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .15s; }
.att-zoom svg { width: 14px; height: 14px; }
.att-thumb:hover .att-zoom, .att-thumb:focus-visible .att-zoom { opacity: 1; }
@media (hover: none) { .att-zoom { opacity: 1; } }

.incoming-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.incoming.is-stale { opacity: .6; }
.m-incoming.is-stale { opacity: .6; }

.stock-reason { display: block; margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--success-text, #1a7f37); }

/* Ayarlar: sol menü + arama + bölüm şeridi */
.content:has(> .set-side) { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 28px; align-content: start; }
.content:has(> .set-side) > * { grid-column: 2; min-width: 0; }
.content:has(> .set-side) > .set-side { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 12px; align-self: start; max-height: calc(100vh - 24px); overflow-y: auto; }
.set-side { display: flex; flex-direction: column; gap: 2px; padding: 12px; background: var(--surface); border: 1px solid var(--gray-100); border-radius: 14px; }
.set-search { position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid var(--gray-200); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; background: var(--surface); }
.set-search svg { width: 16px; height: 16px; color: var(--gray-500); flex: none; }
.set-search input { border: 0; outline: 0; background: transparent; width: 100%; font: inherit; font-size: 13px; color: inherit; padding: 0; box-shadow: none; }
.set-res { position: absolute; top: calc(100% + 6px); left: 0; width: 330px; max-width: 80vw; z-index: 30; background: var(--surface); border: 1px solid var(--gray-100); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.16); padding: 6px; }
.set-res a { display: block; padding: 8px 10px; border-radius: 8px; color: inherit; font-size: 13px; }
.set-res a:hover { background: var(--efelab-blue-50); }
.set-res a b { display: block; font-weight: 600; }
.set-res a small, .set-res-none { color: var(--gray-500); font-size: 12px; }
.set-res-none { display: block; padding: 8px 10px; }
.set-side-grp { margin: 12px 8px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); }
.set-side-item, .set-side-all { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--gray-800); }
.set-side-item svg, .set-side-all svg { width: 16px; height: 16px; color: var(--gray-500); flex: none; }
.set-side-item:hover, .set-side-all:hover { background: var(--gray-50); }
.set-side-item.is-active { background: var(--efelab-blue-50); color: var(--efelab-blue-700); font-weight: 700; }
.set-side-item.is-active svg { color: var(--efelab-blue-600); }
.set-side-all { margin-top: 10px; border-top: 1px solid var(--gray-100); border-radius: 0 0 9px 9px; padding-top: 12px; color: var(--gray-500); font-size: 12.5px; }
.set-strip { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; margin-bottom: 14px; background: var(--bg, var(--gray-50)); }
.set-strip span { font-size: 12px; color: var(--gray-500); margin-right: 4px; }
.set-strip a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--gray-200); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--gray-800); }
.set-strip a:hover { border-color: var(--efelab-blue-500); background: var(--efelab-blue-50); }
.set-flash { animation: setflash 2.4s ease-out; }
@keyframes setflash { 0%, 55% { box-shadow: 0 0 0 3px var(--efelab-blue-500); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 960px) {
  .content:has(> .set-side) { display: block; }
  .content:has(> .set-side) > .set-side { position: static; max-height: none; margin-bottom: 16px; }
}

/* Pano: kargodaki parçalar için kompakt satır */
.cgrow-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.cgrow { display: block; padding: 8px 10px; border: 1px solid var(--gray-100); border-radius: 10px; background: var(--surface); color: inherit; box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.04)); }
.cgrow:hover { border-color: var(--efelab-blue-500); }
.cgrow-1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cgrow-n { font-weight: 600; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cgrow-n em { font-style: normal; font-weight: 500; color: var(--gray-500); font-size: 12px; }
.cgrow-sp { flex: 1; }
.cgrow-k { font-size: 11.5px; font-weight: 600; color: var(--efelab-blue-600); white-space: nowrap; }
.cgrow .carrier-logo { height: 14px; width: auto; flex: none; }
.cgrow-2 { display: flex; justify-content: space-between; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--gray-600, var(--gray-500)); }
.cgrow-2 span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cgrow-2 small { color: var(--gray-500); white-space: nowrap; font-size: 11.5px; }
.cgrow.is-warn .cgrow-2 span { color: var(--warning-text, #c76a00); font-weight: 600; }

.yk-out { padding: 12px 14px; border: 1px solid var(--gray-100); border-radius: 10px; background: var(--gray-50); font-size: 13px; }
.yk-pre { margin: 0; max-height: 320px; overflow: auto; padding: 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--gray-100); font: 12px/1.45 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }

.shared-tag { background: var(--efelab-blue-50); color: var(--efelab-blue-700); }
.shp-shared { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 16px; font-size: 12.5px; border-top: 1px solid var(--gray-100); background: var(--efelab-blue-50); color: var(--efelab-blue-700); }
.shp-shared svg { width: 14px; height: 14px; }
.shp-shared a { font-weight: 600; text-decoration: underline; }

/* Buzlu "irsaliye kesilecek" uyarısı: stok durumuna göre ikon ve ton */
.ship-ov.is-partial .ship-ov-ico svg { color: #d98200; }
.ship-ov.is-nostock .ship-ov-ico { background: rgba(90,107,133,.14); animation: none; }
.ship-ov.is-nostock .ship-ov-ico svg { color: #5a6b85; filter: drop-shadow(0 0 5px rgba(90,107,133,.45)); }
.ship-ov.is-nostock b, .ship-ov.is-nostock .ship-ov-btn { color: #44546e; border-color: rgba(90,107,133,.45); background: #f4f6fa; }
.ship-ov-note { margin-top: -4px; padding: 0 8px; font-size: 11.5px; font-weight: 600; color: #c76a00; text-align: center; max-width: 100%; }
.ship-ov.is-nostock .ship-ov-note { color: #5a6b85; }
.ship-ov:not(.is-partial):not(.is-nostock) .ship-ov-note { color: #1e7b3a; }

/* Alt görev satırı: uzun başlık iki satıra kırılsa da avatar ve düzenle düğmesi aynı hizada kalır */
.st-row > .st-title { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.st-row > form, .st-row > .avatar, .st-row > img, .st-row > .btn { flex: none; }

/* Finans */
.cal-fin { background: transparent; border: 1px solid var(--c); color: var(--c); }
.cal-fin.is-done { opacity: .5; text-decoration: line-through; }
.cal-fintot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 600; }
.cal-fintot .out { color: #c26a00; } .cal-fintot .in { color: #1e7b3a; } .cal-fintot a { text-decoration: underline; }
.fin-late { margin-bottom: 14px; border-color: rgba(255,59,48,.35); }
.fin-late .panel-body { display: flex; flex-direction: column; gap: 6px; }
.fin-latelist { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; } .fin-latelist a { text-decoration: underline; }
.fin-done { opacity: .6; }
.fin-kpis { margin-bottom: 14px; }

.bcard-note, .cgrow-note { display: inline-flex; align-items: center; gap: 3px; color: var(--efelab-blue-600); font-weight: 600; }
.bcard-note svg, .cgrow-note svg { width: 14px; height: 14px; }

/* Takvim: süzgeç düğmeleri ve iş özeti penceresi */
.cal-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; }
.cal-fchip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--gray-200); background: var(--surface); color: var(--gray-500); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.cal-fchip i { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-300); }
.cal-fchip.is-on { color: var(--gray-900); border-color: var(--c); } .cal-fchip.is-on i { background: var(--c); }
[data-cal][hidden] { display: none !important; }
.cal-pop { border: 0; border-radius: 18px; padding: 0; width: min(440px, 94vw); background: var(--surface); color: inherit; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.cal-pop::backdrop { background: rgba(0,0,0,.4); }
.cal-pop-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.cs-head { display: flex; align-items: center; gap: 12px; } .cs-title { flex: 1; min-width: 0; display: flex; flex-direction: column; } .cs-title b { font-size: 16px; line-height: 1.25; }
.cs-x { border: 0; background: transparent; cursor: pointer; color: var(--gray-500); } .cs-x svg { width: 20px; height: 20px; }
.cs-rows { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; } .cs-rows > div { display: flex; justify-content: space-between; gap: 14px; } .cs-rows span { color: var(--gray-500); } .cs-rows b { text-align: right; font-weight: 600; }
.cs-red { color: var(--danger-text, #d70015); } .cs-desc { margin: 0; font-size: 13px; color: var(--gray-700, var(--gray-500)); }
.cs-note { display: flex; gap: 9px; padding: 9px 11px; background: var(--gray-50); border-radius: 10px; font-size: 12.5px; } .cs-note svg { width: 16px; height: 16px; flex: none; color: var(--efelab-blue-600); margin-top: 2px; }
.cs-foot { display: flex; gap: 8px; justify-content: flex-end; } .cs-loading { padding: 18px; text-align: center; color: var(--gray-500); }
.cal-ev.is-closed { background: var(--gray-100) !important; color: var(--gray-500) !important; text-decoration: line-through; }
.cal-item.is-closed { opacity: .6; }
.bcard-branch { display: flex; align-items: center; gap: 5px; margin: -4px 0 8px; font-size: 12px; font-weight: 600; color: var(--gray-500); min-width: 0; }
.bcard-branch svg.lucide { width: 13px; height: 13px; flex: none; } .bcard-branch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard .ecard-foot { flex-wrap: wrap; row-gap: 6px; }
.bcard-ship { max-width: 100%; }
.cs-hint { font-size: 12px; color: var(--gray-500); text-align: center; margin-top: -4px; }
.bcard, .cgrow { position: relative; }
.pop-open { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: none; align-items: center; justify-content: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--gray-200); color: var(--gray-500); cursor: pointer; z-index: 2; }
.pop-open svg.lucide { width: 14px; height: 14px; }
.pop-open:hover { color: var(--efelab-blue-600); border-color: var(--efelab-blue-500); }
.bcard:hover .pop-open { display: inline-flex; }
.cs-av { width: 34px; height: 34px; flex: none; }
.cs-notes, .cs-sub { display: flex; flex-direction: column; gap: 6px; max-height: 190px; overflow-y: auto; font-size: 13px; }
.cs-notes > b, .cs-sub > b { font-size: 12px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; }
.cs-sub > div { display: flex; align-items: center; gap: 8px; } .cs-sub > div span { flex: 1; } .cs-sub > div small { color: var(--gray-500); }
.cs-sub > div.is-done span { text-decoration: line-through; color: var(--gray-500); } .cs-sub svg { width: 16px; height: 16px; flex: none; }
.bopener { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid var(--gray-200); border-radius: 999px; background: var(--surface); color: var(--gray-500); font-size: 12.5px; font-weight: 600; }
.bopener svg.lucide { width: 14px; height: 14px; } .bopener select { border: 0; background: transparent; font: inherit; color: inherit; padding: 6px 2px; max-width: 160px; }
/* Düşük kartlarda (planlama bekliyor / kargo) simge ve parlama kart içine sığsın */
.ship-ov.is-min { gap: 3px; }
.ship-ov.is-min .ship-ov-ico { width: 46px; height: 46px; animation-name: shipglowS; }
.ship-ov.is-min .ship-ov-ico svg { width: 26px; height: 26px; }
.ship-ov.is-min .ship-ov-ico::after { width: 38px; height: 3px; }
.ship-ov.is-min.is-amber .ship-ov-ico { animation-name: shipglowAS; }
.ship-ov.is-min.is-nostock .ship-ov-ico { animation: none; }
.ship-ov.is-min .ship-ov-btn { padding: 4px 10px; font-size: 11.5px; margin-top: 0; }
@keyframes shipglowS { 0%,100% { box-shadow: 0 0 0 0 rgba(255,59,48,.3), 0 0 6px rgba(255,59,48,.3); } 50% { box-shadow: 0 0 0 4px rgba(255,59,48,0), 0 0 11px rgba(255,59,48,.5); } }
@keyframes shipglowAS { 0%,100% { box-shadow: 0 0 0 0 rgba(255,149,0,.3), 0 0 6px rgba(255,149,0,.3); } 50% { box-shadow: 0 0 0 4px rgba(255,149,0,0), 0 0 11px rgba(255,149,0,.5); } }

.cal-pop { width: min(600px, 94vw); }
.cs-flow { display: flex; align-items: center; gap: 6px; flex: none; } .cs-arrow { width: 16px; height: 16px; color: var(--gray-400); }
.cs-notes { max-height: 42vh; } .cs-empty { font-size: 13px; color: var(--gray-500); padding: 4px 2px; }
.cs-addnote { display: flex; gap: 8px; align-items: flex-end; } .cs-addnote textarea { flex: 1; min-height: 44px; resize: vertical; }
.cs-notes, .cs-sub { overflow-x: hidden; } .cs-note > span { min-width: 0; overflow-wrap: anywhere; } .cs-addnote textarea { overflow-x: hidden; }
.cs-inst { display: flex; } .cs-send { width: 44px; height: 44px; padding: 0; justify-content: center; flex: none; }

.cal-pop-body { max-height: 90vh; overflow-y: auto; }
.cs-sub-list { display: flex; flex-direction: column; gap: 4px; max-height: 26vh; overflow-y: auto; }
.cs-sub-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; } .cs-sub-list label span { flex: 1; } .cs-sub-list label small { color: var(--gray-500); }
.cs-sub-list label.is-done span { text-decoration: line-through; color: var(--gray-500); } .cs-sub-list label.is-locked { cursor: default; opacity: .75; }
.cs-sub-list input { width: 16px; height: 16px; flex: none; }
.cs-sub { max-height: none; overflow: visible; }
.is-last { outline: 2px solid var(--efelab-blue-500); outline-offset: -1px; box-shadow: 0 0 0 4px rgba(10,132,255,.14); position: relative; }
.is-last::before { content: "Son bakılan"; position: absolute; top: -9px; left: 12px; z-index: 3; padding: 1px 8px; border-radius: 999px; background: var(--efelab-blue-500); color: #fff; font: 700 10.5px Inter, system-ui, sans-serif; letter-spacing: .02em; pointer-events: none; }
.cs-sub-list label { justify-content: flex-start; text-align: left; width: 100%; margin: 0; padding: 3px 0; font-weight: 500; } .cs-sub-list label span { text-align: left; } .cs-sub-list input[type=checkbox] { margin: 0; }

.bopener { position: relative; display: inline-flex; padding: 0; border: 0; background: transparent; }
.bopener-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--gray-200); background: var(--surface); color: var(--gray-500); cursor: pointer; padding: 0; }
.bopener-btn svg.lucide { width: 16px; height: 16px; } .bopener-btn:hover { color: var(--gray-900); border-color: var(--gray-300); }
.bopener-btn.is-on { border-color: var(--efelab-blue-500); box-shadow: 0 0 0 3px rgba(10,132,255,.16); } .bopener-btn .avatar { width: 26px; height: 26px; font-size: 10px; }
.bopener-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 200px; max-height: 60vh; overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--gray-200); border-radius: 12px; box-shadow: var(--shadow-lg, 0 12px 32px rgba(0,0,0,.18)); }
.bopener-item { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; color: var(--gray-900); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.bopener-item:hover { background: var(--gray-50); } .bopener-item.is-on { background: var(--efelab-blue-50, rgba(10,132,255,.1)); font-weight: 700; }
.bopener-item .avatar { width: 24px; height: 24px; font-size: 10px; flex: none; } .bopener-all { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; color: var(--gray-500); } .bopener-all svg { width: 16px; height: 16px; }
