@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
}

a, .btn-link {
    color: #0366d6;
}

.navbar-toggler {
    padding: 0;
}

.logo-menu {
    height: 55px;
    width: 55px;
    margin: -10px;
    cursor: pointer;
}

.logo-login {
    margin-top: 10px;
    height: 250px;
    margin-bottom: 30px;
}

@media (max-width: 500px) {
    .logo-login {
        margin-top: 5px;
        height: 160px;
        margin-bottom: 15px;
    }
}

.excel-icon {
    background-image: url(/images/excel.svg);
    background-repeat: no-repeat;
    width: 22px;
    height: 22px;
}

.pdf-icon {
    background-image: url(/images/pdf.svg);
    background-repeat: no-repeat;
    width: 40px;
    height: 50px;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.e-btn.e-primary, .e-css.e-btn.e-primary {
    background-color: darkseagreen !important;
}

.e-btn.e-flat.e-primary, .e-css.e-btn.e-flat.e-primary {
    color: white;
}

.e-ddl.e-popup {
    z-index: 2147483648;
}

.small-btn.e-btn {
    height: 35px !important;
    margin-bottom: 10px;
    margin-left: 10px;
}

.big-btn.e-btn {
    height: 35px !important;
    min-width: 120px !important;
    margin-bottom: 10px;
    margin-right: 10px;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
    margin-top: 50px;
    background-color: white;
}

    .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 {
    position: absolute;
    z-index: 100;
    width: 100%;
}

    .sidebar .nav.flex-column {
        background-color: #4ca788;
        width: 300px;
    }

    .sidebar .top-row {
        background-color: rgba(0,130,85,0.7);
    }

    .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: white;
            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: black;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
    height: calc(100vh - 56px);
    overflow: auto;
    margin-top: 6px;
}

.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) {
    .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;
    }
}


.grid-container {
    width: 100%;
    height: calc(100vh - 110px);
    margin: -5px;
    padding: 5px;
}

.md-form {
    margin-top: 3px;
    margin-bottom: 3px;
}

.card-body {
    padding: 5px;
    padding-right: 10px;
}

.grid:after {
    content: '';
    display: block;
    clear: both;
}

.grid-item {
    width: 400px;
    float: left;
    margin: 10px;
}

.grid-item-x1 {
    width: 550px;
    max-width: 550px;
}

.grid-item-x2 {
    width: 820px;
    max-width: 820px;
}

.grid-item-full {
    width: calc(100vw - 50px);
    max-width: 800px;
}

.grid-item-full-2 {
    width: calc(100vw - 70px);
    max-width: calc(100vw - 70px);
}

@media (max-width: 500px) {

    body {
        font-size: 12px;
    }

    .content.px-4 {
    }

    .grid-item {
        width: calc(100vw - 20px);
        float: left;
        margin: 0px;
        margin-bottom: 5px;
    }

    .grid-item-x2 {
        width: calc(100vw - 20px);
        float: left;
        margin: 0px;
        margin-bottom: 5px;
    }

    .detail-label {
        width: 120px!important;
        min-width: 120px!important;
    }

    .detail-label-x2 {
        width: 200px !important;
        min-width: 200px !important;
    }

    .detail-field {
        margin-left: 5px;
    }

    .pl-3, .px-3 {
        padding-left: 0.6rem !important;
    }

    .e-dialog .e-dlg-content {
        padding: 10px;
        max-height: calc(100vh - 140px);
    }
}

.e-dlg-container {
    z-index: 500 !important;
}

.e-dialog .e-dlg-content {
    max-height: calc(100vh - 140px);
}

.hide-time-selector .e-time-icon {
    display: none !important;
}

.e-grid .e-rowcell {
    padding: 8px 8px!important;
}

.e-grid .e-headercell {
    padding: 0 8px 0!important;
}

.e-detailrow .e-grid .e-headercell {
    height: 24px!important;
}

.e-control {
    font-size: 14px!important;
}

.detail-row {
    display: flex;
    margin-bottom: 5px;
}

.detail-label-m1 {
    text-align: right;
    width: 90px;
    min-width: 90px;
}

.detail-label {
    text-align: right;
    width: 130px;
    min-width: 130px;
}

.detail-label-x2 {
    text-align: right;
    width: 200px;
    min-width: 200px;
}

.detail-label-x1 {
    text-align: right;
    width: 150px;
    min-width: 150px;
}

.detail-field {
    margin-left: 10px;
    font-weight: bold;
}

.remove-max-height {
    max-height: none!important;
}

icd {
    background-color: gold;
    cursor: pointer;
    user-select: none;
    padding-left: 5px;
    padding-right: 5px;
}

.paciente-header {
    font-size: 1.1rem;
    margin-bottom: 10px;
    margin-top: -5px;
}

@media (min-width: 500px) {
    .paciente-header {
        color: white !important;
        font-size: 1.1rem;
        position: fixed;
        top: 15px;
        left: 90px;
        z-index: 101;
        margin-bottom: 0;
        margin-top: 0;
    }
}

.signature-pad-size {
    width: 100px!important;
    height: 50px!important;
}

.caracteristicas-ulcera {
    margin-left: 5px;
    margin-top: 5px;
}

.caracteristicas-ulcera label {
    margin-left: 20px;
}

.switch-group {
    margin-left: 5px;
    margin-top: 5px;
    margin-bottom: 8px;
}
    .switch-group label {
        margin-left: 20px;
        display: inline;
        line-height: 20px;
    }

textarea {
    resize: none!important;
}
