/* COPY OF trip project's CSS file (can override values here) */
/*
 * The page's one growl stacks above EVERY dialog (2026-11-07). PrimeFaces gives it the next z-index when it
 * shows, which a dialog opened or raised later outranks (a modal's overlay even paints over it), so a message
 * raised while a dialog is up, including the generic "Something went wrong" of TripAjaxExceptionHandler, sat
 * unseen beneath it. !important beats the inline z-index PrimeFaces writes.
 */
body .ui-growl { z-index: 2000000 !important; }
.table-title-button {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    flex-wrap:wrap;
    font-size:1.3em;
}
/*
 * Property-sheet label cells. NO display override: p:panelGrid emits columnClasses onto <td> elements, and
 * the display:block that used to live here took those cells out of table layout -- the cell shrank to its
 * label text and its background stopped filling the row, leaving ragged gaps beside any tall value cell
 * (calendars, multi-selects, the family dialog's inputs). First patched per-dialog (editEventDlg/contentDlg/
 * templateDlg); made global 2026-08-10 after confirming every .propSheetLabel in the app is a panelGrid
 * cell -- keep it that way, or give a non-cell usage its own class.
 */
.propSheetLabel {
    vertical-align:top;
    text-align:right;
    font-weight:bold;
}
.propSheetValue {
    vertical-align:top;
}
/*
 * Dialog property sheets fill the dialog's width (2026-09-11). A dialog that stacks several p:panelGrids (the
 * trip-event dialog's type-aware sections) rendered a staircase: each table sized itself to its own content,
 * so the shared background stepped in and out row by row. One rectangle for every dialog, and the text
 * inputs inside the value cells share one width so the fields line up as well as the background.
 */
.ui-dialog .ui-panelgrid { width: 100%; }
/* A dialog's fixed width= is a desktop number; on a phone it ran past the right edge (2026-09-12). */
body .ui-dialog { max-width: calc(100vw - 16px); }
body .ui-dialog .ui-dialog-content { overflow-x: auto; }
.ui-dialog td.propSheetValue > input.ui-inputfield,
.ui-dialog td.propSheetValue > textarea.ui-inputfield,
.ui-dialog td.propSheetValue > .ui-selectonemenu { width: 100%; max-width: 520px; box-sizing: border-box; }
/*
 * The content dialog (WEB-INF/contentDialog.xhtml); its rich-text editor's height is in richEditor.css. Since
 * 2026-11-16 the dialog is a drawer at the side of the page; its place, the template list and the in-page preview are
 * the ".contentDrawer" rules further down.
 */
.contentDlg .propSheetLabel { width: 170px; }
/* What Apply would remove (contentDialog.xhtml, dlgStrip): kept in sight at the foot of the drawer while the form
   above it scrolls, because the field it is about may be a screen away. */
.contentDlg .dlgStrip { position: sticky; bottom: 0; z-index: 1; }
.contentDlg .dlgStripBox { display: block; margin: 8px 0 0; padding: 8px 12px; max-height: 30vh; overflow-y: auto; }
.contentDlg .dlgStripHead { font-weight: bold; }
.contentDlg .dlgStripBox ul, .stripDlg .stripList { margin: 6px 0 0; padding-left: 1.2em; }
.contentDlg .dlgStripBox li, .stripDlg .stripList li { overflow-wrap: anywhere; margin-bottom: 4px; }
.stripDlg { max-width: 640px; }
.stripDlg .stripList { margin-bottom: 4px; }
/* The content drawer (2026-11-16): the Add / Edit panel is pinned to the window's edge instead of floating over
   the page, and the page makes room beside it. PrimeFaces writes a dialog's place and size inline on every show
   and refit, hence the !important on exactly those. The width is one variable so the page's margin follows it:
   the form (a rich-text editor) gets more room than the template list. */
body { --trip-drawer-w: 420px; }
body.tripDrawerWide { --trip-drawer-w: 520px; }
body .ui-dialog.contentDrawer { position: fixed !important; top: 0 !important; right: 0 !important; left: auto !important;
    bottom: 0 !important; width: var(--trip-drawer-w) !important; max-width: 100vw; height: auto !important; margin: 0;
    border-radius: 0; border-width: 0 0 0 1px; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.14); }
/* PrimeFaces shows a dialog by writing display:block inline; shown, the drawer is a column whose middle scrolls. */
body .ui-dialog.contentDrawer[style*="display: block"] { display: flex !important; flex-direction: column; }
body .ui-dialog.contentDrawer .ui-dialog-titlebar, body .ui-dialog.contentDrawer .ui-dialog-footer { flex: none; }
body .ui-dialog.contentDrawer .ui-dialog-content { flex: 1 1 auto; min-height: 0; height: auto !important;
    max-height: none !important; overflow-y: auto; padding-top: 10px; }
body.tripDrawerOpen { margin-right: var(--trip-drawer-w); }
@media (max-width: 900px) {
    body .ui-dialog.contentDrawer { width: 100vw !important; }
    body.tripDrawerOpen { margin-right: 0; }
}
/* In the drawer the form's label sits above its field: there is no room for a label column. */
.contentDrawer .ui-panelgrid > tbody > tr, .contentDrawer .ui-panelgrid > tbody > tr > td { display: block; width: auto;
    padding-left: 0; padding-right: 0; background: transparent; border: 0; }
.contentDrawer .ui-panelgrid > tbody > tr > td.propSheetLabel { padding-bottom: 0; text-align: left; white-space: normal;
    background: transparent; border: 0; }
.contentDrawer .ui-panelgrid .ui-inputtext, .contentDrawer .ui-panelgrid .ui-selectonemenu,
.contentDrawer .ui-panelgrid .ui-selectcheckboxmenu, .contentDrawer .ui-panelgrid .ui-autocomplete { width: 100%; }
.contentDrawer .tplTitleNote { display: block; margin-top: 3px; font-size: 0.82em; }
.contentDrawer .tplFillHead { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--surface-border); }
/* The form's "Template: <name>" line (2026-11-25), and the note about values a menu does not list. */
.contentDrawer .tplFillName { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px;
    font-weight: 600; }
.contentDrawer .tplFillEdit { font-weight: normal; margin-left: auto; }
.contentDrawer .tplUnlisted { margin: 0 0 10px 0; padding: 8px 12px; }
.contentDrawer .tplUnlisted ul { margin: 4px 0 0 0; padding-left: 1.2em; }
.contentDrawer .tplPlain .ui-chkbox-label { font-weight: 600; }
.contentDrawer .tplExamples { margin-top: 6px; }
/* Step 1, the template list: where it goes, search, tag chips, one row per template, the selected one in words.
   Its small print (the notes, count, legend, group heads, row descriptions) carries .textMuted for its color, never an
   opacity; these rules keep only each one's size and place. */
/* The list step fills the drawer exactly: the rows scroll, the selected template and its Add button stay in view. */
body .ui-dialog.contentDrawer .ui-dialog-content:has(.tplPick) { display: flex; flex-direction: column; overflow: hidden; }
.contentDrawer .tplPick { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-height: 0; }
.contentDrawer .tplWhere { display: flex; align-items: center; gap: 8px; margin: -10px -1rem 0; padding: 6px 1rem;
    font-weight: 600; font-size: 0.92em; background: var(--primary-lighter-color);
    border-bottom: 1px solid var(--surface-border); }
.contentDrawer .tplWhere > i { color: var(--primary-color); }
.contentDrawer .tplWhereText { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contentDrawer .tplMove { display: flex; gap: 2px; flex: none; }
.contentDrawer .tplSearch { position: relative; }
.contentDrawer .tplSearch > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: 0.6;
    pointer-events: none; }
.contentDrawer .tplSearch input { width: 100%; height: 38px; padding-left: 36px; padding-right: 78px; }
.contentDrawer .tplCount { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 0.82em; }
.contentDrawer .tplChips { display: flex; flex-wrap: wrap; gap: 6px; }
.contentDrawer .tplChip { padding: 3px 11px; border-radius: 999px; border: 1px solid var(--surface-border);
    background: var(--surface-card); color: var(--text-color); font: inherit; font-size: 0.86em; cursor: pointer;
    transition: border-color 150ms ease-out, background-color 150ms ease-out; }
.contentDrawer .tplChip:hover { border-color: var(--primary-color); }
.contentDrawer .tplChip:active { transform: scale(0.97); }
.contentDrawer .tplChip:focus-visible, .contentDrawer .tplCards:focus-visible { outline: 2px solid var(--primary-color);
    outline-offset: 2px; }
.contentDrawer .tplChip[aria-pressed="true"] { background: var(--primary-color); border-color: var(--primary-color);
    color: var(--primary-color-text); font-weight: 600; }
.contentDrawer .tplLegend { display: flex; align-items: center; gap: 2px; font-size: 0.86em; }
.contentDrawer .tplCards { flex: 1 1 0; min-height: 120px; overflow-y: auto; margin: 0 -6px;
    border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); }
.contentDrawer .tplGroupHead { margin: 10px 6px 4px; font-size: 0.74em; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; }
.contentDrawer .tplCard { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px;
    cursor: pointer; }
.contentDrawer .tplCard[hidden], .contentDrawer .tplGroupHead[hidden], .contentDrawer .tplEmpty[hidden] { display: none; }
.contentDrawer .tplCard:hover { background: var(--surface-hover); }
.contentDrawer .tplCard[aria-selected="true"] { background: var(--primary-lighter-color);
    box-shadow: inset 0 0 0 1.5px var(--primary-color); }
.contentDrawer .tplCardIcon { flex: none; margin-top: 3px; color: var(--primary-color); }
.contentDrawer .tplCardText { flex: 1 1 auto; min-width: 0; }
.contentDrawer .tplCardHead { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.contentDrawer .tplCardDesc { font-size: 0.86em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contentDrawer .tplKind { flex: none; font-size: 0.7em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    padding: 1px 7px; border-radius: 999px; border: 1px solid var(--surface-border); background: var(--surface-ground);
    color: var(--text-color); }
.contentDrawer .tplKind-PROGRAMMATIC { color: var(--status-success); background: var(--status-success-bg);
    border-color: color-mix(in srgb, var(--status-success) 35%, var(--status-success-bg)); }
.contentDrawer .tplEmpty { padding: 28px 12px; text-align: center; display: flex; flex-direction: column; align-items: center;
    gap: 10px; }
.contentDrawer .tplEmpty > i { font-size: 1.6em; opacity: 0.4; }
.contentDrawer .tplDetail { flex: none; font-size: 0.92em; display: flex; flex-direction: column; gap: 5px; }
.contentDrawer .tplDetail[hidden] { display: none; }
.contentDrawer .tplDetailName { font-size: 1.1em; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.contentDrawer .tplDetailNote:empty, .contentDrawer .tplDetailFields:empty { display: none; }
.contentDrawer .tplDetailNote { font-size: 0.92em; }
.contentDrawer .tplDesigner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 0.92em; }
.contentDrawer .tplDesigner .tplNew { margin-left: auto; }
.contentDrawer .tplNew { font-weight: 600; white-space: nowrap; }
.contentDrawer .tplAddIt { width: 100%; margin-top: 6px; }
/* The preview in the page: a dashed block where the item goes, labeled so nobody takes it for saved content.
   An item being edited is replaced by its preview; a group being edited stays and is only outlined. */
.tripGhost, .tripLiveEditing { position: relative; outline: 2px dashed var(--primary-color); outline-offset: -2px; }
.tripGhost { animation: tripGhostIn 160ms ease-out both; }
.tripGhostTag { position: absolute; top: 8px; left: 8px; z-index: 5; padding: 4px 11px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--primary-color-text); background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); pointer-events: none; }
.tripGhostBody { min-height: 44px; }
.tripLiveReplaced { display: none !important; }
@keyframes tripGhostIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .tripGhost { animation: none; }
    .contentDrawer .tplChip:active { transform: none; }
}
/*
 * The Registration Pricing dialog (WEB-INF/tripPricingDialog.xhtml, 2026-11-02): one column that never scrolls
 * sideways. pricingCell stacks two small inputs in one table cell, so a discount code is two lines tall instead of
 * nine columns wide; pricingOff mutes the policy while "Registration requires payment" is off.
 */
.pricingSwitch { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.pricingSwitchLabel { font-weight: 700; }
/* Small print: the muted look is .textMuted's (below); this keeps only its spacing. */
.pricingHint { margin: 4px 0 10px 0; }
.pricingH { margin: 14px 0 6px 0; }
.pricingIndent { margin-left: 28px; }
/* The "Selected file" line under a library pick list (the Trip Page dialog): a long path wraps, never clips. */
.pickChosen { font-size: 0.9em; margin: 4px 0 8px 0; overflow-wrap: anywhere; }
.pickChosenName { font-weight: 700; }
.pricingRow { margin-top: 10px; }
.pricingOff { opacity: 0.45; pointer-events: none; }
/* The muted policy still explains itself: its help cards open while the fields stay inert. */
body .pricingOff .fieldHelpBtn { pointer-events: auto; }
.pricingWarn { background: var(--status-warning-bg); color: var(--text-color); border-left: 4px solid var(--status-warning); padding: 6px 10px; margin: 8px 0; }
.pricingSet { margin-top: 12px; }
.ui-dialog .pricingGrid.ui-panelgrid { width: auto; }
.pricingGrid td { padding: 4px 10px 4px 0; }
.ui-dialog .pricingCell { display: block !important; width: 100% !important; box-sizing: border-box; margin: 0 0 4px 0; }
.ui-dialog .pricingCell .ui-inputfield { width: 100%; box-sizing: border-box; }
.co-deposit { margin: 6px 0; }
.co-deposit div { margin: 2px 0; }
/* The friendly reading of a 24-hour date/time field (trip-js/dateHint.js), under the field it explains. */
.dateHint { display: block; font-size: 0.85em; opacity: 0.75; margin: 2px 0 0 2px; min-height: 1.1em; }
.editorHover:hover {
    background-color: var(--primary-color);
    color: var(--primary-color-text);
}
.editorHover {
    border:none;
    display:block;
}
.ui-datatable-header {
    min-height: 59px;
}
body .ui-datatable thead th {
    padding: 3px 3px 3px 12px;
}
.siteheading {
    font-family: "Comic Sans MS", cursive, sans-serif;
    font-size: 40px;
    letter-spacing: -3px;
    word-spacing: -8px;
    color: var(--primary-color);
    text-shadow: -1px -1px 0 var(--surface-200), 1px -1px 0 var(--surface-200), -1px 1px 0 var(--surface-200),
            1px 1px 0 var(--surface-200);
    font-weight: 700;
    text-decoration: none;
    font-variant: normal;
    text-transform: none;
    text-align: center;
}
.small-p P {
    margin:0px;
}

/* ============ Privacy masking (WEB-INF/privacyMask.xhtml) ============
   A withheld value an admin may still access is in the page but hidden behind this placeholder until a
   click adds privRevealed (client-side, no round trip). The blur keeps the look of a hidden value. A value
   the viewer may not see at all is never rendered, so nothing here guards it. */
.privMaskedText {
    filter: blur(4px);
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}
.privMasked:not(.privRevealed) > .privMaskValue,
.privRevealed > .privMaskedText {
    display: none;
}
.privRevealAll {
    margin-left: 8px;
    font-size: 12px;
}
/* "Show private values" (WEB-INF/privacyRevealAll.xhtml) is offered only while its scope (the nearest privScope,
   else the fieldset; the same lookup as its onclick) holds a mask still closed. The link is always rendered, so
   this rule is the ONLY thing that decides it, from what rendered rather than restated per host: a viewer with no
   MASK verdict gets no privMasked span, a mask whose `blank` demoted it carries none, and a revealed one carries
   privRevealed, so the link also goes away once it (or the last single click) has opened everything. */
.ui-fieldset:not(:has(.privMasked:not(.privRevealed))) .privRevealAll,
.privScope:not(:has(.privMasked:not(.privRevealed))) .privRevealAll {
    display: none;
}
.privTag {
    color: var(--text-color);
    font-size: 12px;
    margin-left: 8px;
}
.privNote {
    color: var(--text-color);
    font-size: 12px;
    margin: 2px 0 8px 4px;
}

/*
 * Field help (WEB-INF/fieldHelp.xhtml, 2026-11-02): a quiet round "i" after a property-sheet label that
 * opens a small card explaining the field. The icon stays muted so a column of them reads as part of the
 * label, and lights up on hover or keyboard focus. "body" outranks freya's layout css, which loads after us.
 * The icon is a foreground on the page surface, so --primary-color is safe here (never a text color ON it).
 */
.fieldLabel { white-space: nowrap; }
/* On a phone a long label ("TSA Known Traveler ID Number:") would push the page wider than the screen. */
@media (max-width: 640px) {
    body .fieldLabel { white-space: normal; }
}
body .ui-button.fieldHelpBtn {
    width: 1.5rem; height: 1.5rem; padding: 0; margin: -3px 0 0 2px; vertical-align: middle;
    color: var(--text-color-secondary, #6c757d); background: transparent; border: none; box-shadow: none;
}
body .ui-button.fieldHelpBtn .ui-icon { font-size: 0.95rem; }
body .ui-button.fieldHelpBtn:enabled:hover,
body .ui-button.fieldHelpBtn:enabled:focus-visible,
body .ui-button.fieldHelpBtn[aria-expanded="true"] {
    color: var(--primary-color); background: var(--surface-hover, rgba(0, 0, 0, 0.04));
}
body .ui-overlaypanel.fieldHelpPnl {
    /* !important: PrimeFaces writes an inline max-width (the viewport) on every overlay it positions. */
    max-width: min(360px, calc(100vw - 24px)) !important; border-radius: 10px; border: 1px solid var(--surface-border);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
    /* No animation of our own: PrimeFaces' connected-overlay TRANSITION is the entrance, and the widget
       binds its click-outside dismissal only when that transition ends. A keyframe animation on transform
       swallowed the transitionend, so the card never finished opening and never closed on an outside click. */
}
body .ui-overlaypanel.fieldHelpPnl .ui-overlaypanel-content { padding: 12px 34px 14px 16px; }
body .fieldHelpTitle {
    display: flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 6px;
    color: var(--text-color);
}
body .fieldHelpTitle .pi { color: var(--primary-color); font-size: 0.95rem; }
body .fieldHelpBody { font-size: 0.9em; line-height: 1.45; color: var(--text-color); text-align: left;
    white-space: normal; font-weight: normal; }
/* A registry row's setting key, under the text: for scripts and support, so it stays quiet. */
body .fieldHelpKey { margin-top: 8px; font-family: monospace; font-size: 0.8em; opacity: 0.75;
    color: var(--text-color); text-align: left; white-space: normal; font-weight: normal; }
/* Bold table headers, a compare grid's row headings and h4 labels have different line boxes than a label. */
body .ui-datatable thead th .fieldHelpBtn, body .rowHeading .fieldHelpBtn { margin-top: -2px; }
body h4 .fieldHelpBtn { margin-top: -4px; }
/* After a float-label span: inside it, the icon would break the input ~ label float rules. */
body .fieldHelpAfterFloat { display: inline-block; vertical-align: bottom; margin-left: 4px; }

/*
 * Field lists (WEB-INF/tokenList.xhtml): the {{field}}s an author may type into a personalized message, on Send
 * Mail and a trip's Communications page. Styled here, once, so every page that includes the list looks the same.
 * Each field is a flat button set like the code it types; the theme gives it its focus ring and hover.
 */
body .tokenList { font-size: 0.85em; margin: 4px 0 8px 0; padding-left: 18px; }
body .tokenList .tokenInsert.ui-button { padding: 0 4px; margin: 1px 4px 1px 0; vertical-align: baseline; }
body .tokenList .tokenInsert .ui-button-text { padding: 0; font-family: monospace; font-weight: bold;
    font-size: 1em; }

/*
 * The trip editor's staff rows and dialog (WEB-INF/tripStaffDialog.xhtml). The preview beside "edit" is the
 * trip page's own staff line (the facts line of WEB-INF/tripPictureHero.xhtml), set in a dashed frame so it reads
 * as "this is what visitors see".
 */
body .staffPreview {
    display: inline-block; margin-left: 12px; padding: 3px 10px; border: 1px dashed var(--surface-border, #ccc);
    border-radius: 6px; font-size: 0.92em; vertical-align: middle; max-width: 520px;
}
body .staffPreview .leader { display: inline; }
body .staffPreviewEmpty { opacity: 0.6; font-style: italic; }
body .staffDlg { padding: 4px 6px; width: 440px; max-width: calc(100vw - 64px); }
body .staffStep { font-weight: 600; margin: 2px 0 8px; }
body .staffStep2 { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--surface-border, #ddd); }
body .staffChips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; margin-bottom: 10px; }
body .staffNone { font-size: 0.9em; opacity: 0.65; font-style: italic; align-self: center; }
body .staffFind { display: flex; gap: 8px; align-items: center; }
body .staffFind .ui-autocomplete { flex: 1 1 auto; }
body .staffFind .ui-autocomplete input { width: 100%; }
body .staffLegacy.ui-inputfield { width: 100%; box-sizing: border-box; }
body .staffRule { display: flex; gap: 6px; align-items: baseline; margin-top: 6px; font-size: 0.85em;
    opacity: 0.8; }
body .staffFoot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }
body .staffSaveNote { font-size: 0.85em; opacity: 0.7; }

/* The trip editor's "Registrations managed" radio and the two external fields it reveals. */
body .regHosting { margin-left: 12px; }
body .extFields { margin: 6px 0 2px 14px; padding: 8px 12px; border-left: 3px solid var(--primary-color);
    background: var(--surface-ground, #f6f6f6); border-radius: 0 6px 6px 0; }
body .extField { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 3px 0; }
body .extField label { min-width: 140px; font-weight: 600; }

/*
 * A short note under a property-sheet value (the trip editor's Payment Settings and Registration Pricing rows,
 * WEB-INF/noProcessorNote.xhtml): why a setting cannot be used yet, and the link that fixes it.
 */
body .rowNote { display: flex; gap: 8px; align-items: baseline; margin: 6px 0 2px 20px; padding: 6px 10px;
    max-width: 520px; font-size: 0.88em; line-height: 1.4; white-space: normal; border-radius: 6px;
    background: var(--surface-ground, #f6f6f6); color: var(--text-color); }
body .rowNoteWarn { border-left: 3px solid var(--status-warning); border-radius: 0 6px 6px 0; }
body .rowNoteIcon { color: var(--text-color-secondary, #6c757d); flex: none; }
body .rowNoteWarn .rowNoteIcon { color: var(--status-warning); }

/*
 * The Registration Options table (WEB-INF/regOptionsDialog.xhtml). Its text fields read as text until hovered
 * or focused, so the table looks like a list of questions rather than a grid of boxes; the help text sits under
 * the question, smaller and muted, and the placeholders are the greyed hints for an empty field.
 */
body .regOptsTable td { vertical-align: top; }
body .regOptsTable .regOptTextCol { width: auto; }
body .regOptsTable .regOptTypeCol { width: 210px; }
body .ui-inputfield.regOptQuiet {
    display: block; width: 100%; box-sizing: border-box; padding: 3px 6px;
    background: transparent; border-color: transparent; box-shadow: none;
}
body .ui-inputfield.regOptQuiet:hover { border-color: var(--surface-border, #ccc); }
body .ui-inputfield.regOptQuiet:focus { background: var(--surface-card, #fff); border-color: var(--primary-color); }
body .ui-inputfield.regOptQuiet::placeholder { color: var(--text-color-secondary, #6c757d); opacity: 0.7;
    font-style: italic; }
body .ui-inputfield.regOptName { font-weight: 600; }
body .ui-inputfield.regOptHelp { margin-top: 1px; font-size: 0.85em; color: var(--text-color-secondary, #6c757d);
    resize: none; overflow: hidden; line-height: 1.35; min-height: 0; }
body .regOptsTable .ui-selectonemenu.regOptType { width: 100%; min-width: 0; }
body .regOptChoices { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; }
body .regOptChoice { padding: 1px 8px; border-radius: 10px; font-size: 0.8em; white-space: nowrap;
    background: var(--surface-ground, #f1f1f1); border: 1px solid var(--surface-border, #ddd); }
body .regOptChoiceOff { opacity: 0.55; text-decoration: line-through; }
body .regOptChoicePrice { color: var(--text-color-secondary, #6c757d); }
body .regOptNoChoices { font-size: 0.8em; font-style: italic; opacity: 0.65; }
body .regOptChoicesLink { font-size: 0.85em; margin-left: 2px; white-space: nowrap; }

/* A "you are about to leave this editor" dialog body: icon beside the explanation. */
body .leaveDlg { display: flex; gap: 14px; align-items: flex-start; max-width: 440px; }
body .leaveDlg p { margin: 0 0 8px; }
body .leaveDlgIcon { font-size: 1.6rem; color: var(--status-warning); margin-top: 2px; }

/* A container's row template writes its child's title unconditionally; an untitled child (and any
   programmatic child, which titles itself from live data) would otherwise leave an empty heading box. */
.contentTitle:empty {
    display: none;
}

/* An organization site's text wordmark (topbar.xhtml): the org's name where the shared site shows its
   logo image, when the org has set no logo. Sized to sit centered in the 62px bar. */
.siteWordmark {
    display: inline-flex;
    align-items: center;
    height: 62px;
    font-size: 1.6rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--primary-color);
    text-decoration: none;
}

/* ---- date + time rows: a range picker for the first and last day, then a label glued to each time picker
   ("arriving 3:00 PM"). Used by the lodging dialogs, the trip editors' Trip Dates row and the trip-event
   dialog. A p:datePicker renders <span class="ui-calendar"><input><button></span>: a width on the COMPONENT
   sizes that span while the input keeps its own, so the calendar button drops onto a line of its own (the
   lodging "Default stay" row, 2026-09-07). Size the INPUT instead, and keep each label with its picker so a
   wrap moves the pair together. */
.dateRow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.dateRow .dateWhen { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dateRow .dateTime input.ui-inputfield { width: 5.5rem; }
.dateRow .dateRange input.ui-inputfield { width: 13rem; }

/* ---- hub card grid: the organization Dashboard (admin/orgSettings.xhtml) and the trip's Reports dashboard
   (admin/reports/index.xhtml). A responsive grid of p:card tiles, each an icon and title, an optional big
   number, one line of small print, and ONE linkButton into the page it stands for. Shared here rather than
   copied into each page's pagecss so the two hubs cannot drift apart; the .card rules undo the theme's own
   bottom margin and let the tiles in a row match heights. */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hub-grid .card { margin-bottom: 0; height: 100%; }
.hub-head { font-size: 1.1em; font-weight: bold; margin-bottom: 6px; }
.hub-head .pi { margin-right: 8px; }
.hub-num { font-size: 1.9em; font-weight: bold; display: block; margin: 4px 0; }
.hub-sub { opacity: 0.75; font-size: 0.9em; display: block; margin-bottom: 10px; }
/* A card with more than one report: its buttons stack, each under the last, rather than wrapping in a row. */
.hub-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
/* The org Dashboard's two group headings ("Run" and "Set up"), each above its own .hub-grid. */
.hub-section { margin: 18px 0 8px 0; font-size: 1.05em; font-weight: bold; opacity: 0.85; }
.hub-section:first-of-type { margin-top: 6px; }
/* A card that explains why its page is not open to this viewer: present, but visibly not a door. */
.hub-muted { opacity: 0.7; }

/* ---- the Organization Settings page's tabs (admin/orgConfig.xhtml): a sub-heading inside a tab and the
   one line of small print that introduces a block of settings. */
.orgTabSub { margin: 16px 0 6px 0; font-size: 1em; }
/* A tab's line of small print: the muted look is .textMuted's (below); this keeps only its spacing. */
.orgTabNote { display: block; margin-bottom: 0.75rem; }

/* Screen-only chrome: a report's link back to its dashboard is useful on screen and noise on paper, and the
   print views are reached by their own URL (?print=true), so a rendered= gate would take the link away from
   the person reading that view in a browser. */
@media print {
    .noPrint { display: none !important; }
}

/* Privilege / role chips: the trip editor's manager roster, Org People's privilege column and the admin People
   page's read-only Privileges column. One rule here so the three never drift. In a table cell the chips wrap
   onto lines, so they get a little room; the trip editor's roster is a flex row with its own gap. */
.mgr-chip {display:inline-flex; align-items:center; gap:6px; padding:2px 10px; border-radius:11px;
    background:color-mix(in srgb, var(--primary-color) 14%, var(--surface-card)); color:var(--text-color);
    font-size:0.8em; white-space:nowrap;}
.mgr-chip-x, .mgr-chip-x:visited {color:var(--text-color); font-weight:bold; text-decoration:none;}
.mgr-chip-x:hover {color:var(--status-danger); text-decoration:none;}
.ui-datatable .mgr-chip {margin:1px 4px 1px 0;}

/* The one people-list search row (WEB-INF/peopleSearchRow.xhtml). */
.peopleSearchRow {display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin:8px 0;}
.peopleSearchRow .ui-inputtext {width:300px; max-width:100%;}
.peopleSearchRow .peopleTruncated {font-size:0.85em; font-style:italic; margin-left:4px;}
/* A Find-button people search refused as too short (WEB-INF/peopleTooShort.xhtml): the muted look is
   .textMuted's; this keeps only its spacing. */
.peopleTooShort {margin-left:6px;}

/* Muted text, the ONE look for it (issue #26): the page's own text color, set smaller, never faded by opacity and
   never --text-color-secondary, which is about 2.1:1 on the platform default's light cards
   (.claude/rules/theme-branding.md). .pricingHint and .orgTabNote are older names for small print that share the
   look and keep only their own spacing. */
.textMuted, .pricingHint, .orgTabNote { font-size: 0.9em; color: var(--text-color); }

/* The topbar's chip (the language switcher, WEB-INF/topbar.xhtml): the theme's
   own text and card colors, swapped, so a gray chip with light text in light mode and a pale one with dark text in
   dark mode. surface-600 with white read white on light gray (1.8:1) under a dark theme; this pair holds 5:1 or
   better in every palette. The ids keep the rule above the layout's own topbar-item link styles. */
body #langChip > a.topbarChip {
    font-size: 0.9em; font-weight: 900; white-space: nowrap; background: var(--text-color);
    color: var(--surface-card); border-radius: 9px; padding: 3px 10px;
}
/* The layout paints an icon inside a topbar-item link a gray square on hover (Freya's round icon buttons). Inside
   a chip it is part of the label, so it keeps the chip's own background: two boxes beside "English" and the
   "Viewing:" name read as broken (owner, 2026-11-22). TopbarChipPwIT checks it. */
body #langChip > a i, body #viewingChip > a i,
body #langChip > a:hover i, body #viewingChip > a:hover i {
    background-color: transparent;
}
/* A topbar dropdown row is the layout's padded flex li, highlighted and pointer-cursored as a whole, but a row
   that is a link (the language and Viewing switchers, and Dark Mode / Logout in the profile menu) is
   clickable only on its text: a click beside it hit the bare li, the layout closed the menu, and nothing happened
   (owner, 2026-11-25). The link's ::after stretches its hit area over the whole row. The profile menu's
   onclick-on-li rows never had the gap. TopbarChipPwIT checks it. */
.layout-topbar .topbar-item > ul > li {
    position: relative;
}
.layout-topbar .topbar-item > ul > li > a::after {
    content: ""; position: absolute; inset: 0;
}
