/* ==========================================================================
   Atlas Site Yönetim — tasarım sistemi
   Sade, ferah, veri yoğun ama okunaklı kurumsal arayüz.
   ========================================================================== */

:root {
    --bg: #f4f5f8;
    --surface: #ffffff;
    --surface-2: #f8f9fb;
    --surface-3: #f1f3f7;
    --border: #e6e8ee;
    --border-strong: #d5d9e2;
    --text: #0f172a;
    --text-2: #3f4a5c;
    --muted: #6b7385;
    --faint: #9aa1b0;

    --brand: #3346d3;
    --brand-600: #2939b5;
    --brand-700: #22308f;
    --brand-50: #eef0fd;
    --brand-100: #dfe3fb;

    --success: #11874a;
    --success-bg: #e8f6ee;
    --success-bd: #c4ead4;
    --warning: #b45c06;
    --warning-bg: #fef5e6;
    --warning-bd: #f8dfb4;
    --danger: #c9302c;
    --danger-bg: #fdefee;
    --danger-bd: #f6d2d0;
    --info: #0b72ab;
    --info-bg: #e8f3fa;
    --info-bd: #c6e2f3;
    --violet: #6d3fd6;
    --violet-bg: #f2edfd;
    --violet-bd: #ddd0f8;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-md: 0 8px 24px -6px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .05);
    --sidebar-w: 252px;
    --topbar-h: 60px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { -webkit-font-smoothing: antialiased; }
html { font-size: 14px; }
body {
    font-family: var(--font);
    font-size: 13.5px;
    color: var(--text);
    background: var(--bg);
    font-feature-settings: "cv11", "ss01";
    letter-spacing: -0.005em;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4, h5 { color: var(--text); letter-spacing: -0.015em; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.text-muted, .muted { color: var(--muted) !important; }
.text-faint { color: var(--faint) !important; }
.text-success-soft { color: var(--success) !important; }
.text-danger-soft { color: var(--danger) !important; }
.text-brand { color: var(--brand) !important; }
.text-warning-soft { color: var(--warning) !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.small-caps { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.nowrap { white-space: nowrap; }
.min-w-0 { min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
hr { border-color: var(--border); opacity: 1; }

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

.sidebar {
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    position: fixed; inset: 0 auto 0 0;
    display: flex; flex-direction: column;
    z-index: 1040;
    transition: transform .2s ease;
}
.sidebar-brand {
    height: var(--topbar-h);
    display: flex; align-items: center; gap: 10px;
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
}
.brand-mark {
    width: 30px; height: 30px; border-radius: 9px;
    background: linear-gradient(135deg, var(--brand) 0%, #5b6cf0 100%);
    display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px;
    box-shadow: 0 4px 10px -3px rgba(51, 70, 211, .5);
}
.brand-name { font-weight: 650; font-size: 14.5px; letter-spacing: -.02em; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0; }

.site-switch { padding: 12px 12px 6px; }
.site-switch .dropdown-toggle {
    width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
    padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2);
    color: var(--text); font-size: 13px;
}
.site-switch .dropdown-toggle::after { margin-left: auto; color: var(--muted); }
.site-switch .dropdown-toggle:hover { border-color: var(--border-strong); background: #fff; }
.site-avatar {
    width: 28px; height: 28px; border-radius: 8px; background: var(--brand-50); color: var(--brand);
    display: grid; place-items: center; font-weight: 700; font-size: 11.5px; flex: none; overflow: hidden;
}
.site-avatar img { width: 100%; height: 100%; object-fit: cover; }
.site-switch .meta { min-width: 0; line-height: 1.2; }
.site-switch .meta strong { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-switch .meta span { font-size: 11px; color: var(--muted); }
.site-switch .dropdown-menu { width: calc(var(--sidebar-w) - 24px); }

.nav-scroll { overflow-y: auto; flex: 1; padding: 6px 10px 18px; scrollbar-width: thin; }
.nav-section { margin-top: 14px; }
.nav-section-title { padding: 0 10px 6px; font-size: 10.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.nav-link-app {
    display: flex; align-items: center; gap: 10px;
    height: 34px; padding: 0 10px; margin: 1px 0;
    border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 13px;
    position: relative;
}
.nav-link-app i { font-size: 15px; width: 18px; text-align: center; color: var(--muted); }
.nav-link-app:hover { background: var(--surface-3); color: var(--text); }
.nav-link-app.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.nav-link-app.active i { color: var(--brand); }
.nav-link-app .count {
    margin-left: auto; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px;
    background: var(--surface-3); color: var(--text-2);
}
.nav-link-app .count.alert { background: var(--danger-bg); color: var(--danger); }

.sidebar-foot { border-top: 1px solid var(--border); padding: 10px 14px; font-size: 11.5px; color: var(--faint); }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: var(--topbar-h);
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
    padding: 0 24px;
}
.topbar .menu-btn { display: none; }
.global-search { position: relative; width: min(420px, 100%); }
.global-search input {
    height: 36px; width: 100%; padding: 0 12px 0 36px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface-2); font-size: 13px; color: var(--text);
}
.global-search input:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(51, 70, 211, .12); }
.global-search > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.global-search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 10.5px; background: #fff; color: var(--muted); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; }
.search-results {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1050;
    background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md);
    max-height: 420px; overflow-y: auto; display: none; padding: 6px;
}
.search-results.show { display: block; }
.search-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.search-item:hover, .search-item.active { background: var(--surface-3); color: var(--text); }
.search-item .code { font-weight: 700; font-size: 12px; background: var(--brand-50); color: var(--brand-700); padding: 3px 7px; border-radius: 6px; min-width: 46px; text-align: center; }
.search-item .sub { font-size: 12px; color: var(--muted); }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent;
    display: grid; place-items: center; color: var(--text-2); position: relative; font-size: 17px;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn .pip {
    position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
    background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff;
}
.avatar {
    width: 32px; height: 32px; border-radius: 999px; background: linear-gradient(135deg, #e0e7ff, #eef2ff);
    color: var(--brand-700); display: inline-grid; place-items: center; font-weight: 700; font-size: 12px; flex: none;
}
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 3px 8px 3px 3px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); }
.user-chip:hover { border-color: var(--border-strong); color: var(--text); }
.user-chip .who { line-height: 1.1; font-size: 12.5px; }
.user-chip .who small { display: block; font-size: 11px; color: var(--muted); }

.content { padding: 24px 28px 48px; max-width: 1600px; width: 100%; }

/* ---------------------------------------------------------------- Dropdown & notifications */
.dropdown-menu { border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px; font-size: 13px; }
.dropdown-item { border-radius: 8px; padding: 7px 10px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.dropdown-item i { color: var(--muted); }
.dropdown-item:hover { background: var(--surface-3); color: var(--text); }
.dropdown-item.active, .dropdown-item:active { background: var(--brand-50); color: var(--brand-700); }
.dropdown-header { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 650; }
.notif-menu { width: 360px; padding: 0; overflow: hidden; }
.notif-menu .head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--surface-3); color: var(--text); }
.notif-item:hover { background: var(--surface-2); color: var(--text); }
.notif-item.unread { background: #fbfbff; }
.notif-item.unread .t::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--brand); margin-left: 6px; vertical-align: middle; }
.notif-item .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.notif-item .t { font-weight: 600; font-size: 12.5px; }
.notif-item .m { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-item .time { font-size: 11px; color: var(--faint); }

/* ---------------------------------------------------------------- Page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 21px; font-weight: 650; margin: 0; }
.page-head .sub { color: var(--muted); margin: 4px 0 0; font-size: 13px; }
.page-head .crumbs { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.page-head .crumbs a { color: var(--muted); }
.page-head .crumbs a:hover { color: var(--brand); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- Panels */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.panel-head h2, .panel-head h3 { font-size: 14px; font-weight: 650; margin: 0; }
.panel-head .hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.panel-body { padding: 18px; }
.panel-body.tight { padding: 0; }
.panel-foot { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.panel.soft { background: var(--surface-2); box-shadow: none; }
.panel-link { font-size: 12.5px; font-weight: 500; }

/* ---------------------------------------------------------------- KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px;
    position: relative; box-shadow: var(--shadow-xs); min-width: 0;
}
.kpi .label { font-size: 12px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 20px; font-weight: 650; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .meta { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.kpi .ic { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; background: var(--surface-3); color: var(--text-2); }
.kpi.brand .ic { background: var(--brand-50); color: var(--brand); }
.kpi.success .ic { background: var(--success-bg); color: var(--success); }
.kpi.warning .ic { background: var(--warning-bg); color: var(--warning); }
.kpi.danger .ic { background: var(--danger-bg); color: var(--danger); }
.kpi.violet .ic { background: var(--violet-bg); color: var(--violet); }
.kpi.info .ic { background: var(--info-bg); color: var(--info); }
.kpi .bar { height: 5px; background: var(--surface-3); border-radius: 999px; margin-top: 10px; overflow: hidden; }
.kpi .bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.kpi.success .bar span { background: var(--success); }
.kpi-link { color: inherit; display: block; }
.kpi-link:hover .kpi { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; }
.stat { padding: 12px 16px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat .l { font-size: 11.5px; color: var(--muted); }
.stat .v { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; margin-top: 2px; }

/* ---------------------------------------------------------------- Badges */
.badge-soft {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 550; line-height: 1;
    padding: 4px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
    background: var(--surface-3); color: var(--text-2);
}
.badge-soft .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .85; }
.badge-soft.success { background: var(--success-bg); color: var(--success); border-color: var(--success-bd); }
.badge-soft.warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-bd); }
.badge-soft.danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-bd); }
.badge-soft.info { background: var(--info-bg); color: var(--info); border-color: var(--info-bd); }
.badge-soft.brand { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.badge-soft.violet { background: var(--violet-bg); color: var(--violet); border-color: var(--violet-bd); }
.badge-soft.neutral { background: #fff; color: var(--text-2); border-color: var(--border-strong); }
.badge-soft.muted { background: var(--surface-3); color: var(--muted); border-color: var(--border); }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }
.tag.brand { background: var(--brand-50); color: var(--brand-700); }

/* ---------------------------------------------------------------- Buttons */
.btn { font-size: 13px; font-weight: 550; border-radius: var(--radius-sm); padding: 7px 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.2; }
.btn i { font-size: 14px; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { padding: 11px 18px; font-size: 14.5px; border-radius: 10px; }
.btn-primary { background: var(--brand); border-color: var(--brand); box-shadow: 0 1px 2px rgba(51, 70, 211, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-600); border-color: var(--brand-600); }
.btn-primary:disabled { background: var(--brand); border-color: var(--brand); opacity: .55; }
.btn-light { background: #fff; border: 1px solid var(--border-strong); color: var(--text); box-shadow: var(--shadow-xs); }
.btn-light:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-soft { background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700); }
.btn-soft:hover { background: var(--brand-100); color: var(--brand-700); }
.btn-danger-soft { background: var(--danger-bg); border: 1px solid var(--danger-bd); color: var(--danger); }
.btn-danger-soft:hover { background: #fbe0de; color: var(--danger); }
.btn-success-soft { background: var(--success-bg); border: 1px solid var(--success-bd); color: var(--success); }
.btn-success-soft:hover { background: #d8f0e2; color: var(--success); }
.btn-icon { width: 30px; height: 30px; padding: 0; border-radius: 8px; }
.btn-group-seg { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: 10px; gap: 2px; }
.btn-group-seg a, .btn-group-seg button { border: none; background: transparent; padding: 5px 12px; font-size: 12.5px; font-weight: 550; color: var(--text-2); border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; }
.btn-group-seg .active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------- Forms */
.form-label { font-size: 12.5px; font-weight: 550; color: var(--text-2); margin-bottom: 5px; }
.form-control, .form-select {
    font-size: 13.5px; border-radius: var(--radius-sm); border-color: var(--border-strong); min-height: 37px; color: var(--text);
    box-shadow: var(--shadow-xs);
}
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(51, 70, 211, .13); }
.form-control::placeholder { color: var(--faint); }
.form-control-sm, .form-select-sm { min-height: 31px; font-size: 12.5px; }
.form-text { font-size: 12px; color: var(--muted); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-label { font-size: 13px; }
.form-switch .form-check-input { width: 2.2em; }
.input-group-text { background: var(--surface-2); border-color: var(--border-strong); color: var(--muted); font-size: 13px; }
.field-validation-error, .text-danger { color: var(--danger) !important; font-size: 12px; }
.input-validation-error { border-color: var(--danger) !important; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.form-section { padding: 18px; border-bottom: 1px solid var(--border); }
.form-section:last-child { border-bottom: none; }
.form-section h3 { font-size: 13.5px; font-weight: 650; margin: 0 0 2px; }
.form-section .desc { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.alert { border-radius: 10px; font-size: 13px; border-width: 1px; }
.alert-soft-danger { background: var(--danger-bg); border-color: var(--danger-bd); color: var(--danger); }
.alert-soft-warning { background: var(--warning-bg); border-color: var(--warning-bd); color: #8a4705; }
.alert-soft-info { background: var(--info-bg); border-color: var(--info-bd); color: #0a5d8c; }
.alert-soft-success { background: var(--success-bg); border-color: var(--success-bd); color: #0d6b3a; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0; }
.filter-bar .form-label { font-size: 11.5px; margin-bottom: 3px; }
.filter-bar .form-control, .filter-bar .form-select { min-height: 33px; font-size: 13px; }
.filter-bar > div { min-width: 140px; }

/* ---------------------------------------------------------------- Tables */
.table-modern { margin: 0; font-size: 13px; color: var(--text); }
.table-modern > :not(caption) > * > * { padding: 10px 14px; border-bottom-color: var(--border); background: transparent; }
.table-modern thead th {
    font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: .01em;
    background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table-modern tbody tr:hover > * { background: #fafbfd; }
.table-modern tbody tr:last-child > * { border-bottom: none; }
.table-modern tfoot td { font-weight: 650; background: var(--surface-2); border-top: 1px solid var(--border-strong); }
.table-modern .num, .table-modern th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-modern .actions { text-align: right; white-space: nowrap; width: 1%; }
.table-modern tr.is-cancelled > * { color: var(--faint); }
.table-modern tr.is-cancelled .strike { text-decoration: line-through; }
.table-modern tr.is-info > * { color: var(--muted); font-style: italic; background: #fcfcfe; }
.table-modern .cell-title { font-weight: 600; color: var(--text); }
.table-modern .cell-sub { font-size: 12px; color: var(--muted); }
.table-responsive { border-radius: 0 0 var(--radius) var(--radius); }

/* DataTables uyumu */
div.dt-container { font-size: 13px; }
div.dt-container .dt-layout-row { padding: 0 16px; margin: 10px 0 !important; }
div.dt-container .dt-layout-row.dt-layout-table { padding: 0; margin: 0 !important; }
div.dt-container .dt-search input, div.dt-container .dt-length select { border-radius: 8px; border: 1px solid var(--border-strong); min-height: 32px; font-size: 12.5px; padding: 4px 10px; }
div.dt-container .dt-search input { width: 220px; }
div.dt-container .dt-info { font-size: 12px; color: var(--muted); }
div.dt-container .dt-paging .pagination { margin: 0; }
.page-link { font-size: 12.5px; color: var(--text-2); border-color: var(--border); padding: 4px 10px; }
.active > .page-link, .page-link.active { background: var(--brand); border-color: var(--brand); }
table.dataTable thead > tr > th.dt-orderable-asc span.dt-column-order, table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order { opacity: .5; }
table.dataTable > thead > tr > th, table.dataTable > thead > tr > td { border-bottom: 1px solid var(--border) !important; }

/* ---------------------------------------------------------------- Tabs */
.tabs-modern { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.tabs-modern .nav-link {
    border: none; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 12px 10px; font-size: 13px; font-weight: 550;
    color: var(--muted); white-space: nowrap; background: none; display: inline-flex; gap: 7px; align-items: center;
}
.tabs-modern .nav-link:hover { color: var(--text); }
.tabs-modern .nav-link.active { color: var(--brand-700); border-bottom-color: var(--brand); background: none; }
.tabs-modern .nav-link .count { font-size: 11px; background: var(--surface-3); color: var(--text-2); border-radius: 999px; padding: 1px 7px; }

/* ---------------------------------------------------------------- Empty state */
.empty-state { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty-state .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-3); display: grid; place-items: center; margin: 0 auto 12px; font-size: 20px; color: var(--muted); }
.empty-state h4 { font-size: 14px; font-weight: 650; color: var(--text); margin-bottom: 4px; }
.empty-state p { font-size: 12.5px; margin-bottom: 14px; }

/* ---------------------------------------------------------------- Lists */
.list-rows { list-style: none; margin: 0; padding: 0; }
.list-rows > li { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--surface-3); }
.list-rows > li:last-child { border-bottom: none; }
.list-rows .grow { flex: 1; min-width: 0; }
.list-rows .title { font-weight: 600; font-size: 13px; color: var(--text); }
.list-rows .sub { font-size: 12px; color: var(--muted); }
.list-rows a.row-link { color: inherit; display: flex; align-items: center; gap: 12px; width: 100%; }
.list-rows a.row-link:hover .title { color: var(--brand); }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 18px; }
.dl-grid dt { font-size: 11.5px; color: var(--muted); font-weight: 500; margin: 0; }
.dl-grid dd { font-size: 13.5px; font-weight: 600; margin: 2px 0 0; color: var(--text); word-break: break-word; }

/* ---------------------------------------------------------------- Unit grid (site yapısı) */
.block-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.block-card .panel-head .stats { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.floor-row { display: flex; align-items: stretch; gap: 8px; padding: 6px 14px; }
.floor-row + .floor-row { border-top: 1px dashed var(--border); }
.floor-label { width: 44px; flex: none; font-size: 11px; color: var(--faint); font-weight: 600; display: flex; align-items: center; }
.floor-units { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.unit-tile {
    flex: 1 1 110px; max-width: 170px; min-width: 104px; border-radius: 10px; padding: 8px 10px; border: 1px solid var(--border);
    background: #fff; color: var(--text); display: block; transition: transform .12s ease, box-shadow .12s ease;
}
.unit-tile:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--text); }
.unit-tile .no { font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: space-between; }
.unit-tile .no small { font-weight: 500; font-size: 10.5px; color: var(--muted); }
.unit-tile .who { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.unit-tile .amt { font-size: 11.5px; font-weight: 650; margin-top: 5px; font-variant-numeric: tabular-nums; }
.unit-tile.ok { border-color: var(--success-bd); background: linear-gradient(180deg, #f6fcf8, #fff); }
.unit-tile.ok .amt { color: var(--success); }
.unit-tile.pending { border-color: var(--info-bd); background: linear-gradient(180deg, #f5fafd, #fff); }
.unit-tile.pending .amt { color: var(--info); }
.unit-tile.late { border-color: var(--warning-bd); background: linear-gradient(180deg, #fffaf0, #fff); }
.unit-tile.late .amt { color: var(--warning); }
.unit-tile.high { border-color: var(--danger-bd); background: linear-gradient(180deg, #fff6f5, #fff); }
.unit-tile.high .amt { color: var(--danger); }
.unit-tile.vacant { border-style: dashed; background: var(--surface-2); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; border: 1px solid; }
.legend .ok i { background: #e9f7ee; border-color: var(--success-bd); }
.legend .pending i { background: #eaf4fb; border-color: var(--info-bd); }
.legend .late i { background: #fff3dd; border-color: var(--warning-bd); }
.legend .high i { background: #fde8e6; border-color: var(--danger-bd); }
.legend .vacant i { background: var(--surface-2); border-style: dashed; border-color: var(--border-strong); }

/* ---------------------------------------------------------------- Unit detail hero */
.hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; display: grid; grid-template-columns: 1.3fr 2fr; gap: 24px; box-shadow: var(--shadow-xs); margin-bottom: 16px; }
.hero .title { display: flex; align-items: center; gap: 14px; }
.hero .unit-badge { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), #6574f2); color: #fff; display: grid; place-items: center; font-weight: 750; font-size: 17px; flex: none; box-shadow: 0 8px 18px -8px rgba(51, 70, 211, .6); }
.hero h1 { font-size: 20px; font-weight: 700; margin: 0; }
.hero .facts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.hero .people { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.hero .people .l { font-size: 11.5px; color: var(--muted); }
.hero .people .v { font-weight: 600; }
.hero-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.metric { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface-2); }
.metric .l { font-size: 11.5px; color: var(--muted); }
.metric .v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 3px; white-space: nowrap; }
.metric.danger { background: var(--danger-bg); border-color: var(--danger-bd); }
.metric.danger .v { color: var(--danger); }
.metric.success { background: var(--success-bg); border-color: var(--success-bd); }
.metric.success .v { color: var(--success); }
.metric.brand { background: var(--brand-50); border-color: var(--brand-100); }

/* ---------------------------------------------------------------- Timeline */
.timeline { list-style: none; padding: 4px 18px 10px; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 33px; top: 8px; bottom: 8px; width: 2px; background: var(--surface-3); }
.timeline li { position: relative; padding: 10px 0 10px 40px; }
.timeline .tdot { position: absolute; left: 7px; top: 12px; width: 18px; height: 18px; border-radius: 999px; background: #fff; border: 2px solid var(--border-strong); display: grid; place-items: center; font-size: 9px; color: var(--muted); }
.timeline .tdot.success { border-color: var(--success); color: var(--success); }
.timeline .tdot.danger { border-color: var(--danger); color: var(--danger); }
.timeline .tdot.brand { border-color: var(--brand); color: var(--brand); }
.timeline .tdot.warning { border-color: var(--warning); color: var(--warning); }
.timeline .tdot.violet { border-color: var(--violet); color: var(--violet); }
.timeline .t { font-weight: 600; font-size: 13px; }
.timeline .d { font-size: 12.5px; color: var(--text-2); }
.timeline .m { font-size: 11.5px; color: var(--faint); margin-top: 2px; }

/* ---------------------------------------------------------------- Announcement cards */
.ann-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ann-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px 14px; position: relative; overflow: hidden; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; }
.ann-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--border-strong); }
.ann-card.important::before { background: var(--warning); }
.ann-card.urgent { border-color: var(--danger-bd); background: linear-gradient(180deg, #fff9f8 0%, #fff 60%); }
.ann-card.urgent::before { background: var(--danger); }
.ann-card .ann-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font-size: 16px; flex: none; }
.ann-card.important .ann-ic { background: var(--warning-bg); color: var(--warning); }
.ann-card.urgent .ann-ic { background: var(--danger-bg); color: var(--danger); }
.ann-card h3 { font-size: 14.5px; font-weight: 650; margin: 0; }
.ann-card .ann-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ann-card .ann-body { font-size: 13px; color: var(--text-2); margin: 10px 0 12px; white-space: pre-line; flex: 1; }
.ann-card .ann-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--surface-3); padding-top: 10px; }
.ann-card.faded { opacity: .62; }

/* ---------------------------------------------------------------- Request board */
.req-card { display: block; padding: 12px 14px; border-bottom: 1px solid var(--surface-3); color: var(--text); }
.req-card:hover { background: var(--surface-2); color: var(--text); }
.req-card .no { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.req-card .ttl { font-weight: 600; font-size: 13px; margin: 2px 0 6px; }
.chat { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.bubble { max-width: 78%; border-radius: 14px; padding: 10px 14px; background: var(--surface-3); font-size: 13px; }
.bubble .who { font-size: 11.5px; font-weight: 600; color: var(--text-2); margin-bottom: 3px; display: flex; gap: 8px; align-items: center; }
.bubble .when { font-size: 11px; color: var(--faint); font-weight: 400; }
.bubble.me { align-self: flex-end; background: var(--brand-50); border: 1px solid var(--brand-100); }
.bubble.resident { align-self: flex-start; background: #fff; border: 1px solid var(--border); }
.bubble.internal { align-self: flex-end; background: var(--warning-bg); border: 1px dashed var(--warning-bd); }
.bubble .msg { white-space: pre-line; }
.attach-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.attach-thumbs a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 8px; border-radius: 8px; background: #fff; border: 1px solid var(--border); color: var(--text-2); }
.attach-thumbs img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* ---------------------------------------------------------------- Collection (Tahsilat) */
.collect-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); gap: 16px; align-items: start; }
.unit-search-box { position: relative; }
.unit-search-box input { height: 48px; font-size: 16px; padding-left: 44px; border-radius: 12px; }
.unit-search-box > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--faint); }
.selected-unit { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.selected-unit .code { font-size: 15px; font-weight: 750; background: var(--brand); color: #fff; border-radius: 12px; padding: 12px 12px; min-width: 60px; text-align: center; }
.alloc-row.allocated > * { background: #f7faff; }
.alloc-row .alloc-amt { font-weight: 700; color: var(--brand-700); }
.pay-summary { position: sticky; top: calc(var(--topbar-h) + 16px); }
.pay-summary .line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; }
.pay-summary .line.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 15px; }
.amount-input { font-size: 24px !important; font-weight: 700; height: 56px; font-variant-numeric: tabular-nums; text-align: right; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.method-grid label { border: 1px solid var(--border-strong); border-radius: 10px; padding: 9px 10px; font-size: 12.5px; font-weight: 550; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2); background: #fff; }
.method-grid input { display: none; }
.method-grid input:checked + label { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); box-shadow: 0 0 0 2px rgba(51, 70, 211, .12); }

/* ---------------------------------------------------------------- Charts */
.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 200px; }
.chart-box.lg { height: 320px; }
.progress-thin { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress-thin > span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.progress-thin.success > span { background: var(--success); }
.progress-thin.warning > span { background: var(--warning); }
.progress-thin.danger > span { background: var(--danger); }

/* ---------------------------------------------------------------- Report hub */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.report-card { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text); box-shadow: var(--shadow-xs); }
.report-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); color: var(--text); }
.report-card .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 17px; flex: none; }
.report-card h3 { font-size: 13.5px; font-weight: 650; margin: 0 0 3px; }
.report-card p { font-size: 12px; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- Budget grid */
.budget-table input { width: 92px; min-height: 30px; font-size: 12.5px; text-align: right; padding: 3px 6px; border-radius: 6px; border: 1px solid transparent; background: transparent; font-variant-numeric: tabular-nums; }
.budget-table input:hover { border-color: var(--border); background: #fff; }
.budget-table input:focus { border-color: var(--brand); background: #fff; outline: none; box-shadow: 0 0 0 2px rgba(51, 70, 211, .12); }
.budget-table td, .budget-table th { padding: 6px 8px !important; }
.budget-table .cat { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 160px; }
.color-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 6px; }

/* ---------------------------------------------------------------- Auth */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.auth-art {
    position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
    background:
        radial-gradient(900px 480px at -10% -10%, rgba(99, 118, 255, .55), transparent 60%),
        radial-gradient(700px 520px at 110% 110%, rgba(56, 189, 248, .22), transparent 60%),
        linear-gradient(160deg, #111a4a 0%, #1b2677 55%, #22308f 100%);
}
.auth-art::after {
    content: ""; position: absolute; inset: 0; opacity: .12;
    background-image: linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(circle at 30% 40%, black 0%, transparent 70%);
}
.auth-art > * { position: relative; z-index: 1; }
.auth-art h2 { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.03em; color: #fff; max-width: 460px; }
.auth-art p { color: rgba(255, 255, 255, .75); max-width: 440px; font-size: 14px; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .88); font-size: 13.5px; }
.auth-points i { width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; flex: none; }
.auth-mock { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 16px; backdrop-filter: blur(4px); max-width: 440px; margin-top: 30px; }
.auth-mock .row-m { display: flex; justify-content: space-between; font-size: 12.5px; padding: 6px 0; color: rgba(255, 255, 255, .85); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.auth-mock .row-m:last-child { border-bottom: none; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 390px; }
.auth-card h1 { font-size: 24px; font-weight: 700; }
.auth-card .form-control { height: 44px; font-size: 14px; }
.demo-accounts { margin-top: 22px; border: 1px dashed var(--border-strong); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); font-size: 12px; }
.demo-accounts button { border: none; background: none; padding: 3px 0; color: var(--brand); font-weight: 600; font-size: 12px; }

/* ---------------------------------------------------------------- Misc */
.print-sheet { background: #fff; max-width: 820px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 38px; box-shadow: var(--shadow-sm); }
.receipt-amount { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 16px 18px; }
.receipt-amount .big { font-size: 28px; font-weight: 750; letter-spacing: -.02em; }
.stamp-cancel { border: 2px solid var(--danger); color: var(--danger); font-weight: 800; letter-spacing: .1em; padding: 6px 14px; border-radius: 8px; transform: rotate(-4deg); display: inline-block; }
.sep-dot::before { content: "·"; margin: 0 6px; color: var(--faint); }
.cursor-pointer { cursor: pointer; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(248, 249, 251, .96); backdrop-filter: blur(6px); z-index: 5; }
.key-value { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.key-value:last-child { border-bottom: none; }
.key-value span:first-child { color: var(--muted); }
.key-value span:last-child { font-weight: 600; text-align: right; }
.mini-bar { display: flex; align-items: center; gap: 8px; }
.mini-bar .track { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.mini-bar .track span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.swal2-popup { font-family: var(--font) !important; border-radius: 16px !important; font-size: 14px !important; }
.swal2-title { font-size: 19px !important; font-weight: 650 !important; color: var(--text) !important; }
.swal2-html-container { font-size: 13.5px !important; color: var(--text-2) !important; }
.swal2-styled.swal2-confirm { background: var(--brand) !important; border-radius: 9px !important; font-weight: 600 !important; font-size: 13.5px !important; }
.swal2-styled.swal2-cancel { background: #fff !important; color: var(--text) !important; border: 1px solid var(--border-strong) !important; border-radius: 9px !important; font-weight: 600 !important; font-size: 13.5px !important; }
.swal2-styled.swal2-deny { border-radius: 9px !important; }
.swal2-input, .swal2-textarea { font-size: 14px !important; border-radius: 10px !important; }
.swal2-toast { border-radius: 12px !important; box-shadow: var(--shadow-md) !important; }
.swal2-toast .swal2-title { font-size: 13.5px !important; font-weight: 600 !important; }

.sidebar-backdrop { display: none; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1199.98px) {
    .collect-layout { grid-template-columns: 1fr; }
    .pay-summary { position: static; }
    .hero { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-md); }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 1035; }
    .main { margin-left: 0; }
    .topbar { padding: 0 14px; }
    .topbar .menu-btn { display: grid; }
    .content { padding: 18px 14px 40px; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .user-chip .who { display: none; }
    .hero-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
    .global-search { display: none; }
    .page-head h1 { font-size: 18px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .kpi { padding: 12px; }
    .kpi .value { font-size: 16px; }
    .kpi .ic { display: none; }
    .hero .people { grid-template-columns: 1fr; }
    .block-grid { grid-template-columns: 1fr; }
    .method-grid { grid-template-columns: repeat(2, 1fr); }
    .panel-head { padding: 12px 14px; }
    .panel-body { padding: 14px; }
    .filter-bar { padding: 10px 14px; }
    .filter-bar > div { min-width: calc(50% - 6px); flex: 1; }
    div.dt-container .dt-search input { width: 150px; }
    .notif-menu { width: calc(100vw - 24px); }
    .print-sheet { padding: 20px; }
}

@media print {
    .sidebar, .topbar, .page-actions, .no-print, .btn { display: none !important; }
    .main { margin: 0; }
    .content { padding: 0; }
    body { background: #fff; }
    .print-sheet { border: none; box-shadow: none; }
}

/* ---------------------------------------------------------------- Parking / meters / misc */
.parking-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; padding: 16px 18px; }
.parking-grid .pk { display: block; border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; color: var(--text); background: #fff; min-height: 78px; transition: transform .12s ease, box-shadow .12s ease; }
.parking-grid a.pk:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--text); }
.parking-grid .pk .code { font-weight: 750; font-size: 13.5px; }
.parking-grid .pk .unit { font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.parking-grid .pk .plate { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; border: 1px solid var(--border-strong); border-radius: 4px; padding: 0 5px; margin: 4px 4px 0 0; background: #fff; }
.parking-grid .pk .fee { font-size: 11px; color: var(--muted); margin-top: 4px; }
.parking-grid .pk.free { border-color: var(--success-bd); background: linear-gradient(180deg, #f6fcf8, #fff); }
.parking-grid .pk.assigned { border-color: var(--brand-100); background: linear-gradient(180deg, var(--brand-50), #fff); }
.parking-grid .pk.reserved { border-color: var(--warning-bd); background: linear-gradient(180deg, #fffaf0, #fff); }
.parking-grid .pk.disabled { border-style: dashed; background: var(--surface-2); opacity: .75; }
.legend .pk-free i { background: #e9f7ee; border-color: var(--success-bd); }
.legend .pk-assigned i { background: var(--brand-50); border-color: var(--brand-100); }
.legend .pk-reserved i { background: #fff3dd; border-color: var(--warning-bd); }
.legend .pk-disabled i { background: var(--surface-2); border-style: dashed; border-color: var(--border-strong); }
.plate-lg { display: inline-block; font-weight: 750; letter-spacing: .05em; font-size: 12.5px; border: 1.5px solid var(--text-2); border-left: 6px solid #1f4fd1; border-radius: 5px; padding: 1px 8px; background: #fff; font-variant-numeric: tabular-nums; }
.row-locked > td { background: var(--surface-2); }
#readingTable .idx { max-width: 140px; }
.meeting-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.meeting-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; color: var(--text); box-shadow: var(--shadow-xs); }
.meeting-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); color: var(--text); }
.date-box { width: 52px; flex: none; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); text-align: center; padding: 6px 0; line-height: 1.1; }
.date-box .d { display: block; font-size: 20px; font-weight: 750; }
.date-box .mo { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.attendee .att-check { border: none; background: none; padding: 0; font-size: 18px; color: var(--faint); line-height: 1; }
.attendee.present .att-check { color: var(--success); }
.attendee.present .title { color: var(--text); }
.attendee:not(.present) .title { color: var(--text-2); }
.vote-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-3); }
.vote-bar span { display: block; height: 100%; }
.vote-bar .y { background: var(--success); } .vote-bar .n { background: var(--danger); } .vote-bar .a { background: var(--faint); }
.decision-text { white-space: pre-line; font-size: 13.5px; line-height: 1.65; }
.doc-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font-size: 17px; flex: none; }
.table-report tfoot .total-row td { font-weight: 700; background: var(--surface-2); border-top: 2px solid var(--border-strong); }
.settings-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.settings-nav a { display: inline-flex; gap: 7px; align-items: center; padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 550; color: var(--text-2); border: 1px solid transparent; }
.settings-nav a:hover { background: var(--surface-3); color: var(--text); }
.settings-nav a.active { background: #fff; border-color: var(--border); color: var(--brand-700); box-shadow: var(--shadow-xs); }
.status-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--surface-3); }
.status-row:last-child { border-bottom: none; }
.status-row .grow { flex: 1; min-width: 0; }
.json-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 12px; white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.role-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: #fff; }
.role-option:has(input:checked) { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 2px rgba(51, 70, 211, .1); }
.dt-length select, .dataTables_length select { padding-right: 30px !important; min-width: 76px; }
@media (max-width: 768px) {
    .table-modern th, .table-modern .cell-title, .table-modern td.num, .table-modern .num { white-space: nowrap; }
    .table-modern td { min-width: 0; }
}
