:root {
  --bg: #080f1f;
  --bg-deep: #050a15;
  --panel: #11182b;
  --panel-2: #141d33;
  --panel-3: #172641;
  --line: #2b3752;
  --line-strong: #38506f;
  --text: #eef4ff;
  --muted: #aeb8cc;
  --soft: #73819a;
  --cyan: #38c2ff;
  --cyan-2: #75d4ff;
  --blue: #1f6fb6;
  --green: #35d0a5;
  --pink: #ff6392;
  --warning: #ffbd59;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
  --sidebar: 344px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-deep);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at 32% 10%, rgba(56, 194, 255, .16), transparent 34rem),
    linear-gradient(135deg, #08101e 0%, #0b1324 48%, #07101e 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

.app-frame {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  overflow: auto;
  padding: 26px 20px 32px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(17, 24, 43, .98), rgba(7, 12, 25, .98)),
    radial-gradient(circle at 0 0, rgba(56, 194, 255, .18), transparent 20rem);
}

.brand-row,
.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #52647f;
  border-radius: 14px;
  background: linear-gradient(145deg, #0e1629, #1b2c49);
  color: var(--cyan-2);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 12px 30px rgba(0, 0, 0, .28);
}

.brand-copy strong,
.login-brand strong {
  display: block;
  font-size: 21px;
  letter-spacing: -.03em;
}

.brand-copy span,
.login-brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #10172a;
}

.sidebar-search span {
  color: #9fb0cc;
  font-size: 26px;
  line-height: 1;
}

.sidebar-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 17px;
  font-weight: 700;
}

.sidebar-search input::placeholder {
  color: #8491aa;
}

.menu {
  display: grid;
  gap: 8px;
}

.menu-group {
  border-radius: 19px;
}

.menu-title {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.menu-title:hover,
.menu-group.is-active > .menu-title {
  border-color: #244768;
  background: linear-gradient(90deg, rgba(40, 140, 221, .34), rgba(25, 33, 54, .82));
}

.menu-group.is-active > .menu-title {
  box-shadow: inset 4px 0 0 var(--cyan);
}

.menu-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 10px;
  background: rgba(164, 177, 203, .13);
  color: #dce8ff;
  font-size: 14px;
  font-weight: 900;
}

.menu-icon-customers,
.menu-icon-collectors {
  background: rgba(53, 208, 165, .18);
}

.menu-icon-cashbox,
.menu-icon-reports {
  background: rgba(56, 194, 255, .16);
}

.menu-label {
  flex: 1;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.03em;
}

.menu-chevron {
  color: #a8b5cc;
  transition: transform .18s ease;
}

.menu-title[aria-expanded="true"] .menu-chevron {
  transform: rotate(180deg);
}

.submenu {
  display: grid;
  gap: 2px;
  padding: 8px 0 10px 52px;
}

.submenu-link {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  color: #c3cbdb;
  font-size: 15.5px;
  font-weight: 700;
}

.submenu-link span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #1c3554;
}

.submenu-link:hover,
.submenu-link.is-current {
  color: var(--text);
  background: linear-gradient(90deg, rgba(42, 128, 210, .58), rgba(26, 55, 94, .9));
}

.submenu-link.is-current span {
  background: #5fb6ff;
}

.main-panel {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(43, 55, 82, .72);
  background: rgba(15, 24, 42, .86);
  backdrop-filter: blur(18px);
}

.icon-button {
  display: none;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 9px;
  border: 1px solid #42617f;
  border-radius: 12px;
  background: #102139;
  cursor: pointer;
}

.icon-button span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: #dce8ff;
}

.breadcrumb {
  color: #ced8ea;
  font-size: 14px;
}

.breadcrumb span {
  color: var(--cyan);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tenant-pill,
.user-pill,
.ghost-link,
.logout-link,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 24, 43, .76);
}

.ghost-link:hover,
.logout-link:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.content-stage {
  width: min(1520px, calc(100vw - var(--sidebar)));
  margin: 0 auto;
  padding: 42px 38px 64px;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: .95;
  letter-spacing: -.06em;
}

.page-heading p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.primary-action,
.toolbar button,
.sheet-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #67bfff;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #49b9ff, #2676c7);
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(44, 152, 231, .32);
  cursor: pointer;
}

.primary-action.is-secondary {
  border-color: #99d9cf;
  color: #005f49;
  background: #e8f7f3;
  box-shadow: none;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-grid.compact {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.metric-card,
.panel-card,
.collector-card,
.report-card,
.route-card,
.privacy-card,
.login-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(26, 47, 78, .72), rgba(15, 21, 38, .96)),
    var(--panel);
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 138px;
  padding: 20px;
}

.metric-card strong {
  display: block;
  margin-top: 14px;
  font-size: 29px;
  letter-spacing: -.05em;
}

.metric-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.metric-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #061220;
  font-weight: 900;
}

.accent-green .metric-icon {
  background: var(--green);
}

.accent-blue .metric-icon {
  background: #7196ff;
}

.accent-pink .metric-icon {
  background: var(--pink);
}

.accent-cyan .metric-icon {
  background: #79d7ff;
}

.dashboard-grid,
.split-grid,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

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

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

.split-grid > *,
.profile-grid > * {
  grid-column: span 6;
}

.panel-card {
  padding: 22px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-title h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.04em;
}

.panel-title span,
.panel-title a {
  color: #91ffd2;
  font-size: 13px;
  font-weight: 900;
}

.line-chart {
  min-height: 230px;
}

.line-chart svg {
  display: block;
  width: 100%;
  height: 230px;
}

.axis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  color: #b5bfd2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.donut-row {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 210px;
}

.donut {
  width: 126px;
  height: 126px;
  border-radius: 999px;
  background: conic-gradient(#54caff 0 84%, #1d2b44 84% 100%);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: inherit;
  background: #102038;
}

.legend {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.legend b {
  color: var(--text);
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.segmented button,
.mobile-actions button,
.quick-amounts button {
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.segmented button {
  min-height: 30px;
  padding: 0 12px;
}

.segmented .is-selected,
.mobile-actions .is-selected {
  color: var(--text);
  background: #17375b;
  box-shadow: inset 0 0 0 1px #2d75ad;
}

.bar-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 48px;
  min-height: 160px;
  padding: 10px 64px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #08101e;
}

.bar-strip span {
  display: block;
  min-height: 2px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #41c4ff, #1b6f9a);
  box-shadow: 0 16px 34px rgba(57, 195, 255, .24);
}

.collector-list {
  display: grid;
  gap: 10px;
}

.collector-row,
.route-main,
.collector-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.collector-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 16, 30, .62);
}

.avatar,
.mobile-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  color: #d7e8ff;
  background: #1a2f4d;
  font-weight: 900;
  text-transform: uppercase;
}

.avatar.xl {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  border-radius: 18px;
  font-size: 24px;
}

.collector-row div {
  min-width: 0;
  flex: 1;
}

.collector-row strong,
.compact-table strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collector-row small {
  color: var(--muted);
}

.status-pill {
  color: #bfffe7;
  border-color: rgba(53, 208, 165, .36);
  background: rgba(53, 208, 165, .12);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-pill.muted {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, .03);
}

.compact-table {
  display: grid;
  gap: 6px;
}

.compact-table a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 10px;
}

.compact-table a:hover {
  background: rgba(255, 255, 255, .05);
}

.compact-table span,
.compact-table em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.toolbar input,
.form-grid input,
.form-grid textarea,
.payment-sheet input,
.payment-sheet textarea {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 13px;
  color: var(--text);
  background: #0a1222;
}

.toolbar input {
  min-height: 46px;
  padding: 0 15px;
}

.toolbar select {
  min-height: 46px;
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 14px;
  color: var(--text);
  background: #0a1222;
  font-weight: 850;
}

.toolbar a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.data-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(43, 55, 82, .72);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #aeb8cc;
  background: rgba(8, 16, 30, .88);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}

td {
  color: #d9e2f2;
}

td strong,
td small {
  display: block;
}

td small {
  margin-top: 3px;
  color: var(--muted);
}

tr:hover td {
  background: rgba(56, 194, 255, .045);
}

.row-action {
  color: var(--cyan-2);
  font-weight: 900;
}

.loan-collector-cell {
  min-width: 280px;
}

.loan-collector-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: center;
}

.loan-collector-select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 10px;
  color: var(--text);
  background: #0a1222;
  font-size: 12px;
  font-weight: 850;
}

.mini-save-button {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(67, 197, 174, .55);
  border-radius: 999px;
  padding: 0 12px;
  color: #eafff8;
  background: linear-gradient(180deg, #11a486, #087965);
  box-shadow: 0 8px 18px rgba(6, 120, 101, .22);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.mini-save-button:hover,
.mini-save-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(6, 120, 101, .3);
}

.loan-inline-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.loan-inline-actions .row-action {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(118, 226, 195, .28);
  border-radius: 999px;
  padding: 0 12px;
  color: #dffcf3;
  background: rgba(17, 164, 134, .16);
  text-decoration: none;
}

.loan-inline-actions .row-action-edit {
  border-color: rgba(96, 165, 250, .38);
  color: #dbeafe;
  background: rgba(37, 99, 235, .18);
}

.loan-inline-actions .row-action-delete {
  border-color: rgba(248, 113, 113, .42);
  color: #fee2e2;
  background: rgba(185, 28, 28, .16);
}

.loan-edit-warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #7c2d12;
}

.loan-edit-warning strong,
.loan-edit-warning p {
  margin: 0;
}

.loan-edit-warning p {
  margin-top: 6px;
  color: #9a3412;
}

.loan-edit-summary,
.loan-delete-summary div {
  display: grid;
  gap: 6px;
  border: 1px solid #d8e1ea;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.loan-edit-summary small,
.loan-delete-summary dt {
  color: #667085;
  font-size: 12px;
  font-weight: 850;
}

.loan-edit-summary strong,
.loan-delete-summary dd {
  margin: 0;
  color: #101828;
  font-size: 18px;
  font-weight: 950;
}

.loan-delete-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

@media (min-width: 821px) {
  .loans-mobile-table table {
    min-width: 1080px;
  }

  .loans-mobile-table th:last-child,
  .loans-mobile-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #101827;
    box-shadow: -12px 0 18px rgba(5, 12, 24, .22);
  }

  .loans-mobile-table th:last-child {
    z-index: 3;
    background: #17243a;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .loans-mobile-table table {
    min-width: 820px;
  }

  .loans-mobile-table th:nth-child(3),
  .loans-mobile-table td:nth-child(3),
  .loans-mobile-table th:nth-child(5),
  .loans-mobile-table td:nth-child(5) {
    display: none;
  }
}

.detail-list {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px 18px;
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 900;
}

.detail-list dd {
  margin: 0;
}

.collector-cards,
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.collector-card,
.report-card {
  padding: 20px;
}

.collector-card h2,
.report-card strong {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.04em;
}

.collector-card p,
.report-card small {
  color: var(--muted);
}

.collector-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.collector-stats span {
  display: grid;
  gap: 4px;
  min-height: 80px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(8, 16, 30, .52);
  font-size: 12px;
  font-weight: 800;
}

.collector-stats b {
  color: var(--text);
  font-size: 17px;
}

.report-card {
  display: grid;
  gap: 10px;
  min-height: 166px;
}

.report-card span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #061220;
  background: var(--cyan);
  font-weight: 900;
}

.workbench {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
}

.workbench-side {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 16, 30, .72);
}

.workbench-side strong {
  margin-bottom: 8px;
}

.workbench-side a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 800;
}

.workbench-side a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

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

.form-grid label,
.payment-sheet label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.form-grid input,
.form-grid textarea,
.payment-sheet input,
.payment-sheet textarea {
  min-height: 44px;
  padding: 12px;
}

.form-grid textarea,
.payment-sheet textarea {
  min-height: 92px;
  resize: vertical;
}

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

.form-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.form-grid .checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-grid .checkbox-line input {
  width: 18px;
  min-height: 18px;
}

.password-tools {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid #c6e7df;
  border-radius: 12px;
  background: #f4fbf8;
}

.password-tools > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.password-tools output {
  display: block;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px dashed #9fd9cf;
  border-radius: 10px;
  color: #00785d;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.password-tools small {
  color: #526071;
  line-height: 1.35;
}

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

.compact-heading {
  margin-bottom: 14px;
}

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

.form-grid ul,
.form-errors {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, .28);
  border-radius: 12px;
  color: #b42318;
  background: #fff1f3;
  list-style-position: inside;
}

.form-grid select,
.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid #d8e1ea;
  border-radius: 12px;
  color: #101828;
  background: #fff;
  font: inherit;
}

.form-grid .credit-block-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid #fecdca;
  border-radius: 14px;
  background: #fff7f6;
}

.form-grid .credit-block-toggle input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #dc2626;
}

.credit-block-toggle strong,
.credit-block-toggle small {
  display: block;
}

.credit-block-toggle strong {
  color: #7a271a;
  font-weight: 950;
}

.credit-block-toggle small,
.credit-block-meta {
  color: #667085;
  font-weight: 800;
}

.credit-block-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  border-color: #b7e4dc;
  background: linear-gradient(180deg, #f8fffd, #ffffff);
}

.credit-block-panel.is-blocked {
  border-color: #fecdca;
  background: linear-gradient(180deg, #fff7f6, #ffffff);
}

.credit-block-panel p {
  margin: 0;
  color: #344054;
  font-weight: 800;
}

.credit-block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.credit-block-form label {
  flex: 1 1 360px;
  display: grid;
  gap: 6px;
  color: #475467;
  font-weight: 900;
}

.credit-block-form textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid #d8e1ea;
  border-radius: 12px;
  padding: 10px 12px;
  color: #101828;
  background: #fff;
  font: inherit;
}

.primary-action:disabled,
.soft-button:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
}

.form-grid input.is-out-of-range {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.product-preset-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  color: #075985;
  background: #f0f9ff;
  font-size: 13px;
  font-weight: 800;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d8e1ea;
  border-radius: 18px;
  background: #fff;
}

.application-customer-picker {
  border-color: #b7e4dc;
  background: linear-gradient(180deg, #f8fffd, #ffffff);
}

.application-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.application-picker-actions .is-active {
  outline: 3px solid rgba(0, 136, 102, .16);
}

.form-section[hidden] {
  display: none !important;
}

.multi-action-form-actions {
  flex-wrap: wrap;
}

.finance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 16px;
  align-items: start;
}

.finance-side {
  display: grid;
  gap: 16px;
}

.finance-side h3 {
  margin: 0;
  color: #344054;
  font-size: 15px;
}

.money-stack {
  display: grid;
  gap: 10px;
}

.money-stack article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #d8e1ea;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc, #eef8f6);
}

.money-stack small,
.money-stack span {
  color: #667085;
  font-weight: 800;
}

.money-stack strong {
  color: #0f766e;
  font-size: 24px;
}

.receipt-sheet {
  max-width: 860px;
  margin: 0 auto;
}

.receipt-sheet header,
.receipt-sheet footer,
.receipt-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.receipt-sheet header {
  padding-bottom: 18px;
  border-bottom: 1px solid #d8e1ea;
}

.receipt-sheet header strong,
.receipt-sheet header b {
  display: block;
  color: #101828;
  font-size: 24px;
}

.receipt-sheet header span {
  color: #667085;
  font-weight: 800;
}

.receipt-total {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: #eef8f6;
}

.receipt-total small {
  color: #667085;
  font-weight: 900;
}

.receipt-total strong {
  color: #0f766e;
  font-size: 34px;
}

.receipt-details {
  margin: 18px 0;
}

.danger-link {
  color: #b42318 !important;
  border-color: #fecdca !important;
  background: #fff1f3 !important;
}

.danger-panel {
  max-width: 760px;
  margin: 0 auto;
  border-color: #fecdca;
}

.danger-action {
  border-color: #f97066;
  background: linear-gradient(180deg, #f04438, #b42318);
  box-shadow: 0 14px 34px rgba(180, 35, 24, .22);
}

.report-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #d8e1ea;
  border-radius: 18px;
  background: #fff;
}

.report-toolbar label {
  display: grid;
  gap: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.report-toolbar input,
.report-toolbar select {
  min-height: 42px;
  width: 100%;
  border: 1px solid #d8e1ea;
  border-radius: 12px;
  padding: 0 12px;
  color: #101828;
  background: #fff;
  font: inherit;
}

.report-toolbar .search-field {
  grid-column: span 2;
}

.security-toolbar {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-inline: 8px;
}

.security-toolbar .search-field {
  grid-column: span 2;
}

.security-toolbar .search-button,
.security-toolbar .soft-button {
  min-width: 120px;
}

.security-summary {
  padding: 0 8px;
}

.security-role-grid {
  margin-bottom: 8px;
}

.security-office-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.permission-table table,
.audit-table table {
  min-width: 1080px;
}

.operational-audit-table table {
  min-width: 1320px;
}

.system-log-table table {
  min-width: 1280px;
}

.event-area {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  color: #344054;
  background: #f9fafb;
  font-size: 12px;
  font-weight: 850;
}

.event-area-cash,
.event-area-payment {
  color: #047857;
  border-color: #9ee4d5;
  background: #dcfce7;
}

.event-area-correction {
  color: #b45309;
  border-color: #fed7aa;
  background: #fffbeb;
}

.event-area-evidence {
  color: #175cd3;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.event-area-access {
  color: #047857;
  border-color: #9ee4d5;
  background: #ecfdf3;
}

.event-area-jobs {
  color: #b45309;
  border-color: #fed7aa;
  background: #fffbeb;
}

.event-area-health {
  color: #175cd3;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.event-area-security {
  color: #7c3aed;
  border-color: #ddd6fe;
  background: #f5f3ff;
}

.event-area-system,
.event-area-portfolio {
  color: #475467;
  border-color: #d0d5dd;
  background: #f2f4f7;
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.backup-heading {
  align-items: flex-start;
  flex-wrap: wrap;
}

.backup-heading > div:first-child {
  flex: 1 1 520px;
}

.backup-heading .heading-actions {
  flex: 1 1 340px;
  max-width: 100%;
}

.backup-heading .heading-actions a {
  min-width: 118px;
  white-space: nowrap;
}

.backup-grid,
.backup-columns {
  display: grid;
  gap: 8px;
  margin: 8px;
}

.backup-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.backup-columns {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.backup-callout {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #d1e9ff;
  border-radius: 8px;
  background: #eff8ff;
}

.backup-callout strong {
  color: #17233a;
  font-size: 18px;
  font-weight: 900;
}

.backup-callout p,
.backup-note {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

.backup-note {
  margin-top: 12px;
}

.backup-upload {
  display: grid;
  gap: 12px;
}

.backup-upload label {
  display: grid;
  gap: 6px;
  color: #475467;
  font-size: 13px;
  font-weight: 850;
}

.backup-upload input[type="file"] {
  min-height: 44px;
  padding: 10px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
}

.verification-card {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #166534;
  background: #f0fdf4;
}

.verification-card strong {
  font-size: 15px;
  font-weight: 900;
}

.verification-card span {
  font-size: 13px;
}

.backup-list {
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
}

.backup-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #fff;
}

.backup-list span {
  min-width: 0;
  overflow: hidden;
  color: #475467;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-list strong {
  color: #17233a;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.restore-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.restore-steps span {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 58px;
  padding: 12px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  color: #475467;
  background: #fff;
  font-size: 13px;
  line-height: 1.45;
}

.restore-steps b {
  display: inline-grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #0e9384;
}

.settings-form {
  display: block;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 8px;
  margin: 8px;
}

.settings-main,
.settings-side {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.settings-card {
  padding: 14px;
}

.settings-card-note {
  margin: 6px 0 14px;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

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

.settings-fields.compact {
  grid-template-columns: 1fr;
}

.settings-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #fff;
}

.settings-field > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.settings-field strong {
  color: #17233a;
  font-size: 13px;
  font-weight: 900;
}

.settings-field small {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.settings-field input,
.settings-field select {
  width: 100%;
  min-width: 0;
}

.settings-toggle {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.settings-toggle input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-height: 22px;
  accent-color: #0e9384;
}

.settings-secret input {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.settings-preview {
  display: grid;
  gap: 8px;
}

.settings-preview div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #fff;
}

.settings-preview span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.settings-preview strong {
  overflow: hidden;
  color: #17233a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .backup-grid,
  .backup-columns,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .backup-heading .heading-actions {
    justify-content: flex-start;
  }
}

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

.audit-table code {
  display: block;
  max-width: 320px;
  overflow: hidden;
  color: inherit;
  font: 12px/1.45 "SFMono-Regular", Consolas, monospace;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.security-feature-list {
  margin: 8px;
}

.correction-review-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.correction-review-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.correction-table table {
  min-width: 1420px;
}

.correction-difference {
  display: inline-block;
  min-width: 92px;
  font-weight: 950;
}

.correction-difference.increase {
  color: #047857;
}

.correction-difference.decrease {
  color: #dc2626;
}

.correction-difference.same {
  color: var(--muted);
}

.stacked-title {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.evidence-table table {
  min-width: 1380px;
}

.evidence-preview-grid {
  display: grid;
  gap: 12px;
}

.evidence-preview-grid a {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #344054;
  background: #fff;
  font-weight: 850;
}

.evidence-preview-grid img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.inline-action-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475467;
  font-size: 13px;
  font-weight: 850;
}

.inline-check input {
  width: 16px;
  min-height: 16px;
}

.mora-office-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.mora-table table {
  min-width: 1120px;
}

.mora-summary strong {
  font-size: 14px;
}

.excel-office-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.excel-upload-panel {
  margin-bottom: 8px;
  padding: 14px;
}

.excel-form-grid {
  grid-template-columns: minmax(260px, 1fr);
  margin-top: 12px;
}

.excel-form-grid input[type="file"] {
  padding: 10px 12px;
}

.excel-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.excel-actions button,
.excel-actions .primary-action {
  border: 0;
  cursor: pointer;
}

.excel-summary {
  margin: 8px 0;
  padding: 0;
}

.collection-toolbar {
  grid-template-columns: 150px 150px 220px 240px auto auto;
}

.delinquency-toolbar {
  grid-template-columns: 150px 150px 180px 240px auto auto;
}

.collection-metrics .metric-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-sheet-card {
  padding: 10px;
}

.collection-sheet {
  overflow: auto;
  max-width: 920px;
  margin: 0 auto;
  color: #101828;
  background: #fff;
}

.collection-sheet h2,
.collection-sheet h3 {
  margin: 0;
  text-align: center;
  line-height: 1.18;
}

.collection-sheet h2 {
  font-size: 20px;
  font-weight: 950;
}

.collection-sheet h3 {
  font-size: 18px;
  font-style: italic;
  font-weight: 900;
}

.collection-table {
  margin-top: 6px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.office-shell .collection-table table {
  min-width: 680px;
  width: 100%;
  border-collapse: collapse;
  color: #111827;
}

.office-shell .collection-table th,
.office-shell .collection-table td {
  padding: 5px 8px;
  border: 1px solid #111;
  font-size: 15px;
  line-height: 1.15;
}

.office-shell .collection-table th {
  color: #111;
  background: #08aeea;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.office-shell .collection-table th:first-child,
.office-shell .collection-table td:first-child {
  width: 72px;
  text-align: center;
}

.office-shell .collection-table.has-date-column th:nth-child(2),
.office-shell .collection-table.has-date-column td:nth-child(2) {
  width: 118px;
  text-align: center;
}

.office-shell .collection-table th:nth-last-child(2),
.office-shell .collection-table th:nth-last-child(1),
.office-shell .collection-table td:nth-last-child(2),
.office-shell .collection-table td:nth-last-child(1) {
  width: 150px;
  text-align: right;
}

.collection-table strong {
  font: inherit;
  font-weight: 500;
}

.collection-table small {
  display: block;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}

.collection-table .amount-cell {
  font-variant-numeric: tabular-nums;
}

.collection-table .mora-amount {
  color: #d71920;
  font-weight: 950;
}

.collection-table tfoot td {
  border-color: transparent;
  background: #fff;
  font-weight: 950;
}

.collection-summary-card {
  margin-top: 14px;
}

.collection-summary-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.summary-table table {
  min-width: 720px;
}

.delinquency-table table {
  min-width: 1180px;
}

.import-output {
  overflow: auto;
  max-height: 300px;
  margin: 0;
  padding: 14px;
  border: 1px solid #d8e1ea;
  border-radius: 6px;
  color: #101828;
  background: #f8fafc;
  white-space: pre-wrap;
}

.date-picker-panel {
  position: absolute;
  z-index: 1000;
  width: 286px;
  padding: 10px;
  border: 1px solid #cfd8e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 24, 40, .18);
}

.date-picker-head,
.date-picker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.date-picker-head strong {
  color: #101828;
  font-size: 14px;
  font-weight: 950;
}

.date-picker-panel button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #1d2939;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.date-picker-head button,
.date-picker-foot button {
  padding: 0 10px;
  border-color: #d8e1ea;
  background: #f8fafc;
}

.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 8px;
}

.date-picker-days span {
  color: #667085;
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.date-picker-grid button:hover,
.date-picker-grid button.is-today {
  border-color: #32a8e6;
  background: #eef8ff;
}

.date-picker-grid button.is-selected {
  color: #fff;
  border-color: #087f76;
  background: linear-gradient(180deg, #0ea59a, #087f76);
}

.date-picker-foot {
  margin-top: 10px;
}

@media print {
  .system-header,
  .ribbon,
  .sidebar,
  .backdrop,
  .statusbar,
  .page-heading,
  .report-toolbar,
  .metric-grid,
  .office-tabbar {
    display: none !important;
  }

  .desktop-app,
  .workspace,
  .main-panel,
  .content-stage {
    display: block;
    min-height: auto;
    padding: 0;
    background: #fff;
  }

  .panel-card.collection-sheet-card {
    border: 0;
    box-shadow: none;
  }

  .collection-sheet {
    max-width: none;
  }
}

.indicator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr);
  gap: 16px;
  align-items: start;
}

.empty-state,
.empty {
  color: var(--muted);
}

.empty-state {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(56, 194, 255, .04);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.feature-list div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(56, 194, 255, .18);
  border-radius: 14px;
  background: rgba(8, 16, 30, .42);
}

.feature-list span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #061220;
  background: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.feature-list p {
  margin: 0;
  color: #d7e1f2;
  line-height: 1.4;
}

.mobile-wrap {
  max-width: 460px;
  margin: 0 auto;
}

.mobile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0, rgba(56, 194, 255, .28), transparent 16rem),
    linear-gradient(135deg, #12213a, #0b1324);
  box-shadow: var(--shadow);
}

.mobile-hero small {
  color: var(--cyan-2);
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mobile-hero h1 {
  margin: 7px 0 3px;
  font-size: 34px;
  letter-spacing: -.06em;
}

.mobile-hero p {
  margin: 0;
  color: var(--muted);
}

.mobile-avatar {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
  border-radius: 20px;
  background: linear-gradient(145deg, #48c7ff, #1e6db0);
  color: #061220;
  font-size: 26px;
}

.mobile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.mobile-stats article {
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #10182b;
}

.mobile-stats strong,
.mobile-stats span {
  display: block;
}

.mobile-stats strong {
  font-size: 22px;
  letter-spacing: -.04em;
}

.mobile-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mobile-actions,
.quick-amounts {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow: auto;
}

.mobile-actions button,
.quick-amounts button {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
  background: #192235;
}

.privacy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(53, 208, 165, .14), rgba(15, 21, 38, .98)),
    var(--panel);
}

.privacy-card strong {
  display: block;
  margin-bottom: 4px;
  color: #bfffe7;
  font-size: 15px;
  letter-spacing: -.02em;
}

.privacy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.privacy-card span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(53, 208, 165, .34);
  border-radius: 999px;
  color: #bfffe7;
  background: rgba(53, 208, 165, .1);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

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

.route-card {
  padding: 14px;
}

.route-number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 12px;
  color: #061220;
  background: var(--cyan);
  font-weight: 950;
}

.route-main div {
  min-width: 0;
  flex: 1;
}

.route-main h2 {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.route-main p {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.route-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.route-detail div {
  display: grid;
  gap: 3px;
}

.route-detail span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.route-detail b {
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.route-buttons a,
.route-buttons button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #101a2e;
  font-weight: 900;
  cursor: pointer;
}

.route-buttons a {
  display: grid;
  place-items: center;
}

.route-buttons .primary {
  border-color: #67bfff;
  background: #2d93df;
}

.payment-sheet {
  position: sticky;
  bottom: 18px;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(17, 24, 43, .96);
  box-shadow: var(--shadow);
}

.sheet-handle {
  width: 52px;
  height: 5px;
  margin: 0 auto 4px;
  border-radius: 999px;
  background: #53617b;
}

.payment-sheet h2 {
  margin: 0;
}

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

.evidence-grid button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #101a2e;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.sheet-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(480px, 100%);
  padding: 30px;
}

.login-card h1 {
  margin: 34px 0 6px;
  font-size: 48px;
  letter-spacing: -.07em;
}

.login-copy,
.login-hint {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.login-form input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #0a1222;
}

.login-form button {
  min-height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: linear-gradient(180deg, #49b9ff, #2676c7);
  font-weight: 950;
  cursor: pointer;
}

.messages {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.message {
  position: relative;
  overflow: hidden;
  margin: 0;
  max-height: 160px;
  min-height: 54px;
  padding: 15px 18px 15px 52px;
  border: 1px solid #d7e2ee;
  border-radius: 18px;
  color: #334155;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 38px rgba(15, 23, 42, .08);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
  transition: opacity .28s ease, transform .28s ease, max-height .28s ease, margin .28s ease, padding .28s ease, border-width .28s ease;
}

.message::before {
  content: "i";
  position: absolute;
  top: 50%;
  left: 16px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #3b82f6;
  font-size: 13px;
  font-weight: 950;
  transform: translateY(-50%);
}

.message-success {
  border-color: #b9e4d5;
  color: #076650;
  background: linear-gradient(180deg, #f1fbf7 0%, #e7f8f1 100%);
}

.message-success::before {
  content: "✓";
  background: #008866;
}

.message-info {
  border-color: #bfdbfe;
  color: #1e4f8f;
  background: linear-gradient(180deg, #f2f7ff 0%, #eaf3ff 100%);
}

.message-warning {
  border-color: #f7d99a;
  color: #805000;
  background: linear-gradient(180deg, #fffaf0 0%, #fff3d6 100%);
}

.message-warning::before {
  content: "!";
  background: #d98b00;
}

.message-error {
  border-color: #ffc3d0;
  color: #9f1239;
  background: linear-gradient(180deg, #fff5f7 0%, #ffe9ef 100%);
}

.message-error::before {
  content: "!";
  background: #e11d48;
}

.message.is-dismissing {
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  opacity: 0;
  transform: translateY(-8px);
}

.backdrop {
  display: none;
}

@media (max-width: 1180px) {
  :root {
    --sidebar: 304px;
  }

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

  .dashboard-grid > *,
  .split-grid > *,
  .profile-grid > * {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .app-frame {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    width: min(86vw, 360px);
    transition: transform .2s ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(0, 0, 0, .52);
  }

  body.sidebar-open .backdrop,
  .office-shell.sidebar-open .backdrop {
    display: block;
  }

  .icon-button {
    display: block;
  }

  .topbar {
    padding: 0 14px;
  }

  .breadcrumb {
    display: none;
  }

  .top-actions {
    gap: 6px;
    font-size: 11px;
  }

  .ghost-link,
  .tenant-pill {
    display: none;
  }

  .content-stage {
    width: 100%;
    overflow: hidden;
    padding: 26px 14px 40px;
  }

  .page-heading {
    display: grid;
    align-items: start;
  }

  .page-heading h1 {
    font-size: 40px;
  }

  .metric-grid,
  .metric-grid.compact {
    grid-template-columns: 1fr;
  }

  .workbench {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .collector-stats,
  .office-shell .collector-access {
    grid-template-columns: 1fr;
  }

  .bar-strip {
    gap: 18px;
    padding-inline: 18px;
  }

  .toolbar {
    display: grid;
  }

  .mobile-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .route-card {
    overflow: hidden;
  }

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

  .route-detail div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .route-detail b {
    min-width: 0;
  }

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

  .route-buttons .primary {
    grid-column: 1 / -1;
  }

  .privacy-card {
    display: grid;
  }

  .privacy-card span {
    justify-self: start;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }
}

/* Office-style shell inspired by the customer's Windows cartera reference. */
.office-shell {
  --bg: #f4f7fb;
  --bg-deep: #eef3f8;
  --panel: #ffffff;
  --panel-2: #f8fbfd;
  --panel-3: #eef8f6;
  --line: #d8e1ea;
  --line-strong: #b7c4d2;
  --text: #162033;
  --muted: #667085;
  --soft: #8a96a8;
  --cyan: #008c82;
  --cyan-2: #0f766e;
  --blue: #2f80ed;
  --green: #25b76b;
  --pink: #e94f64;
  --warning: #f3a722;
  --radius: 8px;
  --shadow: 0 12px 34px rgba(16, 24, 40, .10);
  --sidebar: 236px;
  color: var(--text);
  background: var(--bg);
  color-scheme: light;
}

.office-shell .desktop-app {
  display: grid;
  grid-template-rows: 56px 86px minmax(0, 1fr) 34px;
  min-width: 0;
  height: 100vh;
  min-height: 100vh;
  background: var(--bg);
}

.office-shell .system-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.office-shell .system-title,
.office-shell .system-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.office-shell .system-title {
  flex: 0 1 auto;
  min-width: 0;
}

.office-shell .system-title strong {
  color: #101828;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -.04em;
}

.office-shell .global-customer-search {
  display: grid;
  flex: 1 1 340px;
  grid-template-columns: 34px minmax(180px, 1fr) auto;
  align-items: center;
  max-width: 560px;
  min-width: 260px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, .04);
  overflow: hidden;
}

.office-shell .global-customer-search span {
  display: grid;
  width: 34px;
  min-height: 38px;
  place-items: center;
  color: #0f766e;
  font-size: 18px;
  font-weight: 900;
}

.office-shell .global-customer-search input {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  color: #1d2939;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  outline: none;
}

.office-shell .global-customer-search input::placeholder {
  color: #7b8798;
}

.office-shell .global-customer-search button {
  min-height: 34px;
  margin-right: 2px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #0ea59a, #087f76);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.office-shell .global-customer-search:focus-within {
  border-color: #0ea59a;
  box-shadow: 0 0 0 3px rgba(14, 165, 154, .16);
}

.office-shell .brand-mark {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(180deg, #0ea59a, #087f76);
  box-shadow: 0 3px 8px rgba(0, 140, 130, .24);
  font-size: 21px;
}

.office-shell .icon-button {
  display: none;
  width: 34px;
  height: 34px;
  border-color: var(--line);
  background: #fff;
}

.office-shell .icon-button span {
  background: #344054;
}

.office-shell .system-actions {
  color: #344054;
  font-weight: 700;
}

.office-shell .notification-dot {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  font-size: 11px;
  font-weight: 900;
}

.office-shell .round-help {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #52637a;
  background: #fff;
  font-weight: 900;
}

.office-shell .user-pill,
.office-shell .logout-link {
  min-height: 28px;
  border-color: transparent;
  background: transparent;
  color: #344054;
  font-size: 13px;
}

.office-shell .theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, .04);
}

.office-shell .theme-option {
  min-height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: #52637a;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.office-shell .theme-option:hover,
.office-shell .theme-option:focus-visible {
  outline: none;
  color: #04756c;
  background: #e7f5f2;
}

.office-shell .theme-option.is-active {
  color: #fff;
  background: linear-gradient(180deg, #0ea59a, #087f76);
  box-shadow: 0 3px 8px rgba(0, 140, 130, .22);
}

.office-shell .ribbon {
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, .06);
}

.office-shell .ribbon-action {
  display: grid;
  min-width: 86px;
  place-items: center;
  gap: 5px;
  padding: 4px 14px;
  border: 0;
  border-right: 1px solid #e6edf4;
  color: #1f2a44;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.office-shell .ribbon-action:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.office-shell .ribbon-action span {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  color: #0f766e;
  font-size: 22px;
  font-weight: 900;
}

.office-shell .ribbon-action.danger span {
  color: #ef4444;
}

.office-shell .ribbon-action.excel span {
  width: 26px;
  border-radius: 4px;
  color: #fff;
  background: #168a4a;
  font-size: 14px;
}

.office-shell .ribbon-action.pdf span {
  width: 34px;
  border-radius: 4px;
  color: #fff;
  background: #df3f3f;
  font-size: 11px;
}

.office-shell .workspace {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 8px;
  gap: 8px;
}

.office-shell .sidebar {
  position: relative;
  height: auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
}

.office-shell .menu {
  gap: 2px;
}

.office-shell .menu-title {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: #25314a;
  background: transparent;
}

.office-shell .menu-title:hover,
.office-shell .menu-group.is-active > .menu-title {
  border-color: transparent;
  background: #eaf7f5;
  box-shadow: none;
}

.office-shell .menu-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  border-radius: 5px;
  color: #52637a;
  background: transparent;
  font-size: 13px;
}

.office-shell .menu-group.is-active > .menu-title .menu-icon,
.office-shell .menu-group.is-active > .menu-title .menu-label {
  color: #00756d;
}

.office-shell .menu-label {
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.office-shell .submenu {
  gap: 0;
  padding: 2px 0 6px 38px;
}

.office-shell .submenu-link {
  min-height: 34px;
  border-radius: 6px;
  color: #475467;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.office-shell .submenu-link span {
  width: 5px;
  height: 5px;
  background: #009688;
}

.office-shell .submenu-link:hover,
.office-shell .submenu-link.is-current {
  color: #00756d;
  background: #dff4f1;
}

.office-shell .main-panel {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.office-shell .content-stage {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

.office-shell .office-tabbar {
  display: flex;
  align-items: end;
  min-height: 44px;
  padding-left: 12px;
  border-bottom: 1px solid #b8ded9;
}

.office-shell .office-tab {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-bottom: 2px solid #009688;
  border-radius: 6px 6px 0 0;
  color: #00756d;
  background: #fff;
  font-weight: 850;
}

.office-shell .office-tab b {
  color: #98a2b3;
}

.office-shell .office-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 8px;
  min-width: 0;
  padding: 8px;
}

.office-shell .office-main,
.office-shell .detail-panel,
.office-shell .panel-card,
.office-shell .metric-card,
.office-shell .collector-card,
.office-shell .report-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .07);
}

.office-shell .office-main {
  min-width: 0;
  padding: 8px;
}

.office-shell .filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.office-shell .filter-panel .search-field {
  grid-column: span 2;
}

.office-shell .filter-panel label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.office-shell input,
.office-shell select,
.office-shell textarea {
  min-height: 40px;
  border: 1px solid #cfd8e3;
  border-radius: 5px;
  color: #1d2939;
  background: #fff;
}

.enhanced-select {
  position: relative;
  min-width: 0;
}

.enhanced-select-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.enhanced-select::after {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #667085;
  border-bottom: 2px solid #667085;
  content: "";
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

.enhanced-select-input {
  width: 100%;
  min-height: 40px;
  padding: 0 36px 0 12px;
  border: 1px solid #cfd8e3;
  border-radius: 5px;
  color: #1d2939;
  background: #fff;
  font: inherit;
}

.enhanced-select-input:focus {
  border-color: #0ea59a;
  outline: 3px solid rgba(14, 165, 154, .18);
}

.enhanced-select-input::placeholder {
  color: #98a2b3;
}

.enhanced-select-list {
  position: absolute;
  z-index: 120;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  overflow: auto;
  max-height: min(360px, 58vh);
  padding: 6px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 24, 40, .18);
}

.enhanced-select-option {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 0;
  border-radius: 6px;
  color: #101828;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.enhanced-select-option:hover,
.enhanced-select-option:focus,
.enhanced-select-option.is-selected {
  outline: none;
  color: #075f56;
  background: #e9f8f4;
}

.enhanced-select-empty,
.enhanced-select-more {
  padding: 10px 11px;
  color: #667085;
  font-size: 13px;
  font-weight: 750;
}

.office-shell .filter-panel input,
.office-shell .filter-panel select {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
}

.office-shell .soft-button,
.office-shell .search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 0;
  border-radius: 5px;
  font-weight: 850;
}

.office-shell .soft-button {
  border: 1px solid #cfd8e3;
  color: #344054;
  background: #fff;
}

.office-shell .search-button {
  border: 1px solid #087f76;
  color: #fff;
  background: linear-gradient(180deg, #0ea59a, #087f76);
}

.office-shell .summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(166px, 1fr));
  gap: 6px;
  min-width: 0;
  margin: 8px 0;
}

.office-shell .summary-strip.compact-strip {
  grid-template-columns: repeat(auto-fit, minmax(166px, 1fr));
}

.office-shell .summary-strip article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.office-shell .summary-icon {
  grid-row: 1 / span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  font-weight: 950;
}

.office-shell .summary-icon.green {
  color: #118847;
  background: #d9f7e5;
}

.office-shell .summary-icon.blue {
  color: #1d6fd3;
  background: #deefff;
}

.office-shell .summary-icon.teal {
  color: #04756c;
  background: #d9f6f2;
}

.office-shell .summary-icon.amber {
  color: #b77900;
  background: #fff1cc;
}

.office-shell .summary-icon.red {
  color: #dc2626;
  background: #fee2e2;
}

.office-shell .summary-strip small {
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.office-shell .summary-strip strong {
  overflow: hidden;
  color: #101828;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-shell .data-table {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border-color: var(--line);
  border-radius: 5px;
  background: #fff;
}

.office-shell table {
  min-width: 980px;
  color: #1d2939;
}

.office-shell th,
.office-shell td {
  padding: 10px 12px;
  border-color: #e3e8ef;
  font-size: 13px;
}

.office-shell th {
  color: #344054;
  background: #f8fafc;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.office-shell td {
  color: #1d2939;
  background: #fff;
}

.office-shell tr.is-selected td {
  background: #eaf8f6;
}

.office-shell tr:hover td {
  background: #f1fbf9;
}

.office-shell td a {
  color: #17233a;
  font-weight: 800;
}

.office-shell .loan-inline-actions .row-action {
  color: #087f76;
  border-color: #b7e7df;
  background: #ecfdf8;
}

@media (min-width: 821px) {
  .office-shell .loans-mobile-table th:last-child,
  .office-shell .loans-mobile-table td:last-child {
    background: #fff;
  }

  .office-shell .loans-mobile-table th:last-child {
    background: #f8fafc;
  }

  .office-shell .loans-mobile-table tr:hover td:last-child {
    background: #f1fbf9;
  }
}

.office-shell .table-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border: 1px solid #9ee4d5;
  border-radius: 999px;
  color: #047857;
  background: #dcfce7;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.office-shell .table-status.late {
  color: #dc2626;
  border-color: #fecaca;
  background: #fee2e2;
}

.office-shell .table-status.neutral {
  color: #475467;
  border-color: #d0d5dd;
  background: #f2f4f7;
}

.office-shell .detail-panel {
  min-width: 0;
  overflow: hidden;
}

.office-shell .detail-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: #1d2939;
  font-weight: 850;
}

.office-shell .detail-profile {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.office-shell .detail-avatar {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #43bf73;
  font-size: 26px;
  font-weight: 950;
}

.office-shell .detail-profile h2 {
  margin: 0 0 5px;
  color: #101828;
  font-size: 18px;
  line-height: 1.15;
}

.office-shell .detail-profile small,
.office-shell .detail-profile b {
  display: block;
}

.office-shell .detail-profile small {
  color: #667085;
  font-size: 12px;
}

.office-shell .detail-profile b {
  margin-bottom: 6px;
}

.office-shell .customer-detail-actions,
.office-shell .customer-page-actions {
  display: grid;
  gap: 8px;
}

.office-shell .customer-detail-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 14px 14px;
  border-bottom: 1px solid var(--line);
}

.office-shell .customer-detail-actions form,
.office-shell .customer-page-actions form {
  display: contents;
}

.office-shell .customer-detail-actions .soft-button,
.office-shell .customer-detail-actions button,
.office-shell .customer-page-actions .primary-action,
.office-shell .customer-page-actions .soft-button,
.office-shell .customer-page-actions button {
  width: 100%;
  min-height: 38px;
}

.office-shell .customer-detail-actions small,
.office-shell .customer-page-actions span {
  grid-column: 1 / -1;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.office-shell .customer-page-actions {
  grid-template-columns: minmax(150px, 220px) minmax(170px, 230px) minmax(150px, 220px) minmax(0, 1fr);
  align-items: center;
  padding: 12px 8px 0;
}

.office-shell .customer-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 210px;
}

.office-shell .customer-row-actions form {
  display: inline;
  margin: 0;
}

.office-shell .customer-row-actions .row-action,
.office-shell .customer-row-actions button.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  color: #344054;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
  cursor: pointer;
}

.office-shell .customer-row-actions .row-action::before {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.office-shell .customer-row-actions .row-action:hover,
.office-shell .customer-row-actions .row-action:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(16, 24, 40, .12);
}

.office-shell .customer-row-actions .row-action.row-action-view {
  border-color: #b8ded9;
  color: #04756c;
  background: #eef8f6;
}

.office-shell .customer-row-actions .row-action.row-action-edit {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.office-shell .customer-row-actions .row-action.row-action-record {
  border-color: #c7d2fe;
  color: #4338ca;
  background: #eef2ff;
}

.office-shell .customer-row-actions .row-action.row-action-delete {
  border-color: #fecaca;
  color: #b42318;
  background: #fff5f5;
}

.office-shell .danger-row-action {
  color: #b42318;
}

.office-shell .muted-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  color: #98a2b3;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.office-shell .soft-button:disabled,
.office-shell button:disabled.danger-link {
  cursor: not-allowed;
  opacity: .62;
}

.office-shell .detail-section {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.office-shell .detail-section h3 {
  margin: 0 0 10px;
  color: #1d2939;
  font-size: 14px;
}

.office-shell .detail-section dl,
.office-shell .balance-box dl,
.office-shell .detail-list {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 9px 14px;
  margin: 0;
}

.office-shell .detail-section dt,
.office-shell .balance-box dt,
.office-shell .detail-list dt {
  color: #475467;
  font-weight: 750;
}

.office-shell .detail-section dd,
.office-shell .balance-box dd,
.office-shell .detail-list dd {
  min-width: 0;
  margin: 0;
  color: #1d2939;
  overflow-wrap: anywhere;
}

.office-shell .balance-box {
  margin: 12px;
  padding: 12px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #fff;
}

.office-shell .balance-box dt:last-of-type,
.office-shell .balance-box dd:last-of-type {
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: #00756d;
  font-weight: 900;
}

.office-shell .panel-card,
.office-shell .collector-card,
.office-shell .report-card {
  padding: 16px;
}

.office-shell .panel-title h2,
.office-shell .page-heading h1 {
  color: #101828;
}

.office-shell .panel-title > div {
  min-width: 0;
}

.office-shell .panel-title span,
.office-shell .panel-title a {
  color: #475467;
}

.office-shell .customer-history-summary {
  margin-top: 18px;
}

.office-shell .customer-disbursement-record {
  margin-top: 0;
}

.office-shell .customer-disbursement-record table {
  min-width: 1240px;
}

.office-shell .page-heading {
  min-width: 0;
  padding: 18px 8px 0;
}

.office-shell .page-heading > div {
  min-width: 0;
}

.office-shell .page-heading p {
  color: #667085;
}

.office-shell .collector-cards,
.office-shell .report-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  align-items: stretch;
  max-width: 100%;
  padding: 0 8px 8px;
}

.office-shell .collector-card,
.office-shell .report-card,
.office-shell .metric-card,
.office-shell .panel-card {
  min-width: 0;
  color: #1d2939;
}

.office-shell .collector-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
}

.office-shell .collector-card h2,
.office-shell .collector-card p,
.office-shell .report-card strong,
.office-shell .report-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.office-shell .collector-card h2,
.office-shell .report-card strong,
.office-shell .metric-card strong {
  color: #101828;
}

.office-shell .collector-card p,
.office-shell .report-card small,
.office-shell .metric-card small {
  color: #667085;
}

.office-shell .collector-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.office-shell .collector-stats span {
  min-width: 0;
  min-height: 68px;
  padding: 10px;
  border-color: #d8e1ea;
  border-radius: 8px;
  color: #667085;
  background: #f8fafc;
}

.office-shell .collector-stats b {
  color: #101828;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.office-shell .collector-access {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.office-shell .collector-access div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  background: #fff;
}

.office-shell .collector-access dt {
  color: #667085;
  font-size: 12px;
  font-weight: 850;
}

.office-shell .collector-access dd {
  margin: 3px 0 0;
  color: #101828;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.office-shell .collectors-page {
  display: grid;
  gap: 22px;
  padding: 20px 8px 10px;
}

.office-shell .collectors-heading {
  display: flex;
  min-width: 0;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.office-shell .collectors-heading h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

.office-shell .collectors-heading p {
  margin: 10px 0 0;
  color: #667085;
  font-size: 15px;
  font-weight: 650;
}

.office-shell .collectors-mobile-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  border-radius: 7px;
  white-space: nowrap;
}

.office-shell .collectors-mobile-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.office-shell .collector-search-toolbar {
  grid-template-columns: minmax(280px, 1fr) auto auto;
  margin: 0;
  border-radius: 8px;
}

.office-shell .collector-search-toolbar .search-field {
  grid-column: auto;
}

.office-shell .collector-cards-clean {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 16px;
  padding: 0;
}

.office-shell .collector-card-clean {
  display: grid;
  gap: 16px;
  min-height: 374px;
  padding: 18px;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .07);
}

.office-shell .collector-card-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.office-shell .collector-avatar-clean {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, #17b39b, #008866);
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .12);
  font-size: 22px;
  font-weight: 950;
}

.office-shell .collector-card-head h2 {
  margin: 0 0 4px;
  color: #101828;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: 0;
}

.office-shell .collector-card-head p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.office-shell .collector-route-pill {
  display: inline-grid;
  min-height: 25px;
  padding: 0 11px;
  place-items: center;
  border: 1px solid #b8e6c6;
  border-radius: 999px;
  color: #008744;
  background: #eafbf0;
  font-size: 12px;
  font-weight: 900;
}

.office-shell .collector-route-pill.is-neutral {
  border-color: #d8e1ea;
  color: #475467;
  background: #f8fafc;
}

.office-shell .collector-stat-grid-clean {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.office-shell .collector-stat-grid-clean span {
  display: grid;
  min-width: 0;
  min-height: 70px;
  align-content: center;
  gap: 5px;
  padding: 11px;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}

.office-shell .collector-stat-grid-clean b {
  color: #101828;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.office-shell .collector-stat-grid-clean small {
  color: #344054;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.office-shell .collector-meta-clean {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e4e9f0;
}

.office-shell .collector-meta-clean span {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 2px 8px;
  min-width: 0;
  padding: 0 10px;
  border-right: 1px solid #e4e9f0;
}

.office-shell .collector-meta-clean span:first-child {
  padding-left: 0;
}

.office-shell .collector-meta-clean span:last-child {
  border-right: 0;
  padding-right: 0;
}

.office-shell .collector-meta-clean svg,
.office-shell .collector-summary-clean svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #667085;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.office-shell .collector-meta-clean small {
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.office-shell .collector-meta-clean b {
  grid-column: 2;
  color: #101828;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.office-shell .collector-summary-clean {
  align-self: center;
  grid-column: span 2;
  overflow: hidden;
  min-height: 188px;
  border: 1px solid #b8ded9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .08);
}

.office-shell .collector-summary-clean header {
  padding: 13px 16px;
  border-bottom: 1px solid #b8ded9;
  color: #008866;
  background: #f3fbf8;
  font-size: 14px;
  font-weight: 950;
}

.office-shell .collector-summary-clean > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 26px 18px;
}

.office-shell .collector-summary-clean span {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 8px;
  padding: 0 12px;
  border-right: 1px solid #d8e1ea;
  color: #475467;
  text-align: center;
}

.office-shell .collector-summary-clean span:last-child {
  border-right: 0;
}

.office-shell .collector-summary-clean svg {
  width: 34px;
  height: 34px;
  stroke: #008866;
}

.office-shell .collector-summary-clean b {
  color: #101828;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.office-shell .collector-summary-clean small {
  color: #475467;
  font-size: 14px;
  font-weight: 650;
}

@media (max-width: 980px) {
  .office-shell .collectors-heading {
    align-items: start;
    flex-direction: column;
  }

  .office-shell .collector-summary-clean {
    grid-column: span 1;
  }

  .office-shell .collector-summary-clean > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }

  .office-shell .collector-summary-clean span:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .office-shell .collector-card-clean {
    min-height: 0;
    padding: 14px;
  }

  .office-shell .collector-card-head {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .office-shell .collector-route-pill {
    grid-column: 2;
    justify-self: start;
  }

  .office-shell .collector-stat-grid-clean,
  .office-shell .collector-meta-clean,
  .office-shell .collector-summary-clean > div {
    grid-template-columns: 1fr;
  }

  .office-shell .collector-meta-clean span,
  .office-shell .collector-summary-clean span,
  .office-shell .collector-summary-clean span:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #e4e9f0;
  }

  .office-shell .collector-meta-clean span {
    padding: 10px 0;
  }

  .office-shell .collector-meta-clean span:last-child,
  .office-shell .collector-summary-clean span:last-child {
    border-bottom: 0;
  }
}

.office-shell .workbench {
  padding: 0 8px 8px;
}

.office-shell .workbench-side {
  border-radius: 6px;
  color: #344054;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .07);
}

.office-shell .workbench-side a {
  color: #475467;
}

.office-shell .workbench-side a:hover {
  color: #00756d;
  background: #eaf8f6;
}

.office-shell .empty-state {
  border-color: #b7c4d2;
  color: #475467;
  background: #f8fafc;
}

.office-shell .empty-state strong {
  color: #101828;
}

.office-shell .feature-list div {
  border-color: #d8e1ea;
  border-radius: 8px;
  background: #f8fafc;
}

.office-shell .feature-list p {
  color: #344054;
}

.office-shell .statusbar {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr 1fr;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  border-top: 1px solid var(--line);
  color: #344054;
  background: #fff;
  font-size: 13px;
}

.office-shell .connected {
  color: #048848;
  font-weight: 850;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) {
  --bg: #050b14;
  --bg-deep: #07111f;
  --panel: #0f1726;
  --panel-2: #132238;
  --panel-3: #08302d;
  --line: #3d4e66;
  --line-strong: #607089;
  --text: #f8fafc;
  --muted: #d5deeb;
  --soft: #b7c3d4;
  --shadow: 0 18px 34px rgba(0, 0, 0, .42);
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .desktop-app,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .main-panel {
  background: var(--bg);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .system-header,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .ribbon,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .sidebar,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .office-main,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .detail-panel,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .panel-card,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .metric-card,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-card,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .report-card,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .filter-panel,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .summary-strip article,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .data-table,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .workbench-side,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .statusbar,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .empty-state,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .feature-list div,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .office-tab,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .enhanced-select-list {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .workspace,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .content-stage {
  background: var(--bg);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .system-title strong,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .page-heading h1,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .panel-title h2,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .detail-panel h2,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .detail-panel h3,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .metric-card strong,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .summary-strip strong,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .empty-state strong,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) table,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) th,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) td,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) dt,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) dd,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) label,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .menu-title,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .submenu-link,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .ribbon-action,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .user-pill,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .logout-link {
  color: var(--text);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .office-main :where(h1, h2, h3, h4, strong, b, label, dt, dd, th, td),
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .detail-panel :where(h1, h2, h3, h4, strong, b, label, dt, dd, th, td),
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .panel-card :where(h1, h2, h3, h4, strong, b, label, dt, dd, th, td),
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .metric-card :where(h1, h2, h3, h4, strong, b, label),
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .filter-panel :where(label, strong, b),
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .data-table :where(strong, b, a) {
  color: #f8fafc;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .page-heading p,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .panel-title span,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .summary-strip small,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .metric-card small,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .empty-state,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .feature-list p,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .statusbar,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .enhanced-select-empty,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .enhanced-select-more {
  color: var(--muted);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .detail-panel small,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .detail-panel p,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .panel-card small,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .panel-card p,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .data-table small,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .muted-action,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .row-action small {
  color: #d5deeb;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) input,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) select,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) textarea,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .enhanced-select-input,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .settings-field input,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .settings-field select {
  border-color: #34445c;
  color: var(--text);
  background: #0b1220;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) input:focus,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) select:focus,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) textarea:focus,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .enhanced-select-input:focus {
  border-color: #4dd6c8;
  outline: 3px solid rgba(45, 212, 191, .24);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) input::placeholder,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) textarea::placeholder,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .enhanced-select-input::placeholder {
  color: #728099;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .soft-button,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .round-help,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .logout-link,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .icon-button,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .theme-switcher,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .global-customer-search,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .muted-action {
  border-color: #34445c;
  color: var(--text);
  background: #0f172a;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .global-customer-search span {
  color: #7dd3c7;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .global-customer-search input {
  color: #f8fafc;
  background: transparent;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .global-customer-search input::placeholder {
  color: #b7c3d4;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .global-customer-search:focus-within {
  border-color: #4dd6c8;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .22);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .theme-option {
  color: #a7b4c8;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .theme-option:hover,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .theme-option:focus-visible {
  color: #d8fff5;
  background: #173b37;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .theme-option.is-active {
  color: #06120f;
  background: linear-gradient(180deg, #7dd3c7, #35b8a9);
  box-shadow: 0 3px 10px rgba(20, 184, 166, .22);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .office-tabbar {
  border-bottom-color: #28524e;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .office-tab {
  border-bottom-color: #35b8a9;
  color: #7dd3c7;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .office-tab b {
  color: #8391a6;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .menu-title:hover,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .menu-group.is-active > .menu-title,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .submenu-link:hover,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .submenu-link.is-current {
  color: #d8fff5;
  background: #102a2a;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .menu-icon,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .menu-chevron {
  color: #b7c3d4;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .menu-group.is-active > .menu-title .menu-icon,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .menu-group.is-active > .menu-title .menu-label,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .menu-title:hover .menu-icon,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .menu-title:hover .menu-label {
  color: #d8fff5;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .submenu-link span {
  background: #5eead4;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) th {
  color: #f8fafc;
  background: #15233a;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) td {
  color: #eef4ff;
  border-color: #334155;
  background: #0f1726;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) tr:hover td {
  background: #162640;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loan-inline-actions .row-action {
  color: #dffcf3;
  border-color: rgba(118, 226, 195, .28);
  background: rgba(17, 164, 134, .16);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loan-inline-actions .row-action-edit {
  border-color: rgba(96, 165, 250, .35);
  color: #dbeafe;
  background: rgba(37, 99, 235, .16);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loan-inline-actions .row-action-delete {
  border-color: rgba(248, 113, 113, .35);
  color: #fee2e2;
  background: rgba(185, 28, 28, .18);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loan-edit-warning {
  border-color: rgba(251, 146, 60, .32);
  background: rgba(124, 45, 18, .22);
  color: #fed7aa;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loan-edit-warning p {
  color: #fdba74;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loan-edit-summary,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loan-delete-summary div {
  border-color: #26354f;
  background: #0b1220;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loan-edit-summary small,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loan-delete-summary dt {
  color: #9fb0cc;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loan-edit-summary strong,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loan-delete-summary dd {
  color: #f8fafc;
}

@media (min-width: 821px) {
  :is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loans-mobile-table th:last-child,
  :is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loans-mobile-table td:last-child {
    background: #101827;
  }

  :is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loans-mobile-table th:last-child {
    background: #17243a;
  }

  :is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loans-mobile-table tr:hover td:last-child {
    background: #142238;
  }
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) tr.is-selected td {
  background: #0d3d38;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .detail-section,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .detail-panel-head,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .panel-title,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .form-actions {
  border-color: var(--line);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .application-customer-picker {
  border-color: rgba(94, 234, 212, .34);
  background: linear-gradient(180deg, rgba(13, 43, 56, .88), rgba(10, 19, 35, .96));
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .primary-action.is-secondary {
  border-color: rgba(94, 234, 212, .42);
  color: #bff7ef;
  background: rgba(20, 184, 166, .14);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .detail-avatar {
  color: #042f2e;
  background: #7dd3c7;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .summary-icon.green,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .summary-icon.teal {
  color: #022c22;
  background: #99f6e4;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .summary-icon.blue {
  color: #082f49;
  background: #bfdbfe;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .summary-icon.amber {
  color: #451a03;
  background: #fde68a;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .summary-icon.red {
  color: #450a0a;
  background: #fecaca;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .customer-row-actions .row-action,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .customer-row-actions button.row-action {
  border-color: #34445c;
  color: #dbeafe;
  background: #0f172a;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .customer-row-actions .row-action.row-action-view {
  border-color: #246d65;
  color: #7dd3c7;
  background: #102a2a;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .customer-row-actions .row-action.row-action-edit {
  border-color: #315f9c;
  color: #93c5fd;
  background: #101f36;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .customer-row-actions .row-action.row-action-record {
  border-color: #5b5bb8;
  color: #c4b5fd;
  background: #191c3b;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .customer-row-actions .row-action.row-action-delete {
  border-color: #7f2d2d;
  color: #fca5a5;
  background: #2b1216;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .enhanced-select-option {
  color: var(--text);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .enhanced-select-option:hover,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .enhanced-select-option:focus,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .enhanced-select-option.is-selected {
  color: #9ff2e8;
  background: #102a2a;
}

@media (max-width: 1500px) {
  .office-shell {
    --sidebar: 208px;
  }

  .office-shell .ribbon {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .office-shell .ribbon-action {
    flex: 0 0 96px;
    min-width: 96px;
  }

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

  .office-shell .detail-panel {
    display: none;
  }

  .office-shell .filter-panel,
  .office-shell .summary-strip,
  .office-shell .summary-strip.compact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .office-shell .filter-panel .search-field {
    grid-column: 1 / -1;
  }

  .office-shell table {
    min-width: 760px;
  }

  .office-shell th,
  .office-shell td {
    padding: 8px 10px;
  }
}

@media (max-width: 1180px) {
  .office-shell .office-grid {
    grid-template-columns: 1fr;
  }

  .office-shell .detail-panel {
    display: none;
  }

  .office-shell .filter-panel,
  .office-shell .summary-strip,
  .office-shell .summary-strip.compact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  html,
  body.office-shell,
  body.cartera-shell {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .office-shell {
    background: #f5f7fb;
  }

  .office-shell .desktop-app,
  .office-shell .system-header,
  .office-shell .ribbon,
  .office-shell .workspace,
  .office-shell .main-panel,
  .office-shell .content-stage {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    box-sizing: border-box;
  }

  .office-shell .system-header {
    position: sticky;
    top: 0;
    z-index: 35;
    min-height: 58px;
    padding: 0 12px;
  }

  .office-shell .system-title {
    min-width: 0;
    gap: 10px;
  }

  .office-shell .system-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .office-shell .system-actions {
    gap: 8px;
  }

  .office-shell .global-customer-search {
    flex: 1 1 280px;
    max-width: 420px;
    min-width: 220px;
  }

  .office-shell .theme-switcher {
    flex: 0 0 auto;
  }

  .office-shell .theme-option {
    width: 34px;
    padding: 0;
    font-size: 0;
  }

  .office-shell .theme-option::after {
    font-size: 12px;
  }

  .office-shell .theme-option[data-theme-choice="light"]::after {
    content: "C";
  }

  .office-shell .theme-option[data-theme-choice="dark"]::after {
    content: "O";
  }

  .office-shell .user-pill {
    display: none;
  }

  .office-shell .logout-link {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d8e1ea;
    border-radius: 999px;
    color: #344054;
    background: #fff;
    font-size: 13px;
  }

  .office-shell .office-tabbar {
    min-height: 38px;
    padding: 0 10px;
    overflow-x: auto;
  }

  .office-shell .office-tab {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .page-heading,
  .office-shell .page-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 14px 12px 10px;
  }

  .page-heading h1,
  .office-shell .page-heading h1 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.02;
  }

  .page-heading p,
  .office-shell .page-heading p {
    font-size: 14px;
    line-height: 1.35;
  }

  .heading-actions,
  .office-shell .heading-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .heading-actions a,
  .page-heading > a,
  .office-shell .page-heading > a {
    min-height: 44px;
    width: 100%;
  }

  .finance-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 10px 18px;
  }

  .report-toolbar,
  .indicator-grid {
    grid-template-columns: 1fr;
  }

  .report-toolbar .search-field {
    grid-column: auto;
  }

  .report-toolbar {
    margin: 0 10px 12px;
    padding: 12px;
    border-radius: 10px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .toolbar button,
  .toolbar a,
  .toolbar select,
  .report-toolbar .search-button,
  .report-toolbar .soft-button {
    min-height: 44px;
    width: 100%;
    justify-content: center;
  }

  .panel-card,
  .office-shell .panel-card,
  .office-shell .metric-card {
    border-radius: 10px;
  }

  .record-form {
    gap: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-grid label {
    font-size: 13px;
  }

  .form-grid input,
  .form-grid select,
  .form-grid textarea,
  .enhanced-select-input {
    min-height: 48px;
    border-radius: 8px;
    font-size: 16px;
  }

  .form-grid input[type="checkbox"] {
    width: 24px;
    min-height: 24px;
  }

  .enhanced-select-list {
    max-height: min(430px, 64vh);
    border-radius: 10px;
  }

  .enhanced-select-option {
    min-height: 50px;
    font-size: 15px;
  }

  .form-actions {
    position: sticky;
    bottom: 0;
    z-index: 24;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 8px;
    margin: 0 -1px -1px;
    padding: 10px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 -10px 24px rgba(16, 24, 40, .10);
  }

  .form-actions.multi-action-form-actions {
    grid-template-columns: 1fr;
  }

  .form-actions .soft-button,
  .form-actions .primary-action,
  .form-actions button {
    min-height: 46px;
    width: 100%;
  }

  .money-stack {
    grid-template-columns: 1fr;
  }

  .finance-side {
    gap: 12px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .settings-layout {
    gap: 10px;
    margin: 0 10px 16px;
  }

  .settings-card {
    padding: 12px;
  }

  .settings-field {
    border-radius: 10px;
  }

  .settings-field input,
  .settings-field select {
    min-height: 46px;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    padding: 0 10px;
    color: #101828;
    background: #fff;
    font-size: 16px;
  }

  .metric-grid,
  .metric-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 10px;
  }

  .metric-card {
    min-height: 86px;
    padding: 12px;
  }

  .metric-card strong {
    font-size: 21px;
    overflow-wrap: anywhere;
  }

  .receipt-sheet header,
  .receipt-sheet footer,
  .receipt-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .office-shell .desktop-app {
    grid-template-rows: auto auto auto;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .office-shell .ribbon {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 68px;
    padding: 0 8px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    contain: inline-size;
  }

  .office-shell .ribbon::-webkit-scrollbar {
    display: none;
  }

  .office-shell .ribbon-action {
    flex: 0 0 clamp(78px, 23vw, 96px);
    width: clamp(78px, 23vw, 96px);
    min-width: 0;
    min-height: 58px;
    padding: 4px 8px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
  }

  .office-shell .ribbon-action span {
    min-width: 0;
  }

  .office-shell .workspace {
    display: block;
    min-height: 0;
    overflow: visible;
    padding: 0;
  }

  .office-shell .main-panel {
    overflow: visible;
  }

  .office-shell .office-tabbar,
  .office-shell .report-toolbar,
  .office-shell .filter-panel,
  .office-shell .summary-strip,
  .office-shell .summary-strip.compact-strip,
  .office-shell .metric-grid,
  .office-shell .metric-grid.compact,
  .office-shell .panel-card,
  .office-shell .data-table {
    width: min(100%, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    min-width: 0;
    box-sizing: border-box;
    margin-right: auto;
    margin-left: auto;
  }

  .office-shell input,
  .office-shell select,
  .office-shell textarea,
  .office-shell button,
  .office-shell .enhanced-select,
  .office-shell .enhanced-select-input {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .office-shell .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: min(84vw, 320px);
    height: 100vh;
    transform: translateX(-105%);
    border-radius: 0;
    transition: transform .18s ease;
  }

  .office-shell.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .office-shell.sidebar-open .backdrop {
    display: block;
  }

  .office-shell .icon-button {
    display: block;
  }

  .office-shell .brand-mark {
    display: none;
  }

  .office-shell .system-title strong {
    font-size: 20px;
  }

  .office-shell .system-actions .notification-dot,
  .office-shell .system-actions .round-help {
    display: none;
  }

  .office-shell .system-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
  }

  .office-shell .global-customer-search {
    order: 3;
    flex-basis: 100%;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .office-shell .global-customer-search input {
    font-size: 16px;
  }

  .office-shell .filter-panel,
  .office-shell .summary-strip,
  .office-shell .summary-strip.compact-strip {
    grid-template-columns: 1fr;
  }

  .office-shell .office-grid {
    display: block;
    padding: 0 10px 16px;
  }

  .office-shell .office-main {
    padding: 10px;
    border-radius: 10px;
  }

  .office-shell .filter-panel {
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
  }

  .office-shell .summary-strip,
  .office-shell .summary-strip.compact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .office-shell .summary-strip article {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 78px;
    border-radius: 10px;
  }

  .office-shell .summary-icon {
    width: 36px;
    height: 36px;
  }

  .office-shell .collector-search-toolbar {
    grid-template-columns: 1fr;
  }

  .office-shell .customer-page-actions {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .office-shell .customer-row-actions {
    align-items: stretch;
    min-width: 0;
  }

  .office-shell .customer-row-actions form,
  .office-shell .customer-row-actions .row-action,
  .office-shell .customer-row-actions .muted-action {
    width: 100%;
  }

  .office-shell .loan-collector-cell {
    min-width: 0;
  }

  .office-shell .loan-collector-form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .office-shell .loan-collector-select,
  .office-shell .mini-save-button {
    width: 100%;
  }

  .office-shell .statusbar {
    display: none;
  }

  .office-shell .detail-section dl,
  .office-shell .balance-box dl,
  .office-shell .detail-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .office-shell .detail-list dt,
  .office-shell .detail-section dt,
  .office-shell .balance-box dt {
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .office-shell .detail-list dd,
  .office-shell .detail-section dd,
  .office-shell .balance-box dd {
    padding-bottom: 8px;
    border-bottom: 1px solid #edf1f6;
  }

  .mobile-card-table {
    overflow: hidden;
    border: 0;
    border-radius: 0;
  }

  .mobile-card-table table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .mobile-card-table thead {
    display: none;
  }

  .mobile-card-table tbody {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 10px;
  }

  .mobile-card-table tr {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 7px;
    padding: 12px;
    border: 1px solid #d8e1ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .06);
  }

  .mobile-card-table tr.is-selected {
    background: #f3fbf8;
  }

  .mobile-card-table td {
    display: grid;
    grid-template-columns: minmax(86px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 0;
    border: 0;
    color: #101828;
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .mobile-card-table td::before {
    color: #667085;
    content: attr(data-label);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .mobile-card-table td[colspan] {
    display: block;
  }

  .mobile-card-table td[colspan]::before {
    content: "";
  }

  .mobile-card-table td strong {
    color: #101828;
  }

  .mobile-card-table td.mobile-row-actions,
  .mobile-card-table td[data-label="Acción"] {
    grid-template-columns: 1fr !important;
  }

  .mobile-card-table td.mobile-row-actions::before,
  .mobile-card-table td[data-label="Acción"]::before {
    display: none;
  }

  .mobile-row-actions {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .mobile-row-actions .row-action {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
  }

  .mobile-card-table .inline-void,
  .mobile-card-table .cash-approval-actions,
  .mobile-card-table .cash-approval-actions form {
    width: 100%;
  }

  .mobile-card-table .inline-void form {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .mobile-card-table .cash-approval-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mobile-card-table .cash-approval-actions button,
  .mobile-card-table .cash-approval-actions .soft-button {
    width: 100%;
  }
}

/* Standalone mobile collector flow. */
.collector-mobile-shell {
  --collector-bg: #07101f;
  --collector-panel: #101a2e;
  --collector-panel-2: #14223b;
  --collector-line: rgba(149, 176, 218, .20);
  --collector-text: #edf4ff;
  --collector-muted: #9eacc3;
  --collector-blue: #3db7ff;
  --collector-green: #35d0a5;
  --collector-warn: #ffc05a;
  --collector-danger: #ff6b8a;
  min-height: 100vh;
  color: var(--collector-text);
  background: var(--collector-bg);
  color-scheme: dark;
}

.collector-mobile-shell .system-header,
.collector-mobile-shell .ribbon,
.collector-mobile-shell .sidebar,
.collector-mobile-shell .backdrop,
.collector-mobile-shell .statusbar {
  display: none !important;
}

.collector-mobile-shell .desktop-app,
.collector-mobile-shell .workspace,
.collector-mobile-shell .main-panel,
.collector-mobile-shell .content-stage {
  display: block;
  width: 100%;
  min-height: 100vh;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: var(--collector-text);
  background: var(--collector-bg);
}

.collector-mobile-shell .messages {
  width: min(430px, calc(100vw - 28px));
  margin: 0 auto;
  padding-top: 12px;
}

.collector-mobile-shell .message {
  border-color: rgba(61, 183, 255, .34);
  color: #dcefff;
  background: rgba(61, 183, 255, .12);
}

.collector-mobile-shell .message-success {
  border-color: rgba(53, 208, 165, .40);
  color: #ceffef;
  background: rgba(53, 208, 165, .12);
}

.collector-mobile-shell .message-error {
  border-color: rgba(255, 107, 138, .40);
  color: #ffd4de;
  background: rgba(255, 107, 138, .12);
}

.collector-phone {
  position: relative;
  isolation: isolate;
  width: min(430px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 14px 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% -8%, rgba(61, 183, 255, .34), transparent 18rem),
    radial-gradient(circle at 100% 14%, rgba(53, 208, 165, .16), transparent 16rem),
    linear-gradient(180deg, #0b1425 0%, #070d19 100%);
}

.collector-phone::after {
  content: "FINNOVA · USO INTERNO";
  position: fixed;
  inset: auto -40px 42% auto;
  z-index: -1;
  color: rgba(255, 255, 255, .055);
  font-size: 44px;
  font-weight: 950;
  letter-spacing: .12em;
  transform: rotate(-28deg);
  pointer-events: none;
  white-space: nowrap;
}

.collector-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 2px 18px;
}

.collector-appbar.compact {
  justify-content: start;
}

.collector-appbar span,
.collector-summary span,
.collector-balance-card span,
.collector-balance-card small {
  color: var(--collector-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.collector-appbar h1 {
  margin: 3px 0 2px;
  color: var(--collector-text);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.06em;
}

.collector-appbar p {
  margin: 0;
  color: var(--collector-muted);
}

.collector-appbar a {
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--collector-line);
  border-radius: 15px;
  color: var(--collector-text);
  background: rgba(255, 255, 255, .06);
  font-size: 22px;
  font-weight: 900;
}

.collector-summary {
  display: grid;
  grid-template-columns: 1.25fr 1.55fr .9fr;
  gap: 9px;
}

.collector-summary article,
.collector-privacy,
.collector-route-card,
.collector-client-card,
.collector-balance-card,
.collector-lock-note,
.collector-form-card,
.collector-history-card,
.collector-empty {
  border: 1px solid var(--collector-line);
  border-radius: 22px;
  background: rgba(16, 26, 46, .82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.collector-summary article {
  min-width: 0;
  padding: 12px;
}

.collector-summary strong {
  display: block;
  margin-top: 7px;
  color: var(--collector-text);
  font-size: clamp(15px, 4.1vw, 18px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}

.collector-privacy {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(53, 208, 165, .14), rgba(16, 26, 46, .82)),
    var(--collector-panel);
}

.collector-privacy span,
.collector-lock-note strong {
  color: #c9ffef;
  font-weight: 950;
}

.collector-privacy p,
.collector-lock-note p,
.collector-empty p,
.collector-empty-copy {
  margin: 0;
  color: var(--collector-muted);
  line-height: 1.45;
}

.collector-privacy small {
  justify-self: start;
  padding: 7px 10px;
  border: 1px solid rgba(53, 208, 165, .30);
  border-radius: 999px;
  color: #c9ffef;
  background: rgba(53, 208, 165, .10);
  font-weight: 900;
}

.collector-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  overflow: auto;
  scrollbar-width: none;
}

.collector-tabs::-webkit-scrollbar {
  display: none;
}

.collector-tabs a {
  flex: 0 0 auto;
  min-height: 39px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--collector-muted);
  background: rgba(255, 255, 255, .06);
  font-weight: 900;
}

.collector-tabs .is-active {
  color: #051120;
  background: linear-gradient(180deg, #72caff, #3097ea);
}

.collector-route-list {
  display: grid;
  gap: 12px;
}

.collector-route-card,
.collector-client-card,
.collector-form-card,
.collector-history-card,
.collector-empty {
  padding: 14px;
}

.collector-route-card.is-paid {
  border-color: rgba(53, 208, 165, .36);
}

.route-card-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  color: var(--collector-text);
}

.route-index {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #07101f;
  background: var(--collector-blue);
  font-weight: 950;
}

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

.route-copy strong,
.client-head strong {
  display: block;
  overflow: hidden;
  color: var(--collector-text);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-copy small,
.client-head small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--collector-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-amount {
  color: #c8efff;
  font-weight: 950;
}

.collector-route-card dl,
.collector-client-card dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 7px 12px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--collector-line);
}

.collector-route-card dt,
.collector-client-card dt {
  color: var(--collector-muted);
  font-size: 12px;
  font-weight: 900;
}

.collector-route-card dd,
.collector-client-card dd {
  min-width: 0;
  margin: 0;
  color: var(--collector-text);
  overflow-wrap: anywhere;
}

.collector-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.collector-card-actions a,
.collector-card-actions span,
.collector-bottom-nav a,
.collector-bottom-nav span {
  display: grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--collector-line);
  border-radius: 14px;
  color: var(--collector-text);
  background: rgba(255, 255, 255, .06);
  font-size: 13px;
  font-weight: 900;
}

.collector-card-actions .primary {
  color: #061220;
  background: linear-gradient(180deg, #73ccff, #2f98ea);
}

.client-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.client-head > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: #07101f;
  background: linear-gradient(145deg, var(--collector-green), var(--collector-blue));
  font-size: 24px;
  font-weight: 950;
}

.collector-balance-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 16px;
}

.collector-balance-card > span,
.collector-balance-card > strong {
  grid-column: 1 / -1;
}

.collector-balance-card > strong {
  color: #ffffff;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.07em;
}

.collector-balance-card div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--collector-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
}

.collector-balance-card b {
  color: var(--collector-text);
}

.collector-lock-note {
  margin-top: 12px;
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(255, 192, 90, .14), rgba(16, 26, 46, .82)),
    var(--collector-panel);
}

.collector-lock-note p {
  margin-top: 5px;
}

.collector-form-card,
.collector-history-card {
  margin-top: 12px;
}

.collector-form-card h2,
.collector-history-card h2 {
  margin: 0 0 12px;
  color: var(--collector-text);
  font-size: 19px;
}

.collector-form-card form,
.locked-payment form {
  display: grid;
  gap: 10px;
}

.collector-form-card label,
.collector-details label {
  display: grid;
  gap: 7px;
  color: var(--collector-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.collector-mobile-shell input,
.collector-mobile-shell select,
.collector-mobile-shell textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--collector-line);
  border-radius: 14px;
  color: var(--collector-text);
  background: rgba(5, 12, 24, .74);
  outline: none;
}

.collector-mobile-shell textarea {
  resize: vertical;
}

.collector-mobile-shell input[type="file"] {
  padding: 12px;
  color: var(--collector-muted);
}

.collector-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.collector-details {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--collector-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
}

.collector-details summary {
  color: #c8efff;
  cursor: pointer;
  font-weight: 950;
}

.collector-submit,
.locked-payment button {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  color: #061220;
  background: linear-gradient(180deg, #73ccff, #2f98ea);
  font-weight: 950;
  cursor: pointer;
}

.collector-submit.secondary {
  color: var(--collector-text);
  background: rgba(255, 255, 255, .10);
  border: 1px solid var(--collector-line);
}

.muted-card {
  background: rgba(11, 19, 34, .74);
}

.locked-payment,
.visit-row {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--collector-line);
}

.locked-payment:first-of-type,
.visit-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.locked-payment strong,
.visit-row strong {
  color: var(--collector-text);
}

.locked-payment small,
.visit-row small {
  color: var(--collector-muted);
}

.locked-payment details {
  padding: 10px;
  border: 1px solid var(--collector-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
}

.locked-payment summary {
  color: var(--collector-warn);
  cursor: pointer;
  font-weight: 950;
}

.visit-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.visit-row small {
  grid-column: 1 / -1;
}

.visit-row span {
  color: var(--collector-muted);
  font-weight: 900;
}

.collector-empty {
  text-align: center;
}

.collector-empty strong {
  display: block;
  margin-bottom: 5px;
}

.collector-bottom-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(402px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--collector-line);
  border-radius: 22px;
  background: rgba(7, 16, 31, .86);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .38);
  backdrop-filter: blur(20px);
}

.collector-bottom-nav .is-active {
  color: #061220;
  background: linear-gradient(180deg, #73ccff, #2f98ea);
}

@media (min-width: 700px) {
  .collector-phone {
    min-height: calc(100vh - 48px);
    margin: 24px auto;
    border: 1px solid var(--collector-line);
    border-radius: 34px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
  }
}

/* Light collector app preview matching the customer's mobile reference. */
.collector-mobile-shell {
  --collector-bg: #f6f8fb;
  --collector-panel: #ffffff;
  --collector-panel-2: #f8fbfa;
  --collector-line: #dbe2ea;
  --collector-text: #121d33;
  --collector-muted: #53627a;
  --collector-soft: #8b98ab;
  --collector-green: #008866;
  --collector-green-2: #dff5ec;
  --collector-red: #eb314d;
  --collector-red-2: #ffe6eb;
  --collector-amber: #f4a62a;
  --collector-amber-2: #fff1d5;
  color: var(--collector-text);
  background: var(--collector-bg);
  color-scheme: light;
}

.collector-mobile-shell .desktop-app,
.collector-mobile-shell .workspace,
.collector-mobile-shell .main-panel,
.collector-mobile-shell .content-stage {
  color: var(--collector-text);
  background: var(--collector-bg);
}

.collector-mobile-shell .messages {
  width: min(940px, 100vw);
  padding: 10px 28px 0;
}

.collector-mobile-shell .message {
  border-color: #b7e9d9;
  color: #03654d;
  background: #eafaf4;
}

.collector-phone {
  width: min(940px, 100vw);
  min-height: 100vh;
  padding: 0 28px 128px;
  overflow: visible;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 136, 102, .10), transparent 18rem),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.collector-phone::after {
  display: none;
}

.collector-topbar {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 16px;
  min-height: 120px;
  margin: 0 -28px;
  padding: 0 40px;
  border-bottom: 1px solid var(--collector-line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.collector-topbar button,
.collector-bell {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  color: var(--collector-text);
  background: transparent;
  font-size: 31px;
  cursor: pointer;
}

.collector-topbar button {
  gap: 5px;
}

.collector-topbar button span {
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: var(--collector-text);
}

.collector-topbar strong {
  overflow: hidden;
  color: var(--collector-text);
  font-size: clamp(25px, 4vw, 31px);
  font-weight: 950;
  letter-spacing: -.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collector-bell span {
  position: absolute;
  top: 3px;
  right: 2px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--collector-red);
  font-size: 13px;
  font-weight: 950;
}

.collector-greeting {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 18px 0;
}

.collector-avatar,
.customer-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #102037;
  background: linear-gradient(145deg, #dff3ec, #cbe8de);
  font-weight: 950;
}

.collector-avatar {
  width: 60px;
  height: 60px;
  font-size: 23px;
}

.collector-greeting h1 {
  display: inline;
  margin: 0 10px 0 0;
  color: var(--collector-text);
  font-size: clamp(24px, 4vw, 29px);
  letter-spacing: -.04em;
}

.active-pill,
.route-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 12px;
  color: var(--collector-green);
  background: var(--collector-green-2);
  font-weight: 900;
}

.collector-greeting aside {
  min-width: 158px;
  color: var(--collector-muted);
  text-align: left;
}

.collector-greeting aside small,
.collector-greeting aside span {
  display: block;
  font-size: 16px;
}

.collector-greeting aside strong {
  display: inline-block;
  margin-right: 4px;
  color: var(--collector-green);
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.collector-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 13px;
  margin-bottom: 15px;
}

.collector-search label {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  min-height: 60px;
  padding: 0 18px;
  border: 1px solid var(--collector-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .05);
}

.collector-search label span {
  color: #26334e;
  font-size: 31px;
}

.collector-search input {
  min-height: auto;
  padding: 0;
  border: 0;
  color: var(--collector-text);
  background: transparent;
  font-size: 21px;
  outline: none;
}

.collector-search input::placeholder {
  color: #4c5a75;
}

.collector-search button {
  min-height: 60px;
  border: 1px solid var(--collector-line);
  border-radius: 9px;
  color: #26334e;
  background: #fff;
  font-size: 29px;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .05);
}

.collector-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.collector-summary article,
.collector-route-card,
.collector-client-card,
.collector-balance-card,
.collector-lock-note,
.collector-form-card,
.collector-history-card,
.collector-empty {
  border: 1px solid var(--collector-line);
  border-radius: 9px;
  background: var(--collector-panel);
  box-shadow: 0 9px 22px rgba(15, 23, 42, .08);
  backdrop-filter: none;
}

.collector-summary article {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 100px;
  padding: 18px;
  column-gap: 14px;
}

.summary-icon {
  grid-row: 1 / span 2;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  color: var(--collector-green);
  background: var(--collector-green-2);
  font-size: 31px;
}

.summary-icon.green {
  color: var(--collector-green);
}

.summary-icon.amber {
  color: var(--collector-amber);
  background: var(--collector-amber-2);
}

.collector-summary strong {
  margin: 0;
  color: var(--collector-text);
  font-size: 28px;
  line-height: 1;
}

.collector-summary small {
  color: var(--collector-muted);
  font-size: 18px;
}

.collector-summary article > span:not(.summary-icon) {
  display: none;
}

.collector-route-list {
  gap: 12px;
}

.collector-route-card {
  position: relative;
  padding: 22px 18px 18px;
  overflow: hidden;
}

.collector-route-card::before {
  content: "";
  position: absolute;
  top: 70px;
  bottom: 0;
  left: 34px;
  width: 1px;
  border-left: 1px dashed #b7c0ce;
}

.collector-route-card.is-expanded {
  border-color: var(--collector-green);
}

.route-card-link {
  display: grid;
  grid-template-columns: 44px 64px minmax(0, 1fr) auto 126px 132px 28px;
  gap: 14px;
  align-items: center;
  color: var(--collector-text);
}

.route-index {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: var(--collector-green);
  font-size: 18px;
}

.customer-avatar {
  width: 64px;
  height: 64px;
  font-size: 25px;
}

.route-copy strong {
  color: var(--collector-text);
  font-size: 24px;
  letter-spacing: -.04em;
}

.route-copy small {
  color: #4d5c77;
  font-size: 19px;
  line-height: 1.45;
}

.route-status {
  min-height: 33px;
  padding-inline: 13px;
  white-space: nowrap;
}

.route-status.late {
  color: var(--collector-red);
  background: var(--collector-red-2);
}

.route-debt small,
.route-debt strong {
  display: block;
}

.route-debt small {
  color: #3f4b64;
  font-size: 16px;
}

.route-debt strong {
  color: var(--collector-green);
  font-size: 26px;
  letter-spacing: -.04em;
}

.route-status.late + .route-debt strong {
  color: var(--collector-red);
}

.route-pay-button {
  display: grid;
  min-height: 54px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #07946f, #00785d);
  box-shadow: 0 10px 20px rgba(0, 136, 102, .20);
  font-size: 20px;
  font-weight: 950;
}

.route-chevron {
  color: #69758a;
  font-size: 30px;
  text-align: center;
}

.route-expanded {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 0 66px;
  padding-top: 20px;
  border-top: 1px solid var(--collector-line);
}

.route-expanded div {
  padding-inline: 22px;
  border-left: 1px solid var(--collector-line);
}

.route-expanded div:first-child {
  border-left: 0;
}

.route-expanded dt,
.route-expanded dd {
  margin: 0;
}

.route-expanded dt {
  color: #3f4b64;
  font-size: 16px;
}

.route-expanded dd {
  margin-top: 7px;
  color: var(--collector-text);
  font-size: 20px;
  font-weight: 900;
}

.collector-card-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 28px 28px 8px 66px;
}

.collector-card-actions a,
.collector-card-actions button,
.collector-card-actions span {
  display: grid;
  min-height: 66px;
  width: 100%;
  place-items: center;
  border: 1px solid #b8ded4;
  border-radius: 7px;
  color: var(--collector-green);
  background: #fff;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}

.collector-card-actions form {
  margin: 0;
}

.collector-card-actions .outline-primary {
  color: var(--collector-green);
}

.collector-payment-sheet {
  position: fixed;
  right: 50%;
  bottom: calc(118px + env(safe-area-inset-bottom));
  z-index: 18;
  width: min(940px, 100vw);
  max-height: min(430px, calc(100dvh - 210px));
  padding: 16px 48px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--collector-line);
  border-radius: 20px 20px 0 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -12px 36px rgba(15, 23, 42, .18);
  transform: translateX(50%);
  backdrop-filter: blur(20px);
}

.sheet-handle {
  width: 66px;
  height: 7px;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: #adb5c1;
}

.collector-payment-sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.collector-payment-sheet h2 {
  margin: 0;
  color: var(--collector-text);
  font-size: 24px;
  letter-spacing: -.03em;
}

.collector-payment-sheet header a {
  color: #667085;
  font-size: 36px;
  line-height: 1;
}

.collector-payment-sheet form {
  display: grid;
  gap: 18px;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.collector-payment-sheet label,
.collector-form-card label,
.collector-details label {
  color: #26334e;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.collector-payment-sheet input,
.collector-payment-sheet textarea,
.collector-payment-sheet select,
.collector-form-card input,
.collector-form-card textarea,
.collector-form-card select {
  min-height: 52px;
  border: 1px solid #d0d8e3;
  border-radius: 8px;
  color: var(--collector-text);
  background: #fff;
  font-size: 18px;
}

.money-input span {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  min-height: 52px;
  margin-top: 8px;
  border: 1px solid #d0d8e3;
  border-radius: 8px;
  background: #fff;
}

.money-input b {
  display: grid;
  height: 100%;
  place-items: center;
  color: #26334e;
  font-size: 18px;
}

.money-input input {
  min-height: 50px;
  border: 0;
  border-radius: 0;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 52px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid #d0d8e3;
  border-radius: 8px;
  background: #fff;
}

.segmented-control b,
.segmented-control em {
  display: grid;
  place-items: center;
  font-size: 18px;
  font-style: normal;
}

.segmented-control b {
  margin: 5px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(180deg, #07946f, #00785d);
}

.segmented-control em {
  color: var(--collector-text);
}

.visit-comment {
  grid-column: 1 / -1;
}

.visit-comment textarea {
  margin-top: 8px;
}

.not-home-check {
  position: absolute;
  right: 50px;
  bottom: 176px;
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
}

.not-home-check input {
  width: 24px;
  min-height: 24px;
}

.sheet-evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sheet-evidence label {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px solid #d0d8e3;
  border-radius: 8px;
  background: #fff;
  color: #26334e;
  font-size: 18px;
}

.sheet-evidence input {
  display: none;
}

.collector-submit,
.locked-payment button {
  min-height: 58px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(180deg, #07946f, #00785d);
  box-shadow: 0 10px 20px rgba(0, 136, 102, .16);
  font-size: 21px;
}

.collector-bottom-nav {
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 40;
  width: min(940px, 100%);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  align-items: center;
  min-height: calc(82px + env(safe-area-inset-bottom));
  padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
  border: 1px solid var(--collector-line);
  border-bottom: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -8px 20px rgba(15, 23, 42, .10);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
}

.collector-bottom-nav a,
.collector-bottom-nav span {
  display: flex;
  min-width: 0;
  min-height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 0;
  color: #4e5a71;
  background: transparent;
  font-size: 23px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.collector-bottom-nav a span,
.collector-bottom-nav span span {
  display: block;
  min-height: auto;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.collector-bottom-nav .is-active {
  color: var(--collector-green);
  background: transparent;
}

.collector-client-card,
.collector-balance-card,
.collector-lock-note,
.collector-form-card,
.collector-history-card {
  margin-top: 14px;
  color: var(--collector-text);
}

.client-head > span {
  background: linear-gradient(145deg, #dff3ec, #cbe8de);
  color: #102037;
}

.collector-balance-card > strong {
  color: var(--collector-green);
}

.collector-lock-note strong {
  color: var(--collector-green);
}

.collector-mobile-alert,
.collector-action-strip,
.mobile-flow-tabs {
  display: grid;
  margin: 12px 0;
  border: 1px solid var(--collector-line);
  border-radius: 9px;
  background: var(--collector-panel);
  box-shadow: 0 9px 22px rgba(15, 23, 42, .08);
}

.collector-mobile-alert {
  gap: 4px;
  padding: 13px 15px;
  border-color: #c6e7df;
  background: #f0fbf7;
}

.collector-mobile-alert strong {
  color: var(--collector-green);
  font-size: 15px;
}

.collector-mobile-alert span {
  color: var(--collector-muted);
  line-height: 1.35;
}

.collector-action-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.collector-action-strip a,
.collector-action-strip span {
  display: grid;
  min-height: 72px;
  place-items: center;
  gap: 5px;
  border-left: 1px solid var(--collector-line);
  color: var(--collector-green);
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.collector-action-strip a:first-child,
.collector-action-strip span:first-child {
  border-left: 0;
}

.collector-action-strip a span,
.collector-action-strip span span {
  color: var(--collector-muted);
  font-size: 12px;
  font-weight: 800;
}

.mobile-flow-tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}

.mobile-flow-tabs a {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-left: 1px solid var(--collector-line);
  color: var(--collector-muted);
  font-weight: 900;
}

.mobile-flow-tabs a:first-child {
  border-left: 0;
}

.mobile-flow-tabs .is-active,
.mobile-flow-tabs a:focus,
.mobile-flow-tabs a:hover {
  color: var(--collector-green);
  background: #eefaf5;
}

.mobile-work-card {
  scroll-margin-top: 62px;
}

.mobile-money-field > span {
  margin-top: 7px;
}

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

.amount-shortcuts button {
  min-height: 42px;
  border: 1px solid #b8ded4;
  border-radius: 8px;
  color: var(--collector-green);
  background: #f6fffb;
  font-weight: 900;
  cursor: pointer;
}

.mobile-evidence-tile {
  position: relative;
  min-height: 82px;
  padding: 13px;
  border: 1px dashed #aebdcb;
  border-radius: 9px;
  background: #fbfdff;
  cursor: pointer;
}

.sheet-evidence .mobile-evidence-tile {
  min-height: 70px;
}

.mobile-evidence-tile strong {
  color: var(--collector-text);
  font-size: 15px;
}

.mobile-evidence-tile small {
  color: var(--collector-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.mobile-evidence-tile.has-file {
  border-color: var(--collector-green);
  background: #eefaf5;
}

.mobile-evidence-tile input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  opacity: 0;
  cursor: pointer;
}

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

.mobile-form-meta span {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #d0d8e3;
  border-radius: 999px;
  color: var(--collector-muted);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.mobile-form-meta .is-ok {
  border-color: #b8ded4;
  color: var(--collector-green);
  background: #eefaf5;
}

.mobile-form-meta .is-warn {
  border-color: #f1cf8a;
  color: #8a5b00;
  background: #fff8e7;
}

.signature-pad {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #d0d8e3;
  border-radius: 9px;
  background: #fff;
}

.signature-pad > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.signature-pad strong {
  color: var(--collector-text);
  font-size: 15px;
}

.signature-pad button {
  min-height: 34px;
  border: 1px solid #d0d8e3;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--collector-muted);
  background: #f8fafc;
  font-weight: 850;
}

.signature-pad canvas {
  display: block;
  width: 100%;
  height: 148px;
  border: 1px dashed #9aa9bb;
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .94)),
    repeating-linear-gradient(0deg, transparent 0 34px, #edf2f7 35px);
  touch-action: none;
}

.signature-pad small {
  color: var(--collector-muted);
  line-height: 1.35;
}

.signature-pad.has-signature {
  border-color: var(--collector-green);
  background: #f6fffb;
}

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

.visit-status-grid label {
  display: block;
}

.visit-status-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.visit-status-grid span {
  display: grid;
  min-height: 76px;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d0d8e3;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.visit-status-grid strong {
  color: var(--collector-text);
  font-size: 15px;
}

.visit-status-grid small {
  color: var(--collector-muted);
  line-height: 1.25;
}

.visit-status-grid input:checked + span {
  border-color: var(--collector-green);
  background: #eefaf5;
  box-shadow: inset 0 0 0 1px var(--collector-green);
}

@media (max-width: 700px) {
  .collector-phone {
    width: 100vw;
    padding: 0 14px 124px;
  }

  .collector-topbar {
    min-height: 82px;
    margin: 0 -14px;
    padding: 0 18px;
  }

  .collector-topbar strong {
    font-size: 24px;
  }

  .collector-greeting {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .collector-greeting aside {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
  }

  .collector-search {
    grid-template-columns: minmax(0, 1fr) 58px;
  }

  .collector-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .collector-summary article {
    display: block;
    min-height: 78px;
    padding: 10px;
  }

  .summary-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
    font-size: 18px;
  }

  .collector-summary strong {
    font-size: 22px;
  }

  .collector-summary small {
    font-size: 14px;
  }

  .collector-route-card {
    padding: 14px;
  }

  .collector-route-card::before {
    left: 31px;
  }

  .route-card-link {
    grid-template-columns: 38px 54px minmax(0, 1fr) 96px;
    gap: 10px;
  }

  .customer-avatar {
    width: 52px;
    height: 52px;
  }

  .route-copy strong {
    font-size: 18px;
  }

  .route-copy small {
    font-size: 14px;
  }

  .route-status {
    grid-column: 3 / -1;
    justify-self: start;
    min-height: 28px;
    margin-top: -4px;
  }

  .route-debt {
    grid-column: 3 / 4;
  }

  .route-debt strong {
    font-size: 19px;
  }

  .route-pay-button {
    grid-column: 4 / 5;
    grid-row: 2 / 4;
    min-height: 48px;
    font-size: 16px;
  }

  .route-chevron {
    display: none;
  }

  .route-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0 46px;
  }

  .route-expanded div {
    padding-inline: 0;
    border-left: 0;
  }

  .collector-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0 0 46px;
  }

  .collector-card-actions a,
  .collector-card-actions button,
  .collector-card-actions span {
    min-height: 48px;
    font-size: 14px;
  }

  .collector-payment-sheet {
    bottom: calc(108px + env(safe-area-inset-bottom));
    padding: 12px 18px 22px;
    max-height: min(48dvh, 410px);
    overflow-y: auto;
  }

  .collector-payment-sheet h2 {
    font-size: 19px;
  }

  .payment-grid,
  .sheet-evidence {
    grid-template-columns: 1fr;
  }

  .not-home-check {
    position: static;
    justify-content: end;
  }

  .collector-bottom-nav {
    min-height: calc(78px + env(safe-area-inset-bottom));
    padding: 8px max(8px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
  }

  .collector-bottom-nav a,
  .collector-bottom-nav span {
    min-height: 54px;
    font-size: 22px;
    gap: 5px;
  }

  .collector-bottom-nav a span,
  .collector-bottom-nav span span {
    font-size: 11px;
  }
}

.privacy-policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.privacy-policy-card {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 18px;
  border: 1px solid #cfd8e3;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(0, 136, 102, .10), rgba(255, 255, 255, .92)),
    #fff;
}

.privacy-policy-card span {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  color: #00785d;
  background: #e8f8f2;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.privacy-policy-card strong {
  color: #0f172a;
  font-size: 18px;
}

.privacy-policy-card p,
.privacy-limits p {
  margin: 0;
  color: #4b5563;
  line-height: 1.55;
}

.privacy-policy-card.is-warning {
  border-color: #f8d08a;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, .14), rgba(255, 255, 255, .94)),
    #fff;
}

.privacy-policy-card.is-warning span {
  color: #8a4b00;
  background: #fff4d6;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .privacy-policy-card {
  border-color: rgba(76, 214, 200, .34);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, .18), rgba(15, 23, 42, .96)),
    #101827;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .privacy-policy-card span {
  color: #9ff5e7;
  background: rgba(20, 184, 166, .14);
  border: 1px solid rgba(76, 214, 200, .24);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .privacy-policy-card strong {
  color: #ffffff;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .privacy-policy-card p {
  color: #dbe7f5;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .privacy-policy-card.is-warning {
  border-color: rgba(251, 191, 36, .55);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, .20), rgba(15, 23, 42, .96)),
    #191408;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .privacy-policy-card.is-warning span {
  color: #fde68a;
  background: rgba(245, 158, 11, .16);
  border-color: rgba(251, 191, 36, .28);
}

.privacy-limits {
  display: grid;
  gap: 12px;
}

.cash-close-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.cash-close-breakdown span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d8e1ea;
  border-radius: 12px;
  color: #667085;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 850;
}

.cash-close-breakdown b {
  color: #101828;
  font-size: 15px;
}

.mini-filter {
  display: grid;
  gap: 12px;
}

.mini-filter label {
  display: grid;
  gap: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.mini-filter input,
.mini-filter select {
  min-height: 42px;
  width: 100%;
  border: 1px solid #d8e1ea;
  border-radius: 12px;
  padding: 0 12px;
  color: #101828;
  background: #fff;
  font: inherit;
}

.inline-void {
  position: relative;
}

.inline-void summary {
  color: #dc2626;
  cursor: pointer;
  font-weight: 850;
}

.inline-void form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 6px;
  min-width: 240px;
  margin-top: 8px;
}

.inline-void input {
  min-height: 34px;
  border: 1px solid #f3b4b4;
  border-radius: 10px;
  padding: 0 10px;
}

.inline-void button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #dc2626;
  font-weight: 850;
}

.approval-metrics {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.cash-approval-panel {
  margin-top: 16px;
}

.cash-approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: start;
}

.cash-approval-actions form {
  margin: 0;
}

.approve-button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  color: #fff;
  background: #059669;
  font-weight: 850;
  cursor: pointer;
}

.cash-difference {
  color: #dc2626 !important;
  font-weight: 900;
}

.collector-menu-link {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  color: var(--collector-text);
  background: transparent;
  font-size: 34px;
  font-weight: 900;
}

.close-greeting {
  margin-bottom: 12px;
}

.close-summary {
  margin-top: 0;
}

.mobile-close-money {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.mobile-close-money article {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--collector-line);
  border-radius: 9px;
  background: var(--collector-panel);
  box-shadow: 0 9px 22px rgba(15, 23, 42, .08);
}

.mobile-close-money span {
  color: var(--collector-muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.mobile-close-money strong {
  color: var(--collector-text);
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1;
  letter-spacing: -.05em;
}

.mobile-close-money .has-difference strong {
  color: var(--collector-red);
}

.mobile-close-form {
  margin-top: 12px;
}

.mobile-close-form h2,
.mobile-close-status h2 {
  margin: 0 0 14px;
  color: var(--collector-text);
  font-size: 22px;
}

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

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

.close-status-grid span {
  display: grid;
  gap: 3px;
  min-height: 70px;
  place-items: center;
  border: 1px solid var(--collector-line);
  border-radius: 9px;
  color: var(--collector-muted);
  background: rgba(255, 255, 255, .72);
  text-align: center;
}

.close-status-grid b {
  color: var(--collector-text);
  font-size: 24px;
}

.collector-empty-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.collector-empty-actions a {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid #b8ded9;
  border-radius: 8px;
  color: var(--collector-green);
  background: #f0fbf7;
  font-weight: 900;
}

.collector-empty small {
  display: block;
  margin-top: 12px;
  color: var(--collector-muted);
  line-height: 1.35;
}

.collector-profile-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--collector-line);
  border-radius: 12px;
  background: var(--collector-panel);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.profile-avatar {
  width: 86px;
  height: 86px;
  font-size: 34px;
}

.collector-profile-card h1 {
  margin: 0 0 6px;
  color: var(--collector-text);
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.05;
}

.collector-profile-card p {
  margin: 0 0 10px;
  color: var(--collector-muted);
  font-weight: 800;
}

.profile-access-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.profile-access-card dl div {
  display: grid;
  grid-template-columns: minmax(96px, .7fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--collector-line);
}

.profile-access-card dl div:last-child {
  border-bottom: 0;
}

.profile-access-card dt,
.profile-access-card dd {
  margin: 0;
}

.profile-access-card dt {
  color: var(--collector-muted);
  font-weight: 850;
}

.profile-access-card dd {
  color: var(--collector-text);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.collector-profile-actions {
  display: grid;
  gap: 10px;
  margin: 14px 0 110px;
}

.collector-profile-actions a {
  display: grid;
  min-height: 56px;
  place-items: center;
  border: 1px solid #b8ded9;
  border-radius: 8px;
  color: var(--collector-green);
  background: #f0fbf7;
  font-size: 18px;
  font-weight: 900;
}

.collector-profile-actions .danger-link {
  border-color: #fecaca;
  color: #b42318;
  background: #fff5f5;
}

@media (max-width: 700px) {
  .mobile-close-money {
    grid-template-columns: 1fr;
  }

  .close-status-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.collector-phone[data-mobile-privacy] {
  -webkit-touch-callout: none;
}

.collector-phone[data-mobile-privacy]::before {
  content: attr(data-privacy-label);
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  color: #00785d;
  font-size: clamp(16px, 4vw, 24px);
  font-weight: 950;
  letter-spacing: .10em;
  line-height: 1.35;
  opacity: .075;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-18deg);
  white-space: pre-wrap;
}

body.privacy-hidden .collector-phone[data-mobile-privacy] > * {
  filter: blur(18px);
  opacity: .16;
  user-select: none;
}

body.privacy-hidden .collector-phone[data-mobile-privacy]::before {
  display: none;
}

body.privacy-hidden .collector-phone[data-mobile-privacy]::after {
  content: "Contenido protegido";
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #0f172a;
  background: rgba(248, 250, 252, .94);
  font-size: clamp(22px, 7vw, 34px);
  font-weight: 950;
  letter-spacing: -.03em;
  text-align: center;
  transform: none;
  white-space: normal;
}

.collector-mobile-shell .collector-mobile-menu {
  position: static;
  z-index: 5;
  display: none;
  grid-auto-columns: minmax(118px, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  width: 100%;
  max-height: none;
  margin: 10px 0 0;
  padding: 0 0 6px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
}

.collector-mobile-shell .collector-mobile-menu::-webkit-scrollbar {
  display: none;
}

.collector-mobile-shell .collector-mobile-menu.is-open {
  display: grid;
}

.collector-mobile-shell .collector-mobile-menu a {
  display: grid;
  min-height: 38px;
  padding: 0 12px;
  place-items: center;
  border: 1px solid #c6e7df;
  border-radius: 999px;
  color: #00785d;
  background: #f0fbf7;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.collector-mobile-shell .collector-topbar button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.collector-mobile-shell .collector-topbar button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.collector-mobile-shell .collector-topbar button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.collector-mobile-shell .collector-topbar button span {
  width: 28px;
  transition: opacity .18s ease, transform .18s ease;
}

.collector-mobile-shell .collector-topbar button:focus-visible {
  outline: 2px solid #008866;
  outline-offset: 3px;
}

.collector-mobile-shell .collector-privacy {
  gap: 8px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #c6e7df;
  border-radius: 16px;
  background: #f4fbf8;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.collector-mobile-shell .collector-privacy span {
  justify-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  color: #00785d;
  background: #dff5ec;
  font-size: 15px;
  font-weight: 950;
}

.collector-mobile-shell .collector-privacy p {
  max-width: 42rem;
  color: #26334e;
  font-size: clamp(15px, 3.8vw, 18px);
  line-height: 1.42;
}

.collector-mobile-shell .collector-privacy small {
  justify-self: start;
  border-color: #b8ded4;
  color: #00785d;
  background: #ffffff;
  font-size: 14px;
}

.collector-mobile-shell .collector-phone[data-mobile-privacy]::before {
  z-index: 0;
  opacity: .035;
}

.collector-mobile-shell .collector-phone[data-mobile-privacy] > *:not(.collector-bottom-nav):not(.collector-payment-sheet) {
  position: relative;
  z-index: 1;
}

.collector-mobile-shell .collector-payment-sheet {
  position: static;
  bottom: auto;
  z-index: auto;
  width: auto;
  max-height: none;
  margin: 12px 0 0;
  overflow: visible;
  overscroll-behavior: auto;
  border-radius: 12px;
  transform: none;
}

.collector-mobile-shell .collector-bottom-nav {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 40;
  transform: translateX(-50%);
}

@media (max-width: 700px) {
  .collector-mobile-shell .collector-mobile-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: initial;
    grid-auto-flow: row;
    margin-top: 8px;
    padding-bottom: 0;
    overflow: visible;
  }

  .collector-mobile-shell .collector-mobile-menu a {
    padding: 0 8px;
    font-size: 13px;
  }

  .collector-mobile-shell .collector-payment-sheet {
    max-height: none;
  }
}

.collector-day-brief {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid #b8ded4;
  border-radius: 12px;
  background: #f5fffb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .07);
}

.collector-day-brief header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.collector-day-brief header strong {
  display: block;
  color: #0b1b33;
  font-size: clamp(20px, 4.8vw, 26px);
  line-height: 1.1;
}

.collector-day-brief header small {
  display: block;
  margin-top: 3px;
  color: #5f6b82;
  font-weight: 800;
}

.collector-day-brief header a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #b8ded4;
  border-radius: 999px;
  color: #00785d;
  background: #fff;
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.collector-day-brief > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.collector-day-brief article {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8e8e4;
  border-radius: 10px;
  background: #fff;
}

.collector-day-brief article span,
.collector-day-brief article small {
  display: block;
  color: #5f6b82;
  font-weight: 850;
}

.collector-day-brief article span {
  min-height: 32px;
  font-size: 13px;
  line-height: 1.22;
}

.collector-day-brief article strong {
  display: block;
  margin: 8px 0 3px;
  color: #00785d;
  font-size: clamp(24px, 6vw, 34px);
  line-height: .95;
}

.collector-day-brief article small {
  font-size: 12px;
}

.collector-list-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.collector-list-tabs a {
  display: grid;
  min-width: 0;
  min-height: 72px;
  align-content: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid #d0d8e3;
  border-radius: 10px;
  color: #26334e;
  background: #fff;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .05);
}

.collector-list-tabs a.is-active {
  border-color: #86dbc7;
  color: #00785d;
  background: #eafaf5;
}

.collector-list-tabs b {
  font-size: 25px;
  line-height: .95;
}

.collector-list-tabs span {
  min-width: 0;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
}

.collector-list-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 10px;
}

.collector-list-heading strong {
  display: block;
  color: #0b1b33;
  font-size: 22px;
  line-height: 1.05;
}

.collector-list-heading small {
  display: block;
  margin-top: 3px;
  color: #5f6b82;
  font-size: 14px;
  font-weight: 800;
}

.collector-list-heading a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid #d0d8e3;
  border-radius: 999px;
  color: #26334e;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.route-debt em {
  display: block;
  margin-top: 3px;
  color: var(--collector-red);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 700px) {
  .collector-day-brief {
    padding: 12px;
  }

  .collector-day-brief > div {
    grid-template-columns: 1fr;
  }

  .collector-day-brief article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 6px 12px;
  }

  .collector-day-brief article span {
    min-height: 0;
  }

  .collector-day-brief article strong {
    grid-row: 1 / span 2;
    grid-column: 2;
    margin: 0;
    text-align: right;
  }

  .collector-list-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collector-list-tabs a {
    min-height: 58px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    align-content: center;
  }

  .collector-list-heading {
    align-items: flex-start;
  }
}

.office-shell .loan-calculator-page {
  display: grid;
  gap: 16px;
  padding: 20px 24px 42px;
}

.office-shell .calculator-heading {
  display: flex;
  min-width: 0;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.office-shell .calculator-heading h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

.office-shell .calculator-heading p {
  max-width: 760px;
  margin: 9px 0 0;
  color: #667085;
  font-size: 15px;
  font-weight: 650;
}

.office-shell .calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 16px;
  align-items: start;
}

.office-shell .loan-calculator-form,
.office-shell .loan-calculator-result,
.office-shell .loan-calculator-schedule {
  min-width: 0;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .07);
}

.office-shell .loan-calculator-form,
.office-shell .loan-calculator-result {
  padding: 16px;
}

.office-shell .loan-calculator-schedule {
  overflow: hidden;
}

.office-shell .loan-calculator-schedule .calculator-card-title {
  padding: 16px;
  border-bottom: 1px solid #e3e8ef;
}

.office-shell .calculator-card-title {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.office-shell .calculator-card-title h2 {
  margin: 0;
  color: #101828;
  font-size: 18px;
  line-height: 1.2;
}

.office-shell .calculator-card-title span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #b8ded9;
  border-radius: 999px;
  color: #087f76;
  background: #effaf8;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.office-shell .calculator-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.office-shell .calculator-fields label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

.office-shell .calculator-fields .field-help {
  color: #667085;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

.office-shell .calculator-fields input,
.office-shell .calculator-fields select {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
}

.office-shell .money-input,
.office-shell .percent-input {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid #cfd8e3;
  border-radius: 5px;
  background: #fff;
}

.office-shell .percent-input {
  grid-template-columns: minmax(0, 1fr) auto;
}

.office-shell .money-input b,
.office-shell .percent-input b {
  padding: 0 12px;
  color: #475467;
  font-size: 13px;
  font-weight: 900;
}

.office-shell .money-input input,
.office-shell .percent-input input {
  border: 0;
  box-shadow: none;
}

.office-shell .calculator-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.office-shell .calculator-actions .search-button,
.office-shell .calculator-actions .soft-button {
  min-width: 130px;
}

.office-shell .calculator-hero-number {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid #b8ded9;
  border-radius: 8px;
  background: linear-gradient(180deg, #effaf8, #fff);
}

.office-shell .calculator-hero-number small,
.office-shell .calculator-hero-number span {
  color: #667085;
  font-weight: 800;
}

.office-shell .calculator-hero-number strong {
  color: #087f76;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.office-shell .calculator-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #b8ded9;
  border-radius: 8px;
  color: #145c53;
  background: #f0fbf7;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.office-shell .calculator-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.office-shell .calculator-metrics article {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #f8fafc;
}

.office-shell .calculator-metrics small {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.office-shell .calculator-metrics strong {
  display: block;
  margin-top: 5px;
  color: #101828;
  font-size: 16px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.office-shell .calculator-detail-list {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 9px 14px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #e3e8ef;
}

.office-shell .calculator-detail-list dt {
  color: #667085;
  font-weight: 800;
}

.office-shell .calculator-detail-list dd {
  min-width: 0;
  margin: 0;
  color: #101828;
  font-weight: 850;
  overflow-wrap: anywhere;
}

@media (max-width: 1040px) {
  .office-shell .calculator-layout {
    grid-template-columns: 1fr;
  }

  .office-shell .loan-calculator-result {
    order: -1;
  }
}

@media (max-width: 720px) {
  .office-shell .loan-calculator-page {
    padding: 16px 12px 34px;
  }

  .office-shell .calculator-heading,
  .office-shell .calculator-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .office-shell .calculator-fields,
  .office-shell .calculator-metrics {
    grid-template-columns: 1fr;
  }

  .office-shell .calculator-detail-list {
    grid-template-columns: 1fr;
  }
}

/* Final dark-theme pass: keep late component styles from leaking light surfaces. */
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .form-actions,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .report-toolbar,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .settings-field,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .settings-preview div,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .backup-list div,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .restore-steps span,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .money-stack article,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .receipt-total,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .receipt-sheet header,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .receipt-sheet footer,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .product-preset-note,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .balance-box,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-access div,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-card-clean,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-stat-grid-clean span,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-summary-clean,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loan-calculator-form,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loan-calculator-result,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .loan-calculator-schedule,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-metrics article {
  border-color: var(--line);
  color: var(--text);
  background: #0f1726;
  box-shadow: var(--shadow);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .form-actions {
  background: linear-gradient(180deg, #101827, #0b1220);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .report-toolbar {
  background: linear-gradient(180deg, #101827, #0b1220);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .money-stack article,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-hero-number,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-note,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .product-preset-note {
  border-color: #28524e;
  background: linear-gradient(135deg, #0e2a2c, #0b1726);
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .settings-field strong,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .settings-preview strong,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .backup-list strong,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .receipt-sheet header strong,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .receipt-sheet header b,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .money-stack strong,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .receipt-total strong,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .balance-box dd,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-access dd,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-card-head h2,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-stat-grid-clean b,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-meta-clean b,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-summary-clean b,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-heading h1,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-card-title h2,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-metrics strong,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-detail-list dd {
  color: #f8fafc;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .settings-field small,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .settings-card-note,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .settings-preview span,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .backup-list span,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .restore-steps span,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .receipt-sheet header span,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .receipt-total small,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .money-stack small,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .money-stack span,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .balance-box dt,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-access dt,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-card-head p,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-stat-grid-clean small,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-meta-clean small,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-summary-clean small,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-heading p,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-fields label,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-fields .field-help,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-hero-number small,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-hero-number span,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-metrics small,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-detail-list dt {
  color: #cbd5e1;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .money-stack strong,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .receipt-total strong,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .balance-box dt:last-of-type,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .balance-box dd:last-of-type,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-hero-number strong,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-note {
  color: #7dd3c7;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .settings-field input,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .settings-field select,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .money-input,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .percent-input,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-fields input,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-fields select {
  border-color: #34445c;
  color: #f8fafc;
  background: #0b1220;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .money-input b,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .percent-input b {
  color: #cbd5e1;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .calculator-card-title span,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-route-pill {
  border-color: #246d65;
  color: #9ff2e8;
  background: #102a2a;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-route-pill.is-neutral {
  border-color: #34445c;
  color: #cbd5e1;
  background: #111827;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-summary-clean header {
  border-bottom-color: #246d65;
  color: #9ff2e8;
  background: #102a2a;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-summary-clean span,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-meta-clean,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collector-meta-clean span {
  border-color: #26354f;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .credit-block-toggle,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .credit-block-panel.is-blocked {
  border-color: #7f1d1d;
  background: #1f1117;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .credit-block-panel {
  border-color: #246d65;
  background: #0f1b24;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .credit-block-toggle strong,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .credit-block-panel p {
  color: #f8fafc;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .credit-block-toggle small,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .credit-block-meta,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .credit-block-form label {
  color: #cbd5e1;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .credit-block-form textarea {
  border-color: #34445c;
  color: #f8fafc;
  background: #0b1220;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collection-sheet {
  color: #f8fafc;
  background: #0b1220;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collection-sheet h2,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collection-sheet h3,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collection-table table {
  color: #f8fafc;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collection-table th {
  border-color: #1f2937;
  color: #02131c;
  background: #38c2ff;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collection-table td {
  border-color: #334155;
  color: #eef4ff;
  background: #0f1726;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collection-table small {
  color: #cbd5e1;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collection-table .mora-amount {
  color: #fca5a5;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .collection-table tfoot td {
  background: #0b1220;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .danger-link,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) button.danger-link {
  border-color: #7f2d2d !important;
  color: #fecaca !important;
  background: #2b1216 !important;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .summary-icon.green,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .summary-icon.teal {
  color: #7dd3c7 !important;
  background: #102a2a !important;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .summary-icon.blue {
  color: #93c5fd !important;
  background: #10243f !important;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .summary-icon.amber {
  color: #f8d66d !important;
  background: #33280b !important;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .summary-icon.red {
  color: #fca5a5 !important;
  background: #33161b !important;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .table-status,
:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) em.table-status {
  border-color: #246d65 !important;
  color: #9ff2e8 !important;
  background: #102a2a !important;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .table-status.late {
  border-color: #7f2d2d !important;
  color: #fecaca !important;
  background: #2b1216 !important;
}

:is(html[data-theme="dark"] .office-shell, .office-shell[data-theme="dark"]) .table-status.neutral {
  border-color: #34445c !important;
  color: #cbd5e1 !important;
  background: #111827 !important;
}

@media print {
  @page {
    size: landscape;
    margin: 10mm;
  }

  html,
  body {
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    color: #111827 !important;
    background: #fff !important;
  }

  .system-header,
  .ribbon,
  .sidebar,
  .backdrop,
  .statusbar,
  .collector-bottom-nav,
  .collector-payment-sheet,
  .collector-mobile-menu {
    display: none !important;
  }

  .desktop-app,
  .workspace,
  .main-panel,
  .content-stage,
  .office-shell .content-stage {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .page-heading,
  .office-shell .page-heading {
    display: flex !important;
    padding: 0 0 10px !important;
    margin: 0 0 10px !important;
    page-break-after: avoid;
  }

  .page-heading h1,
  .office-shell .page-heading h1 {
    font-size: 24px !important;
    letter-spacing: 0 !important;
  }

  .office-tabbar,
  .report-toolbar,
  .toolbar,
  .filter-panel {
    display: none !important;
  }

  .metric-grid,
  .summary-strip,
  .office-shell .summary-strip {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    break-inside: avoid;
  }

  .panel-card,
  .metric-card,
  .report-card,
  .collector-card,
  .data-table,
  .office-shell .panel-card,
  .office-shell .metric-card,
  .office-shell .data-table {
    overflow: visible !important;
    box-shadow: none !important;
    background: #fff !important;
    break-inside: avoid;
  }

  .data-table,
  .office-shell .data-table {
    border: 1px solid #d0d5dd !important;
  }

  table,
  .office-shell table {
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
  }

  th,
  td,
  .office-shell th,
  .office-shell td {
    padding: 4px 5px !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
    background: #fff !important;
    font-size: 7px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  th,
  .office-shell th {
    color: #fff !important;
    background: #0f766e !important;
    font-weight: 800 !important;
  }

  tr {
    break-inside: avoid;
  }
}
