/* ============================================
   GENERA OFFERTA - CSS
   ============================================ */

/* Contenitori principali con bordi e ombre */
.contairer-header,
.gpslistino-content {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
    background: #fff;
}

/* Sommario introduttivo */
.gpssommario {
    margin-bottom: 20px;
}

.gpssommario p {
    margin-bottom: 10px;
}

.gpssommario a {
    color: #FF6200;
    text-decoration: none;
}

.gpssommario a:hover {
    text-decoration: underline;
}

/* Navbar modalità pagamento */
.navbar-light {
    background-color: #f8f9fa !important;
    border-radius: 6px;
    margin: 15px 0;
}

/* Dropdown modalità pagamento */
#modalitapagamento {
    position: relative;
    display: inline-block;
}

#modalitapagamento .btn {
    background-color: #fff;
    border: 1px solid #FF6200;
    color: #FF6200;
    padding: 8px 16px;
    cursor: pointer;
}

#modalitapagamento .btn:hover {
    background-color: #FF6200;
    color: #fff;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
}

#modalitapagamento:hover .dropdown-content {
    display: block;
}

/* Header tabella con logo Giant */
.gpsheader {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.gpsheader td {
    padding: 10px;
    vertical-align: top;
}

.gpsheader .imgcontainer {
    text-align: center;
}

.gpsheader .imgcontainer img {
    max-width: 100%;
    height: auto;
}

.gpsheader .imgcontainer span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Tabelle listino e personalizzazioni */
.gpslistino,
.gpspersonaliza {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.gpslistino thead th,
.gpspersonaliza thead th {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.gpslistino tbody td,
.gpspersonaliza tbody td {
    border: 1px solid #ddd;
    padding: 10px;
    vertical-align: middle;
}

.gpslistino tbody tr:hover,
.gpspersonaliza tbody tr:hover {
    background-color: #f9f9f9;
}

/* Allineamenti celle */
.currency {
    text-align: right;
}

.number {
    text-align: center;
}

.center {
    text-align: center;
}

.left {
    text-align: left;
}

.right {
    text-align: right;
}

/* Righe totali */
.gpstotimporto,
.gpstotsconto,
.gpstotimponibile,
.gpstotiva {
    font-weight: 500;
    background-color: #f8f9fa;
}

.gpstotale {
    font-weight: 700;
    background-color: #FF6200;
    color: #fff;
}

.gpstotale td {
    border-color: #FF6200;
}

/* Checkbox grafiche custom */
.class_checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    cursor: pointer;
    background-color: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.class_checkbox.checked {
    background-color: #FF6200;
    border-color: #FF6200;
}

.class_checkbox.checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

/* Input number per quantità */
input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

input[type="number"]:focus {
    outline: none;
    border-color: #FF6200;
}

/* Bottone submit arancione */
.btn-outline-success {
    background-color: #fff;
    border: 2px solid #FF6200;
    color: #FF6200;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background-color: #FF6200;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 98, 0, 0.3);
}

/* Titoli */
h2.center {
    text-align: center;
    color: #333;
    margin: 20px 0;
    font-weight: 600;
}

/* Responsive */
@media print {
    .hide-to-print {
        display: none !important;
    }
}

@media screen {
    .hide-to-screen {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .gpslistino thead {
        display: none;
    }
    
    .gpslistino tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
    }
    
    .gpslistino tbody td {
        display: block;
        text-align: right;
        padding: 8px;
        border: none;
        border-bottom: 1px solid #eee;
    }
    
    .gpslistino tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
    }
}
