﻿:root {
    --genapp-text: #23323a;
    --genapp-muted: #65747c;
    --genapp-border: #d9e1e5;
    --genapp-surface: #ffffff;
    --genapp-background: #f4f7f8;
    --genapp-accent: #006d77;
    --genapp-accent-soft: #eaf5f6;
    --genapp-danger-soft: #fff4f2;
    --genapp-shadow: 0 8px 24px rgba(35, 50, 58, 0.10);
}

html, body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--genapp-text);
}

body.genapp-dialog {
    margin: 0;
    background: var(--genapp-background);
    font-size: 14px;
}

.genapp-dialog .dialog-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 22px 24px 28px;
}

.genapp-dialog .dialog-shell-wide {
    max-width: 980px;
}

.dialog-header {
    margin-bottom: 18px;
}

.dialog-title {
    margin: 0;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--genapp-accent);
}

.dialog-subtitle,
.dialog-help {
    margin: 6px 0 0;
    color: var(--genapp-muted);
    line-height: 1.45;
}

.dialog-card {
    box-sizing: border-box;
    background: var(--genapp-surface);
    border: 1px solid var(--genapp-border);
    border-radius: 7px;
    box-shadow: var(--genapp-shadow);
    padding: 18px;
    margin-bottom: 16px;
}

.dialog-card.compact {
    padding: 14px 16px;
}

.dialog-section-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--genapp-text);
}

.dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.dialog-actions-spread {
    justify-content: space-between;
}

.form-grid {
    display: grid;
    grid-template-columns: 150px minmax(220px, 1fr);
    gap: 12px 16px;
    align-items: center;
}

.form-grid .field-label {
    font-weight: 600;
    color: #3f5059;
}

.form-grid .field-control {
    min-width: 0;
}

.form-grid .field-control > .RadInput,
.form-grid .field-control > .RadComboBox,
.form-grid .field-control > span.RadInput,
.form-grid .field-control > span.RadComboBox {
    max-width: 100%;
}

.inline-analyte-panel {
    display: none;
    margin: 14px 0 16px;
    padding: 15px;
    background: var(--genapp-accent-soft);
    border: 1px solid #c9e4e6;
    border-radius: 7px;
}

.inline-analyte-panel.is-open {
    display: block;
}

.inline-analyte-panel .inline-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.inline-analyte-panel .inline-help {
    color: var(--genapp-muted);
    margin-bottom: 10px;
}

.foa-selection-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(210px, 1.1fr) minmax(240px, 1.4fr);
    gap: 14px;
    align-items: start;
}

.foa-selection-grid .selection-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.combo-columns ul {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    list-style: none;
    box-sizing: border-box;
}

.combo-columns li {
    box-sizing: border-box;
    padding-right: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.foa-method-col1 { width: 18%; }
.foa-method-col2 { width: 12%; }
.foa-method-col3 { width: 55%; }
.foa-method-col4 { width: 15%; }

.foa-delete-col1 { width: 28%; }
.foa-delete-col2 { width: 52%; }
.foa-delete-col3 { width: 20%; }

.analyte-col1 { width: 58%; }
.analyte-col2 { width: 17%; }
.analyte-col3 { width: 25%; }

.modern-grid {
    width: 100% !important;
}

.modern-grid .rgHeader,
.modern-grid .rgHeader a {
    font-weight: 600 !important;
}

.dialog-note {
    padding: 10px 12px;
    border-left: 3px solid var(--genapp-accent);
    background: #f8fbfb;
    color: #4f6068;
    line-height: 1.4;
    margin: 10px 0 14px;
}

.dialog-warning {
    padding: 10px 12px;
    background: var(--genapp-danger-soft);
    border: 1px solid #f0d4cd;
    border-radius: 6px;
}

.attestation-text {
    line-height: 1.55;
    max-height: 300px;
    overflow: auto;
    padding-right: 8px;
}

.genapp-app-polish .header-style {
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--genapp-accent);
}

.genapp-app-polish .RadWizard_Metro,
.genapp-app-polish .RadTabStrip_Metro,
.genapp-app-polish .RadGrid_Metro {
    font-family: "Segoe UI", Arial, sans-serif;
}

.genapp-app-polish .genapp-app-heading {
    margin: 0 0 12px;
    color: #42545d;
}

@media (max-width: 720px) {
    .genapp-dialog .dialog-shell,
    .genapp-dialog .dialog-shell-wide {
        padding: 14px;
    }

    .form-grid,
    .foa-selection-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .field-label {
        margin-bottom: -6px;
    }
}


/* Main application page -------------------------------------------------- */
.genapp-app-polish {
    box-sizing: border-box;
    max-width: 1180px;
    margin: 0 auto 30px;
    color: var(--genapp-text);
}

.genapp-app-banner {
    box-sizing: border-box;
    margin: 8px 0 14px;
    padding: 11px 14px;
    background: var(--genapp-surface);
    border: 1px solid var(--genapp-border);
    border-left: 4px solid var(--genapp-accent);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(35, 50, 58, 0.06);
    font-size: 14px;
    font-weight: 600;
    color: #42545d;
}

.genapp-app-polish .rwzContent {
    box-sizing: border-box;
    padding: 22px 24px 26px !important;
    background: #fff;
}

.genapp-app-polish .rwzBreadCrumb,
.genapp-app-polish .rwzNav {
    font-family: "Segoe UI", Arial, sans-serif;
}

.genapp-app-polish .genapp-form-table {
    border-collapse: separate;
    border-spacing: 0 5px;
}

.genapp-app-polish .genapp-form-table > tbody > tr > td {
    padding: 4px 7px;
    vertical-align: middle;
}

.genapp-app-polish .genapp-form-table > tbody > tr > td:first-child {
    color: #42545d;
}

.genapp-app-polish .RadButton_Metro,
.genapp-app-polish .RadInput_Metro,
.genapp-app-polish .RadComboBox_Metro,
.genapp-app-polish .RadListBox_Metro,
.genapp-app-polish .RadGrid_Metro {
    font-family: "Segoe UI", Arial, sans-serif;
}

.genapp-app-polish .RadGrid_Metro {
    margin-top: 8px;
}

.genapp-app-polish .rgHeader,
.genapp-app-polish .rgHeader a {
    font-weight: 600 !important;
}

/* Stand-alone workflow pages -------------------------------------------- */
.genapp-page-shell {
    box-sizing: border-box;
    max-width: 920px;
    margin: 22px auto 32px;
    padding: 0 18px;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--genapp-text);
}

.genapp-page-header {
    margin-bottom: 14px;
}

.genapp-page-header h1 {
    margin: 0;
    color: var(--genapp-accent);
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
}

.genapp-page-header p {
    margin: 5px 0 0;
    color: var(--genapp-muted);
}

.genapp-page-card {
    box-sizing: border-box;
    padding: 20px;
    background: var(--genapp-surface);
    border: 1px solid var(--genapp-border);
    border-radius: 7px;
    box-shadow: var(--genapp-shadow);
    line-height: 1.55;
}

.page-actions {
    margin-top: 18px;
}

.genapp-link-button {
    display: inline-block;
    padding: 8px 14px;
    background: var(--genapp-accent);
    border-radius: 4px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
}

.genapp-link-button:hover,
.genapp-link-button:focus {
    filter: brightness(0.93);
}


/* Address step --------------------------------------------------------- */
.genapp-section-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 2px 0 18px;
}

.genapp-section-help {
    margin-top: 4px;
    color: var(--genapp-muted);
    font-size: 13px;
    line-height: 1.4;
}

.address-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.genapp-app-polish .address-card {
    box-sizing: border-box;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 14px 14px;
    background: var(--genapp-surface);
    border: 1px solid var(--genapp-border);
    border-radius: 7px;
    box-shadow: 0 3px 12px rgba(35, 50, 58, 0.06);
}

.genapp-app-polish .address-card > tbody > tr:first-child > td {
    padding-top: 2px;
    padding-bottom: 9px;
    color: var(--genapp-accent);
}

.genapp-app-polish .address-card > tbody > tr > td:first-child {
    width: 36% !important;
    white-space: nowrap;
}

.genapp-app-polish .address-card > tbody > tr > td:last-child {
    width: 64% !important;
}

.genapp-app-polish .address-card .RadInput,
.genapp-app-polish .address-card .RadTextBox,
.genapp-app-polish .address-card input[type="text"] {
    max-width: 100%;
}

@media (max-width: 900px) {
    .address-card-grid {
        grid-template-columns: 1fr;
    }

    .genapp-section-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Site shell ----------------------------------------------------------- */
html {
    min-height: 100%;
}

body.genapp-site {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #f7f9fa;
    color: var(--genapp-text);
    font-size: 14px;
}

.genapp-site .container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1170px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.genapp-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #072c4a;
    border-bottom: 1px solid #072c4a;
    box-shadow: 0 1px 8px rgba(17, 39, 55, 0.16);
}

.genapp-nav-shell {
    display: flex;
    min-height: 54px;
    align-items: stretch;
}

.genapp-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 0 18px 0 0;
    color: #fff !important;
    font: 500 18px "Segoe UI", Arial, sans-serif;
    text-decoration: none !important;
    white-space: nowrap;
}

.genapp-brand:hover,
.genapp-brand:focus {
    color: #fff !important;
    text-decoration: none !important;
}

.genapp-nav-panel {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: stretch;
    justify-content: space-between;
}

.genapp-nav-list {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.genapp-nav-list > li {
    display: flex;
    align-items: stretch;
}

.genapp-nav-list a,
.genapp-nav-list > li > a {
    display: flex;
    align-items: center;
    padding: 0 13px;
    color: #7ce1e6 !important;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
}

.genapp-nav-list a:hover,
.genapp-nav-list a:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    text-decoration: none !important;
}

.genapp-nav-account {
    margin-left: auto;
}

.genapp-nav-toggle {
    display: none;
    margin: 8px 0 8px auto;
    padding: 6px 9px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font: 600 13px "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

.genapp-nav-toggle:hover,
.genapp-nav-toggle:focus {
    background: rgba(255, 255, 255, 0.09);
    outline: none;
}

.genapp-nav-toggle-bars {
    display: inline-flex;
    width: 18px;
    flex-direction: column;
    gap: 3px;
}

.genapp-nav-toggle-bars > span {
    display: block;
    height: 2px;
    border-radius: 1px;
    background: #fff;
}

.genapp-main-content {
    min-height: calc(100vh - 126px);
    padding-top: 24px;
    padding-bottom: 34px;
}

.genapp-site-footer {
    border-top: 1px solid var(--genapp-border);
    background: #fff;
    color: var(--genapp-muted);
    padding: 17px 0 12px;
    font-size: 13px;
}

.genapp-site-footer p {
    margin: 0;
}

/* Minimal Bootstrap-3 compatibility for the stock WebForms account pages.
   This intentionally covers form/layout classes still used by the original
   Account/*.aspx pages without loading Bootstrap's CSS or JavaScript. */
.genapp-site .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.genapp-site .col-md-2,
.genapp-site .col-md-4,
.genapp-site .col-md-6,
.genapp-site .col-md-8,
.genapp-site .col-md-10,
.genapp-site .col-md-12 {
    box-sizing: border-box;
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.genapp-site .col-md-2 { width: 16.66666667%; }
.genapp-site .col-md-4 { width: 33.33333333%; }
.genapp-site .col-md-6 { width: 50%; }
.genapp-site .col-md-8 { width: 66.66666667%; }
.genapp-site .col-md-10 { width: 83.33333333%; }
.genapp-site .col-md-12 { width: 100%; }
.genapp-site .col-md-offset-2 { margin-left: 16.66666667%; }

.genapp-site .form-horizontal .form-group {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-bottom: 15px;
    margin-left: -15px;
}

.genapp-site .control-label {
    padding-top: 7px;
    font-weight: 600;
}

.genapp-site .form-control {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 420px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #c8d2d7;
    border-radius: 4px;
    background: #fff;
    color: #2b3a42;
    font: 14px "Segoe UI", Arial, sans-serif;
    line-height: 1.4;
}

.genapp-site .form-control:focus {
    border-color: #4d9fa6;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(0, 109, 119, 0.12);
}

.genapp-site textarea.form-control {
    height: auto;
}

.genapp-site .btn {
    display: inline-block;
    min-height: 34px;
    padding: 6px 13px;
    border: 1px solid #bcc8ce;
    border-radius: 4px;
    background: #fff;
    color: #283a43;
    font: 600 14px "Segoe UI", Arial, sans-serif;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
}

.genapp-site .btn:hover,
.genapp-site .btn:focus,
.genapp-site .btn-default:hover,
.genapp-site .btn-default:focus {
    background: #edf3f5;
    color: #1d3039;
    text-decoration: none;
}

.genapp-site .btn-primary {
    border-color: #006d77;
    background: #006d77;
    color: #fff;
}

.genapp-site .btn-primary:hover,
.genapp-site .btn-primary:focus {
    background: #005a62;
    color: #fff;
}

.genapp-site .text-danger,
.genapp-site .validation-summary-errors,
.genapp-site .field-validation-error {
    color: #a63d2d;
}

.genapp-site .checkbox,
.genapp-site .radio {
    margin-top: 8px;
    margin-bottom: 8px;
}

.genapp-site hr {
    height: 0;
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #e2e8eb;
}

.genapp-site .dl-horizontal dt {
    float: left;
    width: 160px;
    clear: left;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.genapp-site .dl-horizontal dd {
    margin-left: 180px;
    margin-bottom: 8px;
}

.genapp-keepalive {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    border: 0;
}

@media (max-width: 850px) {
    .genapp-start-actions {
        align-items: stretch;
    }

    .genapp-start-actions-primary,
    .genapp-start-actions-danger {
        width: 100%;
    }

    .genapp-start-actions-danger {
        margin-left: 0;
        padding-left: 0;
        padding-top: 14px;
        border-left: 0;
        border-top: 1px solid #e1c7c2;
    }
    .genapp-nav-shell {
        flex-wrap: wrap;
    }

    .genapp-brand {
        min-height: 54px;
    }

    .genapp-nav-toggle {
        display: inline-flex;
    }

    .genapp-nav-panel {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 2px 0 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .genapp-nav-panel.is-open {
        display: flex;
    }

    .genapp-nav-list {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .genapp-nav-list > li,
    .genapp-nav-list a,
    .genapp-nav-list > li > a {
        width: 100%;
    }

    .genapp-nav-list a,
    .genapp-nav-list > li > a {
        box-sizing: border-box;
        min-height: 42px;
        padding: 8px 4px;
    }

    .genapp-nav-account {
        margin-left: 0;
        padding-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.09);
    }

    .genapp-site .col-md-2,
    .genapp-site .col-md-4,
    .genapp-site .col-md-6,
    .genapp-site .col-md-8,
    .genapp-site .col-md-10,
    .genapp-site .col-md-12 {
        width: 100%;
    }

    .genapp-site .col-md-offset-2 {
        margin-left: 0;
    }

    .genapp-site .form-horizontal .form-group {
        display: block;
    }

    .genapp-site .control-label {
        display: block;
        padding-top: 0;
        padding-bottom: 5px;
    }

    .genapp-site .dl-horizontal dt {
        float: none;
        width: auto;
        text-align: left;
    }

    .genapp-site .dl-horizontal dd {
        margin-left: 0;
    }
}

/* Home page ------------------------------------------------------------ */
.genapp-home-shell {
    max-width: 1120px;
    margin: 16px auto 34px;
}

.genapp-home-hero {
    padding: 42px 46px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #07375a 0%, #006d77 100%);
    box-shadow: var(--genapp-shadow);
}

.genapp-home-eyebrow {
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    font-weight: 600;
    color: #a9ebee;
}

.genapp-home-hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: 34px;
    line-height: 1.18;
    font-weight: 600;
}

.genapp-home-hero p {
    margin: 16px 0 0;
    max-width: 760px;
    font-size: 17px;
    line-height: 1.55;
    color: #e7f5f6;
}

.genapp-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.genapp-home-hero .genapp-link-button {
    background: #fff;
    color: #075268 !important;
}

.genapp-secondary-link {
    display: inline-block;
    padding: 8px 14px;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
}

.genapp-secondary-link:hover,
.genapp-secondary-link:focus {
    background: rgba(255,255,255,.1);
}

.genapp-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.genapp-home-card {
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--genapp-border);
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(35, 50, 58, 0.06);
}

.genapp-home-card h2 {
    margin: 0 0 11px;
    font-size: 18px;
    font-weight: 600;
    color: var(--genapp-accent);
}

.genapp-home-card p {
    color: #53646d;
    line-height: 1.55;
}

/* Applications/start page --------------------------------------------- */
.genapp-start-shell {
    max-width: 1080px;
    margin: 16px auto 34px;
}

.genapp-start-header {
    display: block;
}

.genapp-start-header h1 {
    margin-bottom: 3px;
}

.genapp-start-card {
    padding: 18px 20px 20px;
}

.start-app-grid {
    margin-top: 0 !important;
}

.genapp-inline-alert {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #e5c4b9;
    border-radius: 5px;
    background: #fff7f4;
    color: #8a3d2f;
    font-weight: 600;
    line-height: 1.4;
}

.genapp-start-support-option {
    margin-top: 14px;
    color: var(--genapp-muted);
}

.genapp-start-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #e3e9ec;
}

.genapp-start-actions-primary,
.genapp-start-actions-danger {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.genapp-start-actions-danger {
    margin-left: auto;
    padding-left: 22px;
    border-left: 1px solid #e1c7c2;
}

.genapp-remove-application.rbButton,
.genapp-remove-application.RadButton {
    border-color: #b65b4d;
}

.foa-unlisted-hint {
    display: inline-block;
    margin-left: 10px;
    color: var(--genapp-muted);
    font-size: 13px;
    font-style: italic;
    vertical-align: middle;
}

/* Shared form helpers -------------------------------------------------- */
.field-validation-error {
    display: block;
    margin-top: 5px;
    color: #a63d2d;
    font-size: 12px;
}

.delete-confirm-field {
    margin: 18px 0 4px;
}

.genapp-html-button {
    min-height: 32px;
    padding: 6px 14px;
    border: 1px solid #c9d2d7;
    border-radius: 3px;
    background: #fff;
    color: #24343c;
    font: 14px "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

.genapp-html-button:hover,
.genapp-html-button:focus {
    background: #f1f5f6;
}

.genapp-danger-button {
    border-color: #b34d3f;
    background: #b34d3f;
    color: #fff;
}

.genapp-danger-button:hover,
.genapp-danger-button:focus {
    background: #993d31;
}

.genapp-contact-shell {
    max-width: 980px;
}

.genapp-contact-card {
    padding: 12px 16px 6px;
}

.genapp-view-switcher {
    margin: 18px 0;
    color: var(--genapp-muted);
}

@media (max-width: 850px) {
    .genapp-home-grid {
        grid-template-columns: 1fr;
    }

    .genapp-home-hero {
        padding: 30px 26px;
    }

    .genapp-home-hero h1 {
        font-size: 28px;
    }

    .genapp-start-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .genapp-main-content {
        padding-top: 16px;
    }

    .genapp-home-shell,
    .genapp-start-shell {
        margin-top: 8px;
    }

    .genapp-home-hero {
        padding: 24px 20px;
    }

    .genapp-home-hero h1 {
        font-size: 24px;
    }

    .genapp-start-card {
        padding: 12px;
    }
}

/* My Account */
.genapp-account-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 0 40px;
}

.genapp-account-heading {
    margin-bottom: 24px;
}

.genapp-account-heading h2 {
    margin: 0 0 8px;
    color: #6fe8f2;
    font-size: 2rem;
}

.genapp-account-heading p,
.genapp-account-card-intro,
.genapp-account-help {
    color: #b9b2aa;
}

.genapp-account-card {
    margin: 0 0 22px;
    padding: 24px;
    border: 1px solid #3b4d52;
    border-radius: 10px;
    background: #171b1d;
}

.genapp-account-card h3 {
    margin: 0 0 6px;
    color: #f0ece5;
    font-size: 1.25rem;
}

.genapp-account-card-intro {
    margin: 0 0 20px;
}

.genapp-account-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.genapp-account-field {
    min-width: 0;
}

.genapp-account-field > label,
.genapp-account-field > span:first-child {
    display: block;
    margin-bottom: 6px;
    color: #ddd7cf;
    font-weight: 600;
}

.genapp-account-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #536369;
    border-radius: 4px;
    background: #111416;
    color: #f2eee7;
    font: inherit;
}

.genapp-account-input:focus {
    outline: 2px solid #35c9d5;
    outline-offset: 1px;
    border-color: #35c9d5;
}

.genapp-account-readonly {
    min-height: 40px;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #39464b;
    border-radius: 4px;
    background: #202629;
    color: #d7d1c9;
}

.genapp-account-help {
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.35;
}

.genapp-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.genapp-account-error {
    display: block;
    margin-top: 14px;
    color: #ff8a72;
    font-weight: 600;
}

.genapp-account-message {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 6px;
}

.genapp-account-message-success {
    border: 1px solid #2b756b;
    background: #143d38;
    color: #c9f5e9;
}

@media (max-width: 720px) {
    .genapp-account-form {
        grid-template-columns: 1fr;
    }

    .genapp-account-card {
        padding: 18px;
    }
}

/* Home page NELAP logo ------------------------------------------------- */
.genapp-home-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 36px;
    align-items: center;
}

.genapp-home-hero-copy {
    min-width: 0;
}

.genapp-home-logo-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.genapp-home-logo {
    display: block;
    width: min(100%, 230px);
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .22));
}

@media (max-width: 850px) {
    .genapp-home-hero-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .genapp-home-logo-panel {
        min-height: 0;
        justify-content: flex-start;
    }

    .genapp-home-logo {
        width: 180px;
    }
}

@media (max-width: 600px) {
    .genapp-home-logo {
        width: 150px;
    }
}

/* FOA save-state ------------------------------------------------------ */
.genapp-foa-save-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
    padding: 13px 15px;
    border: 1px solid #3a494f;
    border-radius: 6px;
    background: #20282c;
}

.genapp-foa-save-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.genapp-foa-save-message {
    display: block;
    font-weight: 700;
}

.genapp-foa-save-help {
    display: block;
    color: #b9b3aa;
    font-size: 0.9rem;
    line-height: 1.35;
}

.genapp-foa-save-state-saved {
    border-color: #2d6f66;
    background: #18332f;
}

.genapp-foa-save-state-saved .genapp-foa-save-message {
    color: #8ee4d0;
}

.genapp-foa-save-state-unsaved {
    border-color: #a76c25;
    background: #3a2b19;
}

.genapp-foa-save-state-unsaved .genapp-foa-save-message {
    color: #ffd08a;
}

/* Review & Submit preflight ------------------------------------------ */
.genapp-review-check-intro {
    max-width: 980px;
    line-height: 1.5;
}

.genapp-preflight {
    max-width: 1050px;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #3a494f;
    border-radius: 7px;
    background: #1d2427;
}

.genapp-preflight-ready {
    border-color: #2d6f66;
}

.genapp-preflight-has-errors {
    border-color: #8f4a3d;
}

.genapp-preflight-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e7e2da;
}

.genapp-preflight-summary {
    margin-top: 4px;
    color: #bcb6ae;
    line-height: 1.4;
}

.genapp-preflight-group {
    margin-top: 18px;
}

.genapp-preflight-group-title {
    margin-bottom: 8px;
    color: #76e4ec;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.genapp-preflight-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.genapp-preflight-item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid #303a3e;
}

.genapp-preflight-item:first-child {
    border-top: 0;
}

.genapp-preflight-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
}

.genapp-preflight-item-error .genapp-preflight-icon {
    background: #6b3028;
    color: #ffd0c8;
}

.genapp-preflight-item-warning .genapp-preflight-icon {
    background: #684b1d;
    color: #ffe0a3;
}

.genapp-preflight-item-pass .genapp-preflight-icon {
    background: #1d594f;
    color: #baf5e7;
}

.genapp-preflight-item-info .genapp-preflight-icon {
    background: #244e61;
    color: #c8edf7;
}

.genapp-preflight-message {
    line-height: 1.4;
}

.genapp-preflight-action {
    white-space: nowrap;
    margin-left: 12px;
}

@media (max-width: 760px) {
    .genapp-foa-save-state {
        align-items: stretch;
        flex-direction: column;
    }

    .genapp-preflight-item {
        grid-template-columns: 26px minmax(0, 1fr);
    }

    .genapp-preflight-action {
        grid-column: 2;
        margin: 2px 0 0;
    }
}

/* Review & Submit summary/workflow ----------------------------------- */
.genapp-review-summary-card,
.genapp-review-stage {
    max-width: 1050px;
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid #3a494f;
    border-radius: 7px;
    background: #1d2427;
}

.genapp-review-summary-card {
    border-color: #34545b;
}

.genapp-review-section-title {
    margin-bottom: 12px;
    color: #76e4ec;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.genapp-review-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 20px;
}

.genapp-review-summary-item {
    min-width: 0;
    padding: 8px 0;
}

.genapp-review-summary-label {
    display: block;
    margin-bottom: 3px;
    color: #aaa49c;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.genapp-review-summary-value {
    display: block;
    color: #eee9e1;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.genapp-review-summary-unavailable {
    color: #ffd08a;
}

.genapp-review-stage {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
}

.genapp-review-stage-number {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #244e61;
    color: #c8edf7;
    font-weight: 800;
}

.genapp-review-stage-content {
    min-width: 0;
}

.genapp-review-stage-copy {
    max-width: 900px;
    margin: 0;
    color: #d8d2ca;
    line-height: 1.5;
}

.genapp-review-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

.genapp-review-submit-stage {
    border-color: #2d6f66;
}

.genapp-review-stage .genapp-preflight {
    max-width: none;
}

@media (max-width: 800px) {
    .genapp-review-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .genapp-review-summary-grid {
        grid-template-columns: 1fr;
    }

    .genapp-review-stage {
        grid-template-columns: 1fr;
    }
}


/* Start-page paging --------------------------------------------------- */
.start-app-grid .rgPager {
    white-space: normal;
}

.start-app-grid .rgPager td {
    padding-top: 8px;
    padding-bottom: 8px;
}
