/* ERP CRM Pro — arayüz stilleri */
:root {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --primary: #4f46e5; --primary-600: #4338ca; --primary-50: #eef2ff;
  --sidebar-w: 256px; --sidebar-mini-w: 72px;
  --sidebar-bg: #0f172a; --sidebar-fg: #94a3b8; --sidebar-hover: rgba(255,255,255,.06); --sidebar-active: #4f46e5;
  --topbar-h: 60px;
  --radius: .65rem;
  --bs-primary: #4f46e5; --bs-primary-rgb: 79,70,229;
  --bs-link-color: #4f46e5; --bs-link-color-rgb: 79,70,229; --bs-link-hover-color: #4338ca;
  --bs-body-font-family: var(--font); --bs-body-font-size: .875rem;
  --bs-border-radius: .5rem; --bs-border-radius-lg: .65rem;
  --surface: #ffffff; --surface-2: #f8fafc; --app-bg: #f1f5f9; --border-soft: #e2e8f0; --muted: #64748b;
}
[data-bs-theme="dark"] {
  --bs-body-bg: #0b1220; --bs-tertiary-bg: #111827; --bs-secondary-bg: #1f2937;
  --bs-link-color: #a5b4fc; --bs-link-color-rgb: 165,180,252; --bs-link-hover-color: #c7d2fe;
  --surface: #111827; --surface-2: #0f172a; --app-bg: #0b1220; --border-soft: #1f2937; --muted: #94a3b8;
  --bs-border-color: #1f2937;
}
html, body { height: 100%; }
body { background: var(--app-bg); -webkit-font-smoothing: antialiased; letter-spacing: -.003em; }
a { text-decoration: none; }
.min-w-0 { min-width: 0; }
.fw-semibold { font-weight: 600 !important; }

/* ---------- Düğmeler ---------- */
.btn { --bs-btn-font-size: .85rem; --bs-btn-padding-y: .42rem; --bs-btn-padding-x: .85rem; font-weight: 500; display: inline-flex; align-items: center; gap: .35rem; justify-content: center; }
.btn-sm { --bs-btn-font-size: .8rem; --bs-btn-padding-y: .28rem; --bs-btn-padding-x: .6rem; }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary-600); --bs-btn-hover-border-color: var(--primary-600); --bs-btn-active-bg: #3730a3; --bs-btn-active-border-color: #3730a3; --bs-btn-disabled-bg: var(--primary); --bs-btn-disabled-border-color: var(--primary); box-shadow: 0 1px 2px rgba(79,70,229,.25); }
.btn-outline-primary { --bs-btn-color: var(--primary); --bs-btn-border-color: #c7d2fe; --bs-btn-hover-bg: var(--primary); --bs-btn-hover-border-color: var(--primary); --bs-btn-active-bg: var(--primary); }
.btn-outline-secondary { --bs-btn-color: #475569; --bs-btn-border-color: #cbd5e1; --bs-btn-hover-bg: #f1f5f9; --bs-btn-hover-color: #0f172a; --bs-btn-hover-border-color: #cbd5e1; --bs-btn-active-bg: #e2e8f0; --bs-btn-active-color: #0f172a; background: var(--surface); }
[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-color: #cbd5e1; --bs-btn-border-color: #334155; --bs-btn-hover-bg: #1e293b; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #475569; }
.btn-light { --bs-btn-bg: var(--surface); --bs-btn-border-color: var(--border-soft); --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-border-color: #cbd5e1; }
.btn-ghost { --bs-btn-color: var(--muted); --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-color: var(--bs-body-color); --bs-btn-padding-x: .45rem; border: 0; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: .55rem; color: var(--muted); border: 0; background: transparent; font-size: 1.1rem; }
.btn-icon:hover { background: var(--surface-2); color: var(--bs-body-color); }
.form-control, .form-select { border-color: #d6dde6; font-size: .875rem; }
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select { border-color: #334155; background-color: #0f172a; }
.form-control:focus, .form-select:focus { border-color: #a5b4fc; box-shadow: 0 0 0 .2rem rgba(79,70,229,.15); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-label { font-weight: 500; font-size: .82rem; color: #334155; margin-bottom: .3rem; }
[data-bs-theme="dark"] .form-label { color: #cbd5e1; }
.form-section { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border-bottom: 1px solid var(--border-soft); padding-bottom: .4rem; margin-top: .75rem; }
.input-group-text { background: var(--surface-2); border-color: #d6dde6; color: var(--muted); font-size: .85rem; }
[data-bs-theme="dark"] .input-group-text { border-color: #334155; }

/* ---------- Düzen ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: var(--sidebar-bg) !important; color: var(--sidebar-fg); display: flex; flex-direction: column; flex-shrink: 0; z-index: 1040; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; height: 100vh; } }
.sidebar-brand { height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 1.1rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand-link { display: flex; align-items: center; gap: .65rem; color: #fff; font-weight: 700; font-size: 1rem; min-width: 0; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #6366f1, #8b5cf6); display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .75rem .65rem; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.sidebar-nav .nav-link, .nav-group-toggle { display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem; color: var(--sidebar-fg); border-radius: .5rem; font-size: .86rem; font-weight: 500; margin-bottom: 1px; width: 100%; background: none; border: 0; text-align: left; white-space: nowrap; }
.sidebar-nav .nav-link > i, .nav-group-toggle > i:first-child { font-size: 1.05rem; width: 1.25rem; text-align: center; flex-shrink: 0; }
.sidebar-nav .nav-link:hover, .nav-group-toggle:hover { background: var(--sidebar-hover); color: #e2e8f0; }
.sidebar-nav .nav-link.active:not(.sub) { background: var(--sidebar-active); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.35); }
.nav-group-toggle .caret { margin-left: auto; font-size: .7rem; transition: transform .2s; }
.nav-group-toggle:not(.collapsed) { color: #e2e8f0; }
.nav-group-toggle:not(.collapsed) .caret { transform: rotate(180deg); }
.sidebar-nav .nav-link.sub { padding: .38rem .7rem .38rem 2.65rem; font-size: .83rem; position: relative; }
.sidebar-nav .nav-link.sub::before { content: ""; position: absolute; left: 1.32rem; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #475569; transform: translateY(-50%); }
.sidebar-nav .nav-link.sub.active { color: #fff; background: rgba(99,102,241,.18); }
.sidebar-nav .nav-link.sub.active::before { background: #818cf8; box-shadow: 0 0 0 3px rgba(129,140,248,.25); }
.sidebar-foot { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1.1rem; border-top: 1px solid rgba(255,255,255,.06); color: #475569; }
@media (min-width: 992px) {
  .sidebar-mini .sidebar { width: var(--sidebar-mini-w); }
  .sidebar-mini .sidebar .brand-text, .sidebar-mini .sidebar .nav-link span, .sidebar-mini .nav-group-toggle span, .sidebar-mini .nav-group-toggle .caret, .sidebar-mini .sidebar-foot .small { display: none; }
  .sidebar-mini .sidebar .collapse { display: none !important; }
  .sidebar-mini .sidebar-nav .nav-link, .sidebar-mini .nav-group-toggle { justify-content: center; }
  .sidebar-mini .sidebar-brand { justify-content: center; padding: 0; }
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; gap: .75rem; padding: 0 1.25rem; position: sticky; top: 0; z-index: 1030; }
.global-search { position: relative; flex: 1; max-width: 460px; }
.global-search > i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.global-search input { padding-left: 2.2rem; background: var(--surface-2); border-color: transparent; border-radius: .6rem; height: 38px; }
.global-search input:focus { background: var(--surface); }
.global-search kbd { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: var(--surface); color: var(--muted); border: 1px solid var(--border-soft); font-size: .7rem; padding: .05rem .35rem; }
.search-results { width: 100%; max-height: 70vh; overflow-y: auto; padding: .35rem; margin-top: .35rem !important; }
.search-results .sr-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .5rem .6rem .25rem; font-weight: 700; }
.search-results .sr-item { display: flex; gap: .6rem; align-items: center; padding: .45rem .6rem; border-radius: .45rem; color: inherit; }
.search-results .sr-item:hover, .search-results .sr-item.active { background: var(--primary-50); }
[data-bs-theme="dark"] .search-results .sr-item:hover { background: #1e293b; }
.search-results .sr-item i { color: var(--muted); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.user-btn { display: flex; align-items: center; gap: .55rem; border: 0; padding: .25rem .5rem; border-radius: .6rem; }
.user-btn:hover { background: var(--surface-2); }
.notif-dot { position: absolute; top: 3px; right: 2px; background: #ef4444; color: #fff; font-size: .62rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--surface); }
.notif-menu { width: 360px; max-width: 92vw; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex; gap: .7rem; padding: .65rem .9rem; color: inherit; border-bottom: 1px solid var(--border-soft); }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: rgba(79,70,229,.05); }
.notif-item.unread .fw-semibold::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-left: .4rem; vertical-align: middle; }
.notif-icon { font-size: 1.1rem; }

.content { padding: 1.5rem; flex: 1; }
@media (max-width: 575px) { .content { padding: 1rem; } .topbar { padding: 0 .75rem; } }
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-title { font-size: 1.4rem; font-weight: 700; margin: 0; letter-spacing: -.02em; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.page-title .badge { font-size: .7rem; }
.page-subtitle { color: var(--muted); margin-top: .2rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.breadcrumb { font-size: .78rem; margin-bottom: .35rem; --bs-breadcrumb-divider-color: #94a3b8; }
.breadcrumb a { color: var(--muted); }
.toast-stack .alert { border: 0; border-left: 4px solid; display: flex; align-items: center; }
.alert-success { border-left-color: #16a34a !important; } .alert-danger { border-left-color: #dc2626 !important; } .alert-warning { border-left-color: #d97706 !important; } .alert-info { border-left-color: #0891b2 !important; }

/* ---------- Kartlar ve tablolar ---------- */
.card { --bs-card-border-color: var(--border-soft); --bs-card-bg: var(--surface); --bs-card-cap-bg: var(--surface); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card-header { font-weight: 600; padding: .8rem 1.1rem; border-bottom-color: var(--border-soft); }
.card-body { padding: 1.1rem; }
.card-footer { background: var(--surface); border-top-color: var(--border-soft); padding: .7rem 1.1rem; }
.card-table .table-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--border-soft); }
.search-box { width: 280px; max-width: 100%; }
.table { --bs-table-bg: transparent; margin: 0; }
.table > :not(caption) > * > * { padding: .65rem .9rem; border-bottom-color: var(--border-soft); }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--surface-2); white-space: nowrap; border-bottom-width: 1px; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: rgba(79,70,229,.035); }
.table tfoot th, .table tfoot td { background: var(--surface-2); font-weight: 600; }
.table-sm > :not(caption) > * > * { padding: .45rem .7rem; }
.sort-link { color: inherit; } .sort-link:hover { color: var(--primary); }
.row-link { font-weight: 600; color: var(--bs-body-color); } .row-link:hover { color: var(--primary); }
.col-check { width: 36px; } .col-actions { width: 1%; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state > i { font-size: 2.6rem; opacity: .35; display: block; margin-bottom: .6rem; }
.empty-state h6 { color: var(--muted); font-weight: 500; }
.form-actions { display: flex; justify-content: flex-end; gap: .5rem; }
dl.dl-grid { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: .45rem 1rem; margin: 0; }
dl.dl-grid dt { color: var(--muted); font-weight: 400; }
dl.dl-grid dd { margin: 0; word-break: break-word; }

/* ---------- Rozetler ---------- */
.badge { font-weight: 600; padding: .35em .6em; border-radius: .4rem; letter-spacing: .01em; }
.badge-soft-primary { background: #e0e7ff; color: #3730a3; } .badge-soft-success { background: #dcfce7; color: #166534; }
.badge-soft-danger { background: #fee2e2; color: #991b1b; } .badge-soft-warning { background: #fef3c7; color: #92400e; }
.badge-soft-info { background: #cffafe; color: #155e75; } .badge-soft-secondary { background: #e2e8f0; color: #334155; } .badge-soft-dark { background: #1e293b; color: #f8fafc; }
[data-bs-theme="dark"] .badge-soft-primary { background: rgba(99,102,241,.2); color: #c7d2fe; } [data-bs-theme="dark"] .badge-soft-success { background: rgba(34,197,94,.18); color: #86efac; }
[data-bs-theme="dark"] .badge-soft-danger { background: rgba(239,68,68,.18); color: #fca5a5; } [data-bs-theme="dark"] .badge-soft-warning { background: rgba(245,158,11,.18); color: #fcd34d; }
[data-bs-theme="dark"] .badge-soft-info { background: rgba(6,182,212,.18); color: #67e8f9; } [data-bs-theme="dark"] .badge-soft-secondary { background: #1e293b; color: #cbd5e1; }
.color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; border: 2px solid rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(0,0,0,.1); }

/* ---------- Avatar ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 600; flex-shrink: 0; }
.avatar-sm { width: 32px; height: 32px; font-size: .75rem; } .avatar-xs { width: 24px; height: 24px; font-size: .62rem; }
.avatar-md { width: 44px; height: 44px; font-size: .95rem; } .avatar-lg { width: 64px; height: 64px; font-size: 1.35rem; }
.avatar-stack .avatar { border: 2px solid var(--surface); margin-left: -8px; } .avatar-stack .avatar:first-child { margin-left: 0; }

/* ---------- KPI ---------- */
.kpi { border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); padding: 1.05rem 1.15rem; height: 100%; display: flex; gap: .9rem; align-items: flex-start; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; color: inherit; }
a.kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.08); color: inherit; }
.kpi-icon { width: 44px; height: 44px; border-radius: .7rem; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.kpi-label { font-size: .75rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.kpi-value { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-sub { font-size: .78rem; color: var(--muted); }
.trend-up { color: #16a34a; } .trend-down { color: #dc2626; }
.soft-primary { background: #eef2ff; color: #4f46e5; } .soft-success { background: #f0fdf4; color: #16a34a; } .soft-danger { background: #fef2f2; color: #dc2626; }
.soft-warning { background: #fffbeb; color: #d97706; } .soft-info { background: #ecfeff; color: #0891b2; } .soft-purple { background: #f5f3ff; color: #7c3aed; } .soft-secondary { background: #f1f5f9; color: #475569; }
[data-bs-theme="dark"] .soft-primary { background: rgba(99,102,241,.15); } [data-bs-theme="dark"] .soft-success { background: rgba(34,197,94,.12); } [data-bs-theme="dark"] .soft-danger { background: rgba(239,68,68,.12); }
[data-bs-theme="dark"] .soft-warning { background: rgba(245,158,11,.12); } [data-bs-theme="dark"] .soft-info { background: rgba(6,182,212,.12); } [data-bs-theme="dark"] .soft-purple { background: rgba(139,92,246,.15); } [data-bs-theme="dark"] .soft-secondary { background: #1e293b; }
.progress { --bs-progress-bg: #e2e8f0; height: .45rem; border-radius: 1rem; } [data-bs-theme="dark"] .progress { --bs-progress-bg: #1e293b; }
.progress-bar { background-color: var(--primary); }

/* ---------- Sekmeler ---------- */
.nav-tabs { --bs-nav-tabs-border-color: var(--border-soft); gap: .25rem; }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; padding: .6rem .9rem; margin-bottom: -1px; }
.nav-tabs .nav-link:hover { color: var(--bs-body-color); border-bottom-color: #cbd5e1; }
.nav-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: transparent; }
.nav-tabs .nav-link .badge { font-size: .65rem; }
.nav-pills .nav-link.active { background: var(--primary); }

/* ---------- Detay başlığı ---------- */
.entity-header { display: flex; gap: 1rem; align-items: center; }
.entity-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; color: var(--muted); font-size: .83rem; margin-top: .2rem; }
.entity-meta i { margin-right: .25rem; }

/* ---------- Kanban ---------- */
.kanban { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .75rem; align-items: flex-start; }
.kanban-col { flex: 0 0 290px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 220px); }
[data-bs-theme="dark"] .kanban-col { background: #0f172a; }
.kanban-col-head { padding: .75rem .9rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-soft); font-weight: 600; }
.kanban-col-body { padding: .6rem; overflow-y: auto; min-height: 120px; flex: 1; }
.kanban-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: .55rem; padding: .7rem .8rem; margin-bottom: .55rem; cursor: grab; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.kanban-card:hover { border-color: #c7d2fe; }
.kanban-card.sortable-ghost { opacity: .4; } .kanban-card.sortable-chosen { box-shadow: 0 10px 25px rgba(15,23,42,.15); }

/* ---------- Zaman çizelgesi ---------- */
.timeline-item { display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px dashed var(--border-soft); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-body { flex: 1; min-width: 0; }

/* ---------- Belge satır düzenleyici ---------- */
.line-editor td { vertical-align: top; padding: .4rem .35rem !important; }
.line-editor input, .line-editor select { font-size: .83rem; }
.line-editor .ts-wrapper { min-width: 220px; }
.totals-box { background: var(--surface-2); border-radius: var(--radius); padding: 1rem 1.2rem; }
.totals-box .row-t { display: flex; justify-content: space-between; padding: .3rem 0; }
.totals-box .grand { border-top: 2px solid var(--bs-body-color); margin-top: .4rem; padding-top: .6rem; font-size: 1.15rem; font-weight: 700; }

/* ---------- Tom Select ---------- */
.ts-wrapper.form-select, .ts-wrapper.form-control { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.ts-control { border-color: #d6dde6 !important; border-radius: .5rem !important; min-height: 36px; font-size: .875rem; }
.form-select-sm + .ts-wrapper .ts-control, .ts-wrapper.form-select-sm .ts-control { min-height: 31px; padding: .2rem .5rem !important; }
.ts-dropdown { font-size: .875rem; border-radius: .5rem; box-shadow: 0 10px 30px rgba(15,23,42,.12); z-index: 1060; }
.ts-dropdown .active { background: var(--primary-50); color: inherit; }
.ts-wrapper.is-invalid .ts-control, .is-invalid + .ts-wrapper .ts-control { border-color: #dc3545 !important; }
[data-bs-theme="dark"] .ts-control, [data-bs-theme="dark"] .ts-dropdown { background: #0f172a !important; border-color: #334155 !important; color: #e2e8f0; }
[data-bs-theme="dark"] .ts-control input { color: #e2e8f0 !important; }
[data-bs-theme="dark"] .ts-dropdown .active { background: #1e293b; }

/* ---------- Giriş ekranı ---------- */
.auth-page { background: var(--app-bg); }
.auth-wrap { display: flex; min-height: 100vh; }
.auth-side { flex: 1; background: radial-gradient(1200px 600px at 0% 0%, #6366f1 0%, transparent 60%), linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%); color: #fff; padding: 4rem; align-items: center; justify-content: center; }
.auth-side > div { max-width: 460px; }
.auth-logo { width: 56px; height: 56px; border-radius: 15px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; backdrop-filter: blur(6px); }
.auth-features li { padding: .4rem 0; opacity: .9; } .auth-features i { color: #a5b4fc; margin-right: .6rem; }
.auth-main { flex: 0 0 520px; max-width: 100%; display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--surface); }
.auth-card { width: 100%; max-width: 380px; }
.icon-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; }
.otp-input { letter-spacing: .5em; font-weight: 700; font-family: ui-monospace, monospace; }
@media (max-width: 991px) { .auth-main { flex: 1; } }

/* ---------- Grafik ---------- */
.chart-box { position: relative; height: 300px; }
.chart-box.sm { height: 220px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; }

/* ---------- Yazdırma ---------- */
@media print {
  .sidebar, .topbar, .page-actions, .no-print, .table-toolbar, .card-footer .pagination, .breadcrumb { display: none !important; }
  body, .content { background: #fff !important; padding: 0 !important; }
  .card { box-shadow: none; border: 0; }
}

/* Tom Select tek seçim kutularına görünür kenarlık */
.ts-wrapper.form-select .ts-control { border: 1px solid #d6dde6 !important; border-radius: .5rem !important; background-color: var(--bs-body-bg) !important; padding: .35rem 2rem .35rem .6rem !important; }
.ts-wrapper.form-select-sm .ts-control { padding: .2rem 2rem .2rem .5rem !important; min-height: 31px; }
.ts-wrapper.form-select.disabled .ts-control { background-color: var(--surface-2) !important; }
[data-bs-theme="dark"] .ts-wrapper.form-select .ts-control { border-color: #334155 !important; }
