/* Shared owner workspace. Kept separate from the customer storefront. */
.crm-page {
  --crm-paper: #f7f5ef;
  --crm-ink: #18392e;
  --crm-muted: #637169;
  --crm-line: #e3e6de;
  --crm-gold: #ad8744;
  background: var(--crm-paper);
  color: var(--crm-ink);
}
.crm-page .crm-app { font-family: "Outfit", sans-serif; font-size: 15px; line-height: 1.5; }
.crm-page [hidden] { display: none !important; }
.crm-page :is(button, a, input, select, textarea):focus-visible { outline: 2px solid #a58242; outline-offset: 4px; }
.crm-page button { transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.crm-page button:disabled { cursor: not-allowed; opacity: .5; }
.crm-page .crm-shell { grid-template-columns: 232px minmax(0, 1fr); }
.crm-page .crm-sidebar { padding: 32px 18px 24px; background: #102d23; border-right: 1px solid #244336; }
.crm-page .crm-brand { gap: 12px; padding: 0 6px 30px; border-color: #355044; }
.crm-page .crm-brand img { width: 50px; height: 58px; }
.crm-page .crm-brand strong { font-size: 29px; letter-spacing: .13em; }
.crm-page .crm-brand small { margin-top: 7px; font-size: 10px; letter-spacing: .22em; color: #d2b77c; }
.crm-page .crm-nav { gap: 7px; margin-top: 30px; }
.crm-page .crm-nav a { min-height: 47px; padding: 11px 14px; font-size: 14px; font-weight: 400; color: #c3cfc7; border-radius: 8px; }
.crm-page .crm-nav a > span { display: flex; align-items: center; }
.crm-page .crm-nav a svg { width: 19px; height: 19px; }
.crm-page .crm-nav a:hover { background: #1d3a2e; color: #fff9ec; }
.crm-page .crm-nav a.is-active { color: #f1dfb4; background: #2a4435; box-shadow: inset 2px 0 #d1ae68; }
.crm-page .crm-nav a.is-active::after { content: "›"; color: #d1ae68; font-size: 20px; line-height: 1; }
.crm-page .crm-sidebar-foot { gap: 10px; padding: 22px 10px 0; border-color: #355044; }
.crm-page .crm-role { font-size: 10px; letter-spacing: .13em; padding: 4px 10px; color: #dec692; border-color: #6e6948; }
.crm-page .crm-owner-email { font-size: 12px; color: #b7c5bd; }
.crm-page .crm-signout, .crm-page .crm-sidebar-foot a { font-size: 12px; }
.crm-page .crm-sidebar-foot > small { display: none; }
.crm-page .crm-sidebar { overflow-y:auto; }
.crm-page .crm-nav-sections { gap:4px; }
.crm-page .crm-nav-group-head { display:grid; grid-template-columns:minmax(0,1fr) 32px; align-items:center; }
.crm-page .crm-nav-group-head > a { min-width:0; }
.crm-page .crm-nav .crm-nav-toggle { display:grid; place-items:center; width:30px; min-height:36px; padding:0; border-radius:6px; color:#b9cabf; }
.crm-page .crm-nav-toggle:hover { background:#284737; }
.crm-page .crm-nav-toggle svg { transition:transform .15s; }
.crm-page .crm-nav-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
.crm-page .crm-nav a.is-section-active { color:#f1dfb4; }
.crm-page .crm-subnav { margin:2px 0 7px 23px; padding:2px 0 2px 9px; border-left:1px solid #48604f; }
.crm-page .crm-nav .crm-subnav a { display:block; min-height:35px; padding:7px 10px; font-size:13px; line-height:1.5; }
.crm-page .crm-nav .crm-subnav a::after { display:none; }
.crm-page .crm-nav-group-head a::after { display:none; }
.crm-page .crm-main { padding: 38px clamp(20px, 3vw, 48px) 54px; width: 100%; max-width: 1840px; margin-inline: auto; }
.crm-page .crm-topbar { align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #dedfd5; }
.crm-page .crm-topbar .eyebrow { color: #91723e; font-size: 11px; letter-spacing: .19em; }
.crm-page .crm-topbar h1 { font-size: clamp(38px, 3.6vw, 52px); font-weight: 600; letter-spacing: -.035em; margin: 6px 0 8px; line-height: 1; }
.crm-page .crm-topbar p { color: var(--crm-muted); font-size: 14px; line-height: 1.55; }
.crm-page :is(.crm-refresh, .crm-filter-clear, .crm-period select, .crm-payout-action) { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 13px; border: 1px solid #dce1d7; border-radius: 7px; background: #fff; color: var(--crm-ink); font: 500 13px/1.3 "Outfit", sans-serif; text-decoration: none; }
.crm-page :is(.crm-refresh, .crm-filter-clear, .crm-payout-action):hover { background: #f4f5ef; border-color: #b9c4b7; }
.crm-page :is(.crm-filter-clear, .crm-order-views) svg { width: 16px; height: 16px; }
.crm-page [data-crm-icon] { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.crm-page .crm-period { font-size: 13px; font-weight: 400; }
.crm-page .crm-feedback { font-size: 14px; padding: 14px 16px; border-radius: 8px; background: #edf3eb; }
.crm-page .crm-feedback.is-error { background: #fff4f0; }
.crm-page .crm-last-refreshed { font-size: 12px; margin: 10px 0 -10px; }

/* A compact financial anchor, with the operational counts alongside it. */
.crm-page .crm-metrics { gap: 12px; margin: 25px 0; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.crm-page .crm-metrics-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.crm-page .crm-metrics[data-metric-count="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.crm-page .crm-metrics article { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 19px 20px; border: 1px solid var(--crm-line); border-radius: 11px; background: #fff; box-shadow: 0 3px 4px #152f2110; }
.crm-page .crm-metric-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; margin-bottom: 14px; background: #f0f3ed; color: #617b65; }
.crm-page .crm-metric-icon svg { width: 18px; height: 18px; }
.crm-page .crm-metrics article > span { color: var(--crm-muted); font: 400 13px/1.3 "Outfit", sans-serif; letter-spacing: 0; text-transform: none; }
.crm-page .crm-metrics article > strong { margin-top: 7px; font: 500 clamp(25px, 2.5vw, 36px)/1.1 "Outfit", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.crm-page .crm-metrics article > small { font-size: 11px; line-height: 1.4; margin-top: 9px; color: var(--crm-muted); }
.crm-page .crm-metrics .crm-featured-metric { order: -1; background: #173a2d; border-color: #173a2d; color: #fffaf0; box-shadow: 0 4px 10px #173a2d1a; }
.crm-page .crm-featured-metric .crm-metric-icon { color: #e3c991; background: #294b3b; }
.crm-page .crm-metrics .crm-featured-metric > span { color: #d4dfd1; }
.crm-page .crm-metrics .crm-featured-metric > small { color: #c6d8c5; }

/* Shared lists and the order ledger. */
.crm-page :is(.crm-orders-card, .crm-inventory-card, .crm-overview-card) { border: 1px solid var(--crm-line); border-radius: 13px; box-shadow: 0 4px 20px #173a2d06; background: #fff; }
.crm-page .crm-orders-head { align-items: flex-start; flex-direction: column; gap: 17px; padding: 22px 24px; border-color: var(--crm-line); }
.crm-page .crm-orders-head h2 { font: 500 21px/1.3 "Outfit", sans-serif; letter-spacing: -.025em; }
.crm-page .crm-orders-head > div:first-child > span { display: inline-block; color: var(--crm-muted); font-size: 12px; margin-left: 7px; }
.crm-page .crm-filters { width: 100%; justify-content: flex-start; align-items: center; gap: 10px; }
.crm-page .crm-filters label { display: block; min-width: 0; }
.crm-page .crm-filters input:not([type="checkbox"]), .crm-page .crm-filters select { height: 42px; border: 1px solid #dfe4da; border-radius: 7px; background-color: #fff; font: 400 14px "Outfit", sans-serif; color: var(--crm-ink); }
.crm-page .crm-filters input:not([type="checkbox"]) { width: 100%; }
.crm-page .crm-filters select { min-width: 152px; padding: 0 30px 0 12px; }
.crm-page .crm-filters .crm-search { position: relative; flex: 1 1 220px; max-width: 480px; }
.crm-page .crm-filters .crm-search input { padding-left: 39px; background: #fafbf8; }
.crm-page .crm-search-icon { position: absolute; left: 13px; top: 12px; display: flex; pointer-events: none; color: #7c8a7d; }
.crm-page .crm-search-icon svg { width: 18px; height: 18px; }
.crm-page input::placeholder { color: #7c877e; opacity: 1; }
.crm-page .crm-filters .crm-inactive-filter { display: flex; height: 42px; font-size: 13px; }
.crm-page .crm-filters .crm-inactive-filter input { width: 65px; height: 32px; }
.crm-page .crm-ledger-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--crm-line); }
.crm-page .crm-order-views { display: flex; flex-wrap: wrap; max-width: 100%; padding: 4px; border: 1px solid #e3e7dd; border-radius: 9px; background: #f3f5ef; gap: 3px; }
.crm-page .crm-order-views button { display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-height: 37px; padding: 7px 13px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #647164; font: 500 13px "Outfit", sans-serif; white-space: nowrap; cursor: pointer; }
.crm-page .crm-order-views button:hover { color: #18392e; background: #e9eee4; }
.crm-page .crm-order-views button[aria-pressed="true"] { border-color: #d8dfd1; background: #fff; box-shadow: 0 2px 4px #19392409; color: #18392e; }
.crm-page .crm-inventory-views [data-inventory-view-count] { min-width: 19px; padding: 2px 5px; border-radius: 5px; background: #e8ede2; color: #63745d; font-size: 10px; font-variant-numeric: tabular-nums; }
.crm-page .crm-inventory-views button[aria-pressed="true"] [data-inventory-view-count] { background: #edf0e8; color: #18392e; }
.crm-page .crm-inventory-card .crm-inventory-view-note { margin: -8px 0 0; color: var(--crm-muted); font-size: 12px; line-height: 1.6; }
.crm-page .crm-ledger-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crm-page .crm-promo-toggle { background: #193d2f; border-color: #193d2f; color: #f4e7c7; }
.crm-page .crm-promo-toggle:hover, .crm-page .crm-promo-toggle[aria-expanded="true"] { color: #fff; background: #2d513f; border-color: #2d513f; }
.crm-page .crm-ledger-filters { padding: 20px 22px 15px; border-bottom: 0; }
.crm-page .crm-ledger-filters .crm-search { max-width: none; }
.crm-page .crm-results-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 0 23px 18px; color: var(--crm-muted); font-size: 12px; }
.crm-page .crm-results-bar > :first-child { color: #425b49; font-weight: 500; }
.crm-page .crm-table { min-width: 970px; font-size: 14px; }
.crm-page .crm-table th { background: #f7f9f4; color: #71806c; font: 500 10px/1.4 "Outfit", sans-serif; letter-spacing: .09em; padding: 13px 18px; border-block: 1px solid #e8ece2; }
.crm-page .crm-table td { padding: 19px 18px; border-color: #edf0e8; }
.crm-page .crm-table tbody tr:hover { background: #fafbf6; }
.crm-page .crm-table tbody tr:focus-visible { outline: 2px solid #b29250; outline-offset: -2px; }
.crm-page .crm-table td > strong { font-weight: 500; }
.crm-page .crm-order-number { color: #294736; font-size: 11px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.crm-page .crm-cell-sub { color: #718070; font-size: 12px; line-height: 1.4; margin-top: 4px; }
.crm-page .crm-person-cell { display: flex; gap: 10px; align-items: center; }
.crm-page .crm-person-cell > div { min-width: 0; }
.crm-page .crm-person-cell strong { font-size: 14px; font-weight: 500; }
.crm-page .crm-person-cell .crm-cell-sub { max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-page .crm-avatar { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #e1e6d6; border-radius: 50%; background: #f2f4e9; color: #6d784b; font-size: 11px; font-weight: 500; }
.crm-page .crm-money { font: 500 14px "Outfit", sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.crm-page .crm-row-open { padding: 7px 10px; border: 1px solid #e0e5d9; border-radius: 6px; text-decoration: none; font: 500 12px "Outfit", sans-serif; white-space: nowrap; }
.crm-page .crm-row-open:hover { background: #edf2e7; }
.crm-page .crm-payment-method { text-transform: capitalize; }
.crm-page :is(.crm-status, .crm-method) { padding: 5px 8px; font-size: 11px; line-height: 1.3; font-weight: 500; text-transform: none; letter-spacing: 0; }
.crm-page .crm-status::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; margin-right: 5px; border-radius: 50%; background: currentColor; opacity: .8; }
.crm-page .crm-status-awaiting-payment, .crm-page .crm-status-payment-claimed, .crm-page .crm-status-payment-under-review { background: #fbf2d9; color: #886625; }
.crm-page :is(.crm-status-payment-verified, .crm-status-ready-for-fulfillment, .crm-status-completed, .crm-status-active) { color: #326140; background: #eaf2e4; }
.crm-page .crm-empty { padding: 48px 20px 54px; color: var(--crm-ink); text-align: center; }
.crm-page .crm-empty-icon { display: grid !important; place-items: center; width: 62px; height: 62px; margin: 0 auto 18px; border: 1px solid #dce4d0; border-radius: 18px; background: #f6f8f0; color: #7d8d67; box-shadow: 0 0 0 8px #fbfcf8; }
.crm-page .crm-empty-icon svg { width: 27px; height: 27px; }
.crm-page .crm-empty strong { display: block; font: 600 26px/1.15 var(--disp); }
.crm-page .crm-empty p { max-width: 38ch; margin: 9px auto 0; font-size: 14px; line-height: 1.5; color: var(--crm-muted); }
.crm-page .crm-empty button { margin-top: 18px; }
.crm-page .crm-table-footer { padding: 16px; background: #fcfcf9; border-color: var(--crm-line); }
.crm-page .crm-app.is-loading .crm-orders-card { opacity: .65; transition: opacity .15s; }

/* Overview, customer, inventory and partnership surfaces. */
.crm-page .crm-overview-grid { gap: 20px; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); }
.crm-page .crm-overview-card { padding: 25px; }
.crm-page .crm-overview-card h2 { font: 600 27px/1.15 var(--disp); letter-spacing: -.02em; margin-top: 5px; }
.crm-page .crm-section-heading .eyebrow { font-size: 10px; color: #938052; letter-spacing: .14em; }
.crm-page .crm-section-heading a { font-size: 13px; font-weight: 500; text-decoration: none; border-bottom: 1px solid #ccd7bf; }
.crm-page [data-attention-count] { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: #f5ecd6; color: #84652a; font-size: 13px; }
.crm-page .crm-attention-list { gap: 11px; margin-top: 23px; }
.crm-page .crm-attention-item { gap: 6px 12px; padding: 16px; border-left: 2px solid #bea568; border-radius: 7px; background: #faf8f0; }
.crm-page .crm-attention-item span { color: #7e7050; font-size: 11px; letter-spacing: .04em; }
.crm-page .crm-attention-item strong { font-size: 14px; font-weight: 500; }
.crm-page .crm-attention-item small { font-size: 11px; }
.crm-page .crm-bar-chart { height: 210px; margin-top: 20px; gap: 5px; background: repeating-linear-gradient(to top, transparent 0, transparent 49px, #edf0e8 50px); }
.crm-page .crm-bar-chart span { background: #49765a; border-radius: 3px 3px 0 0; }
.crm-page .crm-bar-chart small { font-size: 8px; }
.crm-page .crm-revenue-card .crm-section-heading { align-items:flex-end; }
.crm-page .crm-chart-scale { color:#7c8290; font:500 12px/1.4 "Outfit",sans-serif; white-space:nowrap; }
.crm-page .crm-revenue-chart { position:relative; min-height:240px; margin-top:16px; }
.crm-page .crm-revenue-chart:focus-visible { outline:2px solid #7654db; outline-offset:5px; border-radius:6px; }
.crm-page .crm-revenue-area-chart { display:block; width:100%; height:auto; overflow:visible; font-family:"Outfit",sans-serif; }
.crm-page .crm-revenue-grid line { stroke:#e8e9ee; stroke-width:1; }
.crm-page .crm-revenue-area-chart text { fill:#78808c; font-size:11px; }
.crm-page .crm-revenue-grid text.is-revenue { fill:#168cb8; }
.crm-page .crm-revenue-grid text.is-orders { fill:#7654db; }
.crm-page .crm-revenue-area { stroke:none; }
.crm-page .crm-revenue-line { fill:none; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.crm-page .crm-revenue-line.is-revenue { stroke:#22a9dc; }
.crm-page .crm-revenue-line.is-orders { stroke:#7654db; }
.crm-page .crm-revenue-point,.crm-page .crm-revenue-cursor circle { stroke:#fff; stroke-width:2; }
.crm-page .crm-revenue-point.is-revenue,.crm-page .crm-revenue-cursor .is-revenue { fill:#22a9dc; }
.crm-page .crm-revenue-point.is-orders,.crm-page .crm-revenue-cursor .is-orders { fill:#7654db; }
.crm-page .crm-revenue-cursor line { stroke:#8f92a4; stroke-width:1; stroke-dasharray:4 4; }
.crm-page .crm-revenue-tooltip { position:absolute; z-index:2; top:8px; width:190px; max-width:100%; padding:12px 14px; border:1px solid #dddfee; border-radius:10px; background:#fffffff7; color:#323749; box-shadow:0 8px 28px #3934631c; pointer-events:none; font:400 12px/1.6 "Outfit",sans-serif; }
.crm-page .crm-revenue-tooltip > strong { display:block; margin-bottom:7px; color:#292d3a; font-weight:600; }
.crm-page .crm-revenue-tooltip > span { display:flex; align-items:center; gap:7px; }
.crm-page .crm-revenue-tooltip > span::before { content:""; width:8px; height:8px; border-radius:50%; background:#22a9dc; }
.crm-page .crm-revenue-tooltip > .is-orders::before { background:#7654db; }
.crm-page .crm-revenue-tooltip b { margin-left:auto; font-weight:600; font-variant-numeric:tabular-nums; }
.crm-page .crm-revenue-legend { display:flex; justify-content:center; gap:25px; margin-top:14px; color:#62697a; font-size:12px; }
.crm-page .crm-revenue-legend span { display:flex; align-items:center; gap:7px; }
.crm-page .crm-revenue-legend i { width:21px; height:3px; border-radius:3px; background:#22a9dc; }
.crm-page .crm-revenue-legend i.is-orders { background:#7654db; }
.crm-page .crm-chart-help { margin:10px 0 0; color:#858b96; font-size:11px; line-height:1.5; text-align:center; }
.crm-page .crm-revenue-empty { margin:16px 0 0; padding:76px 20px; border-radius:9px; background:#f7f8fb; color:#747b88; font-size:14px; text-align:center; }
.crm-page .crm-ranked-list { gap: 0; margin-top: 15px; }
.crm-page .crm-ranked-list > div { padding: 13px 0; font-size: 14px; }
.crm-page .crm-ranked-list strong { font: 500 12px/1.5 "Outfit", sans-serif; color: #566f53; }
.crm-page .crm-mini-metrics { gap: 9px; margin-top: 20px; }
.crm-page .crm-mini-metrics > div { padding: 14px 12px; border: 1px solid #e9eddf; background: #f7f9f2; border-radius: 8px; }
.crm-page .crm-mini-metrics span { color: #6c7863; font-size: 11px; text-transform: none; }
.crm-page .crm-mini-metrics strong { font: 500 24px/1.2 "Outfit", sans-serif; margin-top: 8px; letter-spacing: -.03em; }
.crm-page .crm-empty-compact { background: #f7f9f4; color: #6d7b66; border: 1px dashed #dce4d3; padding: 26px 16px; font-size: 14px; }
.crm-page .crm-empty-compact strong { font: 500 16px "Outfit", sans-serif; }
.crm-page .crm-email-list > div { padding: 14px; }
.crm-page .crm-email-list span { font-size: 13px; }
.crm-page .crm-info-strip { padding: 16px 20px; margin: 0 0 23px; gap: 15px; border: 1px solid #e4dcc7; background: #f3efe4; border-radius: 8px; }
.crm-page .crm-info-strip strong { font: 500 14px "Outfit", sans-serif; }
.crm-page .crm-info-strip span { font-size: 13px; color: #716b59; line-height: 1.6; }
.crm-page .crm-product-cell img { width: 45px; height: 58px; padding: 3px; border: 1px solid #e3e6dc; background: #fafbf5; border-radius: 7px; }
.crm-page .crm-product-cell small { font-size: 11px; color: #728169; }
.crm-page .crm-stock-number { font: 500 17px "Outfit", sans-serif; }
.crm-page .crm-stock-available { font-size: 18px; }
.crm-page .crm-tag { padding: 4px 8px; font-size: 11px; font-weight: 500; background: #f4eedf; color: #89703d; }
.crm-page .crm-muted { font-size: 12px; color: #72816c; }
.crm-page .partner-owner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.crm-page .partner-owner-actions :is(button, a) { padding: 10px 14px; font: 500 13px "Outfit", sans-serif; border: 1px solid #d5dfcb; border-radius: 7px; color: #375b3c; background: #edf3e7; text-decoration: none; cursor: pointer; }
.crm-page .crm-affiliate-payout-card { margin-top: 24px; }
.crm-page .crm-affiliate-payout-card .crm-table-wrap { margin: 20px -25px -25px; border-radius: 0 0 12px 12px; }
.crm-page .crm-security-card { max-width: 850px; border-top: 3px solid #b99a5d; }
.crm-page .crm-security-card > p { font-size: 15px; }
.crm-page .crm-security-card .crm-role { color: #4f704c; border-color: #d2dec4; background: #f2f6e9; }

/* Consistent, readable record drawers and confirmations. */
.crm-page .crm-journey-section { padding: 22px 0; border-top: 1px solid #dce1d2; }
.crm-page .crm-journey-section h3 { margin: 0 0 20px; font: 500 15px "Outfit", sans-serif; }
.crm-page .crm-order-journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; gap: 5px; }
.crm-page .crm-order-journey li { position: relative; display: flex; flex-direction: column; gap: 10px; }
.crm-page .crm-order-journey li:not(:last-child)::after { content: ""; height: 1px; background: #dce4d2; position: absolute; top: 16px; left: 37px; right: 0; }
.crm-page .crm-order-journey li > span { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #e0e5d5; border-radius: 50%; background: #f1f3eb; color: #869078; font-size: 10px; }
.crm-page .crm-order-journey li > strong { max-width: 75px; color: #7a866e; font-size: 11px; font-weight: 400; line-height: 1.45; }
.crm-page .crm-order-journey li.is-complete > span { background: #e1ead5; border-color: #cddabd; color: #43663c; }
.crm-page .crm-order-journey li.is-current > span { background: #234731; border-color: #234731; color: #f5e8bf; box-shadow: 0 0 0 4px #e7edde; }
.crm-page .crm-order-journey li.is-current > strong { color: #254a30; font-weight: 500; }
.crm-page .crm-journey-stopped { color: #896e53; font-size: 13px; margin: 0; }
.crm-page .crm-status-quality-check { background: #eaeedc; color: #5b7032; }
.crm-page .crm-commission-progress { padding: 19px; margin-bottom: 24px; border: 1px solid #ded7bb; border-radius: 9px; background: #f5f1e2; }
.crm-page .crm-commission-progress > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.crm-page .crm-commission-progress .eyebrow { font-size: 10px; letter-spacing: .1em; }
.crm-page .crm-commission-progress > div > strong { font: 500 23px "Outfit", sans-serif; }
.crm-page .crm-commission-progress ol { display: grid; grid-template-columns: 1fr 1fr; list-style: none; padding: 17px 0 0; margin: 14px 0 0; gap: 12px; border-top: 1px solid #e0d9be; }
.crm-page .crm-commission-progress li { display: flex; align-items: flex-start; gap: 9px; }
.crm-page .crm-commission-progress li > span { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 50%; background: #e9e3ce; color: #8c7a4c; font-size: 10px; }
.crm-page .crm-commission-progress li.is-complete > span { background: #3f603e; color: #f8edc9; }
.crm-page .crm-commission-progress li strong { display: block; font-size: 12px; font-weight: 500; }
.crm-page .crm-commission-progress li small { display: block; font-size: 11px; color: #887b58; margin-top: 4px; }
.crm-page [data-order-action="approve_commission"] { grid-column: 1 / -1; background: #b89b5d; border-color: #b89b5d; color: #102b1b; }
.crm-page [data-order-action="quality_check"] { background: #224a34; color: #fff; }
.crm-page .crm-drawer-overlay { background: #091f18a6; backdrop-filter: blur(3px); }
.crm-page .crm-drawer-panel { width: min(680px, 96vw); background: #f8f7f1; }
.crm-page .crm-drawer-top { padding: 16px 25px; border-color: #dce1d2; background: #173a2d; color: #e3d3ad; font-size: 11px; }
.crm-page .crm-drawer-top button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #496150; border-radius: 7px; color: #e9e8d4; }
.crm-page .crm-drawer-scroll { padding: 28px; }
.crm-page .crm-detail-head { flex-wrap: wrap; align-items: flex-start; }
.crm-page .crm-detail-head h2 { font-size: clamp(24px, 4vw, 34px); overflow-wrap: anywhere; }
.crm-page .crm-detail-head p { font-size: 13px; }
.crm-page .crm-detail-total { color: #375a3b; font: 500 25px/1.3 "Outfit", sans-serif; letter-spacing: -.035em; }
.crm-page .crm-detail-statuses { gap: 7px; margin: 15px 0 22px; }
.crm-page .crm-detail-section { padding: 22px 0; border-color: #dce1d2; }
.crm-page :is(.crm-detail-section h3, .crm-address-grid h3, .crm-update-form h3, .crm-contact-card h3) { font: 500 16px "Outfit", sans-serif; }
.crm-page .crm-detail-items > div { padding: 14px; border: 1px solid #e1e5d8; background: #fff; border-radius: 8px; font-size: 14px; }
.crm-page .crm-detail-items small { font-size: 12px; }
.crm-page .crm-address-grid > div, .crm-page .crm-contact-card { padding: 18px; border-color: #e0e5d6; background: #fff; }
.crm-page .crm-address-grid address, .crm-page .crm-contact-card :is(dt, dd) { font-size: 13px; line-height: 1.7; }
.crm-page .crm-contact-card dd { overflow-wrap: anywhere; }
.crm-page .crm-totals { font-size: 14px; gap: 10px; }
.crm-page .crm-totals dd { font: 500 14px "Outfit", sans-serif; }
.crm-page .crm-total-line { padding-top: 14px; }
.crm-page .crm-history strong { font-size: 14px; font-weight: 500; }
.crm-page .crm-history small { margin-top: 3px; font-size: 12px; }
.crm-page .crm-history-dot { background: #aa914e; }
.crm-page .crm-update-form { padding: 20px; gap: 14px; background: #edf2e6; border-color: #d5dfc6; }
.crm-page .crm-update-form label, .crm-page .crm-confirm label { font-size: 13px; font-weight: 500; gap: 7px; }
.crm-page :is(.crm-update-form input:not([type="checkbox"]), .crm-update-form select, .crm-update-form textarea, .crm-confirm input, .crm-confirm textarea) { font-size: 14px; min-width: 0; border-color: #d4deca; border-radius: 7px; }
.crm-page .crm-update-form > p { font-size: 12px; line-height: 1.5; }
.crm-page .crm-guided-actions button { min-height: 44px; font: 500 13px "Outfit", sans-serif; border-radius: 7px; }
.crm-page .crm-danger-zone { padding: 20px; background: #fcf4ee; border-color: #eeddd0; }
.crm-page .crm-danger-zone h3 { font: 500 16px "Outfit", sans-serif; }
.crm-page .crm-danger-zone p { font-size: 13px; color: #916d5c; line-height: 1.6; }
.crm-page .crm-danger-zone button, .crm-page .crm-danger-button { font: 500 13px "Outfit", sans-serif; padding: 12px 16px; border-radius: 7px; }
.crm-page .crm-confirm > section { padding: 28px; max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid #dce1d2; border-radius: 13px; }
.crm-page .crm-confirm h2 { font-size: 32px; }
.crm-page .crm-confirm p { font-size: 14px; line-height: 1.6; }
.crm-page .crm-confirm label + label { margin-top: 14px; }
.crm-page .crm-confirm section > div { margin-top: 22px; }
.crm-page .crm-gate.crm-authorizing { left: 232px; }

@media (min-width: 1500px) {
  .crm-page .crm-metrics:has(.crm-featured-metric) { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .crm-page .crm-metrics[data-metric-count="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crm-page .crm-ledger-heading { gap: 14px; }
  .crm-page .crm-metrics article { padding: 16px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .crm-page .crm-shell { grid-template-columns: 78px minmax(0, 1fr); }
  .crm-page .crm-sidebar { padding: 27px 11px; }
  .crm-page .crm-brand { padding-bottom: 24px; }
  .crm-page .crm-brand img { width: 45px; }
  .crm-page .crm-nav a { display: flex; justify-content: center; font-size: 0; padding: 14px; }
  .crm-page .crm-nav a::after { display: none; }
  .crm-page .crm-sidebar-foot { padding-inline: 0; }
  .crm-page .crm-sidebar-foot .crm-owner-email { display: none; }
  .crm-page .crm-signout { font-size: 10px; text-align: center; }
  .crm-page .crm-gate.crm-authorizing { left: 78px; }
}
@media (max-width: 760px) {
  .crm-page .crm-shell { display: block; }
  .crm-page .crm-sidebar { position: static; height: auto; padding: 9px 10px 12px; border-right: 0; }
  .crm-page .crm-sidebar-foot { padding: 0 5px 9px; border: 0; gap: 10px; }
  .crm-page .crm-sidebar-foot .crm-role { font-size: 9px; }
  .crm-page .crm-sidebar-foot .crm-owner-email, .crm-page .crm-signout { font-size: 11px; }
  .crm-page .crm-nav { margin: 0; gap: 3px; }
  .crm-page .crm-nav a { display: flex; flex-direction: column; gap: 7px; min-height: 54px; padding: 9px 3px; font-size: 10px; line-height: 1; }
  .crm-page .crm-nav a.is-active { box-shadow: inset 0 -2px #d1ae68; }
  .crm-page .crm-nav a::after { display: none; }
  .crm-page .crm-main { padding: 24px 16px 35px; }
  .crm-page .crm-topbar { padding-bottom: 20px; align-items: flex-start; }
  .crm-page .crm-topbar h1 { font-size: 39px; }
  .crm-page .crm-topbar p { display: block; font-size: 13px; max-width: 35ch; }
  .crm-page .crm-topbar-actions { gap: 7px; }
  .crm-page .crm-topbar-actions .btn { font-size: 12px; padding: 10px; min-height: 40px; }
  .crm-page .crm-metrics, .crm-page .crm-metrics-four, .crm-page .crm-metrics[data-metric-count="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
  .crm-page .crm-metrics .crm-featured-metric { grid-column: 1 / -1; min-height: 113px; padding: 22px; }
  .crm-page .crm-featured-metric .crm-metric-icon { position: absolute; right: 22px; top: 23px; width: 39px; height: 39px; }
  .crm-page .crm-metrics article > strong { font-size: 31px; }
  .crm-page .crm-metric-icon { margin-bottom: 11px; }
  .crm-page .crm-ledger-heading { padding: 15px; gap: 16px; }
  .crm-page .crm-order-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .crm-page .crm-order-views button { flex: 1; padding-inline: 8px; font-size: 12px; }
  .crm-page .crm-inventory-views button { flex-wrap: wrap; }
  .crm-page .crm-inventory-views [data-crm-icon] { display: none; }
  .crm-page .crm-inventory-views button:last-child { grid-column: 1 / -1; }
  .crm-page .crm-ledger-actions { width: 100%; gap: 6px; }
  .crm-page .crm-ledger-actions button { flex: 1 1 auto; padding-inline: 9px; font-size: 12px; }
  .crm-page .crm-ledger-actions svg { width: 14px; }
  .crm-page .crm-orders-head { padding: 17px 15px; }
  .crm-page .crm-filters { gap: 9px; }
  .crm-page .crm-filters label { flex: 1 1 130px; width: auto; }
  .crm-page .crm-filters .crm-search { flex-basis: 100%; max-width: none; }
  .crm-page .crm-filters select { width: 100%; min-width: 0; font-size: 13px; }
  .crm-page .crm-results-bar { padding: 0 16px 15px; font-size: 11px; }
  .crm-page .crm-empty { padding: 36px 18px 40px; }
  .crm-page .crm-mobile-orders { gap: 12px; padding: 14px; background: #fafbf7; }
  .crm-page .crm-mobile-orders:empty { display: none; }
  .crm-page .crm-mobile-order { grid-template-columns: minmax(0, 1fr) auto; padding: 15px; border-color: #e1e7d7; border-radius: 9px; gap: 12px; }
  .crm-page .crm-mobile-order .crm-order-number { white-space: normal; overflow-wrap: anywhere; font-size: 11px; }
  .crm-page .crm-mobile-order small { font-size: 11px; color: #70806a; }
  .crm-page .crm-mobile-order > div:nth-child(2) { max-width: 112px; }
  .crm-page .crm-mobile-order .crm-detail-statuses { display: flex; flex-wrap: wrap; margin: 0; }
  .crm-page .crm-mobile-order button { background: #eff4e9; border: 1px solid #dbe5ce; color: #345332; font: 500 13px "Outfit", sans-serif; }
  .crm-page .crm-table-wrap { display: block; }
  .crm-page .crm-order-ledger > .crm-table-wrap, .crm-page .crm-orders-card:has(> .crm-mobile-orders) > .crm-table-wrap, .crm-page .crm-affiliate-payout-card > .crm-table-wrap { display: none; }
  .crm-page .crm-overview-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .crm-page .crm-overview-card { padding: 20px; }
  .crm-page .crm-revenue-card .crm-section-heading { align-items:flex-start; }
  .crm-page .crm-revenue-chart { min-height:240px; }
  .crm-page .crm-attention-card { grid-row: auto; }
  .crm-page .crm-mini-metrics > div { padding: 12px 9px; }
  .crm-page .crm-mini-metrics strong { font-size: 22px; }
  .crm-page .crm-info-strip { padding: 16px; gap: 6px; }
  .crm-page .crm-affiliate-payout-card .crm-mobile-orders { margin: 15px -20px -20px; padding-bottom: 14px; }
  .crm-page .crm-drawer-panel { width: 100%; }
  .crm-page .crm-drawer-scroll { padding: 21px; }
  .crm-page .crm-confirm > section { padding: 23px; }
  .crm-page .crm-guided-actions { grid-template-columns: 1fr; }
  .crm-page .crm-order-journey { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .crm-page .crm-order-journey li:nth-child(3)::after { display: none; }
  .crm-page .crm-commission-progress ol { grid-template-columns: 1fr; }
  .crm-page .crm-gate.crm-authorizing { left: 0; top: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .crm-page *, .crm-page *::before, .crm-page *::after { transition: none !important; scroll-behavior: auto !important; }
}
/* Keep the new grouped navigation readable on tablets and phones. */
@media (min-width:761px) and (max-width:1100px) {
  .crm-page:has(.crm-nav-sections) .crm-shell { grid-template-columns:200px minmax(0,1fr); }
  .crm-page:has(.crm-nav-sections) .crm-gate.crm-authorizing { left:200px; }
  .crm-page .crm-nav-sections a { display:flex; justify-content:flex-start; gap:10px; font-size:13px; padding:10px; }
  .crm-page .crm-nav-sections .crm-subnav a { display:block; padding:7px 9px; font-size:12px; }
}
@media (max-width:760px) {
  .crm-page .crm-sidebar:has(.crm-nav-sections) { overflow:visible; }
  .crm-page .crm-nav-sections { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .crm-page .crm-nav-sections > a { font-size:11px; }
  .crm-page .crm-nav-group { position:relative; min-width:0; }
  .crm-page .crm-nav-group-head { display:block; position:relative; }
  .crm-page .crm-nav-group-head a { padding:9px 17px 9px 0; font-size:11px; }
  .crm-page .crm-nav .crm-nav-toggle { position:absolute; width:22px; min-height:28px; right:0; top:11px; }
  .crm-page .crm-nav-toggle svg { width:15px; height:15px; }
  .crm-page .crm-subnav { position:absolute; z-index:50; top:100%; left:0; width:175px; margin:3px 0 0; padding:6px; border:1px solid #4a6351; border-radius:8px; box-shadow:0 8px 22px #061b1850; background:#173a2d; }
  .crm-page .crm-nav-group:nth-child(5n) .crm-subnav { left:auto; right:0; }
  .crm-page .crm-nav .crm-subnav a { display:block; min-height:38px; font-size:13px; text-align:left; padding:10px; }
}

/* Compact affiliate-style navigation on mobile only. */
.crm-page .crm-menu-toggle { display:none; }
@media (max-width:760px) {
  .crm-page .crm-sidebar:has(.crm-menu-toggle) { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:0 12px; padding:14px 18px; }
  .crm-page .crm-sidebar:has(.crm-menu-toggle) .crm-brand { display:flex; justify-content:flex-start; margin:0; padding:0; border:0; gap:10px; }
  .crm-page .crm-sidebar:has(.crm-menu-toggle) .crm-brand img { width:35px; height:35px; }
  .crm-page .crm-sidebar:has(.crm-menu-toggle) .crm-brand span { display:block; }
  .crm-page .crm-sidebar:has(.crm-menu-toggle) .crm-brand strong { font-size:24px; }
  .crm-page .crm-sidebar:has(.crm-menu-toggle) .crm-brand small { font-size:8px; }
  .crm-page .crm-menu-toggle { display:flex; align-items:center; gap:9px; max-width:100%; min-height:44px; padding:10px 11px; border:1px solid #ffffff28; border-radius:7px; background:#ffffff05; color:#e4eadb; font:500 12px/1.4 "Outfit",sans-serif; }
  .crm-page .crm-menu-toggle svg { flex-shrink:0; width:18px; height:18px; }
  .crm-page .crm-menu-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
  .crm-page .crm-sidebar:has(.crm-menu-toggle) .crm-nav { display:none; grid-column:1/-1; order:initial; margin-top:15px; }
  .crm-page .crm-sidebar.is-menu-open .crm-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
  .crm-page .crm-sidebar:has(.crm-menu-toggle) .crm-nav a { flex-direction:row; justify-content:flex-start; text-align:left; min-height:44px; padding:11px 10px; gap:9px; font-size:12px; line-height:1.4; }
  .crm-page .crm-sidebar:has(.crm-menu-toggle) .crm-nav-group-head { display:grid; grid-template-columns:minmax(0,1fr) 32px; }
  .crm-page .crm-sidebar:has(.crm-menu-toggle) .crm-nav .crm-nav-toggle { position:static; width:32px; min-height:44px; }
  .crm-page .crm-sidebar:has(.crm-menu-toggle) .crm-subnav { position:static; width:auto; min-width:0; margin:4px 0 0; box-shadow:none; }
  .crm-page .crm-sidebar:has(.crm-menu-toggle) .crm-sidebar-foot { display:none; grid-column:1/-1; order:initial; flex-wrap:wrap; justify-content:flex-start; margin:15px 0 0; padding:16px 0 0; border-top:1px solid #ffffff28; }
  .crm-page .crm-sidebar.is-menu-open .crm-sidebar-foot { display:flex; }
}

.crm-page .crm-settings-link { display:flex; align-items:center; gap:11px; min-height:46px; padding:11px 14px; margin-top:auto; color:#c3cfc7; font:400 14px/1.4 "Outfit",sans-serif; text-decoration:none; border-radius:8px; }
.crm-page .crm-settings-link:hover,.crm-page .crm-settings-link.is-active { background:#2a4435; color:#f1dfb4; }
.crm-page .crm-settings-link + .crm-sidebar-foot { margin-top:14px; }
@media (min-width:761px) and (max-width:1100px) {
 .crm-page .crm-settings-link { padding:11px 10px; font-size:13px; }
}
@media (max-width:760px) {
 .crm-page .crm-settings-link { display:none; grid-column:1/-1; margin-top:12px; }
 .crm-page .crm-sidebar.is-menu-open .crm-settings-link { display:flex; }
}
