/* styles */

.grcContentBlock.is-hidden {
  display: none;
}

/* -------------------------------------------------------- */
/* PAS Emporium and Museum                                  */
/* -------------------------------------------------------- */

#groupEmporiumView .topControls{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

/* Stack controls vertically and center them */
.topControls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* space between dropdown and search */
  margin-bottom: 10px;
}

/* Dropdown wrapper */
#selectionEmporium {
  display: inline-flex;
}

/* Dropdown itself */
#selectionEmporium select {
  height: 38px;
  padding: 6px 10px;
  font-size: 16px;
  font-weight: bold;
  border: 1px solid black;
  border-radius: 4px;
  background: #fff;
  width: auto;            /* key: fit content */
  line-height: 32px;
}

/* Search box container */
#searchGalleryBox {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px;
  border: none;
  background: #fff;
}

/* Search input */
#searchGalleryBox input[type="search"] {
  height: 26px;
  padding: 4px 6px;
  font-size: 14px;
}

/* Optional: tidy links */
#clearSearch {
  font-size: 13px;
  text-decoration: none;
}

/* -------------------------------------------------------- */
/* PAS Region introduction header text                      */
/* -------------------------------------------------------- */

/* Region page header block */
.region-header {
  text-align: center;
  margin-bottom: 1.2em;
}

.region-header h4 {
  margin-bottom: 0.2em;
  font-weight: bold;
}

.region-header p {
  margin-top: 0;
  font-style: italic;
}

/* -------------------------------------------------------- */
/* PAS Emporium.                                            */
/* -------------------------------------------------------- */

/* container */
#allitems{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;                 /* spacing between cards */
  align-items: stretch;
}

/* each card */
#allitems .item{
  box-sizing: border-box;
  flex: 0 0 calc(25% - 18px); /* 4 across */
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* responsive breakpoints */
@media (max-width: 1100px){
  #allitems .item{ flex-basis: calc(33.333% - 18px); } /* 3 across */
}
@media (max-width: 800px){
  #allitems .item{ flex-basis: calc(50% - 18px); }    /* 2 across */
}
@media (max-width: 480px){
  #allitems .item{ flex-basis: 100%; }                /* 1 across */
}

/* image area */
#allitems .itemImage{
  width: 100%;
  aspect-ratio: 4 / 3;       /* consistent tiles */
  overflow: hidden;
  background: #f5f5f5;
}

#allitems .itemImage img{
  width: auto;
  height: auto;
  object-fit: cover;         /* crop nicely */
  display: block;
}

/* content */
#allitems .itemContent{
  padding: 10px 12px;
}

#allitems .itemContent a{
  text-decoration: none;
  color: inherit;
  display: block;
}

#allitems .title{
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 6px;
}

#allitems .message{
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

#allitems .itemPrice{
  font-weight: 700;
}

#allitems .marker{
  opacity: 0.75;
}

#allitems .item {
  display: none;
}

#allitems .item.showme {
  display: block;   /* or flex, inline-block, etc. */
}

#groupView .topControls{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 20px 0;
  flex-wrap: wrap;
}

/* optional: keep dropdown from being tiny */
#selectionChamp select{
  min-width: 260px;
}

/* optional: ensure search box internals stay aligned */
#searchGalleryBox{
  display: flex;
  align-items: center;
  gap: 8px;
}

/* -------------------------------------------------------- */
/* PAS Member Profile layout.                               */
/* -------------------------------------------------------- */

.pasShowPopupContent {
    display: none;
}

.pas-member-profile {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid black;
    border-radius: 10px;
    background: #fafafa;
}

.pas-member-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    margin-bottom: 15px;
}

.pas-member-name {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 6px;
}

.pas-member-admin {
    font-size: 14px;
    margin-left: 0;
}

.pas-member-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.pas-member-section {
    flex: 0 0 calc(50% - 15px);
    min-width: 320px;
}

.pas-member-section-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    border-bottom: 3px solid #ddd;
    padding-bottom: 4px;
}

.pas-member-line {
    margin-bottom: 6px;
}

.pas-member-spouse {
    margin-top: 30px;
}

.pas-member-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pas-member-table th,
.pas-member-table td {
    text-align: left;
    vertical-align: top;
    padding: 0px;
    word-break: break-word;
}

.pas-member-table th {
    width: 42%;
    font-weight: 600;
    white-space: normal;
}

.pas-member-table td {
    width: 58%;
}

.pasCloseMember {
    margin-left: auto;
    border-radius: 10px;
}

@media (max-width: 460px) {

    .pas-member-profile {
        padding: 15px;
    }

    .pas-member-section {
        flex: 0 0 100%;
        min-width: 0;
    }

    .pas-member-table th,
    .pas-member-table td {
        display: table-cell;
        padding: 0;
        
        vertical-align: top;
    }

    .pas-member-table th {
        width: 45%;
        white-space: normal;
    }

    .pas-member-table td {
        width: 55%;
        word-break: break-word;
    }

}

/* -------------------------------------------------------- */
/* PAS Publication display layout.                          */
/* -------------------------------------------------------- */

.pasShowPublicationContent {
    display: none;
}

.pas-publication-profile {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid black;
    border-radius: 10px;
    background: #fafafa;
}

.pas-publication-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    margin-bottom: 15px;
}

.pas-publication-name {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 6px;
}

.pas-publication-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.pas-publication-section {
    flex: 0 0 calc(50% - 15px);
    min-width: 320px;
}

.pas-publication-section-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    border-bottom: 3px solid #ddd;
    padding-bottom: 4px;
}

.pas-publication-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pas-publication-table th,
.pas-publication-table td {
    text-align: left;
    vertical-align: top;
    padding: 0px;
    word-break: break-word;
}

.pas-publication-table th {
    width: 42%;
    font-weight: 600;
    white-space: normal;
}

.pas-publication-table td {
    width: 58%;
}

.pasClosePublication {
    margin-left: auto;
    border-radius: 10px;
}

@media (max-width: 700px) {

    .pas-publication-profile {
        padding: 15px;
    }

    .pas-publication-section {
        flex: 0 0 100%;
        min-width: 0;
    }

    .pas-publication-table th,
    .pas-publication-table td {
        display: table-cell;
        padding: 0;
        vertical-align: top;
    }

    .pas-publication-table th {
        width: 45%;
        white-space: normal;
    }

    .pas-publication-table td {
        width: 55%;
    }

}

/* -------------------------------------------------------- */
/* PAS Vehicle display layout.                              */
/* -------------------------------------------------------- */

.pasShowVehicleContent {
    display: none;
}

.pas-vehicle-profile {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid black;
    border-radius: 10px;
    background: #fafafa;
}

.pas-vehicle-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    margin-bottom: 15px;
}

.pas-vehicle-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 6px;
}

.pas-vehicle-owner {
    font-size: 14px;
    margin-left: 0;
    font-weight: normal;
}

.pas-vehicle-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.pas-vehicle-section {
    flex: 0 0 calc(50% - 15px);
    min-width: 320px;
}

.pas-vehicle-section-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    border-bottom: 3px solid #ddd;
    padding-bottom: 4px;
}

.pas-vehicle-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pas-vehicle-table th,
.pas-vehicle-table td {
    text-align: left;
    vertical-align: top;
    padding: 0px;
    word-break: break-word;
}

.pas-vehicle-table th {
    width: 42%;
    font-weight: 600;
    white-space: normal;
}

.pas-vehicle-table td {
    width: 58%;
}

.pas-vehicle-notes {
    margin-top: 30px;
}

.pas-vehicle-line {
    margin-top: 8px;
}

.pasCloseVehicle {
    margin-left: auto;
    border-radius: 10px;
}

@media (max-width: 700px) {

    .pas-vehicle-profile {
        padding: 15px;
    }

    .pas-vehicle-section {
        flex: 0 0 100%;
        min-width: 0;
    }

    .pas-vehicle-table th,
    .pas-vehicle-table td {
        display: table-cell;
        padding: 0;
       
        vertical-align: top;
    }

    .pas-vehicle-table th {
        width: 45%;
        white-space: normal;
    }

    .pas-vehicle-table td {
        width: 55%;
    }

}

/* -------------------------------------------------------- */
/* PAS Emporium display layout.                             */
/* -------------------------------------------------------- */

.pasShowEmporiumContent {
    display: none;
}

.pas-emporium-profile {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid black;
    border-radius: 10px;
    background: #fafafa;
}

.pas-emporium-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    margin-bottom: 15px;
}

.pas-emporium-name {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 6px;
}

.pas-emporium-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.pas-emporium-section {
    flex: 0 0 calc(50% - 15px);
    min-width: 320px;
}

.pas-emporium-section.wideSection {
    flex: 0 0 100%;
}

.pas-emporium-section-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    border-bottom: 3px solid #ddd;
    padding-bottom: 4px;
}

.pas-emporium-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pas-emporium-table th,
.pas-emporium-table td {
    text-align: left;
    vertical-align: top;
    padding: 0px;
    word-break: break-word;
}

.pas-emporium-table th {
    width: 42%;
    font-weight: 600;
    white-space: normal;
}

.pas-emporium-table td {
    width: 58%;
}

.pas-emporium-content {
    margin-top: 8px;
    line-height: 1.5;
}

.pasCloseEmporium {
    margin-left: auto;
    border-radius: 10px;
}

@media (max-width: 700px) {

    .pas-emporium-profile {
        padding: 15px;
    }

    .pas-emporium-section {
        flex: 0 0 100%;
        min-width: 0;
    }

    .pas-emporium-table th,
    .pas-emporium-table td {
        display: table-cell;
        padding: 0;
        vertical-align: top;
    }

    .pas-emporium-table th {
        width: 45%;
        white-space: normal;
    }

    .pas-emporium-table td {
        width: 55%;
    }
}


/* -------------------------------------------------------- */
/* PAS Edit/display meets details.                          */
/* -------------------------------------------------------- */

/* Add area */
.pas-meets-addarea {
  margin-bottom: 10px;
}

/* Editor wrapper */
.pas-meets-editor {
  display: none;              /* hidden by default */
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ccc;
  background: #f9f9f9;
}

/* Optional: if you want a class-based show instead of .show() */
.pas-meets-editor.is-open {
  display: block;
}

/* Status area */
.pas-meets-status:empty {
  display: none;
}

/* General field spacing */
.pas-meets-field {
  margin: 0 0 5px 0;
}

.pas-meets-sectionTitle {
  margin: 10px 0 8px 0;
}

/* Inputs */
.pas-meets-input--full {
  width: 100%;
}

.pas-meets-input--med {
  max-width: 220px;
  width: 100%;
}

.pas-meets-input--sm {
  max-width: 120px;
  width: 100%;
}

.pas-meets-select--sm {
  max-width: 120px;
  width: 100%;
}

/* Rows */
.pas-meets-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.pas-meets-rowItem {
  display: flex;
  align-items: center;
}

/* Fixed labels to mimic your inline widths */
.pas-meets-labelFixed {
  font-weight: 700;
  margin-right: 6px;
}

/* individual widths (mirrors your inline widths) */
.pas-meets-labelFixed--type  { width: 100px; }
.pas-meets-labelFixed--start { width: 100px; }
.pas-meets-labelFixed--tz    { width: 100px; }

.pas-meets-labelFixed--allday { width: 80px; }
.pas-meets-labelFixed--end    { width: 80px; }
.pas-meets-labelFixed--abbr   { width: 80px; }

/* Triple row (Origin/Venue/PAS Key) */
.pas-meets-row--triple {
  align-items: flex-start;
  margin-top: 12px;
}

.pas-meets-col {
  flex: 1;
}

/* Actions */
.pas-meets-actions {
  margin-top: 12px;
}

/* Trash hidden by default (matches your original inline style display:none) */
.pas-meets-trash {
  display: none;
}

.pas-meets-rowItem--checkbox {
  display:flex;
  align-items:center;
}

.pas-meets-checkbox {
  transform:scale(1.2);
  margin-left:6px;
}

#trash-meet-btn {
    float:right;
}

.pas-meets-row input[type="datetime-local"] {
        border: 1px solid black;
    padding: 5px;
}

.pas-meets-textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pas-meets-textarea--excerpt {
  min-height: 48px;
  resize: vertical;   /* allows user to expand if needed */
}

#meet-status-input,
#meet-type-input,
#meet-pageid-input {
    height: 30px; 
}

/* Simple responsive stacking */
@media (max-width: 600px) {
  .pas-meets-row,
  .pas-meets-rowItem {
    flex-direction: column;
    align-items: stretch;
  }

  .pas-meets-labelFixed {
    width: auto !important;
    margin-right: 0;
    margin-bottom: 4px;
  }
}



/* -------------------------------------------------------- */
/* Entity community Tabbed Info Boxes                       */
/* -------------------------------------------------------- */

#add-faq-btn,
.add-faq-btn,
#add-meet-btn {
    padding: 10px;
}

#editor-status,
.editor-status {
    color: green;
    margin-bottom: 10px;
}

.button-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}
.button-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

button#trash-faq-btn {
    float: right;
}

div.accordion .faq-question {
    cursor: pointer !important;
}

div.acordion.reorder .faq-question {
    xcursor: move;
}

.faq-question.ui-sortable-helper {
    background: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

a.edit-faq {
    float: right;
    font-weight: normal;
}

div.faq-question span.faq-status-label {
    font-weight: normal;
    font-style: italic;
}

#messageArea {
    position: fixed;
    top: 100px;
    right: 100px;
    background-color: #4CAF50; /* green success background */
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-size: 20px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#messageArea.show {
    opacity: 1;
}

.hidden {
    display: none;
}

form.editPostMeta  div.enterFeesBox {
    display: none;
}

form.editPostMeta.content  div.enterFeesBox {
    display: block;
}

div.enterFeesBox {
    margin-bottom: 15px;
    margin-top: 15px;
    border: 1px solid black;
    padding: 10px;
    background: #eee;
}

div.enterFeesBox div.enterFeesIntro {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

input#contact_email {
    width: 100%;
    max-width: 60%;
}

.feeLabelCell {
  width: 20%;              /* or whatever width you prefer */
  text-align: right;
  font-weight: 600;
  white-space: nowrap;      /* prevents wrapping */
  padding-right: 12px;      /* some breathing room */
}

/*
div.enterFeesBox div.feesWrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

div.enterFeesBox div.feeRow {
    display: flex;
    align-items: center;
    height: 24px;
}
*/
div.enterFeesBox .feeLabel {
    width: auto;
    margin-right: 10px;
    height: 24px;
    line-height: 24px;
}

div.enterFeesBox .feeInput {
    width: 100px;
    height: 24px;
    padding: 2px 6px;
    box-sizing: border-box;
}

div.editLink {
    background: #eee;
    text-align: right;
    display: block;
    padding-right: 20px;
    width: 100%;
}

.my-green-button,
.my-cancel-button {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.my-green-button {
    background-color: #28a745;
}

.my-green-button:hover {
    background-color: #218838;
}

.my-cancel-button {
    background-color: #dc3545;
}

.my-cancel-button:hover {
    background-color: #c82333;
}



div.communityTabs div.tab-content {
    position: relative;
}

xxxdiv.communityTabs a.tabsEdit {
    position: absolute;
    top: 0px;
    right: 0px;
}

div.communityTabs #entity-edit-expenses {
    position: relative;
    top: unset;
    right: unset;
    float: right;
}

div#entity-expense-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    background-color: rgb(231, 247, 231);
    color: rgb(21, 87, 36);
    border: 1px solid rgb(195, 230, 203);
    font-weight: 500;
    display: none;
}

#entityTabbedInfo {
    border: 1px solid black;
    padding: 10px;
}

#entityTabbedInfo .entityHelpDetail ul {
    padding-left: 1.5em; 
    list-style-position: outside; 
    margin-left: 0;
}

#entityTabbedInfo .entityHelpDetail ul li {
    text-indent: -1.5em; 
    padding-left: 1.5em;
}

#entityTabbedInfo div.tab-content {
    width: 100%;
}

/*#entityTabbedInfo .parent-no-children {
    display:none;
}*/

x#entityTabbedInfo div.accordion-header,
#entityTabbedInfo div.accordion-content tbody tr {
    display: none;
}

#entityFaqStructure div.accordion-header,
#entityFaqStructure div.accordion-content tr {
    display: block;
}

#entityTabbedInfo div.accordion-header.activeParent {
    display: block;
}

#entityTabbedInfo div.accordion-content tr.activeParent {
    display: table-row;
}

.button-saving, .button-trashing {
    color: red !important;
    font-weight: bold;
}

#entityTabbedInfo div.tabTitle {
  font-size:18px;
  font-weight:bold;
}

.feesWrapper .feeInput#contact_email {
  width: 50ch;
  /* roughly 50 characters wide */
  max-width: 100%;  /* but don’t overflow small screens */
}
#contact_email::placeholder,
#management_group_other::placeholder
 {
  color: #aaa !important;
  opacity: 0.6 !important;
}

.feeNote {
  margin-top: 4px;
  font-size: 12px;
  color: #666;
  max-width: 60%;
  display:none;
}

/* make select auto-size to content */
td.feeInputCell .feeSelect {
  width: auto;
  min-width: 250px; /* fallback minimum so it's not tiny */
  max-width: 60%;
}

.feesHelp {
  display: none;
  margin: 8px 0 16px;
  padding: 10px 12px;
  background: #f6f7f7;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
}

.feesHelpLink {
  margin-left: .5em;
  font-weight: 600;
  cursor: pointer;
}

#management_group_other {
    width: 100%;
    max-width: 60%;
}

/* -------------------------------------------------------- */
/* Community Fees Table                                     */
/* -------------------------------------------------------- */

.communityFees tr.sca-child td:first-child {
  padding-left: 2.25em;
}

.communityFees tr.sca-parent td:first-child {
  font-weight: 700; /* optional */
}

/* -------------------------------------------------------- */
/* Members Edit Form                                        */
/* -------------------------------------------------------- */

select, input[type="date"] {
    width: 150px;
}

select:required,
input:required {
    border-left: 4px solid red;
}

div.editInfoForm .compact-form table {
    border: 1px solid #ccc;
    padding: 16px;
    width: 100%;
    border-radius: 8px;
    font-family: sans-serif;
    background-color: #f9f9f9;
}

div.editInfoForm .compact-form table label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    font-size: 0.95em;
}

div.editInfoForm .compact-form table select,
div.editInfoForm .compact-form table input[type="date"],
div.editInfoForm .compact-form table input[type="submit"] {
    margin-top: 4px;
    padding: 4px 6px;
    font-size: 0.9em;
    width: auto;
}

div#positionButtons input[type="submit"] {
    cursor: pointer;
    background-color: #337ab7;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    margin-top: 10px;
}

#positionButtons input[type="button"] {
    cursor: pointer;
    background-color: #337ab7;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    margin-top: 10px;
}

div.editInfoForm .editWho span#editWhoTitle {
    font-weight: bold;
}

div.editInfoForm {
    max-width: 500px;
    margin: 0 auto; 
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

div.editInfoForm form {
  
    font-family: sans-serif;
    
    width: 100%;
}


.editInfoForm table {
    border-collapse: collapse;
    width: 100%;
    background-color: #f9f9f9;
}

.editInfoForm td {
    padding: 4px 8px;
    vertical-align: middle;
}

.editInfoForm label {
    display: inline-block;
    font-weight: 500;
    font-size: 0.95em;
    margin: 0;
}

.editInfoForm input[type="text"],
.editInfoForm input[type="email"],
.editInfoForm input[type="date"] {
    padding: 4px 6px;
    font-size: 0.95em;
    height: 28px;
    max-width: 250px;
    width: 100%;
    box-sizing: border-box;
}

.editInfoForm .compact-select {
    padding: 2px 6px;
    font-size: 0.9em;
    height: 28px;
}

div.tab-content .editInfoForm {
    margin:unset;
}

#officerList select#member-select{
    display: inline-block;
    width: 200px;
}

 /* Limit width of the select box */
#member-select.select2-hidden-accessible + .select2-container {
    max-width: 300px;
    display: inline-block;
}

/* Prevent text wrap and use ellipsis for overflow in results */
.select2-results__option,
.select2-selection__rendered {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.centeredText {
    text-align: center;
}

#officerList h4 {
    margin-bottom: 5px;
}

/* Adjust the rendered text inside */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px; /* vertically center text */
    padding-left: 0; /* tweak spacing */
    padding-right: 0;
}

/* Adjust the arrow (dropdown icon) if needed */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 24px;
}

#add-position-btn {
    margin-right: 10px;
    background-color: #337ab7;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    margin-top: 10px;
}

.editInfoForm tr.sca-child td:first-child {
  padding-left: 2.25em;
}

.editInfoForm tr.sca-parent td:first-child {
  font-weight: 700; /* optional */
}

.editInfoForm .help-tip {
  display: inline-block;
  margin-left: 6px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  background: #e6e6e6;
  color: #333;
  cursor: help;
  position: relative;
}

/* Tooltip bubble */
.editInfoForm .help-tip::after {
  content: attr(title);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.3;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
}

/* Tooltip arrow */
.editInfoForm .help-tip::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Show tooltip on hover */
.editInfoForm .help-tip:hover::after,
.editInfoForm .help-tip:hover::before {
  opacity: 1;
}

.editInfoForm .help-tip {
  margin-left: 6px;
}

/* -------------------------------------------------------- */
/* GRC Email form                                           */
/* -------------------------------------------------------- */

#grc-qc-emailform .grc-emailform {
  width: 100%;
  max-width: 900px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin: 20px auto;
  overflow: hidden;
}

/* Header */
#grc-qc-emailform .grc-emailform-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #eee;
  border-radius: 10px;
  border: 1px solid black;
  margin-bottom: 10px;
}

#grc-qc-emailform .grc-emailform-title {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

#grc-qc-emailform .grc-emailform-body {
  padding: 16px;
  border: 1px solid black;
  border-radius: 10px;
  background: #eee;
}

/* Meta info rows (Recipients, Filters, etc.) */
#grc-qc-emailform .grc-meta-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 10px;
  align-items: center;
  margin: 4px 0 10px 0;
  font-size: 14px;
}

#grc-qc-emailform .grc-meta-row label {
  font-weight: 600;
  line-height: 1.2;
  font-size: 14px;
  color: #000;
}

#grc-qc-emailform .grc-meta-row .meta-value {
  line-height: 1.2;
  color: #333;
  font-size: 14px;
}

/* Filters list */
#grc-qc-emailform .grc-filters-list {
  margin: 0;
  padding-left: 16px; 
}
#grc-qc-emailform .grc-filters-list li {
  margin: 2px 0;
}

/* Form grid (Subject, From, Reply-To) */
#grc-qc-emailform .grc-form-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0px 10px;
  align-items: center;
  margin-bottom: 10px;
}

#grc-qc-emailform .grc-form-grid label {
  font-weight: 600;
  line-height: 1.2;
  font-size: 14px;
  color: #000;
}

#grc-qc-emailform .grc-form-grid input[type='text'],
#grc-qc-emailform .grc-form-grid input[type='email'],
#grc-qc-emailform #grc_qc_body {
  width: 100%;
  padding: 6px 8px;
  line-height: 1.2;
  height: 34px;
  font-size: 14px;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  box-shadow: none;
  background: #fff;
}

#grc-qc-emailform #grc_qc_body {
  height: 180px;
  min-height: 160px;
  resize: vertical;
}

/* Read-only field */
#grc-qc-emailform .is-readonly[readonly] {
  background: #f6f7f7;
  color: #555;
  border-color: #ddd;
  cursor: not-allowed;
}

/* Actions */
#grc-qc-emailform .grc-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Placeholder style */
#grc-qc-emailform input::placeholder,
#grc-qc-emailform textarea::placeholder {
  color: #999 !important;
  opacity: 1 !important;
  font-style: italic !important;
  font-size: 13px !important;
}

/* Add Media button */
#grc-qc-emailform #grc-qc-insert-media {
  padding-top: 0;
  padding-bottom: 0;
  font-size: 13px;
}

#grc-qc-emailform div.grc-test-controls {
    border: 1px solid black;
    background: #eee;
    padding: 10px;
    border-radius: 10px;
}

#grc-qc-emailform #grc_test_recipients {
    width: 100%;
    max-width: 640px;
    height: 25px;
}

#grc-qc-emailform .grc-mail-warning {
  background: #fff4e5;
  border: 1px solid #f0b429;
  color: #5f3b00;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
}

/* Mobile tweaks */
@media (max-width: 782px) {
  #grc-qc-emailform .grc-form-grid,
  #grc-qc-emailform .grc-meta-row {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------- */
/* Board members contact form                               */
/* -------------------------------------------------------- */

form.grc-contact-board__form {
    border: 1px solid black;
    padding: 10px;
    background: #eee;
    border-radius: 10px;
}

form.grc-contact-board__form .grc-field input,
form.grc-contact-board__form .grc-field textarea {
    max-width: unset;
}

form.grc-contact-board__form #sca_cb_to[readonly] {
  background: #f7f7f7;
  color: #333;
  cursor: default;
}

form.grc-contact-board__form .grc-field input.has-error,
form.grc-contact-board__form .grc-field textarea.has-error {
  border: 2px solid #c00;
  background: #fff6f6;
}

div.grc-contact-board {
    clear: both;
}

div#mpn_officerListForm {
    margin-bottom: 20px;
}

/* -------------------------------------------------------- */
/* DataTables                                               */
/* -------------------------------------------------------- */

h1.page-title {
    text-align: center;
}


table.dataTable thead tr th {
    background-color: rgb(2, 105, 150);
    color: white;
}

div.table-container,
div#pubsTable_content {
    font-size: .9em;
}

.dataTables_wrapper .dataTables_filter input {
    height: 1em;
    margin-bottom: 10px;
}

.center {
    text-align: center;
}

#dataTableWrapper,
#generalTableWrapper,
.dataTableWrapper {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    overflow-x:auto;
}

.filter-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.filter-controls select,
.filter-controls input {
    margin-right: 10px;
}

.filter-controls {
    display: flex;
    gap: 10px;
    
    max-width: 70%;
    margin: 0 auto;
    margin-bottom: 20px;
}

.filter-control {
   /* min-width: 150px;*/
   /* margin-bottom: 15px; */
}

.filter-control label {
    display: block;
    font-weight: bold;
    margin-bottom: 0;
    white-space: nowrap;
}

.filter-control select {
    width: 100%;
}

div.filter-control label {
    display: block;
    font-weight: bold;
    margin-bottom: 0;
    white-space: nowrap;
}
div.filter-control select {
    border: 1px solid black;
    border-radius: 0;
    font-size: 15px;
}

table.generalTable td.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

#officerList select,
#officerList input[type=search],
#memberList select,
#memberList input[type=search],
#dataTableWrapper select {
    height: 2em;
}

#dataTableWrapper input[type=search] {
    height: 2em;
}

table.dataTable tfoot th {
    border-right: unset;
}

span.theClearButton {
    margin-left: 10px;
}

.centeredText {
    text-align: center;
}

.fusion-tabs #generalTable {
    margin: 0 !important;
}

#dataTableWrapper .filter-controlName {
    max-width: 200px;
}

/* header alignment */
#generalTable thead th.th-left   { text-align: left; }
#generalTable thead th.th-center { text-align: center; }
#generalTable thead th.th-right  { text-align: right; }
#generalTable tfoot th.th-left   { text-align: left; }
#generalTable tfoot th.th-center { text-align: center; }
#generalTable tfoot th.th-right  { text-align: right; }

/* body alignment */
#generalTable td.dt-right  { text-align: right; }
#generalTable td.dt-center { text-align: center; }
#generalTable td.dt-left   { text-align: left; }

/* -------------------------------------------------------- */
/*   Global Box-Sizing & Overflow Safety Net                */
/*   It gently normalizes layout boxes, prevents horizontal */
/*   creep and ensures padding doesn’t cause overflow —     */
/*   all without changing visual spacing.                   */
/* -------------------------------------------------------- */

/* 1 Use border-box everywhere (padding & border stay inside width) */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2 Prevent subtle horizontal scrollbars in tab/modals/containers */
.fusion-tabs .tab-content,
.fusion-modal .fusion-modal-content,
.fusion-builder-container,
.section-content,
body {
  overflow-x: hidden;
}

/* 3 Keep tab content padding but prevent it expanding total width */
.fusion-tabs .tab-content {
  padding-inline: 40px;  /* your desired padding */
  box-sizing: border-box; /* ✅ padding included in total width */
}

/* 4 DataTables + Avada harmony */
.fusion-tabs .dataTables_wrapper {
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

#generalTable,
#mpn_generalTable,
table.dataTable {
    width: 100% !important;
}

table.generalTable td.truncate {
    /* GRC doesn't seem like we need this 03/09/26
    max-width: unset !important;
    */
}

/* 5 Responsive tweak — soften padding on smaller screens */
@media (max-width: 900px) {
  .fusion-tabs .tab-content {
    padding-inline: 15px;
  }
}

table.filter-table th,
table.filter-table td {
  background: unset !important;
 /* border: unset !important;*/
}
table.filter-table  {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    width: 100%;
    border: none;
    table-layout: auto;
    border-collapse: separate !important;
    border-spacing: 10px 0; /* 10px horizontal, 0px vertical */
}

table.filter-table td {
    padding: 0.3em 0.6em;
    border: 1px solid;
    border-color: #ddd;
    border-color: var(--light-border-color);
}


table.filter-table th {
    font-weight: 400;
    text-align: initial;
    background: rgba(0, 0, 0, 0.05);
}

table.filter-table tfoot td {
    background: rgba(0, 0, 0, 0.05);
}

/* -------------------------------------------------------- */
/* Welcome new neighbors table                              */
/* -------------------------------------------------------- */

  #resultTable {
    margin: 2rem auto;
    max-width: 100%;
    overflow-x: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  #resultTable table {
    border-collapse: collapse;
    width: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background-color: #fff;
  }

  #resultTable thead {
    background-color: #273859;
    color: #ffffff;
  }

  #resultTable th, #resultTable td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }

  #resultTable tbody tr:nth-child(even) {
    background-color: #f5f8fb;
  }

  #resultTable tbody tr:hover {
    background-color: #e1ecf4;
    transition: background-color 0.2s ease-in-out;
  }

/* -------------------------------------------------------- */
/* Entity Fees accordion                                       */
/* -------------------------------------------------------- */

#entityFeeStructure {
    clear: both;
}

.header-labels {
    float: right;
}
.accordion-header::after {
    content: "+";
    float: left;
    margin-right: 8px;
}
.accordion-content {
    display: none;
}
.accordion-header.active::after {
    content: "−";
}
.accordion-header {
    background-color: #eee;
    cursor: pointer;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ccc;
    font-weight: bold;
}
.accordion-content {
    padding: 10px;
    border: 1px solid #ccc;
    border-top: none;
}
.entity-services-table {
    width: 100%;
    border-collapse: collapse;
}
.entity-services-table th, .entity-services-table td {
    border: 1px solid #ccc;
    padding: 8px;
}

.entity-services-table th:nth-child(2),
.entity-services-table th:nth-child(3),
.entity-services-table td:nth-child(2),
.entity-services-table td:nth-child(3) {
    text-align: center;
    width: 70px;
    overflow: hidden;
}
.label {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    display: inline-block;
}
.label-a { background-color: #4CAF50; color: white; }
.label-s { background-color: #2196F3; color: white; }
.label-a\/s, .label-a-s { background-color: #ff9800; color: white; }
.label-f {
    background-color: #9C27B0; /* purple, for example */
    color: white;
}
.entity-legend {
    margin-bottom: 16px;
    font-size: 0.95em;
}

.entity-legend-table {
    background-color: #eee; /* Match accordion-header background */
    border: 1px solid #ccc;
    border-collapse: collapse;
    margin-top: 8px;
    width: 100%;
}

.entity-legend-table td {
    padding: 6px 10px;
    vertical-align: middle;
    border: none; /* Remove internal borders */
}

.entity-legend-table td:first-child {
    width: 50px;
    text-align: center;
}

.label-f {
    background-color: #9c27b0; /* Purple for Friends of Stonebridge */
    color: white;
}

/* -------------------------------------------------------- */
/* Entity fees table layout                                    */
/* -------------------------------------------------------- */

/* Table look */
.entity-fees-table { width:100%; border-collapse:collapse; }
.entity-fees-table th, .entity-fees-table td { border:1px solid #ddd; padding:8px; vertical-align:top; }
.entity-fees-table .section-header td { background:#f5f7fa; font-weight:600; }
.entity-fees-table .category { width:22%; }
.entity-fees-table .detail { width:48%; }
.entity-fees-table .maintain, .entity-fees-table .replace { width:15%; text-align:center; }

/* Labels */
/*
.label { display:inline-block; padding:2px 8px; border-radius:10px; font-size:12px; line-height:1.3; }
.label-a   { background:#eef6ff; border:1px solid #cfe3ff; }
.label-s   { background:#ebfbef; border:1px solid #ccefd6; }
.label-f   { background:#fff7e6; border:1px solid #ffe3a8; }
.label-a-s { background:#f2ecff; border:1px solid #e1d5ff; }
*/

select.fee-select {
    height: 2em;
    width: 3em;
    text-align: center;
}

#entityFeeStructure .entity-fees-table tr.hidden-row,
#entityFeeStructure table.entity-fees-table.hidden-row {
  display: none;
}

#entityFeeStructure .entity-fees-table tr.hidden-row { display: none; }
#entityFeeStructure.editing .entity-fees-table tr.hidden-row { display: table-row; }

/* -------------------------------------------------------- */
/* Show lock icon if restricted to logged in users          */
/* -------------------------------------------------------- */

body:not(.logged-in) ul.fusion-menu .requires-login > a::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f023";
  margin-right: 0.45em;
  color: #ffd700;   /* gold */
}

/* -------------------------------------------------------- */
/* Communities Menu                                         */
/* -------------------------------------------------------- */

#menu-neighborhoods,
#menu-committees,
#menu-regions {
    row-gap: 10px;
    margin-bottom: 10px
}

#menu-neighborhoods,
#menu-committees,
#menu-regions {
  display: flex;
  flex-wrap: wrap;
}

#menu-neighborhoods > li:first-child {
  order: 0;
  width: auto;      /* natural width */
}

#menu-neighborhoods::before{
  content: "";
  flex-basis: 100%; /* creates a line break */
  order: 1;
}

#menu-neighborhoods > li:not(:first-child) {
  order: 2;
}

@media (max-width: 800px){
    #menu-neighborhoods,
    #menu-committees,
    #menu-regions {
        margin-top: 20px;
    }
}

/* -------------------------------------------------------- */
/* Sent email details                                       */
/* -------------------------------------------------------- */

.grc-email-details {
  width: 70%;
  margin: 18px auto;
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 10px;
}

/* page container */
.grc-page {
  max-width: 980px;
  margin: 20px auto 36px;
  padding: 0 12px;
}

/* main card */
.grc-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 22px rgba(0,0,0,.12);
  padding: 16px 16px 18px;
}

/* title */
.grc-page-title {
  margin: 0 0 10px;
  font-size: 24px; /* slightly smaller */
  font-weight: 700;
}

/* back link */
.grc-back-link {
  margin-bottom: 10px;
}
.grc-back-link a {
  text-decoration: none;
  font-weight: 600;
}
.grc-back-link a:hover {
  text-decoration: underline;
}

/* section headers */
.grc-section-title {
  background: #dbe8ff;
  color: #000;
  text-align: center;
  font-weight: 700;
  padding: 8px 12px;      /* ↓ from 10px */
  border: 1px solid #cfdcff;
  border-left: 0;
  border-right: 0;
  margin: 18px 0 6px;     /* ↓ from 22px */
}

/* key/value table */
table.grc-kv {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

table.grc-kv th,
table.grc-kv td {
  padding: 6px 12px;      /* ↓ slightly */
  vertical-align: top;
  border-bottom: 1px solid #eee;
  line-height: 20px;
}

table.grc-kv th {
  width: 220px;           /* ↓ from 240 */
  background: #f3f3f3;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

table.grc-kv tr:nth-child(odd) td {
  background: #f7f7f7;
}

/* message body */
.grc-message {
  padding: 12px 14px;     /* ↓ slightly */
  border-bottom: 1px solid #eee;
  background: #fff;
  font-size: 15px;        /* ↓ from 16 */
  line-height: 1.45;
}

/* raw / pre blocks */
.grc-kv pre {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

/* responsive tweaks */
@media (max-width: 640px){

    .grc-email-details {
        width: 100%;
    }
  table.grc-kv th{
    width: 150px;
  }

  .grc-page {
    margin: 16px auto 28px;
  }

  .grc-panel {
    padding: 14px;
  }

  .grc-page-title {
    font-size: 22px;
  }
}

/* -------------------------------------------------------- */
/* General Toggle function                                  */
/* Used by shortcode grc_toggle_content                     */
/* -------------------------------------------------------- */

.grc-toggle__btn {
  display: inline-block;
  margin: 8px 0 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.grc-toggle__btn:hover { text-decoration: none; }
.grc-toggle__panel { margin-top: 10px; }

.grc-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.grc-toggle__arrow {
  transition: transform 0.2s ease;
  font-size: 14px;
}

.grc-toggle__btn[aria-expanded="true"] .grc-toggle__arrow {
  transform: rotate(90deg);
}

.grc-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.grc-toggle__arrow {
  transition: transform 0.2s ease;
  font-size: 14px;
}

.grc-toggle__btn[aria-expanded="true"] .grc-toggle__arrow {
  transform: rotate(90deg);
}

.grc-toggle__btn {
  cursor: pointer;
  background-color: #337ab7;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  margin-top: 20px;
}

/* -------------------------------------------------------- */
/* Contact Us Form (Scoped to Form 1741)                    */
/* -------------------------------------------------------- */

form.fusion-form-1741 .sca-contactwho-options{
  padding-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
  row-gap: 4px;
}

@media (max-width: 640px){
  form.fusion-form-1741 .sca-contactwho-options{
    grid-template-columns: 1fr;
  }
}

form.fusion-form-1741 .sca-contactwho-accordion details{
  padding: 10px 14px;
  background: #fff;
}

form.fusion-form-1741 .sca-contactwho-accordion summary{
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  outline: none;
}

form.fusion-form-1741 .sca-contactwho-option{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  cursor: pointer;
  font-weight: bold;
}

form.fusion-form-1741 .sca-contactwho-option input[type="radio"]{
  margin-top: 3px;
  flex-shrink: 0;
}

form.fusion-form-1741 .sca-contactwho-option span{
  line-height: 1.4;
  display: block;
}

form.fusion-form-1741 div.fusion-form-field{
  margin-top: 2px !important;
}



/* -------------------------------------------------------- */
/* New Account user edit form.                              */
/* -------------------------------------------------------- */

.aud-account-settings {
  background: #eee;
  border: 1px solid black;
  border-radius: 10px;
  padding: 10px;
}

/* AUD (Account UpDate) Account Settings form styling */
.aud-account-settings .form-table {
  width: 100%;
  border-collapse: collapse;
}

/* Labels */
.aud-account-settings .form-table th {
  width: 100px;
  text-align: right;
  padding: 10px 12px 10px 0;
  vertical-align: middle;   /* default */
  font-weight: 600;
  color: #333;
}

.aud-account-settings .form-table td {
  padding: 10px 0;
}

/* Checkbox rows align to top (requires PHP adding tr.aud-is-checkbox) */
.aud-account-settings .form-table tr.aud-is-checkbox th,
.aud-account-settings .form-table tr.aud-is-checkbox td {
  vertical-align: top;
}

/* Inputs (global defaults) */
.aud-account-settings input[type="text"],
.aud-account-settings input[type="tel"],
.aud-account-settings input[type="email"],
.aud-account-settings input[type="password"],
.aud-account-settings input[type="search"] {
  width: 100%;
  max-width: 360px;
  height: 38px;
  padding: 6px 10px;
  border: 1.5px solid #666;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

/* Focus state */
.aud-account-settings input:focus {
  border-color: #2271b1; /* WP blue */
  outline: none;
  box-shadow: 0 0 0 1px rgba(34,113,177,0.2);
}

/* Checkbox base */
.aud-account-settings input[type="checkbox"] {
  transform: scale(1.05);
  margin-right: 6px;
}

/* Buttons */
.aud-account-settings .button-primary {
  min-width: 160px;
  height: 40px;
  font-size: 14px;
}

/* Delete tab warning box */
.aud-account-settings .aud-delete-warning {
  border: 1.5px solid #c00;
  background: #fff5f5;
  padding: 14px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Help text */
.aud-help-text {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.3;
  opacity: 0.85;
}

/* Account update notices */
.aud-account-settings .notice {
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
}

/* Errors = red */
.aud-account-settings .notice-error {
  border-left: 4px solid #b32d2e;
  background: #fff5f5;
  color: #b32d2e;
}

/* Success = neutral / black */
.aud-account-settings .notice-success {
  border-left: 4px solid #46b450;
  background: #f7fff9;
  color: #000;
}

/* Optional: tighten paragraph spacing */
.aud-account-settings .notice p {
  margin: 0;
}

/* Account update inline messages */
.aud-account-settings .aud-message {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
}

/* Error messages */
.aud-account-settings .aud-message.aud-err {
  color: #b32d2e;
  background: #fff5f5;
  border-left: 4px solid #b32d2e;
}

/* Success messages */
.aud-account-settings .aud-message.aud-ok {
  color: #000;
  background: #f7fff9;
  border-left: 4px solid #46b450;
}

/* Checkbox layout */
.aud-account-settings .aud-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.aud-account-settings .aud-checkbox-row input[type="checkbox"] {
  margin-top: 3px;
}

.aud-account-settings .aud-checkbox-label {
  line-height: 1.4;
}

/* Display-only field */
.aud-account-settings .aud-display-only {
  padding: 8px 10px;
  max-width: 360px;
}

.aud-actions .button {
    margin-top: 20px;
}

/* -------------------------------------------------------- */
/* Tooltip + input wrapper fixes                            */
/* -------------------------------------------------------- */

/* Wrap input + ? so they sit inline and size correctly */
.aud-account-settings .aud-input-wrap {
  display: flex;            /* key change: was inline-flex */
  align-items: center;
  gap: 8px;
  max-width: 360px;         /* match input max-width */
}

/* Override width:100% inside the flex wrapper */
.aud-account-settings .aud-input-wrap input[type="text"],
.aud-account-settings .aud-input-wrap input[type="tel"],
.aud-account-settings .aud-input-wrap input[type="email"],
.aud-account-settings .aud-input-wrap input[type="password"],
.aud-account-settings .aud-input-wrap input[type="search"] {
  width: auto;              /* override */
  flex: 1 1 auto;           /* fill available space */
  min-width: 0;             /* prevent overflow */
}

/* Tooltip icon */
.aud-account-settings .aud-help-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #666;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  cursor: help;
  user-select: none;
  flex: 0 0 auto;           /* don't shrink */
  margin-top: 2px;          /* tiny optical alignment */
}

/* Pure CSS tooltip bubble */
.aud-account-settings .aud-help-tooltip{
  position: relative;
}

.aud-account-settings .aud-help-tooltip::after{
  content: attr(data-tip);
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 180px;
  max-width: 280px;
  padding: 8px 10px;
  border: 1px solid #666;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 13px;
  line-height: 1.3;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .12s ease, visibility .12s ease;
}

/* show on hover OR keyboard focus OR click-hold on mobile (focus) */
.aud-account-settings .aud-help-tooltip:hover::after,
.aud-account-settings .aud-help-tooltip:focus::after,
.aud-account-settings .aud-help-tooltip:focus-within::after{
  opacity: 1;
  visibility: visible;
}

/* -------------------------------------------------------- */
/* Awards and Award recipients                              */
/* -------------------------------------------------------- */

/* --------------------- Awards form -------------------------- */

form#editAward {
  border: 1px solid black;
  background: #eee;
  border-radius: 10px;
  padding: 10px;
}

/* --------------------- Awards List -------------------------- */

#awardList {
  width: 100%;
  border-collapse: collapse;
}

#awardList td {
  border: none;
  vertical-align: top;
}

/* image column */
#awardList td:first-child {
  width: 20%;
  text-align: center;
}

#awardList td:first-child img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* text styles */
#awardList .awardTitle {
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
}

#awardList .awardContent {
  text-align: justify;
}

/* ------------------- responsive award list ---------------- */

@media (max-width: 640px) {

  #awardList,
  #awardList tbody,
  #awardList tr,
  #awardList td {
    display: block;
    width: 100% !important;
  }

  #awardList tr {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0,0,0,0.12);
  }

  /* image on top, centered */
  #awardList td:first-child {
    margin-bottom: 10px;
  }

  #awardList td:first-child img {
    max-width: 240px;
    width: 100%;
    margin: 0 auto;
  }
}

/* ------------------- Award Recipients ---------------------- */

div.awardRecipients > img {
  float: left;
  margin-right: 15px;
  width: 100px;
}

div.awardRecipients p.awardTitle {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0;
}

div.awardRecipients p.awardContent {
  text-align: justify;
}

div.awardRecipients p.awardContent img {
  float: left;
  margin-right: 15px;
  width: 150px;
}

div.awardRecipients .awardImage a {
  float: right;
}

div.awardRecipients .awardImage a img {
  width: 300px;
}

div.awardRecipients .awardDetails {
  float: left;
}

div.awardRecipients .awardDetails .awardHighlight,
div.awardHighlight {
  font-weight: bold;
  color: midnightblue;
  font-style: italic;
}

div.awardHighlightCenter {
  text-align: center;
  font-weight: bold;
  color: midnightblue;
  font-style: italic;
}

.awardRecipients .awardTitle a {
  pointer-events: none;   /* disables clicking */
  cursor: default;        /* or: not-allowed */
  text-decoration: none;  /* optional */
  color: inherit;         /* optional */
}

/* --------------------- Meets list table --------------------- */

#meetsTable {
  width: 100%;
}

#meetsTable thead {
  background-color: #3d6b99;
  color: white;
}

#meetsTable tbody tr:nth-child(even) {
  background: #eee;
}

#meetsTable thead tr th:nth-child(2) {
  width: 10%;
}

#meetsTable thead tr th:nth-child(3) {
  width: 30%;
}

#meetsTable tbody td span.upcoming {
  color: green;
  font-weight: bold;
}

p.upcomingEvent {
  color: green;
  font-weight: bold;
  text-align: center;
}

/* --------------------- Single meet details ------------------ */

div#meetDetails .meetInfo {
  text-align: center;
  font-style: italic;
}

div#meetDetails .meetInfo .meetTitle {
  font-size: 1.2rem;
  font-weight: bold;
  color: midnightblue;
}

/* -------------------------------------------------------- */
/* Serial number location table                             */
/* -------------------------------------------------------- */

/* Serial location container */
div#serialLocationContainer {
    border: 1px solid black;
    padding: 10px;
}

/* Serial number location table */
table.serial-location{
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

table.serial-location thead th{
  text-align: left;
  padding: 12px 12px;
  border-bottom: 2px solid rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.04);
  font-weight: 700;
  vertical-align: bottom;
}

table.serial-location tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.10);
  vertical-align: top;
}

table.serial-location tbody tr:hover{
  background: rgba(0,0,0,0.03);
}

/* Column sizing */
table.serial-location th:nth-child(1),
table.serial-location td:nth-child(1){ width: 10ch; white-space: nowrap; }

table.serial-location th:nth-child(2),
table.serial-location td:nth-child(2){ width: 7ch; text-align: center; white-space: nowrap; }

table.serial-location th:nth-child(3),
table.serial-location td:nth-child(3){ width: 10ch; text-align: center; }

table.serial-location th:nth-child(5),
table.serial-location td:nth-child(5){ width: 220px; text-align: center; }

/* Images */
table.serial-location td img{
  max-width: 200px;
  width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
}

/* "no image" style */
table.serial-location .no-image{
  display: inline-block;
  padding: 10px 12px;
  border: 1px dashed rgba(0,0,0,0.25);
  border-radius: 8px;
  font-style: italic;
  color: rgba(0,0,0,0.65);
}

/* Mobile: stack rows into cards */
@media (max-width: 720px){
  table.serial-location,
  table.serial-location thead,
  table.serial-location tbody,
  table.serial-location th,
  table.serial-location td,
  table.serial-location tr{
    display: block;
    width: 100%;
  }

  table.serial-location thead{
    /* keep accessible but hide visually */
    position: absolute;
    left: -9999px;
    top: -9999px;
  }

  table.serial-location tbody tr{
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    margin: 0 0 14px 0;
    overflow: hidden;
    background: #fff;
  }

  table.serial-location tbody td{
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 10px 12px;
  }

  table.serial-location tbody td:last-child{
    border-bottom: none;
  }

  table.serial-location tbody td::before{
    content: attr(data-label);
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    opacity: 0.75;
  }

  table.serial-location td img{
    max-width: 320px;
  }
}
