/* theme.css - the On Location look (2026-11-18), first version: ADMIN portal. Same idea as Tucker's Lab (kennardnj.com/tuckerslab/css/theme.css): a layer over Bootstrap 4 and style.css,
   loaded after style.css and BEFORE mobile.css (so the phone fixes still win). Only restyles; no page markup depends on it.
   Each area keeps its own accent colour: admin = dark red (#990000, default below), student portal = green, public site = blue (separate small override files, later).
   To switch the theme off, remove the one <link> line from the head files. Print and PDF pages (certificates, invoices, quotes, transcripts) are NOT restyled: they do not load style.css. */

:root {
  --ol-accent: #990000;
  --ol-accent-dark: #6f0000;
  --ol-accent-rgb: 153, 0, 0;
  --ol-accent-soft: #f3f4f6;
  --ol-ink: #1e2530;
  --ol-muted: #6a7280;
  --ol-line: #e4e7ec;
  --ol-bg: #f5f6f8;
  --ol-surface: #ffffff;
  --ol-radius: 10px;
  --ol-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
}

/* ---------- base ---------- */
body {
  background: var(--ol-bg);
  color: var(--ol-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: .95rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { color: var(--ol-ink); font-weight: 600; letter-spacing: -.01em; }
a { color: var(--ol-accent); }
a:hover { color: var(--ol-accent-dark); text-decoration: underline; }
hr { border: 0; height: 1px; background: var(--ol-line); margin: 1rem 0; }
.text-admin, .text-site { color: var(--ol-accent) !important; }
.bg-admin { background-color: var(--ol-accent) !important; }
.text-muted, small, .small { color: var(--ol-muted); }
img { max-width: 100%; height: auto; }
.img-thumbnail { border: 1px solid var(--ol-line); border-radius: 8px; }

/* ---------- top bar ---------- */
.navbar.navbar-light {
  position: sticky;
  top: 0;
  z-index: 1020;
  padding: .55rem 1rem;
  background: var(--ol-surface);
  border-top: 3px solid var(--ol-accent);
  box-shadow: 0 1px 0 var(--ol-line), 0 6px 16px rgba(16, 24, 40, .04);
}
.admin-brand { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; color: var(--ol-ink); }
.admin-brand img { height: 38px; width: auto; margin-right: .6rem; vertical-align: middle; }
.navbar-light .navbar-nav .nav-link {
  color: var(--ol-ink) !important;
  font-weight: 500;
  padding: .45rem .75rem;
  border-radius: 8px;
}
.navbar-light .navbar-nav .nav-link:hover { background: var(--ol-accent-soft); color: var(--ol-accent) !important; text-decoration: none; }
.navbar-light .navbar-nav .nav-link.badge-link, .badge-danger { border-radius: 999px; }
.navbar-toggler { border: 1px solid var(--ol-line); }
.dropdown-menu { border: 1px solid var(--ol-line); border-radius: var(--ol-radius); box-shadow: var(--ol-shadow); padding: .35rem; }
.dropdown-item { border-radius: 6px; font-weight: 500; }
.dropdown-item:hover { background: var(--ol-accent-soft); }
/* the thin colour bars between the top bar and the page stay, but quieter */
.navbar-small.bg-admin { min-height: 0; padding: 0; height: 3px; opacity: .85; }

/* ---------- buttons ---------- */
.btn { border-radius: 8px; font-weight: 500; transition: background .12s, color .12s, box-shadow .12s; }
.btn:focus, .btn.focus { box-shadow: 0 0 0 3px rgba(var(--ol-accent-rgb), .18); }
.btn.border-admin, .border-admin.btn {
  border: 1px solid var(--ol-accent) !important;
  color: var(--ol-accent);
  background: var(--ol-surface);
}
.btn.border-admin:hover { background: var(--ol-accent) !important; color: #fff !important; text-decoration: none; }
.btn.border-admin.text-admin:hover { color: #fff !important; }
.btn-primary, .btn-admin { background: var(--ol-accent); border-color: var(--ol-accent); color: #fff; font-weight: 500; }
.btn-primary:hover, .btn-admin:hover { background: var(--ol-accent-dark); border-color: var(--ol-accent-dark); color: #fff; }
.btn-link { color: var(--ol-accent); }
.border-admin:not(.btn) { border: 1px solid var(--ol-line); border-radius: 8px; }

/* ---------- forms ---------- */
label { font-weight: 500; color: var(--ol-ink); margin-bottom: .25rem; }
.form-control, .custom-select, select.form-control {
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  color: var(--ol-ink);
}
.form-control:focus, .custom-select:focus {
  border-color: var(--ol-accent);
  box-shadow: 0 0 0 3px rgba(var(--ol-accent-rgb), .15);
}
.input-group-text { border-radius: 8px; background: var(--ol-accent-soft); border-color: #d0d5dd; color: var(--ol-accent); font-weight: 500; }
.alert { border-radius: var(--ol-radius); border-width: 1px; }
.alert-danger { background: #fdf0f0; border-color: #f2c4c4; color: #8a1c1c; }
.alert-success { background: #eef8f1; border-color: #bfe3cb; color: #1c6b3a; }
.invalid-feedback { font-size: .8rem; }

/* ---------- tables and cards ---------- */
.table {
  background: var(--ol-surface);
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ol-line);
  border-radius: var(--ol-radius);
  box-shadow: var(--ol-shadow);
  overflow: hidden;
}
.table thead th, .table th {
  border-top: 0;
  border-bottom: 1px solid var(--ol-line);
  background: #fafbfc;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  color: var(--ol-muted);
}
.table td { border-top: 1px solid var(--ol-line); vertical-align: middle; }
.table tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover { background: var(--ol-accent-soft); }
.table-responsive { border-radius: var(--ol-radius); }
.card { border: 1px solid var(--ol-line); border-radius: var(--ol-radius); box-shadow: var(--ol-shadow); }
.card-header { background: var(--ol-accent-soft); color: var(--ol-accent); border-bottom: 1px solid var(--ol-line); border-radius: var(--ol-radius) var(--ol-radius) 0 0; }
.list-group-item { border-color: var(--ol-line); }
.list-group-item-action:hover { background: var(--ol-accent-soft); }
.modal-content { border: 0; border-radius: 14px; box-shadow: 0 10px 40px rgba(16, 24, 40, .2); }
.modal-header { border-bottom: 1px solid var(--ol-line); }
.badge { font-weight: 600; }

/* ---------- left menus ---------- */
.border-adminRight { border-right: 1px solid var(--ol-line) !important; margin-right: 6px; padding-right: 8px; }
.nav-pills h6, ul.nav-pills > h6 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  color: var(--ol-muted);
  margin: 1.1rem 0 .4rem;
  padding-left: .6rem;
}
.nav-pills h6 u { text-decoration: none; }
.nav-pills .nav-link { border-radius: 8px; padding: .35rem .6rem; color: var(--ol-ink) !important; font-weight: 500; }
.nav-pills .nav-link:hover { background: var(--ol-accent-soft); color: var(--ol-accent) !important; text-decoration: none; }
.nav-pills .nav-item.active > .nav-link,
.nav-pills .nav-link.active { background: var(--ol-accent-soft); color: var(--ol-accent) !important; box-shadow: inset 3px 0 0 var(--ol-accent); font-weight: 600; }

/* ---------- sign-in and account pages (body class tl-plain: added to those pages) ---------- */
body.ol-plain { background: var(--ol-bg); }
body.ol-plain .card { background: var(--ol-surface); border: 1px solid var(--ol-line) !important; border-radius: 14px; box-shadow: var(--ol-shadow); }
body.ol-plain .btn.border-dark, body.ol-plain .btn-primary {
  border: 1px solid var(--ol-accent) !important;
  color: var(--ol-accent) !important;
  background: var(--ol-surface) !important;
}
body.ol-plain .btn.border-dark:hover, body.ol-plain .btn-primary:hover { background: var(--ol-accent) !important; color: #fff !important; }
body.ol-plain h4.text-danger { color: var(--ol-ink) !important; font-size: 1.15rem; }
/* the page title on the sign-in pages: one line, smaller; no stray menu button; the logo blends into the grey */
body.ol-plain .navbar-toggler { display: none; }
body.ol-plain .site-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ol-ink); text-decoration: none; }
body.ol-plain .site-brand img { height: 64px; width: auto; mix-blend-mode: multiply; }
body.ol-plain .site-brand span { margin: 0 !important; }
body.ol-plain .site-brand font { font-size: 1.35rem !important; color: var(--ol-ink) !important; font-weight: 600; }
body.ol-plain .site-brand font font { color: var(--ol-accent) !important; }
body.ol-plain > .container-fluid { padding-top: 1rem; }
/* forgot / reset password pages (no #login block): one centred card */
body.ol-plain:not(:has(#login)):not(:has(#student-login)) .container { max-width: 520px; margin-top: 8vh; }
body.ol-plain:not(:has(#login)):not(:has(#student-login)) .container > .row > .col { background: var(--ol-surface); border: 1px solid var(--ol-line); border-radius: 14px; box-shadow: var(--ol-shadow); padding: 1.5rem; }

/* ---------- pop-up windows (pages with no top bar) ---------- */
body:not(:has(.navbar)):not(.ol-plain) { background: var(--ol-surface); padding: .5rem .75rem 1rem; }
body:not(:has(.navbar)):not(.ol-plain) :is(h4, h5) { text-align: center; margin-top: .75rem; }
body:not(:has(.navbar)):not(.ol-plain) :is(h4, h5)::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: .5rem auto .25rem;
  background: var(--ol-accent);
  border-radius: 2px;
}
body:not(:has(.navbar)):not(.ol-plain) .btn { min-width: 7rem; }

/* ---------- footer ---------- */
.main-footer, footer { color: var(--ol-muted); font-size: .8rem; }

/* ---------- 2026-11-18, second pass ---------- */
/* left-menu headings that sit outside the list (<h6><u>Class Management</u></h6>): same small grey label */
h6:has(> u) { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--ol-muted); margin: 1.1rem 0 .4rem; padding-left: .6rem; }
h6:has(> u) u { text-decoration: none; }
/* wide tables (the class list has 13 columns): tighter cells so the Edit/Delete icons are not pushed out of the box on a normal screen; narrow screens still scroll sideways */
.table-responsive .table td, .table-responsive .table th { padding: .55rem .5rem; }
.table-responsive .table { font-size: .88rem; }
/* pop-ups opened from the admin pages (Assign Student and others) use the public-site classes (blue); inside the admin theme they follow the accent colour.
   The public-site theme (later) will set --ol-accent to blue, so the same rules then give blue there. */
.bg-site { background-color: var(--ol-accent) !important; }
.btn.border-site, .border-site.btn { border: 1px solid var(--ol-accent) !important; color: var(--ol-accent); background: var(--ol-surface); }
.btn.border-site:hover { background: var(--ol-accent) !important; color: #fff !important; text-decoration: none; }
.btn.border-site.text-site:hover { color: #fff !important; }
.border-site:not(.btn) { border: 1px solid var(--ol-line) !important; border-radius: 8px; }
/* icon buttons in table cells (Customers list: no header over the action column, the cell shrank to 37 px and the generic img{max-width:100%} squeezed the icons to 3 px) */
button.img-thumbnail img, .img-thumbnail > img { max-width: none; height: auto; }
td:has(> button.img-thumbnail) { white-space: nowrap; }
/* headings inside white-text blocks keep the white (Web Admin "Tools" card header: the global heading colour made it dark on dark red); card headers in the accent colour are solid, not pale */
.text-white :is(h1, h2, h3, h4, h5, h6), .bg-admin :is(h1, h2, h3, h4, h5, h6) { color: inherit; }
.card-header.bg-admin { color: #fff; border-bottom: 0; }
/* the small hint under a table heading ("Click to see classes taught") in the same muted grey as the others */
.table th small, .table th .text-info { color: var(--ol-muted) !important; }
/* top bar on a 1280-wide screen: brand on one line, slightly tighter menu so all nine items fit in one row (narrower screens use the menu button) */
.navbar.navbar-light .navbar-brand, .admin-brand { white-space: nowrap; margin-right: .5rem; }
@media (min-width: 992px) and (max-width: 1399px) {
  .admin-brand { font-size: .95rem; }
  .admin-brand img { height: 32px; margin-right: .4rem; }
  .navbar-light .navbar-nav .nav-link { padding: .4rem .45rem; font-size: .88rem; white-space: nowrap; }
}

/* ---------- 2026-11-18, public site (header.cfm, modules/pageScripts.cfm; accent blue comes from theme-site.css) ---------- */
.btn-site, .btn-student { background: var(--ol-accent); border-color: var(--ol-accent); color: #fff; font-weight: 500; }
.btn-site:hover, .btn-student:hover { background: var(--ol-accent-dark); border-color: var(--ol-accent-dark); color: #fff; }
.site-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ol-ink); text-decoration: none; white-space: normal; }
.site-brand:hover { color: var(--ol-accent); text-decoration: none; }
.site-brand img { height: 52px; width: auto; }
.site-brand span { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
/* card and wallet logos on the home page (the page used height="40%", which the generic img{height:auto} rule above overrides) */
img.pay-logo { height: 48px; width: auto; max-width: 100%; }
/* radio buttons and tick boxes in the accent colour (registration and payment pages) */
input[type="radio"], input[type="checkbox"] { accent-color: var(--ol-accent); }

/* ---------- Find A Class on a phone: each class becomes a card (the 9-column table made students scroll sideways to reach Register) ---------- */
@media (max-width: 767px) {
  table.class-list, table.class-list tbody, table.class-list tr, table.class-list td { display: block; width: 100%; }
  table.class-list { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  table.class-list thead { display: none; }
  table.class-list tr { background: var(--ol-surface); border: 1px solid var(--ol-line); border-radius: var(--ol-radius); box-shadow: var(--ol-shadow); margin: 0 0 .9rem; padding: .7rem .9rem; }
  table.class-list tr:hover { background: var(--ol-surface); }
  table.class-list td { border: 0; padding: .12rem 0; display: flex; gap: .6rem; font-size: .92rem; text-align: left; }
  table.class-list td::before { flex: 0 0 5.2rem; color: var(--ol-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; padding-top: .15rem; }
  table.class-list td:nth-child(1) { font-size: 1.05rem; font-weight: 600; padding-bottom: .35rem; }
  table.class-list td:nth-child(2)::before { content: "Date"; }
  table.class-list td:nth-child(3)::before { content: "Hours"; }
  table.class-list td:nth-child(4)::before { content: "Days"; }
  table.class-list td:nth-child(5)::before { content: "CEUs"; }
  table.class-list td:nth-child(6)::before { content: "Location"; }
  table.class-list td:nth-child(7)::before { content: "Seats left"; }
  table.class-list td:nth-child(8)::before { content: "Info"; }
  table.class-list td.noseat, table.class-list td:empty { display: none; }
  table.class-list td[colspan] { display: block; }
  table.class-list td:nth-child(9) { display: block; padding-top: .6rem; }
  table.class-list td:nth-child(9) .btn { display: block; width: 100%; padding: .55rem; font-size: 1rem; }
}
/* student portal: the green helper classes follow the accent colour */
.text-student { color: var(--ol-accent) !important; }
.bg-student { background-color: var(--ol-accent) !important; }
.student-brand { color: var(--ol-ink); font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.student-brand:hover { color: var(--ol-accent); text-decoration: none; }
.student-brand img { height: 38px; width: auto; margin-right: .6rem; vertical-align: middle; }
