﻿

:root{ --tabswidth: 450px;         /* tabs width */
       --selecttablewidth: 420px;  /* selecttable width */
   
       --bcolour1: #fafbfc;        /* menu td background */
       --bcolour2: #ddd;           /* menu td hover background */
       --fcolour1: #010000;        /* menu a text */
       --fcolour2: #defc05;        /* menu a text selected */

       
       --fsizetd: 13px;            /* font size for text in td */
       --fsizetdtotal: 10px;       /* font size for text in td in total table */

       --fsizemessage: 13px;       /* font size for text in message div*/


       --uiwidgetfsize: 1em;       /* jq css relative fonts */
       --uiwidgetdpfsize: 0.8em;   /* jq css relative font - datepicker */

       --fsizemenu1: 15px;         /* font size for text in menu level 1 */
       --fsizemenu2: 15px;         /* font size for text in menu level 2 */
       --fsizemenu3: 13px;         /* font size for text in menu level 3 */

       --fsizehlabel: 15px;        /* font size header label */
       --fsizehtext: 15px;         /* font size header text */

       --fsizebutton: 15px;        /* font size button text */

       --fsizefooter: 15px;        /* font size footer text */
 
       --lmarginmenu1: 4px;        /* left margin for menu level 1 */
       --lmarginmenu2: 8px;        /* left margin for menu level 1 */
       --lmarginmenu3: 16px;       /* left margin for menu level 1 */

      --bpaddingmenu: 2px;         /* bottom padding for menu */

      --topheight: 120px;
      --buttonblockheight: 50px;
}

/* tabs stop wrapping */
#tabs .ui-tabs-nav { 
    white-space: nowrap;
    overflow:hidden } 

#tabs .ui-tabs-nav li { 
    display: inline-block;
    float:none;
    vertical-align: bottom; }

/* tabs height */
.ui-tabs .ui-tabs-nav li a {
    padding: 8px 8px !important; }

/* Highlight active tab */
#tabs .ui-state-active {
    background: var(--bcolour2) !important; }

/* Font Family and Sizes */

#login, #selectbuttone, #selectbuttons, #tabs, #tablelink, #menublock {
  font-family: Arial; }     
/*   Trebuchet MS,Tahoma,Verdana,sans-serif; */

#tableblock, #dialog-frm, #selecttable, #selectfilter, #inputtotals {
  font-family: Monospace; }   
/* font-family:Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace; */


/* override webkit colour */
a { color: var(--fcolour1); text-decoration: none; }

/* form fields do not inherit by default */
input, select, textarea {font-family:inherit;}

/* sets background colour and opacity for dialogs */
.ui-dialog {
     background-color: rgba(255,255,255,1); }

/* sets background colour and opacity for autocomplete */
.ui-autocomplete {
    background-color: rgba(255,255,255,1); }

/* sets background colour and opacity for datepicker */
.ui-datepicker {
    background-color: rgba(255,255,255,1); }

}
.ui-datepicker {
    /*background: transparent;*/
    background: var(--bcolour1);
}

/* buttonrow eliminate spaces between buttons and show horizontally */
.buttonrow {
      display: inline-block;
      float: left;
      /* border: 1px solid black; */
      font-size: 0; 
      margin: 0 0 0 0;
      padding: 0 0 0 0 ; }

/* header label */
.hlabel {
      text-align: left;
      margin-left: 5px;
      margin-right: 5px;
      margin-top: 2px;
      margin-bottom: 2px;
      padding: 0 0 0 0;
      font-size: var(--fsizehlabel);  
      font-weight: bold;
      white-space: nowrap; }

/* header text including select options */
.htext {
      text-align: left;
      margin-left: 5px;
      margin-right: 5px;
      margin-top: 2px;
      margin-bottom: 2px;
      padding: 0 0 0 0;
      font-size: var(--fsizehtext);  
      font-weight: normal; }

/* messagebox to change font colour in animate requires jquery colour plug in */
.messagebox {
      font-size: var(--fsizemessage);  
      background-color: yellow; 
      width : 220px;
      overflow : Hidden; }


/* onload message */
.onload {
      font-size: var(--fsizemessage);  
      background-color: green; 
      overflow : Hidden; }

/* Buttons (add/edit/etc.) */
.hbutton {
      display: block;
      text-align: center; 
      font-size: var(--fsizebutton);
      color: red;
      width: 60px;
      margin: 0 0 0 0;
      padding-bottom: 1;   
      padding-top: 0; }

.hbutton:disabled {
     background-color: red; }

/* Buttons (menu) */
.mbutton {
      display: block;
      text-align: center; 
      font-size: var(--fsizebutton);
      color: black;
      width: 60px;
      margin: 0 0 0 0;
      padding-bottom: 1;   
      padding-top: 0; }

/* Buttons (link) */
.lbutton {
      display: inline-block;
      text-align: center; 
      white-space: pre-wrap;
      word-wrap: break-word;
      font-size: var(--fsizebutton);
      color: green;
      width: 150px;
      margin: 0 0 0 0;
      padding: 1 0 1 0; }

.lbutton:disabled {
     background-color: green; }

/* Buttons (action) */
.abutton {
      display: inline-block;
      text-align: center; 
      word-wrap: break-word;
      font-size: var(--fsizebutton);
      color: blue;
      width: 200px;
      margin: 0 0 0 0;
      padding-bottom: 1;   
      padding-top: 0; }

.abutton:disabled {
     background-color: blue; }

/* Buttons (login) */
.loginbutton { 
      margin-left: 5px;
      margin-right: 5px; 
      display: block; }


/* applies to autocomplete list - needs ul for specificity */
ul.autocomp {
      text-align: left;
      font-size: var(--fsizetd);  
      font-weight: normal; }

.mainmenu {
  background-color: white;
  transition: all 0.5s linear; 
  /* border: 1px solid green; */ }

.mmbutton {
      display: inline-block;
      text-align: center; 
      word-wrap: break-word;
      font-size: var(--fsizebutton);
      color: blue;
      width: 200px;
      margin: 0 0 0 0;
      padding-bottom: 1;   
      padding-top: 0; }

.menu ul{
   margin:0 0 0 0;
   padding: 0 0 0 0;
   text-align: left;
}


.menuentry {
       list-style-type: none;
       border-style: none; 
       margin-left: 0 0 0 0 ;
       padding: 0 0 0 0;
       background-color: var(--bcolour1); }


/* menu on hover */
.menuentry.m3:hover { background: var(--bcolour2, black); }

/* menu when selected */
.menuentry.sel { background: var(--bcolour2) !important; }
a.sel { color: var(--fcolour2) !important; }


/* page no when selected */
.pageno.sel { background: var(--bcolour2) !important; }
a.sel { color: var(--fcolour2) !important; }


.checkbox {
	width: 50px;
	height: 12px;
	background: #555;
	border-radius: 3px; }


.hidden {
  display: none;
  visibility: hidden; }

.overlay {
  background: #fff;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  top: 0;
}

.login {
    position: absolute;
    left: 20%;
    top: 20%;
    margin:0 auto;
    background-color: #ddd;
    clear: left;
    padding: 1em;
    margin-bottom: 5px; }


.buttonblock {
  padding: 0 0 0 0; 
  margin: 0 0 0 0; 
  height: var(--buttonblockheight); }


#tablelink {
  padding: 0 0 0 0; 
  margin: 0 0 0 0 ; }


#menubutton {
  display: block;
  padding: 0 0 0 0; 
  margin: 0 0 0 0; }

#tabs {
    padding-top: 0px;
    padding-right: 0px;
    padding-left: 0px;
    padding-bottom: 0;
    height: var(--topheight); 
    width: var(--tabswidth); }


#selecttable { 
    float: left;
    vertical-align: top;
/*    border: 1px solid green; */
    padding: 0;
    margin: 0; 
    width: var(--selecttablewidth); }

#selectfilter { 
    float: left;
    vertical-align: top;
 /*   border: 1px solid blue; */
    padding: 0;
    margin: 0; 
    width: var(--selecttablewidth); }

#inputtotals {
  display: inline-block;
  padding 0 0 0 0; 
  margin: 0 0 0 0; 
  height: var(--topheight); }

.mainblock { 
    position: fixed; 
    padding: 0 0 0 0;
    margin: 0 0 0 0; }

.menu {
    float: left;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    background-color: var(--bcolour1); 
    font-size: var(--fsizetd); }


.menublock { 
    float: left;
    vertical-align: top;
    background-color: var(--bcolour1);
    padding: 0 0 0 0;
    margin: 0 0 0 0; }            

.tableblock { 
    float: left;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    vertical-align: top;
    overflow: auto; }

/* Modal Buttons */
    .selectbuttons { 
    float: left;
    vertical-align: top;
    border: 4px solid green;
    }


/* Empty div */
    .selectbuttone { 
    float: left;
    vertical-align: top;
    border: 4px solid green;
    }



p { margin: 0; padding: 0; }


  
li.menuentry.m1   {
      font-family: Arial;
      padding-bottom: var(--bpaddingmenu);
      font-weight: bold;
      margin-left: var(--lmarginmenu1);
      font-size: var(--fsizemenu1); }

li.menuentry.m2 { 
      font-family: Arial;
      padding-bottom: var(--bpaddingmenu);
      font-style: italic;
      margin-left: var(--lmarginmenu2);
      font-size: var(--fsizemenu2); }

li.menuentry.m3 {
      font-family: Arial;
      padding-bottom: var(--bpaddingmenu);
      margin-left: var(--lmarginmenu3);
      font-size: var(--fsizemenu3); }


li.menuentry.mnew {
      font-family: Arial;
      padding-bottom: var(--bpaddingmenu);
      list-style-type: none;
      margin-left: var(--lmarginmenu3);
      background: yellow;
      font-size: var(--fsizemenu3); }

h1 {
    font-size:1.875em; /* 16x.875=14 */
    text-align:center;
    color: #fff;
}

ul.mainmenu {
  list-style-type: none; /* Remove bullets */
  padding: 0; /* Remove padding */
  margin: 0px; /* Remove margins */ 
  border: 1px solid blue; }

li.mainmenu   {
      float: ;eft;
      font-family: Arial;
     /* padding-bottom: var(--bpaddingmenu); */
      padding-left: 5px; 
      font-weight: bold;
      font-size: var(--fsizemenu1); 
      border: none; }

.header1 A:link {text-decoration: none; color: black;}
.header1 A:visited {text-decoration: none; color: black;}
.header1 A:active {text-decoration: none; color: black;}
.header1 A:hover {text-decoration: underline; color: black;}



div#exp-footer-wrapper {
    width:100%;
    position:absolute;
    bottom:0;
    left:0;
    height:20px;
}

body>div#exp-footer-wrapper {
    position:fixed;
}

div#exp-footer {
    height:100px;
    margin:0 auto;
    height:50px;
    width:100%;
    margin:0;
    padding: 0.2em 0 0.2em 1em;
    color: #fff;
    text-shadow: rgba(0, 0, 0, 0.5) 4px 4px 1px;
    background-color: #0d3349;
    font-size: var(--fsizefooter); 
    border-radius: 15px 15px 0 0;
    -moz-border-radius: 15px 15px 0 0;
    -webkit-border-top-right-radius: 15px;
    -webkit-border-top-left-radius: 15px;

}




/** Fixture */

#exp-fixture {
	position: absolute;
	top: -10000px;
	left: -10000px;
}



/* Query Form */

table.queryform {
        float: left;
        margin: 0 0 0 0;
        border:1px solid green;
        border-collapse: collapse; }

.queryform td {
	border-top:1px solid #eef;
        border-left:1px solid #eef;
	border-right:1px solid #999;
	border-bottom:1px solid #999; 
        padding: 0 5 0 5; }

.queryform td input {
        width: 100%; }

.queryform td select {
        width: 100%; } 


/* TRBL */
div#helpheader {
  margin:2 2 2 2 ;
  padding: 15 2 15 2; 
  clear: both; }

div#helptable {
  clear: both; }

div#helpfooter {
  margin:2 2 2 2 ;
  padding: 15 2 15 2; 
  clear: both; }


/** Helpsheet **/

table.helpsheet {
        float: left;
        margin: 0 0 0 0;
        border:1px solid red;
        border-collapse: collapse; }

.helpsheet td {
	border-top:1px solid #eef;
        border-left:1px solid #eef;
	border-right:1px solid #999;
	border-bottom:1px solid #999; 
        padding: 0 5 0 5; }

.helpsheet td a:hover { background: var(--bcolour2, black); }
/* .menuentry.m3:hover { background: var(--bcolour2, black); } */
/** Datasheet **/

table.datasheet input[readonly] {
    margin: 0 0 0 0;
    font-family: inherit;
    font-size: var(--fsizetd);
    background-image: none; }

table.datasheet {
/*        float: left;   affects top */
        margin: 0 0 0 0;
        border-collapse: separate; } 

/* border:1px solid green; */

/* .datasheet tr { top: 0; } */

.datasheet th {
        position: sticky;
        top: 0; 
        box-shadow: 0 0 0 1px #eef; 
        font-weight:bold; 
        background-color:#ddd; } 
      
    
.datasheet td { 
        box-shadow: 0 0 0 1px #eef; } 

/*
        background-color:#ddd; }
	border-top:1px solid #eef;
        border-left:1px solid #eef;
	border-right:1px solid #999;
	border-bottom:1px solid #999;
	color:#003;
        font-weight:bold; }

.datasheet td {
	border-top:1px solid #eef;
        border-left:1px solid #eef;
	border-right:1px solid #999;
	border-bottom:1px solid #999; }

.datasheet td input {
	width:100%;
        padding: 1px;
        margin: 0 0 0 0;
        background:inherit; }

.datasheet td select {
      width:100%;
      border: 0;
      margin: 0 0 0 0;
      background:inherit; }
*/



/* Total Values */

table.inptotals {
      margin:0 auto;
      table-layout: fixed;
      width: 100%;
      float: left;
      margin-bottom: 1px; 
      border:1px solid green; }

.inptotals th {
	background-color:#ddd;
	border-top:1px solid #eef;
        border-left:1px solid #eef;
	border-right:1px solid #999;
	border-bottom:1px solid #999;
	color:#003;
	font-size: var(--fsizetdtotal);
	font-weight:bold; 
        white-space: nowrap; }

.inptotals td {
	border-top:1px solid #eef;
        border-left:1px solid #eef;
	border-right:1px solid #999;
	border-bottom:1px solid #999; 
	font-size: var(--fsizetdtotal);
        white-space: nowrap; }

/* Info table */

table.infotable {
      margin:0 auto;
      table-layout: fixed;
      width: 100%;
      float: left;
      margin-bottom: 1px; 
      border:1px solid red; }

.infotable td {
	border: 0 0 0 0;
        padding: 0 0 0 0;
        margin: 0 0 0 0;
	font-size: var(--fsizetd);
        white-space: nowrap; }

.infotable td input {
        width: 100%; 
        margin: 0 0 0 0;
        border-style: solid;
        border-width: 1px;
        padding: 1px; }        

.info p {
         white-space: nowrap; }

/* for span to set character width */
.tdX {
      text-align: left;
      margin: 0 0 0 0;
      padding-left:0px;
      padding-right:0px;
      border: 1 1 1 1;
      font-size: var(--fsizetd); }

/* for span to set character width for totals */
.tdXT {
      text-align: left;
      margin: 0 0 0 0;
      padding-left:0px;
      padding-right:0px;
      border: 0 0 0 0;
      font-size: var(--fsizetdtotal); }

.tdL {
      text-align: left;
      margin: 0 0 0 0;
      padding-left:2px;
      padding-right:2px;
      border: inherit;
      font-family: inherit;
      font-size: var(--fsizetd);
      background:inherit; }

.tdLB {
      text-align: left;
      margin: 0 0 0 0;
      padding-left:2px;
      padding-right:2px;
      font-weight:bold;
      border:inherit;
      font-size: var(--fsizetd);
      background:inherit; 
      white-space: nowrap; }

.tdC {
      text-align: center; 
      margin: 0 0 0 0;
      padding-left:2px;
      padding-right:2px;
      border: inherit;  
      font-size: var(--fsizetd);
      background:inherit; }

.tdR {
      text-align: right; 
      padding-left:2px;
      padding-right:2px;
      border:inherit;
      font-size: var(--fsizetd);
      background:inherit; }

/* with th sticky position change to border, this is required to keep input within td */
input {
      width: 100%;
      -moz-box-sizing: border-box;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      padding: 1px; }


/* sort buttons to match th height */
button.bsort { 
      border-top: 0;
      border-bottom: 0;
      padding-bottom: 0;
      padding-top: 0;  
      margin 0 0 0 0;
      font-family: inherit; }

.cellL { text-align: left; }
   
.cellLB {
      text-align: left;
      padding-left:4px;
      padding-right:4px;
      font-weight:bold; }

.cellC { text-align: center; }

.cellR { text-align: right; }

.cellX { border:none; }


*/

.tables{ border-collapse:collapse; table-layout:fixed;}


td.td_highlight {background-color: yellow; 
                    inherit:border; }

td.td_error { box-shadow: 0 0 0 2px red; } 

input.inp_error { background-color: #F2D7D5; }
input.inp_warning { background-color: orange; }


/*td.td_error {border-color: red; } */

td.td_warning {border-color: orange; }


tr.trmodal_highlight td {background-color: blue; }



.b-filteractive {
            background: red;  }


dl.tableheader {
    margin: 0 0 0 10px; 
    padding: 0 0 0 0;
    }
 
dl.tableheader dt {
    background: #5f9be3;
    color: #fff;
    float: left; 
    font-weight: bold; 
    margin: 0 0 0 0; 
    padding: 0 0 0 0;  
    width: 200px; }
 
dl.tableheader dd {
    margin: 0 0 0 0; 
    padding: 0 0 0 10px; }


ol#toc {
    height: 2em;
    list-style: none;
    margin: 0;
    padding: 0;
}

ol#toc li {
    background: #bdf url(tabs.gif);
    float: left;
    margin: 0 1px 0 0;
    padding-left: 10px;
}

ol#toc a {
    background: url(tabs.gif) 100% 0;
    color: #008;
    float: left;
    line-height: 2em;
    padding-right: 10px;
    text-decoration: none;
}

ol#toc li.current {
    background-color: #48f;
    background-position: 0 -60px;
}

/*
div.content {
    border: #48f solid 3px;
    clear: left;
    padding: 1em;
}

div.content1 {
    border: #48f solid 3px;
    clear: left;
    padding: 1em;
}


.ui-combobox1 {
    position: relative;
    display: inline-block;
}
.ui-combobox {
    float:left;
}
.ui-combobox-toggle {
    position: absolute;
    top: 0;
    bottom: 0;
    margin-left: -1px;
    padding: 0;
    /* adjust styles for IE 6/7 */
    *height: 1.7em;
    *top: 0.1em;
}
.ui-combobox-input {
    margin: 0;
    padding: 0.3em;

}



/* Hides X on dialog */
.noclose .ui-dialog-titlebar-close {
    display:none; }

.tooltipsx  {
    display:none;
    background: red;
    font-size:12px;
    height:40px;
    width:80px;
    padding:20px;
    color:#fff; }


td div.info {
    display: none; }

/*
tbody tr:hover td div.info {
    display: inline-block; }
*/

.tooltip {
  background: #fff;
  padding: 0.2em 0.4em;
  border-radius: 6px;
  display: inline-block; }

.tooltip div {
 display: inline-block; }

.red {
  color: #F00; }

/* Div borders for testing */
/* ------------------------ */

/* div#content-wrapper {
   border: 1px solid green; } */

div#headerblock {
/*    border: 1px solid black; */
   background-color: var(--bcolour1); }

div#buttonblock {
/*  border: 1px solid black; */
  padding-left: 1; 
  padding-top: 1; }

/* div#menubutton {
   border: 1px solid blue; } */

/* div#tablelink {
   border: 1px solid red; } */

/* div#tabs {
   border: 1px solid black; } */

/* div#actionbox {
   border: 1px solid green;  } */

/* div#messagebox {
   border: 1px solid red;  } */

/* div#inputtotals {
   border: 1px solid yellow;  } */

/* div#mainblock {
   border: 1px solid red; } */

div#menublock {
  border: 1px solid blue; }

div#tableblock {
  border: 1px solid blue; }

/* div#info {
   border: 1px solid black; } */


