/* BinaPro CRM — arayüz stilleri */
:root {
  --brand: #4f46e5;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, white);
  --brand-dark: color-mix(in srgb, var(--brand) 80%, black);
  --bg: #f5f6fa;
  --card: #ffffff;
  --line: #e7e9f0;
  --text: #1c2033;
  --muted: #6b7280;
  --sidebar-w: 256px;
  --radius: 14px;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-primary: var(--brand);
  --bs-link-color: var(--brand);
  --bs-link-hover-color: var(--brand-dark);
}
body { background: var(--bg); color: var(--text); font-size: .9rem; -webkit-font-smoothing: antialiased; }
.tiny { font-size: .72rem; }
.min-w-0 { min-width: 0; }
a { text-decoration: none; }

/* Bootstrap birincil renk */
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand); }
.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.form-control:focus, .form-select:focus { border-color: color-mix(in srgb, var(--brand) 50%, white); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 15%, transparent); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.page-link { color: var(--brand); }
.active > .page-link, .page-link.active { background-color: var(--brand); border-color: var(--brand); }
.nav-pills .nav-link.active { background: var(--brand); }
.btn { border-radius: 10px; font-weight: 500; }
.btn-sm { border-radius: 8px; }
.btn-light { background: #f1f2f6; border-color: #f1f2f6; }
.btn-light:hover { background: #e6e8ef; border-color: #e6e8ef; }
.btn-icon { border: 0; background: transparent; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--text); }
.btn-icon:hover { background: #eef0f5; }
.form-control, .form-select { border-radius: 10px; border-color: #dfe2ea; }
.form-label { font-weight: 500; font-size: .82rem; color: #374151; margin-bottom: .3rem; }
.form-section { font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .4rem; margin-top: .5rem; }

/* Soft rozetler */
.badge { font-weight: 600; font-size: .72rem; padding: .38em .7em; }
.text-bg-primary-soft { background: var(--brand-soft) !important; color: var(--brand) !important; }
.text-bg-success-soft { background: #e7f7ee !important; color: #13834b !important; }
.text-bg-danger-soft { background: #fdecec !important; color: #c62828 !important; }
.text-bg-warning-soft { background: #fff4e0 !important; color: #b26a00 !important; }
.text-bg-info-soft { background: #e6f4fb !important; color: #0b7aa8 !important; }
.text-bg-secondary-soft { background: #eef0f4 !important; color: #5a6170 !important; }
.text-bg-dark-soft { background: #e3e4e8 !important; color: #222 !important; }
.bg-primary-soft { background: var(--brand-soft) !important; }
.bg-success-soft { background: #e7f7ee !important; }
.bg-danger-soft { background: #fdecec !important; }
.bg-warning-soft { background: #fff4e0 !important; }
.bg-info-soft { background: #e6f4fb !important; }
.bg-secondary-soft { background: #eef0f4 !important; }
.text-success { color: #13834b !important; }
.text-warning { color: #b26a00 !important; }
.color-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); vertical-align: middle; }

/* Uygulama iskeleti */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
@media (min-width: 992px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1030; }
  .main { margin-left: var(--sidebar-w); }
}
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.brand-mark.lg { width: 56px; height: 56px; font-size: 1.6rem; border-radius: 16px; }
.brand-logo { height: 34px; width: auto; }
.brand-text { font-weight: 700; color: var(--text); font-size: .98rem; line-height: 1.2; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 10px 16px; }
.sidebar-nav .nav-group { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #9aa0ad; padding: 14px 12px 6px; }
.sidebar-nav .nav-link { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 9px; color: #444b5a; font-weight: 500; font-size: .86rem; margin-bottom: 1px; }
.sidebar-nav .nav-link i { font-size: 1.05rem; width: 20px; text-align: center; color: #8a91a0; }
.sidebar-nav .nav-link:hover { background: #f4f5f9; color: var(--text); }
.sidebar-nav .nav-link.active { background: var(--brand-soft); color: var(--brand); }
.sidebar-nav .nav-link.active i { color: var(--brand); }
.sidebar-foot { padding: 12px 18px; border-top: 1px solid var(--line); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1020; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 10px 20px; min-height: 62px; }
.site-switch { display: flex; align-items: center; gap: 8px; max-width: 340px; min-width: 0; }
.site-switch .form-select { min-width: 160px; border-radius: 10px; background-color: #f6f7fb; }
.btn-user { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 4px 8px; border-radius: 12px; }
.btn-user:hover { background: #f1f2f6; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.notif-dot { position: absolute; top: 4px; right: 2px; background: #ef4444; color: #fff; font-size: .62rem; font-weight: 700; border-radius: 10px; padding: 1px 5px; line-height: 1.3; }
.notif-menu { width: 330px; max-width: 92vw; padding: 0; border-radius: 14px; overflow: hidden; }
.notif-item { white-space: normal; border-bottom: 1px solid #f0f1f5; padding: 10px 14px; }
.notif-item.unread { background: var(--brand-soft); }
.content { padding: 22px; flex: 1; }
@media (max-width: 575.98px) { .content { padding: 14px; } .topbar { padding: 8px 12px; } .site-switch .form-select { min-width: 0; } }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-title { font-size: 1.35rem; font-weight: 700; margin: 0 0 2px; letter-spacing: -.01em; }
.page-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* Kartlar */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); padding: 14px 18px; font-weight: 600; }
.card-footer { background: #fafbfd; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius) !important; }
.card-body { padding: 18px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: center; height: 100%; transition: transform .15s, box-shadow .15s; }
a .stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,24,40,.06); }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-sub { font-size: .74rem; color: var(--muted); }

/* Tablolar */
.table { --bs-table-hover-bg: #f8f9fc; margin-bottom: 0; }
.table > thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #7a8090; font-weight: 600; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap; padding: 10px 14px; }
.table > tbody td { padding: 10px 14px; border-color: #f0f1f5; }
.actions-cell .btn { padding: .2rem .45rem; }
.actions-cell form { display: inline; }
@media (max-width: 767.98px) {
  .table-mobile thead { display: none; }
  .table-mobile, .table-mobile tbody, .table-mobile tr, .table-mobile td { display: block; width: 100%; }
  .table-mobile tr { border-bottom: 1px solid var(--line); padding: 8px 4px; }
  .table-mobile td { border: 0; padding: 4px 12px; display: flex; justify-content: space-between; gap: 12px; text-align: right !important; }
  .table-mobile td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .76rem; text-align: left; flex-shrink: 0; }
  .table-mobile td:not([data-label])::before { content: none; }
  .table-mobile td.actions-cell { justify-content: flex-end; padding-top: 8px; }
  .table-mobile td[colspan] { display: block; text-align: center !important; }
}

.empty-state { text-align: center; padding: 40px 16px; }
.empty-state i { font-size: 2.6rem; color: #c3c7d2; display: block; margin-bottom: 10px; }
.confirm-icon { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; background: #fdecec; color: #c62828; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

/* Zaman çizelgesi (talep geçmişi) */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-item::before { content: ''; position: absolute; left: -22px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline-item.internal::before { border-color: #b26a00; }
.thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* Rezervasyon slotları */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; font-weight: 600; font-size: .82rem; background: #fff; cursor: pointer; user-select: none; }
.slot.taken { background: #f4f4f6; color: #aaa; cursor: not-allowed; text-decoration: line-through; }
.slot.selected { background: var(--brand); color: #fff; border-color: var(--brand); }
.slot.past { opacity: .45; cursor: not-allowed; }

/* Portal */
.balance-hero { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #0ea5e9)); color: #fff; border-radius: 18px; padding: 22px; }
.balance-hero .amount { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 575.98px) { .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
.quick-btn { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 6px; text-align: center; color: var(--text); font-size: .76rem; font-weight: 500; display: block; }
.quick-btn i { display: block; font-size: 1.4rem; color: var(--brand); margin-bottom: 4px; }
.quick-btn:hover { border-color: var(--brand); color: var(--brand); }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 1030; padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { flex: 1; text-align: center; padding: 8px 2px 6px; color: #7a8090; font-size: .66rem; font-weight: 500; }
.bottom-nav a i { display: block; font-size: 1.25rem; }
.bottom-nav a.active { color: var(--brand); }
@media (max-width: 991.98px) { .is-portal .content { padding-bottom: 86px; } }
.ann-card { border-left: 4px solid var(--brand); }
.ann-card.acil { border-left-color: #ef4444; }
.ann-card.onemli { border-left-color: #f59e0b; }
.listing-img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px 12px 0 0; background: #eef0f4; }

/* Giriş ekranı */
.auth-body { background: #fff; }
.auth-wrap { display: flex; min-height: 100vh; }
.auth-side { flex: 1; background: linear-gradient(150deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #0f172a)); color: #fff; padding: 60px; align-items: center; }
.auth-side .brand-mark { background: rgba(255,255,255,.18); }
.auth-feats li { padding: 7px 0; font-size: 1rem; opacity: .92; }
.auth-feats i { margin-right: 10px; }
.auth-form { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; }

.progress { height: 8px; border-radius: 8px; background: #eef0f4; }
.list-group-item { border-color: #f0f1f5; }
.nav-tabs .nav-link { color: var(--muted); font-weight: 500; }
.nav-tabs .nav-link.active { color: var(--brand); }
.signature-pad { border: 2px dashed #cfd3dd; border-radius: 12px; width: 100%; height: 180px; touch-action: none; background: #fff; }
#qr-reader { max-width: 420px; margin: 0 auto; }
.qr-box { display: inline-block; padding: 14px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
@media print {
  .sidebar, .topbar, .page-actions, .bottom-nav, .no-print, .btn { display: none !important; }
  .main { margin: 0 !important; }
  .content { padding: 0 !important; }
  .card { border: 0; box-shadow: none; }
  body { background: #fff; }
}
a:not(.btn):not(.nav-link):not(.list-group-item):not(.dropdown-item):not(.page-link) { color: var(--brand); }
a:not(.btn):not(.nav-link):not(.list-group-item):not(.dropdown-item):not(.page-link):hover { color: var(--brand-dark); }
.list-group-item-action { color: var(--text); }

/* ===================== v3: Karanlık mod ===================== */
[data-bs-theme="dark"] {
  --bg: #0f1220; --card: #171b2e; --line: #262b44; --text: #e6e8f2; --muted: #9aa1b5;
  --brand-soft: color-mix(in srgb, var(--brand) 22%, #171b2e);
  --bs-body-bg: #0f1220; --bs-body-color: #e6e8f2; --bs-border-color: #262b44; --bs-tertiary-bg: #1d2238; --bs-secondary-color: #9aa1b5;
}
[data-bs-theme="dark"] .sidebar, [data-bs-theme="dark"] .topbar, [data-bs-theme="dark"] .card, [data-bs-theme="dark"] .stat-card, [data-bs-theme="dark"] .quick-btn,
[data-bs-theme="dark"] .bottom-nav, [data-bs-theme="dark"] .slot, [data-bs-theme="dark"] .qr-box, [data-bs-theme="dark"] .modal-content, [data-bs-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .list-group-item, [data-bs-theme="dark"] .auth-body, [data-bs-theme="dark"] .timeline-item::before { background-color: var(--card) !important; color: var(--text); border-color: var(--line); }
[data-bs-theme="dark"] .card-footer, [data-bs-theme="dark"] .table > thead th, [data-bs-theme="dark"] .card-header { background: #1b2036 !important; border-color: var(--line); }
[data-bs-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-hover-bg: #1d2238; --bs-table-border-color: var(--line); }
[data-bs-theme="dark"] .btn-light { background: #232842; border-color: #232842; color: var(--text); }
[data-bs-theme="dark"] .btn-light:hover, [data-bs-theme="dark"] .btn-icon:hover, [data-bs-theme="dark"] .sidebar-nav .nav-link:hover, [data-bs-theme="dark"] .btn-user:hover { background: #2a3050; color: var(--text); }
[data-bs-theme="dark"] .btn-icon, [data-bs-theme="dark"] .sidebar-nav .nav-link { color: var(--text); }
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select { background-color: #12162a; border-color: #2c3250; color: var(--text); }
[data-bs-theme="dark"] .form-label { color: #c9cde0; }
[data-bs-theme="dark"] .text-muted { color: var(--muted) !important; }
[data-bs-theme="dark"] .progress, [data-bs-theme="dark"] .slot.taken, [data-bs-theme="dark"] .listing-img { background: #232842; }
[data-bs-theme="dark"] .bg-light { background-color: #1d2238 !important; }
[data-bs-theme="dark"] .text-bg-success-soft { background: #10301f !important; color: #5ee09a !important; }
[data-bs-theme="dark"] .text-bg-danger-soft { background: #3a1517 !important; color: #ff8a8a !important; }
[data-bs-theme="dark"] .text-bg-warning-soft { background: #3a2a0c !important; color: #ffc861 !important; }
[data-bs-theme="dark"] .text-bg-info-soft { background: #0e2c3a !important; color: #6fd0ff !important; }
[data-bs-theme="dark"] .text-bg-secondary-soft, [data-bs-theme="dark"] .text-bg-dark-soft { background: #262b44 !important; color: #c3c8da !important; }
[data-bs-theme="dark"] .text-bg-primary-soft { background: color-mix(in srgb, var(--brand) 25%, #171b2e) !important; color: #c7c9ff !important; }
[data-bs-theme="dark"] .bg-success-soft { background: #10301f !important; } [data-bs-theme="dark"] .bg-danger-soft { background: #3a1517 !important; }
[data-bs-theme="dark"] .bg-warning-soft { background: #3a2a0c !important; } [data-bs-theme="dark"] .bg-info-soft { background: #0e2c3a !important; } [data-bs-theme="dark"] .bg-secondary-soft { background: #262b44 !important; }
[data-bs-theme="dark"] .alert-info { --bs-alert-bg: #0e2c3a; --bs-alert-color: #9fdcfa; --bs-alert-border-color: #164257; }
[data-bs-theme="dark"] .alert-warning { --bs-alert-bg: #3a2a0c; --bs-alert-color: #ffd48a; --bs-alert-border-color: #5a4316; }
[data-bs-theme="dark"] .alert-success { --bs-alert-bg: #10301f; --bs-alert-color: #8ff0bd; --bs-alert-border-color: #1c4d33; }
[data-bs-theme="dark"] .alert-danger { --bs-alert-bg: #3a1517; --bs-alert-color: #ffadad; --bs-alert-border-color: #5c2226; }
[data-bs-theme="dark"] .sticky-top.bg-white { background: var(--card) !important; }
[data-bs-theme="dark"] pre { color: var(--text); }
.text-bg-primary-soft { background: var(--brand-soft) !important; color: var(--brand-dark) !important; }

/* ===================== v3: Erişilebilirlik ===================== */
.skip-link { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 2000; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; transform: translateY(-200%); opacity: 0; pointer-events: none; }
.skip-link:focus { transform: none; opacity: 1; pointer-events: auto; color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, #fff); outline-offset: 2px; }
.btn:focus-visible, .nav-link:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, #fff); outline-offset: 2px; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
body.a11y-large { font-size: 1.02rem; }
body.a11y-contrast { --muted: #374151; --line: #9aa1b5; }
body.a11y-contrast .text-muted { color: #2d3340 !important; }

/* ===================== v3: Gelen çağrı penceresi ===================== */
.call-pop { position: fixed; right: 16px; bottom: 16px; z-index: 1090; width: 320px; max-width: calc(100vw - 32px); background: var(--card); border: 1px solid var(--line); border-left: 5px solid #16a34a; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 14px; }
.call-pop .ring { animation: ring 1s infinite; display: inline-block; }
@keyframes ring { 0%,100% { transform: rotate(0); } 25% { transform: rotate(14deg); } 75% { transform: rotate(-14deg); } }

/* ===== v6: sade menü, hub sekmeleri, genel arama ===== */
.sidebar-search { display: flex; align-items: center; gap: 8px; margin: 10px 10px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #f6f7fb; color: #6b7280; font-size: .85rem; text-align: start; }
.sidebar-search span { flex: 1; }
.sidebar-search kbd, .top-search kbd { background: #fff; color: #6b7280; border: 1px solid var(--line); font-size: .68rem; padding: 1px 5px; box-shadow: none; }
.sidebar-search:hover, .top-search:hover { border-color: var(--brand); color: var(--brand); }
.top-search { align-items: center; gap: 8px; flex: 0 1 380px; min-width: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f6f7fb; color: #6b7280; font-size: .85rem; }
.top-search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.sidebar-nav details.nav-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; border-radius: 8px; user-select: none; }
.sidebar-nav details.nav-sec > summary::-webkit-details-marker { display: none; }
.sidebar-nav details.nav-sec > summary:hover { color: var(--text); background: #f4f5f9; }
.sidebar-nav details.nav-sec > summary i { transition: transform .15s; font-size: .7rem; }
.sidebar-nav details.nav-sec:not([open]) > summary i { transform: rotate(-90deg); }
.sidebar-nav .nav-count { margin-inline-start: auto; font-size: .66rem; color: #9aa0ad; background: #f1f2f6; border-radius: 10px; padding: 0 6px; }
.sidebar-nav .nav-link.active .nav-count { background: #fff; color: var(--brand); }
.hub-tabs { margin: -4px 0 14px; }
.hub-tabs .nav { gap: 4px; padding-bottom: 4px; scrollbar-width: thin; }
.hub-tabs .nav-link { padding: 6px 12px; font-size: .82rem; border-radius: 999px; color: #555d6e; background: #f1f2f6; }
.hub-tabs .nav-link.active { color: #fff; background: var(--brand); }
.hub-tabs .nav-link i { opacity: .8; }
.btn-fav { border: 0; background: none; padding: 0 0 0 8px; color: #c2c6d0; font-size: 1rem; vertical-align: middle; line-height: 1; }
.btn-fav.on, .btn-fav:hover { color: #f59e0b; }
.search-palette { overflow: hidden; border-radius: 14px; }
.search-input-wrap { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.search-input-wrap > i { color: #9aa0ad; font-size: 1.1rem; }
.search-results { max-height: min(62vh, 560px); overflow-y: auto; padding: 6px; }
.search-results.loading { opacity: .6; }
.sr-group { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #9aa0ad; padding: 10px 10px 4px; }
.sr-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text) !important; text-decoration: none; }
.sr-item > i:first-child { width: 20px; text-align: center; color: #8a91a0; }
.sr-item.active { background: var(--brand-soft); }
.sr-item.active > i:first-child { color: var(--brand); }
.sr-main { min-width: 0; flex: 1; }
.sr-label { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-sub { display: block; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-enter { color: #c2c6d0; visibility: hidden; }
.sr-item.active .sr-enter { visibility: visible; }
.sr-hint { padding: 18px; text-align: center; color: var(--muted); font-size: .85rem; }
.floor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.floor-cell { display: block; padding: 6px 4px; border-radius: 8px; text-align: center; font-size: .78rem; font-weight: 600; color: #1f2937 !important; text-decoration: none; border: 1px solid rgba(0,0,0,.06); }
.floor-cell small { display: block; font-weight: 400; font-size: .64rem; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-ok { background: #dcfce7; } .fc-debt { background: #fee2e2; } .fc-debt2 { background: #fca5a5; } .fc-ticket { box-shadow: inset 0 0 0 2px #f59e0b; } .fc-empty { background: #f1f2f6; color: #9aa0ad !important; } .fc-risk { outline: 2px dashed #b91c1c; outline-offset: -3px; }
.floor-row { display: grid; grid-template-columns: 54px 1fr; gap: 8px; align-items: start; margin-bottom: 6px; }
.floor-label { font-size: .72rem; color: var(--muted); padding-top: 8px; text-align: end; }
.chat-bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; word-break: break-word; }
.chat-q { margin-inline-start: auto; background: var(--brand); color: #fff; border-end-end-radius: 4px; }
.chat-a { background: #f1f2f6; border-end-start-radius: 4px; }
[data-bs-theme="dark"] .sidebar-search, [data-bs-theme="dark"] .top-search, [data-bs-theme="dark"] .hub-tabs .nav-link:not(.active), [data-bs-theme="dark"] .chat-a, [data-bs-theme="dark"] .sidebar-nav .nav-count { background: #222842; color: var(--text); }
[data-bs-theme="dark"] .sidebar-search kbd, [data-bs-theme="dark"] .top-search kbd { background: #2a3050; color: var(--text); }
[data-bs-theme="dark"] .sidebar-nav details.nav-sec > summary:hover { background: #2a3050; }
[data-bs-theme="dark"] .fc-ok { background: #14532d; } [data-bs-theme="dark"] .fc-debt { background: #7f1d1d; } [data-bs-theme="dark"] .fc-debt2 { background: #991b1b; } [data-bs-theme="dark"] .fc-empty { background: #222842; }
[data-bs-theme="dark"] .floor-cell { color: #f3f4f6 !important; }
@media print { .hub-tabs, .btn-fav, .sidebar-search, .top-search { display: none !important; } }
