#new_order_form {
    width: 95%;
    margin: auto;
    font-size: small;
    font-weight: 600;

    h3 {
        background: linear-gradient(#a6c5d9, #e8e8e8);
        border-radius: 3px;
        color: #222;
        text-shadow: none;
        border: 1px solid #aaa;
        line-height: 1.231;
        font-weight: normal !important;
        padding: 5px 10px;
        margin: 5px;
        line-height: 30px;
        
        img {
            float:right;
            height: 30px;
            margin-right: 1%;
        }
    }
    p {
        align-content: center;
    }
    label {
        width: unset;
        height: 30px;
    }
    input, select, textarea {
        margin: 0 10px 10px 0;
        height: 30px;
        width: 96%;
    }
    textarea {
        height: 75px
    }
    .sub_container {
        display: grid;
        grid-template-columns: 0.5fr 1fr;
        gap: 5px;
        text-align: right;
        overflow: hidden;
    &.a {grid-area: contentA}
    &.b {grid-area: contentB}
    
        .passwordAndToggle {
            display: flex;
            flex-direction: row;

            #passVisible {
                width: auto;
                margin: 0;
            }
        }
    }	
    .general_info {
        width: 100%;
        columns: 2;
    }
    .container {
        display: grid;
        margin-right: 1%;
        align-items: start;
        grid-template:
            "headerA headerB" 40px
            "contentA contentB" 1fr;

        h4 {
            grid-area: header;
            margin-top: 0px;
            text-align: center;
            margin-bottom: 0;
            height: 25px;
            line-height: 25px;

            &.a { grid-area: headerA;}
            &.b { grid-area: headerB;}
        }
    }
    .table_container {
        margin-left: 0.5%;
        margin-right: 0.5%;
        overflow-x: scroll;
        height: auto;
        border: 1px solid #aaa;
        border-radius: 3px;
        margin-bottom: 5px;
        
        table {
            width: 110%;
            table-layout: auto;
            
            td, th {
                font-weight: normal;
                font-size: 11px;
                width: 10%;
            }
            th {
                background: linear-gradient(#d3e5f1, #e8e8e8);
            }
            td {
                white-space: nowrap;
                text-align: center;
                
                input, select{
                    margin: 0 !important;
                    padding: 0 3px 0 3px;
                    height: 30px;
                    min-width: 40px;
                }
                input[type=checkbox] {
                    height: unset !important;
                    margin-left: 0;
                    margin-right: auto;
                }
                button {
                    font-size: unset !important;
                    padding: 3px !important;   
                    width: 100%;
                    margin: auto !important;
                    text-wrap: wrap;
                }
            }
        }
        table, th, td{
            border: 1px solid #aaa;
            border-radius: 3px;
            border-collapse: collapse;
        }
    }
    td.thin, th.thin {
        width: 3%;
    }
    td.thin input {
        width: 80%;
    }
    td.crowded, th.crowded {
        width: 15%;

        input, select {
            max-width: 49%;
        }
    }
    .table_footer {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media only screen and (max-width: 430px){
    .container {
        display: block !important;
    }
    .general_info {
        columns: 1 !important;
    }
    table {
        width: 300% !important;
    }
    button {
        min-width: 75px !important;
        font-size: x-small !important;
    }
    .table_footer {
        height: 50px !important;
        font-size: small !important;
    }
}
.error { 
    background-color: #f39090;
    color: darkred;
    border: 4px solid #8c5252;
}

/* https://www.w3schools.com/howto/howto_css_switch.asp */
/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#new_order_form label.switch {
    width:60px;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e8e8e8;
  -webkit-transition: .4s;
  transition: .4s;
  border: 1.5px solid darkslategrey;
  border-radius: 5px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  top: 1px;
  border: 1.5px solid darkslategrey;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 5px;
}

input:checked + .slider {
  background-color: #a6c5d9;
}

input:focus + .slider {
  box-shadow: 0 0 1px #a6c5d9;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}