@charset "utf-8";
/* Mobile Responsiveness
   Activated when mobile.css is enabled via the site configuration flag.

   Breakpoints:
     ≤ 860px — fluid layout  (form fills viewport instead of fixed 800px)
     ≤ 600px — column collapse (all grid field containers go full-width)
     ≤ 480px — phone-specific adjustments
*/

/* ======================================================================
   FLUID LAYOUT — max-width: 860px
   Converts the fixed 800px containers to full-viewport-width.
   ====================================================================== */
@media screen and (max-width: 860px) {


    /* Core fixed-width containers */
    #MasterContainer,
    .Wrapper {
        width: 100%;
        max-width: 800px;
        padding-inline: 10px;
        box-sizing: border-box;
    }

    /* Header band */
    #Header {
        height: auto;
        margin: 0;
        padding-block: 15px;
    }
    #header-container {
        width: 100%;
        padding-inline: 10px;
        box-sizing: border-box;
        flex-wrap: wrap;
        gap: 10px;
    }
    #header-title-container {
        align-items: center;
    }

    /* Drop-down navigation bar */
    #FormMenuContainer {
        width: 100%;
        box-sizing: border-box;
        padding-inline: 20px;
    }

    /* Footer */
    #nvxgFooter {
        width: 100%;
        box-sizing: border-box;
        padding-inline: 10px;
    }

    /* Generic inner content wrapper */
    .wifContent {
        width: 100%;
    }

    #epValidationSummary a {
        display: block;
        height: 44px;
        white-space: normal;
    }

    /* Tab control strip */
    #UITabControlContainerMaster,
    #UITabControlContainer {
        width: 100%;
        box-sizing: border-box;
        padding-inline: 0;
    }

    /* Location search overlay */
    .wifLocationsSearchContent {
        max-width: 95%;
        width: 95%;
		max-height: 100vh;
    }
	.wifLocationsSearchTitleBar {
		height: 44px;
	}
	.wifLocationsSearchTitleBarClose {
		height: 44px;
		width: 44px;
	}
	.textSearchControls {
		flex-direction: column;
		flex-wrap: wrap;
		gap: 10px;
	}
	.textSearchControls-field,
	.textSearchControls-options {
		width: 48%;
	}
	.textSearchControls-search {
		width: 85%;
	}

	#IssueSelectionContainer label {
		max-width: 75%;
	}

    /* Confirmation / alert modal */
    #modalDialog {
        max-width: 90%;
        width: 90%;
        max-height: 80vh;
        display: flex;
        flex-direction: column;
    }
    #modalContent {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    #modalMsg {
        overflow-y: auto;
        flex: 1;
        min-height: 0;
    }
}

/* ======================================================================
   COLUMN COLLAPSE — max-width: 600px
   All partial-width grid field containers expand to the full 12 columns.
   ====================================================================== */
@media screen and (max-width: 600px) {

    /* Collapse all wifXXpContainer widths to full row */
    .wif15pContainer,
    .wif25pContainer,
    .wif33pContainer,
    .wif50pContainer,
    .wif66pContainer,
    .wif75pContainer,
    .wif100pContainer {
        grid-column: span 12;
    }

    /* Tighter section content padding */
    .SectionContainer .subsection .content {
        padding: 10px 15px;
    }

    /* Header: stack logo above title on small screens */
    #header-container {
        flex-direction: column;
        align-items: center;
    }
    #header-title-container h1 {
        font-size: 14pt;
        line-height: 18pt;
    }
    #header-title-container h2 {
        font-size: 10pt;
        line-height: 13pt;
    }

    /* Navigation: allow items to wrap instead of overflowing */
    ul.form_menu {
        width: 100%;
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
    }

    /* Sub-menu overflow prevention:
       Clamp dropdown width to the viewport and stop text from forcing
       the panel wider than the screen.
       Use display:none so collapsed sub-menus take no space in the flow
       (visibility:hidden in a position:relative context still reserves height).
       Reset visibility so the element is fully visible when displayed. */
    ul.form_menu ul {
        display: none;
        visibility: visible;
        width: 100%;
        max-width: 100%;
        white-space: nowrap;
        position: relative;
        box-sizing: border-box;
        right: auto;
        left: auto;
        top: auto;
    }

    ul.form_menu button {
        width: 100%;
        text-align: left;
    }

    /* Show sub-menu only when opened via click or keyboard (both use .submenu-open).
       aria-expanded is toggled alongside this class for screen-reader support. */
    ul.form_menu li.submenu-open > ul {
        display: block;
    }

    ul.form_menu li.submenu-open a {
        padding-inline-start: 20px;
    }

    ul.form_menu li {
        width: 100%;
    }

    /* Prevent items inside the dropdown from stretching the panel */
    ul.form_menu ul li a,
    ul.form_menu ul li button {
        white-space: nowrap;
        text-align: left;
    }

    /* Nested sub-menus: drop below the parent item instead of flying
       off to the right side of the screen. */
    ul.form_menu ul ul {
        left: 0;
        top: 100%;
    }

    /* Form-level and sub-level button bars: allow wrapping */
    .formLevelNavBar,
    .subLevelNavBar {
        flex-wrap: wrap;
    }

    /* Report key block: stack label and value vertically */
    #ReportKeyContainer {
        flex-direction: column;
        gap: 10px;
    }

    /* Multi-record editor: allow horizontal scroll for wide tables */
    .MultiRecordEditorContainer {
        overflow-x: auto;
    }

    /* Calendar input: fill available width */
    .wifCalendarInput {
        max-width: 100%;
        width: calc(100% - 40px);
    }

	.closeIcon {
		width: 44px;
		height: 44px;
		top: -25px;
	}
}

/* ======================================================================
   PHONE — max-width: 480px
   Fine-tuned adjustments for small phone viewports.
   ====================================================================== */
@media screen and (max-width: 480px) {

    body {
        margin-top: 0;
    }

    /* Compact header */
    #Header {
        padding-block: 10px;
    }
	.lang_menu_container {
		margin-inline-end: 10px;
	}

    /* Scale logo to fit */
    #logo {
        max-width: 140px;
        height: auto;
    }

    /* Section header text */
    .SectionContainer .header {
        font-size: 10pt;
    }

    /* Further tighten section padding */
    .SectionContainer .subsection .label {
        padding-inline-start: 15px;
    }
    .SectionContainer .subsection .content {
        padding: 8px 10px;
    }

    #modalDialog {
        max-width: 98%;
        width: 98%;
    }
    /* Nav menu items: tighter horizontal padding */
    ul.form_menu a,
    ul.form_menu button {
        padding: 0 10px;
        font-size: 8.5pt;
    }

    /* Issue type radio list: always stack vertically */
    .wifIssueInputRadioContainer {
        flex-direction: column;
    }

    /* Adequate touch targets for radio and checkbox labels */
    .wifInputRadioLabel {
        min-height: 36px;
        padding-block: 5px;
    }
    .wifInputCheckboxLabel {
        min-height: 36px;
    }
    .wifInputCheckbox,
    .wifInputRadio {
        height: 20px;
        width: 20px;
    }

    .setclockIcon,
    .clearclockIcon {
        width: 44px;
        height: 44px;
        font-size: 26px;
    }

    .rbImgCalendar,
    .rbImgCalendarClear {
        width: 44px;
        height: 44px;
        font-size: 26px;
    }
    .rbCalendarObj {
        position: fixed;
        left: 50%;
        top:  50%;
        transform: translate(-50%, -50%);
        width: 90%;
    }

    .rbCalTitleBar {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .rbCalMonthLabel {
        flex-basis: 100%;
        order: 2;
        text-align: center;
        margin-right: 0;
        font-size: 16pt;
        line-height: 40px;
    }
    .rbCalPreviousyear,
    .rbCalPreviousMonth,
    .rbCalNextMonth,
    .rbCalNextyear,
    .rbCalClose,
    .rbCalPreviousMonthDisabled,
    .rbCalNextMonthDisabled,
    .rbCalPreviousyearDisabled,
    .rbCalNextyearDisabled {
        width: 44px;
        height: 44px;
        font-size: 16pt;
    }
    
    [class^="rbDayWeek"],
    [class^="rbDayLabel"],
    .rbDayToday {
        height: 44px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 14pt;
    }

    .advSearchControls {
        display: block;
    }

    .advOptionHeaderRow {
        display: none;
    }

    .advOptionRow {
        display: grid;
        grid-template-columns: minmax(7rem, 1fr) minmax(0, 2fr);
        gap: 0.5rem 0.75rem;
        align-items: start;
        padding-block-end: .75rem;
    }

    .advOption-field {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .advOption-criteria {
        grid-column: 2;
        grid-row: 1;
    }

    .advOption-match {
        grid-column: 2;
        grid-row: 2;
    }

    .advOption-criteria select,
    .advOption-criteria input,
    .advOption-match select {
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
    }

    /* Footer: smaller text and wrap logos */
    #nvxgFooter {
        font-size: 7pt;
    }
    #nvxgFooterLogos {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        gap: 8px;
    }
}
