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

:root {
    /* Accent palette */
    --accent: #0891b2;
    --accent-hover: #0e7490;
    --accent-active: #155e75;
    --accent-soft: rgba(8,145,178,.08);
    --accent-softer: rgba(8,145,178,.04);
    --accent-ring: rgba(8,145,178,.18);
    --accent-light: #ecfeff;
    --accent-gradient: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);

    /* Neutral palette (slate-based) */
    --gray-25: #fcfcfd;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-150: #eaeef3;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic */
    --success: #16a34a;
    --warning: #f59e0b;
    --danger:  #ef4444;
    --info:    #0891b2;

    /* Surfaces & shells */
    --topbar-bg: #ffffff;
    --sidebar-bg: #fafbfc;       /* eskiden dark navy idi */
    --sidebar-bg-dark: #0f172a;  /* legacy reference */
    --body-bg: #f4f6f9;
    --surface: #ffffff;

    /* Layout */
    --sidebar-w: 230px;
    --topbar-h: 56px;

    /* Shadows (Stripe-esque) */
    --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
    --shadow-sm: 0 1px 3px rgba(15,23,42,.04), 0 1px 2px rgba(15,23,42,.03);
    --shadow-md: 0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
    --shadow-lg: 0 12px 32px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.06);
    --card-shadow: var(--shadow-sm);
    --card-hover-shadow: var(--shadow-md);

    /* Radius */
    --radius: 10px;
    --radius-sm: 8px;
    --radius-lg: 14px;

    /* Transitions */
    --t-fast: 120ms cubic-bezier(.4,0,.2,1);
    --t-base: 180ms cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

html { font-size: 14px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--body-bg);
    margin: 0;
    overflow-x: hidden;
    color: var(--gray-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    letter-spacing: -.005em;
}

/* ======== LOGIN ======== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 40%, #0891b2 100%);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}
.login-wrapper::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8,145,178,.15) 0%, transparent 70%);
    top: -200px; right: -200px;
}
.login-wrapper::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,.1) 0%, transparent 70%);
    bottom: -100px; left: -100px;
}
.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0,0,0,.25);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}
.login-logo-img {
    margin-bottom: .75rem;
}
.login-logo-img img {
    max-width: 240px;
    height: auto;
}
.login-card p {
    font-size: .85rem;
    margin-bottom: 1.75rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: .3px;
}
.login-card .form-control {
    border-radius: var(--radius-sm);
    padding: .6rem .85rem;
    border-color: #e2e8f0;
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s;
}
.login-card .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(8,145,178,.12);
}
.login-card .input-group-text {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
}
.login-card .btn-primary {
    padding: .65rem;
    font-weight: 600;
    font-size: .95rem;
    border-radius: var(--radius-sm);
    letter-spacing: .3px;
}

/* ======== TOPBAR (light, modern SaaS) ======== */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: var(--topbar-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    z-index: 1030;
    border-bottom: 1px solid var(--gray-150);
    box-shadow: var(--shadow-xs);
}
.topbar-logo {
    height: 26px;
    width: auto;
    margin-left: .65rem;
    /* Logo orijinal renkleriyle gözüksün (filter kaldırıldı) */
}
.topbar-right { display: flex; align-items: center; gap: .25rem; }
.topbar .btn-link {
    text-decoration: none;
    padding: .45rem .55rem;
    transition: background var(--t-fast), color var(--t-fast);
    color: var(--gray-600) !important;
    border-radius: var(--radius-sm);
}
.topbar .btn-link:hover {
    background: var(--gray-100);
    color: var(--gray-900) !important;
    opacity: 1;
}
.topbar .btn-link i { font-size: 1.05rem; }
.topbar .dropdown-toggle::after { display: none; }
.topbar #user-name { color: var(--gray-700); font-weight: 500; }

.notification-badge {
    position: absolute;
    top: 2px; right: 2px;
    font-size: .58rem;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--topbar-bg);
    background: var(--danger);
    color: #fff;
}

/* ======== SIDEBAR (light, refined) ======== */
.sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--gray-150);
    padding: .85rem 0;
    z-index: 1020;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .5rem .75rem;
    margin: 1px .55rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background var(--t-fast), color var(--t-fast);
    position: relative;
}
.sidebar-link:hover {
    color: var(--gray-900);
    background: var(--gray-100);
}
.sidebar-link.active {
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 600;
}
.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: -.55rem;
    top: 50%; transform: translateY(-50%);
    width: 3px; height: 60%;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}
.sidebar-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--gray-400);
    transition: color var(--t-fast);
}
.sidebar-link:hover i { color: var(--gray-600); }
.sidebar-link.active i { color: var(--accent); }

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(2px);
    z-index: 1015;
}

/* ======== MAIN ======== */
.main-content {
    margin-left: var(--sidebar-w);
    margin-top: var(--topbar-h);
    padding: 1.1rem 1.25rem;
    min-height: calc(100vh - var(--topbar-h));
}

/* ======== VIEWS ======== */
.view { display: none; }
.view.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-header {
    margin-bottom: 1.1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--gray-150);
}
.page-header h5 {
    margin: 0;
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.05rem;
    letter-spacing: -.3px;
    display: flex;
    align-items: center;
}
.page-header h5 i { color: var(--gray-400); }

/* ======== STAT CARDS ======== */
/* Dashboard Stats */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: .65rem;
    margin-bottom: .85rem;
}
.dash-stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: .9rem .8rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--gray-150);
    cursor: pointer;
    transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
    position: relative;
    overflow: hidden;
}
.dash-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--gray-200);
}
.dash-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 20%; right: 20%;
    height: 2px;
    border-radius: 2px;
    background: transparent;
    transition: all .2s;
}
.dash-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
}
.dash-stat-card:hover::after {
    left: 0; right: 0;
    background: var(--accent);
}
.dash-stat-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: .95rem;
    margin: 0 auto .4rem;
}
.dash-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -.4px;
}
.dash-stat-label {
    font-size: .65rem;
    color: #94a3b8;
    margin-top: .25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .35px;
}
.dash-stat-file:not(.d-none) ~ .dash-stat-card { }
.dash-stat-file .dash-stat-value { color: #ea580c; }
.dash-stat-card.active {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(99,102,241,.18);
    border-color: var(--accent);
}
.dash-stat-card.active::after {
    left: 0; right: 0;
    background: var(--accent);
    height: 3px;
}

/* Stat Detail Panel */
.dash-stat-detail {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(99,102,241,.12);
    margin-bottom: 1rem;
    overflow: hidden;
    animation: slideDown .2s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.dash-stat-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.dash-stat-detail-header h6 {
    margin: 0;
    font-size: .82rem;
    font-weight: 700;
    color: #334155;
}
#dash-stat-detail-body {
    max-height: 340px;
    overflow-y: auto;
}
.dash-detail-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background .12s;
}
.dash-detail-row:last-child { border-bottom: none; }
.dash-detail-row:hover { background: #f8fafc; }
.dash-detail-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem;
    flex-shrink: 0;
}
.dash-detail-icon.flight { background: #dbeafe; color: #2563eb; }
.dash-detail-icon.hotel { background: #fef3c7; color: #d97706; }
.dash-detail-icon.car { background: #d1fae5; color: #059669; }
.dash-detail-info {
    flex: 1;
    min-width: 0;
}
.dash-detail-name {
    font-size: .8rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-detail-sub {
    font-size: .72rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-detail-right {
    text-align: right;
    flex-shrink: 0;
}
.dash-detail-amount {
    font-size: .8rem;
    font-weight: 700;
    color: #1e293b;
}
.dash-detail-date {
    font-size: .75rem;
    font-weight: 600;
    color: #475569;
}
.dash-detail-paid {
    font-size: .68rem;
    color: #94a3b8;
}
.dash-detail-status {
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
}
.dash-detail-status.odenmedi { color: #ef4444; }
.dash-detail-status.kismen { color: #f59e0b; }
.dash-detail-status.odendi { color: #22c55e; }
.dash-detail-empty {
    text-align: center;
    padding: 1.5rem;
    color: #94a3b8;
    font-size: .82rem;
}

/* ======== URGENT CHECK-IN WARNING ======== */
.urgent-checkin-box {
    background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 50%, #2563eb 100%);
    border-radius: .75rem;
    margin-bottom: .75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(37,99,235,.35);
    animation: urgentSlideIn .35s ease-out;
}
.urgent-checkin-header {
    display: flex;
    align-items: center;
    padding: .75rem 1rem;
    color: #fff;
    font-size: .95rem;
    background: rgba(0,0,0,.15);
    gap: .35rem;
}
.ci-done-btn {
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    border-radius: 6px;
    padding: .2rem .5rem;
    font-size: .8rem;
    cursor: pointer;
    flex-shrink: 0;
}
.ci-done-btn:hover { background: rgba(255,255,255,.35); }
.ci-pulse { background: #93c5fd; }

/* ======== URGENT OPTION WARNING ======== */
.urgent-opsiyon-box {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 50%, #dc2626 100%);
    border-radius: .75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(220,38,38,.35);
    animation: urgentSlideIn .35s ease-out;
}
@keyframes urgentSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.urgent-opsiyon-header {
    display: flex;
    align-items: center;
    padding: .75rem 1rem;
    color: #fff;
    font-size: .95rem;
    background: rgba(0,0,0,.15);
    gap: .35rem;
}
.urgent-count {
    font-size: .78rem;
    background: rgba(255,255,255,.2);
    padding: .1rem .55rem;
    border-radius: 999px;
    font-weight: 600;
}
.urgent-pulse {
    width: 10px; height: 10px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    animation: urgentPulse 1.2s ease-in-out infinite;
}
@keyframes urgentPulse {
    0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
    50%      { opacity: .9; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}
.urgent-opsiyon-list { padding: .4rem 0; }
.urgent-opsiyon-item {
    display: flex;
    align-items: center;
    padding: .6rem 1rem;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
    gap: .4rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.urgent-opsiyon-item:last-child { border-bottom: none; }
.urgent-opsiyon-item:hover { background: rgba(0,0,0,.15); }
.uoi-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.uoi-title { font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uoi-company { font-size: .76rem; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ======== DAILY BLOCK ======== */
.daily-totals {
    padding: .55rem .9rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.daily-totals .dt-row {
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr;
    gap: .75rem;
    align-items: center;
}
.daily-totals .dt-cur {
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    background: #6366f1;
    padding: .15rem .5rem;
    border-radius: 999px;
    letter-spacing: .5px;
}
.daily-totals .dt-cell {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.daily-totals .dt-label {
    font-size: .65rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: .4px;
}
.daily-totals .dt-val {
    font-size: .92rem;
    font-weight: 700;
    margin-top: .12rem;
}
.daily-totals .dt-cost { color: #475569; }
.daily-totals .dt-sale { color: #0284c7; }
.daily-totals .dt-profit-pos { color: #059669; }
.daily-totals .dt-profit-neg { color: #dc2626; }
@media (max-width: 575.98px) {
    .daily-totals .dt-row { grid-template-columns: 1fr 1fr 1fr; }
    .daily-totals .dt-cur { grid-column: 1 / -1; justify-self: start; }
}

.daily-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background .12s;
}
.daily-item:last-child { border-bottom: none; }
.daily-item:hover { background: #f8fafc; }
.daily-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}
.daily-icon.flight { background: #dbeafe; color: #2563eb; }
.daily-icon.hotel { background: #fef3c7; color: #d97706; }
.daily-icon.car { background: #d1fae5; color: #059669; }
.daily-info { flex: 1; min-width: 0; }
.daily-title {
    font-size: .82rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.daily-sub {
    font-size: .72rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.daily-right { text-align: right; flex-shrink: 0; }
.daily-amount { font-size: .8rem; font-weight: 700; color: #1e293b; }
.daily-tag {
    font-size: .62rem;
    font-weight: 600;
    padding: .1rem .4rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .3px;
    vertical-align: middle;
}
.daily-tag-flight { background: #dbeafe; color: #2563eb; }
.daily-tag-hotel { background: #fef3c7; color: #92400e; }
.daily-tag-car { background: #d1fae5; color: #065f46; }
#daily-title { font-size: .88rem; }
#daily-title small { font-weight: 400; }

.dash-quick-btn {
    background: var(--accent-gradient);
    color: #fff !important;
    border: none;
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .65rem;
    border-radius: 8px;
    transition: all .2s;
}
.dash-quick-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(8,145,178,.3);
}

.dash-card {
    height: 100%;
}
.dash-card .card-header {
    background: transparent;
    padding: .55rem .85rem;
    border-bottom: 1px solid #f1f5f9;
}
.dash-card .card-header h6 {
    font-size: .78rem;
    font-weight: 700;
}

/* Dashboard upcoming items */
.dash-upcoming-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem 1rem;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
    transition: background .15s;
}
.dash-upcoming-item:last-child { border-bottom: none; }
.dash-upcoming-item:hover { background: #f8fafc; }
.dash-upcoming-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; flex-shrink: 0;
}
.dash-upcoming-icon.flight { background: #dbeafe; color: #3b82f6; }
.dash-upcoming-icon.hotel { background: #fef3c7; color: #f59e0b; }
.dash-upcoming-icon.car { background: #d1fae5; color: #10b981; }
.dash-upcoming-body { flex: 1; min-width: 0; }
.dash-upcoming-title {
    font-size: .8rem; font-weight: 600; color: #0f172a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-upcoming-sub {
    font-size: .68rem; color: #94a3b8;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-upcoming-right { text-align: right; flex-shrink: 0; }
.dash-upcoming-date { font-size: .72rem; font-weight: 500; color: #64748b; }
.dash-upcoming-badge {
    font-size: .58rem; font-weight: 700; padding: 2px 6px;
    border-radius: 4px; display: inline-block; margin-top: 2px;
}
.dash-upcoming-badge.urgent { background: #fef2f2; color: #dc2626; }
.dash-upcoming-badge.soon { background: #fefce8; color: #ca8a04; }
.dash-upcoming-badge.ok { background: #f0fdf4; color: #16a34a; }

/* Dashboard missing files */
.dash-missing-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 1rem;
    border-bottom: 1px solid #f8fafc;
    transition: background .15s;
}
.dash-missing-item:last-child { border-bottom: none; }
.dash-missing-item:hover { background: #fef2f2; }
.dash-missing-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; flex-shrink: 0;
    background: #fee2e2; color: #dc2626;
}
.dash-missing-body { flex: 1; min-width: 0; }
.dash-missing-title {
    font-size: .78rem; font-weight: 600; color: #0f172a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-missing-sub {
    font-size: .65rem; color: #94a3b8;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-missing-btn {
    font-size: .65rem; font-weight: 600;
    padding: .2rem .5rem; border-radius: 6px;
    background: #fee2e2; color: #dc2626;
    border: 1px solid #fecaca;
    cursor: pointer; transition: all .15s;
    white-space: nowrap; flex-shrink: 0;
}
.dash-missing-btn:hover {
    background: #dc2626; color: #fff;
}
.dash-card .card-body {
    max-height: 400px;
    overflow-y: auto;
}
.dash-empty {
    text-align: center; padding: 2rem 1rem;
    color: #94a3b8; font-size: .82rem;
}
.dash-empty i { font-size: 1.5rem; display: block; margin-bottom: .4rem; opacity: .5; }

@media (max-width: 767.98px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-stat-value { font-size: 1.4rem; }
    .dash-quick-btn span { display: none; }
}

/* ======== SALES MODULE ======== */
.sale-type-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 6px;
    font-size: .75rem;
}
.sale-type-chip.flight { background: #dbeafe; color: #2563eb; }
.sale-type-chip.hotel { background: #fef3c7; color: #d97706; }
.sale-type-chip.car { background: #d1fae5; color: #059669; }

/* Sales list styles */
.sale-list-company {
    font-size: .85rem;
    font-weight: 600;
    color: #1e293b;
}
.sale-list-pnr {
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .3px;
    margin-top: .1rem;
}
.sale-list-cost {
    font-size: .78rem;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}
.sale-list-sale {
    font-size: .85rem;
    color: var(--accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-top: .1rem;
}
.sale-list-label {
    font-size: .65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .3px;
    font-weight: 600;
}

.sale-header-card {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid rgba(99,102,241,.1);
}
.sale-pnr {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: .5px;
}
.sale-stat-label {
    font-size: .68rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}
.sale-stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.sale-service-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 160px 170px auto;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background .12s;
}
.sale-service-item:last-child { border-bottom: none; }
.sale-service-item:hover { background: #f8fafc; }
.sale-svc-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
}
.sale-svc-icon.flight { background: #dbeafe; color: #2563eb; }
.sale-svc-icon.hotel { background: #fef3c7; color: #d97706; }
.sale-svc-icon.car { background: #d1fae5; color: #059669; }
.sale-svc-info { min-width: 0; }
.sale-svc-title {
    font-size: .85rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sale-svc-sub {
    font-size: .72rem;
    color: #94a3b8;
    margin-top: .15rem;
}
.sale-svc-col {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.sale-svc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 22px;
}
.sale-svc-label {
    font-size: .68rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .3px;
}
.sale-svc-price-col .sale-price-cost,
.sale-svc-price-col .sale-price-sale {
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.sale-svc-price-col .sale-price-cost { color: #475569; }
.sale-svc-price-col .sale-price-sale { color: var(--accent); }
.sale-svc-status-col .sale-svc-row { justify-content: flex-start; }
.sale-svc-actions {
    display: flex;
    gap: .25rem;
}

@media (max-width: 768px) {
    .sale-service-item {
        grid-template-columns: 36px 1fr auto;
        grid-template-rows: auto auto auto;
        gap: .5rem;
    }
    .sale-svc-info { grid-column: 2; grid-row: 1; }
    .sale-svc-actions { grid-column: 3; grid-row: 1; }
    .sale-svc-price-col { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: 1.2rem; flex-wrap: wrap; }
    .sale-svc-status-col { grid-column: 1 / -1; grid-row: 3; flex-direction: row; gap: .4rem; flex-wrap: wrap; }
    .sale-svc-price-col .sale-svc-row { flex: 0 0 auto; }
    .sale-svc-status-col .sale-svc-row { min-height: 0; }
}

.sale-svc-prices {
    font-size: .75rem;
    margin-top: .15rem;
}
.sale-svc-pay {
    display: inline-flex;
    align-items: center;
    padding: .15rem .5rem;
    border-radius: 10px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    vertical-align: middle;
    margin-left: .3rem;
}
.sale-svc-pay.paid { background: #dcfce7; color: #15803d; cursor: help; }
.sale-svc-pay.partial { background: #fef3c7; color: #b45309; cursor: help; }
.sale-svc-pay.unpaid { background: #fee2e2; color: #b91c1c; cursor: help; }

/* Payment tooltip */
.tooltip.pay-tt { --bs-tooltip-max-width: 320px; }
.tooltip.pay-tt .tooltip-inner {
    max-width: 320px;
    padding: .65rem .8rem;
    text-align: left;
    background: #1e293b;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.pay-tt-summary {
    font-size: .78rem;
    line-height: 1.5;
}
.pay-tt-summary .pay-tt-rem { color: #fbbf24; font-weight: 600; }
.pay-tt-label {
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: .65rem;
    letter-spacing: .3px;
    margin-right: .3rem;
}
.pay-tt-hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,.15);
    margin: .4rem 0;
}
.pay-tt-list { font-size: .72rem; }
.pay-tt-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: .35rem;
    padding: .25rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.pay-tt-row:last-child { border-bottom: none; }
.pay-tt-date { color: #cbd5e1; font-variant-numeric: tabular-nums; }
.pay-tt-amount { color: #4ade80; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-tt-method {
    grid-column: 1 / -1;
    color: #94a3b8;
    font-size: .68rem;
    margin-top: .1rem;
}
.sale-svc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin-top: .25rem;
}
.sale-svc-file {
    display: inline-flex;
    align-items: center;
    padding: .15rem .5rem;
    border-radius: 10px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.sale-svc-file.ok { background: #dbeafe; color: #1e40af; }
.sale-svc-file.partial { background: #fef3c7; color: #b45309; }
.sale-svc-file.missing { background: #fee2e2; color: #b91c1c; }

.sale-svc-option {
    display: inline-flex;
    align-items: center;
    padding: .15rem .5rem;
    border-radius: 10px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.sale-svc-option.option-warn { background: #ede9fe; color: #6d28d9; }
.sale-svc-option.option-soon { background: #fef3c7; color: #b45309; }
.sale-svc-option.option-urgent { background: #fed7aa; color: #c2410c; }
.sale-svc-option.option-expired { background: #fee2e2; color: #991b1b; }
.sale-svc-checkin {
    display: inline-flex;
    align-items: center;
    padding: .15rem .5rem;
    border-radius: 10px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.sale-svc-checkin.done    { background: #d1fae5; color: #065f46; }
.sale-svc-checkin.urgent  { background: #fbbf24; color: #78350f; animation: ciPulse .9s ease-in-out infinite; }
.sale-svc-checkin.pending { background: #e0f2fe; color: #075985; }
@keyframes ciPulse {
    0%,100% { opacity: 1; }
    50%      { opacity: .7; }
}
.sale-price-label { color: #94a3b8; font-weight: 500; }
.sale-price-cost { color: #64748b; font-weight: 600; }
.sale-price-sale { color: var(--accent); font-weight: 700; }
.sale-price-sep { color: #cbd5e1; }
.sale-svc-actions { flex-shrink: 0; }

/* Sale company picker */
.sale-company-picker { position: relative; }
.sale-company-dd {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    max-height: 260px;
    overflow-y: auto;
}
.sale-dd-item {
    padding: .6rem .9rem;
    cursor: pointer;
    font-size: .85rem;
    transition: background .08s;
    border-bottom: 1px solid #f8fafc;
}
.sale-dd-item:last-child { border-bottom: none; }
.sale-dd-item:hover { background: #eef2ff; color: var(--accent); }
.sale-dd-empty {
    padding: .8rem;
    text-align: center;
    color: #94a3b8;
    font-size: .82rem;
}
.selected-company-tag {
    display: flex;
    align-items: center;
    padding: .6rem .9rem;
    background: #eef2ff;
    border: 1px solid rgba(99,102,241,.2);
    border-radius: var(--radius);
    font-size: .88rem;
    font-weight: 600;
    color: #4338ca;
}
.selected-company-tag .btn-close { width: .55rem; height: .55rem; }

.sidebar-link-muted {
    opacity: .45;
    font-size: .82rem;
}
.sidebar-link-muted:hover { opacity: .7; }
.cursor-pointer { cursor: pointer; }

/* Payment service chip */
.payment-svc-chip {
    display: inline-flex;
    align-items: center;
    padding: .2rem .55rem;
    border-radius: 12px;
    font-size: .72rem;
    font-weight: 600;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.payment-svc-chip.flight { background: #dbeafe; color: #1e40af; }
.payment-svc-chip.hotel { background: #fef3c7; color: #92400e; }
.payment-svc-chip.car { background: #d1fae5; color: #065f46; }

/* Merge target options */
.merge-target-option {
    padding: .65rem .85rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    margin-bottom: .4rem;
    transition: all .15s;
}
.merge-target-option:hover { border-color: var(--accent); background: #f8fafc; }
.merge-target-option:has(input:checked) {
    border-color: var(--accent);
    background: #eef2ff;
}

/* Legacy compat */
.stat-card { display: none; }
.quick-action-card { display: none; }

/* ======== CARDS & TABLES (Stripe/Notion polish) ======== */
.card {
    border: 1px solid var(--gray-150);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    background: var(--surface);
    transition: box-shadow var(--t-base);
}
.card:not(.form-panel) { overflow: hidden; }
.card-body { padding: .9rem 1rem; }
.card-header {
    background: var(--surface);
    border-bottom: 1px solid var(--gray-150);
    padding: .6rem .95rem;
    border-radius: var(--radius) var(--radius) 0 0 !important;
}
.card-header h6 {
    font-weight: 600;
    font-size: .82rem;
    margin: 0;
    color: var(--gray-900);
    letter-spacing: -.1px;
}

.table { font-size: .82rem; margin-bottom: 0; color: var(--gray-700); }
.table th {
    font-weight: 600;
    color: var(--gray-500);
    font-size: .67rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--gray-150);
    padding: .55rem .8rem;
    white-space: nowrap;
    background: var(--gray-50);
}
.table td {
    padding: .55rem .8rem;
    vertical-align: middle;
    border-bottom-color: var(--gray-100);
    color: var(--gray-800);
}
.table-sm th, .table-sm td { padding: .4rem .65rem; }
.table-hover tbody tr {
    transition: background var(--t-fast);
}
.table-hover tbody tr:hover { background: var(--gray-50); }
.table-hover tbody tr {
    transition: background .12s;
}
.table-hover tbody tr:hover { background: #f0f9ff; }

/* ======== BADGES ======== */
.badge {
    font-weight: 600;
    font-size: .7rem;
    padding: .28em .65em;
    border-radius: 6px;
    letter-spacing: .15px;
    line-height: 1.35;
}
.badge-aktif      { background: #dbeafe; color: #1d4ed8; }
.badge-onaylandi  { background: #dcfce7; color: #15803d; }
.badge-iptal      { background: #fee2e2; color: #dc2626; }
.badge-yaklasan   { background: #fef3c7; color: #b45309; }
.badge-gecmis     { background: #fecaca; color: #991b1b; }

/* Bootstrap badge renkleri yumuşatıldı (soft semantic) */
.badge.bg-success  { background: #dcfce7 !important; color: #15803d !important; }
.badge.bg-danger   { background: #fee2e2 !important; color: #dc2626 !important; }
.badge.bg-warning  { background: #fef3c7 !important; color: #b45309 !important; }
.badge.bg-info     { background: #cffafe !important; color: #155e75 !important; }
.badge.bg-primary  { background: var(--accent-soft) !important; color: var(--accent) !important; }
.badge.bg-secondary{ background: var(--gray-100) !important; color: var(--gray-700) !important; }

/* ======== NOTIFICATIONS PANEL ======== */
.notifications-panel {
    position: fixed;
    top: var(--topbar-h);
    right: .5rem;
    width: 360px;
    max-height: 70vh;
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
    z-index: 1050;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
}
.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .85rem 1.15rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fafbfc;
}
.notif-header h6 { font-weight: 600; }
.notif-list { max-height: 60vh; overflow-y: auto; }
.notif-item {
    padding: .85rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background .15s;
}
.notif-item:hover { background: #f0f9ff; }
.notif-item.unread {
    background: #eff6ff;
    border-left: 3px solid var(--accent);
}
.notif-item .notif-msg { font-size: .84rem; color: #1e293b; font-weight: 500; }
.notif-item .notif-time { font-size: .7rem; color: #94a3b8; margin-top: 3px; }

/* ======== INSTALL BANNER ======== */
.install-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--accent-gradient);
    color: #fff;
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    font-size: .85rem;
    z-index: 1060;
    font-weight: 500;
}

/* ======== BUTTONS ======== */
.btn-primary {
    background: var(--accent-gradient);
    border: none;
    font-weight: 600;
    transition: opacity .2s, transform .1s;
}
.btn-primary:hover {
    background: var(--accent-gradient);
    opacity: .9;
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
}
.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ======== ACTION BUTTONS ======== */
.btn-action {
    padding: .25rem .45rem;
    font-size: .8rem;
    border-radius: 8px;
    transition: all .15s;
}
.btn-action:hover { transform: scale(1.1); }

/* ======== FORM CONTROLS ======== */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: #e2e8f0;
    transition: border-color .2s, box-shadow .2s;
    font-size: .88rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(8,145,178,.1);
}
.form-label {
    font-size: .82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: .35rem;
}

/* ======== SORTABLE TABLE HEADERS ======== */
.sortable {
    cursor: pointer;
    user-select: none;
    transition: color .15s;
}
.sortable:hover { color: var(--accent) !important; }
.sortable i { font-size: .6rem; opacity: .4; margin-left: 2px; vertical-align: middle; }
.sortable.sort-asc i, .sortable.sort-desc i { opacity: 1; color: var(--accent); }

/* ======== UPDATE BANNER ======== */
.update-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    font-size: .88rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(5,150,105,.3);
    animation: slideDown .4s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }
.update-banner .btn { font-weight: 700; }

/* ======== RESPONSIVE ======== */
@media (max-width: 767.98px) {
    :root {
        --topbar-h: 52px;
    }
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: .75rem;
    }
    .topbar {
        padding: 0 .65rem;
    }
    .topbar-logo {
        height: 24px;
        margin-left: .35rem;
    }
    .notifications-panel {
        width: 100%;
        right: 0;
        border-radius: 0;
        max-height: 80vh;
    }

    /* Stat cards */
    .stat-card {
        padding: .7rem;
        gap: .5rem;
        border-radius: var(--radius-sm);
    }
    .stat-value { font-size: 1.15rem; }
    .stat-label { font-size: .68rem; }
    .stat-icon { width: 38px; height: 38px; font-size: 1rem; border-radius: 9px; }

    /* Tables - card layout on mobile */
    .table th, .table td {
        padding: .45rem .5rem;
        font-size: .76rem;
    }
    #user-name { display: none; }
    .page-header h5 { font-size: 1rem; }
    .page-header { margin-bottom: .75rem; }

    /* Cards */
    .card { border-radius: var(--radius-sm); }
    .card-header { padding: .65rem .85rem; }

    /* Form panels */
    .form-panel .card-body { padding: .85rem; }
    .form-panel .card-header { padding: .5rem .85rem; }
    .form-label { font-size: .78rem; }
    .form-control, .form-select { font-size: .84rem; padding: .45rem .7rem; }

    /* Buttons */
    .btn { font-size: .84rem; }
    .btn-lg { font-size: .9rem !important; padding: .55rem 1.25rem !important; }

    /* Install/Update banner */
    .install-banner, .update-banner {
        font-size: .8rem;
        padding: .65rem .75rem;
    }

    /* Modals */
    .modal-dialog { margin: .5rem; }
    .modal-content { border-radius: var(--radius-sm); }
    .modal-body { padding: 1rem; }

    /* Dropdown */
    .dropdown-menu { font-size: .84rem; }

    /* Reminder freq */
    .reminder-freq-option span { padding: .35rem .65rem; font-size: .76rem; }

    /* Currency group */
    #currency-group .btn-outline-secondary { padding: .3rem .6rem; font-size: .76rem; }

    /* Filter row */
    .card-body.py-2 { padding: .5rem .75rem !important; }

    /* Kalan badge */
    .kalan-badge { font-size: .68rem; padding: 2px 7px; }

    /* Log entries */
    .log-entry { padding: .45rem .65rem; font-size: .76rem; }

    /* Wider sidebar links */
    .sidebar-link { padding: .8rem 1.1rem; font-size: .92rem; }
}

/* Small phones */
@media (max-width: 374px) {
    .stat-card { flex-direction: column; text-align: center; gap: .35rem; }
    .stat-icon { width: 34px; height: 34px; font-size: .9rem; }
    .stat-value { font-size: 1rem; }
    .login-logo-img img { max-width: 180px; }
    .login-card { padding: 2rem 1.25rem; }
}

/* ======== KALAN GUN ======== */
.kalan-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .73rem;
    font-weight: 600;
    letter-spacing: .2px;
}
.kalan-danger { background: #fee2e2; color: #dc2626; }
.kalan-warning { background: #fef3c7; color: #b45309; }
.kalan-ok { background: #dbeafe; color: #1d4ed8; }

/* ======== FORM PANELS ======== */
.form-panel {
    height: 100%;
    border: 1px solid var(--gray-150) !important;
    transition: border-color var(--t-base), box-shadow var(--t-base);
    border-radius: var(--radius) !important;
}
.form-panel:hover {
    border-color: var(--gray-200) !important;
    box-shadow: var(--shadow-sm);
}
.form-panel .card-header {
    background: var(--gray-50);
    padding: .55rem .95rem;
    border-bottom: 1px solid var(--gray-150);
}
.form-panel .card-header h6 {
    font-size: .8rem;
    font-weight: 600;
    color: var(--gray-700);
}
.form-panel .card-body {
    padding: .9rem .95rem;
}

/* ======== CURRENCY TOGGLE ======== */
#currency-group .btn-outline-secondary {
    font-size: .82rem;
    padding: .4rem .85rem;
    font-weight: 600;
    border-radius: 8px !important;
}
#currency-group .btn-check:checked + .btn-outline-secondary {
    background: var(--accent-gradient);
    border-color: var(--accent);
    color: #fff;
}

/* ======== REMINDER FREQUENCY ======== */
.reminder-freq-group {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.reminder-freq-option {
    cursor: pointer;
    margin: 0;
}
.reminder-freq-option input { display: none; }
.reminder-freq-option span {
    display: inline-block;
    padding: .45rem .9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 500;
    color: #64748b;
    background: #fff;
    transition: all .2s;
}
.reminder-freq-option span i { margin-right: 4px; }
.reminder-freq-option input:checked + span {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent-hover);
    font-weight: 600;
}
.reminder-freq-option:hover span {
    border-color: var(--accent);
    background: #f0fdfa;
}

/* ======== FLATPICKR OVERRIDES ======== */
.flatpickr-input {
    background: #fff !important;
    cursor: pointer;
}
.flatpickr-calendar {
    border-radius: var(--radius) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,.15) !important;
    border: 1px solid rgba(0,0,0,.06) !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
}
.flatpickr-day.today {
    border-color: var(--accent) !important;
}
.flatpickr-day.today:hover {
    background: var(--accent-light) !important;
}
.flatpickr-months .flatpickr-month {
    border-radius: var(--radius) var(--radius) 0 0;
}

/* ======== MODAL ======== */
.modal-content {
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 25px 60px rgba(0,0,0,.2);
}
.modal-header {
    border-bottom-color: #e2e8f0;
    padding: 1rem 1.25rem;
}
.modal-title { font-weight: 700; font-size: 1rem; }
.modal-body { padding: 1.25rem; }
.modal-footer { border-top-color: #e2e8f0; padding: .85rem 1.25rem; }

/* ======== TOAST ======== */
.toast {
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,.15) !important;
}

/* ======== DROPDOWN ======== */
.dropdown-menu {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    padding: .35rem;
}
.dropdown-item {
    border-radius: 8px;
    font-size: .88rem;
    padding: .5rem .75rem;
}
.dropdown-item:hover { background: #f0f9ff; }

/* ======== EMPTY STATE ======== */
.empty-state {
    text-align: center;
    padding: 2.5rem;
    color: #94a3b8;
}
.empty-state i { font-size: 2.5rem; display: block; margin-bottom: .75rem; opacity: .5; }

/* ======== NOTIFICATION HOUR GRID ======== */
.notif-hour-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .4rem;
}
.hour-option { cursor: pointer; margin: 0; }
.hour-option input { display: none; }
.hour-option span {
    display: block;
    text-align: center;
    padding: .45rem .25rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 500;
    color: #64748b;
    background: #fff;
    transition: all .15s;
}
.hour-option input:checked + span {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent-hover);
    font-weight: 700;
}
.hour-option:hover span {
    border-color: var(--accent);
    background: #f0fdfa;
}
@media (max-width: 767.98px) {
    .notif-hour-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ======== LOG ENTRIES ======== */
.log-entry {
    padding: .55rem .85rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: .8rem;
    line-height: 1.4;
}
.log-entry:last-child { border-bottom: none; }
.log-action {
    color: var(--accent);
    font-weight: 500;
}
.log-time {
    font-size: .68rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* ======== SIDEBAR EXTRAS ======== */
.sidebar-divider {
    height: 1px;
    background: var(--gray-200);
    margin: .65rem .8rem;
}
.sidebar-label {
    padding: .5rem 1rem .25rem;
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--gray-400);
    font-weight: 700;
}
.sidebar-link-muted {
    color: var(--gray-400) !important;
    font-size: .78rem !important;
}
.sidebar-link-muted:hover { color: var(--gray-600) !important; }
.sidebar-link-muted:hover { opacity: .8; }

/* ======== QUICK ACTION CARDS ======== */
.quick-action-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    border: 2px solid transparent;
    transition: all .25s;
}
.quick-action-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}
.quick-action-card i {
    font-size: 2rem;
    display: block;
    margin-bottom: .5rem;
    color: var(--accent);
}
.quick-action-card span {
    font-size: .88rem;
    font-weight: 600;
    color: #334155;
}
@media (max-width: 767.98px) {
    .quick-action-card { padding: 1rem .5rem; }
    .quick-action-card i { font-size: 1.5rem; }
    .quick-action-card span { font-size: .78rem; }
}

/* ======== WIZARD CONTEXT BAR (sticky firma+kişi) ======== */
.wiz-context-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .65rem 1rem;
    background: linear-gradient(90deg, rgba(8,145,178,.07), rgba(34,197,94,.07));
    border: 1px solid rgba(8,145,178,.18);
    border-radius: 10px;
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(6px);
}
.wiz-context-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    flex: 1;
    min-width: 0;
}
.wiz-context-item i { font-size: 1rem; flex-shrink: 0; }
.wiz-context-label {
    color: var(--muted, #6b7280);
    font-weight: 500;
}
.wiz-context-value {
    font-weight: 600;
    color: var(--text, #111827);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wiz-context-divider {
    width: 1px;
    height: 24px;
    background: rgba(0,0,0,.08);
    flex-shrink: 0;
}
@media (max-width: 575px) {
    .wiz-context-bar { flex-direction: column; align-items: flex-start; gap: .35rem; }
    .wiz-context-divider { display: none; }
}

/* ======== WIZARD STEPS ======== */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
}
.wizard-step-num {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #64748b;
    transition: all .3s;
}
.wizard-step.active .wizard-step-num {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(8,145,178,.35);
}
.wizard-step.completed .wizard-step-num {
    background: #10b981;
    color: #fff;
}
.wizard-step-label {
    font-size: .72rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}
.wizard-step.active .wizard-step-label { color: var(--accent); }
.wizard-step.completed .wizard-step-label { color: #10b981; }

.wizard-step-line {
    width: 60px;
    height: 3px;
    background: #e2e8f0;
    margin: 0 .5rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
    transition: background .3s;
}
.wizard-step-line.completed { background: #10b981; }

@media (max-width: 767.98px) {
    .wizard-step-line { width: 30px; }
    .wizard-step-label { font-size: .62rem; }
    .wizard-step-num { width: 30px; height: 30px; font-size: .78rem; }
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wizard-panel {
    animation: fadeIn .25s ease;
}

/* ======== TYPE CARDS ======== */
.type-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}
.type-card:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}
.type-card.selected {
    border-color: var(--accent);
    background: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(8,145,178,.15);
}
.type-card i {
    font-size: 2rem;
    display: block;
    margin-bottom: .5rem;
    color: var(--accent);
}
.type-card span {
    font-size: .88rem;
    font-weight: 600;
    color: #334155;
}
@media (max-width: 767.98px) {
    .type-card { padding: 1rem .5rem; }
    .type-card i { font-size: 1.4rem; }
    .type-card span { font-size: .76rem; }
}

/* ======== SELECT LIST (Wizard) ======== */
.select-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
}
.select-list-item {
    padding: .55rem .85rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    font-size: .84rem;
    transition: background .12s;
}
.select-list-item:last-child { border-bottom: none; }
.select-list-item:hover { background: #f0f9ff; }

.selected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem .85rem;
    background: var(--accent-light);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 600;
    color: var(--accent-hover);
}

/* ======== WIZARD CURRENCY ======== */
input[name="wiz_currency"] + label {
    font-size: .82rem;
    padding: .4rem .85rem;
    font-weight: 600;
    border-radius: 8px !important;
}
.btn-check:checked + .btn-outline-secondary {
    background: var(--accent-gradient);
    border-color: var(--accent);
    color: #fff;
}

/* ======== PAYMENT TOGGLE ======== */
.form-switch .form-check-input {
    width: 2.75em;
    height: 1.4em;
    cursor: pointer;
}
.form-switch .form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* ======== LIST GROUP ITEMS ======== */
.list-group-item {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    font-size: .84rem;
}
.list-group-item:last-child { border-bottom: none; }

/* ======== PASSENGER LIST ======== */
.passenger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem .85rem;
    border-bottom: 1px solid #f1f5f9;
    gap: .5rem;
}
.passenger-row:last-child { border-bottom: none; }
.passenger-info {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
    min-width: 0;
}
.passenger-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.passenger-info strong {
    font-size: .82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.passenger-actions {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.passenger-ticket {
    width: 150px !important;
    font-size: .8rem !important;
}
/* Passenger modal contact list */
.pax-contact-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
}
.pax-contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem .85rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background .12s;
    font-size: .84rem;
}
.pax-contact-item:last-child { border-bottom: none; }
.pax-contact-item:hover:not(.pax-disabled) { background: #f0f9ff; }
.pax-contact-item.pax-disabled { opacity: .5; cursor: default; }
.pax-contact-info { display: flex; flex-direction: column; gap: 1px; }
.pax-contact-info strong { font-size: .85rem; }
.pax-contact-meta { display: flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.passenger-add-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem .75rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f0f9ff;
    font-size: .82rem;
    position: sticky;
    top: 0;
    z-index: 1;
}
@media (max-width: 767.98px) {
    .passenger-row { flex-direction: column; align-items: flex-start; gap: .35rem; }
    .passenger-ticket { width: 100% !important; }
}

/* ======== FLIGHT SEGMENTS (Çoklu Uçuş) ======== */
.segment-row {
    padding: .75rem .85rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    transition: background .15s;
}
.segment-row:hover { background: #f8fafc; }
.segment-row:last-child { border-bottom: none; }
.segment-row::before {
    content: '';
    position: absolute;
    left: 1.1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-light), #e2e8f0);
    z-index: 0;
}
.segment-row:first-child::before { top: 50%; }
.segment-row:last-child::before { bottom: 50%; }
.segment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .45rem;
    position: relative;
    z-index: 1;
}
.segment-num {
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent);
    background: #fff;
    padding: 0 .25rem;
}
.segment-num i { font-size: .7rem; }
.segment-fields {
    display: flex;
    align-items: center;
    gap: .45rem;
    position: relative;
    z-index: 1;
    padding-left: .5rem;
}
.seg-field-airport { flex: 2; min-width: 0; }
.seg-field-date { flex: 1.4; min-width: 0; }
.seg-field-time { flex: 0 0 100px; }
.seg-field-time .form-control { font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.seg-arrow-wrap {
    flex: 0 0 20px;
    text-align: center;
    color: #94a3b8;
    font-size: .8rem;
}
.segment-fields .input-group-text {
    background: #f8fafc;
    border-color: #dee2e6;
    padding: .2rem .4rem;
    font-size: .75rem;
    color: #64748b;
}
@media (max-width: 768px) {
    .segment-fields { flex-wrap: wrap; gap: .35rem; padding-left: 0; }
    .seg-field-airport { flex: 1 1 42%; }
    .seg-arrow-wrap { flex: 0 0 16px; }
    .seg-field-date { flex: 1 1 50%; }
    .seg-field-time { flex: 1 1 45%; }
    .segment-row::before { display: none; }
}

/* ======== FLIGHT EXTRAS DETAIL ======== */
.pax-detail-row {
    border-bottom: 1px solid #e2e8f0;
    padding: .65rem .85rem;
}
.pax-detail-row:last-child { border-bottom: none; }
.pax-detail-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .25rem;
}
.pax-detail-header strong { font-size: .88rem; }
.pax-extras {
    margin-left: 2rem;
    margin-top: .35rem;
}
.pax-extra-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem 0;
    font-size: .82rem;
    flex-wrap: wrap;
}
.pax-extra-desc {
    color: #475569;
    min-width: 120px;
}
.pax-extra-amount {
    font-weight: 600;
    color: #0f172a;
}
.pax-extras-summary {
    padding: .6rem .85rem;
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
    font-size: .84rem;
}
.extra-presets {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.extra-presets .btn { font-size: .76rem; padding: .25rem .6rem; }

@media (max-width: 767.98px) {
    .pax-extras { margin-left: .5rem; }
    .pax-extra-item { font-size: .76rem; gap: .35rem; }
}

/* ======== PROPOSAL ITEMS ======== */
.proposal-item-row {
    display: flex;
    align-items: center;
    padding: .65rem .85rem;
    border-bottom: 1px solid #f1f5f9;
    gap: .5rem;
}
.proposal-item-row:last-child { border-bottom: none; }
.proposal-item-grip { color: #cbd5e1; cursor: grab; font-size: 1rem; }
.proposal-item-icon { width: 34px; height: 34px; border-radius: 8px; background: #f0f9ff; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: .9rem; flex-shrink: 0; }
.proposal-item-body { flex: 1; min-width: 0; }
.proposal-item-type { font-size: .65rem; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); font-weight: 600; }
.proposal-item-title { font-size: .88rem; font-weight: 600; color: #0f172a; }
.proposal-item-desc { font-size: .78rem; color: #64748b; white-space: pre-line; }
.proposal-item-amount { font-size: .95rem; font-weight: 700; color: #0f172a; white-space: nowrap; min-width: 80px; text-align: right; }
.proposal-total-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.15rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-top: 2px solid var(--accent);
    font-size: 1rem;
}
.proposal-total-bar strong { font-size: 1.2rem; color: var(--accent); }
@media (max-width: 767.98px) {
    .proposal-item-row { flex-wrap: wrap; }
    .proposal-item-amount { width: 100%; text-align: left; margin-top: .25rem; }
}

/* ======== AIRPORT AUTOCOMPLETE ======== */
.airport-select-wrap {
    position: relative;
    z-index: 10;
}
.airport-select-wrap:focus-within {
    z-index: 100;
}
.airport-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 12px 32px rgba(0,0,0,.18);
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
}
.airport-option {
    padding: .5rem .75rem;
    cursor: pointer;
    font-size: .82rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: background .1s;
}
.airport-option:last-child { border-bottom: none; }
.airport-option:hover, .airport-option.ac-active { background: #e0f2fe; }
.airport-option strong { color: var(--accent); font-size: .85rem; min-width: 32px; }
.airport-option small { margin-left: auto; }
.airport-flag {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    letter-spacing: .5px;
}
.airport-flag-int {
    display: inline-block;
    background: #6b7280;
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    letter-spacing: .5px;
}

/* ======== FILE UPLOAD ======== */
.file-pax-row { border-bottom: 1px solid #f1f5f9; padding: .75rem 1rem; }
.file-pax-row:last-child { border-bottom: none; }
.file-pax-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: .5rem;
}
.file-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.file-item {
    display: flex; align-items: center; gap: .5rem;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: .4rem .6rem; transition: all .15s;
}
.file-item:hover { border-color: var(--accent); background: #ecfeff; }
.file-item-link {
    display: flex; align-items: center; gap: .5rem;
    text-decoration: none; color: inherit; min-width: 0;
}
.file-thumb {
    width: 40px; height: 40px; object-fit: cover;
    border-radius: 6px; flex-shrink: 0;
}
.file-thumb-icon { font-size: 1.6rem; width: 40px; text-align: center; flex-shrink: 0; }
.file-item-info { min-width: 0; }
.file-item-name {
    font-size: .78rem; font-weight: 500; color: #0f172a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 180px;
}
.file-item-meta { font-size: .65rem; color: #94a3b8; }
.file-empty {
    font-size: .8rem; color: #f59e0b; padding: .35rem 0;
    font-style: italic;
}

/* Upload overlay animation */
/* ======== FILE UPLOAD OVERLAY (modern) ======== */
.file-upload-overlay {
    position: absolute; inset: 0; z-index: 10;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: .75rem;
    border-radius: var(--radius);
    animation: fileOverlayIn .25s cubic-bezier(.4,0,.2,1);
}
@keyframes fileOverlayIn {
    from { opacity: 0; transform: scale(.99); }
    to   { opacity: 1; transform: scale(1); }
}

.file-upload-spinner {
    display: flex; align-items: center; gap: .8rem;
    max-width: 320px; padding: 0 1rem;
}
.file-upload-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    animation: floatY 1.4s ease-in-out infinite;
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.file-upload-info { min-width: 0; flex: 1; }
.file-upload-name {
    font-size: .85rem; font-weight: 600; color: var(--gray-900);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 240px;
}
.file-upload-status {
    font-size: .75rem; color: var(--gray-500); margin-top: 2px;
}
.file-upload-pct {
    font-weight: 700; color: var(--accent);
}

.file-upload-progress {
    width: 75%; max-width: 320px; height: 6px;
    background: var(--gray-200); border-radius: 99px; overflow: hidden;
    position: relative;
}
.file-upload-bar {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--accent), #06b6d4);
    transition: width .2s ease;
    border-radius: 99px;
    position: relative;
}
.file-upload-bar::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}

/* DONE state */
.file-upload-done {
    animation: uploadDone .5s ease;
}
.file-upload-done .file-upload-icon {
    background: rgba(22,163,74,.12);
    color: var(--success);
    animation: none;
}
.file-upload-done .file-upload-icon i { font-size: 1.4rem; }
.file-upload-done .file-upload-status { color: var(--success); font-weight: 600; }
.file-upload-done .file-upload-progress { display: none; }

@keyframes uploadDone {
    0%   { background: rgba(255,255,255,.94); }
    40%  { background: rgba(22,163,74,.10); }
    100% { background: rgba(255,255,255,.94); }
}

/* ======== CALENDAR ======== */
.cal-filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.cal-filter-btn {
    background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0;
    font-size: .78rem; font-weight: 500; border-radius: 8px; padding: .3rem .7rem;
    transition: all .2s;
}
.cal-filter-btn.active, .cal-filter-btn:hover {
    background: var(--accent); color: #fff; border-color: var(--accent);
}

#view-calendar { max-width: 100%; }
.cal-grid-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; width: 100%; }
.cal-weekdays {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
    background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.cal-weekdays div {
    padding: .4rem; text-align: center;
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .6px; color: #94a3b8;
    min-width: 0;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }

.cal-day {
    min-height: 130px;
    border-right: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9;
    padding: .3rem; cursor: pointer; transition: background .15s;
    position: relative;
    min-width: 0;        /* taşmayı engeller, grid hücresi shrink edebilir */
    overflow: hidden;
}
.cal-day:nth-child(7n) { border-right: none; }
.cal-day:hover { background: #f8fafc; }
.cal-day.other-month { background: #fafbfc; }
.cal-day.other-month .cal-day-num { color: #cbd5e1; }
.cal-day.today { background: #ecfeff; }
.cal-day.today .cal-day-num { background: var(--accent); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.cal-day.selected { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 4px; }

.cal-day-num {
    font-size: .78rem; font-weight: 600; color: #334155;
    margin-bottom: 2px; padding: 1px 0;
    display: inline-block;
}

.cal-event {
    font-size: .62rem; padding: 2px 4px; margin-bottom: 2px;
    border-radius: 4px; font-weight: 500; line-height: 1.5;
    cursor: pointer;
    display: flex; align-items: center; gap: 3px;
    min-width: 0;            /* önemli — flex item taşmasını engeller */
    overflow: hidden;
}
.cal-event > .cal-ev-tag,
.cal-event > .cal-ev-time { flex-shrink: 0; }
.cal-event > :last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cal-ev-tag {
    display: inline-flex; align-items: center; justify-content: center;
    width: 14px; height: 14px;          /* SABİT genişlik */
    font-size: .55rem; font-weight: 800;
    border-radius: 3px; padding: 0;
    background: rgba(255,255,255,.65);
    flex-shrink: 0;
}
.cal-ev-tag i { font-size: .68rem; line-height: 1; }
.cal-legend-swatch .cal-ev-tag i { font-size: .75rem; }
.cal-ev-time { font-size: .55rem; opacity: .7; font-weight: 600; flex-shrink: 0; }

/* Type renkleri (giriş/gidiş/alış = standart, çıkış/dönüş/teslim = daha koyu border) */
.cal-event-flight { background: #dbeafe; color: #1e40af; border-left: 3px solid #3b82f6; }
.cal-event-hotel  { background: #fef3c7; color: #92400e; border-left: 3px solid #f59e0b; }
.cal-event-car    { background: #d1fae5; color: #065f46; border-left: 3px solid #10b981; }

/* Yön varyantları — son hareketler (dönüş/çıkış/teslim) daha koyu + kesik border */
.cal-event-flight.cal-ev-dir-donus  { background: #c7d2fe; color: #312e81; border-left-color: #4338ca; border-left-style: dashed; }
.cal-event-hotel.cal-ev-dir-cikis   { background: #fed7aa; color: #7c2d12; border-left-color: #c2410c; border-left-style: dashed; }
.cal-event-car.cal-ev-dir-teslim    { background: #bbf7d0; color: #064e3b; border-left-color: #047857; border-left-style: dashed; }

/* Legend (takvim üstünde renk açıklaması) */
.cal-legend {
    display: flex; flex-wrap: wrap; gap: .35rem .8rem;
    background: #fff; border: 1px solid rgba(0,0,0,.04); border-radius: var(--radius-sm);
    padding: .55rem .8rem; box-shadow: var(--card-shadow);
    font-size: .75rem; color: #475569;
}
.cal-legend-item { display: inline-flex; align-items: center; gap: .35rem; }
.cal-legend-swatch {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 18px; border-radius: 4px; padding: 0 3px;
    flex-shrink: 0;
}
.cal-legend-swatch .cal-ev-tag {
    min-width: 14px; height: 14px; font-size: .58rem;
}
.cal-event-more {
    font-size: .6rem; color: var(--accent); font-weight: 600;
    padding: 1px 5px; cursor: pointer;
}

/* Day detail panel */
.cal-day-panel {
    margin-top: 1rem; background: #fff; border-radius: var(--radius);
    box-shadow: var(--card-shadow); overflow: hidden;
    animation: fadeIn .25s ease;
}
.cal-day-panel-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: .75rem 1rem; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.cal-day-panel-header h6 { margin: 0; font-size: .9rem; font-weight: 700; }

.cal-detail-card {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .85rem 1rem; border-bottom: 1px solid #f1f5f9;
    cursor: pointer; transition: background .15s;
}
.cal-detail-card:last-child { border-bottom: none; }
.cal-detail-card:hover { background: #f8fafc; }

.cal-detail-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; flex-shrink: 0;
}
.cal-detail-icon.flight { background: #dbeafe; color: #3b82f6; }
.cal-detail-icon.hotel { background: #fef3c7; color: #f59e0b; }
.cal-detail-icon.car { background: #d1fae5; color: #10b981; }

.cal-detail-body { flex: 1; min-width: 0; }
.cal-detail-title { font-size: .85rem; font-weight: 600; color: #0f172a; }
.cal-detail-sub { font-size: .75rem; color: #64748b; margin-top: 1px; }
.cal-detail-tag {
    font-size: .58rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; padding: 2px 6px; border-radius: 4px;
    display: inline-block; margin-left: .35rem;
}
.cal-detail-tag.dep, .cal-detail-tag.pickup, .cal-detail-tag.giris { background: #dbeafe; color: #1e40af; }
.cal-detail-tag.ret, .cal-detail-tag.return, .cal-detail-tag.teslim, .cal-detail-tag.cikis { background: #fce7f3; color: #9d174d; }

.cal-detail-right { text-align: right; flex-shrink: 0; }
.cal-detail-amount { font-size: .82rem; font-weight: 600; color: #0f172a; }
.cal-detail-status { font-size: .6rem; font-weight: 600; margin-top: 2px; }
.cal-detail-status.odendi { color: #10b981; }
.cal-detail-status.kismen { color: #f59e0b; }
.cal-detail-status.odenmedi { color: #ef4444; }

@media (max-width: 768px) {
    .cal-day { min-height: 65px; padding: 2px; }
    .cal-day-num { font-size: .7rem; }
    .cal-event { font-size: .55rem; padding: 1px 3px; }
    .cal-weekdays div { font-size: .6rem; padding: .4rem .2rem; }
}

/* ======== Refresh icon spin ======== */
.spin-anim { animation: spin360 .6s linear; display: inline-block; }
@keyframes spin360 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ======== TomSelect (BH Fatura Modal) ======== */
.ts-dropdown { z-index: 2000 !important; }
#bhInvoiceModal .ts-wrapper { min-width: 220px; }
#bhInvoiceModal .ts-control { padding: .25rem .5rem; min-height: 32px; font-size: .85rem; }
#bhInvoiceModal .ts-control input { font-size: .85rem; }
#bhInvoiceModal .ts-dropdown { font-size: .85rem; }
#bhInvoiceModal table th { font-size: .8rem; }
#bhInvoiceModal td { vertical-align: top; }
#bhInvoiceModal .bh-row-note { height: 135px; resize: vertical; }

/* ======== PENDING PAYMENTS ======== */
.pp-cur-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    position: relative;
    overflow: hidden;
}
.pp-cur-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--accent, #0891b2);
}
.pp-cur-card .pp-cur-label {
    font-size: .72rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .25rem;
    font-weight: 600;
}
.pp-cur-card .pp-cur-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
    line-height: 1.1;
}
.pp-cur-card .pp-cur-meta {
    font-size: .78rem;
    color: #6b7280;
    margin-top: .35rem;
    display: flex;
    gap: .75rem;
}
.pp-cur-card .pp-cur-meta strong { color: #374151; }

.pp-mini-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    height: 100%;
}
.pp-mini-card .pp-mini-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.pp-mini-card .pp-mini-label { font-size: .78rem; color: #6b7280; }
.pp-mini-card .pp-mini-value { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.pp-mini-overdue .pp-mini-icon { background: rgba(239,68,68,.12); color: #ef4444; }
.pp-mini-overdue .pp-mini-value { color: #ef4444; }
.pp-mini-urgent .pp-mini-icon { background: rgba(245,158,11,.12); color: #f59e0b; }
.pp-mini-urgent .pp-mini-value { color: #f59e0b; }
.pp-mini-total .pp-mini-icon { background: rgba(8,145,178,.12); color: #0891b2; }

#pp-list-body td { vertical-align: middle; font-size: .88rem; }
.pp-type-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 6px; font-size: .85rem;
}
.pp-type-flight { background: rgba(8,145,178,.12); color: #0891b2; }
.pp-type-hotel { background: rgba(168,85,247,.12); color: #a855f7; }
.pp-type-car { background: rgba(245,158,11,.12); color: #f59e0b; }
.pp-days-overdue { color: #ef4444; font-weight: 600; }
.pp-days-urgent { color: #f59e0b; font-weight: 600; }
.pp-days-ok { color: #6b7280; }
.pp-row-clickable { cursor: pointer; }
.pp-row-clickable:hover { background: rgba(8,145,178,.04); }

/* ======== DROPDOWN MENU (Stripe/Notion polish) ======== */
.dropdown-menu {
    border: 1px solid var(--gray-150);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: .35rem;
    font-size: .85rem;
    min-width: 180px;
}
.dropdown-item {
    padding: .45rem .7rem;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-weight: 500;
    transition: background var(--t-fast), color var(--t-fast);
}
.dropdown-item:hover, .dropdown-item:focus {
    background: var(--gray-100);
    color: var(--gray-900);
}
.dropdown-item i { color: var(--gray-500); margin-right: .25rem; }
.dropdown-item:hover i { color: var(--gray-700); }
.dropdown-divider { margin: .25rem 0; border-color: var(--gray-150); }

/* ======== FORM SWITCH (toggle) — orantılı hizalama ======== */
.form-check.form-switch {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding-left: 0;
    min-height: 0;
}
.form-check.form-switch .form-check-input {
    margin: 0;
    margin-left: 0 !important;
    width: 2.1em;
    height: 1.15em;
    flex-shrink: 0;
    cursor: pointer;
}
.form-check.form-switch .form-check-label {
    cursor: pointer;
    line-height: 1.2;
}

/* ======== FORMS & BUTTONS (refined SaaS) ======== */
.form-control, .form-select {
    padding: .45rem .7rem;
    border-color: var(--gray-200);
    color: var(--gray-900);
    font-size: 1rem;
    background-color: var(--surface);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control::placeholder { color: var(--gray-400); }
.form-control:hover, .form-select:hover { border-color: var(--gray-300); }
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
    outline: none;
}
.form-control:disabled, .form-select:disabled {
    background-color: var(--gray-50);
    color: var(--gray-400);
    cursor: not-allowed;
}
.form-control-sm, .form-select-sm { padding: .3rem .55rem; font-size: .88rem; }
.form-label {
    font-size: .8rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: .3rem;
}
.input-group-text {
    padding: .45rem .65rem;
    background: var(--gray-50);
    border-color: var(--gray-200);
    color: var(--gray-500);
    font-size: .92rem;
}
.form-text { font-size: .75rem; color: var(--gray-500); }

/* Buttons — Stripe/Notion lift */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    padding: .45rem .9rem;
    transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
    border: 1px solid transparent;
    line-height: 1.4;
}
.btn:active { transform: translateY(0); }
.btn-sm { padding: .32rem .7rem; font-size: .85rem; border-radius: var(--radius-sm); }
.btn-lg { font-size: 1rem; padding: .58rem 1.2rem; }

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 1px 2px rgba(8,145,178,.18);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(8,145,178,.25);
}
.btn-primary:active, .btn-primary:focus {
    background: var(--accent-active);
    border-color: var(--accent-active);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--gray-200);
    background: var(--surface);
}
.btn-outline-primary:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline-secondary {
    color: var(--gray-700);
    border-color: var(--gray-200);
    background: var(--surface);
}
.btn-outline-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-900);
}

.btn-link {
    color: var(--gray-600);
    font-weight: 500;
    text-decoration: none;
}
.btn-link:hover { color: var(--gray-900); text-decoration: none; }

/* Modal — softer, polished */
.modal-content {
    border: 1px solid var(--gray-150);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.modal-header {
    padding: .85rem 1.2rem;
    border-bottom: 1px solid var(--gray-150);
    background: var(--gray-25);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header .modal-title { font-size: 1rem; font-weight: 600; color: var(--gray-900); letter-spacing: -.2px; }
.modal-body { padding: 1rem 1.2rem; color: var(--gray-800); }
.modal-footer { padding: .65rem 1.2rem; border-top: 1px solid var(--gray-150); background: var(--gray-25); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* Alert */
.alert { padding: .6rem .85rem; font-size: .88rem; border-radius: var(--radius-sm); }

/* Headings global — html 14px üzerinde temkinli ölçek */
h1 { font-size: 1.45rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
h5 { font-size: .95rem; }
h6 { font-size: .85rem; }

/* Hover effect on cards */
.card:not(.form-panel):not(.dash-stat-card):hover {
    box-shadow: var(--card-hover-shadow);
}

/* ======== SCROLLBAR ======== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
