﻿body {
    display: grid;
    grid-template-columns: auto 1fr;
    background-color: #f9f9f9;
    color: #333333;
}

#user {
    background-color: lightgrey;
}

.login-background {
    background-image: url("/images/background.png");
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(5px) brightness(70%);
    background-color: #85868c0d !important;
}

.btn:hover {
    background-color: #21759b !important;
    color: #ffffff !important;
}

.swal-text {
    color: black;
    font-size: 15px;
}

#sidebar {
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background: #1a1c20;
    background-color: #1a1c20;
    color: #f9f9f9;
    transition: all 0.3s;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 9999;
    width: 100px;
    height: 100px;
}

html[data-bs-theme="light"] .table tr:hover {
    background-color: #f3e597 !important;
}

td > a {
    color: #21759b !important;
}

.nav .btn:hover {
    background-color: #31A0EC;
}

.nav-link {
    color: #f9f9f9 !important;
}

    .nav-link.active {
        background-color: #1c3557 !important;
        color: #fd5a22 !important;
    }

    .nav-link:hover {
        background-color: #1c3557 !important;
        color: #fd5a22 !important;
    }

.nav-tabs .nav-link {
    background: #808080;
    border: 1px solid white;
}

div h1 {
    color: #191e23;
}

h1, h2, h3, h4, h5, h6 {
    color: #191e23;
}

#table_id_info {
    display: none;
}

.dt-info {
    display: none;
}

nav .active {
    color: #fff !important;
    background-color: #31a0ec !important;
}

.nav-pills .nav-link:hover {
    color: #fff !important;
    background-color: #31a0ec !important;
}

.nav-pills .nav-link:active {
    color: #fff !important;
    background-color: #31a0ec !important;
}

.dropdown-item:active {
    background-color: #fd5a22 !important;
    color: #ffffff !important;
}

main:has(> .with-background) {
    background-image: url("/images/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

.with-background {
    backdrop-filter: blur(3px) brightness(70%);
    background-color: #85868c0d !important;
}

.nav-pills .nav-link {
    background-color: #424649 !important;
    color: #fff !important;
    border: 0;
    border-radius: var(--bs-nav-pills-border-radius);
    margin-block: 5px;
}

#navbar {
    background-color: #191e23 !important;
    color: #ffffff !important;
    border-bottom: 3px solid #fd5a22;
}

#btnSubir {
    color: white;
}

.position-relative .bi-folder {
    color: #080b17;
}

.position-relative .fs-4 {
    color: #080b17;
}

/* Contenedor principal */
#content {
    transition: margin-left 0.3s;
    padding: 20px;
    margin-left: 250px;
    background-color: #ffffff;
}

#content.full-width {
    margin-left: 0;
}

#sidebarToggle {
    position: fixed;
    bottom: 25px;
    left: 260px;
    z-index: 2;
    transition: left 0.3s, opacity 0.3s;
}

#sidebar.collapsed {
    margin-left: -250px;
}

/* Mover bot�n en pantallas grandes */
#sidebar.collapsed ~ #sidebarToggle {
    left: 10px;
}

hr {
    --bs-text-opacity: 1;
    color: #85868c !important;
}

.bg-primary {
    background-color: #fd5a22 !important;
    color: #ffffff !important;
}

.btn-primary {
    background-color: #31A0EC !important;
    color: #ffffff !important;
    border-color: #31A0EC !important;
}

.btn-primary:hover {
    background-color: #fd5a22 !important;
    color: #ffffff !important;
}

.btn-success, .bg-success {
    background-color: #008000 !important;
    color: #ffffff !important;
}

thead {
    background-color: #f1f1f1 !important;
    color: #191e23;
}

th {
    min-width: 150px;
}

#greenHint {
    color: green;
    background-color: lightblue;
}

.modal-backdrop {
    z-index: -1;
}

.btn-secondary {
    --bs-btn-active-bg: #6c757d !important;
}

/* Overlay para m�vil */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000099;
    z-index: 1040;
    display: none;
    transition: opacity 0.3s;
}

#sidebar.active ~ #overlay {
    display: block;
}

/* Estilos y comportamientos para dispositivos m�viles */
@media (max-width: 768px) {
    body {
        display: grid;
        grid-template-columns: 1fr;
        background-color: #f9f9f9;
        color: #333333;
    }
    #sidebar {
        margin-left: -250px;
        position: fixed !important;
        top: 0;
        left: 0;
    }
    #sidebar.active {
        margin-left: 0;
    }

    #content {
        margin-left: 0;
    }

    #sidebarToggle {
        left: 10px;
        opacity: 1;
    }

    #sidebar.active ~ #sidebarToggle {
        opacity: 0;
        pointer-events: none;
    }
}

/*.tab-pane:not(.show) {
    height: 0;
    overflow: hidden;
}*/

table.dataTable tbody tr {
    background-color: transparent !important;
}

table.dataTable tbody td {
    background-color: transparent !important;
}

#editor { /* Se emplea para redimensionar el campo de "Observaciones" en "FichaCliente" */
    resize: vertical;
    overflow: auto;
    min-height: 150px;
}

#IsPersistent:checked {
    background-color: #31a0ec;
}

#select2-selection select2-selection--single form-select autocomplete {

    border: 1px solid rgb(199, 209, 222) !important;
}
