@font-face {
    font-family: 'icofont';
    src: url('../styles/fonts/icofont.woff2') format('woff2'),
         url('../styles/fonts/icofont.woff') format('woff'),
         url('../styles/fonts/icofont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.msg-fade-out {
    opacity: 1;
    transition: opacity 3s;
}
  
.msg-hidden {
    opacity: 0; 
    pointer-events: none;
    display: none;
}

.error-msg {
    order: 1;
    position: absolute;
    text-align: center;
    z-index: 1;
    background-color: #ff80808a;
    width: 100%;
    margin: 3px;
    font-weight: bold;
}    

.success-msg {
    order: 1;
    position: absolute;
    text-align: center;
    z-index: 1;
    background-color: #80ff808a;
    width: 100%;
    margin: 3px;
    font-weight: bold;
}

/* Classe base para os ícones e status */
.status-icon{
    font-weight: bold;
    line-height: 34px;
    align-content: center;
    display: flex;
}

.status-icon::before {
    font-family: 'icofont';
    margin-right: 5px;
    font-size: 35px;
}

.status-creat::before {
    content: '\ecf1';
    color: blue;
}

.status-anala::before {
    content: '\ecf2';
    color: orange;
}

.status-progr::before {
    content: '\EEB0';
    color: darkslateblue;
}

.status-appro::before {
    content: '\ecf4';
    color: purple;
}

.status-parts::before {
    content: '\ecf5';
    color: red;
}

.status-waiti::before {
    content: '\ecf6';
    color: yellow;
}

.status-repai::before {
    content: '\ecf7';
    color: brown;
}

.status-testi::before {
    content: '\EC39';
    color: cornflowerblue;
}

.status-calib::before {
    content: '\ecf9';
    color: cyan;
}

.status-done::before {
    content: '\ecfa';
    color: darkgreen;
}

.status-denie::before {
    content: '\EFA9';
    color: darksalmon;
}

.status-cance::before {
    content: '\ecfc';
    color: gray;
}

.logout-button {
    margin: auto;
    position: relative;
}

#menuLink{
    color: white;
}

#menuLink::before{
    content: '\13B53';
    display: block;
    font-family: icofont;
}

.active #menuLink{
    color: var(--ifm-color-primary) !important;
}
  
#progress {
    width: 100%;
    position: relative;
    margin-bottom: 30px;   
} 
  
#progress-bar {
    position: absolute;
    background: #1b98f8;
    height: 5px;
    width: 0%;
    top: 50%;
    left: 0;
}
  
#progress-num {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
}
  
#progress-num::before {
    content: "";
    background-color: lightgray;
    position: absolute;
    top: 50%;
    left: 0;
    height: 5px;
    width: 100%;
    z-index: -1;
} 
  
#progress-num .step {
    border: 4px solid lightgray;
    border-radius: 10%;
    width: 80px;
    height: 50px;
    text-align: center;
    background-color: #fff;
    font-family: sans-serif;
    font-size: 14px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;        
} 
  
#progress-num .step.selected {
    border-color: #1b98f8;
    background-color: #1b98f8;
    color: #fff;
} 
  
#progress-red-num {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
}
  
.step-err {
    border: 4px solid rgb(252, 129, 129);
    border-radius: 10%;
    width: 80px;
    height: 50px;
    text-align: center;
    background-color: #fff;
    font-family: sans-serif;
    font-size: 14px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;     
}

#progress-num .step-err.selected{
    border-color: lightcoral;
    background-color: lightcoral;
    color: #fff;
}
/*end of status tree*/

select option[style="display: none;"] {
    display: none !important;
    position: absolute;
}

#collection-list label {
    display: block;
    cursor: pointer;
}

#collection-list input[type="radio"] {
    display: none;
}

#collection-list input[type="radio"]:checked + label {
    background-color: #ddd;
}

body {
    color: #333;
}

input, input:-moz-autofill, .pure-input-1 {
    font-family: "segoe UI";
    font-size: 22px;
    border: none !important;
    line-height: 26px !important;
    border-bottom: 1px solid #1b98f8 !important;
}

a {
    text-decoration: none;
    color: #1b98f8;
}

.dropdown-toggle {
    font-size: 100%;
    text-align: center;
    width: 100%;
}

.logo img {
    box-sizing: border-box;
    max-width: 180px;
    padding: 5px;
    max-height: 100%;
}

.preview {
    height: 300px;
    width: 100%;
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: medium;
    border: lightgray dotted 1px;
    background-image: url("data:image/svg+xml;utf8,\ <svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'>\ <rect fill='%23f3f3f3' width='50' height='50' x='0' y='0' />\ <rect fill='%23f3f3f3' width='50' height='50' x='50' y='50' />\ <rect fill='%23e9e9e9' width='50' height='50' x='50' y='0' />\ <rect fill='%23e9e9e9' width='50' height='50' x='0' y='50' />\ </svg>");
    background-size: 80px, cover;
}

img.preview{
    max-height: 300px;
    max-width: 100%;
    height: auto;
    width: auto;
    border: none;
}

.img-input {
    margin-left: 2%;
    max-width: 68%;
    vertical-align: middle;
}

.pure-control-group input.pure-input-1 {
    width: calc(100% - 95px);
    margin-right: 5px;
}

.active {
    background: linear-gradient(100deg, rgb(37, 42, 58) 20%, rgb(238, 238, 238) 75%);
}

.active a {
    color: rgb(75, 113, 151) !important;
}

/*
 * -- HELPER STYLES --
 * Over-riding some of the .pure-button styles to make my buttons look unique
 */
.button-xsmall {
    font-size: 70%;
}

.button-small {
    font-size: 85%;
}

.button-large {
    font-size: 110%;
}

.button-xlarge {
    font-size: 125%;
}

.button-success,
.button-error,
.button-warning,
.button-secondary {
    color: white;
    border-radius: 4px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.button-success {
    background: rgb(28, 184, 65);
    /* this is a green */
}

.button-error {
    background: rgb(202, 60, 60);
    /* this is a maroon */
}

.button-warning {
    background: rgb(223, 117, 20);
    /* this is an orange */
}

.button-secondary {
    background: rgb(66, 184, 221);
    /* this is a light blue */
}

.primary-button,
.secondary-button {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    border-radius: 20px;
}
.primary-button {
    color: #fff;
    background: #1b98f8;
    margin: 1em 0;
}

.secondary-button {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    padding: 0.5em 2em;
    font-size: 80%;
}

.error-button {
    background: #f00;
    
    color: #666;
    padding: 0.5em 2em;
    font-size: 80%;
}

.sline {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-bottom: 2px;
    justify-content: space-between;
}

.sline label{
    margin-right: 10px;
}

/*
 * -- LAYOUT STYLES --
 * This layout consists of three main elements, `#nav` (navigation bar), `#list` (email list), and `#main` (email content). All 3 elements are within `#layout`
 */
#layout, #nav, #list, #main, #editor {
    margin: 0;
    padding: 0;
}

/* Make the navigation 100% width on phones */
#nav {
    width: 100%;
    height: 40px;
    background: rgb(37, 42, 58);
    text-align: center;
}
/* Show the "Menu" button on phones */
#nav .nav-menu-button {
    display: block;
    top: 0.5em;
    right: 0.5em;
    position: absolute;
}

/* When "Menu" is clicked, the navbar should be 80% height */
#nav.active {
    height: 80%;
}
/* Don't show the navigation items... */
.nav-inner {
    display: none;
}

/* ...until the "Menu" button is clicked */
#nav.active .nav-inner {
    display: block;
    padding: 2em 0;
}


/*
 * -- NAV BAR STYLES --
 * Styling the default .pure-menu to look a little more unique.
 */
#nav .pure-menu {
    background: transparent;
    border: none;
    text-align: left;
}

#nav .pure-menu-list{
    display: flex;
    align-content: center;
    flex-direction: column;
    align-items: end;
}

#nav .pure-menu-link:hover,
#nav .pure-menu-link:focus {
    background: rgb(55, 60, 90);
}

#nav .pure-menu-link {
    color: #fff;
    margin-left: 0.5em;
}

#nav .pure-menu-heading {
    border-bottom: none;
    font-size:110%;
    color: rgb(75, 113, 151);
    padding-left: 0;
}

#nav .pure-menu-item {
    width: 100%;
    text-align: right;
}


/*
 * -- EMAIL STYLES --
 * Styles relevant to the email messages, labels, counts, and more.
 */
.email-count {
    color: rgb(75, 113, 151);
}

.email-label-personal,
.email-label-work,
.email-label-travel {
    width: 15px;
    height: 15px;
    display: inline-block;
    margin-right: 0.5em;
    border-radius: 3px;
}
.email-label-personal {
    background: #ffc94c;
}
.email-label-work {
    background: #41ccb4;
}
.email-label-travel {
    background: #40c365;
}


/* Email Item Styles */
.email-item {
    padding: 0.9em 1em;
    border-bottom: 1px solid #fff;
    border-left: 6px solid #eee;
    background: #eee;
}
.email-avatar {
    border-radius: 3px;
    margin-right: 0.5em;
}
.email-name,
.email-subject {
    margin: 0;
}
.email-name {
    text-transform: uppercase;
    color: #999;
}
.email-desc {
    font-size: 80%;
    margin: 0.4em 0;
}

.email-item-selected {
    background: #fff;
}
.email-item-unread {
    border-top: 6px solid #1b98f8;
}

/* Email Content Styles */
.email-content-header, .email-content-body, .email-content-footer {
    padding: 1em 2em;
}

.email-content-header {
    border-bottom: 1px solid #ddd;
}

.email-content-title {
    margin: 0.5em 0 0;
}

.email-content-subtitle {
    font-size: 1em;
    margin: 0;
    font-weight: normal;
}

.email-content-subtitle span {
    color: #999;
}

.email-content-controls {
    margin-top: 2em;
    text-align: right;
}

.email-content-controls .secondary-button {
    margin-bottom: 0.3em;
}

.email-avatar {
    width: auto;
    height: auto;
    max-width: 50px;
    max-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parts-table-container > label:nth-of-type(2) {
    display: none;
}


/*
 * -- TABLET (AND UP) MEDIA QUERIES --
 * On tablets and other medium-sized devices, we want to customize some
 * of the mobile styles.
 */
@media (min-width: 40em) {
    /* Move the layout over so we can fit the nav + list in on the left */
    #layout {
        width: 100%;
        display: flex;
        flex-direction: row;
        background: #eee;
    }

    /* These are position:fixed; elements that will be in the left 500px of the screen */
    #nav {
        height: inherit;
        display: flex;
        flex-direction: column;
    }

    /* Show the menu items on the larger screen */
    .nav-inner {
        display: flex;
        flex-direction: column;
    }

    /* Hide the "Menu" button on larger screens */
    #nav .nav-menu-button {
        display: none;
    }

    .logout-button {
        bottom: 10px;
        margin: 0 0 0 -90px;
    }

    #list {
        top: 0;
        bottom: 0;
        float: left;
        position: relative;
        width: 100%;
        height: 180px;
        overflow-y: auto;
    }

    #main {
        top: 33%;
        right: 0;
        bottom: 0;
        overflow: auto;
    }

    #editor {
        float: left;
        position: relative;
        top: 33%;
        right: 0;
        bottom: 0;
        overflow: auto;
        display: none;
    }

    .email-item-selected {
        background: linear-gradient(100deg, rgb(238, 238, 238) 10%, rgb(255, 255, 255) 55%);
    }
}

/*
 * -- DESKTOP (AND UP) MEDIA QUERIES --
 * On desktops and other large-sized devices, we want to customize some
 * of the mobile styles.
 */
@media (min-width: 60em) {
    #nav {
        width:200px;
    }

    .col-2 {
        display: inline-block;
        width: calc(45% - 1px);
        margin: 0 2.5%;
    }
    
    .col-3 {
        display: inline-block;
        width: calc(30% - 1px);
        margin: 0 1.5%;
    }

    .col-4 {
        display: inline-block;
        width: calc(23% - 1px);
        margin: 0 1%;
    }

    .col-5 {
        display: inline-block;
        width: calc(19% - 1px);
        margin: 0 0.5%;
    }
    
    .pure-input-1 .col-2 {
        margin-right: 53px;
        width: 33%;
    }

    /* This will take up the entire height, and be a little thinner */
    #list {
        float: left;
        position: relative;
        width:350px;
        height: 100%;
    }

    /* This will now take up it's own column, so don't need position: fixed; */
    #main {
        box-sizing: border-box;
        float: left;
        position: relative;
        margin-left: 0;
        min-height: 100vh;
        background: white;
        padding: 5px;
        width: calc(100% - 200px);
    }
    
    #list + #main {
        width: calc(100% - 550px);
    }    
    
    #editor {
        margin-left: 0;
        width :calc(100% - 550px);
        min-height: 100vh;
        padding: 5px;
        background: #fff;
    }

    #main-wide {
        min-height: 100vh;
        display: flex;
        padding: 0;
        width: calc(100% - 200px);
    }

    .parts-table-container > label:nth-of-type(2) {
        display: block;
    }

    .parts-table-container > label:last-of-type {
        display: none;
    }
}

@media (max-width: 640px) {
    .logo img {
        max-height: 40px;
    }
}

@media (max-width: 60em) {
    #main, #editor {
        border-top: 5px solid #ddd;
    }
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    width: -moz-available;
    width: -webkit-fill-available;
    border: 1px solid lightgray;
    border-radius: 6px;
    background-color: white;
}

.dropdown-content div {
    color: #333;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.dropdown-content div:hover {
    background-color: #ddd;
}

#dropdown-toggle:focus ~ .dropdown-content {
    display: block;
}

#dropdown-toggle:focus ~ .dropbtn {
    background-color: #3e8e41;
}

.field-container {
    padding: 10px; 
    border-top: 1px dashed #ccc;
}

.radio .option,
.checkbox .option {
    display: inline-block;
}

.radio .option label,
.checkbox .option label {
    display: inline-block;
    background-color: rgba(255, 255, 255, .9);
    border: 2px solid rgba(139, 139, 139, .3);
    color: black;
    white-space: nowrap;
    border-radius: 20px;
    margin: 3px 0px;
    padding: 6px 15px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all .2s;
    cursor: pointer;
    display: inline-block;
}

.radio .option label::before,
.checkbox .option label::before {
    min-width: 20px;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    font-family: "icofont";
    font-size: 16px;
    content: "\EC4F";
    transition: transform .3s ease-in-out;
    padding-right: 6px;
    transform-origin: 10px 10px;
}

.radio .option input[type="radio"]:checked + label::before,
.checkbox .option input[type="checkbox"]:checked + label::before {
    font-family: "icofont";
    content: "\EC4B";
    transform: rotate(360deg);
    transition: transform .4s ease-in-out;
}

.radio .option input[type="radio"]:checked + label,
.checkbox .option input[type="checkbox"]:checked + label {
    background-color: #1b98f8;
    color: #fff;
    transition: all .3s;
}

.radio .option input[type="radio"],
.checkbox .option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    margin: 0;
    padding: 0;
}

thead {
    height: 48px;
}

th { 
    position: sticky;
    top: 0;
}

table {
    position: relative;
    border-collapse: collapse; 
}

.parts-table {
    max-height: 190px; 
    overflow-y: scroll; 
    position: relative;
    float: left;
}

.person {
    color: var(--ifm-color-success-darkest);
}

.company {
    color: var(--ifm-color-primary-contrast-foreground);
}

.foreign {
    color: var(--ifm-color-gray-800);
}
