@import 'colors.css';

.input-md {
    position: relative;
    margin: 1rem 0;
}

.input-md input, .input-md select {
    border: 0;
    border-bottom: 2px solid var(--grey);
    outline: none;
    transition: .2s ease-in-out;
    box-sizing: border-box;
    text-transform: uppercase;
}

[list]::-webkit-calendar-picker-indicator {
    display: none;
}

.input-md label.input, .input-md i.icon {
    top: 10px;
    left: 0;
    right: -5px;
    color: var(--dove-grey);
    display: flex;
    align-items: center;
    position: absolute;
    font-size: 1rem;
    cursor: pointer;
    transition: .2s ease-in-out;
    box-sizing: border-box;
    padding-left: 0;
}

.input-md label.input, .input-md i.icon2 {
    top: 10px;
    left: 0;
    right: -5px;
    color: var(--dove-grey);
    display: flex;
    align-items: center;
    position: absolute;
    font-size: 1rem;
    cursor: text;
    transition: .2s ease-in-out;
    box-sizing: border-box;
    padding-left: 0;
}

.input-md input, .input-md label.input, .input-md select {
    width: 100%;
    font-size: 1rem;
}

.input-md input, .input-md select {
    height: 2rem;
}

.input-md label.input, .input-md i.icon {
    height: 1rem;
}

.input-md label.icon {
    width: 95% !important;
}

.input-md i.icon {
    width: 5%;
    left: unset !important;
}

.input-md input[type="time"]:invalid, .input-md input[type="date"]:invalid {
    -webkit-appearance: none;
    color: var(--white) !important;
}

.input-md input[type="time"]:focus, .input-md input[type="date"]:focus {
    -webkit-appearance: auto;
    color: var(--black) !important;
}

.input-md input:valid, .input-md input:focus, .input-md select:valid, .input-md select:focus {
    border-bottom: 2px solid var(--primary-blue);
}

.input-md input:valid+label, .input-md input:focus+label.input, .input-md input:disabled+label, .input-md select:valid+label, .input-md select:focus+label.input, .input-md select:disabled+label {
    color: var(--primary-blue);
    font-size: .8rem;
    top: -10px;
    pointer-events: none;
}

.input-md input:disabled, .input-md select:disabled {
    background-color: var(--mercury);
}

.input-md input:disabled+label, .input-md select:disabled+label {
    color: var(--black);
}

.button-md {
    position: relative;
    display: block;
    margin: 8px auto;
    padding: 0;
    overflow: hidden;
    border-width: 0;
    outline: none;
    border-radius: 2px;
    background-color: #000;
    color: #ecf0f1;
    transition: background-color .3s;
}

.button-md:focus {
    outline: unset !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

.button-md>* {
    position: relative;
}

.button-md span {
    display: block;
    padding: .375rem .75rem;
    text-transform: uppercase;
}

.button-md:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 0;
    padding-top: 0;
    border-radius: 100%;
    background-color: rgba(236, 240, 241, .3);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.button-md:active:before {
    width: 120%;
    padding-top: 120%;
    transition: width .2s ease-out, padding-top .2s ease-out;
}

.button-md.btn-block {
    width: 100%;
}

.button-md.btn-rounded {
    width: 100%;
    height: 100%;
    max-width: 2.5rem;
    max-height: 2.5rem;
    border-radius: 100%;
    box-shadow: 0 3px 6px 0 #666;
    border: none;
    outline: none;
}

.button-md.btn-outline, .button-md.btn-outline:hover, .button-md.btn-outline:active, .button-md.btn-outline:focus {
    border: 1px solid;
    background-color: #fff;
}

.button-md.btn-fab, .button-md.btn-fab-left {
    display: block;
    height: 3rem;
    width: 3rem;
    border-radius: 100%;
    position: fixed;
    right: 3%;
    bottom: 3%;
    margin: 0;
    box-shadow: 0 6px 10px 0 var(--dove-grey);
    border: none;
    outline: none;
}

.button-md.btn-mdpesquisa {
    right: 0;
    position: absolute;
    border-radius: 100%;
    height: 3rem;
    width: 3rem;
    margin-top: -45px;
    margin-right: 9px;
    z-index: 10;
    box-shadow: 0 6px 10px 0 var(--dove-grey);
}

.button-md.btn-fab-left {
    left: 3%;
}

.button-md.btn-fab:focus, .button-md.btn-fab-left:focus {
    box-shadow: 0 6px 10px 0 var(--dove-grey) !important;
}

.radio-md {
    margin: 16px 0;
}

.radio-md div.radio-md-inline {
    display: inline-block;
}

.radio-md input[type="radio"] {
    display: none;
}

.radio-md input[type="radio"]:checked+label:before {
    border-color: var(--science-blue);
    animation: ripple 0.2s linear forwards;
}

.radio-md input[type="radio"]:checked+label:after {
    transform: scale(1);
}

.radio-md label {
    display: inline-block;
    min-height: 20px;
    position: relative;
    padding: 0 30px;
    margin-bottom: 0;
    cursor: pointer;
    vertical-align: bottom;
}

.radio-md label:before, .radio-md label:after {
    position: absolute;
    content: '';
    border-radius: 50%;
    transition: all .3s ease;
    transition-property: transform, border-color;
}

.radio-md label:before {
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.54);
}

.radio-md label:after {
    top: 5px;
    left: 5px;
    width: 10px;
    height: 10px;
    transform: scale(0);
    background: var(--science-blue);
}

@keyframes ripple {
    0% {
        box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.0);
    }

    50% {
        box-shadow: 0px 0px 0px 15px rgba(0, 0, 0, 0.1);
    }

    100% {
        box-shadow: 0px 0px 0px 15px rgba(0, 0, 0, 0);
    }
}

.switch-md input {
    display: none;
}

.switch-md label {
    position: relative;
    display: inline-block;
    min-width: 112px;
    cursor: pointer;
    font-weight: 500;
    text-align: left;
    margin: 1px 0;
    padding: 3px 0 3px 44px;
}

.switch-md label:before, .switch-md label:after {
    content: "";
    position: absolute;
    margin: 0;
    outline: 0;
    top: 50%;
    -ms-transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.switch-md label:before {
    left: 1px;
    width: 34px;
    height: 14px;
    background-color: var(--grey);
    border-radius: 8px;
}

.switch-md label:after {
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--alabaster);
    border-radius: 50%;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084);
}

.switch-md input:checked+label:before {
    background-color: var(--science-blue);
}

.switch-md input:checked+label:after {
    background-color: var(--blue);
    -ms-transform: translate(80%, -50%);
    -webkit-transform: translate(80%, -50%);
    transform: translate(80%, -50%);
}

.switch-md input:checked+label {
    color: var(--primary-blue);
}

.switch-md label .toggle-on {
    display: none;
}

.switch-md label .toggle-off {
    display: inline-block;
}

.switch-md input:checked+label .toggle-on {
    display: inline-block;
}

.switch-md input:checked+label .toggle-off {
    display: none;
}

.switch-md.red label:before {
    background-color: var(--devil-red);
}

.switch-md.red label:after {
    background-color: var(--red);
}

.switch-md.red input:checked+label:before {
    background-color: var(--deep-purple);
}

.switch-md.red input:checked+label:after {
    background-color: var(--purple);
}

.switch-md.red input:checked+label {
    color: var(--purple);
}

.switch-md.green label:before {
    background-color: var(--pea-green);
}

.switch-md.green input+label {
    color: var(--pea-green);
}

.switch-md.green label:after {
    background-color: var(--forest-green);
}

.switch-md.green input:checked+label:before {
    background-color: var(--forest-green);
}

.switch-md.green input:checked+label:after {
    background-color: var(--green);
}

.switch-md.green input:checked+label {
    color: var(--green);
}

.switch-md.grey label:before, .switch-md.grey input:checked+label:before {
    background-color: var(--dove-grey);
}

.switch-md.grey label:after, .switch-md.grey input:checked+label:after {
    background-color: var(--grey);
}

.switch-md.grey input:checked+label {
    color: var(--grey);
}

.simple-list-md {
    border-radius: 4px;
    background-color: var(--white);
    box-shadow: 0px 0px 3px var(--grey);
    overflow: hidden;
}

.simple-list-md ul {
    width: 100%;
    /* display: table; */
    list-style: none;
}

.simple-list-md ul li {
    padding: 10px 20px;
}

.simple-list-md ul li {
    background-position: center;
    transition: background 0.8s;
}

.simple-list-md ul li {
    background: var(--white) radial-gradient(circle, transparent 1%, rgba(236, 240, 241, .3) 1%) center/15000%;
}

.simple-list-md ul li:not([excecao]):nth-child(even) {
    background: var(--seashell) radial-gradient(circle, transparent 1%, rgba(236, 240, 241, .3) 1%) center/15000%;
}

.simple-list-md ul li:not([excecao]):active {
    background-color: rgba(236, 240, 241, .3);
    background-size: 100%;
    transition: background 0s;
}

.accordion-md {
    transition: 0.4s;
    outline: none;
}

.accordion-md i.arrow {
    font-size: 16px;
    position: relative;
    -webkit-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.accordion-md.active i.arrow {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}

.panelaccordion-md {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    margin-bottom: 0 !important;
}

.ripple {
    position: relative;
}

.ripple:before {
    content: "";
    position: absolute;
    display: block;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 100%;
    visibility: hidden;
    left: -50%;
    right: -50%;
    top: 0;
    bottom: 0;
    width: 150%;
    height: 150%;
    margin: auto;
    opacity: 0;
    transition: all 1s;
}

.ripple:active:before {
    visibility: visible;
    height: 10px;
    width: 10px;
    opacity: 1;
    transition: 0s;
}

/* OK */

.card-md {
    background: #fff;
    border-radius: 2px;
    display: inline-block;
    height: 300px;
    overflow-y: auto;
    position: relative;
    width: 100%;
}

.card-md-1 {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.card-md-2 {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

ul.list-md {
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 1px;
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
    display: table;
    color: #000;
}

ul.list-md li {
    background-color: #fff;
    padding: 10px 20px;
    margin: 0 0 0 0;
    cursor: pointer;
    transition: all 80ms ease-in-out;
}

ul.list-md li:nth-child(even) {
    background-color: #f2f2f2;
}

ul.list-md li:hover {
    background-color: rgba(0, 0, 0, .075) !important;
    transition: all 50ms ease-in-out;
}

ul.sub-list {
    display: none;
}

ul.sub-list {
    font-weight: 100;
    font-size: 16px;
    letter-spacing: 1px;
    width: 100%;
    list-style: none;
}

ul.list-md .indicator {
    width: 15px;
    height: 15px;
    margin: 0 10px 0 0;
    border-radius: 100%;
    border: 3px #444 solid;
    background-color: #444;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: inline-block;
    transition: all 200ms ease-in-out;
}

ul.list-md .indicator.active {
    background-color: #fff;
}

ul.list-md li .font-main {
    font-size: 18px;
    font-weight: 500;
}

ul.list-md li .font-sub {
    font-size: 15px;
    font-weight: 400;
}

.fabs-md {
    bottom: 0;
    position: fixed;
    margin: 1em;
    right: 0;
}

.fabs-md:hover .fab:not(:last-child) {
    opacity: 1;
    transition: opacity .3s ease-in-out;
    animation: fadein 1s;
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    margin: 15px 0 0 auto;
}

@keyframes fadein {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeout {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.fab>button {
    display: block;
    width: 3rem;
    height: 3rem;
    border-radius: 100%;
    text-align: center;
    color: white;
    margin: 20px auto 0;
    box-shadow: 0 6px 10px 0 #666;
    cursor: pointer;
    -webkit-transition: all .1s ease-out;
    transition: all .1s ease-out;
    position: relative;
    border: none;
    outline: none;
    font-size: 28px;
    line-height: 60px;
    transition: all .2s ease-in-out;
    transition-delay: 2s;
}

.fab>button:active, .fab>button:focus, .fab>button:hover {
    box-shadow: 0 0 4px rgba(0, 0, 0, .14), 0 4px 8px rgba(0, 0, 0, .28);
}

.fab:not(:last-child)>button {
    width: 2.5rem;
    height: 2.5rem;
    margin: 20px 0 0 auto;
    font-size: 18px;
    line-height: 40px;
}

.fab:not(:last-child) {
    opacity: 0;
    transition: opacity .3s ease-in-out;
    display: none;
    animation: fadeout 1s;
}

[tooltip]:before {
    font-family: 'Roboto';
    font-weight: 540;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    background-color: #fff;
    color: #000;
    content: attr(tooltip);
    visibility: visible;
    opacity: 1;
    line-height: 2.5rem;
    margin-right: 10px;
    position: absolute;
    right: 15%;
    padding: 0 6px;
    white-space: nowrap;
}

[tooltip]:hover:after {
    visibility: visible;
    opacity: 1;
}

.fab-h {
    display: inline-block;
}

.fab-h[tooltip]:before {
    display: inline-block !important;
    position: relative;
    right: 0;
    margin: 0;
}

.fab-h>button {
    display: inline-block;
}

.fabs-md:hover .fab-h:not(:last-child) {
    width: unset;
    display: inline-block;
}

/* MODAL */
.modal-md {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: #0000002b;
    z-index: 13;
    display: flex;
    visibility: hidden;
}

.modal-md.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s;
    animation: fadein 0.5s;
}

.modal-md.hide {
    display: none;
    /* visibility: hidden; */
    /* -webkit-animation: fadeout 0.5s; */
    /* animation: fadeout 0.5s; */
    /* transition: 0.5s; */
}

.modal-body {
    display: block;
    margin: auto;
    width: 70%;
    background-color: #FFF;
    min-height: 7rem;
    box-shadow: 0px 2px 7px;
    border-radius: 1px;
    max-width: 70%;
}

.modal-head h4 {
    margin: 1rem;
    display: inline-flex;
    width: calc(100% - 6rem);
}

.modal-head.close {
    border: 1px solid #d7d7d7;
    padding: 1rem;
    max-width: 3rem;
    text-align: center;
    float: right;
    width: 3rem;
}

.modal-article {
    padding: 0 1rem;
    margin-bottom: 1rem;
    overflow-y: auto;
    max-height: calc(100vh*0.65);
}

.modal-footer {
    border-top: 1px solid #c3c3c3;
    padding: .5rem 0;
    display: flex;
}

.modal-footer button {
    margin: 0px;
}

.modal-footer button:first-child {
    margin-left: auto;
}

.modal-footer button:last-child {
    border: unset;
}

.modal-footer button:focus {
    outline: unset;
}

.editable {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding-right: 40px;
    /* pointer-events: none; */
}

.selected {
    border: 2px solid blue;
}

.removeButton {
    cursor: pointer;
    margin-left: 10px;
    width: 16px;
}

.removeButton:hover {
    color: red;
}

.documentoItemRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    word-break: break-word;
    transition: 0.3s;
}

.documentoItemRow:hover {
    /* border-bottom: 1px dotted grey; */
    transition: 0.5s;
}

.documento-btnremove {
    color: grey;
    width: 15px;
    transition: 0.3s;
}

.documento-btnremove:hover {
    color: red;
    cursor: pointer;
    transition: 0.5s;
}