* {
    box-sizing: border-box;
}

html,
body {
    padding: 0;
    margin: 0;
}

body {
    font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

#pageContent {
    display: none;
}

/* Swal Stuff */
.swal-small {
    width: 200px;
    height: 100px;
    padding: 10px;
    font-size: 10px;
}

/* Loading Screen */

.center{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader {
    display: none;
    border: 16px solid #f1f1f1;
    border-top: 16px solid #454545;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    animation: spin 2s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.LoadPage{
    opacity: 0.3;
    overflow: hidden;
}

.LoadingCursor{
    cursor: wait;
}

/* Line Item Form */

.container-card{
    display: none;
    z-index: 1;
    background-color: #ebebed;
    padding: 1.5rem;
    border-radius: 0.375rem;
}
.FormLine{
    display: flex;
}
.FormLine input, .FormLine select{
    min-width: 188px;
    display: block;
}

/* Page Tops */

#QuoteValuesFlex{
    display: flex;
    justify-content: center;
}

.list-group-item{
    font-size: 1.1rem;
}

.EpicLogo{
    display: inline-block;
    width: 150px;
    height: 85px;
}

.StickyFooter{
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* PDF Stuff */

#pdf-container{
    padding: 0;
}

.pdf-section:not(#title-page){
    padding: 10rem 5rem;
}

.section-title{
    color: #e91d2d;
    font-weight: bold;
}

.divider{
    color: #358bb5;
    border-top-width: 5px;
    opacity: 1;
    margin: 1.5rem 0;
}

.vr-div{
    font-size: 25px;
    font-weight: bold;
    /*color: #358bb5;*/
}

#title-page{
    display: flex;
    flex-direction: column;
    /*height: 100vh;*/
}

#pdf-logo{
    width: 25%;
}

#title-picture{
    height: 60vh;
}

#title-info{
    width: fit-content;
}

#pdf-summary{
    padding: 5px 10px 100px 10px;
    border: 1px solid black;
    border-radius: 0.375rem;
}

#font-size{
    width: fit-content;
    border-color: #3d3935;
}

#font-size option:hover{
    background-color: #e91d2d;
}

.pictures-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5em;
}

.pictures-flex{
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid black;
    position: relative;
}

.pictures-flex > .remove-picture{
    position: absolute;
    top: 0;
    right: 0;
    z-index: 11;
}

.square{
    aspect-ratio: 1/1;
}

#details-popup{
    width: 75%;
    max-height: 75%;
}

#pdf-quote-total{
    display: flex;
    align-items: flex-end;
}

#auth-values{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#customer-notes{
    margin-bottom: 40%;
}

#customer-sign{
    display: flex;
    justify-content: space-between;
    margin-bottom: 20%;
}

.auth-label{
    border-bottom: 2px solid black;
    padding-right: 30%;
}

/* Input Fields */

#SearchBar {
    field-sizing: fixed;
    width: 100%;
}

/* Removes arrows from number input fields */
input[type="number"] {
    -moz-appearance: textfield;
}
input[type="number"]::-ms-clear {
    display: none;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="checkbox"]{
    accent-color: #358bb5;
}

input{
    field-sizing: content;
}

.form-control{
    display: inline-block;
    width: auto;
}

#QuoteValuesFlex .input-group{
    width: 100%;
}
.input-group{
    width: fit-content;
}

.input-group-text{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .form-control{
    flex: 0 0 auto;
    width: auto;
}

.group-name{
    border: none;
    background-color: transparent;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

.Filter {
    border: none;
    position: sticky;
    top: 0;
    background: #3d3935;
    text-align: left;
    font-weight: bold;
    color: white;
    cursor:pointer;
}

select{
    background-color: #f0f0f0;
    font-size: 1em;
}

/* Buttons */

.NavButton{
    color: #e91d2d !important;
}
.NavButton:hover{
    color: #3d3935 !important;
    text-decoration: underline;
}

.IconButton{
    height: 38px;
    display: flex;
    align-items: center;
}

.group-button{
    height: 26px;
    display: flex;
    align-items: center;
}


/* Tables */

table > tbody .group-cell{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3d3935;
    height: 35px;
    border-width: 1px;
    border-color: #4d5154;
    color: white;
    font-weight: bold;
    cursor: move;
}

.StickyHeader{
    position: sticky;
    top: 172px;
    z-index: 1020;
}

table:not(#TotalMaterial, #details-table, #items-table, .saving-table) th:last-child{
    width: 50px;
}

#QuoteTable th:nth-child(4){
    min-width: 116px;
}

#items-table th:first-child{
    width: 40px;
}

thead > tr{
    border-top: 0;
}

.Scrollable{
    overflow-y: scroll;
}

/* Other */

.TakeoffSideElement{
    width: 20%;
    margin-top: 2.5rem;
}

.TemplateDropdown:hover{
    text-decoration: underline;
    cursor: pointer;
}

.show{
    display:block;
}

.inline > *{
    display: inline;
}

svg {
  pointer-events: none;
}
