/*
 * Procore design tokens for Programming Oversight.
 *
 * Two sources, deliberately the same as the other Knight Procore add-ons:
 *  - The shared Knight add-on palette and controls, as used by Programme to
 *    Forecast (apps/procore-programming-to-forecast/web/app.css): Procore's
 *    orange, the grey secondary button, the #e3e6e8 column header, 2px inputs.
 *    PPO must sit beside PTF in the same Procore company without looking like
 *    a different vendor's product.
 *  - Measurements of Procore's own Programming tool (Bryntum Gantt), captured
 *    2026-09-07 from app.procore.com/.../tools/schedulemgmt with
 *    getComputedStyle; see docs/specs/procore-tokens.md.
 *
 * Near-miss greys read worse than an obviously different design, so every
 * colour in the app comes from here.
 */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable.woff2") format("woff2");
}

:root {
  /* Type -------------------------------------------------------------- */
  --pc-font: Inter, "Noto Sans", Arial, sans-serif;
  --pc-font-size: 14px;
  --pc-font-size-small: 12px;
  --pc-font-weight: 400;
  --pc-h1-size: 24px;
  --pc-h1-weight: 700;
  --pc-h1-line: 32px;

  /* Text -------------------------------------------------------------- */
  --pc-text: #232729;
  --pc-text-muted: #6a767d;
  --pc-text-faint: #8b969c;
  --pc-text-grid: #4f5964;
  --pc-link: #1a52b3;

  /* Surfaces and rules ------------------------------------------------ */
  --pc-surface: #ffffff;
  --pc-surface-alt: #f3f4f5; /* row hover */
  --pc-surface-summary: #f3f4f4; /* summary (parent) rows */
  --pc-surface-header: #e3e6e8; /* column headers, secondary buttons */
  --pc-rule: #d5d9db; /* light dividers */
  --pc-border: #a8b0b5; /* control borders, outer frames */

  /* Brand ------------------------------------------------------------- */
  --pc-orange: #ff5100;
  --pc-orange-dark: #d94300;
  --pc-orange-wash: #fff2eb;
  --pc-focus: rgb(255 81 0 / 32%);

  /* Controls ---------------------------------------------------------- */
  --pc-button-bg: #e3e6e8;
  --pc-button-hover: #d5d9db;
  --pc-button-text: #232729;
  --pc-radius: 4px;
  --pc-input-radius: 2px;
  --pc-control-height: 36px;
  --pc-shadow-pop: 0 8px 24px rgb(35 39 41 / 18%);

  /* Grid metrics ------------------------------------------------------ */
  --pc-row-height: 45px;
  --pc-header-height: 56px;
  --pc-cell-padding: 0 8px;

  /*
   * Status palette — OURS, not Procore's (it has no overdue/late/at-risk).
   * Built from the same red/amber/green as PTF so the add-ons agree, and shown
   * as Procore-style pills: a tinted wash with coloured words, with only
   * Overdue filled solid because it is the one that means a date has passed.
   * Status is never colour alone; every pill states it in words.
   */
  --pc-red: #d83b3b;
  --pc-red-dark: #a8272b;
  --pc-red-wash: #fdeeee;
  --pc-amber: #8f5d00;
  --pc-amber-bar: #f0a92e;
  --pc-amber-wash: #fff5df;
  --pc-green: #16834b;
  --pc-green-wash: #eaf7ef;
  --pc-status-overdue: var(--pc-red-dark);
  --pc-status-late: var(--pc-red);
  --pc-status-at-risk: var(--pc-amber-bar);
  --pc-status-on-time: var(--pc-green);

  /*
   * Gantt — measured from Procore's own Programming tool, 2026-09-07.
   * MEASUREMENTS of the rendered result, not their stylesheet: we do not
   * vendor or copy Bryntum, we match what it looks like.
   */
  --pc-gantt-row-height: 46px;
  --pc-bar-height: 20px;
  --pc-bar-radius: 8px;
  --pc-bar-blue: #6fc2ff;
  --pc-bar-summary: #464f53; /* parent rows: a thin dark span, as Procore's */
  --pc-bar-summary-height: 8px;
  --pc-bar-progress: rgba(0, 0, 0, 0.15);
  --pc-milestone-size: 17.67px;
  --pc-today: #fa5252;
  --pc-header-tier: 28px;
  --pc-bar-label-size: 13px;
  --pc-bar-label-color: #232729;

  --pc-dep-stroke: #464f53;
  --pc-dep-width: 1px;
  --pc-dep-radius: 6px;
  --pc-dep-radius-lane: 10px;

  /* Percent-complete dial — .b-percentdone-circle, a conic-gradient ring. */
  --pc-dial-size: 34px;
  --pc-dial-hole: 28px;
  --pc-dial-fill: #3183fe;
  --pc-dial-track: #e9eaeb;
  --pc-dial-text: #606163;
  --pc-dial-text-size: 11.2px;
}
