:root{--brand:#5b4bdb;--brand2:#7c3aed;--ink:#172033;--muted:#6b7280;--bg:#f5f7fb;--line:#e8ebf2}.login-body{background:radial-gradient(circle at top left,#ede9fe,#f8fafc 55%);min-height:100vh}.app-shell{display:flex;min-height:100vh;background:var(--bg);color:var(--ink)}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:#111827;color:#fff;padding:22px 16px;display:flex;flex-direction:column;z-index:1030}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-size:20px;font-weight:800;padding:0 10px 20px}.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,var(--brand),var(--brand2))}.tenant-box{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.09);border-radius:14px;padding:13px;margin:0 4px 18px}.tenant-box small{display:block;color:#9ca3af;font-size:10px;letter-spacing:.12em}.tenant-box strong{display:block;margin:3px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar nav{display:flex;flex-direction:column;gap:4px}.sidebar nav a,.sidebar-bottom a{display:flex;gap:12px;align-items:center;color:#cbd5e1;text-decoration:none;padding:11px 12px;border-radius:10px;font-weight:600}.sidebar nav a:hover,.sidebar nav a.active,.sidebar-bottom a:hover{color:#fff;background:rgba(124,58,237,.25)}.sidebar-bottom{margin-top:auto}.main{margin-left:250px;width:calc(100% - 250px);min-height:100vh}.topbar{height:86px;background:#fff;border-bottom:1px solid var(--line);padding:15px 28px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:1020}.topbar h1{font-size:22px;margin:0;font-weight:800}.topbar p{font-size:12px;color:var(--muted);margin:3px 0 0}.user-pill{display:flex;gap:9px;align-items:center}.user-pill .avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#ede9fe;color:#5b21b6;font-weight:800}.user-pill strong,.user-pill small{display:block;font-size:13px}.user-pill small{color:var(--muted)}.content{padding:26px}.app-footer{padding:20px 26px;color:var(--muted);font-size:12px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;height:100%;box-shadow:0 4px 18px rgba(15,23,42,.03)}.stat-card .icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#ede9fe;color:#5b21b6;font-size:20px}.stat-card h3{font-size:25px;font-weight:800;margin:14px 0 2px}.stat-card p{margin:0;color:var(--muted);font-size:13px}.panel{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 4px 18px rgba(15,23,42,.03)}.panel-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.panel-head h2{font-size:16px;font-weight:800;margin:0}.panel-body{padding:20px}.table>thead th{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#6b7280;background:#f8fafc;border-bottom:0}.table td{vertical-align:middle}.btn-brand{background:linear-gradient(135deg,var(--brand),var(--brand2));border:0;color:#fff}.btn-brand:hover{color:#fff;filter:brightness(.95)}.form-control,.form-select{border-radius:10px;border-color:#dce1ea;padding:.65rem .8rem}.form-label{font-weight:700;font-size:13px}.invoice-paper{background:#fff;max-width:950px;margin:auto;padding:46px;border:1px solid #e5e7eb;box-shadow:0 10px 35px rgba(15,23,42,.08)}.invoice-brand{font-size:30px;font-weight:900}.hero{background:linear-gradient(135deg,#111827,#312e81);color:#fff;min-height:78vh}.hero h1{font-size:clamp(2.5rem,5vw,5rem);font-weight:900;letter-spacing:-.04em}.feature-card{border:1px solid #e5e7eb;border-radius:18px;padding:24px;height:100%}.auth-card{max-width:470px;margin:5vh auto;background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:0 20px 50px rgba(15,23,42,.09)}.auth-logo{width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;display:grid;place-items:center;font-size:25px;margin-bottom:18px}.empty-state{text-align:center;padding:45px 15px;color:var(--muted)}.empty-state i{font-size:40px;color:#c4b5fd}@media(max-width:991px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.show{transform:translateX(0)}.main{margin-left:0;width:100%}.content{padding:18px}.topbar{padding:12px 18px}.user-pill div{display:none}}@media print{.no-print,.sidebar,.topbar,.app-footer{display:none!important}.main{margin:0;width:100%}.content{padding:0}.invoice-paper{box-shadow:none;border:0;max-width:none;padding:10mm}.app-shell{display:block;background:#fff}}
