﻿:root {
    --primary: #17a2b8;
    scrollbar-width: thin;
}

    :root:not(:has(.bg-light)) {
        scrollbar-color: #686868 #424242;
    }

.overflow-auto {
    scrollbar-width: thin;
}

.bg-dark2 .overflow-auto, .bg-dark .overflow-auto {
    scrollbar-color: #686868 #424242;
}

/*#region CSS por defecto*/
a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

/* Replace Bootstrap's default btn-primary */
.btn-primary {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

    .btn-primary:hover {
        color: #fff;
        background-color: #168e9e;
        border-color: #14828e;
    }

    .btn-primary:focus,
    .btn-primary.focus {
        box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5);
    }

    .btn-primary.disabled,
    .btn-primary:disabled {
        color: #fff;
        background-color: #17a2b8;
        border-color: #17a2b8;
    }

    .btn-primary:not(:disabled):not(.disabled):active,
    .btn-primary:not(:disabled):not(.disabled).active,
    .show > .btn-primary.dropdown-toggle {
        color: #fff;
        background-color: #14828e;
        border-color: #127780;
    }

        .btn-primary:not(:disabled):not(.disabled):active:focus,
        .btn-primary:not(:disabled):not(.disabled).active:focus,
        .show > .btn-primary.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5);
        }


.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}

@media (min-width: 1020px) {
    body {
        margin-bottom: 0px;
    }
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}
/*#endregion*/

/* CSS */

.bg-dark2 {
    background-color: #0a0b0d !important;
}

.bg-purple {
    background-color: #6f42c1 !important;
}

.navbar {
    min-height: 60px;
    padding: 0 !important;
}

.nav-item i {
    font-size: 22px;
}

.expand {
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

/*#region has-children*/
.has-children ul {
    position: relative;
    width: 100%;
    display: none;
    background-color: #1c1f22;
}

.has-children > a::after {
    /* arrow icon */
    position: absolute;
    content: '';
    height: 16px;
    width: 16px;
    right: 5%;
    top: 50%;
    bottom: auto;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
}

.has-children.selected > ul {
    display: block;
}

.has-children.selected > a::after {
    -webkit-transform: translateY(-50%) rotate(180deg);
    -moz-transform: translateY(-50%) rotate(180deg);
    -ms-transform: translateY(-50%) rotate(180deg);
    -o-transform: translateY(-50%) rotate(180deg);
    transform: translateY(-50%) rotate(180deg);
}

@media only screen and (min-width: 768px) {
    .has-children {
        position: relative;
    }

        .has-children ul {
            position: absolute;
            top: 0;
            left: 100%;
            width: 45px;
            padding: 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

            .has-children ul a {
                text-align: left;
                border: none;
                padding: 1em;
            }

    .no-touch .has-children ul a:hover {
        color: #1784c7;
    }

    .has-children > a::after {
        display: none;
    }

    .cd-side-nav .has-children.selected > a {
        /* focus state -> show sub pages */
        background-color: #33383e;
    }

    .cd-top-nav .has-children {
        position: relative;
        background-color: #2c3136;
    }

        .cd-top-nav .has-children > a {
            height: 100%;
            padding: 0 calc(1.8em + 22px) 0 calc(1.8em + 26px) !important;
            line-height: 55px;
        }



            .cd-top-nav .has-children > a::after {
                display: block;
                right: 1.8em;
            }

        .cd-top-nav .has-children ul {
            background-color: #1c1f22;
            width: 200px;
            top: 100%;
            right: 0;
            left: auto;
            box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
        }

            .cd-top-nav .has-children ul a {
                padding-left: 18px !important;
            }

    #formEditHoras .col_fecha {
        max-width: none !important;
    }
}

@media only screen and (min-width: 1170px) {
    .has-children > ul {
        width: 100%;
        z-index: 1;
    }

    .has-children ul a {
        padding-left: 18px;
    }

    .has-children.active > ul {
        /* if the item is active, make the subnavigation visible */
        position: relative;
        display: block;
        /* reset style */
        left: 0;
        box-shadow: none;
    }

    .no-touch .cd-side-nav .has-children:hover > ul, .cd-side-nav .has-children.hover > ul {
        /* show subnavigation on hover */
        display: block;
        opacity: 1;
        visibility: visible;
    }
}
/*#endregion*/

.nav-item {
    margin: auto;
}

.has-children ul {
    list-style: none outside none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.has-children li {
    margin: 0 10px;
    display: inline;
}

.item-color {
    color: #008da8 !important;
}

.navbar.fixed-top .item-color.item2 {
    color: inherit !important;
    font-weight: 400;
}

.navbar .item-color.item2.item-EntrarOTs {
    color: inherit !important;
    font-weight: 400;
}

.btn-color {
    background-color: #17a2b8 !important;
}

    .btn-color:enabled:hover {
        background-color: #008da8 !important;
    }

.mg-top {
    margin-top: 60px;
}

input:disabled {
    background-color: #9d9d9e !important;
}

#div_buscar {
    display: none;
}

@media (min-width: 1020px) {
    #div_buscar {
        display: block;
    }
    #recientes {
        display: none;
    }
    #buscar {
        display: none;
    }

    #nav-logo {
        display: block !important;
        overflow: hidden;
        max-width: 78px;
        min-width: 78px;
    }

    #head-logo {
        display: none !important;
    }
}

.datepicker {
    transform: translate(0, 3.1em);
}

#filtros {
    padding: 5px !important;
    max-width: 100%;
}

#toasts {
    position: fixed;
    bottom: 80px;
    right: 10px;
    z-index: 9999;
}

@media (min-width: 1430px) {
    .navbar-expand .navbar-nav {
        max-width: calc(100vw - 440px);
    }
}

@media (min-width: 1280px) {
    #nav-logo {
        overflow: visible;
        max-width: 220px;
    }
}

@media (min-width: 1020px) {
    #toasts {
        bottom: 20px;
    }
}

#calendario_año {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 1020px) {
    #calendario_año {
        grid-template-columns: repeat(3, 1fr);
    }

    .mes .dia .hora {
        max-width: 62px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.filter-multi-select > .dropdown-toggle {
    overflow: auto;
    scrollbar-width: thin;
    max-height: 110px !important;
}

/* DARK MODE */

body.bg-dark .filter-multi-select#FiltroArticulo > .viewbar,
body.bg-dark .filter-multi-select#FiltroArticulo > .dropdown-menu,
body.bg-dark .filter-multi-select#FiltroArticulo .form-control {
    background-color: #343a40;
    color: white;
}

body.bg-dark2 .filter-multi-select#FiltroArticulo > .viewbar,
body.bg-dark2 .filter-multi-select#FiltroArticulo > .dropdown-menu,
body.bg-dark2 .filter-multi-select#FiltroArticulo .form-control {
    background-color: #0a0b0d;
    color: white;
}

body.bg-dark .filter-multi-select#FiltroArticulo .dropdown-item,
body.bg-dark2 .filter-multi-select#FiltroArticulo .dropdown-item {
    color: white;
}

body.bg-dark .bg-themed {
    background-color: #343a40;
}

body.bg-dark2 .bg-themed {
    background-color: #0a0b0d;
}

body.bg-light .bg-themed {
    background-color: #fff;
}

body.bg-light .text-themed {
    color: black;
}

body.bg-dark2 .text-themed,
body.bg-dark .text-themed
{
    color: white;
}

body.bg-light .text-themed-important {
    color: black !important;
}

body.bg-dark2 .text-themed-important,
body.bg-dark .text-themed-important {
    color: white !important;
}

.nav-link:hover {
    opacity: 0.7;
}

body {
    visibility: hidden;
}

/* list group checkable */
.list-group-checkable .list-group-item {
    cursor: pointer;
    border-radius: 10px;
}

.list-group-item-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
}

.listgroup-item > span {
    opacity: .5;
}

.list-group-item-check:hover + .list-group-item {
    background-color: #e9ecef;
}

.list-group-item-check:checked + .list-group-item {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
    cursor: default;
}

.list-group-item-check[disabled] + .list-group-item,
.list-group-item-check:disabled + .list-group-item {
    pointer-events: none;
    filter: none;
    opacity: .5;
}

.cursor-pointer {
    cursor: pointer;
}

.ring-container {
    position: relative;
    width: 17px;
    height: 17px;
}

.ring-container-break > .circle {
    background-color: #FFC222;
}

.ring-container-break > .ringring {
    border-color: #FFC222;
}

.circle {
    width: 13px;
    height: 13px;
    background-color: #3482F6;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
}



.ringring {
    border: 3px solid #3482F6;
    -webkit-border-radius: 30px;
    height: 17px;
    width: 17px;
    position: absolute;
    left: 0px;
    top: 0px;
    -webkit-animation: pulsate 1s ease-out;
    -webkit-animation-iteration-count: infinite;
    opacity: 0.0
}

@-webkit-keyframes pulsate {
    0% {
        -webkit-transform: scale(0.1, 0.1);
        opacity: 0.0;
    }

    50% {
        opacity: 1.0;
    }

    100% {
        -webkit-transform: scale(1.2, 1.2);
        opacity: 0.0;
    }
}

.horasDia {
    width: 100% !important;
}

@media only screen and (min-width: 768px) {
    .horasDia {
        width: calc(100% - 100px) !important;
    }
}

.list-group-item:hover {
    color: #000;
}

body.bg-dark2 .list-group-item, body.bg-dark .list-group-item {
    background-color: #333;
    border-color: #555;
}

body.bg-dark2 .dropdown-menu, body.bg-dark .dropdown-menu {
    background-color: #333;
    border-color: #555;
}

    body.bg-dark2 .dropdown-menu label, body.bg-dark .dropdown-menu label, body.bg-dark2 .dropdown-menu a, body.bg-dark .dropdown-menu a {
        color: #fff;
    }

body.bg-dark2 .datepicker table tr td, body.bg-dark2 .datepicker table tr th, body.bg-dark .datepicker table tr td, body.bg-dark .datepicker table tr th {
    filter: invert(1);
}

body.bg-dark2 .datepicker-dropdown.datepicker-orient-top:after, body.bg-dark .datepicker-dropdown.datepicker-orient-top:after {
    border-top: 6px solid #333;
}

body.bg-dark2 .modal .close, body.bg-dark .modal .close {
    filter: invert(1);
}

body.bg-dark2 .modal .modal-header, body.bg-dark .modal .modal-header {
    border-bottom: 1px solid #000;
}

body.bg-dark2 .modal .modal-footer, body.bg-dark .modal .modal-footer {
    border-top: 1px solid #000;
}

body.bg-dark2 .modal .modal-content, body.bg-dark .modal .modal-content {
    background-color: #333;
    color: #fff;
}

    body.bg-dark2 .modal .modal-content .form-check-input, body.bg-dark .modal .modal-content .form-check-input {
        background-color: #333;
        border-color: #555;
    }

    body.bg-dark2 .modal .modal-content .form-control, body.bg-dark .modal .modal-content .form-control {
        background-color: #333;
        color: #fff;
        border-color: #555;
    }
        body.bg-dark2 .modal .modal-content .form-control:disabled, body.bg-dark .modal .modal-content .form-control:disabled, body.bg-dark2 .modal .modal-content .form-control[readonly], body.bg-dark .modal .modal-content .form-control[readonly] {
            background-color: #4a4a4a;
        }

body.bg-dark2 .card, body.bg-dark .card {
    background-color: #6c757d;
    color: #fff;
}

body.bg-dark2 .modal select, body.bg-dark .modal select {
    background-color: #ccc;
    filter: invert(1);
    border-color: #555 !important;
}

    body.bg-dark2 .modal select:disabled, body.bg-dark .modal select:disabled {
        border-color: #999 !important;
    }

.card_linea .card-footer {
    padding-right: 5px;
    padding-left: 5px;
}

    .card_linea .card-footer .divTexto {
        text-align: center;
        width: calc(100% - 95px);
    }
        .card_linea .card-footer .divTexto.traspaso {
            width: calc(100% - 160px);
        }

/* Base styles for the switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

    /* Hide the default checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 25px;
}

    /* The circle inside the slider */
    .slider:before {
        position: absolute;
        content: "";
        height: 19px;
        width: 19px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

/* When the checkbox is checked */
input:checked + .slider {
    background-color: var(--primary);
}

    input:checked + .slider:before {
        transform: translateX(25px);
    }

body.bg-dark .border-dark {
    border-color: #697179 !important;
}

.lock {
    display: block;
    width: 24px;
    height: 21px;
    border: 3px solid var(--primary);
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    -webkit-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
}

    .lock:after {
        content: "";
        display: block;
        background: var(--primary);
        width: 3px;
        height: 7px;
        position: absolute;
        top: 50%;
        left: 50%;
        margin: -3.5px 0 0 -2px;
        -webkit-transition: all 0.1s ease-in-out;
        transition: all 0.1s ease-in-out;
    }

    .lock:before {
        content: "";
        display: block;
        width: 16px;
        height: 10px;
        bottom: 100%;
        position: absolute;
        left: 50%;
        margin-left: -8px;
        border: 3px solid var(--primary);
        border-top-right-radius: 50%;
        border-top-left-radius: 50%;
        border-bottom: 0;
        -webkit-transition: all 0.1s ease-in-out;
        transition: all 0.1s ease-in-out;
    }
    /* Locked Hover */
    .lock:hover:before {
        height: 12px;
    }
/* Unlocked */
.unlocked {
    transform: rotate(10deg);
}

    .unlocked:before {
        bottom: 130%;
        left: 31%;
        margin-left: -11.5px;
        transform: rotate(-45deg);
    }

    .unlocked,
    .unlocked:before {
        border-color: var(--danger);
    }

        .unlocked:after {
            background: var(--danger);
        }
        /* Unlocked Hover */
        .unlocked:hover {
            transform: rotate(3deg);
        }

            .unlocked:hover:before {
                height: 10px;
                left: 40%;
                bottom: 124%;
                transform: rotate(-30deg);
            }

.card_cabecera {
    padding: 0 5px;
}

.card_cabecera .temaOT {
    position: absolute;
    bottom: 0;
    right: 0;
}

@media (min-width: 768px) {
    .card_cabecera .temaOT {
        position: relative;
    }
}