:root {
  --pos-blue: #126ea7;
  --pos-blue-dark: #0d5c8d;
  --pos-green: #35aa49;
  --pos-text: #101010;
  --pos-bg: #dfe8eb;
  --pos-line: #c9d0d2;
  --pos-shadow: 0 2px 8px rgba(33, 42, 48, 0.18);
  --danger: #c43b32;
  --warn: #d9a923;
  --eaccn-navy: #082b3a;
  --eaccn-deep-green: #006f54;
  --eaccn-green: #07966f;
  --eaccn-mint: #dff4ec;
  --eaccn-pale-blue: #edf7fa;
  --eaccn-border: #dce7e8;
  --eaccn-muted: #60727d;
  --eaccn-white: #ffffff;
  --eaccn-shadow: 0 16px 40px rgba(15, 45, 58, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  color: var(--pos-text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

.eaccn-pos-page {
  display: block;
  min-height: 100vh;
  overflow: auto;
  background: #e6eef0;
}

.pos-frame {
  display: grid;
  grid-template-columns: 225px 1fr;
  width: 100vw;
  min-height: 100vh;
  min-height: 680px;
  overflow: visible;
  border: 0;
  background: var(--pos-bg);
  box-shadow: none;
}

.pos-frame[hidden],
.auth-view[hidden] {
  display: none !important;
}

.auth-view {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: #f7fbfc;
  color: #102437;
}

.security-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-height: 34px;
  padding: 0 clamp(24px, 4vw, 66px);
  background: #043d32;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
}

.security-strip span {
  color: #bdeade;
  font-size: 17px;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 310px 1fr 190px;
  align-items: center;
  gap: 24px;
  min-height: 80px;
  padding: 0 clamp(28px, 4vw, 66px);
  border-bottom: 1px solid rgba(16, 36, 55, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #082131;
  text-decoration: none;
}

.landing-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.landing-brand strong {
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 46px);
}

.landing-nav a,
.secure-login-link,
.landing-footer a {
  color: #061c2d;
  text-decoration: none;
  font-weight: 700;
}

.landing-nav a {
  position: relative;
  padding: 29px 0;
  font-size: 15px;
}

.landing-nav a.active,
.secure-login-link {
  color: #007f68;
}

.landing-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 3px;
  border-radius: 999px;
  background: #00866f;
}

.secure-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(0, 111, 84, 0.26);
  border-radius: 999px;
  font-size: 15px;
}

.secure-login-link span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #00866f;
  font-size: 20px;
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(440px, 0.95fr) minmax(430px, 1.05fr) minmax(350px, 436px);
  gap: clamp(18px, 2vw, 34px);
  align-items: center;
  min-height: 548px;
  padding: 30px clamp(28px, 4vw, 66px) 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 52%, rgba(223, 244, 236, 0.76), transparent 34%),
    linear-gradient(90deg, rgba(247, 252, 255, 0.98) 0%, rgba(237, 247, 250, 0.88) 48%, rgba(237, 247, 250, 0.98) 100%),
    #eef7f7;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: #d9f2ea;
  color: #007760;
  font-size: 14px;
  font-weight: 800;
}

.hero-pill b {
  font-size: 15px;
}

.hero-copy h1 {
  margin: 0;
  padding-top: 22px;
  color: #09263a;
  font-family: inherit;
  font-size: clamp(3rem, 4.5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy h1 span {
  color: var(--eaccn-green);
}

.hero-copy p {
  max-width: 540px;
  margin: 20px 0 0;
  color: #29435a;
  font-size: 19px;
  line-height: 1.55;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 32px;
}

.hero-badges span {
  display: inline-grid;
  grid-template-columns: 34px auto;
  align-items: center;
  gap: 10px;
  min-width: 132px;
  padding: 0 20px 0 0;
  margin-right: 18px;
  border-right: 1px solid rgba(27, 61, 78, 0.12);
  color: #203a50;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.hero-badges span:last-child {
  border-right: 0;
}

.mini-icon,
.feature-icon,
.trust-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: #e0f3ed;
  color: #00866f;
}

.mini-icon {
  width: 34px;
  height: 34px;
  font-style: normal;
}

.mini-icon::before,
.feature-icon::before,
.trust-icon::before {
  font-weight: 900;
  line-height: 1;
}

.mini-icon.shield::before,
.feature-icon.secure::before,
.trust-icon.data::before { content: "✓"; }
.mini-icon.chart::before,
.feature-icon.reports::before { content: "▥"; }
.mini-icon.users::before,
.feature-icon.hr::before,
.trust-icon.child::before { content: "♙"; }
.mini-icon.cloud::before { content: "☁"; }
.feature-icon.receipt::before { content: "▤"; }
.feature-icon.ledger::before { content: "□"; }
.trust-icon.community::before { content: "◇"; }
.trust-icon.ethics::before { content: "⚖"; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  max-width: 500px;
  margin-top: 30px;
  padding: 18px 16px;
  border: 1px solid rgba(27, 61, 78, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 45, 58, 0.08);
}

.hero-stats span {
  display: grid;
  justify-items: center;
  gap: 7px;
  border-right: 1px solid rgba(27, 61, 78, 0.16);
}

.hero-stats span:last-child {
  border-right: 0;
}

.hero-stats strong {
  color: #00866f;
  font-size: clamp(23px, 2vw, 31px);
  line-height: 1;
}

.hero-stats small {
  color: #29435a;
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  height: min(500px, 64vh);
  z-index: 1;
  pointer-events: none;
  align-self: end;
  overflow: hidden;
  border-radius: 0 0 120px 0;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(237, 247, 250, 0.85), rgba(237, 247, 250, 0.08) 26%, rgba(237, 247, 250, 0.05) 74%, rgba(237, 247, 250, 0.62)),
    linear-gradient(0deg, rgba(237, 247, 250, 0.64), rgba(237, 247, 250, 0) 40%);
}

.hero-visual::before {
  content: "";
  position: absolute;
  right: -62px;
  bottom: -70px;
  z-index: 2;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(7, 150, 111, 0.16);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.auth-card {
  position: relative;
  z-index: 3;
  min-width: 0;
  width: min(420px, 100%);
  justify-self: end;
  padding: 34px;
  border: 1px solid rgba(16, 36, 55, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 42px rgba(22, 49, 62, 0.18);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form h2 {
  margin: 0;
  color: #102437;
  font-size: 29px;
  line-height: 1.1;
}

.auth-subtitle {
  margin: -4px 0 12px;
  color: #5b6f82;
  font-size: 15px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #1b334a;
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d7e0e6;
  border-radius: 8px;
  background: #fff;
  color: #102437;
  font: inherit;
  outline: none;
}

.auth-form input:focus {
  border-color: #00866f;
  box-shadow: 0 0 0 3px rgba(0, 134, 111, 0.12);
}

.input-icon {
  position: relative;
  display: block;
}

.input-icon input {
  padding: 0 14px 0 42px;
}

.input-icon::before {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #7c8c98;
  font-weight: 900;
}

.input-icon.email::before { content: "✉"; }
.input-icon.lock::before { content: "▣"; }

.password-field.input-icon {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  align-items: center;
  border: 1px solid #d7e0e6;
  border-radius: 8px;
  background: #fff;
}

.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}

.password-toggle {
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #00866f;
  font-weight: 800;
  cursor: pointer;
}

.password-field.input-icon input {
  border: 0;
  box-shadow: none;
}

.auth-security-note {
  margin: 0;
  padding: 11px 14px 11px 42px;
  border: 0;
  border-radius: 8px;
  background: #e4f3ff;
  color: #284057;
  font-size: 13px;
  line-height: 1.45;
  position: relative;
}

.auth-security-note::before {
  content: "i";
  position: absolute;
  left: 15px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1c8ee8;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #00a682, #007b69);
  color: #fff;
  box-shadow: 0 10px 18px rgba(0, 126, 105, 0.2);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-submit[data-loading="true"]::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.8s linear infinite;
}

.auth-inline-status {
  margin: -2px 0 0;
  padding: 10px 12px;
  border: 1px solid #f0c9c9;
  border-radius: 10px;
  background: #fff4f4;
  color: #7e1f1f;
  font-size: 13px;
  line-height: 1.4;
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

.login-submit span {
  font-size: 25px;
  line-height: 1;
}

.auth-hint {
  margin: 0;
  color: #506477;
  font-size: 13px;
  line-height: 1.45;
}

.forgot-link {
  color: #007f68;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.landing-feature-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 28px clamp(28px, 4vw, 66px) 24px;
  background: #fff;
}

.landing-feature-row article {
  display: grid;
  grid-template-columns: 52px 1fr 18px;
  gap: 14px;
  min-height: 128px;
  align-items: center;
  padding: 20px 18px;
  border: 1px solid rgba(16, 36, 55, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 44, 55, 0.1);
}

.landing-feature-row h2 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #102437;
}

.landing-feature-row p {
  margin: 0;
  color: #3f566a;
  font-size: 13px;
  line-height: 1.45;
}

.landing-feature-row b:last-child {
  color: #007f68;
  font-size: 34px;
  line-height: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 26px;
}

.feature-icon.unified::before { content: "▦"; }

.trust-strip {
  display: grid;
  grid-template-columns: 1.55fr repeat(5, 1fr);
  gap: 0;
  align-items: center;
  padding: 30px clamp(28px, 4vw, 66px);
  background: #fbfdfe;
  border-top: 1px solid rgba(16, 36, 55, 0.06);
}

.trust-strip > div,
.trust-strip > span {
  min-height: 74px;
  padding-right: 24px;
}

.trust-strip > span {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  border-left: 1px solid rgba(16, 36, 55, 0.1);
  padding-left: 24px;
}

.trust-strip h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.trust-strip p,
.trust-strip small {
  margin: 0;
  color: #3f566a;
  font-size: 13px;
  line-height: 1.45;
}

.trust-strip strong {
  font-size: 13px;
  color: #102437;
}

.trust-icon {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  background: transparent;
  font-size: 31px;
}

.odpc-seal {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid #2f82c0;
  border-radius: 50%;
  color: #2f82c0;
  font-size: 12px;
}

.landing-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 70px;
  padding: 0 clamp(28px, 4vw, 66px);
  background: #062d40;
  color: #fff;
  font-size: 13px;
}

.landing-footer strong {
  font-weight: 700;
}

.landing-footer nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.landing-footer a {
  color: #fff;
  font-size: 13px;
}

.landing-footer i {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.pos-sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-right: 1px solid #bfc7ca;
  background: linear-gradient(180deg, #f8faf8 0%, #eef1f0 100%);
}

.brand-panel {
  min-height: 136px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid #d7ddde;
  text-align: center;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.sidebar-logo-image {
  width: 190px;
  max-height: 105px;
  border-radius: 4px;
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #f6faf8 0 34%, transparent 35%),
    conic-gradient(from 210deg, #1c76a8, #78bd65, #1c76a8, #78bd65, #1c76a8);
}

.brand-head {
  position: absolute;
  top: 14px;
  left: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1d679c;
}

.brand-ring {
  position: absolute;
  border: 3px solid #79bb62;
  border-top-color: transparent;
  border-radius: 50%;
}

.ring-one {
  inset: 8px 12px 9px 12px;
}

.ring-two {
  inset: 14px 17px 10px 17px;
  border-color: #1d679c;
  border-top-color: transparent;
}

.brand-name {
  color: #1d679c;
  font-size: 35px;
  font-weight: 800;
}

.brand-panel p {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.12;
}

.side-menu {
  padding-top: 9px;
}

.side-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 8px 14px 8px 25px;
  border: 0;
  border-bottom: 1px solid #d2d7d8;
  background: transparent;
  color: #0b0b0b;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.15;
}

.side-item:hover,
.side-item.active {
  background: #fff;
}

.side-item.active::before {
  position: absolute;
  left: 0;
  top: 17px;
  width: 5px;
  height: 43px;
  border-radius: 0 3px 3px 0;
  background: var(--pos-blue);
  content: "";
}

.menu-icon {
  position: relative;
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
}

.clipboard::before {
  width: 22px;
  height: 24px;
  border-radius: 4px;
  background: var(--pos-blue);
  content: "";
}

.clipboard::after {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  content: "";
}

.people::before {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--pos-blue);
  box-shadow: -9px 7px 0 -1px var(--pos-blue), 9px 7px 0 -1px var(--pos-blue);
  content: "";
}

.people::after {
  position: absolute;
  right: -1px;
  top: 3px;
  color: var(--pos-blue);
  font-size: 17px;
  font-weight: 800;
  content: "+";
}

.doc::before {
  width: 20px;
  height: 25px;
  border-radius: 2px;
  background: var(--pos-green);
  clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%);
  content: "";
}

.doc::after {
  position: absolute;
  top: 9px;
  width: 10px;
  height: 2px;
  background: #fff;
  box-shadow: 0 6px 0 #fff;
  content: "";
}

.ledger::before {
  width: 24px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--pos-green);
  border-bottom-width: 5px;
  box-shadow: 0 7px 0 -1px var(--pos-green), 0 14px 0 -1px var(--pos-green);
  content: "";
}

.gear::before,
.tab-gear::before {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #f7f7f7 0 21%, transparent 23%),
    conic-gradient(#1e6fa8 0 10%, transparent 10% 18%, #1e6fa8 18% 28%, transparent 28% 36%, #1e6fa8 36% 46%, transparent 46% 54%, #1e6fa8 54% 64%, transparent 64% 72%, #1e6fa8 72% 82%, transparent 82% 90%, #1e6fa8 90%);
  content: "";
}

.map::before {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(90deg, #196ca0 0 30%, #f1f7f5 30% 38%, #196ca0 38% 69%, #f1f7f5 69% 77%, #196ca0 77%);
  transform: skewY(-6deg);
  content: "";
}

.secure::before,
.tab-lock::before {
  display: block;
  width: 20px;
  height: 16px;
  border-radius: 3px;
  background: var(--pos-blue);
  content: "";
}

.secure::after,
.tab-lock::after {
  position: absolute;
  top: 1px;
  left: 7px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--pos-blue);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  content: "";
}

.current-user {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 63px;
  padding: 11px 16px;
  border-top: 1px solid #d2d7d8;
  font-size: 14px;
  line-height: 1.15;
}

.user-dot,
.avatar {
  border-radius: 50%;
  background: radial-gradient(circle at center 38%, #c6c9cc 0 21%, transparent 22%),
    radial-gradient(ellipse at center 85%, #c6c9cc 0 42%, transparent 43%),
    #e0e3e4;
}

.user-dot {
  width: 31px;
  height: 31px;
}

.pos-main {
  display: grid;
  grid-template-rows: 65px 40px minmax(0, 1fr) 29px;
  min-height: 100vh;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px 0 18px;
  background: linear-gradient(180deg, #1976ad 0%, #0f669a 100%);
  color: #fff;
}

.title-button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  font-weight: 500;
}

.top-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
}

.logout-button {
  min-height: 31px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.install-button {
  min-height: 31px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  background: #f4fbff;
  color: #0d5d89;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.top-icon,
.avatar {
  border: 0;
  cursor: pointer;
}

.bell {
  width: 18px;
  height: 18px;
  border-radius: 11px 11px 4px 4px;
  background: #fff;
  clip-path: polygon(50% 0, 73% 15%, 76% 58%, 100% 78%, 0 78%, 24% 58%, 27% 15%);
}

.apps {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 3px;
  padding: 0;
  background: transparent;
}

.apps i {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #fff;
}

.red-dot {
  position: absolute;
  top: -3px;
  right: 43px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e63636;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.avatar {
  width: 35px;
  height: 35px;
  border: 2px solid rgba(255, 255, 255, 0.33);
}

.module-tabs {
  display: flex;
  align-items: stretch;
  background: #eef1f0;
  border-bottom: 1px solid #ccd4d6;
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 138px;
  padding: 0 20px;
  border: 0;
  border-right: 1px solid #d0d7d9;
  background: transparent;
  color: #333;
  cursor: pointer;
  font-size: 16px;
}

.tab-hr {
  min-width: 93px;
  background: #1e78ad;
  color: #fff;
}

.tab.active {
  background: var(--pos-green);
  color: #fff;
}

.tab-people::before {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -7px 7px 0 -1px currentColor, 7px 7px 0 -1px currentColor;
  content: "";
  display: block;
}

.tab-bank::before {
  display: block;
  width: 20px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 32%, 0 32%, 0 45%, 13% 45%, 13% 86%, 3% 86%, 3% 100%, 97% 100%, 97% 86%, 87% 86%, 87% 45%, 75% 45%, 75% 86%, 62% 86%, 62% 45%, 38% 45%, 38% 86%, 25% 86%, 25% 45%, 0 45%, 0 32%);
  content: "";
}

.tab-lock {
  position: relative;
  width: 20px;
  height: 22px;
}

.tab-lock::before {
  background: currentColor;
  transform: translateY(5px);
}

.tab-lock::after {
  border-color: currentColor;
}

.tab-gear::before {
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #eef1f0 0 22%, transparent 23%),
    conic-gradient(currentColor 0 10%, transparent 10% 18%, currentColor 18% 28%, transparent 28% 36%, currentColor 36% 46%, transparent 46% 54%, currentColor 54% 64%, transparent 64% 72%, currentColor 72% 82%, transparent 82% 90%, currentColor 90%);
}

.app-view {
  min-height: 0;
  overflow: auto;
  background: #e6eef0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 31.5% 31.5% 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 15px 19px;
  min-height: 100%;
  padding: 19px 21px 20px 19px;
}

.card,
.status-card,
.action-card,
.panel,
.mini-card {
  border: 1px solid #d5dcde;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfbfa 0%, #f2f1ef 100%);
  box-shadow: var(--pos-shadow);
}

.card,
.panel,
.mini-card {
  position: relative;
  padding: 18px 20px;
}

.card.has-footer {
  padding-bottom: 41px;
}

.card h2,
.panel h2 {
  margin: 0 0 15px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.08;
}

.card p {
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.1;
}

.card footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 36px;
  padding: 10px 20px;
  border-top: 1px solid #d4d9da;
  color: #333;
  font-size: 14px;
}

.buttonish {
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.buttonish:hover,
.action-card:hover,
.status-card:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.clinic-metrics {
  display: flex;
  justify-content: space-between;
}

.big-number {
  margin-bottom: 9px;
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}

.side-numbers {
  display: grid;
  align-content: start;
  gap: 12px;
  color: #23933e;
  text-align: right;
}

.side-numbers strong {
  font-size: 30px;
  font-weight: 600;
}

.attendance-body {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: end;
  gap: 16px;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 87px;
  padding-bottom: 2px;
}

.bar-chart span {
  width: 18px;
  background: #cdd0d0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.bar-chart .green {
  background: #31aa4d;
}

.bar-chart .blue {
  background: #1583bf;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.action-card {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 151px;
  padding: 12px 8px 14px;
  border: 0;
  color: #fff;
  text-align: center;
  cursor: pointer;
}

.action-card.blue {
  background: linear-gradient(180deg, #1682bd 0%, #0870aa 100%);
}

.action-card.green {
  background: linear-gradient(180deg, #35b94f 0%, #2ba746 100%);
}

.action-card strong {
  margin-top: 4px;
  font-size: 16px;
}

.computer-art,
.staff-art {
  position: relative;
  width: 74px;
  height: 70px;
}

.computer-art .screen {
  position: absolute;
  left: 8px;
  top: 7px;
  width: 54px;
  height: 38px;
  border: 4px solid #20292c;
  border-radius: 2px;
  background: #e9eceb;
  box-shadow: inset 0 0 0 3px #fff;
}

.computer-art .screen::after {
  position: absolute;
  right: 9px;
  bottom: -13px;
  width: 27px;
  height: 5px;
  background: #20292c;
  box-shadow: 7px 7px 0 #20292c;
  content: "";
}

.chart-shape {
  position: absolute;
  left: 25px;
  top: 20px;
  width: 19px;
  height: 13px;
  border: 3px solid #299c46;
  background: #bfe0ca;
}

.cursor-hand {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 17px;
  height: 31px;
  border: 3px solid #20292c;
  border-radius: 8px 8px 10px 10px;
  background: #f4c394;
  transform: rotate(-18deg);
}

.staff-art .head {
  position: absolute;
  top: 7px;
  left: 27px;
  width: 26px;
  height: 30px;
  border: 3px solid #222;
  border-radius: 48% 48% 45% 45%;
  background: #f0c5a6;
}

.staff-art .head::before {
  position: absolute;
  top: -8px;
  left: -3px;
  width: 29px;
  height: 14px;
  border-radius: 14px 14px 4px 4px;
  background: #202323;
  content: "";
}

.staff-art .body {
  position: absolute;
  bottom: 5px;
  left: 16px;
  width: 44px;
  height: 32px;
  border: 3px solid #222;
  border-radius: 20px 20px 7px 7px;
  background: #7eb4d7;
}

.staff-art .badge {
  position: absolute;
  right: 5px;
  bottom: 15px;
  width: 22px;
  height: 22px;
  border: 3px solid #25682d;
  border-radius: 50%;
  background: #9cd087;
}

.revenue-value {
  margin-bottom: 7px;
  font-size: 36px;
  font-weight: 600;
}

.alert-row {
  display: grid;
  grid-template-columns: 28px 1fr 18px;
  align-items: center;
  gap: 4px;
  margin: 15px 0;
  font-size: 16px;
}

.warning {
  position: relative;
  display: inline-block;
  width: 0;
  height: 0;
  border-right: 12px solid transparent;
  border-bottom: 22px solid;
  border-left: 12px solid transparent;
}

.warning::before {
  position: absolute;
  left: -3px;
  top: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  content: "!";
}

.warning.red {
  border-bottom-color: #d34b42;
}

.warning.yellow {
  border-bottom-color: #e1b82d;
}

.status-stack {
  display: grid;
  grid-row: 2;
  grid-column: 3;
  grid-template-rows: repeat(3, 1fr);
  gap: 15px;
}

.status-card {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 78px;
  padding: 12px 13px 12px 24px;
  border: 0;
  color: #101010;
  text-align: left;
  cursor: pointer;
}

.status-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 7px;
  border-radius: 8px 0 0 8px;
  content: "";
}

.blue-line::before {
  background: #1472a8;
}

.green-line::before {
  background: #34ad4c;
}

.status-card span {
  font-size: 15px;
  font-weight: 600;
}

.status-card strong {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.12;
}

.workspace {
  display: grid;
  gap: 14px;
  padding: 18px;
  max-width: 1440px;
}

.accounting-workspace {
  max-width: none;
  align-content: start;
}

.workspace.nested {
  padding: 0;
  max-width: none;
}

.workspace.two-col {
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
}

.workspace.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace.workflow-fullscreen {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  align-content: start;
}

.workflow-fullscreen .panel {
  width: 100%;
}

.data-workspace-assessments {
  max-width: none;
  padding: 18px;
}

.data-workspace-assessments > .workspace.nested {
  max-width: none;
}

.assessment-fullscreen {
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
}

.assessment-fullscreen > .panel {
  min-width: 0;
}

.assessment-fullscreen .form-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.assessment-fullscreen .form-grid > .full,
.assessment-fullscreen .dhis2-gsed-panel,
.assessment-fullscreen .battery-panel,
.assessment-fullscreen .questionnaire-panel {
  grid-column: 1 / -1;
}

.assessment-fullscreen .battery-question-grid {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.assessment-fullscreen .battery-module summary {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fbfdfd;
  border-radius: 8px 8px 0 0;
}

.questionnaire-panel,
.dhis2-gsed-panel {
  grid-column: 1 / -1;
  box-shadow: none;
}

.questionnaire-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
}

.questionnaire-grid label {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #d8e0e3;
  border-radius: 8px;
  background: #fbfdfd;
}

.questionnaire-grid span {
  color: #26363d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.battery-panel {
  grid-column: 1 / -1;
}

.dhis-program-shell {
  border-color: #c7d6e2;
  background: #f7fafc;
}

.dhis-section-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 8px;
}

.dhis-section-list button {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid #cdd8df;
  border-left: 4px solid #7f9bad;
  border-radius: 6px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.dhis-section-list button.active {
  border-color: #126ea7;
  border-left-color: #126ea7;
  background: #eaf4fb;
}

.dhis-section-list span {
  color: #5c666a;
  font-size: 12px;
}

.battery-modules {
  display: grid;
  gap: 10px;
}

.battery-module {
  border: 1px solid #d8e0e3;
  border-radius: 8px;
  background: #fbfdfd;
}

.battery-module summary {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  cursor: pointer;
}

.battery-module summary strong {
  color: #123442;
}

.battery-module summary span {
  color: #5c666a;
  font-size: 13px;
}

.dhis-section-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 10px;
}

.dhis-section-toolbar span {
  min-height: 28px;
  padding: 6px 8px;
  border: 1px solid #d7e1e7;
  border-radius: 6px;
  background: #eef5f8;
  color: #34454d;
  font-size: 12px;
  font-weight: 800;
}

.battery-question-grid {
  padding: 0 12px 12px;
}

.dhis-data-element {
  position: relative;
}

.dhis-data-element em {
  color: #126ea7;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.dhis-data-element span::after {
  color: #bd3a31;
  content: " *";
}

input:invalid,
select:invalid,
textarea:invalid {
  border-color: #bd3a31;
  box-shadow: 0 0 0 2px rgba(189, 58, 49, 0.08);
}

.data-workspace .accounting-hero .btn-row {
  justify-content: flex-end;
}

.span-2 {
  grid-column: span 2;
}

.accounting-hero {
  background: linear-gradient(180deg, #ffffff 0%, #eef8fb 100%);
}

.security-panel {
  border-color: rgba(18, 110, 167, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf8 100%);
}

.secure-verification {
  display: grid;
  gap: 14px;
}

.verification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.verification-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d5dcde;
  border-radius: 8px;
  background: #f8fbfc;
}

.verification-grid span {
  color: #52636a;
}

.accounting-kpis .mini-card {
  box-shadow: none;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d3dcdf;
  border-radius: 8px;
  background: #f8fbfc;
}

.section-tabs button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #24323a;
  cursor: pointer;
  font-weight: 800;
}

.section-tabs button:hover {
  background: #e9f2f5;
}

.section-tabs button.active {
  border-color: #0d6da5;
  background: #126ea7;
  color: #fff;
}

.accounts-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.accounts-main,
.accounts-module-page,
.accounts-dashboard {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.accounts-side-nav {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #d5e0e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 44, 52, 0.08);
}

.accounts-nav-title {
  display: grid;
  gap: 2px;
  padding: 6px 6px 10px;
  border-bottom: 1px solid #e1e8ea;
}

.accounts-nav-title span,
.accounts-module-head span {
  color: #126ea7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.accounts-nav-title strong {
  font-size: 16px;
}

.accounts-side-nav button {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 58px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #21313a;
  text-align: left;
  cursor: pointer;
}

.accounts-side-nav button:hover,
.accounts-side-nav button:focus-visible {
  border-color: #bed3dc;
  background: #f4f9fb;
}

.accounts-side-nav button.active {
  border-color: #126ea7;
  background: #e9f5f9;
  box-shadow: inset 4px 0 0 #28a84a;
}

.accounts-side-nav button span {
  font-size: 14px;
  font-weight: 900;
}

.accounts-side-nav button small {
  color: #52636a;
  font-size: 12px;
  line-height: 1.25;
}

.accounts-mobile-nav {
  display: none;
}

.accounts-status-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #d4e1e5;
  border-radius: 8px;
  background: #f8fbfc;
}

.accounts-status-bar div {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 7px;
  background: #fff;
}

.accounts-status-bar span {
  display: block;
  color: #52636a;
  font-size: 12px;
  font-weight: 800;
}

.accounts-status-bar strong {
  display: block;
  overflow-wrap: anywhere;
}

.finance-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px;
}

.finance-metric {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid #d8e2e5;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(23, 44, 52, 0.06);
}

.finance-metric:hover,
.finance-metric:focus-visible {
  border-color: #126ea7;
}

.finance-metric span {
  color: #52636a;
  font-size: 13px;
  font-weight: 800;
}

.finance-metric strong {
  font-size: 22px;
  line-height: 1.1;
}

.status-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #cbd6d9;
  background: #f6f8f9;
  color: #2d3b42;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.status-token b {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e7ecef;
  font-size: 11px;
}

.status-token.green {
  border-color: #b7dfc1;
  background: #edf8f0;
  color: #167534;
}

.status-token.warn {
  border-color: #ead49b;
  background: #fff8e6;
  color: #8a6200;
}

.status-token.red {
  border-color: #efb7b7;
  background: #fff0f0;
  color: #a72020;
}

.status-token.grey {
  border-color: #d1d6d8;
  background: #f2f4f5;
  color: #59656b;
}

.accounts-health-panel {
  grid-column: 1 / -1;
}

.finance-chart-panel {
  min-width: 0;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(120px, 2fr) 46px;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  font-size: 13px;
  font-weight: 800;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #e8eef1;
  overflow: hidden;
}

.bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #126ea7;
}

.bar-track i.green {
  background: #28a84a;
}

.bar-track i.warn {
  background: #d99a19;
}

.bar-track i.red {
  background: #ca3d3d;
}

.accounts-module-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid #d7e1e4;
  border-radius: 8px;
  background: #fff;
}

.accounts-module-head h2 {
  margin: 2px 0 4px;
  font-size: 22px;
}

.accounts-module-head p {
  max-width: 860px;
  margin: 0;
  color: #52636a;
}

.accounts-nav-group {
  border-top: 1px solid #edf2f4;
  padding-top: 6px;
}

.accounts-nav-group summary {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 8px;
  color: #64727a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.accounts-nav-group summary:focus-visible {
  outline: 3px solid rgba(18, 110, 167, 0.24);
  outline-offset: 2px;
}

.accounts-nav-group > div {
  display: grid;
  gap: 4px;
  padding: 2px 0 7px;
}

.accounts-nav-group button {
  min-height: 48px;
  border-radius: 7px;
}

.accounts-executive-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid #d5e1e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 44, 52, 0.06);
}

.accounts-executive-header span {
  color: #52636a;
  font-size: 13px;
  font-weight: 900;
}

.accounts-executive-header h1 {
  margin: 3px 0 5px;
  color: #102c3a;
  font-size: 30px;
  line-height: 1.12;
}

.accounts-executive-header p {
  margin: 0;
  color: #52636a;
  font-size: 16px;
}

.executive-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  max-width: 680px;
}

.executive-kpis {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.finance-metric.primary {
  min-height: 132px;
  padding: 18px;
  border-radius: 12px;
}

.finance-metric.primary strong {
  font-size: 28px;
}

.finance-metric.secondary {
  min-height: 104px;
  box-shadow: none;
}

.accounts-dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d8e2e5;
  border-radius: 10px;
  background: #f8fbfc;
}

.accounts-dashboard-tabs button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #25343b;
  cursor: pointer;
  font-weight: 900;
}

.accounts-dashboard-tabs button:hover,
.accounts-dashboard-tabs button:focus-visible {
  border-color: #b9d1dc;
  background: #fff;
}

.accounts-dashboard-tabs button.active {
  border-color: #126ea7;
  background: #126ea7;
  color: #fff;
}

.accounts-dashboard-view,
.dashboard-two-col {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.dashboard-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.executive-panel {
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(23, 44, 52, 0.05);
}

.bank-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
}

.bank-summary-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #d9e3e6;
  border-radius: 12px;
  background: #fff;
}

.bank-summary-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.bank-summary-card header div,
.bank-summary-card dl,
.grant-health-row dl {
  min-width: 0;
}

.bank-summary-card header strong,
.bank-summary-card header span,
.bank-summary-card p,
.grant-health-row strong,
.grant-health-row span {
  overflow-wrap: anywhere;
}

.bank-summary-card header span,
.bank-summary-card p {
  display: block;
  color: #52636a;
  margin: 2px 0 0;
}

.bank-summary-card dl,
.grant-health-row dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.bank-summary-card dt,
.grant-health-row dt {
  color: #62727a;
  font-size: 12px;
  font-weight: 900;
}

.bank-summary-card dd,
.grant-health-row dd {
  margin: 2px 0 0;
  color: #152d38;
  font-size: 15px;
  font-weight: 900;
}

.approval-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.approval-summary-strip div {
  padding: 10px;
  border: 1px solid #dce5e8;
  border-radius: 9px;
  background: #f8fbfc;
}

.approval-summary-strip span {
  display: block;
  color: #62727a;
  font-size: 12px;
  font-weight: 900;
}

.approval-summary-strip strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
}

.grant-health-list,
.risk-list,
.status-list,
.agent-trail-list,
.activity-feed-panel {
  display: grid;
  gap: 10px;
}

.grant-health-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) minmax(280px, 1.4fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dce5e8;
  border-radius: 10px;
  background: #fff;
}

.grant-health-row span {
  display: block;
  color: #52636a;
}

.grant-progress {
  height: 12px;
  border-radius: 999px;
  background: #e8eef1;
  overflow: hidden;
}

.grant-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #28a84a;
}

.risk-list button {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid #dce5e8;
  border-radius: 9px;
  background: #fff;
  color: #21313a;
  text-align: left;
  cursor: pointer;
}

.risk-list span,
.status-list span {
  color: #52636a;
}

.status-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #edf2f4;
}

.agent-trail-list article {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dce5e8;
  border-radius: 9px;
  background: #fbfdfd;
}

.activity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.activity-filters span {
  padding: 5px 8px;
  border: 1px solid #d8e2e5;
  border-radius: 999px;
  background: #f8fbfc;
  color: #52636a;
  font-size: 12px;
  font-weight: 900;
}

.activity-group {
  display: grid;
  gap: 8px;
}

.activity-group h3 {
  margin: 8px 0 0;
  color: #52636a;
  font-size: 14px;
}

.activity-group article {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dce5e8;
  border-radius: 9px;
  background: #fff;
}

.activity-group article span {
  color: #126ea7;
  font-size: 12px;
  font-weight: 900;
}

.activity-group article strong,
.activity-group article em {
  overflow-wrap: anywhere;
}

.activity-group article em {
  color: #62727a;
  font-style: normal;
  font-size: 12px;
}

.empty-state {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px dashed #b9cbd3;
  border-radius: 10px;
  background: #f8fbfc;
  color: #52636a;
}

.empty-state strong {
  color: #21313a;
}

.liquidity-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.liquidity-totals div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d9e3e6;
  border-radius: 10px;
  background: #f8fbfc;
}

.liquidity-totals span,
.liquidity-totals small {
  color: #62727a;
  font-size: 13px;
  font-weight: 900;
}

.liquidity-totals strong {
  color: #102c3a;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.critical-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #e7c26b;
  border-left: 5px solid #d99a19;
  border-radius: 8px;
  background: #fff8e6;
  color: #6f4c00;
  font-weight: 900;
  line-height: 1.35;
}

.invoice-capture-panel {
  border-color: #bdd7e4;
  background: #fbfdfd;
}

.invoice-capture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.invoice-capture-grid label {
  display: grid;
  gap: 5px;
  color: #26363d;
  font-size: 13px;
  font-weight: 900;
}

.invoice-capture-grid .full {
  grid-column: 1 / -1;
}

.capture-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
}

.capture-progress span {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #d8e2e5;
  border-radius: 8px;
  background: #fff;
  color: #52636a;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.invoice-review-workspace .review-split {
  align-items: stretch;
}

.invoice-preview {
  min-height: 460px;
}

.invoice-preview .btn-row {
  align-self: end;
}

.review-details .table-wrap {
  max-height: 360px;
  overflow: auto;
}

.review-details table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.auto-fill-summary {
  border-color: #c9dfd0;
  background: #fbfffc;
}

.auto-fill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
}

.auto-fill-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8e6dd;
  border-radius: 8px;
  background: #fff;
}

.auto-fill-grid span {
  display: block;
  color: #52636a;
  font-size: 12px;
  font-weight: 900;
}

.auto-fill-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #173440;
}

.payment-request-workflow {
  max-width: 1600px;
}

.payment-request-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d8e2e5;
  border-radius: 10px;
  background: #f8fbfc;
}

.payment-request-tabs button,
.capture-stepper button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #26363d;
  cursor: pointer;
  font-weight: 900;
}

.payment-request-tabs button {
  padding: 8px 12px;
}

.payment-request-tabs button.active {
  border-color: #126ea7;
  background: #126ea7;
  color: #fff;
}

.capture-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #d8e2e5;
  border-radius: 10px;
  background: #fff;
}

.capture-stepper button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background: #f8fbfc;
}

.capture-stepper b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dfe8eb;
}

.capture-stepper button.done b,
.capture-stepper button.active b {
  background: #126ea7;
  color: #fff;
}

.capture-stepper button.active {
  border-color: #126ea7;
  background: #e9f5f9;
}

.payment-request-workflow .form-grid {
  align-items: start;
}

.payment-request-workflow .form-grid label {
  min-width: 0;
}

.payment-request-workflow .critical-notice.full {
  grid-column: 1 / -1;
}

.module-action-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.procurement-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
}

.procurement-flow div {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #d8e2e5;
  border-radius: 8px;
  background: #fff;
}

.procurement-flow b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #126ea7;
  color: #fff;
}

.status-select {
  min-height: 32px;
  min-width: 108px;
  padding: 5px 8px;
  border: 1px solid #cbd8dd;
  border-radius: 7px;
  background: #fff;
  color: #24323a;
  font-size: 13px;
  font-weight: 900;
}

.status-select:disabled {
  background: #f1f4f5;
  color: #6b777c;
  cursor: not-allowed;
}

.import-centre .finance-metrics {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.finance-metric.compact {
  min-height: 104px;
}

.import-drop-zone {
  min-height: 118px;
  place-content: center;
  padding: 18px;
  border: 2px dashed #9fb9c6;
  border-radius: 8px;
  background: #f7fbfd;
  text-align: center;
}

.import-drop-zone input {
  margin-top: 10px;
}

.import-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.import-progress span {
  padding: 9px 10px;
  border: 1px solid #d8e2e5;
  border-radius: 8px;
  background: #fff;
  color: #52636a;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.import-progress span.done {
  border-color: #b7dfc1;
  background: #edf8f0;
  color: #167534;
}

.import-progress span.active {
  border-color: #126ea7;
  background: #e9f5f9;
  color: #126ea7;
}

.import-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

.import-filter-grid label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
}

.review-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 14px;
  min-width: 0;
}

.document-preview {
  display: grid;
  gap: 10px;
  min-height: 360px;
  padding: 14px;
  border: 1px solid #cbd8dd;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18, 110, 167, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(18, 110, 167, 0.05) 1px, transparent 1px),
    #fff;
  background-size: 18px 18px;
}

.document-preview strong,
.document-preview span,
.document-preview p {
  overflow-wrap: anywhere;
}

.document-preview p {
  align-self: center;
  margin: 0;
  color: #52636a;
}

.qr-location {
  align-self: end;
  padding: 10px;
  border: 1px solid #d8e2e5;
  border-radius: 8px;
  background: #f8fbfc;
  font-size: 13px;
  font-weight: 800;
}

.review-details {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.approval-workspace .accounts-module-head {
  border-color: #b7d5e4;
}

.approval-timeline {
  display: grid;
  grid-template-columns: repeat(9, minmax(96px, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
}

.approval-timeline span {
  display: grid;
  gap: 6px;
  min-width: 96px;
  padding: 9px;
  border: 1px solid #d8e2e5;
  border-radius: 8px;
  background: #fff;
  color: #52636a;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.approval-timeline b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  border-radius: 50%;
  background: #e7edf0;
  color: #24323a;
}

.approval-timeline span.done {
  border-color: #b7dfc1;
  background: #edf8f0;
  color: #167534;
}

.approval-timeline span.done b {
  background: #28a84a;
  color: #fff;
}

.approval-timeline span.active {
  border-color: #126ea7;
  background: #e9f5f9;
  color: #126ea7;
}

.approval-timeline span.active b {
  background: #126ea7;
  color: #fff;
}

.kra-console-head {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 14px;
  align-items: stretch;
}

.kra-compliance-strip {
  display: grid;
  gap: 2px;
  padding: 13px 16px;
  border-radius: 8px;
  border-left: 7px solid #c99714;
  background: #fff8df;
  box-shadow: 0 8px 20px rgba(29, 45, 53, 0.08);
}

.kra-compliance-strip.green {
  border-left-color: #28a846;
  background: #ecfff1;
}

.kra-compliance-strip.warn {
  border-left-color: #c99714;
  background: #fff8df;
}

.kra-compliance-strip span,
.kra-compliance-strip small {
  color: #52636a;
  font-size: 12px;
}

.kra-compliance-strip strong {
  font-size: 18px;
  color: #10242c;
}

.kra-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 10px;
  align-content: stretch;
}

.kra-primary-actions .btn {
  min-height: 58px;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
}

.accounts-status-bar {
  min-height: 52px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #cfdadd;
  border-left: 6px solid #1775a8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(20, 58, 74, 0.08);
}

.accounts-status-bar.green {
  border-left-color: #28a846;
}

.accounts-status-bar.warn {
  border-left-color: #c99714;
}

.accounts-status-bar.red {
  border-left-color: #d5483f;
}

.accounts-status-bar div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.accounts-status-bar span {
  color: #52636a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.accounts-status-bar strong {
  overflow: hidden;
  color: #10242c;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accounts-engine-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1.45fr) minmax(360px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.accounts-primary-panel,
.accounts-secondary-panel {
  min-width: 0;
}

.workflow-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 4px 0 18px;
}

.workflow-progress span {
  height: 10px;
  border-radius: 999px;
  background: #dce6e8;
  color: transparent;
}

.workflow-progress span.active {
  background: #1775a8;
}

.workflow-progress span.done {
  background: #28a846;
}

.workflow-form {
  display: grid;
  gap: 14px;
}

.workflow-form h3 {
  margin: 0;
  font-size: 20px;
}

.mapped-service,
.tax-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7e2e5;
  border-radius: 8px;
  background: #f8fbfb;
}

.mapped-service {
  justify-content: space-between;
}

.mapped-service span,
.tax-preview span {
  color: #52636a;
}

.tax-preview strong {
  margin-left: auto;
}

.register-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.register-filters label:nth-child(3),
.register-filters button {
  grid-column: 1 / -1;
}

.sync-cell {
  display: inline-grid;
  gap: 3px;
  min-width: 96px;
}

.sync-cell small {
  max-width: 160px;
  overflow: hidden;
  color: #52636a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kra-status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.kra-status-pill.queued {
  background: #fff4ce;
  color: #7b5900;
}

.kra-status-pill.signing,
.kra-status-pill.syncing {
  background: #e6f2ff;
  color: #0b5d95;
}

.kra-status-pill.syncing span {
  animation: kraPulse 1s linear infinite;
}

.kra-status-pill.synced {
  background: #dff6e7;
  color: #167338;
}

.kra-status-pill.failed {
  background: #ffe5e1;
  color: #b52218;
}

.action-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.agent-mini-log {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #dce6e8;
}

.kra-qr-dialog {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
}

@keyframes kraPulse {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.link-button {
  border: 0;
  background: transparent;
  color: #0d6da5;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 0;
  cursor: pointer;
  text-decoration: underline;
}

.agent-guard-panel {
  background: #f8fbfb;
}

.agent-trail {
  display: grid;
  gap: 9px;
}

.agent-event {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #d7e2e4;
  border-left: 5px solid #126ea7;
  border-radius: 8px;
  background: #fff;
}

.agent-event.wht {
  border-left-color: #c99714;
  background: #fffaf0;
}

.agent-event.mail {
  border-left-color: #28a846;
  background: #f2fff5;
}

.agent-event.guard {
  border-left-color: #126ea7;
}

.agent-event span {
  color: #52636a;
  font-size: 12px;
}

.agent-event strong {
  color: #10242c;
}

.agent-event p {
  margin: 0;
  color: #33484f;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head p {
  margin: 3px 0 0;
  color: #555;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-grid label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}

.form-grid .full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid #bfc8ca;
  border-radius: 6px;
  padding: 7px 9px;
  background: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn-row.compact-actions {
  gap: 5px;
}

.btn {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #b9c4c8;
  border-radius: 6px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-weight: 700;
}

.btn.full {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.btn.primary {
  border-color: #0d6da5;
  background: #126ea7;
  color: #fff;
}

.btn.green {
  border-color: #26963c;
  background: #32a84b;
  color: #fff;
}

.btn.danger {
  border-color: #bd3a31;
  background: #d34b42;
  color: #fff;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #d6dcde;
  border-radius: 7px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 14px;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid #e3e7e8;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef3f4;
  font-weight: 800;
}

.btn.small {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 12px;
}

tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e7edf0;
  color: #24323a;
  font-size: 12px;
  font-weight: 800;
}

.badge.green {
  background: #dcf5e2;
  color: #166b2a;
}

.badge.blue {
  background: #dceefa;
  color: #0e5d91;
}

.badge.warn {
  background: #fff1c9;
  color: #8a6410;
}

.badge.red {
  background: #ffe0dd;
  color: #a52720;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.muted {
  color: #5c666a;
}

.layout-map {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: 110px 100px 85px;
  gap: 8px;
  min-height: 320px;
}

.room {
  display: grid;
  align-content: center;
  justify-items: center;
  border: 2px solid #8eb3c3;
  border-radius: 6px;
  background: #f7fbfc;
  cursor: pointer;
  text-align: center;
  font-weight: 800;
}

.room.active {
  border-color: #30a649;
  background: #e8f8eb;
}

.room.large {
  grid-row: span 2;
}

.room.wide {
  grid-column: span 2;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #e1e5e6;
}

.switch {
  position: relative;
  width: 46px;
  height: 24px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #b8c2c5;
  cursor: pointer;
}

.slider::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 0.16s ease;
}

.switch input:checked + .slider {
  background: #2ba746;
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

.sync-bar {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 29px;
  border-top: 1px solid #c5ccce;
  background: #f7f8f5;
  font-size: 13px;
  white-space: nowrap;
}

.sync-bar button {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid #d4d8d8;
  background: transparent;
  color: #0b0b0b;
  cursor: pointer;
}

.sync-bar strong {
  margin-left: 4px;
  color: #15863a;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #13252e;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.pos-dialog {
  width: min(760px, calc(100vw - 32px));
  border: 0;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.pos-dialog::backdrop {
  background: rgba(0, 0, 0, 0.42);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid #ccd2d4;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.receipt-print {
  display: grid;
  gap: 12px;
}

.receipt-brand {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d6dcde;
}

.receipt-brand strong {
  font-size: 20px;
}

.receipt-brand span {
  color: #52636a;
}

.kra-receipt-qr {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #d7e2e4;
  border-radius: 8px;
  background: #f8fbfb;
}

.kra-receipt-qr strong,
.kra-receipt-qr span {
  display: block;
  overflow-wrap: anywhere;
}

.kra-qr {
  width: 126px;
  height: 126px;
  border: 1px solid #111;
}

.kra-qr rect:not(:first-child) {
  fill: #111;
}

.assistant-chat {
  display: grid;
  gap: 10px;
  max-height: 380px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #d6dcde;
  border-radius: 8px;
  background: #f8fbfc;
}

.assistant-message {
  display: grid;
  gap: 4px;
  max-width: 88%;
  padding: 10px 12px;
  border: 1px solid #dbe3e6;
  border-radius: 8px;
  background: #fff;
}

.assistant-message.user {
  justify-self: end;
  background: #e8f3fb;
  border-color: #bad7e9;
}

.assistant-message p {
  margin: 0;
  color: #26363d;
}

.assistant-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.assistant-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}

.assistant-prompts {
  display: grid;
  gap: 8px;
}

.assistant-dock {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.assistant-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(145deg, #126ea7, #2aa86d);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 61, 83, 0.28);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

.assistant-panel {
  width: min(380px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 130px));
  overflow: auto;
  padding: 14px;
  border: 1px solid #cbd8dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.assistant-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.assistant-panel-head div {
  display: grid;
  gap: 2px;
}

.assistant-panel-head span {
  color: #52636a;
  font-size: 12px;
}

.dialog-close.small-close {
  position: static;
  width: 28px;
  height: 28px;
}

.assistant-prompts.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.assistant-prompts.compact button {
  min-height: 32px;
  border: 1px solid #d6dcde;
  border-radius: 6px;
  background: #f5fafb;
  font-weight: 800;
}

@media (max-width: 900px) {
  .eaccn-pos-page {
    background: #e6eef0;
    overflow: auto;
  }

  .auth-view {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    padding: 24px 18px 8px;
  }

  .auth-card {
    align-self: start;
    margin: 16px auto 24px;
  }

  .pos-frame {
    grid-template-columns: 1fr;
    width: 100vw;
    min-height: 100vh;
    border: 0;
  }

  .pos-sidebar {
    display: none;
  }

  .pos-main {
    grid-template-rows: 56px auto 1fr auto;
  }

  .title-button {
    font-size: 18px;
  }

  .module-tabs,
  .sync-bar {
    overflow-x: auto;
  }

  .tab {
    min-height: 40px;
  }

  .dashboard-grid,
  .workspace,
  .workspace.two-col,
  .workspace.three-col {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
    padding: 12px;
  }

  .quick-actions,
  .status-stack,
  .span-2 {
    grid-column: auto;
    grid-row: auto;
  }

  .mini-grid,
  .form-grid,
  .questionnaire-grid,
  .dhis-section-list {
    grid-template-columns: 1fr;
  }

  .kra-console-head,
  .kra-primary-actions,
  .accounts-status-bar,
  .accounts-engine-layout {
    grid-template-columns: 1fr;
  }

  .accounts-shell {
    grid-template-columns: 1fr;
  }

  .accounts-side-nav {
    display: none;
  }

  .accounts-mobile-nav {
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid #d5e0e3;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 900;
  }

  .accounts-mobile-nav select {
    min-height: 42px;
    width: 100%;
    max-width: 100%;
    border: 1px solid #c6d2d6;
    border-radius: 7px;
    padding: 8px 10px;
    background: #fff;
    font: inherit;
  }

  .finance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accounts-executive-header,
  .dashboard-two-col,
  .bank-card-grid,
  .liquidity-totals,
  .invoice-capture-grid,
  .capture-progress,
  .auto-fill-grid,
  .capture-stepper {
    grid-template-columns: 1fr;
  }

  .payment-request-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .executive-actions {
    justify-content: flex-start;
  }

  .grant-health-row,
  .risk-list button,
  .agent-trail-list article,
  .activity-group article {
    grid-template-columns: 1fr;
  }

  .import-centre .finance-metrics,
  .import-filter-grid,
  .review-split {
    grid-template-columns: 1fr;
  }

  .import-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accounts-module-head {
    grid-template-columns: 1fr;
  }

  .module-action-bar {
    justify-content: flex-start;
  }

  .procurement-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accounts-status-bar strong {
    white-space: normal;
  }

  .register-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .finance-metrics,
  .executive-kpis,
  .approval-summary-strip,
  .bank-summary-card dl,
  .grant-health-row dl,
  .procurement-flow,
  .import-progress,
  .chart-row {
    grid-template-columns: 1fr;
  }

  .accounts-executive-header {
    padding: 16px;
  }

  .accounts-executive-header h1 {
    font-size: 24px;
  }

  .finance-metric {
    min-height: 102px;
  }

  .accounts-module-head h2 {
    font-size: 19px;
  }

  .module-action-bar .btn {
    width: 100%;
    justify-content: center;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .pos-dialog,
  .pos-dialog * {
    visibility: visible;
  }

  .pos-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    border: 0;
    box-shadow: none;
  }

  .dialog-close,
  .no-print {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  .landing-header {
    grid-template-columns: 1fr auto;
  }

  .landing-nav {
    display: none;
  }

  .landing-hero {
    grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.9fr) minmax(330px, 390px);
    gap: 16px;
  }

  .hero-visual {
    height: 430px;
  }

  .landing-feature-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .trust-strip > span {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 900px) {
  .auth-view {
    display: block;
    overflow: auto;
  }

  .landing-header {
    position: relative;
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 12px;
    padding: 18px;
  }

  .secure-login-link {
    justify-content: flex-start;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px 18px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 12vw, 64px);
  }

  .hero-visual {
    position: relative;
    inset: auto;
    order: 2;
    height: 320px;
    opacity: 1;
    border-radius: 18px 18px 80px 18px;
    box-shadow: 0 16px 34px rgba(15, 45, 58, 0.11);
  }

  .hero-copy {
    order: 1;
  }

  .auth-card {
    order: 3;
    width: min(100%, 440px);
    justify-self: start;
    margin-top: 26px;
    padding: 24px;
  }

  .hero-badges,
  .hero-stats {
    max-width: none;
  }

  .landing-feature-row,
  .trust-strip,
  .landing-footer {
    grid-template-columns: 1fr;
    padding-left: 18px;
    padding-right: 18px;
  }

  .landing-footer {
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
    text-align: left;
  }

  .landing-footer nav {
    justify-self: start;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .security-strip {
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .landing-brand strong {
    font-size: 13px;
  }

  .hero-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .hero-badges span {
    min-width: 0;
    margin: 0;
    padding: 0;
    border-right: 0;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-stats span {
    border-right: 0;
  }

  .landing-feature-row article {
    grid-template-columns: 52px 1fr 16px;
    padding: 16px;
  }

  .hero-visual {
    height: 250px;
  }

  .auth-card {
    padding: 20px;
    border-radius: 18px;
  }
}

.role-dashboard .role-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.role-dashboard .role-action-grid .btn {
  justify-content: center;
  min-height: 44px;
  white-space: normal;
}

.accountant-dashboard .accounts-executive-header,
.executive-dashboard .accounts-executive-header,
.technical-dashboard .accounts-executive-header {
  align-items: flex-start;
}
