html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

/* ===== SIDEBAR LAYOUT ===== */

.navmenu-root {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Bottone pin nella top-row */
.sidebar-pin-btn {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}
.sidebar-pin-btn:hover { color: white; }
.sidebar-pin-btn.pinned {
    color: #ffc107;
    transform: translateY(-50%) rotate(45deg);
}
@media (min-width: 641px) {
    .sidebar-pin-btn { display: block; }
}

/* Top-bar opaca (fix PWA: evita trasparenza su contenuto che scorre dietro) */
.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%) !important;
    background-color: rgb(5, 39, 103) !important;
}
.sidebar .top-row {
    background-color: rgb(5, 39, 103) !important;
}

/* Stato pinnato: sidebar fissa a sinistra, contenuto si restringe */
body.sidebar-pinned .sidebar {
    width: 250px !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1030 !important;
}
body.sidebar-pinned .sidebar .navbar-toggler { display: none !important; }
body.sidebar-pinned .sidebar .nav-scrollable {
    display: block !important;
    position: static !important;
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    width: auto !important;
    box-shadow: none !important;
}
body.sidebar-pinned main {
    margin-left: 250px !important;
    padding-top: 0 !important;
}

/* ===== DASHBOARD ===== */
.dash-container { padding: 12px; max-width: 1400px; margin: 0 auto; }

.dash-kpi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.dash-kpi { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px 10px; border-radius: 14px; text-decoration: none !important; color: #fff !important; transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.dash-kpi::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.08); opacity: 0; transition: opacity .15s; }
.dash-kpi:hover::before { opacity: 1; }
.dash-kpi:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.dash-kpi-value { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.dash-kpi-label { font-size: .7rem; opacity: .9; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.dash-kpi-info { background: linear-gradient(135deg, #0dcaf0, #0d6efd); }
.dash-kpi-warn { background: linear-gradient(135deg, #ffc107, #fd7e14); }
.dash-kpi-danger { background: linear-gradient(135deg, #dc3545, #e35d6a); }
.dash-kpi-dark { background: linear-gradient(135deg, #495057, #212529); }

.dash-libretti-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 10px; padding: 10px 16px; margin-bottom: 14px; text-decoration: none !important; color: #3730a3 !important; font-size: .85rem; transition: background .15s; }
.dash-libretti-bar:hover { background: #e0e7ff; }
.dash-libretti-progress { flex: 1; min-width: 80px; height: 6px; background: #c7d2fe; border-radius: 3px; overflow: hidden; }
.dash-libretti-fill { height: 100%; background: #4f46e5; border-radius: 3px; transition: width .3s ease; }

.dash-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.dash-card { background: #fff; border-radius: 14px; box-shadow: 0 1px 6px rgba(0,0,0,.06); padding: 16px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; border: 1px solid #f0f0f0; }
.dash-card-title { display: flex; align-items: center; font-size: .88rem; font-weight: 600; color: #374151; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f3f4f6; }
.dash-card-title .badge { margin-left: auto; }
.dash-chart-wrap { position: relative; width: 100%; height: 220px; }
.dash-card .table { font-size: .82rem; margin-bottom: 0; }
.dash-card .table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .4px; color: #6b7280; border-bottom: 1px solid #e5e7eb; padding: 6px 8px; font-weight: 600; white-space: nowrap; }
.dash-card .table tbody td { padding: 6px 8px; vertical-align: middle; border-bottom: 1px solid #f9fafb; }
.dash-card .table tbody tr:last-child td { border-bottom: none; }
.dash-card .table-responsive { width: 100%; flex-shrink: 0; }
.dash-card .btn { margin-top: auto; padding-top: 6px; }

@media (min-width: 600px) {
    .dash-container { padding: 20px; }
    .dash-kpi-row { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .dash-kpi-value { font-size: 1.8rem; }
    .dash-kpi-label { font-size: .75rem; }
    .dash-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .dash-chart-wrap { height: 250px; }
}

@media (min-width: 1100px) {
    .dash-container { padding: 28px; }
    .dash-kpi-row { gap: 18px; margin-bottom: 18px; }
    .dash-kpi { padding: 20px 14px; }
    .dash-kpi-value { font-size: 2rem; }
    .dash-kpi-label { font-size: .78rem; }
    .dash-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .dash-card { padding: 20px; }
    .dash-card .table { font-size: .85rem; }
    .dash-chart-wrap { height: 280px; }
}

/* Legacy grid classes (usate da altre pagine) */
.dashboard-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; padding: 20px; box-sizing: border-box; }
.dashboard-box { background-color: #ffffff; border-radius: 15px; padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: flex; flex-direction: column; overflow: auto; word-break: break-word; align-items: start; justify-content: flex-start; }

.light-red{
    background-color: #f8d7da;
}

.light-yellow{
    background-color: #fff3cd;
}

.light-green{
    background-color: #d4edda;
}

.light-blue{
    background-color: #d1ecf1;
}

.light-orange {
    background-color: #FBD3B1;
}




.fullwidth {
    grid-column: span 12;
}

.halfwidth {
    grid-column: span 6;
}

.thirdwidth {
    grid-column: span 4;
}

.twothirdswidth {
    grid-column: span 8;
}

.smallhalf {
    grid-column: span 5;
}

.bighalf {
    grid-column: span 7;
}

.onesixth{
    grid-column: span 2;
}

.fourthwidth{
        grid-column: span 3;

}


/* Style the tab */
.tab {
    overflow: hidden;
    border: 1px solid #c0c0c0;
    background-color: #c0c0c0;
    justify-content: center;
    align-content: center;
    text-align: center;
    text-justify: auto;
    border-radius: 5px;
}

    /* Style the buttons that are used to open the tab content */
    .tab button {
        background-color: inherit;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 14px 16px;
        transition: 0.3s;
        justify-self: center;
        margin: auto;
        display: inline-block;
    }

.tablinks {
    width:100%;
    margin:0;
    display: flex;
}

a {
    text-decoration: none;
    display: inline-block;
    padding: 8px 16px;
}

    a:hover {
        color: white;
    }

.main-table {
    min-width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

    .main-table thead th {
        background-color: #f2f2f2;
        padding: 8px;
        border: 1px solid #ddd;
        text-align: left;
    }

    .main-table tbody td {
        padding: 8px;
        border: 1px solid #ddd;
    }

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: #ccc;
}

.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

/* ===== PROFILO TABS MODERNI ===== */
.profilo-tabs-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.profilo-tabs-wrap::-webkit-scrollbar { display: none; }

/* Sfumatura che indica contenuto scrollabile */
.profilo-tabs-wrap::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, #f8f9fa);
    pointer-events: none;
    opacity: 1;
    transition: opacity .2s;
}

.profilo-tabs {
    display: inline-flex;
    gap: 4px;
    white-space: nowrap;
    padding: 4px 5px;
    background: #e9ecef;
    border-radius: 12px;
    min-width: 100%;
}

.profilo-tab {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 500;
    color: #6c757d;
    background: transparent;
    transition: all .2s ease;
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
}

.profilo-tab:hover {
    color: #212529;
    background: rgba(255,255,255,.6);
}

.profilo-tab.active {
    background: #0d6efd;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(13,110,253,.35);
    font-weight: 600;
}

@media (min-width: 577px) {
    .profilo-tabs-wrap::after { display: none; }
    .profilo-tabs { min-width: auto; }
    .profilo-tab { flex: 0 1 auto; }
}

@media (max-width: 576px) {
    .profilo-tab { padding: 8px 16px; font-size: .82rem; }
    .profilo-tabs { gap: 3px; padding: 3px 4px; }
}

.custom-select {
    display: block;
    height: 40px;
    padding: 10px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    position: relative;
}

    .custom-select:hover,
    .custom-select:focus {
        border-color: #888;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    }

    .custom-select:after {
        content: '\25BC';
        font-size: 12px;
        position: absolute;
        right: 15px;
        color: #888;
        pointer-events: none;
    }

    .custom-select option {
        padding: 10px;
        background: #fff;
        color: #333;
    }

/* For mobile, adjusting the padding and font-size */
@media (max-width: 600px) {
    .custom-select {
        height: 35px;
        padding: 8px;
        font-size: 14px;
    }
}

.modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 80%;
    display: flex;
    flex-direction: column;
    background-color: white;
    z-index: 99999;
    max-width: 95vw;
    width: 95%;
    overflow: auto;
    pointer-events: auto;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 1rem;
    width:100%;
}

.form-control {
    min-width: 0;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.btn{
    margin:5px;
}
.modal-content .btn {
    margin: 0;
}
.modal-content .d-flex .form-control {
    min-width: 0;
}

.btn-success {
    color: white;
    background-color: #28a745;
}



.btn-secondary {
    color: white;
    background-color: #6c757d;
}

.btn-danger {
    color: white;
    background-color: #dc3545;
}

.btn-info {
    color: white;
    background-color: #17a2b8;
}



/*.dashboard-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}*/

/* Responsive behavior for smaller screens */
@media screen and (max-width: 1600px) {
    .content-container {
        flex-direction: column;
    }

    .calendar-section, .interval-section {
        padding: 10px;
        width: 100%;
    }
}

@media screen and (max-width:1000px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-box {
        grid-column: span 12;
    }
}

.loading-container {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-box {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.loading-box p {
    font-size: .95rem;
    color: #374151;
    margin-bottom: 0;
    margin-top: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

/* ===== GLOBAL MOBILE RESPONSIVE ===== */
/* Tutte le tabelle scorrono orizzontalmente su mobile */
@media (max-width: 768px) {
    .main > .content { padding: 10px; }
    table.table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    table.table th, table.table td { font-size: .82rem; padding: 6px 8px; }
    .btn { font-size: .85rem; }
    .modal-background { padding: 10px; box-sizing: border-box; }
    .modal-content {
        width: 100% !important;
        max-width: calc(100vw - 20px) !important;
        max-height: 90vh !important;
        padding: 14px !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
    }
    .modal-content input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
    .modal-content select,
    .modal-content textarea,
    .modal-content .form-control,
    .modal-content .form-select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        font-size: .9rem;
    }
    .modal-content .row { margin-left: 0; margin-right: 0; }
    .modal-content .d-flex { flex-wrap: wrap; }
    .modal-content .d-flex.gap-1,
    .modal-content .d-flex.gap-2 { gap: 4px !important; }
    .form-control, .form-select { font-size: .9rem; }
    /* ConfirmDialog vecchio pattern */
    #modal { max-width: calc(100vw - 20px) !important; padding: 15px !important; }
}

/* ===== MODAL INTERVENTO AMPIO ===== */
.modal-content.modal-intervento {
    max-width: 98vw !important;
    width: 98% !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    padding: 20px 24px !important;
}
.modal-content.modal-intervento .modal-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
}
.modal-content.modal-intervento .btn { min-height: 38px; }
/* Tutti i controlli form al 100% del contenitore */
.modal-content.modal-intervento input:not([type="checkbox"]),
.modal-content.modal-intervento select,
.modal-content.modal-intervento textarea,
.modal-content.modal-intervento .form-control,
.modal-content.modal-intervento .form-select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
.modal-content.modal-intervento .mb-3,
.modal-content.modal-intervento .mb-2,
.modal-content.modal-intervento .mb-4 {
    width: 100%;
}
/* Row e colonne interne: espandi tutto */
.modal-content.modal-intervento .row { width: 100%; }
.modal-content.modal-intervento .card { width: 100%; }
.modal-content.modal-intervento .tabcontent { width: 100%; }
.modal-content.modal-intervento .list-group { width: 100%; }
.modal-content.modal-intervento .list-group-item { width: 100%; }
.modal-content.modal-intervento .container-fluid { padding: 0; }
.modal-content.modal-intervento .fullwidth { width: 100%; }

@media (max-width: 768px) {
    .modal-content.modal-intervento {
        width: 96% !important;
        max-width: 100% !important;
        max-height: 92vh !important;
        margin: 10px auto;
        padding: 12px;
    }
    .modal-content.modal-intervento .btn { min-height: 44px; font-size: .9rem; }
}

/* ===== CARD INTERVENTO EXPAND/COLLAPSE ===== */
.intervento-cell { position: relative; }
.intervento-cell.collapsed { overflow: hidden; }
.intervento-cell.expanded { overflow: visible !important; height: auto !important; z-index: 10; }
.expand-icon {
    position: absolute;
    bottom: 2px;
    right: 4px;
    cursor: pointer;
    font-size: 11px;
    opacity: 0.7;
    background: rgba(255,255,255,.7);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.expand-icon:hover { opacity: 1; }
.expand-icon.rotated { transform: rotate(180deg); }

/* float->row/col helper: contenuto inline su mobile diventa colonna */
@media (max-width: 576px) {
    .d-inline-flex, [style*="float:left"], [style*="float:right"] { float: none !important; width: 100% !important; }
}

/* Ensure buttons only take the necessary width */
.create-btn {
    float: right;
    padding: 8px 16px;
    width: auto;
    margin-left: 10px;
    max-width: 180px;
    align-self: self-end;
}

a, .btn-link {
    color: #006bb7;
}



.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.modal-open {
    overflow: hidden !important;
}

/* ── Drag & Drop Calendario ── */
.gc-tech-col.drag-hover {
    background-color: rgba(52, 152, 219, 0.12) !important;
    outline: 2px dashed #3498db;
    outline-offset: -2px;
    transition: background-color 0.15s, outline 0.15s;
}

.gc-tech-col.drag-hover::after {
    content: attr(data-drop-time);
    position: sticky;
    top: 60px;
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: #3498db;
    pointer-events: none;
    z-index: 100;
}

[data-richiesta-id],
[data-intervento-id] {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Disabilita selezione testo durante il drag su tutta la pagina */
body.dragging-active {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    cursor: grabbing !important;
}

[data-richiesta-id]:active,
[data-intervento-id]:active {
    cursor: grabbing;
}

/* Handle resize verticale sulle card intervento */
.gc-resize-handle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    cursor: n-resize;
    background: transparent;
    z-index: 5;
    transition: background 0.15s;
}

.gc-resize-handle:hover {
    background: rgba(231, 76, 60, 0.4);
}

.gc-resize-bottom {
    top: auto;
    bottom: 0;
    cursor: s-resize;
}

.gc-resize-bottom:hover {
    background: rgba(46, 204, 113, 0.4);
}

/* Cerchietto info sulle card richiesta */
.richiesta-info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3498db;
    color: #fff;
    font-size: 0.55rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    z-index: 2;
    transition: transform 0.15s, background 0.15s;
}

.richiesta-info-badge:hover {
    transform: translateY(-50%) scale(1.3);
    background: #2980b9;
}

/* Le card richiesta devono essere position relative per il badge assoluto */
.richieste-container li {
    position: relative;
}

/* Zona drop richieste — highlight quando si trascina un intervento sopra */
[data-drop-zone="richieste"].drop-zone-hover {
    background-color: rgba(231, 76, 60, 0.08) !important;
    outline: 2px dashed #e74c3c;
    outline-offset: -2px;
}

