/* Configuración */
.config-section-title{
    font-size: 15px;
    font-weight: 600;
    color: var(--color1);
    margin: 0 0 4px 0;
    letter-spacing: 0.3px;
}

.config-section-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.config-section-subtitle{
    font-size: 12px;
    color: #6c757d;
    margin: 0 0 1rem 0;
}

.config-save-btn{
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: var(--color1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', Arial, sans-serif;
}

.config-save-btn:hover{
    opacity: 0.85;
    transform: translateY(-1px);
}

.config-message{
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
}

.config-message.success{
    color: #28a745;
}

.config-message.error{
    color: #dc3545;
}

.config-vehicle-header{
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 12px;
    color: var(--color1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid #e9ecef;
    gap: 10px;
}

.config-vehicle-row{
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
    gap: 10px;
    position: relative;
}

.config-vehicle-row:last-child{
    border-bottom: none;
}

.config-vehicle-code{
    font-size: 13px;
    color: #495057;
    font-weight: 400;
}

.config-vehicles-card{
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.config-vehicles-table-header{
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.config-vehicles-table{
    height: 350px;
    overflow-y: auto;
    overflow-x: auto;
}

/* allow scroll in configuracion page - removed, scroll is in config-vehicles-table */
.config-scroll-container{
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.config-row-message{
    position: absolute;
    right: 120px;
    font-size: 11px;
    font-weight: 500;
}

.config-row-message.success{
    color: #28a745;
}

.config-row-message.error{
    color: #dc3545;
}

.config-name-input{
    width: 100%;
    box-sizing: border-box;
}

/* Custom Fields */
.cf-field-card{
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.cf-field-header{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.cf-field-name{
    flex: 1;
    max-width: 250px;
    font-weight: 600;
}

.cf-delete-btn{
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.cf-delete-btn:hover{
    background: rgba(220, 53, 69, 0.1);
}

.cf-options{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cf-option{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    padding: 6px 10px;
    font-size: 12px;
    color: #495057;
}

.cf-option span{
    line-height: 1;
}

.cf-option-delete{
    cursor: pointer;
    color: #adb5bd;
    font-size: 12px;
    transition: color 0.2s;
    line-height: 1;
}

.cf-option-delete:hover{
    color: #dc3545;
}

.cf-add-option{
    display: flex;
    align-items: center;
    gap: 6px;
}

.cf-option-input{
    width: 140px;
    padding: 4px 8px;
    font-size: 12px;
}

.cf-add-option-btn{
    padding: 4px 8px;
    font-size: 11px;
}

.cf-unsaved{
    border-color: #e67e22 !important;
    background-color: #fef9f3 !important;
}

.config-cf-select{
    width: 100%;
    padding: 6px 8px;
    font-size: 11px;
    box-sizing: border-box;
}

.cf-new-field-inline{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
}

.cf-new-field-name{
    width: 200px;
}

.cf-confirm-delete{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 6px;
    font-size: 12px;
    color: #dc3545;
    font-weight: 500;
}

.cf-confirm-yes{
    padding: 4px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    font-family: 'Poppins', Arial, sans-serif;
}

.cf-confirm-no{
    padding: 4px 12px;
    background: #e9ecef;
    color: #495057;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    font-family: 'Poppins', Arial, sans-serif;
}

/* Custom field filter */
.cf-header-col{
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.cf-filter-icon{
    font-size: 11px;
    color: var(--color1);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.cf-filter-icon:hover{
    opacity: 0.7;
}

.cf-filter-icon.cf-filter-active::after{
    content: '';
    position: absolute;
    top: -3px;
    right: -5px;
    width: 6px;
    height: 6px;
    background-color: #e67e22;
    border-radius: 50%;
}

.cf-filter-dropdown{
    display: none;
    position: fixed;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 140px;
    max-height: 200px;
    overflow-y: auto;
}

.cf-filter-dropdown.show{
    display: block;
}

.cf-filter-option{
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.1s;
}

.cf-filter-option:hover{
    background: #f8f9fa;
}

.cf-filter-option:first-child{
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    color: #6c757d;
}

.cf-filter-option:last-child{
    border-radius: 0 0 8px 8px;
}
