/* ============================================
   ETINET LOCAUTO - AREA RISERVATA STYLES
   ============================================ */

:root {
    --primary-color: #2271b1;
    --primary-dark: #135e96;
    --secondary-color: #00a32a;
    --danger-color: #d63638;
    --warning-color: #dba617;
    --text-dark: #1e1e1e;
    --text-light: #666;
    --border-color: var(--grigio);
    --bg-light: #e7e7e7;
    --sidebar-width: 330px;
    --header-height: 70px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

.fs-33 {
    font-size: 33px!important;
}
.color-black { color: var(--nero)!important; }
.color-white { color: var(--bianco)!important; }

/* ============================================
   HEADER
   ============================================ */

.breadcrumb-wrapper {
    display: none;
}

.area-riservata-header {
    height: var(--header-height);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.header-logo svg {
    width: 32px;
    height: 32px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-notifications {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--text-light);
    position: relative;
}

.notification-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.user-profile:hover {
    background: var(--bg-light);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.user-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.user-info p {
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================
   LAYOUT
   ============================================ */

.area-riservata-layout {
    margin-top: var(--header-height);
    display: flex;
    /*min-height: calc(100vh - var(--header-height));*/
}

/* ============================================
   SIDEBAR
   ============================================ */

.area-riservata-sidebar {
    width: var(--sidebar-width);
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
    position: sticky;
    height: fit-content;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    top: var(--header-height);
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    transition: var(--transition);
    flex-shrink: 0;
}

aside.area-riservata-sidebar .menu-item a {
    font-size: 20px;
    justify-content: center;
    display: flex;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

aside.area-riservata-sidebar .menu-item a.active span {
    color: var(--bianco)!important;
}

body.admin-bar .area-riservata-header {
    top: 32px;
}

body.admin-bar aside.area-riservata-sidebar {
    top: 170px;
}

.area-riservata div.wp-site-blocks > header {
    display: none;
}

.sidebar-menu {
    list-style: none;
}

.p-20 {
    padding: 20px;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    font-weight: 500;
}

.menu-item a:hover {
    background: var(--bg-light);
    color: #000!important;
    border: 1px solid var(--bg-light)!important;
}

.menu-item a.active {
    background: var(--primary-color);
    color: white!important;
}

.menu-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 25px;
}

/* ============================================
   SIDEBAR MOBILE
   ============================================ */
.area-riservata-sidebar-mobile {
    display: none;
    position: fixed;
    top: 130px;
    left: 0;
    width: 100%;
    z-index: 100;
    pointer-events: none;
}

.area-riservata-sidebar-mobile.open {
    pointer-events: all;
}

#sidebar-mobile-button {
    width: 100%;
    padding: 16px var(--global-padding);
    border: none;
    border-bottom: 1px solid var(--grigio);
    background: var(--grigio-chiaro);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: all;
}

#sidebar-mobile-button span {
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.14px;
}

#sidebar-mobile-button svg {
    transform: scaleY(1);
    transition: var(--transition);
}

.area-riservata-sidebar-mobile.open #sidebar-mobile-button svg {
    transform: scaleY(-1);
}

#sidebar-mobile-dropdown {
    width: 100%;
    transform: scaleY(0);
    transition: var(--transition);
    transform-origin: top;
}

.area-riservata-sidebar-mobile.open #sidebar-mobile-dropdown {
    transform: scaleY(1);
}

#sidebar-mobile-dropdown li a {
    padding: 10px 56px;
    min-height: 52px;
    border-bottom: 1px solid var(--grigio);
    border-radius: 0;
    background: #fff;
}

#sidebar-mobile-dropdown li a span {
    color: var(--locauto-blu);
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.14px;
}

#sidebar-mobile-dropdown li a.active {
    background: var(--locauto-blu);
}

#sidebar-mobile-dropdown li a.active span {
    color: #fff;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.area-riservata-layout h1 {
    font-size: 33px;
    font-weight: 500;
    line-height: 129%;
    letter-spacing: -0.99px;
}

.area-riservata-content {
    flex: 1;
    padding: 0 40px;
    /*min-height: calc(100vh - var(--header-height));*/
}

.content-header {
    margin-bottom: 30px;
}

.content-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.content-header p {
    color: var(--text-light);
    font-size: 15px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* ============================================
   CARDS
   ============================================ */

.card {
    background: white;
    border-radius: 12px;
    border:var(--bs-border-width) solid var(--bs-border-color)!important;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 12px!important;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.card-actions {
    display: flex;
    gap: 10px;
}

/* ============================================
   PREVENTIVI
   ============================================ */

.preventivo-card .row .col-6:nth-child(2) {
    border-left: 1px solid var(--grigio);
}

.preventivo-card .row .col-6:nth-child(3) {
    border-right: 1px solid var(--grigio);
}

.preventivi-table {
    width: 100%;
    border-collapse: collapse;
}

.preventivi-table thead {
    background: var(--bg-light);
}

.preventivi-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.preventivi-table td {
    padding: 18px 15px;
    border-bottom: 1px solid var(--border-color);
}

.preventivi-table tbody tr {
    transition: var(--transition);
}

.preventivi-table tbody tr:hover {
    background: #fafafa;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.confirmed {
    background: #d4edda;
    color: #155724;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.expired {
    background: #e2e3e5;
    color: #383d41;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    color: var(--text-light);
}

.btn-icon:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    /*transition: var(--transition);*/
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    /*transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);*/
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
}

.btn-success {
    background: var(--secondary-color);
    color: white;
}

.btn-success:hover {
    background: #008a24;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.yellow-btn {
    background-color: var(--complementari)!important;
    color: var(--nero)!important;
    border:1px solid var(--complementari)!important;
}
.transparent-btn {
    background-color: transparent!important;
    color: var(--grigio)!important;
    border: 1px solid var(--grigio)!important;  
}
.yellow-btn:hover,
.transparent-btn:hover {
    background-color: var(--grigio)!important;
    color: var(--nero)!important;
    border: 1px solid var(--grigio)!important;  
}

/* ============================================
   WIZARD STEPS
   ============================================ */

.wizard-container {
    max-width: 100%;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.wizard-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 10px;
    transition: var(--transition);
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
}

.wizard-step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.wizard-step.active .step-label {
    color: var(--primary-color);
}

.wizard-step.completed .step-number {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.wizard-step.completed .step-label {
    color: var(--secondary-color);
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.form-group label .required {
    color: var(--danger-color);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.form-control:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

/* ============================================
   WIZARD NAVIGATION
   ============================================ */

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   VEICOLI GRID
   ============================================ */

.veicoli-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.veicolo-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.veicolo-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.veicolo-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.veicolo-image {
    width: 100%;
    height: 180px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.veicolo-image svg {
    width: 80px;
    height: 80px;
    color: var(--text-light);
}

.veicolo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.veicolo-info {
    padding: 20px;
}

.veicolo-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.veicolo-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-light);
}

.feature-item svg {
    width: 16px;
    height: 16px;
}

.veicolo-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-label {
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================
   RIEPILOGO
   ============================================ */

.riepilogo-section {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.riepilogo-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.riepilogo-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.riepilogo-item:last-child {
    border-bottom: none;
}

.riepilogo-label {
    color: var(--text-light);
    font-size: 14px;
}

.riepilogo-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.riepilogo-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin-top: 15px;
    border-top: 2px solid var(--border-color);
    font-size: 20px;
    font-weight: 700;
}

.riepilogo-total .riepilogo-value {
    color: var(--primary-color);
    font-size: 28px;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    width: 100px;
    height: 100px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* ============================================
   HOMEPAGE DASHBOARD
   ============================================ */

.friends-content {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

.mlf-card {
    padding: 20px;
    border: 1px solid var(--locauto-blu);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 1;
}

.mlf-card.disabled {
    background-color: var(--grigio-chiaro);
    border-color: var(--grigio);
}

.mlf-card.past {
    opacity: 0.55;
    border-color: #d1d5db;   /* grigio neutro invece del bordo blu */
    background-color: #f9fafb;
}

.mlf-card.past h2,
.mlf-card.past p {
    color: #9ca3af;
}

.mylocauto-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.mylocauto-options .option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.option-card a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    line-height: normal;
    align-items: center;
    border-radius: 12px;
    width: 100%;
    padding: 18px;
    background-color: var(--complementari);
    margin-top: 20px;
}
nav.sidebar-menu .menu-item a span {
    color: var(--locauto-blu);
}
/* ============================================
   GESTIONE PROFILO
   ============================================ */

.custom-floating span.text-danger {
    color: var(--grigio-scuro)!important;
}
.custom-floating label {
    font-size: 14px;
    font-weight: 500;
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
    color: var(--grigio-scuro);
}
.custom-floating input {
    padding: 3.5rem 1.75rem 1.2rem 1.75rem!important;
    height: 100%!important;
    font-size: 16px;
    border: var(--bs-border-width) solid var(--bs-border-color);
    box-shadow: unset;
    border-radius: 12px;
}
.custom-floating input:focus {
    border: var(--bs-border-width) solid var(--bs-border-color)!important;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}
.custom-floating >label {
    padding: 2rem 1.75rem!important;
}
.form-control::placeholder {
    color: var(--grigio-scuro)!important;
    opacity: 1;
}
.file-box {
    cursor: pointer;
    width: 100%;
}

.file-box-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 16px;
    border: 1px solid #ced4da;
    border-radius: 12px;
    background-color: #fff;
    color: #6c757d;
    transition: border-color .2s, box-shadow .2s;
    line-height: 1.1;
}

.file-box-inner:hover,
.form-check-input:focus {
    border: var(--bs-border-width) solid var(--bs-border-color)!important;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1)!important;
}

.file-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.file-box i {
    font-size: 18px;
}
.billing-box {
    border-radius: 16px;
    border: 1px solid #dee2e6;
}

.form-switch .form-check-input {
    width: 60px!important;
    height: 30px!important;
    cursor: pointer;
}

/* ============================================
   IL TUO ACCOUNT
   ============================================ */
.green-custom-check {
    display: flex!important;
    align-items: flex-start;
    gap: 10px;
}

.green-custom-check .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
}

.green-custom-check .form-check-input:checked {
    background-color: #198754; /* verde Bootstrap */
    border-color: #198754;
}

.green-custom-check .form-check-label {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.green-custom-check a {
    color: #6c757d;
    text-decoration: underline;
}

.green-custom-check a:hover {
    color: var(--primary-color);
}

.ctm-btn-danger {
    border-radius: 9px!important;
    border: 1px solid var(--grigio, #DEE2E6)!important;
    background: var(--bianco, #FFF)!important;    
}


/* ============================================
   SWUP TRANSITIONS
   ============================================ */

.transition-fade {
    transition: opacity 0.3s ease;
    opacity: 1;
}

html.is-animating .transition-fade {
    opacity: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }
}

@media (max-width: 768px) {
    .area-riservata-sidebar {
        transform: translateX(-100%);
    }
    
    .area-riservata-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .area-riservata-content {
        margin-left: 0;
    }
    .area-riservata-content .container,
    .area-riservata-content {
        padding: 0!important;
    }
    
    .header-logo span {
        display: none;
    }
    
    .user-info {
        display: none;
    }
    
    .wizard-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .wizard-steps::before {
        display: none;
    }
    
    .wizard-step {
        flex-direction: row;
        gap: 15px;
        justify-content: flex-start;
    }
    
    .veicoli-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .preventivo-card .row .col-6:nth-child(2),
    .preventivo-card .row .col-6:nth-child(3) {
        border: none !important;
    }
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.hidden { display: none !important; }
.color-blue { color: var(--primary-color); }
.color-grey { color: var(--text-light); }
.fs-28 { font-size: 28px; }
.fs-25 { font-size: 25px; }
.fs-22 { font-size: 22px; }
.fs-20 { font-size: 20px; }
.fs-18 { font-size: 18px; }
.fs-16 { font-size: 16px; }
.w-15 { width: 15%; }
.w-85 { width: 85%; }
.w-65 { width: 65%; }
.w-35 { width: 35%; }
.line-height-130 { line-height: 130%; } 
.br-12 { border-radius: 12px; }
.bc-grey { border: 1px solid var(--grigio); }
.grid-template-columns-4 { grid-template-columns: repeat(4, 1fr); }
.grid-template-columns-3 { grid-template-columns: repeat(3, 1fr); }

.card-body .badge {
    font-size: 14px!important;
    padding: 5px 10px!important;
    border-radius: 100px!important;
}
.badge.bg-success {
    background-color: #23AF00!important;
    border: 1px solid #00B67A!important;
    color: white!important;
}
.badge.bg-warning {
    background-color: var(--grigio-chiaro)!important;
    border: 1px solid var(--grigio)!important;
    color: #000;  
}
.noleggi-passati-table {
    border-collapse: separate;
    border-spacing: 0 14px;
}

.noleggi-passati-table thead th {
    border: none;
    padding: 15px 20px;
    color: #6c757d;
    font-size: 14px;
}

/* ============================================
   DATA DI NASCITA - 3 SELECT
   ============================================ */

.dob-select {
    appearance: auto;
    -webkit-appearance: auto;
    cursor: pointer;
    background-color: #fff;
    color: var(--text-dark);
}

.dob-select:disabled {
    background-color: #fff;
    color: var(--text-dark);
    cursor: not-allowed;
    opacity: 1;
}

.dob-select[data-readonly-permanent]:disabled {
    cursor: not-allowed;
    box-shadow: none;
}

.dob-select:not(:disabled):focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
    outline: none;
}

.dob-select option:disabled {
    color: var(--grigio-scuro);
}

/* ============================================
   FILE BOX — stato neutro (no errore)
   ============================================ */

.file-box--neutral .file-box-label { color: #6c757d; }
.file-hint-neutral { font-size: 12px; color: #6c757d; font-weight: 400; }
.file-hint-success { font-size: 12px; color: #208137; font-weight: 400; }
/* struttura base cella */
.noleggi-passati-table tbody td {
    padding: 15px 20px;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

/* righe alternate */
.noleggi-passati-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.noleggi-passati-table tbody tr:nth-child(even) td {
    background: #F2F2F2;
}

/* bordi laterali */
.noleggi-passati-table tbody td:first-child {
    border-left: 1px solid #dee2e6;
    border-radius: 12px 0 0 12px;
}

.noleggi-passati-table tbody td:last-child {
    border-right: 1px solid #dee2e6;
    border-radius: 0 12px 12px 0;
}

/* hover */
.noleggi-passati-table tbody tr:hover td {
    background: #e9ecef;
}
input[data-readonly-permanent] {
    cursor: not-allowed !important;
    box-shadow: none !important;
}
div#dati-utente-message {
    font-size: 14px;
}
.badge-status-paid {
    background-color: #16a34a;
    color: #fff;
    white-space: nowrap;
}

.badge-status-partial {
    background-color: #bbf7d0;
    color: #14532d!important;
    white-space: nowrap!important;
}

.badge-status-unpaid {
    background-color: #e5e7eb;
    color: #374151!important;
    white-space: nowrap!important;
}

.status-note-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background-color: #f0fdf4;
    border-left: 3px solid #bbf7d0;
    border-radius: 4px;
    padding: 10px 14px;
    color: #14532d;
    font-size: 13px;
    line-height: 1.5;
}
@media (max-width: 991.98px) {
    .area-riservata-sidebar {
        display: none;
    }
    .area-riservata-sidebar-mobile {
        display: block;
    }
    .mylocauto-options {
        grid-template-columns: 1fr;
    }
    .bg-locauto-friends {
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    .friends-content {
        height: auto;
        padding: 100px 16px 16px !important;
    }
    .grid-template-columns-4 {
        grid-template-columns: 1fr;
    }

    .grid-template-columns-3 {
        grid-template-columns: 1fr;
    }

    .noleggi-passati-table .table-min-width {
        min-width: 335px;
    }
}