/* Version 1.0 */

/******************************************************************************/
/*  GENERAL                                                                   */
/******************************************************************************/
:root {
  --main-theme-color: #0066ff;
  --theme-text: #1a1a1a;
  --min-width-for-desktop: 993;
  --label-background: #1a1a1a;
  --label-text: grey;
  --field-text: #fff;
  --table-border: #404040;
  --background: #262626;
  --sidebar-background: #333333;
  --sidebar-label-text: lightgrey;
  --hover-background: lightgrey;
  --hover-foreground: black;
  --button-text: lightgrey;
  --radio-selected: #2196F3;
  /* < only used in javascript */
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Verdana, sans-serif;
  background: var(--background);
  color: var(--label-text);
}

.scheme-color {
  color: var(--label-text);
  background-color: var(--main-theme-color);
}

/******************************************************************************/
/*  FIXED ELEMENTS (Sidebar, header, etc.)                                    */
/******************************************************************************/
p {
  font: inherit;
  line-height: 1.5;
}

h1 {
  font-size: 36px
}

h2 {
  font-size: 30px
}

h3 {
  font-size: 24px
}

h4 {
  font-size: 20px
}

h5 {
  font-size: 18px
}

h6 {
  font-size: 16px
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  margin: 10px 0
}

[bg-red]{
  background-color: red !important;
  color: #262626 !important;
}
[bg-black] {
  background-color: black !important;
}
[bg-green] {
  background-color: green !important;
  color: #262626 !important;
}
[bg-lt-ora]{
  background-color: #deb887 !important;
  color: #262626 !important;
}
heading {
  flex: 1;
  padding-left: 16px;
  font-size: 40px;
  white-space: nowrap;
  vertical-align: middle;
  width: 100%;
  padding-left: 16px;
  color: var(--theme-text);
  z-index: 10;
}

.record {
  padding: 5px 0 5px 0;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0px;
  margin: 0px;
  height: 60px;
  width: 100%;
  position: fixed;
  background-color: var(--main-theme-color);
  z-index: 11;
}

@keyframes animateleft {
  from {
    left: -200px;
    opacity: 0;
  }

  to {
    left: 0px;
    opacity: 1;
  }
}

nav[left] {
  display: block;
  margin-top: -10px;
  display: list-item;
  width: 200px;
  height: 100%;
  background-color: var(--sidebar-background);
  position: fixed !important;
  z-index: 1;
  overflow: auto;
  animation: animateleft .4s;
  border-right: 1px solid #cccccc;
}

nav.animateleft {
  animation: animateleft .4s;
}

footer {
  display: flex;
  justify-content: left;
  align-items: center;
  bottom: 0;
  position: fixed;
  background-color: var(--main-theme-color);
  height: 32px !important;
  width: 100% !important;
  z-index: 1;
  padding-left: 16px;
  color: var(--theme-text);
  margin: auto;
  font-size: 25px;
  font-family: "Arial";
}

/******************************************************************************/
/*  USER AREA                                                                 */
/******************************************************************************/
.usr-area-flex {
  margin-top: 70px;
  margin-left: 200px;
  margin-bottom: 80px;
  padding-left: 10px;
  padding-right: 10px;
  transition: margin-left .4s;
}

.usr-area-nosidebar {
  margin-top: 70px;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 80px;
  padding-left: 10px;
  padding-right: 10px;
}

.usr-area-nosidebar[shadow=on], .usr-area-flex[shadow=on] {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 10px;
  border: outset;
  border-width: thin;
  border-color: lightgrey;
  table {
	 margin-top: 10px;
  }
}


.usr-area-nosidebar[login=on], .usr-area-flex[login=on] {
  margin-top: 10px;
}

/******************************************************************************/
/*  BUTTONS                                                                   */
/******************************************************************************/
@media (hover: hover) {
  button:hover {
    background-color: var(--hover-background) !important;
    color: var(--hover-foreground) !important;
  }

  table:hover[is-button] {
    background-color: var(--hover-background);
    color: var(--hover-foreground) !important;
    cursor: pointer;
    opacity: 0.5;

    td.field {
      color: inherit !important;
    }

    td.sublabel {
      background: inherit;
    }
  }

  tr:hover[row-button] {
    background-color: var(--hover-background);
    color: var(--hover-foreground) !important;
    cursor: pointer;
    opacity: 0.5;

    td {
      color: inherit;
    }
  }

  radiobutton.hover:hover {
    background-color: var(--hover-background);
    color: var(--hover-foreground) !important;
  }

}

button {
  color: var(--button-text);
  background-color: var(--main-theme-color);
  border: none;
  margin-top: 16px;
  margin-bottom: 16px;
  font-weight: bold;
  cursor: pointer;
}

button[sidebar] {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
  width: 100%;
  display: block;
  padding: 8px 16px;
  text-align: left !important;
  border: none;
  white-space: normal;
  float: none;
  outline: 0;
  background-color: var(--sidebar-background);
  font-weight: normal;
  font-size: 16px;
  color: var(--sidebar-label-text);
}

button[menu-button] {
  font-size: 40px !important;
  font-weight: normal;
  padding: 0px 15px !important;
  height: 60px !important;
  margin: 0 !important;
  float: left;
  width: 60px;
  border: none;
  display: block;
  color: black;
  outline: 0;
}

button[btn-size="full-width"] {
  display: block;
  height: 100px;
  width: 100%;
  font-weight: bold;
  font-size: 25px;
}

.sidebar-button {
  max-width: 100%;
  width: 100%;
  text-align: right !important;
}

.submit-area {
  margin-right: 10px;
  vertical-align: middle;
  -webkit-padding-after: 100px;
  position: relative;
  bottom: 80px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.submit-area button {
  width: 49%;
  height: 60px;
  font-size: 25px;
  margin-right: 10px;
  margin-left: 10px;
}

.submit-area button:first-of-type {
  left: 0;
  vertical-align: middle;
  margin-left: 0px;
}

.submit-area button:last-of-type {
  right: 0;
  vertical-align: middle;
  margin-right: 0px;
}

/* Submit buttons without sidebar */
.submit-area-nosidebar {
  -webkit-padding-after: 100px;
  padding-bottom: 80px;
  margin-left: 10px;
  margin-right: 10px;
  bottom: 80px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.submit-area-nosidebar[login=on], .submit-area[login=on] {
  padding-bottom: 0px;
  margin-left: -10px;
  margin-right: -10px;
}

.submit-area-nosidebar button {
  flex: auto;
  height: 60px;
  font-size: 25px;
  margin-right: 10px;
  margin-left: 10px;
}

/******************************************************************************/
/*  CONTEXT HELP AND OVERLAYS                                                 */
/******************************************************************************/
.selectedoverlay {
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #31C21D;
  z-index: 2;
  cursor: pointer;
}

#overlay, #instruction {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2;
  cursor: pointer;
}

/******************************************************************************/
/*  OVERRIDES FOR MOBILES AND TABLETS                                         */
/******************************************************************************/
@media (max-width: 992px) {
  nav[left] {
    display: none;
  }

  heading {
    font-size: 32px !important;
  }

  .submit-area {
    margin-left: 10px;
  }

  .submit-area-nosidebar button {
    height: 40px;
    font-size: 18px;
    margin-right: 10px;
    margin-left: 10px;
  }

  #context-help {
    position: absolute;
    top: 10%;
    left: 5%;
    right: 5%;
    font-size: 22px;
    color: white;
  }

  .context-help {
    position: absolute;
    top: 10%;
    left: 5%;
    right: 5%;
    font-size: 22px !important;
    color: white;
  }

  .usr-area-flex {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/******************************************************************************/
/*  OVERRIDES FOR DESKTOP                                                     */
/******************************************************************************/
/* if width is changed here it should be matched in closeSidebar() function */
@media (min-width: 993px) {

  /* button:hover {
    background-color: lightgrey !important;
    color: black;
  } */
  .submit-area {
    margin-left: 210px;
  }

  button[menu-button] {
    display: none !important;
  }

  nav[left] {
    display: block !important;
  }

  #context-help, #instruction {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 30px;
    color: white;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
  }

  .context-help {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 30px !important;
    color: white;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
  }
}

/******************************************************************************/
/*  INDICATORS                                                                */
/******************************************************************************/
.itm-submitted {
  background-color: #e68a00;
  cursor: pointer;
}

.itm-approved {
  background-color: #31C21D;
  cursor: pointer;
}

.itm-provisional {
  background-color: #0066ff;
  cursor: pointer;
}

/******************************************************************************/
/*  TABLES                                                                    */
/******************************************************************************/
table.fixed {
  table-layout: fixed;
  letter-spacing: .25px;
  border-collapse: collapse;
  width: 100%;
}

th {
  text-align: left;
  height: 30px;
  font-size: 18px;
  letter-spacing: 1px;
  font-style: normal;
  font-family: "Arial";
  color: white;
  font-weight: bold;
  padding-left: 8px;
  padding-right: 8px;
  border: solid var(--table-border) 1px;
  background-color: var(--main-theme-color);
}

td.label {
  height: 30px;
  font-size: 18px;
  font-style: normal;
  font-weight: bold;
  font-family: "Times New Roman";
  padding-left: 8px;
  padding-right: 8px;
  text-align: left;
  border: solid 1px var(--table-border);
  padding-top: 2px;
  color: var(--label-text);
  background-color: var(--label-background);
  vertical-align: top;
}

td.sublabel {
  height: 26px;
  max-height: 100%;
  font-size: 16px;
  font-style: normal;
  font-family: "Garamond";
  font-weight: bold;
  padding-left: 4px;
  padding-right: 4px;
  text-align: left;
  border: solid 1px var(--table-border);
  padding-top: 2px;
  color: var(--label-text);
  background-color: var(--label-background);
  vertical-align: middle;
}

span.opt-note {
  font-size: 14px;
  font-family: Helvetica;
  font-weight: lighter;
  font-style: italic;
}

td.field {
  height: 26px;
  font-size: 17px;
  font-style: normal;
  font-weight: normal;
  font-family: "Tahoma";
  padding-left: 8px;
  padding-right: 8px;
  text-align: left;
  border: solid var(--table-border) 1px;
  padding-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  color: var(--field-text);
  /* word-wrap: break-all; */
  text-overflow: ellipsis;
}

td.field[subtype=btn-field] {
  height: 56px;
}

td.field[subtype=user-input] {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

td.field[do-wrap] {
 word-wrap: break-all;
 white-space: normal !important;
}

/******************************************************************************/
/*  FORMS                                                                     */
/******************************************************************************/
input.field {
  height: 40px;
  font-size: 25px;
  max-width: 100%;
  width: 100%;
  font-style: normal;
  font-weight: normal;
  font-family: "Liberation Mono";
  padding-left: 8px;
  padding-right: 8px;
  padding-top: 5px;
  text-align: left;
  border: none;
  white-space: nowrap;
  overflow: hidden;
  background-color: var(--background);
  color: var(--field-text);
  /* word-wrap: break-all; */
  text-overflow: ellipsis;
  box-sizing: border-box;
}

textarea {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--background);
  color: var(--field-text);
  padding: 8px;
  font-family: "Tahoma";
  font-size: 16px;
}


input.field[border], textarea[border] {
  border: solid #bfbfbf 1px;
}

input.field[label=above-stack] {
  margin-bottom: 18px;
}

/******************************************************************************/
/*  IMAGES                                                                    */
/******************************************************************************/
img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

img.thumbnail {
  width: auto;
  height: auto;
  max-width: 130px;
  max-height: 52px;
  padding: 0px;
  object-fit: contain;
}

.image_box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.image_box[logo] {
  max-width: 100px;
  max-height: 100px;
  padding: 16px;
  margin: auto;
}

.image_label {
  width: auto;
  text-align: justify;
  padding-left: 10px;
  padding-right: 10px;
}

.image-title {
  padding-left: 10px;
  margin: 0px;
}

/******************************************************************************/
/*  SWITCH STYLE CHECKBOX                                                     */
/******************************************************************************/
/* 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;
}

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

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

input:checked+.slider {
  background-color: var(--radio-selected);
}

input:focus+.slider {
  box-shadow: 0 0 1px var(--radio-selected);
}

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

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

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

/******************************************************************************/
/*  CENTRED BOXES                                                             */
/******************************************************************************/
.v-wrap {
  height: 100%;
  white-space: nowrap;
  text-align: center;
}

.v-wrap:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 0;
  margin-right: -.25em;
  height: 100%;
}

.v-box {
  display: inline-block;
  vertical-align: middle;
  white-space: normal;
  min-width: 300px;
  max-width: 600px;
}

blink {
  animation: blinker 1.2s linear infinite;
  color: #FF0000;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

.blink-one {
  animation: blinker-one 2s linear infinite;
}

@keyframes blinker-one {
  0% {
    opacity: 0;
  }
}

.blink-two {
  animation: blinker-two 2.8s linear infinite;
}

@keyframes blinker-two {
  100% {
    opacity: 0;
  }
}

/******************************************************************************/
/*  PROGRESS BAR                                                              */
/******************************************************************************/
.progress-bar {
  height: 35px;
  width: 100%;
  border: solid darkblue 2px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: lightblue;
  display: flex;
  align-items: center;
  transition: width 0.25s;
}

.progress-bar-text {
  margin-left: 10px;
  font-weight: bold;
}

/******************************************************************************/
/*  DROP DOWN LIST                                                            */
/******************************************************************************/
.ddl {
 width: 100%;
 height: 35px;
 font-weight: bold;
 font-size: 18px;
}

/******************************************************************************/
/*  CUSTOM RADIOBUTTON                                                        */
/******************************************************************************/
radiobutton {
  height: 60px;
  min-height: 50px;
  min-width: 160px;
  width: 100%;
  ;
  border: 1px solid lightgrey;
  font-weight: bold;
  font-size: 25px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

@media (max-width: 600px) {
  radiobutton {
    font-size: 18px !important;
  }
}

.opt-on {
  background-color: var(--radio-selected);
  color: white;
  z-index: 1;
}

.opt-off {
  background-color: #e6f5ff;
  color: black;
}

.opt {
  margin-top: 10px;
  margin-bottom: 10px;
}

/******************************************************************************/
/*  SIGNATURE PANEL                                                           */
/******************************************************************************/
*,
*::before,
*::after {
  box-sizing: border-box;
}

.signature-pad {
  position: relative;
	margin-top: 70px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  font-size: 10px;
  width: 100% !important;
  height: 100% !important;
  max-width: 700px !important;
  max-height: 460px !important;
  border: 1px solid var(--table-border);
  /*border: 1px solid #e8e8e8;*/
  background-color: var(--background);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.08) inset;
  border-radius: 4px;
  padding: 16px;
}

.signature-pad::before,
.signature-pad::after {
  position: absolute;
  z-index: -1;
  content: '';
  width: 40%;
  height: 10px;
  bottom: 10px;
  background: transparent;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}

.signature-pad::before {
  left: 20px;
  -webkit-transform: skew(-3deg) rotate(-3deg);
  transform: skew(-3deg) rotate(-3deg);
}

.signature-pad::after {
  right: 20px;
  -webkit-transform: skew(3deg) rotate(3deg);
  transform: skew(3deg) rotate(3deg);
}

.signature-pad--body {
  position: relative;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  border: 1px solid var(--table-border);
  border-radius: 4px;
}

.signature-pad--body.empty {
  background-color: #333;
}

.signature-pad--body canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset;
}

/******************************************************************************/
/*  NUMBER SPINNER                                                            */
/******************************************************************************/
.spinnerbtn {
  margin-top: 0px !important;
	max-width: 40px;
	width: 40px;
	max-height: 40px;
	height: 40px;
	background: var(--radio-selected);
	font-weight:bold;
	font-size: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
  color: black !important;
}

.increment {
	border: none;
}

.increment:hover {
	border: none;
}

.disabled {
	border: none;
  color: grey !important;
  background: lightgrey;
}

.spinval {
	max-width:60px;
  width: 50px;
  height: 40px;
  font-weight: bold;
  font-size: 30px;
}

.spinval:disabled {
	color: black;
}

.spinner {
	display: flex;
	padding-right: 0px !important;
	padding-left: 0px !important;
	margin-left: 0px !important;
	margin-right: 0px !important;
  text-align: center;
}
