/* The shared look: the shared stylesheet for the pages Iris shows temps and clients
   (timesheet, approval, chat). Copied from the design language of the Iris Workforce
   sites (C:\Dev\AIOps\iris-site\static\assets\css\site.css); token names match that
   file so the two can be compared line by line. Phone first: base rules are for a
   375px screen; @media (min-width: 640px) widens. Every class starts with lk-.
   See ../LOOK.md for where each value came from. */

:root {
  /* colours: site.css lines 5-19 */
  --bg: #FAFBFD;
  --surface: #FFFFFF;
  --surface-tint: #EEF3F9;
  --surface-accent: #E7ECFF;
  --ink: #0C1A2B;
  --text: #34475C;
  --muted: #5B6B7D;
  --border: #E2E8F0;
  --border-hover: #D3DCE8;
  --accent: #2F55F0;
  --accent-hover: #2141D2;
  --success: #1E9E6A;

  /* colours the site uses as literals, given names here */
  --rule-soft: #EDF1F6;        /* site.css 942, 1494: the line between table rows */
  --success-ink: #157A52;      /* site.css 1454: green text on a green tint */
  --warn-ink: #B45309;         /* site.css 1439, 1452: amber text */
  /* added for this look (not in site.css) */
  --input-border: #7D8DA0;     /* 3.4:1 on white, so an empty box is plainly a box */
  --error-ink: #B42318;

  /* faces: site.css lines 21-22 */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* sizes: site.css lines 30-32 */
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-eyebrow: 12px;

  /* radii: site.css lines 38-43 */
  --r-input: 8px;
  --r-tile: 12px;
  --r-card: 20px;
  --r-pill: 999px;

  /* shadow and easing: site.css 47-48, and the demo card shadow at 1389 */
  --shadow-card-hover: 0 12px 32px -18px rgba(12, 26, 43, .20);
  --shadow-stage: 0 30px 60px -36px rgba(12, 26, 43, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* spacing: site.css 35 and 56 (16px gutter on phones) */
  --gutter: 16px;
  --card-pad: 20px;
}
@media (min-width: 640px) {
  :root { --gutter: 24px; --card-pad: 32px; }
}

/* ---------------------------------------------------------------- page */

body.lk {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body.lk *, body.lk *::before, body.lk *::after { box-sizing: border-box; }
body.lk :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
body.lk a { color: var(--accent); }

.lk-page {
  width: 100%;
  max-width: calc(720px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 28px var(--gutter) 56px;
}
@media (min-width: 640px) { .lk-page { padding-top: 48px; padding-bottom: 80px; } }

.lk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- brand and heading */

.lk-brand {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px;
  margin: 0 0 28px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
  font: 400 26px/1.1 var(--font-display); letter-spacing: -0.01em; color: var(--ink);
}
.lk-brand-sub { font: 500 var(--fs-small)/1.3 var(--font-text); letter-spacing: 0; color: var(--muted); }

.lk-h1 {
  margin: 0; color: var(--ink);
  font: 400 38px/1.05 var(--font-display); letter-spacing: -0.02em; text-wrap: balance;
}
.lk-sub { margin: 12px 0 24px; font-size: 17px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
@media (min-width: 640px) {
  .lk-brand { font-size: 30px; margin-bottom: 40px; }
  .lk-h1 { font-size: 48px; }
  .lk-sub { font-size: 18px; margin-bottom: 32px; }
}

/* ---------------------------------------------------------------- card */

.lk-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-stage);
  padding: var(--card-pad); color: var(--text);
}
.lk-card + .lk-card, .lk-card + .lk-actions, .lk-banner + .lk-card { margin-top: 20px; }
.lk-card-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px;
  margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) var(--card-pad);
  padding: 14px var(--card-pad);
  background: var(--surface-tint); border-bottom: 1px solid var(--border);
  border-radius: calc(var(--r-card) - 1px) calc(var(--r-card) - 1px) 0 0;
}
.lk-card-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }

/* ---------------------------------------------------------------- label and value pairs */

.lk-meta { margin: 0 0 20px; display: grid; gap: 6px; }
.lk-meta-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.lk-meta-label { margin: 0; font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.lk-meta-value { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--ink);
  overflow-wrap: anywhere; }  /* a long email address breaks to the next line on a phone, never past the card */
@media (min-width: 640px) { .lk-meta-row { grid-template-columns: 112px minmax(0, 1fr); } }

/* ---------------------------------------------------------------- the week */

.lk-week { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }

/* phone: each day is its own block; name, date and hours on the top line */
.lk-day {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "name  date  hours"
    "mark  mark  mark"
    "times times times"
    "brk   brk   brk"
    "note  note  note";
  align-items: baseline;
  column-gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--rule-soft);
}
.lk-day:first-child { border-top: 0; }
.lk-day-name { grid-area: name; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.lk-day-date { grid-area: date; font-size: var(--fs-small); color: var(--muted); }
.lk-day-hours { grid-area: hours; justify-self: end; text-align: right; white-space: nowrap; font-size: 16px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.lk-day-times { grid-area: times; margin-top: 4px; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.lk-day-break { grid-area: brk; font-size: var(--fs-small); color: var(--muted); }
.lk-day-note { grid-area: note; margin: 6px 0 0; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.lk-day > .lk-mark { grid-area: mark; justify-self: start; margin-top: 6px; }

/* a day as a form: two time boxes side by side, the break box under them */
.lk-day-times:has(.lk-field), .lk-day-times.is-form {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 10px;
}
.lk-day-to { display: none; }
.lk-day-break:has(.lk-field), .lk-day-break.is-form { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.lk-day .lk-field { margin: 0; }
.lk-day .lk-label { font-size: 13px; margin-bottom: 4px; }

/* a day with no hours: quieter */
.lk-day.is-empty .lk-day-hours { color: var(--muted); font-weight: 500; }
.lk-day.is-empty .lk-day-times:not(:has(.lk-field)) { color: var(--muted); }

/* a day that came by text and cannot be edited here: tinted to the card's edges */
.lk-day.is-fixed {
  margin: 0 calc(-1 * var(--card-pad));
  padding-left: var(--card-pad); padding-right: var(--card-pad);
  background: var(--surface-tint);
  border-top-color: var(--border);
}
.lk-day.is-fixed + .lk-day { border-top-color: var(--border); }

/* the small pill: "Sent by text, 9:14 pm" */
.lk-mark {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 24px; padding: 2px 10px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--muted);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* wider screens: a day is one row of aligned columns, the date under the day's name.
   A day that holds inputs needs about 800px for its two time boxes to sit in one row,
   so between 640px and 800px a form day keeps the phone layout (see LOOK.md). */
@media (min-width: 640px) {
  .lk-day {
    grid-template-columns: 7rem minmax(0, 1fr) 6.5rem 5.5rem;
    grid-template-areas:
      "name times brk  hours"
      "date times brk  hours"
      "mark note  note note";
    align-items: center;
    column-gap: 14px;
    padding: 12px 0;
  }
  .lk-day-name { align-self: end; }
  .lk-day-date { align-self: start; }
  .lk-day-times { margin-top: 0; }
  .lk-day-note { margin-top: 4px; }
  .lk-day > .lk-mark { margin-top: 6px; }
}
@media (min-width: 640px) and (max-width: 799.98px) {
  .lk-day:has(.lk-field), .lk-day.is-form {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "name  date  hours"
      "mark  mark  mark"
      "times times times"
      "brk   brk   brk"
      "note  note  note";
    align-items: baseline;
    column-gap: 8px;
  }
  .lk-day:has(.lk-field) .lk-day-name, .lk-day:has(.lk-field) .lk-day-date,
  .lk-day.is-form .lk-day-name, .lk-day.is-form .lk-day-date { align-self: auto; }
  .lk-day:has(.lk-field) .lk-day-times, .lk-day.is-form .lk-day-times { margin-top: 10px; }
}
@media (min-width: 800px) {
  .lk-day-times:has(.lk-field), .lk-day-times.is-form {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; margin-top: 0;
  }
  .lk-day-times .lk-input, .lk-day-break .lk-input { padding-left: 10px; padding-right: 8px; }
  .lk-day-to { display: block; padding-bottom: 11px; font-size: var(--fs-small); color: var(--muted); }
  .lk-day-break:has(.lk-field), .lk-day-break.is-form { margin-top: 0; grid-template-columns: 1fr; }
}

/* the week's total */
.lk-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0; padding: 14px 0 0;
  border-top: 2px solid var(--ink);
  font-size: 17px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums;
}
.lk-week + .lk-total { margin-top: 0; }
.lk-total > :last-child { text-align: right; white-space: nowrap; }

/* ---------------------------------------------------------------- fields */

.lk-field { display: block; margin: 0 0 18px; }
.lk-label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.lk-input {
  display: block; width: 100%; min-width: 0; min-height: 44px; margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--input-border); border-radius: var(--r-input);
  background: var(--surface); color: var(--ink);
  font: 400 16px/1.4 var(--font-text);   /* 16px so iOS does not zoom */
  font-variant-numeric: tabular-nums;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.lk-input::placeholder { color: var(--muted); opacity: 1; }
.lk-input:hover { border-color: var(--text); }
.lk-input:focus, .lk-input:focus-visible {
  outline: 2px solid transparent;   /* stays visible in Windows high-contrast mode */
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 85, 240, .28);
  border-radius: var(--r-input);
}
.lk-input[type="time"]::-webkit-date-and-time-value { text-align: left; }
.lk-input[type="time"] { min-height: 44px; }
textarea.lk-input { min-height: 104px; resize: vertical; line-height: 1.5; }
.lk-hint { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* ---------------------------------------------------------------- buttons */

.lk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 22px; border-radius: var(--r-pill);
  font: 600 15px/1.2 var(--font-text); text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.lk-btn:hover { background: var(--surface-tint); }
.lk-btn:active { transform: scale(.98); }
.lk-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-pill); }
.lk-btn-primary { background: linear-gradient(#3A60F5, #2F55F0); border-color: transparent; color: #fff; }
.lk-btn-primary:hover { background: var(--accent-hover); }
.lk-btn-quiet { background: transparent; border-color: transparent; color: var(--accent); padding: 0 12px; }
.lk-btn-quiet:hover { background: var(--surface-accent); }
/* A link dressed as a button keeps the button's colours: the rule for links in text ("body.lk a") is the stronger
   one, and without these a primary button that is a link showed blue words on blue (seen 2026-11-21). */
body.lk a.lk-btn { color: var(--ink); }
body.lk a.lk-btn-primary { color: #fff; }
body.lk a.lk-btn-quiet { color: var(--accent); }

.lk-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 24px 0 0; }
.lk-actions .lk-btn-primary { width: 100%; min-height: 52px; font-size: 16.5px; }
.lk-actions .lk-hint { text-align: center; margin-top: 2px; }
@media (min-width: 640px) {
  .lk-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .lk-actions .lk-btn-primary { width: auto; min-height: 48px; padding: 0 28px; }
  .lk-actions .lk-hint { text-align: left; }
}

/* ---------------------------------------------------------------- messages */

.lk-banner {
  margin: 0 0 20px; padding: 14px 16px 14px 18px;
  border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--r-tile);
  background: var(--surface);
  font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--ink);
}
.lk-banner > :first-child { margin-top: 0; }
.lk-banner > :last-child { margin-bottom: 0; }
.lk-banner.is-ok { background: #EAF6F0; border-color: rgba(30, 158, 106, .35); border-left-color: var(--success); }
.lk-banner.is-warn { background: #FDF4E7; border-color: rgba(180, 83, 9, .30); border-left-color: #F59E0B; }
.lk-banner.is-error { background: #FDEEEC; border-color: rgba(180, 35, 24, .30); border-left-color: var(--error-ink); }
.lk-banner-lead { font-weight: 700; }
.lk-banner.is-ok .lk-banner-lead { color: var(--success-ink); }
.lk-banner.is-warn .lk-banner-lead { color: var(--warn-ink); }
.lk-banner.is-error .lk-banner-lead { color: var(--error-ink); }

/* ---------------------------------------------------------------- small text */

.lk-muted { color: var(--muted); }
.lk-foot {
  margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: var(--fs-small); line-height: 1.5; color: var(--muted);
}
.lk-divider { margin: 56px 0 32px; border: 0; border-top: 1px dashed var(--border-hover); }
.lk-eyebrow {
  margin: 0 0 12px; font-size: var(--fs-eyebrow); line-height: 1.2; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600; color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .lk-input, .lk-btn { transition: none; }
  .lk-btn:active { transform: none; }
}
