/* Global variables. */
:root,
::backdrop {
  --quickbox-topbar-height: 50px;
  --quickbox-footer-height: 64px;
  --quickbox-send-width: 66px;

  /* Set sans-serif & mono fonts */
  --sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
  "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica,
  "Helvetica Neue", sans-serif;
  --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
  --standard-border-radius: 5px;

  /* Default (light) theme */
  --bg: #fff;
  --primary-color: #2b5797;
}

/* Dark theme */
/*
@media (prefers-color-scheme: dark) {
  :root,
  ::backdrop {
    color-scheme: dark;
    --bg: #212121;
    --accent-bg: #2b2b2b;
    --text: #dcdcdc;
    --text-light: #ababab;
    --accent: #ffb300;
    --accent-hover: #ffe099;
    --accent-text: var(--bg);
    --code: #f06292;
    --preformatted: #ccc;
    --disabled: #111;
  }
 */

  /* Add a bit of transparency so light media isn't so glaring in dark mode */
  /*
  img,
  video {
    opacity: 0.8;
  }
}
*/

/* Reset */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
/*textarea:not([rows]) {
  min-height: 10em;
}*/

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

h1,h2,h3,h4,h5,h6, form {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}
/* End reset */

body {
  color: #000 !important;
  background-color: #f1f1f1;
}

html {
  font-family: var(--sans-font), sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit
}

body {
  margin: 0;
  min-height: 100vh;
}

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

.display-topleft {
  position: absolute;
  left: 0;
  top: 0
}

.display-topright {
  position: absolute;
  right: 0;
  top: 0
}

.display-bottomleft {
  position: absolute;
  left: 0;
  bottom: 0
}

.display-bottomright {
  position: absolute;
  right: 0;
  bottom: 0
}

.display-middle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%)
}

.display-left {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(0%, -50%);
  -ms-transform: translate(-0%, -50%)
}

.display-right {
  position: absolute;
  top: 50%;
  right: 0%;
  transform: translate(0%, -50%);
  -ms-transform: translate(0%, -50%)
}

.display-topmiddle {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0%);
  -ms-transform: translate(-50%, 0%)
}

.display-bottommiddle {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 0%);
  -ms-transform: translate(-50%, 0%)
}

.display-container:hover .display-hover {
  display: block
}

.display-container:hover span.display-hover {
  display: inline-block
}

.display-hover {
  display: none
}

.display-position {
  position: absolute
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0
}

ul li {
  padding: 8px 0px;
  border-bottom: 1px solid #ddd
}

ul li:last-child {
  border-bottom: none
}

.row:after, .row:before {
  content:"";
  display:table;
  clear:both
}

input, select, textarea{
  display: block;
  border: 1px solid #ccc !important;
  width: 100%;
  font: inherit;
  padding: 6px;
  border-radius: 4px;
}

textarea {
  overflow: auto;
}

button, .button {
  border: none;
  vertical-align: middle;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background-color: inherit;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 0.9rem;
  border-radius: 8px;
  line-height: 1.2rem;
}

button:hover, .button:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

button, .button {
  padding: 8px 16px;
}

button.main, .button.main {
  background-color: var(--primary-color);
  color: #ffffff;
}

button.secondary, .button.secondary {
  background-color: #4d4d4d;
  color: #ffffff;
}

button.delete, .button.delete {
  background-color: #aa2222;
  color: #ffffff;
}

button span, .button span {
  padding-left: 5px;
}

fieldset {
  border-radius: 8px;
}

.switch {
  float: left;
}

.switch input {
  width: auto;
}

input {
  padding: 2px;
  display: block;
  border: none;
  border-bottom: 1px solid #ccc;
  width: 100%
}

input[type='checkbox'],
input[type='radio'] {
  width: 18px;
  height: 18px;
  position: relative;
  accent-color: var(--primary-color);
}

input[type='text']{
  height: 37px;
  padding: 3px;
}

#fields-general {
  margin-top: 10px;
}

.label-checkbox {
  top: 4px;
  position: relative;
  margin-left: 4px;
}

.table-all {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  display: table;
  border: 1px solid #ccc
}

.bordered tr,
.table-all tr {
  border-bottom: 1px solid #ddd
}

.striped tbody tr:nth-child(even) {
  background-color: #f1f1f1
}

.table-all tr:nth-child(odd) {
  background-color: #fff
}

.table-all tr:nth-child(even) {
  background-color: #f1f1f1
}

.hoverable tbody tr:hover,
.ul.hoverable li:hover {
  background-color: #ccc
}

.centered tr th,
.centered tr td {
  text-align: center
}

.table-all td,
.table-all th {
  padding: 8px 8px;
  display: table-cell;
  text-align: left;
  vertical-align: top
}

.table-all th:first-child,
.table-all td:first-child {
  padding-left: 16px
}

th.operations, td.operations {
  text-align:right;
}

.card {
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12)
}

.hover-shadow:hover {
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19)
}

#page-main {
  transition: margin-left .4s;
  width: 100%;
}

#full-main-container:before,#full-main-container:after {
  content: "";
  display: table;
  clear: both;
  padding: 0.01em 4px;
}

#form-login-container {
  position: relative;
  min-height: 400px;
}

#form-login {
  background-color: var(--primary-color);
  color: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  border-radius: 4px;
  padding: 12px 24px !important;
}

#form-login img {
  height: 50px;
  padding-right: 10px;
}

#form-login h2 {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#form-login input {
  border: 1px solid #ccc !important
}

#form-login button {
  text-align: center;
  display: block;
  width: 100%;
  color: var(--primary-color);
  background-color: #ffffff;
  font-weight: bold;
  margin-top: 50px;
  margin-bottom: 20px;
}

#main-sidebar {
  width: 300px;
  z-index: 7;
  height: 100%;
  background-color: #fff;
  position: fixed !important;
  overflow: auto;
  color: #000 !important;
  animation: animateleft 0.4s;
  display: none;
}

#app-title {
  height: 50px;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  padding-left: 8px;
  width: 300px;
  display: flex;
  align-items: center;
}

#app-title a {
  color: #ffffff;
}

.logo {
  width: 32px;
  float: left;
  padding-right: 10px;
}

#app-title a span {
  vertical-align: top;
}

#main-sidebar-content h5 {
  font-size: 1rem;
  margin-top: 10px;
  margin-bottom: 10px;
}

#page-top-bar {
  display: flex;
  align-items: center;
  z-index: 1;
  height: 50px;
  background-color: var(--primary-color);
  position: fixed;
  width: inherit;
}

#page-title-container {
  margin-left: 8px;
  padding: 0;
  width: 100%;
  display: flex;
  align-items: center;
}

#page-title-container h5 {
  white-space: nowrap;
  overflow: hidden;
}

#page-title-title {
  font-size: 22px;
  color: #ffffff;
  flex-grow: 1;
}

#page-title {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

#search-bar {
  float: right;
}

#search-bar button, #search-bar .button, #top-toolbar .button {
  color: #ffffff;
}

#search-text {
  float: left;
  width: auto;
  padding: 4px;
}

.sidebar-block {
  padding: 4px;
}

.sidebar-block .menu-item .button {
  display: inline-block;
}

.sidebar-menu a {
  width: 100%;
  display: block;
  padding: 8px 16px;
  text-align: left;
  border: none;
  white-space: normal;
  float: none;
  outline: 0;
  font-size: 1rem;
}

#types_menu, #settings_menu {
  margin-left: 2px !important;
}

.types_menu, .settings_menu {
  float: right;
}

.item {
  margin-bottom: 10px;
}

.item-card {
  position: relative;
  background-color: #ffffff;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 10px;
  margin: 10px;
}

.menu-item-title:hover, #settings_menu a:hover{
  border-radius: 8px;
  background-color: var(--primary-color);
  color: #ffffff;
}

.accordion {
  cursor: pointer;
}

#page-content {
    padding-top: 60px;
    padding-left: 4px;
    padding-right: 4px;
}

#page-container {
  padding: 0.01em 4px;
}

#dashboard h5 {
  font-size: 1rem;
  color: var(--primary-color);
}

.tab-bar {
  color: #000 !important;
  background-color: #f1f1f1 !important;
  width: 100%;
  overflow: hidden;
}

.tab-button {
  margin-right: 6px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background-color: #ccc;
  cursor: pointer;
  padding: 6px 16px;
  float: left;
  width: auto;
  display: block;
  border-right: 1px solid #ccc !important;
  border-left: 1px solid #ccc !important;
  border-top: 1px solid #ccc !important;
  font-weight: bold;
}

.tab-button.active,
.tab-button:hover {
  background-color: #f1f1f1 !important;
}

.menu-item-title {
  overflow: hidden;
}

.menu-item-title a {
   text-align:left;
   width: 100%;
 }

.menu-item-action {
  float: right;
  width: 50px;
}

.menu-item-title a {
  font-size: 1rem;
}

.bar {
  width: 100%;
  overflow: hidden
}

.center .bar {
  display: inline-block;
  width: auto
}

.bar .bar-item {
  padding: 6px 8px;
  float: left;
  width: auto;
  border: none;
  display: block;
  outline: 0
}

.bar .button {
  white-space: normal
}

.bar-block .bar-item {
  width: 100%;
  display: block;
  padding: 8px 16px;
  text-align: left;
  border: none;
  white-space: normal;
  float: none;
  outline: 0
}

.bar-block.center .bar-item {
  text-align: center
}

.field {
  display:flex;
  align-items:center;
  flex-direction: row;
  margin-bottom: 5px;
}

.field-value {
  flex-grow:1;
  margin-right: 5px;
}

.field-buttons {
 width: 50px;
}

.field-opaque {
  opacity: 0.25;
}

.col,
.half,
.third,
.twothird,
.threequarter,
.quarter {
  float: left;
  width: 100%
}

.col.rest {
  overflow: hidden;
}

.col.s1 {
  width: 8.33333%
}

.col.s2 {
  width: 16.66666%
}

.col.s3 {
  width: 24.99999%
}

.col.s4 {
  width: 33.33333%
}

.col.s5 {
  width: 41.66666%
}

.col.s6 {
  width: 49.99999%
}

.col.s7 {
  width: 58.33333%
}

.col.s8 {
  width: 66.66666%
}

.col.s9 {
  width: 74.99999%
}

.col.s10 {
  width: 83.33333%
}

.col.s11 {
  width: 91.66666%
}

.col.s12 {
  width: 99.99999%
}

.ss-main {
  padding: 3px;
  height: 37px;
}

.ss-value {
  padding: 4px;
}

.ss-main .ss-values .ss-value .ss-value-text {
  font-size: 15px;
}

.ss-main .ss-values .ss-value {
  background-color: var(--primary-color);
}

.ss-content .ss-list .ss-option:hover,
.ss-content .ss-list .ss-option.ss-highlighted,
.ss-content .ss-list .ss-option:not(.ss-disabled).ss-selected {
  background-color:var(--primary-color);
}

#quickbox {
  position: fixed;
  display: none;
  width: 100vw;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ddd;
  z-index: 5;
}

#quickbox-title {
  display: flex;
  align-items: center;
  font-weight: bold;
  width:100%;
}

#quickbox-title-title {
  width: 100%;
  font-size: 22px;
}

#quickbox-close {
  float: right;
  padding-top:0;
  padding-bottom:0;
}

#quickbox-top-bar {
  color: #fff;
  background-color: var(--primary-color);
  height: var(--quickbox-topbar-height);
  font-size: 18px;
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.quickbox-row {
  border: 1px solid #cccccc;
  display: block;
  width: 100%;
  padding: 8px 16px;
  border-radius: 8px;
}

.quickbox-row:before {
  content: "";
  display: table;
}

.quickbox-row:after {
  content: "";
  display: table;
  clear: both;
}

#quickbox-content .button {
  padding: 6px 10px;
}

.quickbox-row .buttons {
  float: right;
  width: 32px;
}

.quickbox-row .note {
  overflow: hidden;
}

.quickbox-row {
  margin-top: 4px;
  margin-bottom: 4px;
  background-color: #fff;
}

#quickbox-notes div:nth-child(2n+1) {
  background-color: #fafafa;
}

#quickbox-footer {
  position:fixed;
  bottom:0;
  width:100%;
}

#quickbox-footer > form {
  margin:4px;
  border-radius: 8px;
  border:2px solid #999999;
  background-color: #999999;
}

#quickbox-content {
  height: calc(100vh - var(--quickbox-footer-height) - var(--quickbox-topbar-height));
  overflow: auto;
  display: flex;
  flex-direction: column-reverse;
  padding: 4px;
}

#quickbox-content .buttons :first-child {
  margin-bottom: 4px;
}

#quickbox-title-container {
  width: 100%;
  padding: 0;
  margin-left: 8px;
}

#quickbox-footer {
  padding: 2px;
}

#quickbox-footer > form > div {
  display:flex;
  align-items: center
}

#quickbox-footer:after, #quickbox-footer:before {
  content: "";
  display: table;
  clear: both;
}

#notesend {
  width: 50px;
}

#notesend button {
  cursor: pointer;
  padding: 14px 16px;
}

#notetext {
  padding-left: 2px;
  flex-grow: 1;
}

#notetext textarea {
  resize: none;
  padding: 0;
}

.hide,.hidden {
  display: none !important
}

.block,
.show {
  display: block !important
}

#item h5 {
  font-size: 18px;
}

#footer-navbar {
  display: flex;
  flex-direction: row;
  margin-bottom: 10px;
  margin-top: 10px;
  align-items: flex-start;
}

#footer-navbar button, #footer-navbar a {
  margin-right: 10px;
}

#footer-navbar span {
  margin-left: 5px;
}

dialog {
  border-radius: 8px;
  border-color: var(--primary-color);
  z-index:100;
}

dialog header {
  display: flex;
  align-items: center
}

dialog header h5 {
  flex-grow:1;
}

dialog header .close {
  text-align: end;
}

dialog::backdrop {
  opacity: 0.7;
}

dialog header {
  height: 40px;
  font-weight: bold;
}

dialog header h5 {
  margin-right: 40px;
  font-size: 16px;
}

dialog .content {
  clear: both;
  max-height:600px;
  overflow: auto;
}

dialog .content h5 {
  font-size: 16px;
}

#message {
  position: fixed;
  bottom: 5px;
}

#message p {
  padding: 0;
  margin: 0;
}

#dialog-confirm {
  min-width: 300px;
}

.show-large {
  display: none;
}

/* Extra small */
@media (max-width: 576px) {
  body.full {
    background-color: var(--primary-color);
  }

  body.full input {
    padding: 4px;
  }

  #form-login {
    width: 100%;
  }

  .table-all.responsive table,
  .table-all.responsive thead,
  .table-all.responsive tbody,
  .table-all.responsive th,
  .table-all.responsive td,
  .table-all.responsive tr {
    display: block;
  }

  .table-all thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .table-all.responsive tr {
    margin-bottom: 10px;
    border: 1px solid #ddd;
  }

  .table-all.responsive td {
    border: none;
    position: relative;
    padding-left: 30%;
  }

  .table-all.responsive td.no-label {
    padding-left: 6px;
  }

  .table-all.responsive td.title {
    color: #2b5797;
    font-weight: 400;
    font-size: 18px;
  }

  .table-all.responsive td:before {
    position: absolute;
    left: 6px;
    content: attr(data-label);
    font-weight: bold;
  }

  .table-all.responsive td.no-label:before {
    position: absolute;
    left: 6px;
    content: "";
    font-weight: bold;
  }

  .hide-xsmall {
    display: none !important
  }

  #footer-navbar span {
    display: none !important
  }
}

/* Small */
@media (min-width:577px) and (max-width: 767px) {
}

/* Minimum small */
@media (min-width:576px) {
  .col.half {
    width: 49.99999%;
  }
  .col.m6, .col.half:first-child {
    padding-right:10px;
  }
}

/* Max small */
@media (max-width: 767px) {
  /* The switch - the box around the slider */
  .switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
  }

  /* 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: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }

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

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

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

  .slider.round {
    border-radius: 24px;
  }

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

/* Medium */
@media (min-width:768px) and (max-width: 991px) {
  .col.m1 {
    width: 8.33333%
  }

  .col.m2 {
    width: 16.66666%
  }

  .col.m3,
  .quarter {
    width: 24.99999%
  }

  .col.m4,
  .third {
    width: 33.33333%
  }

  .col.m5 {
    width: 41.66666%
  }

  .col.m6,
  .half {
    width: 49.99999%
  }

  .col.m7 {
    width: 58.33333%
  }

  .col.m8,
  .twothird {
    width: 66.66666%
  }

  .col.m9,
  .w3-threequarter {
    width: 74.99999%
  }

  .col.m10 {
    width: 83.33333%
  }

  .col.m11 {
    width: 91.66666%
  }

  .col.m12 {
    width: 99.99999%
  }
}

/* Min medium */
@media (min-width: 768px) {
  #form-login{
    width: 600px;
  }

  .hide-medium {
    display: none !important
  }

  #quickbox {
    width: 400px;
    position: fixed;
    top: 54px;
    left: calc(100vw - 420px);
    background-color: #fff !important;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
  }
  #quickbox-top-bar {
    position: relative;
  }

  #quickbox-footer {
    position: relative;
  }

  #quickbox-content {
    height: calc(100vh - var(--quickbox-footer-height) - var(--quickbox-footer-height) - 42px);
  }

  .home-card-summary {
    height: 250px;
    overflow: auto;
  }
}

/* Large */
@media (min-width:992px) {
  dialog {
    max-width: 600px;
  }
  .col.l1 {
    width: 8.33333%
  }

  .col.l2 {
    width: 16.66666%
  }

  .col.l3 {
    width: 24.99999%
  }

  .col.l4 {
    width: 33.33333%
  }

  .col.l5 {
    width: 41.66666%
  }

  .col.l6 {
    width: 49.99999%
  }

  .col.l7 {
    width: 58.33333%
  }

  .col.l8 {
    width: 66.66666%
  }

  .col.l9 {
    width: 74.99999%
  }

  .col.l10 {
    width: 83.33333%
  }

  .col.l11 {
    width: 91.66666%
  }

  .col.l12 {
    width: 99.99999%
  }

  .hide-large {
    display: none !important;
  }

  .show-large {
    display: inline !important;
  }

  #main-sidebar {
    display: block !important;
  }

  .row > .half:first {
    padding-right: 4px;
  }

  .row > .half:nth-child(2) {
    padding-left: 4px;
  }

  #page-main {
    padding-left: 300px;
  }

  #page-top-bar {
    padding-right: 300px;
  }

  #quickbox-title-title {
    padding-left: 16px;
  }
}



