/* The body background lives in app-shell.css, which is token-driven and so
   can be themed. It used to be a light-blue gradient declared here with
   !important and gated to :not(.theme-v2); both the rule and the gate are
   gone. Nothing in this file may set a body background again. */
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Main content wrapper. The 95%-opaque white it used to carry was a panel
   floating on the deleted baby-blue gradient; on a themed canvas a hardcoded
   white panel is simply a light rectangle in a dark page. */
.content-wrapper {
  background-color: var(--eq-surface);
  /* Remove conflicting min-height - now handled by layout template */
  border-radius: var(--eq-radius-sm);
  box-shadow: 0 0 0 1px var(--eq-line);
}

/* `.card` was declared here too, as the FIFTH definition of it in the head.
   It belongs to the component layer: static/styles/components.css. */

/* Bootstrap 3.7 visibl-* depreciated this adjust second has margin only in small view */
@media (min-width: 768px) {
  div.visible-xs {
    margin-top: 0;
  }
}

/* flash message padding align */
#flash-messages div {
  padding-left: 1rem;
}

.brand_title {
  font-size: 2.2em;
  vertical-align: middle;
  font-family: "Crimson Text", serif;
  font-weight: bold;
  white-space: nowrap;
  padding-top: 1em;
  padding-left: 1em;
  color: #1b3294;
}
@media screen and (max-width: 998px) {
  .brand_title {
    display: none;
  }
}

.brand_second_title {
  vertical-align: middle;
  font-family: "Crimson Text", serif;
  font-weight: bold;
  white-space: nowrap;
  color: #1b3294;
}
@media screen and (max-width: 1130px) {
  .brand_second_title {
    display: none;
  }
}

#websiteTitle {
  padding-top: 10%;
  font-size: 3.8em;
  vertical-align: middle;
  font-family: "Crimson Text", serif;
  padding-left: 15px;
  color: #1b3294;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
}

#header_title {
  padding-top: 5em;
  padding-bottom: 5em;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-direction: normal;
  -moz-box-direction: normal;
  -ms-box-direction: normal;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  -ms-box-orient: vertical;
  -webkit-flex-direction: column;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -moz-box-align: center;
  -ms-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -o-box-pack: center;
  -ms-box-pack: center;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  justify-content: center;
  width: 100%;
}
@media screen and (max-width: 768px) {
  #header_title {
    padding-top: 6em;
  }
}
@media screen and (max-width: 480px) {
  .UC_brand {
    display: none;
  }
}
#websiteSlogan {
  font-size: 2.6em;
  vertical-align: middle;
  font-family: "Crimson Text", serif;
  padding-left: 15px;
  color: #1b3294;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

/* Admin dashboard
-------------------------------------------------- */
#bulk_actions {
  display: none;
  padding-bottom: 8px;
}
#scope {
  margin-bottom: 0;
  width: 160px;
  height: 35px;
  font-weight: 400;
  font-size: 14px;
}
.sort:after {
  content: "\f0dc";
  font-family: FontAwesome;
  margin-left: 6px;
  color: #bbb;
}
.asc:after {
  content: "\f0dd";
  font-family: FontAwesome;
  margin-left: 6px;
  color: #444;
}
.desc:after {
  content: "\f0de";
  font-family: FontAwesome;
  margin-left: 6px;
  color: #444;
}

/* Margin and padding
-------------------------------------------------- */
.lg-margin-bottom {
  margin-bottom: 60px;
}

.md-margin-bottom {
  margin-bottom: 40px;
}

.lg-margin-top {
  margin-top: 60px;
}

.md-margin-top {
  margin-top: 40px;
}

.sm-margin-top {
  margin-top: 20px;
}

.sm-margin-bottom {
  margin-bottom: 20px;
}

.md-padding-top {
  padding-top: 40px;
}
.sm-padding-top {
  padding-top: 20px;
}
/* Bootstrap overrides
-------------------------------------------------- */
label {
  font-weight: 400;
}

.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
  margin-left: 0;
}
.alert {
  padding-left: 16.7777%;
}

.alert-small {
  padding: 5px;
  margin-bottom: 0;
}

.alert-error,
.alert-message {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}

.alert-error hr,
.alert-message hr {
  border-top-color: #e4b9c0;
}

.alert-error .alert-link,
.alert-message .alert-link {
  color: #843534;
}

dd {
  margin-bottom: 8px;
}
/* Eduqueue Template
-------------------------------------------------- */
#view-source {
  position: fixed;
  display: block;
  right: 0;
  bottom: 0;
  margin-right: 40px;
  margin-bottom: 40px;
  z-index: 900;
}
/* Admin Dashboards
-------------------------------------------------- */
.paginationfooter {
  width: 100%;
  border: None;
  display: -webkit-flex; /* Safari */
  -webkit-justify-content: space-around; /* Safari 6.1+ */
  justify-content: space-around;
}
/* A CANVAS IS VISIBLE BY DEFAULT. There used to be a global
   `canvas { display: none }` here, immediately under this id, and it cost the
   apex marketing page two of its three canvases: the animated aurora behind
   the hero (`home_modern.html`) never rendered in its life, and the QR code
   in the "Appointment Pass" mockup was hidden directly beside body copy
   promising "a QR code and barcode" — the barcode showed because that one
   rule happened to declare `display: block`. Confirmed hidden in production.
   The only thing that undid it anywhere was `.dq-chart canvas` in
   dashboard-common.css, so any chart outside a `.dq-chart` was invisible
   with no error and nothing in the console.

   It was written for a webcam capture canvas. That element no longer exists:
   every capture canvas in the app is now built in JS with
   `canvas.style.display = 'none'` set inline (`eduqueue/page/chk_in.html`,
   `eduqueue/page/_form.html`), which an inline style guarantees and a
   stylesheet cannot be asked to. `#cpic` itself is an
   `<input type="hidden">` today, so the id rule below is already a no-op; it
   stays only so a future `<canvas id="cpic">` keeps the behaviour the global
   rule was reaching for. Do not generalise it again. */
#cpic {
  display: none;
}
.flex-container {
  display: flex;
  flex-direction: row; /* make main axis horizontal (default value) */
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}
.space-between {
  justify-content: space-between;
}
.space-around {
  justify-content: space-around;
}
.space-end {
  justify-content: flex-end;
}
.center {
  align-items: center;
  justify-content: center;
}
.flex-item {
  margin: 5px;
  text-align: left;
}
.flex-item-center {
  margin: 5px;
  text-align: center;
}
.flex-one {
  flex: 1;
  margin: 5px;
  text-align: left;
}
.flex-two {
  flex: 2;
  margin: 5px;
  text-align: right;
}

/* Layout fixes for sidebar alignment */
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: none;
}

/* `.table-responsive` is declared in static/styles/components.css, which owns
   the scroll container that `.container-fluid { overflow-x: clip }` makes
   mandatory for a wide table. The copy that was here was identical. */
.table-responsive > .table {
  margin-bottom: 0;
}

/* Prevent content overflow */
.card-body {
  overflow-x: auto;
}

/* DataTables wrapper fixes */
.dataTables_wrapper {
  width: 100%;
  overflow-x: auto;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  margin-bottom: 0.5rem;
}

/* `.form-group`, `.form-control` and `.btn` were declared here — and what
   they declared was a near-verbatim COPY of Bootstrap 4.6.2's own rules for
   the same three selectors, loaded immediately after Bootstrap. They made
   this file the third and fourth place in the head defining a button and a
   field, and the copy had already cost one production incident: restating
   `border-color: transparent` at equal specificity but later source beat
   every `.btn-outline-*` variant, rendering 100+ outline buttons as bare
   text (the dual-listbox arrows in the report filters, 2026-09-18).

   Deleting them changes nothing about how a control looks, because Bootstrap
   declares every one of those properties itself and
   static/styles/components.css declares the ones the house style needs after
   both. */

/* MODAL STACKING MOVED OUT, 2026-11-28.

   This file held a 120-line re-implementation of Bootstrap 4's own modal
   geometry — `.modal-backdrop` at `z-index: 1040 !important`, `.modal` at
   1050, `.modal-dialog` at 1051, `.modal-content` at 1052, each with
   `position`, `width` and `height` restated `!important` — plus a second
   cluster lifting `.visitor-detail-modal` to 1060-1062. None of it differed
   from Bootstrap except in being `!important`, and all of it was one of six
   disagreeing answers to the same question. `static/styles/
   background-override.css` is the single owner now, and
   tests/cssguard/test_dialog_chrome.py fails if a second file takes it back.

   Two rules in it were not geometry and were load-bearing, so they moved
   rather than went: `.visitor-detail-modal { pointer-events: none }` on the
   modal ROOT, which removed click-outside-to-dismiss from the dialog on the
   check-in path, and the blanket `filter: none` that keeps the page gradient
   off a dialog. The first is fixed (the dialog takes `pointer-events: auto`
   now); the second is below, because it is about filters and not stacking.

   Interactive children keep `pointer-events: all`: a page that sets
   `pointer-events: none` on an ancestor is what this was written for. */
.modal button,
.modal a,
.modal input,
.modal select,
.modal textarea,
.modal .close,
.modal [data-dismiss="modal"] {
  pointer-events: all !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

/* Ensure barcode scanner doesn't affect other modals when hidden */
#barcode-scanner-overlay[style*="display: none"] {
  pointer-events: none !important;
}

/* Remove all filters from modal elements. NOT stacking: a page-level
   `filter` or `backdrop-filter` on an ancestor applies to a descendant
   dialog and is what made the visitor-detail dialog look dimmed. */
.modal,
.modal-dialog,
.modal-content,
.modal-header,
.modal-body,
.modal-footer {
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
}

/* Remove any filters that might affect modal appearance */
.modal * {
  filter: none !important;
  -webkit-filter: none !important;
}
