html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* FOCUS BOOTSTRAP */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


/*  FORMS */

.form-floating > .form-control-plaintext::placeholder, 
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, 
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}


/* CARDS */
.card {
    border-radius: 12px;
}

/* NAVBAR MOBILE */
@media (max-width: 576px) {

    .navbar-collapse {
        background-color: rgb(0,102,120);
        padding: 10px;
        border-radius: 10px;
        margin-top: 10px;
    }

    .navbar-nav .nav-link {
        color: white !important;
        font-weight: 600;
    }

}

@media (max-width: 576px) {
    .btn {
        font-size: 14px;
    }
}

/* --------------------ADMINLAYOUT-------------------- */
/* SIDEBAR DESKTOP */
/* Mantiene el menu fijo*/
#sidebar {
    width: 260px;
    min-width: 260px;
    height: calc(100vh - 80px);
    position: fixed;
    left: 0;
    top: 80px;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
}

    #sidebar.sidebar-collapsed {
        width: 80px;
        min-width: 80px;
    }


/* ----------------------- Panel Admin ----------------------- */
/* CONTENIDO DEL PANEL COMPUTADORA  */

.admin-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding-top: 80px;
    margin-top: 80px;
}

/* CUANDO EL MENU SE CONTRAE */

#sidebar.sidebar-collapsed ~ .overlay + .admin-content {
    margin-left: 80px;
    width: calc(100% - 80px);
}


/* SIDEBAR MOBILE */

@media (max-width: 768px) {

    #sidebar {
        position: fixed;
        left: -260px;
        top: 60px;
        height: calc(100vh - 60px);
        width: 260px !important;
        z-index: 1050;
        transition: left 0.3s ease;
    }

        #sidebar.active {
            left: 0;
        }

        #sidebar .btn {
            padding: 8px;
            font-size: 14px;
            margin-bottom: 8px !important;
        }


 /* ----------------------- Panel Admin ----------------------- */
    /* CONTENIDO OCUPA TODO EN EL CELULAR */
    .admin-content {
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* OVERLAY */
    .overlay {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1040;
    }

        .overlay.active {
            display: block;
        }

    /* TABLAS */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table td,
    .table th {
        font-size: 12px;
        padding: 0.4rem;
    }
}

@media (max-width: 768px) {
    td .btn {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* OVERLAY */
.overlay {
    display: none;
}

@media (min-width: 769px) {
    .overlay.active {
        display: none !important;
    }
}