/*
 * HeHe workspace · quiet surfaces, clear business hierarchy.
 * Screen-only and desktop-only: login, mobile workspace, workshop fullscreen,
 * document previews and printed documents keep their existing presentation.
 * Load after navigation-ui.css and the business-module stylesheets.
 */
@media screen and (min-width: 761px) {
  body:not(.mw-enabled):not(.touch-fullscreen) .app-shell {
    grid-template-columns: 232px minmax(0, 1fr);
    background: #f5f6f7;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav="icons"] .app-shell {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  /* A white navigation rail anchors the work area without competing with data. */
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar {
    width: 232px;
    padding: 24px 14px 16px;
    background: #fff;
    color: #59635d;
    border-right: 1px solid #e5e8e6;
    box-shadow: none;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav="icons"] .sidebar {
    width: 78px;
    padding: 24px 10px 16px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .brand {
    gap: 10px;
    padding: 0 5px 21px;
    border-bottom-color: #edf0ee;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .brand-mark {
    width: 41px;
    height: 44px;
    background: #fff;
    border: 1px solid #e5ebe6;
    box-shadow: none;
    flex: 0 0 auto;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .brand b {
    font-size: 17px;
    color: #244a30;
    letter-spacing: .02em;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .brand small {
    color: #68756d;
    font-size: 9px;
    letter-spacing: .045em;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar-nav-tools {
    margin-top: 15px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) :is(.nav-mode-toggle, .nav-icon-search) {
    color: #5c6961;
    background: #fafbfa;
    border-color: #e5e9e6;
    border-radius: 9px;
    font-size: 12px;
    min-height: 36px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar-menu-search {
    margin-top: 12px;
    margin-bottom: 19px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar-menu-search > label {
    min-height: 38px;
    border-color: #e5e9e6;
    background: #f6f8f7;
    border-radius: 9px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar-menu-search input {
    color: #303e34 !important;
    font-size: 12px !important;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar-menu-search input::placeholder {
    color: #748078;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar-menu-search :is(.icon, button) {
    color: #6a7a6e;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar-menu-search button {
    background: #e8eee9;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar-menu-search small {
    color: #758078;
    font-size: 10px;
    line-height: 1.65;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-section {
    color: #808c83;
    font-size: 10px;
    font-weight: 550;
    letter-spacing: .025em;
    margin-left: 11px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav {
    gap: 4px;
    scrollbar-color: #d8e0da transparent;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav > .nav-sort-item {
    margin-bottom: 5px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button {
    min-height: 43px;
    padding: 11px 12px;
    gap: 11px;
    border-radius: 9px;
    color: #58635c;
    background: transparent;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.5;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-group-trigger {
    font-size: 13px;
    padding: 11px 10px 11px 12px;
    gap: 11px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button > .icon {
    color: currentColor;
    opacity: .88;
    width: 19px;
    height: 19px;
    flex-shrink: 0;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-group-trigger > i {
    color: #9aa69d;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button.active {
    color: #fff;
    background: #244a30;
    font-weight: 650;
    box-shadow: none;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button.active::before {
    display: none;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button.active > .icon,
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button.active > i {
    color: #fff;
    opacity: 1;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .business-nav-group.nav-hovered .nav-group-trigger:not(.active) {
    background: #eef3ef;
    color: #244a30;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar :is(.nav-group-search-hint, .nav-no-match) {
    color: #6f7d72;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-count {
    color: #58725e;
    background: #eaf0eb;
    font-variant-numeric: tabular-nums;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button.active .nav-count {
    color: #fff;
    background: #ffffff24;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-sort-handle {
    color: #819087;
    opacity: .55;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .sidebar-bottom {
    border-top-color: #e8ece9;
    padding-top: 15px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .sidebar-status {
    color: #55675a;
    font-size: 11px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .sidebar-bottom p {
    color: #7b877e;
    line-height: 1.75;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .is-nav-dragging {
    background: #244a30 !important;
    box-shadow: 0 9px 24px #17332324 !important;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .is-nav-dragging :is(.nav-button, .nav-sort-handle) {
    color: #fff;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav="icons"] .sidebar .brand-mark {
    width: 44px;
    height: 44px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav="icons"] .sidebar .nav-button {
    width: 48px;
    min-width: 48px;
    min-height: 46px;
    padding: 12px;
    gap: 0;
    border-radius: 11px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav="icons"] .sidebar .nav-button > .icon {
    width: 21px;
    height: 21px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .nav-flyout {
    border-color: #e2e8e3;
    border-radius: 12px;
    box-shadow: 0 12px 32px #24352a14, 0 2px 6px #24352a05;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .nav-flyout .nav-button {
    font-size: 13px;
  }

  /* The toolbar stays quiet; title, search, time and identity remain distinct. */
  body:not(.mw-enabled):not(.touch-fullscreen) .main-wrap {
    --canvas: #f5f6f7;
    --ink: #242625;
    --text: #46534a;
    --muted: #6b786e;
    --line: #e5e9e6;
    --radius: 13px;
    --shadow: none;
    background: var(--canvas);
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .topbar {
    height: 72px;
    padding: 0 27px;
    border-bottom-color: #e5e9e6;
    background: #fff;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .topbar .system-title {
    color: #293c2e;
    font-size: 14px;
    font-weight: 650;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .topbar-actions {
    gap: 12px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .topbar-date {
    color: #748078;
    font-variant-numeric: tabular-nums;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .gs-field {
    height: 37px;
    border-color: #e4e9e5;
    border-radius: 9px;
    background: #f6f8f7;
    box-shadow: none;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .gs-field:focus-within {
    border-color: #6ca285;
    box-shadow: 0 0 0 3px #6ca2851a;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .role-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eaf0eb;
    color: #244a30;
    border: 1px solid #dfe7e0;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .current-role {
    border-left-color: #e7ece8;
    padding-left: 13px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .content {
    padding: 26px 27px 36px;
    max-width: 1800px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .page-heading {
    margin-bottom: 22px;
    gap: 20px;
    align-items: center;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .page-heading h1 {
    color: #263b2c;
    font-size: 25px;
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: 1.45;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .page-heading > div > .eyebrow {
    display: none;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .page-description {
    color: #738078;
    font-size: 12px;
    line-height: 1.75;
    margin-top: 5px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .workflow-global-host {
    padding: 14px 27px 0;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .workflow-strip {
    background: #fff;
    border-color: #e1e8e2;
    box-shadow: none;
    border-radius: 10px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .demo-banner {
    border-color: #e9dfd1;
    background: #fbf8f3;
    box-shadow: none;
    border-radius: 9px;
    margin-bottom: 18px;
  }

  /* Common surfaces are flat and consistent; status colors keep their meaning. */
  body:not(.mw-enabled):not(.touch-fullscreen) .main-wrap .card {
    border-color: #e2e7e3;
    border-radius: 13px;
    box-shadow: none;
    background: #fff;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .main-wrap .card-head {
    padding: 18px 21px 16px;
    border-bottom-color: #edf0ee;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .main-wrap .card-head h2 {
    color: #2b3e30;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -.025em;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .main-wrap .card-body {
    padding: 20px 21px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .main-wrap :is(.stack, .dashboard-grid) {
    gap: 20px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .main-wrap .stats {
    gap: 16px;
    margin-bottom: 20px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .main-wrap .stat-card {
    min-height: 119px;
    padding: 18px 20px;
    border-color: #e2e7e3;
    border-radius: 12px;
    box-shadow: none;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .main-wrap .stat-card::before {
    display: none;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .main-wrap .stat-value {
    font-size: 30px;
    line-height: 1.3;
    font-weight: 650;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .main-wrap .toolbar {
    gap: 10px;
    padding: 15px 20px;
    border-bottom-color: #e8ede9;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .main-wrap .button {
    border-radius: 8px;
    font-weight: 600;
    box-shadow: none;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .main-wrap .button.secondary {
    background: #fff;
    border-color: #dce5de;
    color: #34503c;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .main-wrap .button.ghost {
    color: #53695a;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .main-wrap :is(.button, .nav-button, .role-workbench-links button):focus-visible {
    outline: 2px solid #6ca285;
    outline-offset: 3px;
  }

  /* Compact work shortcuts leave the first screen for sales and production. */
  body:not(.mw-enabled):not(.touch-fullscreen) .role-workbench {
    display: grid;
    grid-template-columns: minmax(170px, .95fr) minmax(0, 3fr);
    gap: 3px 24px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border-color: #e2e7e3;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .role-workbench h2 {
    grid-column: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.5;
    color: #2e4635;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .role-workbench p {
    grid-column: 1;
    margin: 0;
    color: #748077;
    font-size: 11px;
    line-height: 1.65;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .role-workbench-links {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-content: center;
    gap: 8px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .role-workbench-links button {
    gap: 9px;
    min-height: 44px;
    padding: 10px 12px;
    border-color: #e6ebe7;
    border-radius: 9px;
    background: #fafcfb;
    color: #496050;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .role-workbench-links span {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .role-workbench-links svg {
    width: 19px;
    height: 19px;
    color: #6a9477;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .si-home-shortcut {
    min-height: 67px;
    padding: 13px 20px;
    margin-bottom: 21px;
    border: 1px solid #dce6df;
    border-radius: 12px;
    background: #edf3ef;
    box-shadow: none;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .si-home-shortcut strong {
    color: #244a30;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .si-home-shortcut small {
    color: #687c6e;
    font-size: 12px;
    margin-top: 0;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .si-home-shortcut > div > .icon {
    width: 23px;
    height: 23px;
    color: #426c50;
  }

  /* Sales is an everyday reading surface, not an oversized marketing hero. */
  body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .so-overview {
    margin-bottom: 22px;
    padding-bottom: 0;
    border-bottom: 0;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-heading {
    margin-bottom: 14px;
    padding: 0;
    background: none;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-heading .so-eyebrow,
  body:not(.mw-enabled):not(.touch-fullscreen) .so-details-heading > div > span {
    display: none;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-heading h2 {
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -.04em;
    color: #2b4232;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-heading p {
    font-size: 12px;
    color: #6f7e73;
    margin-top: 3px;
    font-variant-numeric: tabular-nums;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-period-tabs {
    padding: 4px;
    gap: 4px;
    margin-bottom: 16px;
    border-radius: 10px;
    max-width: 410px;
    background: #eaeeeb;
    border-color: transparent;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-period-tabs > button {
    min-height: 35px;
    padding: 7px 12px;
    border-radius: 7px;
    color: #66766a;
    font-size: 12px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-period-tabs > button[aria-pressed="true"] {
    color: #244a30;
    background: #fff;
    box-shadow: 0 1px 3px #24392b0c;
    font-weight: 650;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-summary-grid {
    grid-template-columns: minmax(210px, 1.05fr) minmax(0, 2fr);
    gap: 14px;
    margin-bottom: 14px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-summary-grid:has(> .so-hero:only-child) {
    grid-template-columns: 1fr;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-hero {
    min-height: 168px;
    padding: 20px 24px;
    gap: 6px;
    border: 1px solid #244a30;
    border-radius: 13px;
    background: #244a30;
    box-shadow: none;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-hero::before,
  body:not(.mw-enabled):not(.touch-fullscreen) .so-hero::after {
    display: none;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-hero-amount {
    font-size: clamp(28px, 2.7vw, 37px) !important;
    letter-spacing: -.04em;
    line-height: 1.25;
    font-weight: 600;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-hero-label {
    color: #dae5dd;
    font-size: 12px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-hero-count {
    gap: 9px;
    font-size: 12px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-hero-note {
    max-width: 100%;
    color: #ccddcf !important;
    font-size: 11px !important;
    line-height: 1.65;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-hero .so-hero-link {
    margin-top: 2px;
    padding: 4px 0;
    background: none;
    color: #e2eee5;
    border-radius: 4px;
    font-size: 11px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-finance-grid {
    gap: 12px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-finance-metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border-color: #e2e7e3;
    border-radius: 13px;
    background: #fff;
    box-shadow: none;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-finance-metric :is(span, small) {
    color: #697a6e;
    font-size: 12px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-finance-metric strong {
    font-size: clamp(22px, 2.05vw, 28px);
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -.035em;
    margin: 8px 0;
    color: #244a30;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-finance-metric:nth-child(2) strong {
    color: #956b43;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-finance-metric p {
    color: #748179;
    font-size: 11px;
    line-height: 1.7;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-settlement-detail {
    margin-bottom: 10px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-settlement-detail summary {
    min-height: 29px;
    color: #667c6c;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-details {
    border-color: #e1e7e2;
    border-radius: 13px;
    box-shadow: none;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-details > header,
  body:not(.mw-enabled):not(.touch-fullscreen) .so-details > .so-details-heading {
    padding: 17px 20px 13px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-details h3 {
    font-size: 16px;
    font-weight: 650;
    color: #2f4435;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-details-heading > span {
    color: #6f7d74;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-details .erp-table-wrap {
    margin-top: 10px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-details .erp-table th {
    padding: 10px 14px;
    color: #65756a;
    background: #f7f9f7;
    border-color: #e7ece8;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-details .erp-table td {
    padding: 11px 14px;
    font-size: 12px;
    line-height: 1.6;
    border-bottom-color: #edf0ed;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-details .erp-empty {
    padding: 28px 20px;
    color: #6e7d72;
  }

  /* Today’s production remains a compact, readable operations table. */
  body:not(.mw-enabled):not(.touch-fullscreen) .daily-production-card {
    border-color: #dce5de;
    border-radius: 13px;
    box-shadow: none;
    margin-bottom: 22px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .daily-production-header {
    padding: 16px 20px;
    background: #fff;
    border-bottom-color: #e6ece7;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .daily-production-title h2 {
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -.03em;
    color: #2a4432;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .daily-production-title p {
    color: #6c7c71;
    font-size: 12px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .daily-production-symbol {
    width: 36px;
    height: 36px;
    border-color: #e3eae4;
    background: #f0f5f1;
    border-radius: 10px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .daily-production-table {
    font-variant-numeric: tabular-nums;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .daily-production-table th {
    background: #f6f8f6;
    color: #617368;
    font-weight: 600;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .daily-production-table td {
    padding-top: 9px;
    padding-bottom: 9px;
    border-bottom-color: #edf1ed;
    line-height: 1.5;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .daily-production-table .daily-production-product strong {
    color: #304d39;
    font-size: 13px;
    font-weight: 600;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .daily-production-table .order-status {
    font-size: 12px;
    font-weight: 650;
    min-height: 27px;
    padding: 4px 8px;
    border-radius: 6px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .daily-production-note {
    padding: 10px 18px;
    background: #fafcfb;
    color: #6e7d73;
    font-size: 11px;
  }
}

/* Keep all useful columns at narrower desktop widths, with native table overflow. */
@media screen and (min-width: 761px) and (max-width: 1240px) {
  body:not(.mw-enabled):not(.touch-fullscreen) .content {
    padding: 24px 20px 32px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .topbar {
    padding: 0 20px;
    gap: 12px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .topbar-actions {
    gap: 8px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .workflow-global-host {
    padding-left: 20px;
    padding-right: 20px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .role-workbench {
    grid-template-columns: minmax(150px, .9fr) minmax(0, 3fr);
    gap: 4px 16px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .role-workbench-links button {
    padding: 9px;
    gap: 7px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-summary-grid {
    grid-template-columns: minmax(210px, 1fr) minmax(0, 2fr);
    gap: 12px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-finance-grid {
    gap: 10px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-finance-metric {
    padding: 16px 12px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-hero {
    padding: 18px 20px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}

@media screen and (min-width: 761px) and (max-width: 1100px) {
  body:not(.mw-enabled):not(.touch-fullscreen) .topbar .system-title {
    font-size: 13px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .role-workbench {
    grid-template-columns: 168px minmax(0, 1fr);
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .role-workbench-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .role-workbench-links button {
    min-height: 38px;
    padding: 7px 10px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .page-heading h1 {
    font-size: 23px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .stats {
    gap: 12px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .main-wrap .stat-card {
    padding: 16px;
  }
}

/* Keep the everyday sales period control on the same reading line as its title.
 * Actual records and a custom date range stay in normal flow across both columns.
 * No absolute positioning, cropped records or reduced text sizes are involved.
 */
@media screen and (min-width: 761px) {
  body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .content {
    padding-top: 20px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .page-heading {
    margin-bottom: 12px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .page-heading p {
    margin-top: 3px;
    line-height: 1.6;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .demo-banner {
    padding-top: 7px;
    padding-bottom: 7px;
    margin-bottom: 12px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .si-home-shortcut {
    min-height: 58px;
    padding: 9px 18px;
    margin-bottom: 18px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .si-home-shortcut > div {
    gap: 11px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .si-home-shortcut > div > span {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 14px;
    min-width: 0;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .si-home-shortcut strong {
    line-height: 1.5;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .so-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, .78fr);
    align-items: center;
    gap: 13px 24px;
    margin-bottom: 18px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .so-overview > .so-heading {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    gap: 12px;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .so-heading .so-analysis-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .so-overview > .so-period-tabs {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 100%;
    max-width: 380px;
    margin: 0;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .so-overview > :is(.so-custom-period, [data-commercial-overview-body], .so-error) {
    grid-column: 1 / -1;
    min-width: 0;
  }
  body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .so-overview > .so-custom-period {
    margin: 0;
  }
}

@media screen and (hover: hover) and (pointer: fine) and (min-width: 761px) {
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button:not(.active):hover,
  body:not(.mw-enabled):not(.touch-fullscreen) :is(.nav-mode-toggle, .nav-icon-search):hover {
    color: #244a30;
    background: #eef3ef;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-sort-handle:hover {
    color: #244a30;
    background: #eaf0eb;
    opacity: 1;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .role-workbench-links button:hover {
    color: #244a30;
    background: #f0f5f1;
    border-color: #cddbd0;
  }
  body:not(.mw-enabled):not(.touch-fullscreen) .so-hero:hover {
    background: #2c5338;
    border-color: #2c5338;
  }
}

/* Retain the existing egret engraving and luminous brand material. */
@media screen and (min-width:761px){
 body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .app-shell,
 body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="personal"] .app-shell{background:transparent}
 body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .main-wrap,
 body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="personal"] .main-wrap{background:radial-gradient(ellipse at 90% 0%,#e2eee8a0,transparent 48%),#f7f9f8}
 body:not(.mw-enabled):not(.touch-fullscreen) .so-hero{background:radial-gradient(ellipse at 98% -5%,#5f8d7255,transparent 61%),linear-gradient(123deg,#284b33,#173623 96%);box-shadow:inset 0 1px #ffffff24}
 body:not(.mw-enabled):not(.touch-fullscreen) .so-hero::before{display:block;opacity:.5}
 body:not(.mw-enabled):not(.touch-fullscreen) .so-hero::after{display:block;opacity:.23}
 body:not(.mw-enabled):not(.touch-fullscreen) :is(.so-finance-metric,.so-details,.pw-profile-card,.pw-section){background-color:#ffffffd9}
}
@media screen and (min-width:761px){
 body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .so-details .erp-empty.compact{min-height:112px;padding:18px 24px 22px;gap:6px}
 body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .so-details .erp-empty.compact h3{margin:4px 0;font-size:15px}
 body:not(.mw-enabled):not(.touch-fullscreen)[data-workspace-page="overview"] .so-details .erp-empty.compact p{margin:0;font-size:12px}
}
