/*
    Green for dark mode:  #4DC5B3
    Orange for dark mode: #f8a71e
    Red for dark mode: #e91e63
*/
:root {
    --visity-font-sans-serif: Calibri, Carlito, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --bs-font-sans-serif: var(--visity-font-sans-serif);
    --bs-body-font-family: var(--visity-font-sans-serif);
}

html {
    font-family: var(--visity-font-sans-serif);
}

body,
button,
input,
optgroup,
select,
textarea {
    font-family: var(--visity-font-sans-serif);
}

/* DevExtreme themes declare their own font after site.css is loaded. */
.dx-widget,
.dx-widget input,
.dx-widget button,
.dx-widget textarea {
    font-family: var(--visity-font-sans-serif) !important;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px; /* was 16px */
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html, body {
  position: relative;
  height: 100%;
  margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.pan-menubar {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    height: 100%;
}

.pan-body {
    flex: 1 1 auto;
    min-width: 0;
/*    width: 100%;
    height: 100%;
*/}

.pan-question-heading {
    --bs-alert-padding: 0;
    --bs-alert-margin-bottom: 0;
}

.survey-question-edit,
.survey-question-rules-edit,
.survey-question-remove,
.survey-question-add-before,
.survey-question-add-after {
    cursor: pointer;
}

.main-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.sidebar {
    width: 55px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
}

.sidebar i {
    margin: 1rem 0;
    font-size: 1.2rem;
}

.page-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

header, footer {
    background-color: #363640;
    color: white;
    flex: 0 0 auto;
}

/* Authenticated portal theme. The public company site keeps the dark styles. */
.portal-authenticated {
    --portal-accent: #0d6efd;
    --portal-border: #dfe4ec;
    --portal-canvas: #f5f7fa;
    --portal-surface: #ffffff;
    --portal-text: #172033;
    background: var(--portal-canvas);
    color: var(--portal-text);
}

.portal-authenticated .main-content,
.portal-authenticated .page-content {
    background: var(--portal-canvas);
}

.portal-authenticated header .navbar {
    background: linear-gradient(110deg, #0878ed 0%, #064bc7 100%) !important;
    border-bottom: 0 !important;
    box-shadow: 0 3px 12px rgba(15, 56, 130, .18);
}

.portal-authenticated .pan-menubar {
    width: 136px;
    min-width: 136px;
    max-width: 136px;
    background: var(--portal-surface);
    border-right: 1px solid var(--portal-border);
}

.portal-authenticated .pan-menubar .dx-tabs-wrapper {
    padding-top: 6px;
}

.portal-authenticated .pan-menubar .dx-tab {
    min-height: 56px;
    color: #263247;
}

.portal-authenticated .pan-menubar .dx-tab-selected {
    color: var(--portal-accent);
    background: #f3f7ff;
    box-shadow: inset 4px 0 0 var(--portal-accent);
}

.portal-authenticated .page-content {
    padding: 14px 16px;
}

.portal-authenticated footer {
    color: #ffffff !important;
    background: linear-gradient(110deg, #0878ed 0%, #064bc7 100%);
    border-color: transparent !important;
}

.portal-authenticated .pan-summary-section {
    padding: 8px 14px;
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(25, 39, 64, .06);
}

.portal-authenticated .pan-summary-section div.row {
    background: transparent;
    border-color: #e7ebf1;
    padding-top: 9px;
    padding-bottom: 9px;
}

.portal-authenticated .pan-summary-section .value-cell,
.portal-authenticated .pan-summary-section .value-cell a {
    color: #0067ed;
}

.portal-authenticated .widget-container {
    margin-top: 12px;
    padding-top: 0;
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    box-shadow: 0 2px 8px rgba(25, 39, 64, .06);
}

.portal-authenticated .tab-content-fill {
    margin-top: 0 !important;
    padding: 12px;
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-top: 0;
    border-radius: 0 0 7px 7px;
    box-shadow: 0 4px 8px rgba(25, 39, 64, .06);
}

.portal-authenticated .grid-panel {
    padding: 14px 0;
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(25, 39, 64, .06);
}

.portal-authenticated .dx-datagrid,
.portal-authenticated .dx-datagrid-headers,
.portal-authenticated .dx-datagrid-rowsview,
.portal-authenticated .dx-tabpanel,
.portal-authenticated .dx-tabs {
    background-color: var(--portal-surface);
}

.portal-authenticated .dx-datagrid-headers {
    color: #25324a;
    background: #f5f8fc;
}

.portal-authenticated .dx-datagrid-borders > .dx-datagrid-headers,
.portal-authenticated .dx-datagrid-borders > .dx-datagrid-rowsview,
.portal-authenticated .dx-datagrid-borders > .dx-datagrid-total-footer {
    border-color: var(--portal-border);
}

.portal-authenticated .btn-secondary {
    color: #243047;
    background: #f8fafc;
    border-color: #cfd6e2;
}

/* Portal action buttons should fit their labels instead of filling a grid column. */
.portal-authenticated .form-group .btn-group,
.portal-authenticated .form-group .btn-group > .btn {
    width: auto !important;
}

.portal-authenticated .form-group.row > [class*="col-"]:has(> .btn-group) {
    flex: 0 0 auto;
    width: auto;
}

@media (max-width: 767.98px) {
    .portal-authenticated .pan-menubar {
        width: 88px;
        min-width: 88px;
        max-width: 88px;
    }

    .portal-authenticated .page-content {
        padding: 10px;
    }
}

.footer {
    position: static !important;
}

.child-page-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.grid-page-container {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.tab-content-fill {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* DataExtreme Date Range (start) */

.demo-container {
    height: 690px;
}

.dx-field {
    padding: 8px;
}

.selected-days-wrapper {
    font-size: 12px;
    opacity: 0.5;
}

.multiline-label {
    padding-top: 0;
}

/* Data Extreme Date Range (end) */

/* DevExtreme Tabs */

.widget-container {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: 100%;
    min-width: 200px;
    overflow: visible;
    padding-top: 20px;
}

.widget-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
/*    gap: 80px;
*/    width: 100%;
}

.widget-wrapper-vertical {
    width: 100%;
    flex-direction: row;
    align-items: center;
}

/* Custom Grid Handling */

.pan-expanded-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pan-expanded-grid .grid,
.pan-expanded-grid > #gridContainer {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.grid-panel {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
}

.grid-actions,
.grid-page-form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.wrap-column-150 {
    white-space: normal !important; /* Allow wrapping */
    word-wrap: break-word; /* Older support */
    max-width: 150px;
}

.wrap-column-200 {
    white-space: normal !important; /* Allow wrapping */
    word-wrap: break-word; /* Older support */
    max-width: 200px; /* Enforce max width */
}

.dx-datagrid .wrap-text {
    white-space: pre-wrap !important;
    word-break: break-word;
    line-height: 1.35;
}

/* Summary Section */

.pan-summary-section div.row {
    background-color: #2A2A2D;
    border-style: solid;
    border-width: thin;
    border-color: Gray;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding-top: 4px;
    padding-bottom: 4px;
}

.pan-summary-section div.row:last-of-type {
    border-bottom: solid thin;
}

.pan-summary-section .value-cell {
    color: #03A9F4;
/*    color: #66C798;*/
    padding-left: 0px;
    font-weight: 700;
}

.pan-summary-section .row > .text-right {
    text-align: right;
}

/* Home Page Card Container */

.card-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* added */
}

.card {
    background-color: #363640 /* #1a2c45*/;
    border-radius: 16px;
    padding: 20px;
    width: 300px;
    max-width: 100%; /* added */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.card i {
    font-size: 30px;
    color: #f8a71e;
    margin-bottom: 10px;
}

.card h3 {
    color: #f8a71e;
    margin: 10px 0 10px;
}

.card p {
    color: #ffffff;
    line-height: 1.4;
}

/* On phones, stack vertically and fill most of the width */
@media (max-width: 768px) {
    .card-container {
        justify-content: stretch; /* optional */
    }

    .card {
        width: 100%; /* stack */
        max-width: 420px; /* optional: keeps it from being huge on big phones */
        margin: 0 auto; /* centers the card when max-width applies */
    }
}

/* Public landing page */
.home-landing-page header .navbar {
    min-height: 64px;
    background: linear-gradient(110deg, #0878ed 0%, #064bc7 100%) !important;
    border: 0 !important;
    box-shadow: 0 8px 24px rgba(0, 36, 98, .2);
}

.home-landing-page .page-content { display: block; padding: 0; background: #041021; }
.home-landing { min-height: 100%; color: #fff; background: #041021; }
.home-section-inner { width: min(100% - 40px, 1320px); margin-inline: auto; }

.home-hero {
    position: relative;
    min-height: clamp(520px, 62vh, 690px);
    background:
        linear-gradient(90deg, rgba(2, 13, 31, .96) 0%, rgba(2, 14, 33, .82) 34%, rgba(2, 13, 31, .2) 68%, rgba(2, 13, 31, .12) 100%),
        url("../img/home-location-intelligence.png") center center / cover no-repeat;
    border-bottom: 1px solid rgba(116, 152, 201, .22);
}

.home-hero-inner { display: flex; min-height: inherit; align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.home-hero-copy { width: min(100%, 620px); }
.home-eyebrow { margin: 0 0 12px; color: #58a6ff; font-size: .78rem; font-weight: 700; letter-spacing: .14em; }
.home-hero h1 { max-width: 12ch; margin: 0 0 22px; font-size: clamp(3rem, 5vw, 5rem); font-weight: 700; line-height: .98; letter-spacing: -.04em; text-shadow: 0 5px 28px rgba(0, 0, 0, .4); }
.home-hero h1 span { display: block; color: #f8a71e; }
.home-hero-description { max-width: 49ch; margin: 0; color: rgba(255, 255, 255, .9); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.55; }
.home-hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.home-cta { display: flex; min-height: 76px; align-items: center; gap: 16px; padding: 13px 22px; color: #fff; border: 1px solid #1683ff; border-radius: 8px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.home-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0, 83, 209, .28); }
.home-cta-primary { background: linear-gradient(110deg, #0878ed 0%, #0652d4 100%); }
.home-cta-secondary { background: rgba(4, 18, 42, .7); backdrop-filter: blur(8px); }
.home-cta i { flex: 0 0 auto; font-size: 1.8rem; }
.home-cta span { display: grid; line-height: 1.22; }
.home-cta strong { margin-top: 3px; font-size: 1rem; }

.home-capabilities { padding: 22px 0 30px; background: radial-gradient(circle at 50% 0, rgba(13, 84, 177, .15), transparent 38rem), #041021; }
.home-section-heading { margin-bottom: 18px; text-align: center; }
.home-section-heading h2 { margin: 0 0 5px; font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 700; }
.home-section-heading p { margin: 0; color: #aeb9ca; font-size: 1rem; }
.home-capability-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.home-capability-card { min-height: 225px; padding: 20px 17px; text-align: center; background: linear-gradient(145deg, rgba(15, 35, 65, .82), rgba(7, 23, 47, .9)); border: 1px solid rgba(98, 137, 190, .22); border-radius: 8px; }
.home-capability-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 14px; place-items: center; color: #fff; border: 1px solid currentColor; border-radius: 50%; font-size: 1.65rem; box-shadow: inset 0 0 18px rgba(255, 255, 255, .07); }
.home-icon-blue, .home-icon-cyan { color: #43a4ff; background: rgba(0, 92, 194, .36); }
.home-icon-green { color: #58db85; background: rgba(18, 117, 55, .36); }
.home-icon-purple { color: #c47bff; background: rgba(100, 31, 159, .35); }
.home-icon-orange { color: #ffae42; background: rgba(154, 78, 0, .38); }
.home-capability-card h3 { min-height: 2.45em; margin: 0 0 9px; color: #f5f8ff; font-size: 1.08rem; font-weight: 700; line-height: 1.22; }
.home-capability-card p { margin: 0; color: #b5c0d1; font-size: .88rem; line-height: 1.5; }

.home-trust-strip { display: grid; grid-template-columns: .95fr .95fr 1.2fr .8fr; margin-top: 16px; padding: 17px 20px; background: rgba(11, 29, 55, .82); border: 1px solid rgba(98, 137, 190, .22); border-radius: 8px; }
.home-trust-strip > div { display: flex; align-items: center; gap: 13px; padding-inline: 20px; border-right: 1px solid rgba(128, 156, 195, .2); }
.home-trust-strip > div:last-child { border-right: 0; }
.home-trust-strip i { flex: 0 0 auto; font-size: 1.8rem; }
.home-trust-strip span { display: grid; gap: 2px; }
.home-trust-strip strong { font-size: .92rem; }
.home-trust-strip small { color: #9eabbd; font-size: .75rem; }
.home-trust-orange { color: #f8a71e; }
.home-trust-green { color: #4dc583; }
.home-trust-blue { color: #168cff; }
.home-trust-purple { color: #b94cff; }
.home-landing-page footer { color: #9ca8ba !important; background: #041021; border-color: rgba(255, 255, 255, .1) !important; text-align: center; }
.home-landing-page footer .container { max-width: none; margin-left: 0 !important; }

@media (max-width: 1100px) {
    .home-capability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-capability-card:nth-child(4) { grid-column: 1 / 2; }
    .home-trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
    .home-trust-strip > div:nth-child(2) { border-right: 0; }
}

@media (max-width: 767.98px) {
    .home-section-inner { width: min(100% - 28px, 680px); }
    .home-hero { min-height: auto; background-position: 62% center; }
    .home-hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(2, 13, 31, .96), rgba(2, 13, 31, .74)); }
    .home-hero-inner { position: relative; z-index: 1; padding-block: 52px 58px; }
    .home-eyebrow { font-size: .7rem; }
    .home-hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
    .home-hero-actions { grid-template-columns: 1fr; gap: 12px; }
    .home-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-capability-card:nth-child(4) { grid-column: auto; }
    .home-capability-card:last-child { grid-column: 1 / -1; }
    .home-trust-strip { grid-template-columns: 1fr; }
    .home-trust-strip > div { padding: 10px 4px; border-right: 0; border-bottom: 1px solid rgba(128, 156, 195, .2); }
    .home-trust-strip > div:last-child { border-bottom: 0; }
}

@media (max-width: 480px) {
    .home-capability-grid { grid-template-columns: 1fr; }
    .home-capability-card, .home-capability-card:last-child { grid-column: auto; min-height: 0; }
    .home-capability-card h3 { min-height: 0; }
}

/* Full-screen image reveal section */
.image-reveal {
    position: relative;
    min-height: 100vh;
    background-image: var(--reveal-image, url('/img/home_interior_1.jpg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Fade the top of the image from your page background into the photo */
.image-reveal::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 220px; /* fade length */
    background: linear-gradient( to bottom, rgba(33, 37, 41, 1), /* match your page background */
    rgba(33, 37, 41, 0) );
    pointer-events: none;
}

/* Overlay content (your cards) sits above the image */
.image-reveal__overlay {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: right;
    padding: 40px 20px;
}

/* Optional: make overlay cards easier to read on bright photos */
.image-reveal__overlay .card {
    backdrop-filter: blur(6px);
    background-color: rgba(54, 54, 64, 0.85);
}

.image-reveal__overlay-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 16px;
    width: 100%;
}

.date-overlay-card {
    background-color: rgba(54, 54, 64, 0.85);
    color: #4DC5B3;
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    align-self: flex-start;
}

/* Keep layout friendly on smaller screens */
@media (max-width: 768px) {
    .image-reveal__overlay-row {
        flex-direction: column;
        align-items: flex-end;
    }
}

/* Home page accordion */

.feature-accordion {
    width: 100%;
    max-width: 800px;
    margin: 50px auto;
    margin-top: 60px;
    text-align: left;
    padding: 0 16px;
    box-sizing: border-box;
}

.feature-accordion-button {
    background-color: #212529;
    font-weight: bold;
    color: #ccc;
    box-shadow: none;
    border: none;
}

.feature-accordion-button:not(.collapsed)::after {
    transform: rotate(45deg);
}

.feature-accordion-button::after {
    content: "+";
    font-size: 20px;
    color: #999;
    transform: none;
    background-image: none;
}

.feature-accordion-button:not(.collapsed) {
    color: #f8a71e;
    border-bottom: 2px solid #f8a71e;
}

.feature-accordion-body {
    color: #ccc;
    min-height: 60px;
    margin-bottom: 20px;
}

.feature-accordion-item {
    border: none;
    /*    border-bottom: 1px solid #eee; */
}

.feature-accordion-item:first-child .accordion-button {
    color: #4DC5B3;
    min-height: 80px;
}

.feature-accordion-item:first-child .accordion-body {
    padding-top: 0;
}

/* Survey Designer */

.survey-question-context {
    display: grid;
    width: min(100%, 760px);
    gap: 8px;
    margin: 8px 0 20px;
}

.survey-question-context-card {
    display: grid;
    gap: 3px;
    color: #25324a;
    background: #fff;
    border: 1px solid #dfe4ec;
    border-radius: 7px;
}

.survey-question-context-card strong { color: #172033; font-size: 1.05rem; }
.survey-question-context-current {
    padding: 13px 16px;
    border-left: 4px solid #0d6efd;
    box-shadow: 0 3px 10px rgba(25, 39, 64, .08);
}

.survey-question-context-neighbor {
    width: calc(100% - 32px);
    margin-inline: 16px;
    padding: 8px 12px;
    background: #f7f9fc;
}

.survey-question-context-neighbor strong { font-size: .92rem; }
.survey-question-context-position {
    color: #65738a;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.survey-question-context-position i { margin-right: 5px; color: #0d6efd; }
.survey-question-context-description { color: #59677c; font-size: .85rem; font-weight: 400; line-height: 1.35; }

.question-rule-field {
    position: relative;
    overflow: visible !important;
    z-index: 1;
}
.question-rule-field.question-rule-helper-open { z-index: 100; }
.question-rule-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-right: 12px;
    overflow: visible !important;
    position: relative;
    white-space: normal;
    z-index: 2;
}
.question-rule-field-label .dropdown { position: relative; overflow: visible; }
.question-rule-helper-trigger {
    display: inline-grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0;
    place-items: center;
    color: #f8a71e;
    background: rgba(248, 167, 30, .1);
    border: 1px solid rgba(248, 167, 30, .42);
    border-radius: 50%;
}
.question-rule-helper-trigger:hover,
.question-rule-helper-trigger:focus,
.question-rule-helper-trigger[aria-expanded="true"] {
    color: #fff;
    background: #d98b08;
    border-color: #f8a71e;
    box-shadow: 0 0 0 3px rgba(248, 167, 30, .15);
}
.question-rule-helper-menu {
    width: min(360px, calc(100vw - 32px));
    padding-block: 8px;
    overflow: visible;
    z-index: 1060;
}
.question-rule-helper-option {
    display: grid;
    gap: 2px;
    padding-block: 8px;
    white-space: normal;
}
.question-rule-helper-option strong { font-size: .88rem; font-weight: 650; }
.question-rule-helper-option small { color: #69778d; font-size: .74rem; line-height: 1.35; }
.question-rule-helper-unavailable { color: #69778d; font-size: .82rem; white-space: normal; }

body.portal-authenticated .question-rule-helper-menu {
    color: #e3edf8;
    background: #0b2036;
    border-color: #36516d;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .3);
}
body.portal-authenticated .question-rule-helper-menu .dropdown-header,
body.portal-authenticated .question-rule-helper-option,
body.portal-authenticated .question-rule-helper-menu .dropdown-item-text { color: #e3edf8; }
body.portal-authenticated .question-rule-helper-option:hover,
body.portal-authenticated .question-rule-helper-option:focus { color: #fff; background: #123251; }
body.portal-authenticated .question-rule-helper-option small,
body.portal-authenticated .question-rule-helper-unavailable { color: #a9b8c9; }
body.portal-authenticated .question-rule-helper-menu .dropdown-divider { border-color: #36516d; }

.scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Stepper - Wizard-style pages */

.stepper {
    display: flex;
    height: 195px;
    gap: 20px;
    margin-bottom: 40px;
}

.stepper-label {
    font-size: 30px;
    color: #f8a71e;
    margin-top: 30px;
    margin-bottom: 30px;
}

.stepper-wrapper {
    width: 100%;
}
.agent-create-content {
    width: 100%;
    max-width: 900px;
}

.agent-create-content .stepper-label {
    margin-top: 10px;
}

.agent-create-content p {
    margin-bottom: 20px;
    line-height: 1.55;
}

.agent-create-image {
    margin-top: 10px;
}

.agent-create-image img {
    max-width: 100%;
    height: auto;
}

.required-label::before {
    content: "➜";
    color: #d32f2f;
    font-weight: bold;
    margin-right: 6px;
    display: inline-block;
}

.agreement-section {
    background: #ddddc5;
    border: 1px solid #f2caca;
    padding: 16px;
    border-radius: 6px;
}

/* Mobile: stack DevExtreme field label above its editor */
@media (max-width: 576px) {
    #Wizard .dx-field {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    #Wizard .dx-field-label {
        width: 100% !important;
        max-width: none !important;
        padding: 0 0 6px 0;
        white-space: normal;
    }

    #Wizard .dx-field-value {
        width: 100% !important;
        max-width: none !important;
    }

    /* Optional: ensure editors fill the full width */
    #Wizard .dx-texteditor,
    #Wizard .dx-dropdowneditor,
    #Wizard .dx-datebox,
    #Wizard .dx-numberbox,
    #Wizard .dx-selectbox {
        width: 100%;
    }
}

/* App screenshot showcase (Agent page) */
.app-showcase {
    margin-top: 48px; /* natural separator after the image section */
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.app-showcase-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: nowrap;
}

    .app-showcase-row.reverse {
        flex-direction: row-reverse;
    }

/* Keep screenshot + card side-by-side even on phones */
.app-screenshot {
    width: 165px;
    max-width: 42vw;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    flex: 0 0 auto;
}

.app-showcase-card {
    flex: 1 1 0;
    min-width: 0;
}

/* On very tiny screens, allow wrapping so nothing overflows */
@media (max-width: 360px) {
    .app-showcase-row {
        flex-wrap: wrap;
    }

    .app-screenshot {
        width: 190px;
        max-width: 90vw;
    }
}

/* Shared portal action colors and log detail presentation */
.btn .bi-check-lg,
.btn .bi-check,
.btn .bi-check2 {
    color: #4DC5B3;
}

.btn .bi-x-lg,
.btn .bi-x {
    color: #e91e63;
}

.dx-datagrid .dx-icon-trash,
.dx-datagrid .bi-trash,
.dx-datagrid .bi-trash-fill {
    color: #e91e63 !important;
}

.portal-authenticated .log-entry-panel {
    width: 100%;
    padding: 0;
    color: var(--portal-text);
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(25, 39, 64, .06);
}

.portal-authenticated .log-entry-heading {
    padding: 10px 14px;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    background: #f5f8fc;
    border-bottom: 1px solid var(--portal-border);
    border-radius: 7px 7px 0 0;
}

.portal-authenticated .log-entry-content {
    min-height: 48px;
    padding: 14px;
    margin: 0;
    color: var(--portal-text);
    background: var(--portal-surface);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.portal-authenticated .pan-summary-section .queue-completed {
    color: #4DC583 !important;
}

.portal-authenticated .pan-summary-section .queue-closed {
    color: #d91e63 !important;
}

/* Dashboard */
.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 24px;
    overflow-y: auto;
}

.dashboard-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    color: #fff;
    background: linear-gradient(135deg, #0864e8 0%, #0546bf 100%);
    border-radius: 9px;
    box-shadow: 0 8px 22px rgba(5, 70, 191, .18);
}

.dashboard-title-group h1 {
    margin: 1px 0 3px;
    font-size: 1.75rem;
    font-weight: 700;
}

.dashboard-title-group p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
}

.dashboard-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #0864e8;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dashboard-toolbar .dashboard-eyebrow {
    color: #ffd46c;
}

.dashboard-customer-filter {
    flex: 0 1 360px;
    min-width: 260px;
}

.dashboard-customer-filter label {
    display: block;
    margin-bottom: 5px;
    font-size: .78rem;
    font-weight: 700;
}

.dashboard-customer-filter .dx-texteditor {
    background: #fff;
    border-color: rgba(255, 255, 255, .65);
    border-radius: 6px;
}

.dashboard-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    align-items: start;
    gap: 18px;
}

.dashboard-primary {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 18px;
}

.dashboard-panel,
.dashboard-financial-panel {
    min-width: 0;
    padding: 16px;
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 9px;
    box-shadow: 0 3px 12px rgba(25, 39, 64, .07);
}

.dashboard-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.dashboard-panel-heading h2 {
    margin: 0;
    color: var(--portal-text);
    font-size: 1.05rem;
    font-weight: 700;
}

.dashboard-updated,
.dashboard-panel-note {
    color: #738096;
    font-size: .78rem;
    white-space: nowrap;
}

.dashboard-queue-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 10px;
}

.dashboard-queue-card {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto auto auto;
    min-height: 112px;
    padding: 14px;
    overflow: hidden;
    color: var(--portal-text);
    text-align: left;
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dashboard-queue-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    content: "";
    background: #0864e8;
}

.dashboard-queue-card:hover {
    transform: translateY(-1px);
    border-color: #8bb9f7;
    box-shadow: 0 6px 14px rgba(8, 100, 232, .12);
}

.dashboard-queue-card.is-selected {
    border-color: #0864e8;
    box-shadow: 0 0 0 2px rgba(8, 100, 232, .12);
}

.dashboard-queue-icon {
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #0864e8;
    background: #eaf3ff;
    border-radius: 50%;
}

.dashboard-queue-card > strong {
    color: #13233d;
    font-size: 1.65rem;
    line-height: 1;
}

.dashboard-queue-name {
    align-self: end;
    min-width: 0;
    margin-top: 8px;
    overflow: hidden;
    font-size: .83rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-queue-card small {
    grid-column: 2;
    margin-top: 2px;
    color: #7b8799;
}

.dashboard-queue-accent-1::before { background: #4DC5B3; }
.dashboard-queue-accent-1 .dashboard-queue-icon { color: #238d7e; background: #e4f8f5; }
.dashboard-queue-accent-2::before { background: #e91e63; }
.dashboard-queue-accent-2 .dashboard-queue-icon { color: #c21750; background: #fdeaf1; }
.dashboard-queue-accent-3::before { background: #ffb11b; }
.dashboard-queue-accent-3 .dashboard-queue-icon { color: #b77700; background: #fff4dc; }
.dashboard-queue-card-warning { border-color: rgba(248, 167, 30, .65); }
.dashboard-queue-card-warning::before { background: #f8a71e; }
.dashboard-queue-card-warning .dashboard-queue-icon { color: #f8a71e; background: rgba(248, 167, 30, .13); }
.dashboard-queue-card-warning .dashboard-queue-name { line-height: 1.2; white-space: normal; }
.dashboard-queue-card-warning:hover,
.dashboard-queue-card-warning.is-selected {
    border-color: #f8a71e;
    box-shadow: 0 0 0 2px rgba(248, 167, 30, .14), 0 6px 14px rgba(0, 0, 0, .18);
}
.dashboard-time-in-queue {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    color: #fff;
    background: #d93649;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.dashboard-time-in-queue i { font-size: .72rem; }

.dashboard-performance-coverage {
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(500px, 1.2fr);
    gap: 18px;
}

.dashboard-performance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    background: var(--portal-border);
    border: 1px solid var(--portal-border);
    border-radius: 7px;
}

.dashboard-performance-metric {
    min-height: 88px;
    padding: 13px;
    background: #fff;
}

.dashboard-performance-metric span {
    display: block;
    min-height: 32px;
    color: #6f7c90;
    font-size: .76rem;
}

.dashboard-performance-metric strong {
    color: #13233d;
    font-size: 1.25rem;
}

.dashboard-state-map {
    width: 100%;
    height: 330px;
    min-width: 0;
}

.dashboard-state-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #768296;
    background: #edf0f4;
    border: 1px solid #d8dee7;
    border-radius: 4px;
    cursor: default;
    line-height: 1;
}

.dashboard-state-tile strong { font-size: .66rem; }
.dashboard-state-tile span { margin-top: 2px; font-size: .58rem; }
.dashboard-state-tile.has-orders { color: #0d493d; background: #a9e6d1; border-color: #4DC5B3; }

.dashboard-map-legend {
    display: flex;
    gap: 12px;
    color: #687589;
    font-size: .72rem;
}

.dashboard-map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dashboard-map-legend i {
    display: inline-block;
    width: 11px;
    height: 11px;
    background: #edf0f4;
    border: 1px solid #d8dee7;
    border-radius: 2px;
}

.dashboard-map-legend i.has-orders { background: #a9e6d1; border-color: #4DC5B3; }
.dashboard-empty-state { grid-column: 1 / -1; padding: 24px; color: #6f7c90; text-align: center; background: #f7f9fc; border-radius: 7px; }

.dashboard-financial-panel {
    position: sticky;
    top: 0;
    overflow: hidden;
}

.dashboard-financial-hero {
    display: flex;
    flex-direction: column;
    padding: 22px 18px;
    color: #fff;
    background: linear-gradient(145deg, #0864e8 0%, #0546bf 100%);
    border-radius: 8px;
}

.dashboard-financial-hero span { color: rgba(255,255,255,.82); font-size: .78rem; }
.dashboard-financial-hero strong { margin: 5px 0; font-size: 2.05rem; line-height: 1; }
.dashboard-financial-hero small { color: rgba(255,255,255,.7); line-height: 1.35; }

.dashboard-margin-visual {
    display: flex;
    justify-content: center;
    padding: 28px 0 22px;
}

.dashboard-margin-donut {
    --margin-percent: 0%;
    display: grid;
    width: 156px;
    height: 156px;
    place-items: center;
    background: conic-gradient(#4DC5B3 var(--margin-percent), #e8edf4 0);
    border-radius: 50%;
}

.dashboard-margin-donut::before {
    grid-area: 1 / 1;
    width: 112px;
    height: 112px;
    content: "";
    background: var(--portal-surface);
    border-radius: 50%;
}

.dashboard-margin-donut > div {
    z-index: 1;
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-margin-donut strong { color: #13233d; font-size: 1.45rem; }
.dashboard-margin-donut span { color: #748196; font-size: .75rem; }

.dashboard-financial-breakdown {
    border-top: 1px solid var(--portal-border);
}

.dashboard-financial-breakdown > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 2px;
    color: #69768a;
    border-bottom: 1px solid var(--portal-border);
    font-size: .82rem;
}

.dashboard-financial-breakdown strong { color: #28364c; font-size: .95rem; }
.dashboard-financial-breakdown .dashboard-gross-margin strong { color: #238d7e; }

.dashboard-financial-note {
    display: flex;
    gap: 9px;
    margin-top: 16px;
    padding: 11px;
    color: #5f6d82;
    background: #f3f7fc;
    border-radius: 6px;
    font-size: .75rem;
    line-height: 1.4;
}

.dashboard-financial-note i { color: #0864e8; }
.dashboard-financial-note p { margin: 0; }

.dashboard-panel .dx-datagrid {
    color: var(--portal-text);
}

@media (max-width: 1320px) {
    .dashboard-workspace { grid-template-columns: 1fr; }
    .dashboard-financial-panel { position: static; }
    .dashboard-financial-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .dashboard-financial-panel > .dashboard-panel-heading,
    .dashboard-financial-note { grid-column: 1 / -1; }
    .dashboard-financial-hero { align-self: stretch; justify-content: center; }
    .dashboard-margin-visual { padding: 10px 0; }
}

@media (max-width: 1000px) {
    .dashboard-performance-coverage { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .dashboard-toolbar { align-items: stretch; flex-direction: column; }
    .dashboard-customer-filter { flex-basis: auto; min-width: 0; }
    .dashboard-performance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-financial-panel { display: block; }
    .dashboard-financial-panel > * + * { margin-top: 16px; }
    .dashboard-panel-heading { align-items: flex-start; flex-direction: column; }
    .dashboard-panel-note, .dashboard-updated { white-space: normal; }
    .dashboard-state-map {
    width: 100%;
    height: 330px;
    min-width: 0;
}
}

/* Identity pages --------------------------------------------------------- */
.identity-page header .navbar {
    min-height: 64px;
    background: linear-gradient(110deg, #0878ed 0%, #064bc7 100%) !important;
    border: 0 !important;
    box-shadow: 0 8px 24px rgba(0, 36, 98, .25);
}

.identity-page .page-content {
    padding: 0;
    background: #031026;
}

.identity-stage {
    position: relative;
    isolation: isolate;
    display: grid;
    flex: 1 0 auto;
    width: 100%;
    min-height: 100%;
    place-items: center;
    padding: clamp(2rem, 4vw, 4.5rem);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(2, 14, 32, .74) 0%, rgba(2, 15, 35, .83) 48%, rgba(2, 12, 29, .96) 100%),
        url("../img/home_exterior_3.jpg") center bottom / cover no-repeat;
}

.identity-stage::before {
    position: absolute;
    z-index: -1;
    inset: 0 42% 0 0;
    content: "";
    opacity: .2;
    background-image:
        radial-gradient(circle, #5aa2ff 1.2px, transparent 1.7px),
        linear-gradient(115deg, transparent 48%, rgba(48, 132, 255, .4) 49%, transparent 50%);
    background-size: 27px 27px, 190px 150px;
    mask-image: linear-gradient(to bottom, transparent 3%, #000 28%, #000 78%, transparent 100%);
}

.identity-stage::after {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: -8rem;
    left: 0;
    height: 22rem;
    content: "";
    background: radial-gradient(ellipse at 14% 100%, rgba(248, 167, 30, .5), transparent 38%);
    pointer-events: none;
}

.identity-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    width: min(100%, 1280px);
    align-items: center;
}

.identity-shell-manage {
    grid-template-columns: minmax(300px, .72fr) minmax(540px, 1.28fr);
    width: min(100%, 1380px);
}

.identity-brand-panel {
    position: relative;
    display: flex;
    min-height: 610px;
    align-items: center;
    color: #fff;
}

.identity-brand-content { width: min(100%, 620px); }
.identity-logo { display: block; width: 178px; max-width: 100%; margin-bottom: 2.25rem; }

.identity-brand-panel h2 {
    max-width: 12ch;
    margin-bottom: 1.35rem;
    color: #fff;
    font-size: clamp(2.5rem, 4.2vw, 4.15rem);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.035em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .34);
}

.identity-brand-panel h2 span { display: block; color: #f8a71e; }
.identity-shell-manage .identity-brand-panel h2 { font-size: clamp(2.35rem, 3.6vw, 3.5rem); }
.identity-shell-manage .identity-brand-panel h2 span:empty { display: none; }

.identity-brand-copy {
    max-width: 46ch;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, .88);
    font-size: 1.12rem;
    line-height: 1.55;
}

.identity-benefits { display: grid; gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.identity-benefits li { display: flex; align-items: center; gap: 1rem; }
.identity-benefits i {
    display: inline-grid;
    flex: 0 0 3.5rem;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    color: #3d8cff;
    background: rgba(14, 38, 72, .72);
    border: 1px solid rgba(89, 147, 230, .18);
    border-radius: 10px;
    font-size: 1.9rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.identity-benefits span { display: grid; gap: .18rem; }
.identity-benefits strong { color: #fff; font-size: 1rem; }
.identity-benefits small { color: rgba(255, 255, 255, .76); font-size: .9rem; }

.identity-insight {
    display: flex;
    max-width: 520px;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 1.2rem;
    color: rgba(255, 255, 255, .9);
    background: rgba(8, 32, 71, .86);
    border: 1px solid rgba(82, 143, 226, .24);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.identity-insight i { color: #f8a71e; font-size: 1.8rem; }

.identity-form-panel {
    display: flex;
    min-height: 610px;
    align-items: center;
    padding: clamp(2rem, 4vw, 3.75rem);
    color: #eef4ff;
    background: linear-gradient(145deg, rgba(17, 34, 58, .72), rgba(5, 19, 41, .86));
    border: 1px solid rgba(157, 181, 213, .32);
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .03);
    backdrop-filter: blur(12px);
}

.identity-form-content { width: 100%; max-width: 560px; margin-inline: auto; }
.identity-shell-manage .identity-form-panel { min-height: 610px; align-items: flex-start; }
.identity-shell-manage .identity-form-content { max-width: none; }

.identity-form-icon {
    display: grid;
    width: 74px;
    height: 74px;
    margin: 0 auto 1.35rem;
    place-items: center;
    color: #55a1ff;
    background: linear-gradient(145deg, #174b9a, #0b3477);
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: inset 0 0 0 1px rgba(103, 166, 255, .12), 0 12px 28px rgba(0, 0, 0, .25);
}

.identity-form-content > h1,
.identity-form-content > header h1 {
    margin-bottom: .7rem;
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    letter-spacing: -.025em;
}

.identity-form-content h2,
.identity-form-content h3,
.identity-form-content h4 { color: #dce7f8; }
.identity-shell:not(.identity-shell-manage) .identity-form-content > h2 {
    margin-bottom: 1.75rem;
    color: #c6d0df;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
}
.identity-shell:not(.identity-shell-manage) .identity-form-content > h2 + hr { display: none; }
.identity-form-content h4 { margin-bottom: 1.75rem; color: #c6d0df; font-size: 1.05rem; font-weight: 400; line-height: 1.55; text-align: center; }
.identity-form-content hr { margin: 1.25rem 0 1.6rem; border-color: rgba(255, 255, 255, .14); opacity: 1; }
.identity-form-content > .row { display: block; margin: 0; }
.identity-form-content > .row > [class*="col-md-"] { width: 100%; max-width: none; margin: 0; padding: 0; }
.identity-shell-manage .identity-form-content > h1,
.identity-shell-manage .identity-form-content > header h1,
.identity-shell-manage .identity-form-content h4 { text-align: left; }

.identity-shell-manage .identity-form-content > .row {
    display: grid;
    grid-template-columns: minmax(150px, .48fr) minmax(0, 1.52fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.identity-form-content .form-label { margin-bottom: .55rem; color: #edf3fc; }
.identity-form-content .form-control,
.identity-form-content .form-select {
    min-height: 3.7rem;
    color: #f3f7ff;
    background-color: rgba(3, 13, 29, .58);
    border-color: #3a4e6c;
    border-radius: 9px;
}

.identity-form-content textarea.form-control { min-height: 8rem; }
.identity-form-content .form-control:focus,
.identity-form-content .form-select:focus { color: #fff; background-color: rgba(3, 13, 29, .8); border-color: #4f9cff; box-shadow: 0 0 0 .22rem rgba(13, 110, 253, .18); }
.identity-form-content .form-control::placeholder { color: #8f9caf; text-align: left; }
.identity-form-content .form-floating > .form-control::placeholder,
.identity-form-content .form-floating > .form-control-plaintext::placeholder { color: transparent; }
.identity-form-content .form-floating > label { color: #9eafc8; }
.identity-form-content .form-check-input { background-color: #071426; border-color: #60718b; }
.identity-form-content .form-check-input:checked { background-color: #0d6efd; border-color: #0d6efd; }

.identity-input-wrap { position: relative; }
.identity-input-wrap .form-control { padding-right: 3.3rem; }
.identity-input-wrap > i,
.identity-password-toggle {
    position: absolute;
    top: 50%;
    right: 1.1rem;
    color: #aebbd0;
    transform: translateY(-50%);
}

.identity-password-toggle { padding: .3rem; background: transparent; border: 0; font-size: 1.2rem; }
.identity-password-toggle:hover { color: #fff; }
.identity-login-options { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.4rem 0 1.65rem; }
.identity-login-options .form-label { margin: 0; }
.identity-account-links { display: grid; gap: .65rem; margin-top: 2rem; }
.identity-account-links p { margin: 0; }

.identity-form-content .btn { min-height: 3.2rem; padding-inline: 1.3rem; border-radius: 8px; font-weight: 600; }
.identity-form-content .btn-primary { border-color: transparent; background: linear-gradient(110deg, #0878ed 0%, #064bc7 100%); box-shadow: 0 12px 28px rgba(0, 99, 235, .25); }
.identity-form-content .btn-primary:hover { border-color: transparent; background: linear-gradient(110deg, #1888fa 0%, #0962eb 100%); transform: translateY(-1px); }
.identity-form-content .btn-danger { border-color: rgba(233, 30, 99, .65); background: #d91e63; }
.identity-form-content a:not(.btn) { color: #52a0ff; text-underline-offset: .2em; }
.identity-form-content a:not(.btn):hover { color: #8fc0ff; }
.identity-form-content .alert { color: #e9f2ff; background: rgba(13, 110, 253, .12); border-color: rgba(88, 160, 255, .35); border-radius: 10px; }
.identity-form-content .alert-danger,
.identity-form-content .validation-summary-errors { color: #ffb4cb; background: rgba(233, 30, 99, .1); border: 1px solid rgba(233, 30, 99, .38); border-radius: 8px; }
.identity-form-content .text-danger,
.identity-form-content .field-validation-error { color: #ff8eb4 !important; }
.identity-form-content .nav-pills { gap: .35rem; }
.identity-form-content .nav-pills .nav-link { padding: .65rem .8rem; color: #aebdd1; border-radius: 8px; }
.identity-form-content .nav-pills .nav-link.active { color: #fff; background: #0d6efd; }

.identity-page footer { color: #9ca8ba !important; background: #041021; border-color: rgba(255, 255, 255, .1) !important; text-align: center; }
.identity-page footer .container { max-width: none; margin-left: 0 !important; }

@media (max-width: 991.98px) {
    .identity-stage { display: block; padding: 1.5rem; }
    .identity-shell,
    .identity-shell-manage { grid-template-columns: 1fr; gap: 1.5rem; width: min(100%, 720px); margin-inline: auto; }
    .identity-brand-panel { min-height: auto; padding: 1.25rem .5rem; }
    .identity-brand-content { width: 100%; }
    .identity-logo { width: 135px; margin-bottom: 1.1rem; }
    .identity-brand-panel h2 { max-width: none; margin-bottom: .75rem; font-size: clamp(2rem, 7vw, 3rem); }
    .identity-brand-panel h2 span { display: inline; }
    .identity-brand-copy { margin-bottom: 1.25rem; }
    .identity-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
    .identity-benefits li { align-items: flex-start; }
    .identity-benefits i { flex-basis: 2.7rem; width: 2.7rem; height: 2.7rem; font-size: 1.35rem; }
    .identity-benefits small { display: none; }
    .identity-insight { display: none; }
    .identity-form-panel { min-height: auto; }
}

@media (max-width: 575.98px) {
    .identity-page header .navbar { min-height: 58px; }
    .identity-stage { padding: .8rem; }
    .identity-shell,
    .identity-shell-manage { gap: .75rem; }
    .identity-brand-panel { padding: .75rem .4rem; }
    .identity-logo { width: 112px; margin-bottom: .7rem; }
    .identity-brand-panel h2 { margin: 0; font-size: 1.55rem; }
    .identity-brand-copy,
    .identity-benefits { display: none; }
    .identity-form-panel { padding: 1.5rem 1.15rem 1.75rem; border-radius: 14px; }
    .identity-form-icon { width: 58px; height: 58px; margin-bottom: 1rem; font-size: 1.55rem; }
    .identity-form-content > h1,
    .identity-form-content > header h1 { font-size: 1.85rem; }
    .identity-form-content h4 { margin-bottom: 1.35rem; font-size: .98rem; }
    .identity-form-content .identity-field .form-control::placeholder { color: transparent; }
    .identity-shell-manage .identity-form-content > .row { grid-template-columns: 1fr; }
    .identity-form-content .nav-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: .75rem; }
    .identity-login-options { align-items: flex-start; flex-direction: column; gap: .8rem; }
}

/* Customer information page --------------------------------------------- */
.customer-info-page header .navbar {
    min-height: 64px;
    background: linear-gradient(110deg, #0878ed 0%, #064bc7 100%) !important;
    border: 0 !important;
    box-shadow: 0 8px 24px rgba(0, 36, 98, .22);
}

.customer-info-page .page-content { display: block; padding: 0; background: #031025; }
.customer-page { min-height: 100%; color: #fff; background: #031025; }
.customer-page-inner { width: min(100% - 48px, 1360px); margin-inline: auto; }

.customer-hero {
    position: relative;
    isolation: isolate;
    min-height: 820px;
    padding: clamp(36px, 5vw, 64px) 0;
    overflow: hidden;
    background: #031025;
    border-bottom: 1px solid rgba(106, 144, 196, .18);
}

.customer-hero::before {
    position: absolute;
    z-index: -2;
    inset: 0 auto 0 0;
    width: 62%;
    content: "";
    background:
        linear-gradient(90deg, rgba(2, 13, 31, .56) 0%, rgba(2, 14, 33, .24) 58%, #031025 100%),
        linear-gradient(0deg, rgba(3, 16, 37, .2), transparent 42%),
        url("../img/customer-hero-v2.png") left center / cover no-repeat;
}

.customer-hero::after {
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: 34%;
    content: "";
    background: linear-gradient(to bottom, transparent, rgba(3, 16, 37, .78) 65%, #031025);
    pointer-events: none;
}

.customer-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(480px, 1.04fr);
    align-items: center;
    gap: clamp(42px, 7vw, 96px);
}

.customer-hero-copy { max-width: 540px; padding: 22px 0; }
.customer-eyebrow { margin: 0 0 14px; color: #f8a71e; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.customer-hero-copy h1 { max-width: 16ch; margin: 0 0 22px; font-size: clamp(2.75rem, 4.1vw, 4.15rem); font-weight: 700; line-height: 1.02; letter-spacing: -.04em; text-shadow: 0 4px 22px rgba(0, 0, 0, .4); }
.customer-heading-line { display: block; white-space: nowrap; }
.customer-heading-accent { color: #f8a71e; }
.customer-hero-description { max-width: 39ch; margin: 0; color: rgba(255, 255, 255, .9); font-size: 1.06rem; line-height: 1.6; }

.customer-benefit-list { display: grid; gap: 24px; margin: 38px 0 0; padding: 0; list-style: none; }
.customer-benefit-list li { display: flex; align-items: center; gap: 16px; }
.customer-benefit-list li > span:last-child { display: grid; gap: 3px; }
.customer-benefit-list strong { color: #fff; font-size: 1rem; }
.customer-benefit-list small { color: rgba(255, 255, 255, .72); font-size: .9rem; }
.customer-benefit-icon,
.customer-proof-icon,
.customer-coverage-mark { display: grid; flex: 0 0 50px; width: 50px; height: 50px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 1.45rem; }
.customer-icon-blue { color: #55a1ff; background: rgba(0, 84, 190, .35); }
.customer-icon-green { color: #63df91; background: rgba(20, 115, 60, .32); }
.customer-icon-orange { color: #ffae42; background: rgba(153, 80, 0, .4); }
.customer-icon-purple { color: #c47bff; background: rgba(101, 36, 159, .4); }

.customer-inquiry-card {
    padding: clamp(26px, 3.5vw, 42px);
    color: #edf4ff;
    background: linear-gradient(145deg, rgba(16, 35, 61, .87), rgba(5, 18, 40, .94));
    border: 1px solid rgba(148, 177, 216, .3);
    border-radius: 16px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .03);
    backdrop-filter: blur(12px);
}
.customer-inquiry-heading { display: block; margin-bottom: 23px; padding: 0; color: #edf4ff; background: transparent !important; border: 0; box-shadow: none; }
.customer-inquiry-heading h2 { margin: 0 0 7px; color: #fff; font-size: clamp(1.55rem, 2.5vw, 2rem); font-weight: 700; }
.customer-inquiry-heading p { margin: 0; color: #c0ccdd; font-size: .94rem; line-height: 1.5; }
.customer-inquiry-message { color: #ddecff; background: rgba(13, 110, 253, .15); border-color: rgba(84, 151, 245, .35); }
.customer-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.customer-form-field { min-width: 0; }
.customer-form-field-wide { grid-column: 1 / -1; }
.customer-form-field label { display: block; margin-bottom: 7px; color: #f3f7fe; font-size: .84rem; font-weight: 500; }
.customer-form-field label span { color: #ff765f; }
.customer-info-page .customer-form-field .dx-texteditor { width: 100%; min-height: 48px; color: #f4f8ff; background: rgba(2, 13, 30, .62); border: 1px solid #3a4e6c; border-radius: 7px; }
.customer-info-page .customer-form-field .dx-texteditor.dx-state-focused { border-color: #4f9cff; box-shadow: 0 0 0 3px rgba(13, 110, 253, .14); }
.customer-info-page .customer-form-field .dx-texteditor-input { color: #f4f8ff; }
.customer-info-page .customer-form-field .dx-placeholder { color: #8e9bb0; }
.customer-inquiry-actions { margin-top: 22px; }
.customer-inquiry-actions .dx-button { min-height: 50px; color: #fff; background: linear-gradient(110deg, #0878ed 0%, #064bc7 100%); border: 0; border-radius: 7px; font-weight: 600; box-shadow: 0 12px 28px rgba(0, 99, 235, .22); }
.customer-inquiry-actions .dx-button:hover { background: linear-gradient(110deg, #1888fa 0%, #0962eb 100%); }
.customer-inquiry-actions .dx-icon { color: #fff; }
.customer-privacy-note { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; color: #9daabc; font-size: .75rem; }

.customer-proof { padding: 30px 0 54px; background: radial-gradient(circle at 50% 0, rgba(10, 76, 163, .16), transparent 38rem), #031025; }
.customer-section-heading { margin: 0 0 25px; text-align: center; }
.customer-section-heading h2 { margin: 0; color: #f6f9ff; font-size: clamp(1.75rem, 3vw, 2.3rem); font-weight: 700; }
.customer-section-heading span { display: block; width: 54px; height: 3px; margin: 12px auto 0; background: #f8a71e; border-radius: 999px; }
.customer-proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.customer-proof-card { min-height: 224px; padding: 23px 20px; text-align: center; background: linear-gradient(145deg, rgba(15, 35, 65, .82), rgba(7, 23, 47, .9)); border: 1px solid rgba(98, 137, 190, .23); border-radius: 9px; box-shadow: 0 14px 28px rgba(0, 0, 0, .09); }
.customer-proof-icon { margin: 0 auto 15px; }
.customer-proof-card h3 { margin: 0 0 9px; color: #f5f8ff; font-size: 1.02rem; font-weight: 700; }
.customer-proof-card p { margin: 0; color: #b3bfd0; font-size: .88rem; line-height: 1.55; }

.customer-intelligence-story {
    display: grid;
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
    gap: clamp(30px, 5vw, 70px);
    margin-top: 24px;
    padding: clamp(28px, 4vw, 44px);
    background: linear-gradient(135deg, rgba(12, 36, 69, .88), rgba(6, 23, 48, .92));
    border: 1px solid rgba(98, 137, 190, .23);
    border-radius: 10px;
}
.customer-intelligence-intro h2 { margin: 0 0 18px; color: #f6f9ff; font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 700; line-height: 1.15; }
.customer-intelligence-intro > p:last-child { margin: 0; color: #d9e4f4; line-height: 1.62; }
.customer-intelligence-copy { display: grid; align-content: center; gap: 18px; }
.customer-intelligence-copy p { margin: 0; color: #b9c6d8; font-size: .94rem; line-height: 1.72; }
.customer-coverage-panel { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .9fr) minmax(330px, 1.1fr); min-height: 285px; align-items: center; gap: 24px; margin-top: 24px; padding: clamp(26px, 4vw, 42px); overflow: hidden; background: linear-gradient(110deg, rgba(8, 38, 80, .96), rgba(6, 30, 66, .86)); border: 1px solid rgba(89, 143, 215, .28); border-radius: 11px; }
.customer-coverage-copy { position: relative; z-index: 1; display: grid; grid-template-columns: 58px 1fr; column-gap: 16px; }
.customer-coverage-mark { grid-row: 1; width: 58px; height: 58px; color: #fff; background: #f8a71e; border: 0; font-size: 1.65rem; }
.customer-coverage-copy h2 { margin: 2px 0 3px; color: #fff; font-size: 1.45rem; font-weight: 700; }
.customer-coverage-copy h3 { margin: 0; color: #f8a71e; font-size: 1.12rem; font-weight: 700; }
.customer-coverage-copy p { grid-column: 1 / -1; max-width: 55ch; margin: 20px 0; color: #ced8e8; line-height: 1.55; }
.customer-coverage-cta { grid-column: 1 / -1; display: inline-flex; width: fit-content; min-height: 46px; align-items: center; gap: 22px; padding: 10px 24px; color: #fff; background: linear-gradient(110deg, #0878ed, #064bc7); border-radius: 6px; font-weight: 600; text-decoration: none; }
.customer-coverage-cta:hover { color: #fff; background: linear-gradient(110deg, #1888fa, #0962eb); }
.customer-coverage-map {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    background: url("../img/customer-us-coverage-v2.png") center / contain no-repeat;
    filter: brightness(.68) contrast(1.25) saturate(1.35);
    mix-blend-mode: lighten;
}

.customer-info-page footer { color: #9ca8ba !important; background: #031025; border-color: rgba(255, 255, 255, .1) !important; text-align: center; }
.customer-info-page footer .container { max-width: none; margin-left: 0 !important; }

@media (max-width: 991.98px) {
    .customer-hero { min-height: auto; }
    .customer-hero::before { width: 100%; opacity: .72; }
    .customer-hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .customer-hero-copy { max-width: 680px; }
    .customer-hero-copy h1 { max-width: 14ch; }
    .customer-benefit-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .customer-benefit-list li { align-items: flex-start; }
    .customer-benefit-list small { display: block; }
    .customer-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .customer-intelligence-story { grid-template-columns: 1fr; }
    .customer-coverage-panel { grid-template-columns: 1fr; }
    .customer-coverage-map { position: absolute; inset: 0 0 0 48%; opacity: .42; }
    .customer-coverage-copy { max-width: 620px; }
}

@media (max-width: 767.98px) {
    .customer-page-inner { width: min(100% - 28px, 680px); }
    .customer-hero { padding: 36px 0; }
    .customer-hero::before { width: 100%; opacity: .58; background-position: center bottom; }
    .customer-heading-line { white-space: normal; }
    .customer-hero-copy h1 { font-size: clamp(2.55rem, 12vw, 3.7rem); }
    .customer-benefit-list { grid-template-columns: 1fr; }
    .customer-inquiry-card { padding: 24px 18px; border-radius: 12px; }
    .customer-form-grid { grid-template-columns: 1fr; }
    .customer-form-field-wide { grid-column: auto; }
    .customer-proof-grid { grid-template-columns: 1fr; }
    .customer-intelligence-story { grid-template-columns: 1fr; padding: 24px 20px; }
    .customer-proof-card { min-height: 0; }
    .customer-coverage-panel { padding: 24px 20px; }
    .customer-coverage-map { inset: 0; opacity: .19; }
}

@media (max-width: 420px) {
    .customer-coverage-copy { grid-template-columns: 1fr; }
    .customer-coverage-mark { margin-bottom: 13px; }
    .customer-coverage-copy p,
    .customer-coverage-cta { grid-column: 1; }
    .customer-coverage-cta { width: 100%; justify-content: center; }
}
/* Agent information page ----------------------------------------------- */
.agent-info-page header .navbar {
    min-height: 64px;
    background: linear-gradient(110deg, #0878ed 0%, #064bc7 100%) !important;
    border: 0 !important;
    box-shadow: 0 8px 24px rgba(0, 36, 98, .22);
}
.agent-info-page .page-content { display: block; padding: 0; background: #031025; }
.agent-page { min-height: 100%; color: #fff; background: #031025; }
.agent-page-inner { width: min(100% - 48px, 1380px); margin-inline: auto; }

.agent-hero {
    position: relative;
    isolation: isolate;
    min-height: 760px;
    padding: clamp(42px, 6vw, 78px) 0;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(2, 13, 31, .92) 0%, rgba(2, 14, 33, .62) 39%, rgba(2, 13, 31, .14) 67%, rgba(2, 13, 31, .28) 100%),
        url("../img/agent-field-work-hero.png") center center / cover no-repeat;
    border-bottom: 1px solid rgba(106, 144, 196, .2);
}
.agent-hero::after { position: absolute; z-index: -1; inset: auto 0 0; height: 24%; content: ""; background: linear-gradient(to bottom, transparent, #031025); pointer-events: none; }
.agent-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, .43fr); min-height: 620px; align-items: center; gap: clamp(40px, 9vw, 130px); }
.agent-hero-copy { max-width: 560px; }
.agent-eyebrow { margin: 0 0 14px; color: #f8a71e; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.agent-hero-copy h1 { margin: 0 0 22px; color: #f7f9fd; font-size: clamp(3rem, 5vw, 5rem); font-weight: 700; line-height: .98; letter-spacing: -.04em; text-shadow: 0 5px 25px rgba(0, 0, 0, .45); }
.agent-hero-copy h1 span { color: #f8a71e; }
.agent-hero-description { max-width: 48ch; margin: 0; color: rgba(255, 255, 255, .9); font-size: 1.04rem; line-height: 1.62; }
.agent-hero-benefits { display: grid; gap: 17px; margin: 28px 0 0; padding: 0; list-style: none; }
.agent-hero-benefits li { display: flex; align-items: center; gap: 14px; }
.agent-hero-benefits li > span:last-child { display: grid; gap: 2px; }
.agent-hero-benefits strong { color: #fff; font-size: .96rem; }
.agent-hero-benefits small { color: rgba(255, 255, 255, .72); font-size: .82rem; }
.agent-round-icon, .agent-advantage-icon { display: grid; flex: 0 0 43px; width: 43px; height: 43px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 1.2rem; }
.agent-icon-blue { color: #5aa6ff; background: rgba(0, 83, 187, .38); }
.agent-icon-green { color: #63df91; background: rgba(18, 112, 55, .38); }
.agent-icon-orange { color: #ffae42; background: rgba(151, 76, 0, .4); }
.agent-icon-purple { color: #c47bff; background: rgba(98, 33, 155, .42); }
.agent-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.agent-cta { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 20px; padding: 11px 26px; color: #fff; border: 1px solid #1683ff; border-radius: 7px; font-weight: 600; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.agent-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 79, 197, .25); }
.agent-cta-primary { background: linear-gradient(110deg, #0878ed, #064bc7); }
.agent-cta-secondary { background: rgba(4, 18, 42, .72); backdrop-filter: blur(8px); }

.agent-hero-panel { align-self: center; padding: 10px 24px; background: linear-gradient(145deg, rgba(16, 34, 58, .9), rgba(5, 18, 39, .94)); border: 1px solid rgba(146, 176, 215, .26); border-radius: 13px; box-shadow: 0 25px 60px rgba(0, 0, 0, .3); backdrop-filter: blur(11px); }
.agent-hero-panel > div { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid rgba(141, 170, 208, .14); }
.agent-hero-panel > div:last-child { border-bottom: 0; }
.agent-hero-panel > div > span:last-child { display: grid; gap: 5px; }
.agent-hero-panel strong { color: #fff; font-size: .9rem; }
.agent-hero-panel small { color: #c2cede; font-size: .78rem; line-height: 1.45; }

.agent-advantages { padding: 28px 0 38px; background: radial-gradient(circle at 50% 0, rgba(10, 76, 163, .15), transparent 38rem), #031025; }
.agent-section-heading { margin-bottom: 25px; text-align: center; }
.agent-section-heading h2 { margin: 0; color: #f6f9ff; font-size: clamp(1.8rem, 3vw, 2.45rem); font-weight: 700; }
.agent-section-heading > span { display: block; width: 56px; height: 3px; margin: 12px auto 0; background: #f8a71e; border-radius: 999px; }
.agent-section-heading > p { margin: 7px 0 0; color: #aeb9ca; font-size: 1rem; }
.agent-advantage-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.agent-advantage-grid article { min-height: 224px; padding: 22px 17px; text-align: center; background: linear-gradient(145deg, rgba(15, 35, 65, .82), rgba(7, 23, 47, .9)); border: 1px solid rgba(98, 137, 190, .23); border-radius: 9px; }
.agent-advantage-icon { width: 56px; height: 56px; margin: 0 auto 15px; font-size: 1.55rem; }
.agent-advantage-grid h3 { margin: 0 0 9px; color: #f5f8ff; font-size: 1rem; font-weight: 700; }
.agent-advantage-grid p { margin: 0; color: #b3bfd0; font-size: .85rem; line-height: 1.55; }

.agent-app-section { position: relative; padding: 28px 0 52px; overflow: hidden; background: radial-gradient(circle at 15% 32%, rgba(10, 80, 178, .15), transparent 24rem), #031025; border-top: 1px solid rgba(106, 144, 196, .17); }
.agent-app-section::before { position: absolute; inset: 70px auto auto 0; width: 230px; height: 310px; content: ""; opacity: .17; background-image: radial-gradient(circle, #4795ff 1.2px, transparent 1.7px); background-size: 11px 11px; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%); }
.agent-app-steps { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 12px; }
.agent-app-step { display: grid; justify-items: center; margin: 0; text-align: center; }
.agent-phone-frame { position: relative; width: min(100%, 245px); padding: 9px; overflow: hidden; background: #05080e; border: 2px solid #697386; border-radius: 31px; box-shadow: 0 24px 45px rgba(0, 0, 0, .35); }
.agent-phone-frame::before { position: absolute; z-index: 2; top: 8px; left: 50%; width: 39%; height: 17px; content: ""; background: #05080e; border-radius: 0 0 12px 12px; transform: translateX(-50%); }
.agent-phone-frame img { display: block; width: 100%; height: auto; border-radius: 22px; }
.agent-app-step figcaption { display: grid; gap: 5px; max-width: 240px; margin-top: 17px; }
.agent-app-step figcaption strong { color: #f7f9fd; font-size: .95rem; }
.agent-app-step figcaption small { color: #aeb9ca; font-size: .8rem; line-height: 1.45; }
.agent-step-arrow { color: #f8a71e; font-size: 1.45rem; text-align: center; }
.agent-platform-note { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 27px auto 0; padding: 9px 14px; color: #aeb9ca; background: rgba(11, 31, 59, .7); border: 1px solid rgba(98, 137, 190, .18); border-radius: 999px; font-size: .78rem; }
.agent-platform-note i { color: #f1f4f8; }
.agent-ready-panel { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 20px; margin-top: 30px; padding: 25px 30px; background: linear-gradient(110deg, rgba(8, 38, 80, .96), rgba(6, 30, 66, .86)); border: 1px solid rgba(89, 143, 215, .28); border-radius: 10px; }
.agent-ready-icon { display: grid; width: 62px; height: 62px; place-items: center; color: #f8a71e; background: rgba(122, 57, 0, .34); border: 1px solid rgba(248, 167, 30, .42); border-radius: 50%; font-size: 1.75rem; }
.agent-ready-panel h2 { margin: 0 0 4px; color: #fff; font-size: 1.6rem; font-weight: 700; }
.agent-ready-panel p { margin: 0; color: #f8a71e; font-weight: 600; }
.agent-info-page footer { color: #9ca8ba !important; background: #031025; border-color: rgba(255, 255, 255, .1) !important; text-align: center; }
.agent-info-page footer .container { max-width: none; margin-left: 0 !important; }

@media (max-width: 1100px) {
    .agent-hero-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; }
    .agent-advantage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .agent-advantage-grid article:nth-child(4) { grid-column: 1 / 2; }
}

@media (max-width: 850px) {
    .agent-page-inner { width: min(100% - 28px, 720px); }
    .agent-hero { min-height: auto; background-position: 62% center; }
    .agent-hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: rgba(2, 13, 31, .38); }
    .agent-hero-layout { grid-template-columns: 1fr; min-height: 0; gap: 30px; }
    .agent-hero-copy { max-width: 620px; }
    .agent-hero-panel { width: min(100%, 620px); }
    .agent-advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agent-advantage-grid article:nth-child(4) { grid-column: auto; }
    .agent-advantage-grid article:last-child { grid-column: 1 / -1; }
    .agent-app-steps { grid-template-columns: 1fr; gap: 24px; }
    .agent-step-arrow { transform: rotate(90deg); }
    .agent-phone-frame { width: min(72vw, 280px); }
    .agent-ready-panel { grid-template-columns: 62px 1fr; }
    .agent-ready-panel .agent-cta { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 520px) {
    .agent-hero-copy h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
    .agent-hero-actions { display: grid; grid-template-columns: 1fr; }
    .agent-cta { width: 100%; }
    .agent-hero-panel { padding-inline: 17px; }
    .agent-advantage-grid { grid-template-columns: 1fr; }
    .agent-advantage-grid article,
    .agent-advantage-grid article:last-child { grid-column: auto; min-height: 0; }
    .agent-platform-note { align-items: flex-start; border-radius: 10px; }
    .agent-ready-panel { grid-template-columns: 1fr; text-align: center; }
    .agent-ready-icon { margin-inline: auto; }
}
/* Authenticated dark portal refresh ------------------------------------- */
.portal-authenticated {
    --portal-accent: #f8a71e;
    --portal-accent-blue: #168cff;
    --portal-border: #203752;
    --portal-canvas: #051323;
    --portal-surface: #081a2d;
    --portal-surface-raised: #0b2037;
    --portal-surface-muted: #0a1b2f;
    --portal-text: #e7eef8;
    --portal-text-muted: #9aabc0;
    --bs-body-color: var(--portal-text);
    --bs-body-bg: var(--portal-canvas);
    --bs-border-color: var(--portal-border);
    color-scheme: dark;
    color: var(--portal-text);
    background: var(--portal-canvas);
}
.portal-authenticated .main-content,
.portal-authenticated .page-content { color: var(--portal-text); background: radial-gradient(circle at 62% 0, rgba(12, 54, 96, .16), transparent 40rem), var(--portal-canvas); }
.portal-authenticated .page-content { padding: 18px 22px; }
.portal-authenticated h1,
.portal-authenticated h2,
.portal-authenticated h3,
.portal-authenticated h4,
.portal-authenticated h5,
.portal-authenticated h6,
.portal-authenticated label,
.portal-authenticated .form-label { color: var(--portal-text); }
.portal-authenticated .text-muted { color: var(--portal-text-muted) !important; }

.portal-authenticated header .navbar {
    min-height: 64px;
    background: linear-gradient(110deg, #061426 0%, #07182b 55%, #061323 100%) !important;
    border-bottom: 1px solid #1b3048 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.portal-authenticated header .navbar .container-fluid { padding-inline: 24px; }
.portal-authenticated header .navbar-brand,
.portal-authenticated header .nav-link { color: #dbe5f2 !important; }
.portal-authenticated header .nav-link:hover { color: #fff !important; }
.portal-login-nav { align-items: center; }
.portal-account-toggle { display: inline-flex; min-height: 42px; align-items: center; gap: 9px; padding: 5px 10px; color: #e6edf7; background: transparent; border: 1px solid transparent; border-radius: 8px; font: inherit; }
.portal-account-toggle:hover,
.portal-account-toggle[aria-expanded="true"] { color: #fff; background: #0b2037; border-color: #29435f; }
.portal-account-toggle::after { margin-left: 2px; color: #91a3b8; }
.portal-account-icon { display: grid; width: 31px; height: 31px; place-items: center; color: #f8a71e; background: rgba(248, 167, 30, .11); border: 1px solid rgba(248, 167, 30, .38); border-radius: 50%; font-size: 1.05rem; }
.portal-account-menu { min-width: 180px; padding: 6px; color: var(--portal-text); background: #0a1c31; border: 1px solid #29435f; border-radius: 8px; box-shadow: 0 16px 36px rgba(0, 0, 0, .35); }
.portal-account-menu .dropdown-item { display: flex; align-items: center; gap: 9px; padding: 9px 11px; color: #dfe8f4; border-radius: 6px; }
.portal-account-menu .dropdown-item:hover { color: #fff; background: #122a45; }
.portal-account-menu .dropdown-item i { color: #f8a71e; }

.portal-authenticated .pan-menubar {
    display: flex;
    width: 178px;
    min-width: 178px;
    max-width: 178px;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, #071729 0%, #061426 68%, #07182a 100%);
    border-right: 1px solid #182d45;
}
.portal-authenticated .portal-menu-tabs { flex: 0 0 auto; width: 100%; }
.portal-authenticated .portal-menu-tabs .dx-tabs-wrapper { padding-top: 8px; }
.portal-authenticated .portal-menu-tabs .dx-tab { min-height: 54px; padding-inline: 20px; color: #aab7c8; background: transparent; border: 0; }
.portal-authenticated .portal-menu-tabs .dx-tab .dx-icon { color: #8999ad; font-size: 1.2rem; }
.portal-authenticated .portal-menu-tabs .dx-tab-selected { color: #f8a71e; background: linear-gradient(90deg, rgba(248, 167, 30, .12), rgba(248, 167, 30, .025)); box-shadow: inset 3px 0 0 #f8a71e; }
.portal-authenticated .portal-menu-tabs .dx-tab-selected .dx-icon { color: #f8a71e; }
.portal-authenticated .portal-menu-tabs .dx-tab:hover { color: #f1f5fb; background: rgba(255, 255, 255, .025); }
.portal-authenticated .portal-menu-art { flex: 1 1 auto; min-height: 220px; margin-top: 8px; opacity: .88; background: linear-gradient(to bottom, #061426 0%, transparent 17%, transparent 84%, #07182a 100%), url("../img/portal-sidebar-location.png") center bottom / cover no-repeat; }

.portal-authenticated footer { color: #9eacbd !important; background: #04101e; border-color: #172c43 !important; }
.portal-footer-inner { display: grid; width: 100%; min-height: 72px; grid-template-columns: 178px 1fr 1fr; align-items: center; padding: 8px 24px 8px 0; }
.portal-footer-inner > img { width: 112px; margin-left: 24px; }
.portal-footer-inner > span { justify-self: center; }
.portal-footer-inner nav { display: flex; justify-self: end; align-items: center; gap: 12px; }
.portal-footer-inner nav a { color: #aeb9c9; text-decoration: none; }
.portal-footer-inner nav a:hover { color: #fff; }
.portal-footer-inner nav span { width: 1px; height: 17px; background: #33465c; }

.portal-authenticated .pan-summary-section,
.portal-authenticated .widget-container,
.portal-authenticated .tab-content-fill,
.portal-authenticated .grid-panel,
.portal-authenticated .log-entry-panel,
.portal-authenticated .dashboard-panel,
.portal-authenticated .card,
.portal-authenticated .accordion-item {
    color: var(--portal-text);
    background: var(--portal-surface);
    border-color: var(--portal-border);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}
.portal-authenticated .pan-summary-section div.row { background: transparent; border-color: var(--portal-border); }
.portal-authenticated .pan-summary-section .value-cell,
.portal-authenticated .pan-summary-section .value-cell a { color: #53a5ff; }
.portal-authenticated .widget-container { background: var(--portal-surface); }
.portal-authenticated .tab-content-fill { background: var(--portal-surface); }
.portal-authenticated .log-entry-heading,
.portal-authenticated .log-entry-content { color: var(--portal-text); background: var(--portal-surface-muted); border-color: var(--portal-border); }
.portal-authenticated .table { --bs-table-color: var(--portal-text); --bs-table-bg: transparent; --bs-table-border-color: var(--portal-border); --bs-table-striped-color: var(--portal-text); --bs-table-striped-bg: rgba(255,255,255,.018); --bs-table-hover-color: #fff; --bs-table-hover-bg: rgba(22, 140, 255, .08); }
.portal-authenticated .accordion-button { color: var(--portal-text); background: var(--portal-surface-raised); }
.portal-authenticated .accordion-button:not(.collapsed) { color: #f8a71e; background: #10263e; }

.portal-authenticated .form-control,
.portal-authenticated .form-select,
.portal-authenticated .input-group-text,
.portal-authenticated textarea,
.portal-authenticated select,
.portal-authenticated input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]) { color: #e8eff8; background-color: #08182a; border-color: #2a4059; }
.portal-authenticated .input-group-text { color: #b9c5d4; background: #0d2036; }
.portal-authenticated .form-control::placeholder,
.portal-authenticated input::placeholder,
.portal-authenticated textarea::placeholder { color: #71849a; }
.portal-authenticated .form-control:focus,
.portal-authenticated .form-select:focus,
.portal-authenticated input:focus,
.portal-authenticated textarea:focus { color: #fff; background-color: #0a1c30; border-color: #267fdc; box-shadow: 0 0 0 .2rem rgba(22, 140, 255, .13); }
.portal-authenticated .form-check-input { background-color: #071727; border-color: #53677d; }
.portal-authenticated .form-check-input:checked { background-color: #f8a71e; border-color: #f8a71e; }
.portal-authenticated .btn-secondary { color: #dce6f2; background: #0c2036; border-color: #385069; }
.portal-authenticated .btn-secondary:hover { color: #fff; background: #132b45; border-color: #4b6680; }
.portal-authenticated .btn-outline-primary { color: #58a6ff; border-color: #286ea9; }
.portal-authenticated .btn-outline-primary:hover { color: #fff; background: #0d6efd; }

body.portal-authenticated .dx-widget { color: var(--portal-text); }
body.portal-authenticated .dx-texteditor,
body.portal-authenticated .dx-dropdowneditor,
body.portal-authenticated .dx-datebox { color: #e8eff8; background: #08182a; border-color: #2a4059; }
body.portal-authenticated .dx-texteditor-input { color: #e8eff8; }
body.portal-authenticated .dx-placeholder { color: #71849a; }
body.portal-authenticated .dx-datagrid,
body.portal-authenticated .dx-datagrid-headers,
body.portal-authenticated .dx-datagrid-rowsview,
body.portal-authenticated .dx-datagrid-total-footer,
body.portal-authenticated .dx-datagrid-pager,
body.portal-authenticated .dx-tabpanel,
body.portal-authenticated .dx-tabs { color: var(--portal-text); background-color: var(--portal-surface); }
body.portal-authenticated .dx-datagrid-headers { color: #cbd6e3; background: #0b1e33; }
body.portal-authenticated .dx-datagrid .dx-row > td { color: #d9e3ef; border-color: #1d324a; }
body.portal-authenticated .dx-datagrid .dx-row-alt > td { background: rgba(255, 255, 255, .014); }
body.portal-authenticated .dx-datagrid .dx-data-row.dx-state-hover > td { color: #fff; background: rgba(22, 140, 255, .075); }
body.portal-authenticated .dx-datagrid-borders > .dx-datagrid-headers,
body.portal-authenticated .dx-datagrid-borders > .dx-datagrid-rowsview,
body.portal-authenticated .dx-datagrid-borders > .dx-datagrid-total-footer { border-color: var(--portal-border); }
body.portal-authenticated .dx-pager .dx-page,
body.portal-authenticated .dx-pager .dx-navigate-button { color: #a8b7c9; }
body.portal-authenticated .dx-pager .dx-page.dx-selection { color: #fff; background: #0d6efd; }
body.portal-authenticated .dx-tab { color: #9fb0c4; }
body.portal-authenticated .dx-tab.dx-tab-selected { color: #f8a71e; }

.queue-badge { display: inline-flex; min-width: 76px; min-height: 24px; align-items: center; justify-content: center; padding: 2px 9px; border: 1px solid currentColor; border-radius: 5px; font-size: .75rem; font-weight: 700; line-height: 1; letter-spacing: .02em; text-transform: uppercase; background: rgba(255, 255, 255, .02); }
.queue-badge-completed { color: #4dc583; background: rgba(77, 197, 131, .08); }
.queue-badge-canceled { color: #ff5d71; background: rgba(233, 30, 99, .08); }
.queue-badge-expired { color: #f8a71e; background: rgba(248, 167, 30, .09); }
.queue-badge-active { color: #4c9dff; background: rgba(22, 140, 255, .08); }
.portal-authenticated .pan-summary-section .queue-completed { color: #4dc583 !important; }
.portal-authenticated .pan-summary-section .queue-closed { color: #ff5d71 !important; }
.portal-authenticated .pan-summary-section .queue-expired { color: #f8a71e !important; }

.portal-authenticated .dashboard-toolbar { background: linear-gradient(135deg, #0b2c52 0%, #0a1f39 100%); border: 1px solid #244665; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.portal-authenticated .dashboard-queue-card { color: var(--portal-text); background: var(--portal-surface-raised); border-color: var(--portal-border); }
.portal-authenticated .dashboard-queue-card.dashboard-queue-card-warning {
    background: linear-gradient(145deg, rgba(248, 167, 30, .1), rgba(11, 32, 55, .96) 58%);
    border-color: rgba(248, 167, 30, .62);
}
.portal-authenticated .dashboard-queue-card.dashboard-queue-card-warning:hover,
.portal-authenticated .dashboard-queue-card.dashboard-queue-card-warning.is-selected {
    border-color: #f8a71e;
    box-shadow: 0 0 0 2px rgba(248, 167, 30, .14), 0 6px 14px rgba(0, 0, 0, .24);
}
.portal-authenticated .dashboard-queue-card > strong,
.portal-authenticated .dashboard-queue-name,
.portal-authenticated .dashboard-performance-metric strong,
.portal-authenticated .dashboard-margin-donut strong,
.portal-authenticated .dashboard-financial-breakdown strong { color: #e9f0f8; }
.portal-authenticated .dashboard-queue-card small,
.portal-authenticated .dashboard-performance-metric span,
.portal-authenticated .dashboard-margin-donut span,
.portal-authenticated .dashboard-financial-breakdown > div { color: var(--portal-text-muted); }
.portal-authenticated .dashboard-performance-grid { background: var(--portal-border); border-color: var(--portal-border); }
.portal-authenticated .dashboard-performance-metric { background: var(--portal-surface-raised); }
.portal-authenticated .dashboard-margin-donut { background: conic-gradient(#4DC5B3 var(--margin-percent), #152b42 0); }
.portal-authenticated .dashboard-margin-donut::before { background: var(--portal-surface); }
.portal-authenticated .dashboard-financial-breakdown { border-color: var(--portal-border); }
.portal-authenticated .dashboard-financial-breakdown > div { border-color: var(--portal-border); }
.portal-authenticated .dashboard-financial-note,
.portal-authenticated .dashboard-empty-state { color: #a9b8c9; background: #0b2036; }
.portal-authenticated .dashboard-state-tile { color: #8ea0b5; background: #10253b; border-color: #29415b; }
.portal-authenticated .dashboard-state-tile.has-orders { color: #bdf6df; background: #124d42; border-color: #4dc5b3; }

@media (max-width: 767.98px) {
    .portal-authenticated .pan-menubar { width: 108px; min-width: 108px; max-width: 108px; }
    .portal-authenticated .portal-menu-tabs .dx-tab { min-height: 52px; padding-inline: 10px; }
    .portal-authenticated .portal-menu-art { display: none; }
    .portal-authenticated .page-content { padding: 10px; }
    .portal-account-toggle > span:nth-child(2) { display: none; }
    .portal-footer-inner { grid-template-columns: auto 1fr; padding-inline: 12px; }
    .portal-footer-inner > img { width: 92px; margin-left: 0; }
    .portal-footer-inner > span { justify-self: end; font-size: .75rem; }
    .portal-footer-inner nav { display: none; }
}

/* Dashboard welcome and authenticated navigation alignment ---------------- */
body.portal-authenticated .portal-menu-tabs,
body.portal-authenticated .portal-menu-tabs.dx-tabs,
body.portal-authenticated .portal-menu-tabs .dx-tabs-wrapper,
body.portal-authenticated .portal-menu-tabs .dx-tabs-scrollable,
body.portal-authenticated .portal-menu-tabs .dx-scrollable,
body.portal-authenticated .portal-menu-tabs .dx-scrollable-wrapper,
body.portal-authenticated .portal-menu-tabs .dx-scrollable-container,
body.portal-authenticated .portal-menu-tabs .dx-scrollable-content {
    background: transparent !important;
    background-color: transparent !important;
}
body.portal-authenticated .portal-menu-tabs .dx-tab {
    background: transparent !important;
}
body.portal-authenticated .portal-menu-tabs .dx-tab-selected {
    background: linear-gradient(90deg, rgba(248, 167, 30, .14), rgba(248, 167, 30, .035)) !important;
}
body.portal-authenticated .portal-menu-tabs .dx-tab:hover:not(.dx-tab-selected) {
    background: rgba(255, 255, 255, .025) !important;
}
.dashboard-welcome {
    position: relative;
    display: grid;
    min-height: 310px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
    align-items: center;
    gap: clamp(28px, 5vw, 80px);
    margin-bottom: 18px;
    padding: clamp(28px, 4vw, 54px);
    overflow: hidden;
    color: #f5f8fd;
    background:
        linear-gradient(90deg, rgba(3, 15, 34, .98) 0%, rgba(3, 18, 39, .82) 43%, rgba(3, 18, 39, .34) 72%, rgba(3, 16, 35, .7) 100%),
        linear-gradient(0deg, rgba(4, 18, 37, .72), transparent 55%),
        url("../img/home-location-intelligence.png") center 61% / cover no-repeat;
    border: 1px solid #24415e;
    border-radius: 12px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .24);
}
.dashboard-welcome::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: radial-gradient(circle at 58% 40%, rgba(248, 167, 30, .09), transparent 25rem);
}
.dashboard-welcome-copy,
.dashboard-welcome-actions { position: relative; z-index: 1; }
.dashboard-welcome-copy { max-width: 680px; }
.dashboard-welcome-copy .dashboard-eyebrow { color: #f8a71e; }
.dashboard-welcome-copy h1 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    font-weight: 750;
    letter-spacing: -.035em;
}
.dashboard-welcome-copy h2 {
    max-width: 670px;
    margin: 0;
    color: #f7f9fc;
    font-size: clamp(1.55rem, 2.65vw, 2.65rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.025em;
}
.dashboard-welcome-copy h2 span { color: #f8a71e; }
.dashboard-welcome-copy > p {
    max-width: 580px;
    margin: 20px 0 0;
    color: #c8d3e2;
    font-size: 1.05rem;
    line-height: 1.55;
}
.dashboard-welcome-actions { display: grid; align-content: center; gap: 12px; }
.dashboard-create-order-card,
.dashboard-welcome .dashboard-customer-filter {
    padding: 20px;
    color: #e7eef8;
    background: rgba(6, 22, 43, .9);
    border: 1px solid rgba(76, 112, 151, .52);
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .28);
    backdrop-filter: blur(8px);
}
.dashboard-create-order-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
}
.dashboard-create-order-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #61aaff;
    background: rgba(13, 110, 253, .24);
    border: 1px solid rgba(64, 148, 255, .38);
    border-radius: 50%;
    font-size: 1.25rem;
}
.dashboard-create-order-card h2 { margin: 0 0 5px; color: #fff; font-size: 1.12rem; font-weight: 700; }
.dashboard-create-order-card p { margin: 0 0 14px; color: #b6c3d3; font-size: .88rem; line-height: 1.45; }
.dashboard-create-order-button {
    display: inline-flex;
    width: auto;
    min-width: 0;
    align-items: center;
    gap: 18px;
    padding-inline: 16px;
}
.dashboard-welcome .dashboard-customer-filter { display: grid; gap: 7px; padding-block: 14px; }
.dashboard-welcome .dashboard-customer-filter label { color: #cbd6e4; font-size: .82rem; font-weight: 600; }
.dashboard-customer-filter-locked { display: none !important; }
.dashboard-workspace-single { grid-template-columns: minmax(0, 1fr) !important; }
@media (max-width: 1050px) {
    .dashboard-welcome { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; background-position: 57% center; }
}
@media (max-width: 800px) {
    .dashboard-welcome { grid-template-columns: 1fr; padding: 28px 22px; background-position: 45% center; }
    .dashboard-welcome-actions { width: min(100%, 520px); }
}
@media (max-width: 480px) {
    .dashboard-welcome { padding: 24px 17px; border-radius: 8px; }
    .dashboard-create-order-card { grid-template-columns: 1fr; }
}

/* Portal dark-theme finishing adjustments ------------------------------- */
body.portal-authenticated .pan-menubar,
body.portal-authenticated .portal-menu-tabs.dx-tabs,
body.portal-authenticated .portal-menu-tabs .dx-tabs-wrapper,
body.portal-authenticated .portal-menu-tabs .dx-scrollable-wrapper,
body.portal-authenticated .portal-menu-tabs .dx-scrollable-container {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}
body.portal-authenticated .portal-menu-tabs .dx-tabs-wrapper::before,
body.portal-authenticated .portal-menu-tabs .dx-tabs-wrapper::after {
    display: none !important;
}
body.portal-authenticated .dashboard-welcome {
    --dashboard-hero-image: url("../img/dashboard-city-midday-network.png");
    min-height: 350px;
    background:
        linear-gradient(90deg, rgba(3, 15, 34, .91) 0%, rgba(3, 18, 39, .68) 38%, rgba(3, 18, 39, .1) 70%, rgba(3, 16, 35, .2) 100%),
        linear-gradient(0deg, rgba(4, 18, 37, .38), transparent 58%),
        #031126 var(--dashboard-hero-image) center center / cover no-repeat;
}
body.portal-authenticated .dashboard-welcome.dashboard-time-morning {
    --dashboard-hero-image: url("../img/dashboard-city-morning-network.png");
}
body.portal-authenticated .dashboard-welcome.dashboard-time-midday {
    --dashboard-hero-image: url("../img/dashboard-city-midday-network.png");
}
body.portal-authenticated .dashboard-welcome.dashboard-time-evening {
    --dashboard-hero-image: url("../img/dashboard-city-evening-network.png");
}
body.portal-authenticated .pan-question-heading.alert-secondary,
body.portal-authenticated .pan-question-heading + .alert-secondary {
    color: #e3edf8;
    background: #0b2036;
    border-color: #29425d;
}
body.portal-authenticated .pan-question-heading.alert-secondary {
    border-bottom-color: #36516d;
}
body.portal-authenticated .pan-question-heading + .alert-secondary {
    background: #081a2d;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .13);
}
body.portal-authenticated .pan-question-heading strong,
body.portal-authenticated .pan-question-heading + .alert-secondary p,
body.portal-authenticated .pan-question-heading + .alert-secondary label {
    color: #e3edf8;
}
body.portal-authenticated .survey-question-context-card {
    color: #dce7f4;
    background: #0b2036;
    border-color: #29425d;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .14);
}
body.portal-authenticated .survey-question-context-card strong {
    color: #f0f5fb;
}
body.portal-authenticated .survey-question-context-neighbor {
    background: #091b2e;
}
body.portal-authenticated .survey-question-context-position {
    color: #91a5bd;
}
body.portal-authenticated .survey-question-context-description {
    color: #bdc9d8;
}
body.portal-authenticated .survey-question-context-current {
    border-left-color: #168cff;
}
@media (max-width: 800px) {
    body.portal-authenticated .dashboard-welcome {
        min-height: 0;
        background:
            linear-gradient(90deg, rgba(3, 15, 34, .92), rgba(3, 18, 39, .5)),
            #031126 var(--dashboard-hero-image) center center / cover no-repeat;
    }
}

/* Shared public footer links --------------------------------------------- */
.public-footer-inner {
    display: flex;
    width: 100%;
    max-width: none;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-left: 0 !important;
    padding-inline: 24px;
}
.public-footer-inner nav {
    display: flex;
    align-items: center;
}
.public-footer-inner a {
    color: #aeb9c9;
    text-decoration: none;
}
.public-footer-inner a:hover {
    color: #fff;
}
@media (max-width: 520px) {
    .public-footer-inner {
        flex-wrap: wrap;
        gap: 5px 18px;
        padding-block: 10px;
    }
}

.portal-account-menu .dropdown-divider {
    margin: 5px 4px;
    border-color: #29435f;
    opacity: 1;
}

.bulk-order-upload-section,
#bulkOrderPreviewSection,
#bulkOrderProgressSection {
    margin-top: 22px;
}

.bulk-order-drop-zone {
    display: flex;
    min-height: 132px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 22px;
    cursor: pointer;
    color: var(--portal-text);
    background: var(--portal-surface-raised);
    border: 2px dashed #3b5875;
    border-radius: 8px;
    transition: border-color .15s ease, background-color .15s ease;
}

.bulk-order-drop-zone i {
    color: #4c9dff;
    font-size: 2rem;
}

.bulk-order-drop-zone span {
    color: #9fb0c4;
}

.bulk-order-drop-zone:hover,
.bulk-order-drop-zone:focus,
.bulk-order-drop-zone.is-dragging {
    background: #10263e;
    border-color: #4c9dff;
    outline: none;
}

.bulk-order-file-summary {
    margin-top: 8px;
    color: #a9b8c9;
}

.bulk-order-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body.portal-authenticated .dx-datagrid .dx-row.bulk-order-invalid-row > td {
    color: #fff !important;
    background-color: #e91e63 !important;
    border-color: rgba(255, 255, 255, .22) !important;
}
