/* Parmakizi — acik panel (soft teal) */
:root {
    --bg: #eef3f7;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-solid: #ffffff;
    --surface-muted: #f1f5f9;
    --border: #dbe4ee;
    --border-strong: #c5d2e0;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --black: #0f172a;
    --white: #ffffff;
    --accent: #0ea5e9;
    --accent-2: #14b8a6;
    --accent-soft: rgba(14, 165, 233, 0.12);
    --accent-warn: #f59e0b;
    --sidebar-w: 260px;
    --sidebar-bg: rgba(255, 255, 255, 0.72);
    --sidebar-bg-hover: rgba(14, 165, 233, 0.08);
    --sidebar-accent: var(--accent);
    --sidebar-text: #64748b;
    --sidebar-text-active: #0f172a;
    --header-h: 64px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --font: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --page-px: 0;
    --page-py: 0;
    --btn-solid-bg: #0f172a;
    --btn-solid-text: #ffffff;
    --code-bg: #f1f5f9;
    --code-border: #dbe4ee;
}

[data-theme="dark"] {
    --bg: #071018;
    --surface: rgba(15, 23, 32, 0.88);
    --surface-solid: #0f1720;
    --surface-muted: #15202b;
    --border: #1e2d3d;
    --border-strong: #2a3f55;
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    --btn-solid-bg: #e2e8f0;
    --btn-solid-text: #0f172a;
    --code-bg: #15202b;
    --code-border: #2a3f55;
    --sidebar-bg: rgba(10, 18, 28, 0.82);
    --sidebar-bg-hover: rgba(14, 165, 233, 0.12);
    --sidebar-text: rgba(226, 232, 240, 0.7);
    --sidebar-text-active: #f8fafc;
    --accent-soft: rgba(14, 165, 233, 0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
    background-color: var(--bg);
}

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--bg);
    min-height: 100vh;
}

a { color: inherit; }

/* ── Shell ── */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar (video: cam / pill menu — acik) ── */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: var(--sidebar-text-active);
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-right: 1px solid var(--border);
    box-shadow: 4px 0 32px rgba(15, 23, 42, 0.04);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.1rem 1rem;
    border-bottom: 1px solid var(--border);
    min-height: 64px;
    position: relative;
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    transition: background 0.15s ease;
}

.sidebar-brand-link:hover {
    background: var(--sidebar-bg-hover);
}

.sidebar-brand-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.sidebar-close {
    display: none;
    margin-left: auto;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface, #fff);
    color: var(--text-secondary);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface, #fff);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--text, #0f172a);
}

.nav-backdrop[hidden] {
    display: none !important;
}

.nav-backdrop {
    display: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.28);
}

.brand-mark svg {
    display: block;
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
}

.brand-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text);
}

.brand-text small {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: 0.02em;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0.75rem 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-label {
    display: block;
    padding: 0.5rem 0.75rem 0.35rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.85rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
    overflow: hidden;
}

.nav-icon svg {
    display: block;
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0;
}

.sidebar .nav-item svg,
.sidebar .btn-sync svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
}

.nav-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item:hover {
    background: var(--sidebar-bg-hover);
    color: var(--sidebar-text-active);
    border-color: rgba(14, 165, 233, 0.15);
}

.nav-item:hover .nav-icon { opacity: 1; color: var(--accent); }

.nav-item.active {
    background: var(--surface-solid);
    color: var(--text);
    border-color: rgba(14, 165, 233, 0.28);
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(14, 165, 233, 0.06);
}

.nav-item.active .nav-icon {
    opacity: 1;
    color: var(--accent);
}

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border);
}

.sidebar-sync-form { width: 100%; }

.btn-sync {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    background: var(--accent-soft);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.btn-sync .nav-icon { opacity: 0.9; color: var(--accent); }

.btn-sync:hover {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(14, 165, 233, 0.4);
}

/* ── Main area ── */
.main-wrap {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-width: 0;
    width: calc(100% - var(--sidebar-w));
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Page header (kaydırırken sabit) ── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    width: calc(100% - var(--sidebar-w));
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

[data-theme="dark"] .page-header {
    background: rgba(10, 18, 28, 0.88);
}

.page-header-main {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-clock {
    flex-shrink: 0;
    padding-right: 1rem;
    border-right: 1px solid var(--border);
    line-height: 1.1;
}

.header-clock-time {
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.header-clock-date {
    display: block;
    margin-top: 0.15rem;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.page-header-titles { min-width: 0; }

.page-header-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 0.875rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 11px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--text-secondary); }

.breadcrumb-sep { color: var(--border-strong); font-size: 10px; }

.breadcrumb-current { color: var(--text-secondary); }

.page-title {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
    margin: 0;
}

.page-desc {
    margin-top: 0.125rem;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
}

.page-header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-user-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.7rem 0.25rem 0.25rem;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.header-user-avatar {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.header-time {
    display: none;
}

.header-user {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.header-user-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.header-user-meta {
    font-size: 10px;
    color: var(--text-muted);
}

.btn-theme {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-muted);
    color: var(--text);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    transition: border-color 0.12s, background 0.12s;
}

.btn-logout {
    height: 34px;
    padding: 0 0.75rem;
    font-size: 12px;
    border-radius: 10px;
}

.logout-form {
    display: inline-flex;
    margin: 0;
}

.btn-theme:hover {
    border-color: rgba(14, 165, 233, 0.35);
    background: var(--surface-solid);
    color: var(--accent);
}

.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: inline; }

.page-header-meta {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ── Page body ── */
.page-body {
    flex: 1;
    padding: 0;
    padding-top: var(--header-h);
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

/* ── Stats (tek satir, kompakt) ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.stats-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card-form {
    margin: 0;
    min-width: 0;
}

.stat-card--clickable {
    width: 100%;
    min-width: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.stat-card--clickable:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.stat-card--active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.panel-section--stats {
    padding: 0.875rem 1.125rem;
    background: var(--surface-muted);
    border-top: none;
}

.sync-devam-note {
    margin: 0.625rem 0 0;
    font-size: 12px;
    color: #b45309;
    font-weight: 600;
}

.sync-messages-panel {
    padding: 1rem 1.125rem;
    background: #fffbeb;
    border-top: 1px solid #fde68a;
}

[data-theme="dark"] .sync-messages-panel {
    background: rgba(180, 83, 9, 0.08);
    border-top-color: rgba(251, 191, 36, 0.25);
}

.sync-message-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.sync-message-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 0.875rem;
}

.sync-message-item--hata {
    border-color: rgba(220, 38, 38, 0.35);
}

.sync-message-item--basarili {
    border-color: rgba(217, 119, 6, 0.35);
}

.sync-message-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
    font-size: 12px;
}

.sync-message-meta {
    color: var(--text-muted);
    font-size: 11px;
}

.sync-message-body {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
    word-break: break-word;
    white-space: pre-wrap;
}

.sync-message-foot {
    margin-top: 0.375rem;
    font-size: 11px;
    color: var(--text-muted);
}

.hata-cell {
    max-width: 360px;
    min-width: 180px;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
    color: var(--text-secondary);
}

.stat-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.65rem;
    row-gap: 0;
    align-items: center;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.41rem 0.79rem;
    min-height: 52px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}

.stat-card:hover {
    box-shadow: var(--shadow);
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-1px);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: 1 / span 2;
    width: 31px;
    height: 31px;
    border-radius: 9px;
    margin-bottom: 0;
    background: var(--accent-soft);
    color: var(--accent);
    flex-shrink: 0;
}

.stat-icon svg {
    display: block;
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
}

.stat-label {
    grid-column: 2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.15;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.stat-value {
    grid-column: 2;
    font-size: 1.37rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    margin-top: 0;
}

.stat-card--blue {
    background: linear-gradient(135deg, #eff8ff 0%, #dbeafe 48%, #f8fafc 100%);
    border-color: rgba(14, 165, 233, 0.28);
}
.stat-card--green {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 48%, #f8fafc 100%);
    border-color: rgba(20, 184, 166, 0.28);
}
.stat-card--slate {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 48%, #f1f5f9 100%);
    border-color: rgba(100, 116, 139, 0.28);
}
.stat-card--amber {
    background: linear-gradient(135deg, #fffbeb 0%, #fde68a 48%, #fff7ed 100%);
    border-color: rgba(245, 158, 11, 0.32);
}
.stat-card--red {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 48%, #fff1f2 100%);
    border-color: rgba(239, 68, 68, 0.28);
}
.stat-card--neutral {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.stat-card--blue .stat-icon { background: rgba(14, 165, 233, 0.18); color: #0284c7; }
.stat-card--green .stat-icon { background: rgba(20, 184, 166, 0.18); color: #0d9488; }
.stat-card--slate .stat-icon { background: #e2e8f0; color: #475569; }
.stat-card--amber .stat-icon { background: rgba(245, 158, 11, 0.2); color: #d97706; }
.stat-card--red .stat-icon { background: rgba(239, 68, 68, 0.14); color: #dc2626; }
.stat-card--neutral .stat-icon { background: var(--surface-muted); color: var(--text-secondary); }

[data-theme="dark"] .stat-card--blue {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(15, 23, 32, 0.95) 100%);
}
[data-theme="dark"] .stat-card--green {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, rgba(15, 23, 32, 0.95) 100%);
}
[data-theme="dark"] .stat-card--slate {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.25) 0%, rgba(15, 23, 32, 0.95) 100%);
}
[data-theme="dark"] .stat-card--amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(15, 23, 32, 0.95) 100%);
}
[data-theme="dark"] .stat-card--red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(15, 23, 32, 0.95) 100%);
}

[data-theme="dark"] .stat-card--blue .stat-icon { background: rgba(37, 99, 235, 0.15); color: #93c5fd; }
[data-theme="dark"] .stat-card--green .stat-icon { background: rgba(5, 150, 105, 0.15); color: #6ee7b7; }
[data-theme="dark"] .stat-card--amber .stat-icon { background: rgba(217, 119, 6, 0.15); color: #fcd34d; }
[data-theme="dark"] .stat-card--red .stat-icon { background: rgba(220, 38, 38, 0.15); color: #fca5a5; }

.sync-info-bar {
    padding: 0.875rem 1.125rem;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border);
}

.sync-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem 1rem;
}

.sync-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.sync-info-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sync-api-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    width: fit-content;
}

.sync-api-badge--ok {
    background: #ecfdf5;
    color: #059669;
}

.sync-api-badge--off {
    background: #fef3c7;
    color: #b45309;
}

.sync-info-note {
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.sync-info-note code {
    font-size: 11px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

.dash-main-grid {
    grid-template-columns: 1fr;
    align-items: start;
}

.dash-otel-id .panel-head,
.dash-son-giris .panel-head {
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
}

.dash-otel-id .panel-head h2,
.dash-son-giris .panel-head h2 {
    min-width: 0;
    flex: 1 1 auto;
}

.dash-son-giris .table-wrap--scroll,
.dash-otel-id .table-wrap--scroll {
    max-height: min(62vh, 560px);
    overflow: auto;
}

.kisi-ad-link {
    color: inherit;
    text-decoration: none;
}

.kisi-ad-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ── Panel ── */
.panel {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.875rem;
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid var(--border);
}

.panel-head h2 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.panel-head-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.panel-note {
    margin: 0;
    padding: 0.625rem 1.125rem;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
    line-height: 1.45;
}

.count {
    color: var(--text-muted);
    font-weight: 500;
}

.link {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
}

.link:hover { color: var(--text); text-decoration: underline; }

/* ── Toolbar / filters ── */
.action-bar {
    padding: 0;
    border: none;
    background: transparent;
    margin-bottom: 0.875rem;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.panel-section {
    padding: 1.125rem;
    border-top: 1px solid var(--border);
}

.panel-section:first-of-type { border-top: none; }

.panel-section-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.form-panel {
    padding: 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.form-panel label {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-panel input,
.form-panel select {
    width: 100%;
    height: 36px;
}

.form-panel .btn {
    align-self: flex-start;
    margin-top: 0.25rem;
}

.info-box { padding: 1.125rem; }

.info-box dl {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0.625rem 1rem;
    font-size: 13px;
}

.info-box dt {
    color: var(--text-muted);
    font-weight: 500;
    padding-top: 0.125rem;
}

.info-box dd {
    min-width: 0;
    word-break: break-all;
}

.info-box dd code {
    display: inline-block;
    max-width: 100%;
    word-break: break-all;
    white-space: pre-wrap;
}

.info-list {
    padding: 0 1.125rem 1.125rem;
    list-style: none;
}

.info-list li {
    padding: 0.5625rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-list li:last-child { border-bottom: none; }

.info-list strong { color: var(--text); font-weight: 600; }

.status-ok { color: var(--text); font-weight: 600; }
.status-err { color: var(--text-secondary); }

.table-toolbar,
.action-bar {
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-muted);
}

.filter-panel {
    padding: 1rem 1.125rem;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.75rem 0.875rem;
    width: 100%;
    align-items: end;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.filter-field-sm {
    max-width: 130px;
}

.filter-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    line-height: 1;
}

.toolbar-input,
.toolbar-select,
.filter-panel input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.filter-panel select,
.toolbar-inner select,
.toolbar-inner input[type=search],
.toolbar-inner input[type=date],
.toolbar-inner input[type=number],
.search-box input[type=search],
.search-box input[type=date],
.search-box select {
    box-sizing: border-box;
    height: 36px;
    width: 100%;
    min-width: 0;
    padding: 0 0.75rem;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.2;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.12s, box-shadow 0.12s;
    appearance: auto;
}

.filter-panel input[type=date],
.toolbar-input[type=date],
.search-box input[type=date] {
    padding-right: 0.5rem;
    color-scheme: light;
}

[data-theme="dark"] .filter-panel input[type=date],
[data-theme="dark"] .toolbar-input[type=date] {
    color-scheme: dark;
}

.toolbar-input:focus,
.toolbar-select:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.search-box input:focus,
.search-box select:focus {
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.08);
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    grid-column: 1 / -1;
    padding-top: 0.25rem;
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.625rem 1.125rem;
    border-top: 1px solid var(--border);
    background: var(--surface-muted);
    flex-wrap: wrap;
}

.table-footer-info {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.toolbar-inner,
.search-box,
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.75rem 0.875rem;
    align-items: end;
    width: 100%;
}

.search-box.search-box-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
}

.search-box.search-box-inline input[type=search] {
    flex: 1;
    min-width: 160px;
}

.search-box.search-box-inline select {
    min-width: 140px;
    width: auto;
}

.input-search,
.search-box input[type=search],
.search-box input[type=date],
.search-box select,
.filters select,
.filters input[type=date],
.filters input[type=search],
.form-grid input,
.form-grid select,
.form-grid textarea,
.form-panel input,
.form-panel select {
    box-sizing: border-box;
    height: 36px;
    padding: 0 0.75rem;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.2;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.12s, box-shadow 0.12s;
}

.form-grid textarea,
#bolge_adres_onizleme {
    height: auto;
    padding: 0.5rem 0.625rem;
    min-height: 72px;
    resize: vertical;
}

.input-search,
.search-box input[type=search],
.filters input[type=search] {
    flex: 1;
    min-width: 160px;
}

.input-search:focus,
.search-box input:focus,
.search-box select:focus,
.filters select:focus,
.filters input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.08);
}

/* ── Table ── */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.table-wrap::-webkit-scrollbar { height: 6px; }
.table-wrap::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

.data-table.table-compact th,
.data-table.table-compact td {
    padding: 0.4375rem 0.75rem;
    font-size: 12px;
}

.data-table.table-compact th {
    font-size: 10px;
}

.col-filter-row th {
    padding: 0.28rem 0.4rem;
    background: var(--surface-muted);
    font-weight: 400;
    vertical-align: middle;
}

.col-filter-input,
.col-filter-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 11px;
    line-height: 1.3;
    padding: 0.28rem 0.4rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
}

.col-filter-input:focus,
.col-filter-select:focus {
    outline: 2px solid rgba(37, 99, 235, 0.35);
    outline-offset: 0;
}

.page-actions .inline-form {
    display: inline;
}

.col-num { width: 48px; text-align: center; }
.col-kod { width: 90px; }
.col-ip { min-width: 120px; max-width: 140px; }
.col-actions { width: 1%; white-space: nowrap; }

.cell-stack {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.3;
}

.cell-stack small {
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 1200px) {
    .col-hide-lg { display: none; }
}

@media (max-width: 992px) {
    .col-hide-md { display: none; }
}

@media (max-width: 560px) {
    .col-hide-sm { display: none !important; }
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    padding: 0.5625rem 1.125rem;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.data-table th:hover { color: var(--text-secondary); }

.data-table td {
    padding: 0.625rem 1.125rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
}

.data-table tbody tr:last-child td { border-bottom: none; }

.data-table tbody tr:hover td { background: var(--surface-muted); }

.data-table.compact th,
.data-table.compact td {
    padding: 0.5rem 0.875rem;
}

.row-warning td { background: #fafafa; }

.row-warning td:nth-child(5) { color: var(--text-secondary); font-style: italic; }

.empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2.5rem 1rem !important;
    font-size: 13px;
}

.truncate {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adres-cell {
    max-width: 260px;
    white-space: normal;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
}

code {
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 11px;
    padding: 0.1rem 0.35rem;
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 4px;
    color: var(--text);
}

.id-badge {
    display: inline-block;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 0.1rem 0.375rem;
    background: var(--btn-solid-bg);
    color: var(--btn-solid-text);
    border-radius: 4px;
}

.muted { color: var(--text-muted); font-size: 12px; }
.warn { color: var(--text-secondary); font-style: italic; }

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 0.125rem 0.4375rem;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--text-secondary);
}

.badge-on {
    background: #16a34a;
    color: #ffffff;
    border-color: #15803d;
}

.badge-off {
    background: #dc2626;
    color: #ffffff;
    border-color: #b91c1c;
}

.badge-neutral {
    background: var(--surface-muted);
    color: var(--text-secondary);
}

/* legacy badge names */
.badge-success { background: #16a34a; color: #ffffff; border-color: #15803d; }
.badge-danger { background: #dc2626; color: #ffffff; border-color: #b91c1c; }
.badge-warning { background: var(--surface-muted); color: var(--text); border-color: var(--border-strong); }
.badge-info, .badge-purple, .badge-muted { background: var(--surface-muted); color: var(--text-secondary); }

/* Port durumu — oteller / senkron tablolari */
.port-durumu-col {
    min-width: 5.5rem;
}

.port-durumu-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.port-durumu-cell--inline {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.4rem;
    white-space: nowrap;
}

.port-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.15;
    white-space: nowrap;
    text-transform: uppercase;
}

.port-badge--acik {
    background: #16a34a !important;
    color: #ffffff !important;
    border: 1px solid #15803d !important;
    box-shadow: 0 1px 2px rgba(22, 163, 74, 0.35);
}

.port-badge--kapali {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 1px solid #b91c1c !important;
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.35);
}

.port-badge--bilinmiyor {
    background: #64748b !important;
    color: #ffffff !important;
    border: 1px solid #475569 !important;
}

.sbxpc-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.sbxpc-badge--bagli {
    background: #0f766e;
    color: #fff;
    border: 1px solid #0d9488;
}

.sbxpc-badge--hata {
    background: #9f1239;
    color: #fff;
    border: 1px solid #e11d48;
}

.sbxpc-badge--bilinmiyor {
    background: #64748b;
    color: #fff;
    border: 1px solid #475569;
}

.port-ms {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    background: #facc15;
    color: #713f12;
    border: 1px solid #eab308;
}

[data-theme="dark"] .port-badge--acik {
    background: #15803d !important;
    border-color: #22c55e !important;
}

[data-theme="dark"] .port-badge--kapali {
    background: #b91c1c !important;
    border-color: #ef4444 !important;
}

[data-theme="dark"] .port-ms {
    background: #ca8a04;
    color: #fef9c3;
    border-color: #eab308;
}

/* Acik / kapali port — satir vurgusu */
.row-port-acik td {
    background: #f0fdf4;
}

.row-port-acik:hover td {
    background: #dcfce7;
}

.row-port-kapali td {
    background: #fef2f2;
}

.row-port-kapali:hover td {
    background: #fee2e2;
}

.row-port-kapali .port-durumu-col--kapali {
    background: #fecaca;
    box-shadow: inset 3px 0 0 #dc2626;
}

.row-port-acik .port-durumu-col--acik {
    background: #bbf7d0;
    box-shadow: inset 3px 0 0 #16a34a;
}

[data-theme="dark"] .row-port-acik td {
    background: rgba(22, 101, 52, 0.18);
}

[data-theme="dark"] .row-port-acik:hover td {
    background: rgba(22, 101, 52, 0.28);
}

[data-theme="dark"] .row-port-acik .port-durumu-col--acik {
    background: rgba(22, 163, 74, 0.28);
    box-shadow: inset 3px 0 0 #22c55e;
}

[data-theme="dark"] .row-port-kapali td {
    background: rgba(127, 29, 29, 0.22);
}

[data-theme="dark"] .row-port-kapali:hover td {
    background: rgba(127, 29, 29, 0.32);
}

[data-theme="dark"] .row-port-kapali .port-durumu-col--kapali {
    background: rgba(185, 28, 28, 0.35);
    box-shadow: inset 3px 0 0 #ef4444;
}

/* Kayıtlar boş durum */
.kayit-bos-uyari {
    margin: 0 1.125rem 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    background: #fffbeb;
    font-size: 13px;
    line-height: 1.5;
}

.kayit-bos-uyari ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.kayit-bos-uyari li + li {
    margin-top: 0.35rem;
}

.kayit-bos-meta {
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid #fde68a;
    font-size: 12px;
}

[data-theme="dark"] .kayit-bos-uyari {
    background: #422006;
    border-color: #b45309;
    color: #fef3c7;
}

[data-theme="dark"] .kayit-bos-meta {
    border-top-color: #92400e;
}

.kayit-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    margin: 0 1.125rem 0.75rem;
    font-size: 13px;
}

.kayit-breadcrumb .sep {
    color: var(--text-muted);
}

.kayit-breadcrumb .current {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.kisi-ozet {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin: 0 1.125rem 0.75rem;
    align-items: baseline;
}

.saat-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.saat-chip {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: var(--surface-muted, #f1f5f9);
    font-variant-numeric: tabular-nums;
    font-size: 12.5px;
    font-weight: 600;
}

.saat-chip--in {
    background: #dcfce7;
    color: #166534;
}

.saat-chip--out {
    background: #fee2e2;
    color: #991b1b;
}

[data-theme="dark"] .saat-chip {
    background: #1e293b;
}

[data-theme="dark"] .saat-chip--in {
    background: #14532d;
    color: #bbf7d0;
}

[data-theme="dark"] .saat-chip--out {
    background: #7f1d1d;
    color: #fecaca;
}

.kayit-gun-saat td {
    vertical-align: middle;
}

.kayit-duz-liste .saat-chip-row {
    flex-wrap: wrap;
    gap: 0.28rem;
}

.kayit-duz-liste .kisi-ad-link {
    font-weight: 600;
    text-decoration: none;
}

.kayit-duz-liste .kisi-ad-link:hover {
    text-decoration: underline;
}

.kayit-sure-ozet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.65rem;
    margin: 0.35rem 0 0.85rem;
}

.kayit-ozet-kart {
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(165deg, rgba(241, 245, 249, 0.9), rgba(255, 255, 255, 0.98));
    min-width: 0;
}

.kayit-ozet-kart--toplam {
    border-color: rgba(15, 118, 110, 0.28);
    background: linear-gradient(165deg, rgba(204, 251, 241, 0.45), rgba(255, 255, 255, 0.98));
}

.kayit-sure-ozet .lbl {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    margin-bottom: 0.2rem;
}

.kayit-sure-ozet strong {
    display: block;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
}

.kayit-sure-ozet .hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 10px;
    line-height: 1.35;
    color: var(--text-muted, #94a3b8);
}

.kayit-sure-toplam {
    color: #0f766e;
}

.kayit-sure-eksik {
    color: #b45309;
}

.kayit-sure-hucre {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.kayit-vardiya-not {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: normal;
    line-height: 1.3;
}

.kayit-sure-hucre--ok {
    font-weight: 650;
    color: #0f766e;
}

.kayit-sure-hucre--eksik {
    color: #b45309;
}

.kayit-sure-footer td {
    border-top: 2px solid var(--border);
    background: rgba(15, 23, 42, 0.03);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.inline-form {
    display: inline;
    margin: 0;
}

.link-btn {
    border: 0;
    background: none;
    padding: 0;
    color: var(--accent, #2563eb);
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.link-btn:hover {
    opacity: 0.85;
}

.kisi-ozet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin: 0 1.125rem 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
    font-size: 13px;
}

.kisi-ozet .id-badge {
    margin-right: 0.35rem;
}

.row-clickable td {
    cursor: default;
}

.data-table .col-actions {
    width: 96px;
    text-align: right;
}

.sync-otel-panel {
    margin: 0 0 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}

.sync-otel-head {
    padding: 0.75rem 1.125rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-muted);
}

.sync-otel-head h3 {
    margin: 0 0 0.25rem;
    font-size: 14px;
}

.sync-otel-head p {
    margin: 0;
    font-size: 12px;
}

.sync-otel-table .col-actions {
    width: 96px;
    text-align: right;
}

.sync-ozet-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    padding: 0.625rem 1.125rem;
    font-size: 12px;
    background: var(--surface-muted);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.sync-ozet-bar--top {
    margin: 0 0 0.75rem;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.sync-ozet-item--ok { color: #15803d; font-weight: 600; }
.sync-ozet-item--warn { color: #b45309; font-weight: 600; }
.sync-ozet-item--err { color: #b91c1c; font-weight: 600; }
.sync-ozet-item--run { color: #2563eb; font-weight: 600; }

a.sync-ozet-link {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.28rem 0.55rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    font-size: 12px;
    line-height: 1.2;
    transition: background 0.15s ease, border-color 0.15s ease;
}

a.sync-ozet-link:hover {
    background: var(--surface);
    border-color: var(--border);
}

a.sync-ozet-link.is-active {
    background: var(--surface);
    border-color: currentColor;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

a.sync-ozet-link.sync-ozet-item--ok.is-active {
    background: rgba(21, 128, 61, 0.1);
}

a.sync-ozet-link.sync-ozet-item--warn.is-active {
    background: rgba(180, 83, 9, 0.1);
}

a.sync-ozet-link.sync-ozet-item--err.is-active {
    background: rgba(185, 28, 28, 0.1);
}

a.sync-ozet-link.sync-ozet-item--run.is-active {
    background: rgba(37, 99, 235, 0.1);
}

.sync-ozet-limit {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

a.sync-ozet-limit-link {
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid transparent;
    font-weight: 600;
}

a.sync-ozet-limit-link:hover {
    color: var(--text);
    border-color: var(--border);
    background: var(--surface);
}

a.sync-ozet-limit-link.is-active {
    color: var(--accent);
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.08);
}

.text-ok { color: #15803d; font-weight: 600; }
.text-warn { color: #b45309; font-weight: 600; }

.sync-rozet {
    display: inline-block;
    padding: 0.18rem 0.5rem;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.sync-rozet--basarili { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.sync-rozet--uyari { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.sync-rozet--hata { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.sync-rozet--devam { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.sync-rozet--notr { background: var(--surface-muted); color: var(--text-secondary); border: 1px solid var(--border); }

[data-theme="dark"] .sync-rozet--basarili { background: rgba(22, 101, 52, 0.25); color: #86efac; }
[data-theme="dark"] .sync-rozet--uyari { background: rgba(133, 77, 14, 0.25); color: #fde047; }
[data-theme="dark"] .sync-rozet--hata { background: rgba(153, 27, 27, 0.25); color: #fca5a5; }
[data-theme="dark"] .sync-rozet--devam { background: rgba(30, 64, 175, 0.25); color: #93c5fd; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    height: 34px;
    padding: 0 0.875rem;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
    white-space: nowrap;
}

.btn-dark,
.btn-primary {
    background: var(--btn-solid-bg);
    color: var(--btn-solid-text);
    border-color: var(--btn-solid-bg);
}

.btn-dark:hover,
.btn-primary:hover {
    opacity: 0.88;
}

.btn-outline,
.btn-ghost,
.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-outline:hover,
.btn-ghost:hover,
.btn-secondary:hover {
    background: var(--surface-muted);
    border-color: var(--text-muted);
}

.btn-danger {
    background: var(--surface);
    color: #b42318;
    border-color: #fecdca;
}

.btn-danger:hover {
    background: #fef3f2;
    border-color: #f97066;
    color: #912018;
}

[data-theme="dark"] .btn-danger {
    color: #fda29b;
    border-color: #7a271a;
}

[data-theme="dark"] .btn-danger:hover {
    background: #55160c;
    border-color: #b42318;
}

.inline-form {
    display: inline;
    margin: 0;
}

.col-actions .inline-form + .btn,
.col-actions .btn + .inline-form {
    margin-left: 0.25rem;
}

.btn-sm { height: 30px; padding: 0 0.75rem; font-size: 12px; }
.btn-xs { height: 26px; padding: 0 0.5rem; font-size: 11px; }
.actions { white-space: nowrap; }

/* ── Pagination ── */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.75rem 1.125rem;
    border-top: 1px solid var(--border);
    background: var(--surface-muted);
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 0.375rem;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.page-link:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.page-link.active {
    background: var(--btn-solid-bg);
    color: var(--btn-solid-text);
    border-color: var(--btn-solid-bg);
}

/* ── Alerts ── */
.alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1.1rem;
    font-size: 13px;
    line-height: 1.45;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-weight: 500;
}

.alert-success {
    background: #ecfdf5;
    border-color: #059669;
    color: #065f46;
}

.alert-danger {
    background: #fef2f2;
    border-color: #dc2626;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: #d97706;
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1e3a8a;
}

/* Port kontrol ozet seridi (Oteller) */
.port-check-banner {
    margin-bottom: 1rem;
    padding: 0.9rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-muted);
}

.port-check-banner-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text);
}

.port-check-banner-detail {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.port-check-banner--ok {
    background: #ecfdf5;
    border-color: #059669;
}

.port-check-banner--ok .port-check-banner-title {
    color: #065f46;
}

.port-check-banner--cache {
    background: #eff6ff;
    border-color: #2563eb;
}

.port-check-banner--cache .port-check-banner-title {
    color: #1e3a8a;
}

.port-check-banner--err {
    background: #fef2f2;
    border-color: #dc2626;
}

.cihaz-saat {
    display: block;
    margin-top: 0.15rem;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.35;
}

.cihaz-saat-uyari {
    color: #b45309;
    font-weight: 600;
}

.cihaz-saat-kritik {
    color: #b91c1c;
}

.cihaz-saat-ok {
    color: #047857;
    font-weight: 500;
}

.clock-skew-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clock-skew-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.clock-skew-list li:last-child {
    border-bottom: none;
}

.clock-skew-meta {
    color: var(--text-secondary);
    font-size: 12px;
}

.clock-skew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
    margin-top: 0.35rem;
}

.clock-skew-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.95rem 1.05rem;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.98)),
        var(--surface, #fff);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    border-left: 3px solid #f59e0b;
}

.clock-skew-card--kritik {
    border-left-color: #dc2626;
    background:
        linear-gradient(165deg, rgba(254, 242, 242, 0.55), rgba(255, 255, 255, 0.98)),
        var(--surface, #fff);
}

.clock-skew-card--uyari {
    border-left-color: #d97706;
}

.clock-skew-card--lock {
    border-left-color: #7c3aed;
    background:
        linear-gradient(165deg, rgba(245, 243, 255, 0.7), rgba(255, 255, 255, 0.98)),
        var(--surface, #fff);
}

.clock-skew-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.clock-skew-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--text, #0f172a);
    line-height: 1.25;
}

.clock-skew-card__kod {
    display: inline-block;
    margin-top: 0.2rem;
    font-size: 11px;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-secondary, #64748b);
}

.clock-skew-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clock-skew-badge--uyari {
    color: #92400e;
    background: #fef3c7;
}

.clock-skew-badge--kritik {
    color: #991b1b;
    background: #fee2e2;
}

.clock-skew-badge--lock {
    color: #5b21b6;
    background: #ede9fe;
}

.clock-skew-card__meta {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    font-size: 12.5px;
}

.clock-skew-card__meta > div {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.4rem;
    align-items: baseline;
}

.clock-skew-card__meta dt {
    margin: 0;
    color: var(--text-secondary, #64748b);
    font-weight: 500;
}

.clock-skew-card__meta dd {
    margin: 0;
    color: var(--text, #0f172a);
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

.clock-skew-card__hint {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.4;
    color: #6d28d9;
    opacity: 0.9;
}

/* ── Dashboard otel ID tablosu ── */
.id-otel-table {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
}

.id-otel-table th:nth-child(1),
.id-otel-table td:nth-child(1) { width: 28%; }
.id-otel-table th.col-num,
.id-otel-table td.col-num { width: 4.5rem; text-align: center; }
.id-otel-table th.col-actions,
.id-otel-table td.col-actions { width: 7.5rem; white-space: nowrap; }

.id-otel-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    font-size: 13px;
}

.id-otel-table .mono {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
}

.id-otel-table .tabular {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.id-otel-table tbody tr.id-otel-row--eksik {
    background: color-mix(in srgb, #fef2f2 55%, transparent);
}
.id-otel-table tbody tr.id-otel-row--bekliyor {
    background: color-mix(in srgb, #fffbeb 45%, transparent);
}
.id-otel-table tbody tr.id-otel-row--tam td:first-child {
    box-shadow: inset 3px 0 0 #059669;
}
.id-otel-table tbody tr.id-otel-row--bekliyor td:first-child {
    box-shadow: inset 3px 0 0 #d97706;
}
.id-otel-table tbody tr.id-otel-row--eksik td:first-child {
    box-shadow: inset 3px 0 0 #dc2626;
}

[data-theme="dark"] .id-otel-table tbody tr.id-otel-row--eksik {
    background: rgba(185, 28, 28, 0.12);
}
[data-theme="dark"] .id-otel-table tbody tr.id-otel-row--bekliyor {
    background: rgba(180, 83, 9, 0.12);
}

.id-pill {
    display: inline-block;
    font-size: 11px;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
    white-space: nowrap;
}

.id-pill--isimli {
    background: #ecfdf5;
    color: #047857;
}

.id-pill--isimsiz {
    background: #fffbeb;
    color: #b45309;
}

.id-pill--eksik {
    background: #fef2f2;
    color: #b91c1c;
}

[data-theme="dark"] .id-pill--isimli {
    background: rgba(4, 120, 87, 0.2);
    color: #6ee7b7;
}

[data-theme="dark"] .id-pill--isimsiz {
    background: rgba(180, 83, 9, 0.2);
    color: #fcd34d;
}

[data-theme="dark"] .id-pill--eksik {
    background: rgba(185, 28, 28, 0.25);
    color: #fca5a5;
}

.engoper-import {
    display: inline-block;
    position: relative;
}
.engoper-import > summary {
    list-style: none;
    cursor: pointer;
}
.engoper-import > summary::-webkit-details-marker { display: none; }
.engoper-import__form {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 40;
    min-width: 280px;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface, #fff);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

/* ── Modal ── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal[hidden] { display: none !important; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.45);
}

.modal-box {
    position: relative;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.modal-box.modal-wide { width: min(640px, 100%); }

.modal-box h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.modal-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.modal-head-row h3 {
    margin: 0;
}

.modal-lead {
    margin: 0 0 0.85rem;
    font-size: 12.5px;
    line-height: 1.45;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-grid label.full { grid-column: 1 / -1; }

.form-grid label.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.input-password-wrap {
    display: flex;
    align-items: stretch;
    gap: 0.375rem;
}

.input-password-wrap input {
    flex: 1;
    min-width: 0;
}

.btn-password-toggle {
    flex-shrink: 0;
    padding: 0 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 6px);
    background: var(--surface-2, #f4f4f5);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-password-toggle:hover {
    background: var(--surface-3, #e4e4e7);
    color: var(--text);
}

.btn-password-toggle[aria-pressed="true"] {
    background: var(--primary-soft, #dbeafe);
    border-color: var(--primary, #2563eb);
    color: var(--primary, #2563eb);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.125rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.hint {
    margin-top: 0.5rem;
    font-size: 12px;
    color: var(--text-muted);
}

#bolge_adres_onizleme:focus { cursor: default; box-shadow: none; border-color: var(--border); }

/* removed duplicate form-panel/info-box blocks below */

/* ── Responsive ── */
@media (max-width: 1024px) {
    :root { --page-px: 0; }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1400;
        width: min(288px, 86vw);
        height: 100dvh;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        box-shadow: none;
    }

    body.nav-open .sidebar {
        transform: translateX(0);
        box-shadow: 12px 0 40px rgba(15, 23, 42, 0.22);
    }

    .sidebar-close { display: inline-flex; align-items: center; justify-content: center; }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1350;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(2px);
        border: 0;
        padding: 0;
        margin: 0;
        cursor: pointer;
    }

    .main-wrap {
        margin-left: 0;
        width: 100%;
    }

    .page-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 50;
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0.45rem 0.6rem;
        min-height: var(--header-h);
    }

    .page-header-main {
        flex: 1 1 auto;
        min-width: 0;
        gap: 0.5rem;
    }

    .page-header-actions {
        flex: 0 0 auto;
        margin-left: auto;
        gap: 0.35rem;
    }

    .header-clock {
        display: none;
    }

    .page-title {
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: min(52vw, 14rem);
    }

    .page-header-title-row {
        flex-wrap: nowrap;
        gap: 0.35rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.3rem;
    }

    .stats-grid--3,
    .stats-grid--4 {
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    }

    .panel {
        border-radius: 0;
        margin-bottom: 0.5rem;
        border-left: 0;
        border-right: 0;
    }

    .panel-head {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.65rem 0.75rem;
    }

    .panel-head-actions {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .panel-note {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .page-actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .filter-panel {
        padding: 0.75rem;
    }

    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-field-sm {
        max-width: none;
    }

    .filter-actions {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .table-toolbar {
        padding: 0.65rem 0.75rem;
    }

    .search-box,
    .toolbar-inner,
    .filters {
        grid-template-columns: 1fr;
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 480px;
    }

    .id-otel-table,
    .dash-son-giris .data-table.compact {
        min-width: 0;
    }

    .id-otel-table {
        min-width: 0;
        font-size: 12px;
    }

    .id-otel-table th,
    .id-otel-table td {
        padding: 0.4rem 0.45rem;
    }

    .id-otel-table th.col-actions,
    .id-otel-table td.col-actions {
        width: 5.5rem;
    }

    .id-otel-table .col-actions .btn {
        padding: 0.2rem 0.4rem;
        font-size: 11px;
    }

    .col-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: flex-end;
    }

    .form-grid { grid-template-columns: 1fr; }

    .input-search,
    .filters select,
    .filters input { width: 100%; min-width: 0; }

    .dash-son-giris .table-wrap--scroll,
    .dash-otel-id .table-wrap--scroll {
        max-height: min(55vh, 420px);
    }

    .sync-panel {
        right: 0.5rem;
        bottom: 0.5rem;
        width: calc(100vw - 1rem);
    }

    .engoper-import__form {
        position: static;
        box-shadow: none;
        margin-top: 0.5rem;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .panel-head {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.4rem 0.6rem;
        padding: 0.7rem 0.8rem;
    }

    .panel-head h2 {
        flex: 1 1 12rem;
        min-width: 0;
        line-height: 1.3;
        white-space: normal;
    }

    .panel-head-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .panel-head .page-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .panel-head > .btn,
    .panel-head-actions .btn,
    .panel-head-actions .link,
    .panel-head .page-actions .btn {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }

    .table-wrap,
    .table-wrap--scroll {
        overflow-x: visible;
        -webkit-overflow-scrolling: auto;
    }

    .data-table,
    .data-table.table-compact,
    .data-table.compact,
    .id-otel-table,
    .dash-son-giris .data-table.compact {
        min-width: 0 !important;
        width: 100%;
    }

    .data-table--cards {
        display: block;
    }

    .data-table--cards thead {
        display: block;
    }

    .data-table--cards thead tr:not(.col-filter-row) {
        display: none;
    }

    .data-table--cards thead tr.col-filter-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
        padding: 0.55rem 0.75rem;
        background: var(--surface-muted);
        border-bottom: 1px solid var(--border);
    }

    .data-table--cards thead tr.col-filter-row th {
        display: block;
        width: auto !important;
        min-width: 0;
        padding: 0;
        background: transparent;
        border: 0;
        white-space: normal;
        cursor: default;
    }

    .data-table--cards thead tr.col-filter-row th:empty {
        display: none;
    }

    .data-table--cards tbody {
        display: block;
    }

    .data-table--cards tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem 0.75rem;
        padding: 0.8rem 0.85rem;
        border-bottom: 1px solid var(--border);
        background: var(--surface-solid);
    }

    .data-table--cards tbody tr[hidden] {
        display: none !important;
    }

    .data-table--cards tbody tr:hover td {
        background: transparent;
    }

    .data-table--cards tbody td {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.12rem;
        padding: 0 !important;
        border: none !important;
        min-width: 0;
        width: auto !important;
        max-width: none !important;
        white-space: normal;
    }

    .data-table--cards tbody td::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-muted);
        line-height: 1.2;
    }

    .data-table--cards tbody td:not([data-label])::before,
    .data-table--cards tbody td[data-label=""]::before {
        content: none;
    }

    .data-table--cards tbody td:has(.cell-stack),
    .data-table--cards tbody td:has(.id-otel-name) {
        grid-column: 1 / -1;
    }

    .data-table--cards tbody td.col-actions,
    .data-table--cards tbody td:has(.btn) {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.4rem;
        padding-top: 0.25rem !important;
        justify-content: flex-start;
    }

    .data-table--cards tbody td.empty {
        grid-column: 1 / -1;
        text-align: left;
        padding: 1.25rem 0 !important;
    }

    .data-table--cards .col-hide-md,
    .data-table--cards .col-hide-sm,
    .data-table--cards .col-hide-lg {
        display: flex !important;
    }

    .data-table--cards .btn-xs,
    .data-table--cards .btn-sm {
        min-height: 36px;
        padding: 0.35rem 0.7rem;
    }

    .dash-son-giris .table-wrap--scroll,
    .dash-otel-id .table-wrap--scroll {
        max-height: none;
    }

    .hata-cell,
    .adres-cell,
    .truncate {
        max-width: none;
        white-space: normal;
    }

    .sync-ozet-bar {
        flex-wrap: wrap;
        gap: 0.35rem 0.5rem;
        padding: 0.55rem 0.75rem;
    }

    .sync-otel-head {
        flex-wrap: wrap;
        gap: 0.35rem;
        padding: 0.65rem 0.75rem;
    }

    .sync-otel-panel {
        margin: 0 0 0.75rem;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .sync-otel-table.data-table--cards tbody {
        display: flex !important;
        flex-direction: column;
        gap: 0.55rem;
        padding: 0.55rem 0.6rem 0.75rem;
        background: var(--surface-muted);
    }

    .sync-otel-table.data-table--cards tbody tr {
        display: grid !important;
        grid-template-columns: 2.15rem minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "id  otel otel"
            "ip  ip   tcp"
            "sbx sbx  son"
            "yeni yeni act";
        gap: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: var(--shadow-sm);
        background: var(--surface-solid);
    }

    .sync-otel-table.data-table--cards tbody tr.row-port-acik {
        background: #f0fdf4;
        border-color: #bbf7d0;
    }

    .sync-otel-table.data-table--cards tbody tr.row-port-kapali {
        background: #fef2f2;
        border-color: #fecaca;
    }

    .sync-otel-table.data-table--cards tbody td {
        display: flex !important;
        min-width: 0;
        grid-column: auto !important;
    }

    .sync-otel-table.data-table--cards tbody td:has(.cell-stack) {
        grid-column: auto !important;
    }

    .sync-otel-table.data-table--cards .sync-card-id {
        grid-area: id !important;
        align-self: stretch;
        justify-self: stretch;
        width: auto;
        height: auto;
        margin: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        background: transparent;
        font-size: 11px;
        font-weight: 700;
        color: var(--text-secondary);
        padding: 0.5rem 0.15rem 0.5rem 0.45rem !important;
    }

    .sync-otel-table.data-table--cards .sync-card-id::before,
    .sync-otel-table.data-table--cards .sync-card-otel::before,
    .sync-otel-table.data-table--cards .sync-card-act::before {
        content: none !important;
    }

    .sync-otel-table.data-table--cards .sync-card-otel {
        grid-area: otel !important;
        min-width: 0;
        justify-content: center;
        padding: 0.55rem 0.75rem 0.55rem 0.35rem !important;
        border-bottom: 1px solid var(--border);
    }

    .sync-otel-table.data-table--cards .sync-card-otel strong {
        font-size: 0.9rem;
        line-height: 1.25;
    }

    .sync-otel-table.data-table--cards .sync-card-ip { grid-area: ip !important; }
    .sync-otel-table.data-table--cards .sync-card-tcp { grid-area: tcp !important; }
    .sync-otel-table.data-table--cards .sync-card-sbx { grid-area: sbx !important; }
    .sync-otel-table.data-table--cards .sync-card-son { grid-area: son !important; }
    .sync-otel-table.data-table--cards .sync-card-yeni { grid-area: yeni !important; }
    .sync-otel-table.data-table--cards .sync-card-act { grid-area: act !important; }

    .sync-otel-table.data-table--cards .sync-card-ip,
    .sync-otel-table.data-table--cards .sync-card-tcp,
    .sync-otel-table.data-table--cards .sync-card-sbx,
    .sync-otel-table.data-table--cards .sync-card-son,
    .sync-otel-table.data-table--cards .sync-card-yeni {
        padding: 0.4rem 0.65rem 0.45rem !important;
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        background: transparent;
        box-shadow: none !important;
    }

    .sync-otel-table.data-table--cards .sync-card-tcp,
    .sync-otel-table.data-table--cards .sync-card-son {
        border-right: 0;
    }

    .sync-otel-table.data-table--cards .sync-card-yeni,
    .sync-otel-table.data-table--cards .sync-card-act {
        border-bottom: 0;
    }

    .sync-otel-table.data-table--cards .sync-card-ip code {
        font-size: 11px;
        word-break: break-all;
    }

    .sync-otel-table.data-table--cards .sync-card-tcp,
    .sync-otel-table.data-table--cards .sync-card-sbx,
    .sync-otel-table.data-table--cards .sync-card-son {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.25rem;
        align-content: flex-start;
    }

    .sync-otel-table.data-table--cards .sync-card-tcp::before,
    .sync-otel-table.data-table--cards .sync-card-sbx::before,
    .sync-otel-table.data-table--cards .sync-card-son::before {
        width: 100%;
        margin-bottom: 0.1rem;
    }

    .sync-otel-table.data-table--cards .sync-card-act {
        display: flex !important;
        align-items: stretch;
        padding: 0.4rem 0.5rem 0.45rem !important;
        border-right: 0;
        width: auto !important;
    }

    .sync-otel-table.data-table--cards .sync-card-act .btn {
        width: 100%;
        justify-content: center;
        min-height: 38px;
        font-size: 13px;
        font-weight: 600;
        padding: 0.35rem 0.5rem;
    }

    .sync-otel-table.data-table--cards thead tr.col-filter-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding: 0.55rem 0.6rem;
    }

    [data-theme="dark"] .sync-otel-table.data-table--cards tbody tr.row-port-acik {
        background: rgba(22, 101, 52, 0.22);
        border-color: rgba(34, 197, 94, 0.35);
    }

    [data-theme="dark"] .sync-otel-table.data-table--cards tbody tr.row-port-kapali {
        background: rgba(127, 29, 29, 0.28);
        border-color: rgba(248, 113, 113, 0.35);
    }

    .dash-otel-id .table-wrap--scroll {
        max-height: none;
        overflow: visible;
    }

    .id-otel-table.data-table--cards tbody {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        padding: 0.65rem 0.7rem 0.85rem;
        background: var(--surface-muted);
    }

    .id-otel-table.data-table--cards tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas:
            "otel otel otel"
            "ip   ip   port"
            "ids  named unnamed"
            "stat stat stat"
            "act  act  act";
        gap: 0.45rem 0.55rem;
        margin: 0;
        padding: 0.8rem 0.85rem 0.9rem;
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: var(--shadow-sm);
        background: var(--surface-solid);
    }

    .id-otel-table.data-table--cards tbody tr.id-otel-row--eksik {
        background: #fef2f2;
        border-color: #fecaca;
        box-shadow: inset 3px 0 0 #dc2626;
    }

    .id-otel-table.data-table--cards tbody tr.id-otel-row--bekliyor {
        background: #fffbeb;
        border-color: #fde68a;
        box-shadow: inset 3px 0 0 #d97706;
    }

    .id-otel-table.data-table--cards tbody tr.id-otel-row--tam {
        box-shadow: inset 3px 0 0 #059669;
    }

    .id-otel-table.data-table--cards tbody td:first-child {
        box-shadow: none;
    }

    .id-otel-table.data-table--cards tbody td:has(.cell-stack) {
        grid-column: auto;
    }

    .id-otel-table.data-table--cards .dash-card-otel::before {
        content: none;
    }

    .id-otel-table.data-table--cards .dash-card-otel {
        grid-area: otel;
        min-width: 0;
    }

    .id-otel-table.data-table--cards .dash-card-otel strong {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .id-otel-table.data-table--cards .dash-card-ip {
        grid-area: ip;
        font-size: 12px;
        word-break: break-all;
    }

    .id-otel-table.data-table--cards .dash-card-port {
        grid-area: port;
        box-shadow: none !important;
        background: transparent !important;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.3rem;
    }

    .id-otel-table.data-table--cards .dash-card-ids { grid-area: ids; }
    .id-otel-table.data-table--cards .dash-card-isimli { grid-area: named; }
    .id-otel-table.data-table--cards .dash-card-isimsiz { grid-area: unnamed; }
    .id-otel-table.data-table--cards .dash-card-durum { grid-area: stat; }

    .id-otel-table.data-table--cards .dash-card-act {
        grid-area: act;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
        width: 100%;
        padding-top: 0.15rem !important;
    }

    .id-otel-table.data-table--cards .dash-card-act .btn {
        width: 100%;
        justify-content: center;
        min-height: 42px;
        font-size: 13px;
        font-weight: 600;
    }

    [data-theme="dark"] .id-otel-table.data-table--cards tbody tr.id-otel-row--eksik {
        background: rgba(127, 29, 29, 0.28);
        border-color: rgba(248, 113, 113, 0.35);
    }

    [data-theme="dark"] .id-otel-table.data-table--cards tbody tr.id-otel-row--bekliyor {
        background: rgba(180, 83, 9, 0.22);
        border-color: rgba(251, 191, 36, 0.35);
    }

    .personel-table.data-table--cards tbody {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        padding: 0.65rem 0.7rem 0.85rem;
        background: var(--surface-muted);
    }

    .personel-table.data-table--cards tbody tr {
        display: grid;
        grid-template-columns: auto 1fr 1fr;
        grid-template-areas:
            "id  ad   ad"
            "cnt cnt  dur"
            "gunc gunc gunc"
            "act act  act";
        gap: 0.45rem 0.55rem;
        margin: 0;
        padding: 0.8rem 0.85rem 0.9rem;
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: var(--shadow-sm);
        background: var(--surface-solid);
    }

    .personel-table.data-table--cards .per-card-id::before,
    .personel-table.data-table--cards .per-card-ad::before,
    .personel-table.data-table--cards .per-card-act::before {
        content: none;
    }

    .personel-table.data-table--cards .per-card-id {
        grid-area: id;
        align-self: start;
        padding-top: 0.1rem !important;
    }

    .personel-table.data-table--cards .per-card-ad {
        grid-area: ad;
        min-width: 0;
        justify-content: center;
        align-items: flex-start;
    }

    .personel-table.data-table--cards .per-card-ad strong {
        font-size: 0.95rem;
        line-height: 1.3;
        word-break: break-word;
    }

    .personel-table.data-table--cards .per-card-kayit { grid-area: cnt; }
    .personel-table.data-table--cards .per-card-durum {
        grid-area: dur;
        flex-direction: row;
        align-items: center;
        gap: 0.35rem;
    }
    .personel-table.data-table--cards .per-card-gunc { grid-area: gunc; }

    .personel-table.data-table--cards .per-card-act {
        grid-area: act;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
        width: 100%;
        padding-top: 0.15rem !important;
    }

    .personel-table.data-table--cards .per-card-act:not(:has(.inline-form)) {
        grid-template-columns: 1fr;
    }

    .personel-table.data-table--cards .per-card-act .inline-form {
        display: contents;
    }

    .personel-table.data-table--cards .per-card-act .btn {
        width: 100%;
        justify-content: center;
        min-height: 42px;
        font-size: 13px;
        font-weight: 600;
    }

    .kullanici-table.data-table--cards tbody {
        display: flex !important;
        flex-direction: column;
        gap: 0.55rem;
        padding: 0.55rem 0.6rem 0.75rem;
        background: var(--surface-muted);
    }

    .kullanici-table.data-table--cards tbody tr {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "ad    ad"
            "mail  rol"
            "otel  durum"
            "tel   giris"
            "act   act";
        gap: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: var(--shadow-sm);
        background: var(--surface-solid);
    }

    .kullanici-table.data-table--cards tbody td {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        grid-column: auto !important;
        padding: 0.4rem 0.7rem 0.45rem !important;
        border: 0 !important;
        border-right: 1px solid var(--border) !important;
        border-bottom: 1px solid var(--border) !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .kullanici-table.data-table--cards tbody td.empty {
        grid-column: 1 / -1 !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
        padding: 1.1rem 0.9rem !important;
    }

    .kullanici-table.data-table--cards .kul-ad::before,
    .kullanici-table.data-table--cards .kul-act::before {
        content: none !important;
    }

    .kullanici-table.data-table--cards .kul-ad {
        grid-area: ad !important;
        border-right: 0 !important;
        padding: 0.65rem 0.8rem !important;
        font-size: 0.95rem;
        font-weight: 700;
    }

    .kullanici-table.data-table--cards .kul-mail {
        grid-area: mail !important;
        word-break: break-all;
    }
    .kullanici-table.data-table--cards .kul-rol {
        grid-area: rol !important;
        border-right: 0 !important;
    }
    .kullanici-table.data-table--cards .kul-otel { grid-area: otel !important; }
    .kullanici-table.data-table--cards .kul-durum {
        grid-area: durum !important;
        border-right: 0 !important;
    }
    .kullanici-table.data-table--cards .kul-tel { grid-area: tel !important; }
    .kullanici-table.data-table--cards .kul-giris {
        grid-area: giris !important;
        border-right: 0 !important;
    }
    .kullanici-table.data-table--cards .kul-act {
        grid-area: act !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
        padding: 0.45rem 0.55rem !important;
        flex-direction: row;
    }

    .kullanici-table.data-table--cards .kul-act .btn {
        width: 100%;
        justify-content: center;
        min-height: 40px;
        font-size: 13px;
        font-weight: 600;
    }

    .kullanici-table.data-table--cards tbody td:has(.btn) {
        grid-column: auto !important;
    }

    .kayit-duz-liste.data-table--cards {
        display: block;
        border: 0;
    }

    .kayit-duz-liste.data-table--cards tbody {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        padding: 0.65rem 0.7rem 0.35rem;
        background: var(--surface-muted);
    }

    .kayit-duz-liste.data-table--cards tbody tr {
        display: grid;
        grid-template-columns: auto 1fr 1fr;
        grid-template-areas:
            "id    ad    ad"
            "tarih saat  saat"
            "adet  sure  sure";
        gap: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: var(--shadow-sm);
        background: var(--surface-solid);
    }

    .kayit-duz-liste.data-table--cards .kr-id::before,
    .kayit-duz-liste.data-table--cards .kr-ad::before {
        content: none;
    }

    .kayit-duz-liste.data-table--cards .kr-id {
        grid-area: id;
        align-self: center;
        padding: 0.7rem 0.55rem 0.7rem 0.75rem !important;
    }

    .kayit-duz-liste.data-table--cards .kr-ad {
        grid-area: ad;
        min-width: 0;
        justify-content: center;
        padding: 0.7rem 0.85rem 0.7rem 0 !important;
        font-weight: 600;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--border);
    }

    .kayit-duz-liste.data-table--cards .kr-id {
        border-bottom: 1px solid var(--border);
    }

    .kayit-duz-liste.data-table--cards .kr-tarih { grid-area: tarih; }
    .kayit-duz-liste.data-table--cards .kr-saat { grid-area: saat; }
    .kayit-duz-liste.data-table--cards .kr-adet { grid-area: adet; }
    .kayit-duz-liste.data-table--cards .kr-sure { grid-area: sure; }

    .kayit-duz-liste.data-table--cards .kr-tarih,
    .kayit-duz-liste.data-table--cards .kr-saat,
    .kayit-duz-liste.data-table--cards .kr-adet,
    .kayit-duz-liste.data-table--cards .kr-sure {
        padding: 0.5rem 0.7rem 0.55rem !important;
        border-right: 1px solid var(--border);
        background: var(--surface-solid);
    }

    .kayit-duz-liste.data-table--cards .kr-saat,
    .kayit-duz-liste.data-table--cards .kr-sure {
        border-right: 0;
    }

    .kayit-duz-liste.data-table--cards .kr-tarih,
    .kayit-duz-liste.data-table--cards .kr-saat {
        border-bottom: 1px solid var(--border);
    }

    .kayit-duz-liste.data-table--cards .kr-saat .saat-chip-row {
        margin-top: 0.15rem;
    }

    .kayit-duz-liste.data-table--cards tfoot {
        display: block;
        padding: 0 0.7rem 0.75rem;
        background: var(--surface-muted);
    }

    .kayit-duz-liste.data-table--cards tfoot tr {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.75rem 0.9rem;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--surface-solid);
    }

    .kayit-duz-liste.data-table--cards tfoot td {
        display: block;
        padding: 0 !important;
        border: 0 !important;
        width: auto;
    }

    .kayit-duz-liste.data-table--cards tfoot td::before {
        content: none;
    }
}

@media (max-width: 560px) {
    :root { --page-px: 0; }

    .stats-grid,
    .stats-grid--3,
    .stats-grid--4 {
        grid-template-columns: 1fr 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .header-user-chip { display: none; }

    .btn-logout { padding: 0 0.65rem; }

    .page-desc,
    .breadcrumb { display: none; }

    .page-title {
        max-width: min(48vw, 11rem);
        font-size: 1rem;
    }

    .nav-toggle {
        width: 36px;
        height: 36px;
    }

    .id-otel-table th.col-actions,
    .id-otel-table td.col-actions {
        width: 4.75rem;
    }

    .data-table.table-compact th,
    .data-table.table-compact td,
    .data-table.compact th,
    .data-table.compact td {
        padding: 0.4rem 0.5rem;
        font-size: 12px;
    }

    .modal-box {
        width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
        overflow: auto;
    }
}

/* ── Login — zaman kapısı ── */
.login-page {
    --login-ink: #0e1726;
    --login-ink-soft: #1a2740;
    --login-paper: #f3f6f8;
    --login-line: #d5dee8;
    --login-mute: #64748b;
    --login-accent: #0f766e;
    min-height: 100vh;
    margin: 0;
    background: var(--login-paper);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    min-height: 100vh;
}

.login-shell--form-left {
    grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
}

.login-stage {
    position: relative;
    overflow: hidden;
    color: #e8eef5;
    background: var(--login-ink);
    min-height: 100vh;
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-stage-center {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(70vh, 520px);
}

.login-stage-wash {
    position: absolute;
    inset: -20% auto auto -10%;
    width: 70%;
    height: 70%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(20, 184, 166, 0.18), transparent 55%),
        radial-gradient(ellipse at 80% 10%, rgba(56, 104, 160, 0.22), transparent 50%);
    animation: loginWash 14s ease-in-out infinite alternate;
    pointer-events: none;
}

.login-stage-grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(232, 238, 245, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 238, 245, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 85%);
    pointer-events: none;
}

.login-stage-print {
    position: absolute;
    left: clamp(1rem, 5vw, 3rem);
    top: 14%;
    width: min(200px, 34vw);
    color: rgba(232, 238, 245, 0.14);
    pointer-events: none;
}

.login-stage-copy {
    position: relative;
    z-index: 1;
    max-width: 28rem;
}

.login-kicker {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(232, 238, 245, 0.55);
}

.login-stage-title {
    margin: 0 0 1rem;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(2.2rem, 4.5vw, 3.35rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #f8fafc;
}

.login-stage-desc {
    margin: 0 0 1.35rem;
    max-width: 24rem;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.78);
}

.login-stage-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.login-stage-points li {
    position: relative;
    padding-left: 1.15rem;
    font-size: 0.88rem;
    line-height: 1.4;
    color: rgba(226, 232, 240, 0.62);
}

.login-stage-points li strong {
    display: block;
    margin-bottom: 0.12rem;
    font-size: 0.92rem;
    font-weight: 650;
    color: rgba(248, 250, 252, 0.92);
}

.login-stage-points li span {
    display: block;
}

.login-stage-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.85);
}

.login-stage-year {
    position: relative;
    z-index: 1;
    margin: 2rem 0 0;
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.35);
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    background:
        linear-gradient(165deg, #fbfcfd 0%, #eef3f7 55%, #e8eef4 100%);
    order: 0;
}

.login-shell--form-left .login-panel { order: 0; }
.login-shell--form-left .login-stage { order: 1; }

.login-panel-inner {
    width: 100%;
    max-width: 24rem;
    padding: 1.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(213, 222, 232, 0.9);
    border-radius: 18px;
    backdrop-filter: blur(8px);
    animation: loginRise 0.65s ease-out;
}

.login-head {
    margin-bottom: 1.75rem;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.login-brand strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--login-ink);
}

.login-brand span {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.78rem;
    color: var(--login-mute);
}

.login-brand-mark {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--login-ink);
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 700;
}

.login-brand-mark--img {
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--login-line);
}

.login-brand-mark--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-head h1 {
    margin: 0 0 0.4rem;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.7rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--login-ink);
}

.login-head p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--login-mute);
}

.login-alert { margin-bottom: 1.1rem; }

.login-form { margin: 0; }

.login-field {
    display: block;
    margin-bottom: 1rem;
}

.login-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #334155;
}

.login-field input {
    width: 100%;
    height: 48px;
    padding: 0 0.95rem;
    font: inherit;
    font-size: 0.95rem;
    color: var(--login-ink);
    background: #fff;
    border: 1px solid var(--login-line);
    border-radius: 10px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-field input:focus {
    outline: none;
    border-color: var(--login-accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.login-field input::placeholder { color: #94a3b8; }

.login-attempt-warn {
    margin: -0.15rem 0 1rem;
    padding: 0.65rem 0.8rem;
    font-size: 0.78rem;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
}

.login-submit {
    height: 48px;
    margin-top: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    letter-spacing: -0.01em;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.login-submit:active {
    transform: translateY(0);
}

.btn-block { width: 100%; }

.login-blocked {
    padding: 1.25rem 1rem;
    text-align: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
}

.login-blocked p {
    margin: 0 0 0.4rem;
    font-weight: 600;
    color: #991b1b;
}

.login-blocked small {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #b91c1c;
}

.login-foot {
    margin: 1.6rem 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

@keyframes loginRise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loginWash {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-4%, 3%, 0) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .login-stage-wash,
    .login-panel-inner {
        animation: none !important;
    }
}

@media (max-width: 900px) {
    .login-shell,
    .login-shell--form-left {
        grid-template-columns: 1fr;
    }
    .login-shell--form-left .login-stage { order: 0; }
    .login-shell--form-left .login-panel { order: 1; }
    .login-stage {
        min-height: auto;
        padding: 1.75rem 1.35rem 2rem;
        align-items: stretch;
    }
    .login-stage-center {
        min-height: 0;
    }
    .login-stage-print {
        width: 110px;
        top: 1rem;
        left: auto;
        right: 1rem;
        opacity: 0.7;
    }
    .login-stage-title {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
    }
    .login-stage-desc {
        font-size: 0.92rem;
    }
    .login-stage-year { margin-top: 1.4rem; }
    .login-panel {
        padding: 1.75rem 1.25rem 2.5rem;
        min-height: auto;
    }
    .login-panel-inner {
        padding: 1.25rem 1rem;
        background: transparent;
        border: none;
        backdrop-filter: none;
    }
}

.pagination-form { display: inline; }
.pagination-form .page-link {
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── Header user ── */
.header-user {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.header-user-name {
    font-size: 12px;
    font-weight: 600;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user-meta {
    font-size: 10px;
    color: var(--text-muted);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .stats-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ── Port + saat tarama bekleme ekranı ── */
.scan-wait {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
}

.scan-wait[hidden] {
    display: none !important;
}

.scan-wait-card {
    width: min(560px, 100%);
    max-height: min(92vh, 720px);
    overflow: auto;
    background: var(--surface-solid, #fff);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
    padding: 1.35rem 1.25rem 1.15rem;
    text-align: center;
}

.scan-wait-now {
    margin: 0 0 0.35rem;
    font-size: 13px;
    font-weight: 600;
    min-height: 1.2em;
}

.scan-wait-counts {
    margin: 0 0 0.75rem;
    font-size: 12px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.scan-wait-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    text-align: left;
    margin: 0 0 0.85rem;
}

.scan-wait-cols section {
    background: var(--surface-2, #f4f4f5);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    min-height: 120px;
    max-height: 220px;
    overflow: auto;
}

.scan-wait-cols strong {
    display: block;
    font-size: 11px;
    margin-bottom: 0.35rem;
    color: var(--text-secondary);
}

.scan-wait-cols ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
}

.scan-wait-cols li {
    padding: 0.18rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.scan-wait-cols li.is-ok { color: #15803d; }
.scan-wait-cols li.is-fail { color: #b45309; }
.scan-wait-cols li.is-err { color: #b91c1c; }

.scan-wait-done {
    margin-top: 0.35rem;
}

.scan-wait.is-done .scan-wait-pulse {
    animation: none;
    border-color: #16a34a;
    border-top-color: #16a34a;
    background: #16a34a;
}

.scan-wait-pulse {
    width: 42px;
    height: 42px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--accent, #2563eb);
    animation: scan-wait-spin 0.8s linear infinite;
}

@keyframes scan-wait-spin {
    to { transform: rotate(360deg); }
}

.scan-wait-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.scan-wait-sub {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-size: 13px;
}

.scan-wait-steps {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    list-style: none;
    text-align: left;
    background: var(--surface-2, #f4f4f5);
    border-radius: 10px;
    font-size: 13px;
}

.scan-wait-steps li {
    padding: 0.28rem 0 0.28rem 1.4rem;
    position: relative;
    color: var(--text-secondary);
}

.scan-wait-steps li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.scan-wait-steps li.is-active {
    color: var(--text);
    font-weight: 600;
}

.scan-wait-steps li.is-active::before {
    background: var(--accent, #2563eb);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.scan-wait-note {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted, #71717a);
}

body.scan-wait-open {
    overflow: hidden;
}

/* ── Sync fullscreen overlay (blur) ── */
.sync-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.sync-overlay[hidden] {
    display: none !important;
}

.sync-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.sync-overlay-card {
    position: relative;
    z-index: 1;
    width: min(1080px, 96vw);
    max-height: min(92vh, 900px);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.15rem 1.25rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.sync-overlay-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.sync-overlay-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.sync-overlay-brand strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.25;
}

.sync-overlay-sub {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sync-overlay-dot {
    margin-top: 0.35rem;
}

.sync-overlay-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    justify-content: flex-end;
}

.sync-overlay-status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    background: var(--surface-muted);
}

.sync-overlay-status[data-state="running"] {
    color: var(--accent);
    background: rgba(37, 99, 235, 0.1);
}

.sync-overlay-status[data-state="ok"] {
    color: #15803d;
    background: rgba(21, 128, 61, 0.1);
}

.sync-overlay-status[data-state="warn"] {
    color: #b45309;
    background: rgba(180, 83, 9, 0.1);
}

.sync-overlay-status[data-state="error"] {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.1);
}

.sync-overlay-error {
    border: 1px solid rgba(185, 28, 28, 0.35);
    background: rgba(185, 28, 28, 0.08);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
}

.sync-overlay-error-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b91c1c;
    margin-bottom: 0.35rem;
}

.sync-overlay-error-text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.82rem;
    line-height: 1.45;
    font-family: ui-monospace, Consolas, "Courier New", monospace;
    color: #7f1d1d;
    max-height: 12rem;
    overflow: auto;
}

.sync-overlay-now {
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.06);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
}

.sync-overlay-now[hidden] {
    display: none !important;
}

.sync-overlay-now-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.sync-overlay-now-body {
    font-size: 0.92rem;
    line-height: 1.45;
    font-weight: 600;
}

.sync-overlay-now-body small {
    display: block;
    margin-top: 0.25rem;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.sync-overlay-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
}

.sync-overlay-steps li {
    position: relative;
    padding: 0.35rem 0.4rem 0.35rem 1.55rem;
    font-size: 0.68rem;
    line-height: 1.25;
    color: var(--text-muted);
    border-radius: 8px;
    background: var(--surface-muted);
}

.sync-overlay-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    min-height: 220px;
    flex: 1;
    overflow: hidden;
}

.sync-overlay-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-muted);
    overflow: hidden;
}

.sync-overlay-col-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.sync-overlay-col-head strong {
    font-size: 0.82rem;
}

.sync-overlay-col-head span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sync-overlay-col--left .sync-overlay-col-head strong {
    color: var(--accent);
}

.sync-overlay-col--right .sync-overlay-col-head strong {
    color: #15803d;
}

.sync-overlay-col-list {
    list-style: none;
    margin: 0;
    padding: 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow: auto;
    flex: 1;
    min-height: 140px;
    max-height: 42vh;
}

.sync-ov-item {
    padding: 0.55rem 0.65rem;
    border-radius: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    line-height: 1.35;
}

.sync-ov-item.is-active {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: inset 3px 0 0 var(--accent);
}

.sync-ov-item.is-ok {
    border-color: rgba(21, 128, 61, 0.25);
}

.sync-ov-item.is-warn {
    border-color: rgba(180, 83, 9, 0.3);
}

.sync-ov-item.is-error {
    border-color: rgba(185, 28, 28, 0.3);
}

.sync-ov-item strong {
    display: block;
    font-size: 0.84rem;
}

.sync-ov-meta {
    display: block;
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.sync-ov-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    margin-top: 0.35rem;
    font-size: 0.76rem;
    font-weight: 600;
}

.sync-ov-stats .yeni-positive {
    color: #15803d;
}

.sync-ov-stats .yeni-zero {
    color: var(--text-muted);
    font-weight: 500;
}

.sync-ov-badge {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--accent);
}

.sync-ov-empty {
    padding: 1rem 0.75rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.sync-overlay-steps li::before {
    content: "";
    position: absolute;
    left: 0.65rem;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: -0.275rem;
    border-radius: 50%;
    background: #cbd5e1;
}

.sync-overlay-steps li.is-done {
    color: #15803d;
}

.sync-overlay-steps li.is-done::before {
    background: #22c55e;
}

.sync-overlay-steps li.is-active {
    color: var(--accent);
    font-weight: 600;
    background: rgba(37, 99, 235, 0.08);
}

.sync-overlay-steps li.is-active::before {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    animation: sync-pulse 1.2s ease-in-out infinite;
}

.sync-overlay-log {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    overflow: auto;
    flex: 1;
    min-height: 120px;
    max-height: 36vh;
}

.sync-overlay-log .sync-log-item {
    font-size: 0.78rem;
}

.sync-overlay-hint {
    margin: 0;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
}

body.sync-overlay-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .sync-overlay-card {
        max-height: 94vh;
        padding: 0.9rem;
        width: 100%;
    }
    .sync-overlay-head {
        flex-direction: column;
    }
    .sync-overlay-tools {
        width: 100%;
        justify-content: stretch;
    }
    .sync-overlay-tools .btn {
        flex: 1;
    }
    .sync-overlay-steps {
        grid-template-columns: 1fr;
    }
    .sync-overlay-cols {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .sync-overlay-col-list {
        max-height: 28vh;
    }
}

/* ── Sync panel (sag alt) ── */
.sync-panel {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1200;
    width: min(380px, calc(100vw - 2rem));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.sync-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border);
}

.sync-panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
}

.sync-panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: sync-pulse 1.2s ease-in-out infinite;
}

.sync-panel--min .sync-panel-body,
.sync-panel--min .sync-panel-note { display: none; }

.sync-panel-btn--stop {
    color: #b91c1c;
    font-size: 10px;
}

.sync-panel-btn--stop:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

.sync-panel-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.sync-panel-body {
    padding: 0.75rem;
    max-height: 320px;
    overflow: auto;
}

.sync-panel-status {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    background: var(--surface-muted);
}

.sync-panel-status[data-state="running"] {
    color: var(--accent);
    background: rgba(37, 99, 235, 0.08);
}

.sync-panel-status[data-state="ok"] {
    color: #15803d;
    background: rgba(21, 128, 61, 0.08);
}

.sync-panel-status[data-state="warn"] {
    color: #b45309;
    background: rgba(180, 83, 9, 0.08);
}

.sync-panel-status[data-state="error"] {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.08);
}

.sync-panel-log {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sync-log-item {
    font-size: 11px;
    line-height: 1.45;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.sync-log-item--running { border-color: rgba(37, 99, 235, 0.35); }
.sync-log-item--ok { border-color: rgba(21, 128, 61, 0.35); }
.sync-log-item--warn { border-color: rgba(180, 83, 9, 0.35); }
.sync-log-item--error { border-color: rgba(185, 28, 28, 0.35); }

.sync-log-meta {
    display: inline-block;
    margin-left: 0.35rem;
    color: var(--text-muted);
    font-size: 10px;
}

.sync-log-hata {
    margin-top: 0.35rem;
    color: #b45309;
    word-break: break-word;
}

.sync-log-item--error .sync-log-hata { color: #b91c1c; }

.sync-log-table {
    margin-top: 0.4rem;
    max-height: 160px;
    overflow: auto;
}
.sync-log-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}
.sync-log-table th,
.sync-log-table td {
    border: 1px solid #e5e7eb;
    padding: 0.15rem 0.35rem;
    text-align: left;
    white-space: nowrap;
}
.sync-log-table th { background: #f3f4f6; }

.sync-panel-note {
    margin: 0.625rem 0 0;
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
}

@keyframes sync-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

@media (max-width: 768px) {
    .sync-panel {
        right: 0.5rem;
        bottom: 0.5rem;
        width: calc(100vw - 1rem);
    }
}

/* ── Ayarlar (premium) ── */
.ayarlar-page {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: calc(100vh - var(--header-h));
}

.ayarlar-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.85fr);
    gap: 1.25rem;
    align-items: stretch;
    padding: 1.15rem 1.15rem 1.25rem;
    background:
        radial-gradient(ellipse 70% 90% at 0% 0%, rgba(14, 165, 233, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 70% at 100% 20%, rgba(20, 184, 166, 0.1), transparent 50%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-solid) 92%, #e0f2fe) 0%, var(--surface-solid) 100%);
    border-bottom: 1px solid var(--border);
    animation: ayarlarHeroIn 0.45s ease both;
}

[data-theme="dark"] .ayarlar-hero {
    background:
        radial-gradient(ellipse 70% 90% at 0% 0%, rgba(14, 165, 233, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 70% at 100% 20%, rgba(20, 184, 166, 0.12), transparent 50%),
        linear-gradient(180deg, #0b1520 0%, var(--surface-solid) 100%);
}

@keyframes ayarlarHeroIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.ayarlar-kicker {
    margin: 0 0 0.35rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.ayarlar-hero-title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text);
}

.ayarlar-hero-desc {
    margin: 0 0 0.95rem;
    max-width: 38rem;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.ayarlar-hero-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
}

.ayarlar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-solid) 80%, transparent);
    color: var(--text-secondary);
}

.ayarlar-chip code {
    font-size: 11px;
    font-weight: 600;
}

.ayarlar-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.ayarlar-chip.is-ok {
    border-color: color-mix(in srgb, #059669 35%, var(--border));
    color: #047857;
    background: #ecfdf5;
}
.ayarlar-chip.is-ok .ayarlar-chip-dot { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }

.ayarlar-chip.is-warn {
    border-color: color-mix(in srgb, #d97706 35%, var(--border));
    color: #b45309;
    background: #fffbeb;
}
.ayarlar-chip.is-warn .ayarlar-chip-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }

.ayarlar-chip.is-muted .ayarlar-chip-dot { background: #94a3b8; }

[data-theme="dark"] .ayarlar-chip.is-ok {
    background: rgba(4, 120, 87, 0.18);
    color: #6ee7b7;
}
[data-theme="dark"] .ayarlar-chip.is-warn {
    background: rgba(180, 83, 9, 0.18);
    color: #fcd34d;
}

.ayarlar-hero-preview {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    animation: ayarlarPreviewIn 0.55s 0.08s ease both;
}

@keyframes ayarlarPreviewIn {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: none; }
}

.ayarlar-preview-chrome {
    display: flex;
    gap: 5px;
    margin-bottom: 0.15rem;
}
.ayarlar-preview-chrome span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-strong);
}
.ayarlar-preview-chrome span:nth-child(1) { background: #f87171; }
.ayarlar-preview-chrome span:nth-child(2) { background: #fbbf24; }
.ayarlar-preview-chrome span:nth-child(3) { background: #34d399; }

.ayarlar-preview-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.7rem;
    border-radius: 12px;
    border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--border));
    background: color-mix(in srgb, var(--accent) 6%, var(--surface-muted));
    transition: background 0.2s ease;
}

.ayarlar-preview-mark {
    width: calc(var(--ikon-boyut, 32px) + 12px);
    height: calc(var(--ikon-boyut, 32px) + 12px);
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.28);
    overflow: hidden;
    transition: width 0.15s ease, height 0.15s ease;
}

.ayarlar-preview-mark.has-img {
    background: transparent;
    box-shadow: none;
    border: 1px solid var(--border);
}

.ayarlar-preview-mark img {
    width: var(--ikon-boyut, 32px);
    height: var(--ikon-boyut, 32px);
    object-fit: contain;
    display: block;
    transition: width 0.15s ease, height 0.15s ease;
}

.ayarlar-preview-letter {
    font-weight: 700;
    font-size: calc(var(--ikon-boyut, 32px) * 0.42);
    line-height: 1;
}

.ayarlar-preview-text {
    min-width: 0;
}
.ayarlar-preview-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ayarlar-preview-text small {
    display: block;
    margin-top: 0.15rem;
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ayarlar-preview-hint {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ayarlar-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
}

.ayarlar-page .ayar-card {
    margin: 0;
    border-radius: 0;
    border-left: 0;
    box-shadow: none;
    animation: ayarlarCardIn 0.4s ease both;
}

.ayarlar-page .ayar-card:nth-child(1) { animation-delay: 0.05s; }
.ayarlar-page .ayar-card:nth-child(2) { animation-delay: 0.1s; }
.ayarlar-page .ayar-card:nth-child(3) { animation-delay: 0.15s; }

@keyframes ayarlarCardIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.ayarlar-page .ayar-card--marka {
    border-right: 0;
}

.ayar-card--wide {
    grid-column: 1 / -1;
}

.ayar-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.1rem 1.2rem 0.35rem;
}

.ayar-card-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
    flex-shrink: 0;
}

.ayar-card-icon--teal {
    background: rgba(20, 184, 166, 0.14);
    color: #0d9488;
}

.ayar-card-icon--slate {
    background: #e2e8f0;
    color: #475569;
}

[data-theme="dark"] .ayar-card-icon--slate {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.ayar-card-titles {
    flex: 1;
    min-width: 0;
}

.ayar-card-titles h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.ayar-card-titles p {
    margin: 0.2rem 0 0;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

.ayar-card-head .badge {
    margin-left: auto;
    align-self: center;
}

.ayar-card-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-left: auto;
}

.ayar-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0.75rem 1.2rem 1.25rem;
}

.ayar-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ayar-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.ayar-hint {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.35;
}

.ayar-input {
    width: 100%;
    height: 42px;
    padding: 0 0.9rem;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-solid);
    color: var(--text);
    font: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ayar-input:hover {
    border-color: var(--border-strong);
}

.ayar-input:focus {
    outline: none;
    border-color: rgba(14, 165, 233, 0.55);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.ayar-input--sm {
    width: 4.5rem;
    flex-shrink: 0;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.ayar-file {
    font-size: 13px;
    padding: 0.45rem 0;
}

.ayar-range-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ayar-range {
    flex: 1;
    min-width: 0;
    accent-color: var(--accent);
    height: 0.35rem;
}

.ayar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.15rem;
    padding-top: 0.35rem;
}

.ayar-ikon-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
}

.ayar-ikon-onizleme {
    width: calc(var(--ikon-boyut, 32px) + 28px);
    height: calc(var(--ikon-boyut, 32px) + 28px);
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-solid);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: width 0.15s ease, height 0.15s ease;
}

.ayar-ikon-onizleme img {
    width: var(--ikon-boyut, 32px);
    height: var(--ikon-boyut, 32px);
    object-fit: contain;
    border-radius: 6px;
    transition: width 0.15s ease, height 0.15s ease;
}

.ayar-ikon-alanlari {
    flex: 1;
    min-width: 12rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lisans-input {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.14em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15px;
}

.ayar-status-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.65rem 1.2rem 1.25rem;
}

.ayar-status-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    background: var(--surface-muted);
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.ayar-status-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.ayar-status-item.is-ok {
    border-color: color-mix(in srgb, #059669 30%, var(--border));
    background: color-mix(in srgb, #ecfdf5 70%, var(--surface-muted));
}

.ayar-status-item.is-bad {
    border-color: color-mix(in srgb, #d97706 35%, var(--border));
    background: color-mix(in srgb, #fffbeb 70%, var(--surface-muted));
}

[data-theme="dark"] .ayar-status-item.is-ok {
    background: rgba(4, 120, 87, 0.12);
}
[data-theme="dark"] .ayar-status-item.is-bad {
    background: rgba(180, 83, 9, 0.12);
}

.ayar-status-k {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.ayar-status-v {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.ayar-status-v code {
    font-size: 12px;
    font-weight: 600;
}

.ayar-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
}

.ayar-status-item.is-ok .ayar-status-dot {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.ayar-status-item.is-bad .ayar-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.brand-mark--img {
    width: var(--brand-ikon, 32px);
    height: var(--brand-ikon, 32px);
    padding: 0;
    overflow: hidden;
    display: inline-grid;
    place-items: center;
    background: transparent;
    border: none;
}
.brand-mark--img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.brand-mark-preview {
    width: var(--ikon-boyut, 32px);
    height: var(--ikon-boyut, 32px);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: calc(var(--ikon-boyut, 32px) * 0.42);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    border-radius: 8px;
}

@media (max-width: 1100px) {
    .ayar-status-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ayarlar-hero {
        grid-template-columns: 1fr;
        padding: 1rem 0.85rem;
    }
    .ayarlar-layout {
        grid-template-columns: 1fr;
    }
    .ayarlar-page .ayar-card--lisans,
    .ayarlar-page .ayar-card--marka {
        border-right: 0;
    }
    .ayar-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
    .ayar-card-head,
    .ayar-form {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
    .ayar-card-head {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: start;
        column-gap: 0.75rem;
        row-gap: 0.7rem;
    }
    .ayar-card-head:has(.ayar-card-head-actions) {
        grid-template-areas:
            "icon titles extra"
            "act  act    act";
    }
    .ayar-card-head:not(:has(.ayar-card-head-actions)) {
        grid-template-areas: "icon titles extra";
    }
    .ayar-card-icon { grid-area: icon; }
    .ayar-card-titles {
        grid-area: titles;
        min-width: 0;
        flex: none;
    }
    .ayar-card-titles p {
        overflow-wrap: anywhere;
        word-break: normal;
    }
    .ayar-card-head .badge {
        grid-area: extra;
        margin-left: 0;
        align-self: start;
    }
    .ayar-card-head-actions {
        grid-area: act;
        flex: none;
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
    }
    .ayar-card-head-actions:has(> :only-child) {
        grid-template-columns: 1fr;
    }
    .ayar-card-head-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 40px;
        font-weight: 600;
    }
}

@media (max-width: 720px) {
    .ayar-card-titles h2 {
        font-size: 1.05rem;
        line-height: 1.25;
    }
    .ayar-card-titles p {
        font-size: 13px;
        line-height: 1.45;
    }

    .ayar-card--sistem .ayar-status-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0.55rem 0.85rem 1rem;
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--surface-solid);
    }
    .ayar-card--sistem .ayar-status-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin: 0;
        padding: 0.72rem 0.9rem;
        border: 0;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        background: var(--surface-solid);
        box-shadow: none;
        transform: none;
    }
    .ayar-card--sistem .ayar-status-item:last-child {
        border-bottom: 0;
    }
    .ayar-card--sistem .ayar-status-item:hover {
        transform: none;
        box-shadow: none;
    }
    .ayar-card--sistem .ayar-status-item.is-ok {
        background: color-mix(in srgb, #ecfdf5 55%, var(--surface-solid));
    }
    .ayar-card--sistem .ayar-status-item.is-bad {
        background: color-mix(in srgb, #fffbeb 55%, var(--surface-solid));
    }
    .ayar-card--sistem .ayar-status-k {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .ayar-card--sistem .ayar-status-v {
        min-width: 0;
        justify-content: flex-end;
        text-align: right;
    }
}

@media (max-width: 560px) {
    .ayarlar-hero-preview {
        order: -1;
    }
}


/* ── Email servis ── */
.email-servis-page { display: flex; flex-direction: column; }
.email-servis-hero {
    padding: 1.15rem 1.15rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(ellipse 70% 90% at 0% 0%, rgba(14, 165, 233, 0.12), transparent 55%),
        var(--surface-solid);
}
.email-servis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}
.email-servis-page .ayar-card {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
.email-servis-page .ayar-card--wide { grid-column: 1 / -1; }
.email-form-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: end;
}
.ayar-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    font-weight: 600;
}
.ayar-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent);
}
.ayar-check--panel {
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-muted);
    align-items: flex-start;
    line-height: 1.35;
}
.rapor-otel-tum {
    margin-top: 0.15rem;
}
.rapor-alici {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    word-break: break-word;
}
.rapor-alici + .rapor-alici {
    margin-top: 0.2rem;
}
.email-inline-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) {
    .email-servis-grid { grid-template-columns: 1fr; }
    .email-form-2 { grid-template-columns: 1fr; }
    .email-servis-hero { padding: 1rem 0.85rem; }

    #raporGonderForm .ayar-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        font-weight: 600;
    }
}

@media (max-width: 720px) {
    .rapor-otel-table.data-table--cards tbody {
        display: flex !important;
        flex-direction: column;
        gap: 0.55rem;
        padding: 0;
        background: transparent;
    }
    .rapor-otel-table.data-table--cards tbody tr {
        display: grid !important;
        grid-template-columns: 2.75rem minmax(0, 1fr);
        grid-template-areas:
            "cb otel"
            "cb alicilar";
        gap: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--surface-solid);
        box-shadow: var(--shadow-sm);
    }
    .rapor-otel-table.data-table--cards tbody td {
        display: flex !important;
        min-width: 0;
        grid-column: auto !important;
        padding: 0.45rem 0.7rem 0.5rem !important;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .rapor-otel-table.data-table--cards tbody td.empty {
        grid-column: 1 / -1 !important;
        padding: 1rem 0.9rem !important;
    }
    .rapor-otel-table.data-table--cards .rp-cb::before,
    .rapor-otel-table.data-table--cards .rp-otel::before,
    .rapor-otel-table.data-table--cards .rp-alicilar::before {
        content: none !important;
    }
    .rapor-otel-table.data-table--cards .rp-cb {
        grid-area: cb !important;
        align-items: center;
        justify-content: center;
        padding: 0.55rem 0 0.55rem 0.35rem !important;
        background: var(--surface-muted) !important;
    }
    .rapor-otel-table.data-table--cards .rp-cb input {
        width: 20px;
        height: 20px;
        accent-color: var(--accent);
    }
    .rapor-otel-table.data-table--cards .rp-otel {
        grid-area: otel !important;
        padding: 0.65rem 0.8rem 0.25rem 0.65rem !important;
    }
    .rapor-otel-table.data-table--cards .rp-otel strong {
        font-size: 0.95rem;
        line-height: 1.3;
        word-break: break-word;
    }
    .rapor-otel-table.data-table--cards tbody td:has(.cell-stack) {
        grid-column: auto !important;
    }
    .rapor-otel-table.data-table--cards .rp-alicilar {
        grid-area: alicilar !important;
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.15rem 0.8rem 0.7rem 0.65rem !important;
    }
    .rapor-otel-table.data-table--cards .rapor-alici code {
        display: inline;
        word-break: break-all;
    }
}

.rapor-page {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.rapor-hero {
    padding: 1.15rem 1.15rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(ellipse 70% 90% at 0% 0%, rgba(14, 165, 233, 0.12), transparent 55%),
        var(--surface-solid);
}
.rapor-alert { margin: 0.75rem; }
.rapor-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0.7rem 0.85rem 0.15rem;
    background: var(--surface-muted);
    position: sticky;
    top: 0;
    z-index: 5;
}
.rapor-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-solid);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}
.rapor-tab.is-active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.rapor-panel {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
.rapor-sablon {
    margin: 0 0.85rem 0.85rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
}
.rapor-sablon-k {
    margin: 0 0 0.35rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.rapor-sablon strong { color: var(--text); display: block; margin-bottom: 0.25rem; }
.rapor-sablon p { margin: 0.35rem 0 0; }
.rapor-sablon--warn {
    border-color: color-mix(in srgb, #d97706 35%, var(--border));
    background: color-mix(in srgb, #fffbeb 70%, var(--surface-muted));
}
.rapor-pick-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}
.rapor-secim-say {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 0.15rem;
}
.rapor-pick {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.rapor-pick-item {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr);
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-solid);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    min-height: 64px;
}
.rapor-pick-item input {
    margin: 0;
    width: 20px;
    height: 20px;
    justify-self: center;
    align-self: center;
    accent-color: var(--accent);
}
.rapor-pick-item:has(input:checked) {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.rapor-pick-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.8rem 0.7rem 0.2rem;
    min-width: 0;
}
.rapor-pick-body strong {
    font-size: 0.95rem;
    line-height: 1.3;
    word-break: break-word;
}
.rapor-sticky-act {
    position: sticky;
    bottom: 0;
    padding: 0.65rem 0 0.2rem;
    background: linear-gradient(to top, var(--surface-solid) 70%, transparent);
}
.rapor-sticky-act .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    font-weight: 700;
}

@media (max-width: 720px) {
    .rapor-hero { padding: 1rem 0.85rem; }
    .rapor-log-table.data-table--cards tbody {
        display: flex !important;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 0.15rem 0.75rem;
        background: transparent;
    }
    .rapor-log-table.data-table--cards tbody tr {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "zaman durum"
            "tip   ay"
            "otel  otel"
            "alici alici"
            "detay detay";
        gap: 0;
        margin: 0;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--surface-solid);
    }
    .rapor-log-table.data-table--cards tbody td {
        display: flex !important;
        min-width: 0;
        grid-column: auto !important;
        padding: 0.4rem 0.75rem !important;
        border: 0 !important;
        border-bottom: 1px solid var(--border) !important;
    }
    .rapor-log-table.data-table--cards .rl-zaman { grid-area: zaman !important; }
    .rapor-log-table.data-table--cards .rl-durum { grid-area: durum !important; border-bottom: 1px solid var(--border) !important; }
    .rapor-log-table.data-table--cards .rl-tip { grid-area: tip !important; }
    .rapor-log-table.data-table--cards .rl-ay { grid-area: ay !important; }
    .rapor-log-table.data-table--cards .rl-otel { grid-area: otel !important; grid-column: 1 / -1 !important; }
    .rapor-log-table.data-table--cards .rl-alici { grid-area: alici !important; grid-column: 1 / -1 !important; word-break: break-all; }
    .rapor-log-table.data-table--cards .rl-detay { grid-area: detay !important; grid-column: 1 / -1 !important; border-bottom: 0 !important; }
}

@media (min-width: 900px) {
    .rapor-pick-toolbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }
    .rapor-pick {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .rapor-sticky-act .btn { width: auto; min-width: 16rem; }
}
