﻿.table-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 0.375rem;
}

.table-loading-content {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e3f2fd;
}

    .table-loading-content h6 {
        color: #1976d2;
        margin: 0;
        font-weight: 500;
    }

.position-relative {
    position: relative !important;
}

.img-previa {
    max-width: 400px;
    max-height: 300px;
    border: 1px solid #ccc;
    padding: 10px;
}

.solicitud-card {
    transition: all 0.3s ease;
    border-radius: 8px;
}

    .solicitud-card:hover {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

    .solicitud-card.border-warning {
        border-left: 4px solid #ffc107 !important;
    }

.conexion-card {
    transition: all 0.3s ease;
}

    .conexion-card:hover {
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
        transform: translateY(-2px);
        border-color: #007bff !important;
    }

.tipo-equipo-card {
    transition: all 0.3s ease;
}

    .tipo-equipo-card:hover {
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
        transform: translateY(-2px);
    }

    .tipo-equipo-card.selected {
        border-color: #007bff !important;
        background-color: #f8f9fa;
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }

.tipo-solicitud-card {
    transition: all 0.3s ease;
    border-width: 2px;
    height: 100%;
}

    .tipo-solicitud-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    .tipo-solicitud-card.selected {
        border-color: #007bff !important;
        background-color: #f8f9fa;
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.25);
        transform: translateY(-3px);
    }

.scanner-area {
    position: relative;
    display: inline-block;
}

.scanner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

.scanner-frame {
    width: 200px;
    height: 200px;
    border: 3px solid #0b1125;
    border-radius: 15px;
    position: relative;
    background: transparent;
}

    .scanner-frame::before,
    .scanner-frame::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 30px;
        border: 4px solid #fff;
        background: #0b1125;
    }

    .scanner-frame::before {
        top: -4px;
        left: -4px;
        border-right: none;
        border-bottom: none;
        border-top-left-radius: 15px;
    }

    .scanner-frame::after {
        bottom: -4px;
        right: -4px;
        border-left: none;
        border-top: none;
        border-bottom-right-radius: 15px;
    }

.camera-container {
    position: relative;
    display: inline-block;
}

    .camera-container video {
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.timeline-item {
    position: relative;
}

    .timeline-item:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 22px;
        top: 45px;
        bottom: -20px;
        width: 2px;
        background: linear-gradient(to bottom, #007bff, #e9ecef);
    }

.timeline-marker {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
}

.timeline-item:first-child .timeline-marker {
    animation: pulse 2s infinite;
}

.estado-badge {
    max-width: 150px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.descripcion-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
}

    .estado-badge:hover,
    .descripcion-cell:hover {
        position: relative;
        z-index: 1000;
    }

.equipo-option:hover {
    background-color: #f8f9fa !important;
    color: black !important;
}

.equipo-option.bg-primary {
    background-color: #0d6efd !important;
    color: white !important;
}

    .equipo-option.bg-primary div {
        color: white !important;
    }

.equipos-container {
    -webkit-overflow-scrolling: touch;
}

.fab-nueva-solicitud {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #007bff, #0056b3);
    animation: fabSlideIn 0.3s ease-out;
}

    .fab-nueva-solicitud:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        background: linear-gradient(45deg, #0056b3, #004085);
    }

    .fab-nueva-solicitud:active {
        transform: scale(0.95);
    }

    .fab-nueva-solicitud i {
        color: white;
        font-size: 1.2rem;
    }

.disabled-card {
    filter: grayscale(0.5);
    cursor: not-allowed;
}

    .disabled-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

.form-select {
    color: black !important;
    background-color: white !important;
}

    .form-select:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

@media (max-width: 768px) {
    .btm-print {
        display: none;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .tipo-solicitud-card {
        min-height: 120px;
    }

        .tipo-solicitud-card .card-body {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

    .scanner-frame {
        width: 150px;
        height: 150px;
    }

    #qr-video {
        max-width: 90vw;
    }

    .form-select {
        font-size: 14px !important;
        padding: 8px 12px;
        background-position: right 8px center;
        background-size: 16px 12px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

        .form-select option {
            padding: 8px 12px;
            font-size: 13px;
            color: black !important;
            background-color: white !important;
        }
}

@media (max-width: 576px) {
    .form-select {
        font-size: 13px !important;
        padding: 6px 10px;
        background-position: right 6px center;
        background-size: 14px 10px;
    }

        .form-select option {
            font-size: 12px;
            padding: 6px 10px;
        }
}

@media (max-width: 376px) {
    .fab-nueva-solicitud {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 992px) {
    .tipo-solicitud-card {
        min-height: 400px;
    }
}

@media (max-width: 991.98px) {
    .container-fluid {
        padding-bottom: 90px;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

@keyframes fabSlideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.estado-mobile {
    word-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    text-align: center;
}

@media (max-width: 767.98px) {
    .estado-mobile {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
        line-height: 1.2;
        display: block;
        width: fit-content;
        margin: 0 auto;
    }

    .d-flex.flex-column.flex-md-row {
        text-align: center;
    }
}

.modal-btn-mobile {
    min-width: 44px;
    padding: 8px 12px;
}

@media (max-width: 767.98px) {
    .modal-footer {
        padding: 1rem 0.75rem;
        gap: 0.5rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-btn-mobile {
        min-width: 44px !important;
        padding: 8px !important;
        font-size: 16px;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .modal-btn-mobile i {
            margin: 0 !important;
        }
}

@media (min-width: 768px) {
    .modal-btn-mobile {
        border-radius: 0.375rem;
    }
}