/* ──────────────────────────────────────────────────────────────────────────
   Atlas Group UGANDA — theme override.

   Loaded AFTER app.css. The South Sudan CRM keeps the original "Midnight
   Gold" navy; Uganda runs the same design in deep green so the two systems
   are impossible to confuse at a glance when both are open in tabs.

   Only the brand colours change. The semantic colours are deliberately left
   alone — won/lost/followup pills must mean the same thing in both systems:
     --st-won   sage green   (kept — a "Won" pill is small, on a light chip,
                              and never sits next to the solid brand bar)
     --st-lost  red
     --brand-amber gold      (kept — gold on green reads as well as on navy)
   ────────────────────────────────────────────────────────────────────────── */

:root{
  --brand-blue:#0f4032;        /* deep forest green — was #14243f navy      */
  --brand-blue-deep:#0a2c22;   /* darker, for hovers and the nav gradient    */
  --brand-blue-soft:#1d6b52;   /* mid green, for avatars and soft fills      */

  /* Paper warms very slightly towards green so the whole page feels of a
     piece rather than green furniture on a blue-grey page. */
  --paper-2:#f2f2ec;
  --paper-3:#e6e8df;
  --rule:#e3e7df;
}

/* The top bar hardcodes its gradient, so it needs restating. This is the
   single biggest "which system am I in?" cue. */
.topnav{
  background:linear-gradient(180deg,#0f4032,#0a2c22);
  box-shadow:0 2px 10px rgba(10,44,34,0.20);
}

/* Mobile drawer (app.css line ~583 hardcodes the navy panel) */
@media (max-width:1000px){
  .tn-menu{background:#11493a}
}

/* Section chips on forms hardcode the brand colour */
.section-num[data-section="A"]{background:#0f4032}
.section-title:has(.section-num[data-section="A"]){
  border-left-color:#0f4032;
  background:rgba(29,107,82,0.06);
}

/* "Submitted" stage shares the brand colour in app.css — keep them in step */
.stage.submitted{
  background:rgba(15,64,50,0.08);
  color:#0f4032;
  border-color:rgba(15,64,50,0.20);
}

/* A small country tag in the header, so the system names itself in words as
   well as colour — colour alone is no use to a colour-blind user. */
.tn-brand .tn-sub::after{
  content:"";
}
.tn-mark{
  background:var(--brand-amber);
  color:#0a2c22;
  box-shadow:0 2px 8px rgba(201,154,63,0.42);
}

/* ── UGX sizing: shillings run to ten digits and the inherited KPI type
      (30px) clips them. Same fix the mockup needed. ── */
.kpi-value{
  font-size:21px;
  letter-spacing:-.03em;
  font-family:'Geist Mono',monospace;
  font-weight:700;
}
.kpi-delta{font-size:11px}

/* Money cells: never wrap a ten-digit figure */
.value-cell,.money{white-space:nowrap}

/* Login card: give the "A" the same gold badge the top bar has, and stop the
   two-word name colliding with it. */
.login-brand .sb-mark{
  background:var(--brand-amber);
  color:#0a2c22;
  border-radius:10px;
  display:grid;
  place-items:center;
  font-weight:800;
  flex-shrink:0;
  box-shadow:0 2px 8px rgba(201,154,63,0.42);
}
.login-brand{display:flex;align-items:center;gap:13px}
.login-title{color:var(--brand-blue);line-height:1.15}

/* ── Tender Board ──────────────────────────────────────────────────────────
   The office whiteboard, on screen. Dense by design: the team reads it across
   the room, so rows stay short and the date column carries the urgency. */
.board-card{margin-bottom:18px}
.board-card .card-head{display:flex;justify-content:space-between;align-items:center;gap:12px}

.board-tbl{font-size:12.5px}
.board-tbl th{
  font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;
  white-space:nowrap;
}
.board-tbl td{padding:9px 10px;vertical-align:top}
.board-tbl tbody tr{cursor:pointer}
.board-tbl tbody tr:hover{background:var(--paper-2)}

.bd-date{white-space:nowrap}
.bd-date strong{display:block;font-family:'Geist Mono',monospace;font-size:12.5px}
.bd-days{font-size:10.5px;color:var(--muted)}
.bd-ngo{font-weight:700;color:var(--ink)}
.bd-sub{font-size:11.5px;color:var(--muted);line-height:1.35;margin-top:1px}
.bd-scope{font-size:11.5px;color:var(--ink-2);line-height:1.4}
.bd-dash{color:var(--rule);font-weight:700}
.bd-pill{
  display:inline-block;padding:2px 7px;border-radius:4px;font-size:10.5px;font-weight:700;
  background:var(--paper-3);color:var(--ink-2);letter-spacing:.03em;
}

/* Urgency lives on the left edge, like the coloured marker on the board */
.board-tbl tr.bd-soon td:first-child{box-shadow:inset 3px 0 0 var(--brand-amber)}
.board-tbl tr.bd-soon .bd-days{color:var(--brand-amber-deep);font-weight:700}
.board-tbl tr.bd-over td:first-child{box-shadow:inset 3px 0 0 var(--st-lost)}
.board-tbl tr.bd-over .bd-days{color:var(--st-lost);font-weight:700}

/* Printing gives the wall copy: board only, no chrome */
@media print{
  .topnav,.quick-access,.kpi-grid,.split,.card-head .btn,.breadcrumb{display:none !important}
  .board-card{border:none;box-shadow:none}
  .board-tbl{font-size:11px}
  .board-tbl tbody tr{cursor:default}
}

/* Board status: an editable cell, so it must read as writable without shouting */
.bd-status{
  width:100%;border:1px solid transparent;border-radius:5px;
  padding:5px 7px;font-size:12px;font-family:inherit;color:var(--ink);
  background:var(--paper-2);transition:border-color .12s,background .12s;
}
.bd-status::placeholder{color:var(--muted);font-style:italic}
.bd-status:hover{border-color:var(--rule)}
.bd-status:focus{outline:none;border-color:var(--brand-blue);background:#fff}
.bd-status.bd-saved{border-color:var(--st-won);background:rgba(93,138,95,0.10)}
.bd-status.bd-failed{border-color:var(--st-lost);background:rgba(176,70,58,0.10)}
.bd-hint{font-size:11px;color:var(--muted);font-style:italic;padding:9px 14px 2px}
@media print{ .bd-hint{display:none} .bd-status{background:none;border:none;padding:0} }

/* ── URA daily exchange rate strip ───────────────────────────────────────── */
.fx-bar{
  display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  background:linear-gradient(180deg,#0f4032,#0a2c22);color:#fff;
  border-radius:12px;padding:13px 18px;margin-bottom:16px;
  box-shadow:0 2px 10px rgba(10,44,34,0.18);
}
.fx-bar.fx-busy{opacity:.7}
.fx-label{display:flex;align-items:center;gap:11px;min-width:190px}
.fx-ic{font-size:20px;line-height:1}
.fx-title{font-size:12.5px;font-weight:800;letter-spacing:.03em}
.fx-sub{font-size:11px;opacity:.72;margin-top:1px}
.fx-sub strong{color:var(--brand-amber);font-weight:700}

.fx-rates{display:flex;gap:26px;flex-wrap:wrap;flex:1}
.fx-cell{min-width:132px}
.fx-cap{font-size:10px;letter-spacing:.09em;text-transform:uppercase;opacity:.66}
.fx-val{
  font-family:'Geist Mono',monospace;font-size:19px;font-weight:700;
  letter-spacing:-.02em;margin-top:2px;
}
.fx-note{font-size:10.5px;opacity:.56;margin-top:1px}

.fx-actions{display:flex;align-items:center;gap:12px}
.fx-refresh{
  background:rgba(255,255,255,0.12);border:none;color:#fff;cursor:pointer;
  width:30px;height:30px;border-radius:8px;font-size:15px;line-height:1;
}
.fx-refresh:hover{background:rgba(255,255,255,0.22)}
.fx-src{color:var(--brand-amber);font-size:11px;text-decoration:none}
.fx-src:hover{text-decoration:underline}

@media (max-width:820px){
  .fx-bar{gap:12px}
  .fx-rates{gap:16px}
  .fx-val{font-size:16px}
}
@media print{ .fx-bar{display:none} }
