﻿.form-container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.select-container {
    width: 100%;
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.frm-dispositivo-container {
    display: grid;
    gap: 10px;
    margin-bottom: 15px;
}

.campos-formulario-container {
    border: 2px solid #0D1F2E;
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
    width: 80%;
    background-color: #f9f9f9;
}

.centrar-div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }


/* Pantalla de carga */
#loadingOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loadingSpinner {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #0D1F2E;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* / Pantalla de carga */


.nav-link.active {
    color: white;
    font-weight: bold;
    background-color: #343a40;
}

.nav-link[data-bs-toggle="collapse"] {
    position: relative;
    padding-right: 25px !important;
}

    .nav-link[data-bs-toggle="collapse"]::after {
        content: "\f078";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }

    .nav-link[data-bs-toggle="collapse"][aria-expanded="true"]::after {
        transform: translateY(-50%) rotate(180deg);
    }

.required-field {
    color: red;
    font-weight: bold;
}

.main-grid {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #F60C1A;
    border-radius: 10px;
    overflow: hidden;
    background-color: #58879E;
}

    .main-grid thead {
        text-align: center;
        border-bottom: 1px solid white;
    }

        .main-grid thead th {
            font-weight: bold;
            color: white;
            padding: 10px;
            text-align: center;
        }

    .main-grid tbody {
        background-color: white;
    }

        .main-grid tbody tr:hover {
            background-color: #C8C8C8
        }

        .main-grid tbody td {
            padding: 10px;
        }

.align-text-cell {
    text-align: center
}

.nav {
    display: flex;
    flex-direction: column;
}

.nav-link {
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

    .nav-link .sb-nav-link-icon {
        margin-right: 10px;
    }

.nav > div {
    margin-left: 20px;
    padding-left: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.fa {
    width: 20px;
    text-align: center;
}


.accordion-button {
    background-color: #0D1F2E;
    color: #f8f9fa;
}

    .accordion-button::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f8f9fa'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }

    .accordion-button:not(.collapsed) {
        background-color: #CCD2C9;
        color: #0D1F2E;
    }

        .accordion-button:not(.collapsed)::after {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230D1F2E'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
        }

.accordion-body {
    background-color: #fff;
    padding: 20px;
}


/* Paginación */

.pagination .page-link {
    color: #0D1F2E;
}

.pagination .page-item.active .page-link {
    background-color: #0D1F2E;
    border-color: #0D1F2E;
    color: #fff;
}

.pagination .page-link:hover {
    background-color: rgba(13, 31, 46, 0.1);
    border-color: #0D1F2E;
    color: #0D1F2E;
}

.records-select label {
    margin-right: 8px;
    font-weight: 500;
    color: #0D1F2E;
}

.records-select select {
    border: 1px solid #0D1F2E;
    color: #0D1F2E;
}

    .records-select select:focus {
        border-color: #0D1F2E;
        box-shadow: 0 0 0 0.25rem rgba(13, 31, 46, 0.25);
    }


.sb-sidenav {
    font-size: 0.9rem;
}

.nav-link {
    padding: 6px 10px !important;
    margin: 2px 0;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    color: #e0e0e0;
}

    .nav-link:hover {
        background-color: #1b354c;
        color: #65A09B;
        padding-left: 14px;
    }

    .nav-link .sb-nav-link-icon i,
    .nav-link i {
        font-size: 0.9rem;
        width: 18px;
        text-align: center;
        color: #65A09B;
        margin-right: 6px;
    }

.collapse .nav-link {
    padding-left: 25px !important;
}

.nav-link[data-bs-toggle="collapse"] {
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 3px solid #65A09B;
    padding: 7px 10px !important;
    margin-top: 4px;
    color: #ffffff;
}

.sb-sidenav-footer {
    padding: 8px 12px;
    font-size: 0.8rem;
    text-align: center;
    background-color: #0b1723;
    color: #ccc;
    border-top: 1px solid rgba(255,255,255,0.1);
}
