:root {
    --content-min-height: 200px;
    --sidebar-text-color: #005C00;
    --content-text-color: #380000;
    --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);
    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;
    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);
}

li {
    list-style-type:none;
    padding: 5px 0 0 0;
}

ul {
    padding: 0 0 0 20px;
}

#wrapper {
    width:100%;
    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);
}

#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;
}

@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);
    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;}

  
  
  