body,html {
    height: 100%!important;
}

h1 {
  margin-right: 1em;
}

h2 {
	margin: 0px 0px 60px 0px;
}

h3 {
  font-size: 1.2em;
  text-align: center;
}

div#header, div#footer {
  /* background: lightblue; */
  background: #ffffff;
  padding: 4px 0.75rem 4px 4px;
  width: 100%;
  font-size: 16pt;
  font-weight: 500;
  vertical-align: middle;
}

div#header {
  border-bottom: solid 2px #d0c386;
  text-align: center;
  height: 64px;
}

div#footer {
  border-top: solid 2px #d0c386;
}

div.footer {
  padding: 0.25em;
}

div#hello_user {
  font-size: 1.4em;
  font-weight: 400;
}

div.header-button {
  margin-left: 1em;
}

div#dropdown-menu-background {
  background: #00000040;
  z-index: 2000;
  position: fixed;
  top: 0vw;
  left: 0vw;
  width: 100vw;
  height: 100vh;
}

div#dropdown-menu {
  background: #ffffff;
  padding: 0.5em;
  z-index: 2001;
  position: absolute;
  top: 88px;
  right: 2px;
  border-radius: 0.25rem;

  font-size: 14pt;
  width: 66em;
  max-width: 98vw;
  flex-flow: row wrap;
  gap: 0.5em 0.5em;
}

div#dropdown-menu a {
  display: flex;
  text-decoration: none;
}

div#dropdown-menu div {
  width: 100%;
  border: solid 1px #d0c386;
  border: solid 1px #800020;
  border: solid 1px #f3d6f2;
  display: inline-flex;
  width: 12em;
  font-size: inherit;
  word-wrap: normal;
  height: 4em;
  overflow: hidden;
  text-wrap: wrap;
  overflow-wrap: normal;
  white-space: break-spaces;
  padding-top: 0.5em;
  padding-left: 0.75em;
}

div#dropdown-menu div.nav-item span {
  width: 1em;
  margin-right: 0.25em;
  font-size: 2.5em;
}

div#dropdown-menu div.flex-break {
  border: none;
  /* border-top: solid 1px #f3d6f2; */
  height: 0px;
  margin: 0px;
}

div#dropdown-menu div.flex-banner {
  height: auto;
  text-align: center;
  align-content: center;
  font-size: 12pt;
  padding-top: 0px;
  background: rgba(128,0,32,0.25);
  border-top-left-radius: 0.5em;
  border-top-right-radius: 0.5em;
}

div#dropdown-menu div.flex-banner span {
  width: 100%;
  color: #000000;
  font-size: 1.2em;
}

/* div#dropdown-menu div.flex-banner span:before, div#dropdown-menu div.flex-banner span:after {
  content: "";
  display: inline-block;
  width: 50%;
  margin: 0 .5em 0 -55%;
  vertical-align: middle;
  height: 0.25em;
  background: rgb(128,0,32);
  background: linear-gradient(90deg, rgba(128,0,32,0) 0%, rgba(128,0,32,0.5) 100%);
}
div#dropdown-menu div.flex-banner span:after {
  margin: 0 -55% 0 .5em;
  background: rgb(128,0,32);
  background: linear-gradient(90deg, rgba(128,0,32,0.5) 0%, rgba(128,0,32,0) 100%);
} */

div#dropdown-menu div#change_clinic {
  /* margin-left: auto; */
  border: none;
  flex: 2;
  flex-basis: content;
  padding: 0px;
}

div#dropdown-menu div#change_clinic span {
  margin-top: auto;
  margin-left: auto;
  margin-bottom: auto;
}

div.dropdown-menu-group {
  width: 100% !important;
  padding: 0px !important;
  border: none !important;
  height: auto !important;
}

div.dropdown-menu-tab {
  background: #80002040;
  height: auto !important;
  width: 2em !important;
  border-top-left-radius: 0.5em;
  border-bottom-left-radius: 0.5em;
  border: none !important;
  margin-right: 0.4em;
  padding: 0px !important;
  position: relative;
}

div.dropdown-menu-tab div {
  height: 100% !important;
  height: calc(100% - 1em) !important;
  border: none !important;
  position: absolute;
  top: 0.5em;
  left: -5.1em;
  padding: 0px !important;
}

div.dropdown-menu-tab div span {
  margin-top: -1em; 
  transform-origin: center;
  transform: translateX(0em) rotate(270deg);
  white-space: nowrap;
  margin: auto; 
  position: relative;
}

div.dropdown-menu-options {
  width: 100% !important; 
  height: auto !important;
  flex-wrap: wrap;
  gap: 0.5em 0.5em;
  border: none !important;
  padding: 0px !important;
}

div#editmenu {
  margin-top: 0.5em;
}

div#maincontent {
  width: 98%;
  margin-left: 1%;
  margin-right: 1%;
  padding-top: 1em;
  padding-bottom: 4em;
  position: relative;
  min-height: calc(100vh - 64px - 80px);
}

div#header img {
  height: 56px;
  width: auto;
}

div#menu_show select {
  margin-top: 12px;
}

div#menu_show img {
  margin-top: -4px;
  height: 32px;
}

div#menu_show span {
  /* fill: #ffffff;
  stroke: #ffffff; */
  margin-left: 0.5em;
  font-size: 2rem;
  margin-right: 0.25em;
  margin-top: 0.25em;
}

div#menu_show p {
  width: 60%; 
  margin: 0.75rem auto;
}

div.flex-break {
  flex-basis: 100%;
  height: 0px;
}

div.centre {
  width: auto;
  position: relative;
  left: 50%;
  margin-left: -50%;
  margin-right: 50%;
}

div.userinput {
  width: auto;
  max-width: 30em;
  margin: auto;
  margin-top: 2em;
  border: solid 2px;
  border-radius: 1em;
  padding: 1em;
}

div#notifications {
  position: absolute;
  top: 0px;
  right: 0px;
}

div#notifications div {
  clear: both;
  margin: 2px;
  opacity: 1;
}

.opening_month {
  width: 18em;
  height: 19em;
  float: left;
  margin-right: 1em;
  margin-bottom: 1em;
}
.opening_month div.opening_title {
  background: #000000;
  color: #fff;
  border-top-left-radius: 0.5em;
  text-align: center;
  border-top-right-radius: 0.5em;
}
.opening_month table {
  width: 100%;
  /* border: solid 1px #d0c386; */
}
.opening_month td, .opening_month th {
  border: solid 1px #000000;
  height: 2.5em;
  position: relative;
  text-align: center;
  width: 14.285%;
}
.opening_month th {
  height: 1.5em;
}
.opening_month td.today {
  border: solid 3px crimson;
}

.opening_date {
  position: absolute;
  top: 0px;
  right: 0.35em;
  z-index: 0;
  font-size: 80%;
}
.opening_count {
  border-radius: 50%;
  background-color: #d0c386;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 100%;
}
td.cell_pad {
  border: none;
}

img.barcode128 {
  width: auto;
  height: 120px;
  border: solid 20px white;
}

#clinic_select {
  vertical-align: bottom;
  margin-bottom: 5px;
}

#calendar_controls {
  text-align: center;
}

#calendar_controls img {
  margin-left: 0.25em;
  margin-right: 0.25em;
}

#calendar_frame {
  white-space: nowrap;
  overflow: hidden;
  margin-top: 0.5em;
  display: inline-block;
  width: calc(98vw - 1em);
}

div#bookingform {
  width: 60%; 
  float: left;
  padding-right: 2px;
  /* border-right: solid black 1px; */
}

div#calendarform {
  width: 40%; 
  float: left;
  padding-left: 2px;
}

div#calendar_compact {
  margin-top: 0.25em;
  overflow: hidden;
  white-space: nowrap;
}

.clinic_day {
  /* border: solid 1px #000;
  border-radius: 0.5em; */
  width: 240px;
  margin-right: 10px;
  /* float: left; */
  /* padding-bottom: 1em; */
  display: inline-block;
  border-bottom: solid 1px #d0c386;
  margin-bottom: 1em;
}

.clinic_day.compact {
  width: 32%;
  /* margin-right: auto; */
  /* padding-right: 1px; */
  margin-left: 2px;
  margin-right: 1px;
}

.clinic_day.compact .time {
  font-size: 6pt;
  text-align: left;
}

.clinic_day_heading {
  text-align: center;
  /* border: solid 1px #666; */
  border-top-left-radius: 0.5em;
  border-top-right-radius: 0.5em;
  background-color: #d0c386;
}
div.clinic_closed:before {
  font-family: 'Icons';
  src: url('../fonts/open-iconic.eot');
  src: url('../fonts/open-iconic.eot?#iconic-sm') format('embedded-opentype'), url('../fonts/open-iconic.woff') format('woff'), url('../fonts/open-iconic.ttf') format('truetype'), url('../fonts/open-iconic.otf') format('opentype'), url('../fonts/open-iconic.svg#iconic-sm') format('svg');
  font-weight: normal;
  font-style: normal;
  color: #ff0000;
  content:'\e017';
  display: block;
  float: right;
  margin-right: 8pt;
  font-size: 20pt;
  /* position: absolute; */
  /* right: 0px; */
}
.clinic_spacing {
  border-left: solid 1px #d0c386;
  border-right: solid 1px #d0c386;
  background: #f0f0f0;
}

.clinic_bookings {
  height: 720px;
  position: relative;
  /* border-top: solid 1px #000000; */
  border-left: solid 1px #d0c386;
  border-right: solid 1px #d0c386;
  /* border-bottom: dotted 1px #000000; */
  cursor: pointer;
}

.clinic_bookings .time {
  font-size: 70%;
  border-top: dotted 1px #ccc;
  position: absolute;
  border-bottom: dotted 1px #ccc;
  width: 100%;
}

.clinic_booking {
  position: absolute;
  border: solid 1px #ffffff;
  width: 100%;
  background-color: #aaaaaa;
  overflow: hidden;
  text-align: center;
  border-radius: 0.25em;
  cursor: pointer;
}

.clinic_booking p.booking_time {
  margin: 0;
  font-size: 70%;
  line-height: 1;
}

.clinic_booking div.booking_time {
  text-align: left;
  margin: 0;
  margin-right: 5px;
  font-size: 70%;
  line-height: 1;
  /* width: 20%; */
  float: left;
  /* new styling to lift the time */
  background: #fff6;
  border-bottom-right-radius: 0.5em;
  padding-right: 2px;
  padding-bottom: 2px;
  min-width: 3.6em;
  text-align: center;
}

.clinic_booking div.booking_name {
  white-space: normal;
  line-height: 1.1;
}

.clinic_booking .work_type {
  color: rgb(141, 88, 38);
}

.clinic_booking.booking_provisional {
  filter: brightness(2);
}

.clinic_booking.booking_provisional:after {
  content: '?';
  position: absolute;
  right: 4px;
  bottom: 2px;
}

.clinic_open {
  background: #d0c38680;
  border: solid 1px #000;
}

.clinic_multiple::after {
  content: '+';
  position: absolute;
  display: block;
  right: 0px;
  bottom: 0px;
}

.bank_holiday {
  background: #f6484880;
  border: solid 1px #000;
}

td.clinic_closed {
  border: solid 1px #000;
}

.customer_details {
  max-width: 96vw;
  display: inline-block;
  margin-right: 2em;
  margin-bottom: 2em;
  border: solid 1px black;
  /* border-top-left-radius: 1em;
  border-top-right-radius: 1em; */
  /* padding: 1em; */
  width: 35em;
}

.customer_details h3 {
  background-color: black;
  color: white;
  line-height: 1.5em;
}

.customer_details table {
  margin: 1em;
  width: calc(100% - 2em);
}

.customer_details table th, .customer_details table td {
  vertical-align: top;
}

#search_frame {
  margin-top: 1em;
  margin-bottom: 1em;
}

#search_frame tr:last-child {
  border-bottom: solid 1px black;
}

.modal-dialog {
  /* width: 40em; */
  cursor: pointer;
  max-width: calc(100vw - 2em);
}

.modal-dialog.wait {
  cursor: wait;
}

.modal-content {
  width: auto;
  max-width: calc(100vw - 1em);
  margin-left: auto;
  margin-right: auto;
}

.modal-content table {
  width: auto;
}

img.fit-frame {
  width: 100%;
  height: auto;
}

input#change_date+button {
  /* margin-top: 0.4em; */
  margin-top: 8px;
  width: 48px;
}

/* fix for overlapping change date icon */
input#next_date {
  margin-left: 8px;
}

input#previous_date {
  margin-right: 8px;
}

input[readonly], textarea[readonly] {
  background-color: #f8f8f8;
  border: solid 1px #ccc;
}

input[type=checkbox].btn-check, input[type=radio].btn-radio {
  height: 27px;
  width: 32px;
}

input.btn:focus {
  outline: none;
  box-shadow: none;
}

input.btn.float-right {
  clear: right;
  margin-bottom: 0.5em;
}

.btn.technician {
  height: 5em;
}

input.technician.barcode {
  height: 2.5em;
  width: 4em;
  font-size: 24pt;
  position: relative;
  top: 0.2em !important;
}

select.technician {
  height: 5em;
}

textarea[name=display_notes] {
  background-color: #f8f8f800;
  border: none;
  margin-bottom: 0.5em;
  word-break: normal;
}

p.centre {
  text-align: center;
}

p.question {
  font-size: 14pt;
  margin-bottom: 3pt;
}

p.heading {
  font-weight: 400;
  font-size: 14pt;
  margin-bottom: 3pt;
}

span.info_note {
  display: inline;
  font-size: 8pt;
}

span.error {
  color: red;
  font-size: 60%;
  line-height: 60%;
}

/*this from https://www.w3schools.com/howto/howto_css_custom_checkbox.asp*/

/* Create a custom checkbox */
span.checkmark {
  position: absolute;
  top: 0px;
  left: -4px;
  height: 22px;
  width: 22px;
  background-color: #eee;
  border: solid 1px #000000;
}

/* On mouse-over, add a grey background color */
span input[type="checkbox"] ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
span input[type="checkbox"]:checked ~ .checkmark {
  background-color: #007bff;
}

/* When the checkbox is disabled, add orange background */
span input[type="checkbox"]:disabled ~ .checkmark {
  background-color: #ff8d30;
}

/* Create the checkmark/indicator (hidden when not checked) */
span .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
span input[type="checkbox"]:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
span .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

span label {
    margin-left: -10px;
}

/* special delete entry icon */

span.deleteicon {
  background-color: #ffffff;
  
}

span.deleteicon input[type="checkbox"] {
  display: none;
}

span.deleteicon span.checkmark {
  position: absolute;
  top: 6px;
  left: -12px;
  height: 24px;
  width: 24px;
  background: none;
  background: url('/images/delete-icon-24.png') 0 0px no-repeat;
  border: none;
}

span.deleteicon input[type="checkbox"]:checked ~ .checkmark {
  background: none;
  background: url('/images/delete-icon-24-sel.png') 0 0px no-repeat;
  border: none;
}

span.deleteicon span .checkmark:after {
/*  position: absolute;
  height: 24px;
  width: 24px;
  background: none;
  background: url('/images/delete-icon-24.png') 0 0px no-repeat;
  border: none;
*/  display: none;
}

/* On mouse-over, add a grey background color */
span.deleteicon input[type="checkbox"] ~ .checkmark:after {
/*  background: none;
  background: url('/images/delete-icon-24.png') 0 0px no-repeat;
  border: none;
*/  display: none;
}

/* When the checkbox is checked, add a blue background */
span.deleteicon input[type="checkbox"]:checked ~ .checkmark:after {
/*  background: none;
  background: url('/images/delete-icon-24-sel.png') 0 0px no-repeat;
  border: none;
*/  display: none;
}

span.outofrange {
  color: #ff8d30;
}

table td, table th {
  padding: 0.25rem !important;
}

table tr.customer-extra, table tr.work-extra, table tr.booking-extra {
  display: none;
}

div.modal-body table tbody tr td.sms {
  word-break: normal;
}

div.modal-body table tbody tr td.reminder div {
  display: inline-block;
}

div.modal-body tbody {
  border-top: 4px solid #ffffff;
}

table tr.banner-row th {
  text-align: center;
  font-size: 0.8rem;
  background-color: #d0c386;
  padding: 0 !important;
}

table tr.banner-row th span.link {
  font-size: 0.6rem;
  color: lightgray;
}

table.edit-houses th+th, table.edit-houses td+td {
  width: 4rem;
  vertical-align: middle;
}

table.show-rota {
  width: 98vw;
  min-width: 98vw;
  max-width: 98vw;
  /* display: inline-block; */
  table-layout: fixed;
}
table.show-rota td, table.show-rota th {
  border: 1px solid #333333;

  min-width: 5em;
  width: 5em;
  max-width: 9%;
}

table.show-rota td+td {
  min-width: 30%;
  width: 30%;
  max-width: none;
}


table.editrota {
  width: 100%;
}

table.editrota td.time input {
  width: 6em;
}

table.editaccount {
  width: 98vw;
  min-width: 98vw;
  max-width: 98vw;
  display: inline-block;
  table-layout: fixed;
}

table.editaccount td, table.editaccount th {
  border: 1px solid #333333;

  min-width: 8em;
  width: 8em;
  max-width: 9%;
}

table.editaccount td {
  min-width: 71%;
  width: 71%;
  max-width: none;
}

table.editaccount input {
  max-width: 70%;
}

table.editaccount input.long {
  width: 100%;
}

table.editaccount div {
  display: inline-block;
}

table.table-nostripe {
  /* margin-left: -4px;
  margin-right: -4px; */
  border: none;
}

table.table-nostripe thead tr:nth-of-type(2n+1) {
  background-color: rgba(255,255,255,0);
  border: none;
}

table.table-nostripe tbody tr:nth-of-type(2n+1) {
  background-color: rgba(255,255,255,0);
  border: none;
}

table.table-noborder {
  border: none;
}

table.table-noborder tbody td {
  border: none;
}

table.table-oneline {
  table-layout: fixed;
}

table.table-oneline tbody td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#editingpractice.table tbody tr td.line_item {
  padding: 0px !important;
}

.nowrap {
  white-space: nowrap;
}

/* make tracking along the row easier */
table#users tr:hover, table.editrota tr:hover, table#list tr:hover {
  background: #e1ffdf;
}

div.modal {
  position: fixed;
  top: 0vw;
  left: 0vw;
  max-width: 100vw;
  width: 100vw;
  padding: 1vw;
}

div.modal input {
  max-width: 100%;
  margin-bottom: 0.25em;
}

div.modal-body table tbody tr td {
  word-break: break-all;
}

div.modal-body table tbody tr td.info {
  word-break: break-word;
}

div.modal-body table tbody tr td.message {
  word-break: break-word;
}

/* medical form */

div#form-body {
  margin-left: auto;
  margin-right: auto;
}

div#form-body .group {
  background: #f8f8f8;
  padding: 1em;
  border: solid 1px #cccccc;
  margin-bottom: 1em;
  max-width: 60em;
}

div#form-body div {
  margin-bottom: 1em;
}

.form-checkbox-lg {
  height: 42px;
  float: right;  
  width: 42px;
  margin-bottom: 0.5em;
}

.tabswitch {
  display: flex;
  flex-wrap: wrap;
  background-color: #ffffff;
  border-bottom: solid 1px #007bff;
  width: 100%;
  list-style-type: none;
  margin-bottom: 12pt;
  padding-inline-start: 0px;
}

.tabswitch li {
  float: left;
  display: block;
  width: 10em;
  background: #85c0ff; /* #eeeeee; */
  color: #808080;
  padding: 0.25em;
  /* border: solid 1px #000000; */
  border: none;
  border-bottom: none;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  text-decoration: none;
  text-align: center;
  margin-right: 1pt;
  margin-top: 1px;
}

.tabswitch .enabled {
  background: #007bff;
  color: #ffffff;
}

.filter {
  margin-bottom: 6pt;
}
/* dropdowns for invoicing input */

#invoicing_frame table#list td  {
  border-left: solid 1px #eeeeee;
  border-right: solid 1px #eeeeee;
}

#invoicing_frame table#list th {
  border-left: solid 1px #32383e;
  border-right: solid 1px #32383e;
  text-align: center;
}

#invoicing_frame table#list th.select {
  text-align: right;
  padding-right: 1em !important;
}

.dropdown {
  width: 20em;
  max-height: 20em;
  /* z-index: 100; */
  /* position: absolute; */
  border: solid 1px #000000;
  background: #ffffff;
  /* display: none; */
  min-height: 5ex;
  line-height: 2.5ex;
  max-height: 20ex;
  overflow-y: scroll;
}

.dropdown div:nth-of-type(2n) {
  background-color: rgba(0,0,0,.05);
}

.dropdown div:last-child {
  border-bottom: none;
}

.dropdown-option {
  line-height: 2.5ex;
  padding: 0.2em;
  border-bottom: solid 1px #e0e0e0;
}

.dropdown-option:hover {
  background-color: #e1ffdf !important;
}

.value {
  text-align: right;
  padding-right: 1em !important;
}

.value-std {
  text-align: right;
  /* padding-right: 1em !important; */
}

.default-price-list {
  font-style: italic;
  color:#85c0ff;
  /* color: #007bff; */
}

.pricing {
  text-align: right;
  width: 4.5em !important;
  margin-left: auto;
  margin-right: auto;
}

.pricing-alert {
  font-weight: 600;
  color: #d0c386;
  padding-left: 0.5em;
}

#job_details_frame {
  vertical-align: top;
}

#job_main {
  min-width: 30em;
  width: calc(100% - 30em);
  display: inline-block;
  vertical-align: top;
}

#notes_main {
  width: 29em;
  min-height: 160pt;
  padding-bottom: 0.5em;
  /* display: inline-block; */
  vertical-align: top;  
  border: solid 1px #c592c5;
  border-radius: 0.5em 0.5em 0 0;
  margin-bottom: 1em;
  overflow: hidden;
  float: right;
}

#job_notes_frame #notes_main {
  max-width: 29em;
  width: 100%;
}

.notes-banner {
  background: #c592c5;
  margin-bottom: 0px;
  color: black;
  padding: 0.25em 0.5em;
  font-weight: 600;
  text-align: center;
}

.notes-content {
  padding: 0.25em 0.5em 0.5em 0.5em;
}

#notes_main div.note {
  margin-bottom: 0.25em;
  border-top: solid 1px #c5b6c5;
}

#notes_main div.note:first-of-type {
  border-top: none;
}

.note-date {
  font-weight: bold;
}

.note-name {
  font-size: 0.7em;
  font-style: italic;
}

#job_selection {
  margin-bottom: 18pt;
  line-height: 3;
}

#job_selection input {
  height: 2.375em;
  margin-top: -4pt;
}

#load_picture::-webkit-file-upload-button {
  display: none;
}

#load_picture::file-selector-button {
 display: none;
}

div.form-picture {
  display: inline-block;
  width: calc(50% - 10px);
  margin-right: 10px;
  min-width: 200px;
  margin-bottom: 10px;
  -webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
  -moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
  box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
}

div.form-picture img {
  width: calc(100% - 2em);
  height: auto;
  margin-bottom: 2px;
  margin-right: 4px;
}

div.form-picture span {
  vertical-align: top;
  font-size: 160%;
}

#picture_frame {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 6px;
  clear: both;
}

#job_new_pictures {
  display: flex;
  flex-wrap: wrap;
}

#job_new_pictures div.form-picture {
  /* width: calc(25% - 10px); */
  width: 180px;
  max-width: 320px;
}

#job_pictures div.contentarea video {
  float: left;
  max-width: calc(100% - 1em);
}
#job_pictures div.contentarea input, #job_pictures div.contentarea button {
  margin-left: 0.5em;
}
#show-picture img {
  cursor: zoom-out;
}
.jobsearch {
  overflow-y: scroll;
  max-height: 20vh;
  margin-bottom: 1em;
  border: solid 1px black;
}
#job_search_frame h3 {
  background: black;
  color: white;
  font-weight: 600;
  padding: 0.25em 0.5em;
  /* border-radius: 0.5em 0.5em 0 0; */
  margin-bottom: 0px;
}

.jobdetails-picture {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  height: 160px;
  min-height: 160px;
  max-height: 160px;
  display: inline-block;
  /* -webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
  -moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
  box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25); */
  margin-right: 1em;
  margin-bottom: 1em;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  border: solid 1px #888;
  border-radius: 0.25em;
  background: #888;
}

.jobdetails-picture img {
  width: 100%;
  height: auto;
}

.jobdetails-picture.add-picture {
  text-align: center;
  cursor: pointer;
}

.jobdetails-picture.add-picture img {
  width: 120px;
  height: 90px;
  vertical-align: middle;
  top: -70px;
  position: relative;
  margin-top: 50%;
}

.jobdetails-picture .image-new {
  position: absolute;
  top: 2px;
  right: 2px;
  color: aqua;
}

.jobdetails-picture div.date {
  left: 0.5em;
  top: 0px;
  position: absolute;
  background: #ffffffc0;
  padding: 2px;
}

.jobdetails-info {
  display: flex;
  flex-flow: wrap;
  margin-right: 1em;
  margin-bottom: 1em;
  border-radius: 0.5em 0.5em 0 0;
  border: solid 1px #cdc3a3;
  overflow: hidden;
  width: 40em;
  max-width: calc(100vw - 2em);
  float: left;
}

#job_info_banner {
  background: #cdc3a3;
  /* border-radius: 0.5em 0.5em 0 0; */
  margin-bottom: 0px;
}

#job_info_content {
  /* border: solid 1px #cdc3a3; */
  /* background: #fff2ca; */
  padding: 0em 0.5em 0.5em 0.5em;
  width: 100%;
}

#job_info_content div.buttons {
  display: flex;
  gap: 0.25em 0.25em;
  flex-wrap: wrap;
}

#job_info_content th, #job_info_content td, .job-item-content th, .job-item-content td {
  border: none;
}

#job_info_content tr {
  border-bottom: solid 1px #cdc3a3;
}

.job-item-content tr {
  border-bottom: solid 1px #afafbb;
}

#job_info_content tr:last-child, .job-item-content  tr:last-child {
  border: none;
}

.jobdetails-item {
  display: flex;
  flex-flow: row wrap;
}

.job-item {
  width: 40em;
  max-width: calc(100vw - 2em);
  margin-right: 1em;
  margin-bottom: 1em;
  float: left;
  border: solid 1px #cacaf6;
  border-radius: 0.5em 0.5em 0 0;
  overflow: hidden;
}

.job-item-banner {
  background: #cacaf6;
  margin-bottom: 0px;
  color: black;
  padding: 0.25em 0.5em;
  font-weight: 600;
  text-align: center;
}

.job-item-content {
  padding: 0.25em 0.5em 0.5em 0.5em;
}

div#item_frame {
  width: 18em;
  /* background: #ffe6e6; */
  border: solid 1px #cbb6b6;
  border-radius: 0.5em 0.5em 0 0;
  min-height: 20em;
  float: left;
  margin: 0.5em;
  /* min-width: 20em; */
  /* padding: 0.25em 0.5em; */
  padding-bottom: 0.5em;
  overflow: hidden;
}

div#item_frame .dark {
  background: #cbb6b6;;
}

div#item_frame .item_waiting {
  margin: 0.5em;
}

div#item_frame p {
  margin-top: 0.5em;
}

#parcel_grid {
  /* display: grid; */
  /* flex-wrap: wrap; */
  /* grid-template-columns: repeat(auto-fit, 18em); */
  /* grid-template-rows: masonry; */
  /* gap: 1em; */
  /* grid-auto-flow: row; */
  /* align-content: center; */  
  margin-left: -0.5em;
  margin-right: -0.5em;
}

div.parcel-icon {
  position: absolute;
  top: 0.5em;
  left: 0.5em;
}

/* #open_parcel_frame, #despatched_parcel_frame {
  min-width: 20em;
  width: calc((100vw - 23em) / 2);
  border: solid 1px #d5d5d5;
  border-radius: 0.5em 0.5em 0 0;
  overflow: hidden;
} */

/* #open_parcel_frame h3, #despatched_parcel_frame h3 {
  text-align: left;
} */

.open_box, .despatched_box {
  /* background: #f2f8ff; */
  width: 18em;
  height: 10em;
  border: solid 1px #b9bec3;
  border-radius: 0.5em 0.5em 0 0;
  display: inline-block;
  position: relative;
  vertical-align: top;
  overflow: hidden;
  margin: 0.5em;
}

.open_box {
  border: solid 1px #c0ddff;;
}
.despatched_box {
  /* background: none; */
  border: solid 1px #c9c9c9;
}

.open_box .dark {
  background: #c0ddff;
}

.despatched_box .dark {
  background: #c9c9c9;
}

.open_box div.despatch_button, .despatched_box div.despatch_button {
  position: absolute;
  left: 0.25em;
  right: 2px;
  bottom: 2px;
  margin-right: -0.5em;
  /* float: right; */
  /* margin-top: calc(10em - 6em); */
  vertical-align: bottom;
}

div.despatch_button input {
  bottom: 0px;
  position: absolute;
  right: 0px;
}

.open_box p, .despatched_box p {
  margin: 0 0.5em;
}

.open_box div.despatch_button p, .despatched_box div.despatch_button p {
  float: left;
}

.open_box input, .despatched_box input {
  float: right;
}

.open_box div.dark, .despatched_box div.dark {
    padding: 0.25em 0.5em 0.25em 2em;
    white-space: nowrap;
}

.open_box div.dark div, .despatched_box div.dark div {
  overflow: hidden;
}

.open_box div.despatch_address, .despatched_box div.despatch_address {
  padding-left: 0.5em;
  height: 4.75em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn.btn-vs {
  padding: .125rem .5rem;
  font-size: .75rem;
  line-height: 1.5;
  border-radius: .2rem;
  margin-right: 0.25em;
}

.td-row {
  height: 2em;
}

div.dark {
  /*position: absolute;
  top: 0px;
  left: 0px;
  */
  /* margin-left: -0.5em;
  margin-right: -0.5em; */
  /* margin-top: -0.25em; */
  margin-bottom: 0.25em;
  width: 100%;
  display: inline-block;
}

.dark {
  background: #00000020;
  /* width: 100%; */
  color: black;
  padding: 0.25em 0.5em;
  font-weight: 600;
  text-align: center;
}

/* status page */

#job_status_frame {
  clear: both;
  display: flex;
  flex-flow: row wrap;
  gap: 1em;
  justify-content: space-evenly;
  align-items: stretch;
  min-height: calc(100vh - 225px);
}

.status {
  width: calc(33% - 2em);
  min-width: 20em;
  /* min-height: calc(100vh - 125px); */
  display: inline-block;
  /* margin-right: 2em; */
  vertical-align: top;
}

.status_banner {
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  background: #800020;
  border: solid 1px #800020;
  border-radius: 0.5em 0.5em 0 0;
}

.status_banner.highlight, .status_ticket.highlight {
  background: #00ff00;
}

.status_body {
  height: calc(100% - 26px);
  border: solid 1px #800020;
  display: grid;
  grid-template-columns: repeat(auto-fill, 50%);
  align-content: flex-start;
}

#status_connection {
  position: fixed;
  bottom: 8px;
  right: 8px;
}

.status_ticket {
  /* clear: both; */
  /* width: 50%; */
  /* padding: 0.25em 1em; */
  /* border-bottom: solid 1px #800020; */
  /* border-radius: 0.5em; */
  /* margin-top: 3px; */
  /* position: relative; */
  /* display: flex;
  flex-direction: column; */
  border: solid 1px #ffffff;
  height: 4.5em;
  height: clamp(1.5em, 1.5em + 2.5vw, 4.5em);
  overflow: hidden;
  background: #f8f8f8;
}

.status_ticket div {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.status_ticket.status_due0 {
  background: red;
  color: white;
}
.status_ticket.status_due1 {
  background: rgb(255, 100, 100);
  color: white;
}
.status_ticket.status_due2 {
  background: rgb(255, 144, 144);
  color: black;
}
.status_ticket.status_due3 {
  background: rgb(255, 184, 184);
  color: black;
}

.status_ticket.highlight {
  background: green;
}

.status_ticket .status_onhold {
  font-size: 200%;
}
.ticket_number {
  font-size: 3rem;
  font-size: clamp(1em, 1em + 1.5vw, 3em);
  vertical-align: top;
  white-space: nowrap;
}

.ticket_practice {
  vertical-align: top;
  font-size: 1.5em;
  font-size: clamp(1em, 0.9em + 0.5vw, 1.5em);
  line-height: 1.4em;
  line-height: clamp(1em, 1em + .3vw, 1.4em);
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
}

.ticket_worker {
  font-size: 3rem;
  font-size: clamp(1em, 1em + 1.5vw, 3em);
}
@media  screen and ( max-width:620px) {
  div#dropdown-menu {
    max-width: 28em;
  }
  
  div#dropdown-menu div#change_clinic {
    width: 6em;
  }
}

@media screen and ( max-width:1024px ) {
  body {
    font-size: 10pt;
  }

  div#header, div#footer {
    font-size: 12pt;
  }

  div#header img, div#menu img {
    width: auto;
    height: 32px;
    margin-top: 8px;
  }

  div#dropdown-menu {
    font-size: 12pt;
    line-height: 1.15;
  }
  
  h2 {
    font-size: 12pt;
    margin-bottom: 30px;
  }
  
  select.btn {
    line-height: 1.0rem;
    padding: 0.125rem 0.5rem;
  }

  .btn {
    padding: .25rem 0.5rem;
    font-size: 0.9rem;
    line-height: 1.0rem;
  }

  input[type=text].technician, select.technician {
    height: 4.5rem;
  }

  div#editmenu span {
    display: none;
  }

  .status {
    width: calc(33% - 0.5em);
    margin-right: 0.5em;
  }

  .status_banner {
    font-size: 1rem;
  }

  .ticket_number {
    font-size: 1.3rem;
  }
  
  .ticket_practice {
    font-size: 0.9rem;
    line-height: 1.0em;
    overflow: hidden;
  }
  
  .ticket_worker {
    font-size: 1.3rem;
    font-weight: bold;
  }
}

@media screen and ( max-width:512px ) {
  body {
    font-size: 10pt;
  }

  div#header, div#footer {
    font-size: 10pt;
  }

  div#header img, div#menu img {
    width: auto;
    height: 32px;
    margin-top: 8px;
  }

  div#dropdown-menu {
    font-size: 10pt;
    line-height: 1.15;
  }

  div#menu_show img {
    height: 24px;
    margin-top: -4px;
  }

  h2 {
    font-size: 10pt;
    margin-bottom: 20px;
  }

  select.btn {
    line-height: 1.0rem;
  }
  
  .btn {
    padding: .25rem 0.5rem;
    font-size: 0.8rem;
    line-height: 1.0rem;
  }

  .technician {
    height: 4.5em;
  }

  div#header div.mr-auto.p2 {
    width: 96vw;
    min-width: 96vw;
    max-width: 96vw;
  }

  div.header-button {
    margin-left: 0.5em;
  }

  div.nb-section div.nb-heading {
    font-size: 12pt;
    padding: 0.25em;
  }

  div.nb-document img.nb-thumbnail {
    width: 150px;
    margin-right: -140px;
  }

  div.nb-document img.nb-new-document {
    right: 22px;
  }

  div.nb-expand img.nb-new-document {
    right: 30px;
  }

  h3 {
    font-size: 1.2em;
  }

  table.show-rota td, table.show-rota th {
    min-width: 5em;
  } 

  table.editaccount div {
    font-size: 0.8em;
  }
}

@media print {
  div#header, div#footer {
    display: none !important;
  }

  .table td, .table th {
      background-color: unset !important;
      -webkit-print-color-adjust: exact !important;
      print-color-adjust: exact !important;
    }
}