/* Quiet workspace, brand colours and contextual help. */
:root{--action-primary:#b84943;--action-hover:#9e3e39;--action-secondary:#e2ddec;--action-secondary-hover:#d5cde4;--action-secondary-text:#393349;--field-bg:#f2f0ee;--table-head:#ece9e6}
:root[data-theme=dark]{--action-primary:#b84943;--action-hover:#a5403b;--action-secondary:#514d67;--action-secondary-hover:#635d7c;--action-secondary-text:#fff;--field-bg:#202b3d;--table-head:#253043}
.sidebar{padding-top:0}.sidebar .product{width:100%;height:88px;min-height:88px;display:flex;align-items:center;justify-content:center;margin:0 0 24px;align-self:center}.topbar{min-height:88px;height:88px;padding-top:12px;padding-bottom:12px}.sidebar nav>a{margin:4px 0}.sidebar-bottom img{width:128px;height:auto;max-width:100%;opacity:.38}.sidebar .sidebar-bottom{align-items:center}.nav-label{display:none}.header-status{flex:1;min-width:0;padding-right:20px;font-size:13px}.header-message{display:block}.header-message.error{color:var(--danger)}.header-message.success{color:var(--text)}.topbar-controls{margin-left:auto;gap:16px}.topbar .user-chip{order:initial}.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.button.primary,.login-submit.button{background:var(--action-primary);color:#fff;width:192px}.button.primary:hover{background:var(--action-hover);color:#fff}.button.secondary,.small-button{background:var(--action-secondary);color:var(--action-secondary-text)}.button.secondary:hover,.small-button:hover{background:var(--action-secondary-hover)}.text-button{background:transparent;color:var(--action-primary)}.text-button:hover{background:var(--action-secondary)}.form-actions .button.primary,.form-actions .button.secondary,.page-heading>.button.primary{width:192px}.button.secondary{width:160px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;flex:0 0 48px;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}.icon-button:hover{background:var(--action-secondary);color:var(--text)}.icon-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
input:not([type=checkbox]),select,textarea{background-color:var(--field-bg)}input:not([type=checkbox]),.select-trigger{border-radius:14px}input[type=checkbox]{accent-color:var(--action-primary);width:20px;height:20px;flex-shrink:0;cursor:pointer}.list-head{background:var(--table-head);border:0;border-radius:12px;margin:0 16px;padding:16px 12px}.document-row{border:0}.list-head+ .document-row{border-top:0}
.mega-select{position:relative;display:block;width:100%;min-width:0}.mega-select .select-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;opacity:0;pointer-events:none;overflow:hidden}.select-trigger{display:flex;align-items:center;width:100%;height:48px;min-width:0;padding:0 44px 0 18px;border:0;background:var(--field-bg) var(--select-arrow) no-repeat right 18px center;background-size:16px;color:var(--text);font:inherit;font-size:13px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.select-trigger:disabled{opacity:.5;cursor:default}.filters .mega-select{width:100%}.sidebar .mega-select{width:100%}.sidebar .select-trigger{font-size:11px}.select-menu{position:fixed;z-index:1000;overflow-y:auto;overscroll-behavior:contain;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;padding:6px;box-shadow:0 12px 40px #0003}.select-option{display:flex;align-items:center;min-height:44px;padding:10px 14px;border-radius:10px;cursor:pointer;font-size:13px;line-height:1.4}.select-option[aria-selected=true]{color:var(--text);background:var(--action-secondary)}.select-option[aria-selected=true]:after{content:'✓';margin-left:auto;padding-left:12px}.select-option.highlighted{box-shadow:inset 0 0 0 2px var(--focus)}.select-option[aria-disabled=true]{opacity:.4;cursor:default}
.mega-tooltip{position:fixed;z-index:1200;max-width:min(340px,calc(100vw - 24px));padding:12px 16px;background:var(--text);color:var(--surface);font-size:12px;line-height:1.5;border-radius:12px;box-shadow:0 8px 24px #0002;pointer-events:none}.hint-source{display:none!important}.help-button{border:0;background:transparent;color:var(--muted);min-width:44px;min-height:44px;font:inherit;cursor:help}.upload-zone{display:flex;align-items:center;gap:20px;padding:0;background:transparent;min-height:72px;border:0;box-shadow:none}.upload-zone input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.upload-label{color:var(--muted);font-size:13px}.wizard-file,.wizard-type{margin-bottom:24px}.wizard-type .form-field{max-width:384px}.section-number{font-size:14px;font-weight:500;color:var(--muted);margin-bottom:8px}.form-panel hr{border:0;margin:24px 0 0}.form-panel h3{margin-top:24px}.approval-route .pending .step-number{mask:none;-webkit-mask:none;background:transparent;border:0;color:var(--muted);position:relative;isolation:isolate}.approval-route .pending .step-number:before,.approval-route .pending .step-number:after{content:'';position:absolute;mask:var(--shape) center/contain no-repeat;-webkit-mask:var(--shape) center/contain no-repeat;pointer-events:none}.approval-route .pending .step-number:before{inset:0;background:currentColor;z-index:-2}.approval-route .pending .step-number:after{inset:1.5px;background:var(--surface);z-index:-1}.step-number{flex-shrink:0}.route-controls .small-button{width:48px}.approval-route li.pending .step-state{display:none}
.profile-editor{display:flex;flex-direction:column;gap:24px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.profile-avatar-row{display:flex;gap:24px;align-items:center;margin-bottom:24px}.profile-avatar{width:88px;height:88px;flex:0 0 88px;font-size:28px}.profile-avatar-row>div{min-width:0}.profile-avatar-row input[type=file]{max-width:100%;height:auto}.employment-row{display:grid;grid-template-columns:1fr 1fr 128px;align-items:end;gap:16px;margin:20px 0}.employment-row .form-field{margin-bottom:0}.employment-row .checkbox-label{min-height:48px;margin:0}.profile-editor .form-actions{margin-top:0}.password-panel{margin-top:24px}.password-panel>summary{cursor:pointer;font-size:16px;min-height:44px;display:flex;align-items:center}.password-panel>summary:after{content:'⌄';margin-left:auto}.password-panel[open]>summary:after{transform:rotate(180deg)}.password-panel .stack{max-width:480px;margin-top:24px}.password-panel .helptext{display:none}.profile-grid .badge{margin-top:16px}.back-link{margin-bottom:24px}
@media(max-width:980px){.sidebar .product{height:88px;min-height:88px}.employment-row{grid-template-columns:1fr 1fr}.employment-row .checkbox-label{grid-column:1/-1}.sidebar .select-trigger{padding-left:12px;padding-right:32px;background-position:right 12px center}.profile-avatar-row{gap:12px}}
@media(max-width:680px){.sidebar{padding-top:0}.sidebar .product{height:72px;min-height:72px;margin-bottom:8px}.sidebar .sidebar-bottom img{display:block!important;width:112px;margin-right:auto}.sidebar .sidebar-bottom{align-items:center}.topbar{min-height:80px;height:auto;flex-wrap:wrap;gap:8px}.header-status{flex:0 0 100%;padding:0}.header-status:empty{display:none}.topbar-controls{width:100%;justify-content:flex-end;gap:8px}.topbar-controls .user-chip{order:initial;width:auto;flex:1;justify-content:flex-end}.topbar .user-chip>span:last-child{font-size:12px;max-width:180px}.topbar .avatar{width:40px;height:40px}.profile-grid{grid-template-columns:1fr}.employment-row{grid-template-columns:1fr}.employment-row .checkbox-label{grid-column:auto}.upload-zone{flex-wrap:wrap;gap:8px}.upload-label{font-size:12px}.form-actions .button.primary,.form-actions .button.secondary,.page-heading>.button.primary{width:100%}.list-head{margin:0}.profile-avatar-row{align-items:flex-start}.profile-avatar{width:64px;height:64px;flex-basis:64px}.profile-avatar-row input[type=file]{font-size:11px}.filters .select-trigger{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.sidebar-bottom img{width:160px}
.profile-avatar-row input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.avatar-file-name{display:block;font-size:12px;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}.wizard-type .form-field>label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:680px){.sidebar nav{scrollbar-width:none}.sidebar nav::-webkit-scrollbar{display:none}}
@media(max-width:680px){.sidebar .dev-toolbar .mega-select{flex:1;min-width:0;width:0}.sidebar .sidebar-bottom .brand-light{display:block!important}.sidebar .sidebar-bottom .brand-dark{display:none!important}[data-theme=dark] .sidebar .sidebar-bottom .brand-dark{display:block!important}[data-theme=dark] .sidebar .sidebar-bottom .brand-light{display:none!important}}

.mega-tooltip{pointer-events:auto}
input[type=checkbox]{appearance:none;-webkit-appearance:none;display:inline-grid;place-content:center;background:var(--field-bg);border:1.5px solid var(--muted);border-radius:5px;padding:0}input[type=checkbox]:checked{background:var(--action-primary);border-color:var(--action-primary)}input[type=checkbox]:checked:before{content:'';width:10px;height:6px;border:solid #fff;border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg)}input[type=checkbox]:disabled{opacity:.45;cursor:default}
