/* Isilumko brand tokens — from the official Corporate Identity & Visual
   Language guide (Pantone 7622C / 432C / 429C / 433C / 431C / 295C).
   Fonts: the CI specifies Gotham (primary) / Verdana (secondary). Gotham is
   a paid/licensed font with no free web distribution, so Verdana — already
   the CI's own secondary font, a real system font everywhere — is used
   throughout instead. Flag to the user if licensed Gotham web font files
   become available later. */
:root {
  --ilk-maroon: #821D2A;       /* Pantone 7622C — primary */
  --ilk-dark: #252E34;         /* Pantone 432C — secondary wordmark colour */
  --ilk-grey: #AEB3BA;         /* Pantone 429C */
  --ilk-near-black: #00000C;   /* Pantone 433C — "activate" division */
  --ilk-staffing: #3B3C3E;     /* Pantone 431C — "staffing" division */
  --ilk-industrial: #041F4E;   /* Pantone 295C — "Industrial" division */

  --ilk-off-white: #FBFAF9;
  --ilk-border: #E4DFDA;
  --ilk-danger: #B3261E;
  --ilk-success: #2E6F5E;

  /* Light tints of the CI maroon/grey, for accent backgrounds (table header
     bands, toolbars) — derived from --ilk-maroon and --ilk-grey, not a
     separate invented colour. */
  --ilk-maroon-tint: #F3E4E6;
  --ilk-maroon-tint-strong: #E9CDD1;
  --ilk-grey-tint: #F1F1F2;

  --font-heading: Verdana, "Segoe UI", sans-serif;
  --font-body: Verdana, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ilk-off-white);
  color: var(--ilk-dark);
  font-family: var(--font-body);
  font-size: 14px;
}

h1, h2, h3 { font-family: var(--font-heading); margin: 0; }

/* ---------------------------------------------------------------- */
/* App shell: top bar + section tabs, shared by all three sections   */
/* ---------------------------------------------------------------- */
.ilk-shell-header {
  background: var(--ilk-dark);
  color: var(--ilk-off-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.ilk-shell-brand { display: flex; align-items: center; gap: 12px; }
.ilk-shell-logo { height: 32px; width: 32px; border-radius: 7px; display: block; }
.ilk-shell-wordmark { font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.04em; font-size: 18px; }
.ilk-shell-tagline { font-size: 11px; color: var(--ilk-grey); letter-spacing: 0.05em; }

.ilk-shell-tabs {
  display: flex;
  gap: 4px;
  background: var(--ilk-dark);
  padding: 0 24px;
  border-bottom: 3px solid var(--ilk-maroon);
}
.ilk-shell-tab {
  display: block;
  padding: 10px 18px;
  color: var(--ilk-grey);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
.ilk-shell-tab:hover { color: var(--ilk-off-white); }
.ilk-shell-tab.active {
  color: var(--ilk-off-white);
  border-bottom-color: var(--ilk-maroon);
  background: rgba(130, 29, 42, 0.18);
}

/* ---------------------------------------------------------------- */
/* Generic building blocks reused across all three sections          */
/* ---------------------------------------------------------------- */
.btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--ilk-maroon); color: #fff; }
.btn-primary:hover { background: #6a1722; }
.btn-ghost { background: transparent; color: var(--ilk-dark); border-color: var(--ilk-border); }
.btn-ghost:hover { background: #f1efec; }
.btn-danger { background: transparent; color: var(--ilk-danger); border-color: var(--ilk-danger); }
.btn-danger:hover { background: #fbebe9; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-link {
  background: none; border: none; color: var(--ilk-maroon);
  cursor: pointer; font-family: var(--font-body); font-size: 12.5px; font-weight: 700; padding: 4px 8px;
}
.btn-link:hover { text-decoration: underline; }

.card {
  background: #fff;
  border: 1px solid var(--ilk-border);
  border-radius: 10px;
}

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(37, 46, 52, 0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.modal-backdrop.hidden { display: none; }
.modal {
  background: #fff;
  border-radius: 10px;
  width: 640px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--ilk-border);
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.modal-header h2 { font-size: 18px; color: var(--ilk-maroon); }
.modal-close { background: none; border: none; font-size: 22px; line-height: 1; color: var(--ilk-grey); cursor: pointer; }
.modal-body { padding: 18px 22px; }
.modal-footer { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ilk-border); }
.footer-spacer { flex: 1; }

.hidden { display: none !important; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ilk-dark); color: #fff;
  padding: 12px 22px; border-radius: 8px; font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2); z-index: 200;
}
.toast.error { background: var(--ilk-danger); }
.toast.success { background: var(--ilk-success); }

table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ilk-staffing); background: #f7f5f2; padding: 10px 14px; border-bottom: 1px solid var(--ilk-border);
}
table.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--ilk-border); }
table.data-table tbody tr:hover { background: #fbf8f4; }
table.data-table tbody tr:last-child td { border-bottom: none; }
.empty-state { text-align: center; color: var(--ilk-grey); padding: 36px !important; }
