/* 
#82bb26  lighter green
#789f00  primary green
#5a7700  darker green 
#1e3b00  very dark green
*/ 

  /* set root/theme values */
  :root {
    --primary-color: #789f00;

    --selected-text-background-color: #789f00;
    --selected-text-color: white;
    --selected-option-background-color: #789f00;
    --selected-option-color:  white;
    --border-color: #789f00;
    --input-text-color: black;
    --input-background-color: white;
    --input-border-color: #789f00;
    --heading-background-color: #789f00;
    --heading-text-color: #fff;

    --header-text-color: #fff;
    --header-background-color: #1e3b00;
    --header-padding: 0; /* if using a sticky header */

/*    --body-top-margin: 60px; if using a sticky header */
    --body-text-color: #444;
    --body-background-color: #D5DECE;
    --body-link-color: #5a7700;  /* darker green */ 
    --main-background-color: white;

    --footer-text-color: #444;
    --footer-background-color: #D5DECE;
    --footer-link-color: white;

    --primary-button-background-color: #789f00;
    --primary-button-text-color: white;
    --primary-button-background-color-hover: #82bb26;
    --primary-button-light-text-color: white;
    
    --change-to-wide-display: 976px; /* set styles for narrow screen and use media query for wide screen styles */
    /* var() in media queries is not yet implemented - use above when implemented */
    
    --text-font: 'Barlow', sans-serif;
    --header-font: 'Barlow Condensed', sans-serif;
    --button-font: 'Barlow Condensed', sans-serif;
    --body-font: 'Barlow', Arial, sans serif;
    --main-font: 'Barlow', Arial, sans serif;
    --heading-1-6-font: 'Barlow Condensed', Arial, sans serif;
    --input-font: 'Barlow Condensed', Arial, sans serif;
  }

  @media (prefers-color-scheme: dark) {
    /* use https://webaim.org/resources/contrastchecker/ to check contrast */
    :root {
      --body-text-color: #aaa;
      --body-background-color: #121212;
      --main-background-color: #121212;
      /*--body-link-color: #5f839b; */
      --input-background-color: #999;
      --body-link-color: #aec1cd;
    }
  }


  /* null margins and padding to give good cross-browser baseline */
  html,body,address,blockquote,div,
  form,fieldset,caption,nav,
  h1,h2,h3,h4,h5,h6,
  hr,ul,li,ol,ul,
  table,tr,td,th,p,img {
    margin: 0;
    padding: 0;
  }
  dialog {
    padding: 0;
  }
  img,fieldset {
    border: none;
  }
  table {
    font-size: 100%;
    line-height: 150%;
    border-collapse: collapse;
  }
  *, html {
    outline-color: var(--primary-color);
  }
  *, ::after, ::before {
    box-sizing: border-box;
  }
  html {
    /* scroll-padding-top: 4rem; - use if a fixed/sticky header */
    scroll-behavior: smooth;
  }
  /* smooth scrolling IF user doesn't have a preference due to motion sensitivities */
  @media screen and (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }
  }

  /* page sections */
  body {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--body-text-color);
    background-color: var(--footer-background-color); /*var(--body-background-color);*/
    line-height: 150%;
    & > header {
      color: var(--header-text-color);
      background-color: var(--header-background-color);
      & > nav {
        max-width: 1140px;
        max-height: 100px;
        margin: 0 auto;
        padding: .5rem 0 0;
        display: flex;
        align-items: center;
        column-gap: .5rem;
        & #fmfLogo { 
            background: #dddddd;
            border-radius: 20px;
            margin: 0 0 .5rem .5rem;
        }
        #fmfName {
          line-height: 1.2;
          font-size: 13pt;
          & a {
            text-decoration: none;
            color: white;
          }
        }
        & > a { /* logo link*/
          z-index: 25; /* shows over the top of the hamburger menu popup */
        }
        & > i {
          display: none; 
          text-align: right;
          font-size: 2.5rem;
          margin-right: 0.5rem;
        }
        & div {
          & > a {
            color: white;
            text-decoration: none;
            font-size: 1.1rem;
            border-radius: 1.1rem;
            padding: .5rem 1rem;
            white-space: nowrap;
          }
          & > a:is(:hover, :focus) {
            color: black;
            background-color: white;
            text-decoration: none;
          }
        }
      }
    }
  }
  body:has(.hamburger-menu) {
    overflow: hidden; /* prevent background body scrolling if hamburger-menu is being displayed */
  }

  @media screen and (max-width: 768px) {
    body > header > nav > div {
      display: none; 
    }
    body > header > nav > i {
      display: block;
    }
    body > header > nav > div > div.dropdown button {
      margin: 0 1rem;
    }
  }

  .hamburger-menu {
    display: block;
    position: fixed;
    text-align: left;
    top: 100px;
    left: 0;
    right: 0;
    bottom: -200px; /* prevent extra up-scrolling on phones */
    background: var(--heading-background-color);
    color: var(--heading-text-color);
    padding: 1rem;
    padding-top: 1.5rem;
    z-index: 20;
    & a {
      display: block;
    }
    & p {
      display: none;
    }
  }

  body {
    & > main {
      background-color: var(--main-background-color);
      font-family: var(--main-font);
      font-size: 1.2rem;
      & > section {
        max-width: 1100px;
        margin: 0 auto;
        padding: 1rem 1rem 3rem 1rem;
      }
    }
  }

  body {
    & > footer {
      margin: 2rem 0 0;
      color: var(--footer-text-color);
      background-color: var(--footer-background-color);
      & > section.navigation {
        max-width: 1100px;
        margin: 2rem auto .5rem;
/*        padding: 2rem 1rem; */
        display: flex;
        flex-wrap:wrap;
        align-items: center;
        justify-content: space-between;
        column-gap: 5px;
        border-bottom: 1px solid #dbdbdb;
        & > div.links {
          flex: 9;
          & > a {
            color: #444;
            text-decoration: none;
            font-size: .9rem;
            border-radius: 1.1rem;
            padding: .5rem .9rem;
            white-space: nowrap;
          }
          & > a:where(:active, :focus, :hover) {
            color: black;
            background-color: white;
          }
        }
        & > div.icons {
          flex:1;
          width:110px;
          text-align: right;
          & > a {
              color: var(--footer-link-color);
              text-decoration: none;
              font-size: 2rem;
              padding: 0;
              margin-left: .5rem;
          }
          & > a:where(:active, :focus, :hover) {
            color: white;
          }
        }
      }
      & > section.contactus {
        max-width: 1100px;
        margin: 2rem auto .5rem;
        padding: 1rem 1rem 2rem;
        display: flex;
        flex-wrap:wrap;
        align-items: center; 
        justify-content: space-between;
        column-gap: 5px;
        border-bottom: 1px solid #dbdbdb;
        & > a img {
          margin-top: -1rem;
        }
        & > div {
          font-size: 1rem;
          text-align: center;
          vertical-align: top;
          & > i {
            font-size: 2rem;
          }
          & > a {
            color: #444;
            text-decoration: none;
          }
          & > a:where(:active, :focus, :hover) {
            color: white;
            text-decoration: underline;
          }
        }
      }
      & > section.copyright {
        max-width: 1100px;
        margin: 0 auto .5rem;
        padding: 0 1rem .5rem;
        font-size: .9rem;
        display: flex;
        align-items: center; 
        justify-content: space-between;
        column-gap: 5px;
        & a {
          color: #444;
          text-decoration: none;
        }
        & a:where(:active, :focus, :hover) {
          color: white;
          text-decoration: underline;
        }
        & > div.totop {
          display: inline;
          text-align: right;
          & a {
            color: #444;
            text-decoration: none;
            border-radius: 1.1rem;
            padding: .5rem 1rem;
          }
          & a:where(:active, :focus, :hover) {
            color: black;
            background-color: white;
          }
        }
      }
    }
  }

  @media screen and (max-width: 768px) {
    body > footer > section.navigation {
      flex-direction: column;
    }
    body > footer > section.navigation > div.links {
      text-align: center;
      margin-bottom: 1rem;
    }
    body > footer > section.navigation > div.icons {
      text-align: center;
    }
    body > footer > section.contactus {
      flex-direction:column;
    }
    body > footer > section.contactus a {
      text-align: center;
      margin-bottom: 2rem;
    }
    body > footer > section.contactus > div {
      grid-template-columns: 1fr;
    }
    body > footer > section.contactus > div > div {
     grid-column: auto;
     grid-row: auto;
    }
  }


  /* format base elements */
  ::selection {
    background-color: var(--selected-text-background-color); 
    color: var(--selected-text-color);
  }
  h1,h2,h3,h4,h5,h6 {
    font-family: var(--heading-1-6-font);
    color: var(--body-text-color);
    font-weight: normal;
    line-height: 1.1;
  }
  :where(h1,h2,h3,h4,h5,h6) > small {
    font-size: 70%;
  }
  h1 {
    font-size: 2rem;
    padding-top: 1rem;
    margin-bottom: 1rem;
  }
  h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  h5 {
    font-size: 1.4rem;
    margin-bottom: .75rem;
   }
  h6 {
    font-size: 1.3rem;
    margin-bottom: .5rem;
  }

  .heading {
    margin-top: 1rem;
    font-size: 1.45rem;
    padding-bottom: .7rem;
  }
  .heading.large {
    font-size: 1.6rem;
    padding-bottom: 1.1rem;
  }
  .heading.small {
    font-size: 1.3rem;
    padding-bottom: .5rem;
  }

  main {
    & p {
      padding-bottom: 1rem;
      max-width: 900px;
      overflow-wrap: break-word;
    }
    & ul, ol {
      margin-left: 1rem;
      padding-left: 1rem;
      & li {
        padding-bottom: .5rem;
      }
    }
    & a {
      color: var(--body-link-color);
      text-decoration: none;
    }
    & a:where(:active, :focus, :hover) {
      text-decoration: underline;
    }
    & table {
      border-collapse: collapse;
      & th, td {
        padding: .25rem .5rem;
      }
    }
  }

  /* breadcrumbs */
  .breadcrumb {
    display: none;
  }
  .breadcrumb > span { /* separator character between links */
    display: inline-block;
    margin: 0 .5rem;
    font-size: 150%;
  }
 .breadcrumb.dropdown { /* dropdown button breadcrumbs for narrow screen */
    display: block;
    margin-bottom: 1rem;
  }
  @media screen and (min-width: 976px) { /* switch from links to dropdown button */
    .breadcrumb {
      display: flex;
    }
    .breadcrumb.dropdown {
      display: none;
    }
  }


  /* images */
  img.responsive {
    width: 100%;
    height: auto;
  }
  img.circle {
    border-radius: 50%;
  }
  img.rounded {
    border-radius: 1rem;
  }


  /* buttons */
  button, .button, .btn, .btn-primary, input[type=button], input[type=reset], input[type=submit], input::file-selector-button {
    cursor: pointer;
    font-family: var(--button-font);
    font-size: 1.3rem;
    background-color: var(--primary-button-background-color);
    color: var(--primary-button-text-color);
    padding: .5rem 1rem .6rem;
    border: 1px solid var(--primary-button-background-color);
    border-radius: .5rem;
/*    margin: 0 1rem .5rem 0; */
    position: relative;
  }
  input::file-selector-button {
    font-family: var(--button-font);
    margin: 0;
    margin-right: .75rem;
    border-radius: 0;
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
  }
  input[type=file] {
    font-family: var(--button-font);
    padding: 0;
  }
  input:invalid, select:invalid, textarea:invalid {
    border: none;
    outline: 3px solid #ff6666;
  }
  input.dollars {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='24px'><text font-size='16' x='5' y='18'>$</text></svg>");
    background-repeat: no-repeat;
    background-position-y: center;
    padding-left: 22px;
  }

  :is(button, .button, btn, btn-primary, input[type=button], input[type=reset], input[type=submit]):where(:active, :focus, :hover) {
    color: var(--primary-button-text-color);
    background-color: var(--primary-button-background-color-hover);
  }
  input::file-selector-button:where(:active, :focus, :hover) { /* this didn't work as part of the above css code */
    color: var(--primary-button-text-color);
    background-color: var(--primary-button-background-color-hover);
  }
  :is(button, .button, btn, btn-primary, input[type=button], input[type=reset], input[type=submit]):disabled {
    color: var(--primary-button-background-color);
    background: repeating-linear-gradient(
      45deg,
      #ddd,
      #ddd 10px,
      #e6e6e6 10px,
      #e6e6e6 20px
    ); /* striped background */
    cursor: not-allowed;
  }
  .btn-secondary {
    color: var(--primary-button-background-color);
    background-color: transparent;
    border: 1px solid var(--primary-button-background-color);
  }
  a.btn-secondary:where(:active, :focus, :hover) {
    color: var(--primary-button-text-color);
    background-color: var(--primary-button-background-color-hover);
    text-decoration: none;
  }
  .btn-link {
    background-color: transparent !important;
    border: 1px solid transparent !important;
    color: var(--primary-button-background-color) !important;
    text-decoration: underline !important;
  }
  button:is(.btn-secondary, .btn-link):where(:active, :focus, :hover) {
    color: var(--primary-button-text-color) !important;
    background-color: var(--primary-button-background-color-hover) !important;
    text-decoration: none !important;
  }
  .btn-clear {
    color: var(--body-text-color);
    background-color: transparent;
    border: 1px solid var(--primary-button-background-color);
  }
  a.btn-clear:where(:active, :focus, :hover) {
    color: var(--body-text-color);
    background-color: white;
    text-decoration: none !important;
  }
  .btn-tiny {
    font-size: 75% !important;
    padding: .25rem .5rem !important;
    margin: 0;
  }
  .btn-small {
    font-size: 1rem !important;
    padding: .25rem .5rem .35rem !important
/*    font-size: 80% !important;
    padding: .5rem 1rem !important; */
  }
  .btn-large {
    font-size: 120% !important;
    padding: .75rem 1.5rem !important;
  }
  .btn-icon {
    color: var(--body-text-color);
    background-color: transparent;
    margin: 0;
    padding: 0;
  }
  button.btn-icon:where(:active, :focus, :hover) {
    color: var(--body-text-color);
    background-color: transparent;
  }
  /* override Bootstrap Icon style */
  .bi::before, [class^="bi-"]::before, [class*=" bi-"]::before {
    line-height: 1.5;
  }
  .buttons-list > button {
    display: block;
    margin: 0;
    width: 100%;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid white;
  }
  .buttons-list > button:first-child {
    border-radius: .5rem .5rem 0 0;
  }
  .buttons-list > button:last-child {
    border-radius: 0 0 .5rem .5rem;
  }


  /* form controls */
  label {
    font-size: 85%;
  }
  input, select, textarea {
    accent-color: var(--primary-button-background-color);
    font-size: 115%;
    font-family: var(--input-font);
    background-color: var(--input-background-color);
    padding: .63rem;
    border: 1px solid var(--input-border-color);
    border-radius: .25rem;
    width: 100%;
  }
  select {
    padding: .58rem .63rem .55rem;
  }
  input[type=color] {
    padding: .3rem .1rem;
    height: 47px
  }
  input[type=checkbox], input[type=radio] {
    width: 25px;
    height: 25px;
    margin-right: .75rem;
  }
  label:has(input[type=checkbox], input[type=radio]) {
    display: flex;
    line-height: 200%;
  }
  input:not([type="button"]):not([type="submit"]):not([type="image"]):not([type="reset"]):read-only {
    background-color: #ddd;
  }
  .input-with-button {
    display:flex;
    flex-direction:row;
    background-color: var(--input-background-color);
    border: 1px solid var(--input-border-color);
    border-radius: .25rem;
    margin-bottom: 1rem;
  }
  .input-with-button input {
    flex-grow: 2; /* span available space */
    border: 0;
    margin: 0;
  }
  .input-with-button button {
    margin: 0;
    margin-left: 1px;
    white-space: nowrap;
    border-radius: 0;
  }
  .input-with-button button.btn-secondary {
    margin-left: -1px;
    border-top: 0;
    border-bottom: 0;
  }
  .input-with-button button.btn-secondary:last-child {
    border-right: 0;
  }
  .input-with-button button:last-child {
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
  }
  .input-note {
    font-size: 85%;
    margin: 0 0 .25rem .75rem;
  }

  @media (prefers-color-scheme: dark) {
    input, select, textarea {
      color: var(--input-text-color);
      background-color: var(--input-background-color);
    }
    .input-with-button button:where(.btn-secondary, .btn-link) {
      color: var(--primary-button-light-text-color);
    }
    .input-with-button button.btn-secondary {
      border-color: var(--primary-button-light-text-color);
    }
  }

  .vertical-if-narrow {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
  }
  @media screen and (max-width:800px) {
    .vertical-if-narrow {
      display: block !important;
    }
    .vertical-if-narrow label {
      margin-left: -135px;
      float: left;
      margin-top: 4.5rem;
      width: 120px;
    }
  }


  /* div that can be shown or hidden based on being the target of <a href="#divID">Toggle</a> */
  .showhide-div {
    display: none;
  }
  .showhide-div:target {
    display: block;
  }

  /* dialog pop-up */
  dialog { /* will automatically expand width-wise to accommodate content */
    border: 0;
    border-radius: .5rem;
    color: var(--body-text-color);
    background-color: var(--body-background-color);
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
  }
  dialog.full-width {
    width: 98%; 
    max-width: 98%;
  }
  @media (prefers-color-scheme: dark) {
    dialog::backdrop {
     background-color: #999;
     opacity: .6;
    }
  }
  dialog > header {
    /* color: var(--selected-text-background-color); - if desired */
    /* background-color: #eee; - specify a header background if desired */
    /* border-bottom: 1px solid var(--border-color); - if desired */
    font-size: 1.3rem;
    padding: 0.5rem 0.75rem;
    color: var(--header-text-color);
    background-color: var(--header-background-color);
  }
  dialog > header button.btn-icon {
    border: 0;
    background-color: transparent;
    color: var(--header-text-color);
    float: right;
    font-size: 100%;
    margin-right: -0.3rem;
    margin-top: -0.25rem;
   }
  dialog > header button:hover {
    font-size: 120%;
   }
  dialog > div {
     padding: 1rem;
  }
  body:has(dialog[open]) { /* hide body scroll bar when dialog is open */
    overflow: hidden;
  }


  /* pop-open section (accordion) */
  .details-group { }
  .details-group details {
    border: 1px solid var(--border-color); 
    margin-top: -1px;
  }
  .details-group details:first-child, .details-group details:first-child summary {
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
  }
  .details-group details:last-child {
    border-bottom-left-radius: .5rem;
    border-bottom-right-radius: .5rem;
  }
  .details-group details summary { 
    padding: 1rem; 
    transition: color .5s; 
    transition: background-color .5s; 
    color: black; 
    font-size: 130%;
    line-height: 130%;
/*    list-style-type: '▽ '; set left-side marker symbol (when closed) */
/*    list-style-type: ''; no marker */
  }
  .details-group details summary:hover {
    cursor: pointer; 
  }
  .details-group details summary::marker {
    color: var(--heading-background-color);
    font-size: 75%;
  }
  .details-group details[open] > summary::marker {
    color: var(--heading-text-color); 
  }
  .details-group > details[open] > summary { 
    color: var(--heading-text-color); 
    background-color: var(--heading-background-color);
/*    list-style-type: '△ '; set left-side marker symbol (when open) */
/*    list-style-type: ''; no marker */
  }
  @media (prefers-color-scheme: dark) {
    .details-group > details[open] > summary { 
     opacity: 1;
    }
  }
  .details-group > details[open] > summary h3 { 
    color: var(--heading-text-color); 
  }
  .details-group details summary h3 { 
    display: inline;
    font-weight: normal;
  }
  .details-group details > div { 
    padding: 1rem; 
  }


  /* dropdown menu/options */
  .dropdown {
    position: relative;
    display: inline-block;
  }
  .dropdown > button {
    padding-right: .75rem;
    margin-bottom: 0;
  }
  .dropdown > div { /* Dropdown content (in sub-Div - hidden by default) */
    display: none;
    position: absolute;
    background-color: #fff;
    background-color: var(--body-background-color);
    border-radius: .5rem;
    border-top-left-radius: 0;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 3;
    overflow: auto;
    max-height: 500px;
  }
  @media (prefers-color-scheme: dark) {
    .dropdown > div {
      box-shadow: 0 8px 16px 0 rgba(255,255,255,0.6);
    }
  }
  .input-with-button .dropdown > div { /* flush options to the right - change corner rounding */
    right: 0;
    border-radius: .5rem;
    border-top-right-radius: 0;
  }
  .dropdown > div > a { /* Links inside the dropdown */
    display: flex;
    align-items: center;
    color: var(--body-text-color);
    padding: .25rem .75rem;
    text-decoration: none;
/*    display: block; */
    z-index: 3;
  }
  .dropdown > div > a:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: .5rem;
  }
   .input-with-button .dropdown > div > a:first-child { /* flush options to the right - change corner rounding */
    border-top-left-radius: .5rem;
    border-top-right-radius: 0;
  }
  .dropdown > div > a:last-child {
    border-bottom-left-radius: .5rem;
    border-bottom-right-radius: .5rem;
  }
  .dropdown > div > a:where(:active, :focus, :hover) { /* Change color of dropdown links on active, focus, hover */
    color: var(--selected-option-color);
    background-color: var(--selected-option-background-color);
    filter: none;
  }
  /* Show the dropdown menu on active, focus or hover */
  .dropdown > div:active, .dropdown > div:focus, .dropdown > div:hover {
    display: block;
  }
  .dropdown > button:active ~ div, .dropdown > button:focus ~ div, .dropdown > button:hover ~ div {
    display: block;
  }
  .dropdown:active > button, .dropdown:focus > button, .dropdown:hover > button {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }


  /* data table */
  .data-table {
  }
  .data-table thead th {
    position: sticky;
    top: 0; /* var(--header-height); - if header is fixed */
    z-index: 2;
    color: var(--heading-text-color);
    background-color: var(--heading-background-color);
    font-weight: normal;
    font-size: 90%;
    vertical-align: bottom;
    text-align: left;
    white-space: nowrap;
    line-height: 1.2;
  }
  .data-table.linked-rows tbody tr { 
    cursor:pointer; 
  }
  .data-table > tbody > tr:hover {
    color: var(--selected-option-color);
    background-color: var(--selected-option-background-color);
  }
  .data-table thead th.right {
    text-align: right;
  }
  .data-table :is(tbody, tfoot) th {
    font-weight: normal; /* default is bold */
    text-align: left; /* default is center */
  }
  .data-table :is(tbody, tfoot) :is(th, td).right {
    text-align: right; /* default is left */
  }
  .data-table :is(tbody, tfoot) :is(th, td) {
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    text-align: left;
  }
  .data-table :is(tbody, tfoot) :is(th, td):first-child {
    border-left: 1px solid var(--border-color);
  }
  .data-table :is(tbody, tfoot) :is(th, td):last-child {
    border-right: 1px solid var(--border-color);
  }
/* to fix a column to the left side:
  th[scope="row"] {
    position: sticky;
    left: 0px;
    z-index: 2;
  }
*/
  .data-table tfoot :is(th, td) {
    background-color: #ddd;
    border-bottom: 1px solid var(--border-color);
  }
  @media (prefers-color-scheme: dark) {
    .data-table tfoot :is(th, td) {
      background-color: #3d3d3d;
    }
  }

  /* list table */
  .list-table {
      position: relative;
      border-collapse: collapse;
      width: 100%;
      border: 0;
  }
  /*
  .list-table > tr {
      background-color: white;
  }
  */
  .list-table > thead > tr > th {
      position: sticky;
      top: 0;
      z-index: 1;
      padding: .25rem .5rem;
      background-color: #ddd;
      text-align: left;
      border: 0;
      vertical-align: bottom;
      font-weight: normal;
      font-size: 85%;
  }
  .list-table > thead > tr > th.right {
    text-align: right;
  }
  .list-table > thead > th:first-of-type {
      border-top-left-radius: .25rem;
  }
  .list-table > thead > th:last-of-type {
      border-top-right-radius: .35rem;
  }
  .list-table > tbody > tr:hover {
    background-color: #e2e2e2;
    cursor: pointer;
  }
  .list-table > tbody > tr > td {
      padding: .25rem .5rem;
      border: 1px solid #eee;
      vertical-align: top;
  }
  .list-table > tbody > tr > td.right {
    text-align: right;
  }
  .list-table-action-button {
      margin-right: .5rem;
      padding: .25rem .5rem;
  }
  .list-table-action-button:last-child {
      margin-right: 0;
  }
  .list-table-zebra > tbody > tr:nth-child(even) {
    background-color: #f2f2f2;
  }
  .list-table-zebra > tbody > tr:nth-child(even):hover {
    background-color: #e2e2e2;
  }
  @media (prefers-color-scheme: dark) {
    .list-table > thead > tr > th {
      color:black
    }
    .list-table > tbody > tr > td {
      border-bottom: 1px solid #555;
    }
    .list-table-zebra > tbody > tr:nth-child(even) {
      background-color: #555;
    }
    .list-table-zebra > tbody > tr:nth-child(even):hover {
      background-color: #666;
    }
  }

  /* edit form table */
  .edit-table {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
    & th {
      padding: 1.1rem .5rem .2rem .4rem;
      text-align: right;
      font-weight: normal;
      /*  border-top: 1px solid #ccc; */
      vertical-align: top;
      white-space: nowrap;
    }
    & td {
      padding: .25rem .5rem;
      /*  border-top: 1px solid #ccc; */
      vertical-align: top;
      width: 100%;
      & textarea { display: block }
    }
    & td.text { /* use this if the edit details cell will only contain text */
      padding: 1rem .5rem .2rem .5rem;
      vertical-align: top;
    }
  }

  /* definitions table */
  .def-table {
      border-collapse: collapse;
      width: 100%;
      margin: 1rem 0;
  }
  .def-table tr {
  }
  .def-table th {
      padding: .25rem .5rem;
      font-weight: bold;
      text-align: left;
      vertical-align: top;
      white-space: nowrap;
      border-bottom: 1px solid #eee;
  }
  .def-table td {
      padding: .25rem .5rem;
      border-bottom: 1px solid #eee;
      vertical-align: top;
  }
  .def-table tr:hover {
      background-color: #e2e2e2;
  }
  .def-table-zebra > tbody > tr:nth-child(even) {
    background-color: #f2f2f2;
  }
  .def-table-zebra > tbody > tr:nth-child(even):hover {
    background-color: #e2e2e2;
  }

  /* info display table */
  .info-table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
  }
  .info-table tr {
/*      background-color: white; */
  }
  .info-table th {
    padding: .25rem .5rem;
    text-align: right;
    font-size: 80%;
    font-weight: normal;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
    white-space: nowrap;
  }
  .info-table td {
    padding: .25rem .5rem;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
    width: 100%;
  }

  /* table style classes */
  :is(table, .data-table, .list-table, .edit-table, .def-table, .info-table).small {
    font-size: 85%;
  }
  :is(table, .data-table, .list-table, .edit-table, .def-table, .info-table) :is(th, td).right {
    text-align: right;
  }
  :is(table, .data-table, .list-table, .edit-table, .def-table, .info-table) :is(th, td).small {
    font-size: 85%;
  }
  :is(table, .data-table, .list-table, .edit-table, .def-table, .info-table) :is(th, td).norwap {
    white-space: nowrap;
  }
  :is(table, .data-table, .list-table, .edit-table, .def-table, .info-table) :is(th, td).width100 {
    width: 100%;
  }

  /* columns */
  .columns {
    columns: 16em;
    gap: 2rem;
  }
  .columns > :is(article, div, section) {
    margin-bottom: 2rem;
    break-inside: avoid;
  }


  /* grid (buttons or cards/div) */
  .grid {
    margin: 0 auto;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* adjust to desired width of each cell */
  }
  .grid button {
    font-size: 1.3rem;
    margin: 0;
    padding: 1rem;
    height: 4rem;
  }
  /* when a grid is inside a details-group (pop-open, accordion style) */
  .details-group .grid {
    grid-template-columns: repeat(auto-fit, minmax(298px, 1fr));
  }
  .details-group .grid button {
    margin: 0;
  }
  .grid > div { /* style the "card" as desired or create/add a new .card class with specific styles */
    border: 1px solid var(--primary-color);
    border-radius: .5rem;
    padding: 1rem;
  }


  /* alert boxes */
  .alert {
    margin: 2rem 0;
    padding: 1rem;
    border-radius: .5rem;
    max-width: 900px;
  }
  .alert.success {
    background-color: #dff0d8;
    color: #3c763d;
  }
  .alert.info {
    background-color: #d9edf7;
    color: #31708f;
  }
  .alert.warning {
    background-color: #fcf8e3;
    color: #8a6d3b;
  }
  .alert.error {
    background-color: #f2dede;
    color: #a94442;
  }
  .alert ul {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  .alert p:last-of-type {
    padding-bottom: 0;
  }
  .alert h3 {
    text-align: center;
  }
  .alert button {
    margin: 0 0  0 1rem;
    font-size: 90%;
    padding: .5rem 1rem;
  }


  /* "tabbed" pages */
  .pages { }
  .pages > section {
    display: none;
    border: 1px solid var(--primary-button-background-color);
    border-radius: .5rem;
    padding: 1rem;
    padding-top: 1.5rem;
    z-index: 40;
  }
  .pages > section > h2 {
    display: none;
  }
  .pages > section > p:last-child {
    padding-bottom: 0;
  }
  .pages > .dropdown {
    margin-bottom: -10px;
  }
  .pages > .dropdown > button {
    border-bottom-left-radius: 0;
  }


  /* other styles */

  .show {
    display: block !important;
  }

  .highlight {
    background-color: yellow;
  }

  ul.nav-list {
    list-style-type: '➜ ';
  }

  .status-Future, .status-Active {
    background-color:green;
    color:white;
    padding:4px;
    border-radius: 3px;
  }
  .status-Inactive, .status-Expired, .status-Suspended {
    background-color:#777;
    color:white;
    padding:4px;
    border-radius: 3px;
  }

  @media print {
    table.data-table th {
      border:2px solid grey !important;
      color:#111;
    }
    .no-print {
      display:none !important;
    }
  }

  #orphan-name {
    display:none;
  }

  input[type=button].sort-btn {
    border: 1px solid #777;
    color: #777;
    background-color: inherit;
    padding: 0 .25rem .2rem;
    border-radius: .25rem;
    width: auto;
    margin: 0 0 0 .2rem;
    font-size: .9rem;
  }
  input[type=button].sort-btn:is(:active, :focus, :hover) {
    color: var(--primary-button-text-color);
    background-color: var(--primary-button-background-color);
    border: 1px solid var(--primary-button-background-color);
  }
  
  .edit-page-buttons { padding-top: 1rem !important; }