/* PHONE AND TABLET WIDTH (portal pages)
   The portal masters mark their body with class="portalPage" and send a
   width=device-width viewport, so a phone lays the page out at its real width
   instead of a zoomed-out 980px desktop canvas. Below 1024px (phones and
   tablets: the fixed layout needs 980px, and a desktop scrollbar eats some of
   the viewport) the fixed-pixel
   form layout (960px columnLayout, 934px fieldset, 928/461/305px columns)
   becomes fluid: every field takes the full row and stacks, the page keeps a
   16px gutter on each side, and nothing widens the document. Wide grids
   scroll inside their own box rather than scrolling the page. Desktop widths,
   the admin site and popup editors (no portalPage class) are unchanged; portal
   popup editors have their own block below. */
@media screen and (max-width: 1023px) {
    .portalPage #content { padding: 16px; }
    .portalPage #content fieldset { width: auto !important; max-width: 100%; min-width: 0; box-sizing: border-box; }
    /* Every container level (a popup page drawn on a phone may use the child
       levels: Add / Edit Note's childFormContainer gave its box 866px). */
    .portalPage :is(.formContainer, .childFormContainer, .grandChildFormContainer, .greatGrandChildFormContainer, .greatGreatGrandChildFormContainer) .columnLayout { width: auto !important; float: none !important; }
    .portalPage :is(.formContainer, .childFormContainer, .grandChildFormContainer, .greatGrandChildFormContainer, .greatGreatGrandChildFormContainer) .columnLayout :is(.oneColumn, .twoColumn, .threeColumn, .fourColumn, .fiveColumn, .sixColumn) { width: 100% !important; float: none !important; margin-right: 0 !important; }
    .portalPage #content .RadTabStrip { width: auto !important; max-width: 100%; }
    .portalPage #content .RadPanelBar { width: auto !important; max-width: 100%; }
    .portalPage #content .RadGrid { max-width: 100%; overflow-x: auto !important; box-sizing: border-box; }
}

/* PORTAL POPUP EDITORS (phone and tablet)
   The portal popup masters mark their body with class="portalPopup" (the root
   PopupMasterPage does so only for pages under a *Portal folder). A popup runs
   inside a RadWindow iframe, so these media queries measure the window, not the
   device: common.js shrinks any RadWindow that would not fit the screen.
   Tablet: a form level whose frame is narrower than its fixed layout (960px
   formContainer down to the 704px fifth level, plus the wrapper) becomes fluid;
   each breakpoint sits just under that level's desktop frame (1008, 946, 894,
   836, 752px), so a desktop popup at any nesting level keeps its pixel layout.
   Phone, below 600px: every field takes the full row with a 16px gutter.
   EVERY WINDOW (owner 2026-11-22: "yes lets do the resize"; window-modes-plan.md
   section C): LeadCapsule.UI.Page marks a page drawn in any popup master with
   html.lcWindowPage (never on a phone), so admin popups and Windows-mode
   windows get the same layout rules when their window is made narrower. A
   desktop window never gets the phone-only text and touch sizing below. */
@media screen and (max-width: 999px) {
    :is(.portalPopup, .lcWindowPage) .RadTabStrip,
    :is(.portalPopup, .lcWindowPage) .RadMultiPage { max-width: 100%; }
    :is(.portalPopup, .lcWindowPage) .formContainer fieldset { width: auto !important; max-width: 100%; min-width: 0; box-sizing: border-box; }
    :is(.portalPopup, .lcWindowPage) .formContainer .columnLayout { width: auto !important; float: none !important; }
    :is(.portalPopup, .lcWindowPage) .formContainer .columnLayout .oneColumn { width: calc(100% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .formContainer .columnLayout .twoColumn { width: calc(50% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .formContainer .columnLayout .threeColumn { width: calc(33.33% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .formContainer .columnLayout .fourColumn { width: calc(25% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .formContainer .columnLayout .fiveColumn { width: calc(20% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .formContainer .columnLayout .sixColumn { width: calc(16.66% - 6px) !important; }
    /* A page's fixed-width tab pages (EditLead 960px, CRM EditVertical 690px),
       a grid wider than the window (it scrolls inside its own box), a label
       that wraps at the nested levels (form.css clips it to 20px), and the
       help and chat slide-out (960px). */
    .lcWindowPage .RadTabStrip,
    .lcWindowPage .RadMultiPage { width: auto !important; }
    .lcWindowPage .RadGrid { max-width: 100%; overflow-x: auto !important; box-sizing: border-box; }
    /* The 960px heading row of the Email, Phone and SMS EditMessage pages. */
    .lcWindowPage form > div[id$="wrapper"] > div[style*="width:960px"] { width: auto !important; max-width: 100%; }
    .lcWindowPage :is(.grandChildFormContainer, .greatGrandChildFormContainer, .greatGreatGrandChildFormContainer) .columnLayout label { height: auto; }
    .lcWindowPage :is(.popupHelpMenu, .chatMenuPopup) .rmSlide,
    .lcWindowPage :is(.popupHelpMenu, .chatMenuPopup) .rmSlide .rmGroup { max-width: calc(100vw - 40px) !important; }
}
@media screen and (max-width: 935px) {
    :is(.portalPopup, .lcWindowPage) .childFormContainer fieldset { width: auto !important; max-width: 100%; min-width: 0; box-sizing: border-box; }
    :is(.portalPopup, .lcWindowPage) .childFormContainer .columnLayout { width: auto !important; float: none !important; }
    :is(.portalPopup, .lcWindowPage) .childFormContainer .columnLayout .oneColumn { width: calc(100% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .childFormContainer .columnLayout .twoColumn { width: calc(50% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .childFormContainer .columnLayout .threeColumn { width: calc(33.33% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .childFormContainer .columnLayout .fourColumn { width: calc(25% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .childFormContainer .columnLayout .fiveColumn { width: calc(20% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .childFormContainer .columnLayout .sixColumn { width: calc(16.66% - 6px) !important; }
}
@media screen and (max-width: 885px) {
    :is(.portalPopup, .lcWindowPage) .grandChildFormContainer fieldset { width: auto !important; max-width: 100%; min-width: 0; box-sizing: border-box; }
    :is(.portalPopup, .lcWindowPage) .grandChildFormContainer .columnLayout { width: auto !important; float: none !important; }
    :is(.portalPopup, .lcWindowPage) .grandChildFormContainer .columnLayout .oneColumn { width: calc(100% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .grandChildFormContainer .columnLayout .twoColumn { width: calc(50% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .grandChildFormContainer .columnLayout .threeColumn { width: calc(33.33% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .grandChildFormContainer .columnLayout .fourColumn { width: calc(25% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .grandChildFormContainer .columnLayout .fiveColumn { width: calc(20% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .grandChildFormContainer .columnLayout .sixColumn { width: calc(16.66% - 6px) !important; }
}
@media screen and (max-width: 827px) {
    :is(.portalPopup, .lcWindowPage) .greatGrandChildFormContainer fieldset { width: auto !important; max-width: 100%; min-width: 0; box-sizing: border-box; }
    :is(.portalPopup, .lcWindowPage) .greatGrandChildFormContainer .columnLayout { width: auto !important; float: none !important; }
    :is(.portalPopup, .lcWindowPage) .greatGrandChildFormContainer .columnLayout .oneColumn { width: calc(100% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .greatGrandChildFormContainer .columnLayout .twoColumn { width: calc(50% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .greatGrandChildFormContainer .columnLayout .threeColumn { width: calc(33.33% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .greatGrandChildFormContainer .columnLayout .fourColumn { width: calc(25% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .greatGrandChildFormContainer .columnLayout .fiveColumn { width: calc(20% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .greatGrandChildFormContainer .columnLayout .sixColumn { width: calc(16.66% - 6px) !important; }
}
@media screen and (max-width: 743px) {
    :is(.portalPopup, .lcWindowPage) .greatGreatGrandChildFormContainer fieldset { width: auto !important; max-width: 100%; min-width: 0; box-sizing: border-box; }
    :is(.portalPopup, .lcWindowPage) .greatGreatGrandChildFormContainer .columnLayout { width: auto !important; float: none !important; }
    :is(.portalPopup, .lcWindowPage) .greatGreatGrandChildFormContainer .columnLayout .oneColumn { width: calc(100% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .greatGreatGrandChildFormContainer .columnLayout .twoColumn { width: calc(50% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .greatGreatGrandChildFormContainer .columnLayout .threeColumn { width: calc(33.33% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .greatGreatGrandChildFormContainer .columnLayout .fourColumn { width: calc(25% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .greatGreatGrandChildFormContainer .columnLayout .fiveColumn { width: calc(20% - 6px) !important; }
    :is(.portalPopup, .lcWindowPage) .greatGreatGrandChildFormContainer .columnLayout .sixColumn { width: calc(16.66% - 6px) !important; }
}
@media screen and (max-width: 599px) {
    :is(.portalPopup, .lcWindowPage) form > div[id$="wrapper"] { padding: 16px !important; margin: 0 !important; box-sizing: border-box; max-width: 100%; }
    :is(.portalPopup, .lcWindowPage) fieldset { width: auto !important; max-width: 100%; min-width: 0; box-sizing: border-box; }
    :is(.portalPopup, .lcWindowPage) .columnLayout { width: auto !important; float: none !important; }
    :is(.portalPopup, .lcWindowPage) .columnLayout :is(.oneColumn, .twoColumn, .threeColumn, .fourColumn, .fiveColumn, .sixColumn),
    :is(.portalPopup, .lcWindowPage) :is(.formContainer, .childFormContainer, .grandChildFormContainer, .greatGrandChildFormContainer, .greatGreatGrandChildFormContainer) .columnLayout :is(.oneColumn, .twoColumn, .threeColumn, .fourColumn, .fiveColumn, .sixColumn) { width: 100% !important; float: none !important; margin-right: 0 !important; }
    :is(.portalPopup, .lcWindowPage) .RadTabStrip,
    :is(.portalPopup, .lcWindowPage) .RadPanelBar,
    :is(.portalPopup, .lcWindowPage) .RadMultiPage { width: auto !important; max-width: 100%; }
    :is(.portalPopup, .lcWindowPage) .RadGrid { max-width: 100%; overflow-x: auto !important; box-sizing: border-box; }
}
/* The help rail (chat, page help, edit help: help.css .chatMenuPopup and
   .popupHelpMenu, 28px wide, fixed at the window's right edge) sits in the
   wrapper's 20px right padding plus the space a fixed-width form leaves. Once
   the form follows a narrower window it would run under the rail (owner
   2026-11-22: "The arrows to scroll tabs gets hidden under the help/chat icons
   when resized"), so the wrapper keeps the rail's width plus a gap free. Every
   popup page in every mode; a 1024 window (1008px wide) keeps its layout, and a
   phone never has lcWindowPage. The html prefix outranks the 599px padding. */
@media screen and (max-width: 999px) {
    html.lcWindowPage form > div[id$="wrapper"] { padding-right: 36px !important; box-sizing: border-box; }
}

/* PORTAL GRID COLUMNS ON A PHONE (Bid Capsule mobile, owner 2026-11-18)
   A grid column marked HeaderStyle-CssClass and ItemStyle-CssClass "phoneHide"
   is left out below 600px so the key columns and Actions fit the screen.
   LCGrid copies the class onto the column's filter row cell, which Telerik
   leaves unstyled. Desktop and tablet widths show every column. */
@media screen and (max-width: 599px) {
    .portalPage .RadGrid .phoneHide { display: none; }
}

/* PORTAL TEXT BOXES ON A PHONE (Bid Capsule mobile, owner 2026-11-18)
   iPhone Safari zooms the whole page in when a box with text under 16px gets
   focus, and does not zoom back out, so the page reads as wider than the
   screen (seen on PartnerPortal/Register.aspx: the dropdowns use 12px). Below
   600px every text box, dropdown and text area on a portal page or popup uses
   16px text. Pinch zoom is untouched; desktop is unchanged. A desktop window
   made narrower (html.lcWindowPage, owner 2026-11-22) is not a phone and keeps
   its desktop text and control sizes here and in the touch sizes below. */
@media screen and (max-width: 599px) {
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=image]), select, textarea) { font-size: 16px !important; }
}

/* PORTAL TOUCH SIZES ON A PHONE (Bid Capsule mobile, owner 2026-11-18)
   The owner chose touch-sized controls on the Default brand skin over
   Telerik's MetroTouch skin (a skin is picked on the server per control, so
   it could not follow the screen width, and it drops the brand colours).
   Below 600px text boxes, dropdowns, dropdown rows, their check boxes and
   buttons get a finger-sized target of about 44px. Desktop is unchanged.
   The classic skin draws the combo box and button frames from fixed-height
   image sprites that cannot stretch, so at this size the frames are drawn
   with a plain border instead and the combo arrow with a CSS chevron. */
@media screen and (max-width: 599px) {
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadInput input.riTextBox { height: 44px !important; }
    /* A multi-line box (owner 2026-11-20: it was one 44px line, wider than the
       screen): the field's width and at least six lines tall, or its Rows. */
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadInput:has(> textarea),
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadInput:has(textarea.riTextBox) { width: 100% !important; max-width: 100%; box-sizing: border-box; }
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadInput textarea.riTextBox { width: 100% !important; max-width: 100%; height: auto !important; min-height: 140px; box-sizing: border-box; padding: 8px; }
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadComboBox table { border: 1px solid #abadb3 !important; background: #fff; box-sizing: border-box; }
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadComboBox table td.rcbInputCell,
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadComboBox table td.rcbArrowCell { height: 42px !important; background: none !important; border: 0 !important; }
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadComboBox table td.rcbArrowCell { width: 40px !important; position: relative; }
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadComboBox table td.rcbArrowCell a { height: 42px !important; width: 40px !important; text-indent: -9999px; }
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadComboBox table td.rcbArrowCell::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -6px 0 0 -4px; border-right: 2px solid #555; border-bottom: 2px solid #555; transform: rotate(45deg); pointer-events: none; }
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadComboBox table td.rcbInputCell .rcbInput { height: 40px !important; line-height: 40px; padding-left: 8px !important; }
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadComboBoxDropDown .rcbList li { padding: 0 8px !important; }
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadComboBoxDropDown .rcbList li,
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadComboBoxDropDown .rcbList li label { display: flex; align-items: center; min-height: 44px; box-sizing: border-box; font-size: 16px; }
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadComboBoxDropDown .rcbList li label { width: 100%; }
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadComboBoxDropDown .rcbCheckBox { width: 20px !important; height: 20px !important; margin: 0 10px 0 0 !important; }
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadButton.rbSkinnedButton { background: linear-gradient(#fdfdfd, #e6e6e6) !important; border: 1px solid #abadb3; border-radius: 3px; height: auto !important; }
    /* A button sized in markup for the desktop font (EditVertical's 100px Submit)
       grows to its text here, so a longer text ("Submitting") is not clipped. */
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadButton.rbSkinnedButton { min-width: max-content; }
    :is(.portalPage, html:not(.lcWindowPage) .portalPopup) .RadButton.rbSkinnedButton input.rbDecorated { background: none !important; height: 44px !important; padding: 0 24px !important; font-size: 16px; margin: 0 !important; }
}

/* A scrolling root menu (RadMenu EnableRootItemScroll) sizes its scroll wrap
   to 100% plus its border, 2px wider than the page at any width. */
.RadMenu .rmScrollWrap.rmRootGroup { box-sizing: border-box; max-width: 100%; }

/* HEADER LOGO (every master with #header #logo, phone width)
   structure.css gives the logo box a fixed 350px width and a 15px margin, and
   the logo image is 350px wide, so below about 380px the header alone made the
   document 365px wide and clipped the logo (Error.aspx and ServerMaintenance.aspx
   at 320px; AccessDenied runs on the popup master, which has no header logo).
   On a phone the box is capped at the viewport less its margins and the image
   scales down inside it with its aspect ratio kept. Wider screens never reach
   the cap, so desktop is unchanged. The two header halves are 49% + 50%
   inline-blocks with a space glyph (about 4.5px) between them, which overruns
   the page by a pixel once 1% is narrower than that gap; the right half gives
   the gap back. */
@media screen and (max-width: 599px) {
    #header #logo { max-width: calc(100vw - 30px); }
    #header #logo img.logo { max-width: 100%; height: auto; }
    #header #headerRight { width: calc(50% - 5px); }
}

/* PORTAL HEADER IDENTITY (QA-003, every width, portalPage only)
   structure.css gives #header white-space:nowrap, and the status block
   inherits it, so the Company and account labels never wrap. Their fieldset
   is 270px but, like every fieldset, defaults to min-width:min-content, so a
   long name (a Vendor plus sub-user name runs past 60 characters) stretched
   the fieldset past the 300px status box and widened the document at every
   width. The status block now wraps, the fieldset keeps its width, and one
   unbroken long word may break anywhere rather than overflow; nothing is
   hidden or truncated.
   Below 800px the two header halves (49% + 50%) cannot hold the 380px logo
   box beside the 315px status box, so the status floated over the logo: the
   halves stack instead, logo on top and the status full width under it. The
   CRM master puts its logo straight in headerLeft (no #logo box), so the
   image itself is capped to the row. Admin masters have no portalPage class
   and are unchanged. */
.portalPage #header #status { white-space: normal; }
.portalPage #header #status fieldset { min-width: 0; }
.portalPage #header #status .formField label { overflow-wrap: anywhere; }
@media screen and (max-width: 799px) {
    .portalPage #header #headerLeft,
    .portalPage #header #headerRight { display: block; width: auto; }
    .portalPage #header img.logo { max-width: 100%; height: auto; }
    .portalPage #header #status { float: none; width: auto; margin: 0 15px 15px 15px; }
    .portalPage #header #status .profileContainer .profileLayoutLayout,
    .portalPage #header #status .profileContainer .columnLayout,
    .portalPage #header #status .profileContainer fieldset { width: auto !important; max-width: 100%; box-sizing: border-box; }
}

/* PORTAL LOGO AND MENU ON A PHONE (owner 2026-11-19, Partner Portal)
   The logo is sized by height as on the Bid Capsule website (site.css .brand img:
   32px below 420px, 28px below 360px, 42px above), instead of filling the
   screen width. The disabled "Please Login" menu item of the signed-out
   Partner Portal master (MasterPage.master.vb) is dropped on a phone; Telerik
   puts an item's CssClass on its link, so the rule hides the link's li. */
@media screen and (max-width: 599px) {
    .portalPage #header #logo img.logo { height: 64px; width: auto; max-width: 100%; }
    .portalPage .RadMenu .rmItem:has(> .pleaseLogin) { display: none; }
}
@media screen and (max-width: 420px) {
    .portalPage #header #logo img.logo { height: 60px; }
}
@media screen and (max-width: 360px) {
    .portalPage #header #logo img.logo { height: 52px; }
}

/* COPY BUTTON BESIDE A LINK FIELD (owner 2026-11-19, every width)
   A read-only link box and its Copy button (common.js lcCopyText) wrapped in an
   asp:Panel CssClass="lcCopyRow": the box takes the remaining width and Copy
   stays its own size at the right, lined up with the bottom of the box under
   the field label (Affiliate tracking links, smart links, referral link). */
.lcCopyRow { display: flex; align-items: flex-end; gap: 8px; width: 100%; box-sizing: border-box; }
.lcCopyRow > .fieldContainer { flex: 1 1 auto; width: auto !important; min-width: 0; float: none; }
.lcCopyRow > .RadInput { flex: 1 1 auto; min-width: 0; }
.lcCopyRow .RadInput,
.lcCopyRow .riTextBox { width: 100% !important; box-sizing: border-box; }
/* The field container has 10px of padding under its box; the button matches it. */
.lcCopyRow > :last-child { flex: 0 0 auto; margin-bottom: 10px; }

/* PARTNER PORTAL PHONE LAYOUT (owner 2026-11-19)
   PartnerPortal/MasterPage.master adds phoneLayout to the body when the lcPhone
   cookie says the screen is under 600px (its head script writes the cookie from
   the viewport width), so these rules follow the server's choice, not a media
   query: the page is drawn one way or the other, never both. Logo left and a
   hamburger right, as on the Bid Capsule website; the panel lists the same menu
   entries and groups open in place (details/summary); a page opened from a list
   starts with Back to list. Help and chat flyouts are not drawn on a phone. */
/* The divider under the logo is always there (owner 2026-11-19): on desktop the
   menu bar draws it, and the phone layout has no menu bar. */
.portalPage.phoneLayout #header { display: flex; align-items: center; justify-content: space-between; white-space: normal; border-bottom: 1px solid #ccc; }
.portalPage.phoneLayout #header #headerLeft { display: block; width: auto; min-width: 0; }
.portalPage.phoneLayout #header #logo { width: auto; }
/* A tab page holder and a form container with a fixed 960px width (the StoreFront
   lead search) would push their fields off the right edge; the page-width rules
   above shrink the fieldset and columns but not these two. */
.portalPage.phoneLayout #content .RadMultiPage,
.portalPage.phoneLayout #content :is(.formContainer, .childFormContainer, .grandChildFormContainer, .greatGrandChildFormContainer, .greatGreatGrandChildFormContainer) { width: auto !important; max-width: 100%; box-sizing: border-box; }
/* Notes and blocks with an inline desktop width (Reset Password's 890px note in
   every portal, the 960px Thank You box, the Knowledge Base no-results box) and
   raw Telerik dropdowns given a pixel width in code: capped to the screen. */
.portalPage.phoneLayout #content p,
.portalPage.phoneLayout #content div[style*="width"],
.portalPage.phoneLayout #content .kbNoResults,
.portalPage.phoneLayout #content .RadComboBox { max-width: 100% !important; box-sizing: border-box; }
/* Header details the phone layout hides (Client prepaid balance, CRM switcher),
   shown first in the menu panel (Page.BuildPhoneNav topHtml). */
.portalPage.phoneLayout .phoneNav li.phoneNavInfo { padding: 10px 16px; font-size: 16px; color: #333; background: #f6f6f6; border-bottom: 1px solid #eee; }
/* Menu panel head (owner 2026-11-20): each label bold with its value on the
   line under it, and the admin site's products as a row of tabs drawn and
   swiped like the page tab strips (TAB STRIPS ON A PHONE below). */
.portalPage.phoneLayout .phoneNav .phoneNavLabel { display: block; font-weight: bold; }
.portalPage.phoneLayout .phoneNav .phoneNavValue { display: block; margin-bottom: 8px; }
.portalPage.phoneLayout .phoneNav .phoneNavPair .phoneNavValue { margin-bottom: 0; }
.portalPage.phoneLayout .phoneNav ul.phoneNavTabs { display: flex; flex-wrap: nowrap; gap: 4px; margin: 4px -16px -10px -16px; padding: 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-bottom: 1px solid #abadb3; }
.portalPage.phoneLayout .phoneNav ul.phoneNavTabs::-webkit-scrollbar { display: none; }
.portalPage.phoneLayout .phoneNav ul.phoneNavTabs li { flex: 0 0 auto; }
.portalPage.phoneLayout .phoneNav ul.phoneNavTabs a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #abadb3; border-bottom: 0; border-radius: 4px 4px 0 0; background: linear-gradient(#fdfdfd, #e6e6e6); color: #333; font-size: 16px; white-space: nowrap; }
.portalPage.phoneLayout .phoneNav ul.phoneNavTabs a.phoneNavTabSelected { background: #fff; font-weight: bold; cursor: default; }
/* A message a phone-opened page left for its list (phone-layout.js). */
.portalPage.phoneLayout .lcPhoneNotice { margin: 0 0 12px 0; padding: 10px 12px; border: 1px solid #9cc49c; border-radius: 4px; background: #eef7ee; font-size: 16px; }
.portalPage.phoneLayout #header #headerRight { display: none; }
.portalPage.phoneLayout .phoneMenuToggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-right: 12px; padding: 0 10px; box-sizing: border-box; }
.portalPage.phoneLayout .phoneMenuToggle span { display: block; height: 3px; border-radius: 2px; background: #333; }
.portalPage.phoneLayout .phoneNav { border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; background: #fff; }
.portalPage.phoneLayout .phoneNav[hidden] { display: none; }
.portalPage.phoneLayout .phoneNav ul { list-style: none; margin: 0; padding: 0; }
.portalPage.phoneLayout .phoneNav ul ul { padding-left: 16px; }
.portalPage.phoneLayout .phoneNav a,
.portalPage.phoneLayout .phoneNav summary { display: flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: 16px; color: #333; text-decoration: none; border-bottom: 1px solid #eee; cursor: pointer; }
.portalPage.phoneLayout .phoneNav summary { list-style: none; }
.portalPage.phoneLayout .phoneNav summary::-webkit-details-marker { display: none; }
.portalPage.phoneLayout .phoneNav summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid #555; border-bottom: 2px solid #555; transform: rotate(45deg); }
.portalPage.phoneLayout .phoneNav details[open] > summary::after { transform: rotate(-135deg); }
/* Back (owner 2026-11-20: a button, not a "Back to list" text link, since the
   page it returns to is not always a list). Still a link, so going back needs no
   postback; drawn like the phone buttons (.RadButton.rbSkinnedButton above). */
.portalPage.phoneLayout .phoneBack { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 44px; padding: 0 20px 0 14px; margin: 0 0 12px 0; font-size: 16px; color: #333; text-decoration: none; background: linear-gradient(#fdfdfd, #e6e6e6); border: 1px solid #abadb3; border-radius: 3px; }
.portalPage.phoneLayout .phoneBack:active { background: #e6e6e6; }
.portalPage.phoneLayout .phoneBack[hidden] { display: none; }

/* FIELD HELP TOOLTIP ON A PHONE (owner 2026-11-19: "the close x is small")
   The Telerik close button is a 16px sprite in the tooltip's corner. On a phone
   it is a 40px round button with a drawn X, kept inside the tooltip so the
   heading text clears it. The master's phone script also closes the tooltip on a
   tap anywhere outside it. */
.portalPage.phoneLayout .RadToolTip .rtCloseButton { width: 40px; height: 40px; top: 4px; right: 4px; margin: 0; background: #fff !important; border: 1px solid #abadb3; border-radius: 50%; box-sizing: border-box; z-index: 1; }
.portalPage.phoneLayout .RadToolTip .rtCloseButton span { display: none; }
.portalPage.phoneLayout .RadToolTip .rtCloseButton::before,
.portalPage.phoneLayout .RadToolTip .rtCloseButton::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: #333; transform: rotate(45deg); }
.portalPage.phoneLayout .RadToolTip .rtCloseButton::after { transform: rotate(-45deg); }
.portalPage.phoneLayout .RadToolTip .toolTipHeader { padding-right: 44px; }

/* ALERT AND CONFIRM CLOSE X ON A PHONE (owner 2026-11-20: as large as the
   tooltip's). The RadWindow title bar's 16px sprite becomes the same 40px round
   button with a drawn X; the title bar grows to hold it. */
.portalPage.phoneLayout .RadWindow .rwTitlebarControls { height: 48px; }
.portalPage.phoneLayout .RadWindow .rwTitlebarControls td { vertical-align: middle; }
.portalPage.phoneLayout .RadWindow .rwTitlebarControls em { font-size: 16px; line-height: 48px; }
/* The title bar is drawn from fixed-height sprites, which tile when it grows; it is a plain bar instead. */
.portalPage.phoneLayout .RadWindow tr.rwTitleRow > td { background: #f3f3f3 !important; border-bottom: 1px solid #d0d0d0; }
.portalPage.phoneLayout .RadWindow .rwTitlebar .rwTopResize { display: none; }
.portalPage.phoneLayout .RadWindow .rwControlButtons { width: auto !important; height: auto; margin: 0; }
.portalPage.phoneLayout .RadWindow .rwControlButtons li { width: auto; height: auto; }
.portalPage.phoneLayout .RadWindow .rwControlButtons .rwCloseButton { position: relative; display: block; width: 40px; height: 40px; margin: 4px 0; background: #fff !important; border: 1px solid #abadb3; border-radius: 50%; box-sizing: border-box; }
.portalPage.phoneLayout .RadWindow .rwControlButtons .rwCloseButton span { display: none; }
.portalPage.phoneLayout .RadWindow .rwControlButtons .rwCloseButton::before,
.portalPage.phoneLayout .RadWindow .rwControlButtons .rwCloseButton::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: #333; transform: rotate(45deg); }
.portalPage.phoneLayout .RadWindow .rwControlButtons .rwCloseButton::after { transform: rotate(-45deg); }

/* IMAGE BUTTON TIPS ON A PHONE (owner 2026-11-20: press and hold)
   The master's phone script shows an icon-only button's tooltip in this bubble
   when it is pressed and held (every icon-only button, LC-1059); the phone's
   own image menu is turned off. The bubble sits above the full-screen help
   and chat sheets. */
.portalPage.phoneLayout input[type=image],
.portalPage.phoneLayout a img,
.portalPage.phoneLayout button img,
.portalPage.phoneLayout [role=button] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.lcPhoneTip { position: absolute; z-index: 10003; box-sizing: border-box; max-width: calc(100vw - 16px); min-height: 50px; padding: 13px 52px 13px 12px; background: #fff; border: 1px solid #abadb3; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); color: #333; font-size: 16px; line-height: 1.4; white-space: normal; }
.lcPhoneTip .lcPhoneTipClose { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; padding: 0; background: #fff; border: 1px solid #abadb3; border-radius: 50%; box-sizing: border-box; cursor: pointer; }
.lcPhoneTip .lcPhoneTipClose::before,
.lcPhoneTip .lcPhoneTipClose::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: #333; transform: rotate(45deg); }
.lcPhoneTip .lcPhoneTipClose::after { transform: rotate(-45deg); }

/* PAGE TEXT ON A PHONE (owner 2026-11-20: the text at the top of pages, such
   as the Client Portal's subscription notice, was too small). Plain text in the
   page is 16px; controls that set their own size keep it. */
.portalPage.phoneLayout #content { font-size: 16px; }

/* RETURN FROM LOGIN AS (owner 2026-11-20): the first item of a portal's menu
   when an admin or account manager opened it with Login As (phone-layout.js). */
.portalPage.phoneLayout .phoneNav li.phoneNavReturn a { font-weight: bold; background: #eef4fc; }
.portalPage.phoneLayout .phoneNav li.phoneNavReturn a::before { content: "\2039"; font-size: 24px; margin-right: 8px; }

/* ACCORDION PANELS ON A PHONE (owner 2026-11-20: larger). A RadPanelBar
   header is a 48px bar with 17px text and a drawn chevron in place of the
   skin's small sprites. */
.portalPage.phoneLayout .RadPanelBar .rpRootGroup > .rpItem > a.rpLink { height: auto; background: linear-gradient(#fdfdfd, #e6e6e6) !important; border-bottom: 1px solid #abadb3; }
.portalPage.phoneLayout .RadPanelBar .rpRootGroup > .rpItem > a.rpLink > .rpOut { display: flex; align-items: center; min-height: 48px; height: auto; padding: 0 14px; background: none !important; }
.portalPage.phoneLayout .RadPanelBar .rpRootGroup > .rpItem > a.rpLink .rpText { order: 1; height: auto; padding: 0; font-size: 17px; font-weight: 600; line-height: normal; color: #333; background: none !important; }
.portalPage.phoneLayout .RadPanelBar .rpRootGroup > .rpItem > a.rpDisabled .rpText { color: #999; }
.portalPage.phoneLayout .RadPanelBar .rpRootGroup > .rpItem > a.rpLink .rpExpandHandle { order: 2; float: none; position: static; flex: 0 0 auto; width: 10px; height: 10px; margin: 0 4px 4px auto; background: none !important; border-right: 2px solid #555; border-bottom: 2px solid #555; transform: rotate(45deg); }
.portalPage.phoneLayout .RadPanelBar .rpRootGroup > .rpItem > a.rpExpanded .rpExpandHandle { margin-bottom: -4px; transform: rotate(-135deg); }

/* FIELD LABELS AND SECTION HEADINGS ON A PHONE (owner 2026-11-20: larger).
   A field's label is 16px, the size of its box's text; a field group's title
   is 19px semibold, between the labels and the 24px page heading. */
.portalPage.phoneLayout .fieldContainer > label,
.portalPage.phoneLayout .fieldContainer > label .rfdAspLabel { font-size: 16px !important; line-height: 1.3; }
.portalPage.phoneLayout .lcFieldGroupHeading { font-size: 19px !important; font-weight: 600; color: #333; }

/* SUBSCRIPTION PLAN CARDS ON A PHONE (owner 2026-11-20: "these cards need
   work"; Client Portal My Subscription, Available Plans). Each plan is one
   full-width card like the grid cards, with readable text and a 44px button. */
.portalPage.phoneLayout .lcSubscriptionCards { gap: 12px !important; }
/* Each card sits in its control's own wrapper, which is the flex item. */
.portalPage.phoneLayout .lcSubscriptionCards > * { flex: 1 1 100%; min-width: 0; max-width: 100%; }
.portalPage.phoneLayout .lcSubscriptionCards .lcSubscriptionCard { flex: 1 1 100% !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box; border: 1px solid #ccc; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.portalPage.phoneLayout .lcSubscriptionCard .k-card-header { padding: 14px 16px; }
.portalPage.phoneLayout .lcSubscriptionCard .k-card-header .k-card-subtitle { font-size: 18px; }
.portalPage.phoneLayout .lcSubscriptionCard .k-card-body { padding: 12px 16px; font-size: 16px; }
.portalPage.phoneLayout .lcSubscriptionCard .lcSubscriptionFeatures li { padding: 8px 0; border-bottom: 1px solid #e6e6e6; font-size: 16px; }
.portalPage.phoneLayout .lcSubscriptionCard .k-card-footer { padding: 12px 16px; }
.portalPage.phoneLayout .lcSubscriptionCard .k-card-footer .button { min-height: 44px; padding: 0 32px; font-size: 16px; border: 1px solid #abadb3; border-radius: 3px; background: linear-gradient(#fdfdfd, #e6e6e6); }

/* REPORT HEADINGS ON A PHONE (owner 2026-11-20: the dashboard's report names
   were too small). A plain h5 in the page titles a report; 20px semibold. */
.portalPage.phoneLayout #content h5:not(.lcFieldGroupHeading) { font-size: 20px !important; font-weight: 600; color: #333; margin: 16px 0 8px 0; }

/* A GRID'S TOTALS ON A PHONE (owner 2026-11-20: a totals row made no sense
   beside cards). The footer row is a Totals card: the phone script gives its
   cells the column names and hides the empty ones (phone-layout.js). */
.portalPage.phoneLayout .RadGrid tr.rgFooter { display: flex; flex-direction: column; margin: 8px; padding: 8px 10px; border: 1px solid #abadb3; border-radius: 6px; background: #f6f6f6; }
.portalPage.phoneLayout .RadGrid tr.rgFooter > td { display: flex; gap: 8px; width: auto !important; padding: 6px 0 !important; border: 0 !important; border-bottom: 1px solid #e0e0e0 !important; background: none !important; white-space: normal !important; font-size: 15px; font-weight: bold; }
.portalPage.phoneLayout .RadGrid tr.rgFooter > td.phoneTitle { font-size: 17px; border-bottom: 0 !important; }
.portalPage.phoneLayout .RadGrid tr.rgFooter > td.phoneHide,
.portalPage.phoneLayout .RadGrid tr.rgFooter > td.phoneCardId { display: none; }

/* CALENDAR APPOINTMENT FORM ON A PHONE (owner 2026-11-20: scheduling on a
   phone). The scheduler's own form puts labels beside narrow boxes and its
   custom fields four to a row; on a phone each label sits over a full-width
   box, dates and times share a line, the custom fields stack, and the close
   X and buttons are touch sized like the rest of the phone layout. By width,
   not the phone class, so a popup page's calendar is covered too; never in
   a desktop window made narrower (html.lcWindowPage, owner 2026-11-22). */
@media screen and (max-width: 599px) {
    /* The form is pinned below the page top and is taller than a phone screen,
       so its Save button could never be reached: on a phone it fills the screen,
       scrolls inside itself, and keeps Save and Cancel in view at the bottom. */
    html:not(.lcWindowPage) .rsAdvancedEdit.rsAdvancedModal { top: 0 !important; left: 0 !important; width: 100% !important; height: 100vh !important; height: 100dvh !important; margin: 0 !important; display: flex !important; flex-direction: column; box-sizing: border-box; border-radius: 0; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvTitle { flex: 0 0 auto; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvContentWrapper { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; width: auto !important; padding: 0 12px !important; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvOptionsScroll { max-height: none !important; overflow: visible !important; width: auto !important; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvOptions { width: auto !important; }
    /* Add Appointment above a calendar (common.js lcAddPhoneAppointmentButton). */
    html:not(.lcWindowPage) .lcPhoneAddAppointment { display: block; width: 100%; min-height: 44px; margin: 0 0 8px 0; padding: 0 16px; background: linear-gradient(#fdfdfd, #e6e6e6); border: 1px solid #abadb3; border-radius: 3px; color: #333; font-size: 16px; cursor: pointer; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvancedSubmitArea { position: sticky; bottom: 0; z-index: 1; margin: 12px -12px 0 -12px; padding: 10px 12px; background: #f2f2f2; border-top: 1px solid #d0d0d0; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rfbRow { display: flex !important; flex-wrap: wrap; gap: 6px; width: 100% !important; margin: 0 0 10px 0; padding: 0; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rfbLabel { display: block !important; float: none !important; width: 100% !important; margin: 0; padding: 0 0 2px 0; text-align: left !important; font-size: 16px; font-weight: bold; color: #333; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rfbRow > .RadInput,
    html:not(.lcWindowPage) .rsAdvancedEdit .rfbRow > .RadComboBox { width: 100% !important; margin: 0 !important; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsTimePick > .rsAdvDatePicker { flex: 1 1 55%; width: auto !important; min-width: 0; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsTimePick > .RadTimePicker { flex: 1 1 35%; width: auto !important; min-width: 0; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsTimePick .RadPicker table { width: 100% !important; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvChkWrap { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvChkWrap { width: auto !important; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvChkWrap input[type=checkbox] { position: static !important; float: none !important; width: 20px; height: 20px; margin: 0 !important; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvChkWrap > label { position: static !important; float: none !important; display: inline !important; margin: 0 !important; padding: 0 !important; font-size: 16px; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvContentWrapper > div[style*="flex"] .fieldContainer > label { display: flex !important; align-items: center; gap: 6px; width: 100% !important; text-align: left !important; font-size: 16px; font-weight: bold; color: #333; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvContentWrapper > div[style*="flex"] .fieldContainer > label .helpIcon { order: 2; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvContentWrapper > div[style*="flex"] .fieldContainer { margin: 0 !important; padding: 0 !important; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvContentWrapper > div[style*="flex"] { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvContentWrapper > div[style*="flex"] > * { width: 100% !important; max-width: 100%; box-sizing: border-box; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvTitle { position: relative; min-height: 48px; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvInnerTitle { font-size: 18px; font-weight: 600; line-height: 48px; padding-right: 52px; }
    html:not(.lcWindowPage) .rsAdvancedEdit a.rsAdvEditClose { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; margin: 0; padding: 0; overflow: hidden; text-indent: -9999px; background: #fff !important; border: 1px solid #abadb3; border-radius: 50%; box-sizing: border-box; }
    html:not(.lcWindowPage) .rsAdvancedEdit a.rsAdvEditClose::before,
    html:not(.lcWindowPage) .rsAdvancedEdit a.rsAdvEditClose::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: #333; transform: rotate(45deg); }
    html:not(.lcWindowPage) .rsAdvancedEdit a.rsAdvEditClose::after { transform: rotate(-45deg); }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvButtonWrapper { display: flex; gap: 8px; float: none; justify-content: flex-end; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvButtonWrapper > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 100px; padding: 0 20px; margin: 0; background: linear-gradient(#fdfdfd, #e6e6e6) !important; border: 1px solid #abadb3; border-radius: 3px; color: #333; font-size: 16px; text-decoration: none; }
    html:not(.lcWindowPage) .rsAdvancedEdit .rsAdvButtonWrapper > a > span { background: none !important; padding: 0; height: auto; line-height: normal; font-size: 16px; }
}

/* PAGE HEADINGS ON A PHONE (owner 2026-11-20: 24px semibold) */
.portalPage.phoneLayout #content h4,
.portalPage.phoneLayout #content .lcPageHeading { font-size: 24px !important; font-weight: 600; color: #333; line-height: 1.25; }

/* TAB STRIPS ON A PHONE (owner 2026-11-19: swipe row, lc-controls-phone-plan.md 4.7)
   One row of 44px tabs that a finger swipes sideways; Telerik's scroll arrows
   are hidden. The Classic tab is drawn from fixed-height sprites, so on a phone
   it is drawn with borders instead (as the dropdowns are). Telerik writes a
   fixed width on the strip and moves its list with an inline left offset when
   its arrows scroll; both are overridden so the browser's own scrolling is used.
   The master's phone script scrolls the chosen tab into view. */
.portalPage.phoneLayout .RadTabStrip { width: auto !important; max-width: 100%; overflow: visible !important; }
.portalPage.phoneLayout .RadTabStrip .rtsLevel1 { overflow-x: auto !important; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-bottom: 1px solid #abadb3; }
.portalPage.phoneLayout .RadTabStrip .rtsLevel1::-webkit-scrollbar { display: none; }
.portalPage.phoneLayout .RadTabStrip .rtsUL { position: static !important; left: 0 !important; width: max-content !important; white-space: nowrap; display: flex; }
.portalPage.phoneLayout .RadTabStrip .rtsLI { float: none; flex: 0 0 auto; }
.portalPage.phoneLayout .RadTabStrip .rtsPrevArrow,
.portalPage.phoneLayout .RadTabStrip .rtsNextArrow,
.portalPage.phoneLayout .RadTabStrip .rtsPrevArrowDisabled,
.portalPage.phoneLayout .RadTabStrip .rtsNextArrowDisabled { display: none !important; }
.portalPage.phoneLayout .RadTabStrip .rtsLink,
.portalPage.phoneLayout .RadTabStrip .rtsOut,
.portalPage.phoneLayout .RadTabStrip .rtsIn { background: none !important; padding: 0; margin: 0; height: auto; }
.portalPage.phoneLayout .RadTabStrip .rtsLink { display: flex; align-items: center; min-height: 44px; padding: 0 16px; margin-right: 4px; border: 1px solid #abadb3; border-bottom: 0; border-radius: 4px 4px 0 0; background: linear-gradient(#fdfdfd, #e6e6e6) !important; color: #333; font-size: 16px; }
.portalPage.phoneLayout .RadTabStrip .rtsLink.rtsSelected { background: #fff !important; font-weight: bold; }
.portalPage.phoneLayout .RadTabStrip .rtsLink.rtsDisabled { color: #999; }

/* GRIDS AS CARDS ON A PHONE (owner 2026-11-19, lc-controls-phone-plan.md 4.8)
   LCGrid marks each cell as it is created on a phone (LCGrid_PhoneCardCells):
   data-label = its column header, phoneTitle = the card heading, phoneActions =
   the button row, phoneCardId = the Id column (left out). Each row is then a
   card with one line per column, so a grid never scrolls sideways; the header
   row is not drawn, and the filter row opens with the Filters button the
   master's phone script adds. Paging, sorting by command, row commands and
   tap-to-open are Telerik's as before. Telerik and LCGrid pin pixel widths on
   the grid and its tables, so widths are overridden here. Desktop is untouched:
   every rule is under .phoneLayout. */
.portalPage.phoneLayout .RadGrid,
.portalPage.phoneLayout .RadGrid .rgMasterTable,
.portalPage.phoneLayout .RadGrid .rgDataDiv,
.portalPage.phoneLayout .RadGrid .rgDataDiv table,
.portalPage.phoneLayout .RadGrid .rgHeaderDiv,
.portalPage.phoneLayout .RadGrid .rgHeaderDiv table { width: 100% !important; max-width: 100%; table-layout: auto !important; box-sizing: border-box; }
.portalPage.phoneLayout .RadGrid .rgDataDiv { height: auto !important; overflow: visible !important; }
.portalPage.phoneLayout .RadGrid .rgHeaderDiv { padding-right: 0 !important; margin-right: 0 !important; }
.portalPage.phoneLayout .RadGrid colgroup { display: none; }
.portalPage.phoneLayout .RadGrid th.rgHeader { display: none; }
.portalPage.phoneLayout .RadGrid tr.rgFilterRow { display: none; }
.portalPage.phoneLayout .RadGrid.lcPhoneFiltersOpen tr.rgFilterRow { display: block; padding: 4px 0; }
/* Child selectors only: a filter cell can hold a Telerik dropdown, whose own
   table cells must keep their layout. */
.portalPage.phoneLayout .RadGrid tr.rgFilterRow > td { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border: 0; white-space: normal; }
.portalPage.phoneLayout .RadGrid tr.rgFilterRow > td[data-label]::before { content: attr(data-label); flex: 0 0 38%; font-weight: bold; color: #555; }
.portalPage.phoneLayout .RadGrid tr.rgFilterRow > td > .rgFilterBox { flex: 1 1 auto; width: auto !important; min-width: 0; }
.portalPage.phoneLayout .RadGrid tr.rgFilterRow > td > .rgFilterBox { height: 44px; box-sizing: border-box; padding: 0 8px; font-size: 16px; }
.portalPage.phoneLayout .RadGrid tr.rgFilterRow > td.phoneActions input[type=submit],
.portalPage.phoneLayout .RadGrid tr.rgFilterRow > td.phoneActions input[type=button] { min-height: 44px; padding: 0 18px; font-size: 16px; line-height: normal; border: 1px solid #abadb3; border-radius: 3px; background: linear-gradient(#fdfdfd, #e6e6e6) !important; }
.portalPage.phoneLayout .RadGrid tr.rgFilterRow > td > .RadComboBox { flex: 1 1 auto; width: auto !important; min-width: 0; }
.portalPage.phoneLayout .RadGrid tr.rgFilterRow > td > .RadComboBox > table { width: 100% !important; }
.portalPage.phoneLayout .RadGrid tr.rgFilterRow > td.phoneCardId,
.portalPage.phoneLayout .RadGrid tr.rgFilterRow > td.phoneHide { display: none; }
.portalPage.phoneLayout .RadGrid tr.rgFilterRow > td.phoneActions { justify-content: flex-end; }
.portalPage.phoneLayout .RadGrid .rgMasterTable > tbody,
.portalPage.phoneLayout .RadGrid .rgDataDiv tbody { display: block; }
/* The command bar (Add, the active filter, the page's extras) and the pager are
   blocks too: as table rows they kept the master table as wide as the bar's
   nowrap cells, so every card was cut off on the right (owner 2026-11-20). The
   bar's cells wrap onto a second line when they do not fit. */
.portalPage.phoneLayout .RadGrid .rgMasterTable > thead,
.portalPage.phoneLayout .RadGrid .rgMasterTable > tfoot,
.portalPage.phoneLayout .RadGrid tr.rgCommandRow,
.portalPage.phoneLayout .RadGrid tr.rgCommandRow > td.rgCommandCell,
.portalPage.phoneLayout .RadGrid tr.rgPager,
.portalPage.phoneLayout .RadGrid tr.rgPager > td { display: block; }
.portalPage.phoneLayout .RadGrid td.rgCommandCell > table,
.portalPage.phoneLayout .RadGrid td.rgCommandCell > table > tbody { display: block; width: 100% !important; }
.portalPage.phoneLayout .RadGrid td.rgCommandCell > table > tbody > tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; }
.portalPage.phoneLayout .RadGrid td.rgCommandCell > table > tbody > tr > td { display: block; flex: 0 1 auto; min-width: 0; padding: 0 6px !important; white-space: normal !important; text-align: left !important; }
.portalPage.phoneLayout .RadGrid td.rgCommandCell > table > tbody > tr > td:last-child { flex: 1 1 160px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.portalPage.phoneLayout .RadGrid td.rgCommandCell > table > tbody > tr > td:last-child > .lcPhoneSelect { flex: 1 1 auto; min-width: 0; width: auto; }
/* A report toolbar in the command bar (the report pages' Start Date, End Date,
   Columns, Update and Export) floats its parts side by side: on a phone each
   is a full-width line (owner 2026-11-20, Campaign Details). */
.portalPage.phoneLayout .RadGrid td.rgCommandCell > div[style*="float"] { float: none !important; display: block; width: 100% !important; box-sizing: border-box; padding: 4px 6px; }
.portalPage.phoneLayout .RadGrid td.rgCommandCell > div[style*="float"] > br { display: none; }
.portalPage.phoneLayout .RadGrid td.rgCommandCell::after { content: ""; display: table; clear: both; }
/* A checkbox list's summary line never widens its page: the chosen items
   shorten with an ellipsis (it was the full list of columns on one line). */
.portalPage.phoneLayout .lcPhoneChecks { min-width: 0; max-width: 100%; width: 100%; contain: inline-size; }
.portalPage.phoneLayout .lcPhoneChecks > summary { min-width: 0; max-width: 100%; }
.portalPage.phoneLayout .lcPhoneChecks > summary span { display: block; min-width: 0; flex: 1 1 auto; }
/* Add and Refresh on a phone (owner 2026-11-20: larger, one line with the
   filter, icon only). The link carries the postback and its text stays for
   screen readers; it is drawn as a 44px square with the icon. The small sprite
   button beside it does the same postback and is hidden. */
.portalPage.phoneLayout .RadGrid td.rgCommandCell input.rgAdd,
.portalPage.phoneLayout .RadGrid td.rgCommandCell input.rgRefresh { display: none; }
.portalPage.phoneLayout .RadGrid td.rgCommandCell input.rgAdd + a,
.portalPage.phoneLayout .RadGrid td.rgCommandCell input.rgRefresh + a { position: relative; display: inline-block; flex: 0 0 auto; box-sizing: border-box; width: 44px; height: 44px; overflow: hidden; font-size: 0; color: transparent; text-decoration: none; vertical-align: middle; border: 1px solid #abadb3; border-radius: 3px; background: linear-gradient(#fdfdfd, #e6e6e6); }
.portalPage.phoneLayout .RadGrid td.rgCommandCell input.rgAdd + a::before,
.portalPage.phoneLayout .RadGrid td.rgCommandCell input.rgRefresh + a::before { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; color: #333; font-size: 26px; line-height: 1; }
.portalPage.phoneLayout .RadGrid td.rgCommandCell input.rgAdd + a::before { content: "+"; content: "+" / ""; font-size: 30px; }
.portalPage.phoneLayout .RadGrid td.rgCommandCell input.rgRefresh + a::before { content: "\21BB"; content: "\21BB" / ""; }
/* Clear Filters: the form decorator wraps the button in a 22px box that the
   filter cell clipped. */
.portalPage.phoneLayout .RadGrid tr.rgFilterRow > td.phoneActions { height: auto !important; overflow: visible !important; }
.portalPage.phoneLayout .RadGrid tr.rgFilterRow > td.phoneActions a.rfdSkinnedButton { display: inline-block; height: auto !important; background: none !important; border: 0; padding: 0; }
.portalPage.phoneLayout .RadGrid tr.rgPager > td > table { width: 100% !important; }
/* Pager on a phone (owner 2026-11-20: page numbers and arrows too small, page
   size cut off). The parts wrap and centre; page numbers are 44px squares; the
   arrows are Telerik's sprites scaled up (a sprite cannot be resized), which
   scales their tap area too; the page size box is wide enough for "50". */
.portalPage.phoneLayout .RadGrid td.rgPagerCell { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 4px; padding: 8px 4px; white-space: normal; }
.portalPage.phoneLayout .RadGrid td.rgPagerCell > .rgWrap { float: none; display: flex; align-items: center; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; line-height: normal; }
.portalPage.phoneLayout .RadGrid td.rgPagerCell .rgArrPart1 input,
.portalPage.phoneLayout .RadGrid td.rgPagerCell .rgArrPart2 input { transform: scale(1.8); margin: 12px 12px; }
.portalPage.phoneLayout .RadGrid td.rgPagerCell .rgNumPart a { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 44px; height: 44px; margin: 0 2px; padding: 0 6px; background: none !important; border: 1px solid transparent; border-radius: 3px; font-size: 16px; color: #333; text-decoration: none; }
.portalPage.phoneLayout .RadGrid td.rgPagerCell .rgNumPart a span { background: none !important; padding: 0; margin: 0; float: none; height: auto; line-height: normal; }
.portalPage.phoneLayout .RadGrid td.rgPagerCell .rgNumPart a.rgCurrentPage { border-color: #abadb3; background: #fff !important; font-weight: bold; }
.portalPage.phoneLayout .RadGrid td.rgPagerCell .rgAdvPart { width: 100%; gap: 8px; }
.portalPage.phoneLayout .RadGrid td.rgPagerCell .rgPagerLabel { font-size: 16px; margin: 0; }
.portalPage.phoneLayout .RadGrid td.rgPagerCell .rgAdvPart .RadComboBox { width: 90px !important; }
/* Rows: the page numbers, then the four arrows together, then page size, then the count. */
.portalPage.phoneLayout .RadGrid td.rgPagerCell .rgNumPart { order: 1; width: 100%; }
.portalPage.phoneLayout .RadGrid td.rgPagerCell .rgArrPart1 { order: 2; }
.portalPage.phoneLayout .RadGrid td.rgPagerCell .rgArrPart2 { order: 3; }
.portalPage.phoneLayout .RadGrid td.rgPagerCell .rgAdvPart { order: 4; }
.portalPage.phoneLayout .RadGrid td.rgPagerCell .rgInfoPart { order: 5; display: block; width: 100%; text-align: center; font-size: 15px; }
.portalPage.phoneLayout .RadGrid tr.rgRow,
.portalPage.phoneLayout .RadGrid tr.rgAltRow,
.portalPage.phoneLayout .RadGrid tr.rgSelectedRow { display: block; margin: 8px; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.portalPage.phoneLayout .RadGrid tr.rgRow > td,
.portalPage.phoneLayout .RadGrid tr.rgAltRow > td,
.portalPage.phoneLayout .RadGrid tr.rgSelectedRow > td { display: flex; gap: 8px; padding: 3px 0 !important; border: 0 !important; background: none; white-space: normal !important; overflow-wrap: anywhere; font-size: 15px; }
/* A selected card (a tapped row) keeps dark text: the skin's selected row has
   white text for its blue bar, which on the white card hid the whole card
   (owner 2026-11-20). It is marked with a blue border instead. */
.portalPage.phoneLayout .RadGrid tr.rgSelectedRow { border-color: #3b7dd8; box-shadow: 0 0 0 1px #3b7dd8; }
.portalPage.phoneLayout .RadGrid tr.rgSelectedRow > td { color: #333 !important; }
/* A card line is the card's width, whatever width or clipping the page set for
   its desktop columns (Search Leads fixes each column and cuts long values off
   on purpose on a desktop; owner 2026-11-20: cards as on every other page). */
/* The button row ends the card wherever the page put its action column
   (Search Leads has it first). */
.portalPage.phoneLayout .RadGrid tr.rgRow,
.portalPage.phoneLayout .RadGrid tr.rgAltRow,
.portalPage.phoneLayout .RadGrid tr.rgSelectedRow { display: flex; flex-direction: column; }
.portalPage.phoneLayout .RadGrid tr > td.phoneActions { order: 1; }
.portalPage.phoneLayout .RadGrid tr.rgRow > td,
.portalPage.phoneLayout .RadGrid tr.rgAltRow > td,
.portalPage.phoneLayout .RadGrid tr.rgSelectedRow > td { width: auto !important; max-width: none !important; overflow: visible !important; text-overflow: clip !important; }
/* Thin dividers between a card's lines (owner 2026-11-20: to try out). */
.portalPage.phoneLayout .RadGrid tr.rgRow > td[data-label],
.portalPage.phoneLayout .RadGrid tr.rgAltRow > td[data-label],
.portalPage.phoneLayout .RadGrid tr.rgSelectedRow > td[data-label] { border-bottom: 1px solid #e6e6e6 !important; padding: 6px 0 !important; }
/* Nested rows (Details) use the card's full width: the row that holds them,
   its indent cell and the nested table are blocks like the master table. */
.portalPage.phoneLayout .RadGrid .rgMasterTable > tbody > tr:not(.rgRow):not(.rgAltRow):not(.rgSelectedRow):not(.rgNoRecords) { display: block; }
.portalPage.phoneLayout .RadGrid .rgMasterTable > tbody > tr:not(.rgRow):not(.rgAltRow):not(.rgSelectedRow):not(.rgNoRecords) > td:not(.phoneHide):not(.phoneCardId) { display: block; padding: 0 !important; border: 0 !important; }
.portalPage.phoneLayout .RadGrid .rgMasterTable > tbody > tr:not(.rgRow):not(.rgAltRow):not(.rgSelectedRow):not(.rgNoRecords) > td:not([colspan]) { display: none; }
.portalPage.phoneLayout .RadGrid table.rgDetailTable { display: block; width: 100% !important; table-layout: auto !important; box-sizing: border-box; }
.portalPage.phoneLayout .RadGrid table.rgDetailTable > thead,
.portalPage.phoneLayout .RadGrid table.rgDetailTable > tbody,
.portalPage.phoneLayout .RadGrid table.rgDetailTable > tfoot { display: block; }
/* A card line never pushes the card wider than the screen: what a cell holds
   may shrink, and a table inside a cell (Campaign Details' Lead Data is a
   600px field list) fits the card on its own line under the label. */
.portalPage.phoneLayout .RadGrid :is(tr.rgRow, tr.rgAltRow, tr.rgSelectedRow) > td > * { min-width: 0; max-width: 100%; }
.portalPage.phoneLayout .RadGrid :is(tr.rgRow, tr.rgAltRow, tr.rgSelectedRow) > td:has(table) { flex-direction: column; }
/* A short link after a value (the "more" of a clipped request) keeps its word whole. */
.portalPage.phoneLayout .RadGrid :is(tr.rgRow, tr.rgAltRow, tr.rgSelectedRow) > td > a:last-child:not(:only-child) { flex: 0 0 auto; white-space: nowrap; }
/* The table's cells run label, value, label, value across a row; on a phone
   they are two columns, one label and its value a line. */
.portalPage.phoneLayout .RadGrid :is(tr.rgRow, tr.rgAltRow, tr.rgSelectedRow) > td table { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); column-gap: 8px; width: 100% !important; max-width: 100%; }
.portalPage.phoneLayout .RadGrid :is(tr.rgRow, tr.rgAltRow, tr.rgSelectedRow) > td table :is(tbody, thead, tr) { display: contents; }
.portalPage.phoneLayout .RadGrid :is(tr.rgRow, tr.rgAltRow, tr.rgSelectedRow) > td table td { display: block; width: auto !important; white-space: normal !important; overflow-wrap: break-word; padding: 3px 0; }
.portalPage.phoneLayout .RadGrid tr > td[data-label]::before { content: attr(data-label); flex: 0 0 38%; font-weight: bold; color: #555; }
/* A card label breaks between words, not inside one (a lead field name such
   as IncomeFrequency): it widens to its longest word when that is wider than
   its 38%. */
.portalPage.phoneLayout .RadGrid :is(tr.rgRow, tr.rgAltRow, tr.rgSelectedRow) > td[data-label]::before { overflow-wrap: normal; word-break: normal; min-width: min-content; }
.portalPage.phoneLayout .RadGrid tr > td.phoneTitle { font-size: 17px; font-weight: bold; padding-bottom: 6px !important; }
.portalPage.phoneLayout .RadGrid tr > td.phoneCardId,
.portalPage.phoneLayout .RadGrid tr > td.phoneHide { display: none; }
.portalPage.phoneLayout .RadGrid tr > td.phoneActions { justify-content: flex-end; flex-wrap: wrap; gap: 4px; padding-top: 6px !important; }
.portalPage.phoneLayout .RadGrid td.phoneActions input[type=image] { box-sizing: content-box; width: 20px; height: 20px; padding: 12px; }
/* Details: the grid's expand button, moved to the start of the button row. */
.portalPage.phoneLayout .RadGrid input.lcPhoneDetails { width: auto !important; height: auto !important; min-height: 44px; margin: 0 auto 0 0 !important; padding: 0 16px !important; text-indent: 0 !important; font-size: 16px; color: #333; line-height: normal; border: 1px solid #abadb3; border-radius: 3px; background: linear-gradient(#fdfdfd, #e6e6e6) !important; cursor: pointer; }
.portalPage.phoneLayout .RadGrid input.lcPhoneDetails.rgCollapse { background: #fff !important; font-weight: bold; }
.portalPage.phoneLayout .RadGrid tr > td.lcPhoneDetailsCell { justify-content: flex-start; }
.portalPage.phoneLayout .RadGrid tr.rgNoRecords td { display: block; padding: 12px 8px; }
/* An empty grid's row keeps the expand column's cell: it showed as a grey box. */
.portalPage.phoneLayout .RadGrid tr.rgNoRecords td.rgExpandCol,
.portalPage.phoneLayout .RadGrid tr.rgNoRecords td.phoneHide { display: none; }
.portalPage.phoneLayout .lcPhoneFilterToggle { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 6px 0; padding: 0 18px; border: 1px solid #abadb3; border-radius: 3px; background: linear-gradient(#fdfdfd, #e6e6e6); color: #333; font-size: 16px; }
.portalPage.phoneLayout .lcPhoneFilterToggle[aria-expanded=true] { background: #fff; font-weight: bold; }

/* LC DROPDOWNS ON A PHONE (agent-workflow/lc-controls-phone-plan.md 4.1)
   LCComboBox draws a native select, or for CheckBoxes a checkbox list that
   opens in place, when the page is in the phone layout. 44px rows, 16px text so
   the iPhone never zooms; the chevron is drawn with borders as on the Telerik
   phone sizing above. */
.portalPage.phoneLayout .lcPhoneSelect,
.portalPage.phoneLayout .lcPhoneChecks > summary { display: flex; align-items: center; box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 40px 0 10px; border: 1px solid #abadb3; border-radius: 3px; background: #fff; color: #333; font-size: 16px; position: relative; }
.portalPage.phoneLayout .lcPhoneSelect { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 14px) 19px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.portalPage.phoneLayout .lcPhoneSelect:disabled { background-color: #f3f3f3; color: #888; }
.portalPage.phoneLayout .lcPhoneChecks > summary { list-style: none; cursor: pointer; }
.portalPage.phoneLayout .lcPhoneChecks > summary::-webkit-details-marker { display: none; }
.portalPage.phoneLayout .lcPhoneChecks > summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portalPage.phoneLayout .lcPhoneChecks > summary::after { content: ""; position: absolute; right: 16px; top: 15px; width: 8px; height: 8px; border-right: 2px solid #555; border-bottom: 2px solid #555; transform: rotate(45deg); }
.portalPage.phoneLayout .lcPhoneChecks[open] > summary::after { top: 19px; transform: rotate(-135deg); }
.portalPage.phoneLayout .lcPhoneCheckList { border: 1px solid #abadb3; border-top: 0; background: #fff; max-height: 60vh; overflow-x: hidden; overflow-y: auto; }
/* The form styles give every label inside a field a fixed width; a row is the list's width. */
.portalPage.phoneLayout .lcPhoneCheckList label { box-sizing: border-box; width: 100% !important; float: none !important; display: flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 16px; border-bottom: 1px solid #eee; white-space: normal; }
.portalPage.phoneLayout .lcPhoneCheckList input[type=checkbox] { width: 20px; height: 20px; margin: 0 10px 0 0; flex: 0 0 auto; }
.portalPage.phoneLayout .lcPhoneCheckGroup { padding: 8px 10px; font-weight: bold; background: #f3f3f3; }
.portalPage.phoneLayout .phoneBack::before { content: "\2039"; font-size: 24px; margin-right: 6px; }

/* HELP AND CHAT ON A PHONE (owner ruling LC-1058, 2026-11-22; catalog C556)
   The master keeps its desktop help rail (rmHelp, rmChat) drawn on a phone but
   out of sight; Scripts/phone-help.js puts Notifications and Chat icons in the
   header and Open a Support Ticket and Page Help at the top of the menu panel,
   and each opens its own rail item. The open item (lcPhoneSheetItem) is drawn
   full screen under a title bar with Close, sized to the visual viewport
   (--lcSheetTop, --lcSheetHeight) so the chat input stays above the keyboard. */
.portalPage.phoneLayout :is(.helpMenu, .chatMenu) { top: 0 !important; right: 0 !important; width: 0 !important; height: 0 !important; z-index: 10001 !important; }
.portalPage.phoneLayout :is(.helpMenu, .chatMenu) > .rmRootGroup > .rmItem > .rmRootLink { display: none !important; }
.portalPage.phoneLayout .lcPhoneHelpIcons { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: 0 0 auto; }
.portalPage.phoneLayout .lcPhoneHelpIcon { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 44px; }
.portalPage.phoneLayout .lcPhoneHelpIcon img { width: 22px; height: 22px; }
.portalPage.phoneLayout .lcPhoneHelpBadge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border: 1px solid #fff; border-radius: 9px; background: #c00; color: #fff; font-size: 11px; font-weight: bold; line-height: 16px; text-align: center; }
.portalPage.phoneLayout .lcPhoneHelpBadge[hidden] { display: none; }
/* The logo gives way on a narrow screen (the CRM logo is 258px wide), never the buttons. */
.portalPage.phoneLayout #header #headerLeft { flex: 0 1 auto; }
.portalPage.phoneLayout #header .phoneMenuToggle { flex-shrink: 0; }
.portalPage.phoneLayout .phoneNav li.lcPhoneHelpItem img { width: 20px; height: 20px; margin-right: 12px; }
html.lcPhoneSheetOpen,
html.lcPhoneSheetOpen body { overflow: hidden !important; }
.lcPhoneSheetBar { position: fixed; left: 0; right: 0; top: var(--lcSheetTop, 0px); z-index: 10002; display: flex; align-items: center; box-sizing: border-box; height: 52px; padding: 0 8px 0 16px; background: #f3f3f3; border-bottom: 1px solid #d0d0d0; font-family: Arial, Helvetica, sans-serif; }
.lcPhoneSheetBar[hidden] { display: none; }
.lcPhoneSheetBar .lcPhoneSheetTitle { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: bold; color: #333; }
.lcPhoneSheetBar .lcPhoneSheetClose { flex: 0 0 auto; min-width: 44px; height: 44px; padding: 0 16px; font-size: 16px; color: #333; background: linear-gradient(#fdfdfd, #e6e6e6); border: 1px solid #abadb3; border-radius: 3px; cursor: pointer; }
.portalPage.phoneLayout .lcPhoneSheetItem > .rmSlide { position: fixed !important; left: 0 !important; right: 0 !important; top: calc(var(--lcSheetTop, 0px) + 52px) !important; width: 100% !important; height: calc(var(--lcSheetHeight, 100dvh) - 52px) !important; max-height: none !important; margin: 0 !important; z-index: 10001 !important; overflow: hidden !important; background: #fff; }
.portalPage.phoneLayout .lcPhoneSheetItem > .rmSlide > .rmGroup,
.portalPage.phoneLayout .lcPhoneSheetItem .rmContentTemplate { position: static !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; max-height: none !important; margin: 0 !important; padding: 0 !important; box-sizing: border-box; overflow-x: hidden !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; white-space: normal !important; border: 0 !important; }
.portalPage.phoneLayout .lcPhoneSheetItem :is(.formContainer, .childFormContainer, .columnLayout) { width: auto !important; max-width: 100%; margin: 0 !important; float: none !important; box-sizing: border-box; }
.portalPage.phoneLayout .lcPhoneSheetItem fieldset { width: auto !important; height: auto !important; max-height: none !important; min-width: 0; margin: 0 !important; padding: 12px 16px !important; box-sizing: border-box; overflow: visible !important; border: 0 !important; }
.portalPage.phoneLayout .lcPhoneSheetItem .nav_up { display: none !important; }
.portalPage.phoneLayout .lcPhoneSheetItem .lcNotifFlyout { width: auto !important; max-width: none; max-height: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.portalPage.phoneLayout .lcPhoneSheetItem .lcNotifItem,
.portalPage.phoneLayout .lcPhoneSheetItem .lcNotifHdr { padding: 12px 16px; font-size: 15px; }
/* Device Notifications by web push (LC-1062, LC-1065, Scripts/device-push.js):
   one row under the bell's header. The desktop look is in
   Controls/NotificationPanel.ascx; these are the phone sheet's overrides. */
.portalPage.phoneLayout .lcPushRow { display: block; padding: 12px 16px; border-bottom: 1px solid #eee; }
.portalPage.phoneLayout .lcPushButton { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #1f8b4c; border-radius: 6px; background: #fff; color: #1f8b4c; font-size: 15px; font-weight: bold; }
.portalPage.phoneLayout .lcPushButton:disabled { border-color: #ccc; color: #999; }
.portalPage.phoneLayout .lcPushNote { margin-top: 6px; color: #666; font-size: 13px; }
.portalPage.phoneLayout .lcPushNote:empty { display: none; }
.portalPage.phoneLayout .lcPhoneSheetItem .lcNotifDismiss { top: 8px; right: 6px; padding: 8px 12px; font-size: 16px; }
/* Chat fills the sheet: the message list scrolls, the input row stays at the bottom. */
.portalPage.phoneLayout .lcPhoneSheetItem:has(#lcChatPanelRoot) .rmContentTemplate { overflow: hidden !important; }
.portalPage.phoneLayout .lcPhoneSheetItem:has(#lcChatPanelRoot) :is(.formContainer, .columnLayout) { height: 100% !important; }
.portalPage.phoneLayout .lcPhoneSheetItem #lcChatPanelFieldset { width: 100% !important; height: 100% !important; max-height: none !important; padding: 8px !important; overflow: hidden !important; }
.portalPage.phoneLayout .lcPhoneSheetItem #lcChatInput,
.portalPage.phoneLayout .lcPhoneSheetItem #lcDmInput { font-size: 16px !important; }
.portalPage.phoneLayout .lcPhoneSheetItem .lcChatIconBtn { min-width: 40px; min-height: 40px; }

/* Single Page mode at desktop width (owner ruling LC-1066): the phone Back
   link, the kept message and the Login As return, on the desktop look. */
html.lcSinglePageNav .phoneBack, html.lcSinglePageNav .lcSinglePageReturn { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 30px; padding: 0 14px 0 10px; margin: 6px 0 10px 0; font-size: 13px; color: #333; text-decoration: none; background: linear-gradient(#fdfdfd, #e6e6e6); border: 1px solid #abadb3; border-radius: 3px; }
html.lcSinglePageNav .phoneBack::before, html.lcSinglePageNav .lcSinglePageReturn::before { content: "\2039"; font-size: 18px; margin-right: 6px; }
html.lcSinglePageNav .phoneBack[hidden] { display: none; }
html.lcSinglePageNav .lcPhoneNotice { margin: 0 0 10px 0; padding: 8px 12px; border: 1px solid #9cc49c; border-radius: 4px; background: #eef7ee; font-size: 13px; }
html.lcSinglePageNav .lcSinglePageTitle { display: inline-block; margin: 6px 0 10px 12px; font-size: 15px; font-weight: bold; vertical-align: middle; }

/* PHONE THEME COLOURS (owner 2026-11-22: "some themes labels and button text is
   unreadable", "the menu slide out does not follow the selected theme")
   The phone rules above draw tabs, buttons, boxes and cards in fixed light
   colours, but the text on them keeps the skin's colour: white on a dark skin
   (Black, BlackMetroTouch, Glow, Office2010Black) and on a few light skins'
   buttons (Web20, the LeadCapsule/Win11/iOS/macOS brand themes), so it vanished.
   Scripts/phone-layout.js (lcSyncPhoneTheme) reads the skin's text colour into
   --lc-phone-fg on every theme, and on a dark page adds html class lcPhoneDark
   and the page colour --lc-phone-bg; the parts are then drawn from those. The
   menu panel takes the skin's menu colours (--lc-flyout-*, common.js), as the
   desktop menus and the help panels do (catalog W036). Desktop is unchanged. */
/* Every theme: page headings and button text in the skin's text colour; a brand
   theme's buttons keep its accent fill (theme-rules.css), as on the desktop. */
.portalPage.phoneLayout #content :is(h4, h5, .lcPageHeading, .lcFieldGroupHeading) { color: var(--lc-phone-fg, #333) !important; }
.portalPage.phoneLayout .RadButton.rbSkinnedButton,
.portalPage.phoneLayout .RadButton.rbSkinnedButton :is(input.rbDecorated, .rbText) { color: var(--lc-phone-fg, #333) !important; }
.portalPage.phoneLayout .lc-theme .RadButton.rbSkinnedButton { background: var(--t-accent) !important; border-color: var(--t-accent-d); }
.portalPage.phoneLayout .lc-theme .RadButton.rbSkinnedButton,
.portalPage.phoneLayout .lc-theme .RadButton.rbSkinnedButton :is(input.rbDecorated, .rbText) { color: #fff !important; }
/* Every theme: a dropdown list scrolls natively (phone-layout.js turns off
   Telerik's touch scroll emulation on a phone), inside its own box. */
.portalPage.phoneLayout .RadComboBoxDropDown .rcbScroll { overflow-y: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
/* Every theme: the menu panel in the skin's menu colours. */
.portalPage.phoneLayout .phoneNav { color: var(--lc-flyout-fg, #333); background: var(--lc-flyout-bg, #fff); border-color: var(--lc-flyout-border, #ccc); }
.portalPage.phoneLayout .phoneNav a,
.portalPage.phoneLayout .phoneNav summary { color: var(--lc-flyout-fg, #333); border-bottom-color: color-mix(in srgb, var(--lc-flyout-fg, #333) 12%, var(--lc-flyout-bg, #fff)); }
.portalPage.phoneLayout .phoneNav summary::after { border-color: currentColor; }
.portalPage.phoneLayout .phoneNav li.phoneNavInfo,
.portalPage.phoneLayout .phoneNav .phoneNavCompany { color: var(--lc-flyout-fg, #333); background: color-mix(in srgb, var(--lc-flyout-fg, #333) 4%, var(--lc-flyout-bg, #fff)); border-bottom-color: color-mix(in srgb, var(--lc-flyout-fg, #333) 12%, var(--lc-flyout-bg, #fff)); }
.portalPage.phoneLayout .phoneNav .phoneNavCompany label,
.portalPage.phoneLayout .phoneNav .phoneNavCompany label .rfdAspLabel { color: var(--lc-flyout-fg, #333) !important; }
.portalPage.phoneLayout .phoneNav ul.phoneNavTabs { border-bottom-color: color-mix(in srgb, var(--lc-flyout-fg, #333) 35%, var(--lc-flyout-bg, #fff)); }
.portalPage.phoneLayout .phoneNav ul.phoneNavTabs a { color: var(--lc-flyout-fg, #333); background: color-mix(in srgb, var(--lc-flyout-fg, #333) 9%, var(--lc-flyout-bg, #fff)); border-color: color-mix(in srgb, var(--lc-flyout-fg, #333) 35%, var(--lc-flyout-bg, #fff)); }
.portalPage.phoneLayout .phoneNav ul.phoneNavTabs a.phoneNavTabSelected { background: var(--lc-flyout-bg, #fff); }
.portalPage.phoneLayout .phoneNav li.phoneNavReturn a { background: color-mix(in srgb, var(--lc-flyout-accent, #3b7dd8) 14%, var(--lc-flyout-bg, #fff)); }
/* A dark theme: the light phone parts are drawn from the page colours. */
html.lcPhoneDark {
    --lc-phone-raised: color-mix(in srgb, var(--lc-phone-fg) 14%, var(--lc-phone-bg));
    --lc-phone-card: color-mix(in srgb, var(--lc-phone-fg) 7%, var(--lc-phone-bg));
    --lc-phone-line: color-mix(in srgb, var(--lc-phone-fg) 35%, var(--lc-phone-bg));
    --lc-phone-muted: color-mix(in srgb, var(--lc-phone-fg) 72%, var(--lc-phone-bg));
}
html.lcPhoneDark .portalPage.phoneLayout #header { border-bottom-color: var(--lc-phone-line); }
html.lcPhoneDark .portalPage.phoneLayout .phoneMenuToggle span { background: var(--lc-phone-fg); }
/* Tabs: the unselected ones raised, the selected one the page colour. */
html.lcPhoneDark .portalPage.phoneLayout .RadTabStrip .rtsLevel1 { border-bottom-color: var(--lc-phone-line); }
html.lcPhoneDark .portalPage.phoneLayout .RadTabStrip .rtsLink { background: var(--lc-phone-raised) !important; border-color: var(--lc-phone-line); color: var(--lc-phone-fg) !important; }
html.lcPhoneDark .portalPage.phoneLayout .RadTabStrip .rtsLink.rtsSelected { background: var(--lc-phone-bg) !important; }
html.lcPhoneDark .portalPage.phoneLayout .RadTabStrip .rtsLink .rtsTxt { color: var(--lc-phone-fg) !important; }
html.lcPhoneDark .portalPage.phoneLayout .RadTabStrip .rtsLink.rtsDisabled .rtsTxt { color: var(--lc-phone-muted) !important; }
/* Buttons and button-like links. */
html.lcPhoneDark .portalPage.phoneLayout .RadButton.rbSkinnedButton,
html.lcPhoneDark .portalPage.phoneLayout .phoneBack,
html.lcPhoneDark .portalPage.phoneLayout .lcPhoneFilterToggle,
html.lcPhoneDark .portalPage.phoneLayout .RadGrid input.lcPhoneDetails,
html.lcPhoneDark .portalPage.phoneLayout .RadGrid tr.rgFilterRow > td.phoneActions :is(input[type=submit], input[type=button]),
html.lcPhoneDark .portalPage.phoneLayout .RadGrid td.rgCommandCell input.rgRefresh + a,
html.lcPhoneDark .portalPage.phoneLayout .lcSubscriptionCard .k-card-footer .button,
html.lcPhoneDark .lcPhoneSheetBar .lcPhoneSheetClose,
html.lcPhoneDark .lcPhoneAddAppointment,
html.lcPhoneDark .rsAdvancedEdit .rsAdvButtonWrapper > a { background: var(--lc-phone-raised) !important; border-color: var(--lc-phone-line); color: var(--lc-phone-fg) !important; }
html.lcPhoneDark .portalPage.phoneLayout .phoneBack:active,
html.lcPhoneDark .portalPage.phoneLayout .lcPhoneFilterToggle[aria-expanded=true],
html.lcPhoneDark .portalPage.phoneLayout .RadGrid input.lcPhoneDetails.rgCollapse { background: var(--lc-phone-bg) !important; }
html.lcPhoneDark .portalPage.phoneLayout .RadGrid td.rgCommandCell input.rgRefresh + a::before { color: var(--lc-phone-fg); }
/* Dropdowns and lists. */
html.lcPhoneDark .portalPage.phoneLayout .RadComboBox table { background: var(--lc-phone-raised); border-color: var(--lc-phone-line) !important; }
html.lcPhoneDark .portalPage.phoneLayout .RadComboBox .rcbInput { color: var(--lc-phone-fg) !important; }
html.lcPhoneDark .portalPage.phoneLayout .RadComboBox table td.rcbArrowCell::after { border-color: var(--lc-phone-fg); }
html.lcPhoneDark .portalPage.phoneLayout .lcPhoneSelect { color: var(--lc-phone-fg); background-color: var(--lc-phone-raised); border-color: var(--lc-phone-line); background-image: linear-gradient(45deg, transparent 50%, var(--lc-phone-fg) 50%), linear-gradient(135deg, var(--lc-phone-fg) 50%, transparent 50%); }
html.lcPhoneDark .portalPage.phoneLayout .lcPhoneSelect:disabled { color: var(--lc-phone-muted); background-color: var(--lc-phone-card); }
html.lcPhoneDark .portalPage.phoneLayout .lcPhoneChecks > summary,
html.lcPhoneDark .portalPage.phoneLayout .lcPhoneCheckList { color: var(--lc-phone-fg); background: var(--lc-phone-raised); border-color: var(--lc-phone-line); }
html.lcPhoneDark .portalPage.phoneLayout .lcPhoneCheckGroup { background: var(--lc-phone-card); }
/* Cards, the footer card, the pager and the filter labels. */
html.lcPhoneDark .portalPage.phoneLayout .RadGrid tr:is(.rgRow, .rgAltRow, .rgSelectedRow, .rgFooter) { background: var(--lc-phone-card); border-color: var(--lc-phone-line); }
html.lcPhoneDark .portalPage.phoneLayout .RadGrid tr.rgSelectedRow { border-color: #3b7dd8; }
html.lcPhoneDark .portalPage.phoneLayout .RadGrid tr:is(.rgRow, .rgAltRow, .rgSelectedRow, .rgFooter) > td { color: var(--lc-phone-fg) !important; }
html.lcPhoneDark .portalPage.phoneLayout .RadGrid tr:is(.rgRow, .rgAltRow, .rgSelectedRow, .rgFooter) > td[data-label] { border-bottom-color: var(--lc-phone-line) !important; }
html.lcPhoneDark .portalPage.phoneLayout .RadGrid tr > td[data-label]::before { color: var(--lc-phone-muted); }
html.lcPhoneDark .portalPage.phoneLayout .RadGrid td.rgPagerCell .rgNumPart a { color: var(--lc-phone-fg); }
html.lcPhoneDark .portalPage.phoneLayout .RadGrid td.rgPagerCell .rgNumPart a.rgCurrentPage { background: var(--lc-phone-bg) !important; border-color: var(--lc-phone-line); }
/* Panel bars, notes and cards. */
html.lcPhoneDark .portalPage.phoneLayout .RadPanelBar .rpRootGroup > .rpItem > a.rpLink { background: var(--lc-phone-raised) !important; border-bottom-color: var(--lc-phone-line); }
html.lcPhoneDark .portalPage.phoneLayout .RadPanelBar .rpRootGroup > .rpItem > a.rpLink .rpText { color: var(--lc-phone-fg); }
html.lcPhoneDark .portalPage.phoneLayout .RadPanelBar .rpRootGroup > .rpItem > a.rpDisabled .rpText { color: var(--lc-phone-muted); }
html.lcPhoneDark .portalPage.phoneLayout .RadPanelBar .rpRootGroup > .rpItem > a.rpLink .rpExpandHandle { border-color: var(--lc-phone-fg); }
html.lcPhoneDark .portalPage.phoneLayout .lcPhoneNotice { color: var(--lc-phone-fg); background: color-mix(in srgb, #2e7d32 30%, var(--lc-phone-bg)); border-color: #4c8c4c; }
html.lcPhoneDark .portalPage.phoneLayout .lcSubscriptionCards .lcSubscriptionCard { color: var(--lc-phone-fg); background: var(--lc-phone-card); border-color: var(--lc-phone-line); }
html.lcPhoneDark .portalPage.phoneLayout .lcSubscriptionCard .lcSubscriptionFeatures li { border-bottom-color: var(--lc-phone-line); }
html.lcPhoneDark .portalPage.phoneLayout .lcPushNote { color: var(--lc-phone-muted); }
/* Close buttons, press-and-hold tips and the help sheet bar. */
html.lcPhoneDark .portalPage.phoneLayout :is(.RadToolTip .rtCloseButton, .RadWindow .rwControlButtons .rwCloseButton),
html.lcPhoneDark .lcPhoneTip .lcPhoneTipClose,
html.lcPhoneDark .rsAdvancedEdit a.rsAdvEditClose { background: var(--lc-phone-raised) !important; border-color: var(--lc-phone-line); }
html.lcPhoneDark .portalPage.phoneLayout :is(.RadToolTip .rtCloseButton, .RadWindow .rwControlButtons .rwCloseButton)::before,
html.lcPhoneDark .portalPage.phoneLayout :is(.RadToolTip .rtCloseButton, .RadWindow .rwControlButtons .rwCloseButton)::after,
html.lcPhoneDark .lcPhoneTip .lcPhoneTipClose::before,
html.lcPhoneDark .lcPhoneTip .lcPhoneTipClose::after,
html.lcPhoneDark .rsAdvancedEdit a.rsAdvEditClose::after { background: var(--lc-phone-fg); }
html.lcPhoneDark .portalPage.phoneLayout .RadWindow tr.rwTitleRow > td { background: var(--lc-phone-raised) !important; border-bottom-color: var(--lc-phone-line); }
html.lcPhoneDark .portalPage.phoneLayout .RadWindow .rwTitlebarControls em { color: var(--lc-phone-fg); }
html.lcPhoneDark .lcPhoneTip { color: var(--lc-phone-fg); background: var(--lc-phone-card); border-color: var(--lc-phone-line); }
html.lcPhoneDark .lcPhoneSheetBar { background: var(--lc-phone-raised); border-bottom-color: var(--lc-phone-line); }
html.lcPhoneDark .lcPhoneSheetBar .lcPhoneSheetTitle { color: var(--lc-phone-fg); }
/* The phone appointment form (Home.aspx scheduler). */
html.lcPhoneDark .rsAdvancedEdit :is(.rfbLabel, .fieldContainer > label) { color: var(--lc-phone-fg) !important; }
html.lcPhoneDark .rsAdvancedEdit .rsAdvancedSubmitArea { background: var(--lc-phone-raised); border-top-color: var(--lc-phone-line); }
