/*!
 * Stylesheet for Intranet MS BA
 * version: 1.2
 * last modified: 06.12.2023 by donwilson
 * author: Alejandro Oslovski
 * email: aoslovski@ms.gba.gov.ar
 */
:root {
    --ms-main-color: #00b1c7;
    --ms-secondary-color: #414042;
    --ms-border-form: #00c2db;
    --ms-font: 'Encode Sans';
}

html,
body {
    overflow-x: hidden; /* Previene scroll en pantallas angostas */
    /*background-color: #f7f7f7;*/
    font-family: 'Open Sans', Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: #333;
    text-align: left;
}

.modal-content {
    background: none;
    border-radius: .3rem;
}

.shadow-ms {
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
}

.navbar .navbar-toggler {
    color: #fafafa;
}

.offcanvas-collapse {
    position: fixed;
    top: 80px; /* Navbar Height */
    bottom: 0;
    align-items: start;
    -moz-background-clip: padding;
    -webkit-background-clip: padding;
    background-clip: padding-box;
    border-right: 1px solid #e3e3e3;
    right: 100%;
    left: -280px;
    width: 280px;
    padding: 0 1.5rem 1.5rem;
    overflow-y: auto;
    visibility: hidden;
    transition-timing-function: ease-in-out;
    transition-duration: .3s;
    transition-property: left, visibility;
}

/*.offcanvas-collapse {*/
/*    align-items:start;*/
/*    -moz-background-clip: padding;*/
/*    -webkit-background-clip: padding;*/
/*    background-clip: padding-box;*/
/*    border-right: 1px solid #e3e3e3;*/
/*    !*border-right: 2px solid;*!*/
/*    !*border-image: linear-gradient(to bottom, #a2a2a2, rgba(50, 50, 50, 0) ) 1 10%;*!*/
/*}*/
.offcanvas-collapse.open {
    left: 0;
    visibility: visible;
}

.navbar-expand-lg .navbar-nav {
    -ms-flex-direction: column;
    flex-direction: column;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    color: rgba(255, 255, 255, .75);
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.navbar-ms {
    background: #3b3d45 url('../img/dark-mosaic.png') 0 0;
    border-top: 5px solid var(--ms-main-color);
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.16);
    margin-bottom: 0;
    min-height: 80px;
}

.intranet-logo > span {
    display: block;
    font-family: var(--ms-font), Helvetica, sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.1;
    margin: 0;
}

.intranet-logo .fst-line {
    color: #acacac;
}

.intranet-logo .snd-line {
    color: var(--ms-main-color);
}

.btn-user {
    color: #fff;
    font-weight: 600;
    background: none;
    border: transparent;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 20rem;
    text-align: right;
}

.btn-user i {
    font-size: 1.5rem;
}

.btn-user:active,
.btn-user:hover,
.btn-user:focus {
    color: #fafafa;
    border: transparent;
    box-shadow: none;
}

.username {
    display: none;
}

.dropdown-user.dropdown-menu {
    right: 0;
    left: auto;
    width: 20rem;
    border-radius: .5rem;
}

.dropdown-user .dropdown-item {
    white-space: normal;
}

.text-no-wrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.font-weight-medium {
    font-weight: 500;
}

.dropdown-user .dropdown-item:focus,
.dropdown-user .dropdown-item:hover,
.dropdown-user .dropdown-item:hover i {
    background-color: #fff;
}

/** titulo del index **/
.titulo-principal h4 {
    font-size: clamp(1rem, 2vw, 1.5rem)
}

.titulo-principal h6 {
    font-size: clamp(.8rem, 1vw, 1rem)
}

.titulo-principal .fa-stack {
    font-size: clamp(1.5rem, 2vw, 2rem)
}

.footer.open, .breadcrumb.open {
    margin-left: 0;
}

.footer {
    background-color: #fff;
    border-top: 1px solid var(--ms-main-color);
    color: #6c757d;
    font-weight: bold;
    line-height: 1.1;
    padding: 1rem;
    transition-timing-function: ease-in-out;
    transition-duration: .3s;
    transition-property: margin-left;
}

.breadcrumbs {
    width: 100%;
    z-index: 111;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #aaa;
    content: "\00BB";
}

.breadcrumb-item.active {
    color: #008ea0;
}

.breadcrumb a {
    color: #444;
}

.breadcrumb a:hover {
    color: #444;
    text-decoration: none;
}

.breadcrumb {
    background-color: #fff;
    border-bottom: 1px solid #e3e3e3;
    border-radius: 0;
    color: #eee;
    font-size: 0.9rem;
    transition-timing-function: ease-in-out;
    transition-duration: .3s;
    transition-property: margin-left;
}

/**
 * Toaster
 * Para mensajes slide usando toaster
 */
.toast-wrapper {
    position: fixed;
    top: 150px; /* Navbar Height */
    right: -300px;
    width: 300px;
    visibility: hidden;
    transition-timing-function: ease-in-out;
    transition-duration: .5s;
    transition-property: right, visibility;
    z-index: 9999999;
}

.toast-wrapper.show {
    right: 2%;
    visibility: visible;
}

.toast.hide {
    display: block;
}

.toast.show {
    background: none;
    border-radius: .3rem;
}

.footer .copy {
    display: block;
    color: #999999;
    font-size: 80%;
    font-weight: 400;
}

/**
 * Media Querys,
 * Control pantallas desktop
 */
@media only screen and (min-width: 1715px) {
    .footer.open, .breadcrumb.open {
        margin-left: 250px;
    }

    .btn-user2,
    .dropdown-user.dropdown-menu {
        width: 20rem;
    }

    .username {
        display: inline;
    }

    .container-fluid {
    }
}

@media only screen and (min-width: 1024px) {
    .footer.open, .breadcrumb.open {
        margin-left: 280px;
    }

    .btn-user2,
    .dropdown-user.dropdown-menu {
        width: 20rem;
    }

    .username {
        display: inline;
    }

    .container-fluid {
    }
}

/**
 * Formularios
 */
.form-control, .input-group-text {
    border-radius: 0;
    box-shadow: none;
    border-color: #d2d6de;
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--ms-border-form);
    box-shadow: none;
}

.form-control::-moz-placeholder,
.form-control:-ms-input-placeholder,
.form-control::-webkit-input-placeholder {
    color: #bbb;
    opacity: 1;
}

.form-control.is-invalid:focus,
.was-validated,
.form-control:invalid:focus,
.custom-select:focus {
    box-shadow: none;
}

.form-control::placeholder {
    color: #9d9d9d;
}

.form-control.is-invalid, .was-validated .form-control:invalid {
    border-color: #ff5b57;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23ff5b57' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ff5b57' stroke='none'/%3e%3c/svg%3e");
}

.form-control.is-invalid::placeholder {
    color: #ff5b57;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    font-size: .8rem;
    color: #ff5b57;
}

.form-control.disabled, .form-control:disabled, .form-control[readonly] {
    background: rgb(245, 245, 245);
    border-color: #d6d6d6;
    cursor: not-allowed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

label {
    margin-bottom: .2rem;
}

label.required::after {
    content: " *";
    color: #da0025;
}

button:focus {
    outline: -webkit-focus-ring-color auto 5px;
}

.btn.btn-circle {
    background-color: rgba(0, 0, 0, .05);
    border-radius: 50%;
    color: rgba(0, 0, 0, .5);
    font-size: 1rem;
    height: 2.2rem;
    line-height: 1.8;
    min-width: 2.2rem;
    padding: 0;
    width: 2.2rem;
}

.btn.btn-circle:hover {
    background-color: #aeaeae;
}

.action-btn {
    opacity: .8;
}

.action-btn:hover {
    opacity: 1;
}

/**
 * Mensajes Flash
 */
.alert-ms {
    background: #fff;
    border-top: 4px solid transparent;
    border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0;
    font-weight: bold;
    margin: 1rem 0;
    padding: .625rem;
}

.alert-ms.alert-success {
    color: #00b02e;
    border-top-color: #00b02e;
}

.alert-ms.alert-error {
    color: #ee3e4f;
    border-top-color: #ee3e4f;
}

/** mensajes flash para los modals **/
.modal-alert {
    padding: .750rem;
    margin: 1.25rem;
    border: 1px solid #eee;
    border-left-width: .25rem;
    border-radius: .25rem;
    background: #fff;
}

.modal-alert-info {
    border-left-color: #00a2d4;
}

.modal-alert-success {
    border-left-color: #00c971;
}

.modal-alert-danger {
    border-left-color: #d40041;
}

/*--------------------------------------------------------------------------------------------------------------------*/
/**
 * ALGUNAS REGLAS PARA PROBAR
 */
.border-info {
    border-color: #49b6d6;
}

.page-header {
    font-size: 24px;
    margin: 0 0 15px;
    padding: 0;
    border: none;
    line-height: 32px;
    font-weight: 500;
}

.section-title {
    color: #5b5b5b;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: .325rem;
    padding: 0;
}

.section-subtitle {
    color: #0078b3;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .5px;
}

h1 small, h2 small, h3 small, h4 small, h5 small, h6 small {
    font-size: 60%;
    font-weight: 400;
    color: #6f8293;
}

/*--------------------------------------------------------------------------------------------------------------------*/

/**
 * Menu Tabla
 * Menu de acciones de una tabla
 */
.dropdown-w {
    border: 1px solid #ccc;
}

.dropdown-w[x-placement="bottom-start"] {
    border-top: 4px solid #595959;
    border-bottom: 1px solid #ccc;
}

.dropdown-w[x-placement="top-start"] {
    border-top: 1px solid #ccc;
    border-bottom: 4px solid #595959;
}

.dropdown-w[x-placement="bottom-start"]:after {
    position: absolute;
    top: -10px;
    right: 45%;
    display: inline-block;
    border-right: 0.438rem solid transparent;
    border-bottom: 0.438rem solid #595959;
    border-left: 0.438rem solid transparent;
    content: '';
}

.dropdown-w[x-placement="top-start"]:after {
    position: absolute;
    bottom: -10px;
    right: 45%;
    display: inline-block;
    border-right: 0.438rem solid transparent;
    border-top: 0.438rem solid #595959;
    border-left: 0.438rem solid transparent;
    content: '';
}

.dropdown-divider {
    margin: 0;
    border-top: 1px solid #e9ecef;
}

.dropdown-w .dropdown-item {
    padding: .5rem 1rem;
}

.dropdown-w .dropdown-item,
.dropdown-w .dropdown-item i {
    color: #646464;
}

.dropdown-item .fa,
.dropdown-item .fas,
.dropdown-item i {
    color: #646464;
}

.dropdown-item i:hover {
    color: white;
}

.dropdown-item .bi,
.dropdown-item i {
    margin-right: 0.5rem;
}

.dropdown-w .dropdown-item:focus,
.dropdown-w .dropdown-item:hover,
.dropdown-w .dropdown-item:hover i,
.dropdown-item:focus,
.dropdown-item:hover,
.dropdown-item:hover i {
    background-color: #1e95ff;
    color: white;
}

/**
 * Boton de accion para el dropdown
 */
.round-action-button {
    font-size: 1.5rem;
    color: #595959;
    padding: 0.3em;
    border-radius: 50%;
    box-sizing: content-box;
    background: transparent;
    transition: background-color 0.5s ease;
}

.round-action-button:hover,
.round-action-button:active,
.round-action-button:focus,
.round-action-button:focus-within {
    color: #595959;
    background: #dedee1;
}

.btn-round {
    padding: .125rem 1.5rem;
    border-radius: 1rem;
}

/**
 * Menu Tabla 2
 * Menu de acciones de una tabla
 */
.dropdown-button {
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
    background: #fff;
    border: solid 1px #aaa;
}

/**
 + Botones
 */
.btn-prev {
    color: #4675a6;
    border-color: #4675a6;
}

.btn-prev:hover,
.btn-prev:active,
.btn-prev:focus {
    background-color: #4675a6;
    border-color: #4675a6;
    color: #fff;
}

.btn-next {
    background-color: #4675a6;
    border-color: #4675a6;
    color: #fff;
}

.btn-next:hover,
.btn-next:active,
.btn-next:focus {
    background-color: #1d5d88;
    border-color: #1d5d88;
    color: #fff;
}

.btn-volver-super {
    color: #0078b3;
    font-size: 1.185rem;
    font-weight: 500;
}

.btn-volver-super:hover,
.btn-volver-super:active,
.btn-volver-super:focus {
    color: #0078b3;
    text-shadow: 2px 2px 3px #bbd4e9;
}

.btn-volver {
    color: #2d3339;
    border-color: #2d3339;
}

.btn-volver:hover,
.btn-volver:active,
.btn-volver:focus {
    color: #fff;
    background-color: #2d3339;
    border-color: #2d3339;
}

.btn-excel {
    background-color: #107C41;
    color: #fafafa;
    border-color: #107C41;
}

.btn-excel:hover,
.btn-excel:focus,
.btn-excel:active,
.btn-excel.active {
    background-color: #1D6F42;
    color: #fff;
}

.btn-buscar {
    color: #fff;
    background-color: #414042;
    border-color: #414042;
}

.btn-buscar:hover,
.btn-buscar:active,
.btn-buscar:focus {
    background-color: #23272b;
    border-color: #1d2124;
    color: #fff;
}

.btn-limpiar {
    color: #414042;
    border-color: #414042;
}

.btn-limpiar:hover,
.btn-limpiar:active,
.btn-limpiar:focus {
    color: #fff;
    background-color: #414042;
    border-color: #414042;
}

.btn-guardar {
    background-color: #04A777;
    border-color: #04A777;
    color: #fff;
}

.btn-guardar:hover,
.btn-guardar:active,
.btn-guardar:focus {
    background-color: #088A64;
    border-color: #088A64;
    color: #fff;
}

/*--------------------------------------------------------------------------------------------------------------------*/
/**
 * Estilos para modificar el paginador
 */
.btn-pag-middle, .btn-pag-middle:hover {
    background-color: #fff;
}

.btn-white,
.btn-white:focus,
.btn-white:active,
.btn-white.active {
    color: #333;
    background-color: #f0f0f0;
    padding: 0.325rem 0.850rem;
}

.btn-white:hover {
    background-color: #e6e6e6;
    border-color: #adadad;
    border-bottom: 1px solid #ccc;
}

.btn.disabled, .btn[disabled], fieldset[disabled] .btn {
    cursor: not-allowed;
    opacity: 0.45;
}

/*.table td,*/
.table th {
    border-top: none;
}

.bg-dark-blue {
    background: #3c556f;
}