/* MavOps Unified UI System — native HTML + Light DOM
   Horizon design-system theme. Default theme: LIGHT.
   IMPORTANT: font files are expected under MavOps_Assets/fonts/. */

/* =========================================================
   MavOps Typography
   ========================================================= */
@font-face {
  font-family: "Jost";
  src: url("./fonts/Jost-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("./fonts/Jost-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("./fonts/Jost-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/IBMPlexSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/IBMPlexSans-Bold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {

  /* ---------- TYPE ---------- */

  --font-display: "Jost", "Century Gothic", "Futura", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;


  /* ---------- NEUTRAL · THE RECORD ---------- */

  --navy-950: #0C202B;
  --navy-900: #102F40;
  --navy-800: #15394C;
  --navy-700: #19445A;
  --navy-600: #25566C;
  --navy-500: #356177;
  --navy-400: #66899A;

  --slate-900: #0F172A;
  --slate-800: #20283A;
  --slate-700: #34434A;
  --slate-500: #6B7478;
  --slate-400: #9CA5A8;
  --slate-300: #BEC8CC;
  --slate-200: #D5DEE2;
  --slate-100: #E5EBEE;

  --paper-100: #EEF1F2;
  --paper-50: #F6F8F8;
  --white: #FFFFFF;


  /* ---------- PRIMARY · CALM NAVY ---------- */

  --primary-700: #9F251A;
  --primary-600: #BE3021;
  --primary-500: #DA3B28;
  --primary-400: #E45B4B;
  --primary-300: #EC8377;

  --primary-wash: #FCEDEA;
  --primary-wash-strong: #F8DDD8;

  /*
   * Legacy aliases retained so any existing component that still references
   * the old coral token names automatically inherits the new navy palette.
   */
  --coral-700: var(--primary-700);
  --coral-600: var(--primary-600);
  --coral-500: var(--primary-500);
  --coral-400: var(--primary-400);
  --coral-300: var(--primary-300);
  --coral-wash: var(--primary-wash);
  --coral-wash-strong: var(--primary-wash-strong);


  /* ---------- AGENT / SECONDARY ACCENT ---------- */

  --agent-magenta: #DA3B28;
  --agent-violet: #7F4144;
  --agent-indigo: #19445A;
  --agent-cyan: #6FA8B8;
  --agent-deep: #19445A;

  --agent-thread:
    linear-gradient(
      90deg,
      #DA3B28 0%,
      #19445A 58%,
      #6FA8B8 100%
    );

  --agent-thread-v:
    linear-gradient(
      180deg,
      #DA3B28 0%,
      #19445A 58%,
      #6FA8B8 100%
    );

  --agent-wash: rgba(218, 59, 40, .06);
  --agent-wash-dark: rgba(102, 137, 154, .18);


  /* ---------- NAVIGATION / INFORMATION ---------- */

  --blue-600: #19445A;
  --blue-500: #25566C;
  --blue-400: #4E7A8D;
  --blue-wash: #EAF1F4;


  /* ---------- WARNING ---------- */

  --amber-600: #C78527;
  --amber-500: #E7A13C;
  --amber-wash: #FBF2E4;


  /* ---------- SUCCESS ---------- */

  --green-600: #0C8B68;
  --green-500: #149F79;
  --green-wash: #E6F4EF;


  /* ---------- DESTRUCTIVE / ERROR ---------- */

  --crimson-700: #54131D;
  --crimson-600: #721D29;
  --crimson-500: #912B38;
  --crimson-wash: #F7E9EC;
  --crimson-border: rgba(114, 29, 41, .26);


  /* ---------- MAVOPS SEMANTIC · LIGHT ---------- */

  --mavops-sidebar-width: 248px;

  --mavops-bg: var(--paper-50);
  --mavops-bg-soft: var(--paper-100);

  --mavops-panel: var(--white);
  --mavops-panel-2: #F8FAFA;
  --mavops-panel-3: var(--paper-100);

  /* Compatibility aliases used by component-level CSS. Keep these semantic
     so controls/icons never fall back to hard-coded white surfaces. */
  --mavops-surface: var(--mavops-panel);
  --mavops-surface-2: var(--mavops-panel-2);
  --mavops-surface-muted: var(--mavops-bg-soft);
  --mavops-surface-soft: var(--mavops-bg-soft);
  --mavops-border: var(--mavops-line);

  /* Shared interaction surfaces. Components should use these instead of
     hard-coded light backgrounds so hover/selection remains readable. */
  --mavops-hover: rgba(218, 59, 40, .06);
  --mavops-hover-strong: rgba(218, 59, 40, .11);
  --mavops-selected: rgba(218, 59, 40, .10);
  --mavops-selected-text: var(--mavops-text);
  --mavops-panel-hover: var(--mavops-hover);
  --mavops-accent: var(--mavops-primary);
  --mavops-accent-soft: var(--mavops-primary-soft);

  --mavops-input: var(--white);

  --mavops-line: var(--slate-100);
  --mavops-line-strong: var(--slate-200);

  --mavops-text: var(--slate-900);
  --mavops-text-soft: var(--slate-800);

  --mavops-muted: var(--slate-500);
  --mavops-muted-2: var(--slate-400);

  /* Calm navy hierarchy for page/card/section headings */
  --mavops-heading: #19445A;
  --mavops-heading-soft: #25566C;


  /* Primary application action */

  --mavops-primary: var(--primary-500);
  --mavops-primary-hover: var(--primary-600);
  --mavops-primary-active: var(--primary-700);

  --mavops-primary-soft: var(--primary-wash);
  --mavops-primary-soft-strong: var(--primary-wash-strong);

  --mavops-primary-border: var(--primary-400);


  /* Navigation / links / focus */

  --mavops-link: var(--mavops-primary);
  --mavops-link-hover: var(--mavops-primary-hover);

  --mavops-focus-color: #4E7A8D;


  /* Semantic status */

  --mavops-green: var(--green-500);
  --mavops-green-soft: var(--green-wash);

  --mavops-amber: var(--amber-500);
  --mavops-amber-soft: var(--amber-wash);

  --mavops-red: var(--crimson-600);
  --mavops-danger: var(--mavops-red);
  --mavops-red-soft: var(--crimson-wash);
  --mavops-red-border: var(--crimson-border);

  --mavops-cyan: var(--agent-cyan);


  /* ---------- SURFACE ---------- */

  --mavops-radius: 10px;
  --mavops-radius-sm: 6px;

  --mavops-shadow:
    0 1px 2px rgba(15, 23, 42, .055);

  --mavops-shadow-hover:
    0 4px 12px rgba(15, 23, 42, .075);

  --mavops-focus:
    0 0 0 2px rgba(78, 122, 141, .28);



  /* ---------- SHARED COMPONENT DESIGN CONTRACT ---------- */
  /* These values are consumed by both Light DOM styles and Shadow DOM LWCs. */
  --mavops-space-xs: 4px;
  --mavops-space-sm: 8px;
  --mavops-space-md: 12px;
  --mavops-space-lg: 16px;
  --mavops-space-xl: 24px;
  --mavops-control-height: 36px;
  --mavops-control-radius: 8px;
  --mavops-card-padding: 16px;
  --mavops-kpi-padding: 11px 13px;
  --mavops-kpi-value-size: 19px;
  --mavops-caption-size: 0.75rem;
  --mavops-focus-outline: 2px solid var(--mavops-primary);
  --mavops-status-positive-text: var(--mavops-green);
  --mavops-status-warning-text: #9A6400;
  --mavops-status-danger-text: var(--mavops-red);
  --mavops-status-info-text: var(--mavops-link);
  --mavops-status-positive-bg: var(--mavops-green-soft);
  --mavops-status-warning-bg: var(--mavops-amber-soft);
  --mavops-status-danger-bg: var(--mavops-red-soft);
  --mavops-status-info-bg: var(--blue-wash);
  --mavops-status-positive-border: rgba(5, 150, 105, .20);
  --mavops-status-warning-border: rgba(217, 119, 6, .20);
  --mavops-status-danger-border: var(--mavops-red-border);
  --mavops-status-info-border: var(--mavops-line-strong);
  --mavops-action-hover-border: var(--mavops-primary-border);
  --mavops-chart-revenue: #25566C;
  --mavops-chart-scheduled: #66899A;
  --mavops-chart-invoiced: #DA3B28;
  --mavops-chart-collected: #149F79;
  --mavops-chart-forecast: #C78527;
  --mavops-chart-approved: #149F79;
  --mavops-chart-non-billable: #66899A;
  --mavops-chart-grid: var(--mavops-line);

  /* ---------- SALESFORCE / EXPERIENCE CLOUD BRAND HOOKS ---------- */

  --dxp-g-brand: var(--mavops-primary);
  --dxp-g-brand-1: var(--mavops-primary-hover);
  --dxp-g-brand-2: var(--mavops-primary-active);

  --dxp-s-button-color: var(--mavops-primary);
  --dxp-s-button-color-hover: var(--mavops-primary-hover);
  --dxp-s-button-color-focus: var(--mavops-primary-hover);

  --slds-g-color-brand-base-50: var(--mavops-primary);
  --slds-g-color-brand-base-60: var(--mavops-primary-hover);

  --slds-c-button-brand-color-background: var(--mavops-primary);
  --slds-c-button-brand-color-background-hover: var(--mavops-primary-hover);
  --slds-c-button-brand-color-background-active: var(--mavops-primary-active);
  --slds-c-button-brand-color-border: var(--mavops-primary);
  --slds-c-button-brand-color-border-hover: var(--mavops-primary-hover);

  --slds-c-button-text-color: var(--mavops-text);
  --slds-c-input-color-border-focus: var(--mavops-focus-color);
  --slds-c-textarea-color-border-focus: var(--mavops-focus-color);
  --slds-c-combobox-color-border-focus: var(--mavops-focus-color);

  color-scheme: light;

  /* Utilization report semantic colors (shared light-theme palette). */
  --mavops-util-zero: var(--mavops-panel);
  --mavops-util-low: #EFF6FF;
  --mavops-util-mid: #DFEDFF;
  --mavops-util-high: #C9E2FF;
  --mavops-util-full: #AAD1FF;
  --mavops-util-over: #FFE0E7;
  --mavops-util-over-high: #FFB8C7;
  --mavops-util-blue: #3378C4;
  --mavops-util-blue-soft: #496B96;
  --mavops-util-blue-strong: #0754A7;
  --mavops-util-over-text: #A91B3A;
  --mavops-util-current: #E6F1FF;
  --mavops-util-current-border: #438FDF;
  --mavops-util-track: #E1E6ED;
  --mavops-util-bar: #438FDF;
  --mavops-util-bar-over: #EC4569;
  --mavops-util-kpi-count: #7B275D;
  --mavops-util-kpi-under: #8895A8;
}

:root[data-mavops-theme="dark"] {

  /* ========================================================
     DARK THEME
     1. Navigation = #161514
     2. Main canvas = #1E1C1A
     3. Cards / panels = #282521
     ======================================================== */


  /* ---------- SURFACES ---------- */

  /* Main application canvas / body */
  --mavops-bg: #1E1C1A;

  /* Slightly lifted alternate canvas surface */
  --mavops-bg-soft: #23211E;

  /* Main cards / panels */
  --mavops-panel: #282521;

  /* Secondary / nested card surfaces */
  --mavops-panel-2: #2E2B27;

  /* Stronger nested surface */
  --mavops-panel-3: #34312C;

  /* Compatibility aliases used by component-level CSS. */
  --mavops-surface: var(--mavops-panel);
  --mavops-surface-2: var(--mavops-panel-2);
  --mavops-surface-muted: var(--mavops-bg-soft);
  --mavops-surface-soft: var(--mavops-bg-soft);
  --mavops-border: var(--mavops-line);

  /* Dark interaction states intentionally stay translucent over dark cards.
     Never switch the row/option itself to a white/light surface. */
  --mavops-hover: rgba(228, 91, 75, .12);
  --mavops-hover-strong: rgba(228, 91, 75, .19);
  --mavops-selected: rgba(228, 91, 75, .18);
  --mavops-selected-text: #FFFFFF;
  --mavops-panel-hover: var(--mavops-hover);
  --mavops-accent: var(--mavops-primary);
  --mavops-accent-soft: var(--mavops-primary-soft);

  /* Form controls */
  --mavops-input: #23211E;

  /* Used by existing explicit dark-mode hover rules */
  --plum-800: #2E2B27;


  /* ---------- BORDERS ---------- */

  --mavops-line: rgba(255, 255, 255, .09);
  --mavops-line-strong: rgba(255, 255, 255, .16);


  /* ---------- TEXT ---------- */

  --mavops-text: #FFFFFF;
  --mavops-text-soft: #F1EFEC;

  --mavops-muted: #D0CCC7;
  --mavops-muted-2: #A9A49E;

  --mavops-heading: #FFFFFF;
  --mavops-heading-soft: #EEEAE5;


  /* ---------- NAVIGATION ---------- */

  --mavops-nav-text: #F4F1ED;
  --mavops-nav-icon: #E3DED8;
  --mavops-nav-section: #BEB8B1;


  /* ---------- PRIMARY · BRICK RED ---------- */

  --mavops-primary: #E45B4B;
  --mavops-primary-hover: #EA7163;
  --mavops-primary-active: #F08A80;

  --mavops-primary-soft: rgba(218, 59, 40, .18);
  --mavops-primary-soft-strong: rgba(228, 91, 75, .25);

  --mavops-primary-border: #E98073;


  /* ---------- LINKS / FOCUS ---------- */

  --mavops-link: var(--mavops-primary);
  --mavops-link-hover: var(--mavops-primary-hover);

  --mavops-focus-color: #A8CBD8;

  --mavops-focus:
    0 0 0 2px rgba(168, 203, 216, .30);


  /* ---------- STATUS ---------- */

  --mavops-green: #5BD0A9;
  --mavops-green-soft: rgba(91, 208, 169, .14);

  --mavops-amber: #F3BD66;
  --mavops-amber-soft: rgba(243, 189, 102, .14);

  --mavops-red: #F19AA4;
  --mavops-danger: var(--mavops-red);
  --mavops-red-soft: rgba(241, 154, 164, .14);
  --mavops-red-border: rgba(241, 154, 164, .30);

  --mavops-cyan: #91C4D0;


  /* ---------- SHADOWS ---------- */

  --mavops-shadow:
    0 1px 3px rgba(0, 0, 0, .28);

  --mavops-shadow-hover:
    0 5px 18px rgba(0, 0, 0, .34);


  /* ---------- SALESFORCE / EXPERIENCE CLOUD ---------- */

  --dxp-g-brand: var(--mavops-primary);
  --dxp-g-brand-1: var(--mavops-primary-hover);
  --dxp-g-brand-2: var(--mavops-primary-active);

  --dxp-s-button-color: var(--mavops-primary);
  --dxp-s-button-color-hover: var(--mavops-primary-hover);
  --dxp-s-button-color-focus: var(--mavops-primary-hover);

  --slds-g-color-brand-base-50: var(--mavops-primary);
  --slds-g-color-brand-base-60: var(--mavops-primary-hover);

  --slds-c-button-brand-color-background: var(--mavops-primary);
  --slds-c-button-brand-color-background-hover: var(--mavops-primary-hover);
  --slds-c-button-brand-color-background-active: var(--mavops-primary-active);

  --slds-c-button-brand-color-border: var(--mavops-primary);
  --slds-c-button-brand-color-border-hover: var(--mavops-primary-hover);

  color-scheme: dark;
  /* Shared status and chart contrasts in dark mode. */
  --mavops-status-warning-text: var(--mavops-amber);
  --mavops-status-positive-border: rgba(91, 208, 169, .30);
  --mavops-status-warning-border: rgba(243, 189, 102, .30);
  --mavops-status-info-bg: var(--mavops-panel-3);
  --mavops-chart-revenue: #9ACFF6;
  --mavops-chart-scheduled: #ACC8E0;
  --mavops-chart-invoiced: #F08A80;
  --mavops-chart-collected: #5BD0A9;
  --mavops-chart-forecast: #F3BD66;
  --mavops-chart-approved: #5BD0A9;
  --mavops-chart-non-billable: #ACC8E0;
  /* Utilization report dark-theme colors: readable contrasting cells. */
  --mavops-util-zero: var(--mavops-panel-2);
  --mavops-util-low: #263643;
  --mavops-util-mid: #294A60;
  --mavops-util-high: #2A5C7A;
  --mavops-util-full: #317CA5;
  --mavops-util-over: #65303F;
  --mavops-util-over-high: #8F364C;
  --mavops-util-blue: #9ACFF6;
  --mavops-util-blue-soft: #ACC8E0;
  --mavops-util-blue-strong: #C5E5FF;
  --mavops-util-over-text: #FFD0DC;
  --mavops-util-current: #2A3F4B;
  --mavops-util-current-border: #91C4D0;
  --mavops-util-track: #484A4C;
  --mavops-util-bar: #91C4D0;
  --mavops-util-bar-over: #F19AA4;
  --mavops-util-kpi-count: #E5A8C9;
  --mavops-util-kpi-under: #A9A49E;

}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--mavops-bg) !important;
  color: var(--mavops-text) !important;
  font-family: var(--font-body) !important;
  font-size: 14px;
  line-height: 1.45;
}

body {
  overflow: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
.mavops-title,
.page-title,
.ui-page-title,
.ui-card-title,
.lookup-modal-title {
  font-family: var(--font-display);
  font-weight: 500;
}

.num,
.number-col,
.mono,
.time-input,
.week-total-value,
.summary-value,
.kpi-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Table headings use the standard UI font; mono/tabular typography is reserved for row values. */
th.num,
th.number-col,
th.mono,
thead .num,
thead .number-col,
thead .mono {
  font-family: var(--font-body);
  font-variant-numeric: normal;
  font-feature-settings: normal;
}

button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--mavops-link);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
strong {
  color: var(--mavops-text);
}

.sr-only,
.assistive-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Application shell */
.mavops-app-shell {
  height: 100vh;
  display: flex;
  overflow: hidden;
  background: var(--mavops-bg);
}

/* Account impersonation is a fixed, compact ribbon. Reserve its height in the
   application shell so neither the sidebar nor page content is obscured. */
.mavops-app-shell:has(.mavops-impersonation-banner) {
  box-sizing: border-box;
  padding-top: 40px;
}

.mavops-app-shell:has(.mavops-impersonation-banner) .mavops-sidebar {
  height: 100%;
}

.mavops-app-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: var(--mavops-bg);
  color: var(--mavops-text);
}

.mavops-page-stage {
  min-height: 100%;
  padding: 28px 32px 40px;
}

.mavops-page {
  max-width: 1540px;
  margin: 0 auto;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Sidebar — themed in both modes */
.mavops-sidebar {
  width: var(--mavops-sidebar-width);
  flex: 0 0 var(--mavops-sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--mavops-panel);
  color: var(--mavops-text);
  border-right: 1px solid var(--mavops-line);
  transition: width .18s ease, flex-basis .18s ease;
  position: relative;
  z-index: 20;
}

:root[data-mavops-theme="dark"] .mavops-sidebar {
  background: #161514;
}

.mavops-sidebar.is-collapsed {
  width: 72px;
  flex-basis: 72px;
}

.sidebar-top {
  height: 76px;
  flex: 0 0 76px;
  padding: 14px 13px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mavops-line);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--mavops-text);
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.brand-symbol,
.avatar {
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
}


.avatar {
  background: var(--mavops-primary);
}

.brand-symbol {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 11px;
  font-size: 14px;
}

.brand-symbol img {
  width: 100%;
  height: 100%;
}

.avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  font-size: 0.75rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: center;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: .025em;
}

.brand-text small,
.profile-copy small {
  color: var(--mavops-muted);
  font-size: 0.75rem;
  margin-top: 2px;
}

.sidebar-toggle,
.mavops-icon-btn {
  border: 1px solid var(--mavops-line);
  background: var(--mavops-panel-2);
  color: var(--mavops-text-soft);
  cursor: pointer;
  border-radius: 8px;
}

.sidebar-toggle {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.sidebar-toggle:hover,
.mavops-icon-btn:hover:not(:disabled) {
  color: var(--mavops-primary);
  border-color: var(--mavops-primary-border);
  background: var(--mavops-primary-soft);
}

.sidebar-nav {
  padding: 14px 10px;
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
}

.nav-section-label {
  margin: 12px 12px 7px;
  color: var(--mavops-nav-section) !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
}

.sidebar-link {
  width: 100%;
  height: 40px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--mavops-nav-text);
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 9px;
  padding: 0 11px;
  margin: 2px 0;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  transition: .14s ease;
}

.sidebar-link:hover {
  color: var(--mavops-text);
  background: var(--mavops-bg-soft);
}

.sidebar-link.is-active {
  color: var(--mavops-primary);
  background: var(--mavops-primary-soft);
  border-left-color: var(--mavops-primary);
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  color: var(--mavops-nav-icon);
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.sidebar-link.is-active .nav-icon {
  color: var(--mavops-primary);
}

.sidebar-bottom {
  position: relative;
  padding: 10px;
  border-top: 1px solid var(--mavops-line);
}

.profile-card,
.theme-toggle {
  width: 100%;
  border: 0;
  color: var(--mavops-text);
  background: transparent;
  cursor: pointer;
  border-radius: 9px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  text-align: left;
}

.profile-card:hover,
.theme-toggle:hover {
  background: var(--mavops-bg-soft);
}

.profile-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.profile-copy strong {
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-chevron {
  color: var(--mavops-muted);
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin-bottom: 3px;
  text-align: left;
}

.theme-toggle-track {
  width: 36px;
  height: 20px;
  flex: 0 0 36px;
  padding: 2px;
  border-radius: 12px;
  background: var(--mavops-bg-soft);
  border: 1px solid var(--mavops-line-strong);
  display: flex;
  align-items: center;
}

.theme-toggle-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mavops-primary);
  color: var(--white);
  font-size: 0.75rem;
  transform: translateX(14px);
  transition: transform .16s ease;
}

:root[data-mavops-theme="dark"] .theme-toggle-thumb {
  transform: translateX(0);
}

.theme-toggle-label {
  color: var(--mavops-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.profile-popover {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 68px;
  background: var(--mavops-panel);
  border: 1px solid var(--mavops-line);
  border-radius: 10px;
  padding: 6px;
  box-shadow: var(--mavops-shadow);
  z-index: 50;
}

.profile-popover button {
  width: 100%;
  border: 0;
  background: none;
  color: var(--mavops-text);
  text-align: left;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.75rem;
}

.profile-popover button:hover {
  background: var(--mavops-bg-soft);
}

.mavops-sidebar.is-collapsed .brand-text,
.mavops-sidebar.is-collapsed .nav-section-label,
.mavops-sidebar.is-collapsed .sidebar-link>span:last-child,
.mavops-sidebar.is-collapsed .profile-copy,
.mavops-sidebar.is-collapsed .profile-chevron,
.mavops-sidebar.is-collapsed .theme-toggle-label {
  display: none;
}

.mavops-sidebar.is-collapsed .sidebar-link,
.mavops-sidebar.is-collapsed .profile-card,
.mavops-sidebar.is-collapsed .theme-toggle {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.mavops-sidebar.is-collapsed .sidebar-toggle {
  position: absolute;
  left: 20px;
  top: 82px;
}

.mavops-sidebar.is-collapsed .sidebar-nav {
  padding-top: 48px;
}

/* Typography */
.mavops-kicker,
.eyebrow,
.ui-eyebrow {
  margin: 0 0 6px !important;
  color: var(--mavops-primary) !important;
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

.mavops-title,
.page-title,
.ui-page-title {
  margin: 0 !important;
  color: var(--mavops-text) !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-weight: 750 !important;
  letter-spacing: -.025em !important;
}

.ui-page-title.small {
  font-size: 19px !important;
}

.mavops-subtitle,
.subtitle,
.ui-page-subtitle,
.ui-card-subtitle {
  margin: 6px 0 0 !important;
  color: var(--mavops-muted) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  max-width: 780px;
}

.ui-card-title {
  margin: 0 !important;
  color: var(--mavops-text) !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

.ui-card-title.large {
  font-size: 18px !important;
}

.ui-subtext,
.subtext,
.muted {
  color: var(--mavops-muted) !important;
  font-size: 0.75rem !important;
  line-height: 1.45;
}

/* Page/cards */
.ui-card,
.mavops-card,
.panel,
.data-panel,
.organization-panel,
.portfolio-panel,
.revenue-panel,
.entries-section,
.assignments-strip {
  background: var(--mavops-panel) !important;
  color: var(--mavops-text) !important;
  border: 1px solid var(--mavops-line) !important;
  border-radius: var(--mavops-radius) !important;
  box-shadow: var(--mavops-shadow) !important;
}

.ui-page-card {
  padding: 20px;
}

.ui-card-fill {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ui-page-header,
.mavops-page-header,
.workspace-header,
.panel-header,
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.ui-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 14px;
}

.ui-card-header.compact {
  padding: 14px 16px;
  border-bottom: 1px solid var(--mavops-line);
}

.ui-card-header.responsive {
  align-items: flex-end;
}

.inset-card {
  padding: 16px;
  background: var(--mavops-panel-2) !important;
  box-shadow: none !important;
}


/* Salesforce / Experience Cloud brand fallback for Light DOM.
   This ensures framework-rendered brand actions use the same calm navy primary. */
.slds-button_brand,
.slds-button--brand {
  background-color: var(--mavops-primary) !important;
  border-color: var(--mavops-primary) !important;
  color: var(--white) !important;
}

.slds-button_brand:hover,
.slds-button_brand:focus,
.slds-button--brand:hover,
.slds-button--brand:focus {
  background-color: var(--mavops-primary-hover) !important;
  border-color: var(--mavops-primary-hover) !important;
  color: var(--white) !important;
}

.slds-button_brand:active,
.slds-button--brand:active {
  background-color: var(--mavops-primary-active) !important;
  border-color: var(--mavops-primary-active) !important;
}

/* Native buttons */
.mavops-btn {
  min-height: 36px;
  border: 1px solid var(--mavops-line-strong);
  border-radius: 8px;
  background: var(--mavops-panel-2);
  color: var(--mavops-text);
  padding: 7px 13px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 650;
  transition: .14s ease;
  white-space: nowrap;
}

.mavops-btn:hover:not(:disabled) {
  border-color: var(--mavops-primary-border);
  background: var(--mavops-primary-soft);
  color: var(--mavops-primary);
}

.mavops-btn-primary {
  border-color: var(--mavops-primary) !important;
  color: var(--white) !important;
  background: var(--mavops-primary) !important;
  box-shadow: none !important;
}

.mavops-btn-primary:hover:not(:disabled) {
  background: var(--mavops-primary-hover) !important;
  border-color: var(--mavops-primary-hover) !important;
  color: var(--white) !important;
}

.mavops-btn-danger {
  color: var(--mavops-red) !important;
  border-color: var(--mavops-red-border) !important;
  background: var(--mavops-red-soft) !important;
}

.mavops-btn-quiet {
  background: transparent;
}

.mavops-btn.compact {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.75rem;
}

.mavops-btn:disabled,
.mavops-icon-btn:disabled,
.mavops-link-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.mavops-icon-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  font-weight: 700;
  transition: .14s ease;
}

.mavops-icon-btn-small {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  font-size: 13px;
}

.mavops-icon-btn.danger,
.mavops-icon-btn-small.danger {
  color: var(--mavops-red);
}

.mavops-link-btn,
.ui-link-button {
  border: 0;
  background: transparent;
  color: var(--mavops-primary);
  padding: 4px 0;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
}

.mavops-link-btn:hover,
.ui-link-button:hover {
  color: var(--mavops-primary-hover);
  text-decoration: underline;
}

/* Native fields */
.mavops-field,
.ui-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.mavops-field>span,
.ui-field>span,
.week-label,
.lookup-label {
  color: var(--mavops-muted) !important;
  font-size: 0.75rem !important;
  line-height: 1.2;
  font-weight: 650;
}

.mavops-field input,
.mavops-field select,
.mavops-field textarea,
.ui-field input,
.ui-field select,
.ui-field textarea,
.selection-combobox,
.lookup-search-input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--mavops-line-strong) !important;
  border-radius: 8px !important;
  background: var(--mavops-input) !important;
  color: var(--mavops-text) !important;
  padding: 7px 10px !important;
  outline: none;
  box-shadow: none !important;
}

.ui-field textarea {
  min-height: 88px;
  resize: vertical;
}

.ui-field input::placeholder,
.mavops-field input::placeholder,
.lookup-search-input::placeholder {
  color: var(--mavops-muted-2);
}

.ui-field input:focus,
.ui-field select:focus,
.ui-field textarea:focus,
.mavops-field input:focus,
.mavops-field select:focus,
.selection-combobox:focus,
.lookup-search-input:focus {
  border-color: var(--mavops-primary) !important;
  box-shadow: var(--mavops-focus) !important;
}

.ui-field small {
  color: var(--mavops-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.ui-toggle-field,
.ui-check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mavops-text-soft);
  font-size: 0.75rem;
  min-height: 36px;
}

/* Native checkbox/radio normalization. LWR light DOM can inherit broad input rules
   (including min-height/padding) from component/shared styles, so reset all box controls
   explicitly instead of relying on width/height alone. */
.ui-toggle-field>input[type="checkbox"],
.ui-check-field>input[type="checkbox"],
.checkbox-line>input[type="checkbox"],
.ui-field>input[type="checkbox"],
.mavops-checkbox[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  flex: 0 0 16px !important;
  accent-color: var(--mavops-primary);
  cursor: pointer;
}

.ui-toggle-field>input[type="radio"],
.ui-check-field>input[type="radio"],
.ui-field>input[type="radio"],
.mavops-radio[type="radio"] {
  appearance: auto !important;
  -webkit-appearance: radio !important;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  flex: 0 0 16px !important;
  accent-color: var(--mavops-primary);
  cursor: pointer;
}

.ui-toggle-field>input[type="checkbox"]:disabled,
.ui-check-field>input[type="checkbox"]:disabled,
.mavops-checkbox[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.form-grid>.ui-toggle-field,
.form-grid>.ui-check-field {
  align-self: end;
  padding: 0 2px;
}

.ui-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.ui-toolbar.wrap {
  align-items: flex-end;
}

.ui-toolbar.compact {
  gap: 8px;
}

.ui-toolbar.compact-actions {
  align-items: center;
}

.ui-toolbar-grid {
  display: grid;
  gap: 12px;
  align-items: end;
}

.ui-toolbar-grid.four {
  grid-template-columns: minmax(140px, 190px) minmax(140px, 190px) minmax(240px, 1fr) auto;
}

.ui-toolbar-grid.five {
  grid-template-columns: minmax(135px, 180px) minmax(135px, 180px) minmax(240px, 1fr) auto auto;
}

.ui-field.grow,
.grow {
  flex: 1;
  min-width: 220px;
}

.align-end {
  align-self: end;
}

.form-grid {
  display: grid;
  gap: 13px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

/* Reusable KPI */
.ui-kpi-grid,
.mavops-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ui-kpi {
  min-width: 0;
  min-height: 82px;
  padding: 11px 34px 11px 13px;
  background: var(--mavops-panel-2);
  border: 1px solid var(--mavops-line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.ui-kpi.compact {
  min-height: 70px;
  padding: 9px 32px 9px 12px;
}

.ui-kpi.interactive {
  text-align: left;
  cursor: pointer;
  color: var(--mavops-text);
}

.ui-kpi.interactive:hover {
  border-color: var(--mavops-primary-border);
  background: var(--mavops-primary-soft);
}

.ui-kpi-label {
  color: var(--mavops-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 650;
}

.ui-kpi strong {
  font-size: 19px;
  line-height: 1.15;
}

.ui-kpi small {
  color: var(--mavops-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.detail-grid,
.mini-metric-grid,
.financial-row {
  display: grid;
  gap: 10px;
}

.detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-grid.compact {
  padding: 14px 0;
  border-top: 1px solid var(--mavops-line);
  border-bottom: 1px solid var(--mavops-line);
}

.detail-grid>div,
.mini-metric-grid>div,
.financial-row>div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  word-wrap: anywhere;
}

.detail-grid span,
.mini-metric-grid span,
.financial-row span {
  color: var(--mavops-muted);
  font-size: 0.75rem;
}

.detail-grid strong,
.mini-metric-grid strong,
.financial-row strong {
  font-size: 12px;
}

.mini-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-metric-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Reusable table */
.ui-table-shell,
.table-wrap,
.table-frame {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--mavops-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--mavops-panel);
}

.ui-table-scroll,
.table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.ui-table,
.table-wrap table,
.table-frame table,
.table-scroll table,
.portfolio-table,
.revenue-table {
  width: max-content;
  min-width: 100%;
  max-width: none;
  table-layout: auto;
  border-collapse: collapse;
  color: var(--mavops-text);
  font-size: 0.75rem;
}

.ui-table th,
.table-wrap th,
.table-frame th,
.table-scroll th,
.portfolio-table th,
.revenue-table th {
  padding: 10px 12px;
  color: var(--mavops-muted);
  background: var(--mavops-panel-2);
  border-bottom: 1px solid var(--mavops-line);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: .01em;
  white-space: nowrap;
}

.ui-table td,
.table-wrap td,
.table-frame td,
.table-scroll td,
.portfolio-table td,
.revenue-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--mavops-line);
  vertical-align: middle;
  color: var(--mavops-text-soft);
}

.ui-table th,
.ui-table td,
.table-wrap th,
.table-wrap td,
.table-frame th,
.table-frame td,
.table-scroll th,
.table-scroll td {
  min-width: 96px;
}

.ui-table .ui-link-button,
.ui-table td>strong:first-child,
.table-wrap td>strong:first-child,
.table-frame td>strong:first-child {
  white-space: nowrap;
}

.ui-table .project-cell,
.ui-table .resource-cell,
.ui-table .account-cell,
.ui-table .name-cell {
  min-width: 180px;
  max-width: 300px;
}

.ui-table .text-cell,
.ui-table .comment-cell,
.ui-table .description-cell {
  min-width: 180px;
  max-width: 360px;
}

.ui-table .date-cell {
  min-width: 130px;
  white-space: nowrap;
}

.ui-table .actions-cell,
.ui-table .actions-col {
  min-width: 120px;
  white-space: nowrap;
}

.ui-page-card,
.ui-card,
.page-stack,
.ui-panel {
  min-width: 0;
  max-width: 100%;
}

.ui-table tr:last-child td,
.table-wrap tr:last-child td,
.table-frame tr:last-child td {
  border-bottom: 0;
}

.ui-table tbody tr:hover,
.table-wrap tbody tr:hover,
.table-frame tbody tr:hover {
  background: var(--mavops-hover);
  color: var(--mavops-text);
}

.ui-table.compact td,
.ui-table.compact th {
  padding: 8px 10px;
}

.num,
.number-col {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

.actions-col {
  width: 1%;
}

.sticky-first {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--mavops-panel) !important;
}

thead .sticky-first {
  background: var(--mavops-panel-2) !important;
}

.status-badge,
.status,
.health {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--mavops-bg-soft);
  border: 1px solid var(--mavops-line);
  color: var(--mavops-text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-ready,
.status-approved,
.health-on-track,
.complete-value {
  color: var(--mavops-green) !important;
  background: var(--mavops-green-soft) !important;
  border-color: rgba(5, 150, 105, .2) !important;
}

.status-rejected,
.health-at-risk,
.missing-value,
.status-issue {
  color: var(--mavops-red) !important;
  background: var(--mavops-red-soft) !important;
  border-color: var(--mavops-red-border) !important;
}

.status-submitted,
.status-in-progress,
.health-watch {
  color: var(--mavops-amber) !important;
  background: var(--mavops-amber-soft) !important;
  border-color: rgba(217, 119, 6, .2) !important;
}

/* State / alerts */
.ui-alert,
.error-panel,
.error {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.75rem;
}

.ui-alert.error,
.error-panel,
.error {
  color: var(--mavops-red);
  background: var(--mavops-red-soft);
  border: 1px solid rgba(225, 29, 72, .2);
}

.ui-note {
  padding: 10px 12px;
  border: 1px solid var(--mavops-line);
  border-radius: 8px;
  background: var(--mavops-panel-2);
  color: var(--mavops-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.ui-state,
.empty-state,
.empty {
  min-height: 80px;
  padding: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--mavops-muted);
  font-size: 0.75rem;
}

.ui-inline-loading,
.inline-loading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--mavops-muted);
  font-size: 0.75rem;
  padding: 8px 0;
}

.mavops-spinner {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2px solid var(--mavops-line-strong);
  border-top-color: var(--mavops-primary);
  border-radius: 50%;
  animation: mavops-spin .75s linear infinite;
}

@keyframes mavops-spin {
  to {
    transform: rotate(360deg);
  }
}

.ui-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(9, 9, 11, .22);
  backdrop-filter: blur(2px);
  color: var(--mavops-text);
}

/* Home dashboard */
.mavops-page-header {
  margin-bottom: 16px;
}

.mavops-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mavops-metric {
  padding: 15px;
  min-height: 106px;
}

.mavops-metric-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.mavops-metric-label {
  color: var(--mavops-muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.mavops-metric-icon,
.quick-icon {
  display: grid;
  place-items: center;
  color: var(--mavops-primary);
  background: var(--mavops-primary-soft);
  border: 1px solid var(--mavops-primary-border);
}

.mavops-metric-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.mavops-metric-value {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 750;
  color: var(--mavops-text);
}

.mavops-metric-value.role-value {
  font-size: 16px;
}

.mavops-metric-meta {
  color: var(--mavops-muted);
  font-size: 0.75rem;
  margin-top: 4px;
}

.mavops-grid {
  display: grid;
  gap: 12px;
}

.mavops-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mavops-section {
  margin-top: 14px;
}

.mavops-section-card {
  padding: 16px;
}

.mavops-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.mavops-section-title {
  margin: 0;
  font-size: 14px;
}

.mavops-section-note {
  margin: 4px 0 0;
  color: var(--mavops-muted);
  font-size: 0.75rem;
}

.trend-chip,
.ui-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--mavops-primary-soft);
  color: var(--mavops-primary);
  border: 1px solid var(--mavops-primary-border);
  font-size: 0.75rem;
  font-weight: 700;
}

.mavops-mini-chart {
  height: 150px;
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--mavops-line);
  padding: 0 8px;
}

.mavops-bar {
  flex: 1;
  min-width: 18px;
  max-width: 46px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--mavops-primary), rgba(25, 68, 90, .34));
  position: relative;
}

.mavops-bar span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -20px;
  color: var(--mavops-muted);
  font-size: 0.75rem;
}

.donut-wrap {
  min-height: 150px;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 20px;
}

.mavops-donut {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(var(--mavops-primary) 0 82%, var(--mavops-line) 82% 100%);
  display: grid;
  place-items: center;
}

.mavops-donut::after {
  content: "";
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--mavops-panel);
  position: absolute;
}

.mavops-donut {
  position: relative;
}

.mavops-donut-label {
  position: relative;
  z-index: 1;
  text-align: center;
}

.mavops-donut-label strong {
  display: block;
  font-size: 18px;
}

.mavops-donut-label span {
  color: var(--mavops-muted);
  font-size: 0.75rem;
}

.mavops-legend {
  display: grid;
  gap: 9px;
  color: var(--mavops-muted);
  font-size: 0.75rem;
}

.mavops-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 7px;
  background: var(--mavops-primary);
}

.mavops-dot.cyan {
  background: var(--mavops-cyan)
}

.mavops-dot.green {
  background: var(--mavops-green)
}

.mavops-dot.gray {
  background: var(--mavops-muted-2)
}

.mavops-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.mavops-quick-link {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--mavops-line);
  background: var(--mavops-panel);
  color: var(--mavops-text);
  cursor: pointer;
  box-shadow: var(--mavops-shadow);
}

.mavops-quick-link:hover {
  border-color: var(--mavops-primary-border);
  background: var(--mavops-primary-soft);
}

.mavops-quick-link strong {
  display: block;
  font-size: 0.75rem;
}

.mavops-quick-link small {
  display: block;
  margin-top: 3px;
  color: var(--mavops-muted);
  font-size: 0.75rem;
}

.dashboard-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.dashboard-detail>* {
  height: 100%
}

.home-list-card {
  min-height: 250px;
  padding: 0 !important;
  overflow: hidden;
}

.home-card-body {
  padding: 12px 16px 16px;
}

.home-project-list,
.holiday-list-native {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-project-row,
.holiday-list-native>article {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--mavops-line);
  background: transparent !important;
}

.home-project-row:last-child,
.holiday-list-native>article:last-child {
  border-bottom: 0
}

.home-project-icon,
.date-tile-native {
  width: 36px;
  height: auto;
  flex: 0 0 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--mavops-primary);
  background: var(--mavops-primary-soft);
  border: 1px solid var(--mavops-primary-border);
}

.home-project-main,
.holiday-main {
  flex: 1;
  min-width: 0;
}

.home-project-heading,
.holiday-heading-native {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.home-project-heading strong,
.holiday-heading-native strong {
  font-size: 0.75rem;
}

.home-project-meta,
.home-project-footer,
.holiday-date-native,
.holiday-hours-native {
  color: var(--mavops-muted);
  font-size: 0.75rem;
  margin-top: 3px;
}

.home-project-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.calendar-summary-native {
  padding: 10px 0;
  border-bottom: 1px solid var(--mavops-line);
  margin-bottom: 4px;
  color: var(--mavops-text-soft);
  font-size: 0.75rem
}

/* Native tabs */
.native-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--mavops-line);
}

.native-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--mavops-muted);
  padding: 9px 12px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

.native-tab:hover {
  color: var(--mavops-text);
}

.native-tab.is-active {
  color: var(--mavops-primary);
  border-bottom-color: var(--mavops-primary);
}

/* Project/manager cards */
.project-card-grid,
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-summary-card,
.candidate-card {
  padding: 15px;
  box-shadow: none !important;
}

.project-summary-card>header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.project-summary-card h3 {
  margin: 2px 0 0;
  font-size: 13px
}

.project-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--mavops-muted);
  font-size: 0.75rem;
  margin: 10px 0
}

.progress-block {
  margin: 12px 0
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--mavops-muted);
  font-size: 0.75rem;
  margin-bottom: 5px
}

.progress-track {
  height: 5px;
  border-radius: 999px;
  background: var(--mavops-line);
  overflow: hidden
}

.progress-track>span {
  height: 100%;
  display: block;
  background: var(--mavops-primary);
  border-radius: 999px
}

.financial-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0
}

.candidate-panel {
  padding-top: 4px
}

.candidate-card>.mavops-btn {
  margin-top: 12px;
  width: 100%
}

/* Capacity */
.capacity-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.capacity-table {
  min-width: 900px;
}

.capacity-table th:not(.sticky-first),
.capacity-table td:not(.sticky-first) {
  min-width: 130px;
  text-align: center
}

.capacity-table .sticky-first {
  min-width: 190px;
  max-width: 220px
}

/* Revenue */
.ui-filter-grid.revenue-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.scope-row-native {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.revenue-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.recognition-control-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.6fr) minmax(140px, .55fr) minmax(160px, .65fr) auto;
  gap: 12px;
  align-items: end;
}

.ui-disclosure {
  border: 1px solid var(--mavops-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--mavops-panel);
}

.ui-disclosure>summary {
  cursor: pointer;
  padding: 12px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mavops-text);
  background: var(--mavops-panel-2);
}

/* Time Entry — parent and task grids intentionally scroll independently */
.time-entry-shell {
  max-width: 1540px;
  margin: 0 auto;
}

.workspace-header {
  margin-bottom: 16px;
  align-items: flex-end;
}

.week-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.week-picker {
  width: 170px
}

.date-input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--mavops-line-strong);
  border-radius: 8px;
  background: var(--mavops-input);
  color: var(--mavops-text);
  padding: 7px 9px
}

.entries-section {
  overflow: hidden;
}

.entries-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--mavops-line);
}

.entries-heading h3,
.assignments-heading h3 {
  margin: 0;
  font-size: 13px
}

.entries-heading span,
.assignments-heading span {
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.selection-combobox {
  width: 210px !important;
  min-height: 36px !important
}

.grid-frame {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
}

.time-grid {
  width: 1076px !important;
  min-width: 1076px !important;
  table-layout: fixed !important;
  border-collapse: collapse;
  color: var(--mavops-text);
  font-size: 0.75rem;
}

.time-grid .parent-select-col {
  width: 44px !important;
}

.time-grid .parent-project-col {
  width: 300px !important;
}

.time-grid .parent-day-col {
  width: 70px !important;
}

.time-grid .parent-total-col {
  width: 70px !important;
}

.time-grid .parent-status-col {
  width: 100px !important;
}

.time-grid .parent-action-col {
  width: 72px !important;
}

.time-grid th {
  height: 42px;
  padding: 7px 6px;
  background: var(--mavops-panel-2);
  color: var(--mavops-muted);
  font-size: 0.75rem;
  font-weight: 750;
  border-bottom: 1px solid var(--mavops-line);
  text-align: center;
  white-space: nowrap;
}

.time-grid th.project-column {
  text-align: left
}

.day-name {
  display: block
}

.day-date {
  display: block;
  font-size: 0.75rem;
  color: var(--mavops-muted-2);
  margin-top: 1px
}

.time-grid td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--mavops-line);
  vertical-align: middle;
  overflow: hidden;
}

.selection-cell {
  text-align: center
}

.entry-identity-cell {
  width: 300px !important;
  max-width: 300px !important
}

.entry-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px
}

.entry-day-total,
.entry-total-cell {
  text-align: center;
  font-variant-numeric: tabular-nums
}

.status-cell {
  text-align: center
}

.lookup-field {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.lookup-trigger {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--mavops-line);
  border-radius: 7px;
  background: var(--mavops-input);
  color: var(--mavops-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  cursor: pointer;
  text-align: left
}

.lookup-trigger:hover:not(:disabled) {
  border-color: var(--mavops-primary)
}

.lookup-trigger:disabled {
  opacity: .55;
  cursor: not-allowed
}

.lookup-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.75rem;
  color: var(--mavops-text-soft)
}

.lookup-icon {
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px
}

.task-grid-host-cell {
  padding: 8px 12px 12px !important;
  background: var(--mavops-bg-soft) !important;
  overflow: hidden !important;
}

.task-grid-viewport {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border: 1px solid var(--mavops-line);
  border-radius: 8px;
  background: var(--mavops-panel);
  scrollbar-width: thin;
}

.task-grid {
  width: 1944px !important;
  min-width: 1944px !important;
  table-layout: fixed !important;
  border-collapse: collapse;
  color: var(--mavops-text);
  font-size: 0.75rem;
}

.task-grid .task-select-col {
  width: 44px !important;
}

.task-grid .task-name-col {
  width: 300px !important;
}

.task-grid .task-hours-col {
  width: 70px !important;
}

.task-grid .task-total-col {
  width: 70px !important;
}

.task-grid .task-notes-col {
  width: 140px !important;
}

.task-grid .task-action-col {
  width: 56px !important;
}

.task-grid th {
  height: 38px;
  padding: 6px;
  background: var(--mavops-panel-2);
  color: var(--mavops-muted);
  border-bottom: 1px solid var(--mavops-line);
  font-size: 0.75rem;
  text-align: center
}

.task-grid th.task-grid-task-header {
  text-align: left
}

.task-grid td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--mavops-line);
  background: var(--mavops-panel);
  vertical-align: middle
}

.task-cell {
  width: 300px !important;
  max-width: 300px !important
}

.task-control {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100%
}

.task-branch {
  width: 14px;
  flex: 0 0 14px;
  color: var(--mavops-muted);
  text-align: center
}

.task-lookup-trigger {
  flex: 1;
  min-width: 0
}

.day-editor {
  display: flex;
  align-items: center;
  justify-content: center
}

.hours-input {
  width: 48px !important;
  min-width: 48px !important;
  min-height: 29px !important;
  padding: 4px !important;
  text-align: center;
  border: 1px solid var(--mavops-line);
  border-radius: 6px;
  background: var(--mavops-input);
  color: var(--mavops-text)
}

.comments-input {
  width: 126px !important;
  min-width: 126px !important;
  min-height: 29px !important;
  padding: 4px 6px !important;
  border: 1px solid var(--mavops-line);
  border-radius: 6px;
  background: var(--mavops-input);
  color: var(--mavops-text)
}

.task-total-cell {
  text-align: center
}

.empty-task-row td,
.empty-grid-row td {
  padding: 20px !important;
  text-align: center;
  color: var(--mavops-muted)
}

.add-task-row td {
  border-bottom: 0
}

.sticky-add-entry-row td {
  background: var(--mavops-panel-2);
  text-align: center;
  padding: 9px
}

.weekly-total-row td {
  background: var(--mavops-panel-2);
  font-weight: 700
}

.weekly-total-label {
  text-align: right
}

.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid var(--mavops-line);
  background: var(--mavops-panel)
}

.save-summary {
  display: flex;
  gap: 8px;
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.save-divider {
  width: 1px;
  background: var(--mavops-line)
}

.assignments-strip {
  margin-top: 12px;
  padding: 14px
}

.assignment-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.assignment-chip {
  min-width: 190px;
  padding: 9px 10px;
  border: 1px solid var(--mavops-line);
  border-radius: 8px;
  background: var(--mavops-panel-2)
}

.assignment-chip strong {
  display: block;
  font-size: 0.75rem
}

.assignment-chip span,
.assignment-chip em {
  display: block;
  color: var(--mavops-muted);
  font-size: 0.75rem;
  margin-top: 2px
}

.empty-assignment-message {
  color: var(--mavops-muted);
  font-size: 0.75rem
}

/* Modals / lookup */
.mavops-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(2px);
}

.mavops-modal-card {
  width: min(720px, calc(100vw - 36px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--mavops-panel);
  color: var(--mavops-text);
  border: 1px solid var(--mavops-line);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
  overflow: hidden
}

.mavops-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--mavops-line)
}

.mavops-modal-header h2 {
  margin: 0;
  font-size: 15px
}

.mavops-modal-header p {
  margin: 4px 0 0;
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.mavops-modal-body,
.lookup-modal-content {
  padding: 16px;
  overflow: auto
}

.mavops-modal-footer,
.lookup-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--mavops-line);
  background: var(--mavops-panel-2)
}

.lookup-search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center
}

.lookup-result-count {
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.lookup-results {
  margin-top: 12px;
  border: 1px solid var(--mavops-line);
  border-radius: 8px;
  overflow: hidden
}

.lookup-results button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--mavops-line);
  background: var(--mavops-panel);
  color: var(--mavops-text);
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  text-align: left
}

.lookup-results button:hover {
  background: var(--mavops-panel-2)
}

.lookup-result-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--mavops-primary-soft);
  color: var(--mavops-primary)
}

.lookup-result-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column
}

.lookup-result-copy-label {
  font-size: 0.75rem
}

.lookup-result-copy>span {
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.lookup-selected-mark {
  color: var(--mavops-green);
  font-weight: 800
}

/* Approvals / missing time */
.approval-panel {
  padding: 18px;
}

.approval-filters {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(220px, 1.5fr);
  gap: 10px;
  align-items: end
}

.bulk-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0
}

.bulk-actions {
  display: flex;
  gap: 8px
}

.detail-row td {
  background: var(--mavops-panel-2) !important
}

.task-card {
  padding: 10px;
  border: 1px solid var(--mavops-line);
  border-radius: 8px;
  background: var(--mavops-panel);
  margin: 6px 0
}

.day-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.day-item {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--mavops-bg-soft);
  font-size: 0.75rem;
  color: var(--mavops-muted)
}

/* Organization / guide */
.organization-panel,
.portfolio-panel,
.revenue-panel {
  padding: 18px;
}

.guide-shell {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  background: var(--mavops-panel);
  border: 1px solid var(--mavops-line);
  border-radius: 12px;
  box-shadow: var(--mavops-shadow)
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 12px
}

.hero-icon,
.section-icon {
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--mavops-primary-soft);
  color: var(--mavops-primary);
  border: 1px solid var(--mavops-primary-border)
}

.hero-icon {
  width: 40px;
  height: 40px;
  font-weight: 800
}

.hero h1 {
  margin: 0;
  font-size: 18px
}

.hero-description {
  margin: 4px 0 0;
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.role-row {
  display: flex;
  gap: 6px
}

.role-pill {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--mavops-bg-soft);
  border: 1px solid var(--mavops-line);
  color: var(--mavops-muted)
}

.search-panel {
  padding: 12px;
  background: var(--mavops-panel);
  border: 1px solid var(--mavops-line);
  border-radius: 10px
}

.guide-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 14px;
  min-height: 620px
}

.guide-nav {
  padding: 10px;
  background: var(--mavops-panel);
  border: 1px solid var(--mavops-line);
  border-radius: 10px
}

.nav-title {
  padding: 7px 8px;
  color: var(--mavops-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em
}

.guide-nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--mavops-muted);
  padding: 8px;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  font-size: 0.75rem
}

.guide-nav button:hover,
.guide-nav button.active {
  background: var(--mavops-primary-soft);
  color: var(--mavops-primary)
}

.guide-main {
  min-width: 0
}

.section-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px
}

.section-icon {
  width: 34px;
  height: 34px
}

.section-heading h2 {
  margin: 0;
  font-size: 17px
}

.section-heading p {
  margin: 3px 0 0;
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.guide-card {
  padding: 16px;
  margin-bottom: 12px;
  background: var(--mavops-panel);
  border: 1px solid var(--mavops-line);
  border-radius: 10px
}

.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px
}

.card-heading h3 {
  margin: 0;
  font-size: 13px
}

.card-heading p,
.card-description {
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.guide-list {
  padding-left: 18px;
  color: var(--mavops-text-soft);
  font-size: 0.75rem
}

.formula-box,
.note-box,
.warning-box {
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px
}

.formula-box,
.note-box {
  background: var(--mavops-panel-2);
  border: 1px solid var(--mavops-line)
}

.warning-box {
  background: var(--mavops-amber-soft);
  border: 1px solid rgba(217, 119, 6, .2)
}

.formula-title {
  font-size: 0.75rem;
  color: var(--mavops-muted);
  font-weight: 700
}

.formula-text {
  margin-top: 4px;
  font-size: 0.75rem
}

.note-box,
.warning-box {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--mavops-text-soft);
  font-size: 0.75rem
}

.notice-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mavops-primary-soft);
  color: var(--mavops-primary);
  font-size: 0.75rem;
  font-weight: 800
}

.technical-table-wrapper {
  overflow: auto;
  margin-top: 10px;
  border: 1px solid var(--mavops-line);
  border-radius: 8px
}

.technical-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem
}

.technical-table th {
  background: var(--mavops-panel-2);
  color: var(--mavops-muted);
  text-align: left;
  padding: 8px
}

.technical-table td {
  padding: 8px;
  border-top: 1px solid var(--mavops-line);
  vertical-align: top;
  color: var(--mavops-text-soft)
}

.technical-table code {
  color: var(--mavops-primary);
  font-size: 0.75rem
}

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--mavops-bg);
  position: relative
}

.login-card {
  width: min(420px, calc(100vw - 36px));
  background: var(--mavops-panel);
  color: var(--mavops-text);
  border: 1px solid var(--mavops-line);
  border-radius: 14px;
  box-shadow: var(--mavops-shadow);
  padding: 28px 30px
}

.login-brand {
  text-align: center;
  margin-bottom: 22px
}

.login-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--mavops-primary);
  font-weight: 800;
  font-size: 17px
}

.login-brand h1 {
  margin: 0;
  font-size: 19px
}

.login-brand p {
  margin: 4px 0 0;
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.login-copy {
  margin-bottom: 14px
}

.login-copy h2 {
  margin: 0;
  font-size: 15px
}

.login-copy p {
  margin: 3px 0 0;
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.login-submit {
  width: 100%;
  margin-top: 15px
}

.field-hint {
  color: var(--mavops-muted);
  font-size: 0.75rem;
  margin-top: 6px
}

.login-theme-toggle {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--mavops-line);
  border-radius: 9px;
  background: var(--mavops-panel);
  color: var(--mavops-text);
  cursor: pointer;
  box-shadow: var(--mavops-shadow)
}

.msg {
  margin-top: 10px;
  padding: 9px;
  border-radius: 8px;
  font-size: 0.75rem
}

.msg.success {
  color: var(--mavops-green);
  background: var(--mavops-green-soft)
}

/* Resource quick action */
.quick-action-native {
  min-width: 420px;
  background: var(--mavops-panel);
  color: var(--mavops-text)
}

.quick-action-header,
.quick-action-body,
.quick-action-footer {
  padding: 16px
}

.quick-action-header {
  border-bottom: 1px solid var(--mavops-line)
}

.quick-action-header h2 {
  margin: 0;
  font-size: 16px
}

.quick-action-header p {
  margin: 4px 0 0;
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.quick-action-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--mavops-line);
  background: var(--mavops-panel-2)
}

/* Misc */
.row-actions {
  display: flex;
  gap: 6px;
  align-items: center
}

.site-footer {
  display: none !important
}

.footer-inner {
  display: none !important
}

community_layout-section .slds-p-around_medium,
.siteforceContentArea .slds-p-around_medium,
.siteforceContentArea .slds-p-horizontal_medium {
  padding: 0 !important
}

.slds-card,
.slds-box {
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important
}

.slds-text-color_weak {
  color: var(--mavops-muted) !important
}

@media(max-width:1200px) {

  .ui-kpi-grid,
  .mavops-grid-4,
  .revenue-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .project-card-grid,
  .candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .dashboard-detail-grid {
    grid-template-columns: 1fr
  }

  .ui-toolbar-grid.four,
  .ui-toolbar-grid.five,
  .recognition-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .guide-layout {
    grid-template-columns: 180px 1fr
  }
}

@media(max-width:820px) {
  .mavops-page-stage {
    padding: 20px 16px
  }

  .mavops-sidebar {
    width: 72px;
    flex-basis: 72px
  }

  .mavops-sidebar .brand-text,
  .mavops-sidebar .nav-section-label,
  .mavops-sidebar .sidebar-link>span:last-child,
  .mavops-sidebar .profile-copy,
  .mavops-sidebar .profile-chevron,
  .mavops-sidebar .theme-toggle-label {
    display: none
  }

  .mavops-sidebar .sidebar-link,
  .mavops-sidebar .profile-card,
  .mavops-sidebar .theme-toggle {
    justify-content: center
  }

  .ui-page-header,
  .mavops-page-header,
  .workspace-header {
    flex-direction: column;
    align-items: stretch
  }

  .mavops-grid-2,
  .form-grid.two,
  .form-grid.three {
    grid-template-columns: 1fr
  }

  .mavops-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .project-card-grid,
  .candidate-grid {
    grid-template-columns: 1fr
  }

  .guide-layout {
    grid-template-columns: 1fr
  }

  .guide-nav {
    display: flex;
    overflow: auto
  }

  .guide-nav .nav-title {
    display: none
  }

  .guide-nav button {
    min-width: max-content
  }

  .approval-filters {
    grid-template-columns: 1fr
  }

  .recognition-control-grid,
  .ui-toolbar-grid.four,
  .ui-toolbar-grid.five {
    grid-template-columns: 1fr
  }

  .align-end {
    align-self: stretch
  }

  .ui-toolbar-grid .mavops-btn {
    width: 100%
  }
}

@media(max-width:560px) {

  .ui-kpi-grid,
  .mavops-grid-4,
  .revenue-kpis,
  .mavops-quick-links,
  .detail-grid,
  .mini-metric-grid,
  .financial-row {
    grid-template-columns: 1fr
  }

  .donut-wrap {
    grid-template-columns: 1fr
  }

  .login-card {
    padding: 22px 20px
  }

  .quick-action-native {
    min-width: 0
  }
}

/* Final consistency refinements */
.title {
  color: var(--mavops-text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -.015em;
}

.panel-header h2,
.approval-panel h2 {
  margin: 0;
  color: var(--mavops-text);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.panel-header p,
.approval-panel .panel-header p {
  margin: 4px 0 0;
  color: var(--mavops-muted);
  font-size: 0.75rem;
}

.ui-kpi>span:first-child {
  color: var(--mavops-muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.status.ready,
.status-badge.success {
  color: var(--mavops-green) !important;
  background: var(--mavops-green-soft) !important;
  border-color: rgba(5, 150, 105, .20) !important;
}

.status.issue {
  color: var(--mavops-red) !important;
  background: var(--mavops-red-soft) !important;
  border-color: var(--mavops-red-border) !important;
}

.status.neutral,
.status-badge.neutral {
  color: var(--mavops-text-soft) !important;
  background: var(--mavops-bg-soft) !important;
  border-color: var(--mavops-line) !important;
}

.subtext {
  display: block;
  margin-top: 2px;
}

.ui-empty-row {
  padding: 22px;
  text-align: center;
  color: var(--mavops-muted);
  font-size: 0.75rem;
}

.scope-row-native>div {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.scope-row-native>div>span {
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.calendar-summary-native {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.mavops-state {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 30px;
  color: var(--mavops-muted);
}

.mavops-state h1 {
  margin: 0;
  font-size: 20px
}

.mavops-state p {
  margin: 0;
  max-width: 520px
}

.mavops-state-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--mavops-red-soft);
  color: var(--mavops-red);
  font-weight: 800
}

.mavops-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 890;
  background: rgba(15, 23, 42, .35)
}

.mavops-modal-card>header:not(.mavops-modal-header) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-bottom: 1px solid var(--mavops-line)
}

.mavops-modal-card>header:not(.mavops-modal-header) h2 {
  margin: 0;
  font-size: 15px
}

.mavops-modal-card>footer:not(.mavops-modal-footer) {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--mavops-line);
  background: var(--mavops-panel-2)
}

.guide-nav .nav-button-active {
  background: var(--mavops-primary-soft) !important;
  color: var(--mavops-primary) !important
}

.task-grid {
  width: 1940px !important;
  min-width: 1940px !important;
}

/* All visual Light-DOM hosts are block-level; component CSS files remain intentionally empty. */
c-mavops-admin-guide,
c-mavops-capacity-planning,
c-mavops-future-capacity-planning,
c-mavops-future-projects,
c-mavops-login,
c-mavops-management-summary,
c-mavops-manager-project-overview,
c-mavops-manager-workspace,
c-mavops-missing-time,
c-mavops-my-projects,
c-mavops-organization-hierarchy,
c-mavops-profile,
c-mavops-project-financial-detail,
c-mavops-project-portfolio,
c-mavops-resource-set-password-action,
c-mavops-resource-utilization,
c-mavops-revenue-management,
c-mavops-revenue-recognition-workbench,
c-mavops-site-footer,
c-mavops-site-header,
c-mavops-staffing-demand,
c-mavops-theme,
c-mavops-time-approval-queue,
c-mavops-time-entry-page,
c-mavops-upcoming-holidays,
c-mavops-user-dashboard,
c-mavops-weekly-time-entry {
  display: block
}

.status-badge.billable {
  color: var(--mavops-green) !important;
  background: var(--mavops-green-soft) !important;
  border-color: rgba(5, 150, 105, .20) !important
}

.status-badge.non-billable {
  color: var(--mavops-muted) !important;
  background: var(--mavops-bg-soft) !important
}

.holiday-item.today {
  background: var(--mavops-primary-soft) !important
}

.role-pill-small {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
  border: 1px solid var(--mavops-line);
  background: var(--mavops-bg-soft);
  color: var(--mavops-muted)
}

.admin-pill {
  color: var(--mavops-primary);
  background: var(--mavops-primary-soft);
  border-color: var(--mavops-primary-border)
}

.manager-pill {
  color: var(--mavops-cyan);
  background: rgba(8, 145, 178, .08);
  border-color: rgba(8, 145, 178, .18)
}

.progress-fill {
  display: block;
  height: 100%;
  background: var(--mavops-primary);
  border-radius: 999px
}

.progress-fill.risk {
  background: var(--mavops-amber)
}

.progress-fill.over {
  background: var(--mavops-red)
}

.weekend-day {
  background: var(--mavops-panel-2) !important
}

.holiday-day {
  background: var(--mavops-primary-soft) !important
}

.holiday-label {
  color: var(--mavops-primary);
  font-size: 0.75rem;
  font-weight: 700
}

.project-total-cell {
  text-align: center
}

/* Weekly Time Entry v2 — Workday-inspired UX using MavOps theme tokens */
.time-entry-v2 {
  max-width: 1540px;
  margin: 0 auto
}

.time-entry-page-header {
  align-items: center;
  margin-bottom: 14px
}

.page-subtitle {
  margin: 5px 0 0;
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.time-entry-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end
}

.view-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--mavops-line);
  border-radius: 10px;
  background: var(--mavops-panel)
}

.view-switch-button {
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--mavops-muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.view-switch-button:hover {
  color: var(--mavops-text);
  background: var(--mavops-bg-soft)
}

.view-switch-button.active {
  color: var(--mavops-primary);
  background: var(--mavops-primary-soft)
}

.compact-week-toolbar {
  gap: 6px;
  display: flex;
  align-items: flex-end
}

.compact-week-picker {
  min-width: 150px
}

.compact-week-picker .date-input {
  height: 36px
}

.compact-week-toolbar .mavops-icon-btn {
  width: 36px;
  height: 36px
}

.mavops-btn-quiet {
  background: var(--mavops-panel) !important
}

.week-summary-card {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(390px, 2.2fr) minmax(95px, .55fr) minmax(155px, .8fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: var(--mavops-panel);
  border: 1px solid var(--mavops-line);
  border-radius: var(--mavops-radius);
  box-shadow: var(--mavops-shadow)
}

.week-summary-copy {
  display: flex;
  flex-direction: column;
  min-width: 0
}

.week-summary-copy strong {
  font-size: 13px
}

.week-summary-copy>span:last-child {
  margin-top: 2px;
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.week-summary-kicker {
  color: var(--mavops-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em
}

.week-day-totals {
  display: grid;
  grid-template-columns: repeat(7, minmax(38px, 1fr));
  gap: 4px
}

.week-day-total {
  min-width: 0;
  padding: 6px 3px;
  border-radius: 7px;
  text-align: center;
  background: var(--mavops-panel-2);
  border: 1px solid transparent
}

.week-day-total span {
  display: block;
  color: var(--mavops-muted);
  font-size: 0.75rem;
  font-weight: 700
}

.week-day-total strong {
  display: block;
  margin-top: 1px;
  font-size: 12px
}

.week-total-block {
  padding-left: 12px;
  border-left: 1px solid var(--mavops-line)
}

.week-total-block span,
.week-progress-block span {
  display: block;
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.week-total-block strong {
  font-size: 20px;
  letter-spacing: -.03em
}

.week-progress-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.week-progress-block>div {
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--mavops-panel-2)
}

.week-progress-block strong {
  font-size: 0.75rem
}

.time-entry-panel {
  overflow: hidden
}

.time-entry-actionbar {
  padding: 12px 14px;
  border-bottom: 1px solid var(--mavops-line);
  align-items: center
}

.time-entry-actionbar .entries-heading h3 {
  margin: 0;
  font-size: 14px
}

.time-entry-actionbar .entries-heading span {
  display: block;
  margin-top: 2px;
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.action-buttons-prominent {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap
}

.action-buttons-prominent .mavops-btn {
  height: 34px;
  padding: 0 11px
}

.mavops-btn-danger-outline {
  color: var(--mavops-red) !important;
  border-color: rgba(225, 29, 72, .25) !important;
  background: var(--mavops-panel) !important
}

.mavops-btn-danger-outline:hover:not(:disabled) {
  background: var(--mavops-red-soft) !important
}

.workday-grid-shell {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin
}

.workday-time-grid {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--mavops-panel);
  font-size: 0.75rem
}

.workday-time-grid col.wd-select-col {
  width: 32px
}

.workday-time-grid col.wd-project-col {
  width: 190px
}

.workday-time-grid col.wd-task-col {
  width: 150px
}

.workday-time-grid col.wd-day-col {
  width: 50px
}

.workday-time-grid col.wd-total-col {
  width: 50px
}

.workday-time-grid col.wd-comments-col {
  width: 92px
}

.workday-time-grid col.wd-status-col {
  width: 72px
}

.workday-time-grid col.wd-actions-col {
  width: 122px
}

.workday-time-grid thead th {
  height: 42px;
  padding: 6px 5px;
  text-align: left;
  color: var(--mavops-muted);
  background: var(--mavops-panel-2);
  border-bottom: 1px solid var(--mavops-line);
  font-size: 0.75rem;
  font-weight: 750;
  vertical-align: middle
}

.workday-time-grid thead th:not(:nth-child(2)):not(:nth-child(3)) {
  text-align: center
}

.workday-time-grid td {
  padding: 7px 5px;
  border-bottom: 1px solid var(--mavops-line);
  vertical-align: middle;
  background: var(--mavops-panel)
}

.wd-entry-row:hover td {
  background: var(--mavops-panel-2)
}

.entry-continuation-row td {
  border-top: 0
}

.wd-select-cell {
  text-align: center
}

.wd-selector-cell {
  min-width: 0
}

.combined-lookup-trigger,
.task-selector-trigger {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--mavops-line);
  border-radius: 8px;
  background: var(--mavops-input);
  color: var(--mavops-text);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px
}

.combined-lookup-trigger:hover:not(:disabled),
.task-selector-trigger:hover:not(:disabled) {
  border-color: var(--mavops-primary-border);
  box-shadow: var(--mavops-focus)
}

.combined-lookup-trigger:disabled,
.task-selector-trigger:disabled {
  opacity: .62;
  cursor: not-allowed
}

.combined-selector-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--mavops-primary-soft);
  color: var(--mavops-primary);
  font-size: 0.75rem
}

.combined-selector-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1
}

.combined-selector-copy strong,
.combined-selector-copy span,
.task-selector-copy {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.combined-selector-copy strong {
  font-size: 0.75rem
}

.combined-selector-copy span {
  margin-top: 1px;
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.combined-selector-chevron {
  color: var(--mavops-muted);
  font-size: 15px
}

.task-selector-copy {
  flex: 1;
  font-size: 0.75rem
}

.compact-hours-input {
  width: 42px;
  height: 32px;
  padding: 0 4px;
  text-align: right;
  border: 1px solid var(--mavops-line);
  border-radius: 7px;
  background: var(--mavops-input);
  color: var(--mavops-text);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums
}

.compact-hours-input:focus {
  outline: 0;
  border-color: var(--mavops-primary);
  box-shadow: var(--mavops-focus)
}

.compact-hours-input:disabled {
  background: var(--mavops-panel-2);
  color: var(--mavops-muted);
  opacity: .75
}

.wd-total-cell {
  text-align: center;
  font-weight: 750;
  font-variant-numeric: tabular-nums
}

.comments-count-button {
  width: 100%;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid var(--mavops-line-strong);
  border-radius: 999px;
  background: var(--mavops-panel);
  color: var(--mavops-text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap
}

.comments-count-button:hover:not(:disabled) {
  color: var(--mavops-primary);
  border-color: var(--mavops-primary-border);
  background: var(--mavops-primary-soft)
}

.comments-count-button:disabled {
  color: var(--mavops-muted-2);
  border-color: var(--mavops-line);
  background: var(--mavops-panel-2);
  cursor: not-allowed
}

.wd-status-cell {
  text-align: center
}

.wd-status-cell .status-badge {
  font-size: 0.75rem;
  padding: 3px 5px
}

.row-text-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap
}

.row-action-link {
  border: 0;
  background: transparent;
  color: var(--mavops-text-soft);
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
  padding: 3px 0
}

.row-action-link:hover {
  text-decoration: underline
}

.row-action-link.primary {
  color: var(--mavops-primary)
}

.row-action-link.danger {
  color: var(--mavops-red)
}

.row-action-link.muted {
  color: var(--mavops-muted)
}

.time-entry-add-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--mavops-panel-2);
  border-top: 1px solid var(--mavops-line)
}

.time-entry-add-row span {
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.day-name {
  display: block;
  font-weight: 750
}

.day-date {
  display: block;
  margin-top: 1px;
  color: var(--mavops-muted-2);
  font-size: 0.75rem
}

.time-comments-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: 84vh
}

.modal-eyebrow {
  margin: 0 0 3px;
  color: var(--mavops-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase
}

.modal-subtitle {
  margin: 4px 0 0;
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.comments-modal-body {
  padding: 14px 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.comment-day-field {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: start
}

.comment-day-label {
  display: flex;
  flex-direction: column;
  padding-top: 7px
}

.comment-day-label strong {
  font-size: 0.75rem
}

.comment-day-label em {
  margin-top: 2px;
  color: var(--mavops-muted);
  font-size: 0.75rem;
  font-style: normal
}

.comment-day-field textarea,
.calendar-entry-form textarea {
  min-height: 62px;
  resize: vertical;
  padding: 8px 10px;
  border: 1px solid var(--mavops-line);
  border-radius: 8px;
  background: var(--mavops-input);
  color: var(--mavops-text);
  font-size: 0.75rem
}

.comment-day-field textarea:focus,
.calendar-entry-form textarea:focus {
  outline: 0;
  border-color: var(--mavops-primary);
  box-shadow: var(--mavops-focus)
}

.week-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: 500px;
  background: var(--mavops-line);
  gap: 1px
}

.calendar-day {
  min-width: 0;
  background: var(--mavops-panel)
}

.calendar-day-header {
  width: 100%;
  height: 54px;
  padding: 8px;
  border: 0;
  border-bottom: 1px solid var(--mavops-line);
  background: var(--mavops-panel-2);
  color: var(--mavops-text);
  cursor: pointer;
  text-align: left;
  position: relative
}

.calendar-day-header span {
  display: block;
  color: var(--mavops-muted);
  font-size: 0.75rem;
  font-weight: 700
}

.calendar-day-header strong {
  display: block;
  font-size: 0.75rem
}

.calendar-day-header em {
  position: absolute;
  right: 8px;
  top: 9px;
  color: var(--mavops-primary);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 750
}

.calendar-day-body {
  min-height: 445px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer
}

.calendar-time-card {
  width: 100%;
  padding: 7px;
  border: 1px solid var(--mavops-primary-border);
  border-left: 3px solid var(--mavops-primary);
  border-radius: 7px;
  background: var(--mavops-primary-soft);
  color: var(--mavops-text);
  text-align: left;
  cursor: pointer;
  position: relative
}

.calendar-time-card:hover {
  border-color: var(--mavops-primary)
}

.calendar-time-card strong,
.calendar-time-card span,
.calendar-time-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.calendar-time-card strong {
  padding-right: 30px;
  font-size: 0.75rem
}

.calendar-time-card span {
  margin-top: 2px;
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.calendar-time-card em {
  margin-top: 4px;
  color: var(--mavops-primary);
  font-size: 0.75rem;
  font-style: normal
}

.calendar-time-card .calendar-time-hours {
  position: absolute;
  right: 7px;
  top: 6px;
  margin: 0;
  color: var(--mavops-text);
  font-weight: 800
}

.calendar-empty-add {
  margin: auto 0;
  border: 1px dashed var(--mavops-line);
  border-radius: 7px;
  background: transparent;
  color: var(--mavops-muted);
  padding: 8px;
  font-size: 0.75rem;
  cursor: pointer
}

.calendar-empty-add:hover {
  border-color: var(--mavops-primary-border);
  color: var(--mavops-primary);
  background: var(--mavops-primary-soft)
}

.calendar-entry-modal {
  width: min(680px, calc(100vw - 32px))
}

.calendar-entry-form {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.calendar-entry-form .calendar-comment-field {
  grid-column: 1/-1
}

.calendar-entry-form .ui-field textarea {
  width: 100%
}

@media(max-width:1180px) {
  .week-summary-card {
    grid-template-columns: 1fr 2fr 100px
  }

  .week-progress-block {
    grid-column: 1/-1;
    grid-template-columns: repeat(2, 120px);
    justify-content: flex-end
  }

  .time-entry-page-header {
    align-items: stretch
  }

  .time-entry-header-actions {
    justify-content: space-between
  }

  .action-buttons-prominent {
    justify-content: flex-start
  }

  .workday-time-grid {
    min-width: 1060px
  }
}

@media(max-width:820px) {
  .time-entry-header-actions {
    flex-direction: column;
    align-items: stretch
  }

  .compact-week-toolbar {
    width: 100%;
    flex-wrap: wrap
  }

  .compact-week-picker {
    flex: 1
  }

  .week-summary-card {
    grid-template-columns: 1fr
  }

  .week-day-totals {
    order: 2
  }

  .week-total-block {
    padding-left: 0;
    border-left: 0
  }

  .week-progress-block {
    grid-column: auto;
    justify-content: stretch;
    grid-template-columns: 1fr 1fr
  }

  .time-entry-actionbar {
    align-items: stretch
  }

  .action-buttons-prominent {
    justify-content: stretch
  }

  .action-buttons-prominent .mavops-btn {
    flex: 1 1 auto
  }

  .week-calendar {
    grid-template-columns: 1fr
  }

  .calendar-day-body {
    min-height: 120px
  }

  .comment-day-field {
    grid-template-columns: 1fr
  }

  .calendar-entry-form {
    grid-template-columns: 1fr
  }

  .calendar-entry-form .calendar-comment-field {
    grid-column: auto
  }
}

/* ==========================================================
   MavOps Weekly Time Entry — Workday-inspired UX refresh
   ========================================================== */
.time-entry-workday {
  max-width: 1560px;
  margin: 0 auto;
  color: var(--mavops-text)
}

.te-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 14px;
  padding: 2px 0 0
}

.te-page-header h1 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--mavops-text)
}

.te-page-header p:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.te-header-controls {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap
}

.te-week-nav {
  display: flex;
  align-items: flex-end;
  gap: 6px
}

.te-week-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
  color: var(--mavops-muted);
  font-size: 0.75rem;
  font-weight: 700
}

.te-week-picker input {
  height: 36px;
  border: 1px solid var(--mavops-line);
  border-radius: 9px;
  background: var(--mavops-input);
  color: var(--mavops-text);
  padding: 0 10px;
  font: inherit;
  font-size: 0.75rem
}

.te-week-strip {
  display: grid;
  grid-template-columns: minmax(150px, .85fr) minmax(430px, 2.35fr) minmax(255px, 1.15fr);
  align-items: stretch;
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid var(--mavops-line);
  border-radius: 12px;
  background: var(--mavops-panel);
  box-shadow: var(--mavops-shadow);
  overflow: hidden
}

.te-week-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  border-right: 1px solid var(--mavops-line)
}

.te-week-identity>span {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--mavops-muted)
}

.te-week-identity strong {
  margin-top: 2px;
  font-size: 13px;
  color: var(--mavops-text)
}

.te-week-identity small {
  margin-top: 2px;
  color: var(--mavops-muted);
  font-size: 0.75rem
}

.te-day-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(48px, 1fr));
  align-items: stretch
}

.te-day-strip .week-day-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 62px;
  padding: 7px 3px;
  border: 0;
  border-right: 1px solid var(--mavops-line);
  border-radius: 0;
  background: transparent
}

.te-day-strip .week-day-total:last-child {
  border-right: 0
}

.te-day-strip .week-day-total span {
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--mavops-muted)
}

.te-day-strip .week-day-total small {
  font-size: 0.75rem;
  color: var(--mavops-muted-2)
}

.te-day-strip .week-day-total strong {
  font-size: 14px;
  line-height: 1;
  color: var(--mavops-text);
  font-variant-numeric: tabular-nums
}

.te-day-strip .weekend-day {
  background: var(--mavops-bg-soft)
}

.te-total-summary {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  border-left: 1px solid var(--mavops-line)
}

.te-total-summary>div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 12px;
  border-right: 1px solid var(--mavops-line)
}

.te-total-summary>div:last-child {
  border-right: 0
}

.te-total-summary span {
  font-size: 0.75rem;
  color: var(--mavops-muted)
}

.te-total-summary strong {
  margin-top: 2px;
  font-size: 15px;
  color: var(--mavops-text);
  font-variant-numeric: tabular-nums
}

.te-total-summary>div:first-child strong {
  font-size: 20px;
  color: var(--mavops-primary)
}

.te-sheet-card {
  border: 1px solid var(--mavops-line);
  border-radius: 12px;
  background: var(--mavops-panel);
  box-shadow: var(--mavops-shadow);
  overflow: hidden
}

.te-sheet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--mavops-line)
}

.te-sheet-toolbar h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  color: var(--mavops-text)
}

.te-sheet-toolbar p {
  margin: 3px 0 0;
  font-size: 0.75rem;
  color: var(--mavops-muted)
}

.te-primary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap
}

.te-primary-actions .mavops-btn {
  height: 34px;
  padding: 0 10px
}

.te-grid-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin
}

.te-workday-grid {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--mavops-panel);
  font-size: 0.75rem
}

.te-workday-grid col.te-select-col {
  width: 32px
}

.te-workday-grid col.te-workitem-col {
  width: 350px
}

.te-workday-grid col.te-day-col {
  width: 56px
}

.te-workday-grid col.te-total-col {
  width: 52px
}

.te-workday-grid col.te-comments-col {
  width: 92px
}

.te-workday-grid col.te-status-col {
  width: 74px
}

.te-workday-grid col.te-actions-col {
  width: 128px
}

.te-workday-grid thead th {
  height: 40px;
  padding: 5px 5px;
  background: var(--mavops-panel-2);
  color: var(--mavops-muted);
  border-bottom: 1px solid var(--mavops-line);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  vertical-align: middle
}

.te-workday-grid thead th:nth-child(2) {
  text-align: left;
  padding-left: 10px
}

.te-workday-grid thead th span,
.te-workday-grid thead th small {
  display: block
}

.te-workday-grid thead th small {
  margin-top: 1px;
  color: var(--mavops-muted-2);
  font-size: 0.75rem
}

.te-workday-grid td {
  height: 58px;
  padding: 7px 5px;
  border-bottom: 1px solid var(--mavops-line);
  vertical-align: middle;
  background: var(--mavops-panel)
}

.te-workday-grid tr:hover td {
  background: var(--mavops-panel-2)
}

.te-workday-grid .entry-continuation-row td {
  border-top: 0
}

.te-select-cell {
  text-align: center
}

.te-workitem-cell {
  padding: 7px 8px !important
}

.te-workitem-pickers {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 6px;
  align-items: stretch
}

.te-path-picker,
.te-task-picker {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  height: auto;
  padding: 6px 24px 6px 8px;
  border: 1px solid var(--mavops-line);
  border-radius: 8px;
  background: var(--mavops-input);
  color: var(--mavops-text);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease
}

.te-path-picker:hover:not(:disabled),
.te-task-picker:hover:not(:disabled) {
  border-color: var(--mavops-primary-border);
  box-shadow: var(--mavops-focus);
  background: var(--mavops-panel-2)
}

.te-path-picker:disabled,
.te-task-picker:disabled {
  opacity: .62;
  cursor: not-allowed
}

.te-picker-label {
  display: block;
  max-width: 100%;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mavops-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em
}

.te-path-picker strong,
.te-task-picker strong {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.15;
  min-height: 1.15em;
  max-height: 2.3em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mavops-text)
}

.te-picker-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--mavops-muted)
}

.te-inline-action {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mavops-primary);
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer
}

.te-inline-action:hover {
  text-decoration: underline
}

.te-hours {
  display: block;
  width: 44px;
  height: 31px;
  margin: 0 auto;
  padding: 0 4px;
  border: 1px solid var(--mavops-line);
  border-radius: 7px;
  background: var(--mavops-input);
  color: var(--mavops-text);
  text-align: right;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums
}

.te-hours:focus {
  outline: 0;
  border-color: var(--mavops-primary);
  box-shadow: var(--mavops-focus)
}

.te-hours:disabled {
  background: var(--mavops-panel-2);
  color: var(--mavops-muted);
  opacity: .7
}

.te-total-cell {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums
}

.te-comments-btn {
  display: block;
  width: 100%;
  min-height: 29px;
  padding: 4px 6px;
  border: 1px solid var(--mavops-line-strong);
  border-radius: 999px;
  background: var(--mavops-panel);
  color: var(--mavops-text-soft);
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer
}

.te-comments-btn:hover:not(:disabled) {
  border-color: var(--mavops-primary-border);
  background: var(--mavops-primary-soft);
  color: var(--mavops-primary)
}

.te-comments-btn:disabled {
  opacity: .48;
  cursor: not-allowed
}

.te-status-cell {
  text-align: center
}

.te-status-cell .status-badge {
  font-size: 0.75rem;
  padding: 3px 5px
}

.te-row-actions {
  padding-right: 8px !important
}

.te-row-actions {
  display: table-cell;
  text-align: right
}

.te-row-action {
  margin-left: 7px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--mavops-text-soft);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer
}

.te-row-action:hover {
  text-decoration: underline
}

.te-row-action.primary {
  color: var(--mavops-primary)
}

.te-row-action.danger {
  color: var(--mavops-red)
}

.te-empty {
  padding: 30px !important;
  text-align: center;
  color: var(--mavops-muted)
}

.te-add-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--mavops-panel-2);
  border-top: 1px solid var(--mavops-line)
}

.te-add-entry span {
  font-size: 0.75rem;
  color: var(--mavops-muted)
}

.lookup-modal .modal-eyebrow {
  color: var(--mavops-primary)
}

.lookup-modal-container {
  max-width: 660px
}

.lookup-results {
  max-height: 380px;
  overflow: auto
}

.lookup-result-row {
  min-height: 52px
}

.time-comments-modal {
  max-width: 780px
}

.comments-modal-body {
  max-height: min(60vh, 520px);
  overflow: auto
}

.comment-day-field {
  grid-template-columns: 150px minmax(0, 1fr)
}

.brand-text img {
  display: block;
  width: 106px;
  max-height: 26px;
  object-fit: contain;
  object-position: left center
}

.mavops-sidebar.is-collapsed .brand-text img {
  display: none
}

@media(max-width:1280px) {
  .te-week-strip {
    grid-template-columns: 145px minmax(380px, 1fr) 240px
  }

  .te-workday-grid {
    min-width: 1080px
  }

  .te-workday-grid col.te-workitem-col {
    width: 320px
  }

  .te-primary-actions {
    justify-content: flex-start
  }
}

@media(max-width:900px) {
  .te-page-header {
    align-items: stretch;
    flex-direction: column
  }

  .te-header-controls {
    justify-content: space-between
  }

  .te-week-strip {
    grid-template-columns: 1fr
  }

  .te-week-identity {
    border-right: 0;
    border-bottom: 1px solid var(--mavops-line)
  }

  .te-total-summary {
    border-left: 0;
    border-top: 1px solid var(--mavops-line)
  }

  .te-sheet-toolbar {
    align-items: stretch;
    flex-direction: column
  }

  .te-primary-actions {
    justify-content: flex-start
  }

  .te-day-strip {
    overflow-x: auto
  }

  .te-workday-grid {
    min-width: 1060px
  }
}


/* =========================================================
   Time Entry — 10px minimum typography + action clarity
   ========================================================= */
.te-workday-grid {
  min-width: 1135px;
  font-size: 0.75rem;
}

.te-workday-grid col.te-comments-col {
  width: 118px;
}

.te-workday-grid col.te-actions-col {
  width: 170px;
}

.te-comments-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--mavops-line-strong);
  border-radius: 100px;
  background: var(--mavops-panel);
  color: var(--mavops-text-soft);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.te-comments-btn:hover:not(:disabled) {
  border-color: var(--mavops-link);
  color: var(--mavops-link);
  background: var(--blue-wash);
}

:root[data-mavops-theme="dark"] .te-comments-btn:hover:not(:disabled) {
  background: var(--plum-800);
}

.te-row-actions {
  padding-right: 8px !important;
  text-align: right;
  white-space: nowrap;
}

.te-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin: 2px 0 2px 6px;
  padding: 4px 8px;
  border: 1px solid var(--mavops-line-strong);
  border-radius: var(--mavops-radius-sm);
  background: var(--mavops-panel);
  color: var(--mavops-text-soft);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.te-row-action:hover:not(:disabled) {
  border-color: var(--mavops-link);
  color: var(--mavops-link);
  background: var(--blue-wash);
  text-decoration: none;
}

:root[data-mavops-theme="dark"] .te-row-action:hover:not(:disabled) {
  background: var(--plum-800);
}

.te-row-action.primary {
  border-color: var(--mavops-primary);
  background: var(--mavops-primary);
  color: var(--white);
}

.te-row-action.primary:hover:not(:disabled) {
  border-color: var(--mavops-primary-hover);
  background: var(--mavops-primary-hover);
  color: var(--white);
}

.te-row-action.danger {
  border-color: var(--mavops-red);
  background: var(--mavops-panel);
  color: var(--mavops-red);
}

.te-row-action.danger:hover:not(:disabled) {
  border-color: var(--mavops-red);
  background: var(--mavops-red-soft);
  color: var(--mavops-red);
}

:root[data-mavops-theme="dark"] .te-row-action.danger:hover:not(:disabled) {
  background: var(--plum-800);
}

/* Calendar comment copy can wrap to two lines without shrinking below 10px. */
.calendar-time-card em {
  font-size: 0.75rem;
  line-height: 1.35;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* =========================================================
   MavOps Compact Typography Policy
   8px is reserved for structural labels / headers only.
   User-entered values, selected values, buttons and body copy
   remain 10px or larger for readability.
   ========================================================= */
.mavops-field>span,
.ui-field>span,
.week-label,
.lookup-label,
.te-picker-label,
.te-week-picker,
.mavops-kicker,
.eyebrow,
.ui-eyebrow,
.nav-section-label,
.modal-eyebrow,
.week-summary-kicker,
.te-week-identity>span {
  font-size: 0.75rem !important;
  line-height: 1.25;
}

.ui-table th,
.table-wrap th,
.table-frame th,
.table-scroll th,
.portfolio-table th,
.revenue-table th,
.time-grid th,
.task-grid th,
.te-workday-grid thead th,
.te-workday-grid thead th small {
  font-size: 0.75rem !important;
}

/* Preserve visual hierarchy: actual controls/values stay >= 10px. */
.mavops-field input,
.mavops-field select,
.mavops-field textarea,
.ui-field input,
.ui-field select,
.ui-field textarea,
.selection-combobox,
.lookup-search-input,
.te-week-picker input,
.te-path-picker strong,
.te-task-picker strong,
.te-hours,
.te-comments-btn {
  font-size: 0.75rem;
}

/* =========================================================
   Manager Workspace / Approval Queue refinements
   ========================================================= */
.manager-summary-grid {
  margin-top: 2px;
}

.manager-summary-grid .ui-kpi {
  min-height: 66px;
  padding: 9px 13px;
  gap: 2px;
}

.manager-summary-grid .ui-kpi strong {
  font-size: 17px;
  line-height: 1.05;
}

.manager-summary-grid .ui-kpi-label {
  font-size: 0.75rem !important;
  line-height: 1.2;
}

.approval-panel {
  padding: 18px;
}

.approval-panel-header {
  margin-bottom: 10px;
}

.approval-filters {
  grid-template-columns: 134px minmax(330px, 1fr) minmax(260px, 2fr);
  gap: 12px;
}

.approval-filters-all-pending {
  display: grid;
  grid-template-columns: minmax(280px, 560px);
  justify-content: end;
}

.approval-search-field {
  min-width: 0;
}

.approval-bulk-bar {
  min-height: 54px;
  padding: 10px 0;
}

.approval-bulk-bar>span {
  color: var(--mavops-text-soft);
  font-size: 0.75rem;
}

.approval-table-frame {
  overflow: hidden;
}

.approval-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.approval-table th,
.approval-table td {
  vertical-align: middle;
}

.approval-table .select-col {
  width: 44px;
  text-align: center;
}

.approval-table .approval-details-head,
.approval-table .approval-details-cell {
  width: 54px;
  text-align: right;
}

.approval-details-cell {
  padding-right: 12px !important;
}

.approval-details-toggle {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mavops-line-strong);
  border-radius: 8px;
  background: var(--mavops-panel-2);
  color: var(--mavops-text-soft);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}

.approval-details-toggle:hover {
  border-color: var(--mavops-link);
  color: var(--mavops-link);
  background: var(--blue-wash);
}

:root[data-mavops-theme="dark"] .approval-details-toggle:hover {
  background: var(--plum-800);
}

.approval-details-toggle[aria-expanded="true"] {
  border-color: var(--mavops-link);
  color: var(--mavops-link);
}

.approval-detail-row>td {
  padding: 12px 18px 16px !important;
  background: var(--mavops-panel-2) !important;
}

.approval-task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  align-items: start;
}

.approval-task-card {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--mavops-line);
  border-radius: 9px;
  background: var(--mavops-panel);
}

.approval-task-card h3 {
  margin: 0 0 9px;
  font-size: 12px;
  line-height: 1.25;
}

.approval-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 7px;
}

.approval-day-card {
  min-width: 0;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  padding: 8px 6px;
  border: 1px solid var(--mavops-line);
  border-radius: 8px;
  background: var(--mavops-panel-2);
  text-align: center;
}

.approval-day-date {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mavops-muted);
  font-size: 0.75rem;
  line-height: 1.2;
}

.approval-day-hours {
  display: block;
  margin-top: 2px;
  color: var(--mavops-text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.approval-day-card p {
  width: 100%;
  margin: 3px 0 0;
  color: var(--mavops-muted);
  font-size: 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

/* Keep the empty-state cell as a real table-cell so colspan spans all columns. */
.approval-empty-cell {
  display: table-cell !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 28px 16px !important;
  color: var(--mavops-muted);
  font-size: 0.75rem;
  text-align: center;
  vertical-align: middle;
}

.approval-empty-tr:hover .approval-empty-cell {
  background: var(--mavops-panel) !important;
}

@media(max-width:1100px) {
  .approval-filters {
    grid-template-columns: 1fr 1fr;
  }

  .approval-search-field {
    grid-column: 1/-1;
  }
}

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

  .approval-filters,
  .approval-filters-all-pending {
    grid-template-columns: 1fr;
  }

  .approval-search-field {
    grid-column: auto;
  }

  .approval-bulk-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .approval-task-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Approval queue refinement — compact details + stable toggle
   ========================================================= */
.approval-details-toggle {
  position: relative;
  vertical-align: middle;
  transform: none;
  transform-origin: 50% 50%;
}

.approval-details-toggle[aria-expanded="true"] {
  transform: rotate(90deg);
}

/* Keep task detail dense. Four day tiles per row makes it easier
   to compare several task entries without oversized cards. */
.approval-task-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 8px;
}

.approval-task-card {
  padding: 9px 10px;
}

.approval-task-card h3 {
  margin: 0 0 7px;
  font-size: 0.75rem;
}

.approval-day-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.approval-day-card {
  min-height: 58px;
  padding: 6px 5px;
  gap: 2px;
}

.approval-day-date {
  font-size: 0.75rem;
}

.approval-day-hours {
  margin-top: 1px;
  font-size: 12px;
}

.approval-day-card p {
  margin-top: 2px;
  font-size: 0.75rem;
  line-height: 1.2;
  -webkit-line-clamp: 1;
}

@media(max-width:760px) {
  .approval-day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   Approval detail layout — full-width task card
   Each task occupies the full detail width. All day/time cards
   are kept on a single row on desktop and scroll only if the
   viewport becomes too narrow.
   ========================================================= */
.approval-task-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}

.approval-task-card {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
}

.approval-task-card h3 {
  margin: 0 0 7px;
  font-size: 0.75rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.approval-day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.approval-day-card {
  min-width: 0;
  min-height: 58px;
  padding: 6px 7px;
  border-radius: 7px;
}

.approval-day-date {
  font-size: 0.75rem;
  line-height: 1.15;
  text-align: center;
}

.approval-day-hours {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.05;
  text-align: center;
}

.approval-day-card p {
  margin: 3px 0 0;
  font-size: 0.75rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Keep the seven day cards in one horizontal row.
   On narrower screens the day grid scrolls instead of wrapping. */
@media(max-width:900px) {
  .approval-day-grid {
    grid-template-columns: repeat(7, 92px);
  }
}

/* Phase 10A: consistent header/action spacing across light-DOM MavOps surfaces. */
.section-actions,
.mavops-actions,
.ui-button-group,
.ui-toolbar.compact-actions,
.compact-actions {
  display: flex !important;
  align-items: center;
  gap: .625rem !important;
  flex-wrap: wrap;
}

.ui-page-header>[slot="actions"],
.mavops-page-header>.mavops-actions {
  gap: .625rem !important
}

/* --------------------------------------------------------------------------
   LWR toast host fallback
   MavOps uses lightning/toast + lightning/toastContainer without loading the
   full SLDS stylesheet. These rules provide only the toast presentation needed
   by the base toast markup when SLDS page styles are unavailable.
   -------------------------------------------------------------------------- */
.slds-notify_container,
.slds-notify-container {
  position: fixed !important;
  top: 1rem !important;
  right: 1rem !important;
  left: auto !important;
  z-index: 100000 !important;
  width: min(30rem, calc(100vw - 2rem)) !important;
  pointer-events: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: .625rem !important;
}

.slds-notify_toast,
.slds-notify--toast {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: .75rem !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: .875rem 2.75rem .875rem 1rem !important;
  border: 1px solid rgba(15, 23, 42, .14) !important;
  border-radius: .7rem !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .22) !important;
  pointer-events: auto !important;
  font-family: inherit !important;
  font-size: .875rem !important;
  line-height: 1.4 !important;
  position: relative !important;
}

.slds-notify_toast .slds-notify__content,
.slds-notify--toast .slds-notify__content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: inherit !important;
}

.slds-notify_toast h2,
.slds-notify_toast .slds-text-heading_small,
.slds-notify--toast h2,
.slds-notify--toast .slds-text-heading_small {
  margin: 0 !important;
  font-size: .9rem !important;
  font-weight: 800 !important;
  color: inherit !important;
}

.slds-notify_toast a,
.slds-notify--toast a {
  color: inherit !important;
  text-decoration: underline !important;
  font-weight: 700 !important
}

.slds-notify_toast .slds-icon,
.slds-notify--toast .slds-icon {
  fill: currentColor !important;
  color: inherit !important
}

.slds-notify_toast .slds-button_icon,
.slds-notify--toast .slds-button_icon {
  position: absolute !important;
  top: .55rem !important;
  right: .55rem !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer !important;
}

.slds-notify_toast.slds-theme_success,
.slds-notify--toast.slds-theme_success {
  background: #eaf7ef !important;
  border-color: #91d5aa !important;
  color: #0b5d2a !important;
}

.slds-notify_toast.slds-theme_error,
.slds-notify--toast.slds-theme_error {
  background: #fff0f1 !important;
  border-color: #f2a2aa !important;
  color: #9f1723 !important;
}

.slds-notify_toast.slds-theme_warning,
.slds-notify--toast.slds-theme_warning {
  background: #fff8e1 !important;
  border-color: #e9cb72 !important;
  color: #6f4e00 !important;
}

.slds-notify_toast.slds-theme_info,
.slds-notify--toast.slds-theme_info,
.slds-notify_toast.slds-theme_default,
.slds-notify--toast.slds-theme_default {
  background: #edf5ff !important;
  border-color: #9dc5f4 !important;
  color: #084d8c !important;
}

@media(max-width:600px) {

  .slds-notify_container,
  .slds-notify-container {
    top: .65rem !important;
    right: .65rem !important;
    width: calc(100vw - 1.3rem) !important
  }
}

/* Stage 12: SLDS toast essentials for LWR pages that intentionally do not load full SLDS. */
.slds-notify_toast .slds-icon_container,
.slds-notify--toast .slds-icon_container {
  flex: 0 0 1.5rem !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  min-width: 1.5rem !important;
  min-height: 1.5rem !important;
  margin: .05rem 0 0 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.slds-notify_toast .slds-icon_container .slds-icon,
.slds-notify--toast .slds-icon_container .slds-icon,
.slds-notify_toast svg.slds-icon,
.slds-notify--toast svg.slds-icon {
  display: block !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  max-width: 1.25rem !important;
  max-height: 1.25rem !important;
  flex: 0 0 1.25rem !important;
}

.slds-notify_toast .slds-button_icon,
.slds-notify--toast .slds-button_icon {
  width: 2rem !important;
  height: 2rem !important;
  min-width: 2rem !important;
  min-height: 2rem !important;
  padding: .45rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: .35rem !important;
}

.slds-notify_toast .slds-button_icon .slds-button__icon,
.slds-notify--toast .slds-button_icon .slds-button__icon,
.slds-notify_toast .slds-button_icon svg,
.slds-notify--toast .slds-button_icon svg {
  width: 1rem !important;
  height: 1rem !important;
  max-width: 1rem !important;
  max-height: 1rem !important;
}

.slds-notify_toast .slds-assistive-text,
.slds-notify--toast .slds-assistive-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   MavOps Brand Hierarchy
   Brick red = primary actions / active emphasis / demo energy.
   Calm navy = page, card and section headings / secondary emphasis.
   ========================================================= */

/* Major and second-level headings stay calm even while actions are vivid. */
.mavops-title,
.page-title,
.ui-page-title,
.title,
.ui-card-title,
.mavops-section-title,
.mavops-section-head h2,
.mavops-section-head h3,
.panel-header h2,
.approval-panel h2,
.entries-heading h3,
.assignments-heading h3,
.project-summary-card h3,
.section-heading h2,
.card-heading h3,
.hero h1,
.login-brand h1,
.login-copy h2,
.quick-action-header h2,
.mavops-modal-header h2,
.mavops-modal-card > header:not(.mavops-modal-header) h2,
.te-page-header h1,
.te-sheet-toolbar h2,
.approval-task-card h3,
.home-project-heading strong,
.holiday-heading-native strong {
  color: var(--mavops-heading) !important;
}

/* Smaller secondary headings use the softer navy. */
.ui-card-title.small,
.mavops-section-note strong,
.te-week-identity strong,
.te-total-summary > div:first-child strong {
  color: var(--mavops-heading-soft) !important;
}

/* Kicker/eyebrow text intentionally remains brick-red brand emphasis. */
.mavops-kicker,
.eyebrow,
.ui-eyebrow,
.modal-eyebrow {
  color: var(--mavops-primary) !important;
}

/* Link-like, lower-priority interactions use navy rather than competing
   with the brick-red primary CTA. */
.mavops-link-btn,
.ui-link-button,
.te-inline-action {
  color: var(--mavops-link);
}

.mavops-link-btn:hover,
.ui-link-button:hover,
.te-inline-action:hover {
  color: var(--mavops-link-hover);
}

/* Keep destructive intent visually distinct from the brick-red brand. */
.mavops-btn-danger,
.mavops-btn-danger-outline,
.row-action-link.danger,
.te-row-action.danger,
.mavops-icon-btn.danger,
.mavops-icon-btn-small.danger {
  color: var(--mavops-red) !important;
}



/* =========================================================
   FINAL MAVOPS BRAND OVERRIDES
   Primary/action: brick red #DA3B28
   Heading/secondary: calm navy #19445A
   ========================================================= */

:root {
  --primary-700: #9F251A;
  --primary-600: #BE3021;
  --primary-500: #DA3B28;
  --primary-400: #E45B4B;
  --primary-300: #EC8377;

  --mavops-primary: #DA3B28;
  --mavops-primary-hover: #BE3021;
  --mavops-primary-active: #9F251A;
  --mavops-primary-border: #E45B4B;

  --mavops-heading: #19445A;
  --mavops-heading-soft: #25566C;

  --dxp-g-brand: #DA3B28;
  --dxp-g-brand-1: #BE3021;
  --dxp-g-brand-2: #9F251A;

  --dxp-s-button-color: #DA3B28;
  --dxp-s-button-color-hover: #BE3021;
  --dxp-s-button-color-focus: #BE3021;

  --slds-g-color-brand-base-50: #DA3B28;
  --slds-g-color-brand-base-60: #BE3021;

  --slds-c-button-brand-color-background: #DA3B28;
  --slds-c-button-brand-color-background-hover: #BE3021;
  --slds-c-button-brand-color-background-active: #9F251A;
  --slds-c-button-brand-color-border: #DA3B28;
  --slds-c-button-brand-color-border-hover: #BE3021;
}

/* Full/open sidebar: use the full wordmark, not the compact symbol. */
.mavops-sidebar:not(.is-collapsed) .brand-symbol {
  display: none !important;
}

/* Collapsed sidebar: show the compact brand symbol. */
.mavops-sidebar.is-collapsed .brand-symbol {
  display: grid !important;
}

/* Consistent contextual-help placement on summary cards. */
.ui-kpi,
.project-health,
.metric-card,
.summary-card {
    position: relative;
}
.ui-kpi c-mavops-help-text,
.project-health c-mavops-help-text,
.metric-card c-mavops-help-text,
.summary-card c-mavops-help-text {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;
}

/* Weekly Time Entry - row-level billable control and persistent Calendar add affordance */
.te-workday-grid col.te-billable-col {
  width: 64px
}

.te-billable-cell {
  text-align: center;
  vertical-align: middle
}

.calendar-add-time {
  margin-top: 6px;
  flex: 0 0 auto
}

.calendar-billable-field {
  align-self: end
}

.calendar-billable-control {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mavops-text);
  font-size: 0.8rem
}

/* ========================================================================== 
   MavOps styling bridge for the Salesforce native file-upload progress modal.
   The app intentionally does not load the full SLDS stylesheet. lightning-file-upload
   renders its own upload/progress dialog using these structural SLDS hooks, so keep
   this small bridge limited to modal/backdrop/file-selector primitives.
   ========================================================================== */

.slds-backdrop_open,
.slds-backdrop--open {
  visibility: visible !important;
  opacity: 1 !important;
}
.slds-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10001 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.slds-modal.slds-fade-in-open,
.slds-modal.slds-fade-in-open.slds-modal {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.slds-modal__container {
  position: relative !important;
  width: min(620px, calc(100vw - 48px)) !important;
  max-width: 620px !important;
  max-height: min(720px, calc(100vh - 48px)) !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid var(--mavops-border, #d8dee6) !important;
  border-radius: 14px !important;
  background: var(--mavops-surface, #fff) !important;
  box-shadow: 0 24px 64px rgba(9, 18, 31, 0.28) !important;
  color: var(--mavops-text, #0b1f3a) !important;
}
.slds-modal__header {
  position: relative !important;
  flex: 0 0 auto !important;
  min-height: 58px !important;
  padding: 17px 58px 15px 20px !important;
  border-bottom: 1px solid var(--mavops-border, #e1e6ec) !important;
  background: var(--mavops-surface, #fff) !important;
  text-align: left !important;
}
.slds-modal__header h1,
.slds-modal__header h2,
.slds-modal__header .slds-text-heading_medium {
  margin: 0 !important;
  font-family: var(--font-display, Arial, sans-serif) !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  color: var(--mavops-text, #0b1f3a) !important;
}
.slds-modal__content {
  flex: 1 1 auto !important;
  min-height: 120px !important;
  overflow: auto !important;
  padding: 20px !important;
  background: var(--mavops-surface, #fff) !important;
  color: var(--mavops-text, #0b1f3a) !important;
}
.slds-modal__footer {
  flex: 0 0 auto !important;
  padding: 12px 20px !important;
  border-top: 1px solid var(--mavops-border, #e1e6ec) !important;
  background: var(--mavops-surface-muted, #f7f9fb) !important;
  text-align: right !important;
}
.slds-modal__close,
.slds-modal .slds-button_icon-inverse,
.slds-modal .slds-button_icon-border-filled {
  position: absolute !important;
  top: 13px !important;
  right: 14px !important;
  left: auto !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 7px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--mavops-border, #d8dee6) !important;
  border-radius: 8px !important;
  background: var(--mavops-surface, #fff) !important;
  color: var(--mavops-text, #0b1f3a) !important;
  line-height: 1 !important;
  z-index: 2 !important;
}
.slds-modal__close svg,
.slds-modal .slds-button_icon-inverse svg,
.slds-modal .slds-button_icon-border-filled svg,
.slds-modal .slds-icon_x-small,
.slds-modal .slds-icon_small {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  fill: currentColor !important;
}
.slds-modal .slds-button,
.slds-modal button {
  min-height: 34px;
  border-radius: 8px;
}
.slds-modal .slds-button_brand {
  padding: 7px 14px !important;
  border: 1px solid var(--mavops-primary, #e6402d) !important;
  background: var(--mavops-primary, #e6402d) !important;
  color: #fff !important;
}
.slds-modal .slds-file-selector__dropzone {
  width: 100% !important;
  min-height: 92px !important;
  padding: 18px !important;
  border: 1px dashed var(--mavops-border, #b7c0ca) !important;
  border-radius: 10px !important;
  background: var(--mavops-surface-muted, #f7f9fb) !important;
}
.slds-modal .slds-file-selector__body {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
.slds-modal .slds-file-selector__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  padding: 7px 14px !important;
  border: 1px solid var(--mavops-primary, #e6402d) !important;
  border-radius: 8px !important;
  background: var(--mavops-primary, #e6402d) !important;
  color: #fff !important;
}
.slds-modal .slds-file-selector__text,
.slds-modal .slds-text-body_small,
.slds-modal .slds-text-body_regular {
  font-family: var(--font-body, Arial, sans-serif) !important;
  color: var(--mavops-text-muted, #5d6b7a) !important;
}
.slds-modal .slds-file__crop,
.slds-modal .slds-file__figure {
  max-width: 56px !important;
  max-height: 56px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
}
.slds-modal .slds-file__crop img,
.slds-modal .slds-file__figure img,
.slds-modal .slds-file__figure svg {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
}
.slds-modal .slds-progress-bar {
  overflow: hidden !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: var(--mavops-border, #d8dee6) !important;
}
.slds-modal .slds-progress-bar__value {
  height: 100% !important;
  background: var(--mavops-primary, #e6402d) !important;
}

/* MavOps compact treatment for lightning-file-upload progress UI. */
.slds-modal .slds-assistive-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.slds-modal__container {
  width: min(560px, calc(100vw - 40px)) !important;
  max-width: 560px !important;
  max-height: min(520px, calc(100vh - 40px)) !important;
}
.slds-modal__header {
  min-height: 56px !important;
  padding: 16px 56px 14px 20px !important;
}
.slds-modal__content {
  min-height: 0 !important;
  padding: 16px 20px !important;
}
.slds-modal__close,
.slds-modal .slds-button_icon-inverse,
.slds-modal .slds-button_icon-border-filled {
  top: 11px !important;
  right: 12px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 8px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
}
.slds-modal__close:hover,
.slds-modal .slds-button_icon-inverse:hover,
.slds-modal .slds-button_icon-border-filled:hover {
  background: var(--mavops-surface-muted, #f3f5f7) !important;
}
.slds-modal__close svg,
.slds-modal .slds-button_icon-inverse svg,
.slds-modal .slds-button_icon-border-filled svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}
/* The native component renders a very large file-type preview when full SLDS is absent.
   MavOps uses a compact upload list instead; filename/type/size remain visible. */
.slds-modal .slds-file__figure,
.slds-modal .slds-file__crop,
.slds-modal .slds-file__figure_fixed-ratio,
.slds-modal .slds-file__figure_fixed-ratio_inner {
  display: none !important;
}
.slds-modal .slds-file,
.slds-modal .slds-file_card,
.slds-modal .slds-file-selector_files,
.slds-modal .slds-file-selector__files {
  width: 100% !important;
  max-width: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.slds-modal .slds-file__body,
.slds-modal .slds-file__title,
.slds-modal .slds-file__text,
.slds-modal .slds-file__meta {
  position: static !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--mavops-text, #0b1f3a) !important;
  text-align: left !important;
}
.slds-modal .slds-file__title,
.slds-modal .slds-file__title a {
  font-family: var(--font-body, Arial, sans-serif) !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: var(--mavops-text, #0b1f3a) !important;
  text-decoration: none !important;
}
.slds-modal .slds-file__meta,
.slds-modal .slds-file__text,
.slds-modal .slds-text-body_small {
  margin-top: 3px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: var(--mavops-text-muted, #5d6b7a) !important;
}
.slds-modal .slds-progress-bar {
  width: 100% !important;
  height: 5px !important;
  margin-top: 10px !important;
}
/* Keep status/check/remove glyphs compact even without the full SLDS icon rules. */
.slds-modal svg.slds-icon,
.slds-modal .slds-icon_container svg,
.slds-modal .slds-button_icon svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}
.slds-modal .slds-icon_container {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  vertical-align: middle !important;
}
.slds-modal__footer {
  min-height: 58px !important;
  padding: 11px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}
.slds-modal__footer .slds-button,
.slds-modal__footer button {
  min-width: 82px !important;
  min-height: 36px !important;
  padding: 7px 16px !important;
  border-radius: 8px !important;
  font-family: var(--font-body, Arial, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.slds-modal__footer .slds-button_brand,
.slds-modal__footer button.slds-button_brand {
  border-color: var(--mavops-primary, #e6402d) !important;
  background: var(--mavops-primary, #e6402d) !important;
  color: #fff !important;
}
@media (max-width: 640px) {
  .slds-modal { padding: 12px !important; }
  .slds-modal__container {
    width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 24px) !important;
    border-radius: 12px !important;
  }
}

/* File upload progress: preserve Salesforce's inline percentage while supplying the MavOps visual. */
.slds-modal .slds-progress-bar__value {
  display: block !important;
  min-height: 5px !important;
  border-radius: 999px !important;
  transition: width 120ms linear, transform 120ms linear !important;
}
.slds-modal .slds-progress-bar[aria-valuenow="100"] .slds-progress-bar__value {
  width: 100% !important;
}

/* MavOps managed uploader: let the real Salesforce file selector own the entire visible drop zone.
   Decorative MavOps text never intercepts pointer/drag events. */
lightning-file-upload.native-file-upload,
lightning-file-upload.native-file-upload .slds-file-selector,
lightning-file-upload.native-file-upload .slds-file-selector__dropzone,
lightning-file-upload.native-file-upload .slds-file-selector__body,
lightning-file-upload.native-file-upload .slds-file-selector__button {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}
lightning-file-upload.native-file-upload .slds-file-selector__dropzone,
lightning-file-upload.native-file-upload .slds-file-selector__body,
lightning-file-upload.native-file-upload .slds-file-selector__button {
  opacity: 0.01 !important;
}

/* Native upload completion status: use a small MavOps text state instead of Salesforce's
   standalone check/X glyph underneath the progress track. */
.slds-modal .slds-progress-bar {
  position: relative !important;
  width: calc(100% - 72px) !important;
  margin-right: 72px !important;
  overflow: visible !important;
}
.slds-modal .slds-progress-bar[aria-valuenow="100"]::after {
  content: 'Uploaded';
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  min-width: 62px;
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  text-align: right;
  color: var(--mavops-text-muted, #5d6b7a);
  white-space: nowrap;
}
.slds-modal .slds-progress-bar ~ .slds-icon_container,
.slds-modal .slds-progress-bar + .slds-icon_container,
.slds-modal .slds-progress-bar ~ lightning-icon,
.slds-modal .slds-progress-bar + lightning-icon {
  display: none !important;
}


/* 2026-10-02: lightning-file-upload interaction bridge for MavOps no-SLDS shell.
   The actual native file input owns the complete custom drop zone so decorative copy never
   creates dead click areas. */
lightning-file-upload.native-file-upload .slds-file-selector,
lightning-file-upload.native-file-upload .slds-file-selector__dropzone,
lightning-file-upload.native-file-upload .slds-file-selector__body {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}
lightning-file-upload.native-file-upload .slds-file-selector__input {
  position: absolute !important;
  inset: 0 !important;
  z-index: 50 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}
lightning-file-upload.native-file-upload .slds-file-selector__button,
lightning-file-upload.native-file-upload .slds-file-selector__text {
  pointer-events: none !important;
}

/* Keep the native per-file action/status on the same row as the progress track. */
.slds-modal .slds-file,
.slds-modal .slds-file_card,
.slds-modal .slds-file-selector__files > * {
  position: relative !important;
}
.slds-modal .slds-progress-bar {
  width: calc(100% - 76px) !important;
  margin: 10px 76px 0 0 !important;
  overflow: hidden !important;
}
.slds-modal .slds-file__actions,
.slds-modal .slds-file__actions-menu {
  position: absolute !important;
  right: 0 !important;
  bottom: -2px !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 68px !important;
  min-height: 24px !important;
  margin: 0 !important;
}
/* Replace raw check/remove glyph presentation with compact MavOps text actions/status. */
.slds-modal .slds-file .slds-button_icon,
.slds-modal .slds-file .slds-icon_container {
  width: auto !important;
  min-width: 0 !important;
  height: 24px !important;
  padding: 0 7px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--mavops-text-muted, #5d6b7a) !important;
  font-family: var(--font-body, Arial, sans-serif) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 24px !important;
}
.slds-modal .slds-file .slds-button_icon svg,
.slds-modal .slds-file .slds-icon_container svg {
  display: none !important;
}
.slds-modal .slds-file .slds-button_icon::after { content: 'Cancel'; }
.slds-modal .slds-file .slds-icon_container::after { content: 'Uploaded'; }
.slds-modal .slds-progress-bar[aria-valuenow="100"]::after { content: none !important; }


/* Native lightning-file-upload renders this progress row with SLDS grid utilities.
   MavOps intentionally does not load full SLDS, so provide only the structural utilities it uses. */
.slds-modal .slds-grid { display: flex !important; }
.slds-modal .slds-grid_align-center { justify-content: center !important; }
.slds-modal .slds-grid_vertical-align-center { align-items: center !important; }
.slds-modal .slds-col { min-width: 0 !important; }
.slds-modal .slds-size_6-of-12 { flex: 0 0 50% !important; max-width: 50% !important; }
.slds-modal .slds-size_5-of-12 { flex: 0 0 41.6666667% !important; max-width: 41.6666667% !important; }
.slds-modal .slds-size_1-of-12 { flex: 0 0 8.3333333% !important; max-width: 8.3333333% !important; }
.slds-modal .slds-media { display: flex !important; min-width: 0 !important; }
.slds-modal .slds-media_center { align-items: center !important; }
.slds-modal .slds-media__figure { flex: 0 0 auto !important; margin-right: 10px !important; }
.slds-modal .slds-media__body { flex: 1 1 auto !important; min-width: 0 !important; }
.slds-modal .slds-truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.slds-modal .slds-m-horizontal_x-small { margin-left: 4px !important; margin-right: 4px !important; }
.slds-modal .slds-p-left_small { padding-left: 12px !important; }

/* Status occupies Salesforce's third grid column, naturally at the right of progress. */
.slds-modal .slds-col.slds-size_1-of-12 .slds-icon_container {
  width: 24px !important;
  height: 24px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.slds-modal .slds-col.slds-size_1-of-12 .slds-icon_container svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
}
.slds-modal .slds-col.slds-size_1-of-12 .slds-icon_container::after,
.slds-modal .slds-col.slds-size_1-of-12 .slds-button_icon::after {
  content: none !important;
}

/* Let the real input own every pixel of the managed MavOps drop zone. */
lightning-file-upload.native-file-upload,
lightning-file-upload.native-file-upload * {
  cursor: pointer !important;
}
lightning-file-upload.native-file-upload .slds-file-selector__input {
  z-index: 100 !important;
  pointer-events: auto !important;
}

/* Salesforce owns the native lightning-file-upload modal lifecycle.
   Keep the backdrop non-interactive unless Salesforce marks it open. */
.slds-backdrop {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.slds-backdrop.slds-backdrop_open,
.slds-backdrop_open.slds-backdrop {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Keep mobile sidebar account controls accessible, even when collapsed. */
@media (max-width: 820px) {
  .mavops-sidebar .sidebar-bottom {
    flex: 0 0 auto;
    padding: 8px 4px;
    min-width: 0;
  }
  .mavops-sidebar .sidebar-bottom .notification-center,
  .mavops-sidebar .sidebar-bottom .notification-bell {
    width: 100%;
    min-width: 0;
  }
  .mavops-sidebar .sidebar-bottom .notification-bell {
    justify-content: center;
    gap: 3px;
    padding: 9px 1px;
  }
  .mavops-sidebar .sidebar-bottom .bell-label {
    display: none;
  }
  .mavops-sidebar .sidebar-bottom .profile-card {
    display: flex;
    min-height: 44px;
    justify-content: center;
    padding: 5px 0;
  }
  .mavops-sidebar .sidebar-bottom .avatar {
    display: grid;
    visibility: visible;
    opacity: 1;
    flex: 0 0 34px;
  }
  .mavops-sidebar .sidebar-bottom .profile-popover {
    left: calc(100% + 6px);
    right: auto;
    bottom: 6px;
    min-width: 145px;
    z-index: 1000;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 820px) {
    .mavops-sidebar {
      height: 100dvh;
      min-height: 0;
    }
    .mavops-sidebar .sidebar-nav {
      min-height: 0;
    }
  }
}


/* M360 shared information hierarchy: compact exact values under abbreviated KPIs. */
.mavops-kpi-exact-value,
.ui-kpi .mavops-kpi-exact-value {
  display: block;
  margin-top: 3px;
  color: var(--mavops-muted);
  font-family: var(--font-mono);
  font-size: var(--mavops-caption-size);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* All chart and report views can use a two-column responsive container. */
.mavops-chart-grid-shared {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mavops-space-md);
  min-width: 0;
}
.mavops-chart-grid-shared > * {
  min-width: 0;
}
@media (max-width: 900px) {
  .mavops-chart-grid-shared {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* M360 Build 02: shared two-level financial workspace navigation. */
.reports-workspace-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--mavops-space-lg, 20px);
    min-width: 0;
}
.reports-workspace-layout:has(.reports-library-menu) {
    grid-template-columns: minmax(190px, 235px) minmax(0, 1fr);
    align-items: start;
}
.reports-workspace-main {
    min-width: 0;
    max-width: 100%;
}
.reports-library-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    border: 1px solid var(--mavops-line);
    background: var(--mavops-panel);
    border-radius: var(--mavops-radius-lg, 12px);
    padding: 14px 10px;
}
.reports-library-heading {
    margin: 0 8px 8px;
    color: var(--mavops-muted);
    font-size: 0.71rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.reports-library-menu button {
    display: block;
    width: 100%;
    text-align: left;
    white-space: normal;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--mavops-text);
    font: inherit;
    font-size: 0.81rem;
    line-height: 1.35;
    padding: 10px 12px;
    cursor: pointer;
}
.reports-library-menu button:hover {
    background: var(--mavops-hover, var(--mavops-surface));
}
.reports-library-menu button.is-active {
    background: var(--mavops-active-bg, var(--mavops-panel));
    color: var(--mavops-primary);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--mavops-primary);
}
.reports-library-note {
    padding: 10px 8px 2px;
    border-top: 1px solid var(--mavops-line);
    color: var(--mavops-muted);
    font-size: 0.74rem;
    line-height: 1.5;
}
.reports-subtabs {
    margin-top: -10px;
    margin-bottom: 16px;
    padding: 0 0 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.reports-subtabs .native-tab {
    padding: 7px 12px;
    font-size: 0.79rem;
}
@media (max-width: 950px) {
    .reports-workspace-layout:has(.reports-library-menu) {
        grid-template-columns: minmax(0, 1fr);
    }
    .reports-library-menu {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .reports-library-heading {
        width: 100%;
    }
    .reports-library-menu button {
        width: auto;
    }
    .reports-library-note {
        width: 100%;
    }
}

/* Build 03: compact finance workspaces, using the existing M360 design tokens. */
.mavops-page-stage:has(.reports-workspace-library) {
    padding: 12px 16px 28px 0;
}
.mavops-page-stage:has(.reports-workspace-billing) {
    padding: 12px 18px 28px;
}
.reports-workspace {
    max-width: none;
    gap: 8px;
}
.reports-workspace-layout {
    gap: 0;
    align-items: start;
}
.reports-workspace-layout:has(.reports-library-menu) {
    grid-template-columns: minmax(176px, 208px) minmax(0, 1fr);
    gap: 0;
}
.reports-workspace-main {
    padding: 0;
    min-width: 0;
}
.reports-workspace-library .reports-workspace-main {
    padding-left: 14px;
}
.reports-library-menu {
    position: sticky;
    top: 8px;
    align-self: start;
    border: 0;
    border-right: 1px solid var(--mavops-line);
    background: transparent;
    border-radius: 0;
    padding: 8px 8px 8px 0;
    gap: 2px;
    max-height: calc(100vh - 85px);
    overflow-y: auto;
}
.reports-library-heading {
    margin: 0 8px 5px;
}
.reports-library-menu button {
    padding: 9px 10px;
    border-radius: 0 7px 7px 0;
}
.reports-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 6px;
}
.reports-header .mavops-title {
    margin: 0;
    font-size: clamp(1.3rem, 1.75vw, 1.6rem);
    line-height: 1.25;
}
.reports-header-actions {
    gap: 7px;
}
.reports-header-actions .mavops-btn {
    min-height: 32px;
    padding: 6px 10px;
}
.reports-export-status {
    margin: 0 0 4px;
    color: var(--mavops-muted);
    font-size: 0.75rem;
}
.reports-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--mavops-line);
    margin-bottom: 8px;
}
.reports-nav-row .reports-tabs {
    flex: 1 1 auto;
    width: auto;
    margin: 0;
    padding: 0;
    border-bottom: 0;
}
.reports-nav-row .reports-tabs .native-tab {
    padding: 9px 12px;
}
.reports-nav-row .reports-subtabs {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    gap: 2px;
    border: 0;
}
.reports-nav-row .reports-subtabs .native-tab {
    padding: 7px 10px;
    border: 1px solid var(--mavops-line);
    border-radius: 6px;
    font-size: 0.75rem;
}
.reports-nav-row .reports-subtabs .native-tab.is-active {
    border-color: var(--mavops-primary);
    background: var(--mavops-primary-soft);
}
.reports-workspace .reports-filter-panel {
    margin-bottom: 5px;
    padding: 7px 11px;
}
.reports-workspace .reports-filter-heading {
    min-height: 30px;
    gap: 8px;
}
.reports-workspace .reports-filter-heading .mavops-section-title {
    font-size: 0.86rem;
}
.reports-workspace .reports-filter-heading .mavops-btn {
    min-height: 29px;
    padding: 4px 9px;
}
.reports-workspace .reports-section-heading {
    min-height: 28px;
    align-items: center;
    margin: 2px 0 7px;
    gap: 8px;
}
.reports-workspace .reports-section-heading .reports-heading-with-info {
    gap: 4px;
}
.reports-workspace .reports-chart-window select {
    min-height: 30px;
}
.reports-workspace .reports-period-controls {
    align-items: center;
}
.reports-workspace .reports-kpi-grid {
    margin-bottom: 10px;
}
@media (max-width: 950px) {
    .reports-workspace-layout:has(.reports-library-menu) {
        grid-template-columns: minmax(0, 1fr);
    }
    .mavops-page-stage:has(.reports-workspace-library) {
        padding: 12px 14px 28px;
    }
    .reports-workspace-library .reports-workspace-main {
        padding-left: 0;
    }
    .reports-library-menu {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        border: 0;
        border-bottom: 1px solid var(--mavops-line);
        padding: 4px 0;
        max-height: none;
    }
    .reports-library-heading {
        width: 100%;
    }
    .reports-library-menu button {
        width: auto;
    }
}
@media (max-width: 720px) {
    .mavops-page-stage:has(.reports-workspace-billing) {
        padding: 10px 12px 24px;
    }
    .reports-header {
        align-items: flex-start;
    }
    .reports-header-actions {
        justify-content: flex-start;
    }
    .reports-nav-row .reports-tabs {
        flex-basis: 100%;
    }
    .reports-nav-row .reports-subtabs {
        margin-bottom: 7px;
    }
    .reports-filter-status {
        max-width: 100%;
    }
}

/* Build 04 — finance workspace controls: one navigation/filter row, no empty cards. */
.reports-workspace .reports-nav-row {
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.reports-workspace .reports-nav-row .reports-tabs {
    flex: 1 1 auto;
    min-width: min(100%, 450px);
}
.reports-inline-context {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
    margin-left: auto;
}
.reports-inline-horizon {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--mavops-muted);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.reports-inline-horizon select {
    min-height: 29px;
    max-width: 112px;
    padding: 3px 6px;
    border: 1px solid var(--mavops-line);
    border-radius: 7px;
    color: var(--mavops-text);
    background: var(--mavops-card);
}
.reports-inline-context .reports-period-note {
    font-size: 0.73rem;
    margin: 0;
    white-space: nowrap;
}
.reports-inline-context .mavops-btn {
    min-height: 30px;
    padding: 4px 10px;
}
.reports-inline-context .reports-info-button {
    margin: 0;
    flex: 0 0 auto;
}
.reports-library-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 9px;
}
.reports-library-toolbar .mavops-section-title {
    margin: 0;
}
.reports-filter-panel-expanded {
    margin: 5px 0 10px;
    padding: 12px 14px;
}
.reports-filter-panel-expanded .reports-filter-heading {
    margin-bottom: 9px;
}
.reports-attention-priority-button {
    appearance: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 48px;
    gap: 8px;
    text-align: left;
    background: transparent;
    color: inherit;
    border: 0;
    cursor: pointer;
    padding: 0;
}
.reports-attention-priority-button:hover .mavops-metric-label,
.reports-attention-priority-button:focus-visible .mavops-metric-label {
    text-decoration: underline;
}
.reports-attention-priority-button:focus-visible {
    outline: 2px solid var(--mavops-primary);
    outline-offset: 3px;
    border-radius: 4px;
}
.reports-coverage-track {
    width: 100%;
    min-width: 78px;
    height: 6px;
    display: flex;
    border-radius: 99px;
    overflow: hidden;
    background: var(--mavops-line);
    margin-top: 5px;
}
.reports-coverage-invoiced {
    background: var(--mavops-green);
}
.reports-coverage-scheduled {
    background: var(--mavops-primary);
}
.reports-coverage-uncovered {
    background: var(--mavops-amber);
}
@media (max-width: 1100px) {
    .reports-inline-context {
        justify-content: flex-start;
        margin-left: 0;
    }
    .reports-inline-context .reports-period-note {
        white-space: normal;
    }
}
@media (max-width: 720px) {
    .reports-inline-context {
        gap: 5px;
    }
    .reports-workspace .reports-nav-row .reports-tabs {
        min-width: 100%;
    }
    .reports-library-toolbar {
        align-items: flex-start;
    }
}

.reports-account-source-link {
    border: 0;
    background: transparent;
    color: var(--mavops-primary);
    font: inherit;
    text-align: left;
    cursor: pointer;
    padding: 2px 0;
}
.reports-account-source-link:hover,
.reports-account-source-link:focus-visible {
    text-decoration: underline;
}

.reports-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 7px 0 10px;
}
.reports-quick-chip {
    border: 1px solid var(--mavops-line);
    border-radius: 99px;
    padding: 5px 11px;
    font: inherit;
    font-size: 0.76rem;
    background: var(--mavops-card);
    color: var(--mavops-muted);
    cursor: pointer;
}
.reports-quick-chip.is-active {
    border-color: var(--mavops-primary);
    color: var(--mavops-primary);
    background: var(--mavops-primary-soft);
}

/* Overview shortcuts link to authoritative destination screens; no duplicate lists. */
.overview-attention-shortcuts {
    display: flex;
    align-items: center;
    gap: 8px 15px;
    flex-wrap: wrap;
    padding: 8px 12px;
    border: 1px solid var(--mavops-line);
    border-radius: 9px;
    font-size: 0.82rem;
}
.overview-attention-shortcuts button {
    border: 0;
    background: transparent;
    color: var(--mavops-primary);
    cursor: pointer;
    font: inherit;
    padding: 3px 0;
}
.overview-attention-shortcuts button:hover,
.overview-attention-shortcuts button:focus-visible {
    text-decoration: underline;
}

.reports-budget-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: flex-end;
    gap: 8px;
}
.reports-budget-controls .mavops-field {
    min-width: 110px;
    margin: 0;
}
.reports-budget-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 700px) {
    .reports-budget-summary {
        grid-template-columns: minmax(0, 1fr);
    }
}

.reports-library-menu .reports-library-heading:not(:first-child) {
    margin-top: 17px;
    padding-top: 10px;
    border-top: 1px solid var(--mavops-line);
}
.reports-library-shortcut {
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    font-size: 0.79rem;
    border: 0;
    border-radius: 0 7px 7px 0;
    padding: 9px 10px;
    background: transparent;
    color: var(--mavops-text);
    cursor: pointer;
}
.reports-library-shortcut:hover,
.reports-library-shortcut:focus-visible {
    color: var(--mavops-primary);
    background: var(--mavops-primary-soft);
}

/* M360 commercial workspaces: use global theme colors and shared component tokens. */
.m360-commercial {
    min-width: 0;
    padding-top: 20px;
}
.m360-commercial-header,
.m360-commercial-filters,
.m360-commercial-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.m360-commercial-header h1 {
    margin: 4px 0;
}
.m360-commercial-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-top: 8px;
}
.m360-commercial-tabs button {
    flex: 0 0 auto;
}
.m360-commercial-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.m360-commercial-kpi {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 16px;
}
.m360-commercial-kpi strong,
.m360-commercial-defs small {
    color: var(--mavops-muted);
    font-size: 12px;
}
.m360-commercial-kpi > span {
    color: var(--mavops-text);
    font-size: 22px;
    font-weight: 700;
}
.m360-commercial-kpi small {
    color: var(--mavops-muted);
    line-height: 1.4;
}
.m360-commercial-panel {
    min-width: 0;
    padding: 18px;
}
.m360-commercial-panel h2 {
    font-size: 17px;
    margin: 0 0 12px;
}
.m360-commercial-panel .ui-table-scroll {
    max-width: 100%;
}
.m360-commercial-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.m360-commercial-search {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: min(240px, 100%);
    font-size: 12px;
    color: var(--mavops-muted);
}
.m360-commercial-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}
.m360-commercial-defs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.m360-commercial-defs > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.m360-commercial-bars,
.m360-readiness-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.m360-commercial-bar {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(120px, 4fr) minmax(80px, 1fr);
    gap: 10px;
    align-items: center;
    font-size: 12px;
}
.m360-commercial-track,
.m360-readiness-bar {
    height: 9px;
    background: var(--mavops-line);
    border-radius: 99px;
    overflow: hidden;
}
.m360-commercial-track > span,
.m360-readiness-bar > span {
    display: block;
    height: 100%;
    background: var(--mavops-primary);
    border-radius: inherit;
}
.m360-readiness-list {
    list-style: none;
    margin: 12px 0;
    padding: 0;
}
.m360-readiness-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid var(--mavops-line);
    padding-bottom: 8px;
}
.m360-readiness-list li span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.m360-readiness-list small {
    color: var(--mavops-muted);
}
.m360-readiness-pass,
.m360-readiness-needs {
    font-size: 11px;
    border-radius: 12px;
    padding: 3px 6px;
    white-space: nowrap;
}
.m360-readiness-pass {
    color: var(--mavops-green);
}
.m360-readiness-needs {
    color: var(--mavops-amber);
}
@media (max-width: 1000px) {
    .m360-commercial-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .m360-commercial-split {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 620px) {
    .m360-commercial-summary,
    .m360-commercial-defs {
        grid-template-columns: minmax(0, 1fr);
    }
    .m360-commercial-bar {
        grid-template-columns: minmax(80px, 1fr) minmax(100px, 2fr);
    }
    .m360-commercial-bar > strong:last-child {
        grid-column: 2;
    }
}

/* Commercial Accounts and Opportunities: shared M360 interaction and layout patterns.
   All visual styling stays in this static resource, including responsive rules. */
.m360-commercial-clickable-row {
    cursor: pointer;
    transition: background-color 120ms ease;
}
.m360-commercial .ui-table tbody tr.m360-commercial-clickable-row:hover > th,
.m360-commercial .ui-table tbody tr.m360-commercial-clickable-row:hover > td,
.m360-commercial .ui-table tbody tr.m360-commercial-clickable-row:focus-visible > th,
.m360-commercial .ui-table tbody tr.m360-commercial-clickable-row:focus-visible > td {
    background: var(--mavops-primary-soft);
    color: var(--mavops-text);
}
.m360-commercial .ui-table tbody tr.m360-commercial-clickable-row:focus-visible {
    outline: var(--mavops-focus-outline);
    outline-offset: -2px;
}
.m360-commercial-clickable-row > th:first-child {
    color: var(--mavops-primary);
    font-weight: 700;
}
.m360-commercial .mavops-field.m360-commercial-search {
    min-width: min(240px, 100%);
    flex: 1 1 240px;
    max-width: 360px;
}
.m360-commercial .mavops-field.m360-commercial-search input {
    width: 100%;
}
.m360-commercial .m360-commercial-filter-active,
.m360-commercial .m360-commercial-filter-active:hover {
    background: var(--mavops-primary-soft);
    border-color: var(--mavops-primary-border);
    color: var(--mavops-primary);
}
.m360-commercial-opportunity-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    min-width: 0;
}
.m360-commercial-opportunity-kpis {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(4, minmax(74px, auto));
    gap: 10px;
    min-width: 0;
}
.m360-commercial .m360-commercial-kpi {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 75px;
    padding: var(--mavops-kpi-padding);
}
.m360-commercial-kpi-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.m360-commercial-kpi-copy strong {
    color: var(--mavops-text);
    font-size: var(--mavops-caption-size);
    line-height: 1.3;
}
.m360-commercial-kpi-copy small {
    color: var(--mavops-muted);
    font-size: var(--mavops-caption-size);
    font-weight: 400;
    line-height: 1.3;
}
.m360-commercial-kpi-amount {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex: 0 0 auto;
    gap: 4px;
}
.m360-commercial-kpi-amount > span {
    color: var(--mavops-text);
    font-family: var(--font-mono);
    font-size: var(--mavops-kpi-value-size);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    white-space: nowrap;
}
.m360-commercial-kpi-copy {
    flex: 1 1 auto;
}
.m360-commercial-kpi-amount small {
    color: var(--mavops-muted);
    font-size: var(--mavops-caption-size);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.m360-commercial-opportunity-charts {
    min-width: 0;
    min-height: 0;
    max-height: 425px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    padding: 14px;
}
.m360-commercial-chart-group + .m360-commercial-chart-group {
    margin-top: 16px;
    border-top: 1px solid var(--mavops-line);
    padding-top: 16px;
}
.m360-commercial-chart-group h2 {
    font-size: 0.9rem;
    margin: 0 0 12px;
}
.m360-commercial-opportunity-charts .m360-commercial-bar {
    grid-template-columns: minmax(85px, 1fr) minmax(65px, 2fr) minmax(70px, auto);
}
@media (max-width: 1080px) {
    .m360-commercial-opportunity-overview {
        grid-template-columns: minmax(0, 1fr);
    }
    .m360-commercial-opportunity-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }
    .m360-commercial-opportunity-charts {
        max-height: 350px;
    }
}
@media (max-width: 620px) {
    .m360-commercial-opportunity-kpis {
        grid-template-columns: minmax(0, 1fr);
    }
    .m360-commercial-opportunity-charts {
        max-height: none;
        overflow-y: visible;
    }
    .m360-commercial .m360-commercial-kpi {
        flex-wrap: wrap;
    }
    .m360-commercial .m360-commercial-kpi-amount {
        margin-left: auto;
    }
}

/* Project Actuals ledger: structural layout only; all visual values use global tokens. */
.time-budget-pane-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mavops-space-2, 8px);
    margin-block: var(--mavops-space-2, 8px);
}
.time-budget-actuals-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--mavops-space-3, 12px);
}
.time-budget-actuals-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: var(--mavops-space-2, 8px);
}
.time-budget-actuals-group + .time-budget-actuals-group {
    margin-top: var(--mavops-space-3, 12px);
}
.time-budget-actuals-group-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--mavops-space-2, 8px);
    padding: var(--mavops-space-2, 8px);
    background: var(--mavops-surface-muted, var(--mavops-card-bg));
    border-block-end: 1px solid var(--mavops-border, var(--mavops-line));
}

/* Financial action queue: compact batch controls reuse the app-wide button and text tokens. */
.reports-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-block: 8px;
}
.reports-bulk-actions small {
    color: var(--mavops-text-soft);
}

/* Saved report views: compact preferences row, not a duplicate filter panel. */
.reports-saved-view-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-block-end: 8px;
}
.reports-saved-view-bar select,
.reports-saved-view-bar input {
    max-width: 180px;
    min-height: 32px;
    border-radius: var(--mavops-radius-sm, 6px);
    border: 1px solid var(--mavops-line);
    background: var(--mavops-card-bg);
    color: var(--mavops-text);
}
.reports-saved-view-bar small {
    color: var(--mavops-text-soft);
}

/* Overview view-focus bands and compact top-account drill-down chart. */
.overview-view-focus,
.overview-kpi-band-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-block-end: 8px;
}
.overview-view-focus small,
.overview-kpi-band-title small {
    color: var(--mavops-text-soft);
}
.overview-kpi-band + .overview-kpi-band {
    margin-block-start: 12px;
}
.overview-top-account-list {
    display: grid;
    gap: 8px;
    margin-block-start: 8px;
}
.overview-top-account {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(100px, 2fr) auto;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: var(--mavops-text);
    text-align: start;
    cursor: pointer;
}
.overview-top-account-track {
    height: 8px;
    background: var(--mavops-surface-muted, var(--mavops-line));
    border-radius: 5px;
    overflow: hidden;
}
.overview-top-account-track i {
    display: block;
    height: 100%;
    background: var(--mavops-primary);
}
@media (max-width: 700px) {
    .overview-top-account {
        grid-template-columns: minmax(95px, 1fr) minmax(65px, 1fr) auto;
    }
}

/* Commercial workspaces: shared, theme-token-based list and editor treatments. */
.m360-commercial .m360-commercial-header-actions,
.m360-commercial-pagination,
.m360-commercial-editor-heading,
.m360-commercial-editor-actions {
    display: flex;
    align-items: center;
    gap: var(--mavops-space-2, 8px);
    flex-wrap: wrap;
}
.m360-commercial .m360-commercial-header-actions {
    justify-content: flex-end;
}
.m360-commercial-pagination {
    justify-content: flex-end;
    margin-top: var(--mavops-space-3, 12px);
    padding-top: var(--mavops-space-2, 8px);
    border-top: 1px solid var(--mavops-line);
    color: var(--mavops-text-soft);
    font-size: 0.85rem;
}
.m360-commercial-pagination .mavops-field {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 6px;
}
.m360-commercial .m360-commercial-filters {
    display: flex;
    align-items: end;
    gap: var(--mavops-space-2, 8px);
    flex-wrap: wrap;
}
.m360-commercial .m360-commercial-filters .mavops-field {
    flex: 0 1 170px;
    min-width: 135px;
}
.m360-commercial .m360-commercial-filters .m360-commercial-search {
    flex: 1 1 220px;
}
.m360-commercial .mavops-field select,
.m360-commercial .mavops-field input {
    background: var(--mavops-card-bg);
    color: var(--mavops-text);
    border: 1px solid var(--mavops-line);
    border-radius: var(--mavops-radius-sm, 6px);
    min-height: 36px;
    max-width: 100%;
    padding: 6px 10px;
    font: inherit;
}
.m360-commercial .mavops-field select:focus-visible,
.m360-commercial .mavops-field input:focus-visible {
    outline: 2px solid var(--mavops-primary);
    outline-offset: 2px;
}
.m360-commercial-editor {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: auto;
    background: rgba(0, 0, 0, 0.62);
}
.m360-commercial-editor-panel {
    width: min(850px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--mavops-card-bg);
    color: var(--mavops-text);
    padding: var(--mavops-space-4, 16px);
}
.m360-commercial-editor-heading {
    justify-content: space-between;
    margin-bottom: 12px;
}
.m360-commercial-editor-heading h2 {
    margin: 0;
}
.m360-commercial-editor-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 10px;
}
.m360-commercial-editor-fields .mavops-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}
.m360-commercial-editor-panel h3 {
    margin: 18px 0 10px;
}
.m360-commercial-editor-actions {
    justify-content: flex-end;
    margin-top: 18px;
}
@media (max-width: 650px) {
    .m360-commercial-editor-fields {
        grid-template-columns: 1fr;
    }
    .m360-commercial-pagination {
        justify-content: flex-start;
    }
}

/* Build 09: aging chart is a full-width visualization, not a compact aging-row item. */
.reports-aging-chart {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: 12px;
}
.reports-aging-chart c-mavops-chart {
    display: block;
    width: 100%;
    min-width: 0;
}
.reports-next-step {
    color: var(--mavops-primary);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Build 09: compact, account-scoped snapshot and registers. */
.m360-account-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 10px;
}
.m360-account-overview-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 12px;
    margin-block: 12px;
}
.m360-account-overview-details > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.m360-account-overview-details small {
    color: var(--mavops-text-soft);
}
.m360-account-register-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block: 12px;
}

/* Build 10 — commercial workspace sections. All colors reuse the existing theme. */
.m360-commercial-period-bar {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
    padding: 8px 0;
}
.m360-commercial-period-bar .mavops-field {
    min-width: 150px;
    max-width: 220px;
}
.m360-commercial-period-bar > small {
    color: var(--mavops-text-soft);
    padding-bottom: 8px;
}
.m360-commercial-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.m360-commercial-section-heading > small {
    color: var(--mavops-text-soft);
}
.m360-commercial-lifetime-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.m360-commercial-lifetime-metric {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding: 10px 12px;
    border: 1px solid var(--mavops-border);
    border-radius: 8px;
}
.m360-commercial-lifetime-metric > small {
    color: var(--mavops-text-soft);
    overflow-wrap: anywhere;
}
.m360-commercial-lifetime-metric > strong {
    font-size: 1.14rem;
    font-variant-numeric: tabular-nums;
}
.m360-commercial-progress-track {
    overflow: hidden;
    width: 100%;
    min-width: 65px;
    height: 6px;
    margin-top: 4px;
    border-radius: 4px;
    background: var(--mavops-border);
}
.m360-commercial-progress-track > span {
    display: block;
    height: 100%;
    max-width: 100%;
    background: var(--mavops-primary);
}
.m360-commercial-drilldown > summary {
    cursor: pointer;
    font-weight: 600;
    padding: 4px 0;
}
.m360-commercial-drilldown > c-mavops-account-financial {
    display: block;
    margin-top: 12px;
}
.m360-commercial-notice {
    padding: 10px 12px;
    border-left: 3px solid var(--mavops-primary);
    background: var(--mavops-card-bg);
    border-radius: 4px;
}
.m360-commercial-kpi-link {
    width: 100%;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
}
.m360-commercial-kpi-link:focus-visible,
.m360-commercial-bar-link:focus-visible {
    outline: 2px solid var(--mavops-primary);
    outline-offset: 2px;
}
.m360-commercial-bar-link {
    display: grid;
    width: 100%;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.m360-commercial-bar-link:hover {
    background: var(--mavops-card-bg);
}
@media (max-width: 900px) {
    .m360-commercial-lifetime-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .m360-commercial-lifetime-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .m360-commercial-period-bar .mavops-field {
        width: 100%;
        max-width: none;
    }
}

/* Build 11: Consolidated Billing Operations uses the standard M360 card surface. */
.reports-financial-operations .financial-panel {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.reports-financial-operations .operations-filters {
    margin-top: 0;
}
.reports-financial-operations .operations-kpis {
    gap: var(--mavops-space-3, 12px);
}


/* ===============================================================
   Build 12 — Shared Compact Workspace Contract
   - Preserve readable controls and all existing permissions/actions.
   - Show results first. Filters are expandable without clearing state.
   - Reuse M360 tokenized color, spacing, and status conventions.
   =============================================================== */
:root {
    --m360-compact-gap: 8px;
    --m360-compact-inset: 12px;
    --m360-compact-control-height: 34px;
}
/* Consistent page and section headers across Light DOM workspaces. */
.mavops-page-header,
.ui-page-header,
.ui-card-header.responsive,
.m360-commercial-header,
.reports-header {
    gap: 10px;
    align-items: center;
}
.mavops-page-header,
.ui-page-header,
.m360-commercial-header {
    margin-block-end: 8px;
}
.mavops-page-header .mavops-subtitle,
.ui-page-header .ui-page-subtitle,
.m360-commercial-header .mavops-section-note,
.ui-card-header .ui-card-subtitle {
    margin-top: 2px !important;
    line-height: 1.3 !important;
}
.ui-eyebrow, .mavops-kicker {
    margin-bottom: 2px !important;
}
.page-stack {
    gap: 10px;
}
.ui-page-card {
    padding: var(--m360-compact-inset);
}
.ui-card-header {
    padding-bottom: 8px;
}
.mavops-card:not(.mavops-modal-card):not(.m360-commercial-editor-panel),
.ui-panel:not(.mavops-modal-card) {
    min-width: 0;
}
/* Consistent collapsed filter disclosure, without unmounting or resetting form controls. */
.m360-compact-filter-heading {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 34px;
    margin: 0 0 6px;
}
.m360-filter-toggle {
    min-height: var(--m360-compact-control-height);
    padding: 5px 12px;
    background: var(--mavops-panel-2);
    border-color: var(--mavops-line-strong);
}
.m360-filter-toggle[aria-expanded="true"] {
    color: var(--mavops-primary);
    border-color: var(--mavops-primary);
}
.m360-filters-collapsed {
    display: none !important;
}
.m360-compact-filters {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: var(--m360-compact-gap);
    width: 100%;
    margin: 2px 0 10px;
    padding: 8px 10px;
    border: 1px solid var(--mavops-line);
    border-radius: var(--mavops-radius-sm, 8px);
    background: var(--mavops-panel-2);
}
.m360-compact-filters .ui-field,
.m360-compact-filters .mavops-field {
    min-width: 135px;
    flex: 1 1 150px;
    max-width: 260px;
}
.m360-compact-filters .ui-field input,
.m360-compact-filters .ui-field select,
.m360-compact-filters .mavops-field input,
.m360-compact-filters .mavops-field select {
    min-height: var(--m360-compact-control-height);
}
/* Modern single-strip controls with a moving selected background in fixed-width groups. */
.m360-segmented {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 2px !important;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    padding: 3px !important;
    margin: 0 0 8px !important;
    border: 1px solid var(--mavops-line) !important;
    border-radius: 9px !important;
    background: var(--mavops-panel-2) !important;
    overflow-x: auto;
}
.m360-segmented > button {
    position: relative;
    z-index: 1;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 5px 11px !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease;
}
.m360-segmented > button.active,
.m360-segmented > button.is-active,
.m360-segmented > button[aria-selected="true"],
.m360-segmented > button[aria-current="true"],
.m360-segmented > button[aria-pressed="true"] {
    color: var(--mavops-primary) !important;
    font-weight: 750;
    background: var(--mavops-card-bg, var(--mavops-panel)) !important;
}
.m360-segmented-2, .m360-segmented-5 {
    display: inline-grid;
    isolation: isolate;
}
.m360-segmented-2 { grid-template-columns: repeat(2, minmax(max-content, 1fr)); }
.m360-segmented-5 { grid-template-columns: repeat(5, minmax(max-content, 1fr)); }
.m360-segmented-2::before, .m360-segmented-5::before {
    content: '';
    position: absolute;
    inset-block: 3px;
    left: 3px;
    z-index: 0;
    background: var(--mavops-card-bg, var(--mavops-panel));
    border: 1px solid var(--mavops-line);
    border-radius: 6px;
    box-shadow: var(--mavops-shadow);
    transition: transform 180ms ease;
    pointer-events: none;
}
.m360-segmented-2::before { width: calc((100% - 8px) / 2); }
.m360-segmented-5::before { width: calc((100% - 14px) / 5); }
.m360-segmented-2:has(> :nth-child(2).active)::before,
.m360-segmented-2:has(> :nth-child(2)[aria-pressed="true"])::before {
    transform: translateX(100%);
}
.m360-segmented-5:has(> :nth-child(2).active)::before { transform: translateX(100%); }
.m360-segmented-5:has(> :nth-child(3).active)::before { transform: translateX(200%); }
.m360-segmented-5:has(> :nth-child(4).active)::before { transform: translateX(300%); }
.m360-segmented-5:has(> :nth-child(5).active)::before { transform: translateX(400%); }
@media (prefers-reduced-motion: reduce) {
    .m360-segmented::before, .m360-segmented > button { transition: none; }
}
/* Executive Overview: focus selector stays in the header, results start sooner. */
.management-summary-panel .section-actions .overview-view-focus {
    margin: 0;
    gap: 4px;
}
.management-summary-panel .section-actions .overview-view-focus .ui-field {
    min-width: 140px;
}
.management-summary-panel .control-filters.m360-compact-filters {
    display: flex;
    grid-template-columns: none;
}
.management-summary-panel .sensitive-view-control {
    padding: 5px 9px;
    margin: 0 0 8px;
}
.management-summary-panel .overview-kpi-band + .overview-kpi-band {
    margin-block-start: 6px;
}
/* Portfolio / resources / staffing: cards and filter strips take the space they need. */
.portfolio-panel .ui-card-header {
    padding-bottom: 6px;
}
.portfolio-panel .m360-compact-filters .search-field { flex: 2 1 210px; }
.staffing-tabs.m360-segmented { margin-bottom: 8px !important; }
.request-filters.m360-compact-filters { padding: 8px; }
/* Accounts and Opportunities: one compact heading/filter row, proportional KPI/chart sizes. */
.m360-commercial .m360-commercial-header {
    margin-bottom: 6px;
}
.m360-commercial .m360-commercial-header h1 {
    margin: 0;
    line-height: 1.18;
}
.m360-commercial .m360-commercial-filters.m360-compact-filters {
    gap: 8px;
    align-items: end;
    padding: 8px;
    margin: 0 0 8px;
}
.m360-commercial .m360-commercial-panel {
    padding: 12px;
}
.m360-commercial .m360-commercial-opportunity-overview {
    gap: 10px;
    margin-bottom: 8px;
}
.m360-commercial .m360-commercial-kpi {
    min-height: 65px;
    padding: 9px 12px;
}
.m360-commercial .m360-commercial-opportunity-charts {
    min-height: 0;
    max-height: 356px;
    overflow-y: auto;
}
.m360-commercial .m360-commercial-lifetime-metric {
    padding: 9px 11px;
}
/* Reports/Billing: reduce duplicated heading/control space, but retain context. */
.reports-workspace .reports-header {
    margin-bottom: 4px;
}
.reports-workspace .reports-nav-row {
    margin-bottom: 4px;
    row-gap: 5px;
}
.reports-workspace .reports-inline-context {
    gap: 6px;
}
.reports-workspace .reports-section-heading {
    margin: 4px 0 8px;
}
.reports-workspace .reports-kpi-grid {
    gap: 8px;
}
/* Project time & budget: presets in one strip and advanced filters on demand. */
.project-time-budget .time-budget-toolbar {
    gap: 6px;
    padding: 4px 0 7px;
    justify-content: flex-start;
}
.project-time-budget .time-budget-controls.m360-compact-filters {
    flex: 1 1 100%;
    max-width: 100%;
    margin-top: 0;
}
.project-time-budget .time-budget-controls .ui-field {
    max-width: 200px;
}
.project-time-budget .time-budget-pane-navigation.m360-segmented {
    margin: 3px 0 8px !important;
}
.project-time-budget .time-budget-kpi {
    min-height: 75px;
    padding: 9px 10px;
}
@media (max-width: 850px) {
    .m360-compact-filters .ui-field,
    .m360-compact-filters .mavops-field { max-width: none; }
    .ui-page-header, .mavops-page-header, .m360-commercial-header {
        flex-wrap: wrap;
    }
}
@media (max-width: 520px) {
    .ui-page-card { padding: 10px; }
    .m360-segmented { width: 100%; }
    .m360-segmented-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .m360-segmented > button { padding-inline: 6px !important; font-size: 11px; }
}

/* Build 12 refinement: include all existing selected-state class conventions. */
.m360-segmented > button.mavops-btn-primary,
.m360-segmented > button.selected {
    color: var(--mavops-primary) !important;
    background: var(--mavops-card-bg, var(--mavops-panel)) !important;
}
.m360-segmented-2:has(> :nth-child(2).mavops-btn-primary)::before {
    transform: translateX(100%);
}
.m360-segmented-5:has(> :nth-child(2).mavops-btn-primary)::before { transform: translateX(100%); }
.m360-segmented-5:has(> :nth-child(3).mavops-btn-primary)::before { transform: translateX(200%); }
.m360-segmented-5:has(> :nth-child(4).mavops-btn-primary)::before { transform: translateX(300%); }
.m360-segmented-5:has(> :nth-child(5).mavops-btn-primary)::before { transform: translateX(400%); }
/* Compact Refresh button fallback for light DOM components. */
.m360-icon-refresh {
    min-width: 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}
/* Keep long segment labels readable without generating a second tab row. */
.m360-commercial .m360-commercial-tabs.m360-segmented,
.m360-commercial .m360-commercial-tabs.m360-segmented button {
    white-space: nowrap;
}

/* Build 12 final density pass: applies to the whole Experience Cloud work area. */
.mavops-page-stage {
    padding: 12px 18px 28px;
}
.m360-commercial {
    padding-top: 0;
}
.ui-kpi-grid {
    gap: 8px;
}
.ui-kpi {
    min-height: 70px;
    padding: 9px 26px 9px 11px;
    gap: 3px;
}
.ui-card-header.responsive .ui-card-subtitle,
.ui-page-header.responsive .ui-page-subtitle {
    max-width: 660px;
}
.project-detail-tabs {
    margin: 6px 0 !important;
    padding: 0 2px;
}
.project-detail-tabs .native-tab {
    padding: 7px 11px;
}
.project-health-strip {
    gap: 6px;
}
.project-health-strip .project-health {
    min-height: 42px;
    padding-block: 6px;
}
.reports-workspace .reports-tabs .native-tab {
    padding-block: 7px;
}
.reports-workspace .reports-subtabs .native-tab {
    padding-block: 6px;
}
@media (max-width: 760px) {
    .mavops-page-stage {
        padding: 9px 11px 20px;
    }
    .m360-commercial .m360-commercial-opportunity-charts {
        max-height: none;
    }
}
/* KPI grids consume the full available width rather than leaving an empty fourth slot. */
.ui-kpi-grid:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ui-kpi-grid:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 920px) {
    .ui-kpi-grid:has(> :nth-child(5):last-child) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .ui-kpi-grid:has(> :nth-child(3):last-child),
    .ui-kpi-grid:has(> :nth-child(5):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Build 13: consistent bare orange filter disclosure throughout M360. */
.m360-filter-toggle,
.reports-workspace .reports-filter-trigger {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--mavops-primary) !important;
    font-weight: 650;
    min-height: 30px;
    padding: 4px 8px !important;
    border-radius: var(--mavops-radius-sm, 8px);
}
.m360-filter-toggle:hover,
.reports-workspace .reports-filter-trigger:hover {
    background: var(--mavops-primary-soft, rgba(218, 59, 40, 0.08)) !important;
}
.m360-filter-toggle:focus-visible,
.reports-workspace .reports-filter-trigger:focus-visible {
    outline: 2px solid var(--mavops-primary);
    outline-offset: 2px;
}
/* Keep period selection, view selection, and filter disclosure on one row. */
.project-time-budget .time-budget-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    column-gap: 10px;
    row-gap: 6px;
}
.project-time-budget .time-budget-toolbar > .m360-filter-toggle { margin-left: auto; }
.project-time-budget .time-budget-toolbar > .time-budget-pane-navigation.m360-segmented {
    flex: 0 0 auto;
    width: auto;
    margin: 0 !important;
}
.project-time-budget .time-budget-toolbar > .time-budget-pane-navigation.m360-segmented > button {
    min-width: 95px;
}
.project-time-budget .time-budget-toolbar > .m360-compact-filter-content {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
}
/* Billing Action queue and operations are peer subviews, not stacked actions. */
.reports-workspace .reports-operations-switch.m360-segmented {
    flex: 0 0 auto;
    width: auto;
    margin: 0 4px 0 0;
}
.reports-workspace .reports-operations-switch.m360-segmented > button {
    min-width: 108px;
    white-space: nowrap;
}
.reports-workspace .reports-operations-switch.m360-segmented > button.is-active {
    color: var(--mavops-primary);
}
.reports-workspace .reports-next-step-cell {
    width: 50px;
    text-align: center;
}
.reports-workspace .reports-next-step-cell .reports-next-step {
    display: inline-flex;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
    color: var(--mavops-primary);
    font-size: 20px;
    line-height: 1;
    border-radius: 6px;
}
.reports-workspace .reports-click-row:hover .reports-next-step,
.reports-workspace .reports-click-row:focus-visible .reports-next-step {
    background: var(--mavops-primary-soft, rgba(218, 59, 40, 0.08));
}
/* Resource reports are live content in Reports, never outbound shortcuts. */
.reports-workspace .reports-delivery-view {
    min-width: 0;
    width: 100%;
}
.reports-workspace .reports-delivery-view > * { display: block; min-width: 0; width: 100%; }
.reports-workspace .reports-delivery-view .ui-page-card { margin: 0; }
@media (max-width: 980px) {
    .project-time-budget .time-budget-toolbar > .m360-filter-toggle { margin-left: 0; }
    .reports-workspace .reports-operations-switch.m360-segmented { order: 2; }
}

/* Billing navigation: first row main tabs, next compact row subviews at left. */
.reports-workspace .reports-nav-row .reports-tabs {
    flex: 1 1 100%;
}
.reports-workspace .reports-operations-switch.m360-segmented {
    order: 1;
}
.reports-workspace .reports-nav-row .reports-inline-context {
    order: 2;
    margin-left: auto;
}
/* Operations view is retained because schedule generation is not replicated elsewhere. */
.reports-workspace .reports-financial-operations {
    min-width: 0;
    padding: 0;
}
.reports-workspace .reports-financial-operations c-mavops-revenue-management {
    display: block;
    min-width: 0;
    width: 100%;
}
.reports-workspace .reports-financial-operations .financial-panel {
    padding: 12px;
    row-gap: 10px;
}
.reports-workspace .reports-financial-operations .operations-kpis {
    gap: 8px;
}
.reports-workspace .reports-financial-operations .operations-kpis c-mavops-metric-card {
    min-width: 0;
}

/* Build 14 — Report library and billing operations have one authoritative header. */
.reports-workspace-library .reports-header {
    margin-bottom: 2px;
}
.reports-workspace-library .reports-library-toolbar {
    margin-bottom: 8px;
    padding-top: 0;
}
.reports-workspace-library .reports-embedded-title {
    margin: 0 0 8px;
    color: var(--mavops-text);
    font-size: 1rem;
    font-weight: 650;
}
.reports-workspace-library .reports-delivery-view {
    display: block;
    min-width: 0;
    padding-top: 0;
}
.reports-workspace-library .reports-delivery-view .assignment-report,
.reports-workspace-library .reports-delivery-view .utilization-root {
    margin: 0;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    border: 1px solid var(--mavops-line);
    border-radius: var(--mavops-radius-lg, 12px);
    padding: 12px 14px;
    background: var(--mavops-card, var(--mavops-surface));
    box-shadow: none;
}
.reports-workspace-library .assignment-embedded-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 32px;
    margin-bottom: 4px;
}
.reports-workspace-library .assignment-report-filters {
    margin-top: 0;
    gap: 8px;
    align-items: end;
}
.reports-workspace-library .assignment-report-chips {
    margin: 4px 0;
}
.reports-workspace-library .reports-budget-controls {
    margin-left: auto;
}
.reports-workspace-library .reports-budget-summary {
    margin-top: 8px;
}
.reports-workspace-library .reports-report-context {
    margin: 0;
    color: var(--mavops-muted);
    font-size: 0.78rem;
}
/* Billing Operations is now a main tab, with one operational table visible at a time. */
.reports-workspace-billing .reports-nav-row .reports-tabs {
    flex: 1 1 auto;
}
.reports-workspace .reports-financial-operations {
    margin-top: 0;
    padding: 0;
}
.reports-financial-operations .billing-operations-compact-heading {
    margin: 0 0 8px;
    color: var(--mavops-muted);
    font-size: 0.78rem;
}
.reports-financial-operations .operations-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: end;
    padding: 0 0 10px;
}
.reports-financial-operations .billing-operations-export {
    white-space: nowrap;
    min-height: 34px;
}
.reports-financial-operations .billing-operations-sections {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    border-bottom: 1px solid var(--mavops-line);
    margin: 0 0 12px;
    padding: 0;
}
.reports-financial-operations .billing-operations-sections .native-tab {
    flex: 0 0 auto;
    padding: 9px 12px;
    white-space: nowrap;
    font-size: 0.8rem;
}
.reports-financial-operations .page-stack {
    gap: 8px;
    padding: 0;
    margin: 0;
}
.reports-financial-operations .ui-card-header {
    margin-bottom: 4px;
}
.reports-financial-operations .ui-card-subtitle {
    margin: 0;
    font-size: 0.78rem;
}
.reports-financial-operations .operations-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1020px) {
    .reports-financial-operations .operations-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .reports-financial-operations .operations-filters {
        grid-template-columns: minmax(0, 1fr);
    }
    .reports-workspace-library .reports-delivery-view .assignment-report {
        padding: 10px;
    }
    .reports-financial-operations .operations-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Billing Operations / Monthly overview: use the same compact KPI anatomy as M360.
   The cards render in a child Light DOM component, so do not depend on
   mavopsReports.css (component-scoped) for their grid or label/value layout. */
.reports-financial-operations .billing-monthly-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 8px 0 12px;
    align-items: stretch;
}
.reports-financial-operations .billing-monthly-kpi-grid > .reports-kpi {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    min-width: 0;
    min-height: 76px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--mavops-line);
    border-left: 3px solid var(--mavops-primary);
    border-radius: var(--mavops-radius);
    background: var(--mavops-panel);
    box-shadow: var(--mavops-shadow);
}
.reports-financial-operations .billing-monthly-kpi-grid > .reports-kpi.tone-green {
    border-left-color: var(--mavops-green);
}
.reports-financial-operations .billing-monthly-kpi-grid > .reports-kpi.tone-amber {
    border-left-color: var(--mavops-amber);
}
.reports-financial-operations .billing-monthly-kpi-grid > .reports-kpi.tone-muted {
    border-left-color: var(--mavops-muted);
}
.reports-financial-operations .billing-monthly-kpi-grid .reports-kpi-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}
.reports-financial-operations .billing-monthly-kpi-grid .mavops-metric-label {
    display: block;
    color: var(--mavops-text);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.reports-financial-operations .billing-monthly-kpi-grid .reports-kpi-subtext {
    display: block;
    color: var(--mavops-muted);
    font-size: var(--mavops-caption-size);
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.reports-financial-operations .billing-monthly-kpi-grid .reports-kpi-number {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.reports-financial-operations .billing-monthly-kpi-grid .reports-kpi-number .mavops-metric-value {
    display: block;
    margin: 0;
    color: var(--mavops-text);
    font-size: clamp(0.98rem, 1.45vw, 1.35rem);
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}
.reports-financial-operations .billing-monthly-kpi-grid .reports-kpi-exact {
    display: block;
    color: var(--mavops-muted);
    font-size: var(--mavops-caption-size);
    font-weight: 400;
    line-height: 1.2;
    text-align: right;
    overflow-wrap: anywhere;
}
@media (max-width: 1180px) {
    .reports-financial-operations .billing-monthly-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .reports-financial-operations .billing-monthly-kpi-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Professional profile: shared editable Profile and read-only Resource Directory detail. */
.mavops-professional-profile {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mavops-border);
}
.mavops-professional-heading {
    margin-bottom: 0.75rem;
}
.mavops-professional-heading h3 {
    margin: 0 0 0.25rem;
    color: var(--mavops-text);
    font-size: 1rem;
}
.mavops-professional-heading p {
    margin: 0;
}
.mavops-intro-field {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.mavops-intro-field textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 7rem;
    resize: vertical;
}
.mavops-intro-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.6rem 0 1rem;
}
.mavops-professional-document-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}
.mavops-professional-document {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid var(--mavops-border);
    border-radius: 10px;
    background: var(--mavops-surface);
}
.mavops-professional-document-heading {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.mavops-professional-document .ui-subtext {
    margin: 0;
}
.mavops-professional-file-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
}
.mavops-professional-file-name {
    display: block;
    overflow-wrap: anywhere;
    color: var(--mavops-text);
    font-size: 0.825rem;
}
.mavops-professional-file-actions {
    display: flex;
    gap: 0.75rem;
}
.mavops-professional-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--mavops-primary);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    text-align: left;
}
.mavops-professional-link:hover {
    text-decoration: underline;
}
.mavops-professional-link:focus-visible {
    outline: 2px solid var(--mavops-primary);
    outline-offset: 3px;
}
.mavops-professional-link:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
.mavops-professional-file-actions .mavops-professional-link + .mavops-professional-link {
    margin-left: 0;
}
.mavops-professional-readonly {
    padding: 1rem;
}
.mavops-directory-intro {
    margin: 0 0 1rem;
    color: var(--mavops-text);
}
.mavops-directory-intro p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 0.4rem 0 0;
    line-height: 1.5;
}
@media (max-width: 980px) {
    .mavops-professional-document-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .mavops-professional-document-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Project Time & Budget / Actuals: consistent compact, resource-scoped ledger.
   Colors, typography and surfaces use the existing M360 theme tokens. */
.project-time-budget .time-budget-actuals-toolbar-search {
    flex: 1 1 220px;
    max-width: 340px;
    min-width: 180px;
}
.project-time-budget .time-budget-actuals-toolbar-search input {
    width: 100%;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid var(--mavops-line);
    border-radius: 7px;
    background: var(--mavops-panel);
    color: var(--mavops-text);
    font: inherit;
    font-size: 0.8rem;
}
.project-time-budget .time-budget-screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.project-time-budget .time-budget-actuals-layout {
    display: grid;
    grid-template-columns: minmax(210px, 245px) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-width: 0;
    margin: 6px 0 12px;
}
.project-time-budget .time-budget-actuals-sidebar {
    position: sticky;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 11px 9px;
    border: 1px solid var(--mavops-line);
    border-radius: 10px;
    background: var(--mavops-panel);
}
.project-time-budget .time-budget-actuals-sidebar-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 5px 5px;
}
.project-time-budget .time-budget-actuals-sidebar-heading > strong {
    font-size: 0.85rem;
    color: var(--mavops-text);
}
.project-time-budget .time-budget-actuals-sidebar-heading > small {
    color: var(--mavops-muted);
    font-size: 0.7rem;
}
.project-time-budget .time-budget-actuals-resource-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: min(76vh, 840px);
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}
.project-time-budget .time-budget-actuals-resource-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    padding: 9px 7px;
    border: 1px solid var(--mavops-line);
    border-radius: 9px;
    background: var(--mavops-panel);
    color: var(--mavops-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.project-time-budget .time-budget-actuals-resource-card.is-active {
    border-color: var(--mavops-primary);
    background: color-mix(in srgb, var(--mavops-primary) 6%, var(--mavops-panel));
}
.project-time-budget .time-budget-actuals-resource-card:hover {
    border-color: var(--mavops-primary);
}
.project-time-budget .time-budget-actuals-resource-card:focus-visible,
.project-time-budget .time-budget-actuals-chip:focus-visible,
.project-time-budget .time-budget-actuals-group-toggle:focus-visible,
.project-time-budget .time-budget-actuals-text-action:focus-visible {
    outline: 2px solid var(--mavops-primary);
    outline-offset: 2px;
}
.project-time-budget .time-budget-actuals-avatar,
.project-time-budget .time-budget-actuals-person-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--mavops-panel-3);
    color: var(--mavops-text);
    font-size: 0.66rem;
    font-weight: 700;
}
.project-time-budget .time-budget-actuals-avatar {
    width: 28px;
    height: 28px;
}
.project-time-budget .time-budget-actuals-resource-detail {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}
.project-time-budget .time-budget-actuals-resource-detail > strong {
    font-size: 0.75rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.project-time-budget .time-budget-actuals-resource-detail > small {
    font-size: 0.66rem;
    line-height: 1.3;
    color: var(--mavops-muted);
    overflow-wrap: anywhere;
}
.project-time-budget .time-budget-actuals-resource-totals {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 3px;
    max-width: 76px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.project-time-budget .time-budget-actuals-resource-totals > strong {
    font-size: 0.76rem;
    white-space: nowrap;
}
.project-time-budget .time-budget-actuals-resource-totals > small {
    color: var(--mavops-muted);
    font-size: 0.64rem;
    line-height: 1.2;
}
.project-time-budget .time-budget-actuals-spark {
    display: flex;
    align-items: end;
    gap: 2px;
    height: 18px;
    width: 100%;
    max-width: 150px;
    margin: 3px 0;
}
.project-time-budget .time-budget-actuals-spark .actuals-spark-bar {
    flex: 1 1 0;
    min-width: 3px;
    border-radius: 2px 2px 0 0;
}
.project-time-budget .time-budget-actuals-spark .approved {
    background: var(--mavops-green);
}
.project-time-budget .time-budget-actuals-spark .submitted {
    background: var(--mavops-amber);
}
.project-time-budget .time-budget-actuals-spark .draft {
    background: var(--mavops-muted);
}
.project-time-budget .time-budget-actuals-spark .other {
    background: var(--mavops-danger);
}
.project-time-budget .time-budget-actuals-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 9px;
    padding: 13px;
    border: 1px solid var(--mavops-line);
    border-radius: 10px;
    background: var(--mavops-panel);
}
.project-time-budget .time-budget-actuals-main-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 8px;
}
.project-time-budget .time-budget-actuals-title h2 {
    margin: 0;
    color: var(--mavops-text);
    font-size: 1rem;
    font-weight: 700;
}
.project-time-budget .time-budget-actuals-title p {
    margin: 3px 0 0;
    color: var(--mavops-muted);
    font-size: 0.71rem;
}
.project-time-budget .time-budget-actuals-legend {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 10px;
    color: var(--mavops-muted);
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
}
.project-time-budget .time-budget-actuals-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.project-time-budget .time-budget-actuals-legend i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
}
.project-time-budget .time-budget-actuals-legend .approved,
.project-time-budget .time-budget-actuals-status-track .approved,
.project-time-budget .time-budget-actuals-mini-track .approved {
    background: var(--mavops-green);
}
.project-time-budget .time-budget-actuals-legend .submitted,
.project-time-budget .time-budget-actuals-status-track .submitted,
.project-time-budget .time-budget-actuals-mini-track .submitted {
    background: var(--mavops-amber);
}
.project-time-budget .time-budget-actuals-legend .draft,
.project-time-budget .time-budget-actuals-status-track .draft,
.project-time-budget .time-budget-actuals-mini-track .draft {
    background: var(--mavops-muted);
}
.project-time-budget .time-budget-actuals-legend .other,
.project-time-budget .time-budget-actuals-status-track .other,
.project-time-budget .time-budget-actuals-mini-track .other {
    background: var(--mavops-danger);
}
.project-time-budget .time-budget-actuals-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}
.project-time-budget .time-budget-actuals-kpis.is-limited {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-time-budget .time-budget-actuals-kpi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    min-height: 76px;
    padding: 10px;
    border: 1px solid var(--mavops-line);
    border-radius: 8px;
    background: var(--mavops-panel);
}
.project-time-budget .time-budget-actuals-kpi > small,
.project-time-budget .time-budget-actuals-kpi > span {
    font-size: 0.66rem;
    line-height: 1.3;
    color: var(--mavops-muted);
}
.project-time-budget .time-budget-actuals-kpi > strong {
    font-size: clamp(0.98rem, 1.3vw, 1.24rem);
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    color: var(--mavops-text);
    overflow-wrap: anywhere;
}
.project-time-budget .time-budget-actuals-status-overview {
    margin-top: -4px;
}
.project-time-budget .time-budget-actuals-status-track,
.project-time-budget .time-budget-actuals-mini-track {
    display: flex;
    overflow: hidden;
    border-radius: 99px;
    background: var(--mavops-panel-3);
}
.project-time-budget .time-budget-actuals-status-track {
    width: 100%;
    height: 6px;
}
.project-time-budget .time-budget-actuals-mini-track {
    width: 65px;
    height: 6px;
}
.project-time-budget .time-budget-actuals-status-track > span,
.project-time-budget .time-budget-actuals-mini-track > i {
    height: 100%;
    flex-shrink: 0;
}
.project-time-budget .time-budget-actuals-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 9px;
    padding: 6px 0;
}
.project-time-budget .time-budget-actuals-group-by {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-size: 0.71rem;
    color: var(--mavops-muted);
}
.project-time-budget .time-budget-actuals-group-by > .m360-segmented {
    width: auto;
    margin: 0;
}
.project-time-budget .time-budget-actuals-group-by .m360-segmented > button {
    min-width: 56px;
    min-height: 29px;
    padding: 4px 8px;
    font-size: 0.7rem;
}
.project-time-budget .time-budget-actuals-status-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.project-time-budget .time-budget-actuals-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 27px;
    padding: 4px 8px;
    border: 1px solid var(--mavops-line);
    border-radius: 99px;
    background: var(--mavops-panel);
    color: var(--mavops-text);
    font: inherit;
    font-size: 0.68rem;
    cursor: pointer;
}
.project-time-budget .time-budget-actuals-chip > span {
    display: inline-block;
    min-width: 13px;
    padding: 1px 4px;
    border-radius: 99px;
    background: var(--mavops-panel-3);
    color: var(--mavops-muted);
    font-size: 0.66rem;
    text-align: center;
}
.project-time-budget .time-budget-actuals-chip.is-active {
    border-color: var(--mavops-primary);
    color: var(--mavops-primary);
    font-weight: 700;
    background: color-mix(in srgb, var(--mavops-primary) 7%, var(--mavops-panel));
}
.project-time-budget .time-budget-actuals-expansion-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-left: auto;
}
.project-time-budget .time-budget-actuals-text-action {
    padding: 3px 0;
    border: 0;
    background: transparent;
    color: var(--mavops-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.7rem;
}
.project-time-budget .time-budget-actuals-text-action:hover {
    color: var(--mavops-primary);
}
.project-time-budget .time-budget-actuals-groups {
    display: grid;
    gap: 5px;
    min-width: 0;
}
.project-time-budget .time-budget-actuals-group {
    min-width: 0;
    border: 1px solid var(--mavops-line);
    border-radius: 8px;
    overflow: hidden;
}
.project-time-budget .time-budget-actuals-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    border: 0;
    background: var(--mavops-panel-3);
    color: var(--mavops-text);
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.project-time-budget .time-budget-actuals-group-toggle:hover {
    background: color-mix(in srgb, var(--mavops-primary) 6%, var(--mavops-panel-3));
}
.project-time-budget .time-budget-actuals-group-title,
.project-time-budget .time-budget-actuals-group-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
    gap: 7px;
}
.project-time-budget .time-budget-actuals-group-title > strong {
    font-size: 0.75rem;
}
.project-time-budget .time-budget-actuals-group-title > small,
.project-time-budget .time-budget-actuals-group-stats > small {
    color: var(--mavops-muted);
    font-size: 0.67rem;
}
.project-time-budget .time-budget-actuals-group-stats {
    justify-content: end;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.project-time-budget .time-budget-actuals-group-stats > strong {
    font-size: 0.74rem;
}
.project-time-budget .time-budget-actuals-chevron {
    width: 9px;
    font-size: 1rem;
    font-weight: 700;
}
.project-time-budget .time-budget-actuals-table-scroll {
    max-width: 100%;
    overflow-x: auto;
}
.project-time-budget .time-budget-actuals-entry-table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
}
.project-time-budget .time-budget-actuals-entry-table th,
.project-time-budget .time-budget-actuals-entry-table td {
    padding: 7px 8px;
    vertical-align: middle;
    font-size: 0.7rem;
}
.project-time-budget .time-budget-actuals-entry-table thead th {
    background: var(--mavops-panel);
    color: var(--mavops-muted);
    font-weight: 700;
    white-space: nowrap;
}
.project-time-budget .time-budget-actuals-entry-table .time-budget-actuals-number {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.project-time-budget .time-budget-actuals-date {
    white-space: nowrap;
}
.project-time-budget .time-budget-actuals-person {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.project-time-budget .time-budget-actuals-person-avatar {
    width: 22px;
    height: 22px;
}
.project-time-budget .time-budget-actuals-task {
    min-width: 140px;
    max-width: 250px;
}
.project-time-budget .time-budget-actuals-task > strong {
    display: block;
    font-weight: 600;
    line-height: 1.35;
}
.project-time-budget .time-budget-actuals-milestone {
    display: inline-block;
    margin-bottom: 3px;
    padding: 2px 5px;
    border-radius: 4px;
    background: var(--mavops-panel-3);
    font-size: 0.65rem;
    color: var(--mavops-muted);
}
.project-time-budget .time-budget-actuals-entry-table .time-budget-notes {
    min-width: 120px;
    max-width: 280px;
    overflow-wrap: anywhere;
}
.project-time-budget .time-budget-actuals-footer {
    padding: 8px 3px 2px;
    color: var(--mavops-muted);
    font-size: 0.71rem;
    text-align: right;
}
@media (max-width: 1250px) {
    .project-time-budget .time-budget-actuals-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 920px) {
    .project-time-budget .time-budget-actuals-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .project-time-budget .time-budget-actuals-sidebar {
        position: static;
    }
    .project-time-budget .time-budget-actuals-resource-list {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 3px;
    }
    .project-time-budget .time-budget-actuals-resource-card {
        flex: 0 0 230px;
        width: 230px;
    }
}
@media (max-width: 620px) {
    .project-time-budget .time-budget-actuals-main {
        padding: 9px;
    }
    .project-time-budget .time-budget-actuals-kpis,
    .project-time-budget .time-budget-actuals-kpis.is-limited {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .project-time-budget .time-budget-actuals-expansion-actions {
        margin-left: 0;
    }
    .project-time-budget .time-budget-actuals-group-stats {
        width: 100%;
        justify-content: flex-start;
        padding-left: 16px;
    }
}

.project-time-budget .time-budget-actuals-exact {
    font-size: 0.63rem;
    color: var(--mavops-muted);
    font-variant-numeric: tabular-nums;
}

.project-time-budget .time-budget-actuals-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.project-time-budget .time-budget-actuals-header-actions > button {
    font-size: 0.7rem;
}
@media (max-width: 760px) {
    .project-time-budget .time-budget-actuals-header-actions {
        align-items: flex-start;
    }
}


/* Build 26: unified compact commercial portfolio / pipeline layout. */
.m360-commercial .m360-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.m360-commercial .m360-commercial-top-search {
    display: block;
    width: clamp(175px, 21vw, 305px);
    min-width: 165px;
}
.m360-commercial .m360-commercial-top-search input {
    width: 100%;
    min-height: 32px;
}
.m360-commercial .m360-commercial-account-toolbar,
.m360-commercial .m360-commercial-opportunity-filterbar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
    background: var(--mavops-panel);
    border: 1px solid var(--mavops-line);
    border-radius: 8px;
}
.m360-commercial .m360-commercial-account-toolbar .mavops-field,
.m360-commercial .m360-commercial-opportunity-filterbar .mavops-field {
    display: flex;
    flex: 1 1 115px;
    flex-direction: column;
    min-width: 105px;
    gap: 4px;
    margin: 0;
    font-size: 0.7rem;
}
.m360-commercial .m360-commercial-account-toolbar .mavops-field:nth-child(2),
.m360-commercial .m360-commercial-opportunity-filterbar .mavops-field:nth-child(2) {
    flex-grow: 1.4;
}
.m360-commercial .m360-commercial-account-toolbar .mavops-field > span,
.m360-commercial .m360-commercial-opportunity-filterbar .mavops-field > span {
    color: var(--mavops-muted);
    font-weight: 600;
}
.m360-commercial .m360-commercial-account-toolbar select,
.m360-commercial .m360-commercial-opportunity-filterbar select,
.m360-commercial .m360-commercial-account-toolbar input,
.m360-commercial .m360-commercial-opportunity-filterbar input {
    width: 100%;
    min-height: 32px;
    padding: 4px 8px;
    font-size: 0.75rem;
}
.m360-commercial .m360-commercial-account-quickbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 2px 0 6px;
}
.m360-commercial .m360-commercial-account-quickbar > small {
    color: var(--mavops-muted);
    font-size: 0.68rem;
}
.m360-commercial .m360-commercial-account-view-chips,
.m360-commercial .m360-commercial-opportunity-view-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}
.m360-commercial .m360-commercial-view-chip,
.m360-commercial .m360-commercial-opportunity-view-bar button {
    min-height: 28px;
    padding: 5px 11px;
    border: 1px solid var(--mavops-line);
    border-radius: 99px;
    background: var(--mavops-panel);
    color: var(--mavops-text);
    font-size: 0.71rem;
    font-weight: 600;
    cursor: pointer;
}
.m360-commercial .m360-commercial-view-chip.is-active,
.m360-commercial .m360-commercial-opportunity-view-bar button[aria-pressed="true"] {
    background: var(--mavops-primary);
    color: var(--mavops-on-primary, #fff);
    border-color: var(--mavops-primary);
}
.m360-commercial .m360-commercial-view-chip:focus-visible,
.m360-commercial .m360-commercial-opportunity-view-bar button:focus-visible {
    outline: 2px solid var(--mavops-primary);
    outline-offset: 2px;
}
.m360-commercial .m360-commercial-opportunity-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.m360-commercial .m360-commercial-opportunity-kpi-strip .m360-commercial-kpi {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 12px;
    text-align: left;
    padding: 12px 14px;
}
.m360-commercial .m360-commercial-opportunity-kpi-strip .m360-commercial-kpi-amount {
    width: auto;
    align-items: flex-end;
    text-align: right;
}
.m360-commercial .m360-commercial-opportunity-kpi-strip .m360-commercial-kpi-copy {
    flex: 1 1 auto;
}
.m360-commercial .m360-commercial-opportunity-kpi-strip .m360-commercial-kpi-copy strong,
.m360-commercial .m360-commercial-opportunity-kpi-strip .m360-commercial-kpi-copy small {
    overflow-wrap: anywhere;
}
.m360-commercial .m360-commercial-opportunity-chart-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.m360-commercial .m360-commercial-chart-card {
    min-width: 0;
    padding: 12px 14px;
}
.m360-commercial .m360-commercial-chart-card h2,
.m360-commercial .m360-commercial-list-heading h2 {
    margin: 0 0 3px;
    font-size: 0.95rem;
    color: var(--mavops-text);
}
.m360-commercial .m360-commercial-chart-card .mavops-section-note,
.m360-commercial .m360-commercial-list-heading small {
    margin: 0 0 10px;
    color: var(--mavops-muted);
    font-size: 0.69rem;
}
.m360-commercial .m360-commercial-stage-bars {
    display: grid;
    gap: 7px;
}
.m360-commercial .m360-commercial-stage-bars .m360-commercial-bar {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) minmax(95px, 3fr) minmax(90px, 1fr);
    gap: 10px;
    width: 100%;
    min-height: 27px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mavops-text);
    cursor: pointer;
    text-align: left;
}
.m360-commercial .m360-commercial-stage-bars .m360-commercial-track > span {
    background: var(--m360-stage-tone, var(--mavops-primary));
}
.m360-commercial .m360-commercial-stage-bars .m360-commercial-bar-value {
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.75rem;
}
.m360-commercial .m360-commercial-stage-bars .m360-commercial-bar-value small {
    display: block;
    color: var(--mavops-muted);
    font-size: 0.62rem;
    font-weight: 400;
}
.m360-commercial .is-qualify { --m360-stage-tone: #5688D8; }
.m360-commercial .is-propose { --m360-stage-tone: #A66ACC; }
.m360-commercial .is-negotiate { --m360-stage-tone: #8F65BF; }
.m360-commercial .is-contract { --m360-stage-tone: #5278B9; }
.m360-commercial .is-won { --m360-stage-tone: var(--mavops-green); }
.m360-commercial .is-lost { --m360-stage-tone: var(--mavops-muted); }
.m360-commercial .is-other { --m360-stage-tone: var(--mavops-primary); }
.m360-commercial .m360-commercial-close-columns {
    display: flex;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding: 8px 0 2px;
}
.m360-commercial .m360-commercial-close-column {
    display: flex;
    flex: 1 0 44px;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    min-width: 44px;
    gap: 5px;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--mavops-text);
    cursor: pointer;
    font-size: 0.64rem;
}
.m360-commercial .m360-commercial-close-value {
    color: var(--mavops-muted);
    font-size: 0.62rem;
    white-space: nowrap;
}
.m360-commercial .m360-commercial-close-track {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 125px;
    width: min(100%, 36px);
    background: var(--mavops-panel-2);
    border-radius: 4px 4px 0 0;
}
.m360-commercial .m360-commercial-close-track > span {
    width: 100%;
    min-height: 2px;
    background: #8F65BF;
    border-radius: 4px 4px 0 0;
}
.m360-commercial .m360-commercial-close-label {
    font-size: 0.63rem;
    white-space: nowrap;
}
.m360-commercial .m360-commercial-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.m360-commercial .m360-commercial-list-panel {
    padding: 10px 12px;
}
.m360-commercial .m360-commercial-opportunity-table th:first-child {
    min-width: 170px;
}
.m360-commercial .m360-commercial-opportunity-table tbody th:first-child > strong {
    display: block;
    font-size: 0.76rem;
    color: var(--mavops-text);
}
.m360-commercial .m360-commercial-opportunity-table tbody th:first-child > small {
    display: block;
    margin-top: 2px;
    font-size: 0.64rem;
    font-weight: 400;
    color: var(--mavops-muted);
}
.m360-commercial .m360-commercial-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.m360-commercial .m360-commercial-stage,
.m360-commercial .m360-commercial-setup {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 99px;
    background: var(--mavops-panel-2);
    color: var(--m360-stage-tone, var(--mavops-text));
    font-weight: 600;
    font-size: 0.66rem;
    white-space: nowrap;
}
.m360-commercial .m360-commercial-setup.is-ready {
    color: var(--mavops-green);
    background: var(--mavops-green-soft);
}
.m360-commercial .m360-commercial-setup.is-review {
    color: var(--mavops-amber);
    background: var(--mavops-amber-soft);
}
.m360-commercial .m360-commercial-setup.is-early {
    color: var(--mavops-muted);
}
/* Actuals approval allocation bar belongs with the selected resource heading. */
.project-time-budget .time-budget-actuals-header-actions .time-budget-actuals-status-overview {
    width: min(280px, 100%);
    margin: 0;
    padding: 0;
}
.project-time-budget .time-budget-actuals-header-actions .time-budget-actuals-status-track {
    height: 7px;
    width: 100%;
}
.project-time-budget .time-budget-actuals-main-heading {
    align-items: center;
}
@media (max-width: 1040px) {
    .m360-commercial .m360-commercial-opportunity-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .m360-commercial .m360-commercial-opportunity-chart-pair {
        grid-template-columns: minmax(0, 1fr);
    }
    .m360-commercial .m360-commercial-account-toolbar .mavops-field,
    .m360-commercial .m360-commercial-opportunity-filterbar .mavops-field {
        flex: 1 1 145px;
    }
    .project-time-budget .time-budget-actuals-header-actions .time-budget-actuals-status-overview {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .m360-commercial .m360-commercial-opportunity-kpi-strip {
        grid-template-columns: minmax(0, 1fr);
    }
    .m360-commercial .m360-commercial-top-search {
        width: 100%;
    }
    .m360-commercial .m360-commercial-stage-bars .m360-commercial-bar {
        grid-template-columns: minmax(75px, 1fr) minmax(70px, 2fr) minmax(75px, 1fr);
        gap: 5px;
    }
}
