/* eef Takip v13 — Corporate ops panel
   Black ink on white. Soft craft. Data-first. */

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=JetBrains+Mono:wght@500;600&family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --courier: 'Courier Prime', 'Courier New', Courier, monospace;

    --ink: #0c0c0c;
    --text: #171717;
    --muted: #737373;
    --faint: #a3a3a3;
    --line: #ebebeb;
    --line-strong: #d4d4d4;
    --bg: #f7f7f5;
    --bg-wash: radial-gradient(1200px 600px at 10% -10%, #ffffff 0%, transparent 55%),
               radial-gradient(900px 500px at 100% 0%, #f0f0ee 0%, transparent 50%),
               #f7f7f5;
    --surface: #ffffff;
    --hover: #fafafa;

    --brand: #0c0c0c;
    --accent: #0c0c0c;
    --accent-soft: #f0f0f0;
    --ok: #0f7a4a;
    --ok-soft: #ecf8f1;
    --warn: #b45309;
    --warn-soft: #fff7ed;
    --danger: #b91c1c;
    --danger-soft: #fef2f2;
    --soon: #0369a1;
    --soon-soft: #f0f9ff;

    --nav-h: 60px;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 7px;
    --ease: .18s cubic-bezier(.2,.8,.2,1);
    --drawer-w: min(440px, 100%);
    --shadow: 0 1px 2px rgba(12,12,12,.04);
    --shadow-md: 0 8px 24px rgba(12,12,12,.06);
    --shadow-lg: 0 20px 48px rgba(12,12,12,.1);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
    font-family: var(--font);
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-wash);
    min-height: 100vh;
    max-width: 100%;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
table { border-collapse: collapse; width: 100%; }

.ico { display: inline-flex; width: 18px; height: 18px; flex-shrink: 0; }
.ico svg {
    width: 100%; height: 100%;
    stroke: currentColor; fill: none;
    stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.ico.ico-fill svg {
    fill: currentColor !important;
    stroke: none !important;
    stroke-width: 0 !important;
}

/* ═══ NAV ═══ */
.app-nav {
    position: sticky; top: 0; z-index: 200;
    min-height: calc(var(--nav-h) + var(--safe-t));
    padding: var(--safe-t) 22px 0;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 14px;
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    margin-right: 6px; flex-shrink: 0;
}
.nav-brand img, .nav-brand .brand-mark {
    width: 32px; height: 32px; border-radius: 9px;
}
.nav-brand-text {
    font-family: var(--display);
    font-weight: 700; font-size: 17px;
    color: var(--ink); letter-spacing: -.03em;
}
.nav-brand-text span {
    font-weight: 500; margin-left: 7px;
    font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted);
}
.nav-links { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.nav-links a {
    padding: 8px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: var(--muted);
    white-space: nowrap; transition: background var(--ease), color var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--accent-soft); }
.nav-links a.active { color: #fff; background: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-user {
    font-size: 12px; font-weight: 600; color: var(--muted);
    padding: 6px 10px; background: var(--accent-soft); border-radius: 999px;
}
.icon-btn {
    width: 40px; height: 40px; border-radius: 11px;
    border: 1px solid var(--line); background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text); transition: background var(--ease), border-color var(--ease);
}
.icon-btn:hover { background: var(--hover); border-color: var(--line-strong); }
/* Must beat .icon-btn — was wrongly visible on desktop */
.icon-btn.menu-btn { display: none; }

.notif-wrap { position: relative; }
.notif-dot {
    position: absolute; top: 8px; right: 8px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--danger); border: 2px solid #fff;
}
.notif-menu {
    position: absolute; right: 0; top: calc(100% + 8px);
    width: min(340px, 92vw); background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); display: none; overflow: hidden;
}
.notif-menu.open { display: block; animation: rise .18s var(--ease); }
.notif-menu .hh {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 14px; border-bottom: 1px solid var(--line);
    font-family: var(--display); font-weight: 700; font-size: 13px;
}
.notif-clear-all {
    border: 0; background: none; color: var(--muted);
    font-size: 12px; font-weight: 600; cursor: pointer;
}
.notif-item {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.notif-item.is-gone { display: none !important; }
.notif-item a { flex: 1; font-size: 13px; font-weight: 600; }
.notif-item small { display: block; color: var(--muted); font-weight: 500; margin-top: 2px; }
.notif-dismiss {
    border: 0; background: none; color: var(--faint);
    font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.empty-n { padding: 22px 14px; text-align: center; color: var(--muted); font-size: 13px; }

.mobile-drawer-nav {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(12,12,12,.35);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}
.mobile-drawer-nav.open {
    opacity: 1; visibility: visible; pointer-events: auto;
}
.mobile-drawer-nav .sheet {
    width: min(300px, 86%); height: 100dvh; max-height: 100%; background: #fff;
    padding: max(22px, env(safe-area-inset-top, 0px)) 16px calc(22px + env(safe-area-inset-bottom, 0px));
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform .2s cubic-bezier(.2,.8,.2,1);
    will-change: transform;
}
.mobile-drawer-nav.open .sheet { transform: translateX(0); }
.sheet-title {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--display); font-weight: 700; font-size: 16px;
    margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.sheet-title img { width: 28px; height: 28px; border-radius: 8px; }
.mobile-drawer-nav a {
    display: block; padding: 12px 12px; border-radius: 10px;
    font-weight: 600; color: var(--muted); margin-bottom: 2px;
}
.mobile-drawer-nav a.active, .mobile-drawer-nav a:hover {
    background: var(--accent-soft); color: var(--ink);
}

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(-12px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ═══ LAYOUT ═══ */
.app-main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 calc(110px + var(--safe-b));
}
.page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 22px;
    animation: fadeUp .35s var(--ease);
}
.page-head h1 {
    font-family: var(--display);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700; letter-spacing: -.04em;
    color: var(--ink); line-height: 1.1;
}
.page-head p,
.page-sub {
    color: var(--muted);
    margin-top: 8px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
    text-wrap: pretty;
}
.page-sub {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.page-sub-line {
    display: block;
}
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-actions > form {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}
.page-actions form .btn {
    height: 40px;
    width: 100%;
}
.page-actions > .btn,
.page-actions > .status-chip { flex: 0 0 auto; }
.status-chip { justify-content: center; }
.back-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 600; color: var(--muted);
    margin-bottom: 8px;
}
.back-link:hover { color: var(--ink); }
.section-label {
    font-family: var(--display);
    font-size: 12px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); margin: 28px 0 12px;
}

/* ═══ KANBAN / GLOBAL TIMELINE ═══ */
.kanban-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 12px;
}
.kanban-col {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 240px;
    display: flex;
    flex-direction: column;
}
.kanban-col-head {
    padding: 12px 12px 10px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.kanban-col-head h3 { font-size: 13px; font-weight: 700; }
.kanban-col-head span {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 2px 8px;
}
.kanban-col-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.kanban-card {
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}
.kanban-card .t { font-weight: 700; display: block; margin-bottom: 2px; }
.kanban-card .m { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.kanban-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.kanban-card-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}
.kanban-card.tone-danger { border-left-color: var(--danger); }
.kanban-card.tone-warn { border-left-color: var(--warn); }
.kanban-card.tone-soon { border-left-color: var(--soon); }
.kanban-card.tone-ok { border-left-color: var(--ok); }

.timeline-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.timeline-item {
    display: flex;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 10px 12px;
}
.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 6px;
    background: var(--faint);
    flex-shrink: 0;
}
.timeline-item.tone-danger .timeline-dot { background: var(--danger); }
.timeline-item.tone-warn .timeline-dot { background: var(--warn); }
.timeline-item.tone-soon .timeline-dot { background: var(--soon); }
.timeline-item.tone-ok .timeline-dot { background: var(--ok); }
.timeline-body { min-width: 0; flex: 1; }
.timeline-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.timeline-top .mono { flex-shrink: 0; white-space: nowrap; }
.timeline-main {
    margin-top: 6px;
    font-size: 13.5px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.timeline-detail {
    color: var(--muted);
    font-weight: 500;
}
.timeline-meta { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* ═══ BUTTONS / FORMS ═══ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 40px; padding: 0 14px; border-radius: var(--radius-xs);
    border: 1px solid transparent; font-size: 13px; font-weight: 650;
    cursor: pointer; white-space: nowrap; transition: transform .12s ease, background var(--ease), box-shadow var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #262626; box-shadow: var(--shadow-md); }
.btn-secondary { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--hover); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--ink); background: var(--accent-soft); }
.btn-sm { height: 34px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { height: 30px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; }
.w-100 { width: 100%; }

.form-control, .input {
    width: 100%; height: 42px; padding: 0 12px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-xs);
    background: #fff; outline: none; transition: border-color var(--ease), box-shadow var(--ease);
}
.form-control:focus, .input:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(12,12,12,.08);
}
input[type="date"].form-control,
input[type="date"].input {
    display: block;
    width: 100%;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    min-height: 42px;
    line-height: normal;
    -webkit-appearance: none;
    appearance: none;
}
input[type="date"].form-control::-webkit-date-and-time-value {
    text-align: left;
}
input[type="date"].form-control::-webkit-calendar-picker-indicator {
    opacity: .55;
    cursor: pointer;
}
.filter-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.filter-bar .filter-date label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.2;
}
.filter-dates-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    min-width: 0;
}
@media (min-width: 981px) {
    .filter-bar .filter-date label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .filter-dates-row {
        display: contents;
    }
}
textarea.form-control { height: auto; padding: 10px 12px; resize: vertical; }
.field { margin-bottom: 14px; }
.field label {
    display: block; margin-bottom: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.toolbar {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin-bottom: 16px;
}
.toolbar > .form-control,
.toolbar > .btn,
.toolbar > .search-field { height: 42px; }
.toolbar > .btn { flex-shrink: 0; }
.sticky-search {
    position: sticky; top: calc(var(--nav-h) + var(--safe-t) + 1px); z-index: 50;
    background: rgba(247,247,245,.9); backdrop-filter: blur(10px);
    padding: 10px 0; margin-top: -6px;
}
.toolbar.toolbar-inline {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}
.toolbar.toolbar-inline > * {
    width: auto;
    min-width: 0;
}
.toolbar.toolbar-inline .search-field.grow {
    flex: 1 1 0;
    min-width: 120px;
}
.toolbar.toolbar-inline select.form-control {
    flex: 0 0 136px;
    width: 136px;
    max-width: 140px;
    font-size: 13px;
}
.toolbar.toolbar-inline > .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}
.search-field {
    position: relative; display: flex; align-items: center;
    background: #fff; border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs); height: 42px; padding: 0 12px; gap: 8px;
    box-sizing: border-box;
}
.search-field.grow { flex: 1; min-width: 180px; }
.search-field .ico { color: var(--faint); }
.search-field input {
    border: 0; outline: none; width: 100%; height: 100%; background: transparent;
}

/* ═══ CHIPS / BADGES / STATUS ═══ */
.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.filter-chips .chip {
    flex: 0 1 auto;
}
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff;
    font-size: 12.5px; font-weight: 650; color: var(--muted);
    transition: all var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .n {
    font-family: var(--mono); font-size: 10px; font-weight: 600;
    background: rgba(0,0,0,.06); padding: 2px 6px; border-radius: 999px;
}
.chip.active .n { background: rgba(255,255,255,.18); }

.badge {
    display: inline-flex; align-items: center;
    height: 22px; padding: 0 8px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-gray, .badge-blue { background: var(--accent-soft); color: var(--muted); }

.status-chip {
    display: inline-flex; align-items: center; gap: 8px;
    height: 34px; padding: 0 12px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line);
    font-size: 12.5px; font-weight: 650;
}
.status-chip .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
}
.status-chip.warn .dot { background: var(--warn); }
.status-chip.danger .dot { background: var(--danger); }
.status-chip.ok .dot { background: var(--ok); }

/* ═══ KPI ═══ */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px; margin-bottom: 8px;
}
.kpi {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    animation: fadeUp .4s var(--ease) both;
}
.kpi:nth-child(2) { animation-delay: .04s; }
.kpi:nth-child(3) { animation-delay: .08s; }
.kpi:nth-child(4) { animation-delay: .12s; }
.kpi .k {
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted);
}
.kpi .v {
    font-family: var(--display);
    font-size: 26px; font-weight: 700; letter-spacing: -.03em;
    margin-top: 6px; color: var(--ink); line-height: 1.1;
}
.kpi .v.ok { color: var(--ok); }
.kpi .v.warn { color: var(--warn); }
.kpi .v.danger { color: var(--danger); }
.kpi .s { margin-top: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }

/* ═══ SURFACES ═══ */
.surface {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    z-index: 0;
}
.surface-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}
.surface-head h2 {
    font-family: var(--display);
    font-size: 15px; font-weight: 700; letter-spacing: -.02em;
}
.surface-body { padding: 16px; }
.grid-2 {
    display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; margin-top: 18px;
    align-items: start;
}
.chart-box {
    position: relative;
    height: 240px;
    padding: 12px 16px 16px;
    overflow: hidden;
    isolation: isolate;
}
.chart-box canvas {
    max-width: 100% !important;
    max-height: 100% !important;
}
.empty {
    padding: 48px 20px; text-align: center; color: var(--muted);
    font-size: 14px; font-weight: 500;
}
.alert {
    padding: 12px 14px; border-radius: var(--radius-sm);
    margin-bottom: 14px; font-size: 13px; font-weight: 600;
}
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-danger { background: var(--danger-soft); color: var(--danger); }

/* ═══ ACTION QUEUE (Bugün) ═══ */
.today-stack { display: flex; flex-direction: column; gap: 10px; }
.action-card {
    display: flex; flex-direction: column; gap: 8px;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 12px 14px;
    box-shadow: var(--shadow);
    border-left: 3px solid var(--line-strong);
    animation: fadeUp .35s var(--ease) both;
}
.action-card .ec-head { margin-bottom: 0; }
.action-card .ec-desc { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.action-card .ec-title { font-size: 16px; }
.action-card .ec-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.action-card.danger { border-left-color: var(--danger); }
.action-card.warn { border-left-color: var(--warn); }
.action-card.ok { border-left-color: var(--ok); }
.ac-ico {
    width: 40px; height: 40px; border-radius: 11px;
    background: var(--accent-soft); display: grid; place-items: center;
    flex-shrink: 0; color: var(--ink);
}
.action-card.danger .ac-ico { background: var(--danger-soft); color: var(--danger); }
.action-card.warn .ac-ico { background: var(--warn-soft); color: var(--warn); }
.action-card.ok .ac-ico { background: var(--ok-soft); color: var(--ok); }
.ac-body { flex: 1; min-width: 0; }
.ac-title {
    font-family: var(--display); font-weight: 700; font-size: 15px;
    letter-spacing: -.02em;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ac-meta {
    font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px;
    overflow-wrap: anywhere; line-height: 1.45;
}
.ac-cta { flex-shrink: 0; }

.remind-stamp {
    font-family: var(--mono, 'JetBrains Mono', ui-monospace, monospace);
    font-size: 11px; font-weight: 600; letter-spacing: -.01em;
    color: var(--muted); background: #f5f5f5;
    border: 1px solid var(--line); border-radius: 6px;
    padding: 2px 7px; white-space: nowrap;
}
.risk-pill {
    font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; border-radius: 6px;
    padding: 2px 7px; white-space: nowrap;
}
.risk-pill.high { background: var(--danger-soft); color: var(--danger); }
.risk-pill.med { background: var(--warn-soft); color: var(--warn); }
.action-card.reminded { opacity: .88; }
.action-card.risk-high { box-shadow: inset 3px 0 0 var(--danger); }
.action-card.risk-med { box-shadow: inset 3px 0 0 var(--warn); }
.risk-banner {
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
    padding: 12px 16px; border-radius: var(--radius);
    border: 1px solid var(--line); margin-bottom: 14px; font-size: 13.5px;
}
.risk-banner.high { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 25%, var(--line)); color: var(--danger); }
.risk-banner.med { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, var(--line)); color: var(--warn); }
.risk-banner strong { font-weight: 700; }
.risk-banner span { color: var(--text); font-weight: 500; }
.ec-risk {
    font-size: 12px; font-weight: 600; color: var(--danger);
    margin-top: 6px;
}
.entity-card.risk-high { outline: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.entity-card.risk-med { outline: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.settings-stack { display: flex; flex-direction: column; gap: 18px; }
.settings-stack .toolbar .grow { flex: 1; min-width: 120px; }
.odeme-notu {
    margin-top: 4px; font-size: 12.5px; font-weight: 600;
    color: var(--ink); background: #f5f5f5;
    border-radius: 6px; padding: 4px 8px; display: inline-block;
}
.odeme-arsiv { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.modal-scrim {
    position: fixed; inset: 0; background: rgba(0,0,0,.35);
    z-index: 500;
}
.modal-panel {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: min(420px, calc(100% - 32px));
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(0,0,0,.18); z-index: 510;
    padding: 0;
}
.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.modal-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.entity-card.is-paused { opacity: .75; }
.entity-card.is-left { opacity: .55; }
.karar-note { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.kazanc-card { margin-top: 14px; }
.kazanc-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 720px) {
    .kazanc-grid { grid-template-columns: 1fr; }
}
.kazanc-v {
    font-family: var(--display); font-size: 20px; font-weight: 700;
    letter-spacing: -.02em; margin-top: 4px;
}
.kazanc-v.danger { color: var(--danger); }
.tier-pill {
    font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; border-radius: 6px;
    padding: 2px 7px; white-space: nowrap;
}
.tier-pill.tier-vip { background: #0c0c0c; color: #fff; }
.tier-pill.tier-iyi { background: var(--ok-soft); color: var(--ok); }
.tier-pill.tier-zahmetli { background: var(--danger-soft); color: var(--danger); }
.tier-pill.tier-normal { background: #f5f5f5; color: var(--muted); }
.kazanc-card.tier-vip { border-left: 3px solid #0c0c0c; }
.kazanc-card.tier-iyi { border-left: 3px solid var(--ok); }
.kazanc-card.tier-zahmetli { border-left: 3px solid var(--danger); }
.ec-title .tier-pill { margin-left: 6px; vertical-align: middle; }

.wa-queue-card {
    background: #fafafa; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px 20px;
}
.wa-queue-label {
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.wa-queue-title {
    font-family: var(--display); font-size: 22px; font-weight: 700;
    letter-spacing: -.02em;
}
.wa-queue-meta { margin-top: 6px; font-size: 13.5px; color: var(--muted); font-weight: 500; }

/* ═══ ENTITY CARDS ═══ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
    width: 100%;
}
.entity-card {
    position: relative;
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    min-height: 0;
    box-shadow: var(--shadow);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
    color: inherit;
    overflow: hidden;
}
.entity-card::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--line-strong);
}
.entity-card.tone-ok::before { background: var(--ok); }
.entity-card.tone-warn::before { background: var(--warn); }
.entity-card.tone-danger::before { background: var(--danger); }
.entity-card.tone-soon::before { background: var(--soon); }
.entity-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}
.ec-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-bottom: 14px;
}
.ec-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.ec-head .ec-title {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}
.ec-head .ec-status {
    flex-shrink: 0;
    margin-top: 2px;
}
.ec-head-bulk {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
}
.ec-head-bulk .bulk-check {
    margin-top: 4px;
}
.ec-head-bulk .ec-title {
    margin-bottom: 0;
    min-width: 0;
}
[data-page="musteriler"] .entity-card {
    min-height: 0;
}
.ec-avatar {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--ink); color: #fff;
    display: grid; place-items: center;
    font-family: var(--display); font-weight: 700; font-size: 13px;
    letter-spacing: -.02em; flex-shrink: 0;
}
.ec-avatar.soft { background: var(--accent-soft); color: var(--ink); }
.ec-kind {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--accent-soft);
    display: grid; place-items: center;
    font-family: var(--display); font-weight: 700; font-size: 11px;
    letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.ec-status {
    font-family: var(--mono);
    font-size: 10px; font-weight: 600;
    padding: 4px 8px; border-radius: 999px;
    background: var(--accent-soft); color: var(--muted);
}
.ec-status.ok { background: var(--ok-soft); color: var(--ok); }
.ec-status.warn { background: var(--warn-soft); color: var(--warn); }
.ec-status.danger { background: var(--danger-soft); color: var(--danger); }
.ec-status.soon { background: var(--soon-soft); color: var(--soon); }
.ec-type {
    font-size: 11px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: var(--faint);
}
.ec-title {
    font-family: var(--display);
    font-size: 18px; font-weight: 700; letter-spacing: -.03em;
    color: var(--ink); line-height: 1.2; margin-bottom: 4px;
}
.ec-head .ec-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    min-width: 0;
}
.ec-head .ec-title .tier-pill {
    margin-left: 0;
    font-size: 9px;
    padding: 2px 6px;
    flex-shrink: 0;
}
.ec-domain {
    font-family: var(--mono);
    font-size: 12px; font-weight: 500; color: var(--soon);
    margin-bottom: 6px; word-break: break-all;
}
.ec-desc {
    font-size: 13px; color: var(--muted); font-weight: 500;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ec-meta {
    font-size: 12px; color: var(--muted); font-weight: 500;
    margin-top: auto; padding-top: 12px;
}
.ec-chips {
    display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px;
}
.ec-chip {
    font-size: 11px; font-weight: 650; color: var(--muted);
    background: var(--accent-soft); padding: 3px 8px; border-radius: 999px;
}
.ec-progress {
    height: 5px; background: #eee; border-radius: 999px;
    margin: 10px 0 0; overflow: hidden;
}
.ec-progress > i {
    display: block; height: 100%; border-radius: 999px;
    background: var(--ink); width: 0;
}
.ec-progress.tone-warn > i { background: var(--warn); }
.ec-progress.tone-danger > i { background: var(--danger); }
.ec-progress.tone-soon > i { background: var(--soon); }
.ec-progress.tone-ok > i { background: var(--ok); }
.ec-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-top: 14px; padding-top: 12px;
    border-top: 1px solid var(--line);
}
.ec-price {
    font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink);
}
.ec-go {
    appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
    font: inherit; font-size: 12px; font-weight: 700; color: var(--muted);
    letter-spacing: .02em;
}
.entity-card:hover .ec-go { color: var(--ink); }
.ec-actions { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 10px; align-items: stretch; }
.ec-actions > .btn { flex: 1 1 0; min-width: 0; justify-content: center; }
.ec-actions > .btn .ico { flex-shrink: 0; }
.ec-actions > .ec-more { flex: 0 0 auto; margin-left: 0; position: relative; }
.ec-actions > .ec-more .btn { flex: none; min-width: 34px; padding: 0 8px; }
.ec-more-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 6px);
    min-width: 180px; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 220;
}
.ec-more { position: relative; }
.ec-more.open { z-index: 230; }
.ec-more.open .ec-more-menu { display: flex; flex-direction: column; gap: 2px; }
.entity-card:has(.ec-more.open),
.action-card:has(.ec-more.open),
.kanban-card:has(.ec-more.open) {
    position: relative;
    z-index: 40;
}
.surface:has(.ec-more),
.surface:has(.card-grid) {
    overflow: visible;
}
.kanban-col,
.kanban-col-body,
.kanban-card,
.today-stack {
    overflow: visible;
}
.ec-more-menu a, .ec-more-menu button {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; border: 0; background: transparent;
    border-radius: 8px; font-size: 13px; font-weight: 650;
    color: var(--ink); cursor: pointer; text-align: left; width: 100%;
}
.ec-more-menu a:hover, .ec-more-menu button:hover { background: var(--hover); }
.ec-more-menu a.danger { color: var(--danger); }

.ec-card-link {
    position: absolute; inset: 0; z-index: 1;
}
.entity-card { position: relative; }
.entity-card .ec-actions { position: relative; z-index: 2; }
.destek-preview {
    margin-top: 8px; font-size: 13px; color: var(--muted);
    line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.destek-meta-bar {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
    margin-bottom: 16px;
}
.destek-meta-item {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 14px; display: flex; flex-direction: column; gap: 6px;
}
.destek-meta-item .muted { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.destek-layout { align-items: start; }
.destek-chat-card .chat { min-height: 280px; max-height: 52vh; }
.destek-compose {
    padding: 14px 16px; border-top: 1px solid var(--line); background: #fafafa;
}
.destek-status-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.destek-status-grid .btn:disabled { opacity: 1; }

.ui-dlg-msg {
    margin: 0 0 4px; font-size: 14px; font-weight: 550; color: var(--text); line-height: 1.45;
}
.btn-danger-solid { background: var(--danger) !important; border-color: var(--danger) !important; color: #fff !important; }
.btn-danger-solid:hover { filter: brightness(.92); }

.filter-bar {
    display: grid;
    grid-template-columns: minmax(180px, 1.6fr) minmax(140px, 1fr) minmax(140px, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}
.filter-bar:has(> .search-field) {
    grid-template-columns: minmax(200px, 2fr) minmax(150px, 1fr) minmax(130px, .9fr) auto auto;
}
.filter-bar > .search-field { height: 42px; width: 100%; min-width: 0; }
.filter-bar > .form-control,
.filter-bar > .btn { height: 42px; width: 100%; }
.filter-bar > .btn { width: auto; min-width: 96px; }
.filter-bar > .btn-ghost { justify-self: start; }

.filter-bar-hizmet {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin-bottom: 16px;
    overflow: visible;
    box-sizing: border-box;
}
.filter-bar-hizmet .filter-musteri {
    flex: 0 1 148px;
    min-width: 120px;
    width: auto;
}
.filter-bar-hizmet .filter-date-field {
    position: relative;
    flex: 0 0 100px;
    min-width: 92px;
    max-width: 108px;
    height: 42px;
    display: flex;
    align-items: flex-end;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    padding: 0 8px 5px;
    box-sizing: border-box;
}
.filter-bar-hizmet .filter-date-label {
    position: absolute;
    top: 5px;
    left: 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1;
    pointer-events: none;
}
.filter-bar-hizmet .filter-date-compact {
    width: 100%;
    height: 20px;
    padding: 0;
    margin: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 12px;
    color: var(--ink);
    line-height: 1.1;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.filter-bar-hizmet .filter-date-compact::-webkit-datetime-edit,
.filter-bar-hizmet .filter-date-compact::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
    margin: 0;
    line-height: 1.1;
}
.filter-bar-hizmet .filter-date-compact::-webkit-date-and-time-value {
    text-align: left;
}
.filter-bar-hizmet .filter-date-compact::-webkit-calendar-picker-indicator {
    opacity: .55;
    cursor: pointer;
    margin-left: 0;
}
.filter-bar-hizmet .filter-hizmet-search {
    flex: 1 1 160px;
    min-width: 120px;
    height: 42px;
    width: auto;
}
.filter-bar-hizmet .filter-hizmet-search input {
    font-size: 14px;
    min-width: 0;
}
.filter-bar-hizmet .filter-hizmet-search input::placeholder {
    color: var(--muted);
    font-size: 13px;
}
.filter-bar-hizmet .filter-sort {
    flex: 0 0 148px;
    width: 148px;
    max-width: 148px;
    min-width: 132px;
    font-size: 12px;
    padding-inline: 8px;
}
.filter-bar-hizmet > .btn,
.filter-bar-hizmet > a.btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
}

.todo-add {
    display: flex; gap: 8px; align-items: center;
    padding: 12px 14px; margin: 0;
    border-bottom: 1px solid var(--line);
}
.todo-add .input { flex: 1; height: 38px; min-width: 0; }
.todo-add .btn { flex-shrink: 0; height: 38px; }

.entity-card { overflow: visible; }
.card-grid { overflow: visible; }

.desktop-only { display: block; }
.mobile-only { display: none; }
.finans-cards {
    display: none; grid-template-columns: 1fr; gap: 12px; padding: 14px;
}

/* ═══ DATA TABLE (finans) ═══ */
.data-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.data-table { width: 100%; }
.data-table th {
    text-align: left; padding: 10px 14px;
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted);
    border-bottom: 1px solid var(--line); background: #fafafa;
}
.data-table td {
    padding: 14px; border-bottom: 1px solid var(--line);
    font-size: 13.5px; vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #fafafa; }
.data-table .mono { font-family: var(--mono); font-weight: 600; font-size: 12.5px; }
.data-table .ok { color: var(--ok); }
.data-table .danger { color: var(--danger); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ═══ TABS ═══ */
.tabs {
    display: flex; gap: 4px; overflow-x: auto;
    margin-bottom: 16px; padding: 4px;
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; box-shadow: var(--shadow);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
    border: 0; background: transparent; cursor: pointer;
    padding: 9px 14px; border-radius: 9px;
    font-size: 13px; font-weight: 650; color: var(--muted);
    white-space: nowrap; transition: all var(--ease);
    scroll-snap-align: start;
    flex: 0 0 auto;
}
.tabs button.active { background: var(--ink); color: #fff; }
.tab-count {
    display: inline-flex; min-width: 18px; height: 18px;
    align-items: center; justify-content: center;
    margin-left: 4px; padding: 0 5px; border-radius: 999px;
    font-size: 10px; font-family: var(--mono);
    background: rgba(0,0,0,.08);
}
.tabs button.active .tab-count { background: rgba(255,255,255,.2); }
.tab-panel { display: none; animation: fadeUp .25s var(--ease); }
.tab-panel.active { display: block; }

.detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.detail-grid .muted {
    display: block; font-size: 11px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 4px;
}
.detail-grid .strong { font-weight: 650; font-size: 14px; }

/* ═══ TODO ═══ */
.todo-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.todo-item:last-child { border-bottom: 0; }
.todo-toggle, .todo-delete { margin: 0; padding: 0; display: contents; }
.todo-check {
    width: 22px; height: 22px; border-radius: 7px;
    border: 1.5px solid var(--line-strong);
    display: grid; place-items: center; flex-shrink: 0;
    background: transparent; padding: 0; cursor: pointer;
    font: inherit; color: inherit;
}
.todo-check.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.todo-text { flex: 1; font-size: 13.5px; font-weight: 550; }
.todo-text.done { text-decoration: line-through; color: var(--muted); }

/* ═══ CHAT ═══ */
.chat {
    padding: 16px; max-height: 420px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 10px;
    background: #fafafa;
}
.bubble {
    max-width: 78%; padding: 12px 14px; border-radius: 14px;
    font-size: 13.5px; font-weight: 500; line-height: 1.45;
}
.bubble.me {
    align-self: flex-end; background: var(--ink); color: #fff;
    border-bottom-right-radius: 4px;
}
.bubble.them {
    align-self: flex-start; background: #fff; border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
}
.bubble time {
    display: block; margin-top: 6px; font-size: 11px;
    opacity: .55; font-weight: 600;
}

/* ═══ PIPELINE ═══ */
.pipeline {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    margin-bottom: 8px;
    position: relative; z-index: 1;
}
.pipe-col {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
    overflow: hidden;
}
.pipe-col h3 {
    font-family: var(--display); font-size: 13px; font-weight: 700;
    margin-bottom: 10px; display: flex; justify-content: space-between;
    align-items: center;
}
.pipe-col h3 span {
    font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 600;
}
.pipe-item {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f6f6f5;
    border: 1px solid transparent;
    margin-bottom: 8px;
    transition: background var(--ease), border-color var(--ease);
}
.pipe-item:hover { background: #fff; border-color: var(--line-strong); }
.pipe-item:last-child { margin-bottom: 0; }
.pipe-item .t {
    font-weight: 700; font-size: 13px; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pipe-item .m {
    font-size: 12px; color: var(--muted); margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Compact settings form */
.form-inline {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
}
.form-inline .field { margin-bottom: 0; flex: 1; min-width: 140px; }
.form-inline .btn { height: 42px; flex-shrink: 0; }
.surface-body.compact { padding: 16px; }
.entity-card .ec-actions {
    margin-top: 10px;
    padding-top: 0;
}
.entity-card .ec-foot { margin-top: 12px; }

/* In-panel filter chips */
.panel-filters {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 12px 14px 0;
}
.copy-row {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.domain-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}
.domain-row:last-child { border-bottom: 0; }
.domain-main { min-width: 0; flex: 1; }
.domain-name {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; margin-bottom: 6px;
}
.domain-svcs { display: flex; flex-wrap: wrap; gap: 5px; }

.toast-container {
    position: fixed; bottom: calc(88px + var(--safe-b)); left: 50%;
    transform: translateX(-50%); z-index: 500;
    display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.alert-toast-hidden {
    display: none !important;
}
.toast {
    background: var(--ink); color: #fff;
    padding: 10px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 650;
    box-shadow: var(--shadow-lg);
    animation: rise .18s var(--ease);
}

.kpi .s.ok { color: var(--ok); }

/* Timeline */
.timeline { padding: 8px 16px 16px; }
.tl-item {
    display: flex; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.tl-item:last-child { border-bottom: 0; }
.tl-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--line-strong); margin-top: 5px; flex-shrink: 0;
}
.tl-item.tone-ok .tl-dot { background: var(--ok); }
.tl-item.tone-warn .tl-dot { background: var(--warn); }
.tl-item.tone-danger .tl-dot { background: var(--danger); }
.tl-item.tone-soon .tl-dot { background: var(--soon); }
.tl-body { flex: 1; min-width: 0; }
.tl-top {
    display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
    font-size: 13.5px;
}
.tl-meta { margin-top: 3px; font-size: 12.5px; color: var(--muted); }

/* ═══ DRAWERS ═══ */
.drawer-backdrop {
    position: fixed; inset: 0; z-index: 400;
    background: rgba(12,12,12,.28); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, visibility .2s;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
    position: fixed; top: 0; right: 0; z-index: 410;
    width: var(--drawer-w); height: 100dvh; max-height: 100%;
    background: #fff; border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%); visibility: hidden;
    transition: transform .25s var(--ease), visibility .25s;
    display: flex; flex-direction: column;
    padding-top: var(--safe-t);
}
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 {
    font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.02em;
}
.drawer-body { padding: 18px; overflow-y: auto; flex: 1; }
.drawer-foot {
    display: flex; gap: 8px; padding: 14px 18px calc(14px + var(--safe-b));
    border-top: 1px solid var(--line); background: #fafafa;
}

/* ═══ FAB + BOTTOM NAV ═══ */
.fab-wrap {
    position: fixed; right: 18px; bottom: calc(72px + var(--safe-b));
    z-index: 250; display: none;
}
.fab {
    width: 56px; height: 56px; border-radius: 18px;
    background: var(--ink); color: #fff; border: 0;
    display: grid; place-items: center; cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: transform .18s var(--ease), background .15s var(--ease);
}
.fab.open .ico { transform: rotate(45deg); transition: transform .18s var(--ease); }
.fab .ico { width: 22px; height: 22px; transition: transform .18s var(--ease); }
.fab-menu {
    position: absolute; right: 0; bottom: 68px;
    display: none; flex-direction: column; gap: 8px;
    align-items: stretch;
    width: min(260px, calc(100vw - 36px));
}
.fab-wrap.open .fab-menu { display: flex; }
.fab-menu a, .fab-menu button {
    display: flex; align-items: center; gap: 10px;
    width: 100%; box-sizing: border-box;
    height: 48px; padding: 0 14px;
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; font-weight: 650; font-size: 13px;
    color: var(--ink); box-shadow: var(--shadow-lg);
    white-space: nowrap; cursor: pointer; text-align: left;
    animation: rise .18s var(--ease) both;
}
.fab-menu a .ico, .fab-menu button .ico {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}
.fab-menu a:nth-child(1), .fab-menu button:nth-child(1) { animation-delay: .02s; }
.fab-menu a:nth-child(2), .fab-menu button:nth-child(2) { animation-delay: .04s; }
.fab-menu a:nth-child(3), .fab-menu button:nth-child(3) { animation-delay: .06s; }
.fab-menu a:nth-child(4), .fab-menu button:nth-child(4) { animation-delay: .08s; }
.fab-menu a:nth-child(5), .fab-menu button:nth-child(5) { animation-delay: .10s; }
.fab-menu a:nth-child(6), .fab-menu button:nth-child(6) { animation-delay: .12s; }
.fab-menu a:hover, .fab-menu button:hover {
    border-color: var(--ink); background: var(--hover);
}
.fab-scrim {
    position: fixed; inset: 0; z-index: 240; display: none;
    background: rgba(12,12,12,.2);
}
.fab-scrim.open { display: block; }

.bottom-nav {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 220;
    background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + var(--safe-b));
    justify-content: space-around;
}
.bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 8px 4px; font-size: 12px; font-weight: 700;
    color: var(--faint); min-width: 0; flex: 1; min-height: 44px;
    line-height: 1.15;
}
.bottom-nav a.active { color: var(--ink); }
.bottom-nav .ico { width: 20px; height: 20px; }

/* legacy rlist keep for any leftover */
.rlist { display: flex; flex-direction: column; }
.rrow { border-bottom: 1px solid var(--line); }
.rrow-body { display: flex; align-items: center; gap: 12px; padding: 14px; }
.rrow-actions { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.dot.warn { background: var(--warn); }
.dot.danger { background: var(--danger); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.strong { font-weight: 650; }

/* ═══ LOGIN ═══ */
.login {
    min-height: 100vh;
    display: grid; grid-template-columns: 1.05fr .95fr;
    background: #fff;
}
.login-visual {
    --line-w: rgba(255,255,255,.085);
    background-color: #0c0c0c;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 23px,
            var(--line-w) 23px,
            var(--line-w) 24px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 23px,
            var(--line-w) 23px,
            var(--line-w) 24px
        ),
        radial-gradient(900px 520px at 12% 18%, rgba(255,255,255,.07), transparent 55%),
        linear-gradient(165deg, #111 0%, #0a0a0a 100%);
    color: #fff; padding: 48px;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
}
.login-visual::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,.15) 0%, transparent 30%, transparent 70%, rgba(0,0,0,.35) 100%);
    pointer-events: none;
}
.login-visual::after {
    content: '';
    position: absolute; right: -18%; bottom: -28%;
    width: 70%; height: 70%; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 0 0 48px rgba(255,255,255,.03);
    pointer-events: none;
}
.login-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.login-brand img { width: 42px; height: 42px; border-radius: 12px; filter: invert(1); }
.login-brand strong {
    font-family: var(--courier);
    font-size: 20px; font-weight: 700;
    letter-spacing: -.01em;
}
.login-brand span {
    display: block; font-size: 12px; color: rgba(255,255,255,.55);
    font-weight: 500; margin-top: 3px;
    font-family: var(--font);
}
.login-hero { position: relative; z-index: 1; max-width: 18em; margin-top: auto; padding-bottom: 8px; }
.login-hero h1 {
    font-family: var(--display);
    font-size: clamp(32px, 4.2vw, 48px);
    font-weight: 700; letter-spacing: -.045em; line-height: 1.05;
}
.login-hero p {
    margin-top: 16px; color: rgba(255,255,255,.62); font-size: 15px; max-width: 34ch;
}
.login-panel { display: grid; place-items: center; padding: 32px 24px; background: var(--bg); }
.login-box {
    width: min(400px, 100%);
    background: #fff; border: 1px solid var(--line);
    border-radius: 18px; padding: 32px 28px;
    box-shadow: var(--shadow-md);
}
.login-box h1 {
    font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.03em;
}
.login-box .sub { color: var(--muted); margin: 8px 0 24px; font-size: 13px; }
.remember-row {
    display: flex; align-items: center; gap: 10px;
    margin-top: 4px; cursor: pointer;
    font-size: 13.5px; font-weight: 600; color: var(--text);
    user-select: none;
}
.remember-row input {
    width: 16px; height: 16px; accent-color: #0c0c0c;
}
.remember-row small {
    color: var(--muted); font-weight: 500; margin-left: 2px;
}

/* Desktop card polish */
@media (min-width: 981px) {
    .page-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
    .page-actions {
        display: flex;
        flex-wrap: wrap;
        width: auto;
        gap: 8px;
        align-items: center;
    }
    .page-actions > .btn,
    .page-actions > a.btn,
    .page-actions > button {
        width: auto;
        min-width: 0;
    }
    .toolbar.toolbar-inline {
        display: flex;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 16px;
    }
    .toolbar.toolbar-inline .search-field.grow {
        flex: 1 1 0;
        min-width: 200px;
    }
    .toolbar.toolbar-inline select.form-control {
        flex: 0 0 148px;
        width: 148px;
    }
    .toolbar.toolbar-inline > .btn {
        flex: 0 0 auto;
    }
    [data-page="index"] .entity-card,
    [data-page="hizmetler"] .entity-card,
    [data-page="musteriler"] .entity-card,
    [data-page="destek"] .entity-card,
    [data-page="musteri_detay"] .entity-card {
        padding: 16px 18px 14px;
    }
    [data-page="index"] .ec-head .ec-title,
    [data-page="hizmetler"] .ec-head .ec-title,
    [data-page="musteriler"] .ec-head .ec-title,
    [data-page="destek"] .ec-head .ec-title,
    [data-page="musteri_detay"] .ec-head .ec-title {
        font-size: 19px;
        letter-spacing: -.03em;
        line-height: 1.15;
    }
    [data-page="index"] .card-grid,
    [data-page="hizmetler"] .card-grid,
    [data-page="musteriler"] .card-grid,
    [data-page="destek"] .card-grid {
        gap: 14px;
    }
    [data-page="index"] .entity-card .ec-foot,
    [data-page="hizmetler"] .entity-card .ec-foot,
    [data-page="musteriler"] .entity-card .ec-foot {
        margin-top: auto;
    }
    [data-page="musteri_detay"] .page-head .page-actions.page-actions-split {
        display: grid;
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        width: auto;
        min-width: 280px;
        gap: 8px;
        align-items: stretch;
    }
    [data-page="musteri_detay"] .page-head .page-actions.page-actions-split > .btn,
    [data-page="musteri_detay"] .page-head .page-actions.page-actions-split > .page-more {
        width: 100%;
        min-width: 0;
    }
    [data-page="musteri_detay"] .page-head .page-actions.page-actions-split .page-more-btn {
        width: 100%;
        height: 40px;
    }
    [data-page="finans"] .filter-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto auto;
        gap: 8px;
        align-items: end;
    }
    [data-page="finans"] .filter-bar .filter-dates-row {
        display: contents;
    }
    [data-page="finans"] .filter-bar > .btn,
    [data-page="finans"] .filter-bar > a.btn {
        width: auto;
    }
    [data-page="destek"] .filter-bar {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto auto;
        gap: 8px;
        align-items: end;
    }
    [data-page="destek"] .filter-bar > .btn,
    [data-page="destek"] .filter-bar > a.btn {
        width: auto;
    }
    [data-page="hizmetler"] .filter-bar-hizmet {
        display: flex;
        flex-wrap: nowrap;
        align-items: end;
        gap: 8px;
    }
    [data-page="hizmetler"] .filter-bar-hizmet > * {
        flex: 0 0 auto;
        min-width: 0;
    }
    [data-page="hizmetler"] .filter-bar-hizmet .filter-hizmet-search {
        flex: 1 1 200px;
    }
    [data-page="hizmetler"] .filter-bar-hizmet .filter-musteri {
        flex: 0 0 180px;
    }
    [data-page="hizmetler"] .filter-bar-hizmet .filter-date-field {
        flex: 0 0 132px;
    }
    [data-page="hizmetler"] .filter-bar-hizmet select.form-control {
        flex: 0 0 148px;
    }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 980px) {
    .kpi-row { grid-template-columns: 1fr 1fr; }
    .grid-2, .pipeline { grid-template-columns: 1fr; }
    .nav-links, .nav-user { display: none; }
    .icon-btn.menu-btn { display: none !important; }
    .fab-wrap { display: block; }
    .fab-wrap {
        right: max(14px, env(safe-area-inset-right, 0px));
        bottom: calc(88px + var(--safe-b));
        transform: none;
    }
    .fab-menu {
        position: fixed;
        right: max(14px, env(safe-area-inset-right, 0px));
        left: auto;
        transform: none;
        bottom: calc(88px + 56px + 10px + var(--safe-b));
        width: min(280px, calc(100vw - 28px));
        max-width: calc(100vw - 28px);
        max-height: min(50vh, 360px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .bottom-nav { display: flex; }
    .app-main {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
        padding: 18px 12px calc(110px + var(--safe-b));
        box-sizing: border-box;
    }
    .page-head,
    .filter-bar-hizmet,
    .filter-chips,
    .kpi-row,
    .card-grid,
    .toolbar,
    .surface,
    .today-stack {
        max-width: 100%;
        min-width: 0;
    }
    .page-head { flex-direction: column; align-items: stretch; gap: 12px; }
    .page-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }
    .page-actions > .status-chip {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }
    .page-actions > .btn,
    .page-actions > .page-more {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }
    .page-actions > .page-more {
        display: flex;
    }
    .page-actions > .page-more > .btn {
        width: 100%;
        height: 40px;
        justify-content: center;
    }
    .page-actions > form {
        grid-column: 1 / -1;
        width: 100%;
    }
    .page-actions > .btn:only-child,
    .page-actions > a.btn:only-child,
    .page-actions > button:only-child {
        grid-column: 1 / -1;
    }
    .page-head h1 {
        font-size: clamp(24px, 6.5vw, 30px);
        line-height: 1.15;
    }
    .field-row, .detail-grid { grid-template-columns: 1fr; }
    .data-table-wrap { overflow-x: auto; }
    .toolbar.sticky-search:not(.toolbar-inline) {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    .toolbar.sticky-search:not(.toolbar-inline) > * {
        width: 100%;
        min-width: 0;
    }
    .toolbar.toolbar-inline:not(.toolbar-unified) {
        gap: 6px;
    }
    .toolbar.toolbar-inline:not(.toolbar-unified) .search-field.grow {
        flex: 1 1 0;
        min-width: 0;
        padding-inline: 10px;
    }
    .toolbar.toolbar-inline:not(.toolbar-unified) .search-field input {
        font-size: 16px;
    }
    .toolbar.toolbar-inline:not(.toolbar-unified) select.form-control {
        flex: 0 0 112px;
        width: 112px;
        max-width: 112px;
        padding-inline: 8px;
        font-size: 12.5px;
    }
    .toolbar.toolbar-inline:not(.toolbar-unified) > .btn {
        padding-inline: 12px;
        font-size: 13px;
    }
    .toolbar.sticky-search:has(> .search-field.grow):has(> .btn-primary):not(:has(> select.form-control)) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
    }
    .toolbar.sticky-search:has(> .search-field.grow):has(> .btn-primary):not(:has(> select.form-control)) > .search-field.grow,
    .toolbar.sticky-search:has(> .search-field.grow):has(> .btn-primary):not(:has(> select.form-control)) > .btn-primary {
        width: auto;
    }
    .toolbar.sticky-search:has(> .search-field.grow):has(> .btn-primary):not(:has(> select.form-control)) > .btn-primary {
        min-width: 72px;
        padding-inline: 16px;
    }
    .filter-bar:not(.filter-bar-hizmet) {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    .filter-bar:not(.filter-bar-hizmet) > * {
        width: 100%;
        min-width: 0;
    }
    .filter-bar .filter-dates-row {
        width: 100%;
    }
    .filter-bar:not(.filter-bar-hizmet) > .btn,
    .filter-bar:not(.filter-bar-hizmet) > a.btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }
    .filter-bar-hizmet {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-bottom: 12px;
        overflow: visible;
        align-items: stretch;
    }
    .filter-toolbar-sticky {
        display: flex;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }
    .filter-toolbar-sticky .filter-hizmet-search {
        flex: 1;
        min-width: 0;
        height: 42px;
    }
    .filter-toolbar-sticky .filter-toggle-btn {
        flex: 0 0 auto;
        height: 42px;
        align-self: stretch;
    }
    .filter-panel-advanced {
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }
    .filter-panel-advanced.is-open { display: grid; }
    .filter-panel-advanced .filter-musteri,
    .filter-panel-advanced .filter-sort { grid-column: 1 / -1; width: 100%; height: 42px; }
    .filter-panel-advanced .filter-date-bas { grid-column: 1; }
    .filter-panel-advanced .filter-date-bit { grid-column: 2; }
    .filter-panel-advanced .filter-date-field { width: 100%; max-width: 100%; height: 42px; }
    .filter-panel-advanced .filter-submit-mobile {
        grid-column: 1 / -1;
        display: inline-flex;
        width: 100%;
        height: 42px;
        justify-content: center;
    }
    .filter-panel-advanced:has(.filter-clear-mobile) .filter-submit-mobile { grid-column: 1; }
    .filter-panel-advanced .filter-clear-mobile {
        grid-column: 2;
        display: inline-flex;
        width: 100%;
        height: 42px;
        justify-content: center;
    }
    .filter-toggle-btn { display: inline-flex; flex: 0 0 auto; }
    .filter-submit-desktop,
    .filter-clear-desktop { display: none; }
    .filter-bar-hizmet .filter-hizmet-search input { font-size: 16px; }
    .filter-bar-hizmet .filter-hizmet-search input::placeholder {
        font-size: 13px;
    }
    [data-page="hizmetler"] .page-head {
        gap: 10px;
        margin-bottom: 4px;
        width: 100%;
    }
    [data-page="hizmetler"] .page-actions {
        width: 100%;
    }
    [data-page="hizmetler"] .page-head p {
        font-size: 13px;
    }
    [data-page="hizmetler"] .filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        margin-bottom: 10px;
        padding-bottom: 2px;
        width: 100%;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    [data-page="hizmetler"] .filter-chips::-webkit-scrollbar {
        display: none;
    }
    [data-page="hizmetler"] .filter-chips .chip {
        flex: 0 0 auto;
        min-width: 0;
        max-width: none;
        width: auto;
        height: 34px;
        font-size: 11.5px;
        padding: 0 11px;
        white-space: nowrap;
    }
    [data-page="hizmetler"] .filter-chips .chip:last-child:nth-child(odd) {
        flex: 0 0 auto;
        min-width: 0;
    }
    [data-page="hizmetler"] .filter-bar-hizmet {
        margin-bottom: 12px;
    }
    /* Shared compact cards — mobile */
    [data-page="index"] .entity-card,
    [data-page="hizmetler"] .entity-card,
    [data-page="musteri_detay"] .entity-card,
    [data-page="destek"] .entity-card,
    [data-page="finans"] .entity-card {
        padding: 12px 14px 10px;
        min-height: 0;
        border-radius: calc(var(--radius) - 2px);
        box-shadow: none;
    }
    [data-page="index"] .entity-card:hover,
    [data-page="hizmetler"] .entity-card:hover,
    [data-page="musteri_detay"] .entity-card:hover,
    [data-page="destek"] .entity-card:hover,
    [data-page="finans"] .entity-card:hover {
        transform: none;
        box-shadow: none;
    }
    [data-page="index"] .entity-card::before,
    [data-page="hizmetler"] .entity-card::before,
    [data-page="musteri_detay"] .entity-card::before,
    [data-page="destek"] .entity-card::before,
    [data-page="finans"] .entity-card::before {
        width: 2px;
    }
    [data-page="index"] .ec-head,
    [data-page="hizmetler"] .ec-head,
    [data-page="musteri_detay"] .ec-head,
    [data-page="destek"] .ec-head,
    [data-page="finans"] .ec-head {
        margin-bottom: 5px;
        gap: 8px;
    }
    [data-page="index"] .ec-head .ec-title,
    [data-page="hizmetler"] .ec-head .ec-title,
    [data-page="musteri_detay"] .ec-head .ec-title,
    [data-page="destek"] .ec-head .ec-title,
    [data-page="finans"] .ec-head .ec-title {
        font-size: 17px;
        font-weight: 700;
        letter-spacing: -.03em;
        line-height: 1.2;
        margin: 0;
    }
    [data-page="index"] .ec-status,
    [data-page="hizmetler"] .ec-status,
    [data-page="musteri_detay"] .ec-status,
    [data-page="destek"] .ec-status,
    [data-page="finans"] .ec-status {
        font-size: 9px;
        padding: 3px 7px;
        margin-top: 1px;
    }
    [data-page="index"] .ec-domain,
    [data-page="hizmetler"] .ec-domain,
    [data-page="musteri_detay"] .ec-domain {
        font-size: 11px;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: normal;
    }
    [data-page="index"] .ec-desc,
    [data-page="hizmetler"] .ec-desc,
    [data-page="musteri_detay"] .ec-desc,
    [data-page="destek"] .ec-desc,
    [data-page="finans"] .ec-desc {
        font-size: 11.5px;
        line-height: 1.35;
        color: var(--muted);
        -webkit-line-clamp: 2;
    }
    [data-page="index"] .ec-progress,
    [data-page="hizmetler"] .ec-progress,
    [data-page="musteri_detay"] .ec-progress {
        height: 3px;
        margin-top: 8px;
    }
    [data-page="index"] .ec-foot,
    [data-page="hizmetler"] .ec-foot,
    [data-page="musteri_detay"] .ec-foot,
    [data-page="destek"] .ec-foot,
    [data-page="finans"] .ec-foot {
        margin-top: 7px;
        padding-top: 8px;
        gap: 8px;
    }
    [data-page="index"] .ec-price,
    [data-page="hizmetler"] .ec-price,
    [data-page="musteri_detay"] .ec-price,
    [data-page="destek"] .ec-price,
    [data-page="finans"] .ec-price {
        font-size: 13px;
        font-weight: 700;
    }
    [data-page="index"] .ec-go,
    [data-page="hizmetler"] .ec-go,
    [data-page="musteri_detay"] .ec-go,
    [data-page="destek"] .ec-go {
        font-size: 11px;
        font-weight: 700;
    }
    [data-page="index"] .card-grid,
    [data-page="hizmetler"] .card-grid,
    [data-page="destek"] .card-grid,
    [data-page="finans"] .finans-cards,
    [data-page="musteri_detay"] .card-grid {
        gap: 8px;
    }
    [data-page="finans"] .finans-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    [data-page="hizmetler"] .ec-meta,
    [data-page="musteri_detay"] .tab-panel[data-tab="hizmetler"] .ec-meta {
        display: none;
    }
    [data-page="hizmetler"] .karar-note,
    [data-page="musteri_detay"] .karar-note {
        margin-top: 4px;
        font-size: 11px;
        line-height: 1.35;
    }
    [data-page="destek"] .destek-preview {
        font-size: 11.5px;
        line-height: 1.35;
        margin-top: 4px;
        color: var(--muted);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    [data-page="destek"] .ec-meta {
        margin-top: 4px;
        padding-top: 0;
        font-size: 11px;
    }
    [data-page="destek"] .filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        margin-bottom: 10px;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    [data-page="destek"] .filter-chips::-webkit-scrollbar {
        display: none;
    }
    [data-page="destek"] .filter-chips .chip {
        flex: 0 0 auto;
        height: 34px;
        font-size: 11.5px;
        padding: 0 11px;
        white-space: nowrap;
    }
    [data-page="finans"] .filter-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    [data-page="finans"] .filter-bar .filter-dates-row {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    [data-page="finans"] .filter-bar > select,
    [data-page="finans"] .filter-bar > .form-control {
        width: 100%;
        min-width: 0;
    }
    [data-page="finans"] .filter-bar > .btn,
    [data-page="finans"] .filter-bar > a.btn {
        width: 100%;
    }
    [data-page="finans"] .filter-bar > .btn-ghost {
        grid-column: 1 / -1;
    }
    [data-page="musteri_detay"] .page-head .page-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    [data-page="musteri_detay"] .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    [data-page="musteri_detay"] .tabs::-webkit-scrollbar {
        display: none;
    }
    [data-page="index"] .section-label {
        margin-top: 4px;
        margin-bottom: 8px;
    }
    [data-page="index"] .filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        margin-bottom: 10px;
        padding-bottom: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    [data-page="index"] .filter-chips::-webkit-scrollbar {
        display: none;
    }
    [data-page="index"] .filter-chips .chip {
        flex: 0 0 auto;
        min-width: 0;
        height: 34px;
        font-size: 11.5px;
        padding: 0 11px;
        white-space: nowrap;
    }
    [data-page="index"] .ec-desc,
    [data-page="hizmetler"] .ec-desc,
    [data-page="musteri_detay"] .ec-desc {
        -webkit-line-clamp: 1;
    }
    [data-page="index"] .pipeline {
        gap: 10px;
    }
    [data-page="index"] .pipe-item {
        padding: 10px 12px;
    }
    [data-page="index"] .pipe-item .t {
        font-size: 14px;
        font-weight: 700;
    }
    [data-page="musteriler"] .card-grid {
        gap: 8px;
    }
    [data-page="musteriler"] .entity-card {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "head"
            "desc"
            "risk"
            "chips"
            "meta"
            "foot";
        gap: 0;
        align-items: stretch;
        padding: 12px 14px 10px;
        min-height: 0;
        border-radius: calc(var(--radius) - 2px);
        box-shadow: none;
    }
    [data-page="musteriler"] .entity-card:hover {
        transform: none;
        box-shadow: none;
    }
    [data-page="musteriler"] .entity-card::before {
        width: 2px;
    }
    [data-page="musteriler"] .ec-head {
        grid-area: head;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 5px;
    }
    [data-page="musteriler"] .ec-status {
        font-size: 9px;
        padding: 3px 7px;
        margin-top: 1px;
    }
    [data-page="musteriler"] .ec-title {
        font-size: 17px;
        font-weight: 700;
        letter-spacing: -.03em;
        line-height: 1.2;
        margin: 0;
        min-width: 0;
    }
    [data-page="musteriler"] .ec-title .tier-pill {
        font-size: 9px;
        padding: 2px 6px;
        margin-left: 4px;
        vertical-align: middle;
    }
    [data-page="musteriler"] .ec-desc {
        grid-area: desc;
        font-size: 11.5px;
        line-height: 1.35;
        color: var(--muted);
        min-width: 0;
        margin-bottom: 6px;
    }
    [data-page="musteriler"] .ec-risk {
        grid-area: risk;
        margin-bottom: 4px;
        font-size: 11px;
        line-height: 1.35;
    }
    [data-page="musteriler"] .ec-chips {
        grid-area: chips;
        margin-bottom: 5px;
        gap: 4px;
        flex-wrap: wrap;
        max-height: none;
    }
    [data-page="musteriler"] .ec-chip {
        font-size: 10px;
        padding: 2px 6px;
    }
    [data-page="musteriler"] .ec-meta {
        grid-area: meta;
        margin-top: 0;
        padding-top: 0;
        font-size: 11px;
        line-height: 1.35;
        color: var(--muted);
        margin-bottom: 6px;
    }
    [data-page="musteriler"] .ec-foot {
        grid-area: foot;
        margin-top: 0;
        padding-top: 8px;
        gap: 8px;
        border-top: 1px solid var(--line);
    }
    [data-page="musteriler"] .ec-price {
        font-size: 13px;
        font-weight: 700;
    }
    [data-page="musteriler"] .ec-go {
        font-size: 11px;
        font-weight: 700;
    }
    [data-page="musteri_timeline"] .page-head {
        gap: 8px;
        margin-bottom: 4px;
        width: 100%;
    }
    [data-page="musteri_timeline"] .page-head p {
        font-size: 13px;
    }
    [data-page="musteri_timeline"] .filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        margin-bottom: 10px;
        padding-bottom: 2px;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    [data-page="musteri_timeline"] .filter-chips::-webkit-scrollbar {
        display: none;
    }
    [data-page="musteri_timeline"] .filter-chips .chip {
        flex: 0 0 auto;
        min-width: 0;
        height: 34px;
        font-size: 11.5px;
        padding: 0 11px;
        white-space: nowrap;
    }
    [data-page="musteri_timeline"] .filter-chips .chip:last-child:nth-child(odd) {
        flex: 0 0 auto;
        min-width: 0;
    }
    [data-page="musteri_timeline"] .timeline-list {
        gap: 8px;
        margin-top: 8px;
        width: 100%;
        max-width: 100%;
    }
    [data-page="musteri_timeline"] .timeline-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 10px 12px;
        gap: 10px;
        align-items: flex-start;
        border-radius: calc(var(--radius-sm) - 2px);
    }
    [data-page="musteri_timeline"] .timeline-dot {
        width: 8px;
        height: 8px;
        margin-top: 5px;
        flex-shrink: 0;
    }
    [data-page="musteri_timeline"] .timeline-body {
        width: 100%;
        min-width: 0;
        flex: 1;
    }
    [data-page="musteri_timeline"] .timeline-top {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        flex-wrap: nowrap;
    }
    [data-page="musteri_timeline"] .timeline-top strong {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 13px;
        line-height: 1.25;
        text-align: left;
    }
    [data-page="musteri_timeline"] .timeline-top .mono {
        flex: 0 0 auto;
        font-size: 11px;
        text-align: right;
    }
    [data-page="musteri_timeline"] .timeline-main {
        display: block;
        margin-top: 5px;
        width: 100%;
        font-size: 12.5px;
        line-height: 1.35;
    }
    [data-page="musteri_timeline"] .timeline-main .tl-sep {
        display: none;
    }
    [data-page="musteri_timeline"] .timeline-main .strong {
        display: block;
        max-width: 100%;
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    [data-page="musteri_timeline"] .timeline-detail {
        display: block;
        width: 100%;
        font-size: 12px;
        line-height: 1.35;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    [data-page="musteri_timeline"] .timeline-meta {
        margin-top: 4px;
        font-size: 11px;
        line-height: 1.3;
    }
    .timeline-main {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .timeline-main .tl-sep { display: none; }
    .timeline-detail {
        display: block;
        font-size: 13px;
        line-height: 1.45;
    }
    .entity-card .ec-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        gap: 8px;
        flex-wrap: unset;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .entity-card .ec-actions > .btn {
        width: 100%;
        min-width: 0;
        flex: unset;
    }
    .entity-card .ec-actions > .ec-more {
        align-self: stretch;
    }
    .entity-card .ec-actions > .ec-more .btn {
        height: 100%;
        min-height: 30px;
    }
    .app-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: var(--safe-t) 12px 0;
        overflow: hidden;
        max-width: 100%;
    }
    .nav-brand {
        margin-right: 0;
        min-width: 0;
        overflow: hidden;
        flex: 1;
    }
    .nav-brand-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nav-actions {
        margin-left: auto;
        flex-shrink: 0;
    }
    .kpi-row { gap: 10px; }
    .kpi { min-width: 0; }
    .desktop-only { display: none !important; }
    .mobile-only { display: grid !important; }
    .finans-cards.mobile-only { display: grid !important; }
    .destek-meta-bar { grid-template-columns: 1fr 1fr; }
    .destek-layout { grid-template-columns: 1fr; }
    .destek-chat-card .chat { max-height: 42vh; }
    .kanban-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .login { grid-template-columns: 1fr; }
    .login-visual {
        min-height: 220px; padding: 28px 22px;
        border-bottom: 1px solid #222;
    }
    .login-hero h1 { font-size: 28px; }
}

.error-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 20px;
}
.error-code {
    font-size: 96px;
    font-weight: 900;
    color: var(--primary, #0c0c0c);
    line-height: 1;
    letter-spacing: -0.04em;
}
.error-title {
    font-size: 22px;
    font-weight: 700;
    margin: 12px 0 8px;
}
.error-text {
    color: var(--muted, #737373);
    max-width: 420px;
    margin: 0 0 24px;
}
.error-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: var(--surface-2, #f5f5f5);
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 10px;
    font-size: 13px;
}
.bulk-check input { width: 16px; height: 16px; }
.ec-top .bulk-check { margin-right: auto; }
@media (max-width: 560px) {
    .card-grid { grid-template-columns: 1fr; }
    [data-page="index"] .entity-card,
    [data-page="hizmetler"] .entity-card,
    [data-page="musteriler"] .entity-card,
    [data-page="musteri_detay"] .entity-card,
    [data-page="destek"] .entity-card,
    [data-page="finans"] .entity-card {
        padding: 12px 14px 10px;
    }
    .kpi .v { font-size: 22px; }
    .kanban-grid { grid-template-columns: 1fr; }
    .timeline-top { flex-direction: column; align-items: flex-start; gap: 4px; }
    [data-page="musteri_timeline"] .timeline-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    [data-page="musteri_timeline"] .timeline-main {
        display: block;
    }
    .uptime-hero { padding: 18px 16px; }
    .uptime-hero h2 { font-size: 22px; }
    .uptime-hero-stats > div { min-width: 0; flex: 1 1 calc(33.333% - 7px); padding: 10px 8px; }
    .uptime-hero-stats strong { font-size: 24px; }
    .uptime-pre { font-size: 11px; word-break: break-all; }
    .tabs button { padding: 8px 11px; font-size: 12.5px; }
    .ec-actions { flex-wrap: wrap; }
    .ec-actions > .btn { flex: 1 1 calc(50% - 6px); }
    .entity-card .ec-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    }
    .ayarlar-toolbar,
    .surface-body > .toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: stretch;
    }
    .surface-body > .toolbar .form-control.grow,
    .surface-body > .toolbar .btn {
        width: 100%;
    }
    .surface-body > .toolbar .btn-row,
    .surface-body > .toolbar a.btn {
        width: 100%;
        justify-content: center;
    }
}

/* Müşteri detay — proje panosu */
.proje-add { display: grid; gap: 10px; margin-bottom: 16px; padding: 14px 16px 16px; }
.proje-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px 16px;
}
.proje-col {
    background: var(--surface-2, #f5f5f5);
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 12px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}
.proje-col-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border, #e5e5e5);
    font-size: 13px;
}
.proje-col-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.proje-card {
    background: #fff;
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.proje-card strong { font-size: 13px; }
.proje-card p { margin: 0; font-size: 12px; color: var(--muted); }
.proje-card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.proje-empty { text-align: center; padding: 18px 8px; font-size: 12px; }
@media (max-width: 900px) {
    .proje-board { grid-template-columns: 1fr; }
}

/* ═══ SISTEM / UPTIME ═══ */
.uptime-hero {
    display: flex; justify-content: space-between; align-items: stretch; gap: 24px;
    padding: 22px 24px; border-radius: var(--radius); margin-bottom: 16px;
    border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow);
    border-left: 4px solid var(--ok);
}
.uptime-hero.tone-warn { border-left-color: var(--warn); }
.uptime-hero.tone-danger { border-left-color: var(--danger); }
.uptime-hero-badge {
    display: inline-flex; align-items: center;
    font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
    background: var(--ok-soft); color: var(--ok);
}
.uptime-hero.tone-warn .uptime-hero-badge { background: var(--warn-soft); color: var(--warn); }
.uptime-hero.tone-danger .uptime-hero-badge { background: var(--danger-soft); color: var(--danger); }
.uptime-hero h2 {
    margin: 0; font-family: var(--display); font-size: 26px; font-weight: 700;
    letter-spacing: -.03em;
}
.uptime-hero-main {
    min-width: 0;
    flex: 1;
}
.uptime-hero-sub, .uptime-hero-meta {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.meta-stack {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.meta-stack .meta-line {
    display: block;
}
.meta-stack .meta-soft {
    font-size: 12.5px;
    color: var(--faint);
}
.uptime-hero-stats {
    display: flex; gap: 10px; align-items: center; flex-shrink: 0;
}
.uptime-hero-stats > div {
    min-width: 72px; text-align: center; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 12px; background: #fafafa;
}
.uptime-hero-stats span {
    display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.uptime-hero-stats strong {
    font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -.03em;
}
.uptime-hero-stats strong.ok { color: var(--ok); }
.uptime-hero-stats strong.warn { color: var(--warn); }
.uptime-hero-stats strong.danger { color: var(--danger); }

.uptime-metrics {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px;
}
.uptime-metric {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; box-shadow: var(--shadow);
}
.um-label {
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 6px;
}
.um-value {
    font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em;
}
.um-value small { font-size: 13px; color: var(--muted); font-weight: 600; }
.um-bar {
    margin-top: 10px; height: 6px; border-radius: 999px; background: #eee; overflow: hidden;
}
.um-bar i {
    display: block; height: 100%; border-radius: 999px; background: var(--ok);
    max-width: 100%;
}
.um-bar i.warn { background: var(--warn); }
.um-sub { margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 500; }

.uptime-section { margin-bottom: 20px; }
.uptime-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.uptime-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; box-shadow: var(--shadow);
    border-left: 3px solid var(--ok);
}
.uptime-card.tone-warn { border-left-color: var(--warn); }
.uptime-card.tone-danger { border-left-color: var(--danger); }
.uptime-card header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.uptime-pill {
    font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 6px;
    background: var(--ok-soft); color: var(--ok);
}
.uptime-pill.warn { background: var(--warn-soft); color: var(--warn); }
.uptime-pill.danger { background: var(--danger-soft); color: var(--danger); }
.uptime-ms { font-size: 11px; font-weight: 600; color: var(--faint); font-family: var(--mono); }
.uptime-card h3 {
    margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
}
.uptime-card p {
    margin: 6px 0 0; font-size: 12.5px; color: var(--muted); font-weight: 500; line-height: 1.4;
}
.uptime-pre {
    margin: 0; padding: 12px 14px; background: #f5f5f5; border-radius: 10px;
    font-size: 12px; overflow-x: auto; line-height: 1.45;
}

@media (max-width: 980px) {
    .uptime-hero { flex-direction: column; }
    .uptime-hero-stats { width: 100%; justify-content: stretch; }
    .uptime-hero-stats > div { flex: 1; }
    .uptime-metrics { grid-template-columns: 1fr 1fr; }
    .uptime-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .uptime-metrics, .uptime-grid { grid-template-columns: 1fr; }
    .uptime-hero-stats { flex-wrap: wrap; }
}

/* ═══ UX v77 — unified polish ═══ */
.section-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.section-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
}
.section-link:hover { color: var(--ink); }

.filter-toolbar-sticky {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}
.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
}

.filter-panel-advanced {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}
.filter-panel-advanced.is-open { display: grid; }
.filter-toggle-btn { display: inline-flex; }
.filter-submit-mobile,
.filter-clear-mobile { display: none; }
.filter-panel-advanced.is-open .filter-submit-mobile,
.filter-panel-advanced.is-open .filter-clear-mobile { display: inline-flex; }
.filter-submit-desktop,
.filter-clear-desktop { display: none; }

.filter-date-compact:not(:focus):invalid::-webkit-datetime-edit,
.filter-date-compact[value=""]::-webkit-datetime-edit {
    opacity: 0;
}
.filter-date-compact:focus::-webkit-datetime-edit,
.filter-date-compact:valid::-webkit-datetime-edit {
    opacity: 1;
}

.entity-card.tier-card.tier-vip::before { width: 4px; background: var(--ink); }
.entity-card.tier-card.tier-iyi::before { background: var(--ok); }
.entity-card.tier-card.tier-zahmetli::before { background: var(--danger); }
.ec-tier-line { margin: -2px 0 4px; }
.ec-tier-line .tier-pill { font-size: 9px; padding: 2px 6px; }

.ec-foot .ec-more {
    position: relative;
    flex-shrink: 0;
    z-index: 2;
}
.ec-foot .ec-more .btn {
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    font-size: 16px;
    line-height: 1;
}
.ec-foot .ec-more.open { z-index: 230; }

.finans-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 8px;
}
.finans-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas:
        "check status main main"
        "check amt date actions";
    gap: 4px 8px;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) - 2px);
}
.finans-row.tone-warn { border-left: 2px solid var(--warn); }
.finans-row.tone-danger { border-left: 2px solid var(--danger); }
.finans-row.tone-ok { border-left: 2px solid var(--ok); }
.finans-row-check { grid-area: check; }
.finans-row-status { grid-area: status; font-size: 10px; padding: 3px 7px; }
.finans-row-main {
    grid-area: main;
    min-width: 0;
}
.finans-row-main strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.finans-row-main span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.finans-row-amt { grid-area: amt; font-size: 13px; font-weight: 700; }
.finans-row-date { grid-area: date; font-size: 11px; text-align: right; }
.finans-row-actions {
    grid-area: actions;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.bulk-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.bulk-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) - 2px);
    background: #fff;
    cursor: pointer;
}
.bulk-row.is-disabled { opacity: .55; cursor: not-allowed; }
.bulk-row.tone-danger { border-left: 3px solid var(--danger); }
.bulk-row.tone-warn { border-left: 3px solid var(--warn); }
.bulk-row.tone-ok { border-left: 3px solid var(--ok); }
.bulk-row-check {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--ink);
}
.bulk-row-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.bulk-row-main strong {
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bulk-row-main span {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.35;
}
.bulk-row-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.bulk-row-amt { font-size: 13px; font-weight: 700; white-space: nowrap; }

.vault-secret-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 10px;
}
.vault-secret-input {
    grid-column: 1 / -1;
    height: 38px;
    width: 100%;
}
.vault-ec-foot { margin-top: 10px; }

.page-actions-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 100%;
}
.page-actions-split > .btn,
.page-actions-split > .page-more {
    width: 100%;
    min-width: 0;
}
.page-actions-split > .page-more {
    display: flex;
}
.page-actions-split .page-more-btn {
    width: 100%;
    height: 40px;
    justify-content: center;
}
.page-more { position: relative; flex: 1; min-width: 0; }
.page-more-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 90;
}
.page-more.open .page-more-menu { display: flex; flex-direction: column; gap: 2px; }
.page-more-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 650;
    color: var(--ink);
    text-decoration: none;
}
.page-more-menu a:hover { background: var(--hover); }

.bottom-nav .bottom-nav-menu {
    appearance: none;
    background: none;
    border: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    flex: 1;
    min-width: 0;
    font-size: 10px;
    font-weight: 650;
    color: var(--muted);
}
.bottom-nav .bottom-nav-menu.active { color: var(--ink); font-weight: 700; }

.toolbar-unified.search-field input,
.toolbar-unified .search-field input { font-size: 16px; }

@media (min-width: 981px) {
    .filter-bar-hizmet {
        flex-wrap: wrap;
        align-items: end;
    }
    .filter-toolbar-sticky {
        display: contents;
    }
    .filter-panel-advanced {
        display: contents;
    }
    .filter-panel-advanced.is-open {
        display: contents;
    }
    .filter-toggle-btn,
    .filter-submit-mobile,
    .filter-clear-mobile { display: none !important; }
    .filter-submit-desktop,
    .filter-clear-desktop { display: inline-flex; }
}

@media (max-width: 980px) {
    [data-page="index"] .ec-status,
    [data-page="hizmetler"] .ec-status,
    [data-page="musteriler"] .ec-status,
    [data-page="musteri_detay"] .ec-status,
    [data-page="destek"] .ec-status,
    [data-page="finans"] .ec-status,
    .action-card .ec-status {
        font-size: 10px;
        padding: 4px 8px;
    }
    [data-page="musteri_detay"] .tabs button.active {
        background: var(--ink);
        color: #fff;
        border-color: var(--ink);
    }
}

/* ═══ MOBILE CLEAN (v84 — minimal, symmetric) ═══ */
@media (max-width: 980px) {
    .chips-desktop-only { display: none !important; }
    .chips-mobile-only { display: block; }

    .filter-status-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        margin-bottom: 10px;
        padding: 4px;
        border-radius: 12px;
        border: 1px solid var(--line);
        background: #f6f6f4;
    }
    .filter-status-tabs .status-tab {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 38px;
        border-radius: 9px;
        font-size: 13px;
        font-weight: 650;
        color: var(--muted);
        text-decoration: none;
        transition: background var(--ease), color var(--ease);
    }
    .filter-status-tabs .status-tab.active {
        background: var(--ink);
        color: #fff;
    }

    .filter-chips,
    .filter-chips.filter-chips-scroll {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        grid-template-columns: unset !important;
        gap: 6px !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
        margin-bottom: 10px !important;
        width: 100%;
    }
    .filter-chips::-webkit-scrollbar { display: none; }
    .filter-chips .chip {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        height: 34px !important;
        white-space: nowrap;
        justify-content: center;
        font-size: 12px !important;
        padding: 0 12px !important;
    }

    .filter-bar-drawer,
    .filter-bar-hizmet.filter-bar-drawer {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100%;
        margin-bottom: 12px;
    }

    .filter-toolbar-sticky {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        align-items: stretch;
        width: 100%;
    }
    .filter-toolbar-sticky.filter-toolbar-single {
        grid-template-columns: 1fr;
    }
    .filter-toolbar-sticky .search-field,
    .filter-toolbar-sticky .filter-hizmet-search {
        height: 42px;
        min-width: 0;
        width: 100%;
    }
    .filter-toolbar-sticky .filter-toggle-btn,
    .filter-toolbar-sticky .filter-toggle-full {
        height: 42px;
        min-width: 76px;
        padding-inline: 12px;
        justify-content: center;
        align-self: stretch;
    }
    .filter-toolbar-sticky .filter-toggle-full {
        width: 100%;
        min-width: 0;
    }

    .filter-panel-advanced {
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }
    .filter-panel-advanced.is-open {
        display: grid !important;
    }

    .filter-panel-advanced .filter-musteri,
    .filter-panel-advanced .filter-sort,
    .filter-panel-advanced .filter-field-full,
    .filter-panel-advanced select.form-control {
        grid-column: 1 / -1 !important;
        flex: unset !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 42px !important;
        box-sizing: border-box;
    }

    .filter-panel-advanced .filter-date-bas { grid-column: 1 !important; }
    .filter-panel-advanced .filter-date-bit { grid-column: 2 !important; }
    .filter-panel-advanced .filter-date-field {
        flex: unset !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 42px !important;
        padding: 0 6px 5px;
        box-sizing: border-box;
    }

    .filter-panel-advanced .filter-submit-mobile,
    .filter-panel-advanced .filter-clear-mobile {
        height: 42px !important;
        width: 100% !important;
        justify-content: center;
        box-sizing: border-box;
    }
    .filter-panel-advanced .filter-submit-mobile {
        grid-column: 1 / -1 !important;
    }
    .filter-panel-advanced:has(.filter-clear-mobile) .filter-submit-mobile {
        grid-column: 1 !important;
    }
    .filter-panel-advanced .filter-clear-mobile {
        grid-column: 2 !important;
    }

    .filter-submit-desktop,
    .filter-clear-desktop { display: none !important; }
    .filter-toggle-btn { display: inline-flex !important; }

    .toolbar.toolbar-inline.toolbar-unified,
    .toolbar.sticky-search.toolbar-unified {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 8px !important;
        width: 100%;
    }
    .toolbar.toolbar-inline.toolbar-unified .search-field,
    .toolbar.sticky-search.toolbar-unified .search-field {
        grid-column: 1 / -1;
        height: 42px;
        width: 100% !important;
        flex: unset !important;
    }
    .toolbar.toolbar-inline.toolbar-unified select.form-control,
    .toolbar.sticky-search.toolbar-unified select.form-control {
        grid-column: 1 / -1;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: unset !important;
        height: 42px;
    }
    .toolbar.toolbar-inline.toolbar-unified > .btn,
    .toolbar.sticky-search.toolbar-unified > .btn {
        grid-column: 1 / -1;
        width: 100%;
        height: 42px;
        justify-content: center;
    }

    .page-actions,
    .page-actions.page-actions-split {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        align-items: stretch;
    }
    .page-actions > .btn,
    .page-actions > a.btn,
    .page-actions > button,
    .page-actions > .page-more {
        width: 100%;
        min-width: 0;
        justify-content: center;
        height: 42px;
    }
    .page-actions > .page-more {
        display: flex;
        height: auto;
        min-height: 42px;
    }
    .page-actions > .page-more > .btn,
    .page-actions > .page-more .page-more-btn {
        width: 100%;
        height: 42px;
        justify-content: center;
    }
    .page-actions > .btn:only-child,
    .page-actions > a.btn:only-child,
    .page-actions > button:only-child {
        grid-column: 1 / -1;
    }

    .toolbar:not(.toolbar-inline),
    .toolbar.toolbar-unified {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 8px !important;
        width: 100%;
    }
    .toolbar:not(.toolbar-inline) > .btn,
    .toolbar.toolbar-unified > .btn {
        width: 100%;
        height: 42px;
        justify-content: center;
    }
    .toolbar.toolbar-unified > .btn-primary {
        grid-column: 1 / -1;
    }

    .action-card {
        padding: 12px 14px;
    }

    .vault-secret-row {
        grid-template-columns: 1fr 1fr;
    }
    .vault-secret-row .btn:nth-child(2) { grid-column: 1; }
    .vault-secret-row .btn:nth-child(3) { grid-column: 2; }
    .vault-secret-row .btn:nth-child(4) { grid-column: 1 / -1; }

    .kanban-grid { grid-template-columns: 1fr !important; }
    .kanban-card-foot .ec-more-menu { right: 0; left: auto; }
}

@media (min-width: 981px) {
    .chips-mobile-only { display: none !important; }
}

/* ═══ SMS · NetGSM (ayarlar) ═══ */
.settings-grid { margin-top: 0; }
.tab-dot {
    display: inline-block; width: 7px; height: 7px; margin-left: 6px;
    border-radius: 50%; vertical-align: middle; background: var(--line-strong);
}
.tab-dot.is-ok { background: var(--ok); }
.tab-dot.is-warn { background: var(--warn); }
.check-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.check-chip { position: relative; cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip span {
    display: inline-flex; align-items: center; height: 34px; padding: 0 12px;
    border: 1px solid var(--line-strong); border-radius: 999px;
    font-size: 12.5px; font-weight: 650; color: var(--muted); background: #fff;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.check-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.check-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(12,12,12,.12); }
.check-chip-ek { width: 120px; height: 34px; border-radius: 999px; font-size: 12.5px; }
.mail-alt-baslik {
    margin: 22px 0 6px; padding-top: 16px; border-top: 1px solid var(--line);
    font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted);
}
.ozel-sms-modal { width: min(480px, calc(100% - 32px)); }
.ozel-sms-alici { font-size: 13px; font-weight: 600; margin: 0; }
.sms-sablon-chip {
    height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px;
    font: inherit; font-size: 12.5px; font-weight: 650; color: var(--muted); background: #fff; cursor: pointer;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.sms-sablon-chip:hover { color: var(--ink); }
.sms-sablon-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
#ozelSmsMesaj { resize: vertical; min-height: 110px; }
#ozelSmsSayac { display: block; margin-top: 6px; font-size: 12px; }
#ozelSmsSayac.is-warn { color: var(--warn, #b45309); }
.sms-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 4px 0 16px; }
.sms-help { font-size: 12px; margin: 6px 0 0; line-height: 1.5; }
.sms-tools { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); }
.sms-tools .btn-row { gap: 8px; }
.sms-details summary { cursor: pointer; font-size: 13px; font-weight: 650; }
.sms-details ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.7; }
.sms-log td { font-size: 13px; padding: 10px 14px; }
@media (max-width: 980px) {
    .sms-toggles { grid-template-columns: 1fr; }
    .check-chip-ek { width: 100%; }
    .sms-tools .btn-row { display: grid; grid-template-columns: 1fr 1fr; }
    .sms-tools .btn-row form, .sms-tools .btn-row .btn { width: 100%; }
}
