/* ============================================================
   JR&CO PM Command Center — brand theme
   Brand tokens per JR&CO Brand Guidelines (2025)
   Primary face: Neue Haas Grotesk -> Arial web-safe fallback
   ============================================================ */

:root {
  /* ---- Brand palette ---- */
  --jr-red:        #E92A2C;   /* JR&CO Bright Red  */
  --jr-red-dark:   #A71F23;   /* JR&CO Dark Red    */
  --jr-grad:       linear-gradient(135deg, #E92A2C 0%, #A71F23 100%); /* red on dark = always gradient */
  --jr-red-tint:   #FCEBEB;   /* light red wash for alert rows / LOW GM chips */
  --jr-ink:        #202020;   /* JR&CO Black (standard) */
  --jr-darkgray:   #404040;   /* JR&CO Dark Gray */
  --jr-lightgray:  #E6E6E6;   /* JR&CO Light Gray */

  /* ---- Brand working colors ---- */
  --ink:    #202020;
  --gray:   #202020;   /* brand: body text is black, not grey */
  --faint:  #202020;   /* brand: labels/captions are black, not grey */
  --line:   #ececec;
  --line2:  #dcdcdc;
  --tint:   #FAFAF9;   /* near-white warm surface for chips/cards */
  --white:  #ffffff;

  /* ---- Health system (RYG) — deepened for legibility on white ---- */
  --health-red:    #E92A2C;
  --health-amber:  #BA7517;
  --health-green:  #1F4D0F;

  /* ---- Type & shape ---- */
  --font: 'Neue Haas Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
}

/* ============================================================
   Shell
   ============================================================ */
.cc {
  font-family: var(--font);
  color: var(--ink);
  font-size: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ============================================================
   Header
   ============================================================ */
.cc-header {
  position: relative;
  padding: 18px 26px;
  background: var(--white);
  overflow: hidden;
}
.cc-header__stripes {            /* faint 26deg stripe-field watermark */
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 120px;
  opacity: 0.07;
}
.cc-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.cc-logo {
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 1px;
}
.cc-logo__mark {                 /* the angled red "&" stripe in the wordmark */
  display: inline-block;
  transform: skewX(-26deg);      /* brand stripe angle */
  background: var(--jr-grad);
  width: 12px;
  height: 19px;
  margin: 0 1px;
}
.cc-divider-v {
  width: 1px;
  height: 32px;
  background: var(--line2);
}
.cc-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.cc-subtitle {
  font-size: 11px;
  color: var(--faint);
  font-weight: 300;
  letter-spacing: 0.5px;
}
.cc-header__actions {
  position: absolute;
  right: 26px;
  top: 20px;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* gradient accent line beneath header */
.cc-accent {
  height: 2px;
  background: var(--jr-grad);
  margin: 0 26px;
}

/* ============================================================
   Buttons
   ============================================================ */
.cc-btn {
  font-size: 11px;
  padding: 5px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--line2);
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}
.cc-btn--primary {               /* gradient = highest-priority action */
  border: none;
  color: var(--white);
  background: var(--jr-grad);
  font-weight: 500;
}
.cc-btn--danger {                /* outlined red, e.g. Escalate */
  border: 1px solid var(--jr-red);
  color: var(--jr-red);
}
.cc-btn--link {                  /* demoted text action, e.g. Map */
  border: none;
  background: none;
  color: var(--ink);
  padding: 3px 8px;
}

/* ============================================================
   Filter bar
   ============================================================ */
.cc-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  flex-wrap: wrap;
}
.cc-filters__label {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: var(--faint);
}
.cc-select {
  font-size: 11px;
  border: 1px solid var(--line2);
  padding: 5px 13px;
  border-radius: var(--radius);
  background: var(--white);
}

/* ============================================================
   Stat / metric strip
   ============================================================ */
.cc-stats {
  display: flex;
  align-items: center;
  padding: 6px 26px 20px;
}
.cc-stats__group        { padding-left: 26px; }
.cc-stats__group:first-child { padding-left: 0; padding-right: 26px; }
.cc-stats__divider {
  width: 1px;
  height: 46px;
  background: var(--line2);
}
.cc-stats__caption {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--faint);
  margin-bottom: 6px;
}
.cc-stats__row { display: flex; gap: 28px; }
.cc-stat__value {                /* tight Bold per "75 Bold for key figures" */
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -1px;
}
.cc-stat__label {                /* Extra-Light descriptor under the figure */
  font-size: 10px;
  color: var(--faint);
  font-weight: 300;
  margin-top: 1px;
}
.cc-stat__value--red   { color: var(--health-red); }
.cc-stat__value--amber { color: var(--health-amber); }
.cc-stat__value--green { color: var(--health-green); }

/* ============================================================
   Section header (Action queue, etc.)
   ============================================================ */
.cc-section {
  padding: 16px 26px;
  border-top: 1px solid var(--line);
}
.cc-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cc-section__title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cc-stripe {                     /* small 26deg stripe used as a bullet/marker */
  display: inline-block;
  transform: skewX(-26deg);
  width: 4px;
  height: 13px;
  background: var(--jr-grad);
}
.cc-section__title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
}
.cc-section__hint {
  font-size: 11px;
  color: var(--faint);
  font-weight: 300;
}

/* Tabs */
.cc-tabs {
  display: flex;
  gap: 22px;
  margin-top: 14px;
}
.cc-tab {
  font-size: 11px;
  font-weight: 300;
  color: var(--ink);
}
.cc-tab--active {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 2px solid var(--jr-red);
  padding-bottom: 6px;
}
.cc-tab--active .cc-count { color: var(--jr-red); }

/* ============================================================
   Health band header (RED — immediate attention)
   ============================================================ */
.cc-band {
  padding: 14px 26px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.cc-band__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--jr-red-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-band__title .cc-count { color: var(--jr-red); }
.cc-band__meta {
  font-size: 10px;
  color: var(--faint);
  font-weight: 300;
}

/* ============================================================
   Table
   ============================================================ */
.cc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.cc-table thead tr { border-bottom: 1px solid var(--line); }
.cc-table th {
  text-align: left;
  padding: 9px 8px;
  font-size: 9px;
  letter-spacing: 0.6px;
  color: var(--faint);
  font-weight: 500;
}
.cc-table th:first-child,
.cc-table td:first-child { padding-left: 26px; }
.cc-table th:last-child,
.cc-table td:last-child  { padding-right: 26px; }
.cc-table th.is-num,
.cc-table td.is-num      { text-align: right; }
.cc-table tbody tr { border-bottom: 1px solid var(--line); }
.cc-table td {
  padding: 13px 8px;
  vertical-align: top;
}
.cc-job-id     { color: var(--jr-red); font-weight: 500; }
.cc-job-name   { color: var(--ink); font-weight: 300; margin-top: 2px; }
.cc-muted      { color: var(--ink); }

/* numeric coloring */
.cc-pos { color: var(--health-green); font-weight: 500; }
.cc-neg { color: var(--health-red);   font-weight: 500; }
.cc-date-ok    { color: var(--health-green); }
.cc-date-stale { color: var(--health-red); }

/* ============================================================
   Chips / tags
   ============================================================ */
.cc-chip {
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  background: var(--tint);
  color: var(--ink);
  border: 1px solid var(--line);
}
.cc-chip--danger {               /* LOW GM / critical */
  background: var(--jr-red-tint);
  color: var(--jr-red-dark);
  border: none;
}

/* ============================================================
   Footer
   ============================================================ */
.cc-footer {
  padding: 14px 26px;
  text-align: center;
  font-size: 10px;
  color: var(--faint);
  font-weight: 300;
  border-top: 1px solid var(--line);
}
