/* Compact control panel layout, based on the user's visual reference. */
.reference-layout[data-view="finance"] #referenceOperations { display: none; }
.reference-layout .app-shell {
  --sc-sidebar: 206px;
  --sc-canvas: #f7f7f7;
  --ref-ink: #353535;
  --ref-muted: #909090;
  --ref-line: #e7e7e7;
  --ref-orange: #f38a18;
  --ref-green: #21bf65;
  --ref-red: #ef5355;
  background: #f7f7f7;
  color: #353535;
  font: 11px "DM Sans", sans-serif;
}
.reference-layout .app-shell .sidebar {
  width: 206px;
  padding: 20px 10px 10px;
  border: 0;
  background: radial-gradient(ellipse at 0 0, #33200f 0, #17120d 28%, #11100d 68%);
  color: #f5f2ed;
  box-shadow: none;
}
.reference-layout .app-shell .sidebar .brand { min-height: 51px; gap: 8px; padding: 0 10px 19px; }
.reference-layout .app-shell .brand-mark,
.reference-layout .app-shell .brand-mark img { width: 28px; height: 28px; }
.reference-layout .app-shell .brand-copy strong { color: #fff; font-size: 18px; letter-spacing: -.8px; }
.reference-layout .app-shell .brand-copy strong > span { color: #ef8d37; }
.reference-layout .app-shell .brand-copy small { margin-top: 6px; color: #998c7b; font-size: 6px; letter-spacing: 1.8px; }
.reference-layout .app-shell .workspace-switcher { display: none; }
.reference-layout .app-shell .side-nav { min-height: 0; padding: 0 0 12px; scrollbar-width: thin; scrollbar-color: #4a3824 transparent; }
.reference-layout .app-shell .nav-label { padding: 0; margin: 12px 9px 5px; color: #857565; font-size: 7px; font-weight: 500; letter-spacing: 1px; line-height: 1.4; }
.reference-layout .app-shell .nav-label:first-child { margin-top: 6px; }
.reference-layout .app-shell .nav-label-spaced { margin-top: 14px; }
.reference-layout .app-shell .nav-item { min-height: 27px; height: 27px; gap: 8px; padding: 0 9px; margin-bottom: 1px; border-radius: 3px; background: transparent; color: #c9c0b5; font-size: 10px; font-weight: 400; line-height: 1.2; }
.reference-layout .app-shell .nav-item:hover { transform: none; background: #342314; color: #fff; }
.reference-layout .app-shell .nav-item.active { background: linear-gradient(90deg, #a64c0b, #67300c); color: #ffad55; box-shadow: none; font-weight: 600; }
.reference-layout .app-shell .nav-item.active::before { display: none; }
.reference-layout .app-shell .nav-icon { width: 14px; height: 15px; color: #b9ad9b; font-size: 13px; }
.reference-layout .app-shell .nav-icon svg { width: 13px; height: 13px; stroke-width: 1.5; }
.reference-layout .app-shell .nav-item.active .nav-icon { color: #f6a04a; }
.reference-layout .app-shell .nav-count { min-width: 15px; padding: 1px 4px; border-radius: 3px; background: #3a2b1e; color: #b58b55; font-size: 7px; }
.reference-layout .app-shell .sc-nav-tag { display: none; }
.reference-layout .app-shell .sidebar-bottom { padding-top: 8px; border-top: 1px solid #2b251c; }
.reference-layout .app-shell .help-card { display: none; }
.reference-layout .app-shell .profile-button { gap: 8px; padding: 7px 4px 2px; border: 0; }
.reference-layout .app-shell .profile-avatar { width: 25px; height: 25px; border: 1px solid #56422b; border-radius: 50%; background: #3e2a18; color: #d6924d; font-size: 8px; }
.reference-layout .app-shell .profile-copy strong { color: #d4c8b7; font-size: 9px; }
.reference-layout .app-shell .profile-copy small { max-width: 140px; color: #897966; font-size: 8px; }
.reference-layout .app-shell .main-content { min-width: 0; margin-left: 206px; background: #f7f7f7; }
.reference-layout .app-shell .topbar { height: 55px; gap: 15px; padding: 0 20px; border-bottom: 1px solid #ebdfd1; background: #fff; backdrop-filter: none; }
.reference-layout .app-shell .breadcrumbs { gap: 9px; color: #9d9b97; font-size: 10px; }
.reference-layout .app-shell .breadcrumbs > .sc-icon { width: 13px; height: 13px; color: #76716a; }
.reference-layout .app-shell .breadcrumbs strong { color: #4a4741; font-size: 11px; font-weight: 600; }
.reference-layout .app-shell .breadcrumbs > span:not(.crumb-sep) { display: none; }
.reference-layout .app-shell .breadcrumbs .crumb-sep { display: none; }
.reference-layout .app-shell .sc-global-search { width: 280px; height: 29px; min-width: 130px; flex-basis: 280px; padding: 0 8px; border: 0; border-radius: 3px; background: #fafafa; }
.reference-layout .app-shell .sc-global-search > input { color: #77736d; font-size: 9px; }
.reference-layout .app-shell .sc-global-search > svg { width: 13px; height: 13px; color: #c8ae7b; }
.reference-layout .app-shell .sc-global-search > kbd { border: 0; background: transparent; color: #c1b9ab; font-size: 8px; }
.reference-layout .app-shell .topbar-actions { gap: 10px; }
.reference-layout .app-shell .topbar .icon-button { width: 28px; height: 28px; border: 0; border-radius: 4px; color: #9e9b95; box-shadow: none; }
.reference-layout .app-shell .topbar .icon-button:hover { border: 0; background: #fff6ed; color: #c97920; }
.reference-layout .app-shell .topbar .icon-button svg { width: 14px; height: 14px; }
.reference-layout .app-shell .top-avatar { width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; background: #eee9e1; box-shadow: 0 0 0 1px #e8e2d8; color: #8b7152; font-size: 8px; }
.reference-layout .app-shell .demo-pill { height: 23px; padding: 0 7px; border-color: #f0e6d9; border-radius: 4px; background: #fffaf4; color: #a58e69; font-size: 8px; }
.reference-layout .app-shell .demo-pill.is-live { border-color: #dceee1; background: #f3fbf5; color: #669974; }
.reference-layout .app-shell .mobile-menu { width: 29px; height: 29px; border-color: #e7e3dc; border-radius: 4px; color: #827464; }
.reference-layout .app-shell .page-wrap { width: 100%; max-width: 1900px; padding: 15px 20px 12px; }
.reference-layout .app-shell .demo-notice { min-height: 0; gap: 6px; padding: 7px 9px; margin-bottom: 12px; border-color: #eee4d8; border-radius: 4px; background: #fffcf7; color: #9c8c73; font-size: 9px; }
.reference-layout .app-shell .demo-notice .notice-icon { font-size: 12px; }
.reference-layout .app-shell .demo-notice strong { color: #8e7856; }
.reference-layout .app-shell .page-heading { min-height: 0; gap: 12px; margin-bottom: 10px; }
.reference-layout .app-shell .page-heading h1 { color: #4e4b47; font: 700 16px/1.3 "DM Sans", sans-serif; letter-spacing: -.3px; }
.reference-layout .app-shell .page-heading .eyebrow,
.reference-layout .app-shell .page-heading .heading-subtitle,
.reference-layout .app-shell .page-heading .wave { display: none; }
.reference-layout .app-shell .heading-actions { gap: 6px; }
.reference-layout .app-shell .button { min-height: 28px; padding: 6px 10px; border-radius: 4px; font-size: 9px; box-shadow: none; }
.reference-layout .app-shell .button-primary { border-color: #dc7718; background: #ec8c2c; color: #fff; box-shadow: none; }
.reference-layout .app-shell .button-primary:hover { border-color: #c66c14; background: #d77b20; box-shadow: none; transform: none; }
.reference-layout .app-shell .button-quiet { border-color: #e6dfd5; background: #fff; color: #8f8270; }
.reference-layout .app-shell .button-quiet:hover { border-color: #d6b894; color: #b6782d; }
.reference-layout .app-shell .button svg { width: 12px; height: 12px; }
.reference-layout .app-shell .sc-period-control { min-height: 29px; gap: 10px; margin-bottom: 8px; }
.reference-layout .app-shell .sc-period-heading { gap: 6px; }
.reference-layout .app-shell .sc-period-heading > strong { color: #8d806e; font-size: 9px; font-weight: 500; }
.reference-layout .app-shell .sc-period-heading > svg { width: 12px; height: 12px; color: #a49178; }
.reference-layout .app-shell .sc-period-heading > .sc-info-label { display: none; }
.reference-layout .app-shell .sc-period-actions > select.sc-period-preset,
.reference-layout .app-shell .sc-period-custom > summary { height: 27px; min-height: 27px; padding: 4px 7px; border-color: #e5dfd5; border-radius: 3px; color: #a18d72; font-size: 8px; }
.reference-layout .app-shell .sc-period-custom > summary > svg { width: 11px; height: 11px; color: #c7b38d; }
.reference-layout .app-shell .sc-period-custom > form { border-color: #e2d7c9; border-radius: 6px; }
.reference-layout .app-shell .sc-load-feedback { padding: 8px 10px; margin-bottom: 10px; border-radius: 4px; font-size: 10px; }
.reference-layout .app-shell .page-footer { gap: 13px; padding-top: 13px; color: #aaa59d; font-size: 8px; }
.reference-layout .app-shell .page-footer strong { color: #8d8274; font-size: 9px; }

/* The reference dashboard uses a compact, explicit section hierarchy. */
.reference-layout #referenceDashboard { min-width: 0; }
.reference-layout .ref-section { min-width: 0; margin: 0 0 13px; }
.reference-layout .ref-section-title { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; color: #9a8b79; font: 500 10px/1.4 "DM Sans", sans-serif; letter-spacing: .8px; text-transform: uppercase; }
.reference-layout .ref-section-title::before { width: 2px; height: 11px; border-radius: 2px; background: #e8a954; content: ""; }
.reference-layout .ref-section-title > span { margin-left: auto; color: #b9b2a8; font-size: 8px; letter-spacing: 0; text-transform: none; }
.reference-layout .ref-finance-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.reference-layout .ref-card,
.reference-layout .ref-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 4px #48372102;
}
.reference-layout .ref-card::before,
.reference-layout .ref-panel::before { position: absolute; z-index: 1; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, #f1a43c, #eb7185 64%, #da6fb5); content: ""; }
.reference-layout .ref-card { min-height: 145px; padding: 11px 12px 8px; }
.reference-layout .ref-kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin: 0; color: #a0a0a0; font-size: 9px; font-weight: 400; letter-spacing: .35px; text-transform: uppercase; }
.reference-layout .ref-kpi-value { display: block; margin: 5px 0 2px; color: #333; font: 700 22px/1.2 "DM Sans", sans-serif; letter-spacing: -.6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.reference-layout .ref-kpi-note,
.reference-layout .ref-kpi-label > small { display: block; color: #b4b4b4; font-size: 8px; font-weight: 400; letter-spacing: 0; line-height: 1.5; text-transform: none; }
.reference-layout .ref-kpi-symbol { display: grid; width: 14px; height: 14px; flex: none; place-items: center; border: 1px solid #d9e8e0; border-radius: 4px; color: #9cc2ae; font-size: 9px; line-height: 1; }
.reference-layout .ref-kpi-chart { position: relative; display: flex; min-height: 64px; align-items: flex-end; justify-content: center; margin-top: 7px; }
.reference-layout .ref-kpi-chart > svg { display: block; width: 100%; height: 64px; overflow: visible; }
.reference-layout .ref-kpi-chart text { fill: #a9a9a9; font: 8px "DM Sans", sans-serif; }
.reference-layout .ref-kpi-chart .ref-ring { margin: 0 auto; }
.reference-layout .ref-kpi-footer { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 3px; color: #c5a276; font-size: 8px; }
.reference-layout .ref-kpi-footer > i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.reference-layout .ref-card.income .ref-kpi-value { color: #343f37; }
.reference-layout .ref-card.expense .ref-kpi-symbol { border-color: #f3dddb; color: #dbb4b0; }
.reference-layout .ref-card.balance .ref-kpi-symbol { border-color: #dce6ee; color: #adbeca; }
.reference-layout .ref-two-grid,
.reference-layout .ref-production-grid,
.reference-layout .ref-history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 11px; }
.reference-layout .ref-panel { min-height: 230px; }
.reference-layout .ref-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px 13px 0; }
.reference-layout .ref-panel-header h2,
.reference-layout .ref-panel-header h3,
.reference-layout .ref-panel-header > strong { margin: 0; color: #454545; font: 600 12px/1.4 "DM Sans", sans-serif; letter-spacing: -.15px; }
.reference-layout .ref-panel-header p { margin: 5px 0 0; color: #a7a7a7; font-size: 9px; line-height: 1.5; }
.reference-layout .ref-panel-header > a,
.reference-layout .ref-panel-header > button { align-self: center; padding: 0; border: 0; background: transparent; color: #aca6a0; font-size: 8px; text-decoration: none; cursor: pointer; }
.reference-layout .ref-panel-header > a:hover,
.reference-layout .ref-panel-header > button:hover { color: #c17e30; }
.reference-layout .ref-flow-summary { display: grid; min-width: 0; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 20px; padding: 23px 15px 13px; }
.reference-layout .ref-flow-stat { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 50px; padding: 10px; margin-bottom: 10px; border-radius: 4px; background: #f2fbf5; color: #5abf85; }
.reference-layout .ref-flow-stat.expense { background: #fff3f3; color: #e89391; }
.reference-layout .ref-flow-stat > span { display: flex; min-width: 0; align-items: flex-start; flex-direction: column; gap: 4px; }
.reference-layout .ref-flow-stat small { color: #98b2a0; font-size: 8px; letter-spacing: .5px; text-transform: uppercase; }
.reference-layout .ref-flow-stat strong { color: #36ac71; font: 700 16px/1.2 "DM Sans", sans-serif; white-space: nowrap; }
.reference-layout .ref-flow-stat.expense small { color: #c7a19f; }
.reference-layout .ref-flow-stat.expense strong { color: #e77173; }
.reference-layout .ref-flow-stat > b,
.reference-layout .ref-flow-stat > small { color: inherit; font-size: 9px; font-weight: 500; }
.reference-layout .ref-flow-total { display: flex; justify-content: space-between; gap: 10px; padding-top: 5px; color: #a6a6a6; font-size: 9px; }
.reference-layout .ref-flow-total strong { color: #39ab74; font-size: 11px; font-weight: 600; white-space: nowrap; }
.reference-layout .ref-gauge { position: relative; display: grid; min-width: 0; width: min(100%, 210px); height: 135px; place-items: center; justify-self: center; }
.reference-layout .ref-gauge > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.reference-layout .ref-gauge .ref-ring-center { inset: auto 0 7px; gap: 4px; }
.reference-layout .ref-gauge .ref-ring-center strong { color: #4d4d4d; font-size: 18px; }
.reference-layout .ref-gauge .ref-ring-center small { color: #aaa; font-size: 9px; }
.reference-layout .ref-ring { position: relative; display: grid; width: 78px; height: 78px; flex: none; place-items: center; }
.reference-layout .ref-ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.reference-layout .ref-ring > svg circle { fill: none; stroke-width: 10; }
.reference-layout .ref-ring-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; color: #535353; text-align: center; }
.reference-layout .ref-ring-center > strong { color: inherit; font: 700 15px/1.2 "DM Sans", sans-serif; letter-spacing: -.3px; white-space: nowrap; }
.reference-layout .ref-ring-center > small,
.reference-layout .ref-ring-center > span { color: #b1b1b1; font-size: 8px; line-height: 1.3; }
.reference-layout .ref-ring.small { width: 59px; height: 59px; }
.reference-layout .ref-ring.small .ref-ring-center > strong { font-size: 12px; }
.reference-layout .ref-ring.medium { width: 100px; height: 100px; }
.reference-layout .ref-ring.medium .ref-ring-center > strong { font-size: 20px; }
.reference-layout .ref-finance-summary { padding: 20px 14px 12px; }
.reference-layout .ref-summary-row { display: flex; min-height: 25px; align-items: center; justify-content: space-between; gap: 11px; color: #a1a1a1; font-size: 9px; }
.reference-layout .ref-summary-row > strong { color: #54ba83; font-size: 10px; font-weight: 600; white-space: nowrap; }
.reference-layout .ref-summary-row.expense > strong { color: #e38787; }
.reference-layout .ref-summary-row.result > strong { color: #28ab6b; }
.reference-layout .ref-summary-row.income > strong { color: #42b879; }
.reference-layout .ref-summary-row.receivable > strong { color: #689fe5; }
.reference-layout .ref-summary-row.payable > strong { color: #e8b264; }
.reference-layout .ref-summary-row.overdue { min-height: 33px; padding: 7px 9px; margin-top: 8px; border-radius: 3px; background: #fff0f0; color: #ce8c91; }
.reference-layout .ref-summary-row.overdue > strong { color: #e28690; }
.reference-layout .ref-summary-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 11px; margin-bottom: 6px; border-bottom: 1px solid #f0f0f0; }
.reference-layout .ref-summary-heading > div { min-width: 0; flex: 1; }
.reference-layout .ref-summary-heading .ref-summary-row { min-height: 22px; }
.reference-layout .ref-financial-groups { margin-top: 8px; }
.reference-layout .ref-commercial-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.reference-layout .ref-commercial-grid .ref-card { min-height: 77px; padding: 10px 12px; }
.reference-layout .ref-commercial-grid .ref-kpi-value { margin-top: 4px; font-size: 22px; line-height: 1.1; }
.reference-layout .ref-commercial-grid .ref-kpi-note { font-size: 8px; }
.reference-layout .ref-order-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.reference-layout .ref-order-card { min-height: 88px; padding: 10px 11px 8px; }
.reference-layout .ref-order-card .ref-kpi-label { font-size: 8px; }
.reference-layout .ref-order-card .ref-kpi-value { margin: 6px 0 3px; font-size: 24px; }
.reference-layout .ref-order-card .ref-kpi-note { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-size: 8px; }
.reference-layout .ref-metric-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 5px; color: #b5b5b5; font-size: 8px; }
.reference-layout .ref-metric-meta > strong { color: #aaa; font-weight: 400; }
.reference-layout .ref-mini-bars { height: 3px; overflow: hidden; margin-top: 6px; border-radius: 3px; background: #f0f0f0; }
.reference-layout .ref-mini-bars > span,
.reference-layout .ref-mini-bars > i { display: block; height: 100%; border-radius: inherit; background: var(--ref-tone, #39c88b); }
.reference-layout .ref-production-grid { margin-top: 0; }
.reference-layout .ref-production-grid .ref-panel { min-height: 173px; }
.reference-layout .ref-production-body { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 1.7fr); align-items: center; gap: 18px; padding: 19px 19px 14px; }
.reference-layout .ref-production-body > .ref-ring { justify-self: center; }
.reference-layout .ref-production-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
.reference-layout .ref-production-stat { display: flex; min-height: 40px; align-items: center; justify-content: center; flex-direction: column; gap: 3px; border: 1px solid #f1f1f1; border-radius: 3px; background: #fff; }
.reference-layout .ref-production-stat > strong { color: var(--ref-tone, #c5a25d); font: 600 17px/1.1 "DM Sans", sans-serif; }
.reference-layout .ref-production-stat > small,
.reference-layout .ref-production-stat > span { color: #acacac; font-size: 8px; }
.reference-layout .ref-history-grid { margin-top: 0; }
.reference-layout .ref-history-grid .ref-panel { min-height: 190px; }
.reference-layout .ref-history-body { padding: 15px 15px 12px; }
.reference-layout .ref-mini-chart { width: 100%; min-height: 110px; }
.reference-layout .ref-mini-chart > svg { display: block; width: 100%; height: 115px; overflow: visible; }
.reference-layout .ref-mini-chart text { fill: #aaa; font: 8px "DM Sans", sans-serif; }
.reference-layout .ref-legend { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding-top: 7px; color: #aaa; font-size: 8px; }
.reference-layout .ref-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.reference-layout .ref-legend i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--ref-tone, #f0a458); }
.reference-layout .ref-top-customers { display: flex; flex-direction: column; padding: 10px 14px 12px; }
.reference-layout .ref-top-customer { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid #f3f3f3; color: #a5a5a5; font-size: 9px; }
.reference-layout .ref-top-customer:last-child { border-bottom: 0; }
.reference-layout .ref-top-customer > small { min-width: 12px; color: #c0c0c0; font-size: 8px; }
.reference-layout .ref-top-customer > span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reference-layout .ref-top-customer > strong { color: #929292; font-size: 9px; font-weight: 500; white-space: nowrap; }
.reference-layout .ref-empty { display: flex; min-height: 110px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; padding: 18px; color: #b4b4b4; font-size: 10px; line-height: 1.6; text-align: center; }
.reference-layout .ref-empty > strong { color: #999; font-size: 11px; font-weight: 500; }
.reference-layout .ref-empty > p { margin: 0; }
.reference-layout .ref-inline-note { margin: 8px 0 0; color: #ada79f; font-size: 9px; line-height: 1.6; }
.reference-layout .ref-inline-note > strong { font-weight: 500; }

/* Renderer details and real operational modules. */
.reference-layout .app-shell .nav-item { font-size: 11px; }
.reference-layout .ref-section-title > h2 { margin: 0; color: inherit; font: inherit; letter-spacing: inherit; }
.reference-layout .ref-section-title > .ref-inline-note { margin: 0 0 0 auto; color: #a9a198; font-size: 9px; letter-spacing: 0; }
.reference-layout .ref-kpi-label { font-size: 10px; }
.reference-layout .ref-kpi-note { font-size: 9px; }
.reference-layout .ref-kpi-symbol { padding: 0; background: transparent; cursor: pointer; }
.reference-layout .ref-kpi-symbol:hover { border-color: #e2a857; color: #d78b2b; }
.reference-layout .ref-panel-header { flex-wrap: wrap; gap: 4px 10px; }
.reference-layout .ref-panel-header > p { width: 100%; margin-top: 0; }
.reference-layout .ref-panel-header > div { min-width: 0; flex: 1; }
.reference-layout .ref-panel-header h3 { font-size: 12px; }
.reference-layout .ref-panel-header p { font-size: 10px; }
.reference-layout .ref-ring.small { width: 72px; height: 72px; }
.reference-layout .ref-ring.small .ref-ring-center > strong { font-size: 14px; }
.reference-layout .ref-finance-summary { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 18px; padding-top: 13px; padding-bottom: 7px; }
.reference-layout .ref-finance-summary > .ref-ring.medium { width: 74px; height: 74px; }
.reference-layout .ref-finance-summary .ref-ring-center > strong { font-size: 15px; }
.reference-layout .ref-finance-summary .ref-ring-center > small { font-size: 8px; }
.reference-layout .ref-summary-row { width: 100%; padding: 0; border: 0; background: transparent; color: #969696; text-align: left; }
.reference-layout button.ref-summary-row { cursor: pointer; }
.reference-layout button.ref-summary-row:hover { background: #f9f9f9; }
.reference-layout .ref-financial-groups { padding: 0 14px 12px; margin-top: 7px; }
.reference-layout .ref-financial-groups .ref-summary-heading { display: block; padding: 5px 0 6px; margin: 0 0 3px; border-bottom: 0; color: #b0aaa3; font-size: 8px; font-weight: 400; letter-spacing: .4px; }
.reference-layout .ref-summary-row.ref-overdue { min-height: 28px; padding: 6px 8px; margin-top: 5px; border-radius: 3px; background: #fff1f1; color: #d2989a; }
.reference-layout .ref-summary-row.ref-overdue > strong { color: #da7b85; }
.reference-layout .ref-flow-stats { min-width: 0; }
.reference-layout .ref-flow-stat { width: 100%; justify-content: flex-start; border: 0; text-align: left; cursor: pointer; }
.reference-layout .ref-flow-stat:hover { filter: saturate(1.25); }
.reference-layout .ref-flow-stat > .ref-flow-icon { display: grid; width: 24px; height: 28px; align-items: center; justify-content: center; flex: none; border-radius: 4px; background: #e8f8ed; color: #55bd82; font-size: 19px; }
.reference-layout .ref-flow-stat.expense > .ref-flow-icon { background: #ffe9e9; color: #df9191; }
.reference-layout .ref-flow-stat > em { margin-left: auto; color: inherit; font-size: 9px; font-style: normal; }
.reference-layout .ref-flow-stat strong { font-size: 16px; }
.reference-layout .ref-flow-total.expense > strong { color: #d67a7c; }
.reference-layout .ref-operation-card { min-height: 77px; }
.reference-layout .ref-commercial-grid .ref-operation-card { min-height: 77px; }
.reference-layout .ref-order-grid .ref-operation-card { min-height: 88px; padding: 10px 11px 8px; }
.reference-layout .ref-order-grid .ref-operation-card .ref-kpi-label { color: #999; font-size: 8px; }
.reference-layout .ref-operation-card .ref-kpi-symbol { border-color: color-mix(in srgb, var(--ref-status, #cc9c62) 35%, white); color: var(--ref-status, #cc9c62); }
.reference-layout .ref-operation-card .ref-kpi-value { margin-top: 6px; font-size: 23px; }
.reference-layout .ref-operation-card .ref-metric-meta { min-height: 10px; margin-top: 4px; color: #b3b3b3; font-size: 8px; }
.reference-layout .ref-metric-track { height: 3px; overflow: hidden; margin-top: 6px; border-radius: 2px; background: #f1f1f1; }
.reference-layout .ref-metric-track > span { display: block; height: 100%; border-radius: inherit; }
.reference-layout .ref-production-stat { padding: 5px; cursor: pointer; }
.reference-layout .ref-production-stat > strong { color: var(--ref-status, #ba9858); }
.reference-layout .ref-production-stat:hover { background: #fcfaf7; border-color: #eee5d9; }
.reference-layout .ref-monthly-chart { display: block; width: 100%; height: 155px; overflow: visible; }
.reference-layout .ref-top-customers { padding: 10px 14px 12px; }
.reference-layout .ref-customer-rank { min-width: 10px; flex: none; color: #bbb; font-size: 9px; }
.reference-layout .ref-top-customer > .ref-customer-rank { width: 12px; min-width: 12px; flex: 0 0 12px; }
.reference-layout .ref-customer-info { min-width: 0; flex: 1; }
.reference-layout .ref-customer-info > span { display: block; overflow: hidden; color: #929292; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.reference-layout .ref-customer-track { height: 3px; overflow: hidden; margin-top: 5px; border-radius: 2px; background: #f2f2f2; }
.reference-layout .ref-customer-track > span { display: block; height: 100%; border-radius: inherit; }
.reference-layout .ref-top-customer > strong { min-width: 80px; color: #8e8e8e; font-size: 10px; text-align: right; }
.reference-layout .ref-kpi-empty { min-height: 62px; padding: 10px 5px; font-size: 9px; }
.reference-layout .reference-loading { padding: 35px 20px; color: #aaa; font-size: 11px; text-align: center; }
.reference-layout .reference-support { display: flex; align-items: center; gap: 8px; padding: 4px 5px 8px; color: #bcb0a1; text-decoration: none; }
.reference-layout .reference-support-icon { display: grid; width: 23px; height: 23px; flex: none; place-items: center; border: 1px solid #4e321c; border-radius: 50%; background: #3b2717; color: #cb8b45; font-size: 13px; }
.reference-layout .reference-support > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.reference-layout .reference-support strong { color: #d1c3b0; font-size: 10px; font-weight: 500; }
.reference-layout .reference-support small { color: #8a7760; font-size: 8px; }
.reference-layout .reference-support > span:last-child { color: #86623c; font-size: 13px; }
.reference-layout .reference-support:hover strong { color: #efab61; }
.reference-layout .sc-module-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px 14px; border: 1px solid #e8e5df; border-radius: 5px; background: #fff; }
.reference-layout .sc-module-search { display: flex; width: min(100%, 300px); min-height: 33px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #e5e0d8; border-radius: 4px; background: #fff; color: #938675; font-size: 11px; }
.reference-layout input.sc-module-search { outline: none; }
.reference-layout .sc-module-search > input { min-width: 0; width: 100%; height: 31px; border: 0; outline: none; background: transparent; color: #776957; font-size: 11px; }
.reference-layout .sc-module-search:focus-within { border-color: #d5ae7a; box-shadow: 0 0 0 2px #f7e8d7; }
.reference-layout .sc-module-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin: 13px 0; }
.reference-layout .sc-module-summary > * { min-width: 0; padding: 14px; border: 1px solid #e6e3dd; border-top: 2px solid #e9b171; border-radius: 4px; background: #fff; }
.reference-layout .sc-module-summary small,
.reference-layout .sc-module-summary span { color: #a49787; font-size: 10px; }
.reference-layout .sc-module-summary strong { display: block; margin-top: 6px; color: #6c5b48; font-size: 22px; font-weight: 600; }
.reference-layout .sc-module-table { width: 100%; border-collapse: collapse; }
.reference-layout .sc-module-table th { color: #a99c8c; font-size: 9px; }
.reference-layout .sc-module-table td { color: #8e8375; font-size: 11px; }
.reference-layout .sc-module-actions { display: flex; align-items: center; gap: 6px; }
.reference-layout .sc-module-actions > button { min-height: 26px; padding: 4px 8px; border: 1px solid #e5dace; border-radius: 4px; background: #fff; color: #a17b4a; font-size: 10px; }
.reference-layout .sc-module-actions > button:hover { border-color: #d8b483; background: #fff9f1; }
.reference-layout .sc-module-note { margin: 12px 0; padding: 11px 13px; border: 1px solid #efe6d9; border-radius: 4px; background: #fffdf8; color: #ac9779; font-size: 11px; line-height: 1.6; }
.reference-layout .sc-module-status { display: inline-flex; padding: 4px 6px; border-radius: 4px; background: #f1f6ef; color: #94aa82; font-size: 9px; }
.reference-layout:is([data-view="overview"], [data-view="finance"]) .app-shell .page-heading > div:first-child { display: none; }
.reference-layout:is([data-view="overview"], [data-view="finance"]) .app-shell .heading-actions { margin-right: auto; }

/* Existing financial screens retain the same records and controls. */
.reference-layout .app-shell .sc-financial-details { margin-top: 14px; }
.reference-layout .app-shell .sc-financial-details .sc-panel { border-radius: 5px; border-color: #e7e7e7; box-shadow: none; }
.reference-layout .app-shell .sc-financial-details .sc-panel-title,
.reference-layout .app-shell .sc-financial-details .transaction-heading h2 { color: #5e5b55; font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 600; }
.reference-layout .app-shell .sc-financial-details .sc-transactions .transaction-heading { padding: 14px 15px; }
.reference-layout .app-shell .sc-financial-details .transactions-table th { padding-top: 10px; padding-bottom: 10px; background: #fafafa; color: #aaa39a; font-size: 8px; }
.reference-layout .app-shell .sc-financial-details .transactions-table td { padding-top: 11px; padding-bottom: 11px; color: #8d8982; font-size: 10px; }
.reference-layout .app-shell .sc-financial-details .tab.active { color: #b67b32; }
.reference-layout .app-shell .sc-financial-details .table-footer { min-height: 44px; padding: 11px 15px; font-size: 8px; }
.reference-layout .app-shell .sc-financial-details .sc-kpi { min-height: 135px; padding: 14px; border-radius: 5px; }
.reference-layout .app-shell .sc-financial-details .sc-kpi-value { font-size: 23px; }
.reference-layout .app-shell .sc-financial-details .sc-chart-grid,
.reference-layout .app-shell .sc-financial-details .sc-analysis-grid,
.reference-layout .app-shell .sc-financial-details .sc-bottom-grid { gap: 12px; }

@media (min-width: 1600px) {
  .reference-layout .app-shell .page-wrap { padding-right: 25px; padding-left: 25px; }
  .reference-layout .ref-card { min-height: 156px; }
  .reference-layout .ref-kpi-value { font-size: 25px; }
  .reference-layout .ref-kpi-chart { min-height: 70px; }
  .reference-layout .ref-panel { min-height: 243px; }
}
@media (max-width: 1200px) {
  .reference-layout .app-shell { --sc-sidebar: 190px; }
  .reference-layout .app-shell .sidebar { width: 190px; padding-right: 8px; padding-left: 8px; }
  .reference-layout .app-shell .main-content { margin-left: 190px; }
  .reference-layout .app-shell .brand-copy strong { font-size: 17px; }
  .reference-layout .app-shell .brand-copy small { font-size: 5px; letter-spacing: 1.7px; }
  .reference-layout .app-shell .page-wrap { padding-right: 15px; padding-left: 15px; }
  .reference-layout .app-shell .topbar { padding-right: 15px; padding-left: 15px; }
  .reference-layout .ref-finance-grid,
  .reference-layout .ref-commercial-grid { gap: 8px; }
  .reference-layout .ref-card { padding-right: 9px; padding-left: 9px; }
  .reference-layout .ref-kpi-label { font-size: 8px; }
  .reference-layout .ref-kpi-value { font-size: 19px; }
  .reference-layout .ref-order-grid { gap: 6px; }
  .reference-layout .ref-order-card { padding-right: 8px; padding-left: 8px; }
  .reference-layout .ref-order-card .ref-kpi-label { font-size: 7px; }
  .reference-layout .ref-production-body { gap: 12px; padding-right: 15px; padding-left: 15px; }
  .reference-layout .ref-flow-summary { gap: 12px; }
}
@media (max-width: 1000px) {
  .reference-layout .app-shell .topbar { gap: 10px; }
  .reference-layout .app-shell .sc-global-search { width: 200px; min-width: 110px; flex-basis: 200px; }
  .reference-layout .app-shell .demo-pill { max-width: 105px; font-size: 7px; }
  .reference-layout .app-shell .topbar-actions { gap: 7px; }
  .reference-layout .ref-finance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reference-layout .ref-finance-grid .ref-card:nth-child(4),
  .reference-layout .ref-finance-grid .ref-card:nth-child(5) { min-height: 138px; }
  .reference-layout .ref-kpi-value { font-size: 22px; }
  .reference-layout .ref-order-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .reference-layout .ref-order-card .ref-kpi-label { font-size: 8px; }
  .reference-layout .ref-flow-summary { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 15px; }
  .reference-layout .ref-gauge { height: 115px; }
  .reference-layout .ref-flow-stat { min-height: 44px; margin-bottom: 8px; }
  .reference-layout .ref-production-body { grid-template-columns: minmax(75px, 1fr) minmax(0, 1.6fr); gap: 8px; padding-top: 22px; }
  .reference-layout .ref-production-body > .ref-ring.medium { width: 82px; height: 82px; }
  .reference-layout .ref-production-stat { min-height: 36px; }
  .reference-layout .ref-production-stat > small { font-size: 7px; }
}
@media (max-width: 900px) {
  .reference-layout .app-shell .sidebar { z-index: 30; width: 206px; padding: 20px 10px 10px; transform: translateX(-100%); box-shadow: 12px 0 40px #25190c30; }
  .reference-layout .app-shell .sidebar.open { transform: translateX(0); }
  .reference-layout .app-shell .main-content { margin-left: 0; }
  .reference-layout .app-shell .mobile-menu { display: grid; flex: none; place-items: center; }
  .reference-layout .app-shell .sc-global-search { display: flex; width: 240px; flex-basis: 240px; }
  .reference-layout .app-shell .page-wrap { max-width: none; }
  .reference-layout .ref-finance-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .reference-layout .ref-card { min-height: 139px; }
  .reference-layout .ref-kpi-value { font-size: 18px; }
  .reference-layout .ref-commercial-grid .ref-kpi-value { font-size: 20px; }
  .reference-layout .ref-order-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .reference-layout .ref-order-card { min-height: 87px; }
  .reference-layout .ref-order-card .ref-kpi-label { font-size: 7px; }
  .reference-layout .ref-flow-summary { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; }
  .reference-layout .ref-gauge { height: 125px; }
}
@media (max-width: 760px) {
  .reference-layout .app-shell .sc-global-search { width: 170px; min-width: 100px; flex-basis: 170px; }
  .reference-layout .app-shell .demo-pill { width: 23px; height: 23px; max-width: 23px; justify-content: center; padding: 0; font-size: 0; }
  .reference-layout .app-shell .demo-pill label { display: none; }
  .reference-layout .app-shell .page-heading { flex-direction: row; align-items: center; }
  .reference-layout .app-shell .page-heading h1 { font-size: 14px; }
  .reference-layout .app-shell .heading-actions { width: auto; }
  .reference-layout .app-shell .heading-actions .button { flex: none; }
  .reference-layout .ref-finance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reference-layout .ref-kpi-value { font-size: 21px; }
  .reference-layout .ref-commercial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference-layout .ref-order-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .reference-layout .ref-order-card .ref-kpi-label { font-size: 8px; }
  .reference-layout .ref-two-grid { grid-template-columns: 1fr; gap: 10px; }
  .reference-layout .ref-panel { min-height: 210px; }
  .reference-layout .ref-flow-summary { gap: 20px; padding-top: 20px; }
  .reference-layout .ref-gauge { height: 135px; }
  .reference-layout .ref-production-grid,
  .reference-layout .ref-history-grid { grid-template-columns: 1fr; gap: 10px; }
  .reference-layout .ref-production-body { grid-template-columns: minmax(90px, 1fr) minmax(0, 1.7fr); gap: 15px; padding-top: 18px; }
  .reference-layout .ref-production-body > .ref-ring.medium { width: 100px; height: 100px; }
  .reference-layout .ref-production-stat > small { font-size: 8px; }
}
@media (max-width: 500px) {
  .reference-layout .app-shell .topbar { height: 51px; gap: 8px; padding-right: 11px; padding-left: 11px; }
  .reference-layout .app-shell .breadcrumbs { margin-right: auto; }
  .reference-layout .app-shell .breadcrumbs strong { font-size: 10px; }
  .reference-layout .app-shell .breadcrumbs > .sc-icon { display: none; }
  .reference-layout .app-shell .sc-global-search { display: none; }
  .reference-layout .app-shell .topbar-actions { gap: 5px; }
  .reference-layout .app-shell .topbar .icon-button { width: 25px; height: 25px; }
  .reference-layout .app-shell .top-avatar { width: 25px; height: 25px; margin-left: 2px; font-size: 7px; }
  .reference-layout .app-shell .page-wrap { padding: 12px 10px; }
  .reference-layout .app-shell .demo-notice { gap: 5px; padding: 7px 8px; margin-bottom: 10px; font-size: 8px; }
  .reference-layout .app-shell .page-heading { align-items: flex-start; gap: 10px; flex-direction: column; margin-bottom: 10px; }
  .reference-layout .app-shell .page-heading h1 { font-size: 15px; }
  .reference-layout .app-shell .heading-actions { width: 100%; }
  .reference-layout .app-shell .heading-actions .button { min-height: 29px; padding: 7px 9px; font-size: 9px; }
  .reference-layout .app-shell .heading-actions .button-primary { margin-left: auto; }
  .reference-layout .app-shell .sc-period-control { min-height: 29px; padding: 0; gap: 7px; margin: 0 0 12px; }
  .reference-layout .app-shell .sc-period-heading { display: none; }
  .reference-layout .app-shell .sc-period-actions { width: 100%; gap: 7px; }
  .reference-layout .app-shell .sc-period-actions > select.sc-period-preset { width: 38%; min-height: 29px; height: 29px; font-size: 9px; }
  .reference-layout .app-shell .sc-period-custom { flex: 1; }
  .reference-layout .app-shell .sc-period-custom > summary { justify-content: space-between; min-height: 29px; height: 29px; font-size: 9px; }
  .reference-layout .app-shell .sc-period-custom > form { width: 280px; right: 0; }
  .reference-layout .ref-section { margin-bottom: 13px; }
  .reference-layout .ref-section-title { margin-bottom: 7px; font-size: 10px; }
  .reference-layout .ref-finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .reference-layout .ref-finance-grid .ref-card:last-child { grid-column: 1 / -1; min-height: 129px; }
  .reference-layout .ref-finance-grid .ref-card:last-child .ref-kpi-chart { min-height: 55px; }
  .reference-layout .ref-finance-grid .ref-card:last-child .ref-kpi-chart > svg { height: 53px; }
  .reference-layout .ref-card,
  .reference-layout .ref-finance-grid .ref-card:nth-child(4) { min-height: 139px; padding: 11px 10px 8px; }
  .reference-layout .ref-kpi-label { font-size: 9px; }
  .reference-layout .ref-kpi-value { font-size: 21px; letter-spacing: -.6px; }
  .reference-layout .ref-kpi-note { font-size: 8px; }
  .reference-layout .ref-kpi-chart { margin-top: 7px; min-height: 62px; }
  .reference-layout .ref-ring { width: 71px; height: 71px; }
  .reference-layout .ref-ring-center > strong { font-size: 14px; }
  .reference-layout .ref-two-grid { margin-top: 10px; }
  .reference-layout .ref-panel-header { padding-right: 12px; padding-left: 12px; }
  .reference-layout .ref-panel-header h2,
  .reference-layout .ref-panel-header h3,
  .reference-layout .ref-panel-header > strong { font-size: 12px; }
  .reference-layout .ref-panel-header p { font-size: 9px; }
  .reference-layout .ref-flow-summary { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 11px; padding: 18px 12px 14px; }
  .reference-layout .ref-flow-stat { min-height: 43px; padding: 9px 8px; }
  .reference-layout .ref-flow-stat strong { font-size: 14px; }
  .reference-layout .ref-flow-stat > b { font-size: 8px; }
  .reference-layout .ref-flow-total { font-size: 8px; }
  .reference-layout .ref-flow-total strong { font-size: 9px; }
  .reference-layout .ref-gauge { height: 113px; }
  .reference-layout .ref-gauge .ref-ring-center > strong { font-size: 14px; }
  .reference-layout .ref-gauge .ref-ring-center > small { font-size: 8px; }
  .reference-layout .ref-finance-summary { padding: 17px 12px 12px; }
  .reference-layout .ref-summary-row { min-height: 26px; font-size: 10px; }
  .reference-layout .ref-summary-row > strong { font-size: 10px; }
  .reference-layout .ref-summary-heading { gap: 15px; }
  .reference-layout .ref-commercial-grid { gap: 8px; }
  .reference-layout .ref-commercial-grid .ref-card { min-height: 80px; padding: 11px 10px; }
  .reference-layout .ref-order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .reference-layout .ref-order-card { min-height: 83px; padding: 11px 10px; }
  .reference-layout .ref-order-card .ref-kpi-label { font-size: 9px; }
  .reference-layout .ref-order-grid .ref-order-card:last-child { grid-column: 1 / -1; }
  .reference-layout .ref-production-body { gap: 13px; padding: 17px 13px; }
  .reference-layout .ref-production-stats { gap: 8px; }
  .reference-layout .ref-production-stat { min-height: 39px; }
  .reference-layout .ref-production-stat > strong { font-size: 17px; }
  .reference-layout .ref-history-grid .ref-panel { min-height: 195px; }
  .reference-layout .ref-mini-chart > svg { height: 125px; }
  .reference-layout .ref-top-customer { padding: 10px 0; font-size: 10px; }
  .reference-layout .ref-top-customer > strong { font-size: 10px; }
  .reference-layout .app-shell .sc-financial-details .sc-transactions .transaction-heading { padding: 13px 12px; }
  .reference-layout .app-shell .sc-financial-details .transaction-tools { flex-wrap: wrap; gap: 8px; }
  .reference-layout .app-shell .sc-financial-details .transaction-tools .select-button { height: 28px; font-size: 8px; }
  .reference-layout .app-shell .sc-financial-details .sc-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .reference-layout .app-shell .sc-financial-details .sc-kpi { min-height: 135px; padding: 12px; }
  .reference-layout .app-shell .sc-financial-details .sc-kpi-value { font-size: 21px; }
  .reference-layout .app-shell .page-footer { gap: 9px; padding-top: 10px; font-size: 7px; }
  .reference-layout .sc-module-toolbar { align-items: stretch; gap: 10px; padding: 12px; }
  .reference-layout .sc-module-search { width: 100%; min-height: 35px; font-size: 12px; }
  .reference-layout .sc-module-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .reference-layout .sc-module-summary > * { padding: 11px 9px; }
  .reference-layout .sc-module-summary strong { font-size: 19px; }
  .reference-layout .sc-module-summary small,
  .reference-layout .sc-module-summary span { font-size: 9px; }
  .reference-layout .sc-module-note { font-size: 10px; }
}
@media (min-width: 761px) {
  .reference-layout:is([data-view="overview"], [data-view="finance"]) .app-shell .page-heading { min-height: 28px; margin-bottom: 10px; }
  .reference-layout:is([data-view="overview"], [data-view="finance"]) .app-shell .sc-period-control { width: min(46%, 380px); min-height: 28px; justify-content: flex-end; margin-top: -38px; margin-right: 0; margin-bottom: 13px; margin-left: auto; }
  .reference-layout:is([data-view="overview"], [data-view="finance"]) .app-shell .sc-period-heading { display: none; }
  .reference-layout:is([data-view="overview"], [data-view="finance"]) .app-shell .sc-period-actions::before { color: #ae9e88; font-size: 8px; content: "PERÍODO"; }
}
@media (max-width: 360px) {
  .reference-layout .ref-kpi-value { font-size: 19px; }
  .reference-layout .ref-flow-summary { gap: 8px; }
  .reference-layout .ref-flow-stat strong { font-size: 13px; }
  .reference-layout .ref-production-body { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
  .reference-layout .ref-production-body > .ref-ring.medium { width: 82px; height: 82px; }
  .reference-layout .ref-production-stat > small { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .reference-layout .app-shell *,
  .reference-layout .app-shell *::before,
  .reference-layout .app-shell *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Local device clock in the management header, including narrow screens. */
.reference-layout .app-shell .demo-pill.local-clock { width: auto; max-width: none; height: 27px; flex-shrink: 0; gap: 6px; padding: 0 8px; white-space: nowrap; border-color: #eadde3; background: #fff; color: #705361; font-size: 11px; }
.reference-layout .app-shell .local-clock svg { width: 14px; height: 14px; flex: none; }
.reference-layout .app-shell .local-clock time { font-variant-numeric: tabular-nums; }
