/* portal-extras.css – small additions for the Admin Panel and the Resident Portal (loaded after hive2026.css).
   Keeps the existing Hive look; only adds what was missing. */

/* ============ Pop-ups (.modal-overlay) – the Resident Portal had no styles for them ============ */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; overflow-y: auto; padding: 24px;
                 background: rgba(5,6,8,.75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal-overlay.open { display: flex; }
.modal-overlay .modal, .modal { --modal-pad: 24px; position: relative; box-sizing: border-box; width: min(560px, calc(100vw - 48px)); max-width: 100%; max-height: calc(100vh - 48px);
                        overflow-y: auto; padding: var(--modal-pad); color: var(--ink); background: var(--glass-strong, var(--card)); border: 1px solid var(--glass-border, var(--border)); border-radius: 26px; }
.modal:not(.ca-modal):not(.lp):has(> .modal-title, > .modal-header, > .modal-head) { padding-top: 0 !important; }
.modal-overlay .modal-title, .modal > .modal-title, .modal > .modal-header, .modal > .modal-head {
    position: sticky; top: 0; z-index: 25;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--card, #17191E);
    margin: 0 calc(-1 * var(--modal-pad, 24px)) 18px;
    padding: 18px var(--modal-pad, 24px) 14px;
    border-bottom: 1px solid var(--border); font-weight: 800;
}
.modal.ca-modal > .modal-title, .modal.lp > .modal-title {
    position: sticky; top: 0; z-index: 25;
    background: var(--card, #17191E);
    margin: 0 0 14px;
    padding: 4px 0 12px;
}
.modal:not(.ca-modal):not(.lp) > :is(.modal-foot, .modal-actions, .rd2-actions, .bd-actions),
.modal:not(.ca-modal):not(.lp) > form > :is(.modal-foot, .modal-actions, .ct-acts, div[style*="justify-content:flex-end"]:last-child, div[style*="justify-content: flex-end"]:last-child),
.modal:not(.ca-modal):not(.lp) > fieldset > div[style*="justify-content:flex-end"]:last-child {
    position: sticky; bottom: calc(-1 * var(--modal-pad, 24px)); z-index: 20;
    background: var(--card, #17191E);
    margin-left: calc(-1 * var(--modal-pad, 24px));
    margin-right: calc(-1 * var(--modal-pad, 24px));
    margin-bottom: calc(-1 * var(--modal-pad, 24px));
    padding: 12px var(--modal-pad, 24px) 16px;
    border-top: 1px solid var(--border);
}
.ca-foot, .lp-foot {
    position: sticky; bottom: 0; z-index: 20;
    background: var(--card, #17191E);
}
.modal-overlay .modal-close { display: flex; flex: 0 0 36px; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px;
                              border: 1px solid var(--border2); background: rgba(255,255,255,.06); color: var(--ink); cursor: pointer; }
.modal-overlay .modal form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.modal-overlay .modal .fl { display: grid; gap: 6px; min-width: 0; margin: 0; }
.modal-overlay .modal .fl > label { display: block; }
.modal-overlay .modal .fi, .modal-overlay .modal input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.modal-overlay .modal select, .modal-overlay .modal textarea { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 44px; }
.modal-overlay .modal textarea { min-height: 90px; resize: vertical; }
@media (max-width: 600px) { .modal-overlay { align-items: flex-end; padding: 12px; } .modal-overlay .modal, .modal { --modal-pad: 20px; width: 100%; max-height: calc(100vh - 24px); padding: var(--modal-pad); border-radius: 18px; } }

/* ============ Lists (bookings, documents…) ============ */
.ri { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-top: 8px; border: 1px solid var(--border); }
.ri-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; }
.ri-main { flex: 1; min-width: 0; }
.ri-r { margin-left: auto; flex: none; }

/* ============ Icons in a few spots ============ */
.rd-chip .hi, .al-loc .hi, .al-sub .hi, .rd-li-s .hi { width: 14px; height: 14px; }
.rd-acct .hi, .dd-acct .hi { width: 14px; height: 14px; color: var(--brand, #FF8A00); vertical-align: -.15em; }
.notif-ico-gen { background: rgba(var(--brand-rgb, 255,138,0),.14); color: var(--brand-light, #FFB25C); }
.hot-lead-icon { color: var(--brand, #FF8A00); }
.no-image { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.no-image .hi { width: 28px; height: 28px; opacity: .6; }

/* ============ Sign-up: Terms checkbox, Terms pop-up / page, email code screen ============ */
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; font-size: .8rem; line-height: 1.45; color: var(--ink2); cursor: pointer; }
.agree input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #f5b042; cursor: pointer; }
.agree a, .terms-doc a { color: var(--accent); font-weight: 700; }
.terms-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px;
                 background: rgba(5,6,8,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.terms-overlay[hidden] { display: none; }
.terms-box { display: flex; flex-direction: column; width: min(640px, 100%); max-height: calc(100vh - 40px); color: var(--ink);
             background: var(--card); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.terms-head { position: sticky; top: 0; z-index: 15; background: var(--card); border-radius: 22px 22px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.terms-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.terms-x { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--ink); cursor: pointer; }
.terms-x:hover { border-color: var(--accent); color: var(--accent); }
.terms-body { overflow-y: auto; padding: 6px 22px 18px; outline: none; }
.terms-foot { position: sticky; bottom: 0; z-index: 15; background: var(--card); border-radius: 0 0 22px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border); }
.terms-foot .btn-guest, .terms-foot .btn-signup { width: auto; margin: 0; padding: 10px 22px; }
.terms-scroll-hint { margin-right: auto; font-size: .75rem; color: var(--ink3); }
.terms-body, .terms-doc { font-size: .88rem; line-height: 1.6; color: var(--ink2); }
.terms-body h3, .terms-doc h3 { margin: 18px 0 6px; font-size: .95rem; font-weight: 800; color: var(--ink); }
.terms-body p, .terms-doc p { margin: 0 0 8px; }
.terms-body ul, .terms-doc ul { margin: 0 0 8px; padding-left: 20px; }
.terms-body li, .terms-doc li { margin-bottom: 4px; }
.terms-meta { font-size: .75rem; color: var(--ink3); margin-top: 12px !important; }
@media (max-width: 480px) { .terms-foot .btn-guest, .terms-foot .btn-signup { flex: 1; } .terms-scroll-hint { flex-basis: 100%; } }
.terms-foot button:disabled { opacity: .45 !important; cursor: not-allowed !important; }
html.terms-open, html.terms-open body { overflow: hidden; }   /* the page behind stays put while the terms are open */

.code-input { width: 100%; box-sizing: border-box; padding: 14px; text-align: center; font-size: 1.8rem; font-weight: 800; letter-spacing: .5em; text-indent: .5em;
              background: var(--bg2); color: var(--ink); border: 1px solid var(--border); border-radius: 16px; font-variant-numeric: tabular-nums; }
.code-input:focus { border-color: #f5b042; outline: none; box-shadow: 0 0 0 3px rgba(245,176,66,.2); }
.verify-note { margin: 0 0 18px; font-size: .88rem; line-height: 1.5; color: var(--ink2); }
.verify-note strong { color: var(--ink); }
.verify-ok { background: rgba(16,185,129,.12); color: #10b981; font-size: .78rem; padding: 10px; border-radius: 14px; text-align: center; margin-top: 14px; }
.verify-dev { margin-top: 14px; padding: 10px 12px; border: 1px dashed #f5b042; border-radius: 14px; font-size: .75rem; color: var(--ink2); text-align: center; }
.verify-dev b { font-size: 1rem; letter-spacing: .2em; color: #f5b042; }
.verify-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 16px; font-size: .8rem; }
.verify-links button, .verify-links a { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 700; cursor: pointer; text-decoration: none; }
.verify-links button:disabled { color: var(--ink3); cursor: default; font-weight: 500; }
.verify-change { margin-top: 14px; display: none; gap: 8px; }
.verify-change.on { display: grid; }
/* plain text-link buttons on the sign-in screens (the auth pages style every <button> as a big pill) */
.hive-auth .link-btn, .hive-auth button.link-btn[type] { all: unset; box-sizing: border-box; display: inline; padding: 0 !important; margin: 0 !important; width: auto !important; min-height: 0 !important;
                       background: none !important; box-shadow: none !important; border: 0 !important; color: var(--accent) !important; font: inherit; opacity: 1 !important; visibility: visible !important; font-size: .8rem; font-weight: 700; cursor: pointer; }
.hive-auth button.link-btn[type]:hover, .hive-auth .link-btn:hover { text-decoration: underline; }
.hive-auth .link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.hive-auth button.link-btn[type]:disabled { color: var(--ink3) !important; font-weight: 500; cursor: default; text-decoration: none; }
.hive-auth button.link-btn.muted[type] { color: var(--ink3) !important; font-weight: 600; }

/* ============ Account colours: the same in the Admin Panel and the Resident Portal ============
   Owner = orange, Tenant = blue, Non-resident (prospect) = teal, Guest = grey.
   Add class "acct-owner" / "acct-tenant" / "acct-non_resident" / "acct-guest" to any avatar. */
.acct-owner.acct-owner, .acct-tenant.acct-tenant, .acct-non_resident.acct-non_resident, .acct-guest.acct-guest {
    border-radius: 12px !important; font-weight: 800 !important; letter-spacing: .02em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 12px var(--acct-glow, transparent) !important; }
.acct-owner.acct-owner { background: linear-gradient(145deg, #FFB547 0%, #FF8A00 100%) !important; color: #1A0E05 !important; --acct-glow: rgba(var(--brand-rgb, 255,138,0),.25); }
.acct-tenant.acct-tenant { background: linear-gradient(145deg, #9CCBFF 0%, #3D8BFF 100%) !important; color: #071A33 !important; --acct-glow: rgba(61,139,255,.25); }
.acct-non_resident.acct-non_resident { background: linear-gradient(145deg, #86EBCB 0%, #1FB58B 100%) !important; color: #052A20 !important; --acct-glow: rgba(31,181,139,.25); }
.acct-guest.acct-guest { background: linear-gradient(145deg, #C9CDD6 0%, #8A93A3 100%) !important; color: #11151C !important; --acct-glow: rgba(138,147,163,.2); }

/* ============ Top search bar results (assets/js/global-search.js) ============ */
.gs-box { position: fixed; z-index: 2000; max-height: min(70vh, 560px); overflow-y: auto; padding: 8px;
          background: var(--card, #17191E); color: var(--ink, #F2EEE7); border: 1px solid var(--border2, rgba(255,255,255,.12));
          border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.gs-box[hidden] { display: none; }
.gs-box.loading { opacity: .75; }
.gs-group + .gs-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border, rgba(255,255,255,.08)); }
.gs-label { position: sticky; top: -8px; z-index: 5; background: var(--card, #17191E); padding: 6px 10px 4px; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3, #8A93A3); }
.gs-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.gs-item.on, .gs-item:hover { background: rgba(var(--brand-rgb, 255,138,0),.1); }
.gs-item.on b { color: var(--brand, #FF8A00); }
.gs-text { display: grid; min-width: 0; flex: 1; }
.gs-text b { font-size: .88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-text small { font-size: .75rem; color: var(--ink3, #8A93A3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-tag { flex: none; padding: 2px 9px; border-radius: 999px; font-size: .68rem; font-weight: 800; background: rgba(255,255,255,.08); color: var(--ink2, #C9C3B8); }
.gs-owner { background: rgba(var(--brand-rgb, 255,138,0),.15); color: var(--brand-light, #FFB25C); }
.gs-tenant { background: rgba(61,139,255,.16); color: #9CC5FF; }
.gs-non_resident { background: rgba(31,181,139,.16); color: #6FE0BE; }
.gs-available, .gs-confirmed, .gs-active, .gs-completed { background: rgba(16,185,129,.15); color: #34D399; }
.gs-pending, .gs-reserved { background: rgba(245,158,11,.15); color: #F5B042; }
.gs-booked, .gs-cancelled, .gs-unavailable, .gs-expired, .gs-terminated { background: rgba(229,72,77,.15); color: #FF7B7F; }
.gs-empty { padding: 16px 12px; font-size: .86rem; color: var(--ink2, #C9C3B8); }
.gs-empty small { display: block; margin-top: 4px; color: var(--ink3, #8A93A3); font-size: .76rem; }
/* recent searches (shown when the empty search bar is clicked) */
.gs-recent-head { position: sticky; top: -8px; z-index: 5; background: var(--card, #17191E); display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 4px; border-bottom: 1px solid var(--border, rgba(255,255,255,.08)); }
.gs-recent-head span { font-size: .78rem; font-weight: 800; color: var(--ink, #F2EEE7); }
.gs-clear { border: 0; background: none; padding: 2px 4px; color: var(--brand, #FF8A00); font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.gs-clear:hover { text-decoration: underline; }
.gs-row { position: relative; display: flex; align-items: center; }
.gs-row .gs-item { flex: 1; min-width: 0; padding-right: 36px; }
.gs-ic { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--ink3, #8A93A3); font-size: .85rem; }
.gs-item.on .gs-ic { background: rgba(var(--brand-rgb, 255,138,0),.15); color: var(--brand, #FF8A00); }
.gs-x { position: absolute; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 8px; background: none; color: var(--ink3, #8A93A3);
        font-size: .75rem; cursor: pointer; opacity: 0; transition: opacity .12s; }
.gs-row:hover .gs-x, .gs-x:focus-visible { opacity: 1; }
.gs-x:hover { background: rgba(229,72,77,.15); color: #FF7B7F; }
@media (hover: none) { .gs-x { opacity: 1; } }
/* Medium theme: softer dimming behind pop-ups (the near-black one was too heavy on gray) */
[data-tone="medium"] .modal-overlay, [data-tone="medium"] .terms-overlay { background: rgba(12, 12, 14,.6); }

/* ============ Phones & tablets: a roomier top bar (both portals) ============
   Theme, text size / contrast and keyboard shortcuts move into the "⋯ More" menu (hive-ui.js → topbar "more"), so the
   search is a real field again and only back, menu, search, bell, profile and More stay in the bar. */
@media (max-width: 600px) {
    .topbar { margin: 8px 8px 0 !important; padding: 0 8px !important; height: 56px !important; gap: 6px !important; border-radius: 18px !important; }
    .topbar .tb-r { gap: 5px !important; flex: 1 1 auto; min-width: 0; }
    .topbar .tb-btn, .topbar .tb-menu, .topbar .tb-back { width: 36px !important; height: 36px !important; border-radius: 11px; flex: none; }
    .topbar .tb-btn svg, .topbar .tb-menu svg { width: 18px; height: 18px; }
    .topbar .tb-search { flex: 1 1 auto !important; min-width: 0 !important; width: auto !important; max-width: none !important; height: 36px !important;
                         padding: 0 10px !important; gap: 6px !important; border-radius: 11px; }
    .topbar .tb-search svg { flex: none; width: 16px; height: 16px; }
    .topbar .tb-search input { min-width: 0; width: 100%; font-size: 16px; }   /* 16px: iPhone doesn't zoom in */
}
@media (max-width: 1024px) {
    /* these live in the ⋯ menu on small screens (the buttons stay in the page so their own pop-ups keep working) */
    .topbar .theme-toggle, .topbar #a11y-toggle, .topbar .tb-keys, .topbar .tb-divider { display: none !important; }
    .topbar .tb-search { flex: 1 1 auto; min-width: 0; }
}
.topbar .tb-more { display: none; }
@media (max-width: 1024px) { .topbar .tb-more { display: grid; place-items: center; } }
.tb-more-menu { position: fixed; z-index: 2000; min-width: 230px; padding: 6px; border-radius: 16px; background: var(--glass-strong, var(--card)); color: var(--ink);
                border: 1px solid var(--border2, var(--border)); box-shadow: var(--shadow-lg, 0 24px 60px rgba(0,0,0,.45)); display: grid; gap: 2px; }
.tb-more-menu[hidden] { display: none; }
.tb-more-menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent;
                       color: inherit; font: 600 .9rem/1.2 inherit; text-align: left; cursor: pointer; }
.tb-more-menu button:hover, .tb-more-menu button:focus-visible { background: color-mix(in srgb, var(--accent, #FF8A00) 14%, transparent); outline: none; }
.tb-more-menu button svg { width: 18px; height: 18px; flex: none; color: var(--accent2, var(--accent)); }
.tb-more-menu small { margin-left: auto; color: var(--ink3); font-size: .76rem; font-weight: 600; }
html.hc .tb-more-menu { background: var(--hc-bg) !important; border: 2px solid var(--hc-line) !important; box-shadow: none !important; }

/* ============ Phones: buttons, chips and text follow the screen width (both portals) ============
   clamp(smallest, grows with the screen, largest): a 320px phone gets the smallest sizes, a 430px phone a little more,
   and nothing goes past the desktop size. Long words, e-mails and codes wrap instead of pushing the page sideways. */
@media (max-width: 600px) {
    body { font-size: clamp(13px, 3.6vw, 15px); }
    .content { overflow-wrap: break-word; }   /* long words and e-mails wrap – but nothing shrinks to one letter a line */
    .content h1, .ad-h1 { font-size: clamp(1.15rem, 5.4vw, 1.45rem) !important; line-height: 1.2; }
    .content h2, .rd-hero h1 { font-size: clamp(1.05rem, 4.8vw, 1.3rem) !important; line-height: 1.25; }
    .content h3, .modal-title { font-size: clamp(.95rem, 4.2vw, 1.1rem) !important; }
    .section-h .t, .ct { font-size: clamp(.78rem, 3.5vw, .9rem) !important; }

    /* buttons */
    .btn, .content button.btn, .modal .btn { min-height: 0 !important; padding: clamp(7px, 2vw, 9px) clamp(11px, 3.4vw, 15px) !important;
                                            font-size: clamp(.76rem, 3.4vw, .86rem) !important; border-radius: 10px; gap: 6px; }
    .btn-sm, .content .btn-sm { padding: clamp(5px, 1.5vw, 6px) clamp(9px, 2.6vw, 12px) !important; font-size: clamp(.7rem, 3.1vw, .78rem) !important; }
    .btn svg { width: 15px; height: 15px; }

    /* tabs, filter chips and quick links */
    .tab, .fchip, .flt, .chip, .pl-seg button, .hx-seg a, .pay-tabs button, .ad-quick a, .nt-tabs a {
        padding: clamp(5px, 1.6vw, 7px) clamp(9px, 2.8vw, 13px) !important; font-size: clamp(.72rem, 3.2vw, .82rem) !important; min-height: 0 !important; }
    .ad-quick a svg { width: 15px; height: 15px; }

    /* cards, numbers, tables and form fields */
    .card, .card-lg { padding: clamp(12px, 4vw, 18px) !important; }
    .ad-kpi-v, .rd-kpi b, .stat-number { font-size: clamp(1.15rem, 5.6vw, 1.5rem) !important; }
    .ad-kpi-v.money { font-size: clamp(1.05rem, 5vw, 1.3rem) !important; }
    .tbl th { font-size: clamp(.62rem, 2.8vw, .7rem) !important; }
    .tbl td { font-size: clamp(.74rem, 3.3vw, .86rem) !important; }
    .badge { font-size: clamp(.62rem, 2.8vw, .72rem) !important; padding: 3px 8px !important; }
    .fi, .content input:not([type=checkbox]):not([type=radio]):not([type=range]), .content select, .content textarea {
        font-size: clamp(0.8125rem, 2.4vw, 0.875rem);
        min-height: 38px;
        line-height: 1.4;
    }
}
/* phones: rows of tabs wrap onto a second line instead of running off the screen */
@media (max-width: 600px) {
    .content .tabs { display: flex; flex-wrap: wrap !important; overflow: visible !important; width: auto; }
    .content .tabs .tab { flex: 1 1 auto !important; text-align: center; white-space: nowrap; }
}

/* ============ Document viewer (Resident_Portal/assets/js/hive-docs.js): a file opened inside the page ============ */
html.dv-lock { overflow: hidden; }
.dv-back { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 20px; background: rgba(8,9,11,.7);
           -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .18s ease; }
.dv-back.in { opacity: 1; }
.dv { width: min(1100px, 100%); height: min(88vh, 1000px); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
      background: var(--card, #17191E); color: var(--ink, #F4F1EC); border: 1px solid var(--border2, rgba(255,255,255,.14));
      box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); transform: translateY(8px) scale(.985); transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.dv-back.in .dv { transform: none; }
.dv-h { position: sticky; top: 0; z-index: 15; background: var(--card, #17191E); flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--border, rgba(255,255,255,.1)); }
.dv-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.dv-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.dv-btn { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--border2, rgba(255,255,255,.18)); color: inherit; text-decoration: none; font-size: .82rem; font-weight: 700; }
.dv-btn:hover { border-color: var(--accent, #FF8A00); color: var(--accent2, #FFB25C); }
.dv-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border2, rgba(255,255,255,.18)); background: transparent; color: inherit;
        font: 700 22px/1 system-ui, sans-serif; cursor: pointer; display: grid; place-items: center; }
.dv-x:hover, .dv-x:focus-visible { border-color: var(--accent, #FF8A00); color: var(--accent2, #FFB25C); }
.dv-body { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; background: var(--bg2, #0E1013); }
.dv-pdf { width: 100%; height: 100%; border: 0; background: #fff; }
.dv-body:has(.dv-pdf) { display: flex; flex-direction: column; }
.dv-note { margin: 0; padding: 8px 14px; font-size: .78rem; color: var(--ink3); text-align: center; }
@media (min-width: 900px) { .dv-note { display: none; } }
.dv-img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.dv-body.zoom { place-items: start; }
.dv-body.zoom .dv-img { max-width: none; max-height: none; cursor: zoom-out; }
.dv-doc { align-self: start; width: min(820px, 100%); margin: 20px auto; padding: clamp(18px, 5vw, 56px); border-radius: 8px;
          background: #FFFDF9; color: #1E1E1E; font: 15px/1.65 Georgia, 'Times New Roman', serif; box-shadow: 0 10px 30px rgba(0,0,0,.25); overflow-wrap: anywhere; }
.dv-doc h2 { font-size: 1.45em; margin: 0 0 .6em; } .dv-doc h3 { font-size: 1.15em; margin: 1.2em 0 .5em; }
.dv-doc p { margin: 0 0 .7em; } .dv-doc .dv-gap { margin: 0; height: .6em; }
.dv-doc table { width: 100%; border-collapse: collapse; margin: .8em 0; font-size: .95em; }
.dv-doc td { border: 1px solid #CFC8BC; padding: 6px 9px; vertical-align: top; }
.dv-none, .dv-wait { padding: 30px; text-align: center; color: var(--ink2); display: grid; gap: 14px; justify-items: center; }
@media (max-width: 600px) {
    .dv-back { padding: 0; }
    .dv { width: 100%; height: 100%; border-radius: 0; border: 0; }
    .dv-h { padding: 10px; } .dv-btn { padding: 6px 9px; font-size: .74rem; }
    .dv-doc { margin: 10px; }
}
@media (prefers-reduced-motion: reduce) { .dv-back, .dv { transition: none; } }

/* =====================================================================================================================
   HIGH CONTRAST (Make it easier to read → High contrast; <html class="hc">) – both portals, every theme.
   Like a game's high-contrast setting, it is a look of its own, not the theme with darker text: solid colours only (no
   glass, glows or shadows), a thick outline in the text colour around every card, button, field, table, pop-up, the
   sidebar and the top bar, and one loud highlight for "where am I / what do I press" (current page, main buttons, focus).
     Dark   → pure black, white outlines, yellow highlight      Medium → deep slate (black-100/90), white outlines, yellow
     Light  → pure white, black outlines, black highlight
   The theme colour tokens are set here too (on html AND body – the theme script stamps both), so pages that use them
   follow along; the rules below then cover the pieces that had their own colours.
   ===================================================================================================================== */
html.hc[data-theme="dark"], html.hc body[data-theme="dark"], html.hc:not([data-theme]), html.hc body:not([data-theme]) {
    --hc-bg: #000000; --hc-bg2: #000000; --hc-ink: #FFFFFF; --hc-line: #FFFFFF; --hc-hi: #FFE14D; --hc-on-hi: #000000; --hc-link: #FFE14D; --hc-hover: #262626;
}
html.hc[data-tone="medium"], html.hc body[data-tone="medium"] {
    --hc-bg: #0C0C0E; --hc-bg2: #1F2023; --hc-ink: #FFFFFF; --hc-line: #FFFFFF; --hc-hi: #FFE14D; --hc-on-hi: #0C0C0E; --hc-link: #FFE14D; --hc-hover: #2B2C30;
}
html.hc[data-theme="light"], html.hc body[data-theme="light"] {
    --hc-bg: #FFFFFF; --hc-bg2: #FFFFFF; --hc-ink: #000000; --hc-line: #000000; --hc-hi: #000000; --hc-on-hi: #FFFFFF; --hc-link: #0B3D91; --hc-hover: #E8E8E8;
}
html.hc, html.hc body {
    --bg: var(--hc-bg); --bg2: var(--hc-bg2); --bg3: var(--hc-bg2); --card: var(--hc-bg2); --sidebar: var(--hc-bg);
    --ink: var(--hc-ink); --ink2: var(--hc-ink); --ink3: var(--hc-ink);
    --border: var(--hc-line); --border2: var(--hc-line); --glass: var(--hc-bg2); --glass-strong: var(--hc-bg2); --glass-border: var(--hc-line);
    --accent: var(--hc-link); --accent2: var(--hc-link); --page-glow: none; --shadow-sm: none; --shadow-md: none; --shadow-lg: none;
}
html.hc body { background: var(--hc-bg) !important; background-image: none !important; color: var(--hc-ink) !important; }
html.hc *, html.hc *::before, html.hc *::after { text-shadow: none !important; }
html.hc .content * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.hc .tbl-sub, html.hc .ri-s, html.hc .ad-kpi-l, html.hc .pp-sub, html.hc .es-sub, html.hc .rp-meta, html.hc small, html.hc .section-h .s, html.hc label { color: var(--hc-ink) !important; opacity: 1 !important; }

/* sidebar */
html.hc .sb { background: var(--hc-bg) !important; background-image: none !important; border-right: 3px solid var(--hc-line) !important; box-shadow: none !important; }
html.hc .sb-logo, html.hc .sb-user, html.hc .sb-condo { border-color: var(--hc-line) !important; }
html.hc .sb-brand, html.hc .sb-uname, html.hc .sb-role, html.hc .sb-utitle, html.hc .sb-condo, html.hc .sb-condo a { color: var(--hc-ink) !important; opacity: 1 !important; }
html.hc .sb-section { color: var(--hc-link) !important; opacity: 1 !important; text-decoration: underline; text-underline-offset: 3px; }
html.hc .sb-item { color: var(--hc-ink) !important; border: 2px solid transparent !important; background: transparent !important; box-shadow: none !important; }
html.hc .sb-item:hover, html.hc .sb-item:focus-visible { border-color: var(--hc-line) !important; background: var(--hc-hover) !important; }
html.hc .sb-item.on { background: var(--hc-hi) !important; color: var(--hc-on-hi) !important; border-color: var(--hc-line) !important; }
html.hc .sb-item.on::before { display: none !important; }
html.hc .sb-item.on .sb-icon, html.hc .sb-item.on .sb-count { color: var(--hc-on-hi) !important; }
html.hc .sb-count { color: var(--hc-ink) !important; border: 1.5px solid currentColor; border-radius: 999px; padding: 0 7px; }
html.hc .sb-toggle, html.hc .sb-more { background: var(--hc-bg) !important; color: var(--hc-ink) !important; border: 2px solid var(--hc-line) !important; }

/* top bar */
html.hc .topbar { background: var(--hc-bg) !important; border: 3px solid var(--hc-line) !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.hc .tb-btn, html.hc .tb-menu, html.hc .tb-search, html.hc .topbar .tb-back { background: var(--hc-bg) !important; color: var(--hc-ink) !important; border: 2px solid var(--hc-line) !important; }
html.hc .tb-btn:hover, html.hc .tb-menu:hover, html.hc .topbar .tb-back:hover { background: var(--hc-hi) !important; color: var(--hc-on-hi) !important; }
html.hc .tb-search input, html.hc .tb-search input::placeholder { color: var(--hc-ink) !important; opacity: 1; }
html.hc .tb-dot, html.hc .badge-notification { background: var(--hc-hi) !important; box-shadow: 0 0 0 2px var(--hc-bg) !important; }
html.hc .tb-title, html.hc .tb-sub { color: var(--hc-ink) !important; }

/* cards, panels, rows and pop-ups: solid, outlined */
html.hc .card, html.hc .card-lg, html.hc .modal, html.hc .dropdown-menu, html.hc .ri, html.hc .rd-kpi, html.hc .rd-card, html.hc .rd-qa, html.hc .ad-kpi,
html.hc .ad-att a, html.hc .ad-att .row, html.hc .building-stat-card, html.hc .pl-stat, html.hc .pc, html.hc .pipe-col, html.hc .pp-row, html.hc .es-row, html.hc .nt,
html.hc .listing-card, html.hc .property-card, html.hc .unit-card, html.hc .pay-method, html.hc .proof-card, html.hc .proof-up, html.hc .pay-ref, html.hc .mop-group,
html.hc .welcome-card, html.hc .sp-nav, html.hc .tabs, html.hc .pay-tabs, html.hc .hu-toast, html.hc .hu-keys-card, html.hc .hu-keytip, html.hc .gs-box, html.hc .dv, html.hc .ha-panel {
    background: var(--hc-bg2) !important; background-image: none !important; color: var(--hc-ink) !important;
    border: 2px solid var(--hc-line) !important; box-shadow: none !important;
}
html.hc .hu-keytip::before { background: var(--hc-bg2) !important; border-color: var(--hc-line) !important; }
html.hc .modal-overlay, html.hc .terms-overlay, html.hc .dv-back { background: rgba(0,0,0,.85) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.hc .ri:hover, html.hc .pc:hover, html.hc a.rd-kpi:hover, html.hc a.ad-kpi:hover, html.hc .dropdown-item:hover { background: var(--hc-hover) !important; }
html.hc .ct, html.hc .section-h .t, html.hc .pg-title, html.hc h1, html.hc h2, html.hc h3, html.hc h4 { color: var(--hc-ink) !important; }
html.hc .section-h .line { background: var(--hc-line) !important; height: 2px; }

/* buttons, tabs and chips */
html.hc .btn, html.hc .pc-btn, html.hc .hd-btn, html.hc .pl-chip, html.hc .fchip, html.hc .flt, html.hc .chip, html.hc .tab, html.hc .pay-tabs button,
html.hc .es-tabs a, html.hc .pp-tabs a, html.hc .nt-tabs a, html.hc .sp-nav a, html.hc .ad-quick a, html.hc .pl-seg button, html.hc .a11y-opt, html.hc .dv-btn, html.hc .dv-x {
    background: var(--hc-bg) !important; color: var(--hc-ink) !important; border: 2px solid var(--hc-line) !important; box-shadow: none !important; text-decoration: none !important;
}
html.hc .btn-rust, html.hc .btn-primary, html.hc .btn-accent, html.hc .tab.on, html.hc .tab.active, html.hc .fchip.on, html.hc .flt.on, html.hc .chip.on,
html.hc .pay-tabs button[aria-selected="true"], html.hc .es-tabs a.on, html.hc .pp-tabs a.on, html.hc .nt-tabs a.on, html.hc .sp-nav a.on, html.hc .pl-chip[aria-pressed="true"],
html.hc .pl-seg button[aria-pressed="true"], html.hc .pc-btn.next, html.hc .a11y-opt[aria-pressed="true"], html.hc .ha-launch, html.hc .ha-send {
    background: var(--hc-hi) !important; color: var(--hc-on-hi) !important; border: 2px solid var(--hc-line) !important;
}
html.hc .btn:hover, html.hc .tab:hover, html.hc .pl-chip:hover, html.hc .a11y-opt:hover { outline: 2px solid var(--hc-hi); outline-offset: 2px; }
html.hc .sp-nav .n, html.hc .pl-chip .n { background: transparent !important; color: inherit !important; border: 1.5px solid currentColor; }

/* fields */
html.hc .fi, html.hc input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), html.hc select, html.hc textarea {
    background: var(--hc-bg) !important; color: var(--hc-ink) !important; border: 2px solid var(--hc-line) !important; box-shadow: none !important;
}
html.hc .tb-search input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]) { border: 0 !important; background: transparent !important; }
html.hc input::placeholder, html.hc textarea::placeholder { color: var(--hc-ink) !important; opacity: .75; }
html.hc select option { background: var(--hc-bg) !important; color: var(--hc-ink) !important; }
html.hc input[type=checkbox], html.hc input[type=radio] { accent-color: var(--hc-hi); outline: 2px solid var(--hc-line); outline-offset: 1px; }

/* tables */
html.hc .tbl th, html.hc .content table th { background: var(--hc-bg) !important; color: var(--hc-ink) !important; border-bottom: 3px solid var(--hc-line) !important; }
html.hc .tbl td, html.hc .content table td { color: var(--hc-ink) !important; border-bottom: 1.5px solid var(--hc-line) !important; }
html.hc .tbl tbody tr:hover, html.hc .content table tbody tr:hover { background: var(--hc-hover) !important; }

/* badges, status and alerts: outlined on the plain background */
html.hc .badge, html.hc .rp-type, html.hc .hu-more { background: var(--hc-bg) !important; color: var(--hc-ink) !important; border: 1.5px solid var(--hc-line) !important; }
html.hc .alert, html.hc .warning-banner {
    background: var(--hc-bg) !important; color: var(--hc-ink) !important; border: 2px solid var(--hc-line) !important; border-left-width: 8px !important;
}

/* links and focus */
html.hc .content a:not(.btn):not(.ri):not(.rd-kpi):not(.ad-kpi):not(.rd-qa):not(.sb-item):not(.dv-btn):not(.pp-thumb):not(.doc-view):not([class*="tab"]):not(.ad-quick a):not(.ad-att a):not(.building-stat-card) { color: var(--hc-link) !important; text-decoration: underline !important; text-underline-offset: 3px; }
html.hc :focus-visible { outline: 4px solid var(--hc-hi) !important; outline-offset: 2px !important; box-shadow: 0 0 0 7px var(--hc-bg) !important; }
html.hc .hu-spot.hu-spot.hu-spot { background-image: none !important; }   /* no cursor glow */
html.hc .pf, html.hc .pf-green, html.hc .pf-rust { background: var(--hc-hi) !important; }
html.hc .prog { background: var(--hc-bg) !important; border: 2px solid var(--hc-line) !important; }
/* clickable cards keep plain text (only real text links are underlined); the sidebar is never faded at its edges */
html.hc a.rd-kpi, html.hc a.rd-qa, html.hc a.ri, html.hc a.ad-kpi, html.hc .ad-att a, html.hc a.pp-thumb, html.hc a.building-stat-card,
html.hc a.rd-kpi *, html.hc a.rd-qa *, html.hc a.ri *, html.hc a.ad-kpi *, html.hc .ad-att a * { text-decoration: none !important; }
html.hc .sb-nav { -webkit-mask-image: none !important; mask-image: none !important; }
html.hc .ha-launch { border: 2px solid var(--hc-line) !important; box-shadow: none !important; }
html.hc .ad-quick a, html.hc .ad-att a, html.hc .ad-att a * { color: var(--hc-ink) !important; }
html.hc .hu-keytip, html.hc .hu-keytip *, html.hc .hu-keys-card, html.hc .hu-keys-card *, html.hc .hu-toast, html.hc .hu-toast * { color: var(--hc-ink) !important; }
html.hc .hu-keytip kbd, html.hc .hu-keys-card kbd, html.hc kbd { background: var(--hc-bg) !important; color: var(--hc-ink) !important; border: 1.5px solid var(--hc-line) !important; }
html.hc .hu-keytip .btn-rust, html.hc .hu-keytip .btn-primary, html.hc .hu-keytip button:last-child { background: var(--hc-hi) !important; color: var(--hc-on-hi) !important; }

/* ============ Tablets (601–1024px): the same idea as phones – sizes follow the screen width, a step larger ============ */
@media (min-width: 601px) and (max-width: 1024px) {
    body { font-size: clamp(14px, 1.65vw, 15.5px); }
    .content { overflow-wrap: break-word; padding-left: clamp(14px, 2.6vw, 24px) !important; padding-right: clamp(14px, 2.6vw, 24px) !important; }
    .content h1, .ad-h1, .pg-title { font-size: clamp(1.3rem, 2.8vw, 1.6rem) !important; line-height: 1.2; }
    .content h2, .rd-hero h1 { font-size: clamp(1.15rem, 2.4vw, 1.4rem) !important; }
    .content h3, .modal-title { font-size: clamp(1rem, 2vw, 1.15rem) !important; }
    .btn, .content button.btn, .modal .btn { min-height: 0 !important; padding: clamp(8px, 1.1vw, 10px) clamp(13px, 1.9vw, 17px) !important; font-size: clamp(.8rem, 1.55vw, .9rem) !important; }
    .btn-sm, .content .btn-sm { padding: clamp(6px, .9vw, 7px) clamp(10px, 1.5vw, 13px) !important; font-size: clamp(.74rem, 1.4vw, .82rem) !important; }
    .tab, .fchip, .flt, .chip, .pl-seg button, .hx-seg a, .pay-tabs button, .ad-quick a, .nt-tabs a, .es-tabs a, .pp-tabs a, .bi-tabs a, .sp-nav a {
        padding: clamp(6px, .9vw, 8px) clamp(11px, 1.6vw, 15px) !important; font-size: clamp(.76rem, 1.45vw, .85rem) !important; }
    .card, .card-lg { padding: clamp(14px, 2.2vw, 22px) !important; }
    .ad-kpi-v, .rd-kpi b, .stat-number { font-size: clamp(1.3rem, 2.8vw, 1.7rem) !important; }
    .tbl th { font-size: clamp(.66rem, 1.3vw, .74rem) !important; }
    .tbl td { font-size: clamp(.8rem, 1.5vw, .9rem) !important; }
    .topbar .tb-btn, .topbar .tb-menu { width: clamp(38px, 5vw, 44px) !important; height: clamp(38px, 5vw, 44px) !important; }
}
/* The new pieces (Billing proof card, Signatures & Payments, Admin → Billing, the document viewer) on small screens */
@media (max-width: 1024px) {
    .proof-card { padding: clamp(14px, 3vw, 20px) !important; }
    .proof-head { gap: clamp(10px, 2.4vw, 14px); }
    .proof-head h3 { font-size: clamp(1rem, 3.6vw, 1.2rem) !important; line-height: 1.3; }
    .proof-head p { font-size: clamp(.84rem, 2.6vw, .92rem); }
    .proof-step { width: clamp(30px, 6vw, 36px) !important; height: clamp(30px, 6vw, 36px) !important; }
    .proof-zone { padding: clamp(16px, 4vw, 26px) clamp(12px, 3vw, 18px) !important; }
    .proof-zone b { font-size: clamp(.9rem, 3vw, 1rem); }
    .proof-btn { min-height: 0 !important; padding: clamp(10px, 2.2vw, 12px) clamp(12px, 2.6vw, 16px) !important; gap: 10px !important; }
    .proof-btn b { font-size: clamp(.86rem, 2.6vw, 1rem) !important; }
    .proof-btn small { font-size: clamp(.72rem, 2.2vw, .78rem) !important; }
    .sp-nav { display: flex !important; width: 100%; }
    .sp-nav a { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 600px) {
    .proof-zone kbd { font-size: .66rem; padding: 1px 4px; }
    .bi-stat b, .pl-stat b { font-size: clamp(1.05rem, 5vw, 1.3rem) !important; }
    .dv-acts .dv-btn { padding: 6px 8px; }
    .hu-tip { font-size: 12px; }
}
@media (max-width: 600px) {
    /* Notifications: the time and "Mark as read" drop under the message instead of running off the screen */
    .notif-item { flex-wrap: wrap; }
    .notif-item .notif-body { flex: 1 1 calc(100% - 60px); min-width: 0; }
    .notif-item .notif-side { flex: 1 1 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-left: 52px; }
    /* page tools (search + buttons) wrap; the search box takes the free width */
    .pp-tools, .bi-tools, .es-tools, .pp-top > form, .es-top > .es-tools { flex-wrap: wrap; width: 100%; }
    .pp-tools input[type=search], .bi-tools input[type=search], .es-tools input[type=search] { min-width: 0 !important; flex: 1 1 160px; }
    .pp-tools .btn-rust, .bi-tools .btn-rust, .es-tools .btn-rust { flex: 1 1 100%; justify-content: center; }
}
/* short figures and labels never split across two lines ("31 / 336 free", "9:00 PM", "Export ▾", badges) */
.ad-tower-p, .badge, .btn, .tb-btn, .sb-count, .pl-chip, .bi-amt, .pp-tabs a, .bi-tabs a, .es-tabs a { white-space: nowrap; }


/* ============ Scrolling, one look everywhere ============
   Scroll rails (hive-ui.js): a row of buttons that doesn't fit fades out on the side that has more and shows a round
   ‹ / › button there. The Pipeline's arrows and the sidebar's "More ⌄" use the same round, glassy button. */
.hu-rail { position: relative; max-width: 100%; min-width: 0; }
.hu-rail > .hu-rail-x { max-width: 100%; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.hu-rail > .hu-rail-x::-webkit-scrollbar { display: none; }
.hu-rail.can-r > .hu-rail-x { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.hu-rail.can-l > .hu-rail-x { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px); mask-image: linear-gradient(to right, transparent, #000 56px); }
.hu-rail.can-l.can-r > .hu-rail-x { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.hu-rail-btn, .pl-arrow, .sb-more {
    background: var(--glass-strong, var(--card)) !important; color: var(--ink) !important; border: 1px solid var(--border2, var(--border)) !important;
    box-shadow: 0 6px 16px -8px rgba(0,0,0,.55); cursor: pointer; transition: opacity .18s, transform .18s, border-color .15s, color .15s; }
.hu-rail-btn:hover, .pl-arrow:hover:not(:disabled), .sb-more:hover { border-color: var(--accent) !important; color: var(--accent2, var(--accent)) !important; }
.hu-rail-btn { position: absolute; top: 50%; z-index: 2; width: 32px; height: 32px; padding: 0; border-radius: 50%; display: grid; place-items: center;
               opacity: 0; pointer-events: none; transform: translateY(-50%) scale(.85); }
.hu-rail-btn svg, .pl-arrow svg { width: 16px; height: 16px; }
.hu-rail-btn.l { left: 2px; } .hu-rail-btn.r { right: 2px; }
.hu-rail.can-l .hu-rail-btn.l, .hu-rail.can-r .hu-rail-btn.r { opacity: 1; pointer-events: auto; transform: translateY(-50%); }
/* Pipeline ‹ › : the same round button */
.pl-arrow { width: 34px !important; height: 34px !important; border-radius: 50% !important; display: grid !important; place-items: center; font-size: 1.1rem; line-height: 1; padding: 0 !important; }
.pl-arrow[hidden] { display: none !important; }
.pl-arrow:disabled { opacity: .3 !important; box-shadow: none; }
/* Sidebar "More ⌄": a small pill with a word, not a lone circle over the menu */
.sb-more { width: auto !important; height: 26px !important; padding: 0 12px 0 10px; border-radius: 999px !important; display: inline-flex !important; align-items: center; gap: 4px;
           font: 700 .72rem/1 'Plus Jakarta Sans', system-ui, sans-serif; letter-spacing: .02em; margin: -32px auto 6px !important; }
.sb-more svg { width: 14px; height: 14px; }
/* scrollbars of tables, the pipeline board and long lists: thin, in the accent colour */
.tbl-wrap, .pl-board, #pl-board, .smx-list, .an-menu #anList, .gs-box, .dv-body {
    scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent, #FF8A00) 55%, transparent) transparent; }
.tbl-wrap::-webkit-scrollbar, .pl-board::-webkit-scrollbar, #pl-board::-webkit-scrollbar, .smx-list::-webkit-scrollbar { height: 6px; width: 6px; }
.tbl-wrap::-webkit-scrollbar-thumb, .pl-board::-webkit-scrollbar-thumb, #pl-board::-webkit-scrollbar-thumb, .smx-list::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent, #FF8A00) 55%, transparent); border-radius: 999px; }
.tbl-wrap::-webkit-scrollbar-track, .pl-board::-webkit-scrollbar-track, #pl-board::-webkit-scrollbar-track, .smx-list::-webkit-scrollbar-track { background: transparent; }
html.hc .hu-rail-btn, html.hc .pl-arrow, html.hc .sb-more { background: var(--hc-bg) !important; color: var(--hc-ink) !important; border: 2px solid var(--hc-line) !important; box-shadow: none !important; }
@media (prefers-reduced-motion: reduce) { .hu-rail > .hu-rail-x { scroll-behavior: auto; } .hu-rail-btn { transition: none; } }

/* ============ Rental price calculator on booking forms (assets/js/rate-quote.js, config/rental-rates.php) ============ */
.rq { display: grid; gap: 12px; min-width: 0; }
.rq .lbl { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); margin-bottom: 6px; }
.rq-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rq-seg label { display: block; cursor: pointer; min-width: 0; }
.rq-seg input { position: absolute; opacity: 0; pointer-events: none; }
.rq-seg span { display: grid; gap: 2px; height: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border2, var(--border)); background: var(--bg2); transition: border-color .15s, background-color .15s; }
.rq-seg b { font-size: .9rem; font-weight: 800; color: var(--ink); }
.rq-seg small { font-size: .74rem; line-height: 1.35; color: var(--ink3); }
.rq-seg label:hover span { border-color: var(--accent); }
.rq-seg input:checked + span { border-color: var(--accent); background: var(--accent-dim); box-shadow: inset 0 0 0 1px var(--accent); }
.rq-seg input:focus-visible + span { outline: 3px solid var(--accent2); outline-offset: 2px; }
.rq-seg input:disabled + span { opacity: .45; cursor: not-allowed; }
.rq-out { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--accent); background: var(--card); box-shadow: 0 0 0 4px var(--accent-dim); }
.rq-out .rq-tier { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent2); }
.rq-out .rq-big { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.rq-out .rq-per { font-size: .86rem; font-weight: 600; color: var(--ink3); }
.rq-out .rq-math { font-size: .8rem; color: var(--ink2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rq-out .rq-incl { font-size: .76rem; color: var(--ink3); }
@media (max-width: 420px) { .rq-seg { grid-template-columns: minmax(0, 1fr); } }
html.hc .rq-seg span, html.hc .rq-out { border: 2px solid var(--hc-line) !important; background: var(--hc-bg) !important; box-shadow: none !important; }
html.hc .rq-seg input:checked + span { background: var(--hc-hi) !important; }
html.hc .rq-seg input:checked + span b, html.hc .rq-seg input:checked + span small { color: var(--hc-on-hi) !important; }
/* the calculator's parts stay hidden when switched off, even inside forms whose .fl rows set their own display */
[data-rq-card][hidden], [data-rq-lease][hidden], [data-rq-short][hidden], [data-rq-plain][hidden], [data-rq-reason][hidden], .rq-out[hidden] { display: none !important; }
.rq-seg span, .rq-seg b, .rq-seg small { text-transform: none; letter-spacing: normal; }

/* sign-in helpers (forgot password, two-step): the chosen tab is tinted, so the page keeps one solid orange – its main button */
html:root .fp-tab.on { background: var(--accent-dim, rgba(var(--brand-rgb, 255,138,0),.12)); color: var(--accent2, #ffb25c); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb, 255,138,0),.5); }
html:root[data-theme="light"] .fp-tab.on { color: #9A4A05; }
/* the suggestion list under the search boxes on the pages (assets/js/search-suggest.js) – the top search's look */
.hss .gs-item b mark { background: none; color: var(--brand, #FF8A00); }
.hss .gs-label { padding-top: 4px; }
