/* CFS customer login — the shed's regular customers (src/cfs/customer/README.md). No platform branding. */
:root {
  --cc-ink: #111827;
  --cc-muted: #6b7280;
  --cc-line: #e5e7eb;
  --cc-bg: #f6f7f9;
  --cc-card: #ffffff;
  --cc-accent: #1f2937;
  --cc-ok: #047857;
  --cc-ok-bg: #ecfdf5;
  --cc-warn: #b45309;
  --cc-warn-bg: #fffbeb;
  --cc-bad: #b91c1c;
  --cc-bad-bg: #fef2f2;
  --cc-normal-bg: #f3f4f6;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--cc-ink);
  background: var(--cc-bg);
  font-size: 15px;
  line-height: 1.45;
}
a { color: var(--cc-accent); }
button, .cc-button {
  font: inherit;
  border: 1px solid var(--cc-accent);
  background: var(--cc-accent);
  color: #fff;
  border-radius: 6px;
  padding: 9px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.cc-quiet, .cc-button.cc-quiet { background: #fff; color: var(--cc-accent); }
button[disabled] { opacity: .55; cursor: default; }
input[type="email"] {
  font: inherit;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- sign-in */
.cc-signin {
  max-width: 420px;
  margin: 10vh auto 0;
  padding: 0 16px;
}
.cc-signin .cc-card { padding: 28px 24px; }
.cc-signin .cc-eyebrow { font-size: 13px; font-weight: 600; color: var(--cc-muted); margin: 0 0 10px; }
.cc-signin h1 { font-size: 20px; margin: 0 0 6px; }
.cc-signin p { color: var(--cc-muted); margin: 0 0 18px; }
.cc-signin label { display: block; font-weight: 600; margin: 0 0 6px; }
.cc-signin form button { margin-top: 14px; width: 100%; }
.cc-message { margin-top: 16px; padding: 10px 12px; border-radius: 6px; background: var(--cc-normal-bg); }
.cc-message.cc-bad { background: var(--cc-bad-bg); color: var(--cc-bad); }
.cc-message.cc-ok { background: var(--cc-ok-bg); color: var(--cc-ok); }

/* ---------------------------------------------------------------- portal */
.cc-top {
  background: var(--cc-card);
  border-bottom: 1px solid var(--cc-line);
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
}
.cc-top .cc-shed { font-weight: 700; font-size: 17px; }
.cc-top .cc-who { color: var(--cc-muted); font-size: 13px; }
.cc-top .cc-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cc-main { max-width: 1240px; margin: 0 auto; padding: 16px; }
.cc-card { background: var(--cc-card); border: 1px solid var(--cc-line); border-radius: 8px; }
.cc-tabs { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.cc-tabs button { background: #fff; color: var(--cc-accent); }
.cc-tabs button.cc-active { background: var(--cc-accent); color: #fff; }
.cc-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.cc-metric { padding: 12px 14px; }
.cc-metric .cc-num { font-size: 22px; font-weight: 700; }
.cc-metric .cc-lbl { color: var(--cc-muted); font-size: 13px; }
.cc-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 10px; flex-wrap: wrap; }
.cc-bar h2 { font-size: 17px; margin: 0; }
.cc-note { color: var(--cc-muted); font-size: 13px; }

.cc-tablewrap { overflow-x: auto; }
table.cc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cc-table th, .cc-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--cc-line); vertical-align: top; white-space: nowrap; }
.cc-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--cc-muted); background: #fafafa; }
.cc-table td.cc-wrap { white-space: normal; min-width: 160px; }
.cc-table td.cc-num, .cc-table th.cc-num { text-align: right; }
.cc-table tr.cc-row { cursor: pointer; }
.cc-table tr.cc-row:hover td { background: #fafafa; }
.cc-empty { padding: 28px 16px; text-align: center; color: var(--cc-muted); }

.cc-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--cc-normal-bg); }
.cc-chip.cc-success { background: var(--cc-ok-bg); color: var(--cc-ok); }
.cc-chip.cc-warning { background: var(--cc-warn-bg); color: var(--cc-warn); }
.cc-chip.cc-danger { background: var(--cc-bad-bg); color: var(--cc-bad); }

.cc-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; padding: 16px; margin: 0 0 14px; }
.cc-facts .cc-lbl { color: var(--cc-muted); font-size: 12px; }
.cc-facts .cc-val { font-weight: 600; word-break: break-word; }
.cc-section { margin: 0 0 18px; }
.cc-back { margin: 0 0 12px; display: inline-block; }

.cc-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cc-photo { background: var(--cc-card); border: 1px solid var(--cc-line); border-radius: 6px; overflow: hidden; }
.cc-photo a { display: block; }
.cc-photo img { width: 100%; height: 130px; object-fit: cover; display: block; background: #eee; }
.cc-photo .cc-cap { font-size: 12px; color: var(--cc-muted); padding: 6px 8px; }

/* Phones: cards instead of wide tables for the two lists. */
@media (max-width: 720px) {
  .cc-metrics { grid-template-columns: 1fr 1fr 1fr; }
  .cc-facts { grid-template-columns: 1fr 1fr; }
  .cc-table.cc-cards thead { display: none; }
  .cc-table.cc-cards, .cc-table.cc-cards tbody, .cc-table.cc-cards tr, .cc-table.cc-cards td { display: block; width: 100%; }
  .cc-table.cc-cards tr { border: 1px solid var(--cc-line); border-radius: 8px; margin: 0 0 10px; background: var(--cc-card); padding: 6px 0; }
  .cc-table.cc-cards td { border: 0; padding: 4px 12px; white-space: normal; text-align: left; }
  .cc-table.cc-cards td::before { content: attr(data-label); display: inline-block; min-width: 120px; color: var(--cc-muted); font-size: 12px; }
}

/* The shed's white-label brand (part 2): its Core logo beside / above its name. The accent colour is set from
   the shed's Core theme colour (--cc-accent) by the page script. */
.cc-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cc-logo { max-height: 40px; max-width: 160px; object-fit: contain; display: block; }
.cc-logo[hidden] { display: none; }
