@media (max-width: 600px) {
    @page {
        top: 0 !important;
        right: 0 !important;
    }

    html,
    body {
        width: 100%;
        font-size: 14px;
    }

    hr {
        margin-top: 0.45rem !important;
        margin-bottom: 0.45rem !important;
    }

    #warranty li {
        font-size: 0.45rem !important;
    }

    .payment_method {
        font-size: 0.58rem !important;
        padding-right: 10px !important;
    }

    #terms ul {
        padding-left: 1rem;
        margin-bottom: 0.5rem;
    }

    #termTitle strong {
        font-size: 0.55rem !important;
    }

    #termTitle {
        font-size: 0.35rem !important;
    }

    #greeting_quote li {
        font-size: 0.65rem !important;

    }

    #greeting_purchase {
        font-size: 0.60em !important;
    }

    #greeting_quote strong {
        font-size: 0.55rem !important;
    }

    .quotations label {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
        margin-left: 0.20rem;
    }

    .quotations th,
    .salesreport th {
        padding: 0.7rem 0.73rem;
        font-size: 0.85rem;
    }

    .quotations td,
    .salesreport td {
        padding: 0.5rem;
        vertical-align: middle;
        font-size: 0.85rem !important;
    }

    .quotations span {
        /* font-size: 0.9em; */
        font-family: Arial, Helvetica, sans-serif;
    }

    #estprice {
        font-size: 1rem !important;
        font-weight: bold;
        color: #2196F3;
        font-family: Arial, Helvetica, sans-serif;
    }

    #Amount {
        font-size: 1rem !important;
        font-weight: bold;
        color: #2196F3;
        font-family: Arial, Helvetica, sans-serif;
    }

    .quotations select {
        font-size: 0.88rem !important;
        font-family: Arial, Helvetica, sans-serif;
        padding-left: 0.6rem !important;
        height: 2rem;
    }

    .quotations #packageQuantity {
        width: max-content;
    }

    .quotations #pack {
        width: max-content;
    }

    #custName input[type='text'],
    input[type='tel'] {
        width: 250px;
        font-size: 0.85rem;
        font-family: Arial, Helvetica, sans-serif;
    }

    .quotations textarea {
        width: 170px;
        height: 5.40rem;
        font-size: 0.84rem;
    }

    .form-control:focus {
        box-shadow: none;
    }

    .products .content {
        width: 100%;
        /* height: 500px; */
        overflow-x: hidden;
        overflow-y: auto;
        padding: 2px;
    }

    .content .dataTable td,
    .dataTable th {
        font-size: 0.75rem !important;
    }

    .content .dataTable input[type='text'] {
        font-size: 0.75rem !important;
    }

    .divtext textarea {
        border: none;
        width: max-content;
        padding-left: 0%;
        outline: none;
        overflow: hidden;
        resize: none;
    }

    .divtext h4 {
        font-size: medium;
        color: #7e7d7d;
    }

    .divtext table {
        width: 100%;
    }

    .divtext th {
        background-color: rgb(32, 115, 163);
        color: white;
    }

    div.banking {
        background-color: rgb(32, 115, 163);
        color: white;
        border-radius: 20px;
        width: fit-content;
        padding-left: 20px;
        padding-right: 20px;
        font-weight: 500;
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .table-header td,
    .table-header th {
        padding: 0.09rem 0.20rem;
        font-size: 0.485rem !important;
        white-space: nowrap;
    }

    .table-header textarea {
        padding: 0.00rem 0.03rem;
        font-size: 0.485rem !important;
        width: 100%;
    }

    .tableContent td,
    .tableContent th {
        border: 1px solid rgb(21, 102, 168);
        padding: 0.09rem 0.20rem;
        font-size: 0.48rem !important;
        width: max-content;
        vertical-align: middle;
        white-space: normal;
    }

    .tableContent ul, .tableContent u, .tableContent li {
        font-size: 0.48rem !important;
        text-indent: 0.01em;
    }

    .divtext img {
        width: 70px;
    }

    .dataTable table {
        width: 100%;
    }

    .dataTable td {
        padding: 5px 5px 5px 5px;
        /* font-size: calc(1vw + 1vh); */
    }

    .dataTable th {
        padding: 3px 4px 3px 7px;
        /* font-size: 2.6vw; */
    }

    .dataTable [type="date"] {
        font-size: 2vw;
        margin: 0%;
        width: 190px;
        padding-top: 15px;
    }

    .dataTable label {
        margin: 7px 0px 1px 1px;
    }

    .dataTable select {
        font-size: calc(1.2vw + 1vh);
        width: 100%;
    }

    .dataTable select option {
        white-space: nowrap;
        width: 300px;
    }

    .dataTable [type=number] {
        font-size: 0.6rem;
        width: 20vw;
    }

    .dataTable [type=text],
    .dataTable [type=tel] {
        width: 40vw;
        font-size: calc(1.2vw + 1vh);
        box-shadow: none;
    }

    .dataTable textarea {
        margin: 0%;
        resize: none;
        overflow: hidden;
        font-size: calc(1.2vw + 1vh);
        width: 40vw;
        height: 23vw;
        /* box-shadow: none; */
        /* outline: none; */
    }

    #price input[type=text] {
        width: 100%;
        font-size: 0.7rem;
    }

    #mprice input[type=text] {
        width: 100%;
        font-size: 0.7rem;
    }

    #mqty {
        font-size: 0.7rem;
        width: 100%;
    }

    div.payment {
        font-size: 0.55rem;
    }

    #terms {
        font-size: 0.58rem;
    }

    #greeting font {
        font-size: 0.50rem;
    }

    .signature span {
        font-size: 0.50rem;
    }

    p {
        margin-bottom: 0.3rem;
    }

    .terms h5,
    .warranty h5 {
        margin-left: 0;
        margin-bottom: 0.1rem;
        font-size: 0.55rem !important;
    }

    .terms strong {
        font-size: 0.55rem !important;
    }

    .terms li {
        /* margin-left: 0;
        padding-left: 0; */
        font-size: 1em !important;
        text-indent: 0.3rem;
        list-style-type: lower-alpha;
    }

    .warranty li {
        margin-left: 0;
        padding-left: 0;
        font-size: 0.485rem !important;
        list-style-type: none;
    }

    .foot {
        text-align: center;
        padding: 1%;
        border: 1px solid rgb(228, 225, 225);
        font-size: 0.5rem;
    }

    nav.navbar a {
        font-size: 1rem;
    }

    .paidstatus {
        color: red;
        font-family: 'Exo';
        font-weight: 700;
        font-size: 0.75rem !important;
    }

    div.alertmsg {
        position: absolute;
        top: calc(40% / 2) !important;
        left: calc(10% / 3) !important;
        width: 400px;
        height: 400px;
        z-index: 10;
    }

    div.content {
        margin: 1px;
        font-size: medium !important;
        background-color: #ffffff;
        border-radius: 10px;
        vertical-align: middle;
    }

    .table-package td {
        font-size: 1rem !important;
        padding: 3px 3px 3px 3px;
    }

    .table-package input[type=text] {
        font-size: 1rem;
    }

    .tblappoint {
        width: 100% !important;
    }

    .tblappoint td {
        width: calc(100% / 7) !important;
        height: calc(100vh / 7) !important;
        font-size: 0.8rem;
        font-weight: bold;
        padding: 0.5rem;
        text-align: left;
        vertical-align: top;
    }

    .pending td {
        font-size: 0.80rem !important;
        vertical-align: middle !important;
    }

    .membership-plan {
        table-layout: auto;
        font-size: 2.7vw;
    }
}

@media (min-width: 601px) {

    /* desktop */
    html,
    body {
        width: 100%;
        font-size: 14px;
    }

    #warranty {
        font-size: 0.88rem !important;
    }

    .payment_method {
        font-size: 1rem !important;
        padding-right: 30px !important;
    }

    #terms ul {
        padding-left: 2rem;
        margin-bottom: 0.5rem;
    }

    #greeting_purchase {
        font-size: 0.98rem;
    }

    #greeting_quote li {
        font-size: 0.88rem !important;
    }

    .terms strong {
        font-size: 0.9rem !important;
    }

    .quotations label {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
        margin-left: 0.20rem;
    }

    .quotations th,
    .salesreport th {
        padding: 0.6rem 0.73rem;
        font-size: 0.88rem;
    }

    .quotations td,
    .salesreport td {
        padding: 0.4rem 0.4rem;
        vertical-align: middle !important;
        font-size: 0.88rem;
    }

    .quotations #packageQuantity {
        /* width: 100%; */
        width: max-content !important;
    }

    .quotations span {
        font-size: 1.059em;
        font-family: Arial, Helvetica, sans-serif;
    }

    .quotations span.select2 {
        width: 100% !important;
        font-size: 0.98em !important;
    }

    #estprice {
        font-size: 0.96rem !important;
        font-weight: bold;
        color: #2196F3;
        font-family: Arial, Helvetica, sans-serif;
    }

    #Amount {
        font-size: 0.96rem !important;
        font-weight: bold;
        color: #2196F3;
        font-family: Arial, Helvetica, sans-serif;
    }

    .quotations select {
        font-size: 0.85rem !important;
        font-family: Arial, Helvetica, sans-serif;
    }

    .quotations textarea {
        height: 5.55rem;
        resize: none;
        font-size: 1.05em;
    }

    #custName input[type='text'],
    input[type='tel'] {
        width: 100%;
        font-size: 1em;
        font-family: Arial, Helvetica, sans-serif;
    }

    .form-control:focus {
        box-shadow: none;
    }

    .content .dataTable {
        width: 100%;
        padding: 0.6rem 0.73rem;
        /* height: 700px; */
        overflow-x: hidden;
        overflow-y: auto;
        /* padding: 2px; */
    }

    .content .dataTable td,
    .dataTable th {
        font-size: 0.85rem !important;
    }

    .content .dataTable input[type='text'] {
        font-size: 0.85rem !important;
    }

    .divtext textarea {
        border: none;
        padding-left: 0%;
        overflow: hidden;
        resize: none;
        width: 100%;
        outline: none;
    }

    .divtext h5,
    .divtext li {
        font-size: 1rem;
    }

    .divtext h4 {
        font-size: 30px;
        color: #7e7d7d;
        margin: 25px 0px 2px 0px;
    }

    .divtext h5 {
        color: #7e7d7d;
    }

    .divtext table {
        width: 100%;
    }

    .divtext th {
        background-color: rgb(32, 115, 163);
        color: white;
        font-size: medium;
    }

    div.banking {
        background-color: rgb(32, 115, 163);
        color: white;
        border-radius: 20px;
        width: fit-content;
        padding-left: 60px;
        padding-right: 60px;
        font-weight: 500;
        padding-top: 3px;
        padding-bottom: 3px;
    }

    .divtext td,
    .divtext th {
        padding: 0.1rem;
        /*white-space: nowrap;*/
    }

    .tableContent td,
    .tableContent th {
        border: 1px solid rgb(21, 102, 168);
        padding: 5px;
        vertical-align: middle;
        font-size: 0.90rem;
    }

    .tableContent table {
        border: none;
    }

    .divtext img {
        width: 180px;
    }

    .divtext p {
        font-size: 0.7rem;
        margin: 0%;
    }

    .dataTable label {
        font-size: calc(0.9em);
        margin: 5px 0px 0px 1px;
    }

    .dataTable th {
        font-size: calc(0.9em);
        font-weight: 500;
        margin: 5px 0px 2px 0px;
        padding: 9px 10px 9px 9px;
    }

    .dataTable td {
        vertical-align: middle;
        padding: 6px 7px 6px 7px;
    }

    .dataTable [type=text],
    .dataTable [type=tel] {
        font-size: calc(0.9em);
        padding: inherit;
        margin: 0;
    }

    .dataTable textarea {
        resize: none;
        overflow: hidden;
        font-size: calc(0.9em);
        margin: 0px 0px 0px 0px;
        max-width: 100%;
        max-height: 100%;
        box-shadow: none;
        outline: none;
    }

    div.payment {
        /* padding-left: 0.5rem; */
        font-size: 0.55rem;
    }

    div.signature {
        padding: 0;
        margin-top: 4.5rem;
        /* padding-left: 0.5rem; */
    }

    #terms p {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .terms h5,
    .warranty h5 {
        margin-left: 0;
        font-size: 0.9rem !important;
    }

    .terms li {
        margin-left: 0;
        padding-left: 0;
        text-indent: 0.3rem;
        /* list-style-type; */
    }

    .warranty li {
        margin-left: 0;
        padding-left: 0;
        font-size: 0.98rem !important;
        text-indent: 0.3rem;
        list-style-type: none;
    }

    .btn-print {
        padding: 2%;
    }

    nav.navbar a {
        font-size: 0.95rem;
    }

    div.alertmsg {
        position: absolute;
        top: calc(60% / 2);
        left: calc(70% / 2);
        width: 400px;
        height: 400px;
        z-index: 10;
    }

    div.content {
        margin: 1px;
        text-align: center !important;
        font-size: small;
        background-color: #ffffff;
        border-radius: 10px;
        vertical-align: middle;
    }

    .table-responsive {
        overflow-x: hidden;
    }

    .paidstatus {
        color: red;
        font-family: 'Exo';
        font-weight: 700;
        font-size: 1.3em !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        text-overflow: ellipsis;
        width: 550px;
    }

    #warStat {
        width: 4rem;
    }

    .tblappoint {
        width: 100% !important;
    }

    .tblappoint td {
        width: calc(100vw / 10) !important;
        height: calc(100vh / 6.28) !important;
        font-size: 0.8rem;
        font-weight: bold;
        padding: 0.5rem;
        text-align: left;
        vertical-align: top;
    }

    #termTitle {
        font-size: 1rem !important;
    }

    .membership-plan {
        table-layout: auto;
        font-size: 0.7vw;
    }
    
}

/* End Desktop*/

/*Default*/
.membership-plan a {
    font-weight: 600;
}

.membership-plan td, .membership-plan th {
    padding: 3px 13px;
}

/* autocomplete area */
* {
    box-sizing: border-box;
}

/*the container must be positioned relative:*/
.autocomplete {
    position: absolute;
    display: inline-block;
}

.autocomplete-items {
    position: absolute;
    /* border: 1px solid #d4d4d4; */
    border-bottom: none;
    border-top: none;
    z-index: 99;
    width: 100%;
    left: 0;
    right: 0;
    /* top: 100%; */
    /*position the autocomplete items to be the same width as the container:*/
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #f3f2f2;
    border-bottom: 1px solid #f86f2f;
}

/*when hovering an item:*/
.autocomplete-items div:hover {
    background-color: #9cccf8;
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}

#heading {
    font-size: calc(1.5rem - 0.1vw);
    padding: 10pt;
    text-align: left;
    font-weight: 600;
    color: rgb(119, 118, 118);
}

#contain {
    padding-top: 10pt;
}

#contain div {
    padding: 5pt;
}

#address {
    width: 300pt;
    height: 100pt;
}

img {
    width: 100%;
    height: auto;
}

i.faAlertOk {
    font-size: 70px;
    color: green;
    padding-bottom: 5px;
    font-weight: 100;
}

i.faAlertNo {
    font-size: 70px;
    color: rgb(196, 0, 0);
    padding-bottom: 5px;
    font-weight: 100;
}

font.message {
    font-size: 30px;
    font-weight: 600;
}

.m_product .table-category {
    margin-top: 20px;
    padding: 0px;
    width: 100%;
    height: 400px;
    overflow-y: auto;
    overflow-x: auto;
}

.m_product .table-category table {
    width: 100%;
}

.m_product .table-category th,
.table-category td {
    font-size: 0.75rem;
    padding: 0.35rem;
}

.table-category span,
.table-category input[type=text],
.table-category select {
    white-space: nowrap;
    font-size: 0.85rem;
    width: min-content;
    box-shadow: none;
}

.m_product .table-category::-webkit-scrollbar {
    width: 5px;
    background-color: #eeeded;
}

.m_product .table-category::-webkit-scrollbar-thumb {
    width: 15px;
    background-color: #c4c4c4;
    border-radius: 50px;
}

.m_product .table-category::-webkit-scrollbar-button {
    width: 15px;
    background-color: #9e9e9e;
}

.m_product {
    margin-top: 1%;
}

.m_package {
    margin-top: 1%;
}

.m_package .table-package {
    /* margin-top: 20px; */
    /* padding: 10px; */
    width: 100%;
    height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.m_package .table-package table {
    width: 100%;
}

.table-package th {
    font-size: 1em;
    padding: 3px 3px 3px 6px;
}

.table-package td {
    font-size: 0.85rem;
    padding: 0.3rem;
    padding-left: 0.5rem;
}

.table-package span,
.table-package input[type=text] {
    white-space: nowrap;
    /* font-size: 1em; */
    padding: 3px 1px 3px 5px;
    box-shadow: none;
}

/* .table-package a {
      color: #ffffff;
      text-decoration:underline;
      box-shadow: none;
      outline: none;
      font-family: Arial;
  } */

.table-package select {
    width: 100%;
    font-size: 1em;
    padding: 1px 0px 1px 2px;
}

.m_package .table-package::-webkit-scrollbar {
    width: 5px;
    background-color: #eeeded;
}

.m_package .table-package::-webkit-scrollbar-thumb {
    width: 15px;
    background-color: #c4c4c4;
    border-radius: 50px;
}

.m_package .table-package::-webkit-scrollbar-button {
    width: 15px;
    background-color: #9e9e9e;
}

.products_title {
    padding-left: 0%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.products {
    border-top: 2px solid;
    border-bottom: 2px solid;
    border: none;
    align-items: center;
}

.products table {
    width: 100%;
}

.products .table th {
    background-color: #0f6cf7;
    color: #ffffff;
    font-family: Helvetica;
    background-image: linear-gradient(to right, rgb(7, 101, 241), rgb(77, 116, 224));
}

.products .table td,
.products .table th {
    padding-top: 5px;
    padding-bottom: 5px;
    vertical-align: middle;
    font-size: 0.8rem;
    text-align: left;
    margin: 0%;
}

.products .table tr::before {
    background-color: #0f6cf7;
}

.products .table input[type=text]:focus {
    background-color: #faf5b1;
    border-color: #f86f2f;
    box-shadow: none;
}

.products .table tr:hover {
    background-color: #cde4fa;
}

.products .content::-webkit-scrollbar {
    width: 5px;
    background-color: #f0f0f0;
}

.products .content::-webkit-scrollbar-thumb {
    width: 5px;
    background-color: #a3a3a3;
    border-radius: 30px;
}

.products .content::-webkit-scrollbar-button {
    width: 5px;
    background-color: #4e4e4e;
    border-radius: 30px;
}

.btnn {
    text-align: center;
    padding: 20px;
}

/* Make the badge float in the top right corner of the button */
.button__badge {
    background-color: #fa3e3e;
    border-radius: 9px;
    color: white;
    margin: -5px;
    width: 19px;
    text-align: center;
    padding: 0px 2px 0px 2px;
    font-size: 12px;
    position: absolute;
    /* top: 0; */
    /* right: 0; */
}

/* Toggle button */
.switch {
    position: relative;
    display: inline-block;
    width: 55px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

label.switch {
    height: 22px;
    width: 32px;
    margin-bottom: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0px;
    right: -7px;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 4px;
    bottom: 3.6px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

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

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

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

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

a.dropdown-item:hover {
    border-radius: 3px;
    background: #2196F3;
    color: #ffffff;
    transition: 0.3s ease-in-out, color 0.1s;
}

.spin {
    position: fixed;
    z-index: 1000 !important;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
}

/* .paidText {
      position: absolute;
      right: 12px;
      top: 18px;
      text-transform: uppercase;
      color: white;
      font-size: 0.95rem;
      font-weight: bold;
      z-index: 10;
      -ms-transform: rotate(45deg);
      -webkit-transform: rotate(45deg);
      -moz-transform: rotate(45deg);
      -o-transform: rotate(45deg);
      transform: rotate(45deg);
  }

  .unpaidText {
      position: absolute;
      right: 2px;
      top: 19px;
      text-transform: uppercase;
      color: white;
      font-size: 0.95rem;
      font-weight: bold;
      z-index: 10;
      -ms-transform: rotate(45deg);
      -webkit-transform: rotate(45deg);
      -moz-transform: rotate(45deg);
      -o-transform: rotate(45deg);
      transform: rotate(45deg);
  } */