@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');
:root{color-scheme:dark;--primary:#2563eb;--primary-hover:#1d4ed8;--navy:#0f172a;--paper:#f8fafc;--bg:#080d18;--surface:rgba(15,23,42,.86);--surface-solid:#111c30;--surface-2:rgba(30,41,59,.72);--surface-3:rgba(51,65,85,.42);--ink:#f8fafc;--muted:#94a3b8;--line:rgba(148,163,184,.15);--success:#10b981;--warning:#f59e0b;--danger:#f43f5e;--info:#0ea5e9;--radius-sm:.65rem;--radius:.9rem;--radius-lg:1.25rem;--shadow-sm:0 5px 18px rgba(2,6,23,.13);--shadow:0 18px 50px rgba(2,6,23,.25);--shadow-lg:0 30px 90px rgba(2,6,23,.4);--ease:cubic-bezier(.22,1,.36,1)}
html.theme-light{color-scheme:light}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;font-family:'DM Sans',system-ui,sans-serif;color:var(--ink);background:radial-gradient(circle at 8% 0,rgba(37,99,235,.12),transparent 30rem),radial-gradient(circle at 92% 5%,rgba(124,58,237,.09),transparent 28rem),var(--bg);-webkit-font-smoothing:antialiased}body.light-mode,.theme-light body{--bg:#f8fafc;--surface:rgba(255,255,255,.9);--surface-solid:#fff;--surface-2:rgba(241,245,249,.88);--surface-3:rgba(226,232,240,.72);--ink:#0f172a;--muted:#64748b;--line:rgba(15,23,42,.1);--shadow-sm:0 5px 18px rgba(15,23,42,.05);--shadow:0 18px 50px rgba(30,64,175,.09);--shadow-lg:0 30px 90px rgba(30,64,175,.13)}button,input,select,textarea{font:inherit}button{color:inherit}a{text-decoration:none;color:inherit}h1,h2,h3,h4,.font-display{font-family:'Manrope',sans-serif}.ui-icon{width:1.15rem;height:1.15rem;display:block;flex:none}.text-muted{color:var(--muted)}.border-soft{border-color:var(--line)!important}.hidden{display:none!important}.grid-sheen{background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);background-size:40px 40px}.light-mode.grid-sheen{background-image:linear-gradient(rgba(15,23,42,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(15,23,42,.025) 1px,transparent 1px)}
.glass,.card,.stat-card{background:var(--surface);border:1px solid var(--line);backdrop-filter:blur(20px);box-shadow:0 1px 0 rgba(255,255,255,.03)}.card{border-radius:var(--radius-lg);padding:1.35rem}.card-compact{padding:1rem}.card-hover{transition:transform .28s var(--ease),border-color .28s,box-shadow .28s}.card-hover:hover{transform:translateY(-3px);border-color:rgba(37,99,235,.4);box-shadow:var(--shadow)}.card-title{font-size:1rem;font-weight:800}.card-subtitle{font-size:.8rem;color:var(--muted);margin-top:.25rem}.card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.2rem}.card-footer{border-top:1px solid var(--line);margin:1.2rem -1.35rem -1.35rem;padding:1rem 1.35rem}
.brand-logo{display:flex;align-items:center;gap:.7rem;font-family:'Manrope',sans-serif;font-weight:800;letter-spacing:-.04em;min-width:0}.brand-logo img{width:2.35rem;height:2.35rem;flex:none}.brand-word{font-size:1.18rem;white-space:nowrap}.brand-word em{font-style:normal;color:#3b82f6}.brand-tag{display:block;font:600 .55rem/1.2 'DM Sans',sans-serif;color:var(--muted);letter-spacing:.12em;text-transform:uppercase;margin-top:.08rem;white-space:nowrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:1px solid transparent;border-radius:var(--radius-sm);padding:.72rem 1rem;font-weight:700;font-size:.84rem;line-height:1;transition:transform .2s var(--ease),background .2s,border-color .2s,box-shadow .2s;cursor:pointer;white-space:nowrap}.btn:hover{transform:translateY(-1px)}.btn:active{transform:translateY(0)}.btn:focus-visible,.icon-btn:focus-visible{outline:3px solid rgba(37,99,235,.28);outline-offset:2px}.btn-primary{color:#fff;background:linear-gradient(135deg,#2563eb,#4f46e5);box-shadow:0 10px 24px rgba(37,99,235,.24)}.btn-primary:hover{background:linear-gradient(135deg,#1d4ed8,#4338ca)}.btn-secondary{color:var(--ink);background:var(--surface-2);border-color:var(--line)}.btn-ghost{color:var(--muted);background:transparent}.btn-ghost:hover{color:var(--ink);background:var(--surface-2)}.btn-danger{color:#fff;background:#e11d48}.btn-success{color:#fff;background:#059669}.btn-outline{color:#60a5fa;border-color:rgba(59,130,246,.35);background:rgba(37,99,235,.05)}.btn-sm{padding:.54rem .72rem;font-size:.75rem}.btn-lg{padding:.93rem 1.3rem;border-radius:.85rem}.btn-icon{width:2.6rem;height:2.6rem;padding:0}.btn:disabled{opacity:.45;pointer-events:none}.button-group{display:flex;align-items:center}.button-group .btn{border-radius:0;margin-left:-1px}.button-group .btn:first-child{border-radius:.7rem 0 0 .7rem}.button-group .btn:last-child{border-radius:0 .7rem .7rem 0}
.icon-btn{width:2.55rem;height:2.55rem;border-radius:.72rem;border:1px solid var(--line);background:var(--surface-2);display:grid;place-items:center;cursor:pointer;transition:.2s var(--ease);flex:none}.icon-btn:hover{background:var(--surface-3);border-color:rgba(37,99,235,.3);color:#60a5fa;transform:translateY(-1px)}
.form-group{margin-bottom:1rem}.form-label{display:block;font-size:.78rem;font-weight:700;margin-bottom:.45rem}.form-control,.input-field,.form-select,.form-textarea{width:100%;border:1px solid var(--line);border-radius:.72rem;background:var(--surface-2);color:var(--ink);padding:.76rem .88rem;outline:none;transition:border-color .2s,box-shadow .2s,background .2s}.form-control:focus,.input-field:focus,.form-select:focus,.form-textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(37,99,235,.12);background:var(--surface)}.form-control::placeholder,.input-field::placeholder,.form-textarea::placeholder{color:#718096}.form-select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:2.2rem}.form-textarea{min-height:7rem;resize:vertical}.form-help{font-size:.7rem;color:var(--muted);margin-top:.38rem}.form-error{font-size:.7rem;color:var(--danger);margin-top:.38rem}.input-group{display:flex}.input-group .form-control{border-radius:.72rem 0 0 .72rem}.input-group .btn{border-radius:0 .72rem .72rem 0}.check-control{display:flex;align-items:center;gap:.6rem;font-size:.82rem}.check-control input{width:1rem;height:1rem;accent-color:var(--primary)}
.badge{display:inline-flex;align-items:center;gap:.32rem;border-radius:999px;padding:.31rem .6rem;font-size:.66rem;font-weight:800;letter-spacing:.02em;white-space:nowrap}.badge-primary{color:#93c5fd;background:rgba(37,99,235,.14)}.badge-success{color:#6ee7b7;background:rgba(16,185,129,.13)}.badge-warning{color:#fcd34d;background:rgba(245,158,11,.13)}.badge-danger{color:#fda4af;background:rgba(244,63,94,.13)}.badge-info{color:#7dd3fc;background:rgba(14,165,233,.13)}.badge-neutral{color:var(--muted);background:var(--surface-2);border:1px solid var(--line)}
.alert{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;border:1px solid var(--line);border-radius:.85rem;padding:.85rem 1rem;font-size:.82rem;background:var(--surface)}.alert button .ui-icon{width:1rem}.alert-info{border-color:rgba(14,165,233,.25);background:rgba(14,165,233,.08)}.alert-success{border-color:rgba(16,185,129,.25);background:rgba(16,185,129,.08)}.alert-error{border-color:rgba(244,63,94,.25);background:rgba(244,63,94,.08)}.alert-warning{border-color:rgba(245,158,11,.25);background:rgba(245,158,11,.08)}
.stat-card{border-radius:var(--radius-lg);padding:1.2rem;transition:.25s var(--ease)}.stat-card:hover{border-color:rgba(37,99,235,.3);box-shadow:var(--shadow-sm)}.stat-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.stat-label{font-size:.78rem;color:var(--muted);font-weight:600}.stat-value{font:800 1.75rem/1.2 'Manrope',sans-serif;margin-top:.55rem;letter-spacing:-.04em}.stat-icon,.kpi-icon{width:2.55rem;height:2.55rem;border-radius:.8rem;display:grid;place-items:center;background:linear-gradient(135deg,rgba(37,99,235,.16),rgba(99,102,241,.14));color:#60a5fa}.stat-detail{font-size:.69rem;margin-top:.9rem}.metric-up{color:#34d399}.metric-down{color:#fb7185}
.sidebar-shell{background:rgba(8,14,27,.96);border-right:1px solid var(--line);backdrop-filter:blur(24px);transition:width .32s var(--ease),transform .32s var(--ease);overflow:hidden}.light-mode .sidebar-shell{background:rgba(255,255,255,.96)}.sidebar-brand{height:4.75rem;padding:0 .85rem;display:flex;align-items:center;gap:.5rem;border-bottom:1px solid var(--line)}.sidebar-brand .brand-logo{flex:1}.sidebar-brand-copy{transition:opacity .18s,width .25s}.sidebar-collapse-btn{width:1.9rem;height:1.9rem;border-radius:.55rem;border:1px solid var(--line);place-items:center;color:var(--muted);background:var(--surface-2);cursor:pointer;transition:.25s}.sidebar-collapse-btn:hover{color:#60a5fa}.sidebar-collapse-btn .ui-icon{width:.9rem}.sidebar-scroll{flex:1;overflow-y:auto;overflow-x:hidden;padding:.65rem}.sidebar-scroll::-webkit-scrollbar{width:4px}.sidebar-scroll::-webkit-scrollbar-thumb{background:var(--surface-3);border-radius:4px}.sidebar-section{padding:.2rem .72rem;margin:.7rem 0 .3rem;color:#687890;font-size:.57rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap}.sidebar-link{position:relative;display:flex;align-items:center;gap:.72rem;min-height:2.55rem;border:1px solid transparent;color:var(--muted);padding:.58rem .7rem;border-radius:.72rem;font-size:.79rem;font-weight:600;transition:background .2s,border-color .2s,color .2s;white-space:nowrap}.sidebar-link:hover,.sidebar-link.active{color:var(--ink);background:linear-gradient(90deg,rgba(37,99,235,.15),rgba(79,70,229,.05));border-color:var(--line)}.sidebar-link.active:before{content:'';position:absolute;left:-.66rem;width:3px;height:20px;border-radius:0 4px 4px 0;background:#3b82f6;box-shadow:0 0 14px rgba(59,130,246,.8)}.sidebar-icon{width:1.3rem;height:1.3rem;display:grid;place-items:center;color:#7ba8ff;flex:none}.sidebar-icon .ui-icon{width:1.18rem;height:1.18rem}.sidebar-label{overflow:hidden;text-overflow:ellipsis}.sidebar-meta{margin-left:auto;border:1px solid var(--line);border-radius:999px;padding:.15rem .35rem;font-size:.5rem;color:var(--muted)}.sidebar-footer{padding:.7rem;border-top:1px solid var(--line)}.workspace-health{display:flex;align-items:center;gap:.65rem;padding:.65rem .7rem;margin-bottom:.25rem}.status-dot{width:.48rem;height:.48rem;background:#10b981;border-radius:50%;box-shadow:0 0 0 4px rgba(16,185,129,.1);flex:none}.sidebar-backdrop{background:rgba(2,6,23,.72);backdrop-filter:blur(3px);display:none}.app-main{transition:padding-left .32s var(--ease)}
html.sidebar-is-collapsed .sidebar-shell{width:5.15rem}html.sidebar-is-collapsed .app-main{padding-left:5.15rem!important}html.sidebar-is-collapsed .sidebar-brand{padding:0 .7rem;justify-content:center}html.sidebar-is-collapsed .sidebar-brand .brand-logo{flex:0}html.sidebar-is-collapsed .sidebar-brand-copy,html.sidebar-is-collapsed .sidebar-label,html.sidebar-is-collapsed .sidebar-meta,html.sidebar-is-collapsed .sidebar-section{width:0;opacity:0;pointer-events:none;position:absolute}html.sidebar-is-collapsed .sidebar-collapse-btn{position:absolute;right:-.95rem;background:var(--surface-solid)}html.sidebar-is-collapsed .sidebar-collapse-btn .ui-icon{transform:rotate(180deg)}html.sidebar-is-collapsed .sidebar-link{justify-content:center;padding:.58rem}html.sidebar-is-collapsed .workspace-health{justify-content:center}html.sidebar-is-collapsed .sidebar-brand img{width:2.25rem}
.topbar{height:4.75rem;position:sticky;top:0;z-index:30;border-width:0 0 1px;padding:0 1.25rem}.topbar-row{height:100%;display:flex;align-items:center;gap:.7rem}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:.5rem}.company-switcher-btn{height:2.55rem;display:flex;align-items:center;gap:.58rem;padding:.35rem .65rem;border:1px solid var(--line);border-radius:.72rem;background:var(--surface-2);max-width:13rem}.company-icon{color:#60a5fa}.company-copy{display:grid;text-align:left;min-width:0}.company-copy small{font-size:.56rem;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.company-copy strong{font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chevron{font-size:.75rem;color:var(--muted)}.top-search{position:relative;max-width:28rem;min-width:11rem;flex:1}.top-search input,.search-box input{width:100%;height:2.55rem;padding:0 3.1rem 0 2.45rem;border:1px solid var(--line);border-radius:.72rem;background:var(--surface-2);color:var(--ink);outline:none;transition:.2s}.top-search input:focus,.search-box input:focus{border-color:rgba(37,99,235,.55);box-shadow:0 0 0 3px rgba(37,99,235,.1)}.top-search .search-icon,.search-box .search-icon{position:absolute;left:.85rem;top:.72rem;color:var(--muted)}.top-search kbd{position:absolute;right:.65rem;top:.68rem;padding:.15rem .32rem;border:1px solid var(--line);border-radius:.3rem;font-size:.55rem;color:var(--muted);background:var(--surface)}.notification-dot{position:absolute;right:.55rem;top:.5rem;width:.42rem;height:.42rem;background:#f43f5e;border:2px solid var(--surface-solid);box-sizing:content-box;border-radius:50%}.profile-button{display:flex;align-items:center;gap:.6rem;padding-left:.35rem}.profile-copy{display:grid;text-align:right}.profile-copy strong{font-size:.72rem}.profile-copy small{font-size:.58rem;color:var(--muted);text-transform:capitalize}.profile-avatar,.company-avatar{width:2.55rem;height:2.55rem;border-radius:.78rem;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#2563eb,#7c3aed);font-size:.72rem;font-weight:800;box-shadow:0 8px 20px rgba(37,99,235,.2)}.profile-avatar.large{width:2.9rem;height:2.9rem}.page-heading{padding:1.2rem 1.75rem 0}.page-heading h1{font-size:1.45rem;font-weight:800;margin-top:.45rem}.breadcrumb{display:flex;align-items:center;gap:.48rem;font-size:.67rem;color:var(--muted)}.breadcrumb a:hover{color:#60a5fa}.breadcrumb b{font-weight:400;opacity:.45}
.dropdown{position:absolute;right:0;top:calc(100% + .65rem);z-index:60;min-width:15rem;padding:.5rem;border-radius:.9rem;background:var(--surface-solid);border:1px solid var(--line);box-shadow:var(--shadow-lg);display:none;animation:dropdown-in .18s var(--ease)}.dropdown.open{display:block}.dropdown-left{left:0;right:auto}.dropdown-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem .7rem;border-bottom:1px solid var(--line);font-size:.78rem;font-weight:800}.dropdown-item{display:flex;width:100%;align-items:center;gap:.65rem;padding:.68rem .7rem;border-radius:.62rem;font-size:.78rem;color:var(--muted);margin-top:.2rem}.dropdown-item:hover{background:var(--surface-2);color:var(--ink)}.dropdown-item .ui-icon{width:1rem}.dropdown-note{padding:.65rem .7rem;font-size:.66rem;line-height:1.5;color:var(--muted);border-top:1px solid var(--line)}.company-option{width:100%;display:flex;align-items:center;gap:.7rem;text-align:left;padding:.7rem;border-radius:.7rem;margin:.35rem 0}.company-option.active{background:rgba(37,99,235,.09)}.company-option>span:nth-child(2){display:grid;flex:1}.company-option strong{font-size:.75rem}.company-option small{font-size:.62rem;color:var(--muted)}.company-option>.ui-icon{color:#34d399}.company-avatar{width:2.25rem;height:2.25rem}.profile-card{display:flex;align-items:center;gap:.75rem;padding:.7rem;border-bottom:1px solid var(--line)}.profile-card strong{font-size:.8rem}.profile-card p{font-size:.65rem;color:var(--muted);max-width:11rem;overflow:hidden;text-overflow:ellipsis}.notification-item{display:flex;gap:.7rem;padding:.75rem;border-radius:.7rem}.notification-item:hover{background:var(--surface-2)}.notification-item.unread{background:rgba(37,99,235,.07)}.notification-icon{width:2rem;height:2rem;border-radius:.6rem;display:grid;place-items:center;color:#60a5fa;background:rgba(37,99,235,.12)}.notification-icon .ui-icon{width:.9rem}.notification-item strong{font-size:.72rem}.notification-item p,.notification-item small{display:block;font-size:.62rem;color:var(--muted);margin-top:.1rem}
.modal{position:fixed;inset:0;z-index:100;display:none;place-items:center;padding:1rem}.modal.open{display:grid}.modal-backdrop{position:absolute;inset:0;background:rgba(2,6,23,.72);backdrop-filter:blur(5px);animation:fade-in .2s}.modal-panel{position:relative;width:min(32rem,100%);max-height:calc(100vh - 2rem);overflow:auto;border:1px solid var(--line);border-radius:1.15rem;background:var(--surface-solid);box-shadow:var(--shadow-lg);animation:modal-in .28s var(--ease)}.modal-header,.modal-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.2rem}.modal-header{border-bottom:1px solid var(--line)}.modal-header h3{font-size:1rem;font-weight:800}.modal-footer{border-top:1px solid var(--line);justify-content:flex-end}.modal-body{padding:1.2rem;color:var(--muted);font-size:.82rem;line-height:1.65}.modal-open{overflow:hidden}
.tabs{border-bottom:1px solid var(--line);display:flex;gap:.3rem;overflow-x:auto}.tab-button{position:relative;padding:.7rem .9rem;color:var(--muted);font-size:.78rem;font-weight:700;white-space:nowrap}.tab-button.active{color:var(--ink)}.tab-button.active:after{content:'';position:absolute;left:.75rem;right:.75rem;bottom:-1px;height:2px;background:#3b82f6;border-radius:2px}.tab-panel{display:none;padding-top:1rem}.tab-panel.active{display:block;animation:fade-in .22s}
.table-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;margin-bottom:.75rem}.search-box{position:relative;min-width:13rem;flex:1}.search-box input{height:2.35rem;font-size:.76rem}.search-box .search-icon{top:.62rem}.table-wrap{position:relative;overflow:auto;border:1px solid var(--line);border-radius:.85rem;max-width:100%}.table{width:100%;border-collapse:separate;border-spacing:0;font-size:.78rem;background:var(--surface);table-layout:fixed}.table th{position:sticky;top:0;z-index:3;text-align:left;padding:.7rem .8rem;color:var(--muted);font-size:.64rem;text-transform:uppercase;letter-spacing:.06em;background:var(--surface-solid);border-bottom:1px solid var(--line);white-space:nowrap;user-select:none}.table td{padding:.72rem .8rem;border-bottom:1px solid var(--line);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table tr:last-child td{border-bottom:0}.table tbody tr:hover td{background:rgba(37,99,235,.035)}.table tbody tr.selected td{background:rgba(37,99,235,.08)}.sheet-table th,.sheet-table td{border-right:1px solid var(--line)}.sheet-table th:first-child,.sheet-row-number{width:46px;text-align:center;background:var(--surface-2);color:var(--muted)}.sort-button{display:flex;align-items:center;justify-content:space-between;width:100%;gap:.4rem}.sort-indicator{font-size:.6rem;opacity:.5}.column-resizer{position:absolute;right:-3px;top:0;width:7px;height:100%;cursor:col-resize;z-index:4}.column-resizer:hover,.column-resizer.resizing{background:#3b82f6}.table-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 0;font-size:.7rem;color:var(--muted)}.pagination{display:flex;align-items:center;gap:.35rem}.page-button{min-width:1.85rem;height:1.85rem;padding:0 .4rem;border:1px solid var(--line);border-radius:.5rem;background:var(--surface-2);display:grid;place-items:center}.page-button.active{color:#fff;background:var(--primary);border-color:var(--primary)}.bulk-bar{display:none;align-items:center;gap:.7rem;padding:.55rem .7rem;border-radius:.65rem;background:rgba(37,99,235,.12);color:#93c5fd}.bulk-bar.visible{display:flex}.column-filter{height:2.35rem;padding:.3rem 1.8rem .3rem .65rem;font-size:.72rem}
.chart-container{position:relative;min-height:18rem;border:1px solid var(--line);border-radius:1rem;background:linear-gradient(180deg,rgba(37,99,235,.025),transparent);padding:1.2rem;overflow:hidden}.chart-grid{position:absolute;inset:3.5rem 1.2rem 2.5rem;background:repeating-linear-gradient(to bottom,var(--line) 0,var(--line) 1px,transparent 1px,transparent 25%)}.chart-bars{position:absolute;inset:4rem 1.4rem 2.5rem;display:flex;align-items:end;gap:.55rem}.chart-bar{flex:1;min-width:5px;min-height:7px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,#60a5fa,#2563eb);box-shadow:0 0 16px rgba(37,99,235,.12);transition:opacity .2s,transform .2s}.chart-bar:hover{opacity:.78;transform:scaleY(1.015);transform-origin:bottom}.chart-legend{display:flex;align-items:center;gap:1rem;font-size:.67rem;color:var(--muted)}.legend-dot{display:inline-block;width:.45rem;height:.45rem;border-radius:50%;background:var(--primary);margin-right:.35rem}
.timeline{position:relative;padding-left:1.5rem}.timeline:before{content:'';position:absolute;left:.42rem;top:.35rem;bottom:.35rem;width:1px;background:var(--line)}.timeline-item{position:relative;padding:0 0 1.25rem .4rem}.timeline-item:last-child{padding-bottom:0}.timeline-dot{position:absolute;left:-1.5rem;top:.15rem;width:.8rem;height:.8rem;border-radius:50%;border:3px solid var(--surface-solid);background:var(--primary);box-shadow:0 0 0 1px rgba(37,99,235,.3)}.timeline-item h4{font-size:.78rem;font-weight:700}.timeline-item p{font-size:.7rem;color:var(--muted);margin-top:.2rem}.timeline-item time{font-size:.6rem;color:var(--muted)}.activity-feed{display:grid}.activity-row{display:flex;align-items:flex-start;gap:.75rem;padding:.8rem 0;border-bottom:1px solid var(--line)}.activity-row:last-child{border-bottom:0}.activity-avatar{width:2rem;height:2rem;border-radius:.65rem;background:var(--surface-2);color:#60a5fa;display:grid;place-items:center}.activity-row strong{font-size:.74rem}.activity-row p,.activity-row time{font-size:.65rem;color:var(--muted);margin-top:.12rem}
.calendar{border:1px solid var(--line);border-radius:.95rem;overflow:hidden}.calendar-head{display:flex;align-items:center;justify-content:space-between;padding:.85rem;background:var(--surface-2)}.calendar-head strong{font-size:.8rem}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.calendar-cell{min-height:2.6rem;display:grid;place-items:center;border-top:1px solid var(--line);border-right:1px solid var(--line);font-size:.68rem;color:var(--muted);position:relative}.calendar-cell:nth-child(7n){border-right:0}.calendar-day{min-height:1.8rem;font-size:.58rem;text-transform:uppercase;background:var(--surface-2)}.calendar-cell.today{color:#fff;font-weight:800}.calendar-cell.today:before{content:'';position:absolute;width:1.75rem;height:1.75rem;border-radius:.55rem;background:var(--primary);z-index:-1}.calendar-cell.has-event:after{content:'';position:absolute;bottom:.28rem;width:.25rem;height:.25rem;border-radius:50%;background:#34d399}
.empty-state{text-align:center;padding:2.8rem 1.2rem;border:1px dashed var(--line);border-radius:1rem}.empty-state-icon{width:3.25rem;height:3.25rem;border-radius:.9rem;display:grid;place-items:center;margin:0 auto 1rem;background:linear-gradient(135deg,rgba(37,99,235,.14),rgba(99,102,241,.12));color:#60a5fa}.empty-state-icon .ui-icon{width:1.35rem;height:1.35rem}.module-tile{position:relative;overflow:hidden}.module-tile:after{content:'';position:absolute;width:7rem;height:7rem;right:-3rem;bottom:-4rem;border-radius:50%;background:var(--module-glow,rgba(37,99,235,.14));filter:blur(2px)}.faq-item{border-bottom:1px solid var(--line)}.faq-question{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:1.1rem 0;font-weight:700}.faq-answer{display:none;color:var(--muted);padding:0 0 1.15rem;line-height:1.7}.faq-item.open .faq-answer{display:block}.faq-item.open .faq-plus{transform:rotate(45deg)}.toast{position:fixed;right:1.2rem;bottom:1.2rem;z-index:120;display:flex;align-items:center;gap:.75rem;width:min(22rem,calc(100vw - 2rem));padding:.9rem 1rem;border:1px solid rgba(37,99,235,.3);border-radius:.85rem;background:var(--surface-solid);box-shadow:var(--shadow-lg);animation:toast-in .3s var(--ease)}.toast-icon{width:2rem;height:2rem;border-radius:.65rem;background:rgba(37,99,235,.13);color:#60a5fa;display:grid;place-items:center}.toast strong{font-size:.76rem}.toast p{font-size:.65rem;color:var(--muted);margin-top:.12rem}
@keyframes dropdown-in{from{opacity:0;transform:translateY(-5px) scale(.98)}to{opacity:1;transform:none}}@keyframes modal-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes toast-in{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}
@media(max-width:1023px){html.sidebar-is-collapsed .app-main{padding-left:0!important}.sidebar-shell,html.sidebar-is-collapsed .sidebar-shell{width:16rem;transform:translateX(-105%);box-shadow:var(--shadow-lg)}.sidebar-shell.open{transform:translateX(0)}.sidebar-backdrop.open{display:block}.app-main{padding-left:0!important}.sidebar-brand-copy,.sidebar-label,.sidebar-meta,.sidebar-section{position:static!important;width:auto!important;opacity:1!important;pointer-events:auto!important}.sidebar-link{justify-content:flex-start!important;padding:.58rem .7rem!important}}
@media(max-width:767px){.topbar{height:auto;min-height:4.2rem;padding:.65rem .8rem}.topbar-row{height:auto;flex-wrap:wrap;gap:.45rem}.top-search{order:20;flex-basis:100%;max-width:none}.company-copy,.profile-copy,.top-search kbd{display:none}.company-switcher-btn{width:2.55rem;padding:0;justify-content:center}.company-switcher .chevron{display:none}.topbar-actions{gap:.35rem}.page-heading{padding:1rem 1rem 0}.app-content{padding:1rem}.dropdown{position:fixed;top:auto;left:.75rem;right:.75rem;bottom:.75rem;min-width:0}.profile-button{padding:0}.stat-value{font-size:1.5rem}.chart-container{min-height:15rem}.table-toolbar>*{flex:1}.table-footer{align-items:flex-start;flex-direction:column}.modal-panel{max-height:calc(100vh - 1rem)}}
@media(max-width:480px){.topbar-actions .icon-btn{width:2.35rem;height:2.35rem}.topbar-row>.icon-btn{width:2.35rem;height:2.35rem}.profile-avatar{width:2.35rem;height:2.35rem}.card{padding:1rem}.card-footer{margin:1rem -1rem -1rem;padding:1rem}.hide-mobile{display:none!important}.btn-mobile-full{width:100%}.table td,.table th{padding:.65rem .7rem}.calendar-cell{min-height:2.2rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.theme-preview,.preference-card{display:grid;text-align:left;gap:.38rem;padding:.85rem;border:1px solid var(--line);border-radius:.85rem;background:var(--surface-2);transition:.22s var(--ease)}.theme-preview:hover,.preference-card:hover{border-color:rgba(37,99,235,.4);transform:translateY(-2px);box-shadow:var(--shadow-sm)}.theme-preview strong,.preference-card strong{font-size:.78rem;margin-top:.2rem}.theme-preview small,.preference-card small{font-size:.65rem;color:var(--muted)}.theme-preview-window{height:5.5rem;border-radius:.65rem;padding:.55rem;display:grid;grid-template-columns:1fr 2fr;grid-template-rows:1fr 1fr;gap:.35rem;border:1px solid rgba(148,163,184,.18)}.theme-preview.dark .theme-preview-window{background:#0f172a}.theme-preview.light .theme-preview-window{background:#f8fafc}.theme-preview-window i{display:block;border-radius:.35rem;background:rgba(37,99,235,.35)}.theme-preview-window i:first-child{grid-row:1/3;background:rgba(100,116,139,.24)}.preference-visual{height:5.5rem;border-radius:.65rem;background:var(--surface-solid);border:1px solid var(--line);display:grid;grid-template-columns:34% 1fr;gap:.4rem;padding:.45rem}.preference-visual.collapsed{grid-template-columns:14% 1fr}.preference-visual i{border-radius:.35rem;background:linear-gradient(180deg,rgba(37,99,235,.35),rgba(37,99,235,.12))}.preference-visual b{border-radius:.35rem;background:var(--surface-2)}

/* Milestone 5 admin dashboard */
.dashboard-enter>section{animation:dashboard-rise .45s var(--ease) both}.dashboard-enter>section:nth-child(2){animation-delay:.04s}.dashboard-enter>section:nth-child(3){animation-delay:.08s}.dashboard-enter>section:nth-child(4){animation-delay:.12s}.dashboard-hero{position:relative;overflow:hidden;display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;padding:1.7rem;border:1px solid var(--line);border-radius:1.35rem;background:linear-gradient(135deg,rgba(37,99,235,.12),var(--surface) 42%,rgba(124,58,237,.08));box-shadow:var(--shadow-sm)}.dashboard-hero:after{content:'';position:absolute;right:-5rem;top:-8rem;width:22rem;height:22rem;border-radius:50%;background:rgba(37,99,235,.1);filter:blur(45px);pointer-events:none}.dashboard-hero>div{position:relative;z-index:1}.dashboard-hero h2{font-size:clamp(1.75rem,3vw,2.55rem);font-weight:800;letter-spacing:-.04em;margin-top:.7rem}.dashboard-hero p{font-size:.84rem;color:var(--muted);margin-top:.45rem;max-width:46rem}.dashboard-hero-actions{display:flex;flex-wrap:wrap;justify-content:flex-end}.shortcut-hint{width:1.15rem;height:1.15rem;border:1px solid var(--line);border-radius:.3rem;display:grid;place-items:center;font-size:.65rem;background:var(--surface-solid)}
.admin-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.85rem}.admin-stat-card{position:relative;overflow:hidden;min-height:10.4rem;padding:1.15rem;border:1px solid var(--line);border-radius:1.05rem;background:var(--surface);box-shadow:0 1px 0 rgba(255,255,255,.03);transition:.25s var(--ease)}.admin-stat-card:hover{transform:translateY(-3px);border-color:rgba(37,99,235,.35);box-shadow:var(--shadow-sm)}.admin-stat-card.featured{background:linear-gradient(145deg,rgba(37,99,235,.18),var(--surface) 68%)}.admin-stat-card.featured:after{content:'';position:absolute;right:-3rem;bottom:-4rem;width:9rem;height:9rem;border-radius:50%;background:rgba(37,99,235,.14);filter:blur(15px)}.admin-stat-top{display:flex;align-items:center;justify-content:space-between}.admin-stat-icon{width:2.45rem;height:2.45rem;border-radius:.75rem;display:grid;place-items:center;color:#60a5fa;background:rgba(37,99,235,.12);border:1px solid rgba(59,130,246,.12)}.admin-stat-label{font-size:.72rem;color:var(--muted);font-weight:600;margin-top:.85rem}.admin-stat-value{font:800 1.8rem/1.15 'Manrope',sans-serif;letter-spacing:-.04em;margin-top:.25rem}.admin-stat-foot{position:absolute;left:1.15rem;right:1.15rem;bottom:.85rem;font-size:.61rem;color:var(--muted)}.metric-pill{display:inline-flex;align-items:center;border-radius:999px;padding:.23rem .45rem;font-size:.58rem;font-weight:800}.metric-pill.up{color:#34d399;background:rgba(16,185,129,.11)}.metric-pill.down{color:#fb7185;background:rgba(244,63,94,.11)}.metric-pill.neutral{color:#93c5fd;background:rgba(37,99,235,.11)}.mini-spark{position:absolute;right:.9rem;bottom:1.75rem;width:6.5rem;height:2rem;color:#60a5fa;opacity:.75}.mini-spark svg{width:100%;height:100%}
.revenue-summary{display:flex;align-items:center;gap:2rem;margin:.25rem 0 .8rem}.revenue-summary div{display:grid}.revenue-summary strong{font:800 1rem 'Manrope',sans-serif}.revenue-summary span{font-size:.59rem;color:var(--muted);margin-top:.1rem}.area-chart{position:relative;height:18rem;margin-top:.35rem}.area-chart-grid{position:absolute;inset:.3rem 0 1.7rem;background:repeating-linear-gradient(to bottom,var(--line) 0,var(--line) 1px,transparent 1px,transparent 25%)}.area-chart svg{position:absolute;inset:.3rem 0 1.7rem;width:100%;height:calc(100% - 2rem);overflow:visible}.area-chart-labels{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;color:var(--muted);font-size:.55rem}.active-users-panel{display:flex;flex-direction:column}.active-ring{--progress:78;width:10.5rem;height:10.5rem;border-radius:50%;display:grid;place-items:center;margin:.6rem auto 1rem;background:conic-gradient(#2563eb calc(var(--progress)*1%),rgba(100,116,139,.12) 0);position:relative}.active-ring:before{content:'';position:absolute;inset:.7rem;border-radius:50%;background:var(--surface-solid);box-shadow:inset 0 0 0 1px var(--line)}.active-ring>div{position:relative;z-index:1;text-align:center;display:grid}.active-ring strong{font:800 1.35rem 'Manrope',sans-serif}.active-ring span{font-size:.57rem;color:var(--muted);margin-top:.15rem}.engagement-list{display:grid;gap:.6rem}.engagement-list>div{display:flex;align-items:center;justify-content:space-between;font-size:.7rem;padding-bottom:.55rem;border-bottom:1px solid var(--line)}.engagement-list span{color:var(--muted)}.dot{display:inline-block;width:.4rem;height:.4rem;border-radius:50%;margin-right:.45rem}.dot.blue{background:#3b82f6}.dot.violet{background:#8b5cf6}.dot.slate{background:#64748b}.active-note{font-size:.62rem;color:var(--muted);padding:.65rem;margin-top:auto;border-radius:.6rem;background:var(--surface-2)}
.registration-chart{height:13.5rem;display:flex;align-items:flex-end;gap:.65rem;padding-top:1rem}.registration-column{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:.45rem}.registration-column span{display:block;width:min(1.65rem,72%);border-radius:.4rem .4rem .15rem .15rem;background:linear-gradient(180deg,#60a5fa,#2563eb);transition:.25s var(--ease)}.registration-column:hover span{filter:brightness(1.15);transform:scaleX(1.07)}.registration-column small{font-size:.53rem;color:var(--muted)}.tenant-growth{overflow:hidden}.tenant-growth-number{display:grid;margin:.8rem 0}.tenant-growth-number strong{font:800 2rem 'Manrope',sans-serif}.tenant-growth-number span{font-size:.62rem;color:var(--muted)}.tenant-growth svg{width:100%;height:7.5rem;overflow:visible}.tenant-growth-meta{display:flex;justify-content:space-between;font-size:.58rem;color:var(--muted)}.tenant-growth-meta span{display:grid}.tenant-growth-meta strong{color:var(--ink);font-size:.7rem;margin-top:.1rem}
.admin-timeline{display:grid}.admin-timeline-item{position:relative;display:grid;grid-template-columns:2.25rem 1fr;gap:.75rem;padding-bottom:1rem}.admin-timeline-item:not(:last-child):before{content:'';position:absolute;left:1.06rem;top:2rem;bottom:.05rem;width:1px;background:var(--line)}.timeline-marker{position:relative;z-index:1;width:2.15rem;height:2.15rem;border-radius:.68rem;display:grid;place-items:center;color:#64748b;background:var(--surface-2);border:1px solid var(--line)}.timeline-marker.active{color:#60a5fa;background:rgba(37,99,235,.13);border-color:rgba(37,99,235,.25)}.timeline-marker .ui-icon{width:.9rem}.admin-timeline-item>div:last-child{padding-top:.15rem}.admin-timeline-item strong{font-size:.72rem}.admin-timeline-item p,.admin-timeline-item time{font-size:.6rem;color:var(--muted)}.admin-timeline-item time{white-space:nowrap}.dashboard-notifications{display:grid}.dashboard-notification{display:grid;grid-template-columns:2.25rem 1fr;gap:.7rem;padding:.72rem 0;border-bottom:1px solid var(--line)}.dashboard-notification:last-child{border-bottom:0}.dashboard-notification .notification-icon{width:2.1rem;height:2.1rem}.dashboard-notification strong{font-size:.7rem}.dashboard-notification p{font-size:.62rem;color:var(--muted);line-height:1.4;margin-top:.12rem}.dashboard-notification time{font-size:.56rem;color:var(--muted);display:block;margin-top:.2rem}
.system-widget{min-height:21rem}.health-score{width:2.55rem;height:2.55rem;border-radius:50%;display:grid;place-items:center;font:800 .73rem 'Manrope',sans-serif;color:#34d399;background:conic-gradient(#10b981 100%,transparent 0);box-shadow:inset 0 0 0 6px var(--surface-solid)}.health-row{margin-top:1.05rem}.health-row>div:first-child{display:flex;justify-content:space-between;gap:.5rem;font-size:.67rem}.health-row small{color:#34d399}.health-bar{height:.3rem;border-radius:1rem;background:var(--surface-3);margin-top:.45rem;overflow:hidden}.health-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#10b981,#34d399)}.database-orbit{height:6.5rem;display:grid;place-items:center;position:relative}.database-orbit span{position:absolute;width:4.5rem;height:4.5rem;border:1px dashed rgba(52,211,153,.5);border-radius:50%;animation:orbit-spin 12s linear infinite}.database-orbit span:after{content:'';position:absolute;left:50%;top:-.25rem;width:.45rem;height:.45rem;border-radius:50%;background:#34d399;box-shadow:0 0 12px #34d399}.database-orbit strong{font-size:.76rem;color:#34d399}.storage-gauge{display:grid;place-items:center;height:7.8rem}.storage-gauge>div{width:6.5rem;height:6.5rem;border-radius:50%;background:conic-gradient(#2563eb calc(var(--storage)*1%),var(--surface-3) 0);display:grid;place-items:center;position:relative}.storage-gauge>div:before{content:'';position:absolute;inset:.65rem;background:var(--surface-solid);border-radius:50%}.storage-gauge span{position:relative;display:grid;text-align:center}.storage-gauge strong{font:800 1rem 'Manrope',sans-serif}.storage-gauge small{font-size:.55rem;color:var(--muted)}.system-kv{display:grid;margin-top:.3rem}.system-kv>div{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.58rem 0;border-bottom:1px solid var(--line)}.system-kv>div:last-child{border-bottom:0}.system-kv dt{font-size:.62rem;color:var(--muted)}.system-kv dd{font-size:.64rem;font-weight:700;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:9rem}.system-kv.prominent>div{padding:.63rem 0}
.module-status-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.7rem}.module-status-item{display:flex;align-items:center;gap:.65rem;padding:.72rem;border:1px solid var(--line);border-radius:.75rem;background:var(--surface-2);transition:.2s}.module-status-item:hover{border-color:rgba(37,99,235,.3);transform:translateY(-1px)}.module-status-icon{width:2rem;height:2rem;border-radius:.6rem;display:grid;place-items:center;color:#60a5fa;background:rgba(37,99,235,.11)}.module-status-icon .ui-icon{width:.92rem}.module-status-item>div{display:grid;min-width:0;flex:1}.module-status-item strong{font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.module-status-item small{font-size:.54rem;color:var(--muted)}.module-status-item>.badge{font-size:.5rem;padding:.2rem .35rem}
.customer-table td{height:3.4rem}.customer-cell{display:flex;align-items:center;gap:.65rem}.customer-cell>span:last-child{display:grid;min-width:0}.customer-cell strong{font-size:.7rem;overflow:hidden;text-overflow:ellipsis}.customer-cell small{font-size:.57rem;color:var(--muted)}.customer-logo{width:2rem;height:2rem;border-radius:.58rem;display:grid!important;place-items:center;color:#fff;background:linear-gradient(135deg,#2563eb,#7c3aed);font-size:.58rem;font-weight:800;flex:none}.health-cell{display:flex;align-items:center;gap:.45rem;font-size:.63rem}.health-cell i{display:block;width:3rem;height:.27rem;border-radius:1rem;background:var(--surface-3);overflow:hidden}.health-cell b{display:block;height:100%;background:#10b981;border-radius:inherit}.quick-action-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.65rem}.quick-action-grid button,.quick-action-grid a{display:grid;text-align:left;gap:.3rem;padding:.9rem;border:1px solid var(--line);border-radius:.75rem;background:var(--surface-2);transition:.2s}.quick-action-grid button:hover,.quick-action-grid a:hover{border-color:rgba(37,99,235,.35);transform:translateY(-2px)}.quick-action-grid>*>span{width:2rem;height:2rem;border-radius:.6rem;display:grid;place-items:center;color:#60a5fa;background:rgba(37,99,235,.12)}.quick-action-grid strong{font-size:.72rem}.quick-action-grid small{font-size:.6rem;color:var(--muted);line-height:1.4}.shortcut-list{display:grid}.shortcut-list>div{display:flex;align-items:center;padding:.7rem 0;border-bottom:1px solid var(--line)}.shortcut-list>div:last-child{border-bottom:0}.shortcut-list span{flex:1;color:var(--ink);font-size:.72rem}.shortcut-list kbd{min-width:1.6rem;height:1.6rem;padding:0 .4rem;margin-left:.3rem;border:1px solid var(--line);border-bottom-width:2px;border-radius:.38rem;background:var(--surface-2);display:grid;place-items:center;font-size:.58rem;color:var(--muted)}
@keyframes dashboard-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes orbit-spin{to{transform:rotate(360deg)}}
@media(max-width:1279px){.admin-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-stat-card:nth-child(4),.admin-stat-card:nth-child(5){min-height:9.2rem}.module-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.dashboard-hero{align-items:flex-start;flex-direction:column;padding:1.25rem}.dashboard-hero-actions{justify-content:flex-start;width:100%}.dashboard-hero-actions .btn{flex:1}.admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-stat-card{min-height:9.5rem}.admin-stat-card.featured{grid-column:1/-1}.revenue-summary{gap:1rem;justify-content:space-between}.revenue-summary strong{font-size:.82rem}.area-chart{height:14rem}.registration-chart{gap:.35rem}.module-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.system-widget{min-height:auto}.quick-action-grid{grid-template-columns:1fr}}
@media(max-width:479px){.admin-stat-grid{grid-template-columns:1fr}.admin-stat-card.featured{grid-column:auto}.admin-stat-card{min-height:9rem}.dashboard-hero-actions{display:grid;grid-template-columns:1fr 1fr}.dashboard-hero-actions .btn:last-child{grid-column:1/-1}.revenue-summary{display:grid;grid-template-columns:1fr 1fr}.revenue-summary div:last-child{grid-column:1/-1}.module-status-grid{grid-template-columns:1fr}.admin-timeline-item strong{font-size:.66rem}.admin-timeline-item time{display:none}}

/* MAISHA ERP transformation layer: deep pink + blue, compact ERP workspace */
:root{
  --primary:#2563eb;
  --primary-hover:#be176f;
  --maisha-pink:#2563eb;
  --maisha-hot:#2563eb;
  --maisha-blue:#155dfc;
  --maisha-sky:#38bdf8;
  --maisha-deep:#070817;
  --bg:#070817;
  --surface:rgba(13,18,38,.9);
  --surface-solid:#0c1228;
  --surface-2:rgba(19,28,56,.82);
  --surface-3:rgba(38,52,92,.6);
  --line:rgba(37,99,235,.18);
  --muted:#a8b3d8;
  --radius-sm:.5rem;
  --radius:.65rem;
  --radius-lg:.8rem;
}
body{
  background:
    linear-gradient(135deg,rgba(37,99,235,.13),transparent 24rem),
    radial-gradient(circle at 82% 8%,rgba(21,93,252,.22),transparent 30rem),
    linear-gradient(180deg,#070817,#050713 48%,#090a1f);
}
.grid-sheen{background-size:28px 28px;background-image:linear-gradient(rgba(37,99,235,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(56,189,248,.03) 1px,transparent 1px)}
.brand-logo{letter-spacing:0;gap:.62rem}
.brand-logo img{width:2.7rem;height:2.7rem;filter:drop-shadow(0 8px 18px rgba(37,99,235,.36))}
.brand-word{font-size:1.24rem;font-weight:900;letter-spacing:-.02em}
.brand-tag{color:#9fd4ff;letter-spacing:.14em}
.btn,.icon-btn,.form-control,.input-field,.form-select,.form-textarea,.company-switcher-btn,.top-search input,.search-box input{border-radius:.55rem}
.btn-primary{background:linear-gradient(135deg,var(--maisha-pink),var(--maisha-blue));box-shadow:0 12px 28px rgba(37,99,235,.27)}
.btn-primary:hover{background:linear-gradient(135deg,#2563eb,#155dfc)}
.btn-secondary,.icon-btn,.company-switcher-btn,.top-search input,.search-box input{background:linear-gradient(180deg,rgba(20,31,64,.96),rgba(12,18,39,.96));border-color:rgba(93,138,255,.22)}
.btn-ghost:hover,.dropdown-item:hover{background:rgba(37,99,235,.1)}
.badge-primary{color:#eff6ff;background:linear-gradient(135deg,rgba(37,99,235,.22),rgba(21,93,252,.16));border:1px solid rgba(37,99,235,.22)}
.badge-success{color:#8fffd2;background:rgba(16,185,129,.12)}
.card,.glass,.stat-card,.table-wrap,.modal-panel,.dropdown{
  border-color:rgba(37,99,235,.16);
  background:linear-gradient(180deg,rgba(16,24,52,.92),rgba(9,13,31,.92));
  box-shadow:0 12px 36px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.035);
}
.card{padding:1rem;border-radius:.8rem}
.card-title{font-size:.95rem}.card-subtitle{font-size:.72rem}
.sidebar-shell{
  background:linear-gradient(180deg,#080817 0%,#0d1230 48%,#150720 100%);
  border-right:1px solid rgba(37,99,235,.22);
}
.sidebar-brand{height:4.25rem;background:linear-gradient(135deg,rgba(37,99,235,.13),rgba(21,93,252,.08))}
.sidebar-scroll{padding:.5rem}
.sidebar-section{font-size:.53rem;color:#fb8ac8;margin:.55rem 0 .25rem}
.sidebar-link{min-height:2.25rem;border-radius:.55rem;font-size:.75rem;padding:.5rem .62rem}
.sidebar-link:hover,.sidebar-link.active{background:linear-gradient(90deg,rgba(37,99,235,.2),rgba(21,93,252,.12));border-color:rgba(37,99,235,.22);color:#fff}
.sidebar-link.active:before{background:#2563eb;box-shadow:0 0 16px rgba(37,99,235,.9)}
.sidebar-icon{color:#8fc8ff}.sidebar-meta{font-size:.46rem;color:#64748b;border-color:rgba(37,99,235,.2)}
.topbar{height:4.25rem;background:linear-gradient(90deg,rgba(8,9,24,.94),rgba(12,18,42,.94),rgba(28,8,35,.9));backdrop-filter:blur(18px);border-bottom:1px solid rgba(37,99,235,.18)}
.profile-avatar,.company-avatar{background:linear-gradient(135deg,var(--maisha-pink),var(--maisha-blue));border-radius:.65rem}
.page-heading h1{font-size:1.25rem}
.dashboard-enter.compact-dashboard{font-size:13px}
.dashboard-hero{
  border-radius:.9rem;
  padding:1rem 1.15rem!important;
  background:linear-gradient(110deg,rgba(37,99,235,.22),rgba(21,93,252,.16),rgba(8,13,35,.92))!important;
  border-color:rgba(37,99,235,.22);
}
.dashboard-hero h2{font-size:1.15rem!important;letter-spacing:0}
.dashboard-hero .badge{font-size:.56rem;padding:.22rem .48rem}
.dashboard-hero-actions .btn{padding:.58rem .72rem;font-size:.74rem}
.dash-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:.65rem!important}
.dash-kpi{
  min-height:92px!important;
  padding:.8rem!important;
  border-radius:.7rem!important;
  background:linear-gradient(150deg,rgba(17,27,60,.96),rgba(8,12,30,.96))!important;
  border-color:rgba(37,99,235,.18)!important;
}
.dash-kpi:hover{border-color:rgba(37,99,235,.55)!important;box-shadow:0 12px 30px rgba(37,99,235,.14)!important}
.dash-kpi .label{font-size:.72rem!important;color:#b9c6ea!important}
.dash-kpi .value{font-size:1.25rem!important;margin-top:.45rem!important}
.dash-kpi .foot{font-size:.65rem!important;margin-top:.4rem!important}
.dash-mini-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:.55rem!important}
.dash-mini{padding:.68rem .75rem!important;border-radius:.65rem!important;background:rgba(11,18,40,.9)!important;border-color:rgba(93,138,255,.18)!important}
.dash-mini span{font-size:.66rem!important}.dash-mini strong{font-size:1rem!important}.dash-mini small{font-size:.61rem!important}
.dash-module-map{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.55rem}
.dash-module-pill{display:grid;grid-template-columns:1.9rem 1fr;grid-template-rows:auto auto;gap:.08rem .55rem;align-items:center;padding:.62rem .68rem;border:1px solid rgba(37,99,235,.16);border-radius:.65rem;background:linear-gradient(145deg,rgba(18,27,61,.92),rgba(20,8,38,.9));transition:.16s ease}
.dash-module-pill:hover{transform:translateY(-2px);border-color:rgba(37,99,235,.48);box-shadow:0 14px 28px rgba(37,99,235,.12)}
.dash-module-pill span{grid-row:1/3;width:1.9rem;height:1.9rem;border-radius:.55rem;display:grid;place-items:center;color:#b8dcff;background:linear-gradient(135deg,rgba(37,99,235,.23),rgba(21,93,252,.2))}
.dash-module-pill .ui-icon{width:.95rem;height:.95rem}
.dash-module-pill strong{font-size:.72rem;color:#fff;line-height:1.1}
.dash-module-pill small{font-size:.58rem;color:#9fb0d4;line-height:1.15}
.section-title-row{margin:.9rem 0 .45rem!important}.section-title-row h3{font-size:.9rem!important}.section-title-row p{font-size:.7rem!important}
.admin-stat-icon,.stat-icon,.kpi-icon{background:linear-gradient(135deg,rgba(37,99,235,.2),rgba(21,93,252,.18));color:#b9ddff;border:1px solid rgba(37,99,235,.18)}
.table{font-size:.72rem}.table th{font-size:.58rem;padding:.55rem .65rem}.table td{padding:.58rem .65rem}
.module-tile{border-radius:.75rem!important;background:linear-gradient(145deg,rgba(18,27,61,.96),rgba(18,8,34,.92))!important}
.module-tile:after{background:radial-gradient(circle,rgba(37,99,235,.28),rgba(21,93,252,.1),transparent 70%);filter:blur(0)}
main h1{font-size:clamp(2.2rem,5vw,4.25rem)!important;line-height:1.02!important;letter-spacing:-.025em!important}
main h2{letter-spacing:-.015em!important}
.landing-hero-accent{background-image:linear-gradient(90deg,#2563eb,#38bdf8,#155dfc)!important}
.fc-demo-wrap{border-radius:18px!important;border-color:rgba(37,99,235,.22)!important;box-shadow:0 28px 80px rgba(37,99,235,.14),0 18px 55px rgba(21,93,252,.13)!important}
.fc-demo-wrap:before{background:linear-gradient(120deg,#2563eb,#155dfc,#38bdf8,#2563eb)!important}
@media(max-width:1280px){.dash-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-mini-grid,.dash-module-map{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.dash-kpi-grid,.dash-mini-grid,.dash-module-map{grid-template-columns:repeat(2,minmax(0,1fr))}main h1{font-size:1.6rem!important}}

/* MAISHA ERP hard visual reset - removes old CRM skin and fixes mobile light mode */
html:not(.theme-light) body{
  background:
    radial-gradient(circle at 20% 0%,rgba(37,99,235,.34),transparent 30rem),
    radial-gradient(circle at 80% 8%,rgba(21,93,252,.32),transparent 30rem),
    linear-gradient(180deg,#230016 0%,#100019 34%,#070817 72%,#050713 100%)!important;
}
.theme-light body{
  --bg:#fff5fb;
  --surface:rgba(255,255,255,.94);
  --surface-solid:#ffffff;
  --surface-2:#ffffff;
  --surface-3:#eaf2ff;
  --ink:#111827;
  --muted:#536079;
  --line:rgba(37,99,235,.18);
  color:#111827!important;
  background:
    radial-gradient(circle at 15% 0%,rgba(37,99,235,.22),transparent 24rem),
    radial-gradient(circle at 88% 10%,rgba(21,93,252,.16),transparent 26rem),
    linear-gradient(180deg,#fff5fb,#ffffff 42%,#eef5ff)!important;
}
.theme-light .grid-sheen,
.theme-light.grid-sheen{
  background-image:linear-gradient(rgba(37,99,235,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(21,93,252,.055) 1px,transparent 1px)!important;
}
.theme-light .card,.theme-light .glass,.theme-light .stat-card,.theme-light .table-wrap,.theme-light .modal-panel,.theme-light .dropdown,
.theme-light .module-tile,.theme-light article.card{
  color:#111827!important;
  background:linear-gradient(145deg,#ffffff,#ffffff 55%,#eef5ff)!important;
  border-color:rgba(37,99,235,.22)!important;
  box-shadow:0 16px 36px rgba(37,99,235,.08)!important;
}
.theme-light .card *,.theme-light .module-tile *,.theme-light article.card *{color:inherit}
.theme-light .text-muted,.theme-light .card-subtitle,.theme-light .module-tile p,.theme-light .footer-contact{color:#536079!important}
.theme-light .badge-primary{color:#1d4ed8!important;background:linear-gradient(135deg,#eff6ff,#e8f1ff)!important;border-color:#bfdbfe!important}
.theme-light .btn-secondary,.theme-light .icon-btn{color:#111827!important;background:linear-gradient(135deg,#ffffff,#ffffff)!important;border-color:rgba(37,99,235,.2)!important}
.theme-light .btn-primary{color:#ffffff!important}
.theme-light .sidebar-shell,.theme-light .topbar{background:linear-gradient(180deg,#ffffff,#ffffff)!important;color:#111827!important}
.theme-light .sidebar-link,.theme-light .sidebar-section,.theme-light .sidebar-meta,.theme-light .topbar *{color:#111827}
.theme-light .sidebar-link.active,.theme-light .sidebar-link:hover{background:linear-gradient(90deg,rgba(37,99,235,.14),rgba(21,93,252,.1))!important}
.brand-word{font-weight:950!important}
.brand-word::first-letter{color:#2563eb}
.brand-word{color:#2563eb}
.brand-word::after{content:"";display:inline-block}
.brand-logo .brand-word{background:linear-gradient(90deg,#2563eb 0 72%,#155dfc 72% 100%);-webkit-background-clip:text;background-clip:text;color:transparent!important}
body:not(.app-body) main>section:first-child{
  max-width:none!important;
  padding-left:clamp(18px,4vw,72px)!important;
  padding-right:clamp(18px,4vw,72px)!important;
  background:
    radial-gradient(circle at 50% 12%,rgba(37,99,235,.22),transparent 28rem),
    linear-gradient(180deg,rgba(37,99,235,.22),rgba(21,93,252,.08) 52%,transparent)!important;
}
body:not(.app-body) main>section:first-child h1{
  max-width:1120px!important;
  color:#fff!important;
  text-shadow:0 16px 42px rgba(0,0,0,.25);
}
.theme-light body:not(.app-body) main>section:first-child h1{color:#111827!important;text-shadow:none}
.landing-hero-accent{
  background-image:linear-gradient(90deg,#2563eb 0%,#38bdf8 34%,#38bdf8 66%,#155dfc 100%)!important;
}
.fc-demo-wrap{
  max-width:980px!important;
  background:linear-gradient(145deg,rgba(37,99,235,.34),rgba(21,93,252,.2),rgba(5,7,19,.96))!important;
  border:1px solid rgba(37,99,235,.38)!important;
}
.fc-svg-box{background:#130018!important}
.fc-svg{filter:hue-rotate(55deg) saturate(1.45)}
.maisha-analytics-row{max-width:980px;margin:1rem auto 0;display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.maisha-analytics-card{position:relative;overflow:hidden;min-height:170px;border-radius:18px;border:1px solid rgba(37,99,235,.32);background:linear-gradient(145deg,rgba(37,99,235,.22),rgba(21,93,252,.18),rgba(9,13,31,.94));padding:18px;text-align:left;box-shadow:0 22px 55px rgba(37,99,235,.13)}
.maisha-analytics-card:before{content:"";position:absolute;inset:auto -20% -55% -20%;height:130px;background:radial-gradient(circle,rgba(37,99,235,.38),transparent 65%);animation:maishaGlow 3s ease-in-out infinite}
.maisha-analytics-card strong{display:block;color:#fff;font-size:1rem}.maisha-analytics-card small{color:#9fd4ff}.maisha-analytics-bars{position:absolute;left:18px;right:18px;bottom:18px;height:72px;display:flex;align-items:end;gap:8px}
.maisha-analytics-bars i{flex:1;border-radius:8px 8px 2px 2px;background:linear-gradient(180deg,#2563eb,#155dfc);animation:maishaBars 1.4s ease-in-out infinite}
.maisha-analytics-bars i:nth-child(2){animation-delay:.15s}.maisha-analytics-bars i:nth-child(3){animation-delay:.3s}.maisha-analytics-bars i:nth-child(4){animation-delay:.45s}.maisha-analytics-bars i:nth-child(5){animation-delay:.6s}
.maisha-flow{position:absolute;left:18px;right:18px;bottom:24px;display:grid;gap:10px}
.maisha-flow span{height:12px;border-radius:999px;background:linear-gradient(90deg,#2563eb,#38bdf8,#155dfc);animation:maishaFlow 1.8s ease-in-out infinite}
.maisha-flow span:nth-child(2){animation-delay:.25s}.maisha-flow span:nth-child(3){animation-delay:.5s}
@keyframes maishaBars{0%,100%{height:32%}50%{height:100%}}
@keyframes maishaGlow{0%,100%{opacity:.45;transform:translateY(8px)}50%{opacity:1;transform:translateY(-4px)}}
@keyframes maishaFlow{0%,100%{width:42%}50%{width:100%}}
#platform .card .card{background:linear-gradient(135deg,rgba(37,99,235,.18),rgba(21,93,252,.12),rgba(12,18,42,.92))!important}
.theme-light #platform .card .card{background:linear-gradient(135deg,#ffffff,#ffffff,#eef5ff)!important;color:#111827!important}
#modules .grid{grid-template-columns:repeat(auto-fit,minmax(148px,1fr))!important}
#modules .module-tile{min-height:132px!important;padding:1rem!important}
#modules .module-tile h3{font-size:.86rem!important}
#modules .module-tile p{font-size:.68rem!important}
#pricing .card{padding:1rem!important;border-radius:1rem!important}
#pricing h3{font-size:1rem!important}
#pricing .text-4xl{font-size:1.85rem!important}
#pricing p,.pricing .text-sm{font-size:.75rem!important}
.dash-module-map{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:.55rem!important}
.dash-module-pill{display:grid!important;grid-template-columns:1.9rem minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:.08rem .55rem!important;align-items:center!important}
.dash-module-pill strong,.dash-module-pill small{display:block!important}
.dash-module-pill small{color:#9fb0d4!important}
.theme-light .dash-module-pill{color:#111827!important;background:linear-gradient(145deg,#ffffff,#ffffff)!important}
.theme-light .dash-module-pill small{color:#536079!important}
.dashboard-hero-actions.quick-actions{gap:.45rem!important}
.dashboard-hero-actions.quick-actions .btn{min-height:32px!important;padding:.48rem .62rem!important;font-size:.68rem!important;border-radius:.48rem!important}
.dash-kpi:nth-child(1){background:linear-gradient(145deg,rgba(37,99,235,.24),rgba(16,24,52,.95))!important}
.dash-kpi:nth-child(2){background:linear-gradient(145deg,rgba(16,185,129,.2),rgba(16,24,52,.95))!important}
.dash-kpi:nth-child(3){background:linear-gradient(145deg,rgba(245,158,11,.2),rgba(16,24,52,.95))!important}
.dash-kpi:nth-child(4){background:linear-gradient(145deg,rgba(37,99,235,.28),rgba(16,24,52,.95))!important}
.dash-kpi:nth-child(5){background:linear-gradient(145deg,rgba(21,93,252,.26),rgba(16,24,52,.95))!important}
.dash-mini:nth-child(3n+1){border-color:rgba(37,99,235,.28)!important}
.dash-mini:nth-child(3n+2){border-color:rgba(56,189,248,.26)!important}
.dash-mini:nth-child(3n){border-color:rgba(21,93,252,.28)!important}
.theme-light .dash-kpi,.theme-light .dash-mini{color:#111827!important;background:linear-gradient(145deg,#ffffff,#ffffff 50%,#eef5ff)!important;border-color:rgba(37,99,235,.24)!important}
.theme-light .dash-kpi .label,.theme-light .dash-kpi .foot,.theme-light .dash-mini span,.theme-light .dash-mini small{color:#536079!important}
.theme-light .dash-kpi .value,.theme-light .dash-mini strong{color:#111827!important}
@media(max-width:760px){
  .maisha-analytics-row{grid-template-columns:1fr;max-width:360px}
  .maisha-analytics-card{min-height:128px;padding:14px}
  .maisha-analytics-bars{height:48px;left:14px;right:14px;bottom:14px}
  body:not(.app-body) main>section:first-child{padding-top:24px!important}
  #modules .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #modules .module-tile{min-height:108px!important}
  .dash-module-map{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* MAISHA ERP clean light reset: white surfaces, blue actions, compact headings */
:root{
  --primary:#2563eb;
  --primary-hover:#1d4ed8;
  --maisha-blue:#2563eb;
  --maisha-sky:#0ea5e9;
  --maisha-pink:#2563eb;
  --bg:#f8fafc;
  --surface:#ffffff;
  --surface-solid:#ffffff;
  --surface-2:#f1f5f9;
  --surface-3:#e2e8f0;
  --ink:#0f172a;
  --muted:#64748b;
  --line:rgba(15,23,42,.1);
  --shadow-sm:0 6px 18px rgba(15,23,42,.05);
  --shadow:0 18px 45px rgba(15,23,42,.08);
  --shadow-lg:0 28px 70px rgba(15,23,42,.12);
}
html.theme-light,
html.theme-light body,
html.theme-light body.app-body,
html.theme-light body.grid-sheen,
body.light-mode{
  color-scheme:light;
  color:var(--ink)!important;
  background:#f8fafc!important;
  background-image:none!important;
}
html.theme-light body:not(.app-body),
html.theme-light body:not(.app-body) main,
html.theme-light body:not(.app-body) main>section:first-child{
  background:#ffffff!important;
  background-image:none!important;
}
html.theme-light .app-main,
html.theme-light .app-content,
html.theme-light main,
html.theme-light section,
html.theme-light .grid-sheen{
  color:var(--ink);
}
.glass,
.card,
.stat-card,
.table-wrap,
.modal-panel,
.dropdown,
.dashboard-hero,
.dash-kpi,
.dash-mini,
.dash-module-pill,
.module-tile,
.alert,
.pos-card,
.service-card,
.report-card,
.inventory-card,
.accounting-card,
.manufacturing-card{
  background:#ffffff!important;
  background-image:none!important;
  border-color:var(--line)!important;
  box-shadow:var(--shadow-sm)!important;
  color:var(--ink)!important;
}
html.theme-light .glass,
html.theme-light .card,
html.theme-light .stat-card,
html.theme-light .table-wrap,
html.theme-light .modal-panel,
html.theme-light .dropdown,
html.theme-light .dashboard-hero,
html.theme-light .dash-kpi,
html.theme-light .dash-mini,
html.theme-light .dash-module-pill,
html.theme-light .module-tile,
html.theme-light article,
html.theme-light aside,
html.theme-light details,
html.theme-light fieldset,
html.theme-light form{
  color:var(--ink)!important;
}
html.theme-light .card *,
html.theme-light .stat-card *,
html.theme-light .table-wrap *,
html.theme-light .dashboard-hero *,
html.theme-light .dash-kpi *,
html.theme-light .dash-mini *,
html.theme-light .dash-module-pill *,
html.theme-light .module-tile *{
  color:inherit;
}
.text-muted,
.card-subtitle,
.stat-label,
.stat-detail,
.breadcrumb,
.form-help,
.dash-kpi .label,
.dash-kpi .foot,
.dash-mini span,
.dash-mini small,
.dash-module-pill small,
.module-tile p,
html.theme-light .text-muted,
html.theme-light .card-subtitle,
html.theme-light .stat-label,
html.theme-light .stat-detail,
html.theme-light .breadcrumb,
html.theme-light .form-help,
html.theme-light .dash-kpi .label,
html.theme-light .dash-kpi .foot,
html.theme-light .dash-mini span,
html.theme-light .dash-mini small,
html.theme-light .dash-module-pill small,
html.theme-light .module-tile p{
  color:var(--muted)!important;
}
.btn-primary,
.btn-success,
.btn-danger,
.page-button.active,
.dashboard-hero-actions .btn-primary,
button[type=submit].btn,
a.btn-primary{
  color:#ffffff!important;
  background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;
  border-color:#2563eb!important;
  box-shadow:0 12px 26px rgba(37,99,235,.2)!important;
}
.btn-primary:hover,
button[type=submit].btn:hover,
a.btn-primary:hover{
  background:linear-gradient(135deg,#1d4ed8,#1e40af)!important;
}
.btn-secondary,
.btn-outline,
.btn-ghost,
.icon-btn,
.company-switcher-btn,
.page-button,
.tab-button,
.sidebar-collapse-btn{
  color:var(--ink)!important;
  background:#ffffff!important;
  background-image:none!important;
  border-color:var(--line)!important;
  box-shadow:none!important;
}
.btn-secondary:hover,
.btn-outline:hover,
.btn-ghost:hover,
.icon-btn:hover,
.tab-button.active,
.tab-button:hover{
  color:#1d4ed8!important;
  background:#eff6ff!important;
  border-color:rgba(37,99,235,.28)!important;
}
.badge-primary,
.badge-info{
  color:#1d4ed8!important;
  background:#dbeafe!important;
  border:1px solid #bfdbfe!important;
}
.badge-success{color:#047857!important;background:#d1fae5!important;border:1px solid #a7f3d0!important}
.badge-warning{color:#92400e!important;background:#fef3c7!important;border:1px solid #fde68a!important}
.badge-danger{color:#be123c!important;background:#ffe4e6!important;border:1px solid #fecdd3!important}
.badge-neutral{color:#475569!important;background:#f1f5f9!important;border:1px solid #e2e8f0!important}
.form-control,
.form-input,
.input-field,
.form-select,
.form-textarea,
input:not([type=checkbox]):not([type=radio]),
select,
textarea,
.top-search input,
.search-box input{
  color:var(--ink)!important;
  background:#ffffff!important;
  border-color:rgba(15,23,42,.16)!important;
  box-shadow:none!important;
}
.form-control:focus,
.form-input:focus,
.input-field:focus,
.form-select:focus,
.form-textarea:focus,
input:not([type=checkbox]):not([type=radio]):focus,
select:focus,
textarea:focus{
  border-color:#2563eb!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.14)!important;
}
.topbar,
html.theme-light .topbar{
  background:#ffffff!important;
  background-image:none!important;
  border-bottom:1px solid var(--line)!important;
  box-shadow:0 6px 18px rgba(15,23,42,.04)!important;
}
.sidebar-shell,
html.theme-light .sidebar-shell{
  background:#ffffff!important;
  background-image:none!important;
  border-right:1px solid var(--line)!important;
}
.sidebar-brand,
html.theme-light .sidebar-brand{
  background:#ffffff!important;
  background-image:none!important;
}
.sidebar-section{color:#334155!important}
.sidebar-link{color:#1f2937!important}
.sidebar-link:hover,
.sidebar-link.active,
html.theme-light .sidebar-link:hover,
html.theme-light .sidebar-link.active{
  color:#111827!important;
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
}
.sidebar-link.active:before{background:#2563eb!important;box-shadow:0 0 14px rgba(37,99,235,.5)!important}
.sidebar-icon{color:#60a5fa!important}
.sidebar-meta{color:#475569!important;background:#f8fafc!important;border-color:#e2e8f0!important}
.profile-avatar,
.company-avatar{
  background:linear-gradient(135deg,#2563eb,#2563eb)!important;
  color:#fff!important;
}
.brand-logo .brand-word{
  background:linear-gradient(90deg,#2563eb 0 70%,#2563eb 70% 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  color:transparent!important;
}
.page-heading h1{
  font-size:1.15rem!important;
  line-height:1.25!important;
  letter-spacing:0!important;
}
.dashboard-hero{
  padding:1rem 1.15rem!important;
  border-radius:.8rem!important;
}
.dashboard-hero h2,
.pos-title h2,
.service-title h2,
.inventory-title h2,
.report-title h2,
.manufacturing-title h2{
  font-size:clamp(1.15rem,2vw,1.75rem)!important;
  line-height:1.15!important;
  letter-spacing:0!important;
  color:var(--ink)!important;
}
main h1,
main h2{
  letter-spacing:0!important;
}
.app-body main h1{
  font-size:clamp(1.35rem,2.6vw,2.2rem)!important;
  line-height:1.18!important;
}
.app-body main h2{
  font-size:clamp(1.15rem,2vw,1.65rem)!important;
}
.table,
.table th,
.table td,
.sheet-table,
.pos-table,
html.theme-light .table,
html.theme-light .table th,
html.theme-light .table td{
  color:var(--ink)!important;
  background:#ffffff!important;
}
.table th,
.pos-table th{
  background:#f8fafc!important;
  color:#334155!important;
}
.table tbody tr:hover td{background:#eff6ff!important}
.dashboard-hero:after,
.module-tile:after{
  background:rgba(37,99,235,.08)!important;
}
.dash-kpi .value,
.dash-mini strong,
.stat-value{
  color:#0f172a!important;
}
.dash-module-pill span,
.stat-icon,
.kpi-icon,
.admin-stat-icon{
  background:#dbeafe!important;
  color:#2563eb!important;
  border:1px solid #bfdbfe!important;
}
body:not(.app-body) main>section:first-child h1,
.theme-light body:not(.app-body) main>section:first-child h1{
  color:#0f172a!important;
  text-shadow:none!important;
}
body:not(.app-body) main>section:first-child{
  background:#ffffff!important;
  background-image:none!important;
}
.fc-demo-wrap{
  background:#ffffff!important;
  border-color:#dbeafe!important;
  box-shadow:0 18px 42px rgba(37,99,235,.12)!important;
}
.fc-demo-wrap:before{
  background:linear-gradient(120deg,#2563eb,#38bdf8,#2563eb)!important;
}
.maisha-analytics-row{
  max-width:980px!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.maisha-analytics-card{
  min-height:145px!important;
  background:linear-gradient(135deg,#ffffff,#eff6ff)!important;
  border-color:#bfdbfe!important;
  box-shadow:0 14px 34px rgba(37,99,235,.1)!important;
}
.maisha-analytics-card strong{color:#0f172a!important}
.maisha-analytics-card small{color:#64748b!important}
.maisha-analytics-bars i,
.maisha-flow span{
  background:linear-gradient(90deg,#2563eb,#38bdf8)!important;
}
#platform .card .card,
.theme-light #platform .card .card{
  background:#ffffff!important;
}
#modules .module-tile{
  min-height:118px!important;
  padding:.9rem!important;
}
#modules .module-tile h3{
  font-size:.82rem!important;
  line-height:1.15!important;
}
#modules .module-tile p{
  font-size:.64rem!important;
}
@media(max-width:760px){
  .maisha-analytics-row{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:.55rem!important;
    max-width:360px!important;
  }
  .maisha-analytics-card{
    min-height:92px!important;
    padding:10px!important;
    border-radius:12px!important;
  }
  .maisha-analytics-card strong{font-size:.72rem!important}
  .maisha-analytics-card small{font-size:.5rem!important;line-height:1.15!important}
  .maisha-analytics-bars{height:34px!important;left:10px!important;right:10px!important;bottom:10px!important;gap:4px!important}
  .maisha-flow{left:10px!important;right:10px!important;bottom:14px!important;gap:6px!important}
  .maisha-flow span{height:7px!important}
  .dashboard-hero-actions,
  .quick-actions{
    display:flex!important;
    flex-wrap:wrap!important;
  }
  .dashboard-hero-actions .btn,
  .quick-actions .btn{
    flex:0 0 auto!important;
    width:auto!important;
  }
  .app-body main h1{font-size:1.25rem!important}
  .app-body main h2,.dashboard-hero h2{font-size:1.1rem!important}
  .dash-module-map{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Final no-pink workspace pass: neutral white UI, blue accents only */
html.theme-light body,
body.light-mode,
body.app-body{
  --bg:#f8fafc!important;
  --surface:#ffffff!important;
  --surface-solid:#ffffff!important;
  --surface-2:#f8fafc!important;
  --surface-3:#e2e8f0!important;
  --ink:#0f172a!important;
  --muted:#64748b!important;
  --line:#dbe4f0!important;
  --maisha-pink:#2563eb!important;
  background:#f8fafc!important;
  background-image:none!important;
}
body.app-body:before,
body.app-body:after,
.app-main:before,
.app-main:after,
.app-content:before,
.app-content:after,
main:before,
main:after,
section:before,
section:after{
  background-image:none!important;
}
.card,
.glass,
.stat-card,
.table-wrap,
.dashboard-hero,
.dash-kpi,
.dash-mini,
.dash-module-pill,
.module-tile,
.alert,
.tabs,
.tab-button,
.pos-card,
.pos-stats article,
.pos-mode,
.inventory-card,
.service-card,
.manufacturing-card,
.report-card,
.quick-action-grid a,
.quick-action-grid button,
article,
aside{
  background:#ffffff!important;
  background-image:none!important;
  border-color:#dbe4f0!important;
  box-shadow:0 10px 24px rgba(15,23,42,.05)!important;
}
[class*="border-pink"],
[class*="ring-pink"],
[class*="divide-pink"],
[style*="225,29,143"],
[style*="255,79,179"],
[style*="236,72,153"],
[style*="244,114,182"]{
  border-color:#dbe4f0!important;
  --tw-ring-color:rgba(37,99,235,.2)!important;
  --tw-divide-opacity:1!important;
}
[class*="bg-pink"],
[class*="from-pink"],
[class*="via-pink"],
[class*="to-pink"]{
  background:#eff6ff!important;
  background-image:none!important;
}
[class*="text-pink"],
nav a:hover,
.hover\:text-pink-400:hover{
  color:#2563eb!important;
}
.sidebar-brand,
.sidebar-footer,
.workspace-health,
.topbar,
.company-switcher-btn,
.profile-button,
.dropdown,
.dropdown-item,
.modal-panel{
  background:#ffffff!important;
  background-image:none!important;
  border-color:#dbe4f0!important;
}
.btn-primary,
.btn-success,
.btn-danger,
button[type=submit],
.page-button.active{
  background:#2563eb!important;
  background-image:linear-gradient(135deg,#2563eb,#1d4ed8)!important;
  border-color:#2563eb!important;
  color:#ffffff!important;
}
.btn-secondary,
.btn-ghost,
.btn-outline,
.icon-btn,
.tab-button,
.page-button,
button:not(.btn-primary):not([type=submit]){
  background:#ffffff!important;
  background-image:none!important;
  border-color:#dbe4f0!important;
  color:#0f172a!important;
}
.badge-primary,
.badge-info,
.sidebar-meta{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
  color:#1d4ed8!important;
}
.sidebar-link.active,
.sidebar-link:hover{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
}
.sidebar-link.active:before{
  background:#2563eb!important;
  box-shadow:none!important;
}
.dashboard-hero h2,
.dashboard-hero p{
  color:#0f172a!important;
}
.stat-icon,
.kpi-icon,
.admin-stat-icon,
.dash-module-pill span{
  background:#eff6ff!important;
  color:#2563eb!important;
  border-color:#bfdbfe!important;
}
.table,
.table th,
.table td,
.pos-table,
.pos-table th,
.pos-table td{
  border-color:#dbe4f0!important;
}
.table th,
.pos-table th{
  background:#f8fafc!important;
}
.health-bar,
.progress,
.progress-bar{
  background:#e2e8f0!important;
}
.health-bar i,
.progress-bar i{
  background:#2563eb!important;
}

/* Public site polish: no pink outside the logo, iPhone-safe tiny animations */
body.grid-sheen,
body.grid-sheen main,
body.grid-sheen section,
body.grid-sheen footer{
  background:#ffffff!important;
  background-image:none!important;
  color:#0f172a!important;
}
body.grid-sheen header{
  background:#ffffff!important;
  border-bottom:1px solid #eef2f7!important;
}
body.grid-sheen .card,
body.grid-sheen .glass,
body.grid-sheen article,
body.grid-sheen .module-tile,
body.grid-sheen #platform .card,
body.grid-sheen #pricing .card,
body.grid-sheen .auth-card{
  background:#ffffff!important;
  background-image:none!important;
  border-color:#dbeafe!important;
  box-shadow:0 14px 34px rgba(37,99,235,.08)!important;
  color:#0f172a!important;
}
body.grid-sheen .landing-hero-accent,
body.grid-sheen .text-pink-400,
body.grid-sheen .text-violet-400,
body.grid-sheen .text-sky-300,
body.grid-sheen .powered-link{
  color:#2563eb!important;
  background:none!important;
  -webkit-text-fill-color:#2563eb!important;
}
body.grid-sheen .badge,
body.grid-sheen .badge-primary,
body.grid-sheen .badge-success,
body.grid-sheen .footer-social a,
body.grid-sheen .theme-light .footer-social a{
  color:#1d4ed8!important;
  background:#eff6ff!important;
  background-image:none!important;
  border-color:#bfdbfe!important;
  box-shadow:none!important;
}
body.grid-sheen .btn-primary,
body.grid-sheen .btn-success,
body.grid-sheen .btn-danger{
  color:#ffffff!important;
  background:#2563eb!important;
  background-image:linear-gradient(135deg,#2563eb,#1d4ed8)!important;
  border-color:#2563eb!important;
}
body.grid-sheen .btn-secondary,
body.grid-sheen .btn-ghost,
body.grid-sheen .btn-outline{
  color:#0f172a!important;
  background:#ffffff!important;
  background-image:none!important;
  border-color:#dbeafe!important;
}
body.grid-sheen .btn-secondary:hover,
body.grid-sheen .btn-ghost:hover,
body.grid-sheen .btn-outline:hover{
  color:#1d4ed8!important;
  background:#eff6ff!important;
}
body.grid-sheen .kpi-icon,
body.grid-sheen .stat-icon{
  background:#eff6ff!important;
  color:#2563eb!important;
  border-color:#bfdbfe!important;
}
body.grid-sheen .module-tile:after,
body.grid-sheen .maisha-analytics-card:before,
body.grid-sheen .absolute.inset-0{
  display:none!important;
}
body.grid-sheen .fc-demo-wrap{
  background:#ffffff!important;
  border-color:#bfdbfe!important;
  box-shadow:0 18px 42px rgba(37,99,235,.12)!important;
}
body.grid-sheen .fc-demo-wrap:before{
  background:linear-gradient(120deg,#2563eb,#38bdf8,#2563eb)!important;
}
.maisha-analytics-card{
  isolation:isolate;
  min-height:120px!important;
  padding:16px!important;
  background:#ffffff!important;
  background-image:none!important;
  border:1px solid #bfdbfe!important;
  box-shadow:0 14px 30px rgba(37,99,235,.08)!important;
}
.maisha-analytics-card strong{
  position:relative;
  z-index:2;
  color:#0f172a!important;
  font-size:1rem!important;
}
.maisha-analytics-card small{
  display:none!important;
}
.maisha-analytics-bars{
  position:absolute!important;
  left:16px!important;
  right:16px!important;
  bottom:14px!important;
  height:54px!important;
  display:flex!important;
  align-items:flex-end!important;
  gap:7px!important;
  overflow:hidden!important;
}
.maisha-analytics-bars i{
  display:block!important;
  flex:1!important;
  height:100%!important;
  min-width:0!important;
  border-radius:8px 8px 2px 2px!important;
  background:#2563eb!important;
  transform:scaleY(.36);
  transform-origin:bottom center;
  animation:maishaIosBars 1.35s ease-in-out infinite;
  -webkit-animation:maishaIosBars 1.35s ease-in-out infinite;
  will-change:transform;
}
.maisha-analytics-bars i:nth-child(2){animation-delay:.12s;-webkit-animation-delay:.12s}
.maisha-analytics-bars i:nth-child(3){animation-delay:.24s;-webkit-animation-delay:.24s}
.maisha-analytics-bars i:nth-child(4){animation-delay:.36s;-webkit-animation-delay:.36s}
.maisha-analytics-bars i:nth-child(5){animation-delay:.48s;-webkit-animation-delay:.48s}
.maisha-analytics-bars i:nth-child(6){animation-delay:.6s;-webkit-animation-delay:.6s}
.maisha-flow{
  position:absolute!important;
  left:16px!important;
  right:16px!important;
  bottom:18px!important;
  display:grid!important;
  gap:8px!important;
  overflow:hidden!important;
}
.maisha-flow span{
  display:block!important;
  width:100%!important;
  height:9px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#1d4ed8,#38bdf8,#1d4ed8)!important;
  background-size:220% 100%!important;
  animation:maishaIosFlow 1.45s linear infinite!important;
  -webkit-animation:maishaIosFlow 1.45s linear infinite!important;
  will-change:background-position;
}
.maisha-flow span:nth-child(2){animation-delay:.18s!important;-webkit-animation-delay:.18s!important}
.maisha-flow span:nth-child(3){animation-delay:.36s!important;-webkit-animation-delay:.36s!important}
@keyframes maishaIosBars{
  0%,100%{transform:scaleY(.34)}
  50%{transform:scaleY(1)}
}
@-webkit-keyframes maishaIosBars{
  0%,100%{-webkit-transform:scaleY(.34)}
  50%{-webkit-transform:scaleY(1)}
}
@keyframes maishaIosFlow{
  0%{background-position:0% 50%}
  100%{background-position:220% 50%}
}
@-webkit-keyframes maishaIosFlow{
  0%{background-position:0% 50%}
  100%{background-position:220% 50%}
}
.auth-page{
  padding-top:2.5rem!important;
}
.auth-title{
  font-family:'Manrope',sans-serif!important;
  font-size:clamp(1.65rem,4vw,2.25rem)!important;
  line-height:1.08!important;
  font-weight:900!important;
  letter-spacing:0!important;
  color:#0f172a!important;
}
.auth-title .brand-word{
  display:inline-block!important;
  font-size:.82em!important;
  line-height:1!important;
}
@media(max-width:640px){
  .maisha-analytics-row{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    max-width:360px!important;
  }
  .maisha-analytics-card{
    min-height:90px!important;
    padding:10px!important;
    border-radius:12px!important;
  }
  .maisha-analytics-card strong{
    font-size:.72rem!important;
    line-height:1.1!important;
  }
  .maisha-analytics-bars{
    left:10px!important;
    right:10px!important;
    bottom:10px!important;
    height:34px!important;
    gap:4px!important;
  }
  .maisha-flow{
    left:10px!important;
    right:10px!important;
    bottom:14px!important;
    gap:6px!important;
  }
  .maisha-flow span{
    height:7px!important;
  }
  .auth-title{
    font-size:1.65rem!important;
  }
}
