:root{--ui-blue:#1d4ed8;--ui-blue-dark:#1e40af;--ui-slate:#334155;--ui-border:#dbe3ee;--ui-soft:#f8fafc;--ui-danger:#b91c1c;--ui-success:#15803d}
.context-sidebar{padding:22px 14px}.context-sidebar>strong{display:block;padding:0 10px 12px;font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;color:#64748b}.context-sidebar .context-link{display:flex;align-items:center;gap:10px;margin:3px 0;padding:10px 11px;border-radius:9px;color:#334155;text-decoration:none;font-weight:650;transition:.15s ease}.context-sidebar .context-link span{width:22px;text-align:center;color:#64748b;font-weight:800}.context-sidebar .context-link:hover{background:#eef4ff;color:#1d4ed8;transform:translateX(2px)}.context-sidebar .context-link.active{background:#dbeafe;color:#1e40af}.context-sidebar .context-create{margin-top:8px;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8}
.page-actions,.toolbar,.actionbar,.form-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 18px}.action-search{display:flex;align-items:center;gap:8px;flex:1;max-width:680px}.action-search input{min-width:260px;flex:1}.btn,.button,.link-button,.content a.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:9px 14px;border-radius:9px;border:1px solid #cbd5e1;background:#fff;color:#0f172a;text-decoration:none;font-weight:700;line-height:1.15;cursor:pointer;white-space:nowrap;transition:.15s ease}.btn:hover,.button:hover,.link-button:hover{border-color:#94a3b8;box-shadow:0 4px 12px rgba(15,23,42,.08);transform:translateY(-1px)}.btn.primary,.button.primary,button.primary{background:var(--ui-blue);border-color:var(--ui-blue);color:#fff}.btn.primary:hover,.button.primary:hover,button.primary:hover{background:var(--ui-blue-dark)}.btn.secondary,.link-button.secondary{background:#fff;color:#334155}.btn.small,.link-button.compact{min-height:32px;padding:6px 10px;font-size:.84rem}.link-danger,button.danger,.btn.danger{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border-radius:8px;border:1px solid #fecaca;background:#fff1f2;color:var(--ui-danger);font-weight:700;cursor:pointer}.table-actions,.company-actions,.actions{white-space:nowrap;text-align:right}.actions-col{text-align:right}.data-table td small,.table-wrap td small{display:block;margin-top:4px;color:#64748b}.count-pill,.status-pill{display:inline-flex;align-items:center;justify-content:center;padding:4px 9px;border-radius:999px;font-size:.78rem;font-weight:800}.count-pill{background:#eef2ff;color:#4338ca}.status-pill.is-active,.badge.active{background:#dcfce7;color:#166534}.status-pill.is-inactive,.badge.inactive{background:#f1f5f9;color:#64748b}.empty-state,.empty-cell{padding:34px!important;text-align:center!important;color:#64748b}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.panel-head h2{margin:0}.panel-head p{margin:5px 0 0;color:#64748b}.content .panel>p>a:not(.btn):not(.button):not(.link-button),.content td>a:not(.btn):not(.button):not(.link-button){font-weight:700;color:#1d4ed8;text-decoration:none}.content td>a:not(.btn):not(.button):not(.link-button){display:inline-flex;padding:6px 9px;border:1px solid #bfdbfe;border-radius:7px;background:#eff6ff}.content td>a:not(.btn):hover{background:#dbeafe}.topbar h1{margin-bottom:3px}.topbar p{margin:0;color:#64748b}.admin-users-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.8fr);gap:20px;align-items:start}.user-create-panel{position:sticky;top:18px}
@media(max-width:1050px){.admin-users-layout{grid-template-columns:1fr}.user-create-panel{position:static}}@media(max-width:700px){.page-actions,.toolbar,.actionbar,.form-actions{align-items:stretch;flex-direction:column}.page-actions>*{width:100%}.action-search{max-width:none}.action-search input{min-width:0}.btn,.button,.link-button{width:100%}.context-sidebar .context-link{padding:9px}}
