.tec-main-content > .fs-hub-page,
.tec-main-content-stack > .fs-hub-page,
.tec-main-content > .tec-dettaglio-preview,
.tec-main-content-stack > .tec-dettaglio-preview,
.tec-main-content-stack > .tec-workspace-auto-hero-wrap {
    margin: 0 -1.1rem 0;
    padding: 0 1.1rem 1.25rem;
    width: calc(100% + 2.2rem);
    max-width: none;
    border-radius: 0;
}

@media (max-width: 991.98px) {
    .tec-main-content > .fs-hub-page,
    .tec-main-content-stack > .fs-hub-page,
    .tec-main-content > .tec-dettaglio-preview,
    .tec-main-content-stack > .tec-dettaglio-preview,
    .tec-main-content-stack > .tec-workspace-auto-hero-wrap {
        margin: 0 -1rem 0;
        padding: 0 1rem 1.5rem;
        width: calc(100% + 2rem);
    }
}

.fs-hub-page {
    --tec-primary: #1fa3b3;
    --tec-primary-dark: #13717d;
    --tec-soft: #e8f8fb;
    --tec-success: #198754;
    --tec-warning: #f59e0b;
    --tec-danger: #dc3545;
    --tec-blue: #2563eb;
    --tec-text: #16202a;
    --tec-muted: #64748b;
    --tec-border: #d9e2ea;
    --tec-border-soft: #edf2f7;
    --tec-bg: #f4f7f9;
    margin: 0 0 16px;
    padding: 0 0 4px;
    color: var(--tec-text);
    font-size: 12px;
    background: linear-gradient(180deg, #eef6f8 0%, #f4f7f9 280px, #f7f9fb 100%);
    border-radius: 14px;
}

.fs-hub-page * {
    box-sizing: border-box;
}

.fs-hub-page a:not(.btn):not(.tab-main):not(.tec-az-tab):not(.tab-btn):not(.nav-link):not(.sub-tab) {
    text-decoration: none;
    color: inherit;
}

.fs-hub-page .hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(217, 226, 234, .95);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.fs-form-sicurezza-hub-page > .hero.hero--sticky {
    position: sticky;
    top: var(--tec-form-sic-hub-hero-top, var(--tec-headbar-height, 58px));
    z-index: var(--tec-z-sticky-page, 20);
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.tec-wrapper.tec-wrapper-azienda-context .fs-form-sicurezza-hub-page > .hero.hero--sticky {
    top: var(--tec-form-sic-hub-hero-top, var(--tec-headbar-azienda-height, 96px));
}

.fs-form-sicurezza-hub-page .tec-layout-hub-risultati .table-wrap {
    border-top: none;
    border-radius: 0 0 14px 14px;
    max-height: calc(100vh - 340px);
}

.fs-form-sicurezza-hub-page .tec-layout-hub-risultati > .fs-hub-pivot-wrap > .table-wrap {
    border: none;
    border-radius: 0 0 14px 14px;
}

.fs-hub-page .hero::after {
    content: "";
    position: absolute;
    right: -75px;
    top: -95px;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: rgba(31, 163, 179, .13);
    pointer-events: none;
}

.fs-hub-page .hero-title,
.fs-hub-page .hero-actions {
    position: relative;
    z-index: 1;
}

.fs-hub-page .hero h1 {
    margin: 0;
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 900;
    color: #10202b;
}

.fs-hub-page .hero p {
    max-width: 850px;
    margin: 6px 0 0;
    color: var(--tec-muted);
    line-height: 1.45;
    font-size: 12px;
}

.fs-hub-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.fs-hub-page .fs-hub-alerts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.fs-hub-page .fs-hub-alerts .alert {
    margin: 0;
    border-radius: 14px;
}

.fs-hub-page .tabs-main {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.fs-hub-page .tab-main {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid #64748b;
    border-radius: 999px;
    background: #fff;
    color: #1e293b !important;
    font-weight: 800;
    font-size: 11.5px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .06);
}

.fs-hub-page .tab-main.active,
.fs-hub-page .tab-main:hover {
    text-decoration: none;
}

.fs-hub-page .tab-main.active {
    background: var(--tec-primary);
    border-color: var(--tec-primary-dark);
    color: #fff !important;
}

.fs-hub-page .panel {
    margin-bottom: 16px;
    border: 1px solid var(--tec-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .055);
    overflow: hidden;
}

/* Vedi tecsial-panels.css: in griglia il gap sostituisce margin sibling/bottom */
.fs-hub-page :is([class*="-grid"], [class*="-cards"], .workspace-grid) > .panel {
    margin-top: 0;
    margin-bottom: 0;
}

.fs-hub-page .panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--tec-border-soft);
    background: #f8fafc;
}

.fs-hub-page .panel-header strong {
    font-size: 14px;
    color: #1f2937;
}

.fs-hub-page .panel-body {
    padding: 16px;
}

.fs-hub-page .filters {
    display: grid;
    grid-template-columns: 110px 130px minmax(210px, 1fr) minmax(220px, 1.2fr) 150px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.fs-hub-page .field label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.fs-hub-page .field input {
    width: 100%;
    height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 8px 11px;
    background: #fff;
    outline: none;
    font-size: 12px;
}

.fs-hub-page .field input:focus {
    border-color: var(--tec-primary);
    box-shadow: 0 0 0 3px rgba(31, 163, 179, .14);
}

.fs-hub-page .sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 12px;
    margin: 0 0 12px;
    border-bottom: 1px solid var(--tec-border);
    list-style: none;
}

.fs-hub-page .sub-tabs li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fs-hub-page .sub-tab {
    appearance: none;
    border: 1px solid #64748b;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
    padding: 12px 16px;
    margin-right: 8px;
    color: #1e293b;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}

.fs-hub-page .sub-tab.active {
    background: #fff;
    color: var(--tec-primary-dark);
    border-color: var(--tec-primary-dark);
    position: relative;
}

.fs-hub-page .sub-tab.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 4px;
    border-radius: 999px;
    background: var(--tec-primary);
}

.fs-hub-page #corsi-hub-portale-tabcontent .tab-pane {
    display: none;
}

.fs-hub-page #corsi-hub-portale-tabcontent .tab-pane.active {
    display: block;
}

.fs-hub-page .table-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: var(--tec-muted);
    font-size: 12px;
    font-weight: 800;
}

.fs-hub-page .table-tools-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fs-hub-page .table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--tec-border);
    border-radius: 14px;
    background: #fff;
    max-height: calc(100vh - 340px);
    scrollbar-width: thin;
    scrollbar-color: var(--tec-primary) #dfe7ee;
}

.fs-hub-page .table-wrap::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

.fs-hub-page .table-wrap::-webkit-scrollbar-track {
    background: #e8eef3;
}

.fs-hub-page .table-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--tec-primary), var(--tec-primary-dark));
    border-radius: 999px;
    border: 3px solid #e8eef3;
}

.fs-hub-page .data-table {
    width: 100%;
    min-width: max-content;
    border-collapse: collapse;
    font-size: 12px;
    margin: 0;
}

.fs-hub-page .data-table th,
.fs-hub-page .data-table td {
    padding: 10px;
    border-bottom: 1px solid var(--tec-border-soft);
    vertical-align: middle;
    text-align: left;
}

.fs-hub-page .data-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f3f7f9;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .035em;
    white-space: nowrap;
}

.fs-hub-page .data-table.table-sortable thead th.tec-sortable-th .tec-th-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.fs-hub-page .data-table.table-sortable thead th.tec-sortable-th .tec-th-label {
    cursor: pointer;
}

.fs-hub-page .data-table tbody tr:hover td {
    background: #f9fcfd;
}

/* Righe zebra invertite (dispari = grigio chiaro, pari = bianco) */
.fs-form-sicurezza-hub-page .data-table tbody tr:nth-child(odd):not(.pivot-detail-row) td {
    background: #fafbfc;
}

.fs-form-sicurezza-hub-page .data-table tbody tr:nth-child(even):not(.pivot-detail-row) td {
    background: #fff;
}

.fs-form-sicurezza-hub-page .data-table tbody tr:nth-child(odd):not(.pivot-detail-row):hover td {
    background: #f3fafb;
}

.fs-form-sicurezza-hub-page .data-table tbody tr:nth-child(even):not(.pivot-detail-row):hover td {
    background: #f9fcfd;
}

.fs-hub-page .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.fs-hub-page .badge-old {
    background: #e2e8f0;
    color: #334155;
}

.fs-hub-page .badge-new {
    background: #dff7ea;
    color: #146c43;
}

.fs-hub-page .badge-info {
    background: #e0f7fb;
    color: #0f6674;
}

.fs-hub-page .badge-warn {
    background: #fff3cd;
    color: #8a5a00;
}

.fs-hub-page .badge-stato-aperta {
    background: #198754;
    color: #fff;
}

.fs-hub-page .badge-stato-chiusa {
    background: #fd7e14;
    color: #fff;
}

.fs-hub-page .badge-stato-fatturata {
    background: #dc3545;
    color: #fff;
}

.fs-hub-page .badge-num-corsi-aperti {
    background: #198754;
    color: #fff;
}

.fs-hub-page .badge-num-corsi-chiusi {
    background: #dc3545;
    color: #fff;
}

.fs-hub-page .badge-num-corsi-misto {
    background: #fd7e14;
    color: #fff;
}

.fs-hub-page .muted {
    color: var(--tec-muted);
}

.fs-hub-page .link-protocollo-finale {
    color: var(--tec-primary-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fs-hub-page .link-protocollo-finale:hover,
.fs-hub-page .link-protocollo-finale:focus-visible {
    color: #0f5a63;
}

.fs-hub-page .fs-hub-note {
    margin: 0 0 12px;
    color: var(--tec-muted);
    font-size: 12px;
    line-height: 1.45;
}

.fs-hub-page .cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.fs-hub-page .quick-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--tec-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .045);
}

.fs-hub-page .quick-card h2 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #1f2937;
    font-weight: 900;
}

.fs-hub-page .quick-card p {
    margin: 0 0 16px;
    color: var(--tec-muted);
    line-height: 1.45;
    flex: 1;
    font-size: 12px;
}

.fs-hub-page .panel-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.fs-hub-page .panel-meta {
    color: var(--tec-muted);
    font-size: 12px;
    font-weight: 800;
}

.fs-hub-page .btn,
.fs-hub-page a.btn,
.fs-hub-page button.btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: .16s ease;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
    line-height: 1.2;
    --bs-btn-box-shadow: none;
}

.fs-hub-page .btn:disabled,
.fs-hub-page button.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fs-hub-page .btn:hover,
.fs-hub-page .btn:focus-visible {
    transform: translateY(-1px);
    text-decoration: none !important;
}

.fs-hub-page .btn-primary,
.fs-hub-page a.btn-primary,
.fs-hub-page button.btn-primary {
    background: var(--tec-primary) !important;
    border-color: var(--tec-primary-dark) !important;
    color: #fff !important;
}

.fs-hub-page .btn-primary:hover,
.fs-hub-page .btn-primary:focus-visible {
    background: var(--tec-primary-dark) !important;
    border-color: #0f5a63 !important;
    color: #fff !important;
}

.fs-hub-page .btn-success,
.fs-hub-page a.btn-success,
.fs-hub-page button.btn-success {
    background: var(--tec-success) !important;
    border-color: #146c43 !important;
    color: #fff !important;
}

.fs-hub-page .btn-success:hover,
.fs-hub-page .btn-success:focus-visible {
    background: #146c43 !important;
    border-color: #0f5132 !important;
    color: #fff !important;
}

.fs-hub-page .btn-blue,
.fs-hub-page a.btn-blue {
    background: var(--tec-blue) !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}

.fs-hub-page .btn-blue:hover,
.fs-hub-page .btn-blue:focus-visible {
    background: #1d4ed8 !important;
    border-color: #1e40af !important;
    color: #fff !important;
}

.fs-hub-page .btn-dark,
.fs-hub-page a.btn-dark,
.fs-hub-page button.btn-dark {
    background: #111827 !important;
    border-color: #111827 !important;
    color: #fff !important;
}

.fs-hub-page .btn-dark:hover,
.fs-hub-page .btn-dark:focus-visible {
    background: #0b1220 !important;
    border-color: #0b1220 !important;
    color: #fff !important;
}

.fs-hub-page .btn-outline,
.fs-hub-page a.btn-outline,
.fs-hub-page button.btn-outline,
.fs-hub-page .btn-outline-secondary,
.fs-hub-page a.btn-outline-secondary,
.fs-hub-page button.btn-outline-secondary {
    background: #fff !important;
    border-color: #64748b !important;
    color: #1e293b !important;
}

.fs-hub-page .btn-outline:hover,
.fs-hub-page .btn-outline:focus-visible,
.fs-hub-page .btn-outline-secondary:hover,
.fs-hub-page .btn-outline-secondary:focus-visible {
    background: #f8fafc !important;
    border-color: var(--tec-primary-dark) !important;
    color: var(--tec-primary-dark) !important;
}

.fs-hub-page .btn-outline-primary,
.fs-hub-page a.btn-outline-primary {
    background: #fff !important;
    border-color: var(--tec-primary-dark) !important;
    color: var(--tec-primary-dark) !important;
}

.fs-hub-page .btn-outline-primary:hover,
.fs-hub-page .btn-outline-primary:focus-visible {
    background: var(--tec-soft) !important;
    border-color: var(--tec-primary-dark) !important;
    color: #0f5a63 !important;
}

.fs-hub-page .btn-outline-success,
.fs-hub-page a.btn-outline-success,
.fs-hub-page button.btn-outline-success {
    background: #fff !important;
    border-color: #146c43 !important;
    color: #146c43 !important;
}

.fs-hub-page .btn-outline-success:hover,
.fs-hub-page .btn-outline-success:focus-visible {
    background: #ecfdf3 !important;
    border-color: #0f5132 !important;
    color: #0f5132 !important;
}

.fs-hub-page .btn-sm {
    min-height: 32px;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 12px;
}

.fs-hub-page .fs-hub-pivot-wrap .card {
    border: 1px solid var(--tec-border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
    margin: 0;
}

.fs-hub-page .fs-hub-pivot-wrap .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid var(--tec-border);
    border-radius: 0;
}

.fs-hub-page .fs-hub-pivot-wrap .card-body {
    padding: 0;
}

.fs-hub-page .fs-hub-pivot-wrap .card .table-responsive {
    width: 100%;
    overflow: auto;
    border: 0;
    border-radius: 0;
    background: #fff;
    max-height: calc(100vh - 360px);
    scrollbar-width: thin;
    scrollbar-color: var(--tec-primary) #dfe7ee;
}

.fs-hub-page .fs-hub-pivot-wrap .table {
    font-size: 12px;
    margin: 0;
}

.fs-hub-page .fs-hub-pivot-wrap .data-table > thead > tr > th,
.fs-hub-page .fs-hub-pivot-wrap .data-table .data-table > thead > tr > th,
.fs-hub-page .fs-hub-pivot-wrap .table-sortable > thead > tr > th,
.fs-hub-page .fs-hub-pivot-wrap .table-sortable .data-table > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f3f7f9 !important;
    color: #475569 !important;
    border-color: var(--tec-border-soft, #e8eef2) !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    box-shadow: 0 1px 0 var(--tec-border-soft, #e8eef2);
}

.fs-hub-page .fs-hub-pivot-wrap .data-table tbody tr:hover td,
.fs-hub-page .fs-hub-pivot-wrap .table-sortable tbody tr:hover td {
    background: #f9fcfd;
}

.fs-form-sicurezza-hub-page .fs-hub-pivot-wrap .data-table tbody tr:nth-child(odd):not(.pivot-detail-row) td,
.fs-form-sicurezza-hub-page .fs-hub-pivot-wrap .table-sortable tbody tr:nth-child(odd):not(.pivot-detail-row) td {
    background: #fafbfc;
}

.fs-form-sicurezza-hub-page .fs-hub-pivot-wrap .data-table tbody tr:nth-child(even):not(.pivot-detail-row) td,
.fs-form-sicurezza-hub-page .fs-hub-pivot-wrap .table-sortable tbody tr:nth-child(even):not(.pivot-detail-row) td {
    background: #fff;
}

.fs-hub-page .fs-hub-pivot-wrap .btn-toggle-pivot,
#modalProtocolloFinaleElenco .fs-hub-pivot-wrap .btn-toggle-pivot {
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border-radius: 10px;
    background: var(--tec-primary) !important;
    border: 1px solid var(--tec-primary-dark) !important;
    color: #fff !important;
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
    box-shadow: none;
}

.fs-hub-page .fs-hub-pivot-wrap .btn-toggle-pivot:hover,
.fs-hub-page .fs-hub-pivot-wrap .btn-toggle-pivot:focus-visible,
#modalProtocolloFinaleElenco .fs-hub-pivot-wrap .btn-toggle-pivot:hover,
#modalProtocolloFinaleElenco .fs-hub-pivot-wrap .btn-toggle-pivot:focus-visible {
    background: var(--tec-primary-dark) !important;
    border-color: var(--tec-primary-dark) !important;
    color: #fff !important;
}

.fs-hub-page .fs-hub-pivot-wrap .pivot-detail-row > td,
#modalProtocolloFinaleElenco .pivot-detail-row > td {
    padding: 0;
    border-top: 0;
    background: #f8fafc !important;
}

.fs-hub-page .fs-hub-pivot-wrap .pivot-detail-row .table,
#modalProtocolloFinaleElenco .pivot-detail-row .table {
    margin-bottom: 0;
}

#modalProtocolloFinaleElenco .fs-hub-pivot-wrap {
    --tec-primary: #1fa3b3;
    --tec-primary-dark: #13717d;
    --tec-border: #d9e2ea;
    --tec-table-header-bg: #1fa3b3;
}

#modalProtocolloFinaleElenco .fs-hub-pivot-wrap .table-responsive {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--tec-border, #d9e2ea);
    border-radius: 14px;
    background: #fff;
    max-height: 360px;
    scrollbar-width: thin;
    scrollbar-color: var(--tec-primary, #1fa3b3) #dfe7ee;
}

#modalProtocolloFinaleElenco .fs-hub-pivot-wrap .table > thead > tr > th,
#modalProtocolloFinaleElenco .fs-hub-pivot-wrap .table .table > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--tec-table-header-bg, #1fa3b3) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .035em;
    white-space: nowrap;
}

.fs-hub-page .fs-hub-pivot-wrap > p.small {
    margin-top: 12px;
    color: var(--tec-muted);
    font-size: 12px;
}

.fs-hub-page .fs-hub-pivot-wrap .btn-link {
    color: var(--tec-primary-dark);
    font-weight: 800;
    text-decoration: underline;
}

@media (max-width: 1180px) {
    .fs-hub-page .filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fs-hub-page .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablet: hub meno “desktop oversize” */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .fs-hub-page {
        font-size: 12px;
    }

    .fs-hub-page .hero {
        padding: 16px 18px;
        margin-bottom: 12px;
        border-radius: 16px;
        gap: 12px;
    }

    .fs-hub-page .hero h1 {
        font-size: 22px;
    }

    .fs-hub-page .hero-kicker {
        font-size: 11px;
    }

    .fs-hub-page .hero p {
        font-size: 12px;
    }

    .fs-hub-page .panel-header {
        padding: .5rem .85rem;
    }

    .fs-hub-page .panel-body {
        padding: .65rem .85rem;
    }

    .fs-hub-page .btn-sm {
        font-size: .75rem;
        padding: .25rem .55rem;
    }
}

@media (max-width: 767.98px) {
    .fs-hub-page .hero {
        padding: 12px 14px;
    }

    .fs-hub-page .hero h1 {
        font-size: 1.25rem;
    }

    .fs-hub-page .hero-actions {
        width: 100%;
        justify-content: stretch;
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .fs-hub-page .hero-actions .btn {
        flex: 1 1 auto;
        min-height: 40px;
    }

    .fs-hub-page .tabs-main {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.25rem;
    }

    .fs-hub-page .tab-main,
    .fs-hub-page .tabs-main .nav-link {
        flex: 0 0 auto;
        white-space: nowrap;
        min-height: 40px;
    }

    .fs-hub-page .filters {
        grid-template-columns: 1fr;
    }

    .fs-hub-page .sub-tabs {
        padding: 0;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .fs-hub-page .sub-tab {
        flex: 0 0 auto;
        width: auto;
        margin: 0;
        border-radius: 0;
        white-space: nowrap;
        text-align: left;
    }

    .fs-hub-page .cards-grid {
        grid-template-columns: 1fr;
    }
}


/* Chiudi convocazioni: giallo attivo → grigio disabilitato dopo chiusura */
.btn-chiudi-convocazioni-stato {
    min-width: 10.75rem;
    white-space: nowrap;
}

.btn-chiudi-convocazioni-chiuso,
.btn-chiudi-convocazioni-chiuso:disabled,
.btn-chiudi-convocazioni-chiuso.disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    box-shadow: none;
}
