/*
 * orion-fty.css — Futurity Platform shell skin for Orion v5 (FP-1118).
 *
 * PURPOSE
 *   Makes the Orion shell (Clip-One template: header bar, page background, home panels, page titles, the
 *   address-edit section menu, footer, login box) look like the Futurity Platform (orion.web.app). Only
 *   Orion / Clip-One specific selectors live here. Anything generic to Bootstrap 3, jQuery UI or jqWidgets
 *   belongs in the design system's adapters (fty/classic/*.css), not in this file.
 *
 * LOAD ORDER
 *   Emitted LAST by Views/Shared/_FtySkin.cshtml, after fty/classic.css and the
 *   fty/classic/*.css adapters, which are all after the framework CSS and the Clip-One theme. All colours come
 *   from the --fty-* variables defined in fty/classic.css (with literal fallbacks). Rules are scoped under
 *   `.fty-classic` (set on <html> by _FtySkin) so the file is inert without it.
 *   fty/tokens.css is NOT loaded: SurveyJS reads the same generic :root names (--primary, --secondary, --border).
 *
 * THEME NEUTRALISATION
 *   Clip-One lets a user swap the colour theme (link#skin_color -> theme_navy / theme_light / theme_dark /
 *   theme_green / theme_black_and_white.css). Every theme paints body / .main-container / .footer and several
 *   header items with `!important`, and Orion.css paints jqx expander headers and grid column headers with
 *   `!important`. The rules below repeat those properties at higher specificity, and use `!important` only
 *   where the theme, Orion.css, a page <style> block or an inline style= attribute already does — each such
 *   declaration carries a short comment naming what it beats. The theme picker UI is hidden.
 */

/* ======================================================================================================
   1. Page — background, font, text colour; theme picker hidden
   ====================================================================================================== */

html.fty-classic {
	--ofty-font: var(--fty-font-sans, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

html.fty-classic,
html.fty-classic body {
	font-family: var(--ofty-font) !important; /* beats Orion.css `body, html { font-family: Verdana !important }` */
	color: var(--fty-text, #030213);
	background-color: var(--fty-bg-page, #f0f4f8) !important; /* beats theme_*.css body !important */
	background-image: none !important; /* beats main.css body.bg_style_* / body.login.example2 images */
}

.fty-classic body .main-container {
	background-color: var(--fty-bg-page, #f0f4f8) !important; /* beats theme_*.css .main-container !important */
}

.fty-classic .main-container .main-content {
	background-color: transparent;
}

.fty-classic .main-container .main-content .container {
	border: none;
}

/* Clip-One theme picker: main.js shows/hides it with inline display, so hide with !important. */
.fty-classic #style_selector,
.fty-classic #style_selector_container {
	display: none !important; /* beats jQuery .show() inline display */
}

/* ======================================================================================================
   2. Header bar — div.navbar.navbar-inverse.navbar-fixed-top (all layouts)
   ====================================================================================================== */

.fty-classic .navbar.navbar-inverse {
	font-family: var(--ofty-font);
	background: var(--fty-gradient, linear-gradient(to right, #003366, #0e487e, #1565c0));
	border: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	min-height: 42px; /* matches .main-container margin-top: 42px */
}

@media (max-width: 767px) {
	.fty-classic .navbar.navbar-inverse {
		background: var(--fty-gradient, linear-gradient(to right, #003366, #0e487e, #1565c0)) !important; /* beats theme_*.css mobile `background: none !important` */
	}

	.fty-classic .navbar-inverse .navbar-header,
	.fty-classic .navbar-inverse .navbar-tools {
		background: transparent;
	}
}

/* Top-level links and icon links */
.fty-classic .navbar-inverse .navbar-tools .nav > li > a {
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--ofty-font); /* main.css sets 'Open+Sans' (not loaded) here */
	font-size: 14px;
	font-weight: 500;
	text-shadow: none;
	background: transparent;
	transition: color var(--fty-transition, 0.15s), background-color var(--fty-transition, 0.15s);
}

.fty-classic .navbar-inverse .navbar-tools .nav > li:hover > a,
.fty-classic .navbar-inverse .navbar-tools .nav > li:focus > a,
.fty-classic .navbar-inverse .navbar-tools .nav > li:active > a,
.fty-classic .navbar-inverse .navbar-tools .nav > li > a:focus,
.fty-classic .navbar-inverse .navbar-tools .nav li.dropdown.open > .dropdown-toggle,
.fty-classic .navbar-inverse .navbar-tools .nav li.dropdown.active > .dropdown-toggle,
.fty-classic .navbar-inverse .navbar-tools .nav li.dropdown.open.active > .dropdown-toggle {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.1);
}

.fty-classic .navbar-inverse .navbar-tools .nav > li > a i {
	color: inherit;
}

/* Labels ("Incident/Preplan:", incident counts) */
.fty-classic .navbar-inverse .navbar-label {
	font-family: var(--ofty-font);
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85) !important; /* beats theme_*.css .navbar-label !important */
}

.fty-classic .navbar-inverse #liIncidentCounts {
	font-size: 11px !important; /* beats inline font-size: 80% (keeps the two lines inside the bar) */
	line-height: 14px;
	color: rgba(255, 255, 255, 0.7) !important; /* beats theme_*.css .navbar-label !important */
}

/* Divider between the incident selector and the icon group (1x24, like the reference header) */
.fty-classic .navbar-inverse .navbar-tools .nav > li:has(> #multiSelectButton) {
	position: relative;
	margin-left: 8px;
	padding-left: 8px;
}

.fty-classic .navbar-inverse .navbar-tools .nav > li:has(> #multiSelectButton)::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 1px;
	height: 24px;
	background: rgba(255, 255, 255, 0.2);
}

/* Notification counters */
.fty-classic .navbar-inverse .notify-counter,
.fty-classic .navbar-tools .nav > li.dropdown .dropdown-toggle .badge {
	background-color: var(--fty-orange, #ff6f00);
	color: #ffffff;
	font-weight: 600;
	border-radius: var(--fty-radius-pill, 9999px);
}

/* User menu — translucent pill */
.fty-classic .navbar-inverse .navbar-tools .nav > li.current-user > a {
	color: #ffffff !important; /* beats theme_*.css .current-user > a !important */
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--fty-radius-pill, 9999px);
	margin: 5px 8px 0 6px;
	padding: 5px 12px 5px 10px;
}

.fty-classic .navbar-inverse .navbar-tools .nav > li.current-user:hover > a,
.fty-classic .navbar-inverse .navbar-tools .nav > li.current-user.open > a {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.3);
}

.fty-classic .navbar-inverse .nav > li.current-user > a i {
	color: #ffffff !important; /* beats theme_*.css .current-user > a i !important */
}

/* Buttons placed in the header (edit / admin layouts: Back to Dashboard, Save, Geocode, Feedback, New ...) */
.fty-classic .navbar-inverse .navbar-tools .btn {
	font-family: var(--ofty-font);
	color: #ffffff;
	font-weight: 500;
	text-shadow: none;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--fty-radius-md, 8px);
	box-shadow: none;
}

.fty-classic .navbar-inverse .navbar-tools .btn:hover,
.fty-classic .navbar-inverse .navbar-tools .btn:focus,
.fty-classic .navbar-inverse .navbar-tools .btn:active {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.35);
}

/* "Dashboard Administration" context label in the admin layout (_AdminWork: <h4 style="color:orangered">).
   Orange-red on the navy gradient is hard to read; it becomes muted white like the nav links. */
.fty-classic .navbar-inverse .navbar-tools .nav > li > h4 {
	font-family: var(--ofty-font);
	font-size: 15px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85) !important; /* beats the inline style="color:orangered" */
}

/* Incident selector (jqx dropdownlist #ddlIncidents) — translucent like the reference; paint only.
   The id selector outranks jqx's state classes (.jqx-dropdownlist-state-*, .jqx-fill-state-*). */
.fty-classic .navbar-inverse #ddlIncidents {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.25);
	border-radius: var(--fty-radius-md, 8px);
	box-shadow: none;
}

.fty-classic .navbar-inverse #ddlIncidents.jqx-dropdownlist-state-hover,
.fty-classic .navbar-inverse #ddlIncidents.jqx-dropdownlist-state-selected,
.fty-classic .navbar-inverse #ddlIncidents.jqx-fill-state-pressed {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.4);
}

.fty-classic .navbar-inverse #ddlIncidents .jqx-dropdownlist-content,
.fty-classic .navbar-inverse #ddlIncidents .jqx-dropdownlist-content * {
	color: #ffffff;
	font-family: var(--ofty-font);
	font-size: 13px !important; /* beats Orion.css .jqx-widget-content / .jqx-fill-state-normal 11px !important */
}

.fty-classic .navbar-inverse #ddlIncidents [class*="jqx-icon-arrow"] {
	filter: brightness(0) invert(1); /* dark arrow sprite -> white */
	opacity: 0.6;
}

/* Header dropdown menus — DS panel look; Clip-One's .navbar-tools .dropdown-menu rules are (0,2,0)+ */
.fty-classic .navbar-tools .dropdown-menu {
	font-family: var(--ofty-font);
	background: var(--fty-bg-surface, #ffffff);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--fty-radius-lg, 12px);
	box-shadow: var(--fty-shadow-dialog, 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1));
	padding: 8px;
	margin-top: 2px;
}

.fty-classic .navbar-tools .dropdown-menu li .dropdown-menu-title {
	margin: 0;
	padding: 8px 12px 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #9ca3af;
	background: transparent;
}

.fty-classic .navbar-tools .dropdown-menu li a,
.fty-classic .navbar-tools .drop-down-wrapper li a {
	font-family: var(--ofty-font);
	color: var(--fty-text-body, #374151);
	font-size: 13px;
	font-weight: 400;
	text-align: left;
	padding: 8px 12px;
	border-bottom: none;
	border-radius: var(--fty-radius-md, 8px);
}

.fty-classic .navbar-tools .dropdown-menu > li:last-child a {
	border-radius: var(--fty-radius-md, 8px);
}

.fty-classic .navbar-tools .dropdown-menu > li > a:hover,
.fty-classic .navbar-tools .dropdown-menu > li > a:focus,
.fty-classic .navbar-tools .drop-down-wrapper li a:hover,
.fty-classic .navbar-tools .drop-down-wrapper li a:focus {
	color: var(--fty-text, #030213);
	background-color: var(--fty-bg-hover, #f3f4f6) !important; /* beats main.css hover #F4F6F9 !important */
}

/* Icon chips in front of menu items (span.label.label-primary) — and the same chip for the items that carry a bare
   <i> icon instead (Admin menu: Manage Unassigned Addresses, Manage Duplicates, ...), so every label lines up. */
.fty-classic .navbar-tools .dropdown-menu.notifications li > a > i:first-child {
	display: inline-block;
	width: 22px;
	height: 20px;
	margin-right: 2px;
	line-height: 20px;
	text-align: center;
	vertical-align: middle;
	color: var(--fty-blue-light, #0e487e);
	background: var(--fty-bg-selected, #ebf2fa);
	border-radius: var(--fty-radius-sm, 6px);
}

/* With the chip, the longest item ("Manage Unassigned Addresses" + its count badge) no longer fits main.css's
   270px .drop-down-wrapper and the badge wrapped (main.css forces `white-space: normal !important` on menu links):
   widen the wrapper a little. Plain block, not JS-sized. */
.fty-classic .navbar-tools .drop-down-wrapper {
	width: 290px;
}

.fty-classic .navbar-tools .dropdown-menu.notifications li > a > .label {
	display: inline-block;
	min-width: 22px;
	color: var(--fty-blue-light, #0e487e);
	background: var(--fty-bg-selected, #ebf2fa);
	border-radius: var(--fty-radius-sm, 6px);
	font-weight: 400;
}

.fty-classic .navbar-tools .dropdown-menu.notifications li > a > .label img {
	filter: brightness(0) saturate(100%) invert(20%) sepia(58%) saturate(1700%) hue-rotate(190deg); /* white PNG -> navy */
}

.fty-classic .navbar-tools .dropdown-menu .divider {
	background-color: var(--fty-border-subtle, rgba(0, 0, 0, 0.08));
	margin: 4px 0;
}

/* ======================================================================================================
   3. Panels — Clip-One .panel / .panel-heading / .panel-tools in the main container (home: map,
      Assessments, Incident Statistics, Charting) -> FtyCard
   ====================================================================================================== */

.fty-classic .main-container .panel {
	background: var(--fty-bg-surface, #ffffff);
	border: 1px solid var(--fty-border-card, rgba(0, 0, 0, 0.12));
	border-radius: var(--fty-radius-lg, 12px);
	box-shadow: var(--fty-shadow-card, 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px -1px rgba(0, 0, 0, 0.12));
}

.fty-classic .main-container .panel > .panel-heading {
	color: var(--fty-heading, #003366);
	font-size: 14px;
	font-weight: 600;
	background: var(--fty-bg-surface, #ffffff);
	background-image: none;
	border-bottom: 1px solid var(--fty-border-subtle, rgba(0, 0, 0, 0.08));
	border-radius: var(--fty-radius-lg, 12px) var(--fty-radius-lg, 12px) 0 0;
	box-shadow: none;
}

.fty-classic .main-container .panel > .panel-heading > [class^="fa-"],
.fty-classic .main-container .panel > .panel-heading > [class*=" fa-"],
.fty-classic .main-container .panel > .panel-heading > [class^="clip-"],
.fty-classic .main-container .panel > .panel-heading > [class*=" clip-"] {
	color: var(--fty-blue-sky, #6e91b2);
	border-right: none;
	box-shadow: none;
	opacity: 1;
}

.fty-classic .main-container .panel > .panel-heading label {
	color: var(--fty-heading, #003366);
	font-weight: 600;
}

.fty-classic .main-container .panel-tools .btn-link {
	color: var(--fty-text-muted, #717182);
}

.fty-classic .main-container .panel-tools .btn-link:hover {
	color: var(--fty-heading, #003366);
}

/* ======================================================================================================
   4. Page titles — the bare <h2> at the top of admin / address pages (e.g. "Orion Users", address heading)
   ====================================================================================================== */

.fty-classic .main-content h2:not(.panel h2):not(.modal h2):not(.ui-dialog h2):not(.orion-banner) {
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--fty-heading, #003366);
}

/* main.css sets Clip-One's Raleway on h1-h3 (e.g. "Dashboard Access" / "Mobile Access" on /usermanager). */
.fty-classic h1,
.fty-classic h2,
.fty-classic h3 {
	font-family: var(--ofty-font);
}

/* Slate (#39526D / #3B546F) title bars -> SectionBanner gradient, white text. The gradient is a background-IMAGE,
   so it paints over the slate background-COLOR whether that comes from main.css (#treeHeader, #muniHeader on
   /municipality), a page <style> block (ActivityQueue h2) or an inline style= (AppConfig Edit/Create h2): no
   !important needed. The h2s carry class="orion-banner" (added in those views). */
.fty-classic #treeHeader,
.fty-classic #muniHeader,
.fty-classic .main-content h2.orion-banner {
	font-family: var(--ofty-font);
	color: #ffffff;
	background-image: var(--fty-gradient, linear-gradient(to right, #003366, #0e487e, #1565c0));
	border-bottom-color: transparent;
	letter-spacing: normal;
}

.fty-classic .main-content h2.orion-banner {
	position: relative;
	z-index: 1; /* AppConfig Edit/Create pull the next fieldset up 10px under the bar (inline margin-top: -10px): keep
	               the bar above the fieldset's top border */
	font-size: 18px;
	font-weight: 700;
	border-radius: var(--fty-radius-lg, 12px);
}

.fty-classic #treeHeader,
.fty-classic #muniHeader {
	border-radius: var(--fty-radius-md, 8px);
}

/* navy .btn-blue on the navy banner -> the translucent header-button look */
.fty-classic #treeHeader .btn-blue,
.fty-classic #muniHeader .btn-blue {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.3);
}

.fty-classic #treeHeader .btn-blue:hover,
.fty-classic #muniHeader .btn-blue:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.4);
}

/* ======================================================================================================
   5. Address-edit section menu — #jqxNavigationBar (_LocationDetailMenuPartial / _IncidentMenuPartial)
      jqxNavigationBar / jqxMenu size themselves in JS, so these rules are PAINT ONLY: no padding, margin or
      border-width changes (border colours only). The navy group-bar background comes from section 6.
   ====================================================================================================== */

.fty-classic #jqxNavigationBar {
	background: var(--fty-bg-surface, #ffffff);
	border-color: var(--fty-border-card, rgba(0, 0, 0, 0.12));
	border-radius: var(--fty-radius-lg, 12px);
}

.fty-classic #jqxNavigationBar > .jqx-expander-header {
	color: #ffffff;
	border-color: var(--fty-blue-light, #0e487e);
	/* Tab shape: rounded top, square bottom so the bar sits flush on its open group. */
	border-radius: var(--fty-radius-md, 8px) var(--fty-radius-md, 8px) 0 0;
}

/* No font-size here: the bar's height is the content's inline `line-height: 3` x Orion.css's 16px, and jqx sizes the
   group content from it at init — a smaller font left a gap under the last bar (Task 10 geometry check). */
.fty-classic #jqxNavigationBar > .jqx-expander-header .jqx-expander-header-content {
	padding-left: 12px; /* horizontal only: the bar height (and jqx's init sizing) is unchanged */
	font-family: inherit;
	font-weight: 600;
	color: #ffffff !important; /* beats Orion.css .jqx-expander-header-content !important */
}

.fty-classic #jqxNavigationBar > .jqx-expander-header [class*="jqx-icon-arrow"] {
	filter: brightness(0) invert(1);
}

.fty-classic #jqxNavigationBar > .jqx-expander-content {
	background: transparent;
	border-color: transparent;
}

.fty-classic #jqxNavigationBar .jqx-menu {
	background: transparent;
	border-color: transparent;
}

.fty-classic #jqxNavigationBar .jqx-menu-item-top {
	color: var(--fty-text-body, #374151);
	font-size: 13px;
	background: transparent;
	border-color: transparent;
	border-radius: var(--fty-radius-md, 8px);
}

.fty-classic #jqxNavigationBar .jqx-menu-item-top a {
	color: inherit;
	text-decoration: none;
}

.fty-classic #jqxNavigationBar .jqx-menu-item-top:hover,
.fty-classic #jqxNavigationBar .jqx-menu-item-top.jqx-fill-state-hover,
.fty-classic #jqxNavigationBar .jqx-menu-item-top.jqx-menu-item-top-hover {
	color: var(--fty-text, #030213);
	background: var(--fty-bg-hover, #f3f4f6);
	border-color: transparent;
}

.fty-classic #jqxNavigationBar .jqx-menu-item-top.selectedMenuItem {
	color: var(--fty-heading, #003366);
	font-weight: 600;
	background: var(--fty-bg-selected, #ebf2fa);
	border-color: transparent;
	box-shadow: inset 3px 0 0 var(--fty-orange-dark, #ec7006);
}

/* ======================================================================================================
   6. Orion.css jqx overrides that fight the skin (Orion's own !important paint on grid / expander headers)
   ====================================================================================================== */

.fty-classic .jqx-grid-column-header {
	color: var(--fty-text-secondary, #6b7280) !important; /* beats Orion.css !important */
	background-color: #f9fafb !important; /* beats Orion.css #466078 !important */
	font-weight: 700;
}

/* jqxWindow popups whose header Orion marks up as `jqx-grid-column-header jqx-window-header` (AddressNotes,
   AddressContacts ...): dialog title look, not a grid th. Paint only (jqx sizes the header). */
.fty-classic .jqx-window-header.jqx-grid-column-header {
	color: var(--fty-heading, #003366) !important; /* beats Orion.css .jqx-grid-column-header !important and the rule above */
	background-color: var(--fty-bg-surface, #ffffff) !important; /* idem */
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	border-bottom-color: var(--fty-border-gray, #e5e7eb);
}

/* jqx FIELD text 11px -> 13px (Orion's base size). Orion.css:57-60 forces
   `.jqx-widget-content, .jqx-fill-state-normal { font-size: 11px !important }` on every jqx part; the inputs and
   dropdown fields next to 14px native fields read as too small. Font size only: jqx takes box heights from its JS
   `height` option, not the font, and this file loads in <head> so jqx measures with 13px at init. No height,
   line-height or padding. Grid descendants (cells, filter row, pager) keep Orion's 11px. */
.fty-classic .jqx-input:not(.jqx-grid *),
.fty-classic .jqx-input-content:not(.jqx-grid *),
.fty-classic .jqx-combobox-input:not(.jqx-grid *),
.fty-classic .jqx-dropdownlist-content:not(.jqx-grid *) {
	font-size: 13px !important; /* beats Orion.css .jqx-widget-content / .jqx-fill-state-normal 11px !important */
}

/* jqxInput text fields (<input>/<textarea> carrying .jqx-input): the jqx theme sets no horizontal padding, which was
   invisible with the square legacy border but leaves text touching the new 8px-radius field border. Inset the text.
   border-box keeps the width/height jqx sets inline. Grid descendants (filter row, pager) are left alone. */
.fty-classic input.jqx-input:not(.jqx-grid *),
.fty-classic textarea.jqx-input:not(.jqx-grid *) {
	padding-left: 8px;
	padding-right: 8px;
	box-sizing: border-box;
}

/* jqxWindow dialogs: labels in a narrow Bootstrap column (UserManager "New User": label.col-sm-2 in a 600px window)
   wrapped at the 14px/500 label size. Keep a single line; the 15px column gutter absorbs the overflow. */
.fty-classic .jqx-window-content .form-group > label.control-label {
	white-space: nowrap;
}

/* jqxWindow title bar: 11px (Orion.css) with 0 inset read as cramped next to the new dialog look. */
.fty-classic .jqx-window-header {
	padding-left: 12px;
	font-size: 13px !important; /* beats Orion.css .jqx-widget-content / .jqx-fill-state-normal 11px !important */
}

/* ...and the open list of those fields, so it matches the field. jqx appends each popup list to <body> in a container
   `#listBox<owner id>`, so `.jqx-grid` can't exclude the grid's own lists here; they are skipped by id instead: the
   pager's `#listBoxgridpagerlist<grid>` and the filter row's `#listBoxjqxWidget<random>` (jqx ids the grid's
   anonymous editors; Orion's field dropdowns all carry their own id). */
.fty-classic [id^="listBox"]:not([id^="listBoxgridpager"]):not([id^="listBoxjqxWidget"]) > .jqx-listbox.jqx-popup .jqx-item {
	font-size: 13px !important; /* beats Orion.css .jqx-widget-content / .jqx-fill-state-normal 11px !important */
}

/* main.css .grid-table (Report Menus, home): navy header cells -> FtyDataGrid th */
.fty-classic .grid-table thead th {
	color: var(--fty-text-secondary, #6b7280);
	background-color: #f9fafb;
	border-left-color: transparent;
	border-right-color: transparent;
	border-bottom: 1px solid var(--fty-border-subtle, rgba(0, 0, 0, 0.08));
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.fty-classic .jqx-expander-header,
.fty-classic .jqx-expander-header-custom {
	background-color: var(--fty-blue-light, #0e487e) !important; /* beats Orion.css #466078 !important; also the #jqxNavigationBar group bars */
	background-image: none;
}

/* ======================================================================================================
   7. Incident Statistics (Home/Stats, loaded in #ifmStats): section boxes + number chips
   ====================================================================================================== */

.fty-classic body > .alert.alert-block {
	color: var(--fty-text, #030213) !important; /* beats inline color */
	background-color: var(--fty-bg-surface, #ffffff) !important; /* beats inline background-color */
	border: 1px solid var(--fty-border-card, rgba(0, 0, 0, 0.12)) !important; /* beats inline border */
	border-radius: var(--fty-radius-lg, 12px) !important; /* beats inline border-radius */
	box-shadow: none !important; /* beats inline inset shadow */
}

.fty-classic body > .alert.alert-block .alert-heading {
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--fty-heading, #003366);
}

.fty-classic body > .alert.alert-block .alert-heading .fa {
	color: var(--fty-blue-sky, #6e91b2);
}

.fty-classic body > .alert.alert-block .desc {
	font-family: inherit !important; /* beats Stats.cshtml <style> Verdana !important */
	font-size: 12px !important; /* beats Stats.cshtml <style> 11px !important */
	color: var(--fty-text-secondary, #6b7280);
}

.fty-classic body > .alert.alert-block .label-inverse {
	display: inline-block;
	padding: 2px 10px;
	font-family: inherit !important; /* beats Stats.cshtml <style> Verdana !important */
	font-size: 12px !important; /* beats Stats.cshtml <style> 11px !important */
	font-weight: 600;
	color: var(--fty-text-body, #374151);
	background: var(--fty-bg-hover, #f3f4f6);
	border-radius: var(--fty-radius-pill, 9999px);
	text-shadow: none;
}

/* ======================================================================================================
   8. Footer
   ====================================================================================================== */

.fty-classic body .footer {
	background-color: transparent !important; /* beats theme_*.css .footer !important */
	border-top-color: transparent;
	font-size: 12px;
	color: var(--fty-text-muted, #717182);
}

.fty-classic .footer .footer-inner {
	color: var(--fty-text-muted, #717182);
}

.fty-classic .footer .footer-inner a {
	color: var(--fty-link, #005a9c);
}

/* ======================================================================================================
   9. Login (Account/Login, layout _WithoutHeaderAndFooter: body.login) — unverified visually (cannot log out
      of the shared dev session); styled from the markup.
   ====================================================================================================== */

.fty-classic body.login {
	color: var(--fty-text-secondary, #6b7280);
}

.fty-classic body.login .logo {
	background: var(--fty-gradient, linear-gradient(to right, #003366, #0e487e, #1565c0));
}

.fty-classic body.login .box-login,
.fty-classic body.login .box-forgot,
.fty-classic body.login .box-register {
	background: var(--fty-bg-surface, #ffffff);
	border: 1px solid var(--fty-border-card, rgba(0, 0, 0, 0.12));
	border-radius: var(--fty-radius-xl, 16px);
	box-shadow: var(--fty-shadow-dialog, 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1));
	padding: 24px;
}

.fty-classic body.login .box-login h3,
.fty-classic body.login .box-forgot h3 {
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--fty-heading, #003366);
}

.fty-classic body.login label {
	color: var(--fty-text-label, #4b5563);
	font-weight: 500;
}

.fty-classic body.login a.forgot {
	color: var(--fty-link, #005a9c);
	text-shadow: none;
}

/* ======================================================================================================
   10. Clip-One coloured buttons used across Orion (.btn-blue) -> FtyButton navy
   ====================================================================================================== */

.fty-classic .btn-blue {
	color: #ffffff;
	background-color: var(--fty-blue-light, #0e487e);
	border-color: var(--fty-blue-light, #0e487e);
	border-radius: var(--fty-radius-md, 8px);
	font-weight: 500;
}

.fty-classic .btn-blue:hover,
.fty-classic .btn-blue:focus,
.fty-classic .btn-blue:active,
.fty-classic .btn-blue.active {
	color: #ffffff;
	background-color: var(--fty-blue-dark, #003366);
	border-color: var(--fty-blue-dark, #003366);
}

/* ======================================================================================================
   11. Address-edit native selects
   ====================================================================================================== */

/* main.css paints the address-edit selects (#categoryddl, #facilityTypeddl, .raw-select) grey #eee with 3px corners and
   `padding: 5px 5px 5px 0`, which beats classic.css's element default: restore the Fty field look. */
.fty-classic #categoryddl,
.fty-classic #facilityTypeddl,
.fty-classic .raw-select {
	padding: 6px 32px 6px 12px;
	background-color: var(--fty-bg-input, #fafafa);
	border-radius: var(--fty-radius-md, 8px);
}

/* ======================================================================================================
   12. Orion page buttons outside Bootstrap's .btn
   ====================================================================================================== */

/* a.btnButton: the Save / Cancel links in the address sub-page popups (AddressNotes, AddressContacts ...).
   They sit in a jqxWindow whose height jqx fixes in JS, with only ~16px left under them, so they keep their
   text-link height and get the FtyButton "link" look (#005a9c 500, hover tint) instead of a full 32px button;
   the Save link (#btnSave, #btnSave2 ...) is bold. The input.btnButton.ui-button ones are jQuery UI buttons and
   stay with the jquery-ui adapter. */
.fty-classic a.btnButton:not(.ui-button) {
	display: inline-block;
	padding: 0 6px;
	font-size: 13px;
	font-weight: 500;
	line-height: 16px;
	color: var(--fty-link, #005a9c);
	text-decoration: none;
	border-radius: var(--fty-radius-sm, 6px);
}

.fty-classic a.btnButton:not(.ui-button):hover,
.fty-classic a.btnButton:not(.ui-button):focus {
	color: var(--fty-link-hover, #003366);
	text-decoration: none;
	background: var(--fty-bg-hover, #f3f4f6);
}

.fty-classic a.btnButton[id^="btnSave"]:not(.ui-button) {
	font-weight: 700;
}

/* Home/Map legend (Area / Freehand / Damage / Road Damage Selector, Custom Layers): class-less <button>s that kept
   the browser's grey look. Outline look; the red Delete/Cancel Selector ones keep their inline colours. */
.fty-classic #legend button {
	padding: 3px 6px; /* the browser's own horizontal padding: the legend is narrow and the labels must not wrap */
	font-family: inherit;
	border-radius: var(--fty-radius-md, 8px);
	cursor: pointer;
}

.fty-classic #legend button:not([style*="background-color"]) {
	color: var(--fty-text, #030213);
	background: var(--fty-bg-surface, #ffffff);
	border: 1px solid var(--fty-border, rgba(0, 0, 0, 0.1));
}

.fty-classic #legend button:not([style*="background-color"]):hover {
	background: var(--fty-bg-accent, #e9ebef);
}

/* ======================================================================================================
   13. Print — header and page colours off, no gradients / shadows (print.css still applies)
   ====================================================================================================== */

@media print {
	html.fty-classic,
	html.fty-classic body,
	.fty-classic body .main-container,
	.fty-classic body .footer {
		background: none !important; /* beats the screen !important above and theme_*.css */
	}

	.fty-classic .navbar.navbar-inverse,
	.fty-classic body.login .logo {
		background: none !important; /* beats the mobile-width !important above */
		box-shadow: none;
	}

	.fty-classic .navbar-inverse .navbar-tools .nav > li > a,
	.fty-classic .navbar-inverse .navbar-label {
		color: var(--fty-text, #030213) !important; /* beats the screen !important above */
	}

	.fty-classic .main-container .panel,
	.fty-classic .navbar-tools .dropdown-menu,
	.fty-classic body.login .box-login,
	.fty-classic body > .alert.alert-block {
		box-shadow: none !important; /* beats the inline-style override above */
	}

	.fty-classic #jqxNavigationBar > .jqx-expander-header,
	.fty-classic .jqx-expander-header,
	.fty-classic .jqx-grid-column-header {
		background: none !important; /* beats the screen !important above */
		color: var(--fty-text, #030213) !important;
	}

	.fty-classic #jqxNavigationBar > .jqx-expander-header .jqx-expander-header-content {
		color: var(--fty-text, #030213) !important;
	}

	.fty-classic #treeHeader,
	.fty-classic #muniHeader,
	.fty-classic .main-content h2.orion-banner {
		background-image: none;
		color: var(--fty-text, #030213);
	}
}

/* ======================================================================================================
   FP-1157 — Home > Assessments panel header: even spacing around the action buttons, wrapping cleanly.
   Scoped to .assessments-heading so no other panel header moves.
   ====================================================================================================== */

.panel > .panel-heading.assessments-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding-top: 8px;
	padding-bottom: 8px;
	height: auto;
	min-height: 0;
}

.panel > .panel-heading.assessments-heading > .btn {
	margin: 0;
}

.panel > .panel-heading.assessments-heading > .btn:first-of-type {
	margin-left: 4px; /* extra air between the title and the first button */
}

.panel > .panel-heading.assessments-heading > .panel-tools {
	position: static; /* in flow so a wrapped row never overlaps the buttons */
	margin-left: auto;
}
