/* accounting-shell.css — the REAL dental app shell, so the accounting pages are
 * native dental pages (identical sidebar/topbar/cards), not a skinned CRM page.
 * Loaded last; pages use the dental .app/.sidebar/.main/.topbar/.content markup. */

*, *::before, *::after { box-sizing: border-box; }
:root {
    --primary: #a855f7; --primary-dark: #7e22ce; --primary-50: #faf5ff; --primary-100: #f3e8ff; --accent: #a3e635;
    --slate-900: #0f172a; --slate-800: #1e293b; --slate-700: #334155; --slate-600: #475569; --slate-500: #64748b;
    --slate-400: #94a3b8; --slate-300: #cbd5e1; --slate-200: #e2e8f0; --slate-100: #f1f5f9; --slate-50: #f8fafc;
    --green: #10b981; --amber: #f59e0b; --red: #ef4444; --purple: #8b5cf6;
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--slate-50) !important; color: var(--slate-900); margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }

/* layout */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; } .sidebar { display: none; } }

/* sidebar (identical to the dental app) */
.sidebar { background: #0a0a0a; color: #fff; padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
/* higher specificity (.sidebar ...) to beat the CRM styles.css which forces a
   stacked/centered brand — match the dental horizontal logo + wordmark */
.sidebar .sidebar-brand { display: flex !important; flex-direction: row !important; align-items: center !important; text-align: left !important; gap: 12px; padding: 4px 12px 28px; margin: 0; font-size: 17px; font-weight: 700; color: #fff; }
.sidebar .sidebar-icon { width: 36px !important; height: 36px !important; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #0a0a0a; margin: 0; }
.sidebar .sidebar-icon img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.brand-rr { display: inline; font-weight: 800; }
.brand-rr .r-purple, .brand-rr .r-lime { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-weight: 900; }
.brand-rr .r-purple { background-image: linear-gradient(135deg, #c084fc, #7e22ce); }
.brand-rr .r-lime { background-image: linear-gradient(135deg, #bef264, #65a30d); }
.nav-wrap { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-section { font-size: 11px; font-weight: 600; color: var(--slate-400); text-transform: uppercase; letter-spacing: 0.08em; padding: 16px 12px 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--slate-300); cursor: pointer; transition: background .1s, color .1s; text-decoration: none; }
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active { background: rgba(168,85,247,0.15); color: var(--primary); }
.nav-item .lico { font-size: 17px; width: 22px; display: inline-flex; align-items: center; justify-content: center; }
.nav-item .lico svg { width: 1em; height: 1em; stroke-width: 2; }
.sidebar-bottom { margin-top: auto; flex-shrink: 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.user-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.user-card:hover { background: rgba(255,255,255,0.06); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--slate-400); }

/* main + topbar (identical to the dental app) */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--slate-200); padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.breadcrumb { font-size: 13px; color: var(--slate-500); } .breadcrumb a { color: var(--slate-500); } .breadcrumb b { color: var(--slate-900); font-weight: 600; }
.btn-logout { padding: 8px 14px; border: 1px solid var(--slate-200); border-radius: 8px; font-size: 13px; background: #fff; color: var(--slate-700); cursor: pointer; font-weight: 500; }
.btn-logout:hover { background: var(--slate-50); }
.content { padding: 32px; flex: 1; }

/* page header → dental */
.page-header { margin-bottom: 24px; border: 0 !important; background: none !important; }
.page-header h1, .page-title { font-size: 26px; font-weight: 700; color: var(--slate-900); letter-spacing: -0.02em; margin: 0 0 4px; }
.page-subtitle, .page-sub { font-size: 14px; color: var(--slate-500); margin: 0; }

/* cards/buttons → dental, override any leftover CRM green/gold */
.card { background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; }
.lang-toggle, .btn-add-account, .btn-modal-save { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }
.lang-toggle:hover, .btn-add-account:hover, .btn-modal-save:hover { background: var(--primary-dark) !important; color: #fff !important; }
input:focus, select:focus, textarea:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(168,85,247,0.15) !important; }