body{background:#dde3ea}.login-card,.dashboard-card{max-width:520px;margin:40px auto}.brand-title{font-weight:700;letter-spacing:.3px}.status-ok{color:#198754}.status-ko{color:#dc3545}

:root{
    --jcl-blue:#001848;
    --jcl-blue-hover:#00123a;
    --jcl-blue-soft:#e6edf8;
    --jcl-blue-focus:rgba(0,24,72,0.18);
}

.jcl-page{
    font-family:Arial,sans-serif;
    margin:0;
    padding:24px;
    background:#dde3ea;
    color:#222;
    overflow-y:scroll;
}

.jcl-page *{
    box-sizing:border-box;
}

.jcl-container{
    max-width:1180px;
    margin:0 auto;
}

.jcl-header{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
    margin-bottom:20px;
}

.testata.jcl-header{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
    margin-bottom:18px;
}

.jcl-header h1{
    margin:0 0 8px;
}

.jcl-user-box{
    text-align:right;
    min-width:180px;
}

.jcl-user-box summary{
    cursor:pointer;
    list-style-position:inside;
}

.testata.jcl-header .jcl-user-box summary{
    text-align:right;
    white-space:nowrap;
}

.testata.jcl-header .jcl-user-box summary strong{
    display:inline;
    max-width:none;
    overflow:visible;
    text-overflow:clip;
}

.testata.jcl-header .jcl-user-box summary .jcl-muted{
    line-height:1.15;
}

.jcl-user-box summary strong{
    display:block;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.jcl-user-box p{
    margin:8px 0 0;
}

.jcl-language-form{
    margin:8px 0;
    padding-top:8px;
    border-top:1px solid #d8dde3;
    text-align:left;
}

.jcl-language-form label{
    display:block;
    margin-bottom:4px;
    color:#475569;
    font-size:12px;
    font-weight:bold;
}

.jcl-language-form select{
    width:100%;
    margin-bottom:6px;
}

.jcl-language-form button{
    width:100%;
    margin:0;
    padding:7px 9px;
    font-size:0.9rem;
}

.jcl-brandbar{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:center;
    background:var(--jcl-blue);
    color:white;
    padding:18px;
    border-radius:9px;
    margin-bottom:22px;
    box-shadow:0 8px 20px rgba(15,23,42,0.12);
}

.jcl-brand-left{
    display:flex;
    gap:18px;
    align-items:center;
    min-width:0;
    flex:1 1 auto;
}

.jcl-brandbar img.jcl-brand-logo{
    display:block;
    width:96px !important;
    max-width:96px !important;
    max-height:96px !important;
    height:auto !important;
    object-fit:contain;
    flex:0 0 auto;
}

.jcl-brand-info h1{
    margin:0 0 8px;
    font-size:2em;
}

.jcl-brand-info p{
    margin:3px 0;
}

.jcl-brand-info a{
    color:white;
}

.jcl-brand-right{
    flex:0 1 420px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    align-items:flex-end;
    gap:6px;
    min-width:0;
}

.jcl-brandbar img.jcl-program-logo{
    display:block;
    max-width:420px !important;
    max-height:120px !important;
    width:auto !important;
    height:auto !important;
    object-fit:contain;
}

.jcl-brand-version{
    display:block;
    color:rgba(255,255,255,0.82);
    font-size:0.78rem;
    font-weight:700;
    line-height:1.1;
    letter-spacing:0.02em;
    text-align:right;
    white-space:nowrap;
}

.jcl-app-footer{
    margin-top:32px;
    padding:16px 0 4px;
    border-top:1px solid #d8dde3;
    color:#667085;
    font-size:13px;
    line-height:1.4;
    text-align:center;
}

.jcl-app-footer a{
    color:var(--jcl-blue);
    text-decoration:none;
    font-weight:bold;
}

.jcl-app-footer a:hover{
    text-decoration:underline;
}

.jcl-card{
    background:white;
    border:1px solid #cbd5df;
    padding:22px;
    margin-bottom:22px;
    border-radius:10px;
    box-shadow:0 7px 20px rgba(15,23,42,0.09);
}

.jcl-card-soft{
    background:#f8fafc;
    padding:16px;
    box-shadow:none;
}

.jcl-permissions-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
    gap:8px 14px;
}

.jcl-permission-item{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
}

.jcl-users-section{
    margin-bottom:22px;
}

.jcl-users-section > h2{
    margin:0 0 14px;
}

.jcl-users-list,
.jcl-users-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
    align-items:start;
}

.jcl-user-card{
    border:1px solid #c7d2df;
    border-radius:10px;
    padding:14px 16px 16px;
    background:#fff;
    box-shadow:0 10px 24px rgba(15,23,42,0.12);
}

.jcl-hidden-form{
    display:none;
}

.jcl-user-header-row{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:center;
}

.jcl-user-header-row h3{
    margin:0;
    color:var(--jcl-blue);
    font-size:20px;
}

.jcl-user-header-meta{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:6px;
}

.jcl-user-section{
    border-top:1px solid #e5eaf0;
    margin-top:10px;
    padding-top:10px;
}

.jcl-user-section:first-child{
    border-top:0;
    margin-top:0;
    padding-top:0;
}

.jcl-user-section-title{
    margin:0 0 10px;
    color:#334155;
    font-size:13px;
    font-weight:800;
    letter-spacing:.02em;
    text-transform:uppercase;
}

.jcl-user-main-row{
    display:grid;
    grid-template-columns:minmax(220px, 0.8fr) minmax(520px, 1.6fr);
    gap:24px;
    align-items:start;
}

.jcl-user-summary{
    min-width:0;
    padding-right:18px;
    border-right:1px solid #e5eaf0;
}

.jcl-user-main-row .jcl-user-section{
    border-top:0;
    margin-top:0;
    padding-top:0;
}

.jcl-user-summary-heading h3{
    margin:0 0 4px;
    color:var(--jcl-blue);
}

.jcl-user-summary-heading p,
.jcl-user-last-login{
    margin:0;
}

.jcl-user-summary-heading p{
    overflow-wrap:anywhere;
}

.jcl-user-last-login{
    font-size:13px;
    margin-top:10px;
}

.jcl-user-badges{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:6px;
    margin-top:10px;
}

.jcl-user-badge{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:5px 9px;
    background:var(--jcl-blue-soft);
    color:var(--jcl-blue);
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}

.jcl-user-badge.is-active{
    background:#dcfce7;
    color:#166534;
}

.jcl-user-badge.is-inactive{
    background:#fee2e2;
    color:#991b1b;
}

.jcl-user-badge-warning{
    background:#fef3c7;
    color:#92400e;
}

.jcl-user-edit-grid,
.jcl-user-fields-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(150px, 1fr));
    gap:10px 14px;
    margin-top:0;
}

.jcl-user-edit-grid .jcl-form-row,
.jcl-user-fields-grid .jcl-form-row{
    margin-bottom:0;
}

.jcl-user-card .jcl-card-soft{
    margin:10px 0 0;
    padding:10px 0 0;
}

.jcl-user-card .jcl-user-permissions-panel,
.jcl-user-create-card .jcl-user-permissions-panel{
    background:transparent;
    border:0;
    border-top:1px solid #e5eaf0;
    border-radius:0;
    box-shadow:none;
    margin:10px 0 0;
    padding:10px 0 0;
}

.jcl-user-card .jcl-card-soft h3{
    margin:0 0 8px;
    font-size:16px;
}

.jcl-user-card .jcl-card-soft .jcl-user-section-title,
.jcl-user-create-card .jcl-card-soft .jcl-user-section-title{
    margin:0 0 10px;
    font-size:13px;
}

.jcl-user-card .jcl-card-soft .jcl-muted{
    margin:0 0 10px;
    font-size:13px;
}

.jcl-user-card .jcl-permissions-grid,
.jcl-user-create-card .jcl-permissions-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:6px 10px;
}

.jcl-user-permissions-panel.is-admin .jcl-permissions-grid,
.jcl-user-permissions.is-admin .jcl-permissions-grid{
    display:none;
}

.jcl-user-permissions-panel:not(.is-admin) .jcl-permissions-admin-note,
.jcl-user-permissions:not(.is-admin) .jcl-permissions-admin-note{
    display:none;
}

.jcl-user-card .jcl-permission-item{
    font-size:13px;
    line-height:1.25;
}

.jcl-user-security-row{
    align-items:flex-end;
    display:flex;
    gap:24px;
    justify-content:space-between;
    width:100%;
}

.jcl-user-password-form{
    display:grid;
    grid-template-columns:260px auto;
    gap:10px;
    align-items:end;
}

.jcl-user-password-reset-area .jcl-form-row,
.jcl-user-security-row .jcl-form-row,
.jcl-user-password-form .jcl-form-row{
    margin:0;
}

.jcl-user-password-reset-area > .jcl-button,
.jcl-user-status-button{
    box-sizing:border-box;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
}

.jcl-user-password-reset-area > .jcl-button{
    align-self:flex-end;
    height:42px;
    line-height:1.2;
    margin:0;
    padding-top:0;
    padding-bottom:0;
}

.jcl-user-password-reset-area{
    align-items:flex-end;
    background:#fff1f1;
    border:1px solid #f3b5b5;
    border-radius:12px;
    display:flex;
    gap:12px;
    max-width:100%;
    padding:12px;
    white-space:nowrap;
    width:fit-content;
}

.jcl-user-password-field{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.jcl-user-password-reset-area input{
    min-width:220px;
}

.jcl-user-password-note{
    flex-basis:100%;
    margin:0;
}

.jcl-user-create-card .jcl-user-security-row{
    flex-wrap:wrap;
}

.jcl-user-create-active{
    align-self:center;
    display:flex;
    gap:6px;
    align-items:center;
    margin:0;
    white-space:nowrap;
}

.jcl-user-save-row{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
    justify-content:center;
    margin-top:10px;
}

.jcl-user-reprint-confirm{
    color:#475569;
    font-size:13px;
    line-height:1.25;
}

.jcl-user-save-row .jcl-button{
    width:240px;
}

.jcl-user-status-button{
    border:0;
    border-radius:8px;
    color:#fff;
    cursor:pointer;
    font-weight:800;
    padding:10px 14px;
    white-space:nowrap;
}

.jcl-user-status-control{
    align-items:center;
    align-self:flex-end;
    display:flex;
    flex-direction:column;
    gap:4px;
    justify-content:flex-end;
    margin-left:auto;
    min-width:170px;
}

.jcl-user-status-help{
    color:#475569;
    font-size:.85rem;
    font-weight:700;
    line-height:1.2;
    margin-bottom:4px;
    text-align:center;
}

.jcl-user-status-active{
    background:#198754;
}

.jcl-user-status-inactive{
    background:#dc3545;
}

.jcl-user-status-active:hover{
    background:#146c43;
}

.jcl-user-status-inactive:hover{
    background:#bb2d3b;
}

.jcl-user-save-actions{
    display:flex;
    align-items:center;
    gap:10px;
    white-space:nowrap;
}

.jcl-user-save-actions label{
    display:flex;
    align-items:center;
    gap:6px;
    margin:0;
}

.jcl-user-save-actions .jcl-button,
.jcl-user-toggle-form .jcl-button{
    white-space:nowrap;
}

@media (max-width: 900px){
    .jcl-user-header-row{
        align-items:flex-start;
        flex-direction:column;
    }

    .jcl-user-header-meta{
        justify-content:flex-start;
    }

    .jcl-user-main-row{
        grid-template-columns:1fr;
        gap:12px;
    }

    .jcl-user-summary{
        padding-right:0;
        padding-bottom:12px;
        border-right:0;
        border-bottom:1px solid #e5eaf0;
    }

    .jcl-user-edit-grid,
    .jcl-user-fields-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .jcl-user-security-row,
    .jcl-user-password-form,
    .jcl-user-password-reset-area,
    .jcl-user-admin-row,
    .jcl-user-create-card .jcl-user-security-row{
        grid-template-columns:1fr;
        justify-content:stretch;
    }

    .jcl-user-status-control{
        justify-self:stretch;
    }

    .jcl-user-card .jcl-permissions-grid,
    .jcl-user-create-card .jcl-permissions-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px){
    .jcl-user-security-row{
        align-items:stretch;
        flex-direction:column;
        gap:10px;
    }

    .jcl-user-password-reset-area{
        align-items:stretch;
        flex-direction:column;
        white-space:normal;
    }

    .jcl-user-password-field{
        flex-basis:auto;
    }

    .jcl-user-password-reset-area input{
        min-width:0;
    }

    .jcl-user-status-control{
        align-items:stretch;
        margin-left:0;
    }
}

@media (max-width: 560px){
    .jcl-user-edit-grid,
    .jcl-user-fields-grid{
        grid-template-columns:1fr;
    }

    .jcl-user-card .jcl-permissions-grid,
    .jcl-user-create-card .jcl-permissions-grid{
        grid-template-columns:1fr;
    }

    .jcl-user-security-row .jcl-button,
    .jcl-user-password-reset-area .jcl-button,
    .jcl-user-password-form .jcl-button,
    .jcl-user-admin-row .jcl-button,
    .jcl-user-status-button,
    .jcl-user-save-row .jcl-button{
        width:100%;
    }

    .jcl-user-save-row{
        display:block;
    }

    .jcl-user-reprint-confirm{
        display:block;
        margin-bottom:10px;
    }

    .jcl-user-status-control{
        justify-items:stretch;
    }
}

.jcl-login-card{
    max-width:560px;
    margin:0 auto 20px;
    padding:28px;
    border-color:#cbd5df;
    border-radius:10px;
    box-shadow:0 12px 30px rgba(15,23,42,0.12);
}

.jcl-login-card .jcl-form-row{
    margin-bottom:18px;
}

.jcl-login-input{
    display:block;
    width:100%;
    padding:14px 15px;
    font-size:17px;
    border-radius:9px;
}

.jcl-login-button{
    width:100%;
    margin:4px 0 0;
    padding:15px 22px;
    font-size:18px;
    border-radius:10px;
}

.jcl-actions{
    margin:0 0 20px;
}

.jcl-button,
.jcl-actions a,
.jcl-actions button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin:0 10px 10px 0;
    padding:11px 18px;
    border:1px solid var(--jcl-blue);
    background:var(--jcl-blue);
    color:#fff;
    -webkit-text-fill-color:currentColor;
    border-radius:9px;
    text-decoration:none;
    font-weight:bold;
    font-size:15px;
    box-shadow:0 2px 6px rgba(0,0,0,0.16);
    cursor:pointer;
    line-height:1.2;
    min-height:42px;
    max-width:100%;
    box-sizing:border-box;
    text-align:center;
    text-indent:0;
    white-space:normal;
    overflow:visible;
    overflow-wrap:anywhere;
    -webkit-tap-highlight-color:rgba(0,24,72,0.18);
}

.jcl-button:visited,
.jcl-actions a:visited{
    color:#fff;
    -webkit-text-fill-color:currentColor;
}

.jcl-actions a *,
.jcl-actions button *,
.jcl-button *{
    color:inherit;
    -webkit-text-fill-color:currentColor;
}

.jcl-button-secondary{
    background:white;
    color:var(--jcl-blue);
    border-color:#9fb8d0;
}

.jcl-button-secondary:visited{
    color:var(--jcl-blue);
    -webkit-text-fill-color:currentColor;
}

.jcl-button-danger,
.jcl-actions .jcl-button-danger,
.jcl-actions button.jcl-button-danger{
    border-color:#b42318;
    background:#b42318;
    color:white;
}

.jcl-actions a:hover,
.jcl-actions button:hover,
.jcl-button:hover{
    background:var(--jcl-blue-hover);
    border-color:var(--jcl-blue-hover);
    color:#fff;
    filter:none;
}

.jcl-button-secondary:hover,
.jcl-button-secondary:active{
    background:var(--jcl-blue-hover);
    border-color:var(--jcl-blue-hover);
    color:#fff;
}

.jcl-button-secondary:hover:visited,
.jcl-button-secondary:active:visited{
    color:#fff;
}

.jcl-button:active,
.jcl-actions a:active,
.jcl-actions button:active{
    transform:translateY(1px);
    box-shadow:0 1px 3px rgba(0,0,0,0.18);
    color:#fff;
}

.jcl-button:focus-visible,
.jcl-actions a:focus-visible,
.jcl-actions button:focus-visible{
    outline:3px solid var(--jcl-blue-focus);
    outline-offset:3px;
}

.jcl-button-secondary:focus-visible:not(:hover):not(:active){
    color:var(--jcl-blue);
}

.jcl-actions .jcl-button-secondary:focus-visible:not(:hover):not(:active),
.jcl-actions summary.jcl-button-secondary:focus-visible:not(:hover):not(:active),
.jcl-nav-operativa .jcl-button-secondary:focus-visible:not(:hover):not(:active),
.jcl-nav-operativa summary.jcl-button-secondary:focus-visible:not(:hover):not(:active){
    color:#fff;
    -webkit-text-fill-color:currentColor;
}

.jcl-button-danger:hover,
.jcl-actions .jcl-button-danger:hover,
.jcl-actions button.jcl-button-danger:hover{
    border-color:#8f1d14;
    background:#8f1d14;
    color:#fff;
}

.jcl-button:disabled,
.jcl-button[disabled],
.jcl-actions button:disabled,
.jcl-actions button[disabled]{
    border-color:#aab6c5;
    background:#e8edf4;
    color:#475569;
    box-shadow:none;
    cursor:not-allowed;
    opacity:1;
    transform:none;
}

.jcl-button-secondary:disabled,
.jcl-button-secondary[disabled]{
    border-color:#aab6c5;
    background:#f7f9fc;
    color:#475569;
}

.jcl-button-danger:disabled,
.jcl-button-danger[disabled],
.jcl-actions button.jcl-button-danger:disabled,
.jcl-actions button.jcl-button-danger[disabled]{
    border-color:#d6a09b;
    background:#f4d7d4;
    color:#7a271a;
}

.jcl-modal-backdrop{
    position:fixed;
    inset:0;
    z-index:3000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
    background:rgba(15,23,42,0.56);
}

.jcl-modal-backdrop[hidden]{
    display:none;
}

.jcl-modal{
    position:relative;
    width:min(100%, 520px);
    max-height:calc(100vh - 36px);
    overflow:auto;
    padding:24px;
    border:1px solid #cbd5df;
    border-radius:12px;
    background:#fff;
    color:#172033;
    box-shadow:0 24px 60px rgba(15,23,42,0.34);
}

.jcl-modal h2{
    margin:0 36px 14px 0;
}

.jcl-modal p{
    line-height:1.45;
}

.jcl-scanner-success-message{
    font-size:1.12rem;
    font-weight:700;
    overflow-wrap:anywhere;
}

.jcl-modal-close{
    position:absolute;
    top:12px;
    right:12px;
    width:34px;
    height:34px;
    border:1px solid #cbd5df;
    border-radius:999px;
    background:white;
    color:#172033;
    font-size:22px;
    line-height:1;
    cursor:pointer;
}

.jcl-modal-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:18px;
}

.jcl-modal-actions .jcl-button{
    margin:0;
}

body.jcl-modal-open{
    overflow:hidden;
}

.jcl-import-preview-summary{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin:18px 0 24px;
}

.jcl-import-summary-item{
    display:flex;
    min-width:0;
    min-height:92px;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:5px;
    box-sizing:border-box;
    padding:14px;
    border:1px solid #cbd5df;
    border-radius:8px;
    background:#f8fafc;
    color:#172033;
    font:inherit;
    letter-spacing:0;
    text-align:left;
}

button.jcl-import-summary-item{
    cursor:pointer;
}

button.jcl-import-summary-item:hover{
    border-color:#1d4f91;
    background:#eef5ff;
}

button.jcl-import-summary-item:focus-visible{
    outline:3px solid #8bbcff;
    outline-offset:2px;
    border-color:#1d4f91;
}

.jcl-import-summary-item .jcl-summary-label{
    font-size:0.92rem;
    font-weight:700;
    line-height:1.25;
    overflow-wrap:anywhere;
}

.jcl-import-summary-item .jcl-summary-value{
    font-size:1.7rem;
    font-weight:800;
    line-height:1;
}

.jcl-import-summary-hint{
    color:#1d4f91;
    font-size:0.82rem;
    font-weight:700;
}

.jcl-import-preview-modal{
    display:flex;
    width:min(100%,1100px);
    max-height:calc(100dvh - 36px);
    flex-direction:column;
    overflow:hidden;
}

.jcl-import-preview-modal-body{
    min-height:0;
    overflow:auto;
    overscroll-behavior:contain;
}

.jcl-import-detail-table{
    min-width:680px;
}

.jcl-import-change-table{
    min-width:900px;
}

.jcl-import-value-current{
    background:#fff4f1;
    color:#842029;
}

.jcl-import-value-new{
    background:#edf8f1;
    color:#17623a;
    font-weight:700;
}

.jcl-import-course-list{
    margin:0;
    padding-left:24px;
}

.jcl-import-course-list li{
    padding:6px 0;
    overflow-wrap:anywhere;
}

.jcl-tessera-confirm-email{
    margin:10px 0;
    padding:12px;
    border:1px solid #cbd5df;
    border-radius:8px;
    background:#f8fafc;
    color:#0f172a;
    font-size:1.05rem;
    font-weight:800;
    overflow-wrap:anywhere;
}

.jcl-actions summary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin:0 10px 10px 0;
    padding:11px 18px;
    border:1px solid var(--jcl-blue);
    background:var(--jcl-blue);
    color:#fff;
    -webkit-text-fill-color:currentColor;
    border-radius:8px;
    text-decoration:none;
    font-weight:bold;
    font-size:15px;
    line-height:1.2;
    min-height:42px;
    max-width:100%;
    box-sizing:border-box;
    text-align:center;
    text-indent:0;
    white-space:normal;
    overflow:visible;
    overflow-wrap:anywhere;
    cursor:pointer;
    box-shadow:0 2px 6px rgba(0,0,0,0.18);
    list-style:none;
}

.jcl-actions summary::-webkit-details-marker{
    display:none;
}

.jcl-nav-operativa{
    position:relative;
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    gap:0;
}

.jcl-nav-mobile-toggle{
    display:none;
}

.jcl-nav-mobile-toggle,
.jcl-nav-mobile-toggle:hover,
.jcl-nav-mobile-toggle:focus,
.jcl-nav-mobile-toggle:active{
    color:#fff;
    -webkit-text-fill-color:currentColor;
    text-indent:0;
}

.jcl-nav-operativa-links{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
}

.jcl-nav-operativa .jcl-button-secondary:not(.is-active):hover,
.jcl-nav-operativa summary.jcl-button-secondary:not(.is-active):hover{
    background:var(--jcl-blue-soft);
    color:var(--jcl-blue);
    border-color:var(--jcl-blue);
    filter:none;
}

.jcl-nav-operativa .is-active{
    background:#14532d;
    border-color:#0f3d22;
    color:white;
    box-shadow:inset 0 2px 4px rgba(0,0,0,0.22), 0 2px 8px rgba(20,83,45,0.28);
    transform:translateY(1px);
}

.jcl-nav-operativa .is-active:hover{
    background:#0f3d22;
    border-color:#0f3d22;
    color:white;
    filter:none;
}

.jcl-nav-menu{
    display:inline-block;
    position:relative;
}

.jcl-nav-menu summary::after{
    content:" v";
}

.jcl-nav-menu[open] summary::after{
    content:" ^";
}

.jcl-nav-menu-links{
    position:absolute;
    z-index:50;
    top:100%;
    left:0;
    min-width:230px;
    padding:8px;
    background:white;
    border:1px solid #d8dde3;
    border-radius:8px;
    box-shadow:0 8px 22px rgba(0,0,0,0.18);
}

.jcl-nav-menu-links a{
    display:block;
    box-sizing:border-box;
    width:100%;
    margin:0 0 6px 0;
    text-align:left;
}

.jcl-nav-operativa a,
.jcl-nav-operativa summary,
.jcl-nav-operativa button{
    color:#fff;
    -webkit-text-fill-color:currentColor;
    text-indent:0;
}

.jcl-nav-menu-links a:last-child{
    margin-bottom:0;
}

.jcl-form-row{
    margin:0 0 16px;
}

.jcl-form-row label{
    display:inline-block;
    margin-bottom:6px;
    font-weight:bold;
}

.jcl-athletes-filters{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
}

.jcl-athletes-filters > .jcl-button{
    margin:0;
}

#identita-ospite{
    overflow-wrap:anywhere;
}

#identita-ospite label{
    max-width:100%;
}

.jcl-unione-confronto,
.jcl-unione-campi{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.jcl-unione-campi{margin-top:12px}
.jcl-unione-campi label{display:grid;grid-template-rows:1fr auto;gap:4px;min-width:0}
.jcl-unione-campi input{width:100%;min-width:0;box-sizing:border-box}
.jcl-unione-ricerca{margin:0 0 16px}
.jcl-unione-ricerca summary{font-weight:700;cursor:pointer;padding-block:8px}
.jcl-unione-profilo{border:1px solid #cbd5df;border-radius:8px;padding:12px;min-width:0}
.jcl-unione-profilo h4,.jcl-unione-profilo p{margin:0 0 8px}
.jcl-unione-profilo dl{margin:0}
.jcl-unione-profilo dl div{margin-top:6px}
.jcl-unione-profilo dd{margin:0;font-weight:600}
.jcl-unione-scelte{border:0;padding:0;min-width:0;margin-block:12px}
.jcl-unione-scelte legend{font-weight:700}
.jcl-unione-scelta{display:block;padding:8px 0}
.jcl-unione-scelta span{display:block}
.jcl-unione-scelta .jcl-unione-disattiva{display:none;margin-top:6px}
.jcl-unione-scelta input:checked ~ .jcl-unione-disattiva{display:block}
.jcl-athlete-badge-inactive{background:#e6ebef;color:#233344}

@media(max-width:620px){
    .jcl-unione-confronto,.jcl-unione-campi{grid-template-columns:minmax(0,1fr)}
}

.jcl-input,
.jcl-select{
    padding:11px 12px;
    border:1px solid #aeb8c4;
    border-radius:8px;
    font-size:16px;
    max-width:100%;
    background:white;
}

.jcl-input:focus,
.jcl-select:focus{
    outline:2px solid var(--jcl-blue-focus);
    border-color:var(--jcl-blue);
}

.jcl-table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border:1px solid #cbd5df;
}

.jcl-table-wrap{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

.jcl-table th,
.jcl-table td{
    border:1px solid #cfd7df;
    padding:11px 10px;
    text-align:left;
    vertical-align:top;
}

.jcl-table th{
    background:#edf2f7;
    font-weight:bold;
}

.jcl-athletes-mobile-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%, 280px),1fr));
    gap:14px;
}

.jcl-athlete-mobile-card{
    display:flex;
    flex-direction:column;
    border:1px solid #d8dde3;
    border-radius:8px;
    background:#fff;
    padding:12px;
    box-shadow:0 2px 8px rgba(15,23,42,0.08);
}

.jcl-athlete-card-header{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:10px;
    margin:0 0 8px;
}

.jcl-athlete-mobile-card h3,
.jcl-athlete-card-name{
    margin:0;
    color:var(--jcl-blue);
    font-size:1.06rem;
    line-height:1.2;
    font-weight:800;
    text-transform:uppercase;
    min-width:0;
    overflow-wrap:anywhere;
}

.jcl-athlete-card-birthdate{
    flex:0 0 auto;
    color:#667085;
    font-size:0.9rem;
    font-weight:700;
    line-height:1.2;
    text-align:right;
    white-space:nowrap;
}

.jcl-athlete-mobile-card dl{
    display:grid;
    grid-template-columns:1fr;
    gap:7px;
    margin:0 0 12px;
}

.jcl-athlete-card-meta-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:8px;
    align-items:start;
}

.jcl-athlete-card-meta-item{
    min-width:0;
}

.jcl-athlete-mobile-card dt{
    display:inline;
    margin:0 5px 0 0;
    color:#667085;
    font-size:11px;
    font-weight:bold;
    text-transform:uppercase;
}

.jcl-athlete-mobile-card dd{
    display:inline;
    margin:0;
    font-weight:600;
    overflow-wrap:anywhere;
}

.jcl-athlete-mobile-badge{
    display:inline-block;
    padding:3px 7px;
    border-radius:999px;
    color:#111827;
    font-weight:800;
}

.jcl-athlete-mobile-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
    margin-top:auto;
    padding-top:4px;
}

.jcl-athlete-mobile-actions form{
    margin:0;
}

.jcl-athlete-primary-actions{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
    width:100%;
}

.jcl-athlete-primary-actions .jcl-button{
    width:100%;
    box-sizing:border-box;
    margin:0;
    text-align:center;
}

.jcl-athlete-mobile-actions .jcl-button.jcl-button-secondary{
    background:#fff;
    border-color:#9fb8d0;
    color:var(--jcl-blue);
}

.jcl-athlete-mobile-actions .jcl-button.jcl-button-secondary:visited{
    color:var(--jcl-blue);
}

.jcl-athlete-mobile-actions .jcl-button.jcl-button-secondary:hover,
.jcl-athlete-mobile-actions .jcl-button.jcl-button-secondary:active,
.jcl-athlete-mobile-actions .jcl-button.jcl-button-secondary:hover:visited,
.jcl-athlete-mobile-actions .jcl-button.jcl-button-secondary:active:visited{
    background:var(--jcl-blue-hover);
    border-color:var(--jcl-blue-hover);
    color:#fff;
}

.jcl-athlete-mobile-actions .jcl-button.jcl-button-secondary:focus-visible:not(:hover):not(:active){
    background:#fff;
    border-color:#9fb8d0;
    color:var(--jcl-blue);
}

.jcl-athlete-mobile-actions .jcl-button.jcl-button-secondary:disabled,
.jcl-athlete-mobile-actions .jcl-button.jcl-button-secondary[disabled]{
    background:#f7f9fc;
    border-color:#aab6c5;
    color:#475569;
}

.jcl-programmed-sessions-list{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap:12px;
}

.jcl-programmed-session-card{
    min-width:0;
    border:1px solid #d8dde3;
    border-radius:8px;
    background:#fff;
    padding:12px;
    box-shadow:0 2px 8px rgba(15,23,42,0.08);
}

.jcl-programmed-session-main{
    margin:0 0 10px;
}

.jcl-programmed-session-main h3{
    margin:0;
    min-width:0;
    color:var(--jcl-blue);
    font-size:1.06rem;
    line-height:1.25;
    overflow-wrap:anywhere;
}

.jcl-programmed-session-times{
    display:grid;
    grid-template-columns:1fr;
    gap:0;
}

.jcl-programmed-session-row{
    min-width:0;
    padding:9px 0;
    border-top:1px solid #edf2f7;
}

.jcl-programmed-session-row:first-child{
    border-top:0;
    padding-top:0;
}

.jcl-programmed-session-row:last-child{
    padding-bottom:0;
}

.jcl-programmed-session-line{
    margin:0;
    min-width:0;
    color:var(--jcl-blue);
    font-weight:700;
    overflow-wrap:anywhere;
}

.jcl-programmed-session-tech{
    margin-top:4px;
    color:#1f2937;
    font-size:0.92rem;
    line-height:1.35;
    overflow-wrap:anywhere;
}

.jcl-programmed-session-tech-label{
    color:#667085;
    font-weight:800;
}

.jcl-real-coverage-card{
    border-left:6px solid #64748b;
}

.jcl-real-coverage-ok,
.jcl-real-coverage-missing{
    border:1px solid #cbd5df;
    border-radius:8px;
    padding:10px 12px;
    line-height:1.35;
}

.jcl-real-coverage-ok{
    border-color:#86c89d;
    background:#e9f7ef;
    color:#0f5132;
}

.jcl-real-coverage-missing{
    border-color:#f0aaa5;
    background:#fdecec;
    color:#842029;
}

.jcl-manual-tech-form{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-end;
    gap:10px;
    margin-top:14px;
}

.jcl-manual-tech-form label{
    flex:1 0 100%;
    font-weight:700;
}

.jcl-manual-tech-form .jcl-select{
    min-width:min(100%, 260px);
}

.jcl-stampe-filter-form{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:end;
}

.jcl-stampe-filter-form label{
    display:flex;
    flex-direction:column;
    gap:6px;
    min-width:min(100%, 220px);
    font-weight:700;
}

.jcl-stampe-report{
    background:#fff;
}

.jcl-stampe-print-header{
    display:none;
}

.jcl-stampe-report-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px 18px;
    margin:0 0 18px;
    color:#374151;
}

.jcl-stampe-course{
    margin:22px 0 0;
    page-break-inside:auto;
}

.jcl-stampe-course-head{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:flex-start;
    margin:0 0 10px;
    padding:12px;
    border:1px solid #d8dde3;
    border-radius:8px;
    background:#f8fafc;
    break-inside:avoid;
    page-break-inside:avoid;
}

.jcl-stampe-course-head h3{
    margin:0;
    min-width:0;
    color:var(--jcl-blue);
    overflow-wrap:anywhere;
}

.jcl-stampe-course-stats{
    display:flex;
    flex-wrap:wrap;
    gap:8px 14px;
    justify-content:flex-end;
    color:#1f2937;
}

.jcl-stampe-table td,
.jcl-stampe-table th{
    vertical-align:middle;
}

.jcl-stampe-table tr{
    break-inside:avoid;
    page-break-inside:avoid;
}

.jcl-stampe-note{
    display:block;
    margin-top:3px;
    color:#667085;
    font-size:0.86rem;
    font-weight:700;
}

@media (max-width:480px){
    .jcl-programmed-session-row{
        padding:8px 0;
    }

    .jcl-athlete-card-header{
        grid-template-columns:minmax(0,1fr) auto;
        gap:8px;
    }

    .jcl-athlete-card-birthdate{
        font-size:0.84rem;
    }

    .jcl-athlete-card-meta-row{
        grid-template-columns:minmax(0,1fr) minmax(0,1fr);
        gap:6px;
    }
}

@media (max-width:700px){
    .jcl-stampe-filter-form,
    .jcl-stampe-filter-form label,
    .jcl-stampe-filter-form .jcl-button{
        width:100%;
        box-sizing:border-box;
    }

    .jcl-stampe-course-head{
        display:block;
    }

    .jcl-stampe-course-stats{
        justify-content:flex-start;
        margin-top:8px;
    }

    .jcl-stampe-table{
        display:block;
        width:100%;
        border:0;
    }

    .jcl-stampe-table tbody,
    .jcl-stampe-table tr,
    .jcl-stampe-table td{
        display:block;
        width:100%;
        box-sizing:border-box;
    }

    .jcl-stampe-table tr:first-child{
        display:none;
    }

    .jcl-stampe-table tr{
        margin:0 0 10px;
        padding:10px;
        border:1px solid #d8dde3;
        border-radius:8px;
        background:#fff;
    }

    .jcl-stampe-table td{
        border:0;
        padding:4px 0;
    }

    .jcl-stampe-table td::before{
        content:attr(data-label);
        display:block;
        margin-bottom:2px;
        color:#667085;
        font-size:11px;
        font-weight:bold;
        text-transform:uppercase;
    }
}

@media print{
    body.jcl-stampe-page{
        background:#fff !important;
        color:#111827;
        padding:0;
        font-size:11pt;
    }

    body.jcl-stampe-page .jcl-container{
        max-width:none;
        width:auto;
        margin:0;
    }

    body.jcl-stampe-page .jcl-brandbar,
    body.jcl-stampe-page .jcl-nav-operativa,
    body.jcl-stampe-page .jcl-header,
    body.jcl-stampe-page .jcl-print-hide,
    body.jcl-stampe-page .jcl-app-footer{
        display:none !important;
    }

    body.jcl-stampe-page .jcl-card{
        border:0;
        box-shadow:none;
        padding:0;
        margin:0;
    }

    body.jcl-stampe-page .jcl-stampe-print-header{
        display:block;
        margin:0 0 12mm;
        padding-bottom:6mm;
        border-bottom:1px solid #9ca3af;
    }

    body.jcl-stampe-page .jcl-stampe-print-brand{
        display:flex;
        gap:10mm;
        align-items:center;
    }

    body.jcl-stampe-page .jcl-stampe-print-brand img{
        width:22mm;
        height:auto;
    }

    body.jcl-stampe-page .jcl-stampe-print-brand span{
        display:block;
        margin-top:2mm;
    }

    body.jcl-stampe-page .jcl-stampe-report-meta{
        display:block;
        margin-bottom:8mm;
    }

    body.jcl-stampe-page .jcl-stampe-report-meta span{
        display:block;
        margin:0 0 2mm;
    }

    body.jcl-stampe-page .jcl-stampe-course{
        margin:8mm 0 0;
        break-inside:auto;
        page-break-inside:auto;
    }

    body.jcl-stampe-page .jcl-stampe-course + .jcl-stampe-course{
        break-before:page;
        page-break-before:always;
    }

    body.jcl-stampe-page .jcl-stampe-course-head{
        border:1px solid #9ca3af;
        background:#fff;
        padding:4mm;
    }

    body.jcl-stampe-page .jcl-table{
        border-color:#9ca3af;
        font-size:10pt;
    }

    body.jcl-stampe-page .jcl-table th,
    body.jcl-stampe-page .jcl-table td{
        border-color:#9ca3af;
        padding:2.5mm;
    }

    body.jcl-stampe-page .jcl-table th{
        background:#f3f4f6;
    }
}

.jcl-alert{
    padding:14px 16px;
    border-radius:9px;
    margin-bottom:18px;
    border:1px solid transparent;
    box-shadow:0 4px 12px rgba(15,23,42,0.06);
}

.jcl-alert-error{
    color:#842029;
    background:#f8d7da;
    border-color:#f5c2c7;
}

.jcl-alert-success{
    color:#0f5132;
    background:#d1e7dd;
    border-color:#badbcc;
}

.jcl-alert-warning{
    color:#664d03;
    background:#fff3cd;
    border-color:#ffecb5;
}

.jcl-muted{
    color:#666;
}

.jcl-checkin-container{
    max-width:760px;
}

.jcl-checkin-brandbar{
    padding:14px;
}

.jcl-checkin-brandbar .jcl-brand-info h1{
    font-size:1.45em;
}

.jcl-checkin-brandbar .jcl-brand-info p{
    font-size:14px;
}

.jcl-checkin-brandbar img.jcl-brand-logo{
    width:76px !important;
    max-width:76px !important;
    max-height:76px !important;
}

.jcl-checkin-brandbar img.jcl-program-logo{
    max-width:220px !important;
    max-height:82px !important;
}

.jcl-checkin-header{
    margin-bottom:14px;
}

.jcl-checkin-card{
    padding:20px;
}

.jcl-checkin-session{
    padding:14px 16px;
    margin-bottom:18px;
    border:1px solid #cbd5df;
    border-radius:9px;
    background:#f8fafc;
}

.jcl-checkin-session p{
    margin:4px 0;
}

.jcl-checkin-form label{
    display:block;
    margin-bottom:7px;
    font-weight:bold;
}

.jcl-checkin-form .jcl-input{
    width:100%;
    box-sizing:border-box;
    min-height:50px;
    font-size:20px;
}

.jcl-checkin-button{
    width:100%;
    margin:8px 0 0;
    padding:15px 18px;
    font-size:18px;
}

.jcl-checkin-important-alert{
    padding:20px;
    margin-bottom:20px;
    border:2px solid #f59e0b;
    border-radius:12px;
    background:#fff3cd;
    color:#5c3d00;
    box-shadow:0 8px 22px rgba(146,64,14,0.18);
}

.jcl-checkin-important-alert h2{
    margin:0 0 10px;
    font-size:1.55em;
}

.jcl-checkin-important-alert p{
    margin:0 0 12px;
    font-weight:bold;
}

.jcl-checkin-important-alert ul{
    margin:0 0 18px;
    padding-left:22px;
}

.jcl-checkin-important-alert li{
    margin-bottom:8px;
    font-size:1.08em;
    font-weight:bold;
}

.jcl-checkin-confirm-button{
    width:100%;
    padding:16px 18px;
    font-size:20px;
}

.jcl-remember-row{
    padding:10px 0 4px;
}

.jcl-remember-label{
    display:flex !important;
    gap:10px;
    align-items:flex-start;
    margin-bottom:10px !important;
    font-weight:normal !important;
    line-height:1.35;
}

.jcl-remember-label input{
    width:20px;
    height:20px;
    margin:0;
    flex:0 0 auto;
}

.jcl-checkin-layout{
    display:grid;
    grid-template-columns:minmax(180px, 260px) minmax(220px, 300px) minmax(260px, 1fr);
    gap:18px;
    align-items:center;
}

.jcl-qr-box{
    text-align:center;
}

.jcl-qr-code{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:260px;
    height:260px;
    max-width:100%;
    background:white;
    border:1px solid #cbd5df;
    border-radius:10px;
    padding:10px;
    box-sizing:border-box;
    box-shadow:0 5px 14px rgba(15,23,42,0.10);
}

.jcl-qr-code svg{
    display:block;
    width:100%;
    height:auto;
}

.jcl-qr-help{
    margin:8px 0 0;
    font-size:13px;
    color:#666;
}

.jcl-qr-page-card{
    text-align:center;
}

.jcl-qr-code-large{
    width:340px;
    height:340px;
    max-width:100%;
    margin:0 auto 14px;
}

.jcl-tessera-public-page{
    min-height:100vh;
}

.jcl-tessera-public-wrap{
    max-width:980px;
    margin:0 auto;
}

.jcl-tessera-card{
    width:85mm;
    height:55mm;
    max-width:100%;
    aspect-ratio:85 / 55;
    margin:0 auto;
    border:1px solid #222;
    box-sizing:border-box;
    position:relative;
    overflow:hidden;
    background-image:url("../../badge-bg.png");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    box-shadow:0 4px 16px rgba(0,0,0,0.18);
}

.jcl-tessera-official-card{
    display:block;
}

.jcl-tessera-season{
    position:absolute;
    top:8.2%;
    left:28.2%;
    width:64.7%;
    text-align:center;
    font-size:clamp(11px, 4.05vw, 13px);
    font-weight:800;
    line-height:1.15;
    color:#111;
    text-transform:uppercase;
    letter-spacing:0.3px;
    text-shadow:
        0 1px 1px rgba(255,255,255,0.95),
        0 0 2px rgba(255,255,255,0.95);
}

.jcl-tessera-course{
    margin-top:2.2%;
    font-size:clamp(8px, 3.1vw, 10px);
    font-weight:700;
    line-height:1.1;
    text-transform:none;
}

.jcl-tessera-white-area{
    position:absolute;
    left:3.5%;
    top:50.9%;
    width:49.4%;
    min-height:29.1%;
    background:rgba(255,255,255,0.94);
    border-radius:8%;
    box-sizing:border-box;
    padding:4.2% 2.8%;
    text-align:center;
    box-shadow:0 4px 10px rgba(0,0,0,0.45);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.jcl-tessera-name{
    font-size:clamp(10px, 3.75vw, 12px);
    font-weight:bold;
    line-height:1.05;
    margin:0;
    text-transform:uppercase;
}

.jcl-tessera-birth-date{
    margin-top:4.5%;
    font-size:clamp(9px, 3.45vw, 11px);
    font-weight:bold;
    color:#111;
}

.jcl-tessera-qr-operativo{
    position:absolute;
    left:63.5%;
    top:32.7%;
    width:32.9%;
    min-height:38.2%;
    padding:2.1% 2.1% 1.7%;
    box-sizing:border-box;
    background:#fff;
    border-radius:8%;
    box-shadow:0 3px 8px rgba(0,0,0,0.32);
    text-align:center;
}

.jcl-tessera-qr-code{
    width:100%;
    aspect-ratio:1 / 1;
    margin:0 auto;
}

.jcl-tessera-qr-operativo svg{
    display:block;
    width:100%;
    height:100%;
}

.jcl-tessera-role{
    font-size:clamp(6px, 2.25vw, 8px);
    font-weight:800;
    line-height:1;
    margin-top:2.6%;
    letter-spacing:0;
    color:#111;
    text-align:center;
    text-transform:uppercase;
    white-space:nowrap;
}

.jcl-tessera-code{
    font-size:clamp(7px, 2.75vw, 9px);
    font-weight:bold;
    text-align:center;
    margin-top:2.4%;
    letter-spacing:0;
    color:#111;
    line-height:1;
    white-space:nowrap;
}

.jcl-tessera-footer{
    position:absolute;
    bottom:2.7%;
    left:2.4%;
    right:2.4%;
    font-size:clamp(7px, 2.8vw, 9px);
    font-weight:bold;
    text-align:center;
    color:#ffffff;
    text-shadow:
        0 0 2px rgba(0,0,0,1),
        0 0 4px rgba(0,0,0,1),
        1px 1px 2px rgba(0,0,0,1);
    white-space:nowrap;
}

.jcl-tessera-note{
    text-align:center;
    margin-top:14px;
}

.jcl-tessera-download-actions{
    width:85mm;
    max-width:100%;
    margin:12px auto 0;
    text-align:center;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
}

.jcl-tessera-download-button,
.jcl-tessera-share-button{
    width:auto;
    min-width:0;
    padding:7px 12px;
    font-size:0.9rem;
    line-height:1.2;
}

.jcl-tessera-download-button::before,
.jcl-tessera-share-button::before{
    content:"\2193";
    margin-right:6px;
    font-weight:900;
}

.jcl-tessera-share-button::before{
    content:"\2197";
}

.jcl-tessera-download-status{
    flex:0 0 100%;
    min-height:18px;
    margin:8px 0 0;
    font-size:0.86rem;
    font-weight:700;
    color:#334155;
}

.jcl-tessera-download-status.is-error{
    color:#b42318;
}

.jcl-tessera-actions-card{
    max-width:85mm;
    margin:18px auto 0;
}

.jcl-tessera-actions-card h2{
    margin-top:0;
}

.jcl-tessera-actions{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
    align-items:center;
}

.jcl-tessera-actions form{
    margin:0;
}

.jcl-tessera-actions .jcl-button{
    width:100%;
    box-sizing:border-box;
    text-align:center;
}

.jcl-tessera-export-test-status{
    margin:10px 0 0;
    font-size:0.9rem;
    font-weight:700;
    color:#334155;
}

.jcl-tessera-export-test-status.is-error{
    color:#b42318;
}

.jcl-tessera-email-status{
    min-height:20px;
    margin:10px 0 0;
    font-size:0.92rem;
    font-weight:700;
    color:#334155;
}

.jcl-tessera-email-status.is-error{
    color:#b42318;
}

.jcl-tessera-back-row{
    margin:12px 0 0;
}

.jcl-tessera-back-link{
    display:block;
    width:100%;
    box-sizing:border-box;
    text-align:center;
}

.jcl-tessera-email-missing{
    display:flex;
    align-items:center;
    min-height:42px;
}

.jcl-totem-grid{
    display:grid;
    grid-template-columns:minmax(220px, 1fr) minmax(280px, 0.9fr) minmax(220px, 1fr);
    grid-template-rows:auto auto;
    gap:16px;
    align-items:stretch;
}

.jcl-totem-fullscreen-toggle{
    cursor:pointer;
}

.jcl-totem-exit{
    display:none;
}

.jcl-totem-slot-1{
    grid-column:1;
    grid-row:1;
}

.jcl-totem-slot-2{
    grid-column:3;
    grid-row:1;
}

.jcl-totem-slot-3{
    grid-column:1;
    grid-row:2;
}

.jcl-totem-slot-4{
    grid-column:3;
    grid-row:2;
}

.jcl-totem-center{
    grid-column:2;
    grid-row:1 / span 2;
    text-align:center;
}

.jcl-totem-logo-center{
    display:none;
}

.jcl-totem-tatami-box{
    background:transparent;
    border:0;
    box-shadow:none;
    padding:0;
}

.jcl-totem-company{
    display:none;
}

.jcl-totem-slot{
    text-align:center;
}

.jcl-totem-slot-header,
.jcl-totem-slot-content,
.jcl-totem-slot-footer{
    width:100%;
}

.jcl-totem-course{
    margin-top:0;
    overflow-wrap:anywhere;
    word-break:normal;
}

.jcl-totem-slot-active .jcl-totem-course{
    margin:0;
    padding:8px 10px;
    border-radius:8px;
    background:var(--jcl-blue-soft);
    color:var(--jcl-blue);
    font-size:1.35rem;
    font-weight:900;
    letter-spacing:0;
    line-height:1.12;
    text-transform:uppercase;
}

.jcl-totem-instructions{
    margin:0 0 8px;
    padding:8px 10px;
    border-radius:8px;
    background:var(--jcl-blue-soft);
    color:#102033;
    font-size:0.88rem;
    line-height:1.22;
    text-align:center;
}

.jcl-totem-instructions p{
    margin:0 0 3px;
}

.jcl-totem-instructions p:last-child{
    margin-bottom:0;
}

.jcl-totem-instructions section{
    margin:0 0 7px;
}

.jcl-totem-instructions section:last-child{
    margin-bottom:0;
    padding-top:6px;
    border-top:1px solid rgba(0,24,72,0.18);
}

.jcl-totem-instructions h3{
    margin:0 0 6px;
    color:var(--jcl-blue);
    font-size:1.08rem;
    line-height:1.2;
}

.jcl-totem-instructions ol{
    display:inline-block;
    margin:2px auto 0;
    padding-left:1.35rem;
    text-align:left;
}

.jcl-totem-instructions li{
    margin:0 0 2px;
}

.jcl-totem-barcode-hint{
    display:inline-block;
    margin:5px auto 0;
    padding:4px 7px;
    border-radius:7px;
    background:#fff;
    color:var(--jcl-blue);
    font-size:0.92em;
    font-weight:700;
}

.jcl-totem-pin{
    display:inline-block;
    margin:4px 0 12px;
    padding:8px 14px;
    border:1px solid #cbd5df;
    border-radius:8px;
    background:#f8fafc;
    font-size:1.15rem;
    font-weight:bold;
}

.jcl-totem-slot-main{
    display:grid;
    grid-template-columns:minmax(150px, 0.92fr) minmax(150px, 1fr);
    gap:12px;
    width:100%;
    align-items:center;
}

.jcl-totem-slot-qrcol{
    min-width:0;
}
.jcl-totem-guest-heading{display:block;color:#001848;font-size:clamp(1rem,1.5vw,1.35rem);line-height:1.15;}
.jcl-totem-guest-heading span{font-size:.82em;}

.jcl-totem-slot-checkins{
    min-width:0;
    align-self:stretch;
    padding:10px;
    border:1px solid rgba(0,24,72,0.14);
    border-radius:8px;
    background:#f8fafc;
    text-align:left;
}

.jcl-totem-slot-checkins h3{
    margin:0 0 8px;
    color:var(--jcl-blue);
    font-size:0.98rem;
    line-height:1.15;
    text-align:center;
}

.jcl-totem-slot-checkins h3 span{
    display:block;
    font-size:0.82em;
    line-height:1.15;
}

.jcl-totem-slot-checkins ul{
    margin:0;
    padding:0;
    list-style:none;
}

.jcl-totem-slot-checkins .jcl-totem-checkin-scroll{
    max-height:14.4rem;
    overflow-x:hidden;
    overflow-y:auto;
    scrollbar-width:thin;
}

.jcl-totem-slot-checkins .jcl-totem-checkin-scroll::-webkit-scrollbar{
    width:8px;
}

.jcl-totem-slot-checkins .jcl-totem-checkin-scroll::-webkit-scrollbar-track{
    background:rgba(226,232,240,0.78);
    border-radius:999px;
}

.jcl-totem-slot-checkins .jcl-totem-checkin-scroll::-webkit-scrollbar-thumb{
    background:rgba(0,24,72,0.38);
    border-radius:999px;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-checkins .jcl-totem-checkin-scroll{
    max-height:12.2rem;
}

.jcl-totem-slot-checkins li{
    display:block;
    padding:7px 0;
    border-top:1px solid #e2e8f0;
    font-size:0.9rem;
    line-height:1.2;
}

.jcl-totem-slot-checkins li:first-child{
    border-top:0;
}

.jcl-totem-checkin-main{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    align-items:start;
    gap:10px;
}

.jcl-totem-slot-checkins li strong{
    min-width:0;
    overflow:visible;
    text-overflow:clip;
    white-space:normal;
    color:#0f172a;
    font-weight:800;
    overflow-wrap:anywhere;
}

.jcl-totem-slot-checkins li em{
    display:block;
    margin-top:2px;
    color:#64748b;
    font-size:0.76em;
    font-style:normal;
    font-weight:600;
    line-height:1.15;
    white-space:normal;
}

.jcl-totem-checkin-main span{
    flex:0 0 auto;
    font-weight:bold;
    color:#475569;
    text-align:right;
    white-space:nowrap;
}

.jcl-totem-no-checkin{
    margin:8px 0 0;
    color:#64748b;
    font-size:0.88rem;
    line-height:1.25;
    text-align:center;
}

.jcl-totem-no-checkin span{
    display:block;
}

.jcl-totem-qr{
    display:flex;
    align-items:center;
    justify-content:center;
    width:200px;
    height:200px;
    max-width:100%;
    margin:0 auto 12px;
    padding:10px;
    box-sizing:border-box;
    border:1px solid #cbd5df;
    border-radius:10px;
    background:white;
}

.jcl-totem-qr svg{
    display:block;
    width:100%;
    height:auto;
}

.jcl-totem-video{
    width:100%;
    height:100%;
    aspect-ratio:1 / 1;
    object-fit:cover;
    overflow:hidden;
    border:1px solid #cbd5df;
    border-radius:10px;
    background:#111827;
}

.jcl-totem-video-frame{
    position:relative;
    width:min(100%, 460px);
    aspect-ratio:1 / 1;
    margin:0 auto;
    overflow:hidden;
}

.jcl-totem-scan-guide{
    position:absolute;
    left:50%;
    top:50%;
    width:min(58%, 360px);
    aspect-ratio:1 / 1;
    min-height:0;
    transform:translate(-50%, -50%);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    padding:8px 10px;
    border:2px solid rgba(255,255,255,0.72);
    border-radius:14px;
    background:transparent;
    box-shadow:none;
    color:rgba(255,255,255,0.88);
    font-size:clamp(0.72rem, 0.9vw, 0.92rem);
    font-weight:500;
    line-height:1.12;
    pointer-events:none;
    text-align:center;
    text-decoration:none;
    text-shadow:0 1px 3px rgba(0,0,0,0.75);
    z-index:5;
}

.jcl-totem-scan-guide::before,
.jcl-totem-scan-guide::after{
    content:"";
    position:absolute;
    left:12%;
    right:12%;
    height:3px;
    background:rgba(255,255,255,0.75);
    border-radius:999px;
    display:none;
}

.jcl-totem-scan-guide::before{
    top:28%;
}

.jcl-totem-scan-guide::after{
    bottom:28%;
}

.jcl-totem-video video{
    width:100% !important;
    height:100% !important;
    object-fit:cover;
}

#jcl-totem-app .jcl-totem-video video,
#jcl-totem-app .jcl-totem-video canvas,
#jcl-totem-app #totem-reader video,
#jcl-totem-app #totem-reader canvas{
    transform:none !important;
}

#jcl-totem-app .jcl-totem-video img{
    max-width:100% !important;
}

.jcl-totem-scan-status{
    position:relative;
    width:100%;
    min-height:22px;
    margin:7px 0 0;
    overflow:hidden;
    border:1px solid #cbd5df;
    border-radius:999px;
    background:#e5e7eb;
    color:#1f2937;
    font-size:0.82rem;
    font-weight:800;
    line-height:22px;
    text-align:center;
}

.jcl-totem-scan-status-fill{
    position:absolute;
    inset:0 auto 0 0;
    width:28%;
    background:#9ca3af;
    transition:width 0.22s ease, background-color 0.22s ease;
}

.jcl-totem-scan-status-text{
    position:relative;
    z-index:1;
    padding:0 10px;
    text-shadow:0 1px 1px rgba(255,255,255,0.6);
}

.jcl-totem-scan-status-scanning{
    background:#fff7d6;
    color:#6f4f00;
}

.jcl-totem-scan-status-scanning .jcl-totem-scan-status-fill{
    width:48%;
    background:linear-gradient(90deg, #f59e0b, #facc15, #f59e0b);
    background-size:200% 100%;
    animation:jcl-totem-scan-pulse 1.25s linear infinite;
}

.jcl-totem-scan-status-read{
    background:#e9f7ef;
    color:#146c43;
}

.jcl-totem-scan-status-read .jcl-totem-scan-status-fill{
    width:72%;
    background:#37b26c;
}

.jcl-totem-scan-status-ok{
    background:#d9f7e6;
    color:#0f5132;
}

.jcl-totem-scan-status-ok .jcl-totem-scan-status-fill{
    width:100%;
    background:#198754;
}

.jcl-totem-scan-status-error{
    background:#fff1e6;
    color:#9a3412;
}

.jcl-totem-scan-status-error .jcl-totem-scan-status-fill{
    width:100%;
    background:#f97316;
}

.jcl-totem-scan-status-camera-error{
    background:#fdecec;
    color:#842029;
}

.jcl-totem-scan-status-camera-error .jcl-totem-scan-status-fill{
    width:100%;
    background:#dc3545;
}

@keyframes jcl-totem-scan-pulse{
    from{
        background-position:0 0;
    }

    to{
        background-position:200% 0;
    }
}

.jcl-totem-result{
    margin:14px 0;
    padding:14px;
    border-radius:8px;
    border:1px solid #cbd5df;
    background:#f8fafc;
    font-size:1.08rem;
    font-weight:bold;
}

.jcl-totem-result-ok{
    border-color:#198754;
    background:#e9f7ef;
    color:#146c43;
}

.jcl-totem-result-error{
    border-color:#dc3545;
    background:#fdecec;
    color:#b02a37;
}

.jcl-totem-result-working{
    border-color:#b58900;
    background:#fff8db;
    color:#7a5b00;
}

.jcl-totem-result-idle{
    color:#334155;
}

.jcl-totem-private-notice{
    position:fixed;
    left:50%;
    bottom:28px;
    z-index:2200;
    transform:translateX(-50%);
    width:min(780px, calc(100vw - 32px));
    padding:18px 22px;
    border:2px solid #0f766e;
    border-radius:12px;
    background:#ecfdf5;
    color:#064e3b;
    box-shadow:0 18px 45px rgba(15,23,42,0.28);
    font-size:1.08rem;
    font-weight:700;
    line-height:1.35;
    text-align:center;
}

.jcl-totem-private-notice[hidden]{
    display:none;
}

.jcl-totem-private-notice.is-visible{
    display:block;
}

.jcl-totem-private-notice-warning{
    border-color:#f59e0b;
    background:#fff7ed;
    color:#7c2d12;
    box-shadow:0 18px 45px rgba(124,45,18,0.24);
}

.jcl-totem-scan-box h2 span,
.jcl-totem-course span,
.jcl-totem-slot-content .jcl-muted span{
    display:block;
    font-size:0.82em;
    font-weight:700;
    line-height:1.15;
}

#jcl-totem-app.jcl-totem-kiosk{
    max-width:none;
    width:100vw;
    min-height:100vh;
    margin:0;
    padding:18px;
    box-sizing:border-box;
    background:var(--jcl-blue);
    color:#111;
    overflow:hidden;
}

body.jcl-totem-fullscreen{
    margin:0;
    padding:0;
    background:var(--jcl-blue);
    overflow:hidden;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-brandbar,
#jcl-totem-app.jcl-totem-kiosk .jcl-header,
#jcl-totem-app.jcl-totem-kiosk > .jcl-actions,
#jcl-totem-app.jcl-totem-kiosk > .jcl-alert{
    display:none;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-grid{
    height:calc(100vh - 36px);
    grid-template-columns:minmax(260px, 1fr) minmax(340px, 0.85fr) minmax(260px, 1fr);
    grid-template-rows:minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "course1 center course2"
        "course3 center course4";
    gap:18px;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-1{
    grid-area:course1;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-2{
    grid-area:course2;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-3{
    grid-area:course3;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-4{
    grid-area:course4;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-card{
    margin-bottom:0;
    border:0;
    border-radius:10px;
    box-shadow:0 12px 30px rgba(0,0,0,0.20);
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot{
    padding:14px;
    min-height:0;
    overflow:hidden;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-active{
    display:grid;
    grid-template-rows:minmax(48px, auto) auto minmax(34px, auto);
    row-gap:8px;
    background:#ffffff;
    border-top:6px solid var(--jcl-blue);
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-empty{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,0.72);
    color:#475569;
    box-shadow:inset 0 0 0 2px rgba(255,255,255,0.55);
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-empty .jcl-totem-course{
    color:#64748b;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-header{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:2px 0 0;
    overflow:hidden;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-content{
    min-height:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:7px;
    overflow:hidden;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-main{
    grid-template-columns:minmax(120px, 0.9fr) minmax(135px, 1fr);
    gap:9px;
    align-items:center;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-checkins{
    padding:8px;
    max-height:100%;
    overflow:hidden;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-checkins h3{
    margin-bottom:6px;
    font-size:clamp(0.78rem, 0.95vw, 0.95rem);
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-checkins li{
    padding:4px 0;
    font-size:clamp(0.7rem, 0.86vw, 0.84rem);
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-footer{
    min-height:34px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:3px;
    padding-top:6px;
    text-align:left;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-footer p{
    margin:0;
}

.jcl-totem-slot-footer{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    padding-top:8px;
    text-align:left;
}

.jcl-totem-slot-footer p{
    margin:0;
    text-align:left;
}

.jcl-totem-slot-footer p:first-child{
    white-space:nowrap;
}

@media (max-width:720px){
    .jcl-totem-slot-footer,
    #jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-footer{
        align-items:flex-start;
        text-align:left;
    }
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-course{
    width:100%;
    max-height:4.2rem;
    margin:0;
    font-size:clamp(1.08rem, 1.48vw, 1.42rem);
    font-weight:900;
    line-height:1.12;
    overflow:hidden;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-pin{
    margin:0;
    padding:7px 13px;
    font-size:1.22rem;
    line-height:1.1;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-qr{
    width:min(20vh, 170px);
    height:auto;
    aspect-ratio:1 / 1;
    margin:0;
    flex:0 0 auto;
    overflow:hidden;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-qr canvas,
#jcl-totem-app.jcl-totem-kiosk .jcl-totem-qr img,
#jcl-totem-app.jcl-totem-kiosk .jcl-totem-qr svg{
    width:100% !important;
    height:100% !important;
    object-fit:contain;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-slot-content .jcl-muted{
    margin:0;
    font-size:0.76rem;
    line-height:1.2;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-company{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:100%;
    margin:0;
    padding:9px;
    box-sizing:border-box;
    border-radius:10px;
    background:var(--jcl-blue);
    border:2px solid rgba(255,255,255,0.92);
    color:#fff;
    box-shadow:none;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-company-logo{
    width:58px;
    height:58px;
    object-fit:contain;
    flex:0 0 auto;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-company-info{
    display:flex;
    flex-direction:column;
    min-width:0;
    text-align:left;
    font-size:0.78rem;
    line-height:1.2;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-company-info strong{
    font-size:0.92rem;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-logo-center{
    display:block;
    max-width:min(82%, 280px);
    max-height:92px;
    margin:0 auto;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-center{
    grid-area:center;
    display:grid;
    grid-template-rows:auto minmax(0, 1fr) auto;
    gap:12px;
    padding:0;
    min-height:0;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-center-box{
    border-radius:10px;
    box-sizing:border-box;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-scan-box{
    min-height:0;
    padding:14px;
    background:#fff;
    box-shadow:0 12px 30px rgba(0,0,0,0.20);
    display:flex;
    flex-direction:column;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-tatami-box{
    min-height:76px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:transparent;
    border:0;
    box-shadow:none;
    padding:0;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-scan-box h2{
    margin:0 0 10px;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-instructions{
    margin-bottom:10px;
    padding:9px 10px;
    font-size:clamp(0.76rem, 0.95vw, 0.9rem);
    line-height:1.25;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-instructions section{
    margin-bottom:9px;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-instructions section:last-child{
    padding-top:8px;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-instructions h3{
    margin-bottom:4px;
    font-size:clamp(0.84rem, 1.05vw, 1rem);
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-instructions ol{
    margin-top:2px;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-instructions li{
    margin-bottom:2px;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-video{
    flex:0 1 auto;
    min-height:190px;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-result{
    margin:10px 0 8px;
    padding:10px;
    line-height:1.2;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-exit{
    display:block;
    position:fixed;
    top:14px;
    right:14px;
    z-index:50;
    border:1px solid rgba(255,255,255,0.75);
    border-radius:8px;
    background:rgba(0,0,0,0.70);
    color:#fff;
    padding:9px 14px;
    font-weight:bold;
    cursor:pointer;
    opacity:0;
    pointer-events:none;
    transition:opacity 0.2s ease;
}

#jcl-totem-app.jcl-totem-kiosk .jcl-totem-exit.jcl-totem-exit-visible{
    opacity:1;
    pointer-events:auto;
}

@media (max-width:700px){
    .jcl-page{
        padding:12px;
    }

    .jcl-header{
        display:flex;
        align-items:flex-start;
        justify-content:space-between;
        gap:10px;
    }

    .jcl-header > div:first-child{
        flex:1 1 0;
        min-width:0;
    }

    .jcl-user-box{
        flex:0 0 auto;
        max-width:50%;
        min-width:0;
        text-align:right;
        margin-top:0;
        font-size:0.92rem;
        line-height:1.25;
        overflow-wrap:anywhere;
    }

    .jcl-nav-operativa{
        display:block;
        margin-bottom:16px;
    }

    .jcl-nav-mobile-toggle{
        display:block;
        width:100%;
        margin:0 0 8px;
        padding:11px 14px;
        border:1px solid var(--jcl-blue);
        border-radius:9px;
        background:var(--jcl-blue);
        color:#fff;
        font-weight:bold;
        text-align:center;
        cursor:pointer;
        box-shadow:0 2px 6px rgba(0,0,0,0.16);
    }

    .jcl-nav-operativa-links{
        display:none;
    }

    .jcl-nav-operativa.is-open .jcl-nav-operativa-links{
        display:block;
    }

    .jcl-nav-operativa .jcl-button,
    .jcl-nav-operativa .jcl-actions a,
    .jcl-nav-operativa .jcl-actions button,
    .jcl-nav-operativa .jcl-actions summary,
    .jcl-nav-operativa a,
    .jcl-nav-operativa summary{
        width:100%;
        margin:0 0 7px;
        padding:10px 12px;
        font-size:0.96rem;
        box-sizing:border-box;
        text-align:center;
    }

    .jcl-nav-menu{
        width:100%;
    }

    .jcl-nav-menu-links{
        position:static;
        width:100%;
        box-sizing:border-box;
        margin:0 0 8px;
    }

    .jcl-totem-grid{
        grid-template-columns:1fr;
    }

    .jcl-totem-slot-1,
    .jcl-totem-slot-2,
    .jcl-totem-slot-3,
    .jcl-totem-slot-4,
    .jcl-totem-center{
        grid-column:1;
        grid-row:auto;
    }

    .jcl-brandbar{
        display:block;
    }

    .jcl-brand-info p:first-of-type strong{
        display:none;
    }

    .jcl-brand-info p:nth-of-type(n+2){
        display:none;
    }

    .jcl-brand-left{
        margin-bottom:14px;
    }

    .jcl-brand-right{
        justify-content:center;
        align-items:center;
        max-width:100%;
        text-align:center;
    }

    .jcl-brand-version{
        text-align:center;
    }

    .jcl-brandbar img.jcl-brand-logo{
        width:96px !important;
        max-width:96px !important;
        max-height:96px !important;
    }

    .jcl-brandbar img.jcl-program-logo{
        max-width:100% !important;
        max-height:90px !important;
    }

    .jcl-table{
        font-size:14px;
    }

    .jcl-checkin-brandbar{
        padding:12px;
    }

    .jcl-checkin-brandbar .jcl-brand-left{
        display:flex;
        gap:12px;
        align-items:center;
        margin-bottom:10px;
    }

    .jcl-checkin-brandbar .jcl-brand-info h1{
        font-size:1.1em;
    }

    .jcl-checkin-brandbar .jcl-brand-info p{
        font-size:12px;
    }

    .jcl-checkin-brandbar img.jcl-brand-logo{
        width:58px !important;
        max-width:58px !important;
        max-height:58px !important;
    }

    .jcl-checkin-brandbar img.jcl-program-logo{
        max-width:190px !important;
        max-height:64px !important;
    }

    .jcl-checkin-card{
        padding:16px;
    }

    .jcl-checkin-layout{
        grid-template-columns:1fr;
    }

    .jcl-qr-code{
        width:230px;
        height:230px;
    }
}

@media (max-width:768px){
    .jcl-page{
        padding:14px;
        font-size:17px;
        line-height:1.5;
    }

    .jcl-container{
        max-width:100%;
    }

    .jcl-header{
        display:flex;
        align-items:flex-start;
        justify-content:space-between;
        gap:10px;
        margin-bottom:16px;
    }

    .testata.jcl-header{
        display:flex;
        align-items:flex-start;
        justify-content:space-between;
        gap:10px;
        margin-bottom:16px;
    }

    .testata.jcl-header > div:first-child{
        flex:1 1 0;
        min-width:0;
    }

    .jcl-user-box{
        flex:0 0 auto;
        max-width:50%;
        min-width:0;
        text-align:right;
        margin-top:0;
        font-size:0.92rem;
        line-height:1.25;
        overflow-wrap:anywhere;
    }

    .testata.jcl-header .jcl-user-box{
        flex:0 1 46%;
        min-width:0;
        max-width:none;
        text-align:right;
        margin-top:0;
        font-size:0.92rem;
        line-height:1.25;
        overflow-wrap:anywhere;
    }

    .jcl-header h1{
        font-size:1.8rem;
        line-height:1.2;
    }

    .jcl-header h2{
        font-size:1.45rem;
        line-height:1.25;
    }

    .jcl-muted{
        line-height:1.4;
    }

    .jcl-header > div:first-child{
        flex:1 1 0;
        min-width:0;
    }

    .jcl-brandbar{
        padding:16px;
        align-items:flex-start;
    }

    .jcl-brand-left{
        gap:14px;
        align-items:flex-start;
    }

    .jcl-brand-info h1{
        font-size:1.45rem;
        line-height:1.2;
    }

    .jcl-brand-info p{
        font-size:0.98rem;
        line-height:1.35;
    }

    .jcl-brandbar img.jcl-brand-logo{
        width:82px !important;
        max-width:82px !important;
        max-height:82px !important;
    }

    .jcl-brandbar img.jcl-program-logo{
        max-width:100% !important;
        max-height:88px !important;
    }

    .jcl-card{
        padding:16px;
        font-size:1rem;
        line-height:1.45;
    }

    .jcl-login-card{
        padding:22px;
    }

    .jcl-login-input{
        padding:15px;
        font-size:1rem;
    }

    .jcl-login-button{
        padding:16px 20px;
        font-size:1.05rem;
    }

    .jcl-card h1,
    .jcl-card h2,
    .jcl-card h3{
        line-height:1.25;
    }

    .jcl-alert{
        padding:14px 16px;
        font-size:1rem;
        line-height:1.4;
    }

    .jcl-actions{
        display:flex;
        flex-wrap:wrap;
        gap:10px;
    }

    .jcl-button,
    .jcl-actions a,
    .jcl-actions button,
    .jcl-actions summary{
        margin:0;
        padding:14px 18px;
        font-size:1rem;
        line-height:1.2;
        white-space:normal;
    }

    .jcl-input,
    .jcl-select{
        width:100%;
        min-height:46px;
        font-size:1rem;
    }

    .jcl-input[type="checkbox"],
    .jcl-input[type="radio"]{
        width:auto;
        min-height:0;
    }

    input[type="file"].jcl-input{
        padding:12px;
        height:auto;
    }

    .jcl-form-row{
        margin-bottom:16px;
    }

    .jcl-form-row label{
        display:block;
        margin-bottom:8px;
        line-height:1.35;
    }

    .jcl-users-list,
    .jcl-users-grid{
        grid-template-columns:1fr;
        gap:14px;
    }

    .jcl-user-card{
        padding:14px;
    }

    .jcl-user-main-row{
        grid-template-columns:1fr;
        gap:12px;
    }

    .jcl-user-summary{
        padding-right:0;
        padding-bottom:12px;
        border-right:0;
        border-bottom:1px solid #e5eaf0;
    }

    .jcl-user-badges{
        justify-content:flex-start;
        margin-top:10px;
    }

    .jcl-user-edit-grid,
    .jcl-user-fields-grid,
    .jcl-user-actions-row,
    .jcl-user-card-actions,
    .jcl-user-security-row,
    .jcl-user-password-form,
    .jcl-user-admin-row{
        grid-template-columns:1fr;
    }

    .jcl-user-card .jcl-permissions-grid{
        grid-template-columns:1fr;
    }

    .jcl-user-actions-row .jcl-button,
    .jcl-user-card-actions .jcl-button,
    .jcl-user-security-row .jcl-button,
    .jcl-user-password-form .jcl-button,
    .jcl-user-admin-row .jcl-button{
        width:100%;
    }

    .jcl-user-save-actions{
        align-items:stretch;
        flex-direction:column;
    }

    .jcl-table{
        display:block;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        font-size:0.98rem;
        line-height:1.35;
    }

    .jcl-athletes-mobile-list{
        gap:10px;
    }

    .jcl-athlete-mobile-actions .jcl-button,
    .jcl-athlete-mobile-actions button{
        margin:0;
        padding:10px 12px;
        font-size:0.94rem;
        line-height:1.2;
    }

    .jcl-table th,
    .jcl-table td{
        padding:10px;
        min-width:110px;
    }

    .jcl-checkin-box{
        gap:16px;
    }

    .jcl-pin-value{
        font-size:clamp(3rem, 18vw, 5.2rem);
        line-height:1;
    }

    .jcl-summary-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }

    .jcl-scanner-video{
        max-height:58vh;
        object-fit:cover;
    }

    .jcl-qr-code-large{
        width:300px;
        height:300px;
    }

    .jcl-tessera-public-wrap{
        max-width:100%;
    }

    .jcl-tessera-card{
        width:min(100%, 85mm);
        height:auto;
    }

    .login-card,
    .dashboard-card{
        max-width:100%;
        margin:20px auto;
    }
}

@media (max-width:480px){
    .jcl-page{
        padding:10px;
        font-size:18px;
    }

    .jcl-modal{
        padding:20px;
    }

    .jcl-import-preview-modal{
        width:100%;
        max-height:calc(100dvh - 20px);
        padding:16px;
    }

    .jcl-modal-actions{
        flex-direction:column;
    }

    .jcl-modal-actions .jcl-button{
        width:100%;
    }

    .jcl-brandbar{
        padding:14px;
    }

    .jcl-brand-left{
        display:flex;
        gap:12px;
    }

    .jcl-brand-info h1{
        font-size:1.25rem;
    }

    .jcl-brand-info p{
        font-size:0.92rem;
    }

    .jcl-brandbar img.jcl-brand-logo{
        width:68px !important;
        max-width:68px !important;
        max-height:68px !important;
    }

    .jcl-brandbar img.jcl-program-logo{
        max-height:70px !important;
        margin-left:auto;
        margin-right:auto;
    }

    .jcl-header h1{
        font-size:1.55rem;
    }

    .jcl-button,
    .jcl-actions a,
    .jcl-actions button,
    .jcl-actions summary{
        width:100%;
        box-sizing:border-box;
        text-align:center;
        padding:10px 12px;
        font-size:0.96rem;
    }

    .jcl-nav-menu{
        width:100%;
    }

    .jcl-nav-menu-links{
        position:static;
        width:100%;
        box-sizing:border-box;
        margin-top:8px;
    }

    .jcl-card{
        padding:14px;
    }

    .jcl-table th,
    .jcl-table td{
        min-width:120px;
    }

    .jcl-summary-grid{
        grid-template-columns:1fr;
    }

    .jcl-checkin-card{
        padding:14px;
    }

    .jcl-checkin-form .jcl-input{
        min-height:54px;
        font-size:1.1rem;
    }

    .jcl-checkin-button{
        min-height:54px;
        font-size:1.05rem;
    }

    .jcl-qr-code-large{
        width:260px;
        height:260px;
    }

    .jcl-tessera-public-page{
        padding:10px;
    }
}

@media (max-width:768px){
    .jcl-nav-operativa.jcl-nav-role-istruttore .jcl-nav-operativa-links{
        width:100%;
        text-align:center;
    }

    .jcl-nav-operativa.jcl-nav-role-istruttore .jcl-nav-operativa-links > a{
        display:inline-block;
        width:auto;
        min-width:min(100%, 220px);
        max-width:100%;
        margin:0 auto 7px;
    }
}

@media print{
    .jcl-app-footer{
        display:none !important;
    }

    .jcl-modal-backdrop,
    .jcl-tessera-download-actions,
    .jcl-tessera-export-test-button,
    .jcl-tessera-export-test-status,
    .jcl-tessera-back-row{
        display:none !important;
    }
}
.pt-intermediate-marker{display:inline-block;box-sizing:border-box;flex:none;width:16px;height:16px;border:1px solid #334155;border-radius:2px;background:linear-gradient(to right,var(--pt-intermedio-primo,#e2e8f0) 50%,var(--pt-intermedio-secondo,#e2e8f0) 50%);vertical-align:middle}
