
.modal-servicio-content {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.modal-servicio-header {
    background: linear-gradient(135deg, #1e1e2f 0%, #2d2b55 100%);
    color: white;
    padding: 1.5rem 2rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-servicio-header .modal-title {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.modal-servicio-header small,
.modal-servicio-header .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.82rem;
}

.modal-servicio-header .btn-close {
    filter: brightness(0) invert(1) !important;
    opacity: 1;
    margin-left: auto;
}

.modal-header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}


.modal-form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    background: #f8f9fb;
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease;
    width: 100%;
}

.form-section:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.form-section-full {
    grid-column: 1 / -1;
}

.form-section-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.form-section-title i {
    font-size: 1.2rem;
    color: #5b18d8;
}

.modal-servicio-content .form-label {
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.modal-servicio-content .form-control,
.modal-servicio-content .form-select {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.modal-servicio-content .form-control:focus,
.modal-servicio-content .form-select:focus {
    border-color: #5b18d8;
    box-shadow: 0 0 0 3px rgba(91, 24, 216, 0.1);
    background: #ffffff;
}

.modal-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

.modal-footer-actions .btn-primary {
    background: linear-gradient(135deg, #1e1e2f 0%, #2d2b55 100%);
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 10px;
    transition: filter 0.2s ease;
}

.modal-footer-actions .btn-primary:hover {
    filter: brightness(1.15);
}

.modal-footer-actions .btn-outline-secondary {
    border-radius: 10px;
    padding: 0.7rem 1.5rem;
    transition: filter 0.2s ease;
}

.modal-footer-actions .btn-outline-secondary:hover {
    filter: brightness(0.92);
}


.export-toolbar {
	background: #f8f9fb;
	border-radius: 14px;
	padding: 1rem 1.25rem;
	border: 1px solid #e9ecef;
	display: flex;
	align-items: center;
}

.export-toolbar .form-control,
.stats-export-toolbar .form-control {
	margin: 0;
	vertical-align: middle;
}


.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: #e9ecef;
    color: #495057;
    border: 2px solid transparent;
    transition: background 0.25s ease, color 0.25s ease;
    user-select: none;
}

.filter-chip:hover {
    background: #d4d0e8;
    color: #3b1a7e;
}

.filter-chip.active {
    background: linear-gradient(135deg, #5b18d8 0%, #7c3aed 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(91, 24, 216, 0.25);
}

.filter-chip-separator {
    width: 2px;
    height: 24px;
    background: #dee2e6;
    border-radius: 1px;
    margin: 0 0.25rem;
}


.detail-modal-content {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.detail-section {
    background: #f8f9fb;
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

.detail-section-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.detail-section-title i {
    font-size: 1.2rem;
    color: #5b18d8;
}

.detail-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.detail-spec-item small {
    color: #888;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

@media (max-width: 991px) {
    .modal-dialog {
        margin: 1.2rem;
    }
    .modal-servicio-header,
    .modal-footer-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .modal-header-icon {
        width: 44px;
        height: 44px;
    }
    .modal-servicio-content .form-control,
    .modal-servicio-content .form-select {
        font-size: 0.95rem;
    }
    .modal-form-grid {
        gap: 1rem;
    }
    .detail-spec-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 767px) {
    .modal-dialog {
        max-width: 100%;
        margin: 1rem;
    }
    .modal-servicio-header {
        padding: 1.1rem 1rem;
    }
    .modal-footer-actions {
        justify-content: center;
    }
}


.detail-gallery-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #e9ecef;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.detail-gallery-thumb:hover {
    border-color: #5b18d8;
    opacity: 0.85;
}

.detail-upload-zone {
    border: 2px dashed #c4b5e0;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    background: #f8f5ff;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.detail-upload-zone:hover {
    background: #ede8ff;
    border-color: #5b18d8;
}


.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.proceso {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.status-badge.reparado {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.status-badge.faltan_partes {
    background: rgba(255, 193, 7, 0.15);
    color: #997404;
}

.status-badge.en_espera {
    background: rgba(108, 117, 125, 0.12);
    color: #6c757d;
}

.status-badge.presupuesto {
    background: rgba(91, 24, 216, 0.1);
    color: #5b18d8;
}

.status-badge.sin_reparacion {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}