﻿/*
    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 */
    }
}

/* Home Page Hero Paragraph */

.hero-paragraph {
    font-size: 1rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    line-height: 1.6;
}

/* Responsive hero logo */

.hero-logo {
    width: 70%;
    max-width: 500px;
    height: auto;
}

/* 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 */

.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%;
}

.required-label::before {
    content: "➜";
    color: #d32f2f;
    font-weight: bold;
    margin-right: 6px;
    display: inline-block;
}

.agreement-section {
    background: #363640;
    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-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;
}