table {
    border: 0;
    padding: 4px;
    border-spacing: 0px;
    border-collapse: separate;
}

tr, td, th {
    padding: 4px 6px 4px 6px;
}

table.border {
    padding: 0;
    padding-bottom: 3px;
    border: 1px solid black;
    border-collapse: separate;
    margin: 1px;
    background-color: white;
}

.flagF {    background-color: #94E187 !important; }
.flagP {    background-color: #FFDF8D !important;  }
.flag0 {    background-color: #F58181 !important;  }

tr.next td { padding-left: 8em; cursor: }
tr.prev td { padding-right: 8em; }
tr.next td, tr.next_unallocated td, tr.prev td { cursor: pointer; pointer: hand;}
tr.prev td:hover, tr.next_unallocated td:hover, tr.next td:hover {    font-weight: bold;  }
td.remove_script { text-align: center; }
td.date { text-align: right; }
td.finalize_script { text-align: center; font-weight: bold; text-decoration: underline; cursor: pointer; pointer: hand; }

.detail td.bad, .detail td.good, .detail td.returned { text-align: center; }
td.red, td.status.bad, td.status.returned { color: red; }
td.green, td.status.good { color: green; }
td.good:after, td.status.good:after, td.tick:after { content: "\2714"; }
td.status.returned:after, td.returned:after { content: "\2B6F"; font-weight: bold; }
td.bad:after , td.status.bad:after, td.cross:after { content: " \2718"; }
td.summary { font-weight: bold; }
td.status div { display: inline !important; }

td.credit { color: red; }

table tr.line, table tr.line td {
    padding: 0px 0px 6px 0;
    margin: 0;
}

table tr.line hr {
    border: 0;
    height: 1px;
    background-color: black;
    line-height: 0;
    margin: 0;
    padding: 0;
}

table.header tbody tr, table.header tbody tr td {
    border-top: 1px solid #FFCC66;
    border-bottom: 1px solid #FFCC66;
    background-color: #FFCC66;
}

table.header tr.backorder, table.header tr.backorder td {
    border-top: 1px solid #B4D2FA;
    border-bottom: 1px solid #B4D2FA;
    background-color: #B4D2FA;
}

table.header tr.backorder, table.header tr.eps td, tr.invoice_extra td {
    border-top: 1px solid #F8F8F8;
    border-bottom: 1px solid #F8F8F8;
    background-color: #F8F8F8;
}

table.detail tr.invoice, table.detail tr.invoice td {
    border-top: 1px solid #F8F8F8;
    border-bottom: 1px solid #F8F8F8;
    background-color: #F8F8F8;
}

table.detail tr.scancheck, table.detail tr.scancheck td {
    border-top: 1px solid #DAF291;
    border-bottom: 1px solid #DAF291;
    background-color: #DAF291;
}

table.detail tr.picksheet, table.detail tr.picksheet td {
    border-top: 1px solid #FAD8CA; /* R: CA, G: E8, B: FA */
    border-bottom: 1px solid #FAD8CA;
    background-color: #FAD8CA;
}

table.detail tr.payment, table.detail tr.payment td {
    border-top: 1px solid #E1B7F4; /* rgb(225, 183, 244) */
    border-bottom: 1px solid #E1B7F4;
    background-color: #E1B7F4;
}

table.detail tr.scancheck.unmatched td:first-child {
    border-left: 0px solid white;
}

table.detail tr.eps.unmatched td {
    background-color: #F8F8F8;
}

table.detail tr.finalized, table.detail tr.finalized td {
    border-top: 1px solid #CAE8FA;
    border-bottom: 1px solid #CAE8FA;
    background-color: #CAE8FA;
}

table.detail tr td.script_indent {
    border-top: none !important;
    border-bottom: none !important;
    background-color: white !important;
    width: 10px;
}

table.detail tr.newscript, table.detal tr.newscript td {
    font-weight: bold;
    border-top: 1px solid #D0FADE;
    border-bottom: 1px solid #D0FADE;
    background-color: #D0FADE;
}

table.detail tr.unfinalized td {
    font-style: italic;
    border-top: 1px dashed lightgray;
    border-bottom: 1px dashed lightgray;
    background-color: rgb(235,250,255);
}

table.detail tr.escript, table.detail tr.escript td{
    border-top: 1px solid #FAF3D2;
    border-bottom: 1px solid #FAF3D2;
    background-color: #FAF3D2;
}

table.detail tr.unmatched.header, table.detail tr.unmatched.header td {
    background-color: #FFF9DC;
    border-bottom: 1px dotted black;
    border-top: 1px dotted black;
}

table.detail tr.action, table.detail tr.action td {
    border-top: 1px solid #FFEC8D;
    border-bottom: 1px solid #FFEC8D;
    background-color: #FFEC8D;
}

table.detail tr.selected, table.detail tr.selected td {
    border-top: 1px dashed black;
    border-bottom: 1px dashed black;
    background-color: #A6F1A6;
}

table.detail tr.invoice_extra.selected, table.detail tr.invoice_extra.selected td {
    border-bottom: none;
}

table.detail tr.invoice_extra.selected.last_extra, table.detail tr.invoice_extra.selected.last_extra td {
    border-bottom: 1px dashed black;
}

table.detail tr.selected td table.eps, table.detail tr.selected td table.eps tr, table.detail tr.selected td table.eps td {
    border-top: none;
    border-bottom: none;
}

table.detail tr.selected-credit, table.detail tr.selected-credit td {
    border-top: 1px solid red;
    border-bottom: 1px solid red;
    background-color: #F1A6A6;
}

table detail tr.credit-line, table.detail tr.credit-line td {
    background-color: #A6A6F1;
}

table.addrx tr.disabled input {
    display: none;
}
.highlight {
    text-decoration: blink;
}



/* proto.io/freebies/onoff/ Toggle-switch CSS */

.onoffswitch {
    position: relative; width: 70px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
    overflow: hidden;
}

.onoffswitch-checkbox {
    display: none;
}

.onoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 0px solid #999999; border-radius: 0px;
}

.onoffswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    -moz-transition: margin 0.3s ease-in 0s; -webkit-transition: margin 0.3s ease-in 0s;
    -o-transition: margin 0.3s ease-in 0s; transition: margin 0.3s ease-in 0s;
}

.onoffswitch-inner > span {
    display: block; float: left; position: relative; width: 50%; height: 30px; padding: 0; line-height: 30px;
    font-size: 16px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}

.onoffswitch-inner .onoffswitch-active {
    padding-left: 15px;
    background-color: #C2C2C2; color: #FFFFFF;
}

.onoffswitch-inner .onoffswitch-inactive {
    padding-right: 15px;
    background-color: #C2C2C2; color: #FFFFFF;
    text-align: right;
}

.onoffswitch-switch {
    display: block; width: 42px; margin: 0px; text-align: center;
    border: 0px solid #999999;border-radius: 0px;
    position: absolute; top: 0; bottom: 0;
}
.onoffswitch-active .onoffswitch-switch {
    background: #4FB50B; left: 0;
}
.onoffswitch-inactive .onoffswitch-switch {
    background: #9E9E9E; right: 0;
}

.onoffswitch-active .onoffswitch-switch:before {
    content: " "; position: absolute; top: 0; left: 42px;
    border-style: solid; border-color: #4FB50B transparent transparent #4FB50B; border-width: 15px 7px;
}


.onoffswitch-inactive .onoffswitch-switch:before {
    content: " "; position: absolute; top: 0; right: 42px;
    border-style: solid; border-color: transparent #9E9E9E #9E9E9E transparent; border-width: 15px 7px;
}


.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}










.cmn-toggle {
    margin-left: -9999px;
    position: absolute;
    visibility: hidden;
}
.cmn-toggle + label {
    -moz-user-select: none;
    cursor: pointer;
    display: block;
    outline: medium none;
    position: relative;
}

input.cmn-toggle-yes-no + label {
    height: 20px;
    padding: 2px;
    width: 60px;
}
input.cmn-toggle-yes-no + label:before, input.cmn-toggle-yes-no + label:after {
    bottom: 0;
    color: #fff;
    display: block;
    font-family: sans-serif;
    font-size: 18px;
    left: 0;
    line-height: 22px;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
}
input.cmn-toggle-yes-no + label:before {
    backface-visibility: hidden;
    background-color: #DDDDDD;
    content: attr(data-off);
    transition: transform 0.5s ease 0s;
}
input.cmn-toggle-yes-no + label:after {
    backface-visibility: hidden;
    background-color: #7cD186;
    content: attr(data-on);
    transform: rotateY(180deg);
    transition: transform 0.5s ease 0s;
}
input.cmn-toggle-yes-no:checked + label:before {
    transform: rotateY(180deg);
}
input.cmn-toggle-yes-no:checked + label:after {
    transform: rotateY(0deg);
}

button.patientlookup {
    background: #30a9f0;
    background-image: -webkit-linear-gradient(top, #30a9f0, #2980c0);
    background-image: -moz-linear-gradient(top, #30a9f0, #2980c0);
    background-image: -ms-linear-gradient(top, #30a9f0, #2980c0);
    background-image: -o-linear-gradient(top, #30a9f0, #2980c0);
    background-image: linear-gradient(to bottom, #30a9f0, #2980c0);
    -webkit-border-radius: 5;
    -moz-border-radius: 5;
    border-radius: 5px;
    color: #ffffff;
    padding-left: 0;
    border: solid #1f628d 1px;
    text-decoration: none;
    line-height: 20px;
    width: 130px;
}

button.patientlookup:hover {
    background: #3cb0fd;
    background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
    background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
    text-decoration: none;
}

button.patientlookup.has_unallocated {
    background: #f05930;
    background-image: -webkit-linear-gradient(top, #f05930, #c03029);
    background-image: -moz-linear-gradient(top, #f05930, #c03029);
    background-image: -ms-linear-gradient(top, #f05930, #c03029);
    background-image: -o-linear-gradient(top, #f05930, #c03029);
    background-image: linear-gradient(to bottom, #f05930, #c03029);
    border: solid #8d621f 1px;
}

button.patientlookup.has_unallocated:hover {
    background: #ff6940;
    background-image: -webkit-linear-gradient(top, #ff6940, #d04039);
    background-image: -moz-linear-gradient(top, #ff6940, #d04039);
    background-image: -ms-linear-gradient(top, #ff6940, #d04039);
    background-image: -o-linear-gradient(top, #ff6940, #d04039);
    background-image: linear-gradient(to bottom, #ff6940, #d04039);
    border: solid #9d722f 1px;
}


button.orderlookup {
    background: #62AF78;
    background-image: -webkit-linear-gradient(top, #7AD69F, #62AF78);
    background-image: -moz-linear-gradient(top, #7AD69F, #62AF78);
    background-image: -ms-linear-gradient(top, #7AD69F, #62AF78);
    background-image: -o-linear-gradient(top, #7AD69F, #62AF78);
    background-image: linear-gradient(to bottom, #7AD69F, #62AF78);
    -webkit-border-radius: 5;
    -moz-border-radius: 5;
    border-radius: 5px;
    color: #ffffff;
    padding-left: 0;
    border: solid #1f628d 1px;
    text-decoration: none;
    line-height: 20px;
    width: 130px;
}

button.orderlookup:hover {
    background: #30c069;
    background-image: -webkit-linear-gradient(top, #82d9a5, #30c069);
    background-image: -moz-linear-gradient(top, #82d9a5, #30c069);
    background-image: -ms-linear-gradient(top, #82d9a5, #30c069);
    background-image: -o-linear-gradient(top, #82d9a5, #30c069);
    background-image: linear-gradient(to bottom, #82d9a5, #30c069);
    text-decoration: none;
}

tr.addrx input {
    font-weight: bold;
}

table.header tbody tr td.note {
    background-color: #F0E0C0;
}

table.detail tr.invoice_extra.selected td {
    border-top: none;
}

table.detail tr.invoice.selected td.eps_nobottom, table.detail tr.invoice.selected td.eps_nobottom {
    border-bottom: none;
}

table.detail tr.invoice.selected td.eps_notop, table.detail tr.invoice.selected td.eps_notop {
    border-top: none;
}

.multiple_deliveries {
    color: red;
    font-size: 14pt;
    top: 6px;
    margin: -6px;
}


table.addrx.disabled {
    display: none;
}

#addrxouter {
   position: fixed;
   bottom: 1rem;
   left: 1rem;
   background: white;
   border: 1px solid black;
   width: 90%
}
