:root {
  --ink: #202923;
  --muted: #59645d;
  --line: #d3d9d4;
  --green: #225b3c;
  --paper: #fff;
  --accent: #225b3c;
  --card: #fff;
  --forest: #225b3c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f7f5;
  color: var(--ink);
  font:
    14px/1.5 Arial,
    Helvetica,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
input,
select,
textarea {
  min-height: 40px;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button {
  border: 1px solid #bbc5be;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  padding: 8px 13px;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  background: #edf2ed;
}
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
button.primary:hover {
  background: #18462d;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.table-wrap:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #307bba;
  outline-offset: 3px;
}
a {
  color: #1f593a;
  text-underline-offset: 3px;
}
h1 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 13px;
}
h3 {
  font-size: 15px;
}
p {
  margin: 0 0 12px;
}
.small {
  font-size: 12px;
}
.muted,
.subtitle {
  color: var(--muted);
}
.number,
.mono {
  font-family: Consolas, ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.number {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.workbook-header {
  background: #fff;
  border-bottom: 2px solid var(--green);
  min-height: 66px;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 12px 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.workbook-brand {
  font-weight: 600;
  font-size: 16px;
}
.workbook-header nav {
  margin-left: auto;
  display: flex;
  gap: 7px;
}
.workbook-header nav button {
  font-size: 12px;
}
.workbook-jump select {
  max-width: 240px;
}
.home-link {
  color: var(--green);
  border-color: transparent;
}
.workbook-header select {
  font-size: 13px;
}
main {
  max-width: 1300px;
  margin: 24px auto 0;
  padding: 25px 30px 34px;
  background: white;
  border: 1px solid var(--line);
  min-height: calc(100dvh - 115px);
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}
.preview-note {
  font-size: 12px;
  color: var(--muted);
}
footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 36px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.home-intro {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 25px;
}
.workbook-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 960px;
}
.workbook-choices button {
  text-align: left;
  padding: 25px 23px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  min-height: 118px;
  border: 1px solid #c3cec6;
  border-left: 4px solid var(--green);
  border-radius: 3px;
  background: white;
}
.workbook-choices button:hover {
  background: #f1f5f1;
}
.workbook-choices strong {
  font-size: 20px;
  font-weight: 600;
  grid-column: 1;
}
.workbook-choices span:first-of-type {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  grid-column: 1;
}
.workbook-choices span:last-child {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  font-size: 21px;
  color: var(--green);
}
.sheet-tabs {
  display: flex;
  gap: 3px;
  border-bottom: 1px solid #aebcb2;
  overflow-x: auto;
  margin-bottom: 22px;
  padding-bottom: 0;
}
.sheet-tabs button {
  border-radius: 3px 3px 0 0;
  border: 1px solid transparent;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 13px;
  padding: 10px 16px;
}
.sheet-tabs button[aria-current] {
  border-color: #c3cec6;
  border-bottom-color: var(--green);
  background: #edf4ed;
  color: #184b2e;
}
.sheet {
  margin: 20px 0 25px;
  min-width: 0;
}
.sheet h2 {
  padding: 9px 12px;
  background: #eff3ef;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  overscroll-behavior-x: contain;
}
.sheet h2 + .table-wrap {
  border-top: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  white-space: nowrap;
}
th {
  font-size: 12px;
  text-align: left;
  font-weight: 600;
  background: #f5f6f4;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-top: 0;
}
td {
  padding: 10px 12px;
  border: 1px solid var(--line);
}
th:first-child,
td:first-child {
  border-left: 0;
}
th:last-child,
td:last-child {
  border-right: 0;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:nth-child(even) {
  background: #fafbf9;
}
tbody tr:hover {
  background: #f0f5ee;
}
td .number,
td strong.number {
  display: block;
  text-align: right;
}
td .record-link {
  font-size: 12px;
}
.record-link {
  border: 0;
  background: transparent;
  min-height: 32px;
  padding: 2px 5px;
  color: var(--green);
  text-decoration: underline;
  font-weight: 400;
}
.formula {
  font-size: 13px;
  background: #fafbf7;
  border-left: 3px solid #849f74;
  padding: 10px 12px;
  margin: 12px 0;
  line-height: 1.8;
}
.sheet-toolbar,
.toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.period-label,
.record-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}
.record-picker {
  max-width: 470px;
  margin: 12px 0;
}
.entry {
  border: 1px solid var(--line);
  margin: 14px 0;
  background: #fff;
}
.entry > summary {
  padding: 12px;
  color: var(--green);
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  font-size: 13px;
}
.entry[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #f5f7f3;
}
.entry > form,
.entry > p,
.entry > .table-wrap {
  margin: 14px;
}
.entry > .primary {
  margin: 10px;
}
.entry-note {
  font-size: 12px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field select {
  width: 100%;
}
input,
select,
textarea {
  background: #fff;
  border: 1px solid #acb8af;
  border-radius: 2px;
  color: var(--ink);
  padding: 8px 9px;
  max-width: 100%;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  min-height: 19px;
  accent-color: var(--green);
  vertical-align: middle;
}
textarea {
  width: 100%;
  min-height: 75px;
  resize: vertical;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 17px;
}
.record-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  align-items: center;
  margin: 14px 0;
}
.record-actions > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  border: 1px solid #cdd4ce;
  color: #475349;
  background: #f4f5f2;
  border-radius: 2px;
}
.badge.approved,
.badge.closed,
.badge.paid,
.badge.committed,
.badge.collected {
  background: #edf5e9;
  color: #29532e;
  border-color: #c0d3bb;
}
.badge.submitted,
.badge.partial,
.badge.sent {
  background: #fcf2d9;
  color: #73530d;
  border-color: #dfcfa6;
}
.badge.changed,
.badge.invalid {
  background: #fff0ec;
  color: #8e3023;
  border-color: #e5b6ab;
}
.badge.locked,
.badge.received {
  background: #eaf2fa;
  color: #245779;
  border-color: #bdd0de;
}
.notice {
  border-left: 3px solid #a08437;
  background: #fff9e9;
  padding: 10px 13px;
  font-size: 13px;
  margin: 14px 0;
  color: #685214;
}
.notice.green,
.notice.blue {
  background: #f0f5ef;
  color: #294f33;
  border-color: #527b55;
}
.notice.red {
  color: #8d2b21;
  background: #fff0ed;
  border-color: #b95342;
}
.empty {
  padding: 20px;
  border: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}
.error {
  color: #a12e20;
  font-size: 13px;
  white-space: pre-line;
  margin: 12px 0;
}
.search {
  min-width: 230px;
}
.section {
  margin: 18px 0;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 13px;
}
.section-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}
.card {
  border: 1px solid var(--line);
  padding: 18px;
  background: #fff;
  min-width: 0;
}
.card.section {
  border: 0;
  padding: 0;
}
.card.section h2 {
  margin: 0;
}
.share-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 10px;
  margin: 12px 0;
}
.share-row input {
  min-width: 0;
}
fieldset {
  border: 1px solid var(--line);
  padding: 14px;
  margin: 14px 0;
}
.permission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.permission-grid label {
  display: block;
  font-size: 12px;
  margin: 8px 0;
}
.permission-grid fieldset {
  margin: 0;
}
.tab-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 15px 0;
}
.detail-item {
  padding: 10px;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.detail-item dt {
  font-size: 12px;
  color: var(--muted);
}
.detail-item dd {
  margin: 3px 0 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
}
.metric .label {
  font-size: 12px;
}
.metric .value {
  font-family: Consolas, monospace;
  font-size: 21px;
  margin: 6px 0;
}
.metric .unit,
.metric .sub {
  font-size: 11px;
  color: var(--muted);
}
dialog {
  width: min(850px, 94vw);
  max-height: 90dvh;
  overflow: auto;
  background: white;
  border: 1px solid #9cac9e;
  border-radius: 4px;
  padding: 23px;
  color: var(--ink);
  box-shadow: 0 20px 60px #0004;
}
dialog::backdrop {
  background: #253c3066;
}
.dialog-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.dialog-title h2 {
  margin: 0;
  font-size: 21px;
}
.dialog-title button {
  border: 0;
  font-size: 22px;
  min-width: 40px;
}
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login .card {
  max-width: 410px;
  width: 100%;
  padding: 28px;
}
.login h1 {
  margin-bottom: 15px;
}
.login input {
  width: 100%;
  margin: 8px 0 15px;
}
.login button {
  width: 100%;
}
.eyebrow {
  color: var(--green);
  font-size: 12px;
  margin: 10px 0;
}
.skip {
  position: fixed;
  top: -100px;
  left: 12px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 8px;
}
#toast {
  display: none;
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 12px 18px;
  background: #254b32;
  color: white;
  z-index: 100;
  border-radius: 3px;
}
#toast.visible {
  display: block;
}
.tour-invitation {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin: 24px 0;
}
.tour-invitation p {
  max-width: 700px;
  font-size: 13px;
  margin: 8px 0;
}
.tour-panel {
  background: #f8fbf5;
  border: 2px solid #527646;
  padding: 18px;
  margin: 18px 0;
  scroll-margin-top: 100px;
}
.tour-panel h2 {
  font-size: 20px;
  margin-bottom: 10px;
}
.tour-panel p {
  max-width: 760px;
}
.tour-progress {
  font-weight: 600;
  color: var(--green);
  font-size: 12px;
}
.tour-safety,
.tour-hint {
  font-size: 12px;
  color: var(--muted);
}
.tour-buttons {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}
.tour-highlight {
  outline: 3px solid #698b55;
  outline-offset: 3px;
}
.tour-invitation {
  scroll-margin-top: 100px;
}
@media (max-width: 1000px) {
  .workbook-brand {
    display: none;
  }
  .workbook-header {
    padding: 10px 18px;
    gap: 8px;
  }
  main {
    margin: 15px 15px 0;
    padding: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .workbook-jump select {
    max-width: 200px;
  }
}
@media (max-width: 650px) {
  .workbook-header {
    position: static;
    display: flex;
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .workbook-header nav {
    width: 100%;
    justify-content: space-between;
    margin: 0;
  }
  .workbook-header nav button {
    flex: 1;
  }
  .workbook-jump {
    flex: 1;
  }
  .workbook-jump select {
    max-width: none;
    width: 100%;
  }
  main {
    margin: 0;
    border: 0;
    padding: 20px 14px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 17px;
  }
  h1 {
    font-size: 23px;
  }
  .workbook-choices {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .workbook-choices button {
    min-height: 90px;
    padding: 16px;
  }
  .workbook-choices strong {
    font-size: 18px;
  }
  .sheet-tabs button {
    padding: 9px 12px;
  }
  .form-grid,
  .detail-grid,
  .permission-grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .field.full {
    grid-column: auto;
  }
  .table-wrap {
    font-size: 12px;
  }
  td,
  th {
    padding: 9px;
  }
  .sheet-toolbar {
    gap: 10px;
  }
  .record-picker {
    max-width: 100%;
  }
  .record-picker select {
    max-width: 100%;
  }
  .search {
    min-width: 0;
    width: 100%;
  }
  .toolbar label {
    width: 100%;
  }
  .tour-panel,
  .tour-invitation {
    scroll-margin-top: 12px;
  }
  .share-row {
    grid-template-columns: 1.4fr 1fr auto;
    gap: 5px;
  }
  dialog {
    padding: 17px;
  }
  .home-intro {
    font-size: 14px;
  }
}
td.num {
  text-align: right;
  font-family: Consolas, ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

/* Keep the reverse ledger a simple, scrollable workbook on small screens. */
.reverse-workbook .entry {
  background: white;
}
.reverse-audit {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 38rem;
}
.reverse-workbook .badge.pending {
  color: #674600;
  background: #fff2c7;
}
.reverse-workbook .badge.completed {
  color: #185435;
  background: #e4f3e8;
}

[data-reverse-open] {
  cursor: pointer;
}
[data-reverse-open]:hover {
  background: #f4f7f3;
}
[data-reverse-open]:focus-visible {
  outline: 2px solid #235b3f;
  outline-offset: -2px;
}

.reverse-conversion-box {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #8ba793;
  border-left: 4px solid #235b3f;
  background: #f4f7f3;
}
.reverse-conversion-box > span {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.reverse-conversion-box output {
  display: block;
  color: #17251f;
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* Only Reverse Transfers uses the compact operations-screen visual language. */
.reverse-operations {
  --ink: #172b41;
  --line: #8496aa;
  --green: #214b75;
  --accent: #214b75;
  background: #fff;
  min-height: 100vh;
  font:
    12px/1.3 Arial,
    Helvetica,
    sans-serif;
  color: #172b41;
}
.reverse-operations .reverse-system-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #142d50;
  color: #fff;
  padding: 9px 12px;
  min-height: 40px;
}
.reverse-system-header strong {
  font-size: 20px;
  letter-spacing: 0.4px;
}
.reverse-operations .reverse-system-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #f4d557;
  border-bottom: 1px solid #a08d3b;
  padding: 0 5px;
  gap: 0 8px;
}
.reverse-system-nav nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.reverse-operations .reverse-system-nav .sheet-tabs {
  margin: 0;
  border: 0;
  overflow: visible;
}
.reverse-operations .reverse-system-nav button {
  background: transparent;
  border: 0;
  color: #172b41;
  font-size: 11px;
  padding: 5px 7px;
  min-height: 28px;
  font-weight: 400;
}
.reverse-operations .reverse-system-nav button[aria-current="page"] {
  background: #e3bc2c;
  font-weight: 700;
  text-decoration: underline;
}
.reverse-operations #main {
  max-width: none;
  margin: 0;
  padding: 0 8px 8px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.reverse-operations .reverse-section-title {
  font:
    bold 14px/1.3 Arial,
    sans-serif;
  background: #d8e3ed;
  border: 1px solid #94a8bc;
  margin: 6px 0 0;
  padding: 5px 7px;
}
.reverse-operations .reverse-safety {
  font-size: 11px;
  margin: 3px 0;
  color: #435264;
}
.reverse-operations button,
.reverse-operations input,
.reverse-operations select {
  min-height: 28px;
  border-radius: 1px;
  font-size: 12px;
  padding: 3px 6px;
}
.reverse-operations button {
  background: #e9edf1;
  border-color: #8b9aad;
  font-weight: 400;
  color: #173a61;
}
.reverse-operations button.primary {
  background: #315c85;
  color: #fff;
  border-color: #224668;
  min-width: 68px;
}
.reverse-operations input,
.reverse-operations select {
  background: #fff;
  color: #172b41;
  border: 1px solid #8a9bae;
  width: 100%;
}
.reverse-operations .field {
  gap: 2px;
  margin: 0;
  font-size: 11px;
}
.reverse-operations .field small {
  font-size: 10px;
  font-weight: 400;
}
.reverse-operations .reverse-tools {
  display: flex;
  gap: 12px;
  margin: 2px 0 4px;
}
.reverse-operations .reverse-tools button {
  border: 0;
  background: none;
  text-decoration: underline;
  padding: 2px 0;
  min-height: 24px;
}
.reverse-operations .entry {
  border-radius: 0;
  box-shadow: none;
  margin: 4px 0;
  border: 1px solid #96a5b4;
  background: #f3f5f7;
}
.reverse-operations #reverse-filters {
  padding: 5px;
}
.reverse-operations .reverse-filter-line {
  display: flex;
  align-items: end;
  gap: 6px;
  flex-wrap: wrap;
}
.reverse-filter-line .field {
  flex: 0 1 145px;
  min-width: 0;
}
.reverse-operations #reverse-filters details {
  margin-top: 4px;
}
.reverse-operations #reverse-filters summary {
  font-size: 11px;
  cursor: pointer;
}
.reverse-operations #reverse-filters .form-grid {
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 6px;
  margin-top: 4px;
}
.reverse-operations .entry > summary {
  min-height: 26px;
  background: #d8e3ed;
  color: #173a61;
  font-size: 12px;
  padding: 4px 6px;
  margin: 0;
  border-bottom: 1px solid #96a5b4;
}
.reverse-operations #reverse-add {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
  padding: 6px;
}
.reverse-operations #reverse-add .form-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(8, minmax(80px, 1fr));
  gap: 6px;
  align-items: end;
}
.reverse-operations .reverse-conversion-box {
  display: flex;
  gap: 12px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  margin: 0;
  border: 1px solid #7891ab;
  background: #dfeaf5;
}
.reverse-operations .reverse-conversion-box > span {
  margin: 0;
  font-size: 11px;
}
.reverse-operations .reverse-conversion-box output {
  font-size: 16px;
  color: #173a61;
}
.reverse-operations #reverse-add .form-actions {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 0;
}
.reverse-operations #reverse-add .error {
  grid-column: 1 / -1;
  margin: 0;
}
.reverse-operations #reverse-add .error:empty {
  display: none;
}
.reverse-operations .sheet {
  border-radius: 0;
  box-shadow: none;
  margin: 5px 0;
  border: 1px solid #7f94aa;
}
.reverse-operations .sheet > h2 {
  background: #d8e3ed;
  color: #173a61;
  font:
    bold 12px/1.3 Arial,
    sans-serif;
  margin: 0;
  padding: 4px 6px;
  border-bottom: 1px solid #7f94aa;
}
.reverse-operations .table-wrap {
  margin: 0;
  border: 0;
}
.reverse-operations table {
  border-collapse: collapse;
  width: 100%;
}
.reverse-operations th {
  background: #426487;
  color: #fff;
  font-weight: 700;
  border: 1px solid #71879f;
  padding: 5px 6px;
  font-size: 12px;
}
.reverse-operations td {
  border: 1px solid #8fa1b4;
  padding: 4px 6px;
  font-size: 12px;
}
.reverse-operations tbody tr {
  background: #fff;
}
.reverse-operations tbody tr:nth-child(even) {
  background: #e7eff8;
}
.reverse-operations [data-reverse-open]:hover,
.reverse-operations [data-reverse-open]:focus-within {
  background: #c9def3;
}
.reverse-operations .record-link {
  min-height: 24px;
  padding: 1px 0;
  border: 0;
  background: transparent;
  color: #143f70;
  text-decoration: underline;
}
.reverse-operations .sheet > .form-actions {
  background: #e1e4e8;
  border-top: 1px solid #8b9caf;
  padding: 4px 6px;
  margin: 0;
  gap: 8px;
}
.reverse-operations .empty {
  font-size: 12px;
  padding: 8px;
}
.reverse-operations .reverse-detail-panel {
  max-width: 960px;
  margin: 6px;
  border: 1px solid #8fa1b4;
  background: #fff;
}
.reverse-operations #reverse-detail-title {
  margin: 0;
  padding: 6px 8px;
  background: #426487;
  color: #fff;
  font:
    bold 13px/1.3 Arial,
    sans-serif;
  overflow-wrap: anywhere;
}
.reverse-operations #reverse-detail-title:focus {
  outline: 1px dotted #fff;
  outline-offset: -3px;
}
.reverse-operations .reverse-detail-cells {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
}
.reverse-operations .reverse-detail-cells > div {
  grid-column: span 3;
  padding: 7px 8px;
  border-top: 1px solid #8fa1b4;
  min-width: 0;
}
.reverse-operations .reverse-detail-cells > div:nth-child(odd) {
  border-right: 1px solid #8fa1b4;
}
.reverse-operations .reverse-detail-cells > div:nth-child(n + 5) {
  grid-column: span 2;
  border-right: 1px solid #8fa1b4;
}
.reverse-operations .reverse-detail-cells > div:last-child {
  border-right: 0;
  background: #e7eff8;
  font-weight: bold;
}
.reverse-operations .reverse-detail-cells dt {
  color: #435264;
  font-size: 11px;
  font-weight: bold;
  margin: 0 0 3px;
}
.reverse-operations .reverse-detail-cells dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.reverse-operations #reverse-back {
  margin: 4px 0;
}
.reverse-operations :focus-visible {
  outline: 2px solid #075da8;
  outline-offset: 2px;
}
@media (max-width: 1050px) {
  .reverse-operations #reverse-add .form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .reverse-operations .reverse-system-header {
    padding: 8px;
    align-items: start;
  }
  .reverse-system-header strong {
    font-size: 17px;
  }
  .reverse-system-header span {
    font-size: 10px;
  }
  .reverse-operations #main {
    padding: 0 5px 5px;
  }
  .reverse-operations .reverse-filter-line {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reverse-operations #reverse-add .form-grid,
  .reverse-operations #reverse-filters .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reverse-operations table {
    min-width: 900px;
  }
  .reverse-operations .reverse-conversion-box {
    flex-wrap: wrap;
    gap: 2px 8px;
  }
  .reverse-operations .reverse-detail-cells {
    grid-template-columns: minmax(0, 1fr);
  }
  .reverse-operations .reverse-detail-cells > div:nth-child(n) {
    grid-column: auto;
    border-right: 0;
  }
}
@media (max-width: 380px) {
  .reverse-operations #reverse-add .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Reverse-only correction and immutable history controls. */
.reverse-operations .reverse-detail-cells > div:nth-child(7) {
  background: #e7eff8;
  font-weight: bold;
  border-right: 0;
}
.reverse-operations .reverse-detail-cells > div:nth-child(8) {
  grid-column: 1 / -1;
  background: #fff;
  font-weight: normal;
}
.reverse-operations .reverse-change-form {
  padding: 8px;
  display: grid;
  gap: 8px;
}
.reverse-operations .reverse-change-form .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.reverse-operations .reverse-change-form > button {
  justify-self: start;
}
.reverse-operations .reverse-audit-order {
  font-size: 11px;
  margin: 5px 8px;
}
.reverse-operations .reverse-audit-events > details {
  border-top: 1px solid #8fa1b4;
  padding: 6px 8px;
}
.reverse-operations .reverse-audit-events summary {
  cursor: pointer;
}
.reverse-operations .reverse-audit-events dl {
  margin: 6px 0;
}
.reverse-operations .reverse-audit-events dd {
  margin: 2px 0 6px;
  overflow-wrap: anywhere;
}
.reverse-operations .reverse-audit-events pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
}
@media (max-width: 600px) {
  .reverse-operations .reverse-change-form .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.reverse-operations .reverse-change-form .error:empty {
  display: none;
}

/* Black Coffee only: reuse the existing workbook layout and controls. */
.bc-workbook .bc-filters {
  margin: 10px 0;
}
.bc-workbook #bc-entry,
.bc-workbook #bc-import {
  padding: 10px;
}
.bc-workbook .form-grid {
  gap: 8px;
}
.bc-workbook .bc-amount {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border: 1px solid #8b9c93;
  padding: 8px;
  min-width: 0;
}
.bc-workbook .bc-amount output {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.bc-workbook .error:empty {
  display: none;
}
.bc-workbook .bc-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.bc-workbook .bc-detail > div {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.bc-workbook .bc-detail dt {
  font-weight: bold;
  font-size: 12px;
}
.bc-workbook .bc-detail dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.bc-workbook .bc-audit > details {
  border-top: 1px solid var(--line);
  padding: 8px;
}
.bc-workbook .bc-audit pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.bc-workbook tr[data-bc-open] {
  cursor: pointer;
}
.bc-workbook tr[data-bc-open]:focus-visible {
  outline: 2px solid #235b3f;
  outline-offset: -2px;
}
.bc-workbook .record-link {
  background: transparent;
  text-decoration: underline;
}
.bc-workbook .bc-difference {
  padding: 10px;
  font-weight: bold;
  background: #fff2c7;
}
.bc-workbook .bc-balanced {
  color: #185435;
  background: #e4f3e8;
}
.bc-workbook .bc-missing {
  color: #8b241e;
  background: #fbe9e6;
}
@media (max-width: 600px) {
  .bc-workbook .bc-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .bc-workbook .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Collector worksheets reuse the existing workbook palette and table styles. */
.collector-workspace .cm-output {
  border: 1px solid #8b9c93;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.collector-workspace output {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.collector-workspace .cm-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.collector-workspace .cm-detail > div {
  padding: 8px;
  border: 1px solid #c6cec8;
}
.collector-workspace dt {
  font-weight: 700;
}
.collector-workspace dd {
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.collector-workspace pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.collector-workspace select[multiple] {
  min-height: 130px;
}
.collector-workspace .error:empty {
  display: none;
}
@media (max-width: 520px) {
  .collector-workspace .cm-detail {
    grid-template-columns: 1fr;
  }
}
/* Uganda monthly snapshots use the existing workbook presentation. */
.ug-workspace pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ug-workspace .cm-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ug-workspace .cm-detail > div {
  padding: 8px;
  border: 1px solid #c6cec8;
}
.ug-workspace dd {
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.ug-workspace dt {
  font-weight: 700;
}
.ug-workspace .cm-output {
  border: 1px solid #8b9c93;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ug-workspace output {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.ug-workspace select[multiple] {
  min-height: 140px;
}
.ug-workspace .error:empty {
  display: none;
}
@media (max-width: 520px) {
  .ug-workspace .cm-detail {
    grid-template-columns: 1fr;
  }
}
/* Six-line Uganda summary: values stay visible on a phone. */
#us-summary {
  width: 100%;
  table-layout: fixed;
}
#us-summary th {
  width: 58%;
  white-space: normal;
  text-align: left;
}
#us-summary td {
  text-align: right;
  overflow-wrap: anywhere;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}
.ug-workspace nav[aria-label="Uganda transaction pages"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
}
/* Salama only: independent entry boxes and a clear profit total. */
.ug-workspace .us-period {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  margin: 20px 0;
}
.ug-workspace .us-period label {
  min-width: 155px;
}
.ug-workspace .us-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 20px;
}
.ug-workspace .us-categories button {
  font-size: 17px;
  padding: 16px 10px;
}
.ug-workspace .us-categories [aria-pressed="true"] {
  background: #17251f;
  color: white;
}
.ug-workspace .us-profit-box {
  background: #17251f;
  color: white;
  padding: 24px;
  margin: 18px 0;
  display: grid;
  gap: 8px;
}
.ug-workspace .us-profit-box strong {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ug-workspace .us-entry-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  margin: 20px 0;
}
.ug-workspace .us-entry-grid label {
  grid-column: span 2;
  font-size: 17px;
  font-weight: 600;
}
.ug-workspace .us-entry-grid label:nth-child(-n + 2) {
  grid-column: span 3;
}
.ug-workspace .us-entry-grid input {
  width: 100%;
  font-size: 21px;
  padding: 14px;
  margin-top: 9px;
  min-height: 54px;
}
.ug-workspace #us-entry .primary {
  font-size: 18px;
  min-width: 150px;
  padding: 14px 24px;
}
.ug-workspace #us-summary th,
.ug-workspace #us-summary td {
  font-size: 16px;
  padding: 16px 12px;
}
.ug-workspace .us-calc-status:empty {
  display: none;
}
@media (max-width: 520px) {
  .ug-workspace .us-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .ug-workspace .us-entry-grid {
    grid-template-columns: 1fr;
  }
  .ug-workspace .us-entry-grid label,
  .ug-workspace .us-entry-grid label:nth-child(-n + 2) {
    grid-column: auto;
  }
  .ug-workspace .us-period label {
    flex: 1 1 100%;
  }
  .ug-workspace #us-summary th,
  .ug-workspace #us-summary td {
    padding: 14px 8px;
  }
}
/* Financial closing: scoped to the Uganda workbook. */
.ug-workspace .us-summary-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.ug-workspace #us-summary tr[data-us-drill] {
  cursor: pointer;
}
.ug-workspace #us-summary tr:focus-visible {
  outline: 3px solid #286842;
  outline-offset: -3px;
}
.ug-workspace .us-report-header {
  margin: 12px 0 24px;
}
.ug-workspace .us-report-header .form-actions {
  margin-top: 12px;
  gap: 20px;
}
.ug-workspace .us-period-caption {
  font-weight: 600;
  font-size: 18px;
}
.ug-workspace .us-reconciliation {
  margin: 24px 0;
}
.ug-workspace .us-reconciliation p {
  overflow-wrap: anywhere;
}
/* Salama worksheet only — display changes, no accounting changes. */
.ug-workspace.us-excel {
  background: #000;
  color: #fff;
  padding: 0;
  font-family: Calibri, Arial, sans-serif;
  --sheet-cyan: #55e4e8;
  --sheet-yellow: #fff800;
  --sheet-olive: #d0cd00;
}
.us-excel *,
.us-excel .sheet {
  border-radius: 0;
  box-shadow: none;
}
.us-excel .sheet {
  margin: 0;
  padding: 0;
  background: var(--sheet-yellow);
  color: #000;
  border: 1px solid #222;
}
.us-excel .us-workbook-toolbar {
  background: #efefef;
  color: #000;
  padding: 8px;
  border: 1px solid #333;
}
.us-excel .us-report-header {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.us-excel .us-report-header h2 {
  font-size: 20px;
  margin: 0;
}
.us-excel .us-period-caption {
  font-size: 15px;
  margin: 0;
}
.us-excel .us-report-header small {
  font-size: 11px;
}
.us-excel .us-report-header .form-actions {
  margin: 0;
  gap: 12px;
}
.us-excel .us-period {
  margin: 8px 0 0;
  gap: 8px;
}
.us-excel .us-period label {
  min-width: 0;
  flex: 0 1 auto;
  font-size: 13px;
}
.us-excel input,
.us-excel select {
  color: #000;
  background: #fff;
  border: 1px solid #333;
  min-height: 36px;
  padding: 5px;
}
.us-excel button {
  min-height: 36px;
  padding: 5px 10px;
}
.us-excel a {
  color: inherit;
  text-decoration: underline;
}
.us-excel > details {
  padding: 8px;
  background: #efefef;
  color: #000;
}
.us-excel > p {
  padding: 0 8px;
}
.us-excel > .error:empty {
  display: none;
}
.us-excel .error:not(:empty) {
  background: #fff;
  color: #a00000;
  padding: 6px;
}
.us-excel .us-black-band {
  height: 100px;
  background: #000;
}
.us-excel .sheet-toolbar {
  background: #eee;
  color: #000;
  margin: 0;
  padding: 6px;
  gap: 8px;
}
.us-excel .sheet-toolbar label {
  font-size: 13px;
}
.us-excel .table-wrap {
  max-width: 100%;
  border: 0;
  margin: 0;
}
.us-excel .us-grid {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse;
  color: #000;
  background: var(--sheet-yellow);
}
.us-excel .us-grid col:first-child {
  width: 22%;
}
.us-excel .us-grid th,
.us-excel .us-grid td {
  border: 1px solid #242424;
  text-align: center;
  background: var(--sheet-yellow);
  color: #000;
  padding: 5px 6px;
  height: 32px;
  white-space: normal;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.us-excel .us-grid .us-date {
  background: var(--sheet-cyan);
  font-weight: bold;
  position: sticky;
  left: 0;
  z-index: 1;
}
.us-excel .us-grid .us-group {
  background: var(--sheet-olive);
  text-transform: uppercase;
}
.us-excel .us-grid .record-link {
  background: transparent;
  color: #000;
  border: 0;
  padding: 0;
  min-height: 28px;
  font-weight: bold;
}
.us-excel .us-grid small {
  display: block;
  font-weight: normal;
  font-size: 11px;
  line-height: 1.2;
}
.us-excel .us-grid .us-empty td {
  height: 30px;
}
.us-excel .us-sheet-tabs {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  overflow-x: auto;
  max-width: 100%;
  background: #111;
  border-top: 4px solid #444;
  padding: 4px 4px 8px;
  gap: 3px;
}
.us-excel .us-sheet-tabs button {
  flex: 0 0 auto;
  color: #000;
  font-size: 13px;
  font-weight: bold;
  border: 2px solid transparent;
  min-height: 42px;
}
.us-excel [data-us-sheet="Collections"] {
  background: #c4edb6;
}
.us-excel [data-us-sheet="Cancellations"] {
  background: #28ec38;
}
.us-excel [data-us-sheet="commission"] {
  background: #ffb839;
}
.us-excel [data-us-sheet="TT"] {
  background: #f5c6d6;
}
.us-excel [data-us-sheet="Reversals"] {
  background: #ffcc28;
}
.us-excel [data-us-sheet="summary"] {
  background: #10254c;
  color: #fff !important;
}
.us-excel [data-us-sheet="graphs"] {
  background: #c60000;
  color: #fff !important;
}
.us-excel .us-sheet-tabs [aria-pressed="true"] {
  border: 2px solid #fff;
  box-shadow: inset 0 -4px #000;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.us-excel :is(button, a, input, select, tr, [tabindex]):focus-visible {
  outline: 3px solid #6c17ad;
  outline-offset: -3px;
}
.us-excel .us-sheet-tabs button:focus-visible {
  outline-color: #fff;
  outline-offset: 0;
}
.us-excel .us-entry-section h2 {
  background: var(--sheet-olive);
  font-size: 16px;
  margin: 0;
  padding: 6px;
}
.us-excel .us-entry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
}
.us-excel .us-entry-grid label,
.us-excel .us-entry-grid label:nth-child(-n + 2) {
  flex: 1 1 145px;
  border: 1px solid #333;
  padding: 4px;
  font-size: 14px;
  min-width: 0;
}
.us-excel .us-entry-grid label:first-child {
  background: var(--sheet-cyan);
}
.us-excel .us-entry-grid input {
  background: transparent;
  margin: 3px 0 0;
  padding: 5px;
  min-height: 38px;
  font-size: 16px;
  text-align: center;
}
.us-excel #us-entry .primary {
  min-width: 100px;
  padding: 6px 16px;
  font-size: 16px;
  background: #111;
  color: #fff;
}
.us-excel #us-entry .form-actions {
  margin: 4px;
}
.us-excel #us-summary {
  border-collapse: collapse;
  min-width: 0;
}
.us-excel #us-summary th,
.us-excel #us-summary td {
  border: 1px solid #222;
  background: var(--sheet-yellow);
  color: #000;
  padding: 10px;
  font-size: 18px;
}
.us-excel #us-summary th {
  background: var(--sheet-cyan);
}
.us-excel #us-summary tr:last-child th,
.us-excel #us-summary tr:last-child td {
  background: var(--sheet-olive);
  font-weight: bold;
}
.us-excel .us-profit-box {
  background: var(--sheet-yellow);
  color: #000;
  margin: 0;
  border: 1px solid #222;
  padding: 14px;
  text-align: center;
}
.us-excel .us-profit-box strong {
  font-size: clamp(28px, 4vw, 42px);
}
.us-excel .us-reconciliation {
  margin: 0;
  padding: 8px;
  background: #eee;
  color: #000;
}
.us-excel .us-support {
  width: 100%;
  border-collapse: collapse;
  background: var(--sheet-yellow);
  color: #000;
}
.us-excel .us-support th,
.us-excel .us-support td {
  border: 1px solid #222;
  padding: 8px;
  white-space: normal;
}
.us-excel .us-support thead th {
  background: var(--sheet-olive);
}
.us-excel .us-support tbody th {
  background: var(--sheet-cyan);
}
.us-excel nav[aria-label="Uganda transaction pages"] {
  padding: 4px;
  margin: 0;
  background: #eee;
  color: #000;
}
.us-excel .cm-detail {
  padding: 8px;
}
.us-excel pre {
  color: #000;
  background: #fff;
  max-width: 100%;
  overflow: auto;
}
@media (max-width: 520px) {
  .us-excel .us-period label {
    flex: 1 1 120px;
  }
  .us-excel .us-black-band {
    height: 72px;
  }
  .us-excel .us-report-header h2 {
    font-size: 18px;
  }
  .us-excel .us-grid {
    min-width: 700px;
  }
  .us-excel .us-entry-grid {
    flex-wrap: nowrap;
    min-width: 760px;
  }
  .us-excel .us-entry-section {
    overflow-x: auto;
  }
  .us-excel #us-summary th,
  .us-excel #us-summary td {
    font-size: 16px;
    padding: 8px;
  }
}
/* Direct entry uses the worksheet cells themselves. */
.us-excel .us-grid .us-cell {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #000;
  text-align: center;
  font: inherit;
  padding: 4px 0;
  min-height: 30px;
  cursor: text;
}
.us-excel .us-grid .us-cell:focus {
  outline: 2px solid #57139c;
  outline-offset: 0;
  background: inherit;
}
.us-excel .us-grid .us-cell[readonly] {
  cursor: text;
}
.us-excel .us-cell-details {
  font-size: 11px;
  text-align: left;
  overflow-wrap: anywhere;
}
.us-excel .us-cell-details summary {
  font-size: 11px;
  cursor: pointer;
}
.us-excel .us-cell-details label {
  display: block;
  font-size: 12px;
}
.us-excel .us-cell-details input {
  width: 100%;
  min-width: 0;
  font-size: 12px;
}
.us-excel .us-cell-status {
  white-space: normal;
  color: #000;
}
.us-excel .us-cell-status:empty {
  display: none;
}
.us-excel #us-save-cells {
  background: #111;
  color: #fff;
  margin-top: 6px;
}
.us-excel #us-save-status {
  font-size: 13px;
  margin-left: 8px;
}
/* October 26 supporting ledgers use the same worksheet cells. */
.us-excel .sr-grid {width:100%;border-collapse:collapse;table-layout:fixed;min-width:620px;color:#000;background:#fff800;}
.us-excel .sr-grid th,.us-excel .sr-grid td {border:1px solid #222;text-align:center;padding:4px;}
.us-excel .sr-grid th:first-child,.us-excel .sr-grid td:first-child {background:#55e4e8;}
.us-excel .sr-grid input {width:100%;min-width:0;background:transparent;color:#000;border:0;text-align:center;}
.us-excel #sr-entry,.us-excel #sr-period,.us-excel #sr-find {background:#fff;color:#111;padding:8px;}
.us-excel #sr-detail pre,.us-excel details pre {max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;}
.us-excel #sr-entry label,.us-excel #sr-period label {display:inline-flex;gap:8px;margin:4px;}
.us-excel [aria-label="Period history"] table {color:#111;background:#fff;}
.us-excel [aria-label="Period history"] th {color:#111;background:#55e4e8;}
.us-excel .sr-grid th,.us-excel .sr-grid td {background:#fff800;color:#000;}
.us-excel .sr-grid th:first-child,.us-excel .sr-grid td:first-child {background:#55e4e8;width:20%;}
.us-excel #sr-detail button {background:#fff;color:#111;}

/* Salama presentation only. Accounting and other module styles are unchanged. */
.ug-workspace.us-operational {
  --sheet-yellow: #fff;
  --sheet-cyan: #f0f5f4;
  --sheet-olive: #e2ece9;
  background: #fff;
  color: #223632;
  font-family: Arial, sans-serif;
  border: 1px solid #c7d2ce;
}
.us-operational .us-module-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 8px 12px;
  background: #f5f7f6;
  border-bottom: 1px solid #d5ddda;
  font-size: 12px;
}
.us-operational .us-module-links span {
  color: #4c615b;
}
.us-operational .us-module-links a {
  color: #284d43;
}
.us-operational .us-sheet-tabs {
  position: sticky;
  top: 0;
  bottom: auto;
  z-index: 5;
  gap: 0;
  padding: 0;
  background: #f5f7f6;
  border: 0;
  border-bottom: 1px solid #bdcdc6;
}
.us-operational .us-sheet-tabs button {
  background: #f5f7f6;
  color: #29443c !important;
  min-height: 44px;
  font-size: 13px;
  font-weight: normal;
  border: 0;
  border-right: 1px solid #d5ddda;
  padding: 8px 14px;
  box-shadow: none;
}
.us-operational .us-sheet-tabs [aria-pressed="true"] {
  background: #205c4c;
  color: #fff !important;
  box-shadow: none;
  border: 0;
  border-right: 1px solid #205c4c;
  text-decoration: none;
  font-weight: bold;
}
.us-operational .us-sheet-tabs button:focus-visible {
  outline: 3px solid #955600;
  outline-offset: -3px;
}
.us-operational .us-workbook-toolbar {
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #d5ddda;
}
.us-operational .us-report-header {
  width: 100%;
  gap: 8px 18px;
}
.us-operational .us-report-header h2 {
  font-size: 20px;
}
.us-operational .us-report-header .us-period-caption {
  font-size: 13px;
  color: #425c53;
}
.us-operational .us-report-header small {
  display: none;
}
.us-operational .us-report-header .form-actions {
  margin-left: auto;
  gap: 14px;
  padding: 0;
  font-size: 12px;
}
.us-operational #us-period {
  margin: 0;
  padding: 0;
  gap: 8px;
  align-items: end;
}
.us-operational #us-period label {
  font-size: 12px;
}
.us-operational button,
.us-operational input,
.us-operational select {
  min-height: 36px;
  font-size: 13px;
}
.us-operational button {
  background: #f5f7f6;
  color: #244b3d;
  border: 1px solid #a7b9b0;
}
.us-operational #us-save-cells {
  background: #205c4c;
  color: #fff;
  align-self: end;
  border-color: #205c4c;
}
.us-operational .us-black-band {
  display: none;
}
.us-operational .sheet-toolbar {
  background: #f5f7f6;
  padding: 8px 12px;
  border-bottom: 1px solid #d5ddda;
}
.us-operational .us-grid-wrap {
  max-height: 62vh;
  overflow: auto;
}
.us-operational .us-grid,
.us-operational .sr-grid {
  min-width: 640px;
}
.us-operational .us-grid th,
.us-operational .us-grid td,
.us-operational .sr-grid th,
.us-operational .sr-grid td {
  border: 1px solid #ccd6d1;
  background: #fff;
  color: #223632;
  font-size: 14px;
  padding: 4px 8px;
  height: 34px;
}
.us-operational .us-grid thead th,
.us-operational .sr-grid th {
  background: #e2ece9;
}
.us-operational .us-grid .us-date,
.us-operational .sr-grid td:first-child {
  background: #f0f5f4;
  font-weight: normal;
}
.us-operational .us-grid .us-group {
  background: #e2ece9;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.us-operational .us-grid input,
.us-operational .sr-grid input {
  color: #223632;
  background: transparent;
}
.us-operational .us-grid tfoot th,
.us-operational .us-grid tfoot td {
  position: sticky;
  bottom: 0;
  background: #e2ece9;
  font-weight: bold;
  z-index: 2;
}
.us-operational .us-grid tbody tr:focus-within td {
  background: #f5f7e9;
}
.us-operational .sheet {
  background: #fff;
  border: 0;
}
.us-operational #us-summary-title {
  font-size: 14px;
  padding: 10px 12px;
  margin: 0;
  background: #f5f7f6;
}
.us-operational #us-summary {
  width: 100%;
  border-collapse: collapse;
}
.us-operational #us-summary th,
.us-operational #us-summary td {
  background: #fff;
  color: #223632;
  border: 0;
  border-bottom: 1px solid #d5ddda;
  padding: 14px 16px;
  font-size: 16px;
}
.us-operational #us-summary td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.us-operational #us-summary tr:last-child th,
.us-operational #us-summary tr:last-child td {
  background: #e2ece9;
  font-size: 20px;
  font-weight: bold;
  border-top: 2px solid #205c4c;
}
.us-operational .us-summary-link {
  color: #244b3d;
  background: transparent;
  border: 0;
}
.us-operational .us-profit-box {
  display: none;
}
.us-operational .us-secondary,
.us-operational > details {
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid #d5ddda;
  background: #f5f7f6;
  color: #223632;
}
.us-operational .us-secondary summary {
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.us-operational > p,
.us-operational > h2,
.us-operational > nav:not(.us-sheet-tabs):not(.us-module-links) {
  margin: 0;
  padding: 8px 12px;
}
.us-operational > h2 {
  font-size: 15px;
  background: #f5f7f6;
}
.us-operational .error:empty {
  display: none;
}
.us-operational .us-reconciliation {
  background: #fff;
  color: #223632;
  padding: 8px;
  border: 0;
}
.us-operational #sr-entry,
.us-operational #sr-period,
.us-operational #sr-find {
  background: #f5f7f6;
  color: #223632;
  padding: 8px 12px;
}
.us-operational #sr-detail {
  padding: 8px 12px;
}
.us-operational #sr-status:empty,
.us-operational .sr-report-title {
  display: none;
}
.us-operational #sr-status {
  padding: 8px 12px;
}
.us-operational input:focus-visible,
.us-operational button:focus-visible,
.us-operational [tabindex]:focus-visible {
  outline: 3px solid #955600;
  outline-offset: -3px;
}
@media (max-width: 600px) {
  .us-operational .us-module-links {
    font-size: 11px;
    gap: 8px 12px;
  }
  .us-operational .us-report-header .form-actions {
    margin-left: 0;
    width: 100%;
  }
  .us-operational .us-sheet-tabs button {
    padding: 8px 12px;
  }
  .us-operational .us-report-header h2 {
    font-size: 18px;
  }
  .us-operational #us-summary th,
  .us-operational #us-summary td {
    font-size: 14px;
    padding: 12px 8px;
  }
  .us-operational #us-summary tr:last-child th,
  .us-operational #us-summary tr:last-child td {
    font-size: 17px;
  }
  .us-operational #sr-period label {
    display: flex;
    flex-wrap: wrap;
  }
}
.us-operational [data-us-add-cell] {
  align-self: end;
}
.us-operational #us-history-filters .field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.us-operational #us-history-filters .field input {
  max-width: 210px;
}
.us-operational .us-grid .us-cell {
  min-height: 30px;
  height: 30px;
}
@media (max-width: 600px) {
  .us-operational #us-period:has([name="month"]),
  .us-operational #us-period:has([name="day"]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
    width: 100%;
  }
  .us-operational #us-period > * {
    min-width: 0;
  }
  .us-operational #us-period input,
  .us-operational #us-period select {
    width: 100%;
    min-width: 0;
  }
  .us-operational #us-history-filters .field {
    flex: 1;
    min-width: 0;
  }
  .us-operational #us-history-filters .field input {
    min-width: 0;
    width: 100%;
  }
}
.sl-workspace #sl-entry table {
  width: 100%;
  min-width: 680px;
}
.sl-workspace #sl-entry input {
  width: 100%;
  min-width: 100px;
}
.sl-workspace #sl-entry label {
  font-size: 13px;
}
.sl-workspace table {
  width: 100%;
  border-collapse: collapse;
}
.sl-workspace th,
.sl-workspace td {
  border: 1px solid #bbc8c4;
  padding: 8px;
}
.sl-workspace .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sl-workspace .sl-totals {
  position: sticky;
  bottom: 0;
  background: #edf4f1;
  padding: 10px;
  font-weight: bold;
}
.sl-workspace input[readonly] {
  background: #edf1f0;
}
.sl-workspace pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Salama daily workspace: compact, aligned statistics and bounded ledger pages. */
.sl-workspace .sl-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #cbd3d8;
  margin: 10px 0 14px;
  gap: 0;
  background: #f8fafb;
}
.sl-workspace .sl-stats button {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  text-align: left;
  min-width: 0;
  border: 0;
  border-right: 1px solid #cbd3d8;
  border-radius: 0;
  padding: 10px 12px;
  background: transparent;
  color: #243942;
  box-shadow: none;
}
.sl-workspace .sl-stats button:last-child {
  border-right: 0;
  background: #edf3ef;
}
.sl-workspace .sl-stats span {
  font-size: 12px;
  line-height: 1.3;
}
.sl-workspace .sl-stats strong {
  font-size: clamp(14px, 1.45vw, 21px);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.sl-workspace h2 {
  margin: 10px 0;
  font-size: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.sl-workspace h2 small {
  font-size: 13px;
  font-weight: 400;
  color: #52616a;
}
.sl-workspace .us-period {
  margin: 8px 0;
  gap: 8px;
}
.sl-workspace p:empty {
  display: none;
}
.sl-workspace .form-actions {
  margin: 8px 0;
  gap: 16px;
}
.sl-workspace .sl-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
}
.sl-workspace .sl-totals {
  position: sticky;
  bottom: 0;
  background: #eef3f5;
  border-top: 1px solid #aab9c0;
  padding: 9px;
  margin: 0;
  z-index: 2;
  font-variant-numeric: tabular-nums;
}
.sl-workspace button:focus-visible,
.sl-workspace a:focus-visible,
.sl-workspace input:focus-visible {
  outline: 3px solid #21678c;
  outline-offset: 2px;
}
.sl-workspace #sl-history tbody tr {
  content-visibility: auto;
  contain-intrinsic-size: auto 40px;
}
.sl-skeleton {
  padding: 12px;
  max-width: 100%;
}
.sl-skeleton div {
  height: 36px;
  background: #edf1f3;
  margin: 8px 0;
  border-bottom: 1px solid #d6dee3;
}
@media (max-width: 700px) {
  .sl-workspace .sl-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sl-workspace .sl-stats button {
    border-bottom: 1px solid #cbd3d8;
  }
  .sl-workspace .sl-stats strong {
    font-size: 16px;
  }
  .sl-workspace .sl-pagination {
    justify-content: space-between;
    font-size: 12px;
  }
  .sl-workspace .sl-stats button:nth-child(2) {
    border-right: 0;
  }
}
.sl-workspace .sl-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}
.sl-workspace .sl-toolbar .us-period {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}
.sl-workspace .sl-toolbar label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sl-workspace #sl-entry label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  white-space: normal;
}
.sl-workspace #sl-entry table {
  table-layout: fixed;
}
.sl-workspace #sl-entry input {
  box-sizing: border-box;
  min-width: 0;
}
.sl-workspace #sl-entry button {
  margin: 8px 8px 4px 0;
}
.sl-workspace label:has(> #sl-search) {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.sl-workspace #sl-search {
  max-width: 100%;
  width: 240px;
}
.sl-workspace .table-wrap:has(> #sl-history) {
  max-height: 55vh;
  overflow: auto;
  overscroll-behavior: contain;
}
.sl-workspace #sl-history thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f5f3;
}

.sl-excel {
  background: #080808;
  color: white;
  padding: 20px;
  border-radius: 4px;
}
.sl-excel h2 {
  color: white;
}
.sl-currency-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.sl-excel table {
  width: 100%;
  table-layout: auto;
  color: #080808;
  border-collapse: collapse;
}
.sl-excel .sl-gbp,
.sl-excel .sl-gbp th,
.sl-excel .sl-gbp td {
  background: #75e5f3;
  color: #080808;
}
.sl-excel .sl-ugx,
.sl-excel .sl-ugx th,
.sl-excel .sl-ugx td {
  background: #bdebb5;
  color: #080808;
}
.sl-excel th,
.sl-excel td {
  border: 2px solid #080808;
  padding: 12px 8px;
  white-space: normal;
}
.sl-excel th {
  text-align: left;
}
.sl-excel td.num {
  white-space: nowrap;
}
.sl-excel th button {
  background: transparent;
  color: #080808;
  border: 0;
  text-align: left;
  padding: 0;
  white-space: normal;
}
.sl-profit-split {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 12px 0 24px;
  color: #080808;
}
.sl-profit-split > * {
  padding: 14px;
  background: #ffd54f;
  flex: 1;
  min-width: 180px;
}
.sl-profit-split span {
  background: #ffb74d;
}
.sl-month-controls {
  padding: 16px;
  background: #edf5f7;
  border: 1px solid #b7cbd2;
  margin: 12px 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
}
.sl-month-controls details {
  width: 100%;
}
.sl-month-controls form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.sl-beneficiary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 0;
  align-items: end;
  border-bottom: 1px solid #bacbd0;
}
.sl-distribution fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
.sl-distribution label {
  display: block;
}
.sl-chart {
  width: 100%;
  max-height: 440px;
  background: #f3f8f5;
}
.sl-workspace {
  min-width: 0;
}
@media (max-width: 900px) {
  .sl-currency-tables {
    grid-template-columns: 1fr;
  }
  .sl-excel {
    padding: 8px;
  }
  .sl-excel th,
  .sl-excel td {
    padding: 10px 5px;
    font-size: 12px;
  }
  .sl-month-controls {
    padding: 10px;
  }
  .sl-beneficiary > * {
    max-width: 100%;
  }
}

/* Workbook presentation only: scoped to Salama, after the operational styles. */
.ug-workspace.us-operational.sl-workspace {
  --ledger-body: #fff078;
  --ledger-head: #b9b52d;
  background: #080808;
  color: #f4f4f4;
  border: 1px solid #555;
  padding: 6px;
  font:
    13px/1.35 Arial,
    sans-serif;
}
.ug-workspace.sl-workspace[data-ledger="Cancellations"] {
  --ledger-body: #b8df8b;
  --ledger-head: #84b963;
}
.ug-workspace.sl-workspace[data-ledger="Bank Commission"] {
  --ledger-body: #e8c86c;
  --ledger-head: #b99532;
}
.ug-workspace.sl-workspace[data-ledger="TT"] {
  --ledger-body: #f5d7df;
  --ledger-head: #dbb2c0;
}
.ug-workspace.sl-workspace[data-ledger="Company Reverse"] {
  --ledger-body: #ffca65;
  --ledger-head: #e9a936;
}
.sl-workspace *,
.sl-workspace *::before,
.sl-workspace *::after {
  border-radius: 0 !important;
  box-shadow: none !important;
}
.sl-workspace > h2 {
  margin: 6px 0;
  padding: 5px 8px;
  background: var(--ledger-head);
  color: #111;
  font-size: 15px;
  font-weight: 700;
}
.sl-workspace > h2 small {
  color: #172020;
  font-size: 12px;
}
.sl-workspace > p {
  margin: 5px 2px;
  font-size: 12px;
}
.sl-workspace .us-module-links {
  background: #171b20;
  padding: 4px 8px;
  border: 0;
  font-size: 11px;
}
.sl-workspace .us-module-links a,
.sl-workspace .sl-tab-jump {
  color: #c2ecff;
}
.sl-workspace .sl-tab-jump {
  display: inline-block;
  font-size: 11px;
  margin: 3px 0;
}
.sl-workspace .sl-month-controls,
.sl-workspace .sl-toolbar {
  color: #111;
  background: #e2e5e7;
  border: 1px solid #899296;
  padding: 5px 7px;
  margin: 0;
  gap: 5px 14px;
}
.sl-workspace .sl-month-controls label,
.sl-workspace .sl-month-controls form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.sl-workspace .sl-month-controls details {
  width: auto;
  flex: 1 1 210px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.sl-workspace .sl-month-controls details[open] {
  flex-basis: 100%;
}
.sl-workspace .sl-month-controls details > p {
  font-size: 11px;
  margin: 5px 0;
}
.sl-workspace .sl-toolbar .us-period,
.sl-workspace .form-actions {
  margin: 0;
  gap: 7px;
}
.sl-workspace button,
.sl-workspace input,
.sl-workspace select {
  font: inherit;
  min-height: 30px;
  padding: 4px 7px;
}
.sl-workspace input,
.sl-workspace select {
  background: #fff;
  color: #111;
  border: 1px solid #647178;
}
.sl-workspace button {
  background: #e8edef;
  color: #111;
  border: 1px solid #65747c;
}
.sl-workspace button:disabled {
  color: #555;
}
.sl-workspace summary {
  cursor: pointer;
  font-weight: 700;
  padding: 4px 0;
}
.sl-workspace details {
  background: #20262b;
  color: #f4f4f4;
  border: 1px solid #59636a;
  padding: 4px 7px;
  margin: 4px 0;
}
.sl-workspace .sl-month-controls details {
  color: #111;
}
.sl-workspace .table-wrap {
  border: 0;
  margin: 0;
}
.sl-workspace #sl-entry {
  margin: 7px 0 4px;
}
.sl-workspace #sl-entry > label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  margin: 5px 8px 0 0;
  font-size: 12px;
}
.sl-workspace #sl-entry button {
  margin: 5px 5px 0 0;
}
.sl-workspace #sl-entry label {
  gap: 3px;
  font-weight: 700;
}
.sl-workspace #sl-entry input {
  width: 100%;
  font-weight: 400;
  background: #ffffffa8;
}
.sl-workspace #sl-entry input[readonly] {
  background: transparent;
  border-style: dashed;
  color: #222;
}
.sl-workspace #sl-entry td {
  padding: 5px;
}
.sl-workspace #sl-entry table,
.sl-workspace #sl-history {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.sl-workspace #sl-history th,
.sl-workspace #sl-history td,
.sl-workspace #sl-entry td {
  background: var(--ledger-body);
  color: #111;
  border: 1px solid #242424;
}
.sl-workspace #sl-history th {
  background: var(--ledger-head);
  font-weight: 700;
  padding: 5px 7px;
}
.sl-workspace #sl-history td {
  padding: 3px 7px;
  height: 30px;
  font-variant-numeric: tabular-nums;
}
.sl-workspace #sl-history [data-column="date"],
.sl-workspace #sl-entry [data-column="date"],
.sl-workspace[data-ledger="Company Reverse"]
  #sl-history
  [data-column="reference"],
.sl-workspace[data-ledger="Company Reverse"]
  #sl-entry
  [data-column="reference"] {
  background: #75e5ed;
}
.sl-workspace[data-ledger="Company Reverse"]
  #sl-history
  [data-column="remarks"],
.sl-workspace[data-ledger="Company Reverse"] #sl-entry [data-column="remarks"] {
  background: #c5e5b7;
}
.sl-workspace #sl-history button {
  background: transparent;
  border: 0;
  text-decoration: underline;
  min-height: 26px;
}
.sl-workspace #sl-history td.num {
  white-space: nowrap;
}
.sl-workspace #sl-entry table {
  min-width: 620px;
}
.sl-workspace[data-ledger="Company Reverse"] #sl-entry table {
  min-width: 940px;
}
.sl-workspace[data-ledger="Cancellations"] #sl-entry table {
  min-width: 840px;
}
.sl-workspace label:has(> #sl-search) {
  margin: 4px 0;
  font-size: 12px;
}
.sl-workspace #sl-search {
  width: 200px;
}
.sl-workspace .sl-pagination {
  margin: 4px 0;
  font-size: 12px;
  gap: 8px;
}
.sl-workspace .sl-totals {
  position: static;
  background: var(--ledger-head);
  color: #111;
  border: 1px solid #333;
  padding: 5px 7px;
  margin: 0;
  font-weight: 700;
}
.sl-workspace .sl-excel {
  padding: 10px 8px 16px;
  background: #080808;
}
.sl-workspace[data-ledger="Financial Summary"] > h2 {
  display: none;
}
.sl-workspace .sl-excel h2 {
  display: table;
  margin: 8px auto 14px;
  padding: 5px 24px;
  border: 1px solid white;
  background: #fff;
  color: #080808;
  font-size: 20px;
  font-weight: 700;
}
.sl-workspace .sl-excel > p {
  font-size: 11px;
  margin: 5px 0;
}
.sl-workspace .sl-profit-split {
  margin: 4px 0 16px;
  gap: 0;
}
.sl-workspace .sl-profit-split > * {
  padding: 7px 9px;
  min-width: 160px;
  border: 1px solid #111;
  font-weight: 700;
}
.sl-workspace .sl-currency-tables {
  gap: 24px;
}
.sl-workspace .sl-excel .sl-gbp th,
.sl-workspace .sl-excel .sl-gbp td {
  background: #b5e9ee;
  color: #111;
}
.sl-workspace .sl-excel .sl-ugx th,
.sl-workspace .sl-excel .sl-ugx td {
  background: #c5e5b7;
  color: #111;
}
.sl-workspace .sl-excel th,
.sl-workspace .sl-excel td {
  border: 1px solid #151515;
  padding: 5px 7px;
  height: 34px;
  font-size: 13px;
}
.sl-workspace .sl-excel th button {
  color: #111;
  font-weight: 700;
  min-height: 28px;
  padding: 0;
}
.sl-workspace .sl-excel td.sl-negative {
  color: #ac0000;
  font-weight: 700;
}
.sl-workspace .sl-distribution h2 {
  font-size: 16px;
}
.sl-workspace .sl-beneficiary {
  gap: 8px;
  padding: 5px 0;
}
.sl-workspace .sl-distribution p {
  margin: 6px 0;
}
.sl-workspace .sl-chart {
  max-height: 320px;
}
.sl-workspace #sl-tabs {
  position: sticky;
  top: auto;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: #171b20;
  padding: 5px 2px;
  border-top: 1px solid #a6b4bb;
  margin-top: 8px;
  z-index: 6;
  scroll-margin-bottom: 10px;
}
.sl-workspace #sl-tabs button {
  background: var(--tab-color);
  color: var(--tab-text, #111) !important;
  font-size: 11px;
  font-weight: 700;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #0a0a0a;
}
.sl-workspace #sl-tabs [data-sl-kind="Collections"] {
  --tab-color: #f5e62d;
}
.sl-workspace #sl-tabs [data-sl-kind="Cancellations"] {
  --tab-color: #8ac659;
}
.sl-workspace #sl-tabs [data-sl-kind="Bank Commission"] {
  --tab-color: #c7a342;
}
.sl-workspace #sl-tabs [data-sl-kind="TT"] {
  --tab-color: #f1cfda;
}
.sl-workspace #sl-tabs [data-sl-kind="Company Reverse"] {
  --tab-color: #ffba3e;
}
.sl-workspace #sl-tabs [data-sl-kind="Financial Summary"] {
  --tab-color: #172b65;
  --tab-text: white;
}
.sl-workspace #sl-tabs [data-sl-kind="Graphs"] {
  --tab-color: #b82028;
  --tab-text: white;
}
.sl-workspace #sl-tabs [data-sl-kind="Monthly Profit Distribution"] {
  --tab-color: #e5e7eb;
  margin-left: 6px;
}
.sl-workspace #sl-tabs [aria-pressed="true"] {
  outline: 2px solid #fff;
  outline-offset: -3px;
  text-decoration: underline;
}
.sl-workspace :is(button, input, select, a, summary, [tabindex]):focus-visible {
  outline: 3px solid #1870c1;
  outline-offset: 1px;
}
@media (max-width: 700px) {
  .sl-workspace .sl-excel {
    padding: 5px 0 10px;
  }
  .sl-workspace .sl-excel h2 {
    font-size: 17px;
    padding: 5px 14px;
  }
  .sl-workspace .sl-currency-tables {
    gap: 12px;
  }
  .sl-workspace .sl-excel td,
  .sl-workspace .sl-excel th {
    font-size: 11px;
    padding: 5px 4px;
  }
  .sl-workspace .sl-month-controls,
  .sl-workspace .sl-toolbar {
    gap: 5px;
    padding: 5px;
  }
  .sl-workspace button,
  .sl-workspace input,
  .sl-workspace select {
    min-height: 36px;
  }
  .sl-workspace #sl-tabs {
    position: static;
  }
  .sl-workspace #sl-tabs button {
    min-height: 40px;
    font-size: 10px;
  }
  .sl-workspace .sl-pagination {
    flex-wrap: wrap;
  }
  .sl-workspace #sl-entry > label {
    display: flex;
    flex-wrap: wrap;
  }
  .sl-workspace #sl-entry > label select {
    max-width: 100%;
  }
}

.sl-workspace .sl-chart {
  color: #111;
}
.sl-workspace .sl-chart text {
  fill: #111;
}
.sl-workspace [aria-label="Chart source data"] table {
  color: #111;
  background: #eef3ec;
}
.sl-workspace [aria-label="Chart source data"] th,
.sl-workspace [aria-label="Chart source data"] td {
  color: #111;
  border: 1px solid #59636a;
  padding: 5px 7px;
}

.sl-row-actions {
  white-space: nowrap;
}
.sl-row-actions button + button {
  margin-left: 4px;
}
@media (max-width: 600px) {
  .sl-row-actions button {
    min-height: 44px;
    min-width: 44px;
  }
}
