/* Global Elements and variables */

html, body {
    height: 100%;
}

/* General Classes */

.flex-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.flex-left {
    display: flex;
    align-items: center;
    justify-content: left;
}

.flex-col-middle {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: space-evenly;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.flex-row-middle {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-evenly;
}

.flex-between {
    justify-content: space-between;
}

.fill-space {
    width:100%;
    height: 100%;;
}

.flex-start {
    justify-content: flex-start;
}

.border-shadow {
    box-shadow: 0px 4px 4px rgba(35, 112, 118, 0.5);
}

/* Body */

body {
    font-family: 'nunito sans', arial, sans-serif !important;
    margin: 0px;
    background-color: #3b89c9;
    
}

/* Header */

header {
    width: 100%;
    padding: 5px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
}

.logo {
    height: 50px;

    margin: 10px 20px
}

.logout {
    background-color: #3b89c9;
    color: white;
    font-weight: 600;
    padding: 15px 26px;
    position: relative;
    display: inline-block;
    border-radius: 5px;
    margin: 0px 20px;
}
a {
    text-decoration: none;
}

.user-tag {
    background-color: rgb(49, 146, 224);
    color: white;
    font-weight: 600;
    padding: 15px 26px;
    position: relative;
    display: inline-block;
    border-radius: 5px;
    margin: 0px 20px;
}

.user-tag span {
    margin-right:10px
}

.user-tag:hover  {

}

/* FORM */

.main {
    display: flex;
    align-items: center;
    justify-content: center;
}

form {
    border-radius: 10px;
    margin: 10px;
    padding: 10px;
    width: 80%;
    max-width: 800px;
    background-color: white;
}

.details-container {
    width: 40%;
    height: 100%;
}
.controls-container {
    width:100%;
    background-color: white;

}

input {
    width: 100%;
    outline: 4px solid #3b89c9;
    border: none;
    border-radius: 5px;
    padding: 10px 5px;
    overflow: auto;
    overflow-wrap: normal;
    
}
tr {
    margin: 5px 0px;
}

td input {
    outline: none;
}

td {
    outline: 1px solid #3b89c9;
}

.syncBtn {
    background-color: orange;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 2.5ch;
    text-decoration: none;
    padding: 15px 26px;
    position: relative;
    display: inline-block;
    border-radius: 5px;
    margin: 0px 20px;
    cursor: pointer;
  }
  
.syncBtn .badge {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 5px 10px;
    border-radius: 50%;
    background: red;
    color: white;
}



.controls-container button,  .controls-container input {
    padding: 20px;
    font-size: 3ch;
    font-weight: 600;
    text-align: center;
    min-width: 20%;
    border-radius: 10px;
    border:none;
    color:white;
    cursor: pointer;
}

textarea {
    width: 90%;
    height: 10ch;
    border: 4px solid #3b89c9;
    border-radius: 10px;
    padding: 10px;
    resize:vertical;
    
}

.calculations {
    font-weight: 600;
}

h2 {
    margin: 0px;
}
label {
    margin: 15px 0px 5px 0px;
    width: 100%;
    text-align: left;
    font-size: 1.5ch;
    font-weight: 600;
}



/* Table */

table {
    margin: 10px;
    text-align: center;
    box-shadow: 0px 4px 4px rgba(35, 112, 118, 0.5);
    border-radius: 5px;
    background-color: white;
    width: 90%;
    
}


/* THEAD */
th {
    background-color: #3b89c9;
    border-radius: 5px;
    color: white;
    padding: 6px;

}

/* TBODY */


hr {
    margin: 20px
}


.deleteRowBtn {
    cursor: pointer;
    width: 25px;
    height: 25px;
    padding: 5px;
}




/* Footer */

footer {
    text-align: center;
    width:100%;
    height: 50px;
    background-color: rgb(0, 167, 174);

}
footer p {
    padding: 15px;
    margin: 10px;
    font-weight: 600;
    color: white;
}

footer a {
    color: inherit;
    
}

@media (max-width: 500px) {
    .customer-details {
        flex-direction: column;
        align-items: center;
    }
    .details-container {
        width: 100%;
    }
    label {
        margin-top: 10px;
    }
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        height: fit-content;
        
    }
    
    
}