/* =====================================================
   BONNE NUIT OPS — net / okunaklı / markalı
   Açık zemin · yüksek kontrast · sade hiyerarşi
   ===================================================== */

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

:root {
    --bn-red: #E11D48;
    --bn-purple: #6D28D9;
    --bn-purple-soft: #8B5CF6;
    --bn-amber: #D97706;
    --bn-orange: #EA580C;
    --bn-green: #059669;
    --bn-blue: #2563EB;

    --bg: #F7F5F2;
    --surface: #FFFFFF;
    --surface-2: #FAFAF8;
    --ink: #1C1917;
    --ink-2: #44403C;
    --muted: #78716C;
    --muted-2: #A8A29E;
    --line: #E7E5E4;
    --line-strong: #D6D3D1;
    --hover: #F5F5F4;

    --sidebar: #FFFFFF;
    --sidebar-2: #FAFAF8;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(28,25,23,.04), 0 4px 16px rgba(28,25,23,.04);
    --sidebar-w: 240px;
    --topbar-h: 64px;
    --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    --mono: 'Plus Jakarta Sans', ui-monospace, monospace;
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --ease: .15s ease;

    /* legacy aliases */
    --admin-bg: var(--bg);
    --admin-surface: var(--surface);
    --admin-sidebar: var(--sidebar);
    --admin-border: var(--line);
    --admin-muted: var(--muted);
    --admin-text: var(--ink);
    --admin-hover: var(--hover);
    --admin-radius: var(--radius);
    --admin-radius-sm: var(--radius-sm);
    --admin-shadow: var(--shadow);
    --admin-shadow-lg: 0 12px 32px rgba(28,25,23,.1);
    --admin-primary: var(--bn-purple);
    --admin-accent: var(--bn-red);
    --admin-white: #fff;
    --admin-green: var(--bn-green);
    --admin-gray-100: var(--surface-2);
    --admin-gray-200: var(--line);
    --admin-gray-500: var(--muted);
    --admin-gray-700: var(--ink-2);
    --admin-gray-800: var(--ink);
    --bn-purple-dark: #5B21B6;
    --bn-yellow: var(--bn-amber);
    --font-body: var(--font);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: var(--font);
    font-size: 14px;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    -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; }

/* LOGIN */
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #F7F5F2 0%, #F3EEF8 45%, #FFF7ED 100%);
    padding: 24px;
}
.login-container {
    width: min(400px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(28,25,23,.08);
}
.login-logo { display: flex; justify-content: center; margin-bottom: 16px; }
.login-logo img { height: 36px; }
.login-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    color: var(--bn-purple);
}
.login-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 24px; }
.login-form .form-group { margin-bottom: 14px; }
.login-form label {
    display: block; font-size: 12px; font-weight: 700;
    color: var(--muted); margin-bottom: 6px;
}
.login-form input {
    width: 100%; height: 44px; border: 1.5px solid var(--line);
    border-radius: 10px; padding: 0 12px; background: #fff;
}
.login-form input:focus {
    outline: none; border-color: var(--bn-purple);
    box-shadow: 0 0 0 3px rgba(109,40,217,.12);
}
.btn-login {
    width: 100%; height: 46px; margin-top: 8px; border: 0; border-radius: 10px;
    background: var(--bn-purple); color: #fff; font-weight: 700; cursor: pointer;
}
.btn-login:hover { background: #5B21B6; }

/* SHELL */
.admin-layout { display: flex; min-height: 100vh; width: 100%; overflow-x: hidden; }
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar);
    color: var(--ink);
    position: fixed; inset: 0 auto 0 0; z-index: 100;
    display: flex; flex-direction: column;
    border-right: 1px solid var(--line);
}
.sidebar-logo {
    height: var(--topbar-h);
    display: flex; align-items: center; justify-content: center;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
}
.sidebar-logo img { height: 40px; width: auto; max-width: 100%; display: block; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav-group-label {
    font-size: 10px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted-2);
    padding: 14px 10px 6px;
}
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 11px; border-radius: 8px;
    color: var(--ink-2); font-weight: 500; font-size: 13px;
    margin-bottom: 2px; transition: background var(--ease), color var(--ease);
}
.nav-item:hover { background: var(--hover); color: var(--ink); }
.nav-item.active {
    background: #F5F3FF;
    color: var(--bn-purple);
    font-weight: 700;
}
.nav-icon { width: 18px; height: 18px; display: grid; place-items: center; }
.nav-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-badge {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--bn-red); color: #fff;
    font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.nav-badge.warn { background: var(--bn-amber); color: #fff; }
.sidebar-footer { padding: 10px; border-top: 1px solid var(--line); }

.sidebar-toggle {
    display: none; position: fixed; top: 10px; left: 10px; z-index: 120;
    width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; color: var(--ink); cursor: pointer;
    box-shadow: var(--shadow);
}
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(28,25,23,.28); z-index: 90; }
.sidebar-overlay.active { display: block; }

.main-wrap {
    margin-left: var(--sidebar-w);
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; min-height: 100vh;
}
.ops-topbar {
    position: sticky; top: 0; z-index: 80;
    height: var(--topbar-h);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 0 24px;
    background: rgba(247,245,242,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.ops-topbar-left { display: flex; align-items: center; gap: 10px; }
.ops-crumb { font-size: 17px; font-weight: 800; color: var(--ink); }
.ops-live {
    display: inline-flex; align-items: center; gap: 6px;
    height: 24px; padding: 0 9px; border-radius: 999px;
    background: #ECFDF5; color: var(--bn-green);
    font-size: 11px; font-weight: 700;
}
.ops-live .pulse {
    width: 6px; height: 6px; border-radius: 50%; background: var(--bn-green);
}
.ops-topbar-right { display: flex; align-items: center; gap: 8px; }
.ops-pill {
    display: inline-flex; align-items: center; gap: 5px;
    height: 30px; padding: 0 11px; border-radius: 8px;
    border: 1px solid var(--line); background: #fff;
    font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.ops-pill:hover { border-color: var(--line-strong); }
.ops-pill.warn { background: #FFFBEB; border-color: #FDE68A; color: #B45309; }
.ops-pill.danger { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.ops-clock { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

.main-content { flex: 1; width: 100%; padding: 22px 24px 40px; max-width: none; }

.page-header, .content-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
}
.page-header h1, .content-header h1 {
    font-size: 22px; font-weight: 800; color: var(--ink);
}
.page-header p, .header-date, .page-subtitle { color: var(--muted); font-size: 13px; margin-top: 2px; }
.page-actions, .header-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* KPI — sade */
.cockpit-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.cockpit-kpi-board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.kpi-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}
.kpi-label {
    font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px;
}
.kpi-value {
    font-size: 32px; font-weight: 800; letter-spacing: -.02em;
    line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.kpi-meta { margin-top: 6px; font-size: 12px; color: var(--muted-2); }

.cockpit-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.cockpit-panel h3 {
    font-size: 14px; font-weight: 700; margin-bottom: 12px;
    display: flex; justify-content: space-between; align-items: center;
}
.queue-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.queue-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    background: var(--surface-2); border: 1px solid var(--line);
}
.queue-item.hot { background: #FFF7ED; border-color: #FED7AA; }
.queue-no { font-size: 12px; font-weight: 700; color: var(--bn-purple); min-width: 110px; }
.queue-body { flex: 1; min-width: 0; }
.queue-title { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-amt { font-weight: 700; font-size: 13px; }

.cockpit-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.card-header h2 { font-size: 15px; font-weight: 700; }
.card-body { padding: 16px; }

.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px;
}
.stat-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow);
}
.stat-card::before { display: none; }
.stat-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: #F5F3FF; color: var(--bn-purple);
    display: grid; place-items: center; flex-shrink: 0;
}
.stat-card.accent-green .stat-icon { background: #ECFDF5; color: var(--bn-green); }
.stat-card.accent-orange .stat-icon { background: #FFF7ED; color: var(--bn-orange); }
.stat-card.accent-red .stat-icon { background: #FEF2F2; color: var(--bn-red); }
.stat-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.stat-value { font-size: 24px; font-weight: 800; line-height: 1.1; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }

.btn, .btn-primary, .btn-secondary, .btn-danger, .btn-ghost, .btn-sm {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; padding: 0 14px; border-radius: 9px; border: 1px solid transparent;
    font-weight: 600; font-size: 13px; cursor: pointer; transition: background var(--ease);
    white-space: nowrap;
}
.btn-primary { background: var(--bn-purple); color: #fff; }
.btn-primary:hover { background: #5B21B6; }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { background: var(--hover); }
.btn-danger { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--hover); color: var(--ink); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12px; }
.btn-link { color: var(--bn-purple); font-weight: 700; font-size: 13px; }
.btn-link:hover { color: var(--bn-red); }

.form-group { margin-bottom: 12px; }
.form-group label {
    display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px;
}
.form-control, .form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .form-group select, .form-group textarea,
input[type="text"], input[type="number"], input[type="date"], input[type="password"],
input[type="email"], input[type="tel"], input[type="url"], input[type="search"],
select, textarea {
    width: 100%; height: 40px; border: 1.5px solid var(--line);
    border-radius: 9px; padding: 0 11px; background: #fff; color: var(--ink);
}
input[type="checkbox"], input[type="radio"] {
    width: 16px; height: 16px; accent-color: var(--bn-purple); cursor: pointer; flex-shrink: 0;
}
input[type="file"] {
    width: 100%; padding: 8px 10px; border: 1.5px dashed var(--line-strong);
    border-radius: 9px; background: var(--surface-2); font-size: 13px; cursor: pointer;
}
textarea { height: auto; min-height: 90px; padding: 10px; resize: vertical; }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
    outline: none; border-color: var(--bn-purple);
    box-shadow: 0 0 0 3px rgba(109,40,217,.1);
}

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar .search { flex: 1; min-width: 200px; position: relative; }
.toolbar .search input { padding-left: 36px; }
.toolbar .search svg {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    height: 32px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff;
    font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px;
}
.chip:hover, .chip.active {
    border-color: var(--bn-purple); color: var(--bn-purple); background: #F5F3FF;
}
.chip.danger.active { border-color: var(--bn-amber); color: #B45309; background: #FFFBEB; }

.table-container { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left; padding: 12px 14px;
    font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.data-table td {
    padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle;
    font-size: 13.5px; color: var(--ink);
}
.data-table tr:hover td { background: var(--hover); }
.data-table tr.row-highlight td { background: #FFF7ED; }
.data-table tr.row-check td { background: #FFFBEB; }
.data-table tr.row-disabled { opacity: .55; }
.data-table tr.row-muted td { color: var(--muted); }
.cell-products {
    max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--muted); font-size: 13px;
}
.mono {
    font-family: var(--font);
    font-size: 13px; font-weight: 600;
    letter-spacing: 0;
    text-decoration: none !important;
}
.age-pill {
    display: inline-flex; height: 24px; padding: 0 8px; border-radius: 6px;
    font-size: 12px; font-weight: 700; background: #ECFDF5; color: var(--bn-green);
}
.age-pill.warn { background: #FFFBEB; color: #B45309; }
.age-pill.danger { background: #FEF2F2; color: #B91C1C; }
.age-pill.idle { background: #F5F5F4; color: var(--muted); }

.status-badge {
    display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
    border-radius: 6px; font-size: 12px; font-weight: 700;
    text-decoration: none !important;
}
.status-new { background: #FFEDD5; color: #C2410C; }
.status-preparing { background: #DBEAFE; color: #1D4ED8; }
.status-ready { background: #D1FAE5; color: #047857; }
.status-delivered { background: #EDE9FE; color: #6D28D9; }
.status-cancelled { background: #F5F5F4; color: #78716C; }
.status-check { background: #FEF3C7; color: #B45309; }

.status-select {
    height: 34px; border-radius: 8px; border: 1px solid var(--line);
    padding: 0 8px; background: #fff; font-size: 12px; font-weight: 600;
}

.alert { padding: 12px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-warn { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state strong { display: block; font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }

.modal-overlay, .drawer-overlay {
    position: fixed; inset: 0; background: rgba(28,25,23,.4); z-index: 200;
    display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.active, .drawer-overlay.active { display: flex; }
.modal {
    width: min(540px, 100%); max-height: 90vh; overflow: auto;
    background: #fff; border-radius: 14px; box-shadow: var(--admin-shadow-lg);
}
.modal-header, .drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px; border-bottom: 1px solid var(--line);
}
.modal-header h3, .drawer-header h3 { font-size: 17px; font-weight: 800; }
.modal-close, .drawer-close {
    width: 32px; height: 32px; border: 0; border-radius: 8px;
    background: var(--hover); cursor: pointer; font-size: 18px;
}
.modal-body, .drawer-body { padding: 16px; }
.modal-footer {
    padding: 12px 16px; border-top: 1px solid var(--line);
    display: flex; justify-content: flex-end; gap: 8px;
}
.drawer-overlay { justify-content: flex-end; padding: 0; }
.drawer {
    width: min(440px, 100%); height: 100%; background: #fff;
    display: flex; flex-direction: column; box-shadow: var(--admin-shadow-lg);
}
.drawer-body { flex: 1; overflow: auto; }

.toast-stack { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
    min-width: 220px; padding: 12px 14px; border-radius: 10px;
    background: var(--ink); color: #fff; font-weight: 600; font-size: 13px;
}
.toast.success { background: var(--bn-green); }
.toast.error { background: #B91C1C; }
.toast.warn { background: var(--bn-amber); }

.charts-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 14px; }
.chart-wrap { position: relative; height: 240px; padding: 8px 12px 12px; }

.product-thumb, .table-thumb {
    width: 42px; height: 42px; border-radius: 8px; object-fit: cover;
    background: #F5F5F4; border: 1px solid var(--line);
}
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.toggle-pill {
    width: 40px; height: 22px; border-radius: 999px; border: 0; background: #D6D3D1;
    position: relative; cursor: pointer;
}
.toggle-pill.on { background: var(--bn-green); }
.toggle-pill::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 18px; height: 18px; border-radius: 50%; background: #fff;
    transition: transform var(--ease);
}
.toggle-pill.on::after { transform: translateX(18px); }

.date-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.date-btn {
    height: 32px; padding: 0 12px; border-radius: 8px;
    border: 1px solid var(--line); background: #fff;
    font-size: 12px; font-weight: 600; cursor: pointer; color: var(--muted);
}
.date-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.date-custom { display: flex; align-items: center; gap: 6px; }
.date-custom input { width: auto; height: 32px; border-radius: 8px; }

.skeleton {
    background: linear-gradient(90deg, #F5F5F4 25%, #E7E5E4 37%, #F5F5F4 63%);
    background-size: 400% 100%; animation: shimmer 1.2s ease infinite; border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.status-indicator { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.status-online .status-dot { background: var(--bn-green); }
.status-offline .status-dot { background: var(--bn-red); }

.device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.device-card {
    background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow);
}
.device-card-header {
    background: #F5F3FF !important;
    color: var(--bn-purple); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.device-card-header h2 { margin: 0; font-size: 14px; font-weight: 700; }
.device-card-body { padding: 16px; }
.device-card .btn-primary { background: var(--bn-purple) !important; }

.tag-brand {
    display: inline-block; background: #F5F3FF; color: var(--bn-purple);
    padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; margin: 1px 2px;
}

.kpi-tile.g-purple, .kpi-tile.g-green, .kpi-tile.g-amber, .kpi-tile.g-red { /* glow yok */ }

body.kitchen-mode { background: #F7F5F2; color: #1C1917; }
body.kitchen-mode .admin-layout { display: block; }
body.kitchen-mode .sidebar, body.kitchen-mode .sidebar-toggle, body.kitchen-mode .ops-topbar { display: none !important; }
body.kitchen-mode .main-wrap { margin-left: 0; }
body.kitchen-mode .main-content { margin-left: 0; padding: 14px; max-width: none; }

@media (max-width: 1100px) {
    .stats-grid, .cockpit-kpi-board { grid-template-columns: 1fr 1fr; }
    .charts-grid, .cockpit-hero, .cockpit-grid { grid-template-columns: 1fr; }
    .device-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .sidebar-toggle { display: grid; place-items: center; }
    .sidebar { transform: translateX(-105%); transition: transform .2s ease; }
    .sidebar.open { transform: translateX(0); }
    .main-wrap { margin-left: 0; }
    .main-content { padding: 68px 14px 28px; }
    .ops-topbar { padding: 0 12px 0 58px; }
    .stats-grid, .cockpit-kpi-board { grid-template-columns: 1fr; }
    .ops-clock { display: none; }
}

/* ========== SHARED PAGE ACTIONS (tum sayfalar) ========== */
.btn-edit, .btn-sort, .btn-remove, .btn-test {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 11px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 2px;
    transition: background .15s ease, border-color .15s ease;
}
.btn-edit:hover, .btn-sort:hover, .btn-remove:hover, .btn-test:hover {
    background: var(--hover);
    border-color: var(--line-strong);
}
.btn-danger {
    height: 32px;
    padding: 0 11px;
    font-size: 12px;
    border-radius: 8px;
}
.data-table .btn-danger,
.data-table .btn-edit,
.data-table .btn-sort {
    vertical-align: middle;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 52px;
    padding: 0 10px;
    border-radius: 999px;
    border: 0;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.toggle-on {
    background: #ECFDF5;
    color: var(--bn-green);
}
.toggle-off {
    background: #F5F5F4;
    color: var(--muted);
}

.btn-edit-card, .btn-toggle-card, .btn-delete-card {
    height: 30px;
    padding: 0 10px;
    border-radius: 7px;
    border: 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.btn-edit-card { background: #F5F3FF; color: var(--bn-purple); }
.btn-toggle-card { background: #FFFBEB; color: #B45309; }
.btn-delete-card { background: #FEF2F2; color: #B91C1C; }

.greeting-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.greeting-card-img { width: 100%; height: 180px; object-fit: cover; background: #F5F5F4; }
.greeting-card-body { padding: 12px; }
.greeting-card-name { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.greeting-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.hp-panel {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow);
    color: var(--ink);
}
.hp-item {
    background: var(--surface-2) !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
}
.hp-item .item-meta, .pp-item .pp-cat { color: var(--muted) !important; }
.product-filter input, .product-filter select {
    background: #fff !important;
    border: 1.5px solid var(--line) !important;
    color: var(--ink) !important;
}

/* Cihaz kartlari — sayfa ici kahverengi override kir */
.device-card .form-group input,
.device-card .form-group select {
    background: #fff !important;
    border: 1.5px solid var(--line) !important;
    color: var(--ink) !important;
}
.device-card .toggle-container {
    background: var(--surface-2) !important;
    border-color: var(--line) !important;
}
.device-card .toggle-label { color: var(--ink) !important; }
.device-card .toggle-desc { color: var(--muted) !important; }
.device-card .btn-primary {
    background: var(--bn-purple) !important;
    color: #fff !important;
}
.device-card .btn-test {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
}
.device-card .form-group label { color: var(--muted) !important; }

/* =====================================================
   OPS 2.1 — metric / section / hero / motion
   ===================================================== */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: none; }
}
@keyframes pulseLive {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.85); }
}

.stagger > * {
    opacity: 0;
    animation: fadeUp .45s cubic-bezier(.22,1,.36,1) forwards;
}
.stagger > *:nth-child(1) { animation-delay: .03s; }
.stagger > *:nth-child(2) { animation-delay: .07s; }
.stagger > *:nth-child(3) { animation-delay: .11s; }
.stagger > *:nth-child(4) { animation-delay: .15s; }
.stagger > *:nth-child(5) { animation-delay: .19s; }
.stagger > *:nth-child(6) { animation-delay: .23s; }
.stagger > *:nth-child(7) { animation-delay: .27s; }
.stagger > *:nth-child(8) { animation-delay: .31s; }
.stagger > *:nth-child(n+9) { animation-delay: .35s; }

.page-hero {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.page-hero-copy { min-width: 0; }
.page-hero-kicker {
    font-size: 11px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.page-hero h1 {
    font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em;
    margin: 0; line-height: 1.2;
}
.page-hero-sub {
    margin-top: 4px; font-size: 13px; color: var(--muted); font-weight: 500;
}
.page-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.metric-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.metric-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex; gap: 12px; align-items: flex-start;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative; overflow: hidden;
}
.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(28,25,23,.08);
    border-color: var(--line-strong);
}
.metric-card .metric-body { min-width: 0; flex: 1; }
.metric-label {
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.metric-value {
    font-size: 26px; font-weight: 800; letter-spacing: -.03em;
    line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.metric-meta {
    margin-top: 6px; font-size: 12px; color: var(--muted-2); font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.metric-card.tone-warn { border-color: #FDE68A; background: linear-gradient(180deg, #FFFBEB 0%, #fff 70%); }
.metric-card.tone-danger { border-color: #FECACA; background: linear-gradient(180deg, #FEF2F2 0%, #fff 70%); }
.metric-card.tone-ok { border-color: #A7F3D0; background: linear-gradient(180deg, #ECFDF5 0%, #fff 70%); }

.icon-box {
    width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
    display: grid; place-items: center;
    background: #F5F3FF; color: var(--bn-purple);
}
.icon-box svg {
    width: 20px; height: 20px; stroke: currentColor; fill: none;
    stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.icon-box.green { background: #ECFDF5; color: var(--bn-green); }
.icon-box.amber { background: #FFFBEB; color: var(--bn-amber); }
.icon-box.red { background: #FEF2F2; color: var(--bn-red); }
.icon-box.blue { background: #EFF6FF; color: var(--bn-blue); }
.icon-box.orange { background: #FFF7ED; color: var(--bn-orange); }

.section-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 14px;
    animation: fadeUp .4s ease both;
}
.section-card-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #FFFEFC 0%, #fff 100%);
}
.section-card-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 800; color: var(--ink); margin: 0;
}
.section-card-title .icon-box { width: 34px; height: 34px; border-radius: 9px; }
.section-card-title .icon-box svg { width: 16px; height: 16px; }
.section-card-actions { display: flex; gap: 8px; align-items: center; }
.section-card-body { padding: 16px; }
.section-card-body.flush { padding: 0; }

.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-item {
    display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center;
    padding: 10px 12px; border-radius: 10px;
    background: var(--surface-2); border: 1px solid var(--line);
    transition: border-color .15s, background .15s;
}
.rank-item:hover { background: #fff; border-color: var(--line-strong); }
.rank-num {
    width: 28px; height: 28px; border-radius: 8px;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 800; color: var(--bn-purple);
    background: #F5F3FF;
}
.rank-name {
    font-size: 13px; font-weight: 700; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.rank-val { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

.ops-split {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.ops-split-3 {
    display: grid;
    grid-template-columns: 1.2fr .9fr .9fr;
    gap: 14px;
    margin-bottom: 14px;
}

.queue-item {
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.queue-item:hover { transform: translateX(2px); }
.queue-status {
    font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    padding: 3px 7px; border-radius: 6px; background: #F5F5F4; color: var(--muted);
}
.queue-age { font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

.chip .chip-count {
    background: var(--hover); color: var(--ink-2);
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.chip.active .chip-count { background: #EDE9FE; color: var(--bn-purple); }

.data-table tbody tr {
    transition: background .15s ease;
}
.data-table tbody tr.row-enter {
    animation: fadeUp .35s ease both;
}

.toast {
    animation: slideInRight .28s ease both;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.ops-live .pulse { animation: pulseLive 1.6s ease infinite; }

.nav-item {
    transition: background .18s ease, color .18s ease, transform .15s ease;
}
.nav-item:hover { transform: translateX(2px); }
.nav-item.active {
    background: #F5F3FF;
    color: var(--bn-purple);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--bn-purple);
}

.login-logo img { height: 48px; width: auto; margin: 0 auto; }
.login-container { animation: fadeUp .5s ease both; }

.main-content > .page-hero,
.main-content > .metric-grid,
.main-content > .page-header {
    animation: fadeUp .4s ease both;
}

@media (max-width: 1280px) {
    .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ops-split-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
    .ops-split, .ops-split-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .metric-grid, .metric-grid.cols-4, .metric-grid.cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .metric-value { font-size: 22px; }
}

/* ===== OPS — domain operasyon (WHITE ONLY, SaaS / ERP / CRM) ===== */
body.ops-console {
    --ops-bg: #F8FAFC;
    --ops-panel: #FFFFFF;
    --ops-panel-2: #F8FAFC;
    --ops-line: #E2E8F0;
    --ops-line-2: #CBD5E1;
    --ops-ink: #0F172A;
    --ops-muted: #64748B;
    --ops-cyan: #0D9488;
    --ops-amber: #D97706;
    --ops-rose: #E11D48;
    --ops-lime: #16A34A;
    --ops-sky: #0284C7;
    --ops-violet: #6D28D9;
}
body.ops-console .main-wrap {
    background: var(--ops-bg);
    width: auto;
    min-width: 0;
    flex: 1;
    max-width: none;
}
/* Dashboard has its own command bar; avoid a second competing header. */
body.ops-console .ops-topbar { display: none; }
body.ops-console .ops-topbar {
    background: #fff;
    border-bottom: 1px solid var(--ops-line);
}
body.ops-console .ops-crumb { color: var(--ops-ink); font-weight: 800; }
body.ops-console .ops-topbar .ops-live { color: var(--ops-lime); background: #DCFCE7; }
body.ops-console .ops-clock { color: var(--ops-muted); font-variant-numeric: tabular-nums; }
body.ops-console .main-content {
    background: var(--ops-bg);
    padding: 16px 22px 36px;
    min-height: calc(100vh - var(--topbar-h));
    max-width: none;
    width: 100%;
}

.ops-tower {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: var(--font);
    color: var(--ops-ink);
    width: 100%;
    max-width: none;
}
.ops-tower * { box-sizing: border-box; }
.ops-mono { font-variant-numeric: tabular-nums; font-weight: 700; }

/* Command Bar */
.ops-cmdbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--ops-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.ops-cmd-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}
.ops-cmd-title {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-right: 2px;
    white-space: nowrap;
}
.ops-cmd-title strong {
    font-size: 14px;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--ops-ink);
}
.ops-cmd-title span {
    color: var(--ops-muted);
    font-size: 10px;
    font-weight: 600;
}
.ops-cmd-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #15803D;
    font-size: 12px;
    font-weight: 700;
}
.ops-live-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--ops-lime); flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(22,163,74,.35); animation: opsPulse 1.8s ease infinite;
}
.ops-cmd-stat { font-size: 13px; font-weight: 600; color: var(--ops-ink); }
.ops-cmd-stat.muted { color: var(--ops-muted); font-weight: 500; }
.ops-cmd-sep { color: var(--ops-line-2); }
.ops-cmd-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.ops-seg {
    display: inline-flex;
    padding: 3px;
    border-radius: 9px;
    background: #F1F5F9;
    border: 1px solid var(--ops-line);
}
.ops-seg-btn {
    border: 0;
    background: transparent;
    color: var(--ops-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
}
.ops-seg-btn.active {
    background: #fff;
    color: var(--ops-ink);
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .07);
}
.ops-dates {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ops-date-sep { color: var(--ops-muted); font-size: 12px; }
.ops-date {
    width: 126px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--ops-line);
    background: #fff;
    color: var(--ops-ink);
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
    color-scheme: light;
}
.ops-cmd-actions { display: inline-flex; align-items: center; gap: 6px; }
.ops-btn {
    height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 9px;
    border: 1px solid var(--ops-line);
    background: #fff;
    color: var(--ops-ink);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, background .15s;
}
.ops-btn:hover { border-color: var(--ops-line-2); background: #F8FAFC; }
.ops-btn.primary { background: var(--ops-violet); border-color: var(--ops-violet); color: #fff; }
.ops-btn.primary:hover { background: #5B21B6; border-color: #5B21B6; }
.ops-btn.icon { width: 34px; padding: 0; }

/* Active Filters */
.ops-active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ops-chip {
    border: 1px solid var(--ops-line);
    background: #fff;
    color: var(--ops-ink);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.ops-chip.on, .ops-chip:hover {
    border-color: #C4B5FD;
    color: var(--ops-violet);
    background: #F5F3FF;
}
.ops-chip.clear { border-style: dashed; color: var(--ops-muted); }

/* Executive KPI Grid */
.ops-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.ops-kpi {
    background: #fff;
    border: 1px solid var(--ops-line);
    border-radius: 12px;
    padding: 16px 18px 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ops-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.ops-kpi-lbl {
    font-size: 12px;
    font-weight: 600;
    color: var(--ops-muted);
}
.ops-kpi-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #F1F5F9;
    color: #475569;
}
.ops-kpi.tone-green .ops-kpi-ico { background: #ECFDF5; color: #059669; }
.ops-kpi.tone-violet .ops-kpi-ico { background: #F5F3FF; color: #6D28D9; }
.ops-kpi.tone-amber .ops-kpi-ico { background: #FFFBEB; color: #D97706; }
.ops-kpi.tone-rose .ops-kpi-ico { background: #FFF1F2; color: #E11D48; }
.ops-kpi-val {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: var(--ops-ink);
    font-variant-numeric: tabular-nums;
}
.ops-kpi-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #F1F5F9;
    font-size: 12px;
    color: var(--ops-muted);
}
.ops-kpi-link { color: var(--ops-violet); font-weight: 700; }
.ops-kpi-link:hover { text-decoration: underline; }
.ops-kpi-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: #F5F3FF;
    color: var(--ops-violet);
    font-size: 11px;
    font-weight: 700;
}
.ops-kpi-loss { color: var(--ops-rose); font-weight: 700; font-variant-numeric: tabular-nums; }
.ops-kpi-muted { color: var(--ops-muted); font-size: 11px; }

/* Channel Split Strip */
.ops-ch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.ops-ch-card {
    text-align: left;
    background: #fff;
    border: 1px solid var(--ops-line);
    border-radius: 12px;
    padding: 13px 16px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.ops-ch-card:hover { border-color: var(--ops-line-2); box-shadow: 0 4px 12px rgba(15, 23, 42, .04); }
.ops-ch-card.on { border-color: var(--ops-violet); box-shadow: 0 0 0 2px rgba(109, 40, 217, .12); }
.ops-ch-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ops-ink); }
.ops-ch-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ops-ch-card.tone-kiosk .ops-ch-dot { background: #D97706; }
.ops-ch-card.tone-online .ops-ch-dot { background: #0284C7; }
.ops-ch-card.tone-magaza .ops-ch-dot { background: #0D9488; }
.ops-ch-pct { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--ops-muted); font-variant-numeric: tabular-nums; }
.ops-ch-metrics {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}
.ops-ch-metrics strong { font-size: 22px; font-weight: 800; color: var(--ops-ink); font-variant-numeric: tabular-nums; }
.ops-ch-metrics span { font-size: 14px; font-weight: 700; color: #334155; font-variant-numeric: tabular-nums; }
.ops-ch-bar { margin-top: 9px; height: 4px; border-radius: 999px; background: #F1F5F9; overflow: hidden; }
.ops-ch-bar > i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .4s ease; }
.ops-ch-card.tone-kiosk .ops-ch-bar > i { background: #D97706; }
.ops-ch-card.tone-online .ops-ch-bar > i { background: #0284C7; }
.ops-ch-card.tone-magaza .ops-ch-bar > i { background: #0D9488; }

/* SLA Attention Alerts */
.ops-alerts { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ops-alerts.show { display: grid; }
.ops-alert {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 14px; border-radius: 10px; border: 1px solid var(--ops-line); border-left: 3px solid;
    font-size: 12px; font-weight: 700; background: #fff; cursor: pointer; text-align: left; width: 100%;
}
.ops-alert.danger { border-left-color: var(--ops-rose); color: #9F1239; background: #FFF1F2; }
.ops-alert.warn { border-left-color: var(--ops-amber); color: #92400E; background: #FFFBEB; }
.ops-alert.info { border-left-color: var(--ops-cyan); color: #115E59; background: #F0FDFA; }
.ops-alert .n { font-size: 20px; font-weight: 800; color: var(--ops-ink); font-variant-numeric: tabular-nums; }

/* Pipeline Stepper */
.ops-flow-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}
.ops-stage {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ops-line);
    border-top: 3px solid;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    min-width: 0;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.ops-stage:hover { box-shadow: 0 6px 16px rgba(15, 23, 42, .06); }
.ops-stage.hot { border-top-color: var(--ops-rose); color: var(--ops-rose); }
.ops-stage.prep { border-top-color: #2563EB; color: #2563EB; }
.ops-stage.ready { border-top-color: var(--ops-lime); color: var(--ops-lime); }
.ops-stage.done { border-top-color: var(--ops-violet); color: var(--ops-violet); }
.ops-stage.cancel { border-top-color: #94A3B8; color: #64748B; }
.ops-stage-head {
    display: block; width: 100%; padding: 13px 14px 10px; border: 0; background: transparent;
    text-align: left; cursor: pointer; color: inherit;
}
.ops-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ops-stage .lbl { font-size: 12px; font-weight: 700; color: var(--ops-ink); }
.ops-stage-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ops-stage .val {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ops-stage .hint { margin-top: 4px; font-size: 11px; color: var(--ops-muted); }
.ops-stage .bar { margin-top: 10px; height: 3px; background: #F1F5F9; border-radius: 999px; overflow: hidden; }
.ops-stage .bar > i { display: block; height: 100%; width: 0; background: currentColor; transition: width .5s ease; }
.ops-stage-brk {
    border-top: 1px solid #F1F5F9;
    padding: 6px 8px 8px;
    max-height: 140px;
    overflow: auto;
}
.ops-brk-row {
    display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%;
    padding: 4px 6px; border: 0; border-radius: 6px; background: transparent;
    cursor: pointer; text-align: left; font-size: 11px; color: var(--ops-ink);
}
.ops-brk-row:hover { background: #F1F5F9; }
.ops-brk-row.ops-brk-i1 { padding-left: 14px; }
.ops-brk-row.ops-brk-i2 { padding-left: 22px; color: var(--ops-muted); }
.ops-brk-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-weight: 600; }
.ops-brk-n { font-size: 11px; font-weight: 700; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.ops-brk-empty { display: block; padding: 6px; font-size: 11px; color: var(--ops-muted); }

/* Primary Workspace */
.ops-work {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
    gap: 12px;
    align-items: start;
}
.ops-right-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ops-deck {
    border: 1px solid var(--ops-line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    min-width: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.ops-deck-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ops-line);
    font-size: 12px;
    color: var(--ops-muted);
    background: #fff;
}
.ops-deck-h strong { font-size: 14px; font-weight: 700; color: var(--ops-ink); }
.ops-deck-title { display: flex; align-items: center; gap: 8px; }
.ops-count-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: #F1F5F9;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
}
.ops-stream-h { flex-wrap: wrap; }
.ops-stream-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ops-mini-tabs {
    display: inline-flex;
    padding: 2px;
    border-radius: 8px;
    background: #F1F5F9;
    border: 1px solid var(--ops-line);
}
.ops-mini-tabs button {
    border: 0; background: transparent; padding: 4px 9px; border-radius: 6px;
    font-size: 11px; font-weight: 600; color: var(--ops-muted); cursor: pointer;
}
.ops-mini-tabs button.active { background: #fff; color: var(--ops-ink); font-weight: 700; }
.ops-mini-search {
    height: 30px;
    width: 190px;
    border: 1px solid var(--ops-line);
    border-radius: 8px;
    padding: 0 10px;
    font-size: 12px;
    background: #fff;
}
.ops-mini-search:focus { outline: none; border-color: var(--ops-violet); }

.ops-stream-body { max-height: 540px; overflow: auto; }
.ops-ledger-row {
    display: grid;
    grid-template-columns: 3px 130px minmax(0, 1fr) 140px;
    gap: 0 14px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #F1F5F9;
    transition: background .12s;
}
.ops-ledger-row:hover { background: #F8FAFC; }
.ops-rail { align-self: stretch; border-radius: 2px; background: #CBD5E1; }
.ops-ledger-row.hot .ops-rail { background: var(--ops-rose); }
.ops-ledger-row.sla .ops-rail { background: var(--ops-amber); }
.ops-ledger-row.ok .ops-rail { background: var(--ops-lime); }
.ops-ledger-row.muted .ops-rail { background: #CBD5E1; }
.ops-lr-no {
    display: block; font-size: 12px; font-weight: 700; color: var(--ops-violet);
    font-variant-numeric: tabular-nums;
}
.ops-lr-no:hover { text-decoration: underline; }
.ops-lr-ch {
    margin-top: 4px; display: inline-flex; padding: 2px 7px; border-radius: 999px;
    font-size: 10px; font-weight: 700; border: 1px solid transparent; cursor: pointer;
}
.ops-lr-ch.kiosk { background: #FEF3C7; color: #92400E; }
.ops-lr-ch.online { background: #E0F2FE; color: #075985; }
.ops-lr-ch.magaza { background: #CCFBF1; color: #115E59; }
.ops-lr-main { min-width: 0; cursor: pointer; }
.ops-lr-cust { font-size: 13px; font-weight: 700; color: var(--ops-ink); }
.ops-lr-items {
    margin-top: 2px; font-size: 12px; color: var(--ops-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ops-lr-loc { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.ops-lr-loc span {
    padding: 1px 7px; border-radius: 5px; font-size: 10px; font-weight: 600;
    background: #F1F5F9; color: #334155;
}
.ops-lr-end { text-align: right; }
.ops-lr-amt { font-size: 14px; font-weight: 800; color: var(--ops-ink); font-variant-numeric: tabular-nums; }
.ops-lr-meta { margin-top: 4px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.ops-st-pill {
    padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 700;
    background: #F1F5F9; color: #475569;
}
.ops-st-pill.teslim_edildi { background: #DCFCE7; color: #166534; }
.ops-st-pill.iptal { background: #FFE4E6; color: #9F1239; }
.ops-st-pill.hazir { background: #EDE9FE; color: #5B21B6; }
.ops-st-pill.hazirlaniyor, .ops-st-pill.yeni { background: #FFEDD5; color: #9A3412; }
.ops-age { font-size: 11px; color: var(--ops-muted); font-weight: 600; }
.ops-age.warn { color: var(--ops-amber); }
.ops-age.danger { color: var(--ops-rose); }

/* Dispatch & Fleet */
.ops-dispatch-body { max-height: 240px; overflow: auto; }
.ops-dispatch-card {
    display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
    border: 0; border-bottom: 1px solid #F1F5F9; background: #fff; padding: 12px 16px;
}
.ops-dispatch-card:hover { background: #F0FDF4; }
.ops-dispatch-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.ops-dispatch-top strong { font-size: 12px; font-weight: 700; color: var(--ops-violet); }
.ops-dispatch-wait {
    font-size: 11px; font-weight: 700; color: #B45309; background: #FFFBEB;
    border: 1px solid #FDE68A; border-radius: 999px; padding: 2px 8px;
}
.ops-dispatch-name { margin-top: 5px; font-size: 14px; font-weight: 700; }
.ops-dispatch-loc { margin-top: 2px; font-size: 11px; color: var(--ops-muted); }
.ops-dispatch-amt { margin-top: 6px; font-size: 14px; font-weight: 800; color: #059669; }

.ops-fleet-panel { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.ops-sub-lbl {
    font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ops-muted); margin-top: 4px;
}
.ops-sub-lbl:first-child { margin-top: 0; }
.ops-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ops-chip-col { display: flex; flex-direction: column; gap: 5px; }
.ops-break-row {
    display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center;
    width: 100%; text-align: left; padding: 9px 11px; border-radius: 9px;
    border: 1px solid var(--ops-line); background: #F8FAFC; color: inherit; cursor: pointer;
}
.ops-break-row:hover, .ops-break-row.on { border-color: #C4B5FD; background: #F5F3FF; }
.ops-break-row .t { font-size: 12px; font-weight: 700; color: var(--ops-ink); }
.ops-break-row .t small { display: block; font-size: 10px; font-weight: 500; color: var(--ops-muted); }
.ops-break-row .m { font-size: 11px; color: var(--ops-muted); font-variant-numeric: tabular-nums; }
.ops-break-row .c { font-size: 12px; font-weight: 700; color: var(--ops-violet); font-variant-numeric: tabular-nums; }

.ops-fleet-grid { display: flex; flex-direction: column; gap: 6px; }
.ops-node {
    display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center;
    padding: 10px 12px; border: 1px solid var(--ops-line); background: #F8FAFC;
    border-radius: 9px; width: 100%; text-align: left; cursor: pointer;
}
.ops-node:hover, .ops-node.active { border-color: #C4B5FD; background: #F5F3FF; }
.ops-node .pulse { width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; }
.ops-node.on .pulse { background: var(--ops-lime); box-shadow: 0 0 0 0 rgba(22,163,74,.35); animation: opsPulse 1.8s ease infinite; }
.ops-node .name { font-size: 12px; font-weight: 700; color: var(--ops-ink); }
.ops-node .loc { font-size: 11px; color: var(--ops-muted); }
.ops-node-right { text-align: right; }
.ops-node .tag { display: block; font-size: 10px; font-weight: 800; color: var(--ops-muted); }
.ops-node.on .tag { color: var(--ops-lime); }
.ops-node .amt { display: block; font-size: 11px; font-weight: 700; color: var(--ops-ink); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* Analytics Row */
.ops-analytics {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
    gap: 12px;
    align-items: stretch;
}
.ops-chart-box {
    padding: 12px 14px 14px;
    height: 240px;
    position: relative;
}
.ops-chart-box canvas { width: 100% !important; height: 100% !important; }
.ops-top-body { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.ops-top-row { display: flex; align-items: flex-start; gap: 9px; }
.ops-top-n {
    width: 22px; height: 22px; border-radius: 6px; background: #F5F3FF; color: var(--ops-violet);
    display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.ops-top-body { min-width: 0; flex: 1; }
.ops-top-line { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.ops-top-line strong { color: var(--ops-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-top-line span { font-weight: 700; color: var(--ops-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ops-top-bar { margin-top: 4px; height: 5px; border-radius: 999px; background: #F1F5F9; overflow: hidden; }
.ops-top-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8B5CF6, #6D28D9); border-radius: 999px; }
.ops-top-sub { margin-top: 2px; font-size: 11px; color: var(--ops-muted); }

/* Kept for siparisler.php location card */
.order-ops-loc {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-bottom: 14px; padding: 12px; border: 1px solid var(--line);
    border-radius: 12px; background: #FAFAF8;
}
.order-ops-loc-item .lbl {
    display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
}
.order-ops-loc-item strong {
    display: block; font-size: 13px; font-weight: 800; color: var(--ink); line-height: 1.3;
}

.ops-empty { padding: 36px 16px; text-align: center; color: var(--ops-muted); font-size: 12px; }
.ops-empty.compact { padding: 20px 12px; }
.ops-empty.sm { padding: 10px 6px; }

@keyframes opsPulse {
    0% { box-shadow: 0 0 0 0 rgba(22,163,74,.35); }
    70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
    100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

@media (max-width: 1320px) {
    .ops-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ops-analytics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1120px) {
    .ops-work { grid-template-columns: 1fr; }
    .ops-flow-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .ops-kpi-grid, .ops-ch-grid, .ops-analytics { grid-template-columns: 1fr; }
    .ops-alerts.show, .ops-flow-rail { grid-template-columns: 1fr 1fr; }
    .ops-ledger-row { grid-template-columns: 3px 1fr; gap: 6px 10px; }
    .ops-lr-end { grid-column: 2; text-align: left; }
    .ops-lr-meta { justify-content: flex-start; }
    .ops-mini-search { width: 100%; }
}

/* ── Operasyonel Muhasebe ── */
.acc-page {
    --acc-ink: #1C1917;
    --acc-muted: #78716C;
    --acc-line: #E7E5E4;
    --acc-soft: #FAFAF9;
    --acc-violet: #5B21B6;
    --acc-green: #059669;
    --acc-amber: #D97706;
    --acc-sky: #0284C7;
    --acc-rose: #E11D48;
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: opsIn .35s ease both;
}
.acc-strip {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 4px 2px 2px;
}
.acc-brand { display: flex; align-items: center; gap: 14px; }
.acc-brand-mark {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(145deg, #5B21B6, #7C3AED);
    color: #fff; font-weight: 800; font-size: 22px;
    display: grid; place-items: center;
    box-shadow: 0 10px 24px rgba(91,33,182,.22);
}
.acc-brand h1 {
    margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--acc-ink);
}
.acc-brand p { margin: 2px 0 0; color: var(--acc-muted); font-size: 13px; }
.acc-strip-right {
    display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
}
.acc-date {
    display: flex; flex-direction: column; gap: 4px;
    font-size: 11px; font-weight: 700; color: var(--acc-muted); text-transform: uppercase; letter-spacing: .04em;
}
.acc-date input {
    border: 1px solid var(--acc-line); border-radius: 10px;
    padding: 8px 10px; font-size: 13px; background: #fff; color: var(--acc-ink);
}
.acc-refresh {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--acc-line);
    background: #fff; font-size: 18px; cursor: pointer; color: var(--acc-ink);
}
.acc-refresh:hover { border-color: #C4B5FD; color: var(--acc-violet); }

.acc-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 28px; }
.acc-chip {
    border: 1px solid var(--acc-line); background: #fff; color: var(--acc-ink);
    border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 650; cursor: pointer;
}
.acc-chip.on { background: #F5F3FF; border-color: #C4B5FD; color: #5B21B6; }
.acc-chip.clear { color: var(--acc-rose); border-color: #FECDD3; background: #FFF1F2; }
.acc-chip.muted { cursor: default; color: var(--acc-muted); background: var(--acc-soft); }

.acc-kpi {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.acc-kpi-card {
    background: #fff;
    border: 1px solid var(--acc-line);
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 1px 2px rgba(28,25,23,.04);
}
.acc-kpi-lab { font-size: 12px; font-weight: 700; color: var(--acc-muted); text-transform: uppercase; letter-spacing: .04em; }
.acc-kpi-val { margin-top: 8px; font-size: 28px; font-weight: 850; letter-spacing: -.03em; color: var(--acc-ink); line-height: 1.1; }
.acc-kpi-sub { margin-top: 6px; font-size: 12px; color: var(--acc-muted); }
.acc-kpi-card.tone-ciro { background: linear-gradient(160deg, #ECFDF5, #fff 55%); border-color: #A7F3D0; }
.acc-kpi-card.tone-ciro .acc-kpi-val { color: #047857; }
.acc-kpi-card.tone-sip { background: linear-gradient(160deg, #EEF2FF, #fff 55%); border-color: #C7D2FE; }
.acc-kpi-card.tone-sip .acc-kpi-val { color: #4338CA; }
.acc-kpi-card.tone-aov { background: linear-gradient(160deg, #FFF7ED, #fff 55%); border-color: #FED7AA; }
.acc-kpi-card.tone-aov .acc-kpi-val { color: #C2410C; }
.acc-kpi-card.tone-iptal { background: linear-gradient(160deg, #FFF1F2, #fff 55%); border-color: #FECDD3; }
.acc-kpi-card.tone-iptal .acc-kpi-val { color: #BE123C; }

.acc-kanal {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.acc-kanal-card {
    text-align: left;
    border: 1px solid var(--acc-line);
    border-radius: 16px;
    padding: 18px;
    background: #fff;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.acc-kanal-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(28,25,23,.07); }
.acc-kanal-card.on { box-shadow: 0 0 0 2px rgba(91,33,182,.25); }
.acc-kanal-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--acc-ink); }
.acc-kanal-top .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.acc-kanal-n { margin-top: 12px; font-size: 32px; font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.acc-kanal-c { margin-top: 6px; font-size: 15px; font-weight: 700; }
.acc-kanal-hint { margin-top: 10px; font-size: 12px; color: var(--acc-muted); }
.acc-kanal-card.tone-kiosk { background: linear-gradient(160deg, #FFFBEB, #fff 60%); border-color: #FDE68A; color: #B45309; }
.acc-kanal-card.tone-kiosk .acc-kanal-n, .acc-kanal-card.tone-kiosk .acc-kanal-c { color: #92400E; }
.acc-kanal-card.tone-online { background: linear-gradient(160deg, #F0F9FF, #fff 60%); border-color: #BAE6FD; color: #0369A1; }
.acc-kanal-card.tone-online .acc-kanal-n, .acc-kanal-card.tone-online .acc-kanal-c { color: #0C4A6E; }
.acc-kanal-card.tone-magaza { background: linear-gradient(160deg, #F0FDFA, #fff 60%); border-color: #99F6E4; color: #0F766E; }
.acc-kanal-card.tone-magaza .acc-kanal-n, .acc-kanal-card.tone-magaza .acc-kanal-c { color: #115E59; }

.acc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.acc-panel {
    background: #fff;
    border: 1px solid var(--acc-line);
    border-radius: 16px;
    padding: 16px 18px 18px;
    box-shadow: 0 1px 2px rgba(28,25,23,.04);
}
.acc-panel-h {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    margin-bottom: 12px;
}
.acc-panel-h.tight { margin-top: 18px; margin-bottom: 10px; }
.acc-panel-h strong { display: block; font-size: 15px; color: var(--acc-ink); }
.acc-panel-h span { display: block; margin-top: 2px; font-size: 12px; color: var(--acc-muted); }
.acc-linkish {
    border: 0; background: transparent; color: var(--acc-violet);
    font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px 0;
}
.acc-chart-wrap { height: 220px; position: relative; }

.acc-tree { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow: auto; padding-right: 4px; }
.acc-node { border: 1px solid var(--acc-line); border-radius: 12px; background: var(--acc-soft); overflow: hidden; }
.acc-node.on { border-color: #C4B5FD; background: #F5F3FF; }
.acc-node.branch { margin: 6px 8px; background: #fff; }
.acc-tree-head {
    display: grid; grid-template-columns: minmax(0, 1.4fr) 70px 100px 90px;
    gap: 8px; padding: 0 12px 8px; font-size: 11px; font-weight: 750;
    color: var(--acc-muted); text-transform: uppercase; letter-spacing: .04em;
}
.acc-tree-head span:not(:first-child) { text-align: right; }
.acc-node-row {
    width: 100%; border: 0; background: transparent; cursor: pointer;
    display: grid; grid-template-columns: minmax(0, 1.4fr) 70px 100px 90px;
    gap: 8px; align-items: center;
    padding: 11px 12px; text-align: left;
}
.acc-node-row:hover { background: rgba(91,33,182,.04); }
.acc-node-row.leaf { padding-left: 18px; }
.acc-node-row.leaf.on { background: #EDE9FE; }
.acc-node-name { font-size: 13px; font-weight: 700; color: var(--acc-ink); display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-node-stat { font-size: 12px; font-weight: 650; color: var(--acc-muted); text-align: right; font-variant-numeric: tabular-nums; }
.acc-node-stat.strong { color: var(--acc-ink); font-weight: 800; }
.acc-leaf-dot { width: 6px; height: 6px; border-radius: 50%; background: #A8A29E; display: inline-block; flex-shrink: 0; }
.acc-node-children { padding-bottom: 4px; }
.acc-kanal-top { justify-content: flex-start; }
.acc-kanal-top em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; opacity: .8; }
.acc-side { display: flex; flex-direction: column; gap: 14px; }
.acc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acc-rank { display: flex; flex-direction: column; gap: 8px; }
.acc-rank-row {
    display: flex; gap: 10px; align-items: flex-start; width: 100%;
    border: 1px solid var(--acc-line); border-radius: 12px; background: #fff;
    padding: 10px 12px; cursor: pointer; text-align: left;
}
.acc-rank-row:hover { border-color: #C4B5FD; background: #FAFAF9; }
.acc-rank-n {
    width: 24px; height: 24px; border-radius: 8px; background: #F5F3FF; color: #5B21B6;
    display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.acc-rank-body { flex: 1; min-width: 0; }
.acc-rank-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.acc-rank-top strong { color: var(--acc-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-rank-top span { font-weight: 800; color: var(--acc-ink); white-space: nowrap; }
.acc-rank-bar { margin-top: 6px; height: 6px; border-radius: 999px; background: #F5F5F4; overflow: hidden; }
.acc-rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7C3AED, #5B21B6); }
.acc-rank-sub { margin-top: 4px; font-size: 11px; color: var(--acc-muted); }

.acc-pay-list { display: flex; flex-direction: column; gap: 10px; }
.acc-pay-row { display: grid; grid-template-columns: 110px 1fr 110px; gap: 10px; align-items: center; }
.acc-pay-lab { font-size: 12px; font-weight: 700; color: var(--acc-ink); text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-pay-bar { height: 8px; border-radius: 999px; background: #F5F5F4; overflow: hidden; }
.acc-pay-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7C3AED, #5B21B6); border-radius: 999px; }
.acc-pay-val { text-align: right; font-size: 12px; font-weight: 750; color: var(--acc-ink); }
.acc-pay-val small { display: block; font-weight: 600; color: var(--acc-muted); }

.acc-table-panel { padding-bottom: 8px; }
.acc-search {
    border: 1px solid var(--acc-line); border-radius: 10px;
    padding: 8px 12px; min-width: 220px; font-size: 13px; background: #fff;
}
.acc-table-scroll { overflow: auto; max-height: 480px; border-top: 1px solid var(--acc-line); margin: 0 -18px; }
.acc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.acc-table th {
    position: sticky; top: 0; z-index: 1;
    background: #FAFAF9; color: var(--acc-muted); font-size: 11px; font-weight: 750;
    text-transform: uppercase; letter-spacing: .04em;
    text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--acc-line);
}
.acc-table td { padding: 12px 14px; border-bottom: 1px solid #F5F5F4; color: var(--acc-ink); vertical-align: top; }
.acc-table tr:hover td { background: #FAFAF9; }
.acc-table .num { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.acc-table .mono { font-variant-numeric: tabular-nums; color: var(--acc-muted); white-space: nowrap; }
.acc-ord { font-weight: 750; color: var(--acc-violet); text-decoration: none; }
.acc-ord:hover { text-decoration: underline; }
.acc-ord-sub { margin-top: 2px; font-size: 12px; color: var(--acc-muted); }
.acc-tag {
    display: inline-flex; align-items: center; border-radius: 999px;
    padding: 3px 8px; font-size: 11px; font-weight: 750;
    background: #F5F5F4; color: #44403C;
}
.acc-tag.kiosk { background: #FEF3C7; color: #92400E; }
.acc-tag.online { background: #E0F2FE; color: #075985; }
.acc-tag.magaza { background: #CCFBF1; color: #115E59; }
.acc-durum {
    display: inline-flex; border-radius: 8px; padding: 3px 8px;
    font-size: 11px; font-weight: 750; background: #F5F5F4; color: #44403C;
}
.acc-durum.teslim_edildi { background: #D1FAE5; color: #065F46; }
.acc-durum.iptal { background: #FFE4E6; color: #9F1239; }
.acc-durum.hazir { background: #EDE9FE; color: #5B21B6; }
.acc-durum.hazirlaniyor, .acc-durum.yeni { background: #FFEDD5; color: #9A3412; }
.acc-empty { padding: 28px 12px; text-align: center; color: var(--acc-muted); font-size: 13px; }
.acc-empty.sm { padding: 12px; }

@media (max-width: 1100px) {
    .acc-kpi { grid-template-columns: 1fr 1fr; }
    .acc-grid, .acc-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .acc-kanal { grid-template-columns: 1fr; }
    .acc-kpi { grid-template-columns: 1fr; }
    .acc-pay-row { grid-template-columns: 1fr; gap: 4px; }
    .acc-pay-val { text-align: left; }
    .acc-search { min-width: 0; width: 100%; }
    .acc-tree-head, .acc-node-row { grid-template-columns: minmax(0, 1fr) 56px 84px; }
    .acc-tree-head span:last-child, .acc-node-row .acc-node-stat:last-child { display: none; }
}

/* =========================================================
   CENTRAL ADMIN DESIGN SYSTEM (UNIFIED OPS-TOWER)
   All pages share the same white SaaS/ERP/CRM console grammar
   ========================================================= */
.ops-kpi-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ops-kpi-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) {
    .ops-kpi-grid.cols-3, .ops-kpi-grid.cols-2 { grid-template-columns: 1fr; }
}

.ops-filterbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #FFFFFF;
    border: 1px solid var(--ops-line);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.ops-filterbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}
.ops-filterbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ops-search-box {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 360px;
}
.ops-search-box svg {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--ops-muted);
    pointer-events: none;
}
.ops-search-box input {
    width: 100%;
    height: 34px;
    padding: 0 10px 0 33px;
    border: 1px solid var(--ops-line);
    border-radius: 8px;
    background: #F8FAFC;
    font-size: 12.5px;
    color: var(--ops-ink);
}
.ops-search-box input:focus { background: #FFFFFF; border-color: var(--ops-violet); }
.ops-select {
    width: auto !important;
    height: 34px !important;
    min-width: 132px;
    padding: 0 10px !important;
    border: 1px solid var(--ops-line) !important;
    border-radius: 8px !important;
    background: #F8FAFC !important;
    font-size: 12.5px !important;
    font-weight: 600;
    color: var(--ops-ink) !important;
}
.ops-select:focus { background: #FFFFFF !important; border-color: var(--ops-violet) !important; }

.ops-chip-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.ops-pill-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid var(--ops-line);
    background: #FFFFFF;
    color: var(--ops-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.ops-pill-tab:hover { border-color: var(--ops-line-2); color: var(--ops-ink); }
.ops-pill-tab.active {
    background: #F5F3FF;
    border-color: #C4B5FD;
    color: var(--ops-violet);
    font-weight: 700;
}
.ops-pill-tab.danger.active {
    background: #FFFBEB;
    border-color: #FDE68A;
    color: #B45309;
}
.ops-pill-tab .n {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #F1F5F9;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ops-pill-tab.active .n { background: #EDE9FE; color: var(--ops-violet); }

/* ERP Table inside ops-deck */
.ops-table-wrap { overflow-x: auto; }
.ops-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ops-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    text-align: left;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ops-muted);
    background: #F8FAFC;
    border-bottom: 1px solid var(--ops-line);
    white-space: nowrap;
}
.ops-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #F1F5F9;
    color: var(--ops-ink);
    vertical-align: middle;
}
.ops-table tbody tr { transition: background .12s; }
.ops-table tbody tr:hover td { background: #F8FAFC; }
.ops-table tbody tr.is-selected td { background: #F5F3FF; }
.ops-table tbody tr.row-highlight td { background: #FFF7ED; }
.ops-table tbody tr.row-check td { background: #FFFBEB; }
.ops-table tbody tr.row-disabled { opacity: .55; }
.ops-table tbody tr.row-muted td { color: var(--ops-muted); }

/* Master-Detail Inspector */
.ops-inspector {
    position: sticky;
    top: 16px;
}
.ops-insp-body {
    padding: 14px 16px 16px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}
.ops-insp-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 12px;
}
.ops-insp-no {
    font-size: 17px;
    font-weight: 800;
    color: var(--ops-ink);
    letter-spacing: -.02em;
}
.ops-insp-date {
    font-size: 11.5px;
    color: var(--ops-muted);
    margin-top: 2px;
}
.ops-insp-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--ops-violet);
    font-variant-numeric: tabular-nums;
}
.ops-insp-loc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid var(--ops-line);
    margin-bottom: 12px;
}
.ops-insp-loc span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ops-muted);
}
.ops-insp-loc strong {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ops-ink);
    margin-top: 2px;
}
.ops-insp-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.ops-insp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 9px;
    border: 1px solid #F1F5F9;
    background: #FFFFFF;
}
.ops-insp-item img {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    object-fit: cover;
    background: #F1F5F9;
    border: 1px solid var(--ops-line);
    flex-shrink: 0;
}
.ops-insp-item-name { font-size: 12.5px; font-weight: 700; color: var(--ops-ink); }
.ops-insp-item-meta { font-size: 11px; color: var(--ops-muted); }
.ops-insp-item-amt { margin-left: auto; font-size: 12.5px; font-weight: 800; color: var(--ops-ink); font-variant-numeric: tabular-nums; }

.ops-quick-btn {
    height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid #C4B5FD;
    background: #F5F3FF;
    color: var(--ops-violet);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.ops-quick-btn:hover { background: var(--ops-violet); color: #fff; border-color: var(--ops-violet); }

body.ops-console .sidebar { border-right-color: var(--ops-line); }
body.ops-console .sidebar-logo { border-bottom-color: var(--ops-line); }
.ops-work.wide-left { grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.95fr); }
.ops-work.equal { grid-template-columns: 1fr 1fr; }
@media (max-width: 1120px) {
    .ops-work.wide-left, .ops-work.equal { grid-template-columns: 1fr; }
    .ops-inspector { position: static; }
}

body:not(.ops-console):not(.kitchen-mode) {
    --ops-bg: #F8FAFC;
    --ops-line: #E2E8F0;
    --ops-line-2: #CBD5E1;
    --ops-ink: #0F172A;
    --ops-muted: #64748B;
    --ops-violet: #6D28D9;
    background: #F8FAFC;
    color: #0F172A;
}
body:not(.ops-console):not(.kitchen-mode) .main-wrap {
    background: #F8FAFC;
}
body:not(.ops-console):not(.kitchen-mode) .main-content {
    background: #F8FAFC;
    padding: 18px 24px 40px;
}
body:not(.ops-console):not(.kitchen-mode) .ops-topbar {
    height: 54px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid #E2E8F0;
}
body:not(.ops-console):not(.kitchen-mode) .ops-crumb {
    color: #0F172A;
    font-size: 15px;
    letter-spacing: -.01em;
}
body:not(.ops-console):not(.kitchen-mode) .sidebar {
    border-right-color: #E2E8F0;
}
body:not(.ops-console):not(.kitchen-mode) .sidebar-logo {
    border-bottom-color: #E2E8F0;
}

/* Command-bar style Page Hero matching .ops-cmdbar */
.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 18px;
    margin-bottom: 14px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.page-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6D28D9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.page-hero h1 {
    color: #0F172A;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
}
.page-hero-sub {
    color: #64748B;
    font-size: 12.5px;
    font-weight: 500;
    margin-top: 3px;
}
.page-hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    align-self: center;
}

.metric-grid {
    gap: 12px;
    margin-bottom: 14px;
}
.metric-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
    padding: 15px 16px;
    gap: 12px;
}
.metric-card:hover {
    transform: translateY(-1px);
    border-color: #C4B5FD;
    box-shadow: 0 6px 16px rgba(15,23,42,.05);
}
.metric-label { color: #64748B; font-size: 11px; font-weight: 700; }
.metric-value { color: #0F172A; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.metric-meta { color: #94A3B8; font-size: 11.5px; margin-top: 4px; }
.metric-card.tone-warn { border-color: #FDE68A; background: linear-gradient(180deg,#FFFBEB,#fff 68%); }
.metric-card.tone-danger { border-color: #FECDD3; background: linear-gradient(180deg,#FFF1F2,#fff 68%); }
.metric-card.tone-ok { border-color: #A7F3D0; background: linear-gradient(180deg,#ECFDF5,#fff 68%); }
.icon-box { width: 38px; height: 38px; border-radius: 10px; }
.icon-box svg { width: 18px; height: 18px; }

.toolbar {
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.toolbar .search { min-width: 240px; }
.toolbar .search input,
.toolbar > select,
.toolbar > input[type="date"] {
    height: 36px !important;
    border-color: #E2E8F0 !important;
    background: #F8FAFC;
    font-size: 13px;
}
.toolbar .search input:focus,
.toolbar > select:focus,
.toolbar > input[type="date"]:focus {
    background: #FFFFFF;
}
.chips { gap: 6px; margin-bottom: 12px; }
.chip {
    height: 32px;
    border-color: #E2E8F0;
    background: #FFFFFF;
    color: #475569;
    font-size: 12px;
}
.chip:hover, .chip.active {
    border-color: #C4B5FD;
    background: #F5F3FF;
    color: #6D28D9;
}

.section-card, .card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.section-card-header {
    min-height: 50px;
    padding: 11px 16px;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
}
.section-card-title { color: #0F172A; font-size: 14px; font-weight: 700; }
.section-card-body { padding: 16px; }
.section-card-body.flush { padding: 0; }
.data-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #F8FAFC;
    color: #64748B;
    font-size: 11px;
    padding: 11px 14px;
    border-bottom: 1px solid #E2E8F0;
}
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #F1F5F9;
    color: #0F172A;
    font-size: 13px;
}
.data-table tbody tr:hover td { background: #F8FAFC; }
.data-table .mono { color: #475569; }
.status-badge, .age-pill { border-radius: 999px; }
.status-select {
    height: 32px;
    border-color: #E2E8F0;
    background: #FFFFFF;
    font-size: 12px;
}

.btn-primary {
    background: #6D28D9;
    color: #FFFFFF;
    box-shadow: 0 1px 2px rgba(109,40,217,.18);
}
.btn-primary:hover { background: #5B21B6; }
.btn-secondary, .btn-danger, .btn-ghost, .btn-delete {
    border-radius: 9px;
}
.btn-secondary { background: #FFFFFF; border: 1px solid #E2E8F0; color: #0F172A; }
.btn-secondary:hover { background: #F8FAFC; border-color: #CBD5E1; }
.btn-delete {
    display: inline-flex; align-items: center; justify-content: center;
    height: 32px; padding: 0 11px; border: 1px solid #FECACA;
    background: #FEF2F2; color: #B91C1C; font-size: 12px; font-weight: 600;
    cursor: pointer; margin: 0 2px; transition: background .15s ease;
}
.btn-delete:hover { background: #FEE2E2; }

/* Unified Tabs */
.erp-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
}
.erp-tab-btn {
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #64748B;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}
.erp-tab-btn:hover { color: #0F172A; }
.erp-tab-btn.active {
    background: #FFFFFF;
    color: #0F172A;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(15,23,42,.07);
}

/* Unified Toggle Switch */
.erp-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    margin-bottom: 12px;
}
.erp-toggle-row strong { display: block; font-size: 13px; font-weight: 700; color: #0F172A; }
.erp-toggle-row span { display: block; font-size: 12px; color: #64748B; margin-top: 2px; }
.erp-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.erp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.erp-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #CBD5E1;
    cursor: pointer;
    transition: background .2s ease;
}
.erp-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(15,23,42,.2);
    transition: transform .2s ease;
}
.erp-switch input:checked + .erp-slider { background: #059669; }
.erp-switch input:checked + .erp-slider::before { transform: translateX(20px); }

/* Channel tags */
.erp-ch {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.erp-ch.kiosk { background: #FEF3C7; color: #92400E; }
.erp-ch.online { background: #E0F2FE; color: #075985; }
.erp-ch.magaza { background: #CCFBF1; color: #115E59; }

/* Unified Modals & Drawers */
.modal-overlay, .drawer-overlay {
    background: rgba(15,23,42,.38);
    backdrop-filter: blur(4px);
    z-index: 220;
}
.modal, .modal-content {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(15,23,42,.18);
    padding: 0;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-content { width: min(560px, 100%); }
.modal-header, .drawer-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 15px 18px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h2, .modal-header h3, .drawer-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}
.modal-close, .drawer-close {
    width: 30px;
    height: 30px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    color: #475569;
    font-size: 18px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.modal-close:hover, .drawer-close:hover { background: #F1F5F9; color: #0F172A; }
.modal-body, .modal-content > form, .modal-content > .modal-body-pad {
    padding: 18px;
    overflow-y: auto;
}
.drawer {
    border-left: 1px solid #E2E8F0;
    box-shadow: -18px 0 50px rgba(15,23,42,.12);
}
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-group select,
.form-group textarea,
.form-control,
input[type="text"], input[type="number"], input[type="date"],
input[type="password"], input[type="email"], input[type="tel"],
input[type="url"], input[type="search"], select, textarea {
    border-color: #E2E8F0;
}
.form-group label { color: #475569; font-size: 12px; font-weight: 600; }

/* Orders: dense ERP ledger */
body.page-siparisler .section-card { margin-top: 4px; }
body.page-siparisler .data-table td { padding-top: 12px; padding-bottom: 12px; }
body.page-siparisler .order-row { cursor: pointer; }
body.page-siparisler .order-row:hover td { background: #F5F3FF; }
body.page-siparisler .section-card-title::after {
    content: 'Satır seçerek sipariş detayını açın';
    margin-left: 10px;
    color: #94A3B8;
    font-size: 11px;
    font-weight: 600;
}
.order-hero-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 6px;
    color: #64748B;
    font-size: 12px;
    font-weight: 600;
}
.order-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16A34A;
    box-shadow: 0 0 0 3px #DCFCE7;
}
.order-hero-sep { color: #CBD5E1; }

/* Kitchen: retain touch-first KDS behavior, align it to the central visual system */
body.kitchen-mode {
    background: #F8FAFC !important;
    color: #0F172A !important;
}
body.kitchen-mode .k-topbar {
    background: #fff !important;
    border-bottom-color: #E2E8F0 !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
body.kitchen-mode .k-board {
    background: #F8FAFC !important;
    gap: 12px !important;
    padding: 12px !important;
}
body.kitchen-mode .k-col {
    background: #fff !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
body.kitchen-mode .k-col-head {
    background: #fff !important;
    border-bottom-color: #E2E8F0 !important;
    border-radius: 12px 12px 0 0;
}
body.kitchen-mode .k-card {
    border-color: #E2E8F0 !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(15,23,42,.04) !important;
}
body.kitchen-mode .k-card:hover {
    border-color: #C4B5FD !important;
    box-shadow: 0 6px 16px rgba(15,23,42,.07) !important;
}
body.kitchen-mode .k-action.primary {
    background: #6D28D9 !important;
}
body.kitchen-mode .k-btn {
    border-color: #E2E8F0 !important;
    background: #fff !important;
}

/* Management pages: catalogue, marketing and system cards */
body.page-urunler .table-thumb,
body.page-kategoriler .table-thumb {
    border-radius: 9px !important;
    border: 1px solid #E2E8F0 !important;
}
body.page-urunler .data-table td,
body.page-kategoriler .data-table td { padding-top: 11px; padding-bottom: 11px; }

@media (max-width: 860px) {
    body:not(.ops-console):not(.kitchen-mode) .main-content { padding: 66px 14px 30px; }
    .page-hero h1 { font-size: 19px; }
    .toolbar .search { min-width: 100%; flex-basis: 100%; }
    .section-card-title::after { display: none; }
}
