/* =========================================================
   SENDA ADMIN — CANONICAL THEME
   Dark / top-nav / weight 400 / reusable layouts
   ========================================================= */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
  --bg: #050505;
  --bg-soft: #0a0a0a;

  --panel: #111317;
  --panel-2: #15181e;
  --panel-3: #191d23;
  --panel-hover: #1d2229;

  --text: #e5e7eb;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --muted-2: #64748b;

  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);

  --cyan: #00e5ff;
  --cyan-text: #aefcff;
  --cyan-bg: rgba(0, 229, 255, 0.08);
  --cyan-bg-hover: rgba(0, 229, 255, 0.13);
  --cyan-border: rgba(0, 229, 255, 0.62);
  --cyan-glow: rgba(0, 229, 255, 0.18);

  --green: #22c55e;
  --green-soft: #86efac;
  --green-bg: rgba(34, 197, 94, 0.1);

  --amber: #d6a329;
  --amber-soft: #fde68a;
  --amber-bg: rgba(214, 163, 41, 0.1);

  --red: #ef4d5a;
  --red-soft: #fca5a5;
  --red-bg: rgba(239, 77, 90, 0.1);

  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 9px;

  --gap: 18px;
  --gap-sm: 12px;
  --gap-lg: 24px;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2);

  --page-pad: 20px;
}

/* =========================================================
   2. RESET
   ========================================================= */

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

img {
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   3. TYPOGRAPHY
   Weight stays 400 throughout admin
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
p,
label,
button,
input,
select,
textarea,
a,
span,
strong,
b,
th,
td {
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
}

strong,
b {
  font-weight: 400;
}

.page-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.page-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.section-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.text-muted {
  color: var(--muted);
}

.text-soft {
  color: var(--text-soft);
}

.text-small {
  font-size: 12px;
}

/* =========================================================
   4. SHELL
   ========================================================= */

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-main,
.page {
  width: 100%;
  padding: 24px var(--page-pad) 40px;
}

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

.page-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================================
   5. TOP BAR / HEADER
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar-inner {
  width: 100%;
  padding: 14px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  object-fit: contain;
  flex: 0 0 44px;
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  color: var(--text);
}

.brand-sub {
  margin: 4px 0 0;
  color: #777;
  font-size: 11px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 9px 13px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;

  background: #101010;
  color: #aaa;

  font-size: 12px;
}

/* =========================================================
   6. TOP NAVIGATION
   ========================================================= */

.tabs {
  border-top: 1px solid rgba(148, 163, 184, 0.06);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);

  background: rgba(255, 255, 255, 0.015);
}

.tabs-inner {
  width: 100%;
  padding: 0 20px;

  display: flex;
  align-items: center;
  gap: 8px;

  overflow-x: auto;
  scrollbar-width: thin;
}

.menu-link {
  display: inline-flex;
  align-items: center;

  white-space: nowrap;

  padding: 14px 4px 12px;
  margin-right: 16px;

  color: var(--muted);

  border-bottom: 2px solid transparent;

  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.menu-link:hover {
  color: var(--text);
}

.menu-link.active {
  color: #fff;
  border-bottom-color: var(--green);
}

/* =========================================================
   7. CORE LAYOUTS
   ========================================================= */

.layout-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.layout-30-70 {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: var(--gap);
  align-items: start;
}

.layout-30-40-30 {
  display: grid;
  grid-template-columns:
    minmax(0, 3fr)
    minmax(0, 4fr)
    minmax(0, 3fr);
  gap: var(--gap);
  align-items: start;
}

.layout-50-50 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.layout-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

/* Legacy compatibility while pages are migrated */

.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: var(--gap);
  align-items: start;
}

.layout-3col {
  display: grid;
  grid-template-columns:
    minmax(0, 3fr)
    minmax(0, 4fr)
    minmax(0, 3fr);
  gap: var(--gap);
  align-items: start;
}

/* =========================================================
   8. PANELS / CARDS
   ========================================================= */

.panel,
.card {
  background: linear-gradient(
    180deg,
    rgba(20, 22, 26, 0.98),
    rgba(12, 13, 15, 0.99)
  );

  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 20px;
}

.panel-title,
.card-title {
  margin: 0;
  font-size: 17px;
  color: var(--text);
}

.panel-sub,
.card-sub {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.panel-body {
  margin-top: 18px;
}

.card {
  overflow: hidden;
}

.card-head {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
}

.card-body {
  padding: 16px;
}

.card-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.panel:hover,
.card:hover {
  border-color: var(--border-strong);
}

/* =========================================================
   9. STACKS / ROWS / SPACING
   ========================================================= */

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
}

.row-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

/* =========================================================
   10. FORMS
   ========================================================= */

.field {
  margin-bottom: 14px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label,
.form-label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 13px;
}

.field-help,
.form-help {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

input,
select,
textarea,
.form-control {
  width: 100%;

  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  background: var(--panel-2);
  color: var(--text);

  padding: 11px 13px;

  outline: none;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

input,
select,
.form-control {
  min-height: 44px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #707986;
}

input:hover,
select:hover,
textarea:hover,
.form-control:hover {
  border-color: var(--border-strong);
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: var(--cyan-border);

  box-shadow:
    0 0 0 2px rgba(0, 229, 255, 0.08),
    0 0 18px rgba(0, 229, 255, 0.06);
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* =========================================================
   11. BUTTON SYSTEM
   ========================================================= */

.btn {
  appearance: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 40px;

  padding: 9px 14px;

  border-radius: 11px;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease,
    transform 0.08s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--cyan-bg);

  border: 1px solid var(--cyan-border);

  color: var(--cyan-text);

  box-shadow: 0 0 10px var(--cyan-glow);
}

.btn-primary:hover {
  background: var(--cyan-bg-hover);

  box-shadow: 0 0 16px rgba(0, 229, 255, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.025);

  border: 1px solid var(--border);

  color: var(--text-soft);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-success {
  background: var(--green-bg);

  border: 1px solid #22c55e80;

  color: var(--green-soft);
}

.btn-warning {
  background: var(--amber-bg);

  border: 1px solid rgba(214, 163, 41, 0.5);

  color: var(--amber-soft);
}

.btn-danger {
  background: var(--red-bg);

  border: 1px solid rgba(239, 77, 90, 0.55);

  color: var(--red-soft);
}

.btn-small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}

.btn-icon {
  width: 40px;
  padding: 0;
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Transitional aliases */

.btn.ghost {
  background: var(--cyan-bg);
  border: 1px solid var(--cyan-border);
  color: var(--cyan-text);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.btn.danger {
  background: var(--red-bg);
  border: 1px solid #ef4d5a8c;
  color: var(--red-soft);
}

/* Old Angra button compatibility during migration */

.angra-btn {
  appearance: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 40px;

  padding: 9px 14px;

  border-radius: 11px;

  cursor: pointer;

  background: transparent;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.angra-btn.processed {
  background: var(--cyan-bg);
  border: 1px solid var(--cyan-border);
  color: var(--cyan-text);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.angra-btn.returned {
  background: rgba(255, 0, 255, 0.08);
  border: 1px solid rgba(255, 0, 255, 0.48);
  color: #ffb3ff;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.14);
}

/* =========================================================
   12. TRAFFIC LIGHT STATUS SYSTEM
   ========================================================= */

.traffic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-light {
  width: 10px;
  height: 10px;

  display: inline-block;

  border-radius: 50%;

  opacity: 0.24;
}

.status-light--red {
  background: var(--red);
}

.status-light--amber {
  background: var(--amber);
}

.status-light--green {
  background: var(--green);
}

.status-light.is-active {
  opacity: 1;
}

.status-light--red.is-active {
  box-shadow: 0 0 8px rgba(239, 77, 90, 0.5);
}

.status-light--amber.is-active {
  box-shadow: 0 0 8px rgba(214, 163, 41, 0.5);
}

.status-light--green.is-active {
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* =========================================================
   13. STATUS TEXT / BADGES
   ========================================================= */

.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  min-height: 26px;

  padding: 4px 9px;

  border-radius: 999px;

  border: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.025);

  color: var(--text-soft);

  font-size: 12px;
}

.status-badge--green {
  background: var(--green-bg);
  border-color: rgba(34, 197, 94, 0.42);
  color: var(--green-soft);
}

.status-badge--amber {
  background: var(--amber-bg);
  border-color: rgba(214, 163, 41, 0.42);
  color: var(--amber-soft);
}

.status-badge--red {
  background: var(--red-bg);
  border-color: rgba(239, 77, 90, 0.42);
  color: var(--red-soft);
}

.status-badge--cyan {
  background: var(--cyan-bg);
  border-color: var(--cyan-border);
  color: var(--cyan-text);
}

/* =========================================================
   14. INNER PAGE TABS
   ========================================================= */

.subtabs {
  display: flex;
  align-items: center;
  gap: 24px;

  padding: 0 4px;

  border-bottom: 1px solid var(--border);

  overflow-x: auto;
}

.subtab {
  display: inline-flex;
  align-items: center;

  min-height: 48px;

  color: var(--muted);

  border-bottom: 2px solid transparent;

  white-space: nowrap;
}

.subtab:hover {
  color: var(--text);
}

.subtab.active {
  color: var(--text);
  border-bottom-color: var(--green);
}

/* =========================================================
   15. TABLES
   ========================================================= */

.table-wrap {
  width: 100%;

  overflow: auto;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.015);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;

  text-align: left;

  border-bottom: 1px solid rgba(148, 163, 184, 0.1);

  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;

  background: rgba(255, 255, 255, 0.025);
}

td {
  color: var(--text);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.018);
}

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

/* =========================================================
   16. LISTS
   ========================================================= */

.list {
  display: flex;
  flex-direction: column;

  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  overflow: hidden;
}

.list-item {
  padding: 13px 14px;

  border-bottom: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.01);
}

.list-item:last-child {
  border-bottom: 0;
}

.list-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.list-item.is-selected {
  background: rgba(0, 229, 255, 0.05);
  border-left: 2px solid var(--cyan);
}

/* =========================================================
   17. EMPTY / INFO / ALERT STATES
   ========================================================= */

.empty {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.notice {
  padding: 12px 14px;

  border-radius: var(--radius-sm);

  border: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.025);

  color: var(--text-soft);
}

.notice-success {
  background: var(--green-bg);
  border-color: rgba(34, 197, 94, 0.35);
  color: var(--green-soft);
}

.notice-warning {
  background: var(--amber-bg);
  border-color: rgba(214, 163, 41, 0.35);
  color: var(--amber-soft);
}

.notice-danger {
  background: var(--red-bg);
  border-color: rgba(239, 77, 90, 0.35);
  color: var(--red-soft);
}

.notice-info {
  background: var(--cyan-bg);
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--cyan-text);
}

/* =========================================================
   18. STATS
   ========================================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gap);
}

.stat {
  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.018);
}

.stat-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.stat-value {
  margin: 0;
  font-size: 20px;
  line-height: 1;
}

.stat-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* =========================================================
   19. LOGIN
   ========================================================= */

.login-wrap {
  width: 100%;
  min-height: calc(100vh - 73px);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 32px 20px;
}

.login {
  width: 100%;
  max-width: 420px;

  padding: 28px;

  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.96),
    rgba(15, 23, 42, 0.98)
  );

  border: 1px solid rgba(148, 163, 184, 0.14);

  border-radius: 20px;

  box-shadow: var(--shadow);
}

.login h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.login > p {
  margin: 0 0 20px;
  color: var(--muted);
}

.login .note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.login .note-error {
  color: var(--red-soft);
}

.login .btn,
.login .angra-btn {
  margin-top: 2px;
}

.batch-reconciliation-accordion {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.batch-reconciliation-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
}

.batch-reconciliation-accordion > summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.batch-reconciliation-accordion > summary::marker {
  color: #8f98a8;
}

.batch-reconciliation-accordion[open] > summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.batch-reconciliation-accordion .table-wrap {
  margin: 0;
}

/* =========================================================
   20. FOOTER
   ========================================================= */

.footer {
  margin-top: auto;

  padding: 20px;

  text-align: center;

  color: var(--muted-2);

  font-size: 12px;

  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* =========================================================
   21. DETAILS / DISCLOSURES
   ========================================================= */

details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  background: rgba(255, 255, 255, 0.015);
}

summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--text-soft);
}

details[open] summary {
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   22. UTILITIES
   ========================================================= */

.hidden {
  display: none !important;
}

.block {
  display: block !important;
}

.w-full {
  width: 100% !important;
}

.m-0 {
  margin: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 8px !important;
}

.mt-2 {
  margin-top: 12px !important;
}

.mt-3 {
  margin-top: 18px !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 8px !important;
}

.mb-2 {
  margin-bottom: 12px !important;
}

.mb-3 {
  margin-bottom: 18px !important;
}

.text-left {
  text-align: left !important;
}

.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

/* =========================================================
   23. SCROLLBARS
   ========================================================= */

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.22) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.3);
}

/* =========================================================
   24. RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .layout-30-40-30 {
    grid-template-columns: 1fr;
  }

  .layout-3col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .layout-30-70,
  .layout-2col,
  .layout-50-50 {
    grid-template-columns: 1fr;
  }

  .page-head {
    flex-direction: column;
  }

  .page-head-actions {
    width: 100%;
  }

  .topbar-inner {
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  :root {
    --page-pad: 14px;
  }

  .topbar-inner {
    padding: 12px 14px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    flex-basis: 38px;
  }

  .brand-title {
    font-size: 15px;
  }

  .user-chip {
    display: none;
  }

  .tabs-inner {
    padding: 0 14px;
  }

  .admin-main,
  .page {
    padding-top: 18px;
  }

  .page-title {
    font-size: 24px;
  }

  .panel {
    padding: 16px;
  }

  .login {
    padding: 22px;
  }
}
.people-admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 32%) minmax(0, 68%);
  gap: 18px;
  align-items: start;
}

.people-admin-sidebar,
.people-admin-main {
  min-width: 0;
}

.people-admin-search-wrap {
  margin-bottom: 12px;
}

.people-admin-customer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - 280px);
  overflow: auto;
}

.people-admin-customer {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.people-admin-customer:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.people-admin-customer.active {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(96, 165, 250, 0.32);
}

.people-admin-customer-name {
  font-size: 13px;
  font-weight: 700;
}

.people-admin-customer-meta,
.people-admin-customer-summary {
  color: var(--muted);
  font-size: 12px;
}

.people-admin-main-head,
.people-admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.people-admin-main-head {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.people-admin-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.people-admin-section-head {
  margin-bottom: 12px;
}

.people-admin-people-list {
  display: grid;
  gap: 12px;
}

.people-admin-person-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel2);
}

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

.people-admin-role-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.people-admin-role-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}

.people-admin-role-row input[type="checkbox"] {
  width: auto;
  min-height: 0;
  padding: 0;
  flex: 0 0 auto;
}

.people-admin-person-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.people-admin-empty-state {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.people-admin-view[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .people-admin-layout {
    grid-template-columns: 1fr;
  }
  .people-admin-customer-list {
    max-height: 320px;
  }
  .people-admin-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .people-admin-main-head,
  .people-admin-section-head {
    align-items: stretch;
    flex-direction: column;
  }
  .people-admin-profile-grid,
  .people-admin-person-grid {
    grid-template-columns: 1fr;
  }
}
.people-admin-customer-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.people-admin-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 9px;
  background: #d69e2e;
}

.people-admin-status-dot.is-green {
  background: #2f9e44;
}
.people-admin-status-dot.is-amber {
  background: #d69e2e;
}
.people-admin-status-dot.is-red {
  background: #d64545;
}

.people-admin-customer-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 12px;
}

.people-admin-customer-action {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.people-admin-customer-action:hover,
.people-admin-customer-action.active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.people-admin-customer-action-separator {
  color: var(--border);
}
.people-admin-search {
  font: inherit;
}

.people-admin-profile-grid .stat-label,
.people-admin-transaction-stats .stat-label {
  font-size: 12px;
  line-height: 1.35;
}

.people-admin-profile-grid .stat-value,
.people-admin-transaction-stats .stat-value {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.people-admin-profile-grid .stat-card,
.people-admin-transaction-stats .stat-card {
  min-width: 0;
}

.people-admin-customer-name,
.people-admin-customer-meta,
.people-admin-customer-action {
  font-family: inherit;
}

.people-admin-customer-name {
  font-size: 14px;
  line-height: 1.35;
}

.people-admin-customer-meta {
  font-size: 13px;
  line-height: 1.35;
}

.people-admin-customer-actions {
  font-size: 12px;
  line-height: 1.3;
}
.people-admin-page .people-admin-main,
.people-admin-page .people-admin-main * {
  font-family: inherit;
}

.people-admin-page .people-admin-main .section-title {
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
}

.people-admin-page .people-admin-main .people-admin-customer-summary,
.people-admin-page .people-admin-main .panel-sub {
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.people-admin-page .people-admin-main .people-admin-profile-grid .stat-card {
  min-width: 0 !important;
}

.people-admin-page .people-admin-main .people-admin-profile-grid .stat-label {
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  margin: 0 0 6px !important;
}

.people-admin-page .people-admin-main .people-admin-profile-grid .stat-value {
  font-size: 20px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  margin: 0 !important;
}

.people-admin-page
  .people-admin-main
  .people-admin-section-head
  .section-title {
  font-size: 18px !important;
  line-height: 1.3 !important;
}

.people-admin-page .people-admin-main .people-admin-person-card,
.people-admin-page .people-admin-main .people-admin-person-card input,
.people-admin-page .people-admin-main .people-admin-person-card label,
.people-admin-page .people-admin-main .people-admin-person-card span,
.people-admin-page .people-admin-main .people-admin-person-card button {
  font-size: 14px !important;
  line-height: 1.4 !important;
}

/* Customers / Humans / Senda: regular weight only. */
.people-admin-page,
.people-admin-page * {
  font-weight: 400 !important;
}

/* Humans transaction accordion */
.people-admin-transaction-list {
  display: grid;
  gap: 8px;
}

.people-admin-transaction-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel2);
}

.people-admin-transaction-row {
  width: 100%;
  display: grid;
  grid-template-columns:
    minmax(130px, 0.9fr) minmax(220px, 1.7fr) minmax(130px, 0.8fr)
    minmax(110px, 0.7fr) 24px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.people-admin-transaction-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.people-admin-transaction-row[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.035);
}

.people-admin-transaction-recipient {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.people-admin-transaction-recipient-name,
.people-admin-transaction-id,
.people-admin-transaction-date,
.people-admin-transaction-amount,
.people-admin-transaction-status {
  min-width: 0;
  overflow-wrap: anywhere;
}

.people-admin-transaction-id {
  color: var(--muted);
  font-size: 12px;
}

.people-admin-transaction-status {
  color: var(--muted);
}

.people-admin-transaction-status.is-processed {
  color: var(--green);
}

.people-admin-transaction-status.is-pending {
  color: var(--amber);
}

.people-admin-transaction-status.is-cancelled {
  color: var(--muted);
}

.people-admin-transaction-status.is-failed {
  color: var(--red);
}

.people-admin-transaction-chevron {
  text-align: center;
  transition: transform 0.15s ease;
}

.people-admin-transaction-row[aria-expanded="true"]
  .people-admin-transaction-chevron {
  transform: rotate(180deg);
}

.people-admin-transaction-detail {
  border-top: 1px solid var(--border);
  padding: 16px;
}

.people-admin-transaction-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 18px;
}

.people-admin-transaction-detail-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.people-admin-transaction-detail-field span {
  color: var(--muted);
  font-size: 12px;
}

.people-admin-transaction-detail-field strong {
  font-weight: 400 !important;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .people-admin-transaction-row {
    grid-template-columns:
      minmax(120px, 0.9fr) minmax(180px, 1.5fr) minmax(110px, 0.8fr)
      24px;
  }

  .people-admin-transaction-status {
    display: none;
  }

  .people-admin-transaction-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .people-admin-transaction-row {
    grid-template-columns: 1fr auto 20px;
  }

  .people-admin-transaction-date {
    display: none;
  }

  .people-admin-transaction-detail-grid {
    grid-template-columns: 1fr;
  }
}
.people-admin-send-limit {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.people-admin-send-limit-label,
.people-admin-send-limit-available {
  font-size: 12px;
  line-height: 1.35;
}

.people-admin-send-limit-available {
  margin-top: 5px;
}

.people-admin-send-limit-progress {
  display: block;
  width: 100%;
  height: 9px;
  margin-top: 7px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.18);
}

.people-admin-send-limit-progress::-webkit-progress-bar {
  background: rgba(148, 163, 184, 0.18);
  border-radius: 999px;
}

.people-admin-send-limit-progress::-webkit-progress-value {
  border-radius: 999px;
}

.people-admin-send-limit-progress::-moz-progress-bar {
  border-radius: 999px;
}

.people-admin-send-limit-progress.is-green::-webkit-progress-value {
  background: #2f9e44;
}

.people-admin-send-limit-progress.is-amber::-webkit-progress-value {
  background: #d69e2e;
}

.people-admin-send-limit-progress.is-red::-webkit-progress-value {
  background: #d64545;
}

.people-admin-send-limit-progress.is-green::-moz-progress-bar {
  background: #2f9e44;
}

.people-admin-send-limit-progress.is-amber::-moz-progress-bar {
  background: #d69e2e;
}

.people-admin-send-limit-progress.is-red::-moz-progress-bar {
  background: #d64545;
}
/* APIs: payout rails / routing control panel */
.apis-admin-page,
.apis-admin-page * {
  font-weight: 400;
}

.apis-control-layout {
  display: grid;
  grid-template-columns: minmax(240px, 30%) minmax(0, 70%);
  gap: 16px;
  align-items: start;
}

.apis-partner-panel,
.apis-detail-panel {
  min-width: 0;
}

.apis-panel-head,
.apis-detail-head,
.apis-section-head,
.apis-detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.apis-panel-head,
.apis-detail-head {
  margin-bottom: 16px;
}

.apis-detail-title-row {
  justify-content: flex-start;
}

.apis-partner-list,
.apis-route-list,
.apis-endpoint-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apis-partner-list {
  margin-bottom: 14px;
}

.apis-partner-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.apis-partner-row:hover,
.apis-partner-row.is-active {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.35);
}

.apis-partner-status,
.apis-endpoint-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
  background: rgba(148, 163, 184, 0.65);
}

.apis-partner-status.is-connected,
.apis-endpoint-dot.is-connected {
  background: #2f9e44;
}

.apis-partner-status.is-degraded,
.apis-endpoint-dot.is-degraded {
  background: #d69e2e;
}

.apis-partner-status.is-error,
.apis-endpoint-dot.is-error {
  background: #d64545;
}

.apis-partner-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.apis-partner-name,
.apis-health-value,
.apis-endpoint-type,
.apis-endpoint-method,
.apis-route-pair-code {
  color: var(--text);
}

.apis-partner-meta,
.apis-health-label,
.apis-route-pair-flow,
.apis-endpoint-url,
.apis-endpoint-state {
  color: var(--muted);
  font-size: 12px;
}

.apis-partner-chevron {
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.apis-health-badge,
.apis-method-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
}

.apis-health-badge.is-connected {
  border-color: rgba(47, 158, 68, 0.35);
}

.apis-health-badge.is-degraded {
  border-color: rgba(214, 158, 46, 0.35);
}

.apis-health-badge.is-error {
  border-color: rgba(214, 69, 69, 0.35);
}

.apis-health-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.apis-health-item,
.apis-credential-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.apis-config-section {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

.apis-section-head {
  margin-bottom: 12px;
}

.apis-route-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.apis-route-pair {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.apis-route-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.apis-endpoint-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) 70px minmax(180px, 2fr) minmax(
      100px,
      0.8fr
    );
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.apis-endpoint-url {
  word-break: break-word;
}

.apis-endpoint-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

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

.apis-credential-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 980px) {
  .apis-control-layout {
    grid-template-columns: 1fr;
  }

  .apis-endpoint-row {
    grid-template-columns: 1fr;
  }

  .apis-health-strip,
  .apis-credential-grid {
    grid-template-columns: 1fr;
  }

  .apis-route-card,
  .apis-detail-head,
  .apis-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .apis-route-methods {
    justify-content: flex-start;
  }
}

/* Dashboard graphics */
.dashboard-graphics-stack {
  display: grid;
  gap: var(--gap);
  min-width: 0;
}

.dashboard-chart-panel,
.dashboard-fee-panel {
  min-width: 0;
}

.dashboard-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--text-soft);
  font-size: 12px;
}

.dashboard-legend-item,
.dashboard-fee-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-legend-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
}

.dashboard-legend-dot.is-business {
  background: #33e675;
}

.dashboard-legend-dot.is-remittance {
  background: #48ceff;
}

.dashboard-line-chart-wrap {
  width: 100%;
  margin-top: 18px;
  overflow: hidden;
}

.dashboard-line-chart {
  display: block;
  width: 100%;
  height: auto;
}

.dashboard-chart-grid {
  stroke: rgba(148, 163, 184, 0.14);
  stroke-width: 1;
}

.dashboard-chart-axis-label {
  fill: var(--muted);
  font-family: inherit;
  font-size: 11px;
}

.dashboard-chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-chart-line.is-business {
  stroke: #33e675;
}

.dashboard-chart-line.is-remittance {
  stroke: #48ceff;
}

.dashboard-fee-panel {
  display: grid;
  gap: 18px;
}

.dashboard-fee-content {
  display: flex;
  align-items: center;
  gap: 34px;
  min-width: 0;
}

.dashboard-donut-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  flex: 0 0 170px;
}

.dashboard-donut {
  display: block;
  width: 170px;
  height: 170px;
  transform: rotate(-90deg);
}

.dashboard-donut-track,
.dashboard-donut-segment {
  fill: none;
  stroke-width: 18;
}

.dashboard-donut-track {
  stroke: rgba(148, 163, 184, 0.14);
}

.dashboard-donut-segment {
  stroke-linecap: butt;
}

.dashboard-donut-segment.is-business {
  stroke: #33e675;
}

.dashboard-donut-segment.is-remittance {
  stroke: #48ceff;
}

.dashboard-donut-centre {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.dashboard-donut-total {
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.dashboard-donut-label {
  max-width: 86px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.dashboard-fee-legend {
  display: grid;
  gap: 18px;
}

.dashboard-fee-row {
  align-items: flex-start;
}

.dashboard-fee-row .dashboard-legend-dot {
  margin-top: 5px;
}

.dashboard-fee-label,
.dashboard-fee-value,
.dashboard-fee-percent {
  margin: 0;
}

.dashboard-fee-label {
  color: var(--text-soft);
  font-size: 12px;
}

.dashboard-fee-value {
  margin-top: 3px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.dashboard-fee-percent {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 700px) {
  .dashboard-chart-head,
  .dashboard-fee-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-chart-legend {
    justify-content: flex-start;
  }
}

/* =========================================================
   BATCH / RECONCILIATION
   Page-specific structure only. Typography inherits the
   canonical Senda Admin theme above.
   ========================================================= */

.batch-inline-form {
  display: inline;
}

.batch-modal[hidden] {
  display: none;
}

.batch-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.batch-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.batch-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.batch-modal-open {
  overflow: hidden;
}

.batch-csv-delete {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 2px 4px;
  margin: 0;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.batch-csv-delete:hover,
.batch-csv-delete:focus {
  color: var(--text-soft);
}

/* Stripped-back Batch workflow */
.batch-layout {
  width: 100%;
}

.batch-workflow {
  min-width: 0;
}

.batch-saved-panel {
  min-width: 0;
}

.batch-upload-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap);
}

.batch-currency-choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.batch-radio {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: fit-content;
  cursor: pointer;
}

.batch-radio input[type="radio"] {
  appearance: auto;
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 0;
  margin: 0;
}

.batch-drop-zone {
  width: 220px;
  aspect-ratio: 1 / 1;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
}

.batch-drop-zone:hover,
.batch-drop-zone:focus {
  border-color: var(--success);
  outline: none;
}

.batch-file-list {
  display: flex;
  flex-direction: column;
}

.batch-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  min-height: 34px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.batch-file-row:last-child {
  border-bottom: 0;
}

.batch-reconciliation-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

@media (max-width: 700px) {
  .batch-upload-grid {
    flex-direction: column;
  }

  .batch-drop-zone {
    width: min(220px, 100%);
  }
}

/* Compliance — Didit document archive */
.didit-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.didit-doc-tile {
  appearance: none;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.didit-doc-tile:hover {
  background: var(--panel-hover);
}

.didit-doc-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 150px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: var(--radius-xs);
  background: var(--bg-soft);
}

.didit-doc-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.didit-doc-filetype {
  color: var(--muted);
  font-size: 8px;
}
.didit-doc-name {
  display: block;
  overflow-wrap: anywhere;
}
.didit-doc-meta,
.didit-doc-saved {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}
.didit-doc-saved.is-saved {
  color: var(--green-soft);
}
.didit-doc-saved.is-missing {
  color: var(--red-soft);
}

.didit-modal[hidden] {
  display: none;
}
.didit-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.didit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}
.didit-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 94vw);
  height: min(850px, 90vh);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.didit-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.didit-modal-body {
  flex: 1;
  min-height: 0;
  background: var(--bg);
}
.didit-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.didit-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .didit-doc-grid {
    grid-template-columns: 1fr;
  }
}

/* Compliance: simple archived document list */
.didit-doc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  color: #fff;
}
.didit-doc-row {
  width: 100%;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.didit-doc-thumb {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel-soft);
}
.didit-doc-thumb img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  display: block;
}
.didit-pdf-thumb {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.didit-doc-filename {
  min-width: 0;
  overflow-wrap: anywhere;
}
.didit-doc-archived {
  white-space: nowrap;
  color: var(--muted);
}
.didit-doc-archived.is-saved {
  color: var(--green-soft);
}
.didit-doc-archived.is-missing {
  color: var(--red-soft);
}
.kyc-queue-panel {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
}

.kyc-search-wrap {
  margin-top: 14px;
}

.compliance-error {
  white-space: pre-wrap;
  color: #fca5a5;
}

.kyc-dot {
  opacity: 0.25;
}

.kyc-dot.active {
  opacity: 1;
}

.people-admin-links {
  width: 100%;
  text-align: center;
}

/* Customers transaction tree */

.people-admin-transaction-tree details {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.people-admin-transaction-tree summary {
  padding: 4px 0;
  border: 0 !important;
  list-style: none;
}

.people-admin-transaction-tree summary::-webkit-details-marker {
  display: none;
}

.people-admin-tree-toggle::before {
  content: "[+]";
  color: var(--muted);
  margin-right: 6px;
}

.people-admin-transaction-tree
  details[open]
  > summary
  .people-admin-tree-toggle::before {
  content: "[-]";
}

.people-admin-tree-children {
  margin-left: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.people-admin-tree-detail {
  margin-left: 34px;
  padding: 6px 0 10px;
}
.support-chat-panel {
  height: 650px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.support-chat-panel .support-message-history {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.support-chat-panel .support-message-history > .card {
  flex-shrink: 0;
}

.support-chat-panel form {
  flex: 0 0 auto;
}
.support-waiting-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: #ff3b30;
  vertical-align: middle;
}
