/* OptioFlo global design tokens. This is the only globally loaded :root
   declaration; component and page styles consume these values. */
:root {
  --ofo-overview-card-width: 15rem;
  --ofo-overview-card-min: 13.5rem;
  --ofo-overview-card-max: 16rem;
  --ofo-overview-card-ratio: 1 / 1;
  --ofo-overview-padding: 1rem;
  --ofo-overview-gap: 1rem;
  --ofo-overview-radius: 8px;
  --ofo-overview-icon-size: 2.25rem;
  --ofo-overview-value-size: clamp(1.25rem, 2vw, 1.8rem);
  --ofo-overview-label-size: .9rem;
  --ofo-overview-support-size: .78rem;
  --ofo-overview-bg: #fff;
  --ofo-overview-border: #e2e8f0;
  --ofo-overview-hover: #f8fafc;
  --ofo-overview-focus: #2563eb;
  --ofo-overview-attention-bg: #fffbeb;
  --ofo-overview-attention-border: #fde68a;
  --ofo-overview-critical-bg: #fff1f2;
  --ofo-overview-critical-border: #fecdd3;
  --perpetua-bg: #f8fafc;
  --perpetua-rule: #e2e8f0;
  --perpetua-title-size: 1.35rem;
  --perpetua-shell-x: 1.5rem;
  --perpetua-shell-y: 1.25rem;
  --ofo-page-header-h: 52px;
  --ofo-title-row-min-height: var(--ofo-page-header-h);
  --ofo-title-row-gap: .75rem;
  --ofo-title-row-padding-block: .35rem .4rem;
  --ofo-title-row-padding-inline: var(--ofo-content-gutter);
  --ofo-title-row-bg: var(--ofo-card-bg);
  --ofo-title-row-border: var(--ofo-border);
  --ofo-title-row-shadow: var(--ofo-shadow-sm);
  --ofo-title-row-z: 120;
  --ofo-content-gutter: clamp(1rem, 1.25vw, 1.25rem);
  --header-h: 53px;
  --ofo-table-sticky-top: var(--header-h);
  /* Seal the header edge without painting over controls above the table. */
  --ofo-table-header-shadow: 0 -1px 0 var(--ofo-sticky-table-header-bg, #fff), inset 0 -1px 0 #dee2e6, 0 1px 0 #dee2e6;
  --ofo-module-sidebar-width: 232px;
  --ofo-sidebar-icon-size: 20px;
  --ofo-sidebar-icon-gap: .5rem;
  --ofo-module-sidebar-gap: 1.25rem;
  --ofo-module-sidebar-breakpoint: 1200px;

  --ofo-primary: #2563eb;
  --ofo-primary-hover: #1d4ed8;
  --ofo-primary-contrast: #ffffff;
  --ofo-primary-light: #eff6ff;
  --ofo-navy: #0f172a;
  --ofo-page-bg: #f8fafc;
  --ofo-card-bg: #ffffff;
  --ofo-text: #0f172a;
  --ofo-text-secondary: #475569;
  --ofo-muted: #64748b;
  --ofo-border: #e2e8f0;
  --ofo-soft-border: #edf2f7;
  --ofo-input-border: #cbd5e1;
  --ofo-row-stripe: #f8fafc;
  --ofo-accent: #2563eb;
  --ofo-success: #16a34a;
  --ofo-warning: #f59e0b;
  --ofo-danger: #dc2626;
  --ofo-info: #0ea5e9;
  --ofo-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --ofo-title-size: 1.35rem;
  --ofo-toolbar-title-size: 1.2rem;
  --ofo-toolbar-title-weight: 700;
  --ofo-toolbar-title-line-height: 1.2;
  --ofo-toolbar-title-letter-spacing: 0;
  --ofo-section-title-size: 1.15rem;
  --ofo-card-title-size: 1rem;
  --ofo-label-size: .8125rem;
  --ofo-help-size: .8125rem;
  --ofo-control-height: 2.35rem;
  --ofo-toolbar-control-height: var(--ofo-control-height);
  --ofo-toolbar-control-radius: var(--ofo-radius-md);
  --ofo-toolbar-action-gap: .5rem;
  --ofo-search-icon-size: 1rem;
  --ofo-search-icon-inset: .75rem;
  --ofo-search-icon-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 21-4.34-4.34'/%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3C/svg%3E");
  --ofo-card-padding: 1rem;
  --ofo-radius-sm: .375rem;
  --ofo-radius-md: .5rem;
  --ofo-focus-ring-color: rgba(37, 99, 235, .22);
  --ofo-focus-ring: 0 0 0 .2rem var(--ofo-focus-ring-color);
  --ofo-success-bg: #d1e7dd;
  --ofo-warning-bg: #fff3cd;
  --ofo-danger-bg: #f8d7da;
  --ofo-info-bg: #e7f1ff;
  --ofo-checkbox-border: #64748b;
  --ofo-checkbox-border-hover: #2563eb;
  --ofo-checkbox-fill: #2563eb;
  --ofo-checkbox-focus: rgba(37, 99, 235, .18);

  --ofo-neutral-bg: #f1f3f5;
  --ofo-neutral-fg: #343a40;
  --ofo-info-fg: #084298;
  --ofo-success-fg: #0f5132;
  --ofo-warning-fg: #664d03;
  --ofo-danger-fg: #842029;
  --ofo-readonly-bg: #e9ecef;
  --ofo-readonly-fg: #495057;
  --ofo-tab-font-family: inherit;
  --ofo-tab-font-size: .875rem;
  --ofo-tab-font-weight: 650;
  --ofo-tab-font-weight-active: 750;
  --ofo-tab-line-height: 1.2;
  --ofo-tab-height: 44px;
  --ofo-tab-gap: 1.5rem;
  --ofo-tab-padding-inline: .125rem;
  --ofo-tab-color: #526071;
  --ofo-tab-hover-color: #172033;
  --ofo-tab-active-color: var(--ofo-primary);
  --ofo-tab-indicator-size: 2px;
  --ofo-tab-bar-border: var(--ofo-border);
  --ofo-tab-bar-bg: #fff;
  --ofo-tab-bar-z: 45;
  --ofo-tab-bar-seam-cover: 1px;
  --ofo-tabbed-page-header-gap: 0px;
  --ofo-tab-bar-margin-block: 0 .75rem;
  --ofo-tab-count-height: 1.25rem;
  --ofo-tab-count-min-width: 1.45rem;
  --ofo-tab-count-bg: #e8edf4;
  --ofo-tab-count-color: #334155;

  --ofo-mobile-gap: .75rem;
  --ofo-touch-min: 2.75rem;
  --ofo-mobile-nav-height: calc(60px + env(safe-area-inset-bottom, 0px));
  --ofo-table-row-height: 3rem;
  --ofo-table-row-height-comfortable: 4rem;
  --ofo-table-cell-line-height: 1.18;
  --ofo-table-header-bg: #ffffff;
  --ofo-table-header-border: #dee2e6;
  --ofo-table-frame-radius: .5rem;

  --ofo-r-navy: #0b1935;
  --ofo-r-navy-2: #122548;
  --ofo-r-blue: #1761dc;
  --ofo-r-blue-soft: #eaf2ff;
  --ofo-r-green: #16895a;
  --ofo-r-green-soft: #e9f7ef;
  --ofo-r-amber: #ad6800;
  --ofo-r-amber-soft: #fff4d8;
  --ofo-r-red: #b42318;
  --ofo-r-canvas: #f5f7fa;
  --ofo-r-card: #fff;
  --ofo-r-text: #12203a;
  --ofo-r-muted: #5d687b;
  --ofo-r-border: #d9e0ea;
  --ofo-r-radius: 12px;
  --ofo-r-shadow: 0 2px 8px rgba(15, 35, 68, .055);
}
