﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --color-site-background: #E5E5E5;
    --color-content-background: #FFFFFF;
    --color-text: #666766;
    --color-accent: #ED4C5C;
    --color-accent-dark: #CB2B3B;
    --color-light-border: #F2F2F2;
    --color-background-input: #F6F6F6;
    --font-site: Montserrat;
    --size-font-input: 16px;
}

html, body {
    font-family: var(--font-site);
    color: var(--color-text);
}

.main {
    overflow-x: initial !important;
}

body {
    background-image: url(../images/background.png);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #F9F9F9;
}

a, .btn-link {
    color: #0366d6;
}

h1 {
    font-style: normal;
    font-weight: 800;
    font-size: 26px;
    line-height: 32px !important;
    color: var(--color-text);
}

h2 {
    font-style: normal;
    font-weight: 800;
    font-size: 26px;
    line-height: 32px;
    color: var(--color-text);
    margin: 0;
}

h3 {
    font-style: normal;
    font-weight: 800;
    font-size: 18px;
    line-height: 22px;
    color: var(--color-text);
}

hr {
    border: 1px solid var(--color-light-border);
    width: 100%;
}

.hidden {
    display: none;
}

.float-left {
    float: left;
}

.card-footer {
    background-color: transparent;
    border-top: none;
    padding-left: 5px;
    padding-top: 0;
}

.modal_background {
    position: fixed;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    background-color: #00000001;
    z-index: 99;
}

.frameWidget:fullscreen {
    background-color: #fff;
    width: 100vw;
    height: 100vh;
}

    .frameWidget:fullscreen content {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        width: 100vw;
        height: 100vh;
    }

.width-auto {
    width: auto;
}

.content {
    padding-top: 0;
}

.valid.modified:not([type=checkbox]) {
    --outline: 1px solid #26b050;
}

.invalid {
    border: 1px solid #c32026;
}

.validation-message {
    color: #c32026;
}

.card {
    border-radius: 20px;
}

.card-error {
    border-color: #c32026;
}

#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;
    }

/* Forms */

.form-row-filter {
    margin-top: 5px;
    margin-bottom: 5px;
}

    .form-row-filter select,
    .form-row-filter input,
    .form-row-filter .select,
    .form-row-filter .btn.select {
        height: 37px;
        font-size: 13px;
    }

    .form-row-filter > div {
        margin-bottom: 15px;
    }

.form-row-edit {
    margin-top: 20px;
    margin-bottom: 20px;
}

select, input, .select, .btn.select, textarea {
    background-color: var(--color-background-input);
    border-radius: 12px;
    height: 63px;
    color: #4F5B79;
    border: solid var(--color-background-input) 1px;
    font-size: var(--size-font-input);
    padding-left: 10px;
    width: 100%;
    padding: 5px 10px;
    line-height: normal;
}

    input[type=radio] {
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }

.radio-label {
    display: flex;
    align-items: center;
}

textarea {
    min-height: 100px;
}

select, .select, .btn.select {
    appearance: none;
    -webkit-appearance: none;
    cursor: context-menu !important;
    /*--Trocar aqui*/
    background-image: url(https://cdn4.iconfinder.com/data/icons/ionicons/512/icon-arrow-down-b-1024.png);
    background-position-x: calc(100% - 12px);
    background-position-y: center;
    background-repeat: no-repeat;
    background-size: 10px;
}

.viewbox {
    border-color: #ECECEC;
    background-color: #FFF;
    color: #666;
    font-weight: 600;
    font-size: 16px;
}

.orderSelect {
    width: auto;
    height: 37px;
    font-size: 13px;
    font-weight: 600;
    padding-right: 30px;
}

@media (max-width: 768px) {
    .orderSelect {
        width: 100%;
    }
}


option, .option {
    font-size: 14px;
}

.option {
    min-height: 30px;
    background: #F6F6F6;
    padding: 0;
    margin: 0;
}

    .option:hover {
        background-color: #CECECE;
    }

input[type=checkbox] {
    width: 0;
    height: 0;
    visibility: hidden;
    display: block;
}

    input[type=checkbox].select-row {
        width: unset;
        height: unset;
        visibility: visible;
        display: unset;
    }

    label {
        font-size: 14px;
        margin-bottom: 3px;
    }


    label[data-type=checkbox] {
        width: fit-content;
        height: 24px;
        min-width: 35px;
        display: block;
        background-color: #c32026;
        border-radius: 20px;
        position: relative;
        cursor: pointer;
        transition: 0.5s;
        font-size: 12px;
        box-shadow: 2px 2px 6px #b1b1b16b;
        color: #FFF;
        padding: 2px 10px 0 20px;
        margin: 0;
        line-height: 21px;
        text-indent: 5px;
    }

        label[data-type=checkbox]::after {
            content: "";
            width: 16px !important;
            height: 16px;
            background-color: #f6f6f6;
            position: absolute;
            border-radius: 50%;
            top: 4px;
            left: 4px;
            transition: 0.5s;
        }

input:checked + label[data-type=checkbox]:after {
    left: calc(100% - 3px);
    transform: translateX(-100%);
}

input:checked + label[data-type=checkbox] {
    background-color: #2B395B;
    padding: 2px 25px 0 5px;
}

label[data-type=checkbox]:active:after {
    width: 32px;
}

.field-description {
    font-family: Montserrat;
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0em;
    text-align: left;
    font-family: Montserrat;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0em;
    text-align: left;
}

.form-divider {
    margin-top: 50px;
}

.button-filter {
    width: 100%;
    margin-left: auto;
    margin-top: 0;
    text-align: right;
}

    .button-filter button {
        margin-right: 10px;
    }

        .button-filter button:last-child {
            margin-right: 0;
        }

a.btn {
    padding-top: 10px;
}

.btn {
    min-height: 40px;
    min-width: 140px;
    width: fit-content;
    height: fit-content;
}

@media only screen and (max-width: 768px) {
    .btn {
        width: 100%;
        margin: 5px 0;
    }
}


.btn-success, .btn-primary {
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 12px;
    font-style: normal;
    font-weight: bold;
    font-size: var(--size-font-input);
    line-height: 17px;
    text-align: center;
    color: var(--color-content-background);
}

    .btn-success:hover, .btn-primary:hover,
    .btn-success:focus, .btn-primary:focus,
    .btn-success:active, .btn-primary:active
    .btn-success:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled):active {
        background: var(--color-accent-dark) !important;
        border: 1px solid var(--color-accent-dark) !important;
        outline: none !important;
        box-shadow: none !important;
    }

.btn-danger {
    background: #FFFFFF;
    border: 1px solid #ED4C5C;
    box-sizing: border-box;
    border-radius: 12px;
    font-style: normal;
    font-weight: bold;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    color: #ED4C5C;
}

    .btn-danger:hover {
        background: #DD3C4C;
        color: #FFFFFF;
    }

.btn-light {
    background: var(--color-content-background);
    border: 1px solid var(--color-accent);
    box-sizing: border-box;
    border-radius: 12px;
    font-style: normal;
    font-weight: bold;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    color: var(--color-accent);
}

    .btn-light:hover {
        background: var(--color-background-input);
        color: var(--color-accent-dark);
        border-color: var(--color-accent-dark);
    }

.btn-text {
    border: none;
    background-color: transparent;
}

    .btn-text:focus, .btn-text:focus-visible {
        outline: 0;
    }

.btn-min {
    width: auto;
    min-width: auto;
    height: auto;
    min-height: auto;
}

.btn-small {
    border: none;
    font-size: 12px;
    font-style: italic;
    font-weight: 700;
    color: var(--color-text);
    text-transform: lowercase;
}

    .btn-small:hover, .btn-small:focus {
        box-shadow: 0 0 0 0.1rem var(--color-light-border)
    }

.btn-tab {
    font-style: normal;
    font-size: 14px;
    padding: 0;
    min-width: fit-content;
    min-height: fit-content;
    border: 0;
}

    .btn-tab:focus, .btn-tab:active {
        border: 0;
    }

    .active.btn-tab {
        color: var(--color-accent);
        font-weight: bold;
        position: relative;
        border: 0;
    }

    .active.btn-tab-no::before {
    content: '';
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 0 9px 7px 9px;
    border-color: transparent transparent var(--color-accent) transparent;
    transform: rotate(90deg);
    position: absolute;
    right: -10px;
    top: calc(50% - 3px);
}

.status-icon {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 6px;
    margin-right: 5px;
}

.status-ok {
    background-color: #699635;
}

.status-fail {
    background-color: #ED4C5C;
}

.imageFlag {
    margin-right: 10px;
}

.line {
    border-top: 1px solid #E5E5E5;
    padding: 5px 0;
}

    .line:nth-child(even) {
        background-color: #FBFBFB;
    }

.dropdown-toggle::after {
    display: none !important;
    margin-left: 10px;
    vertical-align: 2px;
}

.lineTitleFilter {
    margin-bottom: 1.5rem !important;
}

/* LOGIN */

.login-div {
    min-width: 630px;
    padding: 60px !important;
}

.logo-login {
    text-align: center;
}

.welcome {
    text-align: center;
}

.signin {
    display: block;
    margin: auto;
}

.language-login {
    display: flex;
    justify-content: center;
    padding-top: 30px;
}

.workflow-order {
    text-align: center;
    padding-top: 10px;
    padding-left: 30px;
}

    .workflow-order input {
        height: 40px;
        text-align: center;
        font-weight: 700;
        min-width: 30px;
    }


.frame-content .oi-caret-left, .frame-content .oi-caret-right {
    font-size: 18px !important;
}

.frame-content .oi-caret-left, .frame-content .oi-caret-right,
.frame-content .btn-link {
    color: #666766;
    transition: all .2s;
}

    .frame-content .oi-caret-left:hover, .frame-content .oi-caret-right:hover,
    .frame-content .btn-link:hover {
        color: #EC5060;
    }


.dataTable {
    width: 100%;
    background: #FFFFFF;
    box-sizing: border-box;
    border-collapse: separate;
}

    .dataTable tr {
        min-height: 50px;
        height: 50px;
    }

    .dataTable thead tr th {
        font-size: 14px;
    }


    .dataTable thead tr th, .dataTable tbody tr td {
        border-top: 1px solid #E5E5E5;
        padding: 0 10px;
    }


    .dataTable thead tr, .dataTable tr:nth-child(even) {
        background-color: #FBFBFB;
    }

        .dataTable tbody tr td:first-child, .dataTable thead tr th:first-child {
            border-left: 1px solid #E5E5E5;
        }

        .dataTable tbody tr td:last-child, .dataTable thead tr th:last-child {
            border-right: 1px solid #E5E5E5;
        }

    .dataTable tbody tr:hover {
        background-color: #F1F1F1;
    }

    .dataTable tbody tr.active {
        background-color: #dae0f1;
    }

    .dataTable tbody tr td {
        font-weight: 600;
        font-size: 13px;
        color: #2B395B;
    }

    .dataTable tbody tr:last-of-type td {
        border-bottom: 1px solid #E5E5E5;
    }

.modal-body {
    min-width: 600px;
    /*max-height: calc(80vh - 120px);
     overflow: hidden auto; */
}

@media only screen and (max-width: 641px) {
    .daterangepicker .drp-calendar.right {
        display: none;
    }

    .drp-buttons .cancelBtn {
        display: none;
    }

    .lineTitleFilter {
        flex-direction: column;
        text-align: center;
    }

        .lineTitleFilter h2 {
            margin-bottom: 20px;
        }

    /* LOGIN */
    .login-div {
        min-width: 90%;
        width: 90%;
    }
}

@media (max-width: 768px) {

    .content-box {
        padding: 20px;
    }

        .content-box .d-flex {
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .content-box h1 {
            font-size: 22px;
            line-height: 26px;
        }

    .frameWidget header h3 {
        max-width: 80%;
    }

    .dataTable {
        display: block;
        width: 100%;
        margin: auto;
    }

        .dataTable thead {
            display: none;
            visibility: collapse;
        }

        .dataTable tbody,
        .dataTable tbody tr,
        .dataTable tbody tr td {
            display: block;
            width: 100%;
            height: auto;
            border: none;
        }

            .dataTable tbody tr {
                border-left: 1px solid #E5E5E5;
                border-right: 1px solid #E5E5E5;
                padding-top: 10px;
                padding-bottom: 14px;
            }

            .dataTable tbody tr {
                border-top: 1px solid #E5E5E5;
            }

                .dataTable tbody tr td {
                    padding: 5px 10px;
                }

                    .dataTable tbody tr td:last-child, .dataTable thead tr th:last-child {
                        border-right: none;
                    }

                .dataTable tbody tr:last-of-type td {
                    border-bottom: none;
                }

                .dataTable tbody tr:last-of-type {
                    border-bottom: 1px solid #E5E5E5;
                }

    .modal-body {
        min-width: 79vw;
    }

    .modal-header .btn  {
        width: auto;
    }
}

.permision-component {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.permission-groups {
    width: 200px;
    border-right: 1px solid #d2d2d2;
}

    .permission-groups .btn {
        width: 100%;
    }

    .permision-selector {
        width: calc(100% - 230px);
    }