/* Shared workspace UI. Financial rules and server permissions stay in the domain layer. */
:root { --ws-ink:#243b3b; --ws-muted:#647574; --ws-green:#20685c; --ws-line:#dee7e3; --ws-soft:#f3f6f4; --bs-primary:#20685c; --bs-primary-rgb:32,104,92; --bs-link-color:#20685c; --bs-link-hover-color:#154d43; --bs-border-color:#dee7e3; --bs-body-color:#243b3b; --bs-body-font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
body { font-size:14px; line-height:1.55; background:#f5f7f6!important; color:var(--ws-ink); }
a { text-underline-offset:3px; }
h1,.h3 { font-size:clamp(1.55rem,2.2vw,2rem); letter-spacing:-.035em; font-weight:650; }
h2.h5,.section-heading h2 { font-size:1.08rem; font-weight:650; letter-spacing:-.015em; }
:focus-visible { outline:3px solid #409f90!important; outline-offset:3px; }
[hidden] { display:none!important; }
.btn { --bs-btn-border-radius:.55rem; --bs-btn-font-size:.85rem; --bs-btn-font-weight:550; --bs-btn-padding-y:.58rem; --bs-btn-padding-x:.9rem; transition:background-color .12s,border-color .12s; }
.btn-sm { --bs-btn-font-size:.76rem; --bs-btn-padding-y:.36rem; --bs-btn-padding-x:.65rem; }
.btn-primary { --bs-btn-bg:#20685c; --bs-btn-border-color:#20685c; --bs-btn-hover-bg:#195448; --bs-btn-hover-border-color:#195448; --bs-btn-active-bg:#164c42; --bs-btn-active-border-color:#164c42; --bs-btn-disabled-bg:#527d73; --bs-btn-disabled-border-color:#527d73; }
.btn-outline-primary,.btn-outline-success { --bs-btn-color:#20685c; --bs-btn-border-color:#bdd3cb; --bs-btn-hover-bg:#edf5f1; --bs-btn-hover-color:#164c42; --bs-btn-hover-border-color:#9bbeb0; --bs-btn-active-bg:#20685c; --bs-btn-active-border-color:#20685c; }
.btn-outline-secondary { --bs-btn-color:#566867; --bs-btn-border-color:#d6dfdb; --bs-btn-hover-bg:#edf2ef; --bs-btn-hover-border-color:#bdcdc5; --bs-btn-hover-color:#243b3b; --bs-btn-active-bg:#e1eae5; --bs-btn-active-color:#243b3b; }
.btn-outline-danger { --bs-btn-color:#a75149; --bs-btn-border-color:#e8d5d1; --bs-btn-hover-bg:#fbefec; --bs-btn-hover-color:#8b352f; --bs-btn-hover-border-color:#d8aba3; }
.form-control,.form-select,form p > input:not([type=checkbox]):not([type=radio]):not([type=hidden]),form p > select,form p > textarea { color:var(--ws-ink); border:1px solid #cfdbd4; border-radius:.5rem; font-size:.88rem; padding:.6rem .8rem; background-color:#fff; min-height:2.65rem; max-width:100%; }
form p > input:not([type=checkbox]):not([type=radio]):not([type=hidden]),form p > select,form p > textarea { display:block; width:100%; margin-top:.4rem; }
form p label,.form-label { font-weight:550; font-size:.8rem; color:#48605b; }
.form-control:focus,.form-select:focus { border-color:#6b9c8b; box-shadow:0 0 0 .2rem #20685c15; }
form .helptext { display:block; color:var(--ws-muted); font-size:.78rem; margin-top:.4rem; }
.errorlist { color:#a53f36; font-size:.85rem; }
.card { border:1px solid var(--ws-line)!important; border-radius:.8rem; box-shadow:0 2px 5px #1b3f2c03!important; }
.card-body { padding:1.35rem; }
.alert { border-radius:.65rem; font-size:.86rem; line-height:1.65; }
.alert-info { color:#3d6458; background:#edf5f0; border-color:#d6e6dd; }
.alert-warning { color:#795a24; background:#fff8e9; border-color:#eddfbc; }
.alert-danger { color:#943d35; background:#fcf0ed; border-color:#efd4ce; }
.alert ul { max-height:18rem; overflow:auto; margin-top:.65rem; }
.workspace-navigation { padding:1rem 0; }
.brand-mark { background:#226759; border-radius:.65rem; width:2.15rem; height:2.15rem; font-weight:650; }
.navbar-brand { font-size:1rem; letter-spacing:-.035em; color:#244d41; }
.nav-section-label { color:#88958f; font-size:.65rem; text-transform:uppercase; letter-spacing:.1em; padding:.7rem .8rem; }
.workspace-navigation .nav-link { color:#60726b; border-radius:.55rem; padding:.7rem .8rem; display:flex; align-items:center; gap:.7rem; font-size:.84rem; }
.workspace-navigation .nav-link:hover { background:#f0f4f0; color:#245b47; }
.workspace-navigation .nav-link.active { background:#e6efe6; color:#245b47; font-weight:650; }
.nav-icon { width:1.2rem; height:1.2rem; display:inline-grid; place-items:center; font-size:1.1rem; line-height:1; opacity:.85; }
.workspace-topbar { height:3.8rem; border-bottom:1px solid var(--ws-line); background:#ffffffc7; display:flex; align-items:center; justify-content:space-between; padding:0 2rem; font-size:.77rem; color:#637970; }
.workspace-dot { display:inline-block; width:6px; height:6px; background:#43876b; border-radius:50%; margin-right:.6rem; }
.workspace-topbar-note { color:#98a69f; }
main.container-fluid { padding:2rem!important; min-width:0; }
.workspace-shell > footer { color:#8a9c92; background:transparent!important; font-size:.7rem; }
.workspace-tabs { display:flex; gap:1.6rem; border-bottom:1px solid var(--ws-line); overflow:auto; white-space:nowrap; }
.workspace-tabs a { color:#6c7e75; text-decoration:none; padding:0 0 .85rem; border-bottom:2px solid transparent; font-size:.83rem; font-weight:550; }
.workspace-tabs a[aria-current=page] { color:#20685c; border-color:#20685c; }
.workspace-tabs a:hover { color:#20685c; }
.page-heading { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1.65rem; }
.page-heading h1 { margin:0 0 .45rem; }
.eyebrow { font-size:.68rem; font-weight:650; letter-spacing:.1em; text-transform:uppercase; color:#6b8778; margin:0 0 .5rem; }
.page-subtitle { color:var(--ws-muted); margin:0; font-size:.89rem; }
.page-actions { display:flex; flex-wrap:wrap; gap:.5rem; }
.payroll-start { background:#fff; border:1px solid var(--ws-line); border-radius:.85rem; padding:1.5rem; display:grid; grid-template-columns:1.4fr 1fr; gap:2rem; }
.payroll-start-copy h2 { font-size:1.3rem; margin:.4rem 0 .65rem; letter-spacing:-.025em; }
.payroll-start-copy p { color:var(--ws-muted); max-width:34rem; font-size:.85rem; }
.payroll-create { border-left:1px solid var(--ws-line); padding-left:1.5rem; }
.payroll-create p { margin-bottom:.8rem; }
.payroll-create .btn { width:100%; }
.process-steps { display:flex; flex-wrap:wrap; gap:.45rem; margin-top:1.2rem; }
.process-steps span { font-size:.68rem; padding:.3rem .5rem; border-radius:.3rem; background:#f1f5f1; color:#5a7767; }
.workspace-note { font-size:.75rem; color:var(--ws-muted); margin:1rem 0 1.8rem; }
.status-pill { display:inline-flex; align-items:center; gap:.35rem; border-radius:.35rem; background:#edf1f3; padding:.25rem .55rem; color:#64737e; font-size:.72rem; font-weight:550; white-space:nowrap; }
.status-success { background:#edf5ee; color:#327054; }
.status-warning { background:#fff4db; color:#94691d; }
.section-heading { display:flex; justify-content:space-between; align-items:center; gap:.8rem; margin:1.6rem 0 .75rem; }
.section-heading h2 { margin:0; }
.workspace-disclosure { padding:1rem 1.2rem; background:#fff; border:1px solid var(--ws-line); border-radius:.65rem; color:#60776c; font-size:.84rem; }
summary { cursor:pointer; }
.section-shortcuts { display:flex; gap:.5rem; flex-wrap:wrap; }
.section-shortcuts a { font-size:.78rem; color:#5b7567; padding:.4rem .75rem; background:#eaf0eb; border-radius:.4rem; text-decoration:none; }
.table-tools { display:flex; gap:.8rem; align-items:center; padding:.8rem 1rem; border:1px solid var(--ws-line); border-bottom:0; border-radius:.7rem .7rem 0 0; background:#fff; }
.table-search { flex:0 1 26rem; }
.table-search input { min-height:2.3rem; font-size:.8rem; background:#f7f9f7; }
.table-result-count { margin-left:auto; color:#758779; font-size:.73rem; white-space:nowrap; }
.table-responsive { border:1px solid var(--ws-line); border-radius:.7rem; background:#fff; max-height:75vh; }
.table-tools + .table-responsive { border-radius:0 0 .7rem .7rem; }
.table { --bs-table-border-color:#e8eeea; --bs-table-color:#31473c; margin:0; font-size:.82rem; border-collapse:separate; border-spacing:0; }
.table > :not(caption) > * > * { padding:.85rem 1rem; border-width:0 0 1px; vertical-align:middle; box-shadow:none; }
.table > thead { font-size:.71rem; color:#6d8073; }
.table > thead th { font-weight:600; background:#f5f8f5; position:sticky; top:0; z-index:2; white-space:nowrap; border-bottom:1px solid var(--ws-line); }
.table > tbody > tr:hover > * { background:#f8faf7; }
.table tbody tr:last-child > * { border-bottom:0; }
.table a:not(.btn) { text-decoration:none; font-weight:550; }
.table a:not(.btn):hover { text-decoration:underline; }
.table td { font-variant-numeric:tabular-nums; }
.table td .small { font-size:.72rem; margin-top:.3rem; color:#7a8c7e!important; }
.table td[colspan] { padding:1.2rem; color:#6e8275; }
.table.table-compact > :not(caption) > * > * { padding:.45rem .75rem; }
.table .calculation-detail-row > td { padding:.2rem 1rem .6rem; font-size:.74rem; }
.calculation-detail-row details[open] { padding:.8rem; background:#f5f8f4; border-radius:.4rem; }
#payroll-rows { min-width:70rem; }
#payroll-rows td:not(:first-child),#payroll-rows th:not(:first-child),#statistics-rows td:nth-child(n+4):nth-child(-n+7),#statistics-rows th:nth-child(n+4):nth-child(-n+7) { text-align:right; white-space:nowrap; }
#payroll-rows td:first-child { min-width:17rem; }
#payroll-rows th:first-child,#payroll-rows tr[data-search-row] > td:first-child { position:sticky; left:0; background:#fff; z-index:1; box-shadow:1px 0 #e5ece6; }
#payroll-rows th:first-child { background:#f5f8f5; z-index:3; }
#statistics-rows td:nth-child(2) { font-weight:650; color:#27684a; }
.table-no-results { padding:2rem!important; text-align:center; }
.breadcrumb { font-size:.75rem; }
#employee-registry .accordion-button { font-size:.8rem; padding:.85rem 1rem; background:#f8faf7; }
#employee-registry .registry-tab { border-radius:2rem; font-size:.76rem; }
#registry-table.tabulator { border:0; font-size:.82rem; }
#registry-table .tabulator-header,#registry-table .tabulator-header .tabulator-col { background:#f3f7f3; color:#607b69; border-color:#e3eae4; }
#registry-table .tabulator-cell { padding:.7rem .85rem; border-right:1px solid #f1f4f1; }
#registry-table .tabulator-row { border-bottom:1px solid #e8eee8; background:#fff; }
#registry-table .tabulator-row.tabulator-row-even { background:#fbfcfa; }
#registry-table .tabulator-footer { background:#f8faf6; border-top:1px solid var(--ws-line); }
.report-search-bar { display:flex; gap:1rem; align-items:center; margin:0 0 1rem; }
.report-search-bar label { flex:1 1 20rem; max-width:30rem; }
.report-search-bar button { margin-left:auto; }
.report-kpi,.report-toolbar,.report-surface,.report-group-list { border-color:var(--ws-line); box-shadow:0 2px 5px #1b3f2c03; }
.report-kpi-primary { background:#2d5344; border-color:#2d5344; }
.report-group-list { max-height:78vh; overflow:auto; }
.report-group[open] > .report-group-summary { background:#edf4eb; }
.report-group-body { padding-left:1.2rem; }
.report-table th[scope=row] { min-width:16rem; }
.report-search-empty { padding:2rem; text-align:center; color:var(--ws-muted); }
@media(min-width:1200px) {
 .workspace-shell { padding-left:232px; }
 .workspace-shell .workspace-navigation { position:fixed; inset:0 auto 0 0; width:232px; z-index:1030; background:#fbfcf9!important; border-right:1px solid var(--ws-line); border-bottom:0!important; }
 .workspace-shell .workspace-navigation > .container-fluid { height:100%; flex-direction:column; align-items:stretch; padding:1rem!important; }
 .workspace-navigation .navbar-brand { margin:.2rem 0 2rem .25rem; }
 .workspace-navigation .navbar-collapse { flex-direction:column; align-items:stretch; min-height:0; }
 .workspace-navigation nav.navbar-nav { flex-direction:column; margin-right:0!important; gap:.25rem!important; }
 .workspace-account { margin-top:auto; padding-top:1rem; border-top:1px solid var(--ws-line); flex-direction:column!important; align-items:stretch!important; gap:.7rem!important; }
 .workspace-account > .text-secondary { padding:0 .8rem; font-size:.75rem; }
 .workspace-account > .btn { margin:0 .5rem; }
 .workspace-account .dropdown-menu { bottom:100%; top:auto; left:0; right:auto; font-size:.82rem; }
}
@media(max-width:1199.98px) {
 .workspace-topbar { display:none; }
 .workspace-navigation .navbar-collapse { margin-top:.8rem; }
 .workspace-account { border-top:1px solid var(--ws-line); padding-top:.6rem; margin-top:.6rem; }
 .workspace-account > span,.workspace-account > a { margin:.5rem .8rem; }
 .workspace-navigation .navbar-nav { gap:.2rem; }
}
@media(max-width:767.98px) {
 main.container-fluid { padding:1rem!important; }
 .page-heading { flex-direction:column; align-items:start; }
 .payroll-start { grid-template-columns:1fr; gap:1rem; padding:1.1rem; }
 .payroll-create { border-left:0; border-top:1px solid var(--ws-line); padding:1rem 0 0; }
 .workspace-tabs { gap:1.2rem; }
 .table-tools { flex-wrap:wrap; gap:.5rem; }
 .table-search { flex-basis:100%; }
 .table-result-count { margin-left:0; margin-right:auto; }
 .report-search-bar { flex-wrap:wrap; gap:.6rem; }
 .report-search-bar label { max-width:none; flex-basis:100%; }
 .report-group-body { padding-left:.7rem; padding-right:.7rem; }
 .section-heading { align-items:start; flex-direction:column; }
}
@media(prefers-reduced-motion:reduce) { .btn { transition:none; } }
@media print {
 .workspace-shell { padding-left:0; }
 .workspace-navigation,.workspace-topbar,.workspace-tabs,.table-tools,.report-search-bar,body > footer,.page-actions { display:none!important; }
 main.container-fluid { padding:0!important; }
 .table-responsive,.report-group-list { overflow:visible; max-height:none; }
 .table thead th { position:static!important; }
 #payroll-rows { min-width:0; font-size:.6rem; }
 #payroll-rows td:first-child { min-width:0; position:static!important; }
 .table > :not(caption) > * > * { padding:.35rem; }
}
.profile-tab { border:0; border-bottom:2px solid transparent; padding:0 0 .85rem; background:transparent; font-size:.83rem; font-weight:550; color:#6c7e75; white-space:nowrap; }
.profile-tab.is-active { color:#20685c; border-color:#20685c; }
.profile-tabs { margin-top:.5rem; }
.employee-lifecycle { min-width:14rem; }
.employee-lifecycle > a { display:block; margin:.3rem 0; text-align:left; }
.employee-details dt,.employee-details dd { padding-top:.5rem; padding-bottom:.5rem; border-bottom:1px solid #f0f4ee; margin:0; font-size:.86rem; }
.employee-details dd { font-weight:500; }
.registry-saved-settings { padding:.75rem 1rem; border:1px solid var(--ws-line); border-radius:.5rem; font-size:.8rem; }
.recruitment-funnel { display:grid; grid-template-columns:repeat(auto-fit,minmax(9rem,1fr)); gap:.6rem; }
.recruitment-funnel .card { border-top:3px solid #d5e4d8!important; transition:background .12s; }
.recruitment-funnel .card:hover { background:#eef5ec; }
.recruitment-funnel .card.border-primary { border-color:#2f7053!important; background:#edf5ec; }
.org-chart-shell { background-color:#f4f7f2; background-image:radial-gradient(circle,#b4c4b650 1px,transparent 1px); }
.org-chart-node-card { stroke:#cddccc; filter:drop-shadow(0 3px 5px #243f2410); }
.org-chart-link { stroke:#a8bbab; }
.org-chart-node-name { fill:#2a4433; }
.home-intro { padding:1rem 0 1.5rem; border-bottom:1px solid var(--ws-line); }
.home-intro h1 { font-size:2.3rem; }
.home-intro .lead { font-size:1rem; }
.module-card .module-number { display:inline-grid; place-items:center; background:#eff5eb; width:2.6rem; height:2.6rem; border-radius:.6rem; color:#58764b; letter-spacing:0; }
.module-card .card-body { display:flex; flex-direction:column; align-items:start; }
.module-card .card-body .btn { margin-top:auto!important; }
.module-card .card-body p { font-size:.88rem; margin-bottom:1.5rem; }
.home-reports { display:flex; gap:2rem; justify-content:space-between; align-items:center; background:#eaf1e5; border:1px solid #dce6d5; border-radius:.8rem; padding:1.7rem; }
.directory-card .card-body { padding:1.4rem; }
.directory-card .card-body h2::after { content:'↗'; float:right; color:#6d8b68; }
.badge { font-weight:550; padding:.4em .65em; border-radius:.35rem; }
.badge.text-bg-success,.employee-state-active { color:#2b694b!important; background:#e7f2e7!important; }
.badge.text-bg-primary { color:#256348!important; background:#e8f2ea!important; }
.badge.text-bg-secondary { color:#64746b!important; background:#edf1ed!important; }
@media(max-width:767.98px) { .home-reports { flex-direction:column; align-items:start; padding:1.2rem; } .home-intro h1 { font-size:1.9rem; } }
:root { --bs-link-color-rgb:32,104,92; --bs-link-hover-color-rgb:21,77,67; }
.report-kpis { grid-template-columns:repeat(auto-fit,minmax(10rem,1fr)); }
.report-kpi { padding:1rem; }
.report-kpi-value { font-size:clamp(1.15rem,1.7vw,1.5rem); }
.payroll-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(9rem,1fr)); gap:.8rem; margin-bottom:1.4rem; }
.payroll-summary-item { border:1px solid var(--ws-line); border-radius:.7rem; background:#fff; padding:1rem; }
.payroll-summary-item > span { display:block; color:var(--ws-muted); font-size:.75rem; margin-bottom:.5rem; }
.payroll-summary-item > strong { font-size:1.35rem; font-weight:650; font-variant-numeric:tabular-nums; }
@media(max-width:767.98px) { .report-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.upload-workflow { max-width:52rem; }
.workspace-field { margin-top:1rem; }
.workspace-field > label { display:block; font-weight:550; font-size:.8rem; margin-bottom:.45rem; color:#48605b; }
.workspace-field .helptext { margin-top:.4rem; color:var(--ws-muted); font-size:.76rem; }
.workspace-check { display:flex; gap:.65rem; align-items:flex-start; background:#f6f9f3; border:1px solid #e1eadc; border-radius:.5rem; padding:1rem; }
.workspace-check input { flex:0 0 auto; margin-top:.2rem; }
.workspace-check label { font-weight:550; font-size:.85rem; }
.workspace-field.has-errors .form-control,.workspace-field.has-errors .form-select { border-color:#ba5a4b; }
.step-number { display:inline-grid; place-items:center; width:1.7rem; height:1.7rem; margin-right:.5rem; background:#edf4e7; color:#527c43; font-size:.85rem; border-radius:.4rem; }
.form-actions { display:flex; gap:.65rem; align-items:center; }
.registry-advanced > summary { color:#5c7565; font-size:.8rem; padding:.4rem 0; }
.recruitment-funnel { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media(min-width:1600px) { .recruitment-funnel { grid-template-columns:repeat(8,minmax(0,1fr)); } }
@media(max-width:600px) { .recruitment-funnel { grid-template-columns:repeat(2,minmax(0,1fr)); } }
