body.legacy-vendor-theme,
body.legacy-vendor-theme html {
    overflow-x: hidden;
}

body.legacy-vendor-theme {
    background: #f3f4f6 !important;
    color: #334155;
}

body.legacy-vendor-theme *,
body.legacy-vendor-theme *::before,
body.legacy-vendor-theme *::after {
    box-sizing: border-box;
}

body.legacy-vendor-theme .section {
    display: flex !important;
    align-items: stretch;
    width: 100% !important;
    min-height: 100vh !important;
    overflow: visible !important;
}

body.legacy-vendor-theme .side-left {
    width: 272px;
    background: #ffffff !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}

body.legacy-vendor-theme .sidebar {
    padding: 0.85rem 0 1.5rem;
}

body.legacy-vendor-theme .sidebar > li {
    margin: 0 0.85rem 0.5rem;
}

body.legacy-vendor-theme .sidebar > li > a {
    min-height: 62px;
    padding: 1rem 1.05rem;
    gap: 1rem;
    border-radius: 0.85rem;
}

body.legacy-vendor-theme .nav-icon-badge {
    width: 44px;
    height: 44px;
    min-width: 44px;
}

body.legacy-vendor-theme .sidebar-icon {
    font-size: 1.1rem;
}

body.legacy-vendor-theme .sidebar-text {
    font-size: 1.5rem;
    font-weight: 700;
}

body.legacy-vendor-theme #content,
body.legacy-vendor-theme #content.content {
    display: flex;
    flex-direction: column;
    margin-left: 272px !important;
    width: calc(100% - 272px) !important;
    max-width: calc(100% - 272px) !important;
    min-height: 100vh !important;
    min-width: 0 !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    overflow-x: hidden;
    overflow-y: visible !important;
    padding: 1.75rem !important;
}

body.legacy-vendor-theme.login-view #content,
body.legacy-vendor-theme.login-view #content.content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.legacy-vendor-theme .legacy-mobile-topbar {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

body.legacy-vendor-theme #mainContain,
body.legacy-vendor-theme .dashboardModule,
body.legacy-vendor-theme #dashboardUpcomingFlights,
body.legacy-vendor-theme #discAgency,
body.legacy-vendor-theme fieldset {
    width: 100% !important;
    max-width: 100% !important;
}

body.legacy-vendor-theme #mainContain {
    flex: 1 0 auto;
}

body.legacy-vendor-theme .dashboardModule,
body.legacy-vendor-theme #dashboardUpcomingFlights,
body.legacy-vendor-theme #discAgency {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: none;
}

body.legacy-vendor-theme .legacy-mobile-brand {
    min-width: 0;
    max-width: calc(100% - 64px);
    overflow: hidden;
}

body.legacy-vendor-theme .legacy-mobile-brand .brand-logo {
    max-width: 42px;
    flex: 0 0 auto;
}

body.legacy-vendor-theme .legacy-mobile-brand span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.legacy-vendor-theme #divLogin {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    z-index: auto !important;
    width: min(440px, calc(100vw - 2rem));
    padding: 0;
    margin: 0 auto;
}

body.legacy-vendor-theme .login-page-shell {
    min-height: calc(100vh - 5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0 3rem;
}

body.legacy-vendor-theme #divLogin .login-intro-panel {
    margin-bottom: 1rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    text-align: center;
}

body.legacy-vendor-theme #divLogin .login-intro-eyebrow {
    margin-bottom: 0.45rem;
    color: #64748b;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.legacy-vendor-theme #divLogin .login-intro-title {
    margin: 0;
    color: #0f172a;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
}

body.legacy-vendor-theme #divLogin .login-intro-title:first-letter {
    color: #0f172a !important;
}

body.legacy-vendor-theme #divLogin .login-intro-copy {
    margin: 0.75rem 0 0;
    color: #475569;
    font-size: 1.2rem;
    line-height: 1.55;
}

body.legacy-vendor-theme #divLogin .login-card {
    width: 100% !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14) !important;
    overflow: hidden;
}

body.legacy-vendor-theme #divLogin .legend {
    padding: 1.2rem 1.4rem !important;
    text-align: center;
}

body.legacy-vendor-theme #divLogin .fieldSetData {
    padding: 1.5rem !important;
    text-align: center;
}

body.legacy-vendor-theme #divLogin .toggleforms {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.legacy-vendor-theme #divLogin input[type="text"],
body.legacy-vendor-theme #divLogin input[type="password"] {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1.15rem;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
}

body.legacy-vendor-theme #divLogin .login-submit-button {
    align-self: center;
    min-height: 44px;
    min-width: 120px;
    padding: 1.85rem 0.85rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 0.85rem;
}

body.legacy-vendor-theme #divLogin .toggleforms a {
    display: inline-block;
    margin-top: 0.35rem;
    text-align: center;
}

body.legacy-vendor-theme .legacy-menu-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.85rem;
    background: #ffffff;
    color: #334155 !important;
    box-shadow: none !important;
}

body.legacy-vendor-theme .legacy-menu-toggle:hover {
    background: #f8fafc;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

body.legacy-vendor-theme .legacy-menu-toggle span {
    position: absolute;
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition:
        transform 0.22s ease,
        opacity 0.18s ease,
        top 0.22s ease,
        background-color 0.2s ease;
}

body.legacy-vendor-theme .legacy-menu-toggle span:nth-child(1) {
    top: 10px;
}

body.legacy-vendor-theme .legacy-menu-toggle span:nth-child(2) {
    top: 18px;
}

body.legacy-vendor-theme .legacy-menu-toggle span:nth-child(3) {
    top: 26px;
}

body.legacy-vendor-theme
    .legacy-menu-toggle[aria-expanded="true"]
    span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

body.legacy-vendor-theme
    .legacy-menu-toggle[aria-expanded="true"]
    span:nth-child(2) {
    opacity: 0;
}

body.legacy-vendor-theme
    .legacy-menu-toggle[aria-expanded="true"]
    span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
}

body.legacy-vendor-theme fieldset {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.legacy-vendor-theme .legend {
    font-size: 1.75rem;
    line-height: 1.3;
    padding: 1.1rem 1.35rem !important;
}

body.legacy-vendor-theme .dashboardModule .legend,
body.legacy-vendor-theme #dashboardUpcomingFlights .legend,
body.legacy-vendor-theme #discAgency .legend {
    font-size: 1.75rem;
    font-weight: 700;
}

body.legacy-vendor-theme .fieldSetData {
    padding: 1.75rem !important;
}

body.legacy-vendor-theme .dashboard-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
}

body.legacy-vendor-theme .proposal-document-panel {
    margin-bottom: 1.5rem;
}

body.legacy-vendor-theme .proposal-document-intro,
body.legacy-vendor-theme .proposal-document-empty {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

body.legacy-vendor-theme .proposal-document-group + .proposal-document-group {
    margin-top: 1.5rem;
}

body.legacy-vendor-theme .proposal-document-group-title {
    margin: 0 0 0.85rem;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
}

body.legacy-vendor-theme .proposal-document-name {
    font-weight: 700;
}

body.legacy-vendor-theme .proposal-document-meta {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.9rem;
}

body.legacy-vendor-theme .proposal-document-download {
    white-space: nowrap;
}

body.legacy-vendor-theme .dashboard-filter-btn {
    padding: 0.8rem 1.1rem;
    min-height: 46px;
    border-radius: 0.65rem;
    font-size: 1.25rem;
    font-weight: 700;
    border: 1px solid #3b82f6 !important;
    background: #64748b;
    border-color: #64748b !important;
}

body.legacy-vendor-theme .dashboard-filter-btn:hover {
    background: #475569;
    border-color: #475569 !important;
}

body.legacy-vendor-theme .dashboard-filter-btn.selected {
    background: #3b82f6;
    border-color: #3b82f6 !important;
}

body.legacy-vendor-theme .dashboard-filter-btn.selected:hover {
    background: #2563eb;
    border-color: #2563eb !important;
}

body.legacy-vendor-theme .datagrid thead th,
body.legacy-vendor-theme .popTable tr th,
body.legacy-vendor-theme .rfpDataHeader th {
    font-size: 1.25rem;
}

body.legacy-vendor-theme .dashboardModule .datagrid tbody td {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
    vertical-align: middle;
}

body.legacy-vendor-theme #discAgency .fieldSetData span {
    font-size: 1.5rem !important;
    line-height: 1.6;
}

body.legacy-vendor-theme #discAgency .discount-agency-cta {
    font-size: 1.5rem !important;
    line-height: 1.2;
    padding: 0.9rem 1.35rem;
    gap: 0.55rem;
}

body.legacy-vendor-theme #discAgency .discount-agency-cta .fa {
    font-size: 1.1em;
}

body.legacy-vendor-theme #dashboardUpcomingFlights .fdDay {
    font-size: 1.25rem;
    line-height: 1.35;
}

body.legacy-vendor-theme #dashboardUpcomingFlights .fdInfo,
body.legacy-vendor-theme #dashboardUpcomingFlights .fdInfo a {
    font-size: 1.25rem;
    line-height: 1.45;
}

body.legacy-vendor-theme .warningMessage,
body.legacy-vendor-theme .errorMessage,
body.legacy-vendor-theme .successMessage {
    position: relative;
    z-index: auto;
    overflow: hidden;
}

body.legacy-vendor-theme .warningMessage .header,
body.legacy-vendor-theme .errorMessage .header,
body.legacy-vendor-theme .successMessage .header {
    position: static !important;
    display: block !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 0 0.5rem !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto !important;
    overflow: visible !important;
    border: 0 !important;
    background: none !important;
    color: inherit !important;
    line-height: 1.3 !important;
    transform: none !important;
}

body.legacy-vendor-theme .warningMessage .warningContent,
body.legacy-vendor-theme .errorMessage .errorContent {
    position: static !important;
    z-index: auto !important;
}

body.legacy-vendor-theme .onlyIfSubmittingDOA .submission-policy-note {
    display: inline;
    font-size: 16px;
    line-height: 1.5;
}

body.legacy-vendor-theme .main-footer {
    position: static !important;
    width: 100%;
    margin-top: auto;
    padding: 1.25rem 0 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--color-text-muted);
}

body.legacy-vendor-theme .main-footer strong {
    font-weight: 600;
}

@media (max-width: 900px) {
    body.legacy-vendor-theme .section {
        display: block !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    body.legacy-vendor-theme .side-left {
        width: 288px;
        max-width: 88vw;
        height: 100vh !important;
        min-height: 100vh !important;
        z-index: 50 !important;
    }

    body.legacy-vendor-theme #content,
    body.legacy-vendor-theme #content.content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
        padding: 1rem !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    body.legacy-vendor-theme .login-page-shell {
        min-height: 0;
        padding: 2rem 0 2.5rem;
    }

    body.legacy-vendor-theme #divLogin {
        width: min(440px, calc(100vw - 1rem));
    }

    body.legacy-vendor-theme #divLogin .login-intro-panel,
    body.legacy-vendor-theme #divLogin .login-card {
        border-radius: 1.25rem;
    }

    body.legacy-vendor-theme #divLogin .login-intro-title {
        font-size: 1.7rem;
    }

    body.legacy-vendor-theme #divLogin .login-intro-copy {
        font-size: 1rem;
    }

    body.legacy-vendor-theme .legacy-mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 15;
        margin-bottom: 1rem;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.legacy-vendor-theme .legacy-menu-toggle {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }

    body.legacy-vendor-theme .dashboard-filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100% !important;
        max-width: 100% !important;
        padding-bottom: 0.15rem;
        margin-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.legacy-vendor-theme .dashboard-filter-bar::-webkit-scrollbar {
        display: none;
    }

    body.legacy-vendor-theme .dashboard-filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 1rem;
    }

    body.legacy-vendor-theme .legend,
    body.legacy-vendor-theme .dashboardModule .legend,
    body.legacy-vendor-theme #dashboardUpcomingFlights .legend,
    body.legacy-vendor-theme #discAgency .legend {
        font-size: 1.5rem;
    }
}

@media (max-width: 520px) {
    body.legacy-vendor-theme #content,
    body.legacy-vendor-theme #content.content,
    body.legacy-vendor-theme #mainContain {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    body.legacy-vendor-theme .legacy-mobile-brand span {
        display: none;
    }

    body.legacy-vendor-theme .sidebar > li > a {
        min-height: 58px;
    }

    body.legacy-vendor-theme .sidebar-text {
        font-size: 1.4rem;
    }
}
