/* All employee columns fit the available desktop width; recover half the left gutter. */
@media screen{
.content:has(> #lavoratori.active){max-width:none;width:100%;margin:0;padding-left:20px;padding-right:14px}
#lavoratori{min-width:0;max-width:100%}
#workersGrid.workers-table-wrap{overflow:visible;max-width:100%;width:100%}
#workersGrid .workers-table{width:100%;min-width:0;max-width:100%;table-layout:fixed}
#workersGrid .workers-table th,#workersGrid .workers-table td{min-width:0;white-space:normal;overflow-wrap:anywhere;padding-inline:4px;line-height:1.45}
#workersGrid .workers-table th{font-size:clamp(8px,.58vw,10px);letter-spacing:0;text-align:left;vertical-align:middle}
#workersGrid .workers-table th:first-child,#workersGrid .workers-table td.worker-number{width:2.5%;min-width:0;position:static;font-size:12px;padding-inline:2px;text-align:center}
#workersGrid .workers-table th:nth-child(2),#workersGrid .workers-table td.worker-name{width:14%!important;min-width:0!important;max-width:none!important;position:static!important;left:auto!important}
#workersGrid .workers-table th:nth-child(3){width:5.5%}
#workersGrid .workers-table th:last-child{width:3%}
#workersGrid .workers-table td{font-size:clamp(9px,.68vw,11px)}
#workersGrid .worker-name .employee-link{font-size:clamp(12px,.9vw,15px);line-height:1.35}
#workersGrid .worker-name .worker-qualification,#workersGrid .worker-name small{font-size:clamp(10px,.7vw,12px);line-height:1.4;display:block}
#workersGrid .workers-table .cell-date{display:block;max-width:100%;font-size:inherit;line-height:1.45}
#workersGrid .workers-table .expired-date{padding:3px 2px}
#workersGrid .workers-table .badge{display:table;max-width:100%;font-size:7px;margin-top:5px;padding:3px 4px;white-space:normal;letter-spacing:0;line-height:1.2}
#lavoratori .page-head{gap:16px;flex-wrap:wrap}
}
@media screen and (max-width:1150px){
#workersGrid .workers-table,#workersGrid .workers-table tbody{display:block}
#workersGrid .workers-table thead{display:none}
#workersGrid .workers-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-bottom:16px;border:1px solid #c9ddec;border-left:4px solid #145da0;border-radius:10px;background:#fff;overflow:hidden}
#workersGrid .workers-table tbody td{display:block;position:static;border:0;border-radius:0;padding:12px;min-width:0;width:auto!important;max-width:none!important;font-size:12px}
#workersGrid .workers-table td.worker-number{grid-column:1/-1;text-align:left;padding:5px 12px;background:#edf5fc;font-size:12px}
#workersGrid .workers-table td.worker-name{grid-column:1/-1;width:auto!important;border-bottom:1px solid #d6e5f0;padding:14px 12px}
#workersGrid .workers-table td:not(.worker-name):not(.worker-number)::before{content:attr(data-label);display:block;font-size:10px;font-weight:700;color:#5c7186;margin-bottom:5px}
#workersGrid .worker-name .employee-link{font-size:16px}
#workersGrid .workers-table .badge{font-size:8px}
}
@media screen and (max-width:600px){.content:has(> #lavoratori.active){padding-inline:12px}#workersGrid .workers-table tr{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media screen{#workersGrid .workers-table .worker-contract-heading{width:7.5%}#workersGrid .worker-contract-open{border:0;background:transparent;padding:0;text-align:left;font:inherit;color:#145da0;cursor:pointer;text-decoration:underline;text-underline-offset:3px;white-space:normal;overflow-wrap:anywhere;max-width:100%}#workersGrid .worker-contract-open:focus-visible{outline:2px solid #145da0;outline-offset:3px}#workersGrid .worker-contract-indefinite{font-size:10px;color:#60758b;line-height:1.4}}
