/* ═══════════════════════════════════════════════════════════
   Yorum CRM — sıcak tonlu premium tema
   Koyu (espresso) varsayılan + krem açık tema
   Dikkat isteyen durumlar: parlak kırmızı / turuncu / sarı
   ═══════════════════════════════════════════════════════════ */
:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  --bg: #120e0b;
  --bg-glow: radial-gradient(1200px 600px at 85% -10%, rgba(255, 122, 26, .10), transparent 60%),
             radial-gradient(900px 500px at -10% 110%, rgba(244, 63, 94, .07), transparent 60%);
  --surface: #1b1612;
  --surface-2: #231c17;
  --surface-3: #2c241d;
  --hover: rgba(255, 190, 140, .06);
  --border: rgba(255, 210, 170, .09);
  --border-strong: rgba(255, 210, 170, .16);
  --text: #f7eee6;
  --text-2: #cdbcae;
  --muted: #94806f;
  --faint: #6a5a4d;

  --brand: #ff7a1a;
  --brand-2: #ff4f3a;
  --brand-grad: linear-gradient(135deg, #ffa13d 0%, #ff7a1a 45%, #ff4f3a 100%);
  --brand-soft: rgba(255, 122, 26, .14);
  --gold: #f5b544;

  /* Dikkat renkleri — bilerek parlak */
  --critical: #ff2e55;
  --critical-soft: rgba(255, 46, 85, .16);
  --hot: #ff9500;
  --hot-soft: rgba(255, 149, 0, .16);
  --warn: #ffd60a;
  --warn-soft: rgba(255, 214, 10, .14);
  --ok: #2fe08a;
  --ok-soft: rgba(47, 224, 138, .14);
  --info: #42c6ff;
  --info-soft: rgba(66, 198, 255, .14);
  --violet: #c084fc;
  --violet-soft: rgba(192, 132, 252, .15);

  --bar: #ff8a2a;          /* grafik tek seri rengi */
  --bar-2: #ffc078;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-pop: 0 24px 60px -12px rgba(0, 0, 0, .7), 0 0 0 1px var(--border-strong);
  --sidebar-w: 248px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f8f2ea;
  --bg-glow: radial-gradient(1200px 600px at 85% -10%, rgba(255, 122, 26, .12), transparent 60%),
             radial-gradient(900px 500px at -10% 110%, rgba(244, 63, 94, .06), transparent 60%);
  --surface: #fffcf8;
  --surface-2: #f7efe6;
  --surface-3: #efe4d8;
  --hover: rgba(160, 80, 20, .05);
  --border: rgba(90, 50, 20, .10);
  --border-strong: rgba(90, 50, 20, .18);
  --text: #2a1c12;
  --text-2: #5b4535;
  --muted: #8a7260;
  --faint: #b39d8b;
  --brand: #f06400;
  --brand-2: #e8392b;
  --brand-soft: rgba(240, 100, 0, .10);
  --gold: #c98a0c;
  --critical: #f0003c;
  --critical-soft: rgba(240, 0, 60, .10);
  --hot: #f57c00;
  --hot-soft: rgba(245, 124, 0, .12);
  --warn: #e0a800;
  --warn-soft: rgba(224, 168, 0, .14);
  --ok: #0ea85a;
  --ok-soft: rgba(14, 168, 90, .11);
  --info: #0b8fd6;
  --info-soft: rgba(11, 143, 214, .10);
  --violet: #9333ea;
  --violet-soft: rgba(147, 51, 234, .10);
  --bar: #f06400;
  --bar-2: #ffb46b;
  --shadow: 0 1px 2px rgba(90, 50, 20, .06), 0 8px 24px -12px rgba(90, 50, 20, .18);
  --shadow-pop: 0 24px 60px -16px rgba(90, 50, 20, .35), 0 0 0 1px var(--border-strong);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-glow), var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }

/* ───────── Uygulama iskeleti ───────── */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 18px 14px; display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 122, 26, .04), transparent 30%), var(--surface);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 18px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; background: var(--brand-grad);
  display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 19px;
  box-shadow: 0 8px 22px -6px rgba(255, 100, 30, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.brand-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font); font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.nav-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-weight: 700; padding: 16px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 500; position: relative; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a.active { background: var(--brand-soft); color: var(--text); }
.nav a.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-grad); }
.nav a.active svg { color: var(--brand); }
.nav .count { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 20px; background: var(--critical); color: #fff; box-shadow: 0 0 12px rgba(255, 46, 85, .55); }
.sidebar-foot { margin-top: auto; padding-top: 14px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; }
.me-card:hover { border-color: var(--border-strong); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 12px 28px; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.menu-btn { display: none; }
.search { position: relative; flex: 1; max-width: 520px; }
.search input {
  width: 100%; padding: 10px 14px 10px 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--faint); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-family: var(--font); }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border-radius: 14px;
  box-shadow: var(--shadow-pop); padding: 6px; max-height: 420px; overflow-y: auto; z-index: 50;
}
.search-results a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; }
.search-results a:hover, .search-results a.sel { background: var(--hover); }
.search-results .type { font-size: 11px; color: var(--muted); margin-left: auto; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.content { padding: 26px 28px 60px; max-width: 1560px; width: 100%; margin: 0 auto; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -.02em; margin: 0; line-height: 1.15; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.crumbs a:hover { color: var(--brand); }

/* ───────── Düğmeler & form ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 11px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: transform .08s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 90, 30, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.danger { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 35%, transparent); background: var(--critical-soft); }
.btn.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-soft); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.btn.icon { padding: 8px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.seg { max-width: 100%; overflow-x: auto; display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 12.5px; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--brand); }
.input, .field input, .field select, .field textarea, select.input {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface-2); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 90px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field input[type=color] { padding: 4px; height: 42px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { min-width: 0; }
.field input, .field select, .input { min-width: 0; }
.form-grid .span2 { grid-column: span 2; }
.input.sm { padding: 6px 10px; font-size: 13px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .input { width: auto; min-width: 150px; padding: 8px 12px; }
.filters .search-in { min-width: 240px; }

/* ───────── Kart & panel ───────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.card-h h3 { margin: 0; font-size: 14.5px; font-weight: 700; letter-spacing: -.005em; }
.card-h .muted { font-size: 12.5px; }
.card-h .tools { margin-left: auto; display: flex; gap: 6px; }
.card-b { padding: 14px 18px 18px; }
.grid { display: grid; gap: 18px; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-dash { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.g-detail { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }

/* KPI kartları */
.kpi { padding: 18px 18px 16px; position: relative; overflow: hidden; }
.kpi .lbl { color: var(--muted); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .lbl .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.kpi .val { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin-top: 12px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .val small { font-size: 16px; color: var(--muted); font-weight: 500; }
.kpi .foot { margin-top: 6px; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kpi.hero { background: linear-gradient(140deg, rgba(255, 140, 50, .20), rgba(255, 60, 60, .06) 60%), var(--surface); border-color: rgba(255, 140, 60, .28); }
.kpi.hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 140, 40, .25), transparent 70%); }
.kpi.alert { border-color: color-mix(in srgb, var(--critical) 55%, transparent); background: linear-gradient(140deg, var(--critical-soft), transparent 70%), var(--surface); }
.kpi.alert .val { color: var(--critical); }
.kpi.alert .lbl .ic { background: var(--critical-soft); color: var(--critical); }

/* Rozetler / etiketler */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-critical { background: var(--critical-soft); color: var(--critical); }
.b-hot { background: var(--hot-soft); color: var(--hot); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-info { background: var(--info-soft); color: var(--info); }
.b-violet { background: var(--violet-soft); color: var(--violet); }
.b-brand { background: var(--brand-soft); color: var(--brand); }
.b-solid-critical { background: var(--critical); color: #fff; box-shadow: 0 0 14px rgba(255, 46, 85, .45); }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 46, 85, .55); } 50% { box-shadow: 0 0 0 6px rgba(255, 46, 85, 0); } }

.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; flex: none; box-shadow: 0 0 0 2px var(--surface); }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.avatar.xs { width: 22px; height: 22px; font-size: 9.5px; }
.avatars { display: flex; }
.avatars .avatar + .avatar { margin-left: -7px; }

/* Dikkat listesi — dashboard'un kalbi */
.attention { display: flex; flex-direction: column; gap: 8px; }
.att {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 14px; border-radius: 12px; position: relative;
  background: var(--surface-2); border: 1px solid var(--border); transition: transform .12s, border-color .15s;
}
.att:hover { transform: translateX(3px); border-color: var(--border-strong); }
.att::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; }
.att .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.att .t { font-weight: 600; }
.att .s { font-size: 12.5px; color: var(--muted); }
.att.critical { background: linear-gradient(90deg, var(--critical-soft), transparent 75%), var(--surface-2); border-color: color-mix(in srgb, var(--critical) 30%, transparent); }
.att.critical::before { background: var(--critical); box-shadow: 0 0 12px var(--critical); }
.att.critical .ic { background: var(--critical); color: #fff; box-shadow: 0 6px 16px -4px rgba(255, 46, 85, .7); }
.att.hot { background: linear-gradient(90deg, var(--hot-soft), transparent 75%), var(--surface-2); border-color: color-mix(in srgb, var(--hot) 28%, transparent); }
.att.hot::before { background: var(--hot); box-shadow: 0 0 12px var(--hot); }
.att.hot .ic { background: var(--hot); color: #fff; box-shadow: 0 6px 16px -4px rgba(255, 149, 0, .7); }
.att.warn::before { background: var(--warn); }
.att.warn .ic { background: var(--warn-soft); color: var(--warn); }

/* Görev satırları */
.task-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px dashed var(--border); }
.task-row:last-child { border-bottom: 0; }
.task-row .t { font-weight: 600; cursor: pointer; }
.task-row .t:hover { color: var(--brand); }
.task-row .meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.task-row.done .t { text-decoration: line-through; color: var(--muted); }
.check {
  width: 20px; height: 20px; border-radius: 7px; border: 2px solid var(--border-strong); display: grid; place-items: center;
  cursor: pointer; flex: none; background: transparent; padding: 0; transition: all .15s; color: transparent;
}
.check:hover { border-color: var(--ok); }
.check.on { background: var(--ok); border-color: var(--ok); color: #06210f; }
.check svg { width: 13px; height: 13px; stroke-width: 3; }
.prio { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.prio-acil { background: var(--critical); box-shadow: 0 0 10px var(--critical); }
.prio-yuksek { background: var(--hot); }
.prio-normal { background: var(--info); }
.prio-dusuk { background: var(--faint); }
.due { font-weight: 600; }
.due.late { color: var(--critical); }
.due.today { color: var(--hot); }
.group-h { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--faint); margin: 14px 0 4px; display: flex; gap: 8px; align-items: center; }
.group-h:first-child { margin-top: 0; }

/* Etkinlik zaman çizelgesi */
.events { display: flex; flex-direction: column; }
.event { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.event:last-child { border-bottom: 0; }
.event .when { text-align: center; border-radius: 10px; background: var(--surface-2); padding: 6px 0; border: 1px solid var(--border); }
.event .when b { display: block; font-family: var(--font-display); font-size: 18px; line-height: 1.1; }
.event .when span { font-size: 10.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: .05em; }
.event.today .when { background: var(--brand-grad); color: #fff; border-color: transparent; }
.event.today .when span { color: rgba(255, 255, 255, .85); }

.feed { display: flex; flex-direction: column; gap: 2px; }
.feed-item { display: flex; gap: 12px; padding: 9px 0; }
.feed-item .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); flex: none; border: 1px solid var(--border); }
.feed-item .ic.sistem { color: var(--brand); }

/* Tablolar */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tbody tr { transition: background .12s; }
table.t tbody tr.clickable { cursor: pointer; }
table.t tbody tr:hover { background: var(--hover); }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t .strong { font-weight: 600; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--faint); margin-bottom: 8px; }

.score { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.score .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.score .bar i { display: block; height: 100%; border-radius: 6px; }
.progress { height: 7px; border-radius: 7px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 7px; background: var(--brand-grad); transition: width .4s; }

/* ───────── Kanban ───────── */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 230px); min-height: 200px; }
.col-h { padding: 14px 14px 10px; border-bottom: 1px solid var(--border); }
.col-h .ttl { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.col-h .ttl .n { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--surface-2); padding: 0 8px; border-radius: 10px; }
.col-h .sum { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.col-h .stripe { height: 3px; border-radius: 3px; margin-top: 10px; }
.col-b { padding: 10px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; flex: 1; min-height: 80px; transition: background .15s; border-radius: 0 0 var(--radius) var(--radius); }
.col-b.over { background: var(--brand-soft); }
.kcard {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; cursor: grab;
  transition: transform .12s, box-shadow .15s, border-color .15s; position: relative;
}
.kcard:hover { border-color: var(--border-strong); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .7); transform: translateY(-1px); }
.kcard.dragging { opacity: .45; transform: rotate(1.5deg); }
.kcard .kt { font-weight: 600; line-height: 1.35; }
.kcard .ks { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kcard .kf { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.kcard .kv { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kcard.late { border-color: color-mix(in srgb, var(--critical) 50%, transparent); }
.kcard.late::before { content: ''; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--critical); box-shadow: 0 0 10px var(--critical); }
.kcard .proj-tag { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 6px; display: inline-block; margin-bottom: 6px; }
.add-card { border: 1px dashed var(--border-strong); background: none; border-radius: 10px; padding: 8px; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 12.5px; }
.add-card:hover { color: var(--brand); border-color: var(--brand); }

/* Proje kartları */
.proj-card { padding: 18px; cursor: pointer; transition: transform .15s, border-color .15s; display: flex; flex-direction: column; gap: 12px; }
.proj-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.proj-card .top { display: flex; gap: 12px; align-items: flex-start; }
.proj-card .sw { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.proj-card h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.proj-card .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12px; color: var(--muted); }
.proj-card .stats b { display: block; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }

/* Detay sayfaları */
.info-list { display: flex; flex-direction: column; }
.info-list .it { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.info-list .it:last-child { border-bottom: 0; }
.info-list .it .k { color: var(--muted); width: 108px; flex: none; }
.info-list .it .v { min-width: 0; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tabs button.on { color: var(--text); border-color: var(--brand); }
.tabs button .n { font-size: 11px; background: var(--surface-3); padding: 0 7px; border-radius: 10px; }
.hero-head { display: flex; gap: 16px; align-items: center; }
.hero-logo { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-grad); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 24px; font-weight: 600; flex: none; box-shadow: 0 10px 26px -8px rgba(255, 100, 30, .6); }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-strip .s { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.stat-strip .s .k { font-size: 12px; color: var(--muted); }
.stat-strip .s .v { font-family: var(--font-display); font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Etapları gösteren ilerleme şeridi */
.stage-track { display: flex; gap: 4px; overflow-x: auto; }
.stage-track button { min-width: 84px; }
.stage-track button { flex: 1; border: 0; padding: 9px 6px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); }
.stage-track button:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); border-radius: 8px 0 0 8px; }
.stage-track button.past { background: color-mix(in srgb, var(--brand) 35%, var(--surface-2)); color: var(--text); }
.stage-track button.cur { background: var(--brand-grad); color: #fff; }
.stage-track button.won { background: var(--ok); color: #05210f; }
.stage-track button.lost { background: var(--critical); color: #fff; }

/* ───────── Grafikler ───────── */
.chart { width: 100%; display: block; overflow: visible; }
.chart .grid-l { stroke: var(--border); stroke-width: 1; }
.chart .axis-t { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .val-t { fill: var(--text-2); font-size: 11px; font-weight: 600; font-family: var(--font); }
.chart .bar { fill: var(--bar); transition: opacity .15s; }
.chart .bar.dim { fill: var(--bar-2); opacity: .55; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover + .bar, .chart g:hover .bar { opacity: .82; }
.funnel { display: flex; flex-direction: column; gap: 9px; }
.funnel .fr { display: grid; grid-template-columns: 112px 1fr 96px; gap: 10px; align-items: center; font-size: 13px; }
.funnel .fr .fb { height: 22px; border-radius: 4px; background: var(--surface-2); position: relative; }
.funnel .fr .fb i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--bar); min-width: 4px; }
.funnel .fr .fb span { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 11.5px; font-weight: 700; color: var(--text); }
.tooltip { position: fixed; z-index: 200; pointer-events: none; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 8px 11px; font-size: 12.5px; max-width: 260px; }
.tooltip b { display: block; }

/* ───────── Takvim ───────── */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cal .dh { padding: 10px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.cal .d { min-height: 118px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
.cal .d:nth-child(7n) { border-right: 0; }
.cal .d.other { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.cal .d.other .dn { color: var(--faint); }
.cal .dn { font-size: 12px; font-weight: 700; color: var(--text-2); padding: 2px 4px; align-self: flex-start; border-radius: 7px; }
.cal .d.today .dn { background: var(--brand-grad); color: #fff; padding: 2px 8px; }
.cal .ev { font-size: 11.5px; padding: 2px 6px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; border-left: 3px solid; background: var(--surface-2); }
.cal .ev:hover { background: var(--surface-3); }
.cal .ev.done { opacity: .5; text-decoration: line-through; }
.cal .more { font-size: 11px; color: var(--muted); padding-left: 6px; cursor: pointer; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ───────── Modal, çekmece, bildirim ───────── */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10, 6, 3, .62); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 640px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-pop); animation: pop .18s ease; }
.modal.sm { max-width: 440px; }
.modal.lg { max-width: 860px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-h h2 { margin: 0; font-size: 18px; font-family: var(--font-display); font-weight: 600; }
.modal-h .x { margin-left: auto; }
.modal-b { padding: 20px 22px; }
.modal-f { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 22px 18px; border-top: 1px solid var(--border); }
.modal-f .left { margin-right: auto; }
.drawer-ov { position: fixed; inset: 0; z-index: 90; background: rgba(10, 6, 3, .45); animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 91; background: var(--surface); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: slideIn .22s ease; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.drawer-h { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-start; }
.drawer-b { padding: 18px 22px; overflow-y: auto; flex: 1; }
.title-edit { font-size: 19px; font-weight: 700; border: 1px solid transparent; background: none; width: 100%; padding: 4px 6px; border-radius: 8px; outline: none; font-family: var(--font); }
.title-edit:hover { border-color: var(--border); }
.title-edit:focus { border-color: var(--brand); background: var(--surface-2); }
.props { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; align-items: center; font-size: 13px; }
.props .k { color: var(--muted); }
.props .input { padding: 7px 10px; }
.checklist .ci { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.checklist .ci .x { opacity: 0; margin-left: auto; }
.checklist .ci:hover .x { opacity: 1; }
.checklist .ci.on span { text-decoration: line-through; color: var(--muted); }
.comment { display: flex; gap: 10px; padding: 10px 0; }
.comment .bubble { background: var(--surface-2); border-radius: 4px 12px 12px 12px; padding: 9px 12px; flex: 1; }
.comment .bubble .who { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.section-t { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 700; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }

.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--surface); box-shadow: var(--shadow-pop); padding: 12px 16px; border-radius: 12px; display: flex; gap: 10px; align-items: center; animation: pop .2s; min-width: 240px; border-left: 4px solid var(--ok); }
.toast.err { border-left-color: var(--critical); }

.mention { color: var(--brand); font-weight: 700; background: var(--brand-soft); border-radius: 5px; padding: 0 3px; }
.mention-pop { position: fixed; z-index: 160; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 5px; animation: pop .1s; }
.mention-pop button { display: flex; width: 100%; gap: 8px; align-items: center; padding: 7px 8px; border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: left; font-weight: 600; color: var(--text); }
.mention-pop button.sel, .mention-pop button:hover { background: var(--hover); }
.bell { position: relative; }
.bell .dot { position: absolute; top: 2px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px; background: var(--critical); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg), 0 0 12px var(--critical); }
.notif-panel { position: fixed; z-index: 150; width: min(420px, calc(100vw - 16px)); max-height: min(560px, calc(100vh - 80px)); display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-pop); animation: pop .12s; overflow: hidden; }
.notif-panel .h { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.notif-panel .h h3 { margin: 0; font-size: 15px; }
.notif-panel .list { overflow-y: auto; padding: 6px; }
.notif-item { display: flex; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; position: relative; }
.notif-item:hover { background: var(--hover); }
.notif-item.unread { background: var(--brand-soft); }
.notif-item.unread::before { content: ''; position: absolute; left: 3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); }
.notif-item .ic { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.notif-item .ic.k-mention { background: var(--brand-soft); color: var(--brand); }
.notif-item .ic.k-alert { background: var(--critical-soft); color: var(--critical); }
.notif-item .ic.k-hot { background: var(--hot-soft, var(--brand-soft)); color: var(--hot); }
.notif-item .ic.k-ok { background: var(--ok-soft); color: var(--ok); }
.notif-item .t { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.notif-item .b { font-size: 12.5px; color: var(--text-2); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-item .w { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.tpl-bar { position: relative; height: 22px; background: var(--surface-3); border-radius: 6px; }
.tpl-bar i { position: absolute; top: 4px; bottom: 4px; border-radius: 4px; background: var(--brand-grad, var(--brand)); min-width: 4px; }
.warranty-on { color: var(--ok); }
.dropzone { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border: 2px dashed var(--border-2, var(--border)); border-radius: 12px; cursor: pointer; color: var(--text-2); text-align: center; flex-wrap: wrap; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); color: var(--text); }
.att-progress { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 10px; }
.att-grid.compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.att-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.att-card .thumb { height: 96px; display: grid; place-items: center; background: var(--surface-3); color: var(--brand); cursor: pointer; overflow: hidden; }
.att-grid.compact .att-card .thumb { height: 74px; }
.att-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.att-card .meta { padding: 8px 10px; min-width: 0; }
.att-card .nm { font-weight: 600; font-size: 12.5px; }
.att-card .acts { position: absolute; top: 4px; right: 4px; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.att-card:hover .acts, .att-card:focus-within .acts { opacity: 1; }
.att-card .acts .btn { background: var(--surface); box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.2)); }
@media (hover: none) { .att-card .acts { opacity: 1; } }
.hist-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.hist-ch { margin-top: 4px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.hist-ch .i { vertical-align: -2px; color: var(--muted); }
details.fold > summary { cursor: pointer; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: ' ▸'; color: var(--muted); }
details.fold[open] > summary::after { content: ' ▾'; }
.timer-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px; border-radius: 22px; background: var(--critical-soft); color: var(--critical); font-weight: 700; font-size: 12.5px; border: 1px solid color-mix(in srgb, var(--critical) 40%, transparent); cursor: pointer; max-width: 300px; }
.timer-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--critical); box-shadow: 0 0 8px var(--critical); animation: pulse 1.4s infinite; flex: none; }
.timer-chip .nm { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .timer-chip .nm { display: none; } }
.ts-grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.ts-grid th, .ts-grid td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.ts-grid th:first-child, .ts-grid td:first-child { text-align: left; white-space: normal; }
.ts-grid th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ts-grid td.today, .ts-grid th.today { background: var(--brand-soft); }
.ts-grid tfoot td { font-weight: 800; border-top: 2px solid var(--border); }
.ts-grid .cell { color: var(--text); font-variant-numeric: tabular-nums; }
.ts-grid .zero { color: var(--faint); }
.menu { position: fixed; z-index: 150; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; min-width: 200px; animation: pop .12s; }
.menu button, .menu a { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; border: 0; background: none; text-align: left; cursor: pointer; font-weight: 500; }
.menu button:hover, .menu a:hover { background: var(--hover); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 5px 0; }
.menu .danger { color: var(--critical); }

/* ───────── Teklif düzenleyici ───────── */
.lines { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.lines th { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); text-align: left; padding: 0 6px; font-weight: 700; }
.lines td { padding: 0 3px; vertical-align: top; }
.lines .input { padding: 8px 9px; font-size: 13px; }
.lines td.total { padding-top: 9px; text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.totals { margin-left: auto; width: min(360px, 100%); display: flex; flex-direction: column; gap: 6px; }
.totals .r { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.totals .r.grand { border-top: 1px solid var(--border-strong); padding-top: 10px; margin-top: 4px; font-family: var(--font-display); font-size: 24px; font-weight: 600; }

/* Yazdırılabilir teklif */
.print-page { background: #fff; color: #1d140d; max-width: 860px; margin: 0 auto; padding: 48px 54px; border-radius: 6px; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .5); font-size: 13px; }
.print-page h1 { font-family: var(--font-display); font-size: 30px; margin: 0; color: #1d140d; }
.print-page .bar-top { height: 6px; background: linear-gradient(90deg, #ffa13d, #ff4f3a); border-radius: 6px; margin-bottom: 28px; }
.print-page table { width: 100%; border-collapse: collapse; }
.print-page th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8a7260; border-bottom: 2px solid #1d140d; padding: 8px 6px; }
.print-page td { padding: 9px 6px; border-bottom: 1px solid #eadfd3; }
.print-page .muted { color: #8a7260; }
.print-tools { max-width: 860px; margin: 0 auto 16px; display: flex; gap: 8px; }
@media print {
  body { background: #fff !important; }
  .sidebar, .topbar, .print-tools, .toasts { display: none !important; }
  .app { display: block; }
  .content { padding: 0; max-width: none; animation: none; }
  .print-page { box-shadow: none; padding: 0; max-width: none; }
}

/* ───────── Giriş ekranı ───────── */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art {
  position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: radial-gradient(900px 600px at 20% 20%, rgba(255, 170, 60, .55), transparent 60%),
              radial-gradient(700px 500px at 90% 90%, rgba(255, 50, 80, .55), transparent 60%), #2a130a;
}
.login-art::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.login-art > * { position: relative; z-index: 1; }
.login-art h2 { font-family: var(--font-display); font-size: 46px; line-height: 1.08; font-weight: 600; letter-spacing: -.02em; margin: 0 0 16px; max-width: 520px; }
.login-art p { font-size: 16px; opacity: .85; max-width: 460px; }
.login-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.login-feats div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px; backdrop-filter: blur(8px); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-form form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.login-form h1 { font-family: var(--font-display); font-size: 32px; margin: 0; font-weight: 600; }
.login-form .err { color: var(--critical); font-weight: 600; min-height: 20px; }
.demo-users { font-size: 12.5px; color: var(--muted); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 12px 14px; }
.demo-users button { background: none; border: 0; color: var(--brand); cursor: pointer; padding: 0; font-weight: 600; }

/* ───────── Duyarlı ───────── */
@media (max-width: 1280px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-dash { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 80; transform: translateX(-100%); transition: transform .22s; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-pop); }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 70; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 10px 16px; }
  .content { padding: 18px 16px 50px; }
  .g-4, .g-3, .g-2 { grid-template-columns: minmax(0, 1fr); }
  .card-b { overflow-x: auto; }
  .topbar-actions { margin-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .page-head h1 { font-size: 25px; }
  .search kbd { display: none; }
  .cal .d { min-height: 74px; }
  .cal .ev { font-size: 10px; padding: 1px 4px; }
  .hide-sm { display: none; }
  .filters .input, .filters .search-in { flex: 1 1 100%; min-width: 0; }
  .print-page { padding: 24px 18px; }
}
