/* ═══ base ═════════════════════════════════════════════════════════════════
   Reset, typography, and the elements every section uses without importing
   anything: headings, links, buttons, tables, form controls.

   Tables get real attention here because this is a payroll product. Most of
   what a person looks at all day is a table of numbers, and numbers that are
   not tabular-figure aligned cannot be scanned down a column — the eye has to
   read each one. `font-variant-numeric: tabular-nums` on every numeric cell is
   the single highest-value line in this file.                                */

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  /* The tinted crown: a soft indigo glow at the top of the page fading into
     the plane. It is the cheapest depth there is — no border, no shadow — and
     it is most of the difference between "grey on grey" and a page with air
     in it. Fixed, so scrolling long tables does not slide the light around. */
  background-color:var(--plane);
  /* Two lights, not one: the indigo crown, plus a faint violet bloom off the
     top-right corner — the Odoo-ish airiness he asked for, made from the
     product's own tokens rather than a borrowed palette. */
  background-image:
    radial-gradient(1100px 360px at 88% -120px,
      color-mix(in srgb, var(--violet-wash) 70%, transparent), transparent 70%),
    radial-gradient(900px 320px at -80px -140px,
      color-mix(in srgb, var(--accent-wash) 85%, transparent), transparent 70%),
    linear-gradient(180deg, var(--plane-glow), var(--plane) 520px);
  background-repeat:no-repeat;
  background-attachment:fixed;
  color:var(--ink);
  font:15px/1.5 var(--sans);
  -webkit-font-smoothing:antialiased;
  letter-spacing:-.01em;
}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
code,kbd,pre{font-family:var(--mono);font-size:.92em}

/* Focus is visible, always. A keyboard user in a payroll screen who cannot see
   where they are will approve the wrong row. */
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
:focus:not(:focus-visible){outline:none}

h1{font-size:27px;line-height:1.2;letter-spacing:-.027em;font-weight:590;margin:0 0 4px}
h2{font-size:15px;font-weight:590;letter-spacing:-.015em;margin:0}
h3{font-size:13.5px;font-weight:560;letter-spacing:-.01em;margin:0 0 8px;color:var(--ink-2)}
p{margin:0 0 12px}
p:last-child{margin-bottom:0}

.muted{color:var(--ink-2)}
.dim{color:var(--ink-3)}
.num{font-variant-numeric:tabular-nums;text-align:right}
.mono{font-family:var(--mono)}
.nowrap{white-space:nowrap}
.good{color:var(--good)}
.bad{color:var(--critical)}
.warnc{color:var(--warn)}

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;gap:6px;
  padding:9px 16px;border-radius:10px;
  font-size:13.5px;font-weight:600;letter-spacing:-.008em;
  /* The primary button carries a small gradient — indigo leaning violet —
     which is most of what reads as "Odoo" without leaving the token system. */
  background:linear-gradient(135deg, var(--accent),
    color-mix(in srgb, var(--violet) 42%, var(--accent)));
  color:var(--on-accent);
  box-shadow:0 1px 2px rgba(15,23,42,.14),
    0 3px 10px color-mix(in srgb, var(--accent) 24%, transparent);
  transition:filter var(--fast) var(--ease), transform var(--fast) var(--ease),
             box-shadow var(--fast) var(--ease);
}
.btn:hover{filter:brightness(1.07);
  box-shadow:0 2px 12px color-mix(in srgb, var(--accent) 38%, transparent)}
.btn:active{transform:scale(.985)}
.btn[disabled]{opacity:.45;cursor:not-allowed;filter:none;transform:none}
.btn.ghost{
  background:var(--surface);color:var(--ink);border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}
.btn.ghost:hover{
  background:var(--accent-wash);color:var(--accent-ink);filter:none;
  border-color:color-mix(in srgb,var(--accent) 34%,var(--line));box-shadow:var(--shadow-sm);
}
.btn.danger{background:var(--critical)}
.btn.sm{padding:5px 10px;font-size:12.5px}

/* ── tables ────────────────────────────────────────────────────────────── */
table{border-collapse:collapse;width:100%;font-size:13.5px}
thead th{
  /* A tinted band rather than grey-on-white capitals. The head is chrome, and
     chrome wearing the accent wash is what makes a screenful of tables read
     as one product rather than a spreadsheet export. */
  text-align:left;font-weight:650;font-size:10.5px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--accent-ink);
  background:var(--accent-wash);
  padding:8px 12px;border-bottom:1.5px solid var(--line);
  white-space:nowrap;
}
thead th:first-child{border-radius:var(--r-sm) 0 0 0}
thead th:last-child{border-radius:0 var(--r-sm) 0 0}
thead th.num{text-align:right}
tbody td{padding:10px 12px;border-bottom:1px solid var(--line-2);vertical-align:top}
tbody tr:last-child td{border-bottom:0}
tbody tr{transition:background var(--fast) var(--ease)}
tbody tr:hover{background:color-mix(in srgb,var(--ink) 2.5%,transparent)}
td.num,th.num{font-variant-numeric:tabular-nums;text-align:right}
/* A total row is a different KIND of number, not a bolder one. */
tfoot td{padding:11px 12px;border-top:1.5px solid var(--line);font-weight:590}

/* ── forms ─────────────────────────────────────────────────────────────── */
label{display:block;font-size:12.5px;color:var(--ink-2);margin-bottom:5px}
input[type=text],input[type=email],input[type=password],input[type=date],
input[type=number],input[type=tel],select,textarea{
  width:100%;padding:8px 11px;font:inherit;font-size:13.5px;
  background:var(--raised);color:var(--ink);
  border:1px solid var(--line);border-radius:var(--r-sm);
  transition:border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
input:focus,select:focus,textarea:focus{
  outline:none;border-color:var(--accent);
  box-shadow:var(--ring);
}
input[aria-invalid="true"]{border-color:var(--critical)}
.field{margin-bottom:14px}
.field .help{font-size:11.5px;color:var(--ink-3);margin-top:5px;line-height:1.45}
.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0 14px}

@media (prefers-reduced-motion: reduce){
  *{transition-duration:.01ms !important;animation-duration:.01ms !important}
}
