:root {
  --green: #00a34a;
  --green-dark: #00853c;
  --green-deep: #0b6b38;
  --green-soft: #e7f8ee;
  --green-mid: #12b76a;
  --navy: #10233d;
  --ink: #1b2b3c;
  --muted: #5d6d7e;
  --line: #e3ebf1;
  --card: #ffffff;
  --bg: #eef6f2;
  --danger: #e03b3b;
  --warn: #d89011;
  --ok: #128a4b;
  --shadow: 0 18px 50px rgba(16, 35, 61, 0.08);
  --radius: 20px;
  --header-h: 74px;
  --ui-zoom: 1.25;
  --vh: calc(100vh / var(--ui-zoom));
}
html {
  zoom: var(--ui-zoom);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, "Noto Sans Bengali", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--green-deep); text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; }
.hidden { display: none !important; }

/* ===== Login ===== */
.login-page {
  min-height: var(--vh);
  height: var(--vh);
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
}
.login-page:has(#vatBookForm) {
  height: auto;
  min-height: var(--vh);
  overflow: auto;
  background: var(--bg);
}
.login-shell {
  width: 100%;
  height: var(--vh);
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 460px);
  overflow: visible;
  background: #fff;
}
.login-stage {
  display: contents;
}
.login-bg {
  width: 100%;
  height: var(--vh);
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  pointer-events: none;
  z-index: 0;
}
.logo-header { width: auto; height: 52px; object-fit: contain; display: block; }
.login-card {
  position: relative;
  z-index: 2;
  left: auto;
  top: auto;
  width: auto;
  height: auto;
  align-self: center;
  margin: 0 36px;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(16, 35, 61, 0.12);
  padding: 32px 28px 28px;
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}
.login-card h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.55rem, 2.7vw, 2rem);
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #1a2330;
}
.login-card h2 .hi { color: var(--green); }
.admin-kicker {
  margin: 0 0 6px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.login-card .sub {
  text-align: center;
  color: #7b8794;
  margin: 6px 0 0;
  font-size: clamp(0.72rem, 1.05vw, 0.88rem);
}
.rule {
  width: 42px;
  height: 3px;
  background: var(--green);
  border-radius: 99px;
  margin: 10px auto 16px;
}
.field { margin: 0 0 10px; }
.kind-select,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e4ebf0;
  border-radius: 14px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6d7e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.kind-select:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,163,74,0.12);
}
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2a3544;
}
.field .box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4ebf0;
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  min-height: 42px;
}
.field .box:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,163,74,0.12);
}
.field-icon { color: #9aabb8; display: grid; place-items: center; flex: 0 0 auto; }
.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #3b4754;
  cursor: pointer;
}
.remember input { width: auto; accent-color: var(--green); }
.field input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 0;
  outline: none;
  color: var(--ink);
}
.icon-btn {
  border: 0;
  background: none;
  color: #8b9aaa;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
}
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
}
.forgot { color: var(--green); font-weight: 600; }
.primary {
  width: 100%;
  border: 0;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(0,163,74,0.22);
}
.primary:hover { background: var(--green-dark); }
.primary.small, .primary.inline { width: auto; padding: 10px 16px; box-shadow: 0 8px 18px rgba(0,163,74,0.18); border-radius: 999px; }
.hint {
  text-align: center;
  color: #8b97a3;
  font-size: 0.75rem;
  margin: 10px 0 0;
}
.or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #98a6b3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 12px 0 10px;
}
.or::before, .or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e6edf1;
}
.register-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 10px;
  border: 1.5px solid var(--green);
  color: var(--green-deep);
  background: #f4fbf6;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}
.register-cta:hover { background: var(--green-soft); color: var(--green-deep); }
.info-box {
  background: #f4f8f6;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px 16px;
  color: #6d7b88;
  font-size: 0.75rem;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow: visible;
}
.info-box p {
  margin: 0;
  overflow: visible;
  padding-bottom: 2px;
}
.info-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e7eef1;
  color: #6d7b88;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 1px;
}
.info-ico svg { width: 12px; height: 12px; }
.err {
  color: var(--danger);
  background: #fff1f1;
  border: 1px solid #ffd0d0;
  border-radius: 10px;
  padding: 8px 10px;
  margin: 0 0 10px;
  font-size: 0.82rem;
}
.login-wordmark { width: 280px; max-width: 100%; height: auto; display: block; }
.register-wrap {
  width: min(480px, calc(100% - 32px));
  margin: 36px auto 48px;
}
.register-card {
  margin-top: 16px;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(16, 35, 61, 0.12);
  padding: 28px 26px 22px;
}
.register-card h2 {
  margin: 0;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 800;
}
.register-card .field input,
.register-card .field select {
  width: 100%;
  border: 1px solid #e4ebf0;
  border-radius: 12px;
  padding: 10px 12px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pay-card { text-align: center; }
.pay-number {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--green-deep);
}
@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
}
.login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.login-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}
.pt-ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.7rem;
}
.login-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(1130px, calc(100% - 32px));
  margin: 8px auto 16px;
}
.login-perks article {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.82rem;
}
.login-perks strong { display: block; color: var(--navy); }
.login-perks p { margin: 2px 0 0; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: min(1130px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 22px;
  color: var(--muted);
  font-size: 0.84rem;
}
.site-footer nav { display: flex; gap: 16px; }

@media (min-width: 861px) {
  .login-page .login-mobile-brand,
  .login-page .login-hero-mobile,
  .login-page .login-perks,
  .login-page .site-footer.login-legal { display: none; }
}

/* ===== App chrome (same family as login) ===== */
.app-body {
  min-height: var(--vh);
  background:
    radial-gradient(ellipse 42% 46% at 100% 0%, rgba(46, 180, 98, 0.22), transparent 62%),
    radial-gradient(ellipse 28% 36% at 0% 100%, rgba(46, 180, 98, 0.10), transparent 64%),
    #f3f7f8;
}
.app-header {
  background: #fff;
  border-bottom: 1px solid #e8eef2;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(16, 35, 61, 0.04);
}
.app-header .bar {
  width: min(1130px, calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.product {
  display: flex;
  align-items: center;
  gap: 14px;
}
.product img { width: auto; height: 52px; object-fit: contain; }
.logo-header { width: auto; height: 52px; object-fit: contain; display: block; }
.product strong { display: block; font-size: 1.02rem; letter-spacing: -0.03em; }
.product strong span { color: var(--green); }
.product small {
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 800;
  padding-left: 14px;
  border-left: 1px solid #e4ebf0;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.org-menu { position: relative; }
.org-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4ebf0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px 8px 8px;
  cursor: pointer;
  max-width: 280px;
}
.org-chip b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
}
.org-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
}
.org-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 180px;
  box-shadow: var(--shadow);
  padding: 8px;
}
.org-dropdown button, .org-dropdown p {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.org-dropdown button:hover { background: var(--green-soft); }
.org-dropdown p { color: var(--muted); cursor: default; margin: 0; font-size: 0.8rem; }

.app-nav {
  background: #fff;
  border-bottom: 1px solid #eef2f5;
}
.app-nav .wrap {
  width: min(1130px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 6px;
  overflow: auto;
}
.app-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.app-nav a.on, .app-nav a:hover {
  color: var(--green-deep);
  border-bottom-color: var(--green);
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.app-main {
  width: min(1130px, calc(100% - 32px));
  margin: 22px auto 40px;
}
.panel {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(16, 35, 61, 0.08);
  border: 1px solid #eef3f0;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.panel::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 240px;
  height: 120px;
  background: radial-gradient(circle at 80% 0, #d9f4e4, transparent 70%);
  pointer-events: none;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.page-head h1 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-head p { margin: 6px 0 0; color: var(--muted); }
.icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.dash-grid, .report-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.dash-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.action-card, .report-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px 16px;
  background: #fff;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.action-card:hover, .report-card:hover { border-color: #b7e0c6; }
.action-card h3, .report-card h3 { margin: 0; font-size: 1rem; }
.action-card p, .report-card p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
.action-card .primary, .report-card .primary { margin-top: auto; }
.tint-green { background: #f3fbf6; }
.tint-blue { background: #f3f7fd; }
.tint-orange { background: #fff8f1; }
.tint-purple { background: #f7f4fd; }
.tint-teal { background: #f2fbf8; }
.file-glyph {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e4eee8;
  color: var(--green-dark);
  font-weight: 800;
}

.month-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 18px;
  max-width: 320px;
}
.month-box select, .file-name {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
}
.note-line {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 16px;
  background: #f6faf8;
  border-radius: 12px;
  padding: 10px 12px;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}
.drop {
  border: 1.5px dashed #c9ddd2;
  border-radius: 18px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fbfefc;
  text-align: center;
  padding: 24px;
  color: var(--muted);
}
.drop.over { border-color: var(--green); background: var(--green-soft); }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.guidelines { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.guidelines li { display: flex; gap: 8px; color: var(--ink); }
.guidelines li::before { content: "✓"; color: var(--green); font-weight: 800; }
.help-mini {
  margin-top: 18px;
  background: #f6faf8;
  border-radius: 12px;
  padding: 12px 14px;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 720px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #eef2f5;
  font-size: 0.92rem;
}
th { color: var(--muted); font-weight: 600; }
.app-body .card > h2:first-child {
  margin: -18px -18px 14px;
  padding: 12px 18px;
  background: var(--green);
  color: #fff;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
}
.app-body th { background: #f4faf6; color: var(--green-deep); font-size: 0.82rem; }
.app-body form.row, .app-body div.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
}
.app-body .note { color: var(--muted); }
.app-body input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]):not([type="radio"]),
.app-body select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.app-body button.danger { background: #c0392b; color: #fff; border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}
.badge.processing, .badge.pending { color: #b8860b; background: #fff6dd; }
.badge.completed, .badge.approved { color: var(--ok); background: #e7f7ee; }
.badge.rejected { color: var(--danger); background: #fdecec; }
.ghost {
  border: 1px solid #d7e3da;
  background: #fff;
  color: var(--green-deep);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 700;
}
.doc-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  flex-wrap: wrap;
}
.doc-form input[type=file] { display: none; }
.file-pick {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
  background: #fbfefe;
  cursor: pointer;
}

.static-page { max-width: 720px; }
.static-page h1 { margin-top: 0; }
.static-page p, .static-page li { color: var(--muted); line-height: 1.6; }

@media (max-width: 1100px) {
  .dash-grid, .report-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .login-page { background: #f4f8f8; height: auto; min-height: var(--vh); overflow: visible; }
  .login-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    width: min(520px, calc(100% - 24px));
    margin: 0 auto;
    padding: 22px 0 12px;
    justify-content: flex-start;
    grid-template-columns: none;
  }
  .login-bg { display: none; }
  .login-stage {
    display: block;
    aspect-ratio: auto;
    height: auto;
  }
  .login-mobile-brand,
  .login-hero-mobile,
  .login-perks,
  .login-legal { display: block; }
  .login-mobile-brand h1 {
    margin: 22px 0 10px;
    font-size: 2rem;
    line-height: 1.08;
    letter-spacing: -0.04em;
  }
  .login-mobile-brand h1 em {
    font-style: normal;
    color: var(--green);
  }
  .login-mobile-brand > p {
    color: var(--muted);
    max-width: 22rem;
    line-height: 1.5;
  }
  .login-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    margin: 18px 0 8px;
    padding: 28px 22px 22px;
  }
  .login-hero-mobile {
    width: 100%;
    height: auto;
    max-height: none;
    margin: 8px 0 16px;
    border-radius: 16px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    align-self: stretch;
    display: block;
    background: #d7eef6;
  }
  .login-perks { display: grid; grid-template-columns: 1fr; width: 100%; }
  .login-legal { display: flex; width: 100%; }
  .dash-grid, .report-grid, .split { grid-template-columns: 1fr; }
}
/* ===== User workspace shell ===== */
.app-body { background: #eef4f0; }
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: var(--vh);
}
.sidebar {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.side-brand a {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px 6px;
}
.side-brand .logo-header { height: 40px; width: auto; }
.side-brand p {
  margin: 10px 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}
.side-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}
.side-nav { display: grid; gap: 4px; }
.side-nav a {
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
}
.side-nav a:hover, .side-nav a.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.nav-icon {
  width: 22px;
  display: inline-grid;
  place-items: center;
  opacity: 0.9;
}
.side-bottom {
  margin-top: auto;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}
.main-area { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: #fff;
  border-bottom: 1px solid #e6eee9;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.crumb { color: var(--muted); font-size: 0.75rem; }
.topbar h1 { margin: 2px 0 0; font-size: 1.2rem; letter-spacing: -0.02em; }
.top-actions { display: flex; align-items: center; gap: 10px; position: relative; }
.org-pill {
  background: var(--green-soft);
  color: var(--green-deep);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.82rem;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  cursor: pointer;
}
.mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.content { padding: 22px; flex: 1; }
.sms-pick {
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 0 12px;
  background: #fbfefc;
}
.sms-pick button, .sms-pick label {
  display: flex;
  width: 100%;
  text-align: left;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #eef4f0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.sms-pick button:hover, .sms-pick label:hover { background: var(--green-soft); }
.sms-pick .muted { margin-left: auto; font-size: 0.8rem; }
.os-footer {
  padding: 14px 22px 22px;
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.page-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: #fff;
  border: 1px solid #e7efe9;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(16, 35, 61, 0.04);
}
.card h3 { margin: 0 0 12px; font-size: 1rem; }
.card p { color: var(--muted); line-height: 1.5; }
.stat { display: flex; align-items: center; gap: 12px; }
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.stat-label { color: var(--muted); font-size: 0.78rem; }
.stat-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.btn, button.btn, .card button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  width: auto;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn-light, button.btn-light {
  background: #f4faf6;
  color: var(--green-deep);
  border: 1px solid #d7eadc;
  box-shadow: none;
}
.btn-light:hover { background: #e7f6ec; }
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c0392b;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn-danger:hover { background: #a93226; }
.empty {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}
.empty .symbol { font-size: 1.6rem; }
.app-body textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 120px;
  resize: vertical;
}
.app-body .card button[type="submit"]:not(.btn-light):not(.btn-danger) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  width: auto;
}
.status {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ok);
  background: #e7f7ee;
}
.status.pending { color: #b8860b; background: #fff6dd; }
.status.error { color: var(--danger); background: #fdecec; }
.notice {
  background: #f3faf6;
  border: 1px solid #d7eadc;
  border-radius: 12px;
  padding: 12px 14px;
  color: #345244;
  font-size: 0.9rem;
}
.notice.warn { background: #fff8ee; border-color: #f0ddb6; color: #7a5a12; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.upload-zone {
  border: 1.5px dashed #c9ddd2;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  background: #fbfefc;
  margin: 8px 0 14px;
}
.upload-zone .big { font-size: 1.6rem; margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.app-body .field input, .app-body .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.app-body .field input[readonly] { background: #f7faf8; color: #44525e; }
.app-shell .org-dropdown {
  right: 0;
  top: 48px;
}

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 88vw);
    z-index: 20;
  }
  .sidebar.open { display: flex; }
  .mobile-toggle { display: inline-flex; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .os-footer { flex-direction: column; }
}

.os-help {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.os-help-launch, .os-wa-fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(16, 35, 61, 0.18);
}
.os-help-launch { background: var(--green); color: #fff; font-size: 1.25rem; }
.os-wa-fab { background: #25d366; }
.os-help-panel {
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e7efe9;
  box-shadow: 0 18px 50px rgba(16, 35, 61, 0.16);
  overflow: hidden;
  margin-bottom: 4px;
}
.os-help-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--green);
  color: #fff;
}
.os-help-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}
.os-help-tabs { display: flex; border-bottom: 1px solid var(--line); }
.os-help-tabs button {
  flex: 1;
  border: 0;
  background: #fff;
  padding: 10px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.os-help-tabs button.on { color: var(--green-deep); box-shadow: inset 0 -2px 0 var(--green); }
.os-agent-log {
  height: 240px;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f7fbf8;
}
.os-msg {
  max-width: 90%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
}
.os-msg.bot { background: #fff; border: 1px solid #e7efe9; align-self: flex-start; }
.os-msg.user { background: var(--green); color: #fff; align-self: flex-end; }
.os-agent-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}
.os-agent-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
.os-agent-form button {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.os-wa-pane { padding: 16px; }
.os-wa-btn { background: #25d366 !important; }

.m91 {
  margin-top: 16px;
  padding: 16px;
  border: 2px solid #1b2b3c;
  background: #fff;
  font-family: Helvetica, Arial, sans-serif;
  color: #111;
}
.m91-head { display: grid; grid-template-columns: 72px 1fr 110px; gap: 8px; align-items: center; margin-bottom: 12px; }
.m91-logo { width: 72px; height: 72px; object-fit: contain; }
.m91-head-text { text-align: center; }
.m91-badge { border: 2px solid #111; padding: 6px 8px; font-weight: 700; text-align: center; font-size: 0.85rem; }
.m91-gov, .m91-title { text-align: center; margin: 0 0 4px; font-weight: 700; letter-spacing: 0.02em; }
.m91-gov { font-size: 0.82rem; }
.m91-title { font-size: 0.95rem; margin-bottom: 2px; }
.m91-title span { font-weight: 400; }
.m91-sub { text-align: center; margin: 0 0 4px; font-size: 0.78rem; }
.m91-sec {
  margin: 12px 0 6px;
  padding: 4px 6px;
  background: #1b2b3c;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.m91-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.m91-table th, .m91-table td { border: 1px solid #1b2b3c; padding: 5px 7px; text-align: left; }
.m91-table td:nth-child(2), .m91-table th:nth-child(2),
.m91-table td:nth-child(3), .m91-table th:nth-child(3),
.m91-table td:nth-child(4), .m91-table th:nth-child(4),
.m91-table td:nth-child(5), .m91-table th:nth-child(5) { text-align: right; font-variant-numeric: tabular-nums; }
.m91-table thead th { background: #eef2f6; }

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .app-nav { display: none; }
  .app-nav.open { display: block; }
  .app-nav .wrap { flex-direction: column; }
  .org-chip { max-width: 180px; }
  .page-head { flex-direction: column; }
  .panel { padding: 20px 16px; }
  .site-footer { flex-direction: column; }
}
