#requestOverlay .modal {max-width:940px;width:min(940px,calc(100vw - 32px));}
#requestOverlay .modal-head {background:#fff;color:#153153;}
#requestOverlay .modal-head h2 {font-size:22px;}
#requestOverlay .modal-body {padding:0 24px 20px;}
.rv-tabs {display:flex;gap:20px;border-bottom:1px solid #dce3eb;margin-bottom:20px;}
.rv-tabs button {border:0;background:none;color:#536476;font:inherit;padding:14px 0;min-height:44px;cursor:pointer;}
.rv-tabs button[aria-selected=true] {color:#153153;font-weight:600;border-bottom:3px solid #153153;}
.rv-section {margin:0 0 22px;}
.rv-section h3 {font-size:16px;color:#153153;margin:0 0 12px;}
.rv-grid {display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;}
.rv-grid label {display:flex;flex-direction:column;gap:6px;font-size:13px;color:#37475b;min-width:0;}
.rv-grid input,.rv-grid select,.rv-grid textarea {box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #bdcbd8;border-radius:6px;padding:10px 12px;font:inherit;background:white;color:#162e4b;}
.rv-grid input:focus,.rv-grid select:focus,.rv-grid textarea:focus {outline:2px solid #244d7d;outline-offset:1px;}
.rv-grid [aria-invalid=true] {border-color:#b42318;background:#fff8f7;}
.rv-full {grid-column:1/-1;}
.rv-options {display:flex;gap:8px 20px;flex-wrap:wrap;}
.rv-options label {display:flex;flex-direction:row;align-items:center;min-height:44px;gap:8px;}
.rv-options input {width:18px;min-height:18px;height:18px;}
.rv-grid .rv-options {flex-direction:row;align-items:center;}
.rv-grid .rv-options input {width:18px;min-height:18px;height:18px;}
#requestOverlay .actions {position:sticky;bottom:-20px;background:white;padding-bottom:12px;z-index:2;}
.rv-table-wrap {overflow-x:auto;max-width:100%;}
.rv-table {border-collapse:collapse;width:100%;font-size:13px;}
.rv-table th {text-align:left;background:#f3f6f9;color:#153153;font-weight:600;}
.rv-table th,.rv-table td {padding:11px 12px;border-bottom:1px solid #e1e7ee;overflow-wrap:anywhere;vertical-align:top;}
.rv-table td:first-child {font-weight:500;}
.rv-table small {display:block;color:#617186;margin-top:4px;}
.rv-tools {display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:14px 0;}
.rv-tools button,#requestOverlay .actions button {min-height:44px;white-space:normal;}
.rv-person {padding:14px 0;border-bottom:1px solid #e1e7ee;}
.rv-person p {margin:5px 0;overflow-wrap:anywhere;font-size:13px;color:#526477;}
.rv-selected {color:#153153;font-weight:600;}
#rvMessage:not(:empty) {padding:12px 14px;margin:12px 0;border-left:3px solid #b42318;background:#fff6f4;color:#8d241e;}
#rvMessage.rv-success {border-color:#23724c;background:#f1f8f4;color:#20603e;}
#requestOverlay .actions {border-top:1px solid #dce3eb;padding-top:16px;margin-top:20px;gap:10px;flex-wrap:wrap;}
#mansioniLista {display:block;}
#mansioniLista .mansione-card {width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;margin:0;border-radius:0;border-width:0 0 1px;min-height:48px;text-align:left;}
#mansioniLista .mansione-card small {margin:0;text-align:right;}
#mansionePiano {display:block;width:100%;min-height:44px;margin-top:8px;}
#mansioniOverlay #mansioniLista .mansione-card {display:grid;grid-template-columns:1fr auto;align-items:center;text-align:left;}
#mansioniOverlay #mansioniLista .mansione-card b {text-align:left;justify-self:start;}
#mansioniOverlay #mansioniLista .mansione-card small {text-align:right;justify-self:end;}
@media(max-width:600px){
 #requestOverlay .modal {width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;}
 #requestOverlay .modal-body {padding:0 16px 16px;}
 #requestOverlay .modal-head {padding:16px;}
 #requestOverlay .modal-head h2 {font-size:19px;}
 .rv-grid {grid-template-columns:1fr;gap:14px;}
 .rv-tabs {gap:18px;}
 #requestOverlay .actions .grow {display:none;}
 #requestOverlay .actions {display:grid;grid-template-columns:1fr 1fr;}
 #requestTake {grid-column:1/-1;}
 .rv-table th,.rv-table td {padding:9px 7px;font-size:12px;}
 #mansioniLista .mansione-card {flex-direction:column;align-items:flex-start;gap:5px;}
 #mansioniLista .mansione-card small {text-align:left;}
 #mansioniOverlay #mansioniLista .mansione-card {grid-template-columns:1fr;}
 #mansioniOverlay #mansioniLista .mansione-card small {justify-self:start;text-align:left;}
}
