:root {
    --cb6-blu: #005f8f;
    --cb6-blu-chiaro: #0086b3;
    --cb6-verde: #8cc63f;
    --cb6-grigio-bg: #f4f7f9;
    --cb6-grigio-bordo: #d7dee6;
    --cb6-rosso: #c9302c;
    --cb6-testo: #263238;
}

.cb6-page {
    max-width: 1100px;
    margin: 25px auto;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--cb6-testo);
}

.cb6-panel {
    background: #fff;
    border: 1px solid var(--cb6-grigio-bordo);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    overflow: hidden;
}

.cb6-header {
    background: linear-gradient(90deg, var(--cb6-blu), var(--cb6-blu-chiaro));
    color: #fff;
    padding: 18px 24px;
    border-bottom: 4px solid var(--cb6-verde);
}

.cb6-header h3 {
    margin: 0;
    font-size: 21px;
    font-weight: bold;
}

.cb6-header p {
    margin: 6px 0 0;
    font-size: 13px;
    opacity: .95;
}

.cb6-body {
    padding: 24px;
}
.cb6-dt-toolbar {
    margin-bottom: 15px;
}

.cb6-dt-footer {
    margin-top: 15px;
}

.cb6-dt-toolbar .dataTables_filter {
    text-align: right;
}

.cb6-dt-toolbar .dataTables_filter input {
    border: 1px solid #c8d0d8;
    border-radius: 4px;
    padding: 6px 8px;
    margin-left: 6px;
}

.dataTables_wrapper .pagination {
    margin: 0;
    float: right;
}

.dataTables_wrapper .pagination > li > a,
.dataTables_wrapper .pagination > li > span {
    color: #005f8f;
    border: 1px solid #d7dee6;
}

.dataTables_wrapper .pagination > .active > a,
.dataTables_wrapper .pagination > .active > span {
    background: #005f8f;
    border-color: #005f8f;
    color: #fff;
}

.dt-buttons .btn {
    margin-right: 6px;
}

.cb6-box-warning {
    border-left: 5px solid var(--cb6-rosso);
    background: #fff7f7;
    padding: 14px 18px;
    margin-bottom: 22px;
    color: #7a1f1f;
}

.cb6-box-info {
    border-left: 5px solid var(--cb6-blu);
    background: #f3f9fc;
    padding: 14px 18px;
    margin-bottom: 22px;
}

.cb6-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 22px;
}

.cb6-detail-table th {
    width: 28%;
    background: var(--cb6-grigio-bg);
    padding: 12px;
    border-bottom: 1px solid #dde3e8;
    text-align: left;
}

.cb6-detail-table td {
    padding: 12px;
    border-bottom: 1px solid #dde3e8;
}

.cb6-actions {
    border-top: 1px solid #e1e6ea;
    padding-top: 18px;
    text-align: right;
}

.cb6-actions .btn {
    margin-left: 8px;
}

.cb6-btn-back {
    background: #eef2f5;
    border: 1px solid #c8d0d8;
    color: #333;
}

.cb6-btn-primary {
    background: var(--cb6-blu);
    border-color: var(--cb6-blu);
    color: #fff;
}

.cb6-btn-delete {
    background: var(--cb6-rosso);
    border-color: #ac2925;
    color: #fff;
}

.cb6-file {
    font-family: Consolas, monospace;
    font-size: 13px;
    color: var(--cb6-blu);
}
.cb6-actions .btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: none;
    text-shadow: none;
}

.cb6-btn-back,
.cb6-btn-back:visited {
    background: #eef2f5 !important;
    border: 1px solid #c8d0d8 !important;
    color: #2f3b45 !important;
}

.cb6-btn-back:hover {
    background: #dde5eb !important;
    color: #2f3b45 !important;
}

.cb6-btn-delete,
.cb6-btn-delete:visited {
    background: #c9302c !important;
    border: 1px solid #ac2925 !important;
    color: #fff !important;
}

.cb6-btn-delete:hover {
    background: #a94442 !important;
    color: #fff !important;
}

.cb6-actions .glyphicon {
    margin-right: 5px;
}
.cb6-data-table thead th {
    background: #005f8f;
    color: #fff;
    font-weight: bold;
}

.dataTables_wrapper .dt-buttons .dt-button {
    background: #005f8f !important;
    border: 1px solid #005f8f !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 7px 12px !important;
    margin-right: 5px !important;
}

.dataTables_wrapper .dt-buttons .dt-button:hover {
    background: #0086b3 !important;
    color: #fff !important;
}
/* DATA TABLE - LOOK GESTIONALE */

.cb6-panel {
    border-radius: 8px;
}

.cb6-header {
    padding: 22px 28px;
}

.cb6-header h3 {
    font-size: 24px;
}

.cb6-body {
    padding: 28px;
}

.cb6-box-info {
    background: #eef8fc;
    border-left: 6px solid #005f8f;
    border-radius: 4px;
    padding: 18px 22px;
    margin-bottom: 24px;
}

.cb6-data-table {
    border: 0 !important;
    font-size: 13px;
}

.cb6-data-table thead th {
    background: #005f8f !important;
    color: #fff !important;
    border: 0 !important;
    padding: 12px 10px !important;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .3px;
}

.cb6-data-table tbody td {
    padding: 11px 10px !important;
    border-color: #e3e9ee !important;
}

.cb6-data-table tbody tr:hover {
    background: #eef8fc !important;
}

.cb6-data-table a {
    font-weight: bold;
    color: #0077aa;
}

.cb6-dt-toolbar {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e6ea;
}

.cb6-dt-toolbar .dt-buttons .btn,
.cb6-dt-toolbar .dt-buttons .dt-button {
    background: #005f8f !important;
    border: 1px solid #005f8f !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 8px 14px !important;
    margin-right: 6px !important;
    font-weight: bold !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.cb6-dt-toolbar .dt-buttons .btn:hover,
.cb6-dt-toolbar .dt-buttons .dt-button:hover {
    background: #0086b3 !important;
    color: #fff !important;
}

.cb6-dt-toolbar .dataTables_filter {
    text-align: right;
    font-weight: bold;
}

.cb6-dt-toolbar .dataTables_filter input {
    border: 1px solid #c8d0d8;
    border-radius: 4px;
    padding: 7px 10px;
    margin-left: 8px;
}

/* SISTEMA IL DISASTRO DEI PALLINI */
.dataTables_wrapper .pagination {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
    float: right;
}

.dataTables_wrapper .pagination li {
    list-style: none !important;
    display: inline-block !important;
    margin-left: 4px;
}

.dataTables_wrapper .pagination li:before {
    content: none !important;
}

.dataTables_wrapper .pagination > li > a,
.dataTables_wrapper .pagination > li > span {
    border-radius: 4px !important;
    border: 1px solid #d7dee6 !important;
    color: #005f8f !important;
    padding: 6px 10px !important;
    background: #fff !important;
}

.dataTables_wrapper .pagination > .active > a,
.dataTables_wrapper .pagination > .active > span {
    background: #005f8f !important;
    border-color: #005f8f !important;
    color: #fff !important;
}

.cb6-dt-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e1e6ea;
}

.cb6-actions {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e1e6ea;
}
.cb6-form-card {
    background: #ffffff;
    border: 1px solid #d7dee6;
    border-radius: 6px;
    padding: 22px 22px 12px 22px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,.05);
}

.cb6-form-title {
    font-size: 16px;
    font-weight: bold;
    color: #005f8f;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e6ea;
}

.cb6-form-title .glyphicon {
    margin-right: 6px;
}

.cb6-form-card label {
    font-size: 13px;
    font-weight: bold;
    color: #2f3b45;
}

.cb6-form-card .form-control {
    height: 40px;
    border: 1px solid #c8d0d8;
    border-radius: 4px;
    box-shadow: none;
}

.cb6-form-card .form-control:focus {
    border-color: #005f8f;
    box-shadow: 0 0 0 2px rgba(0,95,143,.12);
}

.cb6-help {
    display: block;
    margin-top: 5px;
    color: #7a8793;
    font-size: 12px;
}
/* FORM NUOVO INCARICO - layout pulito indipendente da Bootstrap */

.cb6-form-card {
    background: #fff;
    border: 1px solid #d7dee6;
    border-radius: 8px;
    padding: 24px;
    margin-top: 22px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.cb6-form-title {
    font-size: 17px;
    font-weight: bold;
    color: #005f8f;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e6ea;
}

.cb6-form-title .glyphicon {
    margin-right: 6px;
}

.cb6-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px 20px;
    align-items: start;
}

.cb6-field {
    min-width: 0;
}

.cb6-field-wide {
    grid-column: span 2;
}

.cb6-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: bold;
    color: #2f3b45;
}

.cb6-field .form-control {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #c8d0d8;
    border-radius: 4px;
    box-shadow: none;
    font-size: 13px;
}

.cb6-field .form-control:focus {
    border-color: #005f8f;
    box-shadow: 0 0 0 2px rgba(0,95,143,.12);
}

.cb6-help {
    display: block;
    margin-top: 6px;
    color: #7a8793;
    font-size: 12px;
}

.cb6-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e1e6ea;
    padding-top: 18px;
    margin-top: 20px;
    text-align: right;
}

.cb6-actions .btn {
    margin-left: 0;
}

@media (max-width: 900px) {
    .cb6-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cb6-field-wide {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .cb6-form-card {
        padding: 18px;
    }

    .cb6-form-grid {
        grid-template-columns: 1fr;
    }

    .cb6-field-wide {
        grid-column: span 1;
    }

    .cb6-actions {
        display: block;
    }

    .cb6-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}
.cb6-history-card {
    border: 1px solid #d7dee6;
    border-radius: 8px;
    background: #fff;
    margin: 22px 0;
    padding: 20px 22px;
    box-shadow: 0 1px 5px rgba(0,0,0,.04);
}

.cb6-history-title {
    font-size: 16px;
    font-weight: bold;
    color: #005f8f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e6ea;
}

.cb6-history-title .glyphicon {
    margin-right: 6px;
}

.cb6-history-table {
    margin-bottom: 0;
    font-size: 13px;
}

.cb6-history-table thead th {
    background: #f4f7f9;
    color: #2f3b45;
    border-bottom: 1px solid #d7dee6;
    font-weight: bold;
}

.cb6-history-table tbody td {
    vertical-align: middle;
}

.cb6-muted {
    color: #7a8793;
    font-style: italic;
}

.cb6-empty-history {
    background: #f4f7f9;
    border-left: 5px solid #8cc63f;
    padding: 14px 16px;
    color: #4f5b63;
    font-size: 13px;
}
.cb6-inline-actions {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e1e6ea;
    text-align: right;
}

.cb6-inline-actions .btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: none;
    text-shadow: none;
}

.cb6-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px 20px;
    align-items: start;
}

.cb6-field {
    min-width: 0;
}

.cb6-field-wide {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .cb6-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cb6-field-wide {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .cb6-form-grid {
        grid-template-columns: 1fr;
    }

    .cb6-field-wide {
        grid-column: span 1;
    }

    .cb6-inline-actions {
        text-align: left;
    }

    .cb6-inline-actions .btn {
        display: block;
        width: 100%;
    }
}
/* =========================================================
   CB6 INVENTARIO - DESIGN SYSTEM GESTIONALE
   Joomla 3.10 / Bootstrap 3 compatibile
   ========================================================= */

:root {
    --cb6-blu: #005f8f;
    --cb6-blu-chiaro: #0086b3;
    --cb6-verde: #8cc63f;
    --cb6-rosso: #c9302c;
    --cb6-arancio: #f0ad4e;
    --cb6-grigio-bg: #f4f7f9;
    --cb6-grigio-soft: #f8fafc;
    --cb6-grigio-bordo: #d7dee6;
    --cb6-testo: #263238;
    --cb6-muted: #6f7d88;
}

/* Layout base */

.cb6-page {
    max-width: 1120px;
    margin: 25px auto;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--cb6-testo);
}

.cb6-panel {
    background: #fff;
    border: 1px solid var(--cb6-grigio-bordo);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    overflow: hidden;
}

.cb6-header {
    background: linear-gradient(90deg, var(--cb6-blu), var(--cb6-blu-chiaro));
    color: #fff;
    padding: 22px 28px;
    border-bottom: 4px solid var(--cb6-verde);
}

.cb6-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.cb6-header p {
    margin: 6px 0 0;
    font-size: 13px;
    opacity: .95;
}

.cb6-body {
    padding: 28px;
    background: #fff;
}

/* Sezioni */

.cb6-section {
    background: #fff;
    border: 1px solid var(--cb6-grigio-bordo);
    border-radius: 8px;
    margin-bottom: 22px;
    padding: 20px 22px;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
}

.cb6-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e1e6ea;
}

.cb6-section-header h4 {
    margin: 0;
    color: var(--cb6-blu);
    font-size: 17px;
    font-weight: bold;
}

.cb6-section-header p {
    margin: 3px 0 0;
    color: var(--cb6-muted);
    font-size: 13px;
}

.cb6-section-spacer {
    margin-top: 22px;
}

/* Icone */

.cb6-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex: 0 0 42px;
}

.cb6-icon-blue { background: var(--cb6-blu); }
.cb6-icon-lightblue { background: var(--cb6-blu-chiaro); }
.cb6-icon-green { background: var(--cb6-verde); }
.cb6-icon-red { background: var(--cb6-rosso); }
.cb6-icon-orange { background: var(--cb6-arancio); }
.cb6-icon-gray { background: #7a8793; }

/* Badge */

.cb6-badge {
    margin-left: auto;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.cb6-badge-success {
    background: #edf8e5;
    color: #4d7f14;
    border: 1px solid #cce8b5;
}

.cb6-badge-warning {
    background: #fff6df;
    color: #9a6a00;
    border: 1px solid #f0d48a;
}

.cb6-badge-danger {
    background: #fff0f0;
    color: #a94442;
    border: 1px solid #e4b9b9;
}

.cb6-badge-info {
    background: #eef8fc;
    color: var(--cb6-blu);
    border: 1px solid #bee3f0;
}

.cb6-badge-muted {
    background: #f1f4f6;
    color: #6f7d88;
    border: 1px solid #dce3e8;
}

/* Griglie informative */

.cb6-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.cb6-info-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cb6-info-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.cb6-info-tile {
    background: var(--cb6-grigio-soft);
    border: 1px solid #e1e6ea;
    border-radius: 6px;
    padding: 13px 15px;
}

.cb6-info-label {
    display: block;
    margin-bottom: 5px;
    color: var(--cb6-muted);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
}

.cb6-info-tile strong {
    display: block;
    color: var(--cb6-testo);
    font-size: 14px;
    line-height: 1.35;
}

/* Box messaggi */

.cb6-box-info,
.cb6-box-warning,
.cb6-box-danger,
.cb6-box-success {
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 22px;
    border-left: 6px solid;
}

.cb6-box-info {
    background: #eef8fc;
    border-left-color: var(--cb6-blu);
}

.cb6-box-warning {
    background: #fff8e8;
    border-left-color: var(--cb6-arancio);
    color: #7a4d00;
}

.cb6-box-danger {
    background: #fff3f3;
    border-left-color: var(--cb6-rosso);
    color: #7a1f1f;
}

.cb6-box-success {
    background: #f1faeb;
    border-left-color: var(--cb6-verde);
    color: #3f6f11;
}

/* Form */

.cb6-form-card {
    background: #fff;
    border: 1px solid var(--cb6-grigio-bordo);
    border-radius: 8px;
    padding: 22px;
    margin-top: 20px;
    margin-bottom: 22px;
    box-shadow: 0 1px 5px rgba(0,0,0,.05);
}

.cb6-form-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    color: var(--cb6-blu);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e6ea;
}

.cb6-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 20px;
    align-items: start;
}

.cb6-field {
    min-width: 0;
}

.cb6-field-wide {
    grid-column: span 2;
}

.cb6-field-full {
    grid-column: 1 / -1;
}

.cb6-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: bold;
    color: #2f3b45;
}

.cb6-field .form-control,
.cb6-form-card .form-control {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #c8d0d8;
    border-radius: 4px;
    box-shadow: none;
    font-size: 13px;
}

.cb6-field textarea.form-control {
    height: auto;
    min-height: 90px;
}

.cb6-field .form-control:focus,
.cb6-form-card .form-control:focus {
    border-color: var(--cb6-blu);
    box-shadow: 0 0 0 2px rgba(0,95,143,.12);
}

.cb6-help {
    display: block;
    margin-top: 6px;
    color: var(--cb6-muted);
    font-size: 12px;
}

/* Tabelle */

.cb6-data-table,
.cb6-history-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 13px;
}

.cb6-data-table thead th,
.cb6-history-table thead th {
    background: var(--cb6-blu);
    color: #fff;
    border: 0;
    padding: 11px 10px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

.cb6-data-table tbody td,
.cb6-history-table tbody td {
    padding: 10px;
    border-top: 1px solid #e3e9ee;
    vertical-align: middle;
}

.cb6-data-table tbody tr:hover,
.cb6-history-table tbody tr:hover {
    background: #eef8fc;
}

/* Toolbar e azioni */

.cb6-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e6ea;
}

.cb6-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e1e6ea;
    padding-top: 18px;
    margin-top: 22px;
    text-align: right;
}

.cb6-inline-actions {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e1e6ea;
    text-align: right;
}

.cb6-actions .btn,
.cb6-inline-actions .btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: none;
    text-shadow: none;
}

.cb6-actions .glyphicon,
.cb6-inline-actions .glyphicon {
    margin-right: 5px;
}

.cb6-btn-back,
.cb6-btn-back:visited {
    background: #eef2f5 !important;
    border: 1px solid #c8d0d8 !important;
    color: #2f3b45 !important;
}

.cb6-btn-back:hover {
    background: #dde5eb !important;
    color: #2f3b45 !important;
}

.cb6-btn-primary,
.cb6-btn-primary:visited {
    background: var(--cb6-blu) !important;
    border: 1px solid var(--cb6-blu) !important;
    color: #fff !important;
}

.cb6-btn-primary:hover {
    background: var(--cb6-blu-chiaro) !important;
    color: #fff !important;
}

.cb6-btn-delete,
.cb6-btn-delete:visited {
    background: var(--cb6-rosso) !important;
    border: 1px solid #ac2925 !important;
    color: #fff !important;
}

.cb6-btn-delete:hover {
    background: #a94442 !important;
    color: #fff !important;
}

.cb6-btn-success,
.cb6-btn-success:visited {
    background: var(--cb6-verde) !important;
    border: 1px solid #75a832 !important;
    color: #fff !important;
}

.cb6-btn-success:hover {
    background: #75a832 !important;
    color: #fff !important;
}

/* Utility */

.cb6-muted {
    color: var(--cb6-muted);
}

.cb6-empty-state {
    background: var(--cb6-grigio-soft);
    border: 1px dashed #c8d0d8;
    border-radius: 6px;
    padding: 18px;
    color: var(--cb6-muted);
    text-align: center;
}

.cb6-file {
    font-family: Consolas, monospace;
    font-size: 13px;
    color: var(--cb6-blu);
}

/* Responsive */

@media (max-width: 900px) {
    .cb6-info-grid,
    .cb6-info-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cb6-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cb6-field-wide {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .cb6-page {
        margin: 12px;
    }

    .cb6-header {
        padding: 18px;
    }

    .cb6-header h3 {
        font-size: 20px;
    }

    .cb6-body {
        padding: 18px;
    }

    .cb6-section,
    .cb6-form-card {
        padding: 18px;
    }

    .cb6-section-header {
        align-items: flex-start;
    }

    .cb6-info-grid,
    .cb6-info-grid-2,
    .cb6-info-grid-4,
    .cb6-form-grid {
        grid-template-columns: 1fr;
    }

    .cb6-field-wide,
    .cb6-field-full {
        grid-column: span 1;
    }

    .cb6-badge {
        margin-left: 0;
    }

    .cb6-actions,
    .cb6-toolbar {
        display: block;
    }

    .cb6-actions .btn,
    .cb6-inline-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}
/* Extra per scheda dipendente - da aggiungere dopo il design system CB6 */

.cb6-employee-hero {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    margin-bottom: 22px;
    background: #f8fafc;
    border: 1px solid #d7dee6;
    border-radius: 8px;
}

.cb6-profile-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.cb6-employee-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    padding: 4px;
    background: #fff;
    border: 1px solid #d7dee6;
    flex: 0 0 92px;
    overflow: hidden;
}

.cb6-employee-avatar img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.cb6-employee-main {
    min-width: 0;
    flex: 1;
}

.cb6-employee-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.cb6-profile-kicker {
    display: block;
    margin-bottom: 4px;
    color: #6f7d88;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.cb6-profile-status {
    flex: 0 0 auto;
}

.cb6-profile-code {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 10px;
    background: #eef8fc;
    border: 1px solid #bee3f0;
    border-radius: 4px;
}

.cb6-profile-code span {
    color: #6f7d88;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.cb6-profile-code strong {
    color: #005f8f;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    letter-spacing: .2px;
}

.cb6-employee-title h2 {
    margin: 0;
    color: #263238;
    font-size: 25px;
    font-weight: bold;
    line-height: 1.2;
}

.cb6-structure-tile {
    background: #f6fbfe;
    border-color: #cfe7f3;
}

.cb6-structure-list {
    display: grid;
    gap: 3px;
}

.cb6-structure-list strong,
.cb6-structure-list span {
    display: block;
    color: #263238;
    font-size: 13px;
    line-height: 1.25;
}

.cb6-structure-list strong {
    font-weight: bold;
}

.cb6-role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
}

.cb6-role-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 3px 7px;
    border: 1px solid #bee3f0;
    border-radius: 999px;
    background: #eef8fc;
    color: #005f8f;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.1;
}

.cb6-action-panel {
    margin: 18px 0 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e1e6ea;
    border-radius: 8px;
}

.cb6-action-title {
    margin-bottom: 10px;
    color: #6f7d88;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.cb6-actions-main {
    justify-content: flex-start;
    flex-wrap: wrap;
    border-top: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    gap: 9px;
}

.cb6-actions-main .btn {
    margin: 0;
}

.cb6-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 22px;
}

.cb6-snapshot-card,
.cb6-snapshot-card:visited {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 13px 15px;
    background: #fff;
    border: 1px solid #d7dee6;
    border-left: 5px solid #005f8f;
    border-radius: 8px;
    color: #263238 !important;
    text-decoration: none !important;
    box-shadow: 0 1px 5px rgba(47, 59, 69, .05);
}

.cb6-snapshot-card:hover,
.cb6-snapshot-card:focus {
    border-color: #b9d8e7;
    box-shadow: 0 4px 12px rgba(0, 95, 143, .12);
    text-decoration: none !important;
}

.cb6-snapshot-card span {
    color: #6f7d88;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2;
    text-transform: uppercase;
}

.cb6-snapshot-card strong {
    color: #263238;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.cb6-snapshot-green {
    border-left-color: #8cc63f;
}

.cb6-snapshot-red {
    border-left-color: #d32f2f;
}

.cb6-snapshot-lightblue {
    border-left-color: #0086b3;
}

.cb6-snapshot-orange {
    border-left-color: #f0ad4e;
}

.cb6-snapshot-blue {
    border-left-color: #005f8f;
}

.cb6-btn-warning,
.cb6-btn-warning:visited {
    background: #f0ad4e !important;
    border: 1px solid #eea236 !important;
    color: #fff !important;
}

.cb6-btn-warning:hover {
    background: #ec971f !important;
    color: #fff !important;
}

.cb6-section-action {
    margin-left: auto;
    white-space: nowrap;
}

.cb6-data-table .btn-xs {
    padding: 6px 9px;
    line-height: 1.2;
    font-size: 12px;
    font-weight: bold;
}

.cb6-data-table .btn-xs .glyphicon {
    margin-right: 4px;
}

.cb6-section-header {
    flex-wrap: wrap;
}

.cb6-section-header > div:nth-child(2) {
    min-width: 0;
}

.cb6-section-header h4 {
    margin-bottom: 3px;
}

.cb6-section-header p {
    margin: 0;
    color: #6f7d88;
    font-size: 13px;
    line-height: 1.3;
}

.cb6-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    margin-left: auto;
    padding: 0 9px;
    border: 1px solid #bee3f0;
    border-radius: 999px;
    background: #eef8fc;
    color: #005f8f;
    font-size: 12px;
    font-weight: bold;
}

.cb6-section-count + .cb6-section-action {
    margin-left: 10px;
}

.cb6-dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 2px 0 14px;
    padding: 14px 12px;
    background: #f8fafc;
    border: 1px solid #e1e6ea;
    border-radius: 4px;
}

.cb6-dt-toolbar .dt-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 0;
}

.cb6-dt-toolbar .dt-buttons.btn-group {
    float: none;
    display: flex !important;
    gap: 9px;
}

.cb6-dt-toolbar .dt-buttons .btn,
.cb6-dt-toolbar .dt-buttons .dt-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    float: none !important;
    margin: 0 !important;
    padding: 8px 13px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.cb6-dt-toolbar .dt-buttons.btn-group > .btn {
    border-radius: 5px !important;
}

.cb6-dt-toolbar .dt-buttons.btn-group > .btn:first-child:not(:last-child),
.cb6-dt-toolbar .dt-buttons.btn-group > .btn:last-child:not(:first-child),
.cb6-dt-toolbar .dt-buttons.btn-group > .dropdown-toggle:not(:first-child) {
    border-radius: 5px !important;
}

.cb6-dt-toolbar .dt-buttons.btn-group > .btn + .btn,
.cb6-dt-toolbar .dt-buttons.btn-group > .btn-group + .btn,
.cb6-dt-toolbar .dt-buttons.btn-group > .btn + .btn-group {
    margin-left: 0 !important;
}

.cb6-dt-toolbar .dt-buttons .glyphicon {
    margin-right: 5px;
}

.cb6-dt-toolbar .dt-buttons .buttons-excel {
    background: #005f8f !important;
    border-color: #005f8f !important;
    color: #fff !important;
}

.cb6-dt-toolbar .dt-buttons .buttons-pdf {
    background: #c9302c !important;
    border-color: #ac2925 !important;
    color: #fff !important;
}

.cb6-dt-toolbar .dt-buttons .buttons-print,
.cb6-dt-toolbar .dt-buttons .buttons-page-length {
    background: #eef2f5 !important;
    border-color: #c8d0d8 !important;
    color: #2f3b45 !important;
}

.cb6-dt-toolbar .dt-buttons .buttons-page-length {
    margin-left: 4px !important;
}

.cb6-dt-toolbar .dataTables_filter {
    margin-left: auto;
    margin-bottom: 0;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.cb6-dt-toolbar .dataTables_filter input {
    width: 190px;
    height: 34px;
    border: 1px solid #c8d0d8;
    border-radius: 4px;
    padding: 6px 9px;
    margin-left: 8px;
    box-shadow: none;
}

.cb6-dt-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e1e6ea;
}

.cb6-dt-footer .dataTables_info {
    font-size: 12px;
    color: #6f7d88;
}

.cb6-dt-footer .pagination {
    margin: 0;
    float: right;
}

@media (max-width: 700px) {
    .cb6-employee-hero {
        display: block;
    }

    .cb6-employee-avatar {
        margin-bottom: 14px;
    }

    .cb6-employee-title {
        display: block;
    }

    .cb6-employee-title .cb6-badge {
        margin-top: 10px;
    }

    .cb6-profile-code {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .cb6-section-action {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
    }

    .cb6-snapshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cb6-dt-toolbar {
        display: block;
    }

    .cb6-dt-toolbar .dt-buttons {
        margin-bottom: 10px;
    }

    .cb6-dt-toolbar .dataTables_filter {
        margin-top: 10px;
        margin-left: 0;
        white-space: normal;
    }

    .cb6-dt-toolbar .dataTables_filter input {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .cb6-snapshot-grid {
        grid-template-columns: 1fr;
    }
}


/* Extra menu risorse umane - da aggiungere dopo il design system CB6 */

.cb6-hr-userbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #f8fafc;
    border: 1px solid #d7dee6;
    border-radius: 8px;
}

.cb6-hr-logo img {
    max-height: 72px;
    width: auto;
    display: block;
}

.cb6-hr-user {
    text-align: right;
}

.cb6-hr-user span {
    display: block;
    color: #6f7d88;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.cb6-hr-user strong {
    display: block;
    color: #263238;
    font-size: 16px;
    margin-top: 3px;
}

.cb6-hr-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cb6-hr-alert .btn {
    margin-left: auto;
}

.cb6-hr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cb6-hr-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 128px;
    padding: 18px;
    background: #fff;
    border: 1px solid #d7dee6;
    border-radius: 8px;
    color: #263238;
    text-decoration: none;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.cb6-hr-card:hover,
.cb6-hr-card:focus {
    color: #263238;
    text-decoration: none;
    border-color: #005f8f;
    box-shadow: 0 4px 12px rgba(0,95,143,.14);
    transform: translateY(-1px);
}

.cb6-hr-card-body {
    min-width: 0;
    padding-right: 8px;
}

.cb6-hr-card h4 {
    margin: 2px 0 7px;
    color: #005f8f;
    font-size: 17px;
    font-weight: bold;
}

.cb6-hr-card p {
    margin: 0;
    color: #6f7d88;
    font-size: 13px;
    line-height: 1.35;
}

.cb6-hr-card .cb6-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    margin-left: 0;
}

@media (max-width: 900px) {
    .cb6-hr-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cb6-hr-userbar {
        display: block;
    }

    .cb6-hr-user {
        text-align: left;
        margin-top: 14px;
    }

    .cb6-hr-grid {
        grid-template-columns: 1fr;
    }

    .cb6-hr-alert .btn {
        margin-left: 0;
        width: 100%;
    }
}
/* Extra pagina Dipendenti e collocazione */

.cb6-section {
    overflow: hidden;
}

.cb6-section .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cb6-people-table {
    width: 100% !important;
    min-width: 980px;
    table-layout: fixed;
}

.cb6-people-table th,
.cb6-people-table td {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.cb6-people-table th:nth-child(1),
.cb6-people-table td:nth-child(1) {
    width: 15%;
}

.cb6-people-table th:nth-child(2),
.cb6-people-table td:nth-child(2) {
    width: 12%;
}

.cb6-people-table th:nth-child(3),
.cb6-people-table td:nth-child(3) {
    width: 13%;
}

.cb6-people-table th:nth-child(4),
.cb6-people-table td:nth-child(4) {
    width: 18%;
}

.cb6-people-table th:nth-child(5),
.cb6-people-table td:nth-child(5),
.cb6-people-table th:nth-child(6),
.cb6-people-table td:nth-child(6) {
    width: 11%;
}

.cb6-people-table th:nth-child(7),
.cb6-people-table td:nth-child(7) {
    width: 20%;
}

.cb6-people-table a {
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {	
    .cb6-people-table {
        min-width: 920px;
    }
}
/* Layout applicativo Inventario CB6: sidebar + topbar
   Da aggiungere in fondo a inventario-cb6.css.
   Funziona con lo snippet index.php in outputs/protostar_index_inventario_snippet.php */

body.site {
    background: #f3f6f8 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

body.cb6-logged .navigation,
body.cb6-logged .navbar,
body.cb6-logged .navbar-inner,
body.cb6-logged .nav-collapse,
body.cb6-logged .header {
    display: none !important;
}

.cb6-app-sidebar,
.cb6-app-topbar {
    box-sizing: border-box;
}

.cb6-app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    width: 218px;
    height: 100vh;
    background: #064a68;
    color: #ffffff;
    box-shadow: 4px 0 18px rgba(47, 59, 69, 0.12);
}

.cb6-app-sidebar-head {
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    text-align: left;
}

.cb6-app-sidebar-mark {
    display: none;
}

.cb6-app-sidebar-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.cb6-app-menu {
    flex: 1;
    padding: 14px 8px;
    overflow-y: auto;
}

.cb6-app-menu-section {
    margin: 16px 0 7px;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cb6-app-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 2px 5px;
    padding: 10px 12px;
    border-radius: 5px;
    color: #e8f5fb !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.cb6-app-menu a:hover,
.cb6-app-menu a:focus {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff !important;
    text-decoration: none !important;
}

.cb6-app-menu a.cb6-active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    box-shadow: inset 4px 0 0 #8cc63f;
}

.cb6-app-menu .glyphicon {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.cb6-app-sidebar-foot {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

body.cb6-logged .body,
body.cb6-logged .footer {
    margin-left: 218px !important;
}

body.cb6-guest .body,
body.cb6-guest .footer {
    margin-left: 0 !important;
}

body.cb6-logged .body .container,
body.cb6-logged .body .container-fluid,
body.cb6-logged .footer .container,
body.cb6-logged .footer .container-fluid {
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.cb6-app-topbar {
    position: sticky;
    top: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 24px;
    background: #eaf6fb;
    border-bottom: 1px solid #cfe3ed;
    box-shadow: 0 1px 5px rgba(47, 59, 69, 0.07);
}

.cb6-app-topbar-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.cb6-app-topbar-brand img {
    display: block;
    width: auto;
    max-width: 86px;
    max-height: 44px;
    object-fit: contain;
}

.cb6-app-topbar-brand span {
    display: block;
    color: #6f7d88;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.cb6-app-topbar-brand strong {
    display: block;
    margin-top: 2px;
    color: #2f3b45;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
}

.cb6-app-topbar-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.cb6-app-topbar-user {
    min-width: 184px;
    padding: 9px 14px;
    border: 1px solid #d6ebf5;
    border-radius: 6px;
    background: #f7fcff;
    text-align: right;
}

.cb6-app-topbar-user span {
    display: block;
    color: #6f7d88;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}

.cb6-app-topbar-user strong {
    display: block;
    margin-top: 2px;
    color: #2f3b45;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.cb6-app-topbar-logout {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid #c8d0d8;
    border-radius: 5px;
    background: #eef2f5;
    color: #2f3b45 !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.cb6-app-topbar-logout:hover,
.cb6-app-topbar-logout:focus {
    background: #dfe7ed;
    color: #2f3b45 !important;
    text-decoration: none !important;
}

body.cb6-logged #content {
    box-sizing: border-box;
    width: 100% !important;
    min-height: calc(100vh - 64px);
    padding: 28px 40px !important;
    float: none !important;
    margin-left: 0 !important;
    overflow-x: hidden;
}

body.cb6-logged .cb6-page,
body.cb6-logged .cb6-panel,
body.cb6-logged .cb6-body,
body.cb6-logged .cb6-header,
body.cb6-logged .cb6-section {
    box-sizing: border-box;
    width: 100%;
}

body.cb6-logged .cb6-page {
    padding: 0 !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
}

body.cb6-logged .cb6-panel {
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(47, 59, 69, 0.06);
}

body.cb6-logged .cb6-hr-menu .cb6-body {
    overflow: hidden;
}

body.cb6-logged .cb6-hr-menu .cb6-hr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cb6-logged .cb6-section {
    max-width: none !important;
}

body.cb6-logged .cb6-section .table-responsive,
body.cb6-logged .cb6-data-table {
    width: 100% !important;
    max-width: none !important;
}

body.cb6-logged .table-responsive {
    overflow-x: auto;
}

body.cb6-logged .dataTables_wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

body.cb6-logged .cb6-hr-userbar {
    display: none !important;
}

body.cb6-logged .breadcrumb {
    display: none !important;
}

body.cb6-logged .footer {
    background: transparent !important;
    border: 0 !important;
    padding: 14px 30px !important;
}

@media (max-width: 900px) {
    .cb6-app-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        box-shadow: none;
    }

    .cb6-app-sidebar-head {
        display: none;
    }

    .cb6-app-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px;
    }

    .cb6-app-menu-section,
    .cb6-app-sidebar-foot {
        display: none;
    }

    .cb6-app-menu a {
        flex: 1 1 44%;
        justify-content: center;
        margin: 0;
    }

    body.cb6-logged .body,
    body.cb6-logged .footer {
        margin-left: 0 !important;
    }

    .cb6-app-topbar {
        position: static;
        display: block;
        min-height: 0;
        padding: 12px 15px;
    }

    .cb6-app-topbar-brand {
        margin-bottom: 8px;
    }

    .cb6-app-topbar-right {
        justify-content: space-between;
    }

    .cb6-app-topbar-user {
        text-align: left;
    }

    body.cb6-logged #content {
        padding: 16px !important;
    }
}
/* Extra report corsi annuale - da aggiungere in fondo a inventario-cb6.css */

.cb6-report-corsi .cb6-report-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e1e6ea;
    border-radius: 8px;
}

.cb6-report-corsi .cb6-report-filter strong {
    display: block;
    color: #263238;
    font-size: 24px;
    line-height: 1;
}

.cb6-report-corsi .cb6-year-switcher {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.cb6-report-corsi .cb6-year-switcher .btn {
    min-width: 64px;
    margin: 0;
}

.cb6-report-corsi .cb6-report-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.cb6-report-corsi .cb6-note-cell {
    max-width: 260px;
    color: #53636f;
    font-size: 13px;
    line-height: 1.35;
}

.cb6-report-corsi .cb6-section-header p {
    margin: 2px 0 0;
    color: #6f7d88;
    font-size: 13px;
    line-height: 1.35;
}

.cb6-report-corsi .cb6-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    margin-left: auto;
    padding: 0 9px;
    border: 1px solid #bee3f0;
    border-radius: 999px;
    background: #eef8fc;
    color: #005f8f;
    font-size: 12px;
    font-weight: bold;
}

.cb6-report-corsi .cb6-dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 2px 0 14px;
    padding: 14px 12px;
    background: #f8fafc;
    border: 1px solid #e1e6ea;
    border-radius: 4px;
}

.cb6-report-corsi .cb6-dt-toolbar .dt-buttons,
.cb6-report-corsi .cb6-dt-toolbar .dt-buttons.btn-group {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    float: none;
    margin-bottom: 0;
}

.cb6-report-corsi .cb6-dt-toolbar .dt-buttons .btn,
.cb6-report-corsi .cb6-dt-toolbar .dt-buttons .dt-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    float: none !important;
    margin: 0 !important;
    padding: 8px 13px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.cb6-report-corsi .cb6-dt-toolbar .dt-buttons.btn-group > .btn,
.cb6-report-corsi .cb6-dt-toolbar .dt-buttons.btn-group > .btn:first-child:not(:last-child),
.cb6-report-corsi .cb6-dt-toolbar .dt-buttons.btn-group > .btn:last-child:not(:first-child),
.cb6-report-corsi .cb6-dt-toolbar .dt-buttons.btn-group > .dropdown-toggle:not(:first-child) {
    border-radius: 5px !important;
}

.cb6-report-corsi .cb6-dt-toolbar .dt-buttons .glyphicon {
    margin-right: 5px;
}

.cb6-report-corsi .cb6-dt-toolbar .dataTables_filter {
    margin-left: auto;
    margin-bottom: 0;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.cb6-report-corsi .cb6-dt-toolbar .dataTables_filter input {
    width: 190px;
    height: 34px;
    border: 1px solid #c8d0d8;
    border-radius: 4px;
    padding: 6px 9px;
    margin-left: 8px;
    box-shadow: none;
}

.cb6-report-corsi .cb6-dt-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e1e6ea;
}

.cb6-report-corsi .cb6-dt-footer .dataTables_info {
    font-size: 12px;
    color: #6f7d88;
}

.cb6-report-corsi .cb6-dt-footer .pagination {
    margin: 0;
    float: right;
}

@media (max-width: 760px) {
    .cb6-report-corsi .cb6-report-filter {
        display: block;
    }

    .cb6-report-corsi .cb6-year-switcher {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .cb6-report-corsi .cb6-report-snapshot {
        grid-template-columns: 1fr;
    }

    .cb6-report-corsi .cb6-dt-toolbar {
        display: block;
    }

    .cb6-report-corsi .cb6-dt-toolbar .dt-buttons {
        margin-bottom: 10px;
    }

    .cb6-report-corsi .cb6-dt-toolbar .dataTables_filter {
        margin-top: 10px;
        margin-left: 0;
        white-space: normal;
    }

    .cb6-report-corsi .cb6-dt-toolbar .dataTables_filter input {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
    }
}
/* Extra elenco corsi - da aggiungere in fondo a inventario-cb6.css */

.cb6-elenco-corsi .cb6-action-panel {
    margin: 0 0 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e1e6ea;
    border-radius: 8px;
}

.cb6-elenco-corsi .cb6-action-title {
    margin-bottom: 10px;
    color: #6f7d88;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.cb6-elenco-corsi .cb6-actions-main {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0;
    border: 0;
}

.cb6-elenco-corsi .cb6-actions-main .btn {
    margin: 0;
}

.cb6-elenco-corsi .cb6-elenco-corsi-snapshot {
    grid-template-columns: minmax(0, 1fr);
    max-width: 330px;
    margin-bottom: 20px;
}

.cb6-elenco-corsi .cb6-section-header p {
    margin: 2px 0 0;
    color: #6f7d88;
    font-size: 13px;
    line-height: 1.35;
}

.cb6-elenco-corsi .cb6-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    margin-left: auto;
    padding: 0 9px;
    border: 1px solid #bee3f0;
    border-radius: 999px;
    background: #eef8fc;
    color: #005f8f;
    font-size: 12px;
    font-weight: bold;
}

.cb6-elenco-corsi .cb6-data-table .btn-xs {
    padding: 6px 9px;
    line-height: 1.2;
    font-size: 12px;
    font-weight: bold;
}

.cb6-elenco-corsi .cb6-data-table .btn-xs .glyphicon {
    margin-right: 4px;
}

.cb6-elenco-corsi .cb6-dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 2px 0 14px;
    padding: 14px 12px;
    background: #f8fafc;
    border: 1px solid #e1e6ea;
    border-radius: 4px;
}

.cb6-elenco-corsi .cb6-dt-toolbar .dt-buttons,
.cb6-elenco-corsi .cb6-dt-toolbar .dt-buttons.btn-group {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    float: none;
    margin-bottom: 0;
}

.cb6-elenco-corsi .cb6-dt-toolbar .dt-buttons .btn,
.cb6-elenco-corsi .cb6-dt-toolbar .dt-buttons .dt-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    float: none !important;
    margin: 0 !important;
    padding: 8px 13px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.cb6-elenco-corsi .cb6-dt-toolbar .dt-buttons.btn-group > .btn,
.cb6-elenco-corsi .cb6-dt-toolbar .dt-buttons.btn-group > .btn:first-child:not(:last-child),
.cb6-elenco-corsi .cb6-dt-toolbar .dt-buttons.btn-group > .btn:last-child:not(:first-child),
.cb6-elenco-corsi .cb6-dt-toolbar .dt-buttons.btn-group > .dropdown-toggle:not(:first-child) {
    border-radius: 5px !important;
}

.cb6-elenco-corsi .cb6-dt-toolbar .dt-buttons .glyphicon {
    margin-right: 5px;
}

.cb6-elenco-corsi .cb6-dt-toolbar .dataTables_filter {
    margin-left: auto;
    margin-bottom: 0;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.cb6-elenco-corsi .cb6-dt-toolbar .dataTables_filter input {
    width: 190px;
    height: 34px;
    border: 1px solid #c8d0d8;
    border-radius: 4px;
    padding: 6px 9px;
    margin-left: 8px;
    box-shadow: none;
}

.cb6-elenco-corsi .cb6-dt-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e1e6ea;
}

.cb6-elenco-corsi .cb6-dt-footer .dataTables_info {
    font-size: 12px;
    color: #6f7d88;
}

.cb6-elenco-corsi .cb6-dt-footer .pagination {
    margin: 0;
    float: right;
}

@media (max-width: 700px) {
    .cb6-elenco-corsi .cb6-dt-toolbar {
        display: block;
    }

    .cb6-elenco-corsi .cb6-dt-toolbar .dt-buttons {
        margin-bottom: 10px;
    }

    .cb6-elenco-corsi .cb6-dt-toolbar .dataTables_filter {
        margin-top: 10px;
        margin-left: 0;
        white-space: normal;
    }

    .cb6-elenco-corsi .cb6-dt-toolbar .dataTables_filter input {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
    }
}
/* Extra scadenze HR - da aggiungere in fondo a inventario-cb6.css */

.cb6-scadenze-hr .cb6-report-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e1e6ea;
    border-radius: 8px;
}

.cb6-scadenze-hr .cb6-report-filter strong {
    display: block;
    color: #263238;
    font-size: 22px;
    line-height: 1;
}

.cb6-scadenze-hr .cb6-period-switcher {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.cb6-scadenze-hr .cb6-period-switcher .btn {
    min-width: 76px;
    margin: 0;
}

.cb6-scadenze-hr .cb6-scadenze-snapshot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
}

.cb6-scadenze-hr .cb6-section-header p {
    margin: 2px 0 0;
    color: #6f7d88;
    font-size: 13px;
    line-height: 1.35;
}

.cb6-scadenze-hr .cb6-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    margin-left: auto;
    padding: 0 9px;
    border: 1px solid #bee3f0;
    border-radius: 999px;
    background: #eef8fc;
    color: #005f8f;
    font-size: 12px;
    font-weight: bold;
}

.cb6-scadenze-hr .cb6-data-table .btn-xs {
    padding: 6px 9px;
    line-height: 1.2;
    font-size: 12px;
    font-weight: bold;
}

.cb6-scadenze-hr .cb6-data-table .btn-xs .glyphicon {
    margin-right: 4px;
}

.cb6-scadenze-hr .cb6-badge-warning {
    background: #fff6df;
    border: 1px solid #f0ad4e;
    color: #9a6700;
}

.cb6-scadenze-hr .cb6-dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 2px 0 14px;
    padding: 14px 12px;
    background: #f8fafc;
    border: 1px solid #e1e6ea;
    border-radius: 4px;
}

.cb6-scadenze-hr .cb6-dt-toolbar .dt-buttons,
.cb6-scadenze-hr .cb6-dt-toolbar .dt-buttons.btn-group {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    float: none;
    margin-bottom: 0;
}

.cb6-scadenze-hr .cb6-dt-toolbar .dt-buttons .btn,
.cb6-scadenze-hr .cb6-dt-toolbar .dt-buttons .dt-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    float: none !important;
    margin: 0 !important;
    padding: 8px 13px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.cb6-scadenze-hr .cb6-dt-toolbar .dt-buttons.btn-group > .btn,
.cb6-scadenze-hr .cb6-dt-toolbar .dt-buttons.btn-group > .btn:first-child:not(:last-child),
.cb6-scadenze-hr .cb6-dt-toolbar .dt-buttons.btn-group > .btn:last-child:not(:first-child),
.cb6-scadenze-hr .cb6-dt-toolbar .dt-buttons.btn-group > .dropdown-toggle:not(:first-child) {
    border-radius: 5px !important;
}

.cb6-scadenze-hr .cb6-dt-toolbar .dt-buttons .glyphicon {
    margin-right: 5px;
}

.cb6-scadenze-hr .cb6-dt-toolbar .dataTables_filter {
    margin-left: auto;
    margin-bottom: 0;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.cb6-scadenze-hr .cb6-dt-toolbar .dataTables_filter input {
    width: 190px;
    height: 34px;
    border: 1px solid #c8d0d8;
    border-radius: 4px;
    padding: 6px 9px;
    margin-left: 8px;
    box-shadow: none;
}

.cb6-scadenze-hr .cb6-dt-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e1e6ea;
}

.cb6-scadenze-hr .cb6-dt-footer .dataTables_info {
    font-size: 12px;
    color: #6f7d88;
}

.cb6-scadenze-hr .cb6-dt-footer .pagination {
    margin: 0;
    float: right;
}

@media (max-width: 760px) {
    .cb6-scadenze-hr .cb6-report-filter {
        display: block;
    }

    .cb6-scadenze-hr .cb6-period-switcher {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .cb6-scadenze-hr .cb6-scadenze-snapshot {
        grid-template-columns: 1fr;
    }

    .cb6-scadenze-hr .cb6-dt-toolbar {
        display: block;
    }

    .cb6-scadenze-hr .cb6-dt-toolbar .dt-buttons {
        margin-bottom: 10px;
    }

    .cb6-scadenze-hr .cb6-dt-toolbar .dataTables_filter {
        margin-top: 10px;
        margin-left: 0;
        white-space: normal;
    }

    .cb6-scadenze-hr .cb6-dt-toolbar .dataTables_filter input {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
    }
}
/* Extra cancellazione partecipante corso - da aggiungere in fondo a inventario-cb6.css */

.cb6-canc-partecipante .cb6-delete-warning {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.cb6-canc-partecipante .cb6-section-header p {
    margin: 2px 0 0;
    color: #6f7d88;
    font-size: 13px;
    line-height: 1.35;
}

.cb6-canc-partecipante .cb6-confirm-delete-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e1e6ea;
}

.cb6-canc-partecipante .cb6-delete-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.cb6-canc-partecipante .cb6-delete-actions .btn {
    margin: 0;
}

@media (max-width: 640px) {
    .cb6-canc-partecipante .cb6-delete-actions {
        display: block;
    }

    .cb6-canc-partecipante .cb6-delete-actions .btn {
        display: block;
        width: 100%;
        margin-top: 8px;
    }
}
/* Extra modifica corso - da aggiungere in fondo a inventario-cb6.css */

.cb6-modcorso .cb6-course-form {
    margin-bottom: 22px;
}

.cb6-modcorso .cb6-form-grid {
    display: grid;
    gap: 16px;
}

.cb6-modcorso .cb6-form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cb6-modcorso .form-group label {
    color: #2f3b45;
    font-size: 13px;
    font-weight: bold;
}

.cb6-modcorso .form-control {
    width: 100%;
    height: 38px;
    border: 1px solid #c8d0d8;
    border-radius: 5px;
    box-shadow: none;
}

.cb6-modcorso .cb6-course-title-field {
    max-width: 920px;
    margin-bottom: 16px;
}

.cb6-modcorso .cb6-course-title-field .form-control {
    max-width: 100%;
}

.cb6-modcorso .cb6-date-input {
    cursor: pointer;
    background: #fff;
}

.ui-datepicker {
    z-index: 10050 !important;
    font-size: 13px;
}

.cb6-modcorso textarea.form-control {
    height: auto;
    min-height: 88px;
}

.cb6-modcorso .cb6-save-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #f0f9f2;
    border: 1px solid #c9e8d0;
    border-left: 5px solid #8cc63f;
    border-radius: 8px;
}

.cb6-modcorso .cb6-save-choice-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.cb6-modcorso .cb6-save-choice-actions .btn {
    margin: 0;
}

.cb6-modcorso .cb6-empty-provider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #fff8e8;
    border: 1px solid #f3d7a1;
    border-radius: 8px;
}

.cb6-modcorso .cb6-empty-provider span {
    color: #9a6700;
    font-weight: bold;
}

.cb6-modcorso .cb6-provider-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    background: #f4f9fc;
    border: 1px solid #c9dce8;
    border-left: 5px solid #005f8f;
    border-radius: 8px;
}

.cb6-modcorso .cb6-provider-main {
    min-width: 0;
}

.cb6-modcorso .cb6-provider-main span {
    display: block;
    color: #5f717e;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.cb6-modcorso .cb6-provider-main strong {
    display: block;
    margin-top: 6px;
    color: #263238;
    font-size: 20px;
    line-height: 1.25;
}

.cb6-modcorso .cb6-provider-main em {
    display: block;
    margin-top: 6px;
    color: #53636f;
    font-size: 13px;
    font-style: normal;
}

.cb6-modcorso .cb6-provider-card .btn {
    flex: 0 0 auto;
    margin-top: 0;
}

.cb6-modcorso .cb6-actions.cb6-modcorso-actions {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    flex-wrap: wrap;
    gap: 28px;
    width: 100%;
    margin: 26px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid #e1e6ea;
}

.cb6-modcorso .cb6-modcorso-actions .btn {
    margin: 0;
}

.cb6-modcorso .cb6-modcorso-actions-left,
.cb6-modcorso .cb6-modcorso-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cb6-modcorso .cb6-modcorso-actions-left {
    flex: 1 1 auto;
    justify-content: flex-start;
}

.cb6-modcorso .cb6-modcorso-actions-right {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.cb6-modcorso .cb6-modcorso-actions-right .btn {
    min-width: 170px;
    min-height: 42px;
    font-size: 14px;
}

.cb6-modcorso .cb6-action-note {
    color: #7a8a96;
    font-size: 12px;
    line-height: 1.3;
}

.cb6-modcorso .cb6-section-header p {
    margin: 2px 0 0;
    color: #6f7d88;
    font-size: 13px;
    line-height: 1.35;
}

.cb6-modcorso .cb6-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    margin-left: auto;
    padding: 0 9px;
    border: 1px solid #bee3f0;
    border-radius: 999px;
    background: #eef8fc;
    color: #005f8f;
    font-size: 12px;
    font-weight: bold;
}

.cb6-modcorso .cb6-section-count + .cb6-section-action {
    margin-left: 10px;
}

.cb6-modcorso .cb6-data-table .btn-xs {
    padding: 6px 9px;
    line-height: 1.2;
    font-size: 12px;
    font-weight: bold;
}

.cb6-modcorso .cb6-data-table .btn-xs .glyphicon {
    margin-right: 4px;
}

.cb6-modcorso .cb6-dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 2px 0 14px;
    padding: 14px 12px;
    background: #f8fafc;
    border: 1px solid #e1e6ea;
    border-radius: 4px;
}

.cb6-modcorso .cb6-dt-toolbar .dt-buttons,
.cb6-modcorso .cb6-dt-toolbar .dt-buttons.btn-group {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    float: none;
    margin-bottom: 0;
}

.cb6-modcorso .cb6-dt-toolbar .dt-buttons .btn,
.cb6-modcorso .cb6-dt-toolbar .dt-buttons .dt-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    float: none !important;
    margin: 0 !important;
    padding: 8px 13px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.cb6-modcorso .cb6-dt-toolbar .dt-buttons.btn-group > .btn,
.cb6-modcorso .cb6-dt-toolbar .dt-buttons.btn-group > .btn:first-child:not(:last-child),
.cb6-modcorso .cb6-dt-toolbar .dt-buttons.btn-group > .btn:last-child:not(:first-child),
.cb6-modcorso .cb6-dt-toolbar .dt-buttons.btn-group > .dropdown-toggle:not(:first-child) {
    border-radius: 5px !important;
}

.cb6-modcorso .cb6-dt-toolbar .dt-buttons .glyphicon {
    margin-right: 5px;
}

.cb6-modcorso .cb6-dt-toolbar .dataTables_filter {
    margin-left: auto;
    margin-bottom: 0;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.cb6-modcorso .cb6-dt-toolbar .dataTables_filter input {
    width: 190px;
    height: 34px;
    border: 1px solid #c8d0d8;
    border-radius: 4px;
    padding: 6px 9px;
    margin-left: 8px;
    box-shadow: none;
}

.cb6-modcorso .cb6-dt-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e1e6ea;
}

.cb6-modcorso .cb6-dt-footer .dataTables_info {
    font-size: 12px;
    color: #6f7d88;
}

.cb6-modcorso .cb6-dt-footer .pagination {
    margin: 0;
    float: right;
}

@media (max-width: 760px) {
    .cb6-modcorso .cb6-form-grid-3 {
        grid-template-columns: 1fr;
    }

    .cb6-modcorso .cb6-save-choice,
    .cb6-modcorso .cb6-empty-provider {
        display: block;
    }

    .cb6-modcorso .cb6-provider-card {
        display: block;
    }

    .cb6-modcorso .cb6-provider-card .btn {
        margin-top: 14px;
    }

    .cb6-modcorso .cb6-save-choice-actions {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .cb6-modcorso .cb6-empty-provider .btn {
        margin-top: 12px;
    }

    .cb6-modcorso .cb6-actions.cb6-modcorso-actions,
    .cb6-modcorso .cb6-modcorso-actions-left,
    .cb6-modcorso .cb6-modcorso-actions-right {
        display: block !important;
    }

    .cb6-modcorso .cb6-action-note {
        display: block;
        margin-top: 6px;
    }

    .cb6-modcorso .cb6-modcorso-actions-right {
        margin-top: 16px;
    }

    .cb6-modcorso .cb6-modcorso-actions-right .btn {
        width: 100%;
    }

    .cb6-modcorso .cb6-dt-toolbar {
        display: block;
    }

    .cb6-modcorso .cb6-dt-toolbar .dt-buttons {
        margin-bottom: 10px;
    }

    .cb6-modcorso .cb6-dt-toolbar .dataTables_filter {
        margin-top: 10px;
        margin-left: 0;
        white-space: normal;
    }

    .cb6-modcorso .cb6-dt-toolbar .dataTables_filter input {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
    }
}
.cb6-side-group {
    margin: 0;
}

.cb6-side-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.cb6-side-caret {
    float: right;
    opacity: .75;
}

.cb6-side-submenu {
    display: none;
    margin: 4px 0 10px 14px;
    padding-left: 10px;
    border-left: 2px solid rgba(255,255,255,.18);
}

.cb6-side-group.is-open .cb6-side-submenu {
    display: block;
}

.cb6-side-submenu a {
    display: block;
    padding: 8px 10px;
    color: #d7edf6;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
}

.cb6-side-submenu a:hover {
    background: rgba(255,255,255,.10);
    color: #fff;
}
/* Layout applicativo Inventario CB6: sidebar + topbar
   Da aggiungere in fondo a inventario-cb6.css.
   Funziona con lo snippet index.php in outputs/protostar_index_inventario_snippet.php */

body.site {
    background: #f3f6f8 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

body.cb6-logged .navigation,
body.cb6-logged .navbar,
body.cb6-logged .navbar-inner,
body.cb6-logged .nav-collapse,
body.cb6-logged .header {
    display: none !important;
}

.cb6-app-sidebar,
.cb6-app-topbar {
    box-sizing: border-box;
}

.cb6-app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    width: 218px;
    height: 100vh;
    background: #064a68;
    color: #ffffff;
    box-shadow: 4px 0 18px rgba(47, 59, 69, 0.12);
}

.cb6-app-sidebar-head {
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    text-align: left;
}

.cb6-app-sidebar-mark {
    display: none;
}

.cb6-app-sidebar-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.cb6-app-menu {
    flex: 1;
    padding: 14px 8px;
    overflow-y: auto;
}

.cb6-app-menu-section {
    margin: 16px 0 7px;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cb6-app-menu a,
.cb6-app-menu .cb6-menu-toggle,
.cb6-app-menu .cb6-menu-expander {
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% - 4px);
    margin: 0 2px 5px;
    padding: 10px 12px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #e8f5fb !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    font-family: inherit;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.cb6-app-menu a:hover,
.cb6-app-menu a:focus,
.cb6-app-menu .cb6-menu-toggle:hover,
.cb6-app-menu .cb6-menu-toggle:focus,
.cb6-app-menu .cb6-menu-expander:hover,
.cb6-app-menu .cb6-menu-expander:focus {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff !important;
    text-decoration: none !important;
    outline: none;
}

.cb6-app-menu a.cb6-active,
.cb6-app-menu .cb6-menu-toggle.cb6-active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    box-shadow: inset 4px 0 0 #8cc63f;
}

.cb6-app-menu .glyphicon {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.cb6-menu-group {
    margin: 0;
}

.cb6-menu-parent {
    display: flex;
    align-items: stretch;
    width: calc(100% - 4px);
    margin: 0 2px 5px;
}

.cb6-app-menu .cb6-menu-parent-link {
    flex: 1 1 auto;
    width: auto;
    margin: 0;
    border-radius: 5px 0 0 5px;
}

.cb6-app-menu .cb6-menu-expander {
    flex: 0 0 36px;
    justify-content: center;
    width: 36px;
    margin: 0;
    padding: 10px 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 5px 5px 0;
}

.cb6-menu-parent:has(.cb6-menu-parent-link.cb6-active) {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    box-shadow: inset 4px 0 0 #8cc63f;
}

.cb6-menu-caret {
    margin-left: auto;
    width: auto !important;
    font-size: 10px !important;
    opacity: .8;
    transition: transform .15s ease;
}

.cb6-menu-expander .cb6-menu-caret {
    margin-left: 0;
}

.cb6-menu-submenu {
    display: none;
    margin: 0 0 8px 24px;
    padding: 3px 0 3px 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.18);
}

.cb6-menu-group.cb6-open .cb6-menu-submenu {
    display: block;
}

.cb6-menu-group.cb6-open .cb6-menu-caret {
    transform: rotate(180deg);
}

.cb6-app-menu .cb6-menu-submenu a {
    margin: 0 0 2px;
    padding: 8px 10px;
    border-radius: 5px;
    color: #d7edf6 !important;
    font-size: 12px;
    font-weight: 700;
}

.cb6-app-menu .cb6-menu-submenu a:hover,
.cb6-app-menu .cb6-menu-submenu a:focus {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff !important;
}

.cb6-app-sidebar-foot {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

body.cb6-logged .body,
body.cb6-logged .footer {
    margin-left: 218px !important;
}

body.cb6-guest .body,
body.cb6-guest .footer {
    margin-left: 0 !important;
}

body.cb6-logged .body .container,
body.cb6-logged .body .container-fluid,
body.cb6-logged .footer .container,
body.cb6-logged .footer .container-fluid {
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.cb6-app-topbar {
    position: sticky;
    top: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 24px;
    background: #eaf6fb;
    border-bottom: 1px solid #cfe3ed;
    box-shadow: 0 1px 5px rgba(47, 59, 69, 0.07);
}

.cb6-app-topbar-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.cb6-app-topbar-brand img {
    display: block;
    width: auto;
    max-width: 86px;
    max-height: 44px;
    object-fit: contain;
}

.cb6-app-topbar-brand span {
    display: block;
    color: #6f7d88;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.cb6-app-topbar-brand strong {
    display: block;
    margin-top: 2px;
    color: #2f3b45;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
}

.cb6-app-topbar-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.cb6-app-topbar-user {
    min-width: 184px;
    padding: 9px 14px;
    border: 1px solid #d6ebf5;
    border-radius: 6px;
    background: #f7fcff;
    text-align: right;
}

.cb6-app-topbar-user span {
    display: block;
    color: #6f7d88;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}

.cb6-app-topbar-user strong {
    display: block;
    margin-top: 2px;
    color: #2f3b45;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.cb6-app-topbar-logout {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid #c8d0d8;
    border-radius: 5px;
    background: #eef2f5;
    color: #2f3b45 !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.cb6-app-topbar-logout:hover,
.cb6-app-topbar-logout:focus {
    background: #dfe7ed;
    color: #2f3b45 !important;
    text-decoration: none !important;
}

body.cb6-logged #content {
    box-sizing: border-box;
    width: 100% !important;
    min-height: calc(100vh - 64px);
    padding: 28px 40px !important;
    float: none !important;
    margin-left: 0 !important;
    overflow-x: hidden;
}

body.cb6-logged .cb6-page,
body.cb6-logged .cb6-panel,
body.cb6-logged .cb6-body,
body.cb6-logged .cb6-header,
body.cb6-logged .cb6-section {
    box-sizing: border-box;
    width: 100%;
}

body.cb6-logged .cb6-page {
    padding: 0 !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
}

body.cb6-logged .cb6-panel {
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(47, 59, 69, 0.06);
}

body.cb6-logged .cb6-hr-menu .cb6-body {
    overflow: hidden;
}

body.cb6-logged .cb6-hr-menu .cb6-hr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cb6-logged .cb6-section {
    max-width: none !important;
}

body.cb6-logged .cb6-section .table-responsive,
body.cb6-logged .cb6-data-table {
    width: 100% !important;
    max-width: none !important;
}

body.cb6-logged .table-responsive {
    overflow-x: auto;
}

body.cb6-logged .dataTables_wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

body.cb6-logged .cb6-hr-userbar {
    display: none !important;
}

body.cb6-logged .breadcrumb {
    display: none !important;
}

body.cb6-logged .footer {
    background: transparent !important;
    border: 0 !important;
    padding: 14px 30px !important;
}

@media (max-width: 900px) {
    .cb6-app-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        box-shadow: none;
    }

    .cb6-app-sidebar-head {
        display: none;
    }

    .cb6-app-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px;
    }

    .cb6-app-menu-section,
    .cb6-app-sidebar-foot {
        display: none;
    }

    .cb6-app-menu a {
        flex: 1 1 44%;
        justify-content: center;
        margin: 0;
    }

    body.cb6-logged .body,
    body.cb6-logged .footer {
        margin-left: 0 !important;
    }

    .cb6-app-topbar {
        position: static;
        display: block;
        min-height: 0;
        padding: 12px 15px;
    }

    .cb6-app-topbar-brand {
        margin-bottom: 8px;
    }

    .cb6-app-topbar-right {
        justify-content: space-between;
    }

    .cb6-app-topbar-user {
        text-align: left;
    }

    body.cb6-logged #content {
        padding: 16px !important;
    }
}
/* Allegati patenti/corsi - sezione comune da aggiungere in fondo a inventario-cb6.css */

.cb6-allegati .cb6-attachment-form {
    margin: 0;
}

.cb6-allegati .cb6-info-tile-wide {
    grid-column: span 2;
}

.cb6-allegati .cb6-info-tile small {
    display: block;
    margin-top: 4px;
    color: #6b7c8a;
    font-weight: 600;
}

.cb6-allegati .cb6-attachment-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 18px;
    padding: 13px 15px;
    background: #eef9fd;
    border: 1px solid #d4edf7;
    border-left: 5px solid #006b97;
    border-radius: 7px;
}

.cb6-allegati .cb6-attachment-nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #006b97;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.cb6-allegati .cb6-attachment-nav-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cb6-allegati .cb6-nav-btn {
    min-width: 168px;
    padding: 9px 14px;
    margin: 0;
    border-radius: 5px;
    font-weight: 800;
    text-align: center;
}

.cb6-allegati .cb6-nav-btn .glyphicon {
    margin-right: 6px;
}

.cb6-allegati .cb6-nav-btn-secondary {
    color: #006b97 !important;
    background: #ffffff;
    border: 1px solid #bdd7e4;
}

.cb6-allegati .cb6-nav-btn-secondary:hover,
.cb6-allegati .cb6-nav-btn-secondary:focus {
    color: #005f8f !important;
    background: #f7fcfe;
    border-color: #96c7dc;
}

.cb6-allegati .cb6-nav-btn-primary {
    color: #ffffff !important;
    background: #006b97;
    border: 1px solid #006b97;
    box-shadow: 0 4px 10px rgba(0, 95, 143, 0.18);
}

.cb6-allegati .cb6-nav-btn-primary:hover,
.cb6-allegati .cb6-nav-btn-primary:focus {
    color: #ffffff !important;
    background: #005f8f;
    border-color: #005f8f;
}

.cb6-allegati .cb6-form-grid {
    display: grid;
    gap: 16px;
}

.cb6-allegati .cb6-form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cb6-allegati .form-group label {
    color: #2f3b45;
    font-size: 13px;
    font-weight: bold;
}

.cb6-allegati .form-control {
    width: 100%;
    height: 38px;
    border: 1px solid #c8d0d8;
    border-radius: 5px;
    box-shadow: none;
}

.cb6-allegati .cb6-file-input {
    height: auto;
    min-height: 38px;
    padding: 7px 10px;
}

.cb6-allegati .cb6-form-actions-upload {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8ee;
}

.cb6-allegati .cb6-form-actions .btn {
    margin: 0;
}

@media (max-width: 767px) {
    .cb6-allegati .cb6-form-grid-2 {
        grid-template-columns: 1fr;
    }

    .cb6-allegati .cb6-info-tile-wide {
        grid-column: span 1;
    }

    .cb6-allegati .cb6-form-actions-upload {
        justify-content: stretch;
    }

    .cb6-allegati .cb6-attachment-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .cb6-allegati .cb6-attachment-nav-actions,
    .cb6-allegati .cb6-attachment-nav .btn,
    .cb6-allegati .cb6-form-actions .btn {
        width: 100%;
    }
}
/* Report ricerca - da aggiungere in fondo a inventario-cb6.css */

.cb6-report-search .cb6-field-wide {
    grid-column: 1 / -1;
}

.cb6-report-search .cb6-section {
    border-top: 4px solid #8cc63f;
    box-shadow: 0 8px 20px rgba(0, 95, 143, 0.07);
}

.cb6-report-search .cb6-section-header {
    align-items: flex-start;
}

.cb6-report-search .cb6-section-header h2 {
    color: #005f8f;
    font-size: 22px;
}

.cb6-report-search .cb6-criteria-panel {
    display: none;
    padding: 16px;
    background: #f7fbfd;
    border: 1px solid #dbe9f1;
    border-left: 5px solid #0086b3;
    border-radius: 6px;
}

.cb6-report-search .form-group label {
    color: #2f3b45;
    font-size: 13px;
    font-weight: 800;
}

.cb6-report-search .form-control {
    width: 100%;
    min-height: 40px;
    border: 1px solid #c8d0d8;
    border-radius: 5px;
    box-shadow: none;
}

.cb6-report-search #tipo {
    max-width: 360px;
    font-weight: 700;
}

.cb6-report-mode-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 4px 0 6px;
}

.cb6-report-mode {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 14px;
    color: #263746;
    background: #ffffff;
    border: 1px solid #dbe4eb;
    border-radius: 7px;
    text-align: left;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.04);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cb6-report-mode:hover,
.cb6-report-mode:focus {
    border-color: #b8d8e8;
    box-shadow: 0 7px 16px rgba(0, 95, 143, 0.12);
    transform: translateY(-1px);
}

.cb6-report-mode.is-active {
    background: #eef9fd;
    border-color: #0086b3;
    box-shadow: inset 4px 0 0 #0086b3, 0 7px 16px rgba(0, 95, 143, 0.12);
}

.cb6-report-mode .glyphicon {
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border-radius: 8px;
    font-size: 18px;
}

.cb6-report-mode strong {
    color: #005f8f;
    font-size: 16px;
    line-height: 1.1;
}

.cb6-report-mode small {
    color: #738391;
    font-size: 12px;
    font-weight: 600;
}

.cb6-report-mode-blue .glyphicon {
    background: #005f8f;
}

.cb6-report-mode-red .glyphicon {
    background: #d32f2f;
}

.cb6-report-mode-lightblue .glyphicon {
    background: #0086b3;
}

.cb6-report-mode-green .glyphicon {
    background: #8cc63f;
}

.cb6-report-mode-orange .glyphicon {
    background: #f0ad4e;
}

.cb6-report-mode-gray .glyphicon {
    background: #7c8a96;
}

.cb6-report-search .help-block {
    margin-bottom: 0;
    color: #6b7c8a;
    font-size: 12px;
}

.cb6-report-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2e8ee;
}

.cb6-report-actions .btn {
    min-width: 170px;
}

@media (max-width: 767px) {
    .cb6-report-actions {
        flex-direction: column;
    }

    .cb6-report-actions .btn {
        width: 100%;
    }

    .cb6-report-mode-strip {
        grid-template-columns: 1fr;
    }
}
/* Ricerca per area - da aggiungere in fondo a inventario-cb6.css solo se servono questi ritocchi */

.cb6-area-page .cb6-section-header {
    align-items: center;
}

.cb6-area-page .cb6-section-header h2 {
    color: #005f8f;
    font-size: 22px;
}

.cb6-area-page .cb6-muted {
    color: #7c8a96;
    font-weight: 700;
}

.cb6-area-page .cb6-area-responsabili {
    margin: 0 0 20px;
    padding: 16px 18px;
    background: #f7fbfd;
    border: 1px solid #dbe9f1;
    border-left: 5px solid #8cc63f;
    border-radius: 7px;
}

.cb6-area-page .cb6-area-responsabili-title {
    margin-bottom: 12px;
    color: #005f8f;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cb6-area-page .cb6-area-responsabili-title .glyphicon {
    margin-right: 6px;
    color: #8cc63f;
}

.cb6-area-page .cb6-area-responsabili-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.cb6-area-page .cb6-area-responsabile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 14px;
    color: #263846;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid #d7efc3;
    border-radius: 7px;
    box-shadow: 0 3px 10px rgba(0, 95, 143, .08);
}

.cb6-area-page .cb6-area-responsabile-card:hover,
.cb6-area-page .cb6-area-responsabile-card:focus {
    color: #263846;
    border-color: #8cc63f;
    box-shadow: 0 5px 14px rgba(0, 95, 143, .12);
}

.cb6-area-page .cb6-area-responsabile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: #fff;
    background: #8cc63f;
    border-radius: 7px;
}

.cb6-area-page .cb6-area-responsabile-content {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

.cb6-area-page .cb6-area-responsabile-content strong,
.cb6-area-page .cb6-area-responsabile-content small,
.cb6-area-page .cb6-area-responsabile-content em {
    display: block;
}

.cb6-area-page .cb6-area-responsabile-content strong {
    color: #005f8f;
    font-size: 15px;
    font-weight: 900;
}

.cb6-area-page .cb6-area-responsabile-content small {
    margin-top: 3px;
    color: #263846;
    font-size: 12px;
    font-weight: 700;
}

.cb6-area-page .cb6-area-responsabile-content em {
    margin-top: 3px;
    color: #7c8a96;
    font-size: 12px;
    font-style: normal;
}

.cb6-area-page .cb6-area-responsabile-card .cb6-badge {
    margin-left: auto;
    white-space: nowrap;
}

.cb6-area-page .cb6-area-no-responsabile {
    padding: 12px 14px;
    color: #7c8a96;
    background: #fff;
    border: 1px dashed #dbe9f1;
    border-radius: 7px;
    font-weight: 700;
}

.cb6-area-page .cb6-area-no-responsabile .glyphicon {
    margin-right: 6px;
    color: #005f8f;
}

.cb6-area-page .cb6-area-responsabile-row td {
    background: #f2fbec;
    border-top: 2px solid #8cc63f;
    border-bottom: 2px solid #d7efc3;
}

.cb6-area-page .cb6-area-responsabile-name {
    color: #004f78;
    font-weight: 900;
}
/* Report dipendenti: inquadramento, qualifica e pagine affini */

.cb6-report-page .cb6-section-header {
    align-items: center;
}

.cb6-report-page .cb6-section-header h2 {
    color: #005f8f;
    font-size: 22px;
}

.cb6-report-page .cb6-muted {
    color: #7c8a96;
    font-weight: 700;
}

.cb6-report-page .table-responsive {
    max-height: none !important;
    overflow-y: visible !important;
}

.cb6-report-page .dataTables_wrapper {
    width: 100%;
    overflow: visible !important;
}

.cb6-report-page .cb6-data-table {
    table-layout: auto;
    width: 100% !important;
    margin-bottom: 0;
}

.cb6-report-page .cb6-data-table thead,
.cb6-report-page .cb6-data-table thead tr,
.cb6-report-page .cb6-data-table thead th {
    height: auto !important;
    min-height: 0 !important;
}

.cb6-report-page .cb6-data-table thead th {
    padding: 13px 12px !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
    white-space: nowrap;
}

.cb6-report-page .cb6-data-table tbody td {
    padding: 13px 12px !important;
    line-height: 1.35 !important;
    vertical-align: middle !important;
}

.cb6-resp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cb6-resp-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.cb6-resp-area {
    color: #3f6f0f;
    background: #edf8e6;
    border: 1px solid #cce9b6;
}

.cb6-resp-settore {
    color: #005f8f;
    background: #eaf7fc;
    border: 1px solid #c8e8f3;
}

.cb6-resp-sezione {
    color: #8a5b00;
    background: #fff5df;
    border: 1px solid #f1d69d;
}
/* Layout applicativo Inventario CB6: sidebar + topbar
   Da aggiungere in fondo a inventario-cb6.css.
   Funziona con lo snippet index.php in outputs/protostar_index_inventario_snippet.php */

body.site {
    background: #f3f6f8 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

body.cb6-logged .navigation,
body.cb6-logged .navbar,
body.cb6-logged .navbar-inner,
body.cb6-logged .nav-collapse,
body.cb6-logged .header {
    display: none !important;
}

.cb6-app-sidebar,
.cb6-app-topbar {
    box-sizing: border-box;
}

.cb6-app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    width: 218px;
    height: 100vh;
    background: #064a68;
    color: #ffffff;
    box-shadow: 4px 0 18px rgba(47, 59, 69, 0.12);
}

.cb6-app-sidebar-head {
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    text-align: left;
}

.cb6-app-sidebar-mark {
    display: none;
}

.cb6-app-sidebar-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.cb6-app-menu {
    flex: 1;
    padding: 14px 8px;
    overflow-y: auto;
}

.cb6-app-menu-section {
    margin: 16px 0 7px;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cb6-app-menu a,
.cb6-app-menu .cb6-menu-toggle,
.cb6-app-menu .cb6-menu-expander {
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% - 4px);
    margin: 0 2px 5px;
    padding: 10px 12px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #e8f5fb !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    font-family: inherit;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.cb6-app-menu a:hover,
.cb6-app-menu a:focus,
.cb6-app-menu .cb6-menu-toggle:hover,
.cb6-app-menu .cb6-menu-toggle:focus,
.cb6-app-menu .cb6-menu-expander:hover,
.cb6-app-menu .cb6-menu-expander:focus {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff !important;
    text-decoration: none !important;
    outline: none;
}

.cb6-app-menu a.cb6-active,
.cb6-app-menu .cb6-menu-toggle.cb6-active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    box-shadow: inset 4px 0 0 #8cc63f;
}

.cb6-app-menu .glyphicon {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.cb6-menu-icon {
    position: relative;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.cb6-menu-icon::before {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.cb6-menu-icon-home::before {
    content: "H";
}

.cb6-menu-icon-new {
    background: #8cc63f;
}

.cb6-menu-icon-new::before {
    content: "+";
    font-size: 20px;
}

.cb6-menu-icon-map {
    background: #0086b3;
}

.cb6-menu-icon-map::before {
    content: "P";
}

.cb6-menu-icon-print {
    background: #f5b041;
}

.cb6-menu-icon-print::before {
    content: "S";
}

.cb6-menu-icon-user {
    background: #006c9a;
}

.cb6-menu-icon-user::before {
    content: "D";
}

.cb6-menu-icon-hr {
    background: #0096b8;
}

.cb6-menu-icon-hr::before {
    content: "RU";
    font-size: 10px;
}

.cb6-menu-icon-quality {
    background: #7f8c97;
}

.cb6-menu-icon-quality::before {
    content: "Q";
}

.cb6-menu-icon-search {
    background: #005f8f;
}

.cb6-menu-icon-search::before {
    content: "?";
}

.cb6-menu-icon-exit {
    background: rgba(255, 255, 255, 0.10);
}

.cb6-menu-icon-exit::before {
    content: ">";
}

.cb6-app-menu a:hover .cb6-menu-icon,
.cb6-app-menu a:focus .cb6-menu-icon,
.cb6-app-menu .cb6-menu-toggle:hover .cb6-menu-icon,
.cb6-app-menu .cb6-menu-toggle:focus .cb6-menu-icon {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.cb6-app-menu a.cb6-active .cb6-menu-icon,
.cb6-app-menu .cb6-menu-toggle.cb6-active .cb6-menu-icon,
.cb6-menu-parent:has(.cb6-menu-parent-link.cb6-active) .cb6-menu-icon {
    background: #8cc63f;
    color: #ffffff;
}

.cb6-menu-group {
    margin: 0;
}

.cb6-menu-parent {
    display: flex;
    align-items: stretch;
    width: calc(100% - 4px);
    margin: 0 2px 5px;
}

.cb6-app-menu .cb6-menu-parent-link {
    flex: 1 1 auto;
    width: auto;
    margin: 0;
    border-radius: 5px 0 0 5px;
}

.cb6-app-menu .cb6-menu-expander {
    flex: 0 0 36px;
    justify-content: center;
    width: 36px;
    margin: 0;
    padding: 10px 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 5px 5px 0;
}

.cb6-menu-parent:has(.cb6-menu-parent-link.cb6-active) {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    box-shadow: inset 4px 0 0 #8cc63f;
}

.cb6-menu-caret {
    margin-left: auto;
    width: auto !important;
    font-size: 10px !important;
    opacity: .8;
    transition: transform .15s ease;
}

.cb6-menu-expander .cb6-menu-caret {
    margin-left: 0;
}

.cb6-menu-submenu {
    display: none;
    margin: 0 0 8px 24px;
    padding: 3px 0 3px 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.18);
}

.cb6-menu-group.cb6-open .cb6-menu-submenu {
    display: block;
}

.cb6-menu-group.cb6-open .cb6-menu-caret {
    transform: rotate(180deg);
}

.cb6-app-menu .cb6-menu-submenu a {
    margin: 0 0 2px;
    padding: 8px 10px;
    border-radius: 5px;
    color: #d7edf6 !important;
    font-size: 12px;
    font-weight: 700;
}

.cb6-app-menu .cb6-menu-submenu a:hover,
.cb6-app-menu .cb6-menu-submenu a:focus {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff !important;
}

.cb6-app-sidebar-foot {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

body.cb6-logged .body,
body.cb6-logged .footer {
    margin-left: 218px !important;
}

body.cb6-guest .body,
body.cb6-guest .footer {
    margin-left: 0 !important;
}

body.cb6-logged .body .container,
body.cb6-logged .body .container-fluid,
body.cb6-logged .footer .container,
body.cb6-logged .footer .container-fluid {
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.cb6-app-topbar {
    position: sticky;
    top: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 24px;
    background: #eaf6fb;
    border-bottom: 1px solid #cfe3ed;
    box-shadow: 0 1px 5px rgba(47, 59, 69, 0.07);
}

.cb6-app-topbar-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.cb6-app-topbar-brand img {
    display: block;
    width: auto;
    max-width: 86px;
    max-height: 44px;
    object-fit: contain;
}

.cb6-app-topbar-brand span {
    display: block;
    color: #6f7d88;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.cb6-app-topbar-brand strong {
    display: block;
    margin-top: 2px;
    color: #2f3b45;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
}

.cb6-app-topbar-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.cb6-app-topbar-user {
    min-width: 184px;
    padding: 9px 14px;
    border: 1px solid #d6ebf5;
    border-radius: 6px;
    background: #f7fcff;
    text-align: right;
}

.cb6-app-topbar-user span {
    display: block;
    color: #6f7d88;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}

.cb6-app-topbar-user strong {
    display: block;
    margin-top: 2px;
    color: #2f3b45;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.cb6-app-topbar-logout {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid #c8d0d8;
    border-radius: 5px;
    background: #eef2f5;
    color: #2f3b45 !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.cb6-app-topbar-logout:hover,
.cb6-app-topbar-logout:focus {
    background: #dfe7ed;
    color: #2f3b45 !important;
    text-decoration: none !important;
}

body.cb6-logged #content {
    box-sizing: border-box;
    width: 100% !important;
    min-height: calc(100vh - 64px);
    padding: 28px 40px !important;
    float: none !important;
    margin-left: 0 !important;
    overflow-x: hidden;
}

body.cb6-logged .cb6-page,
body.cb6-logged .cb6-panel,
body.cb6-logged .cb6-body,
body.cb6-logged .cb6-header,
body.cb6-logged .cb6-section {
    box-sizing: border-box;
    width: 100%;
}

body.cb6-logged .cb6-page {
    padding: 0 !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
}

body.cb6-logged .cb6-panel {
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(47, 59, 69, 0.06);
}

body.cb6-logged .cb6-hr-menu .cb6-body {
    overflow: hidden;
}

body.cb6-logged .cb6-hr-menu .cb6-hr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cb6-logged .cb6-section {
    max-width: none !important;
}

body.cb6-logged .cb6-section .table-responsive,
body.cb6-logged .cb6-data-table {
    width: 100% !important;
    max-width: none !important;
}

body.cb6-logged .table-responsive {
    overflow-x: auto;
}

body.cb6-logged .dataTables_wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

body.cb6-logged .cb6-hr-userbar {
    display: none !important;
}

body.cb6-logged .breadcrumb {
    display: none !important;
}

body.cb6-logged .footer {
    background: transparent !important;
    border: 0 !important;
    padding: 14px 30px !important;
}

@media (max-width: 900px) {
    .cb6-app-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        box-shadow: none;
    }

    .cb6-app-sidebar-head {
        display: none;
    }

    .cb6-app-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px;
    }

    .cb6-app-menu-section,
    .cb6-app-sidebar-foot {
        display: none;
    }

    .cb6-app-menu a {
        flex: 1 1 44%;
        justify-content: center;
        margin: 0;
    }

    body.cb6-logged .body,
    body.cb6-logged .footer {
        margin-left: 0 !important;
    }

    .cb6-app-topbar {
        position: static;
        display: block;
        min-height: 0;
        padding: 12px 15px;
    }

    .cb6-app-topbar-brand {
        margin-bottom: 8px;
    }

    .cb6-app-topbar-right {
        justify-content: space-between;
    }

    .cb6-app-topbar-user {
        text-align: left;
    }

    body.cb6-logged #content {
        padding: 16px !important;
    }
}