﻿/* ==================== CONTAINER Y LAYOUT PRINCIPAL ==================== */
.detalle-container {
    min-height: calc(100vh - 56px);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 1.5rem;
}

/* ==================== HEADER ==================== */
.detalle-header {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.header-main {
    flex: 1;
}

    .header-main h4 {
        color: #212529;
        font-weight: 700;
    }

.header-icon {
    width: 60px;
    height: 60px;
    background: #0b1125;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* ==================== BARRA DE PROGRESO ==================== */
.progress {
    border-radius: 1rem;
    overflow: hidden;
    background-color: #e9ecef;
}

.progress-bar {
    transition: width 0.6s ease;
}

    .progress-bar.bg-success {
        background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    }

/* ==================== INFO CARDS ==================== */
.info-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-card {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f5;
    min-height: 120px;
}

    .info-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        border-color: #667eea;
    }

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.info-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .info-card-content h6 {
        font-size: 0.75rem;
        color: #6c757d;
        margin-bottom: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.info-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .info-item small {
        font-size: 0.7rem;
        font-weight: 600;
    }

    .info-item .fw-medium {
        font-size: 0.875rem;
    }

.info-content-single {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.info-resources {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ==================== SECCIÓN DE ACTIVIDADES ==================== */
.actividades-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f5;
}

    .section-header h5 {
        margin: 0;
        color: #212529;
        font-weight: 600;
    }

.badge-lg {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==================== DATOS COMPACTOS ==================== */
.dato-compact {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

    .dato-compact small {
        font-size: 0.65rem;
        color: #6c757d;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .dato-compact strong {
        font-size: 0.875rem;
        font-weight: 600;
    }

/* ==================== ESTADOS ==================== */
.loading-state,
.error-state,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: white;
    border-radius: 1rem;
    min-height: 400px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

    .loading-state i,
    .error-state i,
    .empty-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

/* ==================== MODAL ==================== */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    background: #0b1125;
    color: white;
    border-radius: 1rem 1rem 0 0;
    border: none;
    padding: 1.25rem 1.5rem;
}

    .modal-header .modal-title {
        color: white;
        font-weight: 600;
    }

    .modal-header .btn-close {
        filter: brightness(0) invert(1);
    }

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

/* ==================== SOLICITUDES NORUT ==================== */
.noruts-grid-desktop {
    display: grid;
    gap: 0.75rem;
}

.norut-card-desktop {
    background: white;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .norut-card-desktop:hover {
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
        border-color: #ffb300;
    }

.norut-header {
    background: linear-gradient(to right, #fff9e6 0%, #ffffff 100%);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #ffe8a1;
}

    .norut-header h6 {
        color: #212529;
        font-weight: 600;
        font-size: 1rem;
    }

.norut-body {
    padding: 1rem 1.25rem;
    background: #fafbfc;
}

.norut-extra-info {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.noruts-mobile .card {
    border-left: 4px solid #ffc107;
}

/* ==================== ACTIVIDADES AGRUPADAS ==================== */
.actividades-agrupadas-grid {
    display: grid;
    gap: 1rem;
}

.actividad-agrupada-card {
    background: white;
    border: 1px solid #e9ecef;
    border-left: 4px solid #667eea;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .actividad-agrupada-card:hover {
        border-left-color: #764ba2;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    }

.actividad-agrupada-header {
    background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

    .actividad-agrupada-header h6 {
        color: #212529;
        font-weight: 600;
        font-size: 1rem;
        margin: 0;
    }

.actividad-agrupada-body {
    padding: 1rem 1.25rem;
    background: #fafbfc;
}

.actividad-agrupada-footer {
    padding: 0.75rem 1.25rem;
    background: white;
    border-top: 1px solid #e9ecef;
}

/* ==================== CALENDARIO ==================== */
.calendario-container {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e9ecef;
}

.calendario-leyenda {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
}

.leyenda-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 0.35rem;
    margin-right: 0.5rem;
    border: 2px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendario-header h6 {
    color: #212529;
    font-weight: 700;
    text-transform: capitalize;
    font-size: 1.25rem;
    margin: 0;
}

.calendario-dias-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 2px solid #f1f3f5;
}

.dia-semana {
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #495057;
    padding: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendario-dias {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

.calendario-dia {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    font-weight: 600;
    min-height: 60px;
}

    .calendario-dia.otro-mes {
        opacity: 0.25;
        pointer-events: none;
        background: #f8f9fa;
    }

    .calendario-dia.con-actividad {
        font-weight: 700;
        color: white;
        border-width: 3px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

        .calendario-dia.con-actividad.bg-success {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            border-color: #28a745;
        }

        .calendario-dia.con-actividad.bg-danger {
            background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
            border-color: #dc3545;
        }

        .calendario-dia.con-actividad.bg-warning {
            background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
            border-color: #ffc107;
            color: #212529;
        }

        .calendario-dia.con-actividad.bg-primary {
            background: linear-gradient(135deg, #0d6efd 0%, #667eea 100%);
            border-color: #0d6efd;
        }

        .calendario-dia.con-actividad:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
            z-index: 10;
        }

.dia-numero {
    font-size: 1rem;
}

.dia-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.4);
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 2rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dia-info {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    line-height: 1;
    white-space: nowrap;
}

    .dia-info i {
        font-size: 0.6rem;
    }

/* ==================== MODAL ASISTENTE CAPTURA ==================== */
.modal-captura-norut {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

    .modal-captura-norut .modal-dialog {
        margin: 1rem auto;
    }

/* Stepper Desktop */
.stepper-container {
    overflow-x: auto;
    overflow-y: hidden;
}

.stepper-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-width: 600px;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .stepper-step:hover:not(.completed) .step-circle {
        transform: scale(1.1);
    }

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 3px solid #e9ecef;
}

.stepper-step.active .step-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.stepper-step.completed .step-circle {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.step-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    max-width: 100px;
    font-weight: 600;
}

.stepper-step.active .step-label {
    color: #667eea;
    font-weight: 700;
}

.stepper-step.completed .step-label {
    color: #28a745;
}

.step-line {
    flex: 1;
    height: 3px;
    background: #e9ecef;
    margin: 0 0.5rem;
    align-self: flex-start;
    margin-top: 23px;
    transition: all 0.3s ease;
}

    .step-line.completed {
        background: #28a745;
    }

/* Stepper Mobile */
.stepper-mobile {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 0.75rem;
}

    .stepper-mobile .progress {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 1rem;
    }

/* Etapas */
.etapa-container {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 1rem;
    min-height: 400px;
}

.etapa-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

    .etapa-header h6 {
        color: #212529;
        font-weight: 700;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

.required::after {
    content: " *";
    color: #dc3545;
}

/* Evidencias */
.evidencia-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 2px solid #e9ecef;
    height: 100%;
}

    .evidencia-section.antes {
        border-left: 4px solid #ffc107;
    }

    .evidencia-section.despues {
        border-left: 4px solid #28a745;
    }

.evidencia-header {
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f1f3f5;
    color: #495057;
}

.evidencia-grupo {
    margin-bottom: 1rem;
}

.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .upload-zone:hover {
        border-color: #667eea;
        background: #f0f2ff;
    }

    .upload-zone i {
        color: #adb5bd;
        transition: color 0.3s ease;
    }

    .upload-zone:hover i {
        color: #667eea;
    }

/* Secciones específicas */
.tiempo-invertido-section,
.pregunta-principal,
.seccion-paro,
.seccion-dano {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid #e9ecef;
}

.falla-detalles {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid #ffc107;
}

.paro-detalles,
.dano-detalles {
    background: #fff3cd;
    padding: 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid #ffc107;
    margin-top: 1rem;
}

.actividades-placeholder {
    background: white;
    border-radius: 0.75rem;
    border: 2px dashed #dee2e6;
    padding: 2rem;
}

.etapa-indicador {
    background: #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    color: #495057;
}

/* ==================== MODAL DETALLES ACTIVIDAD ==================== */
.actividad-info-general .card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 100%;
}

.actividad-info-general .row {
    align-items: stretch;
}

.actividad-info-general .card-body {
    display: flex;
    flex-direction: column;
}

.procedimiento-texto {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #667eea;
    white-space: pre-wrap;
    line-height: 1.7;
    font-size: 0.95rem;
    color: #495057;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e9ecef;
}

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .stat-item:first-child {
        padding-top: 0;
    }

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

    .stat-value small {
        font-size: 0.7rem;
        font-weight: 400;
    }

.ocurrencias-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.75rem;
}

    .ocurrencias-section h6 {
        color: #495057;
        font-weight: 600;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #dee2e6;
    }

.table-hover tbody tr {
    transition: all 0.2s ease;
}

    .table-hover tbody tr:hover {
        background-color: rgba(102, 126, 234, 0.05);
        transform: scale(1.01);
    }

.table-bordered {
    border: 2px solid #dee2e6;
}

    .table-bordered thead {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

        .table-bordered thead th {
            border-color: rgba(255,255,255,0.2);
            font-size: 0.85rem;
            font-weight: 600;
            text-align: center;
            vertical-align: middle;
        }

    .table-bordered tbody td {
        vertical-align: middle;
    }

.ocurrencias-mobile .card {
    transition: all 0.2s ease;
}

    .ocurrencias-mobile .card:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transform: translateX(4px);
    }

.list-group-item {
    transition: all 0.2s ease;
    cursor: pointer;
}

    .list-group-item:hover {
        background-color: #f8f9fa;
        border-left: 4px solid #667eea;
        padding-left: 1.5rem;
    }

    .list-group-item:active {
        background-color: #e9ecef;
    }

/* ==================== MODAL CAPTURA ACTIVIDAD ==================== */
.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.input-group-sm .input-group-text {
    min-width: 60px;
    justify-content: center;
    font-weight: 600;
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
}

.modal-lg {
    max-width: 600px;
}

.lectura-anterior-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid #2196f3;
}

.lectura-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.lectura-valor {
    font-size: 2rem;
    font-weight: 700;
    color: #1976d2;
}

.lectura-unidad {
    font-size: 1.25rem;
    font-weight: 600;
    color: #666;
}

.rango-lectura {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rango-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

/* ==================== MODAL CERRAR OT ==================== */
.modal-body .text-center i.fa-check-circle {
    opacity: 0.9;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.card.bg-light .row.text-center h4 {
    font-weight: 700;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1400px) {
    .info-grid-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .calendario-container {
        padding: 1rem;
    }

    .calendario-header h6 {
        font-size: 1.1rem;
    }

    .calendario-dias-semana,
    .calendario-dias {
        gap: 0.4rem;
    }

    .calendario-dia {
        min-height: 50px;
        border-width: 2px;
        border-radius: 0.5rem;
    }

    .dia-numero {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .detalle-container {
        padding: 1rem;
    }

    .detalle-header {
        padding: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header-main,
    .header-actions {
        width: 100%;
    }

        .header-actions button {
            width: 100%;
        }

    .info-cards-row {
        grid-template-columns: 1fr;
    }

    .info-card {
        min-height: auto;
    }

    .info-grid-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-resources {
        flex-direction: column;
        width: 100%;
    }

        .info-resources .btn {
            width: 100%;
        }

    .actividades-section {
        padding: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .calendario-container {
        padding: 0.75rem;
    }

    .calendario-header h6 {
        font-size: 1rem;
    }

    .calendario-leyenda {
        font-size: 0.7rem;
        gap: 0.5rem;
        padding: 0.75rem 0.5rem;
    }

    .leyenda-color {
        width: 14px;
        height: 14px;
        margin-right: 0.3rem;
    }

    .calendario-dias-semana {
        gap: 0.25rem;
        margin-bottom: 0.5rem;
        padding: 0.5rem 0;
    }

    .dia-semana {
        font-size: 0.65rem;
        padding: 0.25rem;
        letter-spacing: 0;
    }

    .calendario-dias {
        gap: 0.25rem;
    }

    .calendario-dia {
        min-height: 40px;
        border-width: 1.5px;
        border-radius: 0.4rem;
    }

    .dia-numero {
        font-size: 0.8rem;
    }

    .dia-badge {
        top: 2px;
        right: 2px;
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
        min-width: 16px;
    }

    .calendario-dia.con-actividad:hover {
        transform: translateY(-2px) scale(1.02);
    }

    .modal-captura-norut .modal-xl {
        max-width: 100%;
        margin: 0;
        height: 100vh;
    }

    .modal-captura-norut .modal-content {
        border-radius: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .modal-captura-norut .modal-header {
        flex-shrink: 0;
        padding: 1rem;
    }

    .modal-captura-norut .modal-body {
        flex: 1;
        overflow-y: auto;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .modal-captura-norut .modal-footer {
        flex-shrink: 0;
        padding: 0.75rem;
    }

    .etapa-container {
        padding: 1rem;
        min-height: 300px;
    }

    .etapa-header h6 {
        font-size: 1rem;
    }

    .evidencia-section {
        margin-bottom: 1rem;
    }

    .upload-zone {
        padding: 1.5rem 1rem;
    }

        .upload-zone i {
            font-size: 2rem;
        }

    .modal-footer .btn {
        font-size: 0.875rem;
        min-height: 44px;
    }

    .etapa-indicador {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .form-control,
    .form-select {
        font-size: 16px;
        padding: 0.625rem 0.75rem;
    }

    .noruts-mobile .card-header {
        overflow: hidden;
    }

        .noruts-mobile .card-header .d-flex {
            width: 100%;
            overflow: hidden;
        }

        .noruts-mobile .card-header .badge {
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            flex-shrink: 1;
        }

            .noruts-mobile .card-header .badge.small {
                font-size: 0.65rem;
                padding: 0.15rem 0.4rem;
            }

    .actividad-info-general .row {
        gap: 1rem;
    }

    .actividad-info-general .card-body {
        display: block;
    }

    .ocurrencias-section {
        padding: 1rem;
    }

    .procedimiento-texto {
        font-size: 0.875rem;
        padding: 0.75rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .stat-item {
        padding: 0.35rem 0;
    }
}

@media (max-width: 576px) {
    .header-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .info-card {
        padding: 1rem;
    }

    .info-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .info-grid-horizontal {
        grid-template-columns: 1fr;
    }

    .calendario-container {
        padding: 0.5rem;
    }

    .calendario-header h6 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .calendario-leyenda {
        font-size: 0.65rem;
        gap: 0.4rem;
        padding: 0.5rem;
    }

    .leyenda-color {
        width: 12px;
        height: 12px;
        margin-right: 0.25rem;
    }

    .calendario-dias-semana {
        gap: 0.2rem;
        margin-bottom: 0.4rem;
        padding: 0.4rem 0;
    }

    .dia-semana {
        font-size: 0.6rem;
        padding: 0.2rem;
    }

    .calendario-dias {
        gap: 0.2rem;
    }

    .calendario-dia {
        min-height: 35px;
        border-width: 1px;
        border-radius: 0.3rem;
    }

    .dia-numero {
        font-size: 0.75rem;
    }

    .dia-badge {
        top: 1px;
        right: 1px;
        font-size: 0.55rem;
        padding: 0.05rem 0.25rem;
        min-width: 14px;
    }

    .calendario-dia.con-actividad {
        border-width: 2px;
    }

        .calendario-dia.con-actividad:hover {
            transform: translateY(-1px) scale(1.01);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }

    .modal-captura-norut .modal-header h5 {
        font-size: 0.95rem;
    }

    .etapa-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .noruts-mobile .card-header .badge {
        max-width: calc(50% - 0.25rem);
    }

    .modal-lg {
        max-width: calc(100% - 2rem);
        margin: 1rem;
    }
}

@media (max-width: 400px) {
    .calendario-dias-semana,
    .calendario-dias {
        gap: 0.15rem;
    }

    .dia-semana {
        font-size: 0.55rem;
        padding: 0.15rem;
    }

    .calendario-dia {
        min-height: 30px;
    }

    .dia-numero {
        font-size: 0.7rem;
    }
}

/* ==================== MENÚ DE CLASIFICACIÓN ==================== */
.clasificacion-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 350px;
    z-index: 1050;
    max-height: 400px;
    overflow-y: auto;
}

.clasificacion-option {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

    .clasificacion-option:hover {
        background: #f8f9fa;
        transform: translateX(4px);
    }

    .clasificacion-option.activa {
        background: linear-gradient(90deg, #e8f5e9 0%, #ffffff 100%);
        font-weight: 600;
    }

    .clasificacion-option:last-child {
        border-bottom: none;
    }

@media (max-width: 768px) {
    .clasificacion-menu {
        min-width: 280px;
        right: auto;
        left: 0;
    }

    .header-actions {
        width: 100%;
    }

        .header-actions > div {
            flex: 1;
        }

        .header-actions button {
            width: 100%;
        }
}


    .info-lectura-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    .info-lectura-card .icon-container {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .info-lectura-card .icon-container i {
            font-size: 24px;
            color: white;
        }

        .info-lectura-card .icon-container.bg-purple {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .info-lectura-card .icon-container.bg-pink {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .info-lectura-card .icon-container.bg-cyan {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

    .info-lectura-card .info-content {
        flex: 1;
        min-width: 0;
    }

    .info-lectura-card .label {
        font-size: 0.7rem;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
        display: block;
        margin-bottom: 0.25rem;
    }

    .info-lectura-card .value {
        font-size: 0.8rem;
        font-weight: 700;
        color: #212529;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }

    .info-lectura-card .fecha {
        font-size: 0.75rem;
        color: #6c757d;
        display: block;
    }

    .lectura-input-wrapper .input-icon {
        position: absolute;
        left: 20px;
        z-index: 10;
        color: #6c757d;
        font-size: 1.25rem;
    }

    .lectura-input-wrapper .input-unit {
        position: absolute;
        right: 20px;
        z-index: 10;
        font-size: 1.25rem;
        font-weight: 700;
        color: #495057;
        background: #e9ecef;
        padding: 0.5rem 1rem;
        border-radius: 8px;
    }

    .lectura-input:focus {
        border-color: #0d6efd !important;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15) !important;
        background: white !important;
    }

    .lectura-input.is-valid {
        border-color: #28a745 !important;
        background: #f0fff4 !important;
    }

    .lectura-input.is-invalid {
        border-color: #dc3545 !important;
        background: #fff5f5 !important;
    }

/* Alertas mejoradas */
.alert {
    border-radius: 12px;
    border-width: 2px;
}

.alert-warning {
    background: #fff8e1;
    border-color: #ffc107;
    color: #856404;
}

.alert-success {
    background: #f0fff4;
    border-color: #28a745;
    color: #155724;
}

.alert-danger {
    background: #fff5f5;
    border-color: #dc3545;
    color: #721c24;
}

/* Animaciones */
.info-lectura-card {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .info-lectura-card .value {
        font-size: 1.25rem;
    }

    .lectura-input-wrapper .input-unit {
        font-size: 1rem;
        padding: 0.4rem 0.75rem;
    }
}

/* Estado de validación visual */
.lectura-input.is-valid + .input-unit {
    background: #28a745;
    color: white;
}

.lectura-input.is-invalid + .input-unit {
    background: #dc3545;
    color: white;
}


    .info-lectura-card .icon-container {
        width: 48px;
        height: 48px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.2rem;
    }

        .info-lectura-card .icon-container.bg-purple {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .info-lectura-card .icon-container.bg-pink {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .info-lectura-card .icon-container.bg-cyan {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

    .info-lectura-card .info-content {
        flex: 1;
    }

    .info-lectura-card .label {
        color: #666;
        font-size: 0.85rem;
    }

    .info-lectura-card .value {
        font-size: 1.5rem;
        font-weight: 600;
        color: #333;
    }

    .info-lectura-card .fecha {
        color: #999;
        font-size: 0.8rem;
    }

    .lectura-input-wrapper .input-icon {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: #007bff;
        font-size: 1.2rem;
    }

    .lectura-input-wrapper .input-unit {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 600;
        color: #666;
        background: #f8f9fa;
        padding: 0.25rem 0.75rem;
        border-radius: 4px;
    }

.info-card {
    transition: transform 0.2s;
}

    .info-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.info-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

details summary {
    user-select: none;
}

details summary:hover {
    color: #0d6efd !important;
}

/* ==================== MODAL CAPTURA COMPACTO ==================== */
.captura-lectura-compact {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.info-mini-card {
    background: white;
    border-radius: 6px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
}

.info-mini-card small {
    display: block;
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.info-mini-card strong {
    font-size: 0.9rem;
    color: #212529;
}

.rango-badge {
    background: white;
    border-radius: 6px;
    padding: 0.5rem;
    text-align: center;
    border: 2px solid;
}

.rango-badge small {
    font-size: 0.65rem;
}

.rango-badge strong {
    font-size: 1rem;
    display: block;
}

.rango-min {
    border-color: #28a745;
    background: #f0fff4;
}

.rango-min strong {
    color: #28a745;
}

.rango-max {
    border-color: #ffc107;
    background: #fff8e1;
}

.rango-max strong {
    color: #856404;
}

/* ==================== RESPONSIVE COMPACTO ==================== */
@media (max-width: 768px) {
    .modal-dialog {
        max-width: 95% !important;
        margin: 0.5rem auto;
    }

    .modal-body {
        max-height: 65vh !important;
    }

    .info-mini-card {
        padding: 0.4rem;
    }

    .info-mini-card small {
        font-size: 0.65rem;
    }

    .info-mini-card strong {
        font-size: 0.85rem;
    }
}

/* ==================== BADGES DE ESTADO (INVERTIDOS) ==================== */
.badge-estado {
    background: white !important;
    border: 2px solid;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
}

/* Estado 1 y 2: Sin Imprimir e Impreso */
.estado-sin-imprimir, .estado-impreso {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
}

/* Estado 3: Lista para Cerrar */
.estado-lista-cerrar {
    color: #e9ecef !important;
    border-color: #0d6efd !important;
    background-color: #0d6efd !important;
    font-weight: 700;
}

/* ==================== BADGE DE CLASIFICACIÓN KANBAN ==================== */
.badge-clasificacion-kanban {
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .badge-clasificacion-kanban:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .badge-clasificacion-kanban i {
        flex-shrink: 0;
    }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .badge-estado {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
    }

    .badge-clasificacion-kanban {
        font-size: 0.65rem;
        padding: 0.35rem 0.6rem;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .badge-estado,
    .badge-clasificacion-kanban {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }

    .badge-clasificacion-kanban {
        max-width: 150px;
    }
}

/* ========================================
   MODAL CAPTURA NO RUT - DISEÑO PROFESIONAL
   ======================================== */

/* Header Profesional */
.bg-gradient-primary {
    background: #0b1125;
    border-bottom: 3px solid var(--bs-primary);
}

/* Stepper Compacto y Profesional */
.stepper-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 0.5rem;
}

    .stepper-modern .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
        transition: all 0.2s ease;
        opacity: 0.5;
        flex: 1;
    }

        .stepper-modern .step.active,
        .stepper-modern .step.completed {
            opacity: 1;
        }

    .stepper-modern .step-circle {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
        transition: all 0.2s ease;
    }

    .stepper-modern .step.active .step-circle {
        background: var(--bs-primary);
        color: white;
        border-color: var(--bs-primary);
        transform: scale(1.05);
    }

    .stepper-modern .step.completed .step-circle {
        background: var(--bs-success);
        border-color: var(--bs-success);
        color: white;
    }

    .stepper-modern .step-label {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.7);
        text-align: center;
        font-weight: 500;
    }

    .stepper-modern .step.active .step-label {
        color: white;
        font-weight: 600;
    }

    .stepper-modern .step.completed .step-label {
        color: rgba(255, 255, 255, 0.9);
    }

    .stepper-modern .step-line {
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
        margin: 0 0.25rem;
        margin-bottom: 1.5rem;
    }

        .stepper-modern .step-line.completed {
            background: var(--bs-success);
        }

/* Animación Sutil */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Área de Carga - Diseño Profesional */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    padding: 1.5rem;
    text-align: center;
    background: #f8f9fa;
    transition: border-color 0.2s ease;
}

    .upload-area:hover {
        border-color: var(--bs-primary);
    }

.upload-label {
    cursor: pointer;
    display: block;
    color: #6c757d;
    margin: 0;
    font-size: 0.875rem;
}

    .upload-label:hover {
        color: var(--bs-primary);
    }

    .upload-label i {
        font-size: 1.5rem;
        display: block;
        margin-bottom: 0.5rem;
        color: var(--bs-primary);
    }

/* Grid de Imágenes Compacto */
.imagenes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.imagen-preview-card {
    position: relative;
    border-radius: 0.375rem;
    overflow: hidden;
    border: 1px solid #dee2e6;
    background: white;
    transition: box-shadow 0.2s ease;
}

    .imagen-preview-card:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .imagen-preview-card img {
        width: 100%;
        height: 120px;
        object-fit: cover;
        display: block;
    }

    .imagen-preview-card .btn-remove {
        position: absolute;
        top: 0.375rem;
        right: 0.375rem;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: rgba(220, 53, 69, 0.95);
        border: none;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 0.75rem;
        transition: all 0.2s ease;
    }

        .imagen-preview-card .btn-remove:hover {
            background: var(--bs-danger);
            transform: scale(1.1);
        }

    .imagen-preview-card .imagen-info {
        padding: 0.5rem;
        font-size: 0.75rem;
        color: #6c757d;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .imagen-preview-card .imagen-observaciones {
        padding: 0.5rem;
        border-top: 1px solid #e9ecef;
        font-size: 0.75rem;
    }

/* Detalles Expandibles */
.detalles-falla,
.paro-detalles,
.dano-detalles {
    animation: slideDown 0.25s ease;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 1500px;
    }
}

/* Form Check Profesional */
.form-check-lg .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.form-check-lg .form-check-label {
    font-size: 0.95rem;
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Cards Compactos */
.etapa-content .card {
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

    .etapa-content .card:last-child {
        margin-bottom: 0;
    }

.etapa-content .card-header {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.875rem;
    font-weight: 600;
}

.etapa-content .card-body {
    padding: 1rem;
}

/* Badges Compactos */
.badge-duracion {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

/* Textarea con Contador */
.textarea-con-contador {
    position: relative;
}

.contador-caracteres {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    color: #6c757d;
    background: white;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
}

    .contador-caracteres.text-danger {
        color: var(--bs-danger) !important;
        border-color: var(--bs-danger);
    }

/* Modal Compacto */
.modal-header {
    padding: 1rem 1.25rem;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
}

/* Info de Solicitud */
.alert-light {
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
    border: 1px solid #e9ecef;
}

/* Ajustes de Formulario */
.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: #495057;
}

.form-control,
.form-select {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Grupos de Formulario Compactos */
.mb-3 {
    margin-bottom: 0.875rem !important;
}

.row.g-3 {
    --bs-gutter-y: 0.875rem;
    --bs-gutter-x: 0.875rem;
}

/* Switches */
.form-switch .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
}

.form-switch .form-check-label {
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* Responsive Compacto */
@media (max-width: 768px) {
    .stepper-modern .step {
        flex: 1 1 auto;
    }

    .stepper-modern .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .stepper-modern .step-label {
        font-size: 0.7rem;
    }

    .stepper-modern .step-line {
        margin: 0 0.125rem;
    }

    .imagenes-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }

    .imagen-preview-card img {
        height: 100px;
    }

    .upload-area {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .modal-xl {
        max-width: 100%;
        margin: 0.5rem;
    }

    .imagenes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stepper-modern {
        padding: 0.5rem 0;
    }
}

/* Botones Profesionales */
.btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

    .btn i {
        font-size: 0.875rem;
    }

.btn-sm {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
}

/* Spinner Compacto */
.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.125em;
}

/* Badge en Etapa */
.badge {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
}

/* Inputs de Tiempo/Fecha */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    font-size: 0.875rem;
}

/* Estados de Validación Sutiles */
.is-invalid {
    border-color: var(--bs-danger);
}

.invalid-feedback {
    display: block;
    color: var(--bs-danger);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

/* Sombras Profesionales */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(11, 17, 37, 0.075) !important;
}

.shadow-lg {
    box-shadow: 0 0.5rem 1rem rgba(11, 17, 37, 0.15) !important;
}

/* Hover States Sutiles */
.card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(11, 17, 37, 0.08);
}

/* Radio Buttons Compactos */
.form-check-input[type="radio"] {
    width: 1rem;
    height: 1rem;
}

/* Select Mejorado */
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Títulos de Sección */
.card-header h6,
.card-header .h6 {
    margin: 0;
    font-size: 0.875rem;
}

/* Espaciado Consistente */
.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
    max-height: calc(100vh - 250px);
}

/* Info Boxes */
.alert {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
}

    .alert i {
        font-size: 1rem;
    }

/* Mejoras de UX */
.cursor-pointer {
    cursor: pointer;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Transiciones Sutiles */
* {
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

button, .btn, input, select, textarea {
    transition-property: background-color, border-color, box-shadow, color;
}


/* ========================================
   VISTA PREVIA CÁMARA NO RUT
   ======================================== */

.camera-overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-view {
    width: 100%;
    max-width: 800px;
    position: relative;
}

    .camera-view video {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
    }

.camera-controls {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0 1rem;
}

    .camera-controls .btn-lg {
        flex: 1;
        max-width: 200px;
    }

@media (max-width: 768px) {
    .camera-controls {
        flex-direction: column;
    }

        .camera-controls .btn-lg {
            max-width: 100%;
        }
}