:root {
    --content-min-height: 200px;
    --sidebar-text-color: #004C00;
    --content-text-color: #150000;
    --content-height: calc(100dvh - 175px);
    --content-bg-color:#FAF9E8;
    --body-bg-color:#E5F0FA;
    --content-link-color: #27408B;
}

body {
    font-family:verdana, arial, helvetica;
    font-size:12pt;
    color:var(--content-text-color);
    margin:0;
    background-color:var(--body-bg-color);
}

#container {
    display:flex;
    flex-direction:column;
    min-width:650px;
}

#siteHeading {
    height:80px;
    border-style:solid;
    border-width:1px;
    border-color:#000;
    border-radius:15px;
    box-shadow: 4px 4px 4px #AAA;
    background-color:var(--content-bg-color);
    background-image:url('/images/bg2.jpg');
    margin: 5px 15px 10px 5px;
    padding: 5px 10px;
    display: flex;
    flex-direction: row;
}

#siteLogo {
    width: 100%;
}

/* #siteHeadingSpacer {
    width:100%;
} */

#siteGreeting {
    width:350px;
    display:flex;    
}

#siteGreeting span {
    align-self:flex-end;
    margin: 0 0 10px 0;
}

#midSection {
    display:flex;
    flex-direction:row;
    min-height:var(--content-height);
    width:100%;
}

#sidebar {
    border-style:solid;
    border-width:1px;
    border-color:#000;
    border-radius:15px;
    width:250px;
    min-width:36px;
    margin:5px 15px 5px 5px;
    color:var(--sidebar-text-color);
    box-shadow: 4px 4px 4px #AAA;
    padding:5px 10px;
    background-color:var(--content-bg-color);
    background-image:url('/images/bg2.jpg');
}

#sidebar #toggleSidebar {
  background-color:var(--sidebar-text-color);
  color:#fff;
  font-size:29px;
  font-weight:bold;
  width:35px;
  height:35px;
  line-height:36px;
  text-decoration:none;
  border-radius:10px;
  box-shadow:2px 2px 2px #AAA;
  text-align:center;
  display:inline-block;
}

#sidebar li a {
  background-color:var(--content-link-color);
  color:#fff;
  font-size:14px;
  font-weight:bold;
  width:175px;
  height:35px;
  line-height:36px;
  text-decoration:none;
  border-radius:10px;
  box-shadow:2px 2px 2px #AAA;
  text-align:center;
  display:inline-block;
  text-transform:uppercase;
}

li {
    list-style-type:none;
    padding: 5px 0 0 0;
}

ul {
    padding: 0 0 0 20px;
}

#wrapper {
    /* width:100%; */
    flex:1;
    display:flex;
    flex-direction:column;
    border-style:solid;
    border-width:1px;
    border-color:#000;
    border-radius:15px;
    padding:5px 10px;
    margin: 5px 15px 5px 0px;
    box-shadow: 4px 4px 4px #AAA;
    background-color:var(--content-bg-color);
    background-image:url('/images/bg2.jpg');
    overflow-x:auto;
}

#pageHeading {
    min-height: 40px;
    height: fit-content;
    width: 100%;
    border-style: solid;
    border-width: 0 0 2px 0;
    border-color:var(--sidebar-text-color);
    margin: 0 0 15px 0;
    display: flex;
    flex-direction:row;
    gap: 5px;
    padding: 0 0 5px 0;
}

#uiSearchContainer {
    width: 100%;
    border-style: solid;
    border-width: 0 0 2px 0;
    border-color:var(--sidebar-text-color);
    padding: 0 0 5px 0;
    margin: 0 0 15px 0;
}

@media only screen and (max-width: 830px) {
    #pageHeading {
        flex-wrap:wrap;
        height:fit-content;
    }
    #home {
        order: 1;
    }
    #nav {
        order: 2;
    }
    #heading {
        order: 3;
    }
}

#home {
    width:46px;
    min-width:46px;
    background-color:var(--content-link-color);
    color:#FFF;
    font-size:40px;
    font-weight:bold;
    line-height:30px;
    text-align:center;
    border-radius:10px;
    box-shadow: 2px 2px 2px #AAA;
    height:40px;
}

#home a {
    color:#FFF;
    text-decoration:none;
}

#heading {
    width:100%;
}

#nav {
    width:fit-content;
    display:flex;
    flex-direction:row;
    gap: 5px;
}

#nav div {
    width:46px;
    background-color:var(--content-link-color);
    color:#FFF;
    font-size:29px;
    font-weight:bold;
    line-height:36px;
    text-align:center;
    border-radius:10px;
    box-shadow: 2px 2px 2px #AAA;
    height:35px;
    padding:5px 0 0 0;
}

#nav div a {
    color:#fff;
    text-decoration:none;
}

#nav #new {
    width:46px;
    background-color:var(--sidebar-text-color);
}

#nav #first, #nav #prev, #nav #next, #nav #last {
    height:38px;
    padding:2px 0 0 0;
}

#nav #lock.unlocked {
    background-color:#800000;
    color:#fff;
}

#nav #lock.locked {
    background-color:var(--sidebar-text-color);
    color:#fff;
}

h1 {
    margin: 2px 0;
    color:var(--sidebar-text-color);
    font-size:20pt;
}

h2 {
    margin: 0;
    font-size:14pt;
    border-style:solid;
    border-width:2px 0;
    border-color:var(--sidebar-text-color);
    color:var(--sidebar-text-color);
}

h3 {
    margin:0;
    font-size:12pt;
    border-style:solid;
    border-width:2px 0;
    border-color:var(--sidebar-text-color);
    color:var(--sidebar-text-color);
}

#content {
    width:100%;
    height:100%;
    color:var(--content-text-color);
    margin:auto;
    
}

#content p {
    margin:0 0 15px 0;
}

#content a {
    color:var(--content-link-color);
    font-weight:bold;
}

.form {
    display:flex;
    flex-direction:row;
    gap:5px;
}

.form-column {
    display:flex;
    flex-direction:column;
    gap:6px;
}

.form-row {
    display:flex;
    flex-direction:row;
    gap: 6px;
}

.form-label {
    font-weight:bolder;
    color:#000;
}

.form-field input {
    border-style:solid;
    border-width:1px;
    border-color:#000;
    border-radius:5px;
}

.form-field input:focus {
    box-shadow: 0px 0px 0px 3px var(--sidebar-text-color);
}

#siteFooter {
    height:45px;
    border-style:solid;
    border-width:1px;
    border-color:#000;
    border-radius:15px;
    box-shadow: 4px 4px 4px #AAA;
    background-color:var(--content-bg-color);
    background-image:url('/images/bg2.jpg');
    margin: 10px 15px 10px 5px;
    padding: 5px 10px;
    text-align:center;
    font-weight:bold;
    line-height:45px;
}

/* Message Box */
#uiMessageBox {
    width:100%;
    border-style:solid;
    border-width:3px;
    color:#000;
    font-weight:bold;
    border-radius:6px;
    margin:0 0 10px 0;
    display:flex;
    align-items:center;
    height:60px;
  }
  
  #uiMessageBox.hidden {
    display:none;
  }
  
  #uiMessageBox.success {
    display:flex;
    background-color:#D6FAD6;
    border-color:#189A07;
  }
  
  #uiMessageBox.failure {
    display:flex;
    background-color:#FABDBD;
    border-color:#9A0718;
  }
  
  #uiMessage {
    max-height:60px;
    min-height:60px;
    overflow-y:auto;
  }
  
  #uiMessage.vert {
    width:calc(100% - 30px);
    padding-left:5px;
  }
  
  #uiCloseMessage.vert {
    width:30px;
    text-align:center;
  }
  
  #uiCloseMessage.vert A {
    text-decoration:none;
    color:#000;
    margin:auto 0 auto 0;
  }
  
  #uiMessageBox.success A {
    color:#004400;
  }
  
  #uiMessageBox.failure A {
    color:#440000;
  }

  div.uiSimpleDelete {
    border-radius: 4px;
  }
  
  div.uiSimpleDelete.red {
    color:#D00;
    background-color:transparent;
  }
  
  div.uiSimpleDelete.grey {
    color:#444;
    background-color:transparent;
  }

  .btnDelete{
    text-decoration: none;
    display: inline-block;
    min-width: 20px;
    height: 20px;
    padding: 2px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  }

  div.addNew{
    width:85px; 
    margin: 5px 0;
    font-size: 15px; 
    background: linear-gradient(90deg, rgba(48, 88, 24, 1) 75%, #448F01 15%);
    box-shadow: 4px 4px 4px #000;
    border: 0;border-radius: 0.188rem;
    padding: 5px 50px 5px 10px;
    position: relative;
  }
  
  div.addNew:after{
    font-size: 20px;
    font-weight: bolder; 
    content: "\002B";
    position: absolute;
    top:2px;
    right:10px;
  }
  
  div.addNewDisabled{
    width:85px;
    margin: 5px 0;
    font-size: 15px; 
    background: linear-gradient(90deg, #333 75%, #5d5d5d 15%);
    box-shadow: 4px 4px 4px #000;
    border: 0;
    border-radius: 0.188rem;
    padding: 5px 50px 5px 10px;
    position: relative;
    overflow: hidden;
    pointer-events: none;
    cursor: default;
  }
  
  div.addNewDisabled:after{
    font-size: 20px;
    font-weight: bolder; 
    content: "\002B";
    position: absolute;
    top:2px;
    right:10px;
  }

  .btnAddNew{
    text-decoration: none;
    display: inline-block;
    min-width: 40px;
    height: 20px;
    padding: 2px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  }
  
  div[data-type='checkbox'], td[data-type='checkbox'] {font-size:1.2em;}

  .uiFormBtnWrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 5px;
    flex-wrap: wrap;
  }

  input[type=search],input[type=password],input[type=text], select, textarea{
    padding: 4px;
    border: 1px solid #5b5b5b;
    border-radius: 6px;
    color: #000;
    background-color: #fff;
  }

  .blue {
    color:#fff;
    background-color:#014B9B;
    border-color:#0172C8 var(--blue) var(--blue) #0172C8;
  }
  
  .green {
    color:#fff;
    background-color:#305818;
    border-color:#93AC84 #0F2800 #0F2800 #93AC84;
  }
  
  .red {
    color:#fff;
    background-color:#9A0718;
    border-color:#F68A8A #55011C #55011C #F68A8A;
  }
  
  .grey {
    color:#fff;
    background-color:#444444;
    border-color:#999 #000 #000 #999;
  }

  #content div > a.textbtn{
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    max-width: 100%;
    height: 34px;
    padding: 0px 10px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  }

  .left, .middle, .right, .all {
    border-style: outset;
    border-width: var(--bar-border-width);
  }
  
  .left {
    border-radius:6px 0 0 6px;
  }
  
  .middle {
    border-radius:0px;
  }
  
  .right {
    border-radius:0 6px 6px 0;
  }
  
  .all {
    border-radius:6px 6px 6px 6px;
  }

  .pagination {
    margin: 5px 0px 5px;
    user-select: none;
}

.pagination li {
    text-align: center;
    display: inline-block;
    margin: 5px;
    padding:0;
    box-shadow: 0 5px 25px rgb(1 1 1 / 10%);
}

#content .pagination li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 25px;
}

.current-page:hover, .dots:hover {
    background: #0066cc;
}

.first-page, .previous-page, .next-page, .last-page {
    background: #0066cc;
    border: 1px solid #fff;
    width: 50px;
    border-radius: 5px;
    cursor: pointer;
}

.activepag {
    background: #0066cc;
    border: 1px solid #fff;
}

.current-page, .dots {
    background: #0088cc;
    width: 30px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #fff;
}

.disablepag {
    background: #444444;
    color: #000;
    pointer-events: none;
    cursor: default;
}

.tableHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selectContainer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-weight: bolder;
}

.searchContainer {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    font-weight: bolder;
}

#content .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {
    color: #ffffff;
    text-decoration: none;
}
#content .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited, a.ui-button, a:link.ui-button, a:visited.ui-button, .ui-button {
    color: #454545;
    text-decoration: none;
}
#content .ui-widget-header a {
    color: #333333;
}
#content .ui-widget-content a {
    color: #333333;
}