@import url("https://fonts.googleapis.com/css2?family=Muli:wght@300;700&display=swap");

:root {
    --color-green: #035E53;
    --light: #ffffff;
    --grey: #d2d2d2;
    --grey-light: #dee2e6;
    --grey-dark: #495057;
}

.text-green {
    color: var(--color-green) !important;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.dropzone {
    background: white;
    border-radius: 5px;
    border: 2px dashed rgb(0, 135, 247);
    border-image: none;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.nav-sidebar .nav-link>.right,
.nav-sidebar .nav-link>p>.right {
    top: 0.8rem !important;
}

/* Green */
.color-green {
    filter: invert(38%) sepia(74%) saturate(490%) hue-rotate(100deg) brightness(94%) contrast(85%);
}

body {
    font-family: 'Muli' !important;
    font-weight: 300 !important;
}

[class*="sidebar-dark"] .brand-link {
    border-bottom: 1px solid #dee2e6 !important;
}

.btn-primary {
    background-color: var(--color-green) !important;
    border-color: var(--color-green) !important;
}

a {
    color: var(--color-green);
}

.card-primary.card-outline {
    border-top: 3px solid var(--color-green) !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--color-green) !important;
}

.nav-tabs .nav-link.active {
    color: var(--color-green) !important;
}

.nav-tabs .nav-link:not(.active) {
    color: var(--grey);
}

.bg-success {
    background-color: var(--color-green) !important;
}

.callout.callout-info {
    border-left-color: var(--color-green);
}

.callout {
    padding: 0.5rem .5rem 0 !important;
}

/*******************************/
/*      animations input       */
/*******************************/

/* custom file */
.custom-file .custom-file-input.required~.custom-file-label {
    font-weight: 600;
}

.custom-file .custom-file-input.required~.custom-file-label::before,
.label-required::before {
    content: '*';
    color: #dc3545;
    visibility: visible;
}

/* input text */
.form-group {
    position: relative;
    padding-top: 14.5px;
    margin-top: 14.5px;
    margin-bottom: 16px;
}

.form-group .form-label {
    position: absolute;
    top: 20px;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    font-weight: 300;
    opacity: 0.5;
    cursor: text;
    transition: 0.5s ease all;
    margin: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.form-group .form-label:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0%;
    height: 2px;
    width: 10px;
    visibility: hidden;
    background-color: var(--primary);
    transition: 0.5s ease all;
}

.invalid-feedback~.form-label:after {
    bottom: 1.5rem !important;
}

.invalid-feedback[style*='display: none']~.form-label:after {
    bottom: 0 !important;
}

.form-group .form-control {
    position: relative;
    z-index: 1;
    border-radius: 0;
    border-width: 0 0 1px;
    border-bottom-color: rgba(0, 0, 0, 0.25);
    height: auto;
    padding: 3px 0 5px;
}

.form-group .form-control:focus,
.form-group .form-control:not(:placeholder-shown) {
    box-shadow: none;
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

.form-group .form-control:focus~.form-label,
.form-group .form-control:not(:placeholder-shown)~.form-label,
.label {
    top: 0;
    opacity: 1;
    color: var(--primary);
    font-size: 12px;
}

.form-group .form-control:focus~.form-label:after,
.form-group .form-control:not(:placeholder-shown)~.form-label:after {
    visibility: visible;
    width: 100%;
    left: 0;
}

.form-group .form-control.required~.form-label {
    font-weight: 600;
}

.form-group .form-control.required~.form-label::before {
    content: '*';
    color: #dc3545;
    visibility: visible;
}

/* select */
.form-group .form-label-select {
    position: absolute;
    top: 1.25rem;
    left: 0;
    bottom: -.13rem;
    z-index: 2;
    width: 100%;
    font-weight: 300;
    opacity: 0.5;
    cursor: text;
    pointer-events: none;
    transition: 0.5s ease all;
    margin: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.form-group .form-label-select:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0%;
    height: 2px;
    width: 10px;
    visibility: hidden;
    background-color: var(--primary);
    transition: 0.5s ease all;
}

.form-group .form-control-select {
    position: relative;
    z-index: 1;
    outline: none;
    border-radius: 0;
    border-width: 0 0 1px;
    border-bottom-color: #bfbfbf;
    height: auto;
    padding: 3px 0 7px;
    bottom: -.13rem;
    background: transparent;
    width: 100%;
}

/* .form-group .form-control-select:focus,
.form-group .form-control-select[data-valor="0"] {
    box-shadow: none;
    border-bottom-color: rgba(0, 0, 0, 0.12);
} */

.form-group .form-control-select[data-valor]:not([data-valor=""])~.form-label-select,
.form-group .form-control-select[readonly]~.form-label-select,
.form-group .form-control-select:focus~.form-label-select {
    top: 0;
    opacity: 1;
    color: var(--primary);
    font-size: 12px;
}

.form-group .form-control-select[data-valor]:not([data-valor=""])~.form-label-select:after,
.form-group .form-control-select[readonly]~.form-label-select:after,
.form-group .form-control-select:focus~.form-label-select:after {
    visibility: visible;
    width: 100%;
    left: 0;
}

.form-group .form-control-select.required~.form-label-select {
    font-weight: 600;
}

.form-group .form-control-select.required~.form-label-select::before {
    content: '*';
    color: #dc3545;
    visibility: visible;
}

select[readonly] {
    pointer-events: none;
    touch-action: none;
}

select[value=""] {
    border: 1px solid yellow;
}

.form-group .form-control-select[readonly] {
    background-color: #e9ecef;
    color: #495057;
}

.form-group .form-control-select:disabled {
    background: #e9ecef;
}

/* input text small */
.form-group-sm {
    padding-top: 0px !important;
    margin-bottom: 0px !important;
    margin-top: 16px !important;
}

.form-group-sm .form-label {
    top: 4px !important;
}

.form-group-sm .form-control {
    padding: 0px !important;
}

.form-group-sm .form-control:focus~.form-label,
.form-group-sm .form-control:not(:placeholder-shown)~.form-label {
    top: -16px !important;
}

/************************/
/*    página de login   */
/************************/
.login-page {
    background: url('../img/background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    backdrop-filter: blur(4px);
}

/************************/
/*        tabela        */
/************************/
.tr-text-small td,
.tr-text-small th {
    font-size: .8rem !important;
}

/************************/
/*       Diversos       */
/************************/
.brand-link.texto-verde:hover {
    color: #035E53;
}

/***********************/
/*     input custom    */
/***********************/
.form {
    position: relative;
    overflow: hidden;
    margin-top: 16px;
    margin-bottom: 16px;
}

.form input {
    width: 100%;
    height: 100%;
    padding-top: 20px;
    padding-bottom: 2px;
    border: none;
}

.form input[type="date"],
.form input[type="datetime-local"] {
    color: #ffffff;
    position: relative;
}

.form input[type="date"]::before,
.form input[type="datetime-local"]::before {
    color: #98A2B3;
    content: attr(placeholder);
    position: absolute;
}

.form input[type="date"]:focus,
.form input[type="date"]:valid,
.form input[type="datetime-local"]:focus,
.form input[type="datetime-local"]:valid {
    color: #101828;
}

.form input[type="date"]:focus::before,
.form input[type="date"]:valid::before,
.form input[type="datetime-local"]:focus::before,
.form input[type="datetime-local"]:valid::before {
    content: "" !important;
}

.form label {
    position: absolute;
    left: 0px;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-bottom: 1px solid #bfbfbf;
}

.form label::after {
    content: "";
    position: absolute;
    left: 0px;
    width: 100%;
    height: 100%;
    border-bottom: 3px solid var(--primary);
    bottom: -2px;
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

.content-name {
    position: absolute;
    bottom: 0px;
    left: 0px;
    color: #8f9193;
    transition: all 0.3s ease;
}

.form input:required~.label-name .content-name::before {
    content: '*';
    color: #ed99a1;
    visibility: visible;
}

.form input:required:focus~.label-name .content-name::before,
.form input:required:valid~.label-name .content-name::before {
    color: #dc3545;
}

.form input:focus {
    outline: none;
}

.form input:focus+.label-name .content-name,
.form input:valid+.label-name .content-name {
    transform: translateY(-140%);
    left: 0px;
    color: var(--primary);
    font-size: 12px;
}

.form input:focus+.label-name::after,
.form input:valid+.label-name::after {
    transform: translateX(0%);
}

/* Search Select  */
.search_select_box label {
    position: absolute;
    top: 1.25rem;
    left: 0;
    bottom: -.13rem;
    z-index: 2;
    width: 100%;
    font-weight: 300;
    opacity: 0.5;
    cursor: text;
    pointer-events: none;
    transition: 0.5s ease all;
    margin: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;


    top: 0;
    opacity: 1;
    color: var(--primary);
    font-size: 12px;

}

.search_select_box button {
    border-radius: 0;
    border-width: 0 0 1px;
    border-bottom-color: #bfbfbf;
    background-color: white;
}


.search_select_box label {
    font-weight: 600;
}

.search_select_box label::before {
    content: '* ';
    color: #dc3545;
    visibility: visible;
}

.search_select_box select[data-valor]:not([data-valor=""])~button,
.search_select_box select[readonly]~button,
.search_select_box select:focus~button {
    border-width: 0 0 2px;
    border-bottom-color: var(--primary);
}

.dropdown-menu {
    max-width: 600px !important;
}


.col-form-label {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}
