/* ==========================================================
   IPFingerprint AdminV2 — Master layout styles
   Follows the IPFingerprint Design System (ui_kits/portal/Chrome.jsx,
   components/core/NavBar.jsx, tokens/*).
   ========================================================== */

/* ---- Design System REFRESH tokens (Bootstrap 5.3 / IPF Admin shell) ---- */
:root {
  /* Refined brand green — cleaner, slightly deeper, more legible on white */
  --brand-green-700: #4d660f;
  --brand-green-600: #6b9430;
  --brand-green-500: #79a83b;
  --brand-green-450: #6f9e34;
  --brand-green-400: #9cc163;
  --brand-green-300: #cbe0a6;
  --brand-green-100: #eef5e1;
  --brand-lime:      #82a81e;

  --ink-900: #2b2b2b;
  --ink-800: #3d3d3d;
  --ink-700: #494949;
  --ink-600: #585858;
  --ink-500: #80807c;
  --ink-400: #9a9a96;
  --ink-300: #cbcbc6;

  --surface-page:   #f5f6f3;
  --surface-card:   #ffffff;
  --surface-muted:  #f3f4ef;
  --surface-soft:   #fafbf7;
  --surface-stripe: #faf9f6;
  --surface-dark:   #1b2128;

  --line:        #e8e7e1;
  --line-soft:   #e3e2db;
  --line-faint:  #f0efe9;
  --line-strong: #dad9d3;

  --radius-sm:   4px;
  --radius:      7px;
  --radius-md:   9px;
  --radius-pill: 999px;

  --shadow-card:   0 1px 2px rgba(30,40,15,.04), 0 4px 12px rgba(30,40,15,.05);
  --shadow-raised: 0 2px 6px rgba(30,40,15,.06), 0 10px 24px rgba(30,40,15,.08);
  --shadow-login:  1px 1px 30px rgba(153,153,153,.45);
}

/* ---- Remaining tokens (blue palette, semantic states, type, motion) ---- */
:root {
  --brand-blue-600: #0a4f72;
  --brand-blue-500: #0d638f;
  --brand-blue-300: #37b7f3;
  --brand-blue-100: #eef9ff;

  --success:    var(--brand-green-500);
  --success-bg: var(--brand-green-100);
  --danger:     #d12610;
  --danger-bg:  #fdecea;
  --warning:    #f7bc0b;
  --warning-bg: #fff8e1;
  --info:       #37b7f3;
  --info-bg:    #eef9ff;

  --text-body:    var(--ink-600);
  --text-heading: var(--ink-700);
  --text-strong:  var(--ink-900);
  --text-muted:   var(--ink-500);
  --text-faint:   var(--ink-400);
  --text-link:    var(--brand-green-700);

  --bg-app:       var(--surface-page);
  --bg-card:      var(--surface-card);
  --bg-card-head: var(--surface-muted);

  --accent:       var(--brand-green-500);
  --accent-hover: var(--brand-green-600);
  --accent-deep:  var(--brand-green-700);

  --font-sans: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --fw-light:    300;
  --fw-regular:  400;
  --fw-semibold: 600;
  --fw-bold:     700;

  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-22: 22px;

  --lh-tight:   1.2;
  --lh-snug:    1.43;
  --lh-relaxed: 1.6;

  --space-4:  10px;
  --space-5:  15px;
  --space-6:  20px;
  --space-7:  25px;
  --space-8:  30px;

  --shadow-modal: 0 5px 25px rgba(0,0,0,.25);
  --shadow-glow:  0 0 100px 10px rgba(139,183,73,.55);
  --shadow-inset: inset 0 1px 1px rgba(0,0,0,.075);

  --ease:     ease-in-out;
  --dur-fast: 0.1s;
  --dur:      0.15s;
  --dur-slow: 0.3s;
  --dur-glow: 1.5s;
}

/* ---- Base reset ---- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 13px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-13);
  line-height: var(--lh-snug);
  color: var(--text-body);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 6px 0 10px;
  color: var(--text-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  font-family: var(--font-sans);
}
h1 { font-size: var(--fs-20); }
h2 { font-size: var(--fs-16); }
h3 { font-size: var(--fs-14); }

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--accent-deep); text-decoration: underline; }

p { margin: 0 0 10px; }

hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
}

strong, b { font-weight: var(--fw-semibold); }
small { font-size: var(--fs-12); }

::selection { background: var(--brand-green-300); color: var(--ink-900); }

/* ==========================================================
   Admin shell — two-row chrome (Bootstrap 5.3 grid + IPF skin)
   shell.jsx → adm-* classes
   ========================================================== */

/* body */
.adm-body {
  margin: 0;
  background: var(--surface-page);
  font-family: var(--font-sans);
  color: var(--ink-600);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* top bar */
.adm-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-top: 11px;
  padding-bottom: 11px;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.adm-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.adm-brand__link { display: flex; align-items: center; text-decoration: none; }
.adm-brand img { height: 30px; display: block; }
.adm-brand__tag {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-green-700); background: var(--brand-green-100);
  border: 1px solid var(--brand-green-300); padding: 3px 8px; border-radius: var(--radius-pill);
}
.adm-top__right { display: flex; align-items: center; gap: 6px; }
.adm-iconbtn {
  position: relative; width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-500); cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.adm-iconbtn:hover { background: var(--surface-muted); color: var(--brand-green-600); }
.adm-dot {
  position: absolute; top: 7px; right: 8px; width: 6px; height: 6px;
  border-radius: var(--radius-pill); background: var(--danger); border: 1.5px solid #fff;
}
.adm-user {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 5px;
  border-radius: var(--radius-pill); cursor: pointer; color: var(--ink-700); font-size: 14px;
  transition: background var(--dur) var(--ease);
}
.adm-user:hover { background: var(--surface-muted); }
.adm-avatar {
  width: 28px; height: 28px; border-radius: var(--radius-pill); background: var(--brand-green-500); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none;
}
.adm-user__name { font-weight: 600; }
.adm-user .fa-caret-down { font-size: 11px; color: var(--ink-400); }
.adm-logout {
  font-size: 13px; color: var(--ink-500); text-decoration: none; padding-left: 10px; margin-left: 2px;
  border-left: 1px solid var(--line); display: inline-flex; align-items: center;
}
.adm-logout:hover { color: var(--brand-green-600); text-decoration: none; }

/* tab nav — Bootstrap collapsing navbar, IPF skin */
.adm-nav { flex: none; background: #fff; border-bottom: 1px solid var(--line); }
.adm-nav.navbar { padding: 0; }
.adm-nav__bar { display: flex; flex-wrap: wrap; align-items: center; width: 100%; max-width: 100%; }
.adm-nav__label { font-size: 13px; font-weight: 700; color: var(--ink-500); padding: 10px 0; }
.adm-nav__toggle {
  margin-left: auto; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink-600);
  background: #fff; padding: 6px 12px; font-size: 15px; line-height: 1; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.adm-nav__toggle:hover { background: var(--surface-muted); color: var(--brand-green-600); }
.adm-nav__toggle:focus { box-shadow: none; outline: none; }
.adm-nav__tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.adm-tab {
  position: relative; padding: 13px 16px; font-size: 14px; color: var(--ink-500); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease); white-space: nowrap; cursor: pointer;
}
.adm-tab:hover { color: var(--ink-800); text-decoration: none; }
.adm-tab--active { color: var(--brand-green-700); font-weight: 600; border-bottom-color: var(--brand-green-500); }

/* mobile collapse — hidden until toggled */
.adm-nav__collapse { display: none; width: 100%; }
.adm-nav__collapse--open { display: block; }

/* desktop: always visible, inline */
@media (min-width: 992px) {
  .adm-nav__collapse { display: flex !important; width: auto; flex: 1; }
}

@media (max-width: 991.98px) {
  .adm-nav__bar { justify-content: space-between; }
  .adm-nav__tabs { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 10px; }
  .adm-tab { padding: 12px 6px; margin-bottom: 0; border-bottom: 1px solid var(--line-faint); border-radius: 0; }
  .adm-tab:last-child { border-bottom: 0; }
  .adm-tab--active { border-bottom: 1px solid var(--line-faint); border-left: 3px solid var(--brand-green-500); padding-left: 11px; background: var(--brand-green-100); }
}

/* content + footer */
.adm-content { flex: 1; padding-top: 24px; padding-bottom: 24px; }
.adm-foot { flex: none; text-align: center; color: var(--ink-400); font-size: 11px; padding: 14px; }

/* page-level heading (used inside adm-content) */
.adm-crumb {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-400); margin-bottom: 6px;
}
.adm-h1 {
  margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink-900); display: flex; align-items: center; gap: 11px;
}
.adm-page-head { flex: none; margin-bottom: 18px; }

/* ==========================================================
   Page shell (legacy .ipf-shell / .ipf-page kept for portlet pages)
   ========================================================== */
.ipf-shell {
  min-height: 100vh;
  background: var(--bg-app);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
}

.ipf-page {
  flex: 1;
  padding: 26px 22px 40px;
  width: 100%;
  box-sizing: border-box;
}

.ipf-page__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.ipf-page__head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: var(--fw-semibold);
  color: var(--ink-800);
  letter-spacing: -0.015em;
}

.ipf-footer {
  text-align: center;
  color: var(--text-faint);
  font-size: var(--fs-11);
  padding: 18px;
  line-height: 1.7;
  border-top: 1px solid var(--line-faint);
}

/* ==========================================================
   Portlets (cards)
   Design system: components/core/Portlet.jsx
   White body, 1px #ddd border, 4px radius, subtle shadow.
   #eee title bar with caption + right-aligned tools.
   ========================================================== */
.ipf-portlet {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-7);
}

.ipf-portlet__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  background: var(--surface-muted);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}

.ipf-portlet__caption {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  color: var(--ink-700);
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
}
.ipf-portlet__caption > i { color: var(--brand-green-500); }

.ipf-portlet__tools {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.ipf-portlet__tool {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-500);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  transition: opacity var(--dur-fast) var(--ease);
  text-decoration: none;
}
.ipf-portlet__tool:hover { opacity: .6; text-decoration: none; color: var(--ink-700); }

.ipf-portlet__body { padding: var(--space-4) 18px; }
.ipf-portlet__body--flush { padding: 0; }

/* Portlet info-highlight glow (fades over 1.5s) */
.ipf-portlet--info {
  box-shadow: var(--shadow-card), var(--shadow-glow);
  animation: ipf-glow-fade var(--dur-glow) ease forwards;
}
@keyframes ipf-glow-fade {
  from { box-shadow: var(--shadow-card), var(--shadow-glow); }
  to   { box-shadow: var(--shadow-card); }
}

/* Grid helpers (mirrors Chrome.jsx .ipf-grid) */
.ipf-grid { display: grid; gap: 18px; }
@media (min-width: 900px) {
  .ipf-grid--stats   { grid-template-columns: repeat(4, 1fr); }
  .ipf-grid--8-4     { grid-template-columns: 2fr 1fr; }
  .ipf-grid--thirds  { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================
   Buttons
   Design system: components/core/Button.jsx
   Bootstrap-inspired, 4px radius, 14px label.
   ========================================================== */
.ipf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}

.ipf-btn--info {
  background: var(--brand-blue-500);
  color: #fff;
  border-color: var(--brand-blue-500);
}
.ipf-btn--info:hover {
  background: var(--brand-blue-600);
  border-color: var(--brand-blue-600);
  color: #fff;
  text-decoration: none;
}

.ipf-btn--default {
  background: #fff;
  color: var(--ink-700);
  border-color: var(--line-strong);
}
.ipf-btn--default:hover {
  background: var(--surface-muted);
  color: var(--ink-900);
  text-decoration: none;
}

.ipf-btn--success {
  background: var(--brand-green-500);
  color: #fff;
  border-color: var(--brand-green-500);
}
.ipf-btn--success:hover {
  background: var(--brand-green-600);
  border-color: var(--brand-green-600);
  color: #fff;
  text-decoration: none;
}

.ipf-btn--danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.ipf-btn--danger:hover { opacity: .88; text-decoration: none; color: #fff; }

.ipf-btn--sm {
  padding: 4px 10px;
  font-size: var(--fs-13);
}

/* ==========================================================
   Form controls
   ========================================================== */
.ipf-form-group { margin-bottom: 14px; }

.ipf-label {
  display: block;
  font-size: var(--fs-13);
  color: var(--ink-700);
  margin-bottom: 5px;
  font-weight: var(--fw-semibold);
}

.ipf-input-wrap { position: relative; }
.ipf-input-wrap i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  font-size: 13px;
  pointer-events: none;
}

.ipf-input {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: var(--fs-13);
  color: var(--ink-900);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: var(--transition-control, border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease));
  outline: none;
}
.ipf-input--icon { padding-left: 32px; }
.ipf-input:focus {
  border-color: var(--brand-green-400);
  box-shadow: var(--shadow-inset), 0 0 6px rgba(139, 183, 73, 0.25);
}
.ipf-input::placeholder { color: var(--ink-400); }

/* ==========================================================
   Alerts
   ========================================================== */
.ipf-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: var(--fs-13);
  border: 1px solid transparent;
  margin-bottom: 14px;
}
.ipf-alert--danger  { background: var(--danger-bg);  color: var(--danger);            border-color: #f5c2bb; }
.ipf-alert--success { background: var(--success-bg); color: var(--brand-green-700);   border-color: var(--brand-green-300); }
.ipf-alert--info    { background: var(--info-bg);    color: var(--brand-blue-600);    border-color: var(--brand-blue-300); }
.ipf-alert--warning { background: var(--warning-bg); color: #7a5c00;                  border-color: var(--warning); }

/* ==========================================================
   Login page — lg-* classes (login.jsx design)
   ========================================================== */
.lg {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 90% at 50% 0%, #fbfcfa 0%, var(--surface-page) 60%, #eef0ea 100%);
  font-family: var(--font-sans);
  overflow: hidden;
  padding: 32px 16px;
  box-sizing: border-box;
}

/* fingerprint watermark behind logo + card */
.lg-bg {
  position: absolute;
  left: 50%;
  top: -72px;
  transform: translateX(-50%);
  pointer-events: none;
  /* sit behind every sibling inside .lg-inner (logo, card, copy) */
  z-index: -1;
}
.lg-fp { width: min(560px, 94vw); height: auto; opacity: .8; }

.lg-inner {
  position: relative;
  z-index: 1;
  width: 380px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lg-logo {
  text-align: center;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lg-logo img { height: 42px; display: block; }
.lg-logo__tag {
  font-size: var(--fs-16);
  font-weight: 900;
  color: var(--brand-green-500);
  text-align: center;
  line-height: 1.43;
  letter-spacing: 1.9px;
  text-transform: uppercase;
}

.lg-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20,30,10,.04), 0 24px 50px -24px rgba(20,30,10,.28);
  padding: 30px 30px 26px;
  box-sizing: border-box;
}
.lg-title { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-900); }
.lg-sub   { margin: 6px 0 24px; font-size: 13.5px; color: var(--ink-500); }

.lg-form { display: grid; gap: 17px; }

/* field wrapper — label above input */
.ipf-field { display: flex; flex-direction: column; gap: 5px; }
.ipf-field__label { font-size: var(--fs-13); font-weight: 700; color: var(--ink-800); }
.ipf-field__icon { color: var(--ink-400); }

.lg-form .ipf-input {
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.lg-form .ipf-input:focus {
  background: #fff;
  border-color: var(--brand-green-400);
  box-shadow: 0 0 0 3px rgba(121,168,59,.16);
}

/* password field with show/hide toggle */
.lg-pw { position: relative; }
.lg-eye {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 38px;
  height: 34px;
  border: 0;
  background: none;
  color: var(--ink-400);
  cursor: pointer;
  font-size: 14px;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lg-eye:hover { color: var(--ink-700); }

.lg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -2px;
}
.ipf-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-13);
  color: var(--ink-700);
  cursor: pointer;
}
.ipf-check input { cursor: pointer; accent-color: var(--brand-green-500); }

.lg-forgot {
  font-size: var(--fs-13);
  color: var(--brand-green-700);
  text-decoration: none;
  font-weight: 600;
}
.lg-forgot:hover { text-decoration: underline; }

.lg-submit {
  width: 100%;
  justify-content: center;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 15px;
  border-radius: 8px;
  margin-top: 2px;
}

.lg-help {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: var(--fs-13);
  color: var(--ink-500);
}
.lg-help a { color: var(--brand-green-700); text-decoration: none; font-weight: 600; }
.lg-help a:hover { text-decoration: underline; }

.lg-copy { margin-top: 10px; font-size: 11px; color: var(--ink-400); text-align: center; }

@media (max-width: 575.98px) {
  .lg { padding: 22px 14px; }
  .lg-card { padding: 24px 20px 22px; border-radius: 12px; }
  .lg-bg { top: -48px; }
  .lg-fp { width: min(440px, 96vw); }
  .lg-logo { margin-bottom: 20px; }
  .lg-logo img { height: 38px; }
}

/* ==========================================================
   Badge / tag
   Design system: components/core/Badge.jsx
   ========================================================== */
.ipf-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-11);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}
.ipf-badge--success { background: var(--success-bg);       color: var(--brand-green-700); }
.ipf-badge--danger  { background: var(--danger-bg);        color: var(--danger); }
.ipf-badge--info    { background: var(--brand-blue-100);   color: var(--brand-blue-600); }
.ipf-badge--muted   { background: var(--surface-muted);    color: var(--ink-600); border: 1px solid var(--line); }
.ipf-badge--warning { background: var(--warning-bg);       color: #7a5c00; }

/* ==========================================================
   Data table
   Design system: components/core/DataTable.jsx
   Dark-olive header, zebra stripes, condensed, bordered.
   ========================================================== */
.ipf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-13);
}
.ipf-table thead th {
  background: var(--brand-green-700);
  color: #fff;
  font-weight: var(--fw-semibold);
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--brand-green-700);
}
.ipf-table tbody tr { border-bottom: 1px solid var(--line-faint); }
.ipf-table tbody tr:nth-child(even) { background: var(--surface-stripe); }
.ipf-table tbody tr:hover { background: var(--surface-muted); }
.ipf-table td { padding: 7px 10px; color: var(--ink-700); }
.ipf-table--bordered td,
.ipf-table--bordered th { border: 1px solid var(--line); }

/* ==========================================================
   Stat banner
   Design system: components/core/StatBanner.jsx
   Solid green rounded block, white text, icon + label + figure.
   ========================================================== */
.ipf-stat {
  background: var(--brand-green-450);
  border-radius: var(--radius);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.ipf-stat__icon { font-size: 22px; opacity: .85; flex: none; }
.ipf-stat__body { flex: 1; }
.ipf-stat__label { font-size: var(--fs-12); opacity: .9; line-height: 1.2; }
.ipf-stat__value { font-size: var(--fs-20); font-weight: var(--fw-semibold); line-height: 1.2; }

/* ==========================================================
   Utility
   ========================================================== */
.text-muted   { color: var(--text-muted) !important; }
.text-success { color: var(--brand-green-700) !important; }
.text-danger  { color: var(--danger) !important; }
.text-link    { color: var(--text-link) !important; }
.mt-0  { margin-top: 0 !important; }
.mb-0  { margin-bottom: 0 !important; }
.mt-1  { margin-top: var(--space-4) !important; }
.mb-1  { margin-bottom: var(--space-4) !important; }
.mb-2  { margin-bottom: var(--space-7) !important; }
.gap-1 { gap: var(--space-4); }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
