@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a {
            margin-left: 1.5rem;
        }

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type {
        padding-top: 1rem;
    }

    .nav-item:last-of-type {
        padding-bottom: 1rem;
    }

    .nav-item a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

        .nav-item a.active {
            background-color: rgba(255,255,255,0.25);
            color: white;
        }

        .nav-item a:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* DivTable.com */

.caption {
    border: 0px solid grey;
    caption-side: top;
    display: table-caption;
    text-align: left;
}

.group {
    display: table-row-group;
}

.divTable {
    display: table;
    width: 100%;
}

.divTableModal {
    display: table;
    width: 100%;
}

.divTableRow {
    display: table-row;
}


.evenDivTableRow {
    display: table-row;
    background: #D0E4F5;
    color: darkblue;
    font-weight: bold
}

.oddDivTableRow {
    display: table-row;
    color: darkblue;
    font-weight: bold
}

.evenDivTableRowRed {
    display: table-row;
    background: #FF7F7F;
    color: black;
    font-weight: bold
}

.oddDivTableRowRed {
    display: table-row;
    background: #FF7F7F;
    color: black;
    font-weight: bold
}

.evenDivTableRowGreen {
    display: table-row;
    background: #90ee90;
    color: black;
    font-weight: bold
}

.oddDivTableRowGreen {
    display: table-row;
    background: #90ee90;
    color: black;
    font-weight: bold
}

.evenDivTableRowSalida {
    display: table-row;
    background: #D0E4F5;
    color: black;
    font-weight: bold
}

.oddDivTableRowSalida {
    display: table-row;
    color: black;
    font-weight: bold
}



.divTableHeading {
    background-color: #EEE;
    display: table-header-group;
}

.divTableCell, .divTableHead {
    border: 0px solid #999999;
    display: table-cell;
    padding: 2px 10px;
}

.divTableCellNoPadding{
    border: 0px solid #999999;
    display: table-cell;
}

.divTableCellPartidas, .divTableHeadPartidas {
    border: 0px solid #999999;
    display: table-cell;
    padding: 2px 2px;
}

.divTableCellModalRight {
    border: 0px solid #999999;
    display: table-cell;
    padding-right: 10px;
    padding-top: 1px;
    padding-bottom: 1px;
    text-align: right;
    width: 50%;
}

.divTableCellModalLeft {
    border: 0px solid #999999;
    display: table-cell;
    padding-left: 10px;
    padding-top: 1px;
    padding-bottom: 1px;
    text-align: left;
    width: 50%;
}

.divTableCellModalCenter {
    border: 0px solid #999999;
    display: table-cell;
    padding: 2px 10px;
    text-align: center;
    width: 50%;
}

.divTableHeading {
    background-color: #EEE;
    display: table-header-group;
    font-weight: bold;
}

.divTableFoot {
    background-color: #EEE;
    display: table-footer-group;
    font-weight: bold;
}

.divTableBody {
    display: table-row-group;
}


.divHide {
    display: none;
}

.divShow {
    display: inline;
}

.buttonClassActivate {
    width: 100%;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    background-color: lightyellow;
}

.buttonClassReady {
    width: 100%;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    background-color: lightgreen;
}

.buttonMenu {
    width: 100%;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.buttonMenuDisabled {
    width: 100%;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.buttonToggleON {
    width: 100%;
    background-color: ButtonHighlight;
    margin-left: 5px;
}

.buttonToggleOFF {
    width: 100%;
    background-color: ButtonHighlight;
}

.buttonToggleON_light {
    width: 100%;
    background-color: lightgreen;
    margin-left: 5px;
}

.buttonToggleOFF_light {
    width: 100%;
    background-color: lightcoral;
}


.customButton {
    width: 9em !important;
}

.spinner {
    border: 16px solid silver;
    border-top: 16px solid #337AB7;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 700ms linear infinite;
    top: 40%;
    left: 55%;
    position: absolute;
}

.lampTable {
    table-layout: fixed;
    width: 100%;
    white-space: nowrap;
}


.lampTable thead {
    background-color: #EEE;
    display: table-header-group;
    font-weight: bold;

}

.lampTable th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.column-center {
    text-align: center;
}

.lampTable td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lampTable tr:nth-child(even) {
    background: #D0E4F5;
}


@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}
 
@media (max-width: 828px) {
    .main .top-row {
        display: none;
    }
    .hide {
        display: none;
    }
}

@media (min-width: 828px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .divTable {
        display: table;
        width: 100%;
    }

    .divTableModal {
        display: table;
        width: 100%;
    }

 
}
