/* Eruslu Global — kurumsal arayüz */

:root {
    --navy: #0c1f36;
    --navy-2: #122a46;
    --navy-3: #1a3a5c;
    --gold: #b8923a;
    --gold-hover: #9e7c2e;
    --gold-soft: #f6efe0;

    --bg: #eef1f5;
    --surface: #ffffff;
    --surface-2: #f6f8fb;
    --line: #dce2ea;
    --line-strong: #c8d0db;
    --ink: #122033;
    --ink-2: #3d4d61;
    --muted: #6d7c8d;

    --brand: #0c1f36;
    --brand-hover: #081627;
    --brand-ink: #ffffff;
    --brand-soft: #e8eef5;
    --brand-ring: rgba(12, 31, 54, 0.16);

    --ok: #1b6b4a;
    --ok-soft: #e6f4ee;
    --warn: #8a5a12;
    --warn-soft: #f8eedc;
    --danger: #9d2b3a;
    --danger-soft: #f8e8eb;
    --info: #1d4f7a;
    --info-soft: #e7eef6;

    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 10px;
    --r-full: 999px;

    --sh-1: 0 1px 2px rgba(12, 31, 54, 0.05);
    --sh-2: 0 8px 24px rgba(12, 31, 54, 0.08);
    --sh-3: 0 20px 48px rgba(12, 31, 54, 0.16);

    --sidebar-w: 248px;
    --header-h: 60px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.talep-app {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.talep-app.nav-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -0.015em;
}

a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--navy); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: #e6d7b2; }

/* ---------- Kabuk ---------- */

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    background: var(--navy);
    z-index: 1045;
}

.app-brand {
    height: var(--header-h);
    flex: none;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.app-brand:hover { color: #fff; }

.app-brand__mark {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 4px;
    background: var(--gold);
    color: var(--navy);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.app-brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.app-brand__text strong { font-size: 13.5px; font-weight: 650; color: #fff; }
.app-brand__text span { font-size: 11px; color: rgba(255, 255, 255, 0.48); font-weight: 500; }

.app-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 10px 28px;
    overscroll-behavior: contain;
}

.app-nav::-webkit-scrollbar { width: 6px; }
.app-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: var(--r-full);
}

.app-nav ul { list-style: none; margin: 0; padding: 0; }

.nav-heading {
    padding: 18px 12px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

.nav-heading:first-child { padding-top: 2px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 1px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.nav-link > i:first-child {
    width: 16px;
    flex: none;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.42);
}

.nav-link span.label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.nav-link:hover > i:first-child { color: rgba(255, 255, 255, 0.7); }

.nav-link.is-active {
    background: rgba(184, 146, 58, 0.16);
    color: #f3e2b4;
}

.nav-link.is-active > i:first-child { color: var(--gold); }

.nav-link .chev {
    flex: none;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.2s var(--ease);
}

.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav-sub {
    margin: 2px 0 8px;
    padding-left: 26px;
    position: relative;
}

.nav-sub::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 4px;
    bottom: 6px;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-sub .nav-link { padding: 6px 10px; font-size: 13px; }
.nav-sub .nav-link > i:first-child { font-size: 11px; }

.app-main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1035;
    height: var(--header-h);
    flex: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.app-header__title {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-header__actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink-2);
    font-size: 15px;
}

.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

.icon-btn .badge-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--r-full);
    background: var(--danger);
    border: 2px solid var(--surface);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 12px;
    text-align: center;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    background: var(--surface);
    color: var(--ink);
}

.user-chip:hover { background: var(--surface-2); color: var(--ink); }

.user-chip__avatar {
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 650;
}

.user-chip__name { font-size: 13px; font-weight: 550; }

.app-content {
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 22px 28px 8px;
}

.app-content .container,
.app-content .container-fluid,
.app-content .page-inner {
    width: 100%;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0;
}

.app-footer {
    padding: 6px 28px 18px;
    color: var(--muted);
    font-size: 12px;
}

.nav-toggle { display: none; }

.nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(12, 31, 54, 0.5);
}

.nav-scrim.is-open { display: block; }

/* ---------- Sayfa başlığı ---------- */

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.page-head h1 { display: none; }
.page-head p { display: none; }
.page-head:not(:has(.page-head__actions)) { display: none; }

.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Kart ---------- */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
}

.card + .card { margin-top: 14px; }

.card-header {
    padding: 14px 18px;
    background: transparent;
    border-bottom: 1px solid var(--line);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    font-weight: 600;
}

.card-header h1, .card-header h2, .card-header h3,
.card-header h4, .card-header h5, .card-header h6,
.card-title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 650;
}

.card-header.bg-primary,
.card-header.bg-dark,
.card-header.bg-info,
.card-header.bg-success {
    background: transparent !important;
    color: var(--ink) !important;
}

.card-body { padding: 18px; }
.card-footer {
    padding: 12px 18px;
    background: transparent;
    border-top: 1px solid var(--line);
}

.card--flush .card-body { padding: 0; }

.stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.stat__icon {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 15px;
    background: var(--brand-soft);
    color: var(--navy);
}

.stat__label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.stat__value {
    margin: 2px 0 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat--flight .stat__icon { background: var(--info-soft); color: var(--info); }
.stat--hotel .stat__icon { background: var(--ok-soft); color: var(--ok); }
.stat--food .stat__icon { background: var(--gold-soft); color: var(--gold-hover); }
.stat--bus .stat__icon { background: var(--danger-soft); color: var(--danger); }

/* ---------- Butonlar ---------- */

.btn {
    --bs-btn-focus-box-shadow: 0 0 0 3px var(--brand-ring);
    border-radius: var(--r-sm);
    font-size: 13.5px;
    font-weight: 550;
    padding: 7px 14px;
}

.btn-sm { font-size: 12.5px; padding: 4px 10px; }
.btn-lg { font-size: 15px; padding: 10px 18px; }
.btn i { font-size: 0.92em; }

.btn-primary {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--brand-hover) !important;
    border-color: var(--brand-hover) !important;
    color: #fff !important;
}

.btn-secondary {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink-2);
}
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
    background: var(--surface-2) !important;
    border-color: var(--line-strong) !important;
    color: var(--ink) !important;
}

.btn-success { background: var(--ok); border-color: var(--ok); }
.btn-success:hover, .btn-success:focus, .btn-success:active {
    background: #15563c !important; border-color: #15563c !important;
}

.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
    background: #7f2330 !important; border-color: #7f2330 !important;
}

.btn-warning { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-warning:hover, .btn-warning:focus {
    background: var(--gold-hover) !important;
    border-color: var(--gold-hover) !important;
    color: var(--navy) !important;
}

.btn-info { background: var(--info); border-color: var(--info); color: #fff; }
.btn-info:hover, .btn-info:focus, .btn-info:active {
    background: #163f62 !important; border-color: #163f62 !important; color: #fff !important;
}

.btn-light { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
.btn-outline-primary { border-color: var(--navy); color: var(--navy); }
.btn-outline-primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.btn-link { color: var(--navy-3); font-weight: 550; text-decoration: none; }
.btn-link:hover { color: var(--navy); text-decoration: underline; }

.btn-group > .btn { border-radius: var(--r-sm); }

/* ---------- Form ---------- */

.form-label, label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 5px;
}

.form-control, .form-select, .custom-select,
input[type="text"].form-control,
input[type="date"].form-control,
input[type="datetime-local"].form-control {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13.5px;
    color: var(--ink);
    background-color: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
}

.form-control::placeholder { color: #9aa7b5; }

.form-control:focus, .form-select:focus {
    border-color: var(--navy-3);
    box-shadow: 0 0 0 3px var(--brand-ring);
}

.form-control:disabled, .form-control[readonly] {
    background: var(--surface-2);
    color: var(--muted);
}

textarea.form-control { min-height: 88px; }

.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.form-check-input:focus { box-shadow: 0 0 0 3px var(--brand-ring); border-color: var(--navy); }
.form-check-label { font-weight: 500; }

.input-group-text {
    background: var(--surface-2);
    border-color: var(--line-strong);
    color: var(--muted);
    font-size: 13px;
    border-radius: var(--r-sm);
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    min-height: 40px;
    border: 1px solid var(--line-strong) !important;
    border-radius: var(--r-sm) !important;
    padding: 4px 6px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    color: var(--ink);
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px; }
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--navy-3) !important;
    box-shadow: 0 0 0 3px var(--brand-ring);
}
.select2-dropdown {
    border-color: var(--line-strong);
    border-radius: var(--r-md);
    box-shadow: var(--sh-2);
    overflow: hidden;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--navy);
}

/* ---------- Tablo ---------- */

.table-wrap,
.table-responsive,
.dataTables_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.app-content table,
.app-content .table,
.app-content table.dataTable {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: transparent;
    --bs-table-accent-bg: transparent;
    width: 100% !important;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--ink);
    font-size: 13.5px;
    border: 0;
}

.app-content table > thead > tr:not(.dt-filters) > th,
.app-content table.dataTable > thead > tr:not(.dt-filters) > th,
.app-content .table > thead > tr:not(.dt-filters) > th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 11px 16px;
    background: var(--navy) !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 0 !important;
    vertical-align: middle;
}

.app-content table > thead > tr.dt-filters > th {
    position: static;
    padding: 8px 10px;
    background: #f3f6fa !important;
    color: var(--ink) !important;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    border: 0 !important;
    border-bottom: 1px solid #e8edf3 !important;
    vertical-align: middle;
}

.app-content table > thead > tr.dt-filters .dt-col-filter {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 400;
}

.app-content table > thead > tr.dt-filters .dt-col-filter:focus {
    outline: none;
    border-color: var(--navy-3);
    box-shadow: 0 0 0 3px var(--brand-ring);
}

.app-content table > thead > tr > th:first-child { border-radius: 0; }
.app-content table > thead > tr > th:last-child { border-radius: 0; }

.app-content table.dataTable thead .sorting,
.app-content table.dataTable thead .sorting_asc,
.app-content table.dataTable thead .sorting_desc {
    background-image: none !important;
    cursor: pointer;
}

.app-content table.dataTable thead .sorting:after,
.app-content table.dataTable thead .sorting_asc:after,
.app-content table.dataTable thead .sorting_desc:after {
    display: inline-block;
    margin-left: 6px;
    font-size: 8px;
    opacity: 0.45;
    vertical-align: 1px;
}

.app-content table.dataTable thead .sorting:after { content: "↕"; }
.app-content table.dataTable thead .sorting_asc:after { content: "↑"; opacity: 0.9; color: var(--gold); }
.app-content table.dataTable thead .sorting_desc:after { content: "↓"; opacity: 0.9; color: var(--gold); }

.app-content table > tbody > tr > td,
.app-content table.dataTable > tbody > tr > td,
.app-content .table > tbody > tr > td {
    padding: 13px 16px;
    vertical-align: middle;
    background: #fff;
    border: 0 !important;
    border-bottom: 1px solid #e8edf3 !important;
    color: var(--ink-2);
}

.app-content table > tbody > tr > td:first-child,
.app-content table.dataTable > tbody > tr > td:first-child {
    color: var(--ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.app-content table > tbody > tr > td:last-child {
    white-space: nowrap;
}

.app-content table > tbody > tr:last-child > td { border-bottom: 0 !important; }

.app-content table > tbody > tr:hover > td,
.app-content table.dataTable > tbody > tr:hover > td,
.app-content .table-hover > tbody > tr:hover > td {
    background: #f4f7fb !important;
    color: var(--ink);
}

.app-content table > tbody > tr.table-success > td,
.app-content table > tbody > tr.table-success:hover > td {
    background: var(--ok-soft) !important;
}

.app-content table > tbody > tr.table-danger > td,
.app-content table > tbody > tr.table-danger:hover > td {
    background: var(--danger-soft) !important;
}

.app-content table > tbody > tr.table-warning > td {
    background: var(--warn-soft) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: transparent;
    box-shadow: none;
}

.table-bordered,
.table-bordered > :not(caption) > * > *,
.table > :not(caption) > * > * {
    border-color: transparent;
}

.app-content table td .btn {
    margin: 0 2px 0 0;
}

.app-content table td .btn-sm {
    min-width: 32px;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 5px;
}

.card--flush .table-wrap,
.card--flush .table-responsive,
.card--flush .dataTables_wrapper {
    border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.dataTables_wrapper { padding: 0 0 8px; }

.dataTables_wrapper .row { margin: 0; align-items: center; }

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    padding: 14px 16px 12px;
    font-size: 12.5px;
    color: var(--muted);
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 12px 16px 6px;
    font-size: 12.5px;
    color: var(--muted);
}

.dataTables_wrapper .dataTables_filter { text-align: right; }

.dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    margin: 0;
}

.dataTables_wrapper .dataTables_filter input {
    min-width: 220px;
    min-height: 36px;
    margin: 0 0 0 8px;
    padding: 7px 12px 7px 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%236d7c8d' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 11px 50% no-repeat;
    color: var(--ink);
    font-size: 13px;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .form-select,
.dataTables_wrapper .form-control {
    min-height: 36px;
    margin-left: 8px;
    padding: 6px 28px 6px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background-color: var(--surface-2);
    color: var(--ink);
    font-size: 13px;
    width: auto;
    display: inline-block;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    outline: none;
    border-color: var(--navy-3);
    background-color: #fff;
    box-shadow: 0 0 0 3px var(--brand-ring);
}

.dataTables_wrapper label { margin-bottom: 0; font-weight: 500; color: var(--muted); }

.dataTables_wrapper .dataTables_paginate { text-align: right; }

.dataTables_wrapper .dataTables_paginate .paginate_button,
.pagination .page-link {
    min-width: 30px;
    height: 30px;
    margin: 0 2px;
    padding: 0 8px !important;
    border: 1px solid var(--line) !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: var(--ink-2) !important;
    font-size: 12.5px;
    line-height: 28px;
    text-align: center;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.pagination .page-link:hover {
    background: var(--surface-2) !important;
    border-color: var(--line-strong) !important;
    color: var(--ink) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.pagination .page-item.active .page-link {
    background: var(--navy) !important;
    border-color: var(--navy) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.pagination .page-item.disabled .page-link {
    opacity: 0.35;
    background: #fff !important;
    border-color: var(--line) !important;
}

.pagination { margin-bottom: 0; }

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before {
    background: var(--navy) !important;
    border: 0 !important;
    box-shadow: none !important;
    line-height: 16px !important;
}

table.dataTable ul.dtr-details { width: 100%; padding: 4px 8px; margin: 0; }
table.dataTable ul.dtr-details > li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #e8edf3;
}
table.dataTable ul.dtr-details .dtr-title { font-weight: 600; color: var(--muted); }

table.dataTable tbody tr.child td { background: var(--surface-2) !important; padding: 10px 16px 12px 48px !important; }

/* ---------- Rozet ---------- */

.status-badge, .badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--r-full);
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.6;
    white-space: nowrap;
}

.status-badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status-onayBekliyor, .status-bekliyor, .status-pending { background: var(--warn-soft); color: var(--warn); }
.status-onaylandi, .status-tamamlandi, .status-approved, .status-active { background: var(--ok-soft); color: var(--ok); }
.status-reddedildi, .status-iptal-edildi, .status-rejected, .status-inactive { background: var(--danger-soft); color: var(--danger); }
.status-iptal-istegi, .status-info { background: var(--info-soft); color: var(--info); }

.badge.bg-info { background: var(--info) !important; }
.badge.badge-info {
    background: var(--info-soft);
    color: var(--info);
    border-radius: var(--r-full);
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 650;
}

/* ---------- Modal / dropdown ---------- */

.modal-content {
    border: 0;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-3);
    overflow: hidden;
}

.modal-header { padding: 15px 18px; border-bottom: 1px solid var(--line); }
.modal-title { font-size: 15px; font-weight: 650; }
.modal-body { padding: 18px; }
.modal-footer { padding: 12px 18px; border-top: 1px solid var(--line); gap: 8px; }
.modal-backdrop.show { opacity: 0.48; }

button.close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
    opacity: 1;
}
button.close:hover { color: var(--ink); }

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-2);
    padding: 6px;
    font-size: 13.5px;
}

.dropdown-item { border-radius: 5px; padding: 8px 10px; color: var(--ink-2); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--surface-2); color: var(--ink); }
.dropdown-header { padding: 8px 10px; font-size: 12px; font-weight: 650; color: var(--ink); }
.dropdown-divider { border-color: var(--line); margin: 6px 0; }

.notif-panel { width: 360px; max-width: calc(100vw - 24px); }
.notif-list { max-height: 380px; overflow-y: auto; }

.notif-item {
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 10px;
    text-align: left;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink-2);
    white-space: normal;
}

.notif-item:hover { background: var(--surface-2); }

.notif-item__icon {
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--navy);
    font-size: 12px;
}

.notif-item__text { font-size: 13px; line-height: 1.4; }
.notif-item__time { font-size: 11.5px; color: var(--muted); }
.notif-item.is-unread .notif-item__text { font-weight: 600; color: var(--ink); }

.notif-empty {
    padding: 26px 12px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.filter-bar .field { flex: 1 1 190px; min-width: 160px; }
.filter-bar .actions { display: flex; gap: 8px; flex: 0 0 auto; }

.text-muted { color: var(--muted) !important; }
.empty-state { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty-state i { font-size: 30px; opacity: 0.45; display: block; margin-bottom: 10px; }

.swal2-popup { border-radius: var(--r-lg); font-size: 14px; }
.swal2-styled.swal2-confirm { background: var(--navy) !important; border-radius: var(--r-sm) !important; }
.swal2-styled.swal2-cancel { border-radius: var(--r-sm) !important; }

/* ---------- Giriş ---------- */

.auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
    background:
        radial-gradient(900px 480px at 80% -10%, rgba(184, 146, 58, 0.14), transparent 55%),
        linear-gradient(160deg, #081627 0%, var(--navy) 45%, #16324f 100%);
}

.auth__card {
    width: min(400px, 100%);
    background: var(--surface);
    border: 0;
    border-radius: 12px;
    box-shadow: var(--sh-3);
    padding: 36px 32px 32px;
}

.auth__card .auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 28px;
}

.auth__card .auth-logo .app-brand__mark {
    width: 44px;
    height: 44px;
    font-size: 15px;
    margin-bottom: 12px;
}

.auth__card .auth-logo strong {
    display: block;
    font-size: 18px;
    font-weight: 650;
    color: var(--navy);
}

.auth__card h2 { display: none; }
.auth__card .sub { display: none; }

.field-icon { position: relative; }
.field-icon > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 16px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    pointer-events: none;
}
.field-icon .form-control,
.field-icon input.form-control,
.field-icon input[type="text"].form-control,
.field-icon input[type="password"].form-control {
    padding-left: 42px !important;
}
.field-icon input[type="password"].form-control {
    padding-right: 42px !important;
}

.pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
}
.pw-toggle:hover { background: var(--surface-2); color: var(--ink); }

.auth__error {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 13px;
    font-weight: 550;
}
.auth__error.is-shown { display: flex; }

.btn-block-lg, .w-100-lg { width: 100%; min-height: 44px; font-size: 14.5px; }
.btn .spinner-border-sm { width: 15px; height: 15px; border-width: 2px; }

/* ---------- Duyarlı ---------- */

@media (max-width: 1199.98px) {
    .app-content { padding: 20px; }
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.24s var(--ease);
        box-shadow: none;
        z-index: 1050;
    }

    .app-sidebar.is-open {
        transform: translateX(0);
        box-shadow: var(--sh-3);
    }

    .app-main { margin-left: 0; }

    .nav-toggle {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        flex: none;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: var(--surface);
        color: var(--ink);
        font-size: 15px;
    }

    .app-header { padding: 0 16px; }
    .app-content { padding: 16px; }
    .app-footer { padding: 4px 16px 16px; }
}

@media (max-width: 767.98px) {
    .page-head h1 { font-size: 18px; }
    .card-body { padding: 14px; }
    .card-header { padding: 12px 14px; }
    .dataTables_wrapper { padding: 10px 10px 2px; }
    .dataTables_wrapper .dataTables_filter { text-align: left; }
    .dataTables_wrapper .dataTables_filter input { width: 100%; margin: 6px 0 0; }
    .filter-bar .field { flex-basis: 100%; }
    .filter-bar .actions { width: 100%; }
    .filter-bar .actions .btn { flex: 1; }
    .user-chip__name { display: none; }
    .modal-body { padding: 14px; }
    .auth__card { padding: 28px 20px 22px; }
}

@media print {
    .app-sidebar, .app-header, .app-footer, .nav-toggle, .nav-scrim { display: none !important; }
    .app-main { margin-left: 0; }
    .card { box-shadow: none; border-color: #ddd; }
}
