@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;
}

.child_div {
    display: inline-block;
}

.parent_div {
    clear: both;
}

.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%, #13156a 70%);
    overflow-y: auto;
}

    .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;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .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: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);
}

#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;
}

/* ===== SIDEBAR RESPONSIVA COM BOOTSTRAP 4 ===== */

/* FORÇA sidebar sempre visível em telas >= 768px */
.sidebar .collapse {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
}

/* Desktop (>= 768px) */
@media (min-width: 768px) {
    app {
        display: flex;
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        overflow-y: auto;
        flex-shrink: 0;
    }

    .main {
        flex: 1;
        min-width: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none !important;
    }
}

/* Tablet (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    app {
        display: flex;
        flex-direction: row;
    }

    .sidebar {
        width: 200px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        overflow-y: auto;
        flex-shrink: 0;
    }

    .main {
        margin-left: 200px;
        flex: 1;
    }

    .main .top-row:not(.auth) {
        display: flex !important;
    }

    .main .top-row.auth {
        display: flex !important;
        justify-content: space-between;
    }

    .navbar-toggler {
        display: none !important;
    }
}

/* Mobile (< 576px) - Com toggle */
@media (max-width: 575.98px) {
    app {
        display: flex;
        flex-direction: column;
    }

    .main .top-row:not(.auth) {
        display: none !important;
    }

    .main .top-row.auth {
        display: flex !important;
        justify-content: space-between;
    }

    .main .top-row a, 
    .main .top-row .btn-link {
        margin-left: 0 !important;
    }

    .navbar-toggler {
        display: block !important;
    }

    .sidebar {
        width: 180px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        overflow-y: auto;
        transition: transform 0.3s ease-in-out;
    }

    /* Mobile: toggle control */
    .sidebar .collapse:not(.show) {
        display: none !important;
    }

    .sidebar .collapse.show {
        display: block !important;
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .sidebar .nav-item {
        font-size: 0.8rem;
    }
}

.button-list {
    font-weight: bold;
    border-bottom: #ded solid 1px
}

    .button-list:hover {
        cursor: pointer;
        font-weight: bold;
        color: steelblue;
        border-bottom: steelblue 1px solid;
        transition-duration: .3s
    }

/*Elementos*/
a:hover {
    text-decoration: none;
    font-weight: bold;
    transition: .2s;
}

button {
    border-radius: 1em;
    font-weight: bold;
    border-color: lightgray;
}

button:hover {
    border-color: darkgray;
}

i:hover {
    color: steelblue;
    transition: .3s ease;
}

input {
    width: 100%;
    border-radius: .5em;
    border-color: #ded;
    background-color: #efe;
}

label {
    font-size:small;
    width:100%;
    margin:0px;
}

/*Textos*/
.red {
    color: red;
}

.right {
    text-align: end !important;
    align-content: end !important;
}

/* Tabelas */
.sys-table {
    box-shadow: gray 5px 5px 10px;
    border-radius: 10px 10px;
}

.sys-table div>div {
    text-align: start;
    padding: 2px 5px;
}

.sys-table-title {
    color: mediumslateblue;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom:solid 2px;
    margin-bottom:2px;
}

.sys-table-header {
    background-color: lightsteelblue;
    font-weight: bold;
    border-top-left-radius: 10px 10px;
    border-top-right-radius: 10px 10px;
}

.sys-table-header div {
    border-left: solid 1px white;
}

.sys-table-header div:first-child {
    border-left: none;
}

.sys-table-header div, .sys-table-data div {
    text-overflow:ellipsis;
    white-space:nowrap;
        content-visibility: auto;
}

.sys-table-data {
    border-left: solid 1px lightgray;
    border-bottom: solid 1px lightgray;
    border-bottom-left-radius: 5px 5px;
}

.sys-table-data:hover {
    cursor:pointer;
    background-color:aquamarine;
    transition:.35s;
}

.sys-table-footer {
    border-top: solid 1px gray;
    font-weight: bold;
    padding-top: 6px;
}

.sys-table label {
    font-size:small;
    font-weight:bold;
}

/*cards*/
.sys-card {
    box-shadow: gray 5px 5px 10px;
    border-radius: 10px 10px;
}

.sys-card div {
    margin:0px;
}

.sys-card label {
    font-size:small;
    font-weight:bold;
    padding: 0px;
    margin:0px;
}

.sys-card p {
    padding:0px;
    margin:0px;
}

.sys-card-title {
    background-color: #ddd;
    font-weight: bold;
    border-top-left-radius: 10px 10px;
    border-top-right-radius: 10px 10px;
}

.sys-card-body {
    padding: 5px;
    transition:height 0.35s ease;
}

i.sys-card-colapse
{
    vertical-align: middle;
    margin-left: 5px;
    float:left;
}

i.sys-card-colapse:hover {
    cursor:pointer;
}

i.oi-pencil:hover {
    cursor:pointer;
}

/*Sys Modal*/
.sys-modal, .sys-alert {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    background-color: rgba(0,0,0,.8);
    z-index: 2000;
}

.sys-modal-content, .sys-alert-content {
    position: absolute;
    min-width: 230px;
    border-radius: 1em;
    background-color: #fff;
    padding: 0px;
    margin: 0px;
}

.sys-modal-title {
    color: white;
    background-color: steelblue;
    margin:0px;
    border-top-left-radius:1em;
    border-top-right-radius:1em;
    font-weight:bold;
}

.sys-modal-title p {
    margin:0.5em;
}

.sys-modal-body, .sys-alert-body {
    margin: 0px;
    padding: .5em;
}

.sys-modal-footer, .sys-alert-footer {
    margin: 0px;
    padding: 5px 5px 0 0;
    border-top: solid 1px lightgray;
    flex-flow: row-reverse;
    width: 100%;
}

.sys-modal-footer button, .sys-alert-footer button {
    margin-left: .2em;
    margin-bottom: .5em;
    display:block;
    float:right;
}

.sys-modal-footer button:hover, .sys-alert-footer button:hover {
    border-color: darkgray;
}

.sys-btn-confirm {
    color: white;
    background-color: steelblue;
}

.sys-btn-cancel {
    color: white;
    background-color: firebrick;
}

.sys-footer {
    flex-flow: row-reverse;
}

.sys-footer button {
    display: block;
    float: right;
}

/* Lista suspensa */
.sys-list-select {
    position: absolute;
    top: 3.5em;
    left: 1em;
    border: solid 1px lightgray;
    z-index: 10;
    list-style: none;
    padding: 0em;
    background-color: ghostwhite;
    border-radius: 5px;
    box-shadow: gray 2px 2px 3px;
    max-height: 50vh;
    max-width: 40vw;
    overflow-y: auto;
    overflow-x:hidden;
    text-overflow:ellipsis;
    text-wrap: nowrap;
}

.sys-list-select li{
    padding: 0 1em;
}

.sys-list-select li:hover {
    background-color: lightsteelblue;
    transition: .2s;
}

.pointer:hover {
    cursor: pointer;
}

.border-circle {
    border: solid gray 1px;
    border-radius: 100%;
    padding: 5px;
    /*background: radial-gradient(circle, rgba(200,200,255,1) 50%, rgba(100,100,255,1) 60%);*/
}


/*div.row * {
    border:solid red 1px;
}*/


.pgFocus{
    background-color: gray;
    color: lightgray;
}

input[type="file"] {
    padding: 0px !important;
    font-size: small !important;
}

input[type="file" i] {
    padding: 0px !important;
    background-color: lightgray;
}

::-webkit-scrollbar {
    width: 8px; /* Largura da barra de rolagem */
}
::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 6px;
}
.blur-background {
    filter: blur(1px);
    transition: filter 0.1s ease-out;
}
.triangle {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 110px 133px;
    border-color: transparent transparent #13156a transparent;
    z-index: 1000;
    opacity: 94%;
}