
/* General Reset */

html, body { font-size: 12px; line-height: 150%; font-family: Arial; width: 100%; }
div, span, nav, iframe, h1, h2, h3, h4, h5, h6, p, select, textarea, input, a, img, ol, ul, li, form, table, tr, th, td { font: inherit; overflow: visible; }
html, body, div, span, nav, iframe, h1, h2, h3, h4, h5, h6, p, select, textarea, input, button, a, img, ol, ul, li, form, table, tr, th, td
  { margin: 0; padding: 0; border: none; outline: 0; border-style: none; text-indent: 0; white-space: normal; content: normal;
    vertical-align: top; text-align: left; text-decoration: none; height: auto; text-indent: 0; table-layout: auto; }
table, div, form { height: auto; width: auto; table-layout: fixed; background-color: transparent; vertical-align: top;
                   white-space: normal; word-wrap: break-word; border-collapse: collapse; border-spacing: 0; }
ol, ul { list-style: none; }
a:hover { outline-style: dotted; outline-width: 1px; cursor: pointer; }
h1, h2, h3, h4, h5, h6, th { font-weight: bold; }

/* Input Reset */

input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], input[type="month"], textarea, select
  { border-width: 1px; border-style: inset; text-align: left; vertical-align: top; }
select, option { color: black; background: #FFFFFF; padding: 2px 3px; }
textarea, input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], input[type="month"] { padding: 2px 3px; }
select { overflow-x: hidden; overflow-y: scroll; }
input[type="checkbox"] { margin-top: 2px; margin-bottom: -2px; }

/* Button Reset */

input[type="button"], input[type="submit"], input[type="reset"], button
  { padding: 3px 5px; text-align: center; vertical-align: middle; line-height: inherit;
    border: none; background: white; border-radius: 8px; color: black; }

/*   CMS Specific   */

:root {
  --main-bg-color: #CDEEE7;
  --main-text-color: #3C3C3B;
  --main-active-color: #00BD9D;
  --menu-height: 52px;
/*  --dark-background: #3C3C3B;  */
  --dark-background: #8D709F;
/*  --dark-background: #3C3C9F;  */
  --small-logo-size: 70px;
  --side-menu-width: 120px;
/*  --main-cms-logo: url('/main/image/labournet_logo.png');  */
  --main-cms-logo: url("data:image/svg+xml,<svg viewBox='0 0 100 30' xmlns='http://www.w3.org/2000/svg'><text style='font: 20px sans-serif; fill: white; font-weight: bold;' x='0' y='22'>CMS Test</text></svg>");
/*  --main-cms-logo: url("data:image/svg+xml,<svg viewBox='0 0 100 30' xmlns='http://www.w3.org/2000/svg'><text style='font: 20px sans-serif; fill: white; font-weight: bold;' x='0' y='22'>CMS Dev</text></svg>");  */
}

html, body { color: var(--main-text-color); background: var(--main-bg-color); }
body { font-family: Arial; color: var(--main-text-color); text-align: center; font-weight: normal; }
hr { border: none; border-top: 3px double var(--main-active-color); }
img.logo { position: absolute; left: calc(calc(100% - var(--small-logo-size)) / 2); bottom: 25px; z-index: 0; width: var(--small-logo-size); height: var(--small-logo-size); }
table.main_table { width: 100%; height: 100%; }
td.main_menu { height: var(--menu-height); background: white; }
col.side_menu, td.side_menu  { min-height: 0; height: calc(100% - var(--menu-height)); width: var(--side-menu-width); background: var(--dark-background); }
col.main_frame, td.main_frame { min-height: 0; height: calc(100% - var(--menu-height)); width: calc(100% - var(--side-menu-width)); }
iframe.side_menu, iframe.main_frame { width: 100%; height: 100%; overflow-y: scroll; overflow-x: hidden; }
.client_docs_div { text-align: left; }
.filesize { font-size: 0.7em; color: #BB0; }
DIV.WARN
  { display: block; border: 1px solid outset; height: 3em; background: #acacac; color: #000; text-decoration: none;
    font: 1.2em Arial, helvetica, "sans serif"; font-weight: bold; text-align: center; margin: 15px; height: auto; }
.ui-autocomplete-loading { background: white url("/main/image/ui-anim_basic_16x16.gif") right center no-repeat; }
.ui-menu-item { background: white url("/main/image/RedCross.png") right center no-repeat; padding: 2px; }
.emphasize    { font-weight: bold; color: red; }
option.opth1 { background-color: #BBB; font-weight: bold; color: black; }
option.opth2 { background-color: #CCC; font-weight: bold; color: black; }
option.opth3 { background-color: #DDD; font-weight: bold; color: black; }
option.opth4 { background-color: #EEE; font-weight: bold; color: black; }
select option:checked { color: white; background-color: var(--main-active-color); }
a { color: var(--main-text-color); }
input[type="checkbox"] { accent-color: white; }
input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover, button:hover,
input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, button:active
  { background: var(--dark-background); color: var(--main-active-color); border-radius: 4px; cursor: pointer; }

/* Table Regions */

.paneltitle, .panelbuttons, .panellabel, .panelcaption, .search { vertical-align: middle; }
.paneltitle, .panelbuttons { background: var(--main-active-color); color: white; text-align: center; margin: 2px; padding: 5px; }
.paneltitle       { font-size: 18px; font-weight: bold; }
.panellabel       { text-align: right; font-weight: bold; white-space: nowrap; }
.panelcaption     { text-align: center; font-weight: bold; white-space: nowrap; }
.panelbuttons     { font-size: 14px; font-weight: normal; }
.blockend         { border-bottom-width: 1px; border-bottom-style: solid; }
.colend, .colhead { border-right: 1px solid var(--main-bg-color); }
.colend.colhead   { border-right: 2px inset var(--main-bg-color); }
.colhead          { padding: 2px; font-weight: bold; background: var(--main-active-color); color: white; border-bottom: 1px solid var(--main-active-color); }
.dormant          { text-decoration: line-through; }
.disabled         { text-decoration: line-through; }
.clickable        { cursor: pointer; }
.clickable:hover, .clickable:active { outline-style: dotted; outline-width: 1px; }
tr.clickable:hover, tr.clickable:active { background-color: white; }

/*   Bullet and Numbered Lists   */

ol.list, ul.list { list-style-position: inside; margin-left: 20px; }
ol.list { list-style-type: decimal; }
ul.list { list-style-type: disc; }
ol.list ol.list { list-style-type: lower-alpha; }
ul.list ul.list { list-style-type: circle; }
ol.list ol.list ol.list { list-style-type: lower-roman; }
ul.list ul.list ul.list { list-style-type: square; }

/*   Main Menu   */

nav.mainmenu li, nav.sidemenu li {
  color: white;
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  line-height: 30px;
  font-family: sans-serif;
  font-weight: normal;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  outline: none;
  white-space: nowrap;
  transition: all 0.3s ease-in-out;
}

nav.mainmenu {
  width: 100%;
  height: 100%;
  background: var(--dark-background);
  background-size: 120px;
  background-position: 30px 50%;
  background-repeat: no-repeat;
  background-image: var(--main-cms-logo);

  ul {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: right;
    box-sizing: border-box;

    li {
      margin: 0 2em;
      padding: 0.5em 0;
      border-style: solid;
      border-width: 3px 0;
      border-color: transparent;
    }

    li:hover {
      color: var(--main-active-color);
      border-color: transparent transparent var(--main-active-color) transparent;
    }

    ul {
      width: max-content;
      visibility: hidden;
      display: flex;
      flex-direction: column;
      position: absolute;
      padding: 0 1em;
      right: 0;
      z-index: 700;
      top: calc(100% + 12px);
      background: var(--dark-background);
      border-radius: 0.25em;
      border: 0 solid transparent;

      li {
        width: 100%;
        margin: 0;
        padding: 0.25em 0;
        border-style: solid;
        border-width: 0 0 1px 0;
        border-color: #EEE;
        transition: unset;
      }

      li:last-child {
        border-width: 0 0 0 0;
      }

      li:hover {
        color: #00BD9D;
      }

      ul {
        top: 0;
        right: calc(100% + 24px);
      }
    }
  }
}
nav.mainmenu ul ul::before {
  content: "";
  position: absolute;
  height: 12px;
  width: 100%;
  top: -12px;
  left: 0;
  background: transparent;
  background-position: calc(100% - 12px) 0;
  background-repeat: no-repeat;
  background-size: 13px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path style='stroke-width: 0; fill: rgb(60, 60, 59);' d='M 1,12 L 6,1 L 12,12 Z'/></svg>");
}
nav.mainmenu ul ul ul::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 24px;
  top: 0;
  left: 100%;
  background: transparent;
  background-position: 0 12px;
  background-repeat: no-repeat;
  background-size: 13px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path style='stroke-width: 0; fill: rgb(60, 60, 59);' d='M -1,1 L 12,6 L -1,12 Z'/></svg>");
}
nav.mainmenu li:hover ul { visibility: visible; }
nav.mainmenu li:hover li ul { visibility: hidden; }
nav.mainmenu li:hover li li ul { visibility: hidden; }
nav.mainmenu li li:hover ul { visibility: visible; }
nav.mainmenu li li:hover li ul { visibility: hidden; }
nav.mainmenu li li li:hover ul { visibility: visible; }

nav.sidemenu {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--dark-background);

  ul {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: left;
    box-sizing: border-box;
    background-position: 50% calc(100% - 25px);
    background-repeat: no-repeat;
    background-size: var(--small-logo-size);
    background-image: url('/main/image/labournet_person.png');

    li {
      color: white;
      border-style: solid;
      border-color: #AAA;
      border-width: 0 0 1px 0;
      background: var(--dark-background);
    }

    li:first-child {
      border-width: 1px 0 1px 0;
    }

    li:hover {
      color: var(--main-active-color);
    }
  }
}

/*   General Table Styles   */

td.grouptopleft,    td.grouptopcenter,    td.grouptopright    { border-top-color: var(--main-active-color);    border-top-style: double;    border-top-width: 3px;    }
td.grouptopleft,    td.groupmiddleleft,   td.groupbottomleft  { border-left-color: var(--main-active-color);   border-left-style: double;   border-left-width: 3px;   }
td.grouptopright,   td.groupmiddleright,  td.groupbottomright { border-right-color: var(--main-active-color);  border-right-style: double;  border-right-width: 3px;  }
td.groupbottomleft, td.groupbottomcenter, td.groupbottomright { border-bottom-color: var(--main-active-color); border-bottom-style: double; border-bottom-width: 3px; }

/*   List Table Styles   */

table.list { border: none; margin: 2px; width: calc(100% - 6px); min-width: 500px; }
table.list td.totals  { border-top: 1px solid #cfcfcf; border-bottom: 3px double #cfcfcf; }
table.list td.label   { text-align: right;  }
table.list td.num     { text-align: right;  }
table.list td.flag    { text-align: center; }
table.list td.time    { text-align: center; }
table.list td         { padding: 0 2px 0 2px; }
table.list td.search  { text-align: center; padding: 3px; }
table.list td.panelbuttons { padding: 5px; }

/*   Panel Table Styles   */

table.panelouter { border: none; margin: 3px; width: calc(100% - 6px); min-width: 500px; border-radius: 0.5em; }
table.panelinner { border: 0; padding: 2px; margin: 0; width: 100%; }
table.panelouter td.panelouter { vertical-align: top; }
table.panelouter td.panellabel { text-align: right; font-weight: bold; vertical-align: middle; }
table.panelouter td.panelcaption { text-align: center; font-weight: bold; vertical-align: middle; }
table.panelinner td { padding: 0 2px 0 2px; min-height: 2em; }

/*   Tree Node Styles   */

.Tree {
  position: relative; top: 0; left: 0; margin: 0; padding: 0;
  font-size: 8px; font-family: Arial; text-align: left; white-space: nowrap;
  display: inline; empty-cells: show; overflow: hidden; vertical-align: middle;
  border-width: 0; border-spacing: 0; border-style: none; border-color: #888; border-collapse: collapse;
}
div.Tree { height: 20px; font-size: 10pt; display: block; margin: 0; padding: 0; border: 0; }
div.Level1 { text-indent:   0px; }
div.Level2 { text-indent:  15px; }
div.Level3 { text-indent:  55px; }
div.Level4 { text-indent: 110px; }
div.Level5 { text-indent: 150px; }
div.Level6 { text-indent: 190px; }
div.Level7 { text-indent: 230px; }
div.Level8 { text-indent: 270px; }
div.Level9 { text-indent: 310px; }
.drag * { pointer-events: none; }

img.TypeBox               { height: 16px; padding-top: 3px; padding-bottom: 1px; }
img.MinusBox, img.PlusBox { height: 13px; padding-top: 3px; padding-bottom: 4px; cursor: pointer; margin-left: 3px; }

span.TreeNodeCaption
  { box-sizing: border-box; height: 14px; margin: 1px 0 0 0; padding: 2px; border: 0; outline-color: #DDD;
    outline-style: none; vertical-align: top; line-height: 100%; display: inline-block; outline-width: 1px; text-indent: 0;}
input.TreeNodeCaption
  { font-size: 12px; font-weight: bold; height: 20px; margin: 0; margin-top: -4px; }

table.Line
  { box-sizing: border-box; height: 20px; width: 18px; margin: 0; padding: 0; border: 0; overflow: hidden; white-space: nowrap; table-layout: fixed;
    top: 0px; left: 0px; empty-cells: show; background-color: transparent; display: inline-table; vertical-align: top;
    border-spacing: 0; border-collapse: collapse; border-color: #FF0; border-style: none; text-indent: 0; }
table.Line td
  { margin: 0; padding: 0; border: 0; overflow: hidden; white-space: nowrap; font-size: 2px; line-height: 2px; text-indent: 0; height: 10px; }
table.Line td.Blank { border-bottom-width: 1px; border-bottom-style: none; }
table.Line td.Horz  { border-bottom-width: 1px; border-bottom-style: dotted; }
table.Line td.Down  { border-right-width: 1px; border-right-style: dotted; }

/*   Styles used for progress panels.   */

table.progress_panel { width: 100%; margin: 0; border: 0; padding: 0; table-layout: fixed; }
table.progress_panel > tr > td { padding: 0px 4px 0px 0px; }
div.progress_title { width: 100%; height: 40px; margin-top: 10px; font-size: 20px; text-decoration: underline; overflow: hidden; display: inline-block; }
div.progress_back { width: 100%; height: 20px; background: #BBB; margin: 1px; overflow: hidden;
                    border-radius: 5px; border-width: 1px; border-color: #EEE; border-style: inset; }
div.progress_bar  { width: 14px; height: 14px; background-color: #3F3F3F; margin: 2px;
                    border-radius: 4px; border-style: outset; border-width: 1px; border-color: #3F3F3F; }
div.progress_caption { z-index: 10; width: 100%; height: 100%; position: relative; padding: 3px 0; top: -20px;
                       color: white; font-weight: bold; background: transparent; text-align: center; }
div.progress_panel > input { float: right; }

/*   Styles used for progress panels.   */

.synch_container {
  overflow: auto;
  max-height: calc(100dvh - 170px);
  .not_sent     { display: flex; gap: 0.5em; color: gray; }
  .sent_error   { display: flex; gap: 0.5em; color: red; }
  .sent_success { display: flex; gap: 0.5em; color: blue; }
  .no_changes   { display: flex; gap: 0.5em; color: #08F; }
}

/*   Menu Buttons.   */

div.buttonmenu {
  position: absolute;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1em;
  top: 4px;

  input[type="button"]:disabled {
    color: var(--main-active-color);
    border-radius: 4px;
    cursor: pointer;
  }
}

/*   Booking Dialogs   */

.dialog-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: progress;
  font-size: 2em;
  color: #00B;
  text-align: center;
  padding-top: 4em;
  box-sizing: border-box;
  text-shadow: 1px 1px #EEE, -1px -1px #EEE, -1px 1px #EEE, 1px -1px #EEE;
}

/*   Popup Dialog   */

dialog {
  padding: 20px;
  color: #dcdcdc;
  border-radius: 20px;
  background: var(--main-bg-color);
}

dialog::backdrop {
  background: rgba(0,0,0,.5);
}

dialog:modal {
  width: min-content;
}

/*   Animations   */

.slideLeft {
  animation-name: slideLeft;
  animation-duration: 1s;
  visibility: visible;
}
@keyframes slideLeft {
  0%   { transform: translateX(50%);  }
  40%  { transform: translateX(-8%);  }
  60%  { transform: translateX(4%);   }
  80%  { transform: translateX(-2%);  }
  92%  { transform: translateX(1%);   }
  98%  { transform: translateX(0.5%); }
  100% { transform: translateX(0%);   }
}

/*   Map Controls   */

#pac-input {
  background-color: #fff; font-family: Roboto; font-weight: 300; margin-left: 12px; margin-top: 8px;
  padding: 0 11px 0 13px; border: 1px solid transparent; border-radius: 2px 0 0 2px; box-sizing: border-box; -moz-box-sizing: border-box;
  height: 32px; width: 400px; position: absolute; outline: none; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); text-overflow: ellipsis; }
#pac-input:focus { border-color: #4d90fe; }

/*   Hand held devices   */

@media screen and (min-resolution: 192dpi) {
  html, body { font-size: 20px; }
  .paneltitle { font-size: 24px; }
  .panelbuttons { font-size: 20px; }
  col.side_menu, td.side_menu { width: 130px; }
  col.main_frame, td.main_frame { width: calc(100% - 130px); }
  table.list, table.panelouter { min-width: 1200px; }
}