/* IDM Eswatini: one typeface and one size for the whole system (website, intranet, staff and applicant portals).
   Helvetica 11 pt, with Arial as the fallback on devices that do not have Helvetica. */
:root{--f-display:Helvetica,"Helvetica Neue",Arial,"Liberation Sans",sans-serif;--f-body:Helvetica,"Helvetica Neue",Arial,"Liberation Sans",sans-serif;--f-mono:Helvetica,"Helvetica Neue",Arial,"Liberation Sans",sans-serif;
 /* The IDM palette: green, brown, lime, cyan and orange. Black is never a brand colour, so no --idm-black token
    is defined; color-scheme below also stops browsers rendering native controls (selects, checkboxes, date
    pickers, scrollbars) in a dark/black theme, regardless of the visitor's device setting. */
 color-scheme:light;
 --idm-green:var(--brand-primary,#307C48);--idm-brown:#1b1b1b;--idm-lime:#C9DC4B;--idm-cyan:#00AEEF;--idm-orange:#DF9137;
 /* Validation colours used everywhere: confirmation/success messages are green, error/invalid messages are red.
    Defined globally so --ok/--bad resolve consistently on every page, not only the ones with their own copy. */
 --ok:var(--brand-primary,#307C48);--ok-bg:#E3F2E8;--ok-bd:#BEE3CE;--bad:#8A4B16;--bad-bg:#FBEAEA;--bad-bd:#F0C4C0;
 /* Form input borders: the same light-green border as the staff/applicant sign-in pages, applied everywhere so
    every form on the site looks the same. */
 --input-border:var(--brand-primary,#307C48);--input-border-focus:var(--brand-primary,#307C48)}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=submit]):not([type=button]):not([type=image]),
select,textarea{border:2px solid var(--input-border)}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=submit]):not([type=button]):not([type=image]):focus,
select:focus,textarea:focus{outline:none;border-color:var(--input-border-focus);box-shadow:0 0 0 3px rgba(0,127,72,.15)}
input[aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"],.field.err input,.field.err select,.field.err textarea{border-color:var(--bad)!important}
html{font-size:11pt;-webkit-text-size-adjust:100%;text-size-adjust:100%;color-scheme:light}
html body,html body *:not(code):not(pre):not(kbd):not(samp):not(svg):not(svg *){font-family:Helvetica,"Helvetica Neue",Arial,"Liberation Sans",sans-serif!important}
html body code,html body pre,html body kbd,html body samp{font-family:"Courier New",Courier,monospace!important}
body{font-size:11pt;line-height:1.55;color:#000000}
input,select,textarea,button{font-size:11pt}
h1,h2,h3,h4,h5,h6{font-weight:700}

html body svg text,html body svg tspan,html body svg textPath{font-family:Helvetica,"Helvetica Neue",Arial,sans-serif!important}

/* Hyperlinks are not bold: text links, menu links and footer links use the normal weight (buttons keep their weight) */
html body a:not(.btn):not([class*="btn"]):not(.nget):not(.tbtn):not(.tb):not(.ph-btn):not(.st-apply):not(.st-dl):not(.hdr-apply):not(.tb-pill):not(.tb-intra):not(.ac-btn):not(.sp-b1):not(.sp-b2):not(.cn-top>a),
html body .view a b,html body .view a strong,html body footer a b,html body .cn-t b,html body .crumbs a,html body .ft-col a{font-weight:400!important}
html body .hn-card .hn-body b,html body .np-card h3,html body .dcard b,html body .og-n b,html body .og-m b,html body .ntrow h3{font-weight:700!important}
html body .view p a,html body .view li a,html body .view td a,html body .view dd a,html body .muted a{font-weight:400!important}

/* Clear type (10 Nov 2026) */
html body,html body button,html body input,html body select,html body textarea{font-family:"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
html body{color:#1f2a24;line-height:1.6}
html body h1,html body h2{color:var(--brand-primary,#307C48)}

/* ---------- Staff intranet and portal pages: professional layout (11 Nov 2026) ---------- */
html body .tiles{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;gap:14px!important}
html body .tile{background:#fff!important;border:1px solid #e3e8e5!important;border-top:4px solid var(--brand-primary,#307C48)!important;border-radius:14px!important;box-shadow:0 6px 18px -14px rgba(0,40,25,.45)!important;transition:transform .2s,box-shadow .2s!important}
html body .tile:hover{transform:translateY(-3px);box-shadow:0 16px 30px -18px rgba(0,40,25,.5)!important}
html body .tile b{color:#1f2a24!important;font-weight:700!important}
html body .tile small{color:#4b5a52!important}
html body #side{background:#fff!important;border:1px solid #e3e8e5!important;border-radius:14px!important;padding:8px!important}
html body #side button,html body #side a{border-radius:9px!important;color:#1f2a24!important;font-weight:600!important}
html body #side button.on{background:#EAF6EF!important;color:var(--brand-primary,#307C48)!important;box-shadow:inset 3px 0 0 #DF9137!important}

/* every printed page and PDF is A4 */
@page{size:A4}

/* Table actions (16 Nov 2026): clear, labelled buttons that are easy to see and press */
table .acts { display: flex !important; flex-wrap: wrap; gap: 6px; align-items: center; }
table .acts .ib { display: inline-flex !important; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px !important; border-radius: 9px !important; border: 1.5px solid var(--brand-primary,#307C48) !important; background: #fff !important; color: var(--brand-primary,#307C48) !important; font-weight: 700 !important; font-size: .85rem !important; line-height: 1.2; cursor: pointer; white-space: nowrap; }
table .acts .ib svg { width: 17px; height: 17px; flex: none; }
table .acts .ib:hover, table .acts .ib:focus-visible { background: var(--brand-primary,#307C48) !important; color: #fff !important; }
table .acts .ib:focus-visible { outline: 3px solid #C9DC4B; outline-offset: 2px; }
table .acts button:not(.ib), table .acts a { min-height: 34px; padding: 6px 12px; border-radius: 9px; border: 1.5px solid var(--brand-primary,#307C48); background: #fff; color: var(--brand-primary,#307C48); font-weight: 700; font-size: .85rem; line-height: 1.2; white-space: nowrap; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
table .acts button:not(.ib):hover, table .acts a:hover { background: var(--brand-primary,#307C48); color: #fff; }
table .acts button.ok, table .acts button.go { background: var(--brand-primary,#307C48); color: #fff; }
table .acts button.ok:hover, table .acts button.go:hover { background: #004d2b; }
table .acts button.no, table .acts button.bad, table .acts button.danger { border-color: #8A4B16; color: #8A4B16; }
table .acts button.no:hover, table .acts button.bad:hover, table .acts button.danger:hover { background: #8A4B16; color: #fff; }

/* Table actions: give the action column room so every label is readable (16 Nov 2026) */
table td:has(> .acts) { min-width: 250px; }
table .acts { min-width: 230px; }
table .acts .ib, table .acts button:not(.ib), table .acts a { flex: none; }

/* Labelled table buttons size to their words, and the actions column stays in view while the table scrolls sideways (16 Nov 2026) */
table .acts .ib { width: auto !important; height: auto !important; min-width: 0; }
table td:has(> .acts) { position: sticky; right: 0; background: #fff; z-index: 2; box-shadow: -8px 0 10px -10px rgba(0, 40, 20, .35); }

/* 18 Nov 2026: phones: a row of action buttons wraps inside its table cell instead of pushing the page wider than the screen. */
@media (max-width: 640px) {
  table .acts { min-width: 0; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .card, .ut-card { box-sizing: border-box; max-width: 100%; }
}
@media (max-width: 640px) {
  .ut-pane { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 640px) {
  input, select, textarea { max-width: 100%; box-sizing: border-box; }
  input[type=file] { width: 100%; }
  form.row { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 640px) {
  label { min-width: 0; max-width: 100%; }
  select { width: 100% !important; max-width: 100%; }
  code, pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
}

/* 18 Nov 2026: the staff accounts cards count their padding inside their width, at every screen size. */
.ut-card { box-sizing: border-box; max-width: 100%; }
.ut-pane { grid-template-columns: minmax(0, 1fr); }
/* 22 Nov 2026: on desktop, table column labels stay on one line instead of wrapping across several lines. */
@media (min-width:900px){table th{white-space:nowrap}}
