/* =====================================================================
   EPISYS İTHALAT — Apple tarzı arayüz (v7)
   Sistem yazı tipi, buzlu cam yüzeyler, sistem renkleri, açık/koyu tema
   ===================================================================== */
:root {
  --bg: #f5f5f7;
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(0, 113, 227, .06), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(94, 92, 230, .05), transparent 60%);
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --surface-3: rgba(118, 118, 128, .12);
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .07);
  --border: rgba(0, 0, 0, .07);
  --border-strong: rgba(0, 0, 0, .13);
  --sep: rgba(60, 60, 67, .1);
  --text: #1d1d1f;
  --text-2: #3a3a3c;
  --muted: #6e6e73;
  --faint: #8e8e93;
  --primary: #0071e3;
  --primary-600: #0077ed;
  --primary-soft: rgba(0, 113, 227, .1);
  --primary-text: #0066cc;
  --success: #248a3d;
  --success-fill: #34c759;
  --success-soft: rgba(52, 199, 89, .14);
  --warning: #b25000;
  --warning-fill: #ff9500;
  --warning-soft: rgba(255, 149, 0, .15);
  --danger: #d70015;
  --danger-fill: #ff3b30;
  --danger-soft: rgba(255, 59, 48, .12);
  --info: #0071a4;
  --info-fill: #30b0c7;
  --info-soft: rgba(48, 176, 199, .14);
  --violet: #5856d6;
  --violet-fill: #5e5ce6;
  --violet-soft: rgba(88, 86, 214, .12);
  --material: rgba(246, 246, 248, .72);
  --material-strong: rgba(255, 255, 255, .8);
  --side-text: #1d1d1f;
  --side-muted: #86868b;
  --side-active: rgba(0, 0, 0, .065);
  --shadow-sm: 0 1px 1px rgba(0, 0, 0, .03);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 24px rgba(0, 0, 0, .04);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .07);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .06);
  --radius: 18px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(10, 132, 255, .09), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(94, 92, 230, .08), transparent 60%);
  --surface: #1c1c1e;
  --surface-2: #232325;
  --surface-3: rgba(118, 118, 128, .24);
  --fill: rgba(118, 118, 128, .24);
  --fill-2: rgba(118, 118, 128, .14);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .15);
  --sep: rgba(84, 84, 88, .45);
  --text: #f5f5f7;
  --text-2: #d1d1d6;
  --muted: #98989d;
  --faint: #7c7c80;
  --primary: #0a84ff;
  --primary-600: #409cff;
  --primary-soft: rgba(10, 132, 255, .18);
  --primary-text: #64aaff;
  --success: #30d158;
  --success-fill: #30d158;
  --success-soft: rgba(48, 209, 88, .16);
  --warning: #ffb340;
  --warning-fill: #ff9f0a;
  --warning-soft: rgba(255, 159, 10, .17);
  --danger: #ff6961;
  --danger-fill: #ff453a;
  --danger-soft: rgba(255, 69, 58, .17);
  --info: #5ac8f5;
  --info-fill: #40c8e0;
  --info-soft: rgba(64, 200, 224, .16);
  --violet: #8e8cff;
  --violet-fill: #5e5ce6;
  --violet-soft: rgba(94, 92, 230, .2);
  --material: rgba(28, 28, 30, .72);
  --material-strong: rgba(44, 44, 46, .82);
  --side-text: #f5f5f7;
  --side-muted: #8e8e93;
  --side-active: rgba(255, 255, 255, .09);
  --shadow-sm: none;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .04);
  --shadow-hover: 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 32px rgba(0, 0, 0, .5);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg-grad), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.47 var(--font);
  letter-spacing: -.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a.strong:hover, a.btn:hover, .nav a:hover { text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: color-mix(in srgb, var(--primary) 25%, transparent); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hidden { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: var(--fill) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--fill); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--faint); }

/* ------------------------------------------------------------------ Giriş (Apple ID tarzı) */
.login { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px 80px; position: relative; overflow: hidden; isolation: isolate; }
.login::before {
  content: ""; position: absolute; inset: -20%; z-index: -1;
  background: radial-gradient(600px 400px at 30% 30%, rgba(0, 113, 227, .16), transparent 70%), radial-gradient(500px 380px at 70% 70%, rgba(175, 82, 222, .13), transparent 70%), radial-gradient(500px 300px at 80% 20%, rgba(52, 199, 89, .08), transparent 70%);
  filter: blur(10px);
}
.login-box { width: min(400px, 100%); text-align: center; animation: rise .7s var(--ease); }
.app-icon {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 19px; display: grid; place-items: center; color: #fff;
  font: 700 34px/1 var(--font-display); letter-spacing: -.03em;
  background: linear-gradient(160deg, #3e8bff 0%, #0063d1 45%, #5e3bd9 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 30px rgba(0, 99, 209, .35), 0 2px 6px rgba(0, 0, 0, .12);
}
.login-box h1 { font: 700 32px/1.1 var(--font-display); letter-spacing: -.028em; margin: 0 0 8px; }
.login-box > p { color: var(--muted); font-size: 17px; margin: 0 0 30px; letter-spacing: -.015em; }
.field-group { border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); overflow: hidden; text-align: left; transition: box-shadow .2s, border-color .2s; }
.field-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
.field-group label { display: block; position: relative; }
.field-group label + label { border-top: 1px solid var(--sep); }
.field-group span { position: absolute; left: 16px; top: 9px; font-size: 11.5px; color: var(--muted); font-weight: 500; pointer-events: none; }
.field-group input { width: 100%; border: 0; outline: 0; background: transparent; padding: 27px 16px 10px; font-size: 16px; color: var(--text); }
.login-err { margin-top: 14px; color: var(--danger); font-size: 13.5px; }
.login-box .btn.block { margin-top: 18px; height: 46px; font-size: 16px; }
.login-feats { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; color: var(--muted); font-size: 12.5px; }
.login-feats span { display: inline-flex; align-items: center; gap: 6px; }
.login-feats svg.i { width: 15px; height: 15px; color: var(--primary); }
.login-legal { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--faint); font-size: 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ------------------------------------------------------------------ Kabuk */
.brand { display: flex; align-items: center; gap: 11px; font: 600 15px/1.2 var(--font-display); letter-spacing: -.015em; color: var(--side-text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font: 700 16px/1 var(--font-display); flex: none;
  background: linear-gradient(160deg, #3e8bff 0%, #0063d1 45%, #5e3bd9 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 4px 12px rgba(0, 99, 209, .28);
}
.brand small { display: block; font: 500 11.5px/1.3 var(--font); color: var(--side-muted); letter-spacing: 0; margin-top: 1px; }
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; flex: none; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 40;
  background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border-right: 1px solid var(--border); transition: transform .4s var(--ease);
}
.sidebar .brand { padding: 22px 22px 14px; }
.nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; }
.nav-group { margin-top: 18px; }
.nav-group:first-child { margin-top: 6px; }
.nav-group > span { display: block; padding: 0 10px 5px; font-size: 11px; font-weight: 600; color: var(--side-muted); letter-spacing: .01em; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--side-text);
  font-size: 13.5px; font-weight: 500; margin-bottom: 1px; transition: background .15s;
}
.nav a svg.i { color: var(--primary); width: 17px; height: 17px; }
.nav a:hover { background: var(--fill-2); }
.nav a.active { background: var(--side-active); font-weight: 600; }
.nav .count { margin-left: auto; background: var(--danger-fill); color: #fff; font-size: 11px; font-weight: 600; border-radius: 99px; padding: 0 6px; line-height: 18px; min-width: 18px; text-align: center; }
.side-foot { padding: 14px 22px 18px; font-size: 11.5px; color: var(--side-muted); border-top: 1px solid var(--border); }
.main { flex: 1; margin-left: 260px; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 28px; position: sticky; top: 0; z-index: 30;
  background: transparent; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.topbar.scrolled { background: var(--material-strong); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom-color: var(--border); }
.topbar h1 { font: 600 15px/1.2 var(--font-display); margin: 0; letter-spacing: -.012em; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease); }
.topbar.scrolled h1 { opacity: 1; transform: none; }
.topbar .crumb { display: none; }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 99px; border: 0; background: transparent; color: var(--text-2);
  display: inline-grid; place-items: center; cursor: pointer; transition: background .15s; position: relative;
}
.icon-btn:hover { background: var(--fill); }
.icon-btn svg.i { width: 19px; height: 19px; }
.menu-btn { display: none; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 3px 12px 3px 3px; border-radius: 99px; cursor: pointer; position: relative; transition: background .15s; }
.user-chip:hover { background: var(--fill); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 12px; text-transform: uppercase; color: #fff; flex: none;
  background: linear-gradient(160deg, #a1a1a6, #6e6e73);
}
.user-chip b { font-size: 13px; display: block; line-height: 1.2; font-weight: 600; }
.user-chip small { font-size: 11.5px; color: var(--muted); display: block; line-height: 1.2; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; z-index: 60; border-radius: 14px;
  background: var(--material-strong); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: pop .25s var(--ease);
}
.dropdown button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; color: var(--text); font-size: 13.5px; }
.dropdown button:hover { background: var(--primary); color: #fff; }
.dropdown button:hover small, .dropdown button:hover b, .dropdown button:hover svg.i { color: #fff !important; }
.dropdown hr { border: 0; border-top: 1px solid var(--sep); margin: 5px 8px; }
.content { padding: 8px 36px 56px; width: 100%; max-width: 1560px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 6px 0 26px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font: 700 34px/1.12 var(--font-display); letter-spacing: -.026em; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; letter-spacing: -.01em; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.backdrop-mobile { display: none; }
@media (max-width: 1000px) {
  .sidebar { transform: translateX(-102%); background: var(--material-strong); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .backdrop-mobile.open { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .3); z-index: 35; animation: fade .2s; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 0 14px; }
  .topbar h1 { opacity: 1; transform: none; }
  .content { padding: 4px 16px 40px; }
  .user-chip .who { display: none; }
  .user-chip { padding: 3px; }
  .page-head h2 { font-size: 28px; }
}

/* ------------------------------------------------------------------ Kontroller */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 99px;
  border: 0; background: var(--primary); color: #fff; font-weight: 500; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .12s var(--ease), filter .15s; text-decoration: none; letter-spacing: -.01em;
}
.btn:hover { background: var(--primary-600); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .icon-btn:focus-visible, .act:focus-visible, .seg button:focus-visible, .chip:focus-visible, .user-chip:focus-visible { outline: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn svg.i { width: 16px; height: 16px; margin-left: -2px; }
.btn.secondary { background: var(--fill); color: var(--text); }
.btn.secondary:hover { background: var(--fill); filter: brightness(.95); }
:root[data-theme="dark"] .btn.secondary:hover { filter: brightness(1.25); }
.btn.ghost { background: transparent; color: var(--primary-text); }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.danger { background: var(--danger-fill); }
.btn.danger:hover { background: var(--danger-fill); filter: brightness(1.06); }
.btn.success { background: var(--success-fill); }
.btn.success:hover { background: var(--success-fill); filter: brightness(1.05); }
.btn.sm { height: 28px; padding: 0 12px; font-size: 12.5px; }
.btn.block { width: 100%; height: 42px; font-size: 15px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.act { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 99px; border: 0; background: transparent; color: var(--faint); cursor: pointer; transition: background .15s, color .15s; }
.act:hover { background: var(--fill); color: var(--text); }
.act.danger:hover { background: var(--danger-soft); color: var(--danger); }
.act.ok { color: var(--success); }
.act.ok:hover { background: var(--success-soft); color: var(--success); }
.act svg.i { width: 16px; height: 16px; }
.acts { display: inline-flex; gap: 0; }

.input, select.input, textarea.input {
  width: 100%; height: 36px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); transition: border-color .15s, box-shadow .2s; outline: none; font-size: 14px;
}
textarea.input { height: auto; min-height: 88px; padding: 9px 12px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
.input::placeholder { color: var(--faint); }
.input[readonly] { background: var(--fill-2); }
select.input { appearance: none; padding-right: 32px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14' fill='none' stroke='%238e8e93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 5 3-3 3 3M2 9l3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input[type=date].input, input[type=month].input { font-variant-numeric: tabular-nums; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field label .req { color: var(--danger-fill); margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .span2 { grid-column: 1 / -1; }
.form-section { font-size: 13px; font-weight: 600; color: var(--muted); margin: 8px 0 -4px; grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--sep); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.search { position: relative; min-width: 220px; flex: 1; max-width: 340px; display: block; }
.search svg.i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.search .input { padding-left: 34px; background: var(--fill-2); border-color: transparent; }
.search .input:focus { background: var(--surface); border-color: var(--primary); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters select.input, .filters input[type=date].input, .card-toolbar > select.input, .card-toolbar > input[type=month].input, .card-toolbar > input[type=date].input { width: auto; min-width: 150px; max-width: 240px; }
.seg { display: inline-flex; padding: 2px; background: var(--fill); border-radius: 9px; flex-wrap: wrap; }
.seg button {
  border: 0; background: transparent; padding: 5px 13px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer;
  display: inline-flex; gap: 6px; align-items: center; transition: background .25s var(--ease), box-shadow .25s; position: relative;
}
.seg button + button::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 1px; background: var(--border-strong); }
.seg button.on::before, .seg button.on + button::before { opacity: 0; }
.seg button.on { background: var(--surface); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); font-weight: 600; }
:root[data-theme="dark"] .seg button.on { background: #636366; }
.seg button .n { font-size: 11px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ Kartlar */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; border: 1px solid var(--border); }
:root[data-theme="dark"] .card { border-color: transparent; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 0; flex-wrap: wrap; }
.card-head h3 { margin: 0; font: 600 17px/1.3 var(--font-display); letter-spacing: -.018em; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.card-body { padding: 18px 22px 22px; }
.card-toolbar { display: flex; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--sep); flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1200px) { .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .g-2, .g-3, .g-2-1 { grid-template-columns: minmax(0, 1fr); } }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.kpi:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.kpi .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.kpi .ic svg.i { width: 17px; height: 17px; }
.kpi .lbl { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .val { font: 600 clamp(20px, 1.75vw, 28px)/1.15 var(--font-display); letter-spacing: -.025em; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
/* Ayarlar uygulaması tarzı renkli simgeler */
.tone-blue, .tone-green, .tone-amber, .tone-red, .tone-violet, .tone-cyan { color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset; }
.tone-blue { background: linear-gradient(180deg, #2f8cff, #0071e3); }
.tone-green { background: linear-gradient(180deg, #4cd964, #28b44a); }
.tone-amber { background: linear-gradient(180deg, #ffaa2c, #ff8a00); }
.tone-red { background: linear-gradient(180deg, #ff5f57, #f0352b); }
.tone-violet { background: linear-gradient(180deg, #7d7bff, #5856d6); }
.tone-cyan { background: linear-gradient(180deg, #4cc9e0, #24a6bf); }
.up { color: var(--success); font-weight: 600; }
.down { color: var(--danger); font-weight: 600; }

/* ------------------------------------------------------------------ Rozetler, ilerleme */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--fill); color: var(--text-2); }
.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warning-soft); color: var(--warning); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.badge.blue { background: var(--primary-soft); color: var(--primary-text); }
.badge.violet { background: var(--violet-soft); color: var(--violet); }
.badge.cyan { background: var(--info-soft); color: var(--info); }
.code { font: 500 12px/1 var(--mono); background: var(--fill-2); padding: 3px 6px; border-radius: 6px; color: var(--text-2); letter-spacing: 0; }
.progress { height: 6px; background: var(--fill); border-radius: 99px; overflow: hidden; min-width: 70px; }
.progress span { display: block; height: 100%; border-radius: 99px; background: var(--primary); transition: width .6s var(--ease); }
.progress span.ok { background: var(--success-fill); }
.progress span.warn { background: var(--warning-fill); }
.progress span.red { background: var(--danger-fill); }
.prog-cell { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.prog-cell .progress { flex: 1; }
.prog-cell small { width: 46px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ Tablo */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.t th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px; white-space: nowrap;
  border-bottom: 1px solid var(--sep); background: var(--surface); position: sticky; top: 0;
}
.t th:first-child, .t td:first-child { padding-left: 22px; }
.t th:last-child, .t td:last-child { padding-right: 18px; }
.t th.sortable { cursor: pointer; user-select: none; }
.t th.sortable:hover { color: var(--text); }
.t th .arr { opacity: 0; margin-left: 4px; font-size: 11px; transition: opacity .15s; }
.t th.sortable:hover .arr { opacity: .5; }
.t th.sorted { color: var(--text); }
.t th.sorted .arr { opacity: 1; color: var(--primary); }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--sep); color: var(--text-2); vertical-align: middle; white-space: nowrap; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background .12s; }
.t tbody tr:hover td { background: var(--fill-2); }
.t .r { text-align: right; font-variant-numeric: tabular-nums; }
.t .strong { color: var(--text); font-weight: 600; }
.t .wrap { white-space: normal; min-width: 180px; }
.t td.acts-cell { text-align: right; width: 1%; }
.t .muted, .muted { color: var(--muted); }
.t small { color: var(--muted); font-size: 12px; }
.t input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px 14px 22px; border-top: 1px solid var(--sep); color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.pager .pg { display: flex; gap: 2px; }
.pager button { min-width: 30px; height: 30px; border-radius: 99px; border: 0; background: transparent; cursor: pointer; color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; padding: 0 8px; }
.pager button:hover { background: var(--fill); }
.pager button.on { background: var(--primary); color: #fff; font-weight: 600; }
.pager button[disabled] { opacity: .35; cursor: default; background: transparent; }
.empty { padding: 52px 20px; text-align: center; color: var(--muted); font-size: 13.5px; }
.empty .ei { width: 52px; height: 52px; border-radius: 14px; background: var(--fill-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--faint); }
.empty .ei svg.i { width: 24px; height: 24px; }
.empty b { display: block; color: var(--text); margin-bottom: 4px; font: 600 15px/1.3 var(--font-display); }
.bulkbar { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 22px; background: var(--primary-soft); color: var(--primary-text); font-weight: 600; font-size: 13px; }

/* ------------------------------------------------------------------ Grafik & listeler */
.chart { position: relative; height: 250px; padding: 8px 0 26px 58px; }
.chart .gl { position: absolute; left: 58px; right: 0; border-top: 1px solid var(--sep); }
.chart .gl span { position: absolute; left: -58px; top: -8px; width: 50px; text-align: right; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chart .bars { position: absolute; left: 58px; right: 0; top: 8px; bottom: 26px; display: flex; align-items: flex-end; gap: 10px; }
.chart .bar { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; position: relative; }
.chart .bar i { display: block; width: 100%; max-width: 40px; margin: 0 auto; border-radius: 6px 6px 3px 3px; background: var(--primary); opacity: .86; transition: opacity .2s; min-height: 2px; transform-origin: bottom; animation: grow .8s var(--ease) both; }
.chart .bar.cur i:not(.pv) { background: var(--violet-fill); opacity: 1; }
.chart .bar:hover i { opacity: 1; }
.chart .bar em { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.chart .bar .tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); padding: 8px 11px; border-radius: 10px; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .15s, transform .25s var(--ease); z-index: 3; font-size: 12px; line-height: 1.45; color: var(--text);
  background: var(--material-strong); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.chart .bar:hover .tip { opacity: 1; transform: translate(-50%, 0); }
.chart .bar .tip b { display: block; font-weight: 600; }
.chart .bar .pair { display: flex; align-items: flex-end; gap: 3px; width: 100%; max-width: 54px; margin: 0 auto; height: 100%; }
.chart .bar .pair i { flex: 1; max-width: none; margin: 0; }
.chart .bar i.pv { background: var(--fill) !important; opacity: 1; }
:root[data-theme="dark"] .chart .bar i.pv { background: rgba(118, 118, 128, .4) !important; }
.chart-legend { display: flex; gap: 16px; justify-content: flex-end; font-size: 12px; color: var(--muted); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; background: var(--primary); }
.chart-legend i.pv { background: var(--fill); }
@keyframes grow { from { transform: scaleY(0); } }
.rank { display: grid; gap: 14px; }
.rank-row { display: grid; gap: 7px; }
.rank-row .top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.rank-row .top span { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .top b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-row .top small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.rank-row .progress { height: 5px; }
.list { display: grid; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--sep); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .grow b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .grow small { color: var(--muted); font-size: 12.5px; }
.list-item > .ic { width: 30px !important; height: 30px !important; border-radius: 8px !important; }
.quick { display: grid; gap: 2px; }
.quick button { display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; text-align: left; transition: background .15s; }
.quick button:hover { background: var(--fill-2); }
.quick .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.quick b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.quick small { color: var(--muted); font-size: 12.5px; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); color: var(--text-2); font-size: 13px; line-height: 1.55; }
.notice > svg.i { color: var(--primary); margin-top: 1px; }
.notice b { color: var(--text); }
.notice.warn { background: var(--warning-soft); }
.notice.warn > svg.i { color: var(--warning-fill); }
.notice.red { background: var(--danger-soft); color: var(--danger); }
.notice.red > svg.i { color: var(--danger-fill); }
.stat-line { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--sep); font-size: 13.5px; }
.stat-line:last-child { border-bottom: 0; }
.stat-line span { color: var(--muted); }
.stat-line b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ Pencereler (sheet) */
.overlay {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; z-index: 100; animation: fade .25s var(--ease);
  background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modal { width: min(640px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); animation: sheet .45s var(--ease); overflow: hidden; }
.modal.lg { width: min(960px, 100%); }
.modal.sm { width: min(440px, 100%); }
.modal.xl { width: min(1180px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 6px; }
.modal-head h3 { margin: 0; font: 700 21px/1.25 var(--font-display); letter-spacing: -.022em; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.modal-head .act { background: var(--fill); color: var(--muted); width: 28px; height: 28px; }
.modal-head .act:hover { color: var(--text); }
.modal-body { padding: 16px 24px 22px; overflow-y: auto; display: grid; gap: 18px; grid-auto-rows: max-content; align-content: start; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 20px; border-top: 1px solid var(--sep); }
.modal-foot .left { margin-right: auto; }
.modal-foot .btn { height: 36px; padding: 0 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
@keyframes sheet { from { transform: translateY(18px) scale(.97); opacity: 0; } }
.drop {
  border: 1.5px dashed var(--border-strong); border-radius: 16px; padding: 30px 16px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
  display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 13px;
}
.drop:hover, .drop.over { border-color: var(--primary); background: var(--primary-soft); }
.drop b { color: var(--text); font-weight: 600; font-size: 14px; }
.drop .ei { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(180deg, #2f8cff, #0071e3); color: #fff; display: grid; place-items: center; margin-bottom: 4px; }
.result-box { border-radius: 14px; overflow: hidden; background: var(--fill-2); }
.result-box .rs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.result-box .rs div { padding: 16px 12px; text-align: center; border-right: 1px solid var(--sep); }
.result-box .rs div:last-child { border-right: 0; }
.result-box .rs b { display: block; font: 600 24px/1.2 var(--font-display); letter-spacing: -.02em; }
.result-box .rs small { color: var(--muted); }
.result-box ul { margin: 0; padding: 12px 16px 12px 32px; border-top: 1px solid var(--sep); max-height: 180px; overflow: auto; font-size: 12.5px; color: var(--text-2); }
.lines { display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: 1.1fr 1.1fr .8fr 1fr .8fr 32px; gap: 10px; align-items: end; padding: 12px 14px; border-radius: 14px; background: var(--fill-2); }
.line .field label { font-size: 12px; color: var(--muted); }
.line .input { height: 34px; }
.line.aline { grid-template-columns: 2fr 1.1fr 1fr .9fr 32px; }
.line.cline { grid-template-columns: 1fr 1.1fr .7fr .9fr 1fr 32px; }
.line.tline { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.line.pline { grid-template-columns: 1.3fr 1fr 1.4fr 32px; }
@media (max-width: 760px) { .line, .line.aline, .line.cline, .line.tline, .line.pline { grid-template-columns: 1fr 1fr; } }
.lines-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.lines-foot > div > b { font: 600 15px/1.3 var(--font-display); }
.totals { display: flex; gap: 18px; color: var(--muted); font-size: 13px; }
.totals b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 14px; overflow: hidden; background: var(--fill-2); }
.summary-grid > div { padding: 14px 16px; border-right: 1px solid var(--sep); }
.summary-grid > div:last-child { border-right: 0; }
.summary-grid small { display: block; color: var(--muted); font-size: 12px; }
.summary-grid b { font: 600 18px/1.3 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .summary-grid { grid-template-columns: 1fr 1fr; } }
.note-box { margin-top: 8px; padding: 14px 16px; background: var(--fill-2); border-radius: 12px; white-space: pre-wrap; font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ------------------------------------------------------------------ Bildirim (HUD) */
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; justify-items: center; }
.toast {
  display: flex; gap: 10px; align-items: center; max-width: min(520px, 92vw); padding: 10px 18px 10px 11px; border-radius: 99px; font-size: 13.5px; font-weight: 500;
  color: #fff; background: rgba(30, 30, 32, .86); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25); animation: toastIn .5s var(--ease);
}
:root[data-theme="dark"] .toast { background: rgba(58, 58, 60, .9); }
.toast .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.toast .ic svg.i { width: 13px; height: 13px; stroke-width: 2.8; }
.toast.ok .ic { background: var(--success-fill); }
.toast.err .ic { background: var(--danger-fill); }
@keyframes toastIn { from { transform: translateY(20px) scale(.95); opacity: 0; } }
.loading { display: grid; place-items: center; min-height: 60vh; color: var(--muted); }
.spinner { width: 24px; height: 24px; border: 2.5px solid var(--fill); border-top-color: var(--muted); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ Arama, bildirim menüsü */
.gsearch { position: relative; width: min(320px, 30vw); }
.gsearch .search { max-width: none; min-width: 0; width: 100%; }
.gsearch .input { padding-right: 58px; height: 34px; border-radius: 99px; background: var(--fill); }
.gsearch .input:focus { background: var(--surface); }
.gsearch kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 500 11px var(--font); color: var(--faint); pointer-events: none; }
.dropdown.gres { left: 0; right: auto; width: min(480px, 92vw); max-height: 460px; overflow: auto; }
.gs-group { font-size: 11px; font-weight: 600; color: var(--muted); padding: 8px 10px 4px; }
.dropdown .gs-item, .notif button { align-items: flex-start; }
.gs-item span, .notif button span { display: grid; min-width: 0; text-align: left; }
.gs-item b, .notif button b { font-size: 13.5px; color: var(--text); font-weight: 600; }
.gs-item small, .notif small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-item svg.i { margin-top: 2px; color: var(--primary); }
.gs-item.on { background: var(--primary); }
.gs-item.on b, .gs-item.on small, .gs-item.on svg.i { color: #fff !important; }
.icon-btn .dot { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; border-radius: 99px; background: var(--danger-fill); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--bg); }
.dropdown.notif { width: min(390px, 92vw); max-height: 520px; overflow: auto; }
.notif-head { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 10px 10px; border-bottom: 1px solid var(--sep); margin-bottom: 4px; }
.notif-head b { font: 600 15px var(--font-display); }
.notif .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.notif .ic svg.i { width: 16px; height: 16px; }
@media (max-width: 760px) { .gsearch { display: none; } }

/* ------------------------------------------------------------------ Özel bileşenler */
.aging { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.aging small { display: block; color: var(--muted); font-size: 12.5px; }
.aging b { display: block; font: 600 19px/1.3 var(--font-display); margin: 3px 0 8px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.aging .progress { margin-bottom: 5px; }
@media (max-width: 900px) { .aging { grid-template-columns: 1fr 1fr; } }
.switch { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; grid-column: 1 / -1; padding: 14px 16px; border-radius: 14px; background: var(--fill-2); position: relative; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch > span { width: 51px; height: 31px; border-radius: 99px; background: var(--fill); position: relative; flex: none; transition: background .3s var(--ease); }
.switch > span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: left .35s var(--ease); box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06); }
.switch input:checked + span { background: var(--success-fill); }
.switch input:checked + span::after { left: 22px; }
.switch input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 30%, transparent); }
.switch b { font-weight: 600; }
.switch small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.date-ref { display: inline-flex; align-items: center; gap: 6px; padding-left: 12px; border-radius: var(--radius-sm); background: var(--fill-2); color: var(--muted); font-size: 12.5px; font-weight: 500; }
.date-ref svg.i { width: 15px; height: 15px; }
.date-ref .input { border: 0; height: 36px; width: auto; box-shadow: none !important; background: transparent; }
.cell-add { width: 28px; height: 28px; border-radius: 99px; border: 1px dashed var(--border-strong); background: transparent; color: var(--faint); cursor: pointer; display: grid; place-items: center; transition: all .15s; }
.cell-add:hover { border-style: solid; border-color: var(--primary); color: #fff; background: var(--primary); }
.cell-add svg.i { width: 14px; height: 14px; }
.price-cell { font-size: 14px; }
.next-price { color: var(--primary-text) !important; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 0; background: var(--fill); color: var(--text); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.chip:hover { background: var(--primary); color: #fff; }
.cur-price { height: 34px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.cur-price small { font-weight: 400; color: var(--muted); }
.modal-head p .badge { vertical-align: 1px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .page-actions, .card-toolbar, .acts-cell, .pager { display: none !important; }
  .main { margin: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ------------------------------------------------------------------ Logo */
.logo { display: block; flex: none; }
.logo .lg-a { fill: #7b8791; }
.logo .lg-b { fill: #1e2e3b; }
:root[data-theme="dark"] .logo .lg-a { fill: #8e98a3; }
:root[data-theme="dark"] .logo .lg-b { fill: #f5f5f7; }
a.brand, a.brand:hover { text-decoration: none; }
.brand .wm { display: block; font: 700 15px/1.1 var(--font-display); letter-spacing: .24em; color: #1e2e3b; }
:root[data-theme="dark"] .brand .wm { color: #f5f5f7; }
.brand small { margin-top: 3px; }
.login-logo { width: 88px; margin: 0 auto 22px; filter: drop-shadow(0 10px 24px rgba(30, 46, 59, .18)); }
.login-box h1.wordmark { font: 700 30px/1.1 var(--font-display); letter-spacing: .32em; margin: 0 0 10px; padding-left: .32em; color: #1e2e3b; }
:root[data-theme="dark"] .login-box h1.wordmark { color: #f5f5f7; }
.login-box > p b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ v7.2: şirket kimliği */
.co-logo { width: 38px; height: 38px; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--border); }
.co-logo img { max-width: 34px; max-height: 34px; object-fit: contain; }
.co-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font: 700 14px/1 var(--font-display); background: linear-gradient(160deg, #3a4b5c, #1e2e3b); flex: none; }
.co-mark.sm { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
.co-mark.lg { width: 96px; height: 96px; border-radius: 22px; font-size: 32px; }
.brand .co-name { display: block; font: 600 15px/1.2 var(--font-display); color: var(--text); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot { display: flex; align-items: center; gap: 8px; }
.ws-chip { display: inline-flex; align-items: center; gap: 8px; margin: -14px auto 26px; padding: 5px 14px 5px 6px; border-radius: 99px; background: var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow); font-size: 13.5px; font-weight: 600; }
.ws-chip img { height: 22px; max-width: 80px; object-fit: contain; border-radius: 5px; }
.co-edit { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.co-logo-box { width: 180px; height: 96px; border-radius: 16px; background: var(--fill-2); display: grid; place-items: center; overflow: hidden; border: 1px dashed var(--border-strong); }
.co-logo-box img { max-width: 160px; max-height: 80px; object-fit: contain; }
.co-logo-acts { display: grid; gap: 2px; }
.sup-est { color: var(--violet) !important; font-weight: 500; }
.line.sline { grid-template-columns: 1.3fr .8fr .9fr 1fr 1fr; }
@media (max-width: 760px) { .line.sline { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ v7.2: mesajlar (iMessage tarzı) */
.chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: calc(100vh - 210px); min-height: 480px; overflow: hidden; }
.chat-side { border-right: 1px solid var(--sep); display: flex; flex-direction: column; min-height: 0; }
.chat-search { padding: 14px 14px 8px; }
.chat-search .search { max-width: none; }
.chat-list { overflow-y: auto; padding: 4px 8px 12px; flex: 1; }
.chat-item { width: 100%; display: flex; gap: 11px; align-items: center; padding: 9px 10px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; text-align: left; color: var(--text); transition: background .15s; }
.chat-item:hover { background: var(--fill-2); }
.chat-item.on { background: var(--primary); color: #fff; }
.chat-item.on small, .chat-item.on .ci-sub span { color: rgba(255, 255, 255, .8); }
.chat-item .avatar { width: 40px; height: 40px; font-size: 14px; }
.chat-item .avatar svg.i { width: 19px; height: 19px; }
.ci-body { flex: 1; min-width: 0; }
.ci-top { display: flex; justify-content: space-between; gap: 8px; }
.ci-top b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-top small { color: var(--muted); font-size: 12px; flex: none; }
.ci-sub { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 1px; }
.ci-sub span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-badge { font-style: normal; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; border-radius: 99px; padding: 0 7px; line-height: 19px; flex: none; }
.chat-item.on .ci-badge { background: #fff; color: var(--primary); }
.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--sep); }
.chat-head .avatar { width: 36px; height: 36px; }
.chat-head b { display: block; font: 600 15px/1.2 var(--font-display); }
.chat-head small { color: var(--muted); font-size: 12.5px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 20px 10px; display: flex; flex-direction: column; gap: 2px; }
.day-sep { text-align: center; margin: 14px 0 8px; }
.day-sep span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 72%; margin-top: 8px; }
.msg.cont { margin-top: 2px; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg .who { font-size: 11.5px; color: var(--muted); margin: 0 0 3px 12px; font-weight: 500; }
.bubble { padding: 8px 13px; border-radius: 19px; background: var(--fill); color: var(--text); font-size: 14.5px; line-height: 1.4; word-wrap: break-word; overflow-wrap: anywhere; letter-spacing: -.01em; }
.msg.me .bubble { background: linear-gradient(180deg, #1a8cff, #0071e3); color: #fff; }
.msg.me .bubble a { color: #fff; text-decoration: underline; }
.msg time { font-size: 10.5px; color: var(--faint); margin: 2px 10px 0; opacity: 0; transition: opacity .15s; }
.msg:hover time, .msg:last-child time { opacity: 1; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px 16px; border-top: 1px solid var(--sep); }
.composer textarea { flex: 1; resize: none; min-height: 38px; max-height: 160px; padding: 9px 16px; border-radius: 20px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); outline: none; font-size: 14.5px; line-height: 1.35; }
.composer textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.composer .send { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .12s, filter .15s; }
.composer .send:hover { filter: brightness(1.08); }
.composer .send:active { transform: scale(.92); }
.composer .send svg.i { width: 18px; height: 18px; stroke-width: 2.4; }
.composer.inline { padding: 12px 0 0; border: 0; }
@media (max-width: 860px) { .chat { grid-template-columns: 1fr; height: auto; } .chat-side { border-right: 0; border-bottom: 1px solid var(--sep); max-height: 260px; } .chat-main { height: 70vh; } }

/* ------------------------------------------------------------------ v7.2: görevler */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.bcol { background: var(--fill-2); border-radius: 16px; padding: 10px; min-height: 260px; transition: background .15s, box-shadow .15s; }
.bcol.over { background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); }
.bcol-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-size: 13.5px; }
.bcol-head .n { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.st-dot { width: 9px; height: 9px; border-radius: 50%; }
.st-0 { background: var(--faint); }
.st-1 { background: var(--info-fill); }
.st-2 { background: var(--success-fill); }
.bcol-body { display: grid; gap: 8px; }
.bcol-empty { text-align: center; color: var(--faint); font-size: 12.5px; padding: 26px 0; border: 1.5px dashed var(--border); border-radius: 12px; }
.tcard { background: var(--surface); border-radius: 12px; padding: 12px 13px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px var(--border); cursor: pointer; display: grid; gap: 6px; transition: transform .15s var(--ease), box-shadow .15s; }
.tcard:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.tcard[draggable="true"] { cursor: grab; }
.tcard.late { box-shadow: inset 3px 0 0 var(--danger-fill), 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px var(--border); }
.tc-top { display: flex; justify-content: space-between; align-items: center; }
.tc-top small { display: inline-flex; gap: 3px; align-items: center; color: var(--muted); font-size: 12px; }
.tc-top small svg.i, .tcard > small svg.i { width: 13px; height: 13px; }
.tc-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.tcard > small { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; }
.tc-foot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.tc-due { margin-left: auto; font-variant-numeric: tabular-nums; }
.mini-av { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 9.5px; font-weight: 700; flex: none; }
.av-line { display: inline-flex; align-items: center; gap: 7px; }
.comments { display: grid; gap: 12px; margin-top: 10px; }
.cmt { display: flex; gap: 10px; }
.cmt .mini-av { width: 28px; height: 28px; font-size: 11px; }
.cmt-h { display: flex; gap: 8px; align-items: baseline; }
.cmt-h b { font-size: 13px; }
.cmt-h small { color: var(--muted); font-size: 11.5px; }
.cmt-t { font-size: 13.5px; color: var(--text-2); margin-top: 2px; background: var(--fill-2); padding: 8px 12px; border-radius: 4px 14px 14px 14px; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ v7.3: telefon arayüzü / PWA */
.tabbar { display: none; }
.chat-back { display: none; }
.install-tip { display: none; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@media (max-width: 860px) {
  .chat { grid-template-columns: 1fr; height: calc(100dvh - 230px - env(safe-area-inset-bottom)); min-height: 420px; }
  .chat .chat-side { max-height: none; border: 0; }
  .chat .chat-main { display: none; height: auto; }
  .chat.conv .chat-side { display: none; }
  .chat.conv .chat-main { display: flex; }
  .chat-back { display: inline-grid; margin-left: -8px; color: var(--primary); }
  .chat-back svg.i { width: 24px; height: 24px; stroke-width: 2.2; }
  .msg { max-width: 84%; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  /* iOS'ta yazı alanına dokununca ekran yakınlaşmasın */
  .input, select.input, textarea.input, .composer textarea, .field-group input { font-size: 16px; }
  .topbar { padding: env(safe-area-inset-top) 12px 0; height: calc(50px + env(safe-area-inset-top)); }
  .sidebar { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .content { padding: 2px 14px 28px; }
  .page-head { margin: 2px 0 16px; gap: 12px; }
  .page-head h2 { font-size: 30px; }
  .page-head p { font-size: 14px; }
  .page-actions { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .page-actions::-webkit-scrollbar { display: none; }
  .page-actions .btn { flex: none; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .kpi { padding: 14px; gap: 8px; }
  .kpi .val { font-size: 21px; }
  .kpi .sub { font-size: 12px; }
  .card { border-radius: 16px; }
  .card-head { padding: 16px 16px 0; }
  .card-body { padding: 14px 16px 16px; }
  .card-toolbar { padding: 12px; gap: 8px; }
  .card-toolbar .seg, .page-head + .seg, .content > .seg { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .seg button { flex: none; }
  .search { min-width: 0; max-width: none; flex: 1 1 100%; }
  .filters select.input, .card-toolbar > select.input, .card-toolbar > input[type=month].input, .card-toolbar > input[type=date].input { min-width: 0; flex: 1 1 140px; max-width: none; }
  .grid { gap: 12px; margin-bottom: 12px; }
  /* Tablolar telefonda kart görünümüne geçer */
  .table-wrap { overflow: visible; }
  table.t, .t tbody, .t tr, .t td { display: block; width: 100%; }
  .t thead { display: none; }
  .t tr { padding: 12px 16px; border-bottom: 1px solid var(--sep); }
  .t tr:last-child { border-bottom: 0; }
  .t td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 3px 0 !important; border: 0 !important; text-align: right; white-space: normal; }
  .t td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; text-align: left; flex: none; max-width: 42%; font-weight: 500; }
  .t td[data-label=""]::before { display: none; }
  .t td:first-child { justify-content: flex-start; text-align: left; font-size: 15px; padding-bottom: 6px !important; }
  .t td:first-child::before { display: none; }
  .t td.acts-cell { justify-content: flex-end; padding-top: 6px !important; }
  .t td .prog-cell { min-width: 0; flex: 1; max-width: 60%; margin-left: auto; }
  .t .wrap { min-width: 0; }
  .t tbody tr:hover td { background: transparent; }
  .pager { padding: 12px 16px; }
  .bulkbar { padding: 10px 16px; flex-wrap: wrap; }
  /* Pencereler: alttan açılan iOS sayfası */
  .overlay { place-items: end center; padding: 0; }
  .modal, .modal.lg, .modal.sm, .modal.xl { width: 100%; max-height: calc(100dvh - env(safe-area-inset-top) - 18px); border-radius: 22px 22px 0 0; animation: sheetUp .42s var(--ease); }
  .modal-head { padding: 18px 18px 6px; }
  .modal-head h3 { font-size: 19px; }
  .modal-body { padding: 12px 18px 18px; }
  .modal-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .modal-foot .btn { flex: 1 1 auto; }
  .summary-grid, .aging { grid-template-columns: 1fr 1fr; }
  .summary-grid > div:nth-child(2) { border-right: 0; }
  .summary-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--sep); }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .toast { font-size: 13px; }
  .chart { height: 200px; padding-left: 46px; }
  .chart .gl { left: 46px; }
  .chart .gl span { left: -46px; width: 40px; font-size: 10px; }
  .chart .bars { left: 46px; gap: 4px; }
  .chart .bar em { font-size: 9px; }
  .chart .bar .pair { gap: 1px; }
  .board { padding: 12px; gap: 12px; }
  .bcol { min-height: 0; }
  .co-edit { flex-direction: column; align-items: flex-start; }
  .chat { height: calc(100dvh - 205px - env(safe-area-inset-bottom)); }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; justify-content: space-around;
    padding: 6px 4px calc(4px + env(safe-area-inset-bottom));
    background: var(--material-strong); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--border);
  }
  .tabbar a, .tabbar button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px 0; border: 0; background: none;
    color: var(--faint); font: 500 10.5px/1.2 var(--font); position: relative; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .tabbar svg.i { width: 25px; height: 25px; stroke-width: 1.6; }
  .tabbar .on { color: var(--primary); }
  .tabbar .on svg.i { stroke-width: 2; }
  .tabbar .count { position: absolute; top: -2px; left: calc(50% + 5px); background: var(--danger-fill); color: #fff; font-size: 10.5px; font-weight: 600; min-width: 18px; height: 18px; line-height: 14px; border-radius: 99px; text-align: center; padding: 0 4px; border: 2px solid var(--surface); }
  .install-tip {
    display: flex; gap: 12px; align-items: center; position: fixed; left: 10px; right: 10px; z-index: 44;
    bottom: calc(70px + env(safe-area-inset-bottom)); padding: 12px 12px 12px 14px; border-radius: 18px;
    background: var(--material-strong); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    box-shadow: var(--shadow-lg); animation: sheetUp .5s var(--ease);
  }
  .install-tip img { width: 44px; height: 44px; border-radius: 11px; flex: none; box-shadow: 0 0 0 1px var(--border); }
  .install-tip div { flex: 1; min-width: 0; }
  .install-tip b { font-size: 14px; }
  .install-tip small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
  .install-tip .share-ico svg.i { width: 15px; height: 15px; vertical-align: -2px; color: var(--primary); }
  .backdrop-mobile.open { z-index: 46; }
  .sidebar { z-index: 47; }
  .login-legal { position: static; margin-top: 30px; }
}
@media (display-mode: standalone) and (max-width: 760px) {
  .topbar { background: var(--material-strong); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}

/* ------------------------------------------------------------------ v7.4: bildirim ayarı */
.push-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.push-state { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--fill); color: var(--muted); flex: none; }
.push-state.on { background: linear-gradient(180deg, #ff5f57, #f0352b); color: #fff; }
.push-row b { font-weight: 600; }
.push-acts { display: flex; gap: 8px; }

/* İthalat modülü */
.line.iline { grid-template-columns: .9fr 1.1fr 1.6fr .6fr .8fr .7fr 32px; }
.line.eline { grid-template-columns: 1.5fr .9fr .7fr .8fr 1.1fr .7fr 32px; }
.line .chk { display: flex; align-items: center; gap: 7px; height: 34px; font-size: 13px; cursor: pointer; }
.line .chk input { width: 17px; height: 17px; accent-color: var(--primary); }
.line .input:disabled, .form-grid .input:disabled { opacity: .55; }
@media (max-width: 760px) { .line.iline, .line.eline { grid-template-columns: 1fr 1fr; } }
