/*
 * keepitsame.css - the Bootstrap 3 look on Bootstrap 5 pages.
 * Michael 2026-11-06: "I need the same appearance please. So if a keepitsame.css is needed then yes please."
 *
 * Loaded only by templates/admin/layout_bs_5_3_2.tpl, right after Bootstrap 5's stylesheet: the place Bootstrap 3's
 * stylesheet has on BS3 pages, so target-admin.css and custom.css still override these rules exactly as they override BS3.
 * Rules are copied from libs/css/bootstrap.min.css (Bootstrap 3.1.1), not written from memory. Each block says which
 * class it serves and why; add a block only when a converted page needs it.
 *
 * Two kinds of block:
 *  - a class BS5 doesn't have, or that our own CSS targets by its BS3 name (.well, .close, .form-group): kept in the
 *    templates, styled here as BS3 styled it;
 *  - a BS5 class that replaces a BS3 one but looks different (.input-group-text for .input-group-addon): BS3's look.
 */

/* .well - BS5 has no well. custom.css sets its colours (#f7f9f8 / #ecf1ef); the box itself came from BS3. */
.well {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
}
.well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, .15); }
.well-lg { padding: 24px; border-radius: 6px; }
.well-sm { padding: 9px; border-radius: 3px; }

/* .hide - BS3 helper, not in BS5. target-admin.js's DataTables column filters mark the columns without a filter
   'hide' (contract list: a filter box under every header, 2026-11-12). BS3's .show is NOT copied: BS5 uses .show for
   open dropdowns/collapses. */
.hide { display: none !important; }
/* .input-sm - BS3's small field (BS5: .form-control-sm); target-admin.js's column filter boxes use it. */
.form-control.input-sm { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; }

/* blockquote - BS3 styled the plain element (bigger text, padding, grey left bar); BS5 only styles .blockquote.
   printed_tickets/add.tpl's ticket type list sits in one (2026-11-12). */
blockquote { padding: 10px 20px; margin: 0 0 20px; font-size: 17.5px; border-left: 5px solid #eee; }
blockquote p:last-child, blockquote ul:last-child, blockquote ol:last-child { margin-bottom: 0; }

/* .close - BS3's "x" button (white on the green modal header via target-admin.css .modal-styled .modal-header .close).
   BS5's .btn-close is a different, dark SVG cross, so modals keep <button class="close">&times;</button>. */
.close {
  float: right;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: .2;
}
.close:hover, .close:focus { color: #000; text-decoration: none; cursor: pointer; opacity: .5; }
button.close { padding: 0; cursor: pointer; background: 0 0; border: 0; -webkit-appearance: none; }
.modal-header .close { margin-top: -2px; }
/* BS5's .modal-header is a flex row, where float does nothing: the title comes first in the markup (BS5 order) and
   the close button is pushed to the right edge, where BS3's float put it. */
.modal-header > .close { margin-left: auto; }
.alert-dismissable .close { position: relative; top: -2px; right: -21px; color: inherit; }

/* .form-group - BS3's 15px between form rows (BS5's .mb-3 is 16px); target-admin.css and custom.css also style
   .form-group, so the class stays. */
.form-group { margin-bottom: 15px; }
/* form-horizontal form-groups are BS5 rows now (label and field side by side); target-admin.css's
   ".form-horizontal .row { margin-bottom: 0 !important }" (meant for BS3's nested rows) would take their 15px away. */
.form-horizontal .form-group.row { margin-bottom: 15px !important; }

/* Font Awesome classes on a .btn itself (e.g. <i class="btn ... fa-regular fa-trash-can">, includes/growable_widget.inc.php):
   BS5's .btn sets its own font, so the icon showed as a missing-glyph box (F2ED). Font Awesome 7 (layout's all.min.css). */
.btn.fa-solid, .btn.fas { font-family: "Font Awesome 7 Free"; font-weight: 900; }
.btn.fa-regular, .btn.far { font-family: "Font Awesome 7 Free"; font-weight: 400; }
.btn.fa-brands, .btn.fab { font-family: "Font Awesome 7 Brands"; font-weight: 400; }
/* ...and an icon element used as an input-group box (<i class="btn input-group-text fa-...">): Font Awesome 7 fixes icon
   width at 1.25em, which cropped the box (price level date fields) */
.input-group > i.input-group-text, .input-group > i.input-group-addon { width: auto; min-width: 34px; display: flex; align-items: center; justify-content: center; }

/* .input-group-text (BS5) for BS3's .input-group-addon: BS3's grey label box. The BS3 name too: markup built
   outside templates (includes/growable_widget.inc.php, also used by BS3 pages) still says input-group-addon, on .btn
   elements whose BS5 colours would otherwise show (events edit: red trash / green plus where live shows grey). */
.input-group > .input-group-addon,
.input-group > .btn.input-group-addon { display: flex; align-items: center; justify-content: center; min-width: 34px; padding: 6px 12px;
  font-size: 14px; color: #555; background-color: #eee; border: 1px solid #ccc; }
.input-group-text {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: #555;
  text-align: center;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  white-space: nowrap;
}

/* ===================================== Page frame (every BS5 page) ===================================== */
/* Found with scripts/bs_probe.py on /admin/tools/logins/ at 1300px (BS3 reference site vs BS5). */

/* Body text: BS3 #333 (BS5 #212529). Font size and line-height come from target-admin.css/custom.css on both. */
:root { --bs-body-color: #333; --bs-body-color-rgb: 51, 51, 51; }
body { color: #333; }

/* Containers and grid: BS3 is 750 / 970 / 1170px wide (padding included) from 768 / 992 / 1200px, full width below,
   with 15px side padding and 30px gutters. BS5 is 540 / 720 / 960 / 1140 / 1320px with 12px and 24px. */
:root, .container, .container-fluid, .row { --bs-gutter-x: 30px; } /* :root too: BS3 gave a col-* 15px sides even outside a .row; BS5 only sets the gutter on .row */
@media (min-width: 576px) { .container { max-width: none; } }
@media (min-width: 768px) { .container { max-width: 750px; } }
@media (min-width: 992px) { .container { max-width: 970px; } }
@media (min-width: 1200px) { .container { max-width: 1170px; } }

/* Navbar: BS5 adds 8px top/bottom padding; BS3 had none. Brand as BS3 (.navbar-brand 18px/20px, #999). */
.navbar { padding-top: 0; padding-bottom: 0; }
.navbar-brand { font-size: 18px; line-height: 20px; color: #999; }
.navbar-nav > li > a { line-height: 20px; }

/* Menu links: BS3 nav links had no colour of their own, so they took the site's link colour (custom.css
   a { color: var(--green-primary) }); BS5's .nav-link sets its own grey. */
.nav-link { color: var(--green-primary); }
/* BS3 pulls the brand 15px left inside a navbar container from 768px (.navbar>.container .navbar-brand). */
@media (min-width: 768px) { .navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand { margin-left: -15px; } }

/* .btn-close (BS5) drawn as BS3's .close "x", so modals converted to BS5 markup keep the live look. BS5 draws an SVG
   cross as a background image; BS3 showed the &times; character (many converted templates keep it inside the button;
   an empty button gets it from ::before). White on the green .modal-styled header, as target-admin.css does for .close.
   BS5's modal header is a flex row: order puts the button at the right edge even where the markup has it before the
   title (BS3's float did the same). */
.btn-close {
  box-sizing: content-box;
  width: auto;
  height: auto;
  padding: 0;
  background: none;
  border: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: .2;
}
.btn-close:empty::before { content: "\00d7"; }
.btn-close:hover, .btn-close:focus { color: #000; opacity: .5; box-shadow: none; }
.modal-header .btn-close, .modal-header .close { order: 2; margin: -2px 0 0 auto; }
.modal-styled .modal-header .btn-close { color: #fff; opacity: 1; text-shadow: none; }
.modal-styled .modal-header .btn-close:hover { opacity: .7; }
/* BS5 .btn-close-white inverts the SVG cross with a filter; on our white "x" character that inverts it to black */
.btn-close-white { filter: none; color: #fff; opacity: 1; text-shadow: none; }
.btn-close-white:hover, .btn-close-white:focus { color: #fff; opacity: .7; }

/* ===================================== Components (every BS5 page) ===================================== */
/* Found with scripts/bs_probe.py on /admin/tools/logins/ at 1300px, 2026-11-09. Values from BS3.1.1's bootstrap.css.
   BS5 components read their sizes and colours from CSS variables, so most blocks set the variables. target-admin.css and
   custom.css load after this file and still override (h1-h3 sizes, heading margins, .btn-primary, .btn-default, focus). */

/* Theme colours: BS3's, so .bg-*, .text-*, .border-* and anything else built on BS5's colour variables match. */
:root {
  --bs-primary: #428bca; --bs-primary-rgb: 66, 139, 202;
  --bs-success: #5cb85c; --bs-success-rgb: 92, 184, 92;
  --bs-info: #5bc0de;    --bs-info-rgb: 91, 192, 222;
  --bs-warning: #f0ad4e; --bs-warning-rgb: 240, 173, 78;
  --bs-danger: #d9534f;  --bs-danger-rgb: 217, 83, 79;
}

/* Headings: BS3 line-height 1.1 and 10px under (BS5 1.2 and 8px); BS3 sizes where our CSS sets none. */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 500; line-height: 1.1; }
h1, .h1, h2, .h2, h3, .h3 { margin-top: 20px; margin-bottom: 10px; }
h4, .h4, h5, .h5, h6, .h6 { margin-top: 10px; margin-bottom: 10px; }
h1, .h1 { font-size: 36px; } h2, .h2 { font-size: 30px; } h3, .h3 { font-size: 24px; }
h4, .h4 { font-size: 18px; } h5, .h5 { font-size: 14px; } h6, .h6 { font-size: 12px; }

/* Breadcrumb: BS3 inline items with "/ " between (BS5: a flex row with 8px padding per item). */
.breadcrumb { display: block; padding: 8px 15px; margin-bottom: 20px; background-color: #f5f5f5; border-radius: 4px; }
.breadcrumb-item { display: inline-block; }
.breadcrumb-item + .breadcrumb-item { padding-left: 0; }
.breadcrumb-item + .breadcrumb-item::before { float: none; padding: 0 5px; color: #ccc; content: "/\00a0"; }
.breadcrumb-item.active { color: #999; }

/* Main menu: the current section as live (target-admin.css: green text on #eee, a pointer under it drawn with
   a::after). The BS5 layout marks the link .active (BS5 then greys it), and a dropdown's ::after is its caret, so
   dropdown items draw the pointer with ::before */
@media (min-width: 768px) {
  .mainbar .mainbar-nav > li > a.nav-link.active { color: #004225; background: #eee; }
  .mainbar .mainbar-nav > li > a.nav-link.active:not(.dropdown-toggle)::after,
  .mainbar .mainbar-nav > li > a.dropdown-toggle.active::before,
  .mainbar .mainbar-nav > .active > a.dropdown-toggle::before {
    content: ''; display: inline-block; position: absolute; top: 100%; left: 50%; margin-left: -10px;
    border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 10px solid #004225;
  }
}

/* An input wrapped in span.error_indicator inside an input-group (events edit, referral...): fills the group as on
   BS3 (BS5's flex group left the span at the input's natural width) */
.input-group > span.error_indicator { flex: 1 1 auto; width: 1%; }
.input-group > span.error_indicator > .form-control { width: 100%; }

/* BS3 .input-group-btn left in dual templates (BS3 needs the wrapper): on BS5 its button joins the input */
.input-group > .input-group-btn { display: flex; }
.input-group > .input-group-btn:last-child > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }

/* Switches (components/rounded_switch.tpl): "on" keeps the dark green with a light outline so it shows on dark
   table headers too (Michael 2026-11-10) */
.form-switch .form-check-input:checked { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
/* A long switch label dropped below the switch: custom.css makes the switch 3em wide where BS5 leaves 2.5em, so the
   label (inline-block, full width) no longer fit beside it. Short labels are unaffected (2026-11-12, auto discount edit). */
.form-switch:not(.d-inline-block):not(.d-inline-flex) .form-check-label { max-width: calc(100% - 1em); vertical-align: top; }
/*   Not in an inline switch (d-inline-block wrapper, e.g. event price level Allow Discounts / Active / Box Office Only):
     the wrapper is as wide as its content, so a % width squeezed the label and "Active" wrapped (Michael 2026-11-12). */

/* List group (side menus such as Assets types): BS3 rows are 10px 15px (BS5 8px 16px) */
.list-group-item { --bs-list-group-item-padding-x: 15px; --bs-list-group-item-padding-y: 10px; }

/* Form fields: BS3 34px high, 14px text, #555 on a #ccc border (BS5: 38px, 16px). */
.form-control, .form-select {
  height: 34px; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; color: #555;
  border: 1px solid #ccc; border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-select { padding-right: 36px; }
textarea.form-control, select.form-control[multiple], select.form-select[multiple] { height: auto; }
/* <select class="form-control"> keeps the browser's own drop-down arrow, as in BS3 (BS5's .form-control sets appearance: none) */
select.form-control { -webkit-appearance: auto; -moz-appearance: auto; appearance: auto; }
.form-control:focus, .form-select:focus { border-color: #66afe9; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6); }
.form-control::placeholder { color: #999; opacity: 1; }
.form-control:disabled, .form-control[readonly], .form-select:disabled { background-color: #eee; opacity: 1; }
.form-control-sm, .form-select-sm { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; }
.form-select-sm { padding-right: 30px; }  /* room for the arrow (the line above took it away: arrow over the text, 2026-11-12) */
.form-control-lg, .form-select-lg { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; }

/* Buttons: BS3 size (6px 12px, 14px/1.42857, 4px corners) and colours, white text on all coloured ones. */
.btn { --bs-btn-padding-x: 12px; --bs-btn-padding-y: 6px; --bs-btn-font-size: 14px; --bs-btn-line-height: 1.42857143; --bs-btn-border-radius: 4px; }
.btn-sm { --bs-btn-padding-y: 5px; --bs-btn-padding-x: 10px; --bs-btn-font-size: 12px; --bs-btn-line-height: 1.5; --bs-btn-border-radius: 3px; }
.btn-lg { --bs-btn-padding-y: 10px; --bs-btn-padding-x: 16px; --bs-btn-font-size: 18px; --bs-btn-line-height: 1.33; --bs-btn-border-radius: 6px; }
.btn-xs { --bs-btn-padding-y: 1px; --bs-btn-padding-x: 5px; --bs-btn-font-size: 12px; --bs-btn-line-height: 1.5; --bs-btn-border-radius: 3px; }
/* .btn-default stays in BS5 templates: BS5's .btn-secondary is already target-admin.css's blue button. */
.btn-default { --bs-btn-color: #333; --bs-btn-bg: #fff; --bs-btn-border-color: #ccc; --bs-btn-hover-color: #333; --bs-btn-hover-bg: #ebebeb; --bs-btn-hover-border-color: #adadad; --bs-btn-active-color: #333; --bs-btn-active-bg: #ebebeb; --bs-btn-active-border-color: #adadad; }
.btn-primary { --bs-btn-color: #fff; --bs-btn-bg: #428bca; --bs-btn-border-color: #357ebd; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #3276b1; --bs-btn-hover-border-color: #285e8e; --bs-btn-active-color: #fff; --bs-btn-active-bg: #3276b1; --bs-btn-active-border-color: #285e8e; }
.btn-success { --bs-btn-color: #fff; --bs-btn-bg: #5cb85c; --bs-btn-border-color: #4cae4c; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #47a447; --bs-btn-hover-border-color: #398439; --bs-btn-active-color: #fff; --bs-btn-active-bg: #47a447; --bs-btn-active-border-color: #398439; }
.btn-info { --bs-btn-color: #fff; --bs-btn-bg: #5bc0de; --bs-btn-border-color: #46b8da; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #39b3d7; --bs-btn-hover-border-color: #269abc; --bs-btn-active-color: #fff; --bs-btn-active-bg: #39b3d7; --bs-btn-active-border-color: #269abc; }
.btn-warning { --bs-btn-color: #fff; --bs-btn-bg: #f0ad4e; --bs-btn-border-color: #eea236; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #ed9c28; --bs-btn-hover-border-color: #d58512; --bs-btn-active-color: #fff; --bs-btn-active-bg: #ed9c28; --bs-btn-active-border-color: #d58512; }
.btn-danger { --bs-btn-color: #fff; --bs-btn-bg: #d9534f; --bs-btn-border-color: #d43f3a; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #d2322d; --bs-btn-hover-border-color: #ac2925; --bs-btn-active-color: #fff; --bs-btn-active-bg: #d2322d; --bs-btn-active-border-color: #ac2925; }

/* Alerts: BS3 15px padding, 20px below, BS3 colours. */
.alert { --bs-alert-padding-x: 15px; --bs-alert-padding-y: 15px; --bs-alert-margin-bottom: 20px; --bs-alert-border-radius: 4px; }
.alert-success { --bs-alert-color: #3c763d; --bs-alert-bg: #dff0d8; --bs-alert-border-color: #d6e9c6; --bs-alert-link-color: #2b542c; }
.alert-info    { --bs-alert-color: #31708f; --bs-alert-bg: #d9edf7; --bs-alert-border-color: #bce8f1; --bs-alert-link-color: #245269; }
/* A switch in an info box takes the info colours (the earlier BS5 version did; its CSS was not kept, rebuilt here.
   Michael 2026-11-12, promoters email filter): text in the info text colour (target-admin forces labels green with
   !important), the track light info blue, on = dark info blue. */
.alert-info .form-check-label { color: #31708f !important; }
.alert-info .form-switch .form-check-input { background-color: #bce8f1; }
.alert-info .form-switch .form-check-input:checked { background-color: #31708f; border-color: #31708f; }
.alert-info .form-switch .form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(49, 112, 143, .25); }
.alert-warning { --bs-alert-color: #8a6d3b; --bs-alert-bg: #fcf8e3; --bs-alert-border-color: #faebcc; --bs-alert-link-color: #66512c; }
/* inside an alert, as BS3: headings in the alert's colour with no top margin; paragraphs and lists without the bottom gap */
.alert h4 { margin-top: 0; color: inherit; }
.alert > p, .alert > ul { margin-bottom: 0; }
.alert > p + p { margin-top: 5px; }
.alert-danger  { --bs-alert-color: #a94442; --bs-alert-bg: #f2dede; --bs-alert-border-color: #ebccd1; --bs-alert-link-color: #843534; }

/* Progress bar: BS3 20px, #f5f5f5 track with an inset shadow, 20px below. */
.progress { --bs-progress-height: 20px; --bs-progress-font-size: 12px; --bs-progress-bg: #f5f5f5; --bs-progress-border-radius: 4px; --bs-progress-bar-bg: #428bca; margin-bottom: 20px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); }
.progress-bar { line-height: 20px; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); }

/* Modals: BS3 15px header, 20px body. */
.modal { --bs-modal-header-padding: 15px; --bs-modal-padding: 20px; }
/* Pop-up widths as on BS3 (Michael 2026-11-13): standard 600px from 768px (BS5 500px), .modal-lg 900px from 992px
   (BS5 800px); .modal-sm is 300px on both. A pop-up's own width rule still needs a max-width on BS5 (BS5 caps
   .modal-dialog at --bs-modal-width), e.g. users/tickets/exchange.tpl. */
@media (min-width: 768px) { .modal { --bs-modal-width: 600px; } }
@media (min-width: 992px) { .modal-dialog.modal-lg { --bs-modal-width: 900px; } }
.modal-title { line-height: 1.42857143; }

/* Text spacing: BS3 10px under paragraphs and lists (BS5 16px). The footer was 6px taller from this alone. */
p { margin: 0 0 10px; }
ul, ol { margin-top: 0; margin-bottom: 10px; }
ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; }
dl { margin-top: 0; margin-bottom: 20px; }
/* Form elements take the surrounding text colour, as BS3's normalize did (BS5 leaves the browser's black). */
button, input, optgroup, select, textarea { color: inherit; }

/* Menu items: BS3's .dropdown-menu > li > a (BS5 styles only .dropdown-item). */
.dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.42857143; color: #333; white-space: nowrap; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { color: #262626; text-decoration: none; background-color: #f5f5f5; }

/* Badges: BS3 12px, 3px 7px, round ends. A badge with a text-bg-* colour is a converted BS3 .label (bs5_convert.py:
   label label-success -> badge text-bg-success): it keeps BS3's label size, 75% text, .2em .6em .3em, .25em corners. */
.badge:not([class*="text-bg-"]) { --bs-badge-padding-x: 7px; --bs-badge-padding-y: 3px; --bs-badge-font-size: 12px; --bs-badge-border-radius: 10px; min-width: 10px; line-height: 1; }
.badge[class*="text-bg-"] { --bs-badge-padding-x: .6em; --bs-badge-padding-y: .2em; padding-bottom: .3em; --bs-badge-font-size: 75%; --bs-badge-border-radius: .25em; line-height: 1; color: #fff !important; }  /* BS3 labels: always white text */

/* Modal footer: BS3 15px above, 19/20px padding, buttons 5px apart (BS5: flex with 4px around every button). */
.modal-footer { margin-top: 15px; padding: 19px 20px 20px; }
.modal-footer > * { margin: 0; }
.modal-footer .btn + .btn { margin-left: 5px; }

/* Links: BS3 underlined only on hover (BS5 underlines every link). */
a { text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
.btn:hover, .btn:focus, .nav-link:hover, .nav-link:focus, .dropdown-item:hover, .dropdown-item:focus, .navbar-brand:hover { text-decoration: none; }

/* Menu arrow: BS5 draws it with .dropdown-toggle::after; sized and placed as BS3's <span class="caret">. */
.dropdown-toggle::after { margin-left: 2px; vertical-align: middle; border-top: 4px solid; border-right: 4px solid transparent; border-bottom: 0; border-left: 4px solid transparent; }

/* Top bar links: BS3's .navbar-inverse links were normal weight with 15px sides. The BS5 layout's .navbar-dark picks up
   custom.css's bold .navbar-dark .nav-link (meant for the public BS5 layout); the id outranks it here. */
#navigation #topNavbar .navbar-nav .nav-link { font-weight: 400; padding-left: 15px; padding-right: 15px; }
/* BS3 pulled the right-hand menu 15px right from 768px (.navbar-right { margin-right: -15px }). */
@media (min-width: 768px) { #navigation #topNavbar > .navbar-nav.ms-auto { margin-right: -15px; } }
/* Top bar gear on phones (opens Load Averages and the profile menu with Logout): BS3 drew it white, 18px, at the left
   edge before the logo (custom.css .navbar-toggle float:left); BS5's .navbar-dark toggler is grey and goes right. */
#navigation .navbar > .container > .navbar-toggler { order: -1; margin: 0 0 0 -15px; padding: 7px 10px; border: 0;
  color: #fff; font-size: 18px; line-height: 1.42857; box-shadow: none; }
#navigation .navbar > .container > .navbar-toggler:hover,
#navigation .navbar > .container > .navbar-toggler:focus { background-color: transparent; color: #fff; }
#navigation .navbar > .container > .navbar-toggler + .navbar-brand,
#navigation .navbar > .container > .navbar-brand { margin-right: auto; }
/* The gear's opened menu on phones: BS3's .navbar-collapse ran edge to edge (-15px sides, 15px padding) under a dark
   line, and its list sat 7.5px down; capped at 340px tall with its own scroll. */
@media (max-width: 767.98px) {
  #navigation #topNavbar { flex-basis: calc(100% + 30px); margin: 0 -15px 2px; padding: 0 15px; max-height: 340px;
    overflow-y: auto; border-top: 1px solid #101010; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
  #navigation #topNavbar > .navbar-nav { margin: 7.5px -15px; }
  #navigation #topNavbar > .navbar-nav.ms-auto { margin-left: -15px !important; } /* BS5's .ms-auto is !important */
}
/* The profile menu (Switch Accounts, Logout) inside the opened gear menu on phones: BS3 (.navbar-nav .open
   .dropdown-menu) showed it inline on the green, not as a white box: the open row darkened, grey 13px items indented
   40px (target-admin.css), white on hover, and a near-black 1px divider across the full width. */
@media (max-width: 767.98px) {
  #navigation #topNavbar .navbar-nav > .dropdown > a.show { background-color: #1b1b1b; }
  #navigation #topNavbar .navbar-nav .dropdown-menu { position: static; float: none; width: auto; margin: 0; padding: 5px 0;
    font-size: 14px; background-color: transparent; border: 0; border-radius: 0; box-shadow: none; }
  #navigation #topNavbar .navbar-nav .dropdown-menu > li > a { padding: 5px 15px 5px 40px; line-height: 20px; color: #999;
    background-color: transparent; }
  #navigation #topNavbar .navbar-nav .dropdown-menu > li > a:hover,
  #navigation #topNavbar .navbar-nav .dropdown-menu > li > a:focus { color: #fff; background-color: transparent; }
  #navigation #topNavbar .navbar-nav .dropdown-menu .dropdown-divider { height: 1px; margin: 9px -.5em; border: 0;
    background-color: #080808; opacity: 1; }
}
/* The green Menu bar opened on phones: BS3 ran its list edge to edge 7.5px down (.navbar-nav at phone widths) with
   40px rows (10px 15px links), where BS5's .nav-link gives 36px rows flush to the container. */
@media (max-width: 767.98px) {
  .mainbar #mainbarMenu > .mainbar-nav { margin: 7.5px -15px; }
  .mainbar #mainbarMenu > .mainbar-nav > li > .nav-link { padding: 10px 15px; }
}
/* Its dropdowns (Admin, My Events...) on phones: BS3 opened them inline, not as a white box: the open row #eee with
   green text, items indented 40px in 30px rows. Submenus (Promoters, Accounting...) open inline on a tap in BS5
   (layout_bs_5_3_2.tpl's nested dropdown script; BS3 phones could only follow the link), indented one step further. */
@media (max-width: 767.98px) {
  .mainbar #mainbarMenu .dropdown-menu { position: static; float: none; width: auto; min-width: 0; margin: 0; padding: 5px 0;
    font-size: 14px; background-color: transparent; border: 0; border-radius: 0; box-shadow: none; }
  /* a real tap opens it through Popper, which positions it with inline styles: keep it in the flow */
  .mainbar #mainbarMenu .dropdown-menu[data-popper-placement], .mainbar #mainbarMenu .dropdown-menu.show { position: static !important;
    inset: auto !important; transform: none !important; }
  .mainbar #mainbarMenu > .mainbar-nav > li > .nav-link.show { background-color: #eee; color: #004225; }
  .mainbar #mainbarMenu .nav-link:focus-visible { box-shadow: none; } /* BS5's focus ring, left by show() focusing the toggle */
  .mainbar #mainbarMenu .dropdown-menu > li > a { padding: 5px 15px 5px 40px; line-height: 20px; }
  .mainbar #mainbarMenu .dropdown-submenu > .dropdown-menu { margin-left: 0; padding: 0; }
  .mainbar #mainbarMenu .dropdown-submenu > .dropdown-menu > li > a { padding-left: 55px; }
}
/* Tables as BS3 (.table, -striped, -hover, -bordered, -condensed/-sm): #333 text, 8px cells with 20px lines, a #ddd line
   ABOVE each row (BS5 draws it below), #f9f9f9 stripes, #f5f5f5 hover, header cells bottom-aligned on a 2px line,
   bordered = #ddd on every side. target-admin.css's dark header row still overrides, as it did BS3. */
.table { --bs-table-color: #333; --bs-table-bg: transparent; --bs-table-border-color: #ddd;
  --bs-table-striped-color: #333; --bs-table-striped-bg: #f9f9f9; --bs-table-hover-color: #333; --bs-table-hover-bg: #f5f5f5;
  --bs-table-active-color: #333; --bs-table-active-bg: #f5f5f5; margin-bottom: 20px; vertical-align: baseline; }
.table > :not(caption) > * > * { padding: 8px; line-height: 1.42857143; vertical-align: top; border-top: 1px solid #ddd;
  border-bottom-width: 0; }
.table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #ddd; }
.table > thead:first-child > tr:first-child > th, .table > thead:first-child > tr:first-child > td,
.table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th { border-top: 0; }
.table > tbody + tbody { border-top: 2px solid #ddd; }
/* BS3 cells took the row's text colour (e.g. <tr class="text-danger"> for refunded tickets); BS5 cells set their own */
.table > :not(caption) > tr[class*="text-"] > * { color: inherit; }
/* A cell with its own background (style="background-color:...") keeps it on striped/hover rows: BS5 paints stripes and
   hover as an inset box-shadow OVER the cell's background, BS3 as a background the inline style overrode (printed
   tickets list: every other green event row turned grey, Michael 2026-11-12). */
.table > :not(caption) > * > [style*="background"] { box-shadow: none; }
/* the same for cells coloured by a class (accounting payments: payby_d/c/e/p, custom.css) */
.table > :not(caption) > * > [class*="payby_"] { box-shadow: none; }
.table-sm > :not(caption) > * > *, .table-condensed > :not(caption) > * > * { padding: 5px; }
.table-bordered { border: 1px solid #ddd; }
.table-bordered > :not(caption) > * > * { border: 1px solid #ddd; }
.table-bordered > thead > tr > th, .table-bordered > thead > tr > td { border-bottom-width: 2px; }
/* Plain <table>s (no .table class, common in older admin templates): BS3's reset gave cells no padding and no spacing
   and left-aligned <th>; without it browsers add 1px padding and 2px spacing, and BS5's reboot centres th per parent. */
table { border-spacing: 0; }
td, th { padding: 0; }
th { text-align: left; }
/* Labels as BS3: bold with 5px below (inputs inside, like DataTables' "Show [10] entries" / "Search:", inherit the bold).
   Checkbox/radio labels stayed normal weight in BS3 (.checkbox label). */
label { margin-bottom: 5px; font-weight: bold; }
.form-check-label, .checkbox label, .radio label, .checkbox-inline, .radio-inline { font-weight: normal; margin-bottom: 0; }
/* A col-* outside a .row: BS3 still gave it 15px sides (the padding was on .col-*); BS5 puts it on .row > * only. */
/*   Not on col-menu (our class: patron/promoter sidebar, 10px in patrons/header.tpl) or col-form-label (BS5 label) - 2026-11-12. */
:not(.row) > [class^="col-"]:not(.col-menu):not(.col-form-label), :not(.row) > [class*=" col-"]:not(.col-menu):not(.col-form-label) { padding-right: 15px; padding-left: 15px; }
/* BS3 checkbox/radio wrappers (<div class="checkbox"><label><input> text</label></div>), kept in templates as .well is. */
.radio, .checkbox { display: block; min-height: 20px; margin-top: 10px; margin-bottom: 10px; padding-left: 20px; }
.radio label, .checkbox label { display: inline; font-weight: normal; cursor: pointer; }
.radio input[type="radio"], .checkbox input[type="checkbox"] { float: left; margin-left: -20px; }
.radio + .radio, .checkbox + .checkbox { margin-top: -5px; }
/* Cards as BS3 panels (templates' panel / panel-heading / panel-body / panel-footer become card / card-header / card-body /
   card-footer, Michael 2026-11-09: use the BS5 class): #ddd border, 4px corners, #f5f5f5 heading and footer, 10px 15px
   heading, 15px body, 20px below, BS3's faint shadow. */
.card { --bs-card-border-color: #ddd; --bs-card-border-radius: 4px; --bs-card-inner-border-radius: 3px;
  --bs-card-cap-padding-y: 10px; --bs-card-cap-padding-x: 15px; --bs-card-cap-bg: #f5f5f5; --bs-card-cap-color: #333;
  --bs-card-spacer-y: 15px; --bs-card-spacer-x: 15px; margin-bottom: 20px; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); }
.card-footer { padding: 10px 15px; background-color: #f5f5f5; border-top: 1px solid #ddd; }
.card-title { margin-top: 0; margin-bottom: 0; font-size: 16px; color: inherit; }
/* Coloured panels: BS5 has no card colour that matches, so the converter keeps the BS3 class (card panel-success...) */
.card.panel-primary { --bs-card-border-color: #337ab7; --bs-card-cap-bg: #337ab7; --bs-card-cap-color: #fff; }
.card.panel-success { --bs-card-border-color: #d6e9c6; --bs-card-cap-bg: #dff0d8; --bs-card-cap-color: #3c763d; }
.card.panel-info    { --bs-card-border-color: #bce8f1; --bs-card-cap-bg: #d9edf7; --bs-card-cap-color: #31708f; }
.card.panel-warning { --bs-card-border-color: #faebcc; --bs-card-cap-bg: #fcf8e3; --bs-card-cap-color: #8a6d3b; }
.card.panel-danger  { --bs-card-border-color: #ebccd1; --bs-card-cap-bg: #f2dede; --bs-card-cap-color: #a94442; }
/* Muted and help text in BS3's greys: .text-muted (and placeholders) #999, help text (BS3 .help-block, BS5 .form-text)
   #737373 with 5px above; target-admin.css gave .help-block no bottom margin */
:root { --bs-secondary-color: #999; }
.form-text, .help-block { display: block; margin-top: 5px; margin-bottom: 0; color: #737373; font-size: inherit; }
/* BS3 .page-header (no BS5 equivalent): the page title with a light line under it */
.page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid #eee; }
/* Pills (user details' side menu...) as BS3 + target-admin.css: target-admin styles BS3's structure (.nav-stacked > li,
   li.active > a); BS5 markup is .flex-column and a.nav-link.active, so the same look written for it. */
.nav-pills .nav-link { border-radius: 4px; padding: 5px 12px; color: #444; background-color: #eee; }
.nav-pills .nav-link:hover { background-color: #e4e4e4; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { color: #004225; background-color: #dee7e3; }
.nav-pills:not(.flex-column) > li { margin-right: 6px; }
.nav-pills:not(.flex-column) > li + li { margin-left: 2px; }
/* stacked pills as blocks, as BS3: their margins then merge as they did (in a flex column they add up) */
.nav-pills.flex-column { display: block; }
.nav-pills.flex-column > li { margin-right: 0; margin-bottom: .5em; }
.nav-pills.flex-column > li + li { margin-top: 2px; }
.nav-pills.flex-column .nav-link { padding: 10px 15px; }
.nav-pills .nav-link > .badge { margin-left: 3px; }
.nav-pills .nav-link.active > .badge { color: #428bca; background-color: #fff; }
/* Badges: BS3's were grey (#999) unless coloured; BS5's have no colour of their own. */
.badge { background-color: #999; }
/* A dropdown toggle that had no <span class="caret"> in BS3 showed no arrow (bs5_convert.py adds no-caret to it);
   BS5 draws one on every .dropdown-toggle. No BS5 class for this, so it's ours and stays after bs3_cleanup.py. */
.dropdown-toggle.no-caret::after { display: none; }
/* <legend> as BS3 (user details' "Manage Account"): full-width block, 21px, 20px below with a light line; BS5's reboot
   floats it with 8px below. */
legend { float: none; display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: inherit;
  color: #333; border: 0; border-bottom: 1px solid #e5e5e5; }
/* BS3's clearfix on the page and footer containers: it kept the last paragraph's bottom margin inside the container
   (BS5 lets it escape, so on phones the page and footer were 10px shorter). Not on #navigation's flex containers. */
.container:has(> .content)::before, .container:has(> .content)::after, .footer > .container::before, .footer > .container::after { content: " "; display: table; }
.container:has(> .content)::after, .footer > .container::after { clear: both; }
/* Promoter (and later venue) "Browse By Letter" buttons: the earlier BS5 version's .admin-letter-btn, its CSS taken from
   D:/michael.ticketscene libs/css/target-admin.css (2026-11-12); replaces live's inline styles. */
.admin-letter-btn { display: inline-block !important; clear: none !important; float: left; margin: 2px; width: 23px;
  text-align: center; color: var(--black, #000); padding: 1px 5px; }
.admin-letter-btn-all { width: 42px; }

/* .btn-basic (POS report menu buttons) and .btn-tertiary (Close buttons in pop-ups), 2026-11-13: no colour anywhere; on BS3 a .btn with no colour class kept the
   browser's grey button face, BS5's .btn is transparent */
.btn.btn-basic, .btn.btn-tertiary { --bs-btn-bg: #f0f0f0; --bs-btn-hover-bg: #e6e6e6; --bs-btn-active-bg: #e6e6e6; --bs-btn-border-color: transparent; }

/* .table-responsive on phones: BS3 drew a grey border round the scrolling box and kept 15px below it */
@media (max-width: 767.98px) {
  .table-responsive { border: 1px solid #ddd; margin-bottom: 15px; }
}

/* BS3's .btn-block + .btn-block { margin-top: 5px }: stacked full-width buttons (btn-block became w-100) */
.btn.w-100 + .btn.w-100 { margin-top: 5px; }

/* Tables in a .table-responsive box: DataTables gives them border-collapse: separate, so width:100% plus the 1px
   left/right border came out 2px wider than the box and BS5 showed a scroll bar under every table (BS3's box only
   scrolls on phones). The border counts inside the width. */
.table-responsive table.table { box-sizing: border-box; }

/* Pop-up footers holding a grid row (Cancel / Save as col-6 + col-6): BS5's footer is a flex box, so the row shrank to
   its content and squeezed the buttons; as in BS3 it fills the footer (POS shift pop-ups, till payment) */
.modal-footer > .row { flex: 1 1 100%; }

/* A left-floated button in a pop-up footer (BS3 pull-left, now float-start) stays on the left: BS5's footer is a flex
   box, which ignores floats (POS Setup "Delete Product") */
.modal-footer > .float-start { margin-right: auto; }
/* BS3 .has-error / .has-success: red / green field and help text (contacts pop-ups "Check", add-on edit...) 2026-11-19 */
.has-error .form-control, .has-error .form-select { border-color: #a94442; }
.has-error .control-label, .has-error .col-form-label, .has-error .form-label, .has-error .help-block, .has-error .form-text { color: #a94442; }
.has-success .form-control, .has-success .form-select { border-color: #3c763d; }
.has-success .control-label, .has-success .col-form-label, .has-success .form-label, .has-success .help-block, .has-success .form-text { color: #3c763d; }

/* ===================================== Public site header (templates/layout_header.tpl) =====================================
   2026-11-20, public site BS5 (My Account first). The public header keeps its Bootstrap 3 markup (navbar-header,
   navbar-toggle, navbar-right...) on BS5 pages so it looks exactly as on BS3 pages. Below: first the resets that undo
   BS5's flex navbar / container / row inside the header, then Bootstrap 3.3.4's own navbar rules (the version the
   public BS3 pages load), copied from its bootstrap.css and scoped to #header-area. custom.css still overrides them as
   it overrides BS3. Not used by the admin layout (no #header-area there).
   :where() keeps each rule as strong as in BS3 itself, so custom.css still wins over it (e.g. the white menu links). */
:where(#header-area).navbar, :where(#header-area) .navbar { display: block; padding: 0; flex-wrap: nowrap; }  /* BS5 .navbar: flex row */
:where(#header-area) .navbar > .container, :where(#header-area) .navbar > .container-fluid { display: block; }  /* BS5: flex */
:where(#header-area) .row { display: block; }                                 /* BS5 .row: flex, every child width 100% */
:where(#header-area) .row > * { width: auto; max-width: none; padding-left: 0; padding-right: 0; margin-top: 0; flex-shrink: 1; }
:where(#header-area) .navbar-nav { display: block; padding-left: 0; margin-bottom: 0; }   /* BS5: flex column */
:where(#header-area) .navbar-nav > li { position: relative; display: block; }
:where(#header-area) .row::after, :where(#header-area) .container::after, :where(#header-area) .navbar-header::after,
:where(#header-area) .navbar-collapse::after, :where(#header-area) .navbar::after, :where(#header-area) .navbar-nav::after { content: ""; display: table; clear: both; }
:where(#header-area) .navbar-nav > li > a { position: relative; display: block; padding: 10px 15px; }   /* BS3 .nav > li > a */
:where(#header-area) .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; }
:where(#header-area) .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; }
:where(#header-area) .navbar-toggle { position: relative; padding: 9px 10px; margin-top: 8px; margin-bottom: 8px; background-color: transparent; background-image: none; border: 1px solid transparent; border-radius: 4px; }
:where(#header-area) .collapse { display: none; }                              /* BS3 collapse: .in shows it; BS5 adds .show */
:where(#header-area) .collapse.in, :where(#header-area) .collapse.show { display: block; }
/* Menus open over the page as in BS3 (BS5 makes a navbar's menus position: static unless the navbar has an expand
   class, which pushed the header down, Michael 2026-11-21); on phones, inside the opened menu, they stay in the flow
   as BS3 did. */
:where(#header-area) .navbar-nav .dropdown-menu { position: absolute; }
@media (max-width: 767px) { :where(#header-area) .navbar-nav .dropdown-menu { position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; box-shadow: none; } }
/* Bootstrap 3.3.4 navbar rules (scoped) */
@media print {
  :where(#header-area) .navbar,
  :where(#header-area).navbar { display: none; }
}
:where(#header-area) .navbar-fixed-bottom .dropdown .caret { content: ""; border-top: 0; border-bottom: 4px solid; }
:where(#header-area) .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 2px; }
@media (min-width: 768px) {
  :where(#header-area) .navbar-right .dropdown-menu { right: 0; left: auto; }
  :where(#header-area) .navbar-right .dropdown-menu-left { right: auto; left: 0; }
}
:where(#header-area) .navbar,
:where(#header-area).navbar { position: relative; min-height: 50px; margin-bottom: 20px; border: 1px solid transparent; }
@media (min-width: 768px) {
  :where(#header-area) .navbar,
  :where(#header-area).navbar { border-radius: 4px; }
}
@media (min-width: 768px) {
  :where(#header-area) .navbar-header { float: left; }
}
:where(#header-area) .navbar-collapse { padding-right: 15px; padding-left: 15px; overflow-x: visible; -webkit-overflow-scrolling: touch; border-top: 1px solid transparent; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
:where(#header-area) .navbar-collapse.in { overflow-y: auto; }
@media (min-width: 768px) {
  :where(#header-area) .navbar-collapse { width: auto; border-top: 0; -webkit-box-shadow: none; box-shadow: none; }
  :where(#header-area) .navbar-collapse.collapse { display: block !important; height: auto !important; padding-bottom: 0; overflow: visible !important; }
  :where(#header-area) .navbar-collapse.in { overflow-y: visible; }
  :where(#header-area) .navbar-fixed-top .navbar-collapse,
  :where(#header-area) .navbar-static-top .navbar-collapse,
  :where(#header-area) .navbar-fixed-bottom .navbar-collapse { padding-right: 0; padding-left: 0; }
}
:where(#header-area) .navbar-fixed-top .navbar-collapse,
:where(#header-area) .navbar-fixed-bottom .navbar-collapse { max-height: 340px; }
@media (max-device-width: 480px) and (orientation: landscape) {
  :where(#header-area) .navbar-fixed-top .navbar-collapse,
  :where(#header-area) .navbar-fixed-bottom .navbar-collapse { max-height: 200px; }
}
:where(#header-area) .container > .navbar-header,
:where(#header-area) .container-fluid > .navbar-header,
:where(#header-area) .container > .navbar-collapse,
:where(#header-area) .container-fluid > .navbar-collapse { margin-right: -15px; margin-left: -15px; }
@media (min-width: 768px) {
  :where(#header-area) .container > .navbar-header,
  :where(#header-area) .container-fluid > .navbar-header,
  :where(#header-area) .container > .navbar-collapse,
  :where(#header-area) .container-fluid > .navbar-collapse { margin-right: 0; margin-left: 0; }
}
:where(#header-area) .navbar-static-top { z-index: 1000; border-width: 0 0 1px; }
@media (min-width: 768px) {
  :where(#header-area) .navbar-static-top { border-radius: 0; }
}
:where(#header-area) .navbar-fixed-top,
:where(#header-area) .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; }
@media (min-width: 768px) {
  :where(#header-area) .navbar-fixed-top,
  :where(#header-area) .navbar-fixed-bottom { border-radius: 0; }
}
:where(#header-area) .navbar-fixed-top { top: 0; border-width: 0 0 1px; }
:where(#header-area) .navbar-fixed-bottom { bottom: 0; margin-bottom: 0; border-width: 1px 0 0; }
:where(#header-area) .navbar-brand { float: left; height: 50px; padding: 15px 15px; font-size: 18px; line-height: 20px; }
:where(#header-area) .navbar-brand:hover,
:where(#header-area) .navbar-brand:focus { text-decoration: none; }
:where(#header-area) .navbar-brand > img { display: block; }
@media (min-width: 768px) {
  :where(#header-area) .navbar > .container .navbar-brand,
  :where(#header-area).navbar > .container .navbar-brand,
  :where(#header-area) .navbar > .container-fluid .navbar-brand,
  :where(#header-area).navbar > .container-fluid .navbar-brand { margin-left: -15px; }
}
:where(#header-area) .navbar-toggle { position: relative; float: right; padding: 9px 10px; margin-top: 8px; margin-right: 15px; margin-bottom: 8px; background-color: transparent; background-image: none; border: 1px solid transparent; border-radius: 4px; }
:where(#header-area) .navbar-toggle:focus { outline: 0; }
:where(#header-area) .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; }
:where(#header-area) .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; }
@media (min-width: 768px) {
  :where(#header-area) .navbar-toggle { display: none; }
}
:where(#header-area) .navbar-nav { margin: 7.5px -15px; }
:where(#header-area) .navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; line-height: 20px; }
@media (max-width: 767px) {
  :where(#header-area) .navbar-nav .open .dropdown-menu { position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; -webkit-box-shadow: none; box-shadow: none; }
  :where(#header-area) .navbar-nav .open .dropdown-menu > li > a,
  :where(#header-area) .navbar-nav .open .dropdown-menu .dropdown-header { padding: 5px 15px 5px 25px; }
  :where(#header-area) .navbar-nav .open .dropdown-menu > li > a { line-height: 20px; }
  :where(#header-area) .navbar-nav .open .dropdown-menu > li > a:hover,
  :where(#header-area) .navbar-nav .open .dropdown-menu > li > a:focus { background-image: none; }
}
@media (min-width: 768px) {
  :where(#header-area) .navbar-nav { float: left; margin: 0; }
  :where(#header-area) .navbar-nav > li { float: left; }
  :where(#header-area) .navbar-nav > li > a { padding-top: 15px; padding-bottom: 15px; }
}
:where(#header-area) .navbar-form { padding: 10px 15px; margin-top: 8px; margin-right: -15px; margin-bottom: 8px; margin-left: -15px; border-top: 1px solid transparent; border-bottom: 1px solid transparent; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1); }
@media (min-width: 768px) {
  :where(#header-area) .navbar-form .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; }
  :where(#header-area) .navbar-form .form-control { display: inline-block; width: auto; vertical-align: middle; }
  :where(#header-area) .navbar-form .form-control-static { display: inline-block; }
  :where(#header-area) .navbar-form .input-group { display: inline-table; vertical-align: middle; }
  :where(#header-area) .navbar-form .input-group .input-group-addon,
  :where(#header-area) .navbar-form .input-group .input-group-btn,
  :where(#header-area) .navbar-form .input-group .form-control { width: auto; }
  :where(#header-area) .navbar-form .input-group > .form-control { width: 100%; }
  :where(#header-area) .navbar-form .control-label { margin-bottom: 0; vertical-align: middle; }
  :where(#header-area) .navbar-form .radio,
  :where(#header-area) .navbar-form .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; }
  :where(#header-area) .navbar-form .radio label,
  :where(#header-area) .navbar-form .checkbox label { padding-left: 0; }
  :where(#header-area) .navbar-form .radio input[type="radio"],
  :where(#header-area) .navbar-form .checkbox input[type="checkbox"] { position: relative; margin-left: 0; }
  :where(#header-area) .navbar-form .has-feedback .form-control-feedback { top: 0; }
}
@media (max-width: 767px) {
  :where(#header-area) .navbar-form .form-group { margin-bottom: 5px; }
  :where(#header-area) .navbar-form .form-group:last-child { margin-bottom: 0; }
}
@media (min-width: 768px) {
  :where(#header-area) .navbar-form { width: auto; padding-top: 0; padding-bottom: 0; margin-right: 0; margin-left: 0; border: 0; -webkit-box-shadow: none; box-shadow: none; }
}
:where(#header-area) .navbar-nav > li > .dropdown-menu { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
:where(#header-area) .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { margin-bottom: 0; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; }
:where(#header-area) .navbar-btn { margin-top: 8px; margin-bottom: 8px; }
:where(#header-area) .navbar-btn.btn-sm { margin-top: 10px; margin-bottom: 10px; }
:where(#header-area) .navbar-btn.btn-xs { margin-top: 14px; margin-bottom: 14px; }
:where(#header-area) .navbar-text { margin-top: 15px; margin-bottom: 15px; }
@media (min-width: 768px) {
  :where(#header-area) .navbar-text { float: left; margin-right: 15px; margin-left: 15px; }
}
@media (min-width: 768px) {
  :where(#header-area) .navbar-left { float: left !important; }
  :where(#header-area) .navbar-right { float: right !important; margin-right: -15px; }
  :where(#header-area) .navbar-right ~ .navbar-right { margin-right: 0; }
}
:where(#header-area) .navbar-default { background-color: #f8f8f8; border-color: #e7e7e7; }
:where(#header-area) .navbar-default .navbar-brand { color: #777; }
:where(#header-area) .navbar-default .navbar-brand:hover,
:where(#header-area) .navbar-default .navbar-brand:focus { color: #5e5e5e; background-color: transparent; }
:where(#header-area) .navbar-default .navbar-text { color: #777; }
:where(#header-area) .navbar-default .navbar-nav > li > a { color: #777; }
:where(#header-area) .navbar-default .navbar-nav > li > a:hover,
:where(#header-area) .navbar-default .navbar-nav > li > a:focus { color: #333; background-color: transparent; }
:where(#header-area) .navbar-default .navbar-nav > .active > a,
:where(#header-area) .navbar-default .navbar-nav > .active > a:hover,
:where(#header-area) .navbar-default .navbar-nav > .active > a:focus { color: #555; background-color: #e7e7e7; }
:where(#header-area) .navbar-default .navbar-nav > .disabled > a,
:where(#header-area) .navbar-default .navbar-nav > .disabled > a:hover,
:where(#header-area) .navbar-default .navbar-nav > .disabled > a:focus { color: #ccc; background-color: transparent; }
:where(#header-area) .navbar-default .navbar-toggle { border-color: #ddd; }
:where(#header-area) .navbar-default .navbar-toggle:hover,
:where(#header-area) .navbar-default .navbar-toggle:focus { background-color: #ddd; }
:where(#header-area) .navbar-default .navbar-toggle .icon-bar { background-color: #888; }
:where(#header-area) .navbar-default .navbar-collapse,
:where(#header-area) .navbar-default .navbar-form { border-color: #e7e7e7; }
:where(#header-area) .navbar-default .navbar-nav > .open > a,
:where(#header-area) .navbar-default .navbar-nav > .open > a:hover,
:where(#header-area) .navbar-default .navbar-nav > .open > a:focus { color: #555; background-color: #e7e7e7; }
@media (max-width: 767px) {
  :where(#header-area) .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #777; }
  :where(#header-area) .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
  :where(#header-area) .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #333; background-color: transparent; }
  :where(#header-area) .navbar-default .navbar-nav .open .dropdown-menu > .active > a,
  :where(#header-area) .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
  :where(#header-area) .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { color: #555; background-color: #e7e7e7; }
  :where(#header-area) .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
  :where(#header-area) .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
  :where(#header-area) .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #ccc; background-color: transparent; }
}
:where(#header-area) .navbar-default .navbar-link { color: #777; }
:where(#header-area) .navbar-default .navbar-link:hover { color: #333; }
:where(#header-area) .navbar-default .btn-link { color: #777; }
:where(#header-area) .navbar-default .btn-link:hover,
:where(#header-area) .navbar-default .btn-link:focus { color: #333; }
:where(#header-area) .navbar-default .btn-link[disabled]:hover,
:where(#header-area) fieldset[disabled] .navbar-default .btn-link:hover,
:where(#header-area) .navbar-default .btn-link[disabled]:focus,
:where(#header-area) fieldset[disabled] .navbar-default .btn-link:focus { color: #ccc; }
:where(#header-area) .navbar:before,
:where(#header-area).navbar:before,
:where(#header-area) .navbar:after,
:where(#header-area).navbar:after,
:where(#header-area) .navbar-header:before,
:where(#header-area) .navbar-header:after,
:where(#header-area) .navbar-collapse:before,
:where(#header-area) .navbar-collapse:after { display: table; content: " "; }
:where(#header-area) .navbar:after,
:where(#header-area).navbar:after,
:where(#header-area) .navbar-header:after,
:where(#header-area) .navbar-collapse:after { clear: both; }

/* Text: BS3 14px with line height 1.42857143 (20px); BS5 16px / 1.5. Admin pages set them in target-admin.css; public
   pages and the print shell relied on BS3's (2026-11-20). */
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.42857143; }  /* + BS3's font and 14px text (BS5: system font, 16px): what the plain print shell
   (blank_shell.tpl: receipts, scan invoice) shows; admin and public layouts set their own size after this */

/* ===================================== Public pages only (body.ts-public, templates/layout.tpl) ===================================== */
/* :where() keeps each rule as strong as BS3's own, so custom.css still overrides them as on BS3 pages. */
/* Menu arrows: BS3 showed one only where the markup has <span class="caret"> (My Account); BS5 draws one after every
   .dropdown-toggle (EN, the flag, Display had none). */
:where(#header-area) .dropdown-toggle::after { display: none; }
:where(.ts-public) .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px dashed; border-right: 4px solid transparent; border-left: 4px solid transparent; }
/* Tabs: BS3's .nav-tabs (10px 15px, 2px apart, #555 on white for the open tab with a #ddd edge); BS5's nav-link is
   8px 16px with a black open tab. */
:where(.ts-public) .nav-tabs { border-bottom: 1px solid #ddd; }
:where(.ts-public) .nav-tabs > li { margin-bottom: -1px; }
:where(.ts-public) .nav-tabs > li > a { padding: 10px 15px; margin-right: 2px; margin-bottom: 0; line-height: 1.42857143; border: 1px solid transparent; border-radius: 4px 4px 0 0; }
.ts-public .nav-tabs > li > .nav-link { margin-bottom: 0; } /* outweighs BS5's .nav-tabs .nav-link -1px: BS3 pulls only the <li> down 1px (the bar was 1px short) */
:where(.ts-public) .nav-tabs > li > a:hover { border-color: #eee #eee #ddd; }
:where(.ts-public) .nav-tabs > li > .nav-link.active { /* only the link: BS5 moves .active on the link when the tab changes, not on the <li> (an li.active rule kept the first tab white, Michael 2026-11-21) */ color: #555; cursor: default; background-color: #fff; border: 1px solid #ddd; border-bottom-color: transparent; }
/* Buttons: BS3 never wrapped a button's text (white-space: nowrap); BS5 does ("Display On Phone" took two lines). */
:where(.ts-public) .btn { white-space: nowrap; }
/* A disabled button: BS3 kept its colours at 65% opacity; BS5 uses --bs-btn-disabled-*, unset for btn-default. */
:where(.ts-public) .btn-default { --bs-btn-disabled-color: #333; --bs-btn-disabled-bg: #fff; --bs-btn-disabled-border-color: #ccc; }
:where(.ts-public) .btn-success { --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #5cb85c; --bs-btn-disabled-border-color: #4cae4c; }
/* Radios and checkboxes: BS3 gave them 4px above (input[type=radio] { margin: 4px 0 0 }); BS5's reboot sets 0, so a
   list of bare radios with <br> between (My Account profile "I am") sat tighter. */
:where(.ts-public) input[type="radio"], :where(.ts-public) input[type="checkbox"] { margin: 4px 0 0; line-height: normal; }
/* Divider line: BS3 hr { margin: 20px 0; border-top: 1px solid #eee } (BS5: 16px and a 25% opacity line). */
:where(.ts-public) hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eee; opacity: 1; }
/* A BS3 panel converted to a card (class="panel card"): BS3 panels were plain blocks; BS5 cards are flex boxes, which
   the browser narrows to sit beside a floated button above them (My Account addresses: Add Address). */
:where(.ts-public) .panel.card { display: block; }
/* ...and a plain BS3 .panel (no panel-default / colour class) had a transparent border; BS5 cards all get the #ddd one
   (the event page's password box) */
:where(.ts-public) .panel.card:not(.panel-default, .panel-primary, .panel-success, .panel-info, .panel-warning, .panel-danger) { --bs-card-border-color: transparent; }
/* BS3 input groups are tables and never wrap; BS5's wrap, so an input with width:100% pushed its button onto a new
   line (the event password box on phones) */
.ts-public .input-group { flex-wrap: nowrap; }
/* List groups: BS3 left 20px below them (the My Account side menu); BS5 none. */
:where(.ts-public) .list-group { margin-bottom: 20px; }
/* Inline lists: BS3 put every <li> of a .list-inline side by side with 5px each side; BS5 needs .list-inline-item on
   each (the footer's copyright line stacked). */
:where(.ts-public) .list-inline { margin-left: -5px; }
:where(.ts-public) .list-inline > li { display: inline-block; padding-right: 5px; padding-left: 5px; }
/* Pop-up titles: BS3 .modal-title { margin: 0; line-height: 1.42857143 }. */
:where(.ts-public) .modal-title { margin: 0; line-height: 1.42857143; }
/* Full-width buttons: BS3's .btn-block was display:block, so a <br> after one added an empty line (sidebar login
   boxes); BS5's w-100 is inline-block. */
:where(.ts-public) .btn-block { display: block; }
/* A <button class="btn"> with no colour class kept the browser's grey button face in BS3; BS5 makes it transparent
   (the phone-width "Promoter Tools" toggle in the sidebar). Also .btn-defult, a typo for btn-default that BS3 never
   styled, so live shows the grey face (the event page's admin "Manage Event" button). */
:where(.ts-public) button.btn:is(:not([class*="btn-"]), .btn-defult) { background-color: ButtonFace; }
/* Grid columns: BS3 gave every col-* position: relative. The public layout pulls the page content up over the blurred
   cover picture (.event-offset, margin-top -400px); positioned, the content sits above the cover. Without it (BS5) the
   transparent cover lay on top and swallowed clicks: the order links on My Account Orders (Michael 2026-11-21). */
:where(.ts-public) [class^="col-"], :where(.ts-public) [class*=" col-"] { position: relative; }
/* The Display On Phone shell (myaccount/redeem/shell.tpl): BS3's dark fixed bar (.navbar-inverse .navbar-fixed-top)
   with the logo. BS5 has neither class. */
:where(.ts-public) .navbar-inverse { background-color: #222; border-color: #080808; }
:where(.ts-public) .navbar-fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; border-width: 0 0 1px; min-height: 50px; margin-bottom: 0; }
/* Carousel captions as BS3: 15% in from each side and 20px up, a soft text shadow; from 768px 20% in and 30px up. */
:where(.ts-public) .carousel-caption { right: 15%; left: 15%; bottom: 20px; padding-top: 20px; padding-bottom: 20px; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
@media (min-width: 768px) { :where(.ts-public) .carousel-caption { right: 20%; left: 20%; padding-bottom: 30px; } }
/* Carousel indicators that are <li>s (Display On Phone): BS3's small round dots in one centred line. BS5 styles
   [data-bs-target] as flat bars and doesn't remove the list numbers. .ts-public is needed to outweigh BS5's
   .carousel-indicators [data-bs-target]; pages override colours and position in their own CSS as before. No bottom here:
   custom.css puts them 50px below the picture (home banners, .carousel-es 10px up), with its grey dots (#ccc, #999 ring). */
.ts-public ol.carousel-indicators { display: block; left: 50%; right: auto; width: 60%; margin: 0 0 10px -30%; padding-left: 0; text-align: center; list-style: none; z-index: 15; }
.ts-public .carousel-indicators li[data-bs-target] { display: inline-block; box-sizing: border-box; width: 10px; height: 10px; margin: 1px; text-indent: -999px; cursor: pointer; background-color: #ccc; border: 1px solid #999; border-radius: 10px; opacity: 1; flex: none; }
.ts-public .carousel-indicators li[data-bs-target].active { width: 12px; height: 12px; margin: 0; background-color: #fff; }
/* BS3 carousel arrows (home page and promoter banners): <a class="left|right carousel-control"> with a glyphicon chevron,
   a shaded strip down each side. BS5 has neither (its .carousel-control-prev/next look different), so Bootstrap 3.3.4's
   rules are copied here, with the Glyphicons font for the two chevrons only (libs/fonts has the files). */
@font-face { font-family: 'Glyphicons Halflings'; src: url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'); }
:where(.ts-public) .glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
:where(.ts-public) .glyphicon-chevron-left:before { content: "\e079"; }
:where(.ts-public) .glyphicon-chevron-right:before { content: "\e080"; }
:where(.ts-public) .carousel-control { position: absolute; top: 0; bottom: 0; left: 0; width: 15%; font-size: 20px; color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); opacity: .5; z-index: 1; }
:where(.ts-public) .carousel-control.left { background-image: linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); background-repeat: repeat-x; }
:where(.ts-public) .carousel-control.right { right: 0; left: auto; background-image: linear-gradient(to right, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); background-repeat: repeat-x; }
:where(.ts-public) .carousel-control:hover, :where(.ts-public) .carousel-control:focus { color: #fff; text-decoration: none; outline: none; opacity: .9; }
:where(.ts-public) .carousel-control :is(.glyphicon-chevron-left, .glyphicon-chevron-right) { position: absolute; top: 50%; z-index: 5; display: inline-block; }
:where(.ts-public) .carousel-control .glyphicon-chevron-left { left: 50%; }
:where(.ts-public) .carousel-control .glyphicon-chevron-right { right: 50%; }
@media (min-width: 768px) { :where(.ts-public) .carousel-control :is(.glyphicon-chevron-left, .glyphicon-chevron-right) { width: 30px; height: 30px; margin-top: -15px; margin-left: -15px; font-size: 30px; } }
/* custom.css caps .carousel-item > a > img at 400px (from the earlier BS5 attempt); live's BS3 slides never had the class,
   so the home banners kept their full height: same here */
.ts-public .carousel-item > a > img { max-height: none; }
/* BS3 columns are at least 1px tall, so an empty one (the event page's tab bar hidden on tablets) still takes 1px */
:where(.ts-public) .row > [class*="col-"] { min-height: 1px; }
/* BS3 pads only columns; BS5's .row > * pads every child of a row by half the gutter (the event gallery sits in a row
   without a column, so it was 15px narrower each side) */
/* (zero BS5's gutter on them rather than set padding, so an element's own padding stays: the event page's Add to Cart
   button sits straight in a row and kept BS3's 16px) */
:where(.ts-public .row > :not([class*="col-"])) { --bs-gutter-x: 0; }
/* BS3 carousel pictures are blocks, as wide as the slide at most (.img-responsive); BS5 leaves them inline */
:where(.ts-public) .carousel-inner > .item > img, :where(.ts-public) .carousel-inner > .item > a > img { display: block; max-width: 100%; height: auto; line-height: 1; }
/* Help text on public pages as Bootstrap 3 (the general rule above is the admin's target-admin.css look): 10px below,
   and <small class="help-block"> at 85% (ticket descriptions on the event page) */
.ts-public :is(.help-block, .form-text) { margin-bottom: 10px; }
.ts-public small:is(.help-block, .form-text) { font-size: 85%; }
/* Lists: BS3 indented them 40px (BS5 2rem = 32px). */
:where(.ts-public) :is(ol, ul) { padding-left: 40px; }
/* Panel groups (accordions: FAQs, sell "why"): BS3 put panels 5px apart with no gap below each, no line under the
   heading, and the title link in the text colour (BS3 .panel-group / .panel-title > a). */
:where(.ts-public) .panel-group { margin-bottom: 20px; }
:where(.ts-public) .panel-group .panel { margin-bottom: 0; border-radius: 4px; }
:where(.ts-public) .panel-group .panel + .panel { margin-top: 5px; }
:where(.ts-public) .panel-group .panel-heading { border-bottom: 0; }
:where(.ts-public) .panel-group .panel-heading + .panel-collapse > .panel-body { border-top: 1px solid #ddd; }
:where(.ts-public) .panel-title { margin-top: 0; margin-bottom: 0; font-size: 16px; }
:where(.ts-public) .panel-title > a { color: inherit; }
/* Radio / checkbox button groups (data-toggle="buttons": register "I am"): BS3 hid the inputs inside the buttons and
   its button plugin marked the chosen one .active; BS5 has neither. Hidden as BS3 did, and the button holding the
   checked input gets BS3's pressed look (also on first load, from the CHECKED attribute). */
:where(.ts-public) [data-toggle="buttons"] > .btn input[type="radio"],
:where(.ts-public) [data-toggle="buttons"] > .btn input[type="checkbox"] { position: absolute; clip: rect(0, 0, 0, 0); pointer-events: none; }
:where(.ts-public) [data-toggle="buttons"] > .btn-default:has(input:checked) { background-color: #e6e6e6; border-color: #adadad; box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); }
/* A <label class="btn">: BS3's .btn { margin-bottom: 0 } beat label's 5px; BS5's .btn sets no margin. */
:where(.ts-public) label.btn { margin-bottom: 0; }
