/* The typography of the LEGACY LCMS, reproduced on the AdminLTE 4 / Bootstrap 5 stack. Loaded LAST in every layout.
 *
 * Source of every value: the live legacy site (AdminLTE 2.4.18 + Bootstrap 3.4.1), measured with getComputedStyle in a real browser on 49 screens,
 * a case view, create and update forms, a modal, the user menu and the error page, and cross-checked against the legacy stylesheets
 * (AdminLTE.min.css, bootstrap.css, site.css). Family, size, weight, style and line height only: spacing and colour are not part of this file.
 *
 * FONT: legacy never ships a web font. Its stack is "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif, so on a PC without Source Sans
 * Pro installed it is drawn in Helvetica/Arial. The same stack is used here and NO font file is added, so the letters are the same ones legacy drew
 * (the new theme's own stack began with "Source Sans 3" and then system-ui, i.e. Segoe UI on Windows, which legacy never used).
 *
 * SIZES are in px on purpose. Bootstrap 5 sizes components in rem (root-relative), so a smaller body size alone would not reach buttons, inputs,
 * menus or the sidebar; each component is restated. Legacy base: 14px on a 20px line (line-height 1.42857143).
 */

:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
  --bs-font-sans-serif: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 14px;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.42857143;
  --bs-font-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
}

/* NOT html: Bootstrap 5 spacing is rem-based, and a smaller root size would shrink every padding and margin along with the type */
html { font-family: var(--bs-font-sans-serif); }
body, .app-wrapper, .app-main, .app-sidebar, .app-header, .app-footer {
  font-family: var(--bs-font-sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
}

/* ---------------------------------------------------------------- headings (Bootstrap 3: weight 500, line 1.1, family inherited) */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
}
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; }

/* page title under the top bar: AdminLTE .content-header > h1 */
.app-content-header h1,
.app-content-header .h1 {
  font-size: 24px !important;
  font-weight: 500;
  line-height: 1.1;
}

small { font-size: 85%; font-weight: 400; }
/* the .small UTILITY marks secondary text; legacy showed that text at body size ("Showing 1-10", "No results found", "(not set)"), so it is 14px here */
.small { font-size: 14px; font-weight: 400; }
/* legacy templates never used .lead: their messages are plain 14px paragraphs */
.lead { font-size: 14px; font-weight: 400; line-height: 1.42857143; }
b, strong, th { font-weight: 700; }
label, .form-label, .col-form-label { font-size: 14px; font-weight: 700; line-height: 1.42857143; }
legend { font-size: 21px; line-height: inherit; }
code, kbd, samp { font-family: var(--bs-font-monospace); font-size: 90%; }
pre { font-family: var(--bs-font-monospace); font-size: 13px; line-height: 1.42857143; }
.not-set { font-style: italic; }

/* ---------------------------------------------------------------- top bar, sidebar, footer */
.app-header .nav-link,
.app-header .navbar-nav > .nav-item > span,
.app-header .dropdown-item,
.lcms-navbar-title {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

/* AdminLTE .main-header .logo: 20px, weight 300, Helvetica Neue stack (not the body stack) */
.sidebar-brand .brand-text,
.sidebar-brand .brand-link {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 300;
}

.sidebar-menu .nav-link,
.sidebar-menu .nav-link p,
.sidebar-menu .nav-treeview > .nav-item > .nav-link,
.sidebar-menu .nav-treeview > .nav-item > .nav-link p {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

/* AdminLTE .sidebar-menu li.header */
.sidebar-menu .nav-header,
.app-sidebar .nav-header {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.42857143;
}

.app-footer, .app-footer strong, .app-footer a { font-size: 14px; line-height: 20px; }
.app-footer strong { font-weight: 700; }

/* the accessibility "skip to main content" links */
.lcms-skip-link, .skip-links a, .skip-link { font-size: 14px; font-weight: 400; }

/* ---------------------------------------------------------------- tables and grid footers */
.table, .table th, .table td, table { font-size: 14px; line-height: 1.42857143; }
.table th { font-weight: 700; }
.table td { font-weight: 400; }
.summary, .card-footer, .card-header { font-size: 14px; }
.card-header .small, .card-footer .small { font-size: 14px; }   /* legacy "Showing 1-10 of 247" is body size, not Bootstrap's .small */

/* ---------------------------------------------------------------- boxes (AdminLTE .box-title 18px / Bootstrap .panel-title 16px) */
.card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}
.card-header a.text-white.text-decoration-none {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
}
.callout h4, .alert h4 { font-weight: 600; }
/* card titles written as h1.fs-5 (choose-a-password cards): the legacy box title, 18px / 500 */
.card-header h1.fs-5, .card-header .fs-5 { font-size: 18px !important; font-weight: 500; line-height: 1; }
.alert, .list-group-item, .popover { font-size: 14px; line-height: 1.42857143; }
.tooltip { --bs-tooltip-font-size: 12px; font-size: 12px; line-height: 1.42857143; }

/* ---------------------------------------------------------------- dashboard widgets (AdminLTE small-box, info-box) */
.small-box h3, .small-box .inner h3 { font-size: 38px; font-weight: 700; line-height: 1.1; }
.small-box .inner p { font-size: 15px; font-weight: 400; line-height: 1.42857143; }
.small-box p > small { font-size: 13px; }
.small-box .small-box-footer { font-size: 14px; line-height: 20px; }
.small-box h3 sup, .small-box sup { font-size: 20px; font-weight: 700; }
.info-box-text { font-size: 14px; font-weight: 400; line-height: 20px; text-transform: uppercase; }
.info-box-number { font-size: 18px; font-weight: 700; line-height: 1.42857143; }
.progress-description { font-size: 14px; line-height: 20px; }

/* ---------------------------------------------------------------- forms */
.form-control, .form-select, .input-group-text, textarea, input, select, button,
.ts-control, .ts-wrapper, .ts-dropdown, .ts-control input {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.42857143;
}
.form-control-sm, .form-select-sm, .input-group-sm > .form-control, .input-group-sm > .form-select, .input-group-sm > .input-group-text {
  font-size: 12px;
  line-height: 1.5;
}
.form-text, .invalid-feedback, .valid-feedback { font-size: 14px; }

/* ---------------------------------------------------------------- buttons (Bootstrap 3: .btn 14, .btn-sm/.btn-xs 12, .btn-lg 18) */
.btn {
  --bs-btn-font-size: 14px;
  --bs-btn-font-weight: 400;
  --bs-btn-line-height: 1.42857143;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
}
.btn-sm, .btn-group-sm > .btn, .btn-xs {
  --bs-btn-font-size: 12px;
  --bs-btn-line-height: 1.5;
  font-size: 12px;
  line-height: 1.5;
}
.btn-lg, .btn-group-lg > .btn {
  --bs-btn-font-size: 18px;
  --bs-btn-line-height: 1.3333333;
  font-size: 18px;
  line-height: 1.3333333;
}
.btn-link { font-size: 14px; }
/* top-bar Sign out: legacy's is a 14px .btn in the user menu, not a small button */
.iebc-signout, .iebc-signout span { font-size: 14px; line-height: 20px; }
/* the grid's page-size selector: legacy put it inside the 16px / 500 panel title */
select[name="size"].form-select-sm { font-size: 16px; font-weight: 500; line-height: normal; }
/* the labels inside buttons (icon + text) must follow the button, not the nav-link rule */
.btn span, .btn i { font-size: inherit; }

/* ---------------------------------------------------------------- badges and labels (Bootstrap 3 .badge: 12px bold, line 1) */
.badge {
  --bs-badge-font-size: 12px;
  --bs-badge-font-weight: 700;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* ---------------------------------------------------------------- navigation inside pages: tabs, pills, pagination, dropdowns, breadcrumb */
.nav { --bs-nav-link-font-size: 14px; --bs-nav-link-font-weight: 400; }
.nav-link, .nav-tabs .nav-link, .nav-pills .nav-link { font-size: 14px; font-weight: 400; line-height: 20px; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { font-weight: 600; }   /* AdminLTE .nav-pills>li.active>a */
.pagination { --bs-pagination-font-size: 14px; }
.page-link { font-size: 14px; line-height: 1.42857143; }
.pagination-sm .page-link { font-size: 12px; }
.dropdown-menu { --bs-dropdown-font-size: 14px; font-size: 14px; }
.dropdown-item { font-size: 14px; line-height: 1.42857143; }
.breadcrumb { --bs-breadcrumb-font-size: 12px; font-size: 12px; line-height: 1.42857143; }

/* ---------------------------------------------------------------- modal (Bootstrap 3: title is an h4, 18px) */
.modal-title { font-size: 18px; font-weight: 500; line-height: 1.42857143; }
.modal-body, .modal-footer { font-size: 14px; }

/* ---------------------------------------------------------------- error pages (AdminLTE .error-page) */
/* the legacy error screen titles its message with an h3 of 25px/300 (AdminLTE .error-content > h3); the big status number is the same style here */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-size: 25px;
  font-weight: 300;
  line-height: 1.1;
}
.error-page h3, .error-content h3 { font-size: 25px; font-weight: 300; line-height: 1.1; }

/* The sign-in screen (accounts/login.html) deliberately does NOT load this file: it keeps its own look (lcms-login.css), unchanged. */
