:root{--ink:#202b3c;--muted:#8490a2;--line:#e9edf3;--surface:#fff;--canvas:#f7f9fc;--blue:#4778e7;--blue-dark:#3565cf;--green:#2aa47c;--amber:#d8972c;--red:#dc6870;--nav:#202b3c;--shadow:0 5px 20px rgba(37,55,89,.045);font-family:'DM Sans',Arial,sans-serif;font-size:12px;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--canvas)}button,input,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.login-shell{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 8%,#eaf0ff 0,transparent 45%),var(--canvas)}.login-card{width:min(390px,calc(100vw - 32px));padding:38px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 16px 70px #233b6410}.login-card h1{font:700 24px Manrope,sans-serif;margin:6px 0}.login-card .muted{margin:0 0 28px}.login-card label{display:block;font-size:11px;font-weight:600;margin:14px 0;color:#4c586a}.login-card input{display:block;width:100%;height:40px;border:1px solid var(--line);border-radius:7px;padding:0 12px;margin-top:7px;color:var(--ink);outline:none}.login-card input:focus{border-color:#8aa9f6;box-shadow:0 0 0 3px #4778e715}.login-hint{text-align:center;color:var(--muted);font-size:10px;margin:22px 0 0}.brand-mark{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,#5689fa,#3965ce);color:white;display:grid;place-items:center;font:800 19px Manrope;box-shadow:0 5px 12px #4778e730}.brand-mark.small{width:30px;height:30px;font-size:16px;border-radius:8px}.app{min-height:100vh}.sidebar{width:236px;background:#fff;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:19px 12px 10px;z-index:3}.brand{display:flex;align-items:center;gap:10px;padding:0 8px 20px}.brand strong,.workspace strong,.profile strong{font:700 12px Manrope;display:block;letter-spacing:-.15px}.brand span,.workspace span,.profile small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.workspace{height:54px;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;padding:8px;gap:9px;margin-bottom:18px}.workspace strong{font-size:11px}.workspace .chevron{margin-left:auto}.org-icon{width:28px;height:28px;border-radius:7px;background:#eef2ff;color:#5278da;display:grid;place-items:center;font-weight:700}.nav-caption{font-size:9px;letter-spacing:.9px;color:#a2abba;font-weight:700;margin:13px 10px 7px}.nav-item{height:36px;width:100%;border:0;background:transparent;border-radius:6px;color:#657184;text-align:left;padding:0 10px;display:flex;align-items:center;gap:10px;font-size:11.5px}.nav-item:hover{background:#f6f8fc;color:var(--ink)}.nav-item.active{color:#3e6fd9;background:#edf2ff;font-weight:600}.nav-icon{width:17px;color:#8995a7;text-align:center;font-size:14px}.active .nav-icon{color:#4778e7}.nav-badge{font-size:8px;color:#3d72d9;background:#e5edff;border-radius:4px;padding:3px 5px;margin-left:auto;font-weight:700}.sidebar-bottom{margin-top:auto}.help-card{margin:0 3px 11px;padding:11px 10px;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;gap:8px;color:#7e899b}.help-card .help-icon{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#eef2ff;color:#4778e7;font-weight:700}.help-card b{display:block;font-size:10px;color:#4c586a}.help-card small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.help-card>span:last-child{margin-left:auto}.profile{width:100%;border:0;border-top:1px solid var(--line);background:white;display:flex;align-items:center;gap:9px;padding:12px 4px 3px;text-align:left}.profile small{font-size:9px}.avatar{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#eaf0ff;color:#4b70cf;font-size:10px;font-weight:700}.profile .chevron{margin-left:auto;color:#98a3b2}.main{margin-left:236px;min-height:100vh}.topbar{height:55px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:2}.crumb{display:flex;align-items:center;gap:11px;color:#9aa4b2;font-size:10px}.crumb b{font-weight:400;color:#d0d5dd}.crumb strong{color:#536074;font-weight:600}.top-actions{display:flex;align-items:center;gap:15px}.icon-button{width:29px;height:29px;border:1px solid var(--line);border-radius:7px;color:#7c8899;background:white;font-size:16px;position:relative}.notification i{position:absolute;width:5px;height:5px;border-radius:50%;background:#ee8c59;right:5px;top:4px}.top-divider{height:19px;border-left:1px solid var(--line)}.help-link{border:0;background:none;color:#7b8799;font-size:10px}.top-avatar{width:27px;height:27px}.content{max-width:1500px;margin:0 auto;padding:30px 34px 18px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:23px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:.8px;color:#9aa4b2;margin:0 0 8px}.page-heading h1{font:700 21px Manrope,sans-serif;letter-spacing:-.7px;margin:0 0 5px}.page-heading h1 span{color:#e7b84c;font-size:15px}.muted{color:#8b96a6;font-size:10.5px;margin:0}.heading-actions{display:flex;gap:8px}.button{height:33px;border:1px solid var(--line);border-radius:6px;padding:0 12px;font-weight:600;font-size:10px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.button.primary{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 2px 5px #4778e72a}.button.primary:hover{background:var(--blue-dark)}.button.secondary{color:#667285;background:#fff}.button.secondary:hover{border-color:#c8d2e0;background:#fbfcfe}.button.full{width:100%;height:39px;margin-top:10px}.button.full span{margin-left:auto;font-size:15px}.error{color:#c3515b;font-size:10px;min-height:12px}.grid{display:grid;gap:13px}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:14px}.stat-card,.panel{background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow)}.stat-card{padding:15px 16px 13px;min-height:101px}.stat-head{display:flex;justify-content:space-between;align-items:center;color:#768295;font-size:10px}.stat-icon{width:27px;height:27px;border-radius:7px;display:grid;place-items:center;background:#edf2ff;color:#5579d9;font-size:13px}.stat-card:nth-child(2) .stat-icon{background:#e9f7f1;color:#28a178}.stat-card:nth-child(3) .stat-icon{background:#fff5e8;color:#d69731}.stat-card:nth-child(4) .stat-icon{background:#f2edff;color:#9473d3}.stat-value{font:700 22px Manrope,sans-serif;letter-spacing:-.6px;margin:8px 0 5px}.stat-foot{font-size:9px;color:#9aa4b2}.positive{color:#27a078;font-weight:600}.panels-grid{grid-template-columns:minmax(0,1.75fr) minmax(250px,1fr);margin-bottom:14px}.panel{padding:15px 16px}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.panel-title{font:700 12px Manrope;margin:0}.panel-subtitle{font-size:9px;color:#9aa4b2;margin-top:4px}.panel-link{border:0;background:transparent;color:#4778e7;font-size:9px;font-weight:600}.chart{height:190px;position:relative}.chart svg{width:100%;height:100%;overflow:visible}.chart-grid{stroke:#edf0f5;stroke-width:1}.chart-label{fill:#9da7b5;font:9px 'DM Sans',sans-serif}.chart-area{fill:url(#area)}.chart-line{fill:none;stroke:#4d7be5;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.chart-line.expense{stroke:#56ba9a;stroke-dasharray:5 4}.legend{display:flex;gap:15px;font-size:9px;color:#808b9b}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:7px;height:7px;border-radius:50%;background:#4d7be5}.legend span+span i{background:#56ba9a}.activity-list{display:flex;flex-direction:column}.activity{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #f0f2f6}.activity:last-child{border:0}.activity-icon{width:27px;height:27px;border-radius:7px;background:#eef3ff;color:#5e7fdb;display:grid;place-items:center;flex:none}.activity-text{font-size:10px;color:#4e5b6f;line-height:1.5}.activity-text b{font-weight:600;color:#303c4f}.activity-time{font-size:9px;color:#a2acb9;margin-top:2px}.lower-grid{grid-template-columns:minmax(0,1.35fr) minmax(270px,1fr)}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;white-space:nowrap}.table th{text-align:left;color:#97a1af;text-transform:uppercase;letter-spacing:.45px;font-size:8.5px;font-weight:700;padding:9px 10px;border-bottom:1px solid var(--line)}.table td{padding:10px;border-bottom:1px solid #f0f2f6;color:#566276;font-size:10px}.table tbody tr:last-child td{border:0}.table .primary-cell{font-weight:600;color:#354155}.table .secondary-cell{color:#9aa4b2;font-size:9px;margin-top:3px}.status{display:inline-flex;align-items:center;gap:5px;border-radius:10px;padding:4px 7px;font-size:8.5px;font-weight:600}.status::before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.status.ok{color:#248e6a;background:#e9f7f1}.status.warning{color:#bd8123;background:#fff4e3}.status.neutral{color:#748196;background:#f1f3f7}.status.danger{color:#c45860;background:#fff0f0}.stock-list{display:flex;flex-direction:column;gap:11px}.stock-row{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center}.stock-name{font-size:10px;color:#505d70}.stock-count{font-size:9px;color:#9aa4b2}.progress{height:4px;background:#edf0f5;border-radius:5px;grid-column:1 / -1;overflow:hidden}.progress i{height:100%;display:block;background:#e5a04a;border-radius:5px}.quick-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:14px}.quick-link{padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff;display:flex;align-items:center;gap:10px;text-align:left;color:#526075}.quick-link:hover{border-color:#cbd8f4;box-shadow:var(--shadow)}.quick-link .stat-icon{width:27px;height:27px}.quick-link b{display:block;font-size:10px}.quick-link small{display:block;font-size:9px;color:#99a3b1;margin-top:3px}.page-panel{padding:0;overflow:hidden}.toolbar{padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}.search{height:31px;width:min(245px,50vw);border:1px solid var(--line);border-radius:6px;padding:0 10px;outline:none;color:#566276}.search:focus{border-color:#91aaf0}.toolbar-actions{display:flex;gap:7px}.table-footer{padding:11px 15px;color:#9aa4b2;font-size:9px;border-top:1px solid var(--line);display:flex;justify-content:space-between}.empty{padding:35px;text-align:center;color:#929dad}.report-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-card{padding:16px;text-align:left;border:1px solid var(--line);border-radius:9px;background:#fff;min-height:125px}.report-card:hover{border-color:#bbcdf8;box-shadow:var(--shadow)}.report-card .stat-icon{margin-bottom:12px}.report-card b{display:block;font-size:11px}.report-card small{display:block;color:#9aa4b2;font-size:9px;margin-top:5px;line-height:1.5}.report-table{margin-top:14px}.module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.module-card{padding:15px;border:1px solid var(--line);border-radius:9px;background:#fff}.module-top{display:flex;justify-content:space-between}.module-card h3{font:700 12px Manrope;margin:12px 0 4px}.module-card p{color:#99a3b1;font-size:9px;line-height:1.5;margin:0 0 13px;min-height:26px}.module-meta{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0f2f6;padding-top:10px;font-size:9px;color:#8490a2}.switch{appearance:none;width:29px;height:16px;border-radius:9px;background:#d8dfe9;position:relative;cursor:pointer;transition:.15s}.switch:checked{background:#4c7de8}.switch:after{content:'';position:absolute;left:2px;top:2px;width:12px;height:12px;border-radius:50%;background:white;transition:.15s}.switch:checked:after{left:15px}.report-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.report-tab{padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:white;color:#6f7a8c;font-size:9px}.report-tab.active{color:#3f70d7;background:#edf2ff;border-color:#dce6ff}.live-dot{width:6px;height:6px;border-radius:50%;background:#27b17e;display:inline-block;margin-left:4px}footer{display:flex;justify-content:space-between;color:#a2acb8;font-size:9px;padding:24px 2px 8px}.dialog-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px}.dialog-head h2{font:700 17px Manrope;margin:0}.close-dialog{font-size:18px}dialog{border:1px solid var(--line);border-radius:12px;padding:22px;width:min(500px,calc(100vw - 24px));box-shadow:0 20px 80px #18243c33}dialog::backdrop{background:#18243c55;backdrop-filter:blur(2px)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-grid label{font-size:10px;color:#687487;font-weight:600}.form-grid input,.form-grid select{display:block;width:100%;height:35px;border:1px solid var(--line);border-radius:6px;margin-top:6px;padding:0 9px;color:#435065;outline:none}.form-grid input:focus,.form-grid select:focus{border-color:#8aa9f6}.dialog-actions{display:flex;justify-content:flex-end;gap:7px;padding-top:14px;border-top:1px solid var(--line);margin-top:18px}@media(max-width:1100px){.sidebar{width:205px}.main{margin-left:205px}.content{padding:24px 22px}.topbar{padding:0 22px}.stats-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.sidebar{width:56px;padding:14px 7px}.brand{justify-content:center;padding:0 0 18px}.brand>div:last-child,.workspace,.nav-caption,.nav-item:not(.active),.nav-item.active{font-size:0}.nav-item{justify-content:center;padding:0}.nav-icon{font-size:15px}.nav-badge,.sidebar-bottom .help-card,.profile>div:not(.avatar),.profile .chevron{display:none}.profile{justify-content:center;padding-top:10px}.main{margin-left:56px}.topbar{padding:0 12px}.content{padding:20px 12px}.page-heading{align-items:start;gap:12px;flex-direction:column}.heading-actions{align-self:stretch}.panels-grid,.lower-grid{grid-template-columns:1fr}.quick-grid,.report-grid,.module-grid{grid-template-columns:repeat(2,1fr)}footer{gap:8px;flex-wrap:wrap}.help-link{display:none}}@media(max-width:470px){.stats-grid{gap:8px}.stat-card{padding:12px;min-height:94px}.stat-value{font-size:19px}.quick-grid,.report-grid,.module-grid{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.top-actions{gap:8px}}
/* Active company and branch selector */
.active-workspace-context{display:flex;align-items:center;gap:12px;min-width:0;padding:5px 9px;border:1px solid transparent;border-radius:8px;background:transparent;color:#344258;text-align:left;transition:background .15s,border-color .15s}
.active-workspace-context[hidden]{display:none}
.active-workspace-context:hover,.active-workspace-context:focus-visible{border-color:#e5eaf1;background:#fff;outline:none}
.active-workspace-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.active-workspace-context strong{overflow:hidden;color:#344258;font-size:10px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.active-workspace-context small{overflow:hidden;color:#8490a2;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.workspace-chevron{color:#8995a5;font-size:12px}
.branch-dialog{width:min(420px,calc(100vw - 26px));max-width:none;padding:22px;border:1px solid #e4e9f0;border-radius:12px;background:#fff;color:#344258;box-shadow:0 24px 80px #18243c35}
.branch-dialog .dialog-head{margin-bottom:16px}
.branch-dialog .dialog-head h2{margin:0 0 5px;font:650 16px Manrope,Arial,sans-serif}
.branch-dialog .dialog-head .muted{margin:0;color:#8490a2;font-size:9px}
.branch-dialog-label{display:block;color:#5c6a7f;font-size:10px;font-weight:600}
.branch-dialog-label select{display:block;width:100%;height:38px;margin-top:7px;padding:0 10px;border:1px solid #dfe5ee;border-radius:7px;background:#fff;color:#3f4d62;font:inherit;font-weight:400}
.branch-dialog-note{margin:12px 0 0;padding:10px 11px;border-left:3px solid #91a9cb;background:#f6f8fb;color:#728096;font-size:9px;line-height:1.5}
.branch-dialog .error{min-height:0;margin:8px 0 0;color:#b24c50;font-size:9px}
.branch-dialog .dialog-actions{margin-top:14px}
.branch-dialog::backdrop{background:#18243c55;backdrop-filter:blur(2px)}
@media(max-width:760px){.active-workspace-context{max-width:150px;padding:4px 5px;gap:6px}.active-workspace-context strong{font-size:9px}.active-workspace-context small{font-size:8px}.workspace-chevron{font-size:10px}}
.admin-activity-filters{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:12px 0}.admin-activity-filters>.search{flex:1 1 145px;min-width:130px}.admin-activity-filters label{display:grid;gap:4px;color:#758196;font-size:10px}.admin-activity-filters input[type=date]{height:34px;padding:0 8px;border:1px solid #dfe5ee;border-radius:6px;color:#405067;font:inherit}.admin-user-results{min-height:36px;color:#758196;font-size:11px}.admin-user-results .table-wrap{max-height:260px}.admin-user-results td small,.admin-center .primary-cell small{display:block;margin-top:3px;color:#8995a5;font-size:10px}.page-panel>.toolbar .search{min-width:180px}.page-panel .table-wrap{max-width:100%}
@media(max-width:760px){.admin-activity-filters>*{flex:1 1 100%!important}.page-panel>.toolbar .search{min-width:0;width:100%}}
.db-health-banner{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding:14px 16px;border:1px solid #dfe8e2;border-radius:9px;background:#f5faf6}.db-health-banner.review{border-color:#f0dfbd;background:#fffaf1}.db-health-banner>div{display:grid;gap:4px;flex:1}.db-health-banner b{color:#35465a;font-size:12px}.db-health-banner small,.db-backup-note span{color:#8490a2;font-size:10px}.db-health-indicator{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e1f3e7;color:#26824d;font-weight:700}.review .db-health-indicator{background:#ffefce;color:#a56a06}.db-backup-panel{margin-top:14px}.db-backup-note{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 12px;border:1px solid #e8edf3;border-radius:7px;background:#fafbfd}.db-backup-note b{color:#42516a;font-size:11px}.db-version{margin-top:10px;color:#8995a5;font-size:10px;line-height:1.5;overflow-wrap:anywhere}.db-health-banner .button{white-space:nowrap}
.nav-item[hidden]{display:none}
@media(max-width:760px){.db-health-banner{flex-wrap:wrap}.db-health-banner>div{flex-basis:calc(100% - 48px)}.db-health-banner>.button{width:100%}.db-backup-panel .panel-head{align-items:flex-start;gap:10px;flex-direction:column}}
.admin-center-workspace{padding:0;overflow:hidden}.admin-center-tabs{display:flex;align-items:stretch;gap:6px;padding:0 18px;border-bottom:1px solid var(--line)}.admin-center-tab{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:47px;padding:0 12px;border:0;background:transparent;color:#7b8799;font-size:10px;font-weight:600}.admin-center-tab::after{position:absolute;right:8px;bottom:-1px;left:8px;height:2px;background:transparent;content:""}.admin-center-tab:hover{color:#3e6fd9}.admin-center-tab.active{color:#3e6fd9}.admin-center-tab.active::after{background:#4778e7}.admin-center-tab span{padding:2px 6px;border-radius:10px;background:#edf2ff;color:#5579d9;font-size:9px}.admin-tab-panel{padding:18px 20px 20px}.admin-tab-panel[hidden]{display:none}.admin-tab-panel>.toolbar{margin-bottom:14px}.database-health-page{display:grid;gap:14px;min-width:0}.database-health-page>.stats-grid{gap:12px;margin:0}.database-health-page>.page-panel{min-width:0;margin:0;padding:20px 22px}.database-health-page .panel-head{gap:14px;align-items:center}.database-health-page .table-wrap{width:100%;border:1px solid #edf0f5;border-radius:7px}.database-health-page .table{min-width:680px;white-space:normal}.database-health-page .table th,.database-health-page .table td{padding:11px 12px;vertical-align:middle}.database-health-page .table td:last-child{min-width:290px;white-space:normal;line-height:1.5}.database-health-page .db-health-banner{min-height:62px;margin:0;padding:14px 18px}.database-health-page .db-backup-panel .panel-head{align-items:center}.database-health-page .db-version{padding:9px 11px;border-radius:6px;background:#f8f9fb}.db-backup-note{min-height:42px;padding:10px 13px;gap:7px 12px}
@media(max-width:760px){.admin-center-tabs{padding:0 10px}.admin-center-tab{flex:1;justify-content:center;padding:0 6px}.admin-tab-panel{padding:14px 12px}.database-health-page>.page-panel{padding:16px 13px}.database-health-page .panel-head{align-items:flex-start;flex-direction:column}.database-health-page .panel-head>.status{align-self:flex-start}.database-health-page .db-backup-panel .panel-head{align-items:flex-start}.database-health-page .db-backup-panel .button{width:100%}.database-health-page>.stats-grid{gap:9px}}

.admin-user-pager{align-items:center;gap:12px;flex-wrap:wrap}.admin-user-pager>div{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.admin-user-pager label{display:flex;align-items:center;gap:6px}.admin-user-pager select{min-height:30px;padding:4px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text)}.admin-user-pager button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:640px){.admin-user-pager{align-items:flex-start}.admin-user-pager>div{width:100%;justify-content:space-between}.admin-user-results .table-wrap{overflow-x:auto}}

.admin-user-hint{display:block;padding-left:14px}
