.modern-btn {
    border: none;
    border-radius: 15px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.modern-btn.secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.modern-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(108, 117, 125, 0.3);
    color: white;
    text-decoration: none;
}

.modern-btn.green {
    background: linear-gradient(135deg, #029D7E, #4DC9A5);
    color: white;
}

.modern-btn.green:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(2, 157, 126, 0.3);
    color: white;
    text-decoration: none;
}

.modern-btn.outline {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
}

.modern-btn.outline:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

.modern-btn.primary {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.modern-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.3);
    color: white;
    text-decoration: none;
}

.modern-btn.teal {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.modern-btn.teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.3);
    color: white;
    text-decoration: none;
}

.modern-btn.navy {
    background: linear-gradient(135deg, #0c1e4a, #1e40af);
    color: white;
}

.modern-btn.navy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.4);
    color: white;
    text-decoration: none;
}

.modern-btn.blue {
    background: linear-gradient(135deg, #48cae4, #0077b6);
    color: white;
}

.modern-btn.blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.3);
    color: white;
    text-decoration: none;
}

.modern-btn.dark-green {
    background: linear-gradient(135deg, #2d6a4f, #1b4332);
    color: white;
}

.modern-btn.dark-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(27, 67, 50, 0.4);
    color: white;
    text-decoration: none;
}

.modern-btn.warning {
    background: linear-gradient(135deg, #48cae4, #0077b6);
    color: white;
}

.modern-btn.warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.3);
    color: white;
    text-decoration: none;
}

.modern-btn.purple {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
}

.modern-btn.purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(156, 39, 176, 0.3);
    color: white;
    text-decoration: none;
}

.modern-btn.gray {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.modern-btn.gray:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(108, 117, 125, 0.3);
    color: white;
    text-decoration: none;
}

.modern-btn.yellow {
    background: linear-gradient(135deg, #ffd60a, #ff8500);
    color: white;
}

.modern-btn.yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 133, 0, 0.3);
    color: white;
    text-decoration: none;
}

.modern-btn.danger {
    background: linear-gradient(135deg, #f72585, #c5025a);
    color: white;
}

.modern-btn.pdf {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
    box-shadow: 0 4px 15px rgba(156,39,176,0.3);
}

.modern-btn.pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(156,39,176,0.35);
    color: white;
    text-decoration: none;
}

.modern-btn.danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(247, 37, 133, 0.3);
    color: white;
    text-decoration: none;
}

.modern-btn.orange {
    background: linear-gradient(135deg, #ff8c00, #ff4500);
    color: white;
}

.modern-btn.orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
    color: white;
    text-decoration: none;
}

.modern-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

[data-bs-theme="dark"] .modern-btn.primary,
[data-bs-theme="dark"] .modern-btn.primary *,
[data-bs-theme="dark"] .modern-btn.primary i,
[data-bs-theme="dark"] .modern-btn.teal,
[data-bs-theme="dark"] .modern-btn.teal *,
[data-bs-theme="dark"] .modern-btn.teal i,
[data-bs-theme="dark"] .modern-btn.blue,
[data-bs-theme="dark"] .modern-btn.blue *,
[data-bs-theme="dark"] .modern-btn.blue i,
[data-bs-theme="dark"] .modern-btn.warning,
[data-bs-theme="dark"] .modern-btn.warning *,
[data-bs-theme="dark"] .modern-btn.warning i,
[data-bs-theme="dark"] .modern-btn.purple,
[data-bs-theme="dark"] .modern-btn.purple *,
[data-bs-theme="dark"] .modern-btn.purple i,
[data-bs-theme="dark"] .modern-btn.gray,
[data-bs-theme="dark"] .modern-btn.gray *,
[data-bs-theme="dark"] .modern-btn.gray i,
[data-bs-theme="dark"] .modern-btn.danger,
[data-bs-theme="dark"] .modern-btn.danger *,
[data-bs-theme="dark"] .modern-btn.danger i,
[data-bs-theme="dark"] .modern-btn.orange,
[data-bs-theme="dark"] .modern-btn.orange *,
[data-bs-theme="dark"] .modern-btn.orange i,
[data-bs-theme="dark"] .modern-btn.dark-green,
[data-bs-theme="dark"] .modern-btn.dark-green *,
[data-bs-theme="dark"] .modern-btn.dark-green i {
    color: white !important;
}

[data-bs-theme="dark"] .modern-btn.outline {
    border-color: #adb5bd;
    color: #adb5bd;
}

[data-bs-theme="dark"] .modern-btn.outline:hover {
    background: #adb5bd;
    color: #212529;
}

.importa-dropdown-menu {
    border-radius: 12px;
    border: 1px solid rgba(2, 157, 126, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 6px;
    min-width: 160px;
}

.importa-dropdown-item {
    border-radius: 8px;
    padding: 9px 14px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #344054;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.importa-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(2, 157, 126, 0.1), rgba(77, 201, 165, 0.1));
    color: #029D7E;
}

.importa-dropdown-item i {
    font-size: 1rem;
    opacity: 0.85;
}

[data-bs-theme="dark"] .importa-dropdown-menu {
    background: #1a1d29;
    border-color: rgba(2, 157, 126, 0.3);
}

[data-bs-theme="dark"] .importa-dropdown-item {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .importa-dropdown-item:hover {
    background: rgba(2, 157, 126, 0.15);
    color: #4DC9A5;
}

.btn-nuovo-rapido {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #029D7E, #4DC9A5);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}
.btn-nuovo-rapido:hover { opacity: 0.85; }

.modal-header-verde {
    background: linear-gradient(135deg, #029D7E, #4DC9A5);
    color: white;
}
.sconto1-input::-webkit-inner-spin-button, .sconto1-input::-webkit-outer-spin-button,
.sconto2-input::-webkit-inner-spin-button, .sconto2-input::-webkit-outer-spin-button,
.input-sconto::-webkit-inner-spin-button,  .input-sconto::-webkit-outer-spin-button,
.sconto-input::-webkit-inner-spin-button,  .sconto-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sconto1-input, .sconto2-input, .input-sconto, .sconto-input { -moz-appearance: textfield; }

.modal-header-verde .btn-close { filter: invert(1); }

.export-icon-pdf { color: #9c27b0 !important; }
.badge-brand-green { background: linear-gradient(135deg, #029D7E 0%, #4DC9A5 100%); color: white; }
.export-icon-xml { color: #0288d1 !important; }
