BODY {
    background-color: #1e73be;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 80px 0;
}

BODY.nonav, BODY.theme-body {
    background-color: #1e73be;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 5px 0;
}

DIV.tile {
    border: 2px solid #1e73be;
    display: inline-block;
    position: relative;
    text-align: center; 
    background-color: white; 
    color:black; 
    border-radius:25px; 
    margin: 10px; 
    height: 180px;
    width: 800px;
    vertical-align: top;
}

DIV.menusel {
    min-width: 80px;
    text-align: left;
    margin: auto;
}

TABLE.main {
    background-color: #DDDDDD;
}
TR.main {
    background-color: #DDDDDD;
}
TD.main {
    background-color: #DDDDDD;
}

.main-embed-1 {
    background-color: #FFFFFF;
    text-align: center;
    margin:0; 
    padding:0; 
    border:none; 
    border-spacing:0; 
    border-collapse:collapse;
}

TABLE.main-embed-1 {
    background-color: #FFFFFF;
    text-align: center;
    margin:0; 
    padding:0; 
    border:none; 
    border-spacing:0; 
    border-collapse:collapse;
}

TR.main-embed-1 {
    background-color: #FFFFFF;
    text-align: center;
    margin:0; 
    padding:0; 
    border:none; 
    border-spacing:0; 
    border-collapse:collapse;
}

TD.main-embed-1 {
    background-color: #FFFFFF;
    text-align: center;
    margin:0; 
    padding:0; 
    border:none; 
    border-spacing:0; 
    border-collapse:collapse;
}

TABLE.main-embed-2 {
    border-collapse: collapse; 
    border-style: solid; 
    border-width: 1px; 
    background-color: #FFFFFF; 
    vertical-align: top;
}

TR.main-embed-2 {
    background-color: #FFFFFF;
    vertical-align: top;
}

TD.main-embed-2 {
    background-color: #FFFFFF; 
    vertical-align: top;
}

TD.right {
    text-align: right;
}
.sectionheader {
    text-align: center;
    background-color: #FFFFCC;
    color: black;
    font-size: 16px;
    font-weight: bold;
    font-family: arial;
}
INPUT[type=number] {
    width: 60px;
    }
INPUT.right {
    text-align: right;
    border-radius: 5px;
    margin: 5px;
}
INPUT.blendin {
    padding: 5px;
    background-color: #00BBDD;
    border: none;
    border-radius: 5px;
    text-align: right;
}
INPUT.blendinLG {
    background-color: #00BBDD;
    border: none;
    border-radius: 5px;
    text-align: right;
    font-size : 24px;
    font-weight: bold;
}
INPUT.subtotal {
    padding-right:25px;
    text-align:right;
    border:none;
}
.entry{
    border: 1px solid black;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-right: 20px;
    text-align: right;
    background-color: #ffffff;
    color: black;
}
.entry_nb{
    border: none;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-right: 20px;
    text-align: right;
    background-color: #ffffff;
    color: black;
}

TH.entry {
    border: 1px solid black;
    text-align: center;
    background-color: #ffffff;
    color: black;
}

TD.entryL {
    border: 1px solid black;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 10px;
    padding-right: 20px;
    text-align: left;
    background-color: #ffffff;
    color: black;
}

TD.entryL_nb {
    border: none;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 10px;
    padding-right: 20px;
    text-align: left;
    background-color: #ffffff;
    color: black;
}

TD.entryC {
    padding-top: 7px;
    padding-bottom: 7px;
    padding-right: 20px;
    text-align: center;
    background-color: #ffffff;
    color: black;
}

INPUT.entry {
    border-radius: 5px;
    text-align: right;
}
.form {
    border-radius: 0px;
    border-spacing: 20px;
    padding: 5px;
    border: 1px solid grey;
}
.formLG {
    background-color: #00BBDD;
    color: black;
    font-size: 24px;
    font-weight: bold;
    border-radius: 0px;
    BORDER-SPACING: 20px;
    PADDING: 5px;
    border: 1px solid grey;
}
.noborder {
    border-radius: 0px;
    BORDER-SPACING: 20px;
    PADDING: 5px;
    border: none;
}
.sponsorship
{
    background-color: #5577DD;
    border-radius: 15px;
    width:700px; 
}

DIV.alert {
    align: center;
    min-width: 500px;
    background-color: darkorange;
    border-radius: 25px;
    PADDING: 5px;
    border: none;
}
DIV.entry {
    align: center;
    background-color: white;
    border-radius: 25px;
    PADDING: 5px;
    border: none;
}
TABLE.alert {
    align: center;
}
TH.form
{
    COLOR: #000000;
    BACKGROUND-COLOR: #0099BB;
    FONT-SIZE: 14px;
    FONT-FAMILY: arial;
    TEXT-ALIGN: center;
}
TD.form
{
    COLOR: #000000;
    BACKGROUND-COLOR: #00BBDD;
    FONT-SIZE: 14px;
    FONT-FAMILY: arial;
}
TD.logo
{

    background-color: #1e73be;
    vertical-align: bottom;
    COLOR: white;
    FONT-SIZE: 14px;
}

/* Keep the table copyright hidden on screens */
.print-copyright {
    display: none;
}

td.av   {padding: 5px 25px 5px 25px; font-size: 12px;}
td.atbl {background-color: tan; padding-left: 5px; padding-right: 5px; width:90px; font-size: 12px;}
th.atbl {background-color: tan; padding-left: 5px; padding-right: 5px; text-align: center; font-size: 10px; }
input.large_cb  {height: 15px; width: 15px; }      
input.disabled_cb {height: 0px; width: 0px; border:none}      
option.signup   {color:black; font-size: 14px;}
select.signup   {color:black; font-size: 14px;}
textarea.signup {color:black; font-size: 12px;}

/* Print Fixes for Schedule Grids */
@media print {
  /* MAXIMIZE PAPER REAL ESTATE 

  @page {
    size: landscape;
    margin: 0.25in !important; 
  }
*/

  /* 1. CRITICAL FOR EDGE/CHROME: Unlock parent containers so page breaks work */
  html, body, center, #pagewrapper, section, main, article, div {
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    position: static !important;
  }

  /* Force browsers to print background colors (grey fills & white boxes) */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* 2. HIDE UNNEEDED PAGE ELEMENTS */
  #PAGETITLE,
  #FULLBUTTON,
  div[style*="background:yellow"],
  div[style*="background-color: yellow"],
  div[style*="background-color: #80CCFF"],
  header,
  nav,
  select,
  input {
    display: none !important;
  }

  /* 3. RESET TOP MARGINS */
  body, center {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

div.gridcell {
    border: 1px solid #000000 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    min-width: 0 !important;     
    
    /* VERTICAL SQUEEZE TWEAKS */
    font-size: 9px !important;  
    padding: 1px !important;    
    line-height: 1.1 !important; 
    
    word-wrap: break-word !important; 
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

/* Bring back assignment role inputs/selects inside the schedule grid */
  div.gridcell input,
  div.gridcell select {
    display: inline-block !important;
    background: transparent !important;
    border: none !important;
    font-size: inherit !important;
    font-weight: bold !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
  }


  /* 2. Force the entire Grid to scale down physically */
  div.grid {
    display: grid !important;
    width: 100% !important;
    gap: 0 !important;
    zoom: 80% !important;  /* Adjust between 80% and 85% to perfectly fit Saturday's 15 columns */
  }

  /* 3. Keep the row wrapper intact */
  div[role="row"] {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  /* Force empty grey boxes to print correctly */
  div.gci {
    background-color: #aaaaaa !important;
  }

  /* 4. FORCE PAGE BREAKS BEFORE EACH DAY HEADING (Friday, Saturday, Sunday) */
  a[name], a[NAME] {
    display: block !important;
    clear: both !important;
    color: #000000 !important; /* Prints heading in crisp black */
    font-size: 18px !important;
    font-weight: bold !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
  }

  /* Do NOT page-break before the very first heading (Thursday) */
  a[name]:first-of-type, a[NAME]:first-of-type {
    break-before: auto !important;
    page-break-before: auto !important;
    margin-top: 0 !important;
  }

/* Reveal the copyright under each table when printing */
  .print-copyright {
    display: block !important;
    text-align: center !important;
    font-size: 10px !important;
    color: #000000 !important;
    margin-top: 5px !important;
    margin-bottom: 10px !important;
    font-style: italic !important;
  }


/* Hide the screen copyright notice when printing */
  .screen-spacing {
    display: none !important;
  }

/* Hide the screen copyright notice when printing */
  .copynotice {
    display: none !important;
  }
}


.hamx-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 15px;
    margin-bottom: 20px;
}

.hamx-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamx-page-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamx-page-logout A {
    color: #1e73be;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

.hamx-page-logout A:hover {
    color: #cc0000;
}

.hamx-section-header {
    font-weight: bold;
    font-size: 14px;
/*    background-color: #e8ecef; */
    background-color: #ddddaa; 
    padding: 4px 12px;
    border-radius: 6px 6px 0 0;
    margin: -15px -15px 15px -15px;
    border-bottom: 1px solid #dee2e6;
    color: #333333;
}

.hamx-panel-body {
    padding: 6px 12px;
}

/* Center and constrain the entire interface on wide/4K monitors */
.hamx-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 12px;
  box-sizing: border-box;
}

/* Ensure all top and bottom single-column cards align flush with the grid */
.hamx-wrapper > .hamx-card {
  width: 100%;
  box-sizing: border-box;
}

/* Two-column layout: left column flexes, right column remains fixed */
.hamx-page-grid {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

/* Left column takes all remaining space */
.hamx-grid-left {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 770px; /* Clears any lingering inline limits */
}

/* Right column stays locked at 330px */
.hamx-grid-right {
  flex: 0 0 330px;
  width: 330px !important;
  min-width: 330px !important;
  max-width: 330px !important;
}

.hamx-grid-right .hamx-card {
  width: 100% !important;
  box-sizing: border-box;
  overflow: hidden;
}

.wdb-input-inline {
  padding: 2px 4px !important;
  font-size: 12px !important;
  display: inline-block;
}

/* Clean vertical stack fallback for small screens/tablets below 920px */
@media (max-width: 920px) {
  .hamx-page-grid {
    grid-template-columns: 1fr;
  }
  .hamx-grid-left,
  .hamx-grid-right {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

.wdb-input {
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 13px;
    box-sizing: border-box;
}

.wdb-btn {
    padding: 6px 14px;
    border-radius: 4px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.wdb-btn-primary {
    background-color: #1e73be;
    color: #ffffff;
}

.wdb-btn-primary:hover {
    background-color: #16568e;
}

.wdb-btn-secondary {
    background-color: #f0f0f0;
    color: #333333;
    border: 1px solid #cccccc;
}

.wdb-btn-secondary:hover {
    background-color: #e2e2e2;
}

.noscript-banner {
    background-color: #d9534f;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Predefined Search Vertical Tabs Layout */
.predefined-tab-wrapper {
    display: flex;
    gap: 15px;
    align-items: stretch;
    min-height: 140px;
}

.predefined-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 130px;
    flex-shrink: 0;
    border-right: 2px solid #e0e0e0;
    padding-right: 15px;
}

.predefined-tab-btn {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #444444;
    border-radius: 6px;
    border: 1px solid #cccccc;
    user-select: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.predefined-tab-btn:hover {
    background-color: #e2e8f0;
    color: #1e73be;
}

.predefined-tab-btn.active {
    background-color: #1e73be;
    color: #ffffff;
    border-color: #1e73be;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.predefined-tab-content {
    flex: 1;
    min-width: 0;
}

/* Custom Search by Personal Data: responsive wrapping */
.custom-search-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  align-items: center !important;
  margin-bottom: 8px !important;
  padding-bottom: 4px !important;
}

/* Allow ShowRows() to hide unused rows when style.display = 'none' is set */
.custom-search-row[style*="none"] {
  display: none !important;
}

/* Field dropdown: takes line 1 with operator */
.custom-search-row select[name^="obj"] {
  flex: 1.4 1 160px !important;
  min-width: 0 !important;
  padding: 3px 4px !important;
}

/* Operator dropdown: shares line 1 */
.custom-search-row select[name^="opr"] {
  flex: 1 1 110px !important;
  min-width: 0 !important;
  padding: 3px 4px !important;
}

/* Value input: wraps to line 2 and stretches across the card */
.custom-search-row input[name^="val"] {
  flex: 2 1 140px !important;
  min-width: 0 !important;
  padding: 3px 6px !important;
}

/* AND label: stays pinned to the right of the value input */
.custom-search-row div[id^="arow"] {
  flex: 0 0 28px !important;
  text-align: right !important;
  font-size: 11px !important;
  font-weight: bold !important;
  color: #777777 !important;
}

/* Filter custom search dropdown options by active mode */
.mode-people option.sel-order {
  display: none !important;
}

.mode-orders option.sel-people {
  display: none !important;
}

/* Base persistent Save Profile button */
.btn-save-profile {
  padding: 10px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  background-color: #ffffff;
  color: #1e73be;
  border: 2px solid #ffffff;
  transition: all 0.25s ease-in-out;
}

.btn-save-profile:hover {
  background-color: #f0f0f0;
}

/* Dynamic 'Dirty' State when changes are detected */
.btn-save-profile.btn-unsaved {
  background-color: #ffcc00;
  color: #000000;
  border: 2px solid #cc9900;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
}

.btn-save-profile.btn-unsaved:hover {
  background-color: #e6b800;
} 

/* ==================================================================== */
/* ORDER DETAILS VIEW (Unified 905px Architecture)                     */
/* ==================================================================== */

/* Container locked to 905px without padding collapse */
.hamx-order-wrapper {
  width: 905px;
  max-width: 905px;
  margin: 20px auto;
  padding: 0;
  box-sizing: border-box;
}

/* Force Top Banner and Bottom Footer to match the exact 905px width */
.hamx-order-wrapper > .hamx-top-card,
.hamx-order-wrapper > .hamx-card {
  width: 100% !important;
  max-width: 905px !important;
  box-sizing: border-box !important;
}

/* Two-column grid locked to 905px: 560px + 15px gap + 330px */
.hamx-order-grid {
  display: grid;
  grid-template-columns: 560px 330px;
  gap: 15px;
  width: 905px;
  align-items: start;
  box-sizing: border-box;
}

.hamx-order-grid .hamx-grid-left {
  width: 560px;
  min-width: 560px;
  max-width: 560px;
  box-sizing: border-box;
}

.hamx-order-grid .hamx-grid-right {
  width: 330px !important;
  min-width: 330px !important;
  max-width: 330px !important;
  box-sizing: border-box;
}

/* Unified Navigation and Invoice Links */
.hamx-nav-link {
  font-size: 13px;
  font-weight: bold;
  color: #1e73be;
  text-decoration: underline;
  cursor: pointer;
}

.hamx-nav-link:hover {
  color: #124d80;
}

.hamx-nav-current {
  font-size: 13px;
  font-weight: bold;
  color: #333333;
  text-decoration: none;
}

/* Order Details Table Borders */
#order_details_panel table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px auto;
}

#order_details_panel th {
  border: 1px solid black;
  padding: 8px 10px;
  background-color: #f2f2f2;
  font-weight: bold;
  text-align: center;
}

#order_details_panel td {
  border: 1px solid black;
  padding: 8px 10px;
  text-align: right;
}

#order_details_panel td.desc {
  border: 1px solid black;
  padding: 8px 10px;
  text-align: left;
}

#order_details_panel td.o {
  border: 1px solid black;
  text-align: right;
}

/* ==================================================================== */
/* HAMX INDIVIDUAL RECORD (Member Profile Layout)                       */
/* ==================================================================== */

.hamx-top-card {
  width: 1020px;
  max-width: 1020px;
  margin: 0 auto 15px auto;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 12px 20px;
  box-sizing: border-box;
}

.hamx-header-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 13px;
}

table.pmain {
  border-collapse: separate;
  border-width: 1px;
  border-style: solid;
  border-spacing: 15px 15px;
  border-radius: 0 0 8px 8px;
  margin-top: 0;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  background-color: #DDDDDD;
  width: 1020px;
}

span.squarebox {
  display: inline-block;
  border: 1px solid;
  text-align: center;
  vertical-align: middle;
  height: 20px;
  width: 80px;
  margin: 10px;
}

.hamx-tab-bar {
  display: flex;
  width: 1020px;
  margin: 0 auto;
  background-color: #555555;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  border-bottom: 3px solid #1e73be;
}

.hamx-tab-item {
  flex: 1;
  text-align: center;
  padding: 12px 15px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  background-color: #888888;
  color: #ffffff;
  user-select: none;
  transition: background-color 0.2s, color 0.2s;
}

.hamx-tab-item:hover {
  background-color: #aaaaaa;
}

.hamx-tab-item.active {
  background-color: #DDDDDD;
  color: #1e73be;
  border-top: 3px solid #1e73be;
}

.tab-control-card {
  border: 1px solid black;
  border-radius: 8px;
  background-color: #FFFFFF;
  padding: 12px 15px;
  display: flex;
  align-items: center;
}

.tab-disabled-section {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  filter: grayscale(85%);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.center {
  margin: 0;
  border: 1px solid gold;
  position: absolute;
  padding: 50px;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

td.center {
  text-align: center;
}
/* ==================================================================== */
/* FIXED TOP NAVIGATION BAR (Replaces Grav/Bootstrap)                   */
/* ==================================================================== */

.hamx-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(30, 115, 190, 0.95); /* Transparent blue matching screenshots */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.hamx-nav-container {
    display: flex;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
}

/* Logo Styling */
.hamx-nav-logo {
    text-decoration: none;
    color: #ffffff;
    font-size: 26px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.1;
    margin-right: 40px;
}

.hamx-nav-logo:hover {
    text-decoration: none;
}

.hamx-logo-small {
    font-size: 11px;
    font-style: italic;
    font-weight: normal;
    margin-bottom: -4px;
}

.hamx-logo-yellow {
    color: #ffff00;
}

/* Link Styling */
.hamx-nav-links {
    display: flex;
    gap: 20px;
}

.hamx-nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    transition: color 0.2s;
}

.hamx-nav-links a:hover {
    color: #ffcc00;
    text-decoration: none;
}
/* ==================================================================== */
/* POLYFILL FOR AUTOGENERATED SCHEDULE PAGES (Legacy Grav replacement)  */
/* ==================================================================== */

/* Recreates the missing white container around the schedule content */
section.bb-content .pg-container {
    background-color: #ffffff;
    color: #000000;
    max-width: 1100px;
    margin: 20px auto 40px auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    text-align: left; /* Normalizes text flow inside the container */
}

/* Ensure the page title and warning banner render cleanly against the blue body */
#PAGETITLE {
    color: #ffffff !important;
}

/* Fixes the autogenerated inline yellow banner to be a bit more readable */
div[style*="background:yellow"] {
    border-radius: 8px;
    padding: 10px;
    margin: 0 auto 20px auto !important;
    display: inline-block !important;
}
/* ==================================================================== */
/* INDIVIDUAL SCHEDULE EVENT SEPARATORS (FME- wildcard targeting)       */
/* ==================================================================== */

div[id^="FME"] {
    display: block;
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #dddddd;
}

/* Remove the border from the very last item in a time block */
div[id^="FME"]:last-of-type {
    border-bottom: none;
    margin-bottom: 0 !important;
}

/* Ensure any lingering paragraph or header tags inside have breathing room */
div[id^="FME"] p {
    margin-top: 8px;
    margin-bottom: 8px;
}
/* ==================================================================== */
/* FORUM SCHEDULE TIMEBAR & ITEM TITLES (Replaces Grav content-page.css) */
/* ==================================================================== */

.bb-forums-list-timebar {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    background-color: #ddddaa;
    color: #222222;
    font-size: 16px;
    font-weight: bold;
    padding: 6px 12px;
    margin-top: 25px;
    margin-bottom: 15px;
    border-radius: 4px;
    border-left: 5px solid #1e73be;
}

/* Ensure the title of the event stands out clearly */
.bb-forums-list-title {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #111111;
    margin-bottom: 4px;
}

.container {
  background-color: #1e73be;
  height: 800px;
  position: relative;
  border: none;
}

