/* =========================================================
   Randevu Sistemi — arayüz teması (Bootstrap 5.3 üzerine)
   ========================================================= */
:root {
    --brand: #4f46e5;
    --brand-600: #4338ca;
    --brand-700: #3730a3;
    --brand-50: #eef2ff;
    --brand-100: #e0e7ff;
    --brand-rgb: 79, 70, 229;

    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: #e2e8f0;
    --line-2: #f1f5f9;
    --bg: #f8fafc;
    --surface: #ffffff;

    --side: #0f172a;
    --side-ink: #cbd5e1;
    --side-faint: #64748b;

    --sidebar-w: 256px;
    --topbar-h: 60px;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-lg: 0 10px 30px -10px rgba(15, 23, 42, .2);

    --bs-primary: var(--brand);
    --bs-primary-rgb: var(--brand-rgb);
    --bs-primary-bg-subtle: var(--brand-50);
    --bs-primary-border-subtle: #c7d2fe;
    --bs-primary-text-emphasis: var(--brand-700);
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: var(--brand-rgb);
    --bs-link-hover-color: var(--brand-700);
    --bs-link-hover-color-rgb: 55, 48, 163;
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-font-size: .875rem;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--bg);
    --bs-border-color: var(--line);
    --bs-secondary-color: var(--muted);
    --bs-border-radius: .5rem;
    --bs-border-radius-sm: .375rem;
    --bs-border-radius-lg: .75rem;
}

body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; letter-spacing: -.003em; }
a { text-decoration: none; }
.text-muted { color: var(--muted) !important; }
.fw-medium { font-weight: 500 !important; }
.tabular { font-variant-numeric: tabular-nums; }
::selection { background: var(--brand-100); }

/* ---------- Butonlar ---------- */
.btn { font-weight: 500; border-radius: 8px; --bs-btn-padding-y: .45rem; --bs-btn-padding-x: .9rem; --bs-btn-font-size: .875rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.btn-sm { --bs-btn-padding-y: .3rem; --bs-btn-padding-x: .7rem; --bs-btn-font-size: .8125rem; border-radius: 7px; }
.btn-lg { --bs-btn-padding-y: .65rem; --bs-btn-font-size: .95rem; }
.btn-primary {
    --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600);
    --bs-btn-active-bg: var(--brand-700); --bs-btn-active-border-color: var(--brand-700);
    --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
    --bs-btn-focus-shadow-rgb: var(--brand-rgb);
    box-shadow: 0 1px 2px rgba(var(--brand-rgb), .25), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-outline-primary {
    --bs-btn-color: var(--brand); --bs-btn-border-color: #c7d2fe;
    --bs-btn-hover-bg: var(--brand-50); --bs-btn-hover-color: var(--brand-700); --bs-btn-hover-border-color: #a5b4fc;
    --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand); --bs-btn-active-color: #fff;
}
.btn-white, .btn-light {
    --bs-btn-bg: #fff; --bs-btn-border-color: var(--line); --bs-btn-color: var(--ink-2);
    --bs-btn-hover-bg: #f8fafc; --bs-btn-hover-border-color: #cbd5e1; --bs-btn-hover-color: var(--ink);
    --bs-btn-active-bg: #f1f5f9; --bs-btn-active-border-color: #cbd5e1;
    box-shadow: var(--shadow-sm);
}
.btn-ghost { --bs-btn-color: var(--muted); --bs-btn-hover-bg: #f1f5f9; --bs-btn-hover-color: var(--ink); --bs-btn-border-color: transparent; --bs-btn-hover-border-color: transparent; }
.btn-soft-success { --bs-btn-bg: #ecfdf5; --bs-btn-color: #047857; --bs-btn-border-color: #a7f3d0; --bs-btn-hover-bg: #d1fae5; --bs-btn-hover-color: #065f46; --bs-btn-hover-border-color: #6ee7b7; }
.btn-soft-danger { --bs-btn-bg: #fef2f2; --bs-btn-color: #b91c1c; --bs-btn-border-color: #fecaca; --bs-btn-hover-bg: #fee2e2; --bs-btn-hover-color: #991b1b; --bs-btn-hover-border-color: #fca5a5; }
.btn-soft-secondary { --bs-btn-bg: #f8fafc; --bs-btn-color: var(--ink-2); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: #f1f5f9; --bs-btn-hover-border-color: #cbd5e1; }
.btn-icon { width: 32px; height: 32px; padding: 0; border-radius: 8px; }
.btn-icon.btn-sm { width: 28px; height: 28px; }
.btn-group > .btn { box-shadow: none; }

/* ---------- Formlar ---------- */
.form-label { font-size: .8125rem; font-weight: 500; color: var(--ink-2); margin-bottom: .35rem; }
.form-control, .form-select { border-color: #d7dee8; border-radius: 8px; font-size: .875rem; padding: .5rem .75rem; box-shadow: var(--shadow-sm); }
.form-control-sm, .form-select-sm { padding: .32rem .6rem; font-size: .8125rem; border-radius: 7px; }
.form-select { padding-right: 2.25rem; }
.form-control:focus, .form-select:focus { border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .14); }
.form-control::placeholder { color: var(--faint); }
.form-text { color: var(--muted); font-size: .78rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .14); border-color: #a5b4fc; }
.form-switch .form-check-input { width: 2.1em; height: 1.15em; cursor: pointer; }
.input-group-text { background: #f8fafc; border-color: #d7dee8; color: var(--muted); }

/* ---------- Kartlar ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--surface); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); padding: .9rem 1.15rem; font-weight: 600; font-size: .9rem; color: var(--ink); }
.card-header .sub { font-weight: 400; color: var(--muted); font-size: .8rem; }
.card-body { padding: 1.15rem; }
.card-footer { background: transparent; border-top: 1px solid var(--line); padding: .7rem 1.15rem; }

/* ---------- Tablolar ---------- */
.table { margin: 0; --bs-table-hover-bg: #f8fafc; --bs-table-border-color: var(--line-2); font-size: .8125rem; }
.table > :not(caption) > * > * { padding: .75rem 1.15rem; color: var(--ink); }
.table thead th { font-weight: 600; color: var(--muted); font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; padding-top: .6rem; padding-bottom: .6rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.table-sm > :not(caption) > * > * { padding: .5rem 1rem; }

/* ---------- Rozetler ---------- */
.badge { font-weight: 500; letter-spacing: 0; }
.badge-status { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; padding: .3em .6em; border-radius: 999px; font-weight: 500; }
.badge-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge-status-bekliyor { background: #fffbeb; color: #b45309; box-shadow: inset 0 0 0 1px #fde68a; }
.badge-status-onaylandi { background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1px #c7d2fe; }
.badge-status-tamamlandi { background: #ecfdf5; color: #047857; box-shadow: inset 0 0 0 1px #a7f3d0; }
.badge-status-iptal { background: #f8fafc; color: #64748b; box-shadow: inset 0 0 0 1px var(--line); text-decoration: line-through; }
.badge-soft { background: #f1f5f9; color: #475569; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); border-radius: 6px; }
.bg-success-subtle { box-shadow: inset 0 0 0 1px #a7f3d0; }
.bg-danger-subtle { box-shadow: inset 0 0 0 1px #fecaca; }
.bg-warning-subtle { box-shadow: inset 0 0 0 1px #fde68a; }

/* ---------- Sekmeler ---------- */
.nav-underline { gap: 1.5rem; border-bottom: 1px solid var(--line); --bs-nav-underline-border-width: 2px; }
.nav-underline .nav-link { color: var(--muted); font-weight: 500; padding: .65rem 0; display: flex; align-items: center; gap: .4rem; }
.nav-underline .nav-link:hover { color: var(--ink); border-bottom-color: #cbd5e1; }
.nav-underline .nav-link.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.segmented { display: inline-flex; background: #f1f5f9; border-radius: 9px; padding: 3px; gap: 2px; border: 1px solid var(--line); }
.segmented .btn, .segmented .nav-link { border: 0; background: transparent; color: var(--muted); padding: .28rem .75rem; border-radius: 7px; font-size: .8125rem; font-weight: 500; box-shadow: none; }
.segmented .btn:hover, .segmented .nav-link:hover { color: var(--ink); }
.segmented .active, .segmented .btn-check:checked + .btn { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15,23,42,.1); }
.nav-pills .nav-link.active { background: var(--brand); }
.nav-pills.flex-column .nav-link { color: var(--ink-2); border-radius: 8px; padding: .55rem .8rem; font-weight: 500; display: flex; align-items: center; gap: .55rem; }
.nav-pills.flex-column .nav-link i { color: var(--faint); }
.nav-pills.flex-column .nav-link:hover { background: #f8fafc; }
.nav-pills.flex-column .nav-link.active { background: var(--brand-50); color: var(--brand-700); }
.nav-pills.flex-column .nav-link.active i { color: var(--brand); }
.pagination { --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-color: var(--ink-2); --bs-pagination-border-color: var(--line); gap: 4px; }
.pagination .page-link { border-radius: 7px !important; min-width: 30px; text-align: center; }

/* ---------- Modal / dropdown / toast ---------- */
.modal-content { border: 0; border-radius: 16px; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; }
.modal-title { font-weight: 600; font-size: 1rem; }
.modal-body { padding: 1.25rem; }
.modal-footer { border-top: 1px solid var(--line); padding: .85rem 1.25rem; background: #f8fafc; border-radius: 0 0 16px 16px; }
.modal-backdrop.show { opacity: .4; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: .35rem; font-size: .85rem; }
.dropdown-item { border-radius: 6px; padding: .45rem .7rem; display: flex; align-items: center; gap: .5rem; }
.dropdown-item:active { background: var(--brand); }
.dropdown-header { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.toast { border-radius: 10px; box-shadow: var(--shadow-lg); font-size: .85rem; }
#toasts { z-index: 1100; }
.alert { border-radius: 10px; font-size: .85rem; }

/* ---------- Panel yerleşimi ---------- */
.sidebar {
    width: var(--sidebar-w); background: var(--side); color: var(--side-ink);
    position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 1030;
}
.sidebar .brand { height: var(--topbar-h); padding: 0 1.25rem; display: flex; align-items: center; gap: .7rem; color: #fff; font-weight: 600; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #6366f1, #4338ca); color: #fff; display: grid; place-items: center; font-size: 1rem; box-shadow: 0 4px 12px rgba(79,70,229,.35), inset 0 1px 0 rgba(255,255,255,.2); flex-shrink: 0; }
.sidebar nav { padding: .75rem .75rem 1rem; }
.sidebar .nav-section { font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--side-faint); padding: 1.1rem .75rem .45rem; font-weight: 600; }
.sidebar .nav-link {
    color: var(--side-ink); padding: .5rem .75rem; border-radius: 8px; margin-bottom: 2px;
    display: flex; align-items: center; gap: .7rem; font-weight: 500; font-size: .85rem; position: relative;
}
.sidebar .nav-link i { font-size: 1.05rem; color: #64748b; width: 1.15rem; text-align: center; transition: color .15s; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar .nav-link:hover i { color: #cbd5e1; }
.sidebar .nav-link.active { background: rgba(255,255,255,.08); color: #fff; }
.sidebar .nav-link.active i { color: #a5b4fc; }
.sidebar .nav-link.active::before { content: ''; position: absolute; left: -.75rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #818cf8; }
.sidebar .nav-link .count { margin-left: auto; background: #f59e0b; color: #1f2937; font-size: .68rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.sidebar nav { scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.sidebar .guest-box { margin: .25rem 0 .25rem; padding: .7rem .75rem; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.sidebar .guest-box .form-check-input { background-color: #334155; border-color: #475569; }
.sidebar .guest-box .form-check-input:checked { background-color: #22c55e; border-color: #22c55e; }
.sidebar .guest-box label { color: #e2e8f0; font-size: .8rem; font-weight: 500; }
.sidebar .guest-box a { color: #94a3b8; font-size: .75rem; }
.sidebar .guest-box a:hover { color: #fff; }
.sidebar .side-foot { margin-top: auto; padding: .9rem 1.25rem; border-top: 1px solid rgba(255,255,255,.06); font-size: .72rem; color: var(--side-faint); }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    height: var(--topbar-h); background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; gap: .75rem; padding: 0 2rem;
}
.topbar .crumbs { font-size: .8125rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; min-width: 0; }
.topbar .crumbs strong { color: var(--ink); font-weight: 600; }
.topbar .crumbs i { font-size: .7rem; color: var(--faint); }
.topbar .actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); position: relative; border: 1px solid transparent; background: transparent; }
.icon-btn:hover { background: #f1f5f9; color: var(--ink); }
.icon-btn .dot { position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; border-radius: 8px; background: #ef4444; color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem .25rem .25rem; border-radius: 10px; color: var(--ink); }
.user-chip:hover { background: #f1f5f9; }
.user-chip .meta { line-height: 1.15; text-align: left; }
.user-chip .meta small { color: var(--muted); font-size: .72rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: var(--brand-700); display: inline-grid; place-items: center; font-weight: 600; font-size: .78rem; flex-shrink: 0; }
.notif-menu { width: 340px; padding: 0; overflow: hidden; }
.notif-menu .head { padding: .75rem 1rem; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.notif-menu .item { display: flex; gap: .7rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.notif-menu .item:hover { background: #f8fafc; }
.notif-menu .item .ic { width: 32px; height: 32px; border-radius: 8px; background: #fffbeb; color: #b45309; display: grid; place-items: center; flex-shrink: 0; }
.notif-menu .foot { display: block; text-align: center; padding: .6rem; font-size: .8rem; font-weight: 500; }

.page { padding: 1.75rem 2rem 3rem; width: 100%; max-width: 1440px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h1 { font-size: 1.375rem; font-weight: 650; margin: 0; letter-spacing: -.02em; }
.page-head .sub { color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.page-head .tools { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 1025; display: none; }
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar.show { transform: none; box-shadow: var(--shadow-lg); }
    .backdrop.show { display: block; }
    .main { margin-left: 0; }
    .topbar { padding: 0 1rem; }
    .page { padding: 1.25rem 1rem 3rem; }
    .user-chip .meta { display: none; }
}

/* ---------- İstatistik kartları ---------- */
.stat { padding: 1.1rem 1.2rem; position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: .78rem; font-weight: 500; display: flex; align-items: center; gap: .4rem; }
.stat .value { font-size: 1.6rem; font-weight: 650; letter-spacing: -.025em; margin-top: .35rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.stat .hint { font-size: .76rem; color: var(--muted); margin-top: .35rem; }
.stat .ico { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; }
.ico-brand { background: var(--brand-50); color: var(--brand); }
.ico-amber { background: #fffbeb; color: #d97706; }
.ico-green { background: #ecfdf5; color: #059669; }
.ico-red { background: #fef2f2; color: #dc2626; }
.ico-sky { background: #f0f9ff; color: #0284c7; }
.ico-slate { background: #f1f5f9; color: #475569; }

.empty { color: var(--faint); text-align: center; padding: 2.75rem 1rem; font-size: .85rem; }
.empty i { font-size: 1.6rem; display: block; margin: 0 auto .6rem; width: 52px; height: 52px; line-height: 52px; border-radius: 50%; background: #f1f5f9; color: #94a3b8; }

.list-row { display: flex; align-items: center; gap: .9rem; padding: .8rem 1.15rem; border-bottom: 1px solid var(--line-2); }
.list-row:last-child { border-bottom: 0; }
.time-pill { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .8rem; background: #f1f5f9; border-radius: 7px; padding: .3rem .5rem; min-width: 54px; text-align: center; color: var(--ink-2); }

.musteri-picker { position: relative; }
.musteri-picker .dropdown-menu { max-height: 240px; overflow-y: auto; }

/* Özet: 7 günlük doluluk (tek seri) */
.bars { display: flex; align-items: flex-end; gap: .75rem; height: 150px; padding-top: .5rem; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; justify-content: flex-end; color: var(--muted); font-size: .72rem; }
.bars .bar span.fill { width: 100%; max-width: 24px; background: #b7d3f6; border-radius: 4px 4px 0 0; min-height: 3px; transition: background .15s; }
.bars .bar:hover span.fill { background: #6da7ec; }
.bars .bar.today span.fill { background: #2a78d6; }
.bars .bar.today { color: var(--ink); font-weight: 600; }

/* Gün görünümü */
.timeline .slot { display: flex; border-bottom: 1px solid var(--line-2); min-height: 54px; }
.timeline .slot:last-child { border-bottom: 0; }
.timeline .slot .t { width: 76px; flex-shrink: 0; padding: .85rem 0 .7rem 1.15rem; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .78rem; font-weight: 500; border-right: 1px solid var(--line-2); }
.timeline .slot .c { flex: 1; padding: .45rem .9rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.timeline .appt { border-radius: 9px; padding: .5rem .8rem; border: 1px solid var(--line); border-left-width: 3px; background: #fff; cursor: pointer; min-width: 240px; flex: 1; max-width: 460px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; }
.timeline .appt:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.timeline .appt.s-bekliyor { border-left-color: #f59e0b; }
.timeline .appt.s-onaylandi { border-left-color: var(--brand); }
.timeline .appt.s-tamamlandi { border-left-color: #10b981; }
.timeline .appt.s-iptal { border-left-color: #cbd5e1; opacity: .55; }
.timeline .free { color: var(--faint); font-size: .78rem; border: 1px dashed #cbd5e1; border-radius: 8px; padding: .3rem .75rem; background: none; transition: all .15s; }
.timeline .free:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-50); }
.timeline .busy { color: #cbd5e1; font-size: .76rem; font-style: italic; }

/* Saat seçici */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: .5rem; }
.slot-grid .btn { font-variant-numeric: tabular-nums; padding: .5rem 0; font-weight: 500; }
.slot-grid .btn-outline-secondary { --bs-btn-color: var(--ink-2); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--brand-50); --bs-btn-hover-border-color: #a5b4fc; --bs-btn-hover-color: var(--brand-700); background: #fff; }
.slot-grid .btn:disabled { text-decoration: line-through; opacity: .4; background: #f8fafc; }

/* ---------- Muhasebe ---------- */
.amount-in { color: #047857; }
.amount-out { color: #b91c1c; }
.row-overdue td:first-child { box-shadow: inset 3px 0 0 #dc2626; }
.acc-card { border-radius: var(--radius); padding: 1.15rem 1.2rem; border: 1px solid var(--line); background: #fff; height: 100%; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.acc-card .bal { font-size: 1.45rem; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.acc-card .acc-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #f1f5f9; color: #475569; font-size: 1.1rem; }

/* Rapor grafiği: gruplu sütun (gelir / gider) — tek eksen */
.viz-root { --series-1: #2a78d6; --series-2: #eb6834; --grid: #eef1f5; }
.chart { position: relative; height: 260px; display: flex; align-items: stretch; padding: 8px 0 0 52px; }
.chart .yaxis { position: absolute; left: 0; top: 8px; bottom: 24px; width: 44px; display: flex; flex-direction: column; justify-content: space-between; font-size: .7rem; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }
.chart .yaxis span { transform: translateY(-50%); }
.chart .yaxis span:last-child { transform: translateY(50%); }
.chart .plot { flex: 1; position: relative; display: flex; align-items: flex-end; border-bottom: 1px solid #cbd5e1; margin-bottom: 24px; }
.chart .gridline { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--grid); }
.chart .grp { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; position: relative; }
.chart .grp:hover { background: rgba(15,23,42,.03); }
.chart .grp .b { width: min(20px, 32%); border-radius: 4px 4px 0 0; }
.chart .grp .b.s1 { background: var(--series-1); }
.chart .grp .b.s2 { background: var(--series-2); }
.chart .grp .lbl { position: absolute; bottom: -22px; font-size: .7rem; color: var(--muted); }
.chart-tip { position: absolute; pointer-events: none; background: #0f172a; color: #fff; font-size: .75rem; border-radius: 8px; padding: .5rem .65rem; white-space: nowrap; z-index: 5; display: none; box-shadow: var(--shadow-lg); line-height: 1.5; }
.legend { display: flex; gap: 1rem; font-size: .78rem; color: var(--ink-2); font-weight: 500; }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.hbar-track { height: 6px; border-radius: 3px; background: #f1f5f9; overflow: hidden; }
.hbar { height: 6px; border-radius: 0 3px 3px 0; background: #2a78d6; }

/* ---------- Giriş ---------- */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside {
    background: radial-gradient(1200px 600px at -10% -10%, #4f46e5 0%, transparent 55%), radial-gradient(900px 500px at 110% 110%, #7c3aed 0%, transparent 50%), #0f172a;
    color: #e2e8f0; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.auth-aside::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { color: #fff; font-weight: 650; font-size: 2rem; letter-spacing: -.03em; line-height: 1.2; max-width: 440px; }
.auth-aside .feat { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; max-width: 420px; }
.auth-aside .feat i { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #a5b4fc; flex-shrink: 0; }
.auth-aside .feat strong { color: #fff; font-weight: 600; display: block; font-size: .9rem; }
.auth-aside .feat span { font-size: .82rem; color: #94a3b8; }
.auth-main { display: grid; place-items: center; padding: 2rem 1.25rem; background: #fff; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 1.5rem; font-weight: 650; letter-spacing: -.025em; }
@media (max-width: 991.98px) { .auth-split { grid-template-columns: 1fr; } .auth-aside { display: none; } }

/* ---------- Misafir randevu sayfası ---------- */
.guest-top { background: #0f172a; color: #cbd5e1; position: relative; overflow: hidden; }
.guest-top::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 300px at 20% -20%, rgba(99,102,241,.55), transparent 60%), radial-gradient(600px 300px at 90% 120%, rgba(124,58,237,.4), transparent 60%); }
.guest-top .inner { position: relative; max-width: 1080px; margin: 0 auto; padding: 2.25rem 1.25rem 5.5rem; }
.guest-top h1 { color: #fff; font-weight: 650; font-size: 1.75rem; letter-spacing: -.025em; margin: 0; }
.guest-top .contact { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .85rem; margin-top: .6rem; }
.guest-top .contact a { color: #cbd5e1; }
.guest-top .contact i { color: #a5b4fc; margin-right: .3rem; }
.guest-body { max-width: 1080px; margin: -4rem auto 0; padding: 0 1.25rem 4rem; position: relative; }
.step { padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-title { font-weight: 600; font-size: .95rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .65rem; }
.step-title .n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: inline-grid; place-items: center; font-size: .78rem; font-weight: 700; box-shadow: inset 0 0 0 1px #c7d2fe; }
.step.done .step-title .n { background: var(--brand); color: #fff; box-shadow: none; }
.hizmet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .65rem; }
.hizmet-opt { border: 1px solid var(--line); border-radius: 11px; padding: .85rem 1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: #fff; transition: border-color .15s, box-shadow .15s; height: 100%; }
.hizmet-opt:hover { border-color: #a5b4fc; }
.hizmet-opt .price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.btn-check:checked + .hizmet-opt { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .14); background: #fafaff; }
.days { display: flex; gap: .5rem; overflow-x: auto; padding: 2px 2px .6rem; scrollbar-width: thin; }
.days .day { flex: 0 0 64px; border: 1px solid var(--line); border-radius: 11px; text-align: center; padding: .55rem 0; cursor: pointer; background: #fff; line-height: 1.3; transition: border-color .15s; }
.days .day:hover { border-color: #a5b4fc; }
.days .day small { display: block; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.days .day strong { font-size: 1.15rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.btn-check:checked + .day { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(var(--brand-rgb), .3); }
.btn-check:checked + .day small { color: rgba(255,255,255,.8); }
.btn-check:disabled + .day { opacity: .35; cursor: not-allowed; background: #f8fafc; }
#slots .slot.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.summary-card { position: sticky; top: 1.5rem; }
.summary-card .row-i { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: .85rem; }
.summary-card .row-i:last-of-type { border-bottom: 0; }
.summary-card .row-i i { color: var(--faint); width: 18px; }
.summary-card .row-i .v { margin-left: auto; font-weight: 600; text-align: right; }
.trust { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .78rem; }

/* ---------- Yazdırma ---------- */
@media print {
    .sidebar, .topbar, .no-print, .btn, .nav-underline, .segmented, #toasts { display: none !important; }
    .main { margin: 0; }
    .page { padding: 0; }
    .card { box-shadow: none; break-inside: avoid; }
    .tab-pane { display: none !important; }
    .tab-pane.active { display: block !important; opacity: 1 !important; }
}
.min-w-0 { min-width: 0; }
.btn { white-space: nowrap; }
.stat .label { padding-right: 44px; }
.card-header { gap: .5rem; }

/* ---------- Takvim (gün / hafta / ay) ---------- */
.cal-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .65rem 1rem; border-bottom: 1px solid var(--line); }
.cal-toolbar .title { font-weight: 650; font-size: .95rem; margin: 0 .4rem; }
.cal-wrap { overflow: auto; max-height: calc(100vh - 230px); position: relative; }
.cal-head { display: flex; position: sticky; top: 0; z-index: 4; background: #fff; border-bottom: 1px solid var(--line); }
.cal-head .gutter, .cal-body .gutter { width: 60px; flex-shrink: 0; }
.cal-head .col-h { flex: 1; min-width: 150px; padding: .55rem .5rem; text-align: center; border-left: 1px solid var(--line-2); font-size: .8rem; }
.cal-head .col-h strong { display: block; font-size: .85rem; }
.cal-head .col-h small { color: var(--muted); }
.cal-head .col-h.today strong { color: var(--brand); }
.cal-head .col-h .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .3rem; }
.cal-body { display: flex; position: relative; }
.cal-body .gutter { position: relative; }
.cal-body .gutter span { position: absolute; right: 8px; transform: translateY(-50%); font-size: .7rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.cal-col { flex: 1; min-width: 150px; position: relative; border-left: 1px solid var(--line-2); cursor: copy;
    background-image: linear-gradient(to bottom, var(--line-2) 1px, transparent 1px); }
.cal-col.closed { background-color: #f8fafc; background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(148,163,184,.12) 8px 9px); cursor: not-allowed; }
.cal-col .brk { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(148,163,184,.14) 6px 7px); pointer-events: none; }
.cal-col .now { position: absolute; left: 0; right: 0; border-top: 2px solid #ef4444; z-index: 3; pointer-events: none; }
.cal-col .now::before { content: ''; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.cal-col .hover-slot { position: absolute; left: 4px; right: 4px; border-radius: 6px; background: rgba(var(--brand-rgb), .08); border: 1px dashed rgba(var(--brand-rgb), .45); pointer-events: none; font-size: .7rem; color: var(--brand); padding: 2px 6px; display: none; }
.ev { position: absolute; left: 3px; right: 3px; border-radius: 7px; padding: 4px 8px; font-size: .74rem; line-height: 1.35; overflow: hidden; cursor: grab; z-index: 2;
    background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--c, var(--brand)); box-shadow: 0 1px 2px rgba(15,23,42,.06); user-select: none; }
.ev:hover { box-shadow: var(--shadow); z-index: 5; }
.ev.dragging { opacity: .85; box-shadow: var(--shadow-lg); cursor: grabbing; z-index: 10; }
.ev .t { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); margin-right: 2px; }
.ev .te { color: var(--faint); }
.ev .n { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .s { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .rz { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.ev .rz::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; margin-left: -9px; border-radius: 1px; background: #cbd5e1; opacity: 0; }
.ev:hover .rz::after { opacity: 1; }
.ev.st-bekliyor { background: #fffbeb; border-style: dashed; border-left-style: solid; }
.ev.st-tamamlandi { background: #f0fdf4; }
.ev.st-iptal, .ev.st-gelmedi { opacity: .45; text-decoration: line-through; }
.ev .flag { position: absolute; top: 4px; right: 6px; font-size: .7rem; background: inherit; padding-left: 4px; }
.cal-month { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-month .mh { padding: .5rem; text-align: center; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); background: #f8fafc; }
.cal-month .md { min-height: 118px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: .35rem .4rem; position: relative; cursor: pointer; }
.cal-month .md:nth-child(7n) { border-right: 0; }
.cal-month .md.other { background: #fafbfc; }
.cal-month .md.other .dn { color: #cbd5e1; }
.cal-month .md.closed { background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(148,163,184,.1) 8px 9px); }
.cal-month .md.drop { background-color: var(--brand-50); }
.cal-month .md .dn { font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-month .md.today .dn { background: var(--brand); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: inline-grid; place-items: center; }
.cal-month .chip { display: block; font-size: .7rem; border-radius: 5px; padding: 1px 6px; margin-top: 3px; background: #f1f5f9; border-left: 3px solid var(--c, var(--brand)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: grab; }
.cal-month .chip.st-bekliyor { background: #fffbeb; }
.cal-month .chip.st-iptal, .cal-month .chip.st-gelmedi { opacity: .45; text-decoration: line-through; }
.cal-month .more { font-size: .7rem; color: var(--muted); margin-top: 3px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .75rem; color: var(--muted); padding: .55rem 1rem; border-top: 1px solid var(--line); }
.cal-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.noshow-warn { font-size: .78rem; }

.cal-wrap.week .cal-col, .cal-wrap.week .col-h { min-width: 96px; }

/* ---------- Faturalar ---------- */
.acc-nav { flex-wrap: nowrap; overflow-x: auto; gap: 1.25rem; scrollbar-width: none; }
.acc-nav .nav-link { white-space: nowrap; }
.inv-kalemler td { vertical-align: top; padding: .45rem .4rem !important; }
.inv-kalemler thead th { padding: .55rem .4rem !important; }
.inv-kalemler .form-control, .inv-kalemler .form-select { font-size: .82rem; padding: .38rem .5rem; }
.inv-kalemler .num { text-align: right; font-variant-numeric: tabular-nums; }
.inv-kalemler .line-total { padding-top: .8rem !important; font-weight: 600; white-space: nowrap; }
.inv-kalemler .drag { cursor: grab; color: var(--faint); padding-top: .75rem !important; }
.inv-totals { max-width: 380px; margin-left: auto; }
.inv-totals .r { display: flex; justify-content: space-between; padding: .4rem 0; font-variant-numeric: tabular-nums; }
.inv-totals .r.grand { border-top: 2px solid var(--ink); margin-top: .3rem; padding-top: .7rem; font-size: 1.15rem; font-weight: 700; }
.doc-status { font-size: .8rem; padding: .35em .75em; border-radius: 999px; font-weight: 600; }
.ds-taslak { background: #f1f5f9; color: #475569; }
.ds-acik, .ds-gonderildi { background: #fffbeb; color: #b45309; }
.ds-kismi { background: #eff6ff; color: #1d4ed8; }
.ds-odendi, .ds-kabul, .ds-faturalandi { background: #ecfdf5; color: #047857; }
.ds-iptal, .ds-red { background: #fef2f2; color: #b91c1c; }
.ds-overdue { background: #fef2f2; color: #b91c1c; }
.ledger td.num, .ledger th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-sm .value { font-size: 1.25rem; }
.cf-bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; border-bottom: 1px solid #cbd5e1; position: relative; }
.cf-bars .wk { flex: 1; display: flex; gap: 2px; align-items: flex-end; justify-content: center; height: 100%; position: relative; }
.cf-bars .wk:hover { background: rgba(15,23,42,.03); }
.cf-bars .b { width: min(14px, 40%); border-radius: 3px 3px 0 0; }
.cf-bars .b.in { background: #2a78d6; }
.cf-bars .b.out { background: #eb6834; }
.cf-labels { display: flex; gap: 6px; font-size: .68rem; color: var(--muted); margin-top: 4px; }
.cf-labels span { flex: 1; text-align: center; }

.inv-kalemler .form-select { padding-right: 1.6rem; background-position: right .45rem center; }

/* Belge ekleri */
.att-item { display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 8px; margin-bottom: .35rem; font-size: .82rem; }
.att-item a { flex: 1; min-width: 0; }
.att-drop { display: block; border: 1.5px dashed #cbd5e1; border-radius: 10px; padding: .7rem; text-align: center; cursor: pointer; color: var(--muted); font-size: .85rem; }
.att-drop:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.check-item { border-left: 3px solid; padding: .8rem 1rem; border-bottom: 1px solid var(--line-2); }
.check-item.danger { border-left-color: #dc2626; } .check-item.warning { border-left-color: #f59e0b; } .check-item.info { border-left-color: #3b82f6; }
.mizan-main td { font-weight: 600; background: #f8fafc; }

/* Kurulum sihirbazı adımları */
.setup-steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.setup-steps li { flex: 1; display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--faint); font-weight: 500; }
.setup-steps li:not(:last-child)::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.setup-steps .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; color: #64748b; font-size: .75rem; font-weight: 600; flex-shrink: 0; }
.setup-steps .active { color: var(--ink); }
.setup-steps .active .n { background: var(--brand); color: #fff; }
.setup-steps .done .n { background: #dcfce7; color: #15803d; }
