@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
}

label {
    margin-bottom: 0;
}

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, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

        .main .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .sidebar::-webkit-scrollbar {
        display: none;
    }

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
        flex-wrap: wrap;
        min-height: 3.5rem;
        height: auto;
        padding: 0;
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        padding: 0;
        margin: 0 1rem;
    }

        .sidebar .navbar-brand > * {
            flex: 0 1 15px;
            text-align: center;
            font-size: 0.9rem;
            padding: 0 .25rem;
        }

            .sidebar .navbar-brand > *:first-child {
                font-size: 0.95rem;
                font-weight: bold;
            }


    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }


    .sidebar p.nav-link {
        padding: .5rem;
        margin: 0;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }


        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
            margin-left: 0;
            font-weight: bold;
            width: 250px;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .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;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

@media (max-width: 767.98px) {
    .scroll_base {
        width: calc(100vw - 3.5rem) !important;
    }
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        min-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;
    }
}

#login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: auto;
}

    #login-page > p {
        font-weight: bold;
        font-size: 1.2rem;
    }

.checkbox_custom input[type=checkbox] {
    display: none;
}

.checkbox_custom label {
    display: inline-block;
    cursor: pointer;
    position: relative;
    width: auto;
}

    .checkbox_custom label:before {
        content: '';
        width: 25px;
        height: 25px;
        position: absolute;
        left: 0;
        background-color: #fff;
        border: 1px inset rgb(118, 118, 118);
        border-radius: 5px;
        transform: translate(-50%, -50%);
        display: flex;
        justify-content: center;
        align-items: center;
    }

.checkbox_custom input[type=checkbox]:checked + label:before {
    content: '\2713';
    font-size: 22px;
    color: #fff;
    background-color: #1b6ec2;
}

table.sticky_table {
    background: #FFF;
    border-collapse: separate;
    border-spacing: 0;
    border-color: gray;
}

    table.sticky_table th {
        background-color: #fff;
        position: -webkit-sticky;
        position: sticky;
        top: calc(-1rem - 1px);
        z-index: 0;
        padding: 0;
    }

    table.sticky_table th,
    table.sticky_table td {
        border-right: 1px solid;
        border-bottom: 1px solid;
        border-color: gray;
    }

    table.sticky_table tr:first-child th,
    table.sticky_table tr:first-child td {
        border-top: 1px solid;
    }

    table.sticky_table th:first-child,
    table.sticky_table td:first-child {
        border-left: 1px solid;
    }

div.content_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

    div.contents > h1, div.content_header > h1 {
        margin: 0 0 .5rem 0;
        font-size: 1.5rem;
        font-weight: bold;
    }

div.contents_sb > h1 {
    color: #1A1919;
}

div.contents_ym > h1 {
    color: #C11A20;
}

div.contents {
    height: 100%;
}

    div.contents > div {
        display: flex;
        justify-content: space-between;
        align-items: stretch;
    }

    div.contents .card {
        border: none;
    }

    div.contents > div > div {
        flex: 1 1;
        font-size: .9rem;
        padding: .25rem;
    }

    div.contents .card > div:first-child {
        text-align: center;
        height: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        background-color: #1A1919;
        margin-bottom: .75rem;
    }

div.contents_sb .card > div:first-child, div.contents_S .card > div:first-child {
    background-color: #1A1919;
}

div.contents_ym .card > div:first-child, div.contents_Y .card > div:first-child {
    background-color: #C11A20;
}

div.card_gray > div:first-child {
    background-color: gray !important;
}

.stages {
    display: flex;
    flex-direction: column;
}

    .stages > .card {
        flex: 1 1;
    }

.card span {
    margin-bottom: .75rem;
}

    .card span img {
        margin-right: .25rem;
    }

    .card span:last-child {
        margin-bottom: 0rem;
    }


h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

h3 {
    font-size: 1.25rem;
}

div.filter_box {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    font-size: .9rem;
}

    div.filter_box > div {
        padding-bottom: .5rem;
    }

        div.filter_box > div:last-child {
            padding-bottom: .0rem;
        }

    div.filter_box label {
        width: 250px;
    }

    div.filter_box input {
        min-width: 70px;
    }

.master_tool_register {
    font-size: .9rem;
}

    .master_tool_register td:first-of-type {
        width: 10rem;
    }

    .master_tool_register td:last-of-type {
        text-align: center;
        width: 15rem;
    }

    .master_tool_register td.TextSelect {
        position: relative;
    }

        .master_tool_register input,
        .master_tool_register td button,
        .master_tool_register td select,
        .master_tool_register td label.btn {
            width: 100%;
            margin: 0;
            height: 30px;
        }

        .master_tool_register td select {
            padding: 1px 2px;
        }

        .master_tool_register td.TextSelect select {
            position: absolute;
            top: 50%;
            right: 10px;
            width: 14px;
            height: 20px;
            transform: translateY(-50%);
            border: none;
            outline: none;
            background: #00000000;
            cursor: pointer;
            padding: 0;
        }

        .master_tool_register td.TextSelect input {
            padding-right: 15px;
        }

        .master_tool_register td label.btn {
            font-size: .9rem;
        }

.ym_sb_toggle_button {
    display: flex;
    font-weight: bold;
    color: white;
}

    .ym_sb_toggle_button > div {
        width: 200px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
    }
.btn-lg {
    font-size: .9rem;
    margin-top: 17px;
}

td {
    padding: 0.25rem;
    height: 30px;
}

table.table_True th {
    background-color: #686868;
    color: #fff;
}

table.table_False th {
    color: #C6232C;
    background-color: #FBE5D6;
}
