.searchLoad {
    background: url('/static/fornitori/img/load.gif') no-repeat;
	padding-left: 50px;
	padding-top: 18px;
}

body.fornitoriBody {
    font-family: 'Open Sans', sans-serif;
    margin:0;
}

span.bold {
    font-weight: 800;
}

header#mainHeader {
    background: var(--gradienteblu, linear-gradient(90deg, #0E1B38 0%, #272F75 50%, #0E1B38 100%));
}

nav#fornitoriNav {
    background-color: #0E1B38;
    color: #fff;
}

.fornitoriNav ul {
    display: flex;
    justify-content: flex-start;
    align-content: center;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.fornitoriNav li {
    display: inline-block;
    list-style: none;
}

.fornitoriNav li:not(:last-of-type) {
  margin: 0 5px;
}

.fornitoriNav li:last-of-type {
    margin-left: auto; /* Keep this for the old structure compatibility */
}

a.contentLink {
    color: #fff;
}

a.contentLink {
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
}

a.externalLink {
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
}

.menu-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2px 20px;
}

footer#mainFooter {
    background: #0E1B38;
    color: #fff;
    text-align: center;
    font-size: 12px;
}

.box-row {
    display: flex;
    gap: 20px; /* Adjust gap size as needed */
    flex-direction: row;
}

.left-box, .right-box {
    flex: 1; /* Equal width on desktop */
    min-height: 400px; /* Ensure consistent height */
}

.left-box img, .right-box img {
    max-width: 100%;
    height: auto;
    display: block;
}

#cta_scopri, #cta_scopri2 {
    position: absolute;
    bottom: 20px; /* Move up from -20px */
    right: 20px; /* Adjust right position */
    width: 64px;
    height: 64px;
    background: var(--Radial, radial-gradient(596.76% 105.11% at 9.9% 40.15%, #001E57 0%, #00664A 100%));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#testo-box1, #testo-box2 {
    position: absolute;
    bottom: 80px; /* Move up to avoid overlap with CTA */
    left: 20px; /* Align with left edge instead of centering */
    right: 100px; /* Leave space for CTA button */
    width: auto; /* Remove fixed width */
    transform: none; /* Remove transform that was causing centering */
    border-left: 5px solid;
    border-image: linear-gradient(179deg, #041ED4 -97.42%, #22E479 115.21%) 1;
    padding-left: 15px;
    background: rgba(0,0,0,0.3); /* Add background for better readability */
}

/* Background images for the boxes */
#img_esitiIPZS {
    background-image: url('/static/fornitori/img/esiti-IPZS.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px; /* Set a minimum height */
}

#img_esitiVdc {
    background-image: url('/static/fornitori/img/esiti-Valoridicarta.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px; /* Set a minimum height */
}

/* Mobile responsive - stack vertically */
@media (max-width: 768px) {
    .box-row {
        flex-direction: column;
    }
}

/* from cd */
.row-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 40px 20px;
}
.form-container {
    border: 1px solid #ddd;
    padding: 20px;
    max-width: 1280px;
    min-width: 280px;
    margin: 0 auto;
    background-color: #f9f9f9;
}
.form-container h3 {
    margin-bottom: 10px;
}
.form-container label {
    display: block;
    margin: 10px 0 5px;
}
.form-container input[type="text"],
.form-container input[type="date"],
.form-container select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.form-container .date-fields {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.form-container .date-fields label {
    margin: 0;
}
.form-container .date-fields input {
    min-width: 150px;
}
.form-container .date-fields > div {
    flex: 1;
}
.form-container .row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.form-container .row > div {
    flex: 1;
}
.form-container .full-width {
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.form-container input[type="text"].full-width,
.form-container select.full-width {
    width: 100%;
    box-sizing: border-box;
}
.form-container button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.form-container .filter-btn {
    background-color: #0E1B38;
    color: white;
    float: right;
    min-width: 150px;
}
.form-container .clear-btn {
    background-color: white;
    color: #0E1B38;
    border: 1px solid #0E1B38;
}

.form-container input:focus,
.form-container select:focus,
.form-container button:focus {
    outline: 2px solid #0066cc;
    box-shadow: 0 0 3px #0066cc;
}

@media screen and (max-width: 768px) {
    .form-container .date-fields {
        flex-direction: column;
        gap: 15px;
    }

    .form-container .row {
        flex-direction: column;
        gap: 15px;
    }

    .form-container .date-fields > div,
    .form-container .row > div {
        width: 100%;
    }

    .form-container .filter-btn,
    .form-container .clear-btn {
        width: 100%;
        margin-top: 10px;
        float: none;
    }

    .buttons-container {
        flex-direction: column;
    }

    .form-container .row > div input,
    .form-container .row > div select {
        width: 100%;
        box-sizing: border-box;
    }

    .form-container select#tipoApp,
    .form-container input#cig {
        width: 100%;
        box-sizing: border-box;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.buttons-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.results-container {
    margin-top: 20px;
}

.table-wrapper {
    overflow-x: auto;
}

#results-table, #no-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#results-table th, #results-table td, #no-results-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#results-table th {
    background-color: #f2f2f2;
}

#no-results-table td {
    text-align: center;
    font-weight: bold;
    color: white;
    background-color: #0E1B38;
    padding: 15px;
    border: none;
}

svg {
    display: block;
    margin: auto;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.modal table, .modal th, .modal td {
    border: 1px solid #ddd;
    padding: 8px;
}

.modal th {
    background-color: #f2f2f2;
}

.modal tr:nth-child(even) {
    background-color: #f9f9f9;
}

.modal tr:nth-child(odd) {
    background-color: #ffffff;
}

.legend {
    margin-top: 20px;
    font-size: 14px;
}

.legend p {
    margin: 5px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    font-size: 14px;
}

.pagination a, .pagination span {
    margin: 0 5px;
    padding: 8px 12px;
    text-decoration: none;
    color: #0E1B38;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #f2f2f2;
}

.pagination .disabled {
    color: #ccc;
    pointer-events: none;
    cursor: default;
}

.pagination .current-page {
    font-weight: bold;
    color: #0E1B38;
}

@media screen and (max-width: 768px) {
    .pagination {
        flex-wrap: wrap; /* Allow pagination to wrap on smaller screens */
        gap: 5px; /* Add spacing between elements */
    }

    .pagination a, .pagination span {
        padding: 5px 8px; /* Reduce padding for smaller buttons */
        font-size: 12px; /* Reduce font size */
    }

    .pagination a:first-child::after,
    .pagination a:nth-child(2)::after,
    .pagination a:nth-last-child(2)::after,
    .pagination a:last-child::after {
        content: none;
    }
}

.export-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 15px;
}

.export-buttons a {
    text-decoration: none;
}

.export-btn {
    padding: 10px 15px;
    background-color: white;
    color: #0E1B38;
    border: 2px solid #0E1B38;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.export-btn:hover {
    background-color: #f2f2f2;
    color: #0E1B38;
}

.detail-icon {
    cursor: pointer;
}

#results-table td:last-child {
    text-align: right;
}

/*
 * CIG DA TESTARE:
 * 83721726E4
 * 8330231416
 * 457233388C con gruppi
 * 79259783F5 ricca
 * 80384101C8 VLDC
 */

/*
 * stili ereditati dalla vecchia struttura
 * per rispettare la "legenda"
 */

.sfondo_legenda {
	border:1px solid #ccc;
	background-color:#a7d0e5;
}

.si_gruppo {
	border-bottom: none !important;
}

.no_gruppo {
	border-bottom: 1px dotted !important;
	border-top: 1px dotted !important;
}

.si_agg {
	background-color: #0E1B38; color: white; border: 1px solid #ddd; padding: 2px 5px;
}

.no_agg {
	font-weight: normal;
}

.box-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
}

.box-link:hover {
    text-decoration: none;
    color: inherit;
}

.box-link:visited {
    color: inherit;
}

/* Burger menu styles - move to right */
.nav-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px;
}

.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    margin-left: auto; /* Push to the right */
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;
    width: 100%; /* Add this to take full width */
}

/* Active menu item indicator */
.nav-menu li {
    position: relative;
}

.active-indicator {
    width: 48px;
    height: 4px;
    flex-shrink: 0;
    background: linear-gradient(90deg, #0226CE 0%, #22E479 100%);
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
        order: 2; /* Ensure it stays on the right */
    }
    
    .fornitoriNav ul,
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%; /* Hide by default - this is key */
        width: 100%;
        height: 100vh;
        background-color: #0E1B38;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 60px 20px 20px 20px;
        transition: left 0.3s ease;
        z-index: 1000;
        gap: 0;
        /* Add these properties to ensure it's hidden */
        visibility: hidden;
        opacity: 0;
    }
    
    /* Only show when active class is added */
    .nav-menu.active {
        left: 0;
        visibility: visible;
        opacity: 1;
    }
    
    .fornitoriNav li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        position: relative;
    }
    
    .fornitoriNav li:last-of-type {
        margin-left: 0;
        margin-top: auto;
        border-bottom: none;
    }
    
    .fornitoriNav li a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }
    
    /* Hide active indicator on mobile */
    .active-indicator {
        display: none;
    }
    
    /* Burger animation when active */
    .burger-menu.active .burger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active .burger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 480px) {
  .logo-full { display: none; }
  .logo-mobile { display: block; }
  #Livello_1 { 
    display: none;
    viewBox: 0 0 80 100; /* viewBox ottimizzato per mobile */
  }
}
