@media screen {
:root{--rh-workspace-gap:14px;--rh-workspace-paper:var(--kit-paper,#fff);--rh-workspace-ink:var(--kit-ink,#173c3d);--rh-workspace-line:var(--kit-line,#c9dddd)}
/* Dense list workspaces; original profile and edit actions are retained. */
.users-shell .user-toolbar{padding:16px 18px!important;margin:0 0 12px!important;align-items:center!important}
.users-shell .table-panel{border-radius:12px;overflow:hidden}
.users-shell #tableWrap:not(.is-full-table)>table:not(.hierarchy-table) tbody td{padding:8px 10px!important;line-height:1.35;font-size:12px!important}
.users-shell .user-person-link{padding:4px 0!important;font-size:12px!important}
.users-shell #tableWrap:not(.is-full-table)>table:not(.hierarchy-table) tbody tr{min-height:48px}
.users-shell #tableWrap{max-height:calc(100dvh - 155px)!important}
.users-shell .action-col .icon-action{width:34px;min-width:34px;min-height:34px;padding:6px}
.contract-records{gap:6px!important}
.contract-record{border-radius:10px!important;box-shadow:none!important}
.contract-record summary{padding:10px 14px!important;min-height:66px!important}
.contract-summary-entry{gap:8px!important;margin-bottom:6px!important}
.contract-record summary strong{font-size:13px!important}
.contract-record summary small{font-size:11px!important}
/* Conditions beside collaborator selection instead of a long form above it. */
@media(min-width:1100px){
 .contract-generate-layout .generate-form{grid-template-columns:280px minmax(0,1fr)!important;gap:13px 20px!important}
 .contract-generate-layout .generate-form>.contract-source-field{grid-column:1!important;grid-row:1!important}
 .contract-generate-layout .generate-form>label:nth-of-type(2){grid-column:1!important;grid-row:2!important}
 .contract-generate-layout .generate-form>.salary-period-field{grid-column:1!important;grid-row:3!important}
 .contract-generate-layout .generate-form>label:nth-of-type(4){grid-column:1!important;grid-row:4!important}
 .contract-generate-layout .generate-form>label:nth-of-type(5){grid-column:1!important;grid-row:5!important}
 .contract-generate-layout .generate-form>.collaborator-picker{grid-column:2!important;grid-row:1/span 6!important;align-self:stretch;margin:0!important;padding:16px!important;background:var(--kit-soft,#f6faf9);border-radius:12px}
 .contract-generate-layout .collaborator-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:360px!important;background:var(--rh-workspace-paper)}
 .contract-generate-layout .form-actions{margin-top:14px!important;padding-top:12px;border-top:1px solid var(--rh-workspace-line)}
 .contract-generate-layout .form-actions>button.primary{width:auto!important;min-width:190px;margin-left:auto}
 .vacation-request-panel{grid-template-columns:minmax(0,1fr) 260px!important;gap:14px 20px!important}
 .vacation-request-panel .request-user-summary{position:sticky;top:14px;border-radius:12px;padding:18px!important}
 #users .user-summary{grid-template-columns:112px minmax(220px,1.2fr) minmax(145px,.7fr) 100px!important;min-height:66px!important;padding:10px 46px 10px 13px!important;gap:12px}
 #users .user-summary>span:nth-child(2)>.mini{display:inline!important;margin-right:8px;font-size:11px}
 #users .user-summary .worker-status{margin-top:3px;padding:2px 6px}
 #users .user-summary strong{font-size:12px!important;line-height:1.35}
 #users .user-summary .worker-obra-label{font-size:9px}
 #users .roster-workbench{display:grid!important;grid-template-columns:minmax(220px,1.3fr) repeat(3,minmax(130px,1fr)) auto!important;align-items:end;gap:12px!important}
 #users .roster-workbench>.roster-title{grid-column:5!important;grid-row:1!important;margin:0!important;align-self:end}
 #users .roster-tools{display:contents!important}
 #users .roster-tools>.field{grid-column:1!important;grid-row:1!important}
 #users .roster-filter-fields>.field:nth-child(1){grid-column:2!important;grid-row:1!important}
 #users .roster-filter-fields>.field:nth-child(2){grid-column:3!important;grid-row:1!important}
 #users .roster-filter-fields>.field:nth-child(3){grid-column:4!important;grid-row:1!important}
 #users #rosterActions{grid-column:1/-1!important;grid-row:2!important}
 .audit-shell>.workspace{grid-template-columns:minmax(0,1fr) 300px!important;gap:14px!important}
 .audit-shell .visit-panel{padding:18px!important}
 .audit-shell .history-panel{padding:16px!important;border-radius:12px}
 .audit-shell .history-list{max-height:180px!important}
 .audit-shell .visit-notes{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .audit-shell .visit-notes>label:first-child{grid-column:auto!important}
 .audit-shell .visit-notes textarea{min-height:100px!important}
 #root .dashboard-grid{grid-template-columns:minmax(270px,300px) minmax(0,1fr)!important;gap:14px!important}
 #root .dashboard-grid>form.panel{border-radius:12px;padding:18px!important}
 #root .dashboard-grid>.panel.wide{padding:18px!important}
 #root .dashboard-grid>.panel.wide table td{padding:10px 8px!important;font-size:12px}
}
@media(min-width:900px) and (max-width:1099px){
 .contract-generate-layout .generate-form{grid-template-columns:240px minmax(0,1fr)!important;gap:12px 16px!important}
 .contract-generate-layout .generate-form>.contract-source-field{grid-column:1!important;grid-row:1!important}
 .contract-generate-layout .generate-form>label:nth-of-type(2){grid-column:1!important;grid-row:2!important}
 .contract-generate-layout .generate-form>.salary-period-field{grid-column:1!important;grid-row:3!important}
 .contract-generate-layout .generate-form>label:nth-of-type(4){grid-column:1!important;grid-row:4!important}
 .contract-generate-layout .generate-form>label:nth-of-type(5){grid-column:1!important;grid-row:5!important}
 .contract-generate-layout .generate-form>.collaborator-picker{grid-column:2!important;grid-row:1/span 6!important;margin:0;min-width:0}
 .contract-generate-layout .collaborator-list{grid-template-columns:minmax(0,1fr)!important;max-height:370px!important}
}

/* Catalog navigator + one working surface. Values, forms and handlers stay in place. */
.rh-catalog-workspace{display:grid;grid-template-columns:210px minmax(0,1fr);gap:14px;align-items:start}
.rh-catalog-workspace>.catalog-grid{grid-template-columns:minmax(0,1fr)!important}
.rh-catalog-workspace[data-has-catalogs=false]{grid-template-columns:minmax(0,1fr)}
.rh-catalog-nav[hidden]{display:none!important}
.rh-catalog-workspace .catalog-card[data-workspace-active=false]{display:none!important}
.rh-catalog-workspace .catalog-card[data-workspace-active=true]:not([hidden]){display:flex!important;min-width:0}
.rh-catalog-workspace .catalog-card[data-workspace-active=true]{flex-direction:column;gap:14px!important;padding:18px!important}
.rh-catalog-workspace .catalog-title{flex:0 0 auto;min-height:40px!important}
.rh-catalog-workspace .catalog-title h2{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
.rh-catalog-workspace .catalog-title:not(:has(.mode-toggle)){display:none!important}
.rh-catalog-workspace .catalog-title:has(.mode-toggle){justify-content:flex-end}
.rh-catalog-workspace .catalog-search-status:empty{display:none!important}
.rh-catalog-workspace .catalog-card .catalog-items{max-height:calc(100dvh - 235px)!important;min-height:180px}
.rh-catalog-nav{position:sticky;top:14px;display:grid;gap:4px;padding:8px;background:var(--rh-workspace-paper);border:1px solid var(--rh-workspace-line);border-radius:12px}
.rh-catalog-nav>button{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;border:0;border-radius:7px;background:transparent;color:var(--rh-workspace-ink);min-height:42px;padding:9px 11px;font:700 13px Nunito,system-ui;cursor:pointer}
.rh-catalog-nav>button>span{font-size:11px;padding:2px 6px;background:var(--kit-soft,#f0f7f5);border-radius:20px;font-variant-numeric:tabular-nums}
.rh-catalog-nav>button[aria-pressed=true]{background:var(--rh-control-selected,#d1fae5);color:var(--rh-control-on-selected,#005446);box-shadow:inset 3px 0 #008572}
.rh-catalog-nav>button:hover{background:var(--rh-control-hover,#eaf8f2)}
@media(min-width:1300px){
 #superadminView{display:grid;grid-template-columns:165px minmax(0,1fr);gap:16px;align-items:start}
 #superadminView>.tabs{grid-column:1;grid-row:1;position:sticky;top:12px;display:flex!important;flex-direction:column;align-items:stretch;padding:6px!important;gap:4px}
 #superadminView>.tabs>button{text-align:left;min-height:42px}
 #superadminView>.tab-panel{grid-column:2;grid-row:1;min-width:0}
 #superadminView>.tab-panel:not(.is-active){display:none!important}
 #superadminView>.tab-panel.is-active{display:block}
 #superadminView .panel{padding:16px!important}
 #superadminView #usersTable{width:100%!important;min-width:0!important;table-layout:fixed}
 #superadminView #usersTable :is(th,td){white-space:normal;overflow-wrap:anywhere;padding:8px!important;font-size:11px}
 #superadminView #usersTable :is(th,td):nth-child(1){width:12%}
 #superadminView #usersTable :is(th,td):nth-child(2){width:17%}
 #superadminView #usersTable :is(th,td):nth-child(3){width:8%}
 #superadminView #usersTable :is(th,td):nth-child(4){width:25%}
 #superadminView #usersTable :is(th,td):nth-child(5){width:8%}
 #superadminView #usersTable :is(th,td):nth-child(6){width:10%}
 #superadminView #usersTable :is(th,td):nth-child(7){width:20%}
 #superadminView #usersTable .col-name{width:12%!important}
 #superadminView #usersTable .col-email{width:17%!important}
 #superadminView #usersTable .col-role{width:8%!important}
 #superadminView #usersTable .col-screens{width:25%!important}
 #superadminView #usersTable .col-status{width:8%!important}
 #superadminView #usersTable .col-access{width:10%!important}
 #superadminView #usersTable .col-actions{width:20%!important}
}
html[data-theme=dark] .audit-shell :is(.history-title,.control-label,.obra-picker legend){color:var(--kit-ink)!important}
html[data-theme=dark] .audit-shell .history-status{color:#b6eadb!important}
html[data-theme=dark] #root .panel.wide td button.danger{color:#ffb3bf!important;border-color:#87515e!important;background-color:#3b2631}
html[data-theme=dark] #root .segmented button.is-active{background:var(--kit-primary,#007f70)!important;color:#fff!important}
.touch-date-panel{border-radius:12px!important;border-color:var(--rh-workspace-line)!important;background:var(--rh-workspace-paper)!important;color:var(--rh-workspace-ink)!important}
/* Shared custom calendar, while the actual date inputs retain native validation. */
.rh-date-control{display:block;position:relative;min-width:0;max-width:100%;width:100%}
.rh-date-control>input[type=date]{width:100%!important;padding-right:43px!important;margin:0!important}
.rh-date-control>input[type=date]::-webkit-calendar-picker-indicator{display:none!important}
.rh-date-button{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:30px;min-width:30px;height:30px;min-height:30px;padding:5px;border:0;border-radius:6px;background:transparent;color:var(--rh-control-accent,#006b61);cursor:pointer}
.rh-date-button>svg{width:20px;height:20px;pointer-events:none}
.rh-date-button:hover{background:var(--rh-control-hover,#eaf8f2)}
.rh-date-popup{position:fixed;margin:0;padding:14px;border:1px solid var(--rh-workspace-line)!important;border-radius:12px!important;background:var(--rh-workspace-paper)!important;color:var(--rh-workspace-ink)!important;box-shadow:0 14px 40px #102f3540;overflow:auto;font:14px Nunito,system-ui;box-sizing:border-box;z-index:2147483600}
.rh-date-popup::backdrop{background:transparent}
.rh-date-popup>header{display:grid;grid-template-columns:28px minmax(0,1fr) 94px 28px;gap:5px;align-items:center;border-bottom:1px solid var(--rh-workspace-line);padding-bottom:10px;margin-bottom:9px}
.rh-date-popup>header button{height:32px;min-height:32px;width:28px;min-width:28px;padding:0;border:0;border-radius:6px;background:var(--kit-soft);color:var(--rh-workspace-ink);font:700 20px Nunito,system-ui;cursor:pointer}
.rh-date-popup>header select{height:32px!important;min-height:32px!important;padding:4px 20px 4px 6px!important;font-size:12px!important;border-radius:6px!important;background-size:12px!important;background-position:right 4px center!important}
#rhDatePopup button{margin:0!important}
#rhDatePopup>header select{height:32px!important;min-height:32px!important;max-width:100%;width:100%;padding:4px 20px 4px 6px!important;padding-inline:6px 20px!important;font-size:12px!important;line-height:1.3!important}
#rhDatePopup>header select::picker-icon{font-size:12px!important;margin:0!important}
#rhDatePopup>header button{height:32px!important;min-height:32px!important;padding:0!important}
#rhDatePopup .rh-date-grid>button{min-height:34px!important;height:34px!important;padding:0!important;font-size:12px!important;line-height:1.3!important}
.rh-date-weekdays,.rh-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.rh-date-weekdays{font-size:10px;font-weight:800;text-align:center;color:var(--kit-muted);margin-bottom:5px}
.rh-date-grid>button{position:relative;min-width:0;min-height:34px;height:34px;padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--rh-workspace-ink);font:700 12px Nunito,system-ui;cursor:pointer}
.rh-date-grid>button:hover:not(:disabled){background:var(--rh-control-hover)}
.rh-date-grid>button[aria-current=date]{border-color:var(--rh-control-accent)}
.rh-date-grid>button[aria-pressed=true]{background:#006b61!important;color:#fff!important}
.rh-date-grid>button:disabled{opacity:.3;cursor:not-allowed}
.rh-date-manual-label{display:flex;flex-direction:column;gap:5px;padding-top:11px;margin-top:9px;border-top:1px solid var(--rh-workspace-line);font-size:11px;font-weight:800}
.rh-date-popup input[data-calendar-manual]{height:36px!important;min-height:36px!important;font-size:14px!important;width:100%}
.rh-date-popup .rh-date-error{font-size:11px;color:#c33245;margin:7px 0}
html[data-theme=dark] .rh-date-popup .rh-date-error{color:#ffb3bd}
.rh-date-popup>footer{display:flex;gap:7px;align-items:center;justify-content:flex-end;margin-top:11px}
.rh-date-popup>footer>button{min-height:34px;height:34px;border:1px solid var(--rh-workspace-line);border-radius:7px;padding:6px 10px;font:800 12px Nunito,system-ui;background:var(--rh-workspace-paper);color:var(--rh-workspace-ink);cursor:pointer}
#rhDatePopup>footer{display:flex!important;flex-wrap:nowrap!important}
#rhDatePopup>footer>button{width:auto!important;min-width:0!important;flex:0 1 auto;padding:6px 10px!important}
.rh-roster-toggle,.rh-roster-filter-summary,.rh-capture-toggle,.rh-app-menu-toggle{display:none}
@media(max-width:760px){
 .users-shell #tableWrap{max-height:none!important}
 .users-shell .user-toolbar{padding:13px!important}
 .users-shell .user-person-link{min-height:44px}
 #users .user-summary{gap:6px!important;padding:11px 44px 11px 12px!important;min-height:0!important}
 #users .user-summary strong{font-size:13px!important;line-height:1.4}
 #users .user-summary .worker-obra-label{display:none}
 #users .user-summary .worker-status{margin-top:2px;padding:2px 6px}
 #users .user-summary .mini{font-size:11px!important}
 #users .roster-workbench{display:grid!important;grid-template-columns:minmax(0,1fr) 98px!important;gap:10px!important;align-items:end}
 #users .roster-workbench>.roster-title{grid-column:2!important;grid-row:1!important;margin:0!important;padding:0!important;align-self:end}
 #users .roster-workbench>.roster-title>button{width:100%;padding:9px!important;min-width:0}
 #users .roster-tools{display:contents!important}
 #users .roster-tools>.field{grid-column:1!important;grid-row:1!important;min-width:0}
 #users .roster-filter-fields>.field{grid-column:1/-1!important}
 #users .rh-roster-toggle{display:block;grid-column:1/-1;min-height:40px;border:1px solid var(--rh-workspace-line);border-radius:8px;background:var(--rh-workspace-paper);color:var(--rh-workspace-ink);font:800 13px Nunito,system-ui;text-align:left;padding:8px 12px}
 #users .rh-roster-filter-summary{display:flex;grid-column:1/-1;gap:5px;flex-wrap:wrap}
 #users .rh-roster-filter-summary>span{padding:3px 8px;background:var(--rh-control-selected);color:var(--rh-control-on-selected);border-radius:20px;font-size:10px;line-height:1.4;overflow-wrap:anywhere}
 #users #rosterFilters[data-rh-filters-open=false] .roster-filter-fields{display:none!important}
 #users .roster-action-buttons{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;max-width:100%;width:100%;gap:7px;padding-bottom:5px;scrollbar-width:thin}
 #users .roster-action-buttons>button{width:auto!important;min-width:max-content;flex:0 0 auto;min-height:42px!important;font-size:11px!important;padding:8px 10px!important;white-space:nowrap}
 .vacation-request-panel .request-user-summary{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 10px;padding:12px!important}
 .vacation-request-panel .request-user-summary>span{grid-column:1;font-size:10px!important}
 .vacation-request-panel .request-user-summary>div{grid-column:2;grid-row:1/span 2;display:flex;align-items:center;gap:6px}
 .vacation-request-panel .request-user-summary>div b{font-size:26px!important}
 .vacation-request-panel .request-user-summary>div small{max-width:80px;font-size:10px!important;line-height:1.3}
 .vacation-request-panel .request-user-summary>p{grid-column:1;font-size:11px!important;margin:0!important;line-height:1.4}
 .vacation-request-panel .request-user-summary>p[data-summary-periods]{grid-column:1/-1}
 .vacation-request-panel .request-user-summary[data-rh-has-employee=false]>p{display:none!important}
 #root .dashboard-grid>form.panel[data-rh-capture-open=false]>*:not(.section-head){display:none!important}
 #root .dashboard-grid>form.panel[data-rh-capture-open=false] .section-head p{display:none!important}
 #root .dashboard-grid>form.panel .section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:0!important}
 #root .dashboard-grid>form.panel{padding:14px!important}
 #root .dashboard-grid>form.panel .section-head{flex-direction:row!important;text-align:left!important}
 #root .dashboard-grid>form.panel .section-head>div{text-align:left!important;min-width:0}
 #root .dashboard-grid>form.panel .section-head h2{font-size:18px!important;margin:0!important}
 #root [aria-label="Resumen operativo"]>div{display:flex;align-items:center;gap:9px;padding:12px!important;min-height:64px!important}
 #root [aria-label="Resumen operativo"]>div>strong{font-size:26px!important}
 #root [aria-label="Resumen operativo"]>div>span{font-size:11px!important;line-height:1.3}
 #root .panel.wide table:has([data-rh-application-card]){display:block;min-width:0!important;width:100%!important}
 #root .panel.wide table:has([data-rh-application-card]) thead{display:none}
 #root .panel.wide table:has([data-rh-application-card]) tbody{display:block;width:100%}
 #root .panel.wide table tbody tr[data-rh-application-card]{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;position:relative;padding:13px!important;margin:0 0 10px;border:1px solid var(--rh-workspace-line);border-radius:10px;background:var(--rh-workspace-paper);min-width:0}
 #root .panel.wide table tbody tr[data-rh-application-card]>td{display:block!important;position:static!important;width:auto!important;min-width:0!important;max-width:100%;padding:0!important;border:0!important;height:auto!important;white-space:normal;overflow-wrap:anywhere;font-size:12px}
 #root .panel.wide table tbody tr[data-rh-application-card]>td:nth-child(1){grid-column:1/-1;grid-row:1;padding-right:35px!important}
 #root .panel.wide table tbody tr[data-rh-application-card]>td:nth-child(1)>button{display:inline-grid;min-height:32px;width:32px;padding:4px;margin-top:5px}
 #root .panel.wide table tbody tr[data-rh-application-card]>td:nth-child(2){grid-column:1/-1;grid-row:2;color:var(--kit-muted);font-size:11px}
 #root .panel.wide table tbody tr[data-rh-application-card]>td:nth-child(3){grid-column:1;grid-row:3;font-size:11px}
 #root .panel.wide table tbody tr[data-rh-application-card]>td:nth-child(4){grid-column:2;grid-row:3;align-self:center;justify-self:end}
 #root .panel.wide table tbody tr[data-rh-application-card]>td:nth-child(5){grid-column:1/-1;grid-row:4}
 #root .panel.wide table tbody tr[data-rh-application-card]>td:nth-child(5)[data-rh-menu-open=false]>*:not(.rh-app-menu-toggle){display:none!important}
 #root .panel.wide table tbody tr[data-rh-application-card]>td:nth-child(5)[data-rh-menu-open=true]>div{display:flex;flex-wrap:wrap;gap:6px;padding-top:10px;border-top:1px solid var(--rh-workspace-line)}
 #root .panel.wide table .rh-app-menu-toggle{display:block!important;position:absolute;top:9px;right:9px;width:32px;min-width:32px;min-height:32px;height:32px;border:1px solid var(--rh-workspace-line);border-radius:7px;background:var(--kit-soft);color:var(--rh-workspace-ink);font-size:22px;line-height:1;padding:0}
 #root .panel.wide table tbody tr[data-rh-application-card]>td:nth-child(5)[data-rh-menu-open=true] button:not(.rh-app-menu-toggle){flex:1 1 calc(50% - 6px);width:auto!important;min-height:40px!important;padding:7px;font-size:11px}
 #root .dashboard-grid>form.panel .rh-capture-toggle{display:block;min-width:40px;width:40px;min-height:40px;border:1px solid var(--rh-workspace-line);border-radius:8px;background:var(--rh-workspace-paper);color:var(--rh-workspace-ink);font-size:22px;flex:none}
 #root .dashboard-grid>form.panel[data-rh-capture-open=true] .section-head{margin-bottom:14px!important}
 .rh-catalog-workspace{grid-template-columns:minmax(0,1fr);gap:10px}
 .rh-catalog-nav{position:static;display:flex;overflow:auto;scrollbar-width:none;gap:5px;padding:5px}
 .rh-catalog-nav>button{white-space:nowrap;flex-shrink:0;min-height:40px;font-size:12px}
 .rh-catalog-workspace .catalog-card .catalog-items{max-height:420px!important;min-height:0}
 .rh-date-button{width:34px;height:34px;min-height:34px}
 .rh-date-popup>header select{font-size:13px!important}
 .rh-date-grid>button{height:36px;min-height:36px}
 .rh-date-popup>footer>button{height:38px;min-height:38px}
}
}

@media print{.rh-date-button,.rh-date-popup{display:none!important}.rh-date-control{display:contents}}

/* Historial de Reportes: ancho completo, sin scrolls anidados. */
@media screen {
 .audit-shell>.workspace{grid-template-columns:minmax(0,1fr)!important}
 .audit-shell .history-panel{position:static!important;max-height:none!important;height:auto!important;overflow:visible!important;padding:20px!important}
 .audit-shell .history-panel .history-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important;overflow:visible!important;max-height:none!important}
 .audit-shell .history-panel .history-section{min-width:0!important;margin:0!important;padding:0!important;border:0!important}
 .audit-shell .history-panel .history-section+.history-section{padding-left:20px!important;border-left:1px solid var(--kit-line,var(--line))!important}
 .audit-shell .history-panel .history-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;max-height:none!important;height:auto!important;overflow:visible!important;padding:0!important}
 .audit-shell .history-panel .history-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center;column-gap:12px;row-gap:4px;padding:12px 0!important;border:0!important;border-bottom:1px solid var(--kit-line,var(--line))!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-width:0}
 .audit-shell .history-panel .history-item>strong,.audit-shell .history-panel .history-item>small{grid-column:1;font-size:13px!important;line-height:1.4;overflow-wrap:anywhere;margin:0!important}
 .audit-shell .history-panel .history-actions{grid-column:2;grid-row:1/4;margin:0!important;display:flex;flex-direction:column;align-items:flex-end;gap:5px}
 .audit-shell .history-panel .history-status{font-size:9px!important}
 .audit-shell .history-panel .history-actions button{min-height:38px!important;height:auto!important;padding:7px 10px!important;font-size:12px!important;white-space:nowrap}
 .audit-shell .history-panel .recovery-upload{margin-top:20px;padding-top:16px}
 .audit-shell .history-panel .recovery-upload>.empty-copy{display:none}
 .audit-shell .history-panel .recovery-upload-fields{display:grid;grid-template-columns:minmax(160px,220px) minmax(240px,500px) auto;gap:12px;align-items:center}
 .audit-shell .history-panel .recovery-upload-fields>*{min-width:0;max-width:100%;width:100%;margin:0}
 @media(max-width:1000px){.audit-shell .history-panel .history-grid{grid-template-columns:minmax(0,1fr)!important}.audit-shell .history-panel .history-section+.history-section{padding:16px 0 0!important;border-left:0!important;border-top:1px solid var(--kit-line,var(--line))!important}}
 @media(max-width:600px){.audit-shell .history-panel{padding:14px!important}.audit-shell .history-panel .recovery-upload-fields{grid-template-columns:minmax(0,1fr)}.audit-shell .history-panel .history-actions button{min-height:44px!important}}
}

@media screen and (min-width:601px){.audit-shell .history-panel .recovery-upload-fields>#uploadRecoveryPdf{width:auto!important;justify-self:start;min-width:120px}}

/* Dark surfaces: neutral UI only; status chips and document paper retain their semantics. */
@media screen {
 html[data-theme=dark] :is(.table-wrap,.roster-table-wrap,.excel-copy-panel,.table-filter-toolbar,.lr-activity,.select-shell){background:var(--kit-paper,#1c2e32)!important;color:var(--kit-ink,#edf6f3)!important;border-color:var(--kit-line,#49666a)!important}
 html[data-theme=dark] :is(.excel-copy-panel h3,.excel-copy-panel h2,.table-filter-toolbar label,.lr-activity-head){color:var(--kit-ink,#edf6f3)!important}
 html[data-theme=dark] :is(.table-filter-count,.completion-bar,.lr-extra>summary){background:var(--kit-soft,#22383c)!important;color:var(--kit-ink,#edf6f3)!important;border-color:var(--kit-line,#49666a)!important}
 html[data-theme=dark] :is(#copyExcelRows,.pdf-link:not(.rh-doc-button)){background:var(--kit-soft,#22383c)!important;color:#b9e8df!important;border-color:var(--kit-line,#49666a)!important}
 html[data-theme=dark] :is(#copyExcelRows,.pdf-link:not(.rh-doc-button)):hover:not(:disabled){background:#2b484a!important;border-color:#70d9b3!important}
 html[data-theme=dark] #copyExcelRows:disabled{color:#a9bdbf!important;opacity:.6}
 html[data-theme=dark] .audit-shell :is(.roster-attendance-table td,.empty-copy,.completion-bar p,.roster-dialog-count small){color:var(--kit-muted,#b2c9c8)!important}
 html[data-theme=dark] .audit-shell .roster-attendance-table tbody tr:hover{background:#294247!important}
 html[data-theme=dark] .toast{background:#223c35!important;color:#def7eb!important;border-color:#608d7f!important}
 html[data-theme=dark] .toast.error{background:#452a32!important;color:#ffd7df!important;border-color:#a86b79!important}
}

@media screen {
 html[data-theme=dark] #rosterDialog .roster-attendance-table tbody tr:hover{background:#294247!important}
 @media(max-width:680px){
  #rosterDialog .roster-dialog-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;height:auto!important;flex:none!important;position:static!important;padding:12px 0 0!important;background:transparent!important}
  #rosterDialog .roster-dialog-actions>button{flex:none!important;height:auto!important;min-height:44px!important;width:100%!important;min-width:0!important;padding:10px!important}
  #rosterDialog #generateRosterPdf{grid-column:1/-1}
 }
}

@media screen {
 #operationalDashboard.om-working .om-header .om-section-field{display:grid!important;grid-template-rows:16px 48px;gap:7px!important;align-self:end;margin:0!important}
 #operationalDashboard.om-working .om-header .om-section-field>small{grid-row:1!important;line-height:16px;margin:0!important;font-size:11px}
 #operationalDashboard.om-working .om-header #omSectionSelect{grid-row:2!important;height:48px!important;min-height:48px!important;margin:0!important;font-size:18px!important;padding:8px 36px 8px 12px!important}
 #operationalDashboard.om-working .om-header .om-filters{align-self:end!important}
 html[data-theme=dark] #operationalDashboard.om-working #omSummaryDeepDive>.om-panel{background:var(--kit-paper,#1c2e32)!important;color:var(--kit-ink,#edf6f3)!important;border-color:var(--kit-line,#49666a)!important}
 html[data-theme=dark] #operationalDashboard.om-working #omSummaryDeepDive :is(h2,strong){color:var(--kit-ink,#edf6f3)!important}
 html[data-theme=dark] #operationalDashboard.om-working #omSummaryDeepDive :is(.om-empty,.om-movement-map-dates){color:var(--kit-muted,#b2c9c8)!important}
 html[data-rh-workspace=psicometricos] #root .panel.wide table .rh-app-menu-toggle{display:none!important}
 .rh-contract-pending>summary{display:flex;align-items:center;gap:10px;padding:12px 14px!important;cursor:pointer;list-style:none;border-radius:8px;background:var(--kit-soft);color:var(--kit-ink);font-weight:800}
 .rh-contract-pending>summary::-webkit-details-marker{display:none}
 .rh-contract-pending>summary::after{content:'⌄';margin-left:auto;font-size:20px;transition:transform .15s}
 .rh-contract-pending[open]>summary::after{transform:rotate(180deg)}
 .rh-contract-pending>summary>b{border-radius:12px;padding:2px 9px;background:var(--kit-mint);font-size:12px;color:var(--rh-control-on-selected)}
 .rh-contract-pending .pending-users{max-height:380px!important;overflow:auto!important;padding:0!important;margin:10px 0 0!important;border:1px solid var(--kit-line);border-radius:8px}
 .rh-contract-pending .rh-pending-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px;color:var(--kit-ink)}
 .rh-contract-pending .rh-pending-table th{position:sticky;top:0;z-index:1;text-align:left;background:var(--kit-soft)!important;color:var(--kit-ink)!important;padding:10px 12px!important;font-size:11px}
 .rh-contract-pending .rh-pending-table th:nth-child(1){width:35%}.rh-contract-pending .rh-pending-table th:nth-child(2){width:120px}
 .rh-contract-pending .rh-pending-table td{padding:10px 12px!important;border-bottom:1px solid var(--kit-line);vertical-align:top;overflow-wrap:anywhere;background:var(--kit-paper)!important;color:var(--kit-ink)!important}
 .rh-contract-pending .rh-pending-table tr:last-child td{border-bottom:0}
 .rh-contract-pending .rh-pending-source{font-size:10px;font-weight:800;color:var(--kit-muted);text-transform:uppercase}
 .rh-contract-pending .rh-pending-fields{display:flex;flex-wrap:wrap;gap:5px}
 .rh-contract-pending .rh-pending-fields>span{padding:3px 7px;border-radius:5px;background:var(--kit-soft);border:1px solid var(--kit-line);font-size:11px;line-height:1.35;color:var(--kit-ink)}
 @media(max-width:760px){html[data-rh-workspace=psicometricos] #root .panel.wide table .rh-app-menu-toggle{display:block!important;width:auto!important;min-width:70px!important;height:36px!important;min-height:36px!important;font-size:11px!important;padding:6px 9px!important}html[data-rh-workspace=psicometricos] #root .panel.wide table tbody tr[data-rh-application-card]>td:first-child{padding-right:85px!important}}
 @media(max-width:600px){.rh-contract-pending .rh-pending-table th:nth-child(1){width:42%}.rh-contract-pending .rh-pending-table th:nth-child(2){width:80px}.rh-contract-pending .rh-pending-table td,.rh-contract-pending .rh-pending-table th{padding:8px 7px!important}.rh-contract-pending .pending-users{max-height:440px!important}}
}

@media screen {
 html body #operationalDashboard.om-working[data-metrics-view]>.om-header>label.om-section-field{display:grid!important;align-self:end!important;grid-template-rows:16px 48px!important;gap:7px!important}
}

@media screen and (max-width:600px){.rh-contract-pending .rh-pending-source{font-size:9px!important;text-transform:none!important;white-space:nowrap}}

@media screen {
 .om-leave-day-tooltip{position:fixed;z-index:10000;width:280px;max-width:calc(100vw - 16px);box-sizing:border-box;max-height:calc(100dvh - 16px);overflow:auto;padding:12px 14px;border:1px solid var(--kit-line,#bdd6d5);border-radius:10px;background:var(--kit-paper,#fff);color:var(--kit-ink,#173c3d);box-shadow:0 8px 28px #001f292b;font:600 13px/1.4 Nunito,system-ui,sans-serif;pointer-events:none}
 .om-leave-day-tooltip header{display:flex;justify-content:space-between;gap:12px;padding-bottom:8px;border-bottom:1px solid var(--kit-line,#bdd6d5)}
 .om-leave-day-tooltip header>span{white-space:nowrap;color:var(--kit-muted,#546b70)}
 .om-leave-day-tooltip header b{color:var(--kit-ink,#173c3d);margin-left:6px}
 .om-leave-sites{display:grid;gap:6px;padding-top:8px}.om-leave-sites>span{display:flex;justify-content:space-between;align-items:start;gap:12px;font-size:11px}.om-leave-sites b{font-size:13px;flex-shrink:0}
 .om-leave-day-tooltip p{margin:9px 0 0;color:var(--kit-muted,#546b70);font-size:12px}
}

@media screen {
 html body #operationalDashboard.om-working[data-metrics-view]>.om-header>label.om-section-field{grid-template-rows:48px!important;gap:0!important;align-self:center!important}
 #operationalDashboard.om-working .om-header #omSectionSelect{grid-row:1!important}
 #operationalDashboard.om-working .om-header :is(#omMonthLabel,#omObraLabel){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
 html body #operationalDashboard.om-working[data-metrics-view] .om-header #omFilters:not([hidden]){grid-template-columns:180px auto minmax(180px,380px)!important;align-items:center!important;justify-content:end!important;gap:12px!important}
 #operationalDashboard.om-working .om-header .rh-header-week{font-size:12px;line-height:1.3;white-space:nowrap;padding:8px 10px;border:1px solid var(--kit-line);border-radius:7px;background:var(--kit-soft);color:var(--kit-ink);margin:0!important;text-transform:none}
 @media(max-width:760px){html body #operationalDashboard.om-working[data-metrics-view] .om-header #omFilters:not([hidden]){grid-template-columns:minmax(0,1fr) auto!important;justify-content:stretch!important}#operationalDashboard.om-working .om-header .om-control-obra{grid-column:1/-1}}
}

@media screen{
 html body #operationalDashboard.om-working[data-metrics-view] .om-header #omFilters:not([hidden]){align-self:center!important}
 #operationalDashboard.om-working .om-header #omFilters>.om-control:first-child{grid-column:1!important;grid-row:1!important}
 #operationalDashboard.om-working .om-header #omFilters>.rh-header-week{grid-column:2!important;grid-row:1!important;align-self:center!important}
 #operationalDashboard.om-working .om-header #omFilters>.om-control-obra{grid-column:3!important;grid-row:1!important}
 @media(max-width:760px){#operationalDashboard.om-working .om-header #omFilters>.om-control-obra{grid-column:1/-1!important;grid-row:2!important}}
}

/* Selected/hover states require both surface and foreground in dark theme. */
@media screen {
 html[data-theme=dark] #root .test-card.selected{background:#24443f!important;border-color:#81d6bd!important;color:#edf6f3!important;box-shadow:inset 3px 0 #81d6bd!important}
 html[data-theme=dark] #root .test-card.selected :is(h2,dd){color:#edf6f3!important}
 html[data-theme=dark] #root .test-card.selected :is(p,dt){color:#bfd4d0!important}
 html[data-theme=dark] #root .question button:is(:hover,.selected){background:#294b46!important;border-color:#80d8bd!important;color:#edf6f3!important}
 html[data-theme=dark] #root .question button b,html[data-theme=dark] #root .question p>span{color:#8ce0c4!important}
 html[data-theme=dark] #root .review-state.neutral{background:#30444c!important;color:#e0ecef!important;border:1px solid #69818b!important}
 html[data-theme=dark] #root :is(.pill.archived,.pill.draft){background:#30444c!important;color:#e0ecef!important}
 html[data-theme=dark] #rh-manual-days [data-manual-close]{background:#253b40!important;color:#e7f2ef!important;border:1px solid #68858a!important;box-shadow:none!important}
 html[data-theme=dark] #rh-manual-days [data-manual-close]:hover{background:#34534f!important;border-color:#8fdbc4!important;color:#fff!important}
}

@media screen {
 html[data-theme=dark] #workersPager button{background:#263e43!important;color:#edf6f3!important;border:1px solid #6c9091!important;box-shadow:none!important}
 html[data-theme=dark] #workersPager button:hover:not(:disabled){background:#31554e!important;border-color:#83d4b8!important;color:#fff!important}
 html[data-theme=dark] #workersPager button:disabled{background:#253035!important;color:#9cabad!important;border-color:#45565b!important;opacity:1!important;cursor:not-allowed}
}

@media screen{
 html body .bi-dashboard>.bi-command{grid-template-columns:100px minmax(240px,1fr) minmax(250px,380px)!important;gap:12px!important;align-items:stretch!important;margin:0!important}
 html body .bi-dashboard>.bi-command>.bi-health{min-height:78px!important;padding:10px!important;border-radius:10px!important;gap:0!important}
 html body .bi-dashboard>.bi-command>.bi-health strong{font-size:28px!important;line-height:1!important}
 html body .bi-dashboard>.bi-command>.bi-health span{font-size:9px!important;margin-top:5px!important}
 html body .bi-dashboard>.bi-command>.bi-title{min-height:78px!important;padding:12px 16px!important;display:flex!important;align-items:center!important;justify-content:space-between;gap:12px;border-radius:10px!important}
 html body .bi-dashboard>.bi-command>.bi-title h1{font-size:23px!important;margin:0!important;line-height:1.15!important}
 html body .bi-dashboard>.bi-command>.bi-gap{min-height:0!important;padding:12px 16px!important;justify-content:center;gap:5px!important;border-radius:10px!important}
 html body .bi-dashboard>.bi-command>.bi-gap>span{font-size:14px!important;line-height:1.3!important}
 html body .bi-dashboard>.bi-command>.bi-gap>small{font-size:11px!important}
 .bi-dashboard .bi-title>.om-back-health{display:inline-flex;align-items:center;gap:7px;margin:0!important;min-height:40px!important;padding:7px 11px;border:1px solid var(--kit-line);border-radius:8px;background:var(--kit-soft);color:var(--kit-ink);font:800 13px Nunito,system-ui;white-space:nowrap;flex-shrink:0;cursor:pointer}
 .bi-dashboard .bi-title>.om-back-health[hidden]{display:none!important}
 .bi-dashboard .bi-title>.om-back-health svg{width:18px;height:18px;display:block}
 .bi-dashboard .bi-title>.om-back-health:hover{border-color:var(--rh-control-accent);background:var(--rh-control-hover)}
 @media(max-width:700px){html body .bi-dashboard>.bi-command{grid-template-columns:82px minmax(0,1fr)!important;gap:8px!important}html body .bi-dashboard>.bi-command>.bi-gap{grid-column:1/-1!important}html body .bi-dashboard>.bi-command>.bi-title{padding:10px!important;gap:6px!important}html body .bi-dashboard>.bi-command>.bi-title h1{font-size:19px!important}.bi-dashboard .bi-title>.om-back-health{min-height:44px!important;padding:7px;font-size:12px}}
}

@media screen{html body .bi-dashboard>.bi-command>:is(.bi-health,.bi-title,.bi-gap){box-sizing:border-box!important}html body .bi-dashboard>.bi-command>.bi-title{flex-direction:row!important;flex-wrap:nowrap!important;text-align:left!important}html body .bi-dashboard>.bi-command>.bi-title h1{flex:1;text-align:left!important}}

@media screen {
 #operationalDashboard.om-working .om-header .om-section-field{position:relative!important}
 #operationalDashboard.om-working .om-header .om-section-field::after{content:'';position:absolute;right:15px;top:50%;width:7px;height:7px;border-right:2px solid var(--kit-ink,#173c3d);border-bottom:2px solid var(--kit-ink,#173c3d);transform:translateY(-65%) rotate(45deg);pointer-events:none;z-index:2}
 html body #operationalDashboard.om-working .om-header #omSectionSelect{appearance:none!important;-webkit-appearance:none!important;background-image:none!important;padding-right:38px!important}
 html body .audit-shell .visit-panel{padding:16px!important}
 html body .audit-shell .visit-panel>.panel-heading{margin-bottom:8px!important;gap:10px}
 html body .audit-shell .visit-panel>.panel-heading h2{font-size:19px!important;line-height:1.25}
 html body .audit-shell .visit-panel>.panel-copy{font-size:12px!important;margin:0 0 12px!important;line-height:1.4}
 html body .audit-shell .visit-panel>.form-grid{gap:10px 12px!important;align-items:end}
 html body .audit-shell .visit-panel .field{gap:5px!important;font-size:10px!important;letter-spacing:.025em!important;min-width:0}
 html body .audit-shell .visit-panel .field :is(input,select){min-height:40px!important;height:40px!important;font-size:13px!important}
 html body .audit-shell .visit-panel :is(.touch-date,.touch-select){min-height:40px!important}
 html body .audit-shell .visit-panel :is(.touch-date-trigger,.touch-select-trigger){height:40px!important;min-height:40px!important;padding:6px 10px!important;border-radius:8px!important;font-size:13px!important}
 html body .audit-shell .visit-panel .obra-picker{margin:12px 0!important;padding:8px 10px!important;border-radius:9px!important}
 html body .audit-shell .visit-panel .obra-options{gap:6px!important;max-height:none!important}
 html body .audit-shell .visit-panel .obra-option{min-height:36px!important;padding:6px 9px!important;gap:7px!important;border-radius:7px!important;font-size:11px!important}
 html body .audit-shell .visit-panel .obra-option input[type=checkbox]{width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px!important}
 html body .audit-shell .visit-panel .obra-logo{width:18px!important;height:18px!important}
 html body .audit-shell .visit-panel>.visit-notes{gap:10px!important;margin:0!important}
 html body .audit-shell .visit-panel .visit-notes textarea{min-height:86px!important;height:86px;padding:9px!important;font-size:13px!important;line-height:1.45!important;border-radius:8px!important}
 html body .audit-shell .visit-panel>.visit-actions{gap:8px!important;margin-top:12px!important;flex-wrap:wrap!important}
 html body .audit-shell .visit-panel>.visit-actions>button{min-height:40px!important;padding:8px 12px!important;font-size:12px!important}
 @media(min-width:1100px){html body .audit-shell .visit-panel>.form-grid{grid-template-columns:180px minmax(180px,1fr) minmax(180px,1fr) minmax(180px,1fr)!important}html body .audit-shell .visit-panel>.visit-notes{grid-template-columns:repeat(3,minmax(0,1fr))!important}html body .audit-shell .visit-panel>.visit-notes>.field{grid-column:auto!important}}
 @media(max-width:680px){html body .audit-shell .visit-panel{padding:12px!important}html body .audit-shell .visit-panel>.panel-heading h2{font-size:16px!important}html body .audit-shell .visit-panel>.form-grid,html body .audit-shell .visit-panel>.visit-notes{grid-template-columns:minmax(0,1fr)!important}html body .audit-shell .visit-panel .obra-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}html body .audit-shell .visit-panel .obra-option{min-width:0;overflow-wrap:anywhere}html body .audit-shell .visit-panel :is(.touch-date-trigger,.touch-select-trigger){min-height:44px!important;height:44px!important}html body .audit-shell .visit-panel>.visit-actions>button{min-height:44px!important}html body .audit-shell .visit-panel .field input:not([type=checkbox]){min-height:44px!important;height:44px!important}}
}
