:root{font-family:Inter,system-ui,Arial,sans-serif;color:#17212d;background:#f3f5f7}*{box-sizing:border-box}body{margin:0}header{background:#fff;border-bottom:3px solid #c8102e;padding:22px max(20px,calc((100vw - 1050px)/2));display:flex;align-items:center;gap:18px}.cri-logo{display:block;width:118px;height:118px;object-fit:contain;flex:0 0 auto}.brand{font-size:18px;font-weight:800}.sub{color:#5d6876;font-size:13px}main{max-width:1050px;margin:30px auto;padding:0 20px}.panel{background:white;border:1px solid #e1e5ea;border-radius:16px;padding:24px;margin:20px 0;box-shadow:0 4px 18px #25304408}h1{font-size:26px;margin:0 0 7px}h2{font-size:18px;margin:0 0 14px}.muted{color:#586473;font-size:14px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.full{grid-column:1/-1}label{font-weight:650;font-size:13px;display:block;margin-bottom:6px}input,textarea,select{width:100%;border:1px solid #cbd3dd;border-radius:8px;padding:11px;font:inherit;background:white}textarea{min-height:85px}input:focus,textarea:focus{outline:2px solid #d97d89;border-color:#c8102e}.check{display:flex;gap:10px;align-items:center;margin:10px 0;font-weight:400}.check input{width:auto}button{background:#c8102e;color:white;border:0;padding:11px 18px;border-radius:9px;font-weight:700;cursor:pointer}button.secondary{background:#e9edf2;color:#233042}button:disabled{opacity:.6}button+button{margin-left:8px}.row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.notice{padding:14px;background:#fff5e6;border:1px solid #f0d9aa;border-radius:9px;font-size:14px}.good{background:#eaf8ed;border-color:#b6dfbc}.err{background:#ffedf0;border-color:#ebafba}.hidden{display:none!important}.gridtable{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:left;padding:10px;border-bottom:1px solid #e4e8ed;vertical-align:top}th{background:#f6f7f9}.pill{border-radius:25px;background:#edf0f4;padding:3px 9px;font-size:12px}code{font-size:12px;overflow-wrap:anywhere}.section-head{margin-top:20px;border-bottom:1px solid #e7eaef;padding-bottom:8px}.foot{padding:20px;text-align:center;color:#697481;font-size:12px}@media(max-width:660px){.fields{grid-template-columns:1fr}header{padding:15px 20px}.cri-logo{width:84px;height:84px}.panel{padding:16px}.brand{font-size:16px}button{width:100%;margin-top:8px}button+button{margin-left:0}}

/* Address autocomplete shared by registered-office and event-location fields */
.address-suggestions{background:#fff;border:1px solid #b7c2d1;border-radius:10px;
    box-shadow:0 10px 25px #17212d20;max-height:260px;overflow-y:auto;
    padding:4px;margin-top:4px;position:relative;z-index:15}
.address-option{display:block;width:100%;background:#fff;color:#17212d;text-align:left;
    margin:0!important;padding:11px 12px;border-radius:6px;font-weight:500;
    border:0;line-height:1.4}
.address-option:hover,.address-option.active{background:#f4e7e9;color:#a31028}
.address-option:focus-visible{outline:2px solid #c8102e;outline-offset:-2px}
.address-hint{margin-top:6px}

/* Conditional reuse of previously completed events */
.event-reuse-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.reuse-mode{display:flex;align-items:flex-start;gap:12px;border:1px solid #cbd3dd;border-radius:12px;padding:16px;cursor:pointer;background:#fff;margin:0;font-size:14px}
.reuse-mode:has(input:checked){border-color:#b5162e;background:#fff6f7;box-shadow:0 0 0 1px #b5162e}
.reuse-mode input{width:20px;height:20px;flex:0 0 20px;margin:1px 0 0;accent-color:#b5162e}
.reuse-mode strong{display:block;font-size:15px;line-height:1.4}
.reuse-mode small{display:block;color:#586473;font-weight:400;line-height:1.5;margin-top:4px}
.event-reuse-details{padding:18px;border:1px solid #e4d1d4;border-radius:12px;background:#fffafb;margin:14px 0}
.event-choice-list{display:flex;flex-direction:column;gap:3px}
.event-choice-list .check{padding:8px 10px;border:1px solid #edf0f3;border-radius:8px;background:#fff}
.reuse-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
@media(max-width:660px){.event-reuse-modes,.reuse-fields{grid-template-columns:1fr}.event-reuse-details{padding:12px}}

.address-status{min-height:18px;font-size:12px;color:#526173;margin-top:5px;line-height:1.45}

/* Group previous-request reuse into organization and event information */
.reuse-field-group{border-top:1px solid #e7dfe1;margin-top:14px;padding-top:12px}
.reuse-field-group:first-child{border-top:0;padding-top:0}
.reuse-field-group h4{font-size:15px;margin:0 0 8px;color:#951426}

/* Readable previous-event picker with an accessible year filter */
.previous-events-toolbar{display:flex;align-items:end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:18px 0 7px}
.previous-years-field{display:flex;flex-direction:column;gap:6px;min-width:180px}
.previous-years-field label{font-size:13px;font-weight:700;color:#283347}
.previous-years-field select{font:inherit;min-width:180px;max-width:100%;padding:10px 12px;background:#fff;border:1px solid #cbd3dd;border-radius:9px;color:#17212d}
#previousEventsCount{margin:0 0 9px;font-size:13px}
.previous-year-note{font-size:12px;margin:4px 0 14px}
.event-choice-list{display:flex;flex-direction:column;gap:10px}
.previous-event-card{display:flex;align-items:center;gap:13px;border:1px solid #d9dfe8;border-radius:12px;padding:15px 16px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s;margin:0}
.previous-event-card:hover{border-color:#c78b96;background:#fff9fa}
.previous-event-card:has(input:checked){border:2px solid #b5162e;padding:14px 15px;background:#fff6f7;box-shadow:0 0 0 2px #b5162e12}
.previous-event-card:focus-within{outline:2px solid #b5162e;outline-offset:2px}
.previous-event-card input[type=radio]{width:20px;height:20px;flex:0 0 20px;accent-color:#b5162e;margin:0}
.previous-event-content{display:flex;flex-direction:column;gap:7px;flex:1;min-width:0}
.previous-event-title{font-size:16px;font-weight:700;color:#152131;line-height:1.3;overflow-wrap:anywhere}
.previous-event-meta{display:flex;gap:7px 16px;flex-wrap:wrap;font-size:12px;color:#536173;line-height:1.45}
.previous-event-side{display:flex;align-items:flex-end;flex-direction:column;gap:7px;flex:0 0 auto;color:#647084}
.previous-event-year{font-size:13px;color:#97162d;background:#fbecef;padding:5px 9px;border-radius:20px;font-weight:750}
.previous-event-side small{font-size:12px;white-space:nowrap}
.previous-events-empty{padding:22px 14px;text-align:center;border:1px dashed #cbd3dd;border-radius:12px;background:#fff;color:#526173}
@media(max-width:600px){.previous-event-card{align-items:flex-start;flex-wrap:wrap;padding:13px}.previous-event-card:has(input:checked){padding:12px}.previous-event-side{flex-basis:100%;padding-left:33px;flex-direction:row;align-items:center}.previous-event-meta{gap:6px 12px}.previous-years-field,.previous-years-field select{min-width:150px}}

/* User access controls and accessible self-service password recovery */
.link-button{background:transparent;color:#a6112b;padding:4px 0;border:0;text-decoration:underline;text-underline-offset:3px;font-size:14px;font-weight:700}
.link-button:hover{color:#731326}
.link-button:focus-visible{outline:2px solid #b5162e;outline-offset:4px}
.password-help{background:#fafbfd;padding:18px;border:1px solid #dce2eb;border-radius:12px;margin:12px 0 0;max-width:620px}
.password-help h2{margin:0 0 10px}
#forgotPasswordStatus{line-height:1.55}
.account-locked{color:#a6112b;font-weight:750}
.statusButton,.unlockButton{display:inline-block;margin:3px 5px 3px 0!important;white-space:nowrap}
@media(max-width:660px){.statusButton,.unlockButton{white-space:normal}}


/* CRI: one-page user table, aligned controls and last successful login. */
.users-page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.users-page-heading h2{font-size:21px;margin:0 0 6px}
.user-roles-explanation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 22px}
.user-roles-explanation>div{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:10px;border:1px solid #e3e7ed;background:#fafbfc}
.user-roles-explanation strong{font-size:13px;color:#202d3d}
.user-roles-explanation span{font-size:12px;color:#576677;line-height:1.35}
.user-create-section{border:1px solid #e3e7ed;border-radius:12px;padding:18px;background:#fbfcfd;margin:0 0 24px}
.user-create-heading h3{font-size:17px;margin:0 0 4px}
.user-create-heading .muted{margin:0 0 18px}
.users-create-fields .muted{margin:0}
.users-create-fields button{width:auto;min-height:41px}
.users-toolbar{display:flex;justify-content:space-between;align-items:end;gap:14px;flex-wrap:wrap;margin:0 0 15px}
.users-toolbar h3{margin:0 0 5px}
.users-toolbar .muted{margin:0}
.users-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.users-filters>div{min-width:140px}
.users-filters label{font-size:12px;margin-bottom:5px}
.users-filters input,.users-filters select{min-height:40px;padding:8px 10px}
.users-filters input{width:190px}
.users-filters select{width:155px}
.users-list{width:100%;overflow-x:auto;border:1px solid #e3e7ed;border-radius:10px}
.users-table{min-width:970px;width:100%;table-layout:fixed;border-collapse:collapse}
.users-table th{background:#f5f7f9;color:#344155;font-size:12px;font-weight:750;line-height:1.3;letter-spacing:.01em;padding:12px 9px;border-bottom:1px solid #dfe5ec}
.users-table td{vertical-align:top;padding:15px 9px;border-bottom:1px solid #e7ebef;font-size:13px;overflow-wrap:anywhere}
.users-table tr:last-child td{border-bottom:none}
.users-table tr:nth-child(even){background:#fcfdff}
.users-table th:nth-child(1){width:23%}
.users-table th:nth-child(2){width:17%}
.users-table th:nth-child(3){width:14%}
.users-table th:nth-child(4){width:15%}
.users-table th:nth-child(5){width:14%}
.users-table th:nth-child(6){width:17%}
.users-table .user-cell-stack{display:flex;flex-direction:column;gap:8px;align-items:stretch;min-width:0}
.users-table .user-list-name{display:block;font-size:13px;font-weight:750;color:#142338;line-height:1.45;min-height:20px;overflow-wrap:anywhere}
.users-table input,.users-table select{width:100%;min-width:0;height:40px;padding:7px 9px;font-size:12px;margin:0}
.users-table button{display:block;width:100%;min-height:40px;padding:7px 7px;font-size:12px;line-height:1.25;margin:0!important;border-radius:8px;white-space:normal}
.users-table button:disabled{opacity:.64;cursor:not-allowed}
.users-table .role-superadmin{font-size:13px;color:#98152a;display:flex;align-items:center;min-height:40px}
.users-table .user-action-note{font-size:12px;color:#687789;line-height:1.4;display:block}
.users-table .user-access-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.users-table .user-access-actions .user-action-note{padding:9px 4px}
.users-table .deleteAccountButton{background:#b91c35;color:#fff}
.users-table .user-state{display:inline-block;font-size:12px;font-weight:700;line-height:1.35;max-width:100%}
.users-table .state-active{color:#287244}
.users-table .state-pending{color:#946b16}
.users-table .state-locked{color:#b21c34}
.users-table .users-attempts{display:block;margin-top:6px;font-size:11px;color:#64758b}
.users-table .user-last-login{display:flex;flex-direction:column;gap:5px;font-size:12px;line-height:1.35;font-variant-numeric:tabular-nums}
.users-table .user-last-login span{font-weight:700;color:#263448;white-space:nowrap}
.users-table .user-last-login small{font-size:12px;color:#64748b}
.users-table .user-login-never{font-size:12px;color:#788395;line-height:1.35}
.users-table .users-empty{text-align:center;padding:26px;font-size:14px;color:#64748b}
.account-deletion-panel{margin-top:18px;padding:18px;border:1px solid #edc1c7;border-radius:12px;background:#fffafb}
.account-deletion-panel h3{margin:0 0 8px}
.account-deletion-panel .account-deletion-target{font-weight:750}
.account-deletion-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 0}
.account-deletion-actions button{margin:0}
.account-deletion-actions button:first-child{background:#b91c35}
@media(max-width:660px){
 .user-roles-explanation{grid-template-columns:1fr;gap:7px}
 .users-filters{width:100%}
 .users-filters>div{flex:1;min-width:135px}
 .users-filters input,.users-filters select{width:100%}
 .users-create-fields button{width:100%}
 .users-table{min-width:970px}
}

.mail-recipient-title{font-weight:650;font-size:13px;margin-bottom:6px}
.mail-recipient-list{border:1px solid #cbd3dd;border-radius:8px;padding:6px 14px;max-height:300px;overflow-y:auto;background:#fff}
.mail-recipient{display:flex;align-items:center;gap:12px;margin:0;padding:12px 0;cursor:pointer;font-weight:400}
.mail-recipient+.mail-recipient{border-top:1px solid #e4e8ed}
.mail-recipient input{width:18px;height:18px;flex:0 0 18px;margin:0;padding:0;accent-color:#1677ff;cursor:pointer}
.mail-recipient input:focus-visible{outline:2px solid #1677ff;outline-offset:3px}
.mail-recipient span{min-width:0;overflow-wrap:anywhere}
.mail-recipient strong,.mail-recipient small{display:block}
.mail-recipient small{color:#586473;margin-top:3px;font-size:13px}

/* Allegato 4: readable multiselects on desktop and mobile. */
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px;margin-top:7px}
.choice-grid .check{margin:0;min-height:40px;padding:8px 10px;border-radius:9px;border:1px solid #e0e5eb;background:#fafbfc;align-items:flex-start;line-height:1.45;cursor:pointer}
.choice-grid .check:has(input:checked){border-color:#c8102e;background:#fff6f7}
.choice-grid .check input{width:18px;height:18px;flex:0 0 18px;margin:1px 0 0;accent-color:#c8102e}
@media(max-width:660px){.choice-grid{grid-template-columns:1fr}}
