/* Lynx Utility Management - the look shared by every screen.
   A screen keeps only the rules that are its own. */

::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-thumb:hover { background: #e3000f; }
.btn { border-radius: 4px !important; }
.btn-outline-lynx:hover { background-color: #e3000f; border-color: #e3000f; color: #ffffff; }
.lynx-brand-hover:hover { color: #e3000f !important; }
.lynx-logout { color: #e3000f; }
.lynx-logout:hover { color: #bf000c; }
.muted { color: #888; }
/* The top bar (Layout/top-navbar.php): the same height on every screen, the dashboard's. A screen works its own
   heights out from it (calc(100vh - var(--lum-topnav-h))); in full screen the bar is hidden and it is 0. */
:root { --lum-topnav-h: 47px; }
nav.lum-topnav { min-height: var(--lum-topnav-h); background-color: #000000; border-color: #333333 !important; z-index: 1040; }
/* the bar under it (Layout/sub-navbar.php): Back, the page's name, what the page offers */
.lum-sub-bar { background-color: #0d0d0d; border-bottom: 1px solid #333333; }
body.lum-fullscreen { --lum-topnav-h: 0px; }
body.lum-fullscreen nav.lum-topnav { display: none !important; }
/* The settings panel (Layout/top-navbar.php): the gear beside the user's name opens it on the right side of the
   screen, under the bar and over the page; a click beside it, the gear again or Esc closes it (Layout/lum-events.js) */
.lum-settings-btn { font-size: 14px; line-height: 1; border: 0; }
.lum-settings-shade { position: fixed; top: var(--lum-topnav-h); right: 0; bottom: 0; left: 0; z-index: 1074; background-color: rgba(0, 0, 0, 0.35); }
.lum-settings { position: fixed; top: var(--lum-topnav-h); right: 0; bottom: 0; width: 260px; max-width: 100vw; z-index: 1075;
    padding: 12px; overflow-y: auto; background-color: #000000; border-left: 1px solid #333333; }
.lum-settings-link { display: block; padding: 14px 18px; font-size: 14px; text-decoration: none; border-radius: 4px; }
.lum-settings-link:hover, .lum-settings-link:focus-visible { background: linear-gradient(90deg, #1a1a1a, #222222); outline: none; }
body.lum-fullscreen .lum-settings, body.lum-fullscreen .lum-settings-shade { display: none !important; }
/* The loading circle on the pointer while the system is at work - a page arriving, a page being left, content being
   fetched (Layout/lum-busy.js sets and clears the class) */
html.lum-busy, html.lum-busy * { cursor: progress !important; }

/* The small line charts (Layout/lum-chart.js; the chart style of the Lynx applications): a dark panel with its title
   above a canvas. .lum-charts lays them three in a row; a chart made large (.lum-chart-big, the button in its title
   row) takes the full row and is taller. The two line colours are read from here by the pages' scripts.
   .lum-chart-tools: the buttons at the right of the title row - line or bars (.lum-chart-style, the pressed one is
   the style shown) and, after them, the one that makes the chart large. */
:root { --lum-series-1: #3987e5; --lum-series-2: #d95926;
        /* labels, units and other second-rank text are white in LUM, not the design's grey: grey was hard to read
           (the user, 2026-10-05); icons keep the grey, except water (blue), solar (yellow) and electricity (orange) */
        --lum-label: #ffffff; --lum-icon: #9a9a9a; --lum-water: #3987e5; --lum-solar: #ffc107; --lum-elec: #fd7e14; }
.lum-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1199px) { .lum-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .lum-charts { grid-template-columns: minmax(0, 1fr); } }
.lum-chart { background: #1a1a1a; border: 1px solid #333333; border-radius: 4px; padding: 8px 10px; position: relative; min-width: 0; }
.lum-chart .ct { display: flex; gap: 12px; align-items: center; color: #ffffff; font-size: 13px; margin-bottom: 4px; }
.lum-chart .ct .legend { display: flex; gap: 12px; color: var(--lum-label); font-size: 12px; }
.lum-chart .sw { display: inline-block; width: 10px; height: 2px; vertical-align: middle; margin-right: 5px; }
.lum-chart canvas { width: 100%; height: 150px; display: block; }
.lum-chart.lum-chart-big { grid-column: 1 / -1; }
/* A section of one, two or four charts shares the width (four in a row on a wide screen); a chart's own icon;
   the three figures above a minisub's lines */
@media (min-width: 768px) { .lum-charts.lum-charts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lum-charts.lum-charts-1 { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1200px) { .lum-charts.lum-charts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lum-chart .ct > .bi { color: var(--lum-icon); font-size: 13px; margin-right: -6px; }
.lum-chart .sw.s1 { background: var(--lum-series-1); }
.lum-chart .sw.s2 { background: var(--lum-series-2); }
.lum-chart-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0 6px; }
.lum-chart-figs .k { color: var(--lum-label); font-size: 12px; }
.lum-chart-figs .v { color: #ffffff; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lum-chart-figs .v span { color: var(--lum-label); font-size: 12px; }
.lum-chart.lum-chart-big canvas { height: 420px; }
.lum-chart-tools { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.lum-chart-expand, .lum-chart-style { width: 22px; height: 22px; padding: 0; display: flex; align-items: center; justify-content: center;
    font-size: 12px; line-height: 1; color: var(--lum-icon); background: none; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }
.lum-chart-expand { margin-left: auto; }
.lum-chart-tools .lum-chart-expand { margin-left: 6px; }
.lum-chart-style[aria-pressed="true"] { color: #ffffff; border-color: #444444; }
.lum-chart-expand:hover, .lum-chart-expand:focus-visible, .lum-chart-style:hover, .lum-chart-style:focus-visible { color: #e3000f; border-color: #333333; outline: none; }
.lum-chart .tip { position: absolute; pointer-events: none; background: #0d0d0d; border: 1px solid #444444; border-radius: 4px; padding: 5px 8px;
    font-size: 12px; color: #ffffff; white-space: nowrap; display: none; z-index: 5; }
.lum-chart .tip .dim { color: var(--lum-label); }
.lum-chart .tip .ln { display: flex; gap: 8px; justify-content: space-between; }
/* The dashboard's estimate cards: the box shown while the cursor is over a card that leaves tenants out (who they are) */
.lum-est-tip { --bs-tooltip-opacity: 1; }
.lum-est-tip .tooltip-inner { max-width: 420px; text-align: left; white-space: pre-line; background-color: #0d0d0d; border: 1px solid #444444; color: #ffffff; font-size: 12px; }
/* The screens' sidebars (#sidebar, class sidebar) open and close at once, like the settings panel: no slide, and no
   fade on their links (Bootstrap's own .nav-link fades its colour) */
.sidebar, .sidebar .nav-link { transition: none; }
/* Zoom out, Zoom in and Full screen: small buttons joined together, flush in the bottom right corner, over the page */
.lum-view-tools { position: fixed; right: 0; bottom: 0; z-index: 1070; display: flex; }
.lum-view-btn { width: 26px; height: 26px; padding: 0; margin: 0 0 0 -1px; display: flex; align-items: center; justify-content: center;
    font-size: 13px; line-height: 1; color: #e3000f; background-color: #000000; border: 1px solid #333333; border-radius: 0;
    cursor: pointer; position: relative; }
.lum-view-btn:first-child { margin-left: 0; border-top-left-radius: 4px; }
.lum-view-btn:hover, .lum-view-btn:focus-visible { border-color: #e3000f; z-index: 1; outline: none; }
.lum-view-btn:disabled { color: #555555; cursor: default; border-color: #333333; }
.lum-view-zoom { width: auto; min-width: 42px; padding: 0 5px; font-size: 11px; color: #ffffff; cursor: default; }
.lum-view-zoom:hover { border-color: #333333; }
/* Zoom: what is inside the screen's scrolling content, by --lum-zoom (Layout/lum-events.js); the content box itself
   keeps its size, so it still fills the screen */
body:has(.lum-view-tools) #mainContent > * { zoom: var(--lum-zoom, 1); }
/* ... with room after the screen's last line, so the buttons never cover it once scrolled to the end */
body:has(.lum-view-tools) #mainContent::after { content: ""; display: block; height: 40px; }
/* Printed as it is, whatever the zoom on screen */
@media print { .lum-view-tools, body:has(.lum-view-tools) #mainContent::after { display: none !important; }
    body:has(.lum-view-tools) #mainContent > * { zoom: 1 !important; } }
.page-wrapper { height: calc(100vh - var(--lum-topnav-h)); overflow-y: auto; overflow-x: hidden; }
.search-btn { background-color: #1e1e1e; border: 1px solid #444; color: #b0b0b0; }
.search-btn:hover { background-color: #333; color: #fff; }
.search-input:focus { border-color: #e3000f !important; box-shadow: 0 0 0 0.25rem rgba(227, 0, 15, 0.25) !important; }
.transition-all { transition: all 0.3s ease; }
:root { --bs-black: #000000; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* The house button, so every screen has it even without its own style block */
.btn-brand { background-color: #e3000f; color: #ffffff; border: none; }
.btn-brand:hover, .btn-brand:focus { background-color: #bf000c; color: #ffffff; }
.btn-brand:hover { transform: none; }
/* Filters, date ranges and search boxes: the Meter Overview look on every screen
   (one height with the small buttons, dark field, grey border, square corners, red focus) */
select.lum-filter.lum-filter, input.lum-filter.lum-filter {
    height: calc(1.5em + 0.5rem + 2px) !important; min-height: 0 !important;
    padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; padding-left: 0.5rem !important;
    font-size: 0.875rem !important; line-height: 1.5 !important;
    background-color: #1e1e1e !important; color: #ffffff !important;
    border: 1px solid #444444 !important; border-radius: 0 !important; box-shadow: none !important;
}
input.lum-filter.lum-filter { padding-right: 0.5rem !important; }
select.lum-filter.lum-filter { padding-right: 2.25rem !important; }
select.lum-filter.lum-filter:focus, input.lum-filter.lum-filter:focus { border-color: #e3000f !important; box-shadow: 0 0 0 0.25rem rgba(227, 0, 15, 0.25) !important; }
input.lum-filter.lum-filter::placeholder { color: #aaaaaa; opacity: 1; }
input.lum-filter::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.7; cursor: pointer; }
/* The Meter Overview layout, for every screen that uses it:
   the page's own buttons in a second bar joined to the title bar */
.lum-page-bar { background-color: #0d0d0d; border-bottom: 1px solid #333333; margin-top: -0.5rem; }
/* filters in the title bar: one line on large screens, using the whole width to the right of the
   title; each dropdown as wide as its longest entry, the search box takes the room that is left */
.lum-sub-bar .col-xl > div:has(> .lum-filter-form) { flex: 1 1 auto; min-width: 0; }
.lum-filter-form { flex-wrap: wrap; }
.lum-filter-form .input-group { flex-wrap: nowrap; }
.lum-filter-form .lf-select { flex: 0 0 auto; width: auto; }
.lum-filter-form .input-group > .form-select { flex: 0 0 auto; width: auto; }
.lum-filter-form .lf-search { flex: 1 1 260px; min-width: 200px; max-width: 340px; }
.lum-filter-form .lf-search .form-control { min-width: 70px; }
@media (min-width: 1200px) { .lum-filter-form { flex-wrap: nowrap; } }
/* View Tenant's Daily Spend: the house tick box, dark with a red tick */
.lum-spend .form-check-input { background-color: #1e1e1e; border-color: #666; }
.lum-spend .form-check-input:checked { background-color: #e3000f; border-color: #e3000f; }
/* The round-arrow icon in the top right corner of a card (Import, Export, the slip and report settings, Period B):
   resets what the card shows. A button or a link; -light on a white background (the Financial Report's table) */
.lum-card-reset { background: none; border: none; padding: 0 2px; color: #adb5bd; font-size: 1.25rem; line-height: 1; text-decoration: none; }
.lum-card-reset:hover, .lum-card-reset:focus { color: #ffffff; outline: none; }
.lum-card-reset-light { color: #6c757d; }
.lum-card-reset-light:hover, .lum-card-reset-light:focus { color: #212529; }

/* House rule: no bold text anywhere, headings included. One rule here rather than one per page (17 pages had
   their own). The top bar's Logout link stays as it is. */
* { font-weight: normal !important; }
a[href$="/Sec/logout.php"] { font-weight: 600 !important; }
/* The design of the Lynx applications (LUM-Design-HANDOVER.md), for the screens that have taken it on.
   .lum-head: a section's heading - grey, the size of the text, a red icon, a line under it; .lum-head-toggle opens
   and closes what follows (its last icon is the plus or the dash); .lum-head-sub: a heading inside a section.
   .lum-tiles / .lum-tile: figures as tiles that share the row - label (.k, with a grey icon), value (.v, its unit in a
   span), one line of detail (.s). .lum-ok / .lum-warn / .lum-bad: a state, as a coloured word. */
.lum-head { display: flex; align-items: center; gap: 8px; color: var(--lum-label); font-size: 13px; margin: 18px 0 8px; padding-bottom: 5px; border-bottom: 1px solid #333333; }
.lum-head > .bi:first-child { color: #e3000f; font-size: 14px; }
.lum-head-toggle { cursor: pointer; user-select: none; }
.lum-head-toggle .toggle-icon { margin-left: auto; color: var(--lum-icon); font-size: 14px; }
.lum-head-toggle:hover .toggle-icon { color: #ffffff; }
.lum-head-sub { margin-top: 10px; border-bottom-color: #262626; }
/* a heading that needs no script for its plus and dash: both icons are there, the one for its state shown (Bootstrap
   sets aria-expanded on the heading) */
.lum-head-toggle[aria-expanded="true"] .lum-when-closed, .lum-head-toggle:not([aria-expanded="true"]) .lum-when-open { display: none; }
.lum-head-toggle .lum-when-open { margin-left: auto; }
.lum-head-sub > .bi:first-child { color: var(--lum-icon); }
.lum-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin-bottom: 10px; }
.lum-tile { background: #1a1a1a; border: 1px solid #333333; border-radius: 4px; padding: 8px 10px; min-width: 0; }
.lum-tile .k { color: var(--lum-label); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lum-tile .k .bi { margin-right: 6px; color: var(--lum-icon); }
.lum-tile .k .lum-est-mark { color: #e5484d; margin: 0 0 0 6px; }
.lum-tile .v { color: #ffffff; font-size: 22px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lum-tile .v span { color: var(--lum-label); font-size: 12px; }
.lum-tile .s { color: var(--lum-label); font-size: 11px; margin-top: 2px; min-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lum-ok { color: #3fb950 !important; } .lum-warn { color: #d29922 !important; } .lum-bad { color: #e5484d !important; }
/* Tiles that keep their width where there are few of them (View Meter: one register for a water meter); a tile across
   the row; a tile's value with a period's letter before it and a figure at the right; a panel around a chart, a group
   of a form or a line of buttons, and its title */
.lum-tiles.lum-tiles-fit { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lum-tile-wide { grid-column: 1 / -1; }
.lum-tile .v.lum-v-row { display: flex; align-items: baseline; gap: 6px; }
.lum-tile .v > .n { color: #ffffff; font-size: 22px; }
.lum-tile .v > .per { margin-left: auto; }
.lum-panel { background: #1a1a1a; border: 1px solid #333333; border-radius: 4px; padding: 10px 12px; }
.lum-panel-head { display: flex; align-items: center; gap: 6px; color: var(--lum-label); font-size: 13px; margin-bottom: 8px; }
.lum-panel-head .bi { color: var(--lum-icon); }
.lum-panel-title { font-size: 13px !important; }
/* Water is blue, solar is yellow and electricity is orange wherever its icon stands: in a heading, a tile, a chart's
   title or a panel's. Electricity: the lightning, the plug and the generator's pump by themselves; an icon that
   stands for something electrical without being one of those (power factor, a minisub, the electrical common
   area) carries .lum-i-elec. */
.lum-head .bi-droplet-fill, .lum-head .bi-droplet-half, .lum-tile .k .bi-droplet-fill, .lum-tile .k .bi-droplet-half,
.lum-chart .ct > .bi-droplet-fill, .lum-chart .ct > .bi-droplet-half, .lum-chart-figs .bi-droplet-fill, .lum-panel-head .bi-droplet-fill { color: var(--lum-water) !important; }
.lum-head .bi-sun-fill, .lum-tile .k .bi-sun-fill, .lum-chart .ct > .bi-sun-fill, .lum-chart-figs .bi-sun-fill, .lum-panel-head .bi-sun-fill { color: var(--lum-solar) !important; }
.lum-head .bi-lightning-charge-fill, .lum-head .bi-plug-fill, .lum-head .bi-fuel-pump-fill,
.lum-tile .k .bi-lightning-charge-fill, .lum-tile .k .bi-plug-fill, .lum-tile .k .bi-fuel-pump-fill,
.lum-chart .ct > .bi-lightning-charge-fill, .lum-chart .ct > .bi-plug-fill, .lum-chart .ct > .bi-fuel-pump-fill,
.lum-panel-head .bi-lightning-charge-fill, .bi.lum-i-elec { color: var(--lum-elec) !important; }
