/* ---------------------------------------------------------------------------
   LCE Knowledge Hub — "calm clinical"
   The design system approved for the assistant on 12 September 2026, carried over
   so the hub and the assistant read as one product: brand blue as the structural
   colour, yellow as the single accent, cool neutrals, one typeface in two weights.
   Every control has a hover, a focus and a disabled state.
   --------------------------------------------------------------------------- */
@import url('/brand/fonts/nunito-sans.css');

:root{
  --blue:#004494; --blue-700:#003a7e; --blue-800:#002f66; --blue-100:#dbe5f5; --blue-50:#eef3fb; --blue2:#4073af;
  --yellow:#ffd617;
  --ink:#1f2933; --ink-2:#3e4c59; --muted:#6b7785; --faint:#9aa5b1;
  --bg:#f5f7fa; --card:#fff; --line:#e4e9f0; --line-2:#eef1f5; --row-hover:#f0f5fc;
  --ok:#1f7a4d; --ok-bg:#e3f3ea; --warn:#8a6d13; --warn-bg:#fff3cf;
  --bad:#b3261e; --bad-bg:#fbe5e3; --info:#2f5f9e; --info-bg:#e6eef9;
  --radius:10px; --radius-sm:8px;
  --shadow:0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.04);
  --focus:0 0 0 3px rgba(0,68,148,.16);
}

*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);
     font-family:"Nunito Sans","Segoe UI",system-ui,-apple-system,sans-serif;
     font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
a{color:var(--blue)} a:hover{color:var(--blue-700)}
h1,h2,h3{margin:0;font-weight:700;color:var(--ink)}

/* ---- controls ---- */
input,select,textarea{width:100%;height:36px;padding:0 11px;border:1px solid #cfd7e2;
  border-radius:var(--radius-sm);font:inherit;font-size:13.5px;color:var(--ink);background:#fff;margin-bottom:10px}
textarea{height:auto;min-height:88px;padding:9px 11px;line-height:1.45;resize:vertical}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--blue);box-shadow:var(--focus)}
input::placeholder,textarea::placeholder{color:var(--faint)}

button{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 14px;
  border-radius:var(--radius-sm);border:1px solid transparent;font:inherit;font-weight:600;font-size:13.5px;
  line-height:1;cursor:pointer;white-space:nowrap;background:var(--blue);color:#fff;
  transition:background .12s,border-color .12s,color .12s,box-shadow .12s}
button:hover{background:var(--blue-700)} button:active{background:var(--blue-800)}
button.sec{background:#fff;color:var(--blue);border-color:#c7d3e6}
button.sec:hover{background:var(--blue-50);border-color:var(--blue)}
button.ghost{background:transparent;color:var(--ink-2)}
button.ghost:hover{background:var(--blue-50);color:var(--blue)}
button.mini{height:30px;padding:0 10px;font-size:12.5px;border-radius:7px}
button:disabled{opacity:.5;cursor:not-allowed}
button:focus-visible{outline:none;box-shadow:var(--focus)}

/* ---- shell ---- */
.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}
.side{position:sticky;top:0;height:100vh;background:var(--blue);color:#fff;
  display:flex;flex-direction:column;padding:14px 12px;gap:4px}
.side .brand{padding:8px 8px 16px;border-bottom:1px solid rgba(255,255,255,.14);margin-bottom:6px}
.side .brand img{width:208px;display:block}
.side .grp{font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  color:rgba(255,255,255,.55);padding:10px 12px 3px}
.side nav{display:flex;flex-direction:column;gap:1px}
.side nav a{display:flex;align-items:center;gap:10px;height:32px;padding:0 12px;border-radius:8px;
  color:rgba(255,255,255,.86);font-size:13.5px;font-weight:600;text-decoration:none;position:relative}
.side nav a:hover{background:rgba(255,255,255,.10);color:#fff}
.side nav a.active{background:rgba(255,255,255,.16);color:#fff}
.side nav a.active::before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:3px;
  border-radius:2px;background:var(--yellow)}
.main{min-width:0;display:flex;flex-direction:column}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;
  padding:10px 28px;background:#fff;border-bottom:1px solid var(--line)}
.topbar .crumbs{font-size:12.5px;color:var(--muted);margin-bottom:1px}
.topbar h2{font-size:19px}
.content{padding:24px 28px;display:flex;flex-direction:column;gap:20px}

/* ---- cards & tables ---- */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:18px 20px;box-shadow:var(--shadow)}
.card h3{font-size:15px;margin:0 0 14px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}

table{width:100%;border-collapse:separate;border-spacing:0;font-size:13.5px}
th,td{text-align:left;padding:0 14px;border-bottom:1px solid var(--line-2);vertical-align:middle}
th{height:38px;color:var(--muted);font-weight:700;font-size:11.5px;letter-spacing:.06em;
  text-transform:uppercase;background:#f8fafc;white-space:nowrap}
td{height:46px;padding-top:7px;padding-bottom:7px}
tr:hover td{background:var(--row-hover)}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}

/* ---- status pills ----
   The rendition lifecycle is the thing a user most needs to read at a glance:
   pending → machine_translated → machine_validated → approved, with outdated and
   failed off to the side. One colour family per meaning, never per language. */
.pill{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:11px;
  font-size:11.5px;font-weight:700;white-space:nowrap}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.8}
.pill.approved,.pill.ok,.pill.published{background:var(--ok-bg);color:var(--ok)}
.pill.machine_validated,.pill.in_review{background:var(--info-bg);color:var(--info)}
.pill.machine_translated,.pill.pending,.pill.in_translation{background:var(--warn-bg);color:var(--warn)}
.pill.failed,.pill.rejected{background:var(--bad-bg);color:var(--bad)}
.pill.outdated,.pill.draft,.pill.retired{background:#eef1f5;color:var(--muted)}

/* ---- language chips ---- */
.lang{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 8px;border-radius:6px;
  border:1px solid var(--line);background:#fff;font-size:12px;font-weight:700;color:var(--ink-2);
  text-transform:uppercase;letter-spacing:.04em}
.lang.on{border-color:var(--blue);background:var(--blue-50);color:var(--blue)}
.lang.missing{color:var(--faint);border-style:dashed}

.muted{color:var(--muted)} .faint{color:var(--faint)}
.hint{font-size:11.5px;color:var(--faint)}

/* ---- documents ---- */
.tw{overflow-x:auto}
.chips{display:flex;gap:4px;flex-wrap:nowrap}
.lang.st-approved{border-color:#9fd3b6;background:var(--ok-bg);color:var(--ok)}
.lang.st-machine_validated{border-color:#a9c3e8;background:var(--info-bg);color:var(--info)}
.lang.st-machine_translated,.lang.st-pending{border-color:#ecd68a;background:var(--warn-bg);color:var(--warn)}
.lang.st-failed{border-color:#f0b7b2;background:var(--bad-bg);color:var(--bad)}
.lang.st-outdated{border-style:dashed;color:var(--muted)}
.lang.st-source{border-color:var(--ink-2);background:var(--ink-2);color:#fff}
.lang .dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.flash.warn{background:var(--warn-bg);color:var(--warn)}
.kv{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px;font-size:13.5px;margin:0}
.kv dt{color:var(--muted)} .kv dd{margin:0}
.bar{position:relative;height:6px;width:110px;border-radius:3px;background:var(--line-2);overflow:hidden}
.bar i{position:absolute;left:0;top:0;bottom:0;background:var(--ok)}
.bar i.rv{background:var(--warn)}
.stat{font-size:22px;font-weight:700} .stat small{font-size:12px;font-weight:600;color:var(--muted)}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:4px 16px}
.form-grid .wide{grid-column:1/-1}
label.hint{display:block;margin-bottom:3px}
.checks{display:flex;flex-wrap:wrap;gap:6px 14px;margin:4px 0 10px}
.checks label{display:inline-flex;align-items:center;gap:6px;font-size:13.5px}
.checks input{width:auto;height:auto;margin:0}
details.qa summary{cursor:pointer;list-style:none;display:inline-flex}
details.qa summary::-webkit-details-marker{display:none}
details.qa ul{margin:8px 0 0;padding-left:18px;font-size:12.5px;max-width:420px}
td.act{white-space:nowrap;text-align:right}
td.act form{margin-left:4px}
.drop{border:2px dashed #c7d3e6;border-radius:var(--radius);padding:26px;text-align:center;background:var(--blue-50)}
.drop.over{border-color:var(--blue);background:var(--blue-100)}
.drop input{width:auto;height:auto;margin:10px auto 0;border:0;background:transparent}
.title-cell a{font-weight:700;text-decoration:none;color:var(--ink)} .title-cell a:hover{color:var(--blue)}
.title-cell .hint{display:block;margin-top:2px}
@media (max-width:900px){.shell{grid-template-columns:1fr}.side{position:static;height:auto}
  .content{padding:16px}.topbar{padding:10px 16px}}
