@font-face {
  font-family: InterparksUI;
  src: local("Aptos"), local("Segoe UI");
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: #f4f7fa;
  color: #173342;
  font:
    14px InterparksUI,
    "Segoe UI",
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary {
  outline-offset: 3px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
/* Content links use color, pointer and visible keyboard focus, without underlines. */
#content a[href]:not(.button), dialog a[href]:not(.button), #content .text-button, dialog .text-button {
  color: #075a91;
  text-decoration: none;
  cursor: pointer;
}
#content a[href]:not(.button):hover, dialog a[href]:not(.button):hover, #content .text-button:hover, dialog .text-button:hover { color: #063d66; }
#content a[href]:focus-visible, dialog a[href]:focus-visible, .text-button:focus-visible { outline: 2px solid #1677af; outline-offset: 3px; border-radius: 2px; }
[hidden] {
  display: none !important;
}
.startup-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.startup-card {
  max-width: 460px;
  text-align: center;
  padding: 32px;
}
.startup-card img { width: 250px; max-width: 100%; height: auto; }
.startup-card h1 { font-size: 21px; margin: 28px 0 12px; }
.startup-card p { color: #607d8b; line-height: 1.6; margin-bottom: 24px; }
.application {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #092332;
  color: #c3d0d8;
  padding: 27px 15px 15px;
}
.brand,
.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 2px;
  padding: 0 9px;
}
.brand small,
.auth-brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.6px;
  margin-top: 4px;
  color: #8faab8;
}
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: #d9f5e9;
  color: #135d50;
  font-size: 25px;
  letter-spacing: -5px;
  padding-right: 5px;
  font-weight: 850;
}
#navigation {
  overflow: auto;
  scrollbar-width: thin;
  flex: 1;
  margin: 0 -5px;
  padding: 0 5px;
}
.nav-section {
  margin: 17px 11px 9px;
  font-size: 10px;
  color: #7293a5;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.nav-link,
.nav-group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 35px;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: 2px;
  cursor: pointer;
}
.nav-link:hover,
.nav-group summary:hover {
  background: #153443;
  color: white;
}
.nav-link.active {
  background: #184e4e;
  color: #e8fff4;
  box-shadow: inset 3px 0 #6dd6ae;
}
.nav-icon {
  display: inline-block;
  width: 17px;
  font-size: 15px;
  color: #8cabb9;
}
.nav-group summary {
  list-style: none;
}
.nav-group summary::after {
  content: "⌄";
  margin-left: auto;
  color: #7c9aaa;
}
.nav-group .nav-link {
  padding-left: 40px;
  font-size: 11.5px;
  min-height: 29px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.nav-group[open] > summary {
  color: white;
}
.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 15px 10px 0;
  border-top: 1px solid #25414f;
  font-size: 12px;
}
.sidebar-bottom small {
  display: block;
  font-size: 10px;
  color: #7d9cac;
  margin-top: 3px;
}
.sidebar-bottom a {
  margin-left: auto;
  font-size: 18px;
  color: #91abb8;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: #87939b;
  border-radius: 100%;
  display: inline-block;
}
.status-dot.online {
  background: #4cca9c;
  box-shadow: 0 0 0 4px #4cca9c12;
}
.main-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: white;
  border-bottom: 1px solid #e2e9ee;
  gap: 15px;
  position: sticky;
  top: 0;
  z-index: 10;
  font-size: 12px;
  color: #788b99;
}
.topbar strong {
  font-weight: 550;
  color: #274556;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.local-badge {
  font-size: 9px;
  letter-spacing: 1px;
  border: 1px solid #d8e7e2;
  border-radius: 4px;
  background: #f2faf7;
  color: #598071;
  padding: 4px 7px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: none;
  font-size: 12px;
  color: #3b5360;
}
.profile > span:first-child {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e5eef0;
  color: #446f73;
  font-weight: 650;
}
.icon-button {
  border: 0;
  background: transparent;
  padding: 8px;
  color: #7b929f;
  border-radius: 6px;
}
.icon-button:hover {
  background: #e8f0f4;
  color: #174956;
}
#toggleMenu {
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  padding: 5px;
  flex-shrink: 0;
  color: #426677;
  border: 1px solid #e2e9ee;
}
#toggleMenu[aria-expanded="false"] .menu-chevron {
  transform: translateX(29px) scaleX(-1);
}
#breadcrumb {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #09233266;
  border: 0;
  padding: 0;
}
main {
  padding: 31px 32px;
  flex: 1;
  min-width: 0;
}
.page-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #578b83;
  font-weight: 700;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin: 8px 0 7px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  margin: 6px 0 15px;
}
h3 {
  font-size: 15px;
}
.page-heading p {
  margin: 0;
  color: #7a8d9a;
  font-size: 12px;
  line-height: 1.7;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.button {
  border: 1px solid #d8e3e9;
  background: #fff;
  color: #325667;
  border-radius: 6px;
  min-height: 36px;
  padding: 8px 13px;
  font-size: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 550;
}
.button:hover {
  background: #f0f6f7;
  border-color: #b9d0d2;
}
.button.primary {
  background: #147767;
  border-color: #147767;
  color: white;
  box-shadow: 0 2px 4px #0b544517;
}
.button.primary:hover {
  background: #106555;
}
.button.danger {
  color: #bd3d42;
  border-color: #edd0d3;
  background: #fff8f8;
}
.filters {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  align-items: end;
  padding: 17px 19px;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid #e0e8ed;
  border-radius: 9px;
}
.filters label {
  min-width: 115px;
  flex: 1;
  max-width: 230px;
}
.filters label.wide {
  min-width: 210px;
  max-width: none;
}
.filters .spacer {
  flex: 1;
}
.filters label,
form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #58727f;
  font-weight: 550;
}
input,
select,
textarea {
  border: 1px solid #d7e2e8;
  border-radius: 5px;
  min-height: 35px;
  padding: 7px 9px;
  background: white;
  color: #244759;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #379788;
  outline: 2px solid #37978820;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 23px;
}
.metric {
  background: #fff;
  border: 1px solid #e1e9ee;
  border-radius: 9px;
  padding: 18px 19px;
  position: relative;
}
.metric .metric-label {
  font-size: 11px;
  color: #7a8d99;
}
.metric strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.5px;
  font-weight: 600;
  margin: 10px 0 7px;
  color: #143c43;
}
.metric small {
  font-size: 10px;
  color: #93a2aa;
}
.metric .metric-icon {
  position: absolute;
  right: 17px;
  top: 15px;
  background: #eef7f3;
  color: #3b8d76;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.metric.accent {
  background: #ecf6f2;
  border-color: #d6e9df;
}
.metric.warning strong {
  color: #b97a35;
}
.table-card {
  border: 1px solid #dfe7ec;
  border-radius: 10px;
  background: white;
  overflow: hidden;
}
.card-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e4ebef;
  min-height: 64px;
}
.card-toolbar h3 {
  margin: 0;
  font-weight: 600;
}
.card-toolbar .caption {
  color: #8699a5;
  font-size: 11px;
  display: block;
  margin-top: 4px;
}
.card-toolbar .right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.table-scroll {
  overflow: auto;
  max-height: 65vh;
  scrollbar-width: thin;
}
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 11px;
}
th {
  font-weight: 550;
  color: #6e8694;
  background: #f7f9fb;
  white-space: nowrap;
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid #dfe8ef;
  position: sticky;
  top: 0;
  z-index: 3;
}
td {
  padding: 11px 14px;
  border-bottom: 1px solid #edf1f4;
  vertical-align: middle;
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover td {
  background: #f8fbfa;
}
.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.negative {
  color: #bd5860;
}
.statement th:first-child,
.statement td:first-child {
  position: sticky;
  left: 0;
  min-width: 265px;
  max-width: 360px;
  background: #fff;
  z-index: 2;
  border-right: 1px solid #e7edf0;
}
.statement th:first-child {
  z-index: 4;
  background: #f7f9fb;
}
.statement th.numeric,
.statement td.numeric {
  min-width: 92px;
}
.statement tr.line-header td {
  background: #f6f9fa;
  font-size: 10px;
  letter-spacing: 0.8px;
  font-weight: 750;
  padding-top: 18px;
}
.statement tr.line-subtotal td {
  background: #f2f7f5;
  color: #275b4f;
  font-weight: 650;
  border-top: 1px solid #deebe4;
}
.statement tr.line-total td {
  background: #e2f1e9;
  color: #1c5b49;
  font-weight: 750;
  border-top: 1px solid #c6e0d2;
}
.statement tr.line-ratio td {
  color: #6c8790;
  background: #fafcfb;
}
.statement .indent {
  padding-left: 25px;
}
.code {
  font:
    11px ui-monospace,
    Consolas,
    monospace;
  color: #4f768a;
}
.muted {
  color: #8a9da8;
}
.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
  color: #518069;
  background: #edf7f0;
  border: 1px solid #dbece1;
  white-space: nowrap;
}
.pill.pending {
  color: #a47730;
  background: #fff8e9;
  border-color: #efe1c4;
}
.pill.closed {
  color: #607190;
  background: #eef2fa;
  border-color: #e0e6f0;
}
.pill.inactive {
  color: #9a6c72;
  background: #fcf1f3;
  border-color: #f1e0e5;
}
.pagination {
  padding: 14px 19px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8c9da9;
  font-size: 11px;
  border-top: 1px solid #e5ecef;
  gap: 12px;
}
.pagination > div {
  display: flex;
  gap: 7px;
}
.text-button {
  border: 0;
  background: none;
  color: #2f8071;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 0;
}
.text-button:hover {
  text-decoration: none;
}
.notice {
  padding: 13px 17px;
  border-radius: 7px;
  background: #fff8e8;
  color: #8b692e;
  border: 1px solid #eee0be;
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 20px;
}
.notice.error {
  background: #fff0f1;
  border-color: #efced3;
  color: #a34450;
}
.error {
  color: #b74a51;
  font-size: 12px;
}
.empty,
.loading {
  padding: 60px 25px;
  text-align: center;
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 9px;
  color: #889ca7;
  line-height: 1.8;
}
.empty h3 {
  font-size: 17px;
  color: #395b6b;
  font-weight: 550;
}
.empty .big-icon {
  font-size: 35px;
  color: #a1bfb6;
  display: block;
}
.loading::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  border: 2px solid #dceee6;
  border-top-color: #248a72;
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.footer {
  display: flex;
  gap: 15px;
  padding: 16px 33px;
  font-size: 9px;
  color: #92a5af;
  letter-spacing: 0.7px;
  border-top: 1px solid #e4eaf0;
}
.footer > span:first-child {
  letter-spacing: 0;
}
.footer > span:last-child {
  margin-left: auto;
  letter-spacing: 0;
}
.explorer-frame {
  width: 100%;
  height: calc(100vh - 204px);
  min-height: 700px;
  border: 1px solid #dce5eb;
  border-radius: 10px;
  background: white;
}
.connections-screen .main-shell {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.connections-screen .topbar {
  flex-shrink: 0;
}
.connections-screen #main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 20px 12px;
}
.connections-screen #content {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.connections-heading {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.connections-heading h1 {
  font-size: 23px;
  margin: 0;
}
.connections-heading p {
  font-size: 12px;
  color: #7a8d9a;
  margin: 0;
}
.connections-screen .explorer-frame {
  display: block;
  flex: 1;
  width: 100%;
  height: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.connections-screen .footer {
  display: none;
}
.connections-module .connections-heading {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.connections-module .connections-heading p {
  margin-top: 8px;
  line-height: 1.6;
}
.connections-count {
  padding: 7px 12px;
  border: 1px solid #d9e4e8;
  border-radius: 20px;
  color: #607a87;
  background: #fff;
  font-size: 11px;
  white-space: nowrap;
}
.connections-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex-shrink: 0;
  gap: 14px;
  margin-bottom: 24px;
}
.connection-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid #dce5eb;
  border-radius: 12px;
  background: white;
  color: #254957;
  text-decoration: none;
}
.connection-card:hover { border-color: #8cb4ab; background: #f9fcfb; }
.connection-card.selected { border-color: #278c77; background: #f0f8f5; box-shadow: inset 0 0 0 1px #278c77; }
.connection-card:focus-visible { outline: 3px solid #63bca6; outline-offset: 3px; }
.connection-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: #e7f0f9;
  color: #316891;
  font-size: 21px;
  font-weight: 700;
}
.connection-icon.unique { background: #def1e9; color: #18745e; }
.connection-icon.fotografia { background: #eee8f6; color: #795799; }
.connection-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.connection-copy strong { font-size: 14px; letter-spacing: .06em; }
.connection-copy > span { color: #708591; font-size: 12px; line-height: 1.5; }
.connection-action { margin-left: auto; color: #27806c; font-size: 11px; white-space: nowrap; }
.connections-help { padding: 20px 0; color: #708591; font-size: 13px; line-height: 1.7; }
.connections-screen #connectionPanel { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; }
.connection-workbar { position: relative; display: flex; align-items: center; justify-content: space-between; flex: none; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.connection-workspace-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.connection-switcher { position: relative; max-width: 100%; }
.connection-switcher .connection-icon { position: absolute; pointer-events: none; left: 6px; top: 5px; width: 26px; height: 26px; border-radius: 5px; font-size: 14px; }
.connection-switcher select { display: block; width: 258px; max-width: 100%; height: 36px; padding: 5px 28px 5px 40px; border: 1px solid #d9e4e8; border-radius: 6px; background: #fff; color: #254957; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.connection-diagnostics { margin-left: auto; font-size: 11px; color: #607a87; }
.connection-diagnostics > summary { padding: 6px 0; cursor: pointer; }
.connection-diagnostics-popover { position: absolute; z-index: 5; right: 0; top: 100%; width: min(460px, 100%); max-height: min(65dvh, 480px); overflow: auto; padding: 14px; border: 1px solid #d9e4e8; border-radius: 6px; background: #fff; box-shadow: 0 8px 24px #17334226; color: #254957; }
.connection-diagnostics-popover p { margin: 0 0 10px; line-height: 1.5; }
.connection-diagnostics-popover select { max-width: 100%; }
.connection-diagnostics-popover table { width: 100%; font-size: 11px; margin: 10px 0; }
.connection-diagnostics-popover th { text-align: left; }
#connectionPanel > .unique-page { max-width: none; width: 100%; padding: 0 0 30px; }
#connectionPanel > [data-source="fuel-reader"] { margin: 0; }
#connectionPanel > [data-source="fuel-reader"] > h2 { margin-top: 12px; }
#connectionPanel .unique-heading h2 { font-size: 20px; margin: 8px 0; }
@media (max-width: 1050px) {
  .connection-card { padding: 16px; gap: 12px; }
  .connection-action { display: none; }
}
@media (max-width: 760px) {
  .connections-screen #main {
    padding: 12px 10px 8px;
  }
  .connections-heading {
    gap: 5px;
    margin-bottom: 10px;
  }
  .connections-heading h1 {
    font-size: 20px;
  }
  .connections-heading p {
    display: none;
  }
  .connections-list { grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
  .connections-screen .connections-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connections-screen .connection-copy > span { display: none; }
  .connections-screen .connection-icon { width: 30px; height: 30px; font-size: 15px; }
}
dialog {
  border: 0;
  border-radius: 13px;
  box-shadow: 0 28px 100px #0723314d;
  padding: 0;
  width: min(720px, 95vw);
  max-height: 88vh;
  color: #244451;
}
dialog::backdrop {
  background: #09233366;
  backdrop-filter: blur(2px);
}
.document-link {
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: #067f70;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  
  cursor: pointer;
  white-space: nowrap;
}
.document-link:focus-visible {
  outline: 2px solid #067f70;
  outline-offset: 3px;
}
dialog.inventory-dialog {
  width: min(1060px, 96vw);
}
dialog.ledger-document-dialog {
  width: min(1280px, 96vw);
}
.document-dialog-body {
  padding: 24px;
}
.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.detail-filter-count {
  display: inline-block;
  border-radius: 20px;
  min-width: 20px;
  padding: 1px 5px;
  background: #ffffff30;
  margin-left: 5px;
}
.document-metadata {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 18px;
  background: #f3f8fa;
  border-radius: 8px;
}
.document-metadata dt {
  color: #617d8b;
  font-size: 12px;
  margin-bottom: 5px;
}
.document-metadata dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.document-selected {
  background: #e8f5f1;
}
.inventory-context,
.inventory-row-meta {
  display: block;
}
.inventory-context span {
  display: block;
  margin-top: 5px;
  color: #617d8b;
}
.inventory-toolbar,
.inventory-modes,
.inventory-footer,
.inventory-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.inventory-toolbar,
.inventory-footer {
  justify-content: space-between;
  margin: 18px 0;
}
.inventory-row-meta {
  color: #617d8b;
  margin-top: 5px;
  font-size: 11px;
}
.inventory-table {
  max-height: 42vh;
  border: 1px solid #e3ebef;
  border-radius: 8px;
}
.inventory-table thead th {
  position: sticky;
  top: 0;
  background: #f3f8fa;
  z-index: 1;
}
.inventory-table td:nth-child(2) {
  min-width: 230px;
  white-space: normal;
}
.inventory-pagination {
  justify-content: center;
}
.dialog-heading {
  padding: 22px 26px 15px;
  border-bottom: 1px solid #e3ebef;
  display: flex;
  justify-content: space-between;
}
.dialog-heading h2 {
  margin: 7px 0;
  font-size: 21px;
}
.dialog-heading .icon-button {
  align-self: start;
}
#dialogBody {
  padding: 23px 26px;
  overflow: auto;
}
.dialog-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.dialog-form .full {
  grid-column: 1/-1;
}
.dialog-form .actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: end;
  gap: 10px;
  border-top: 1px solid #e3ebef;
  padding-top: 18px;
  margin-top: 8px;
}
.check-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 9px !important;
  min-height: 26px;
}
.check-label input {
  min-height: 0;
  accent-color: #197b67;
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.source-detail {
  font-size: 11px;
  padding: 12px;
  background: #f5f8fa;
  color: #71909d;
  white-space: pre-wrap;
  max-height: 230px;
  overflow: auto;
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 28px;
  padding: 14px 21px;
  background: #123f39;
  color: white;
  border: 1px solid #316e5e;
  border-radius: 9px;
  box-shadow: 0 8px 35px #0002;
  z-index: 99;
  font-size: 12px;
}
.auth-panel {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  background: #f9fbfc;
}
.auth-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 4vw, 68px) clamp(32px, 5vw, 88px);
  color: #f1f8fa;
  background: radial-gradient(ellipse at 10% 90%, #0e595552, transparent 62%), linear-gradient(145deg, #103544, #082332 65%, #071f2b);
}
.auth-intro::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -340px;
  right: -240px;
  border: 1px solid #b9e3e012;
  border-radius: 50%;
  box-shadow: 0 0 0 65px #b9e3e006, 0 0 0 130px #b9e3e004;
  z-index: -1;
}
.auth-product { display:flex; align-items:center; gap:12px; font-size:11px; font-weight:600; letter-spacing:2px; color:#c4dbe3; }
.auth-product-mark { display:grid; place-items:center; width:36px; height:36px; border:1px solid #62869260; border-radius:10px; color:#91d8c9; }
.auth-product-mark svg { width:22px; height:22px; }
.auth-intro-copy { margin:64px 0 38px; max-width:480px; }
.auth-intro .eyebrow { color:#85b9b9; font-size:10px; letter-spacing:2px; }
.auth-intro h1 {
  font-size: clamp(34px, 3.35vw, 56px);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin: 22px 0;
}
.auth-intro h1 span { color:#85d6c4; }
.auth-intro-copy > p { color:#a2beca; font-size:15px; line-height:1.8; max-width:350px; margin:0; }
.auth-visual { max-width:410px; margin:34px 0 20px; opacity:.85; }
.auth-visual svg { width:100%; display:block; overflow:visible; }
.auth-chart-grid { stroke:#b3d1d612; stroke-width:1; }
.auth-chart-area { fill:#50c1aa08; }
.auth-chart-line { stroke:#6bcdb7; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.auth-chart-point { fill:#97e2cf; }
.auth-chart-halo { stroke:#97e2cf35; stroke-width:6; }
.auth-topics { display:flex; flex-wrap:wrap; gap:10px 22px; color:#9cbecb; font-size:11px; }
.auth-topics span { display:flex; align-items:center; gap:8px; }
.auth-topics span::before { content:""; width:4px; height:4px; background:#55bca7; border-radius:50%; }
.auth-foot { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:24px; padding-top:24px; border-top:1px solid #9bc7cf20; color:#8cabb9; font-size:10px; letter-spacing:1.1px; }
.auth-foot span { margin-left:auto; color:#7798a8; letter-spacing:0; }
.auth-access {
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  position:relative;
  padding:56px 40px 76px;
  background:radial-gradient(ellipse at 100% 0%, #eaf5f4 0%, transparent 55%);
}
.auth-card { width:min(390px, 100%); color:#193b49; }
.auth-panel .auth-brand {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  margin-bottom:48px;
  padding:0;
}
.auth-brand img { display:block; width:252px; max-width:100%; height:auto; }
.auth-brand > span { font-size:10px; font-weight:600; letter-spacing:2.4px; color:#6c8896; padding-left:5px; }
#authForm { display:flex; flex-direction:column; gap:22px; }
.auth-heading h2 { font-size:30px; line-height:1.2; font-weight:650; letter-spacing:-.65px; margin:0 0 10px; color:#163746; }
.auth-heading p { font-size:14px; color:#6c8492; line-height:1.6; margin:0; }
.auth-heading { margin-bottom:8px; }
.auth-card label { display:block; color:#355363; font-size:12px; font-weight:600; margin-bottom:9px; }
.auth-card #nameLabel { margin:0; }
.auth-card #authName { margin-top:9px; }
.auth-card input { width:100%; min-height:50px; border:1px solid #d6e2e8; border-radius:9px; background:#fff; color:#183c4a; font-size:14px; padding:13px 15px; outline:none; box-shadow:0 2px 3px #09233202; transition:border-color 150ms, box-shadow 150ms; }
.auth-card input::placeholder { color:#8b9ea8; font-weight:400; }
.auth-card input:hover { border-color:#a9c4cc; }
.auth-card input:focus { border-color:#168878; box-shadow:0 0 0 3px #16887815; }
.auth-card input[aria-invalid="true"] { border-color:#c9757d; }
.auth-input-wrap { position:relative; }
.auth-input-wrap input { padding-left:44px; }
.auth-input-wrap #authPassword { padding-right:52px; }
.auth-input-icon { position:absolute; left:15px; top:16px; width:18px; height:18px; color:#76919f; pointer-events:none; }
.auth-input-wrap:focus-within .auth-input-icon { color:#128777; }
.auth-password-toggle { position:absolute; right:6px; top:6px; width:38px; height:38px; display:grid; place-items:center; border:0; background:transparent; color:#78929d; border-radius:6px; }
.auth-password-toggle:hover { background:#edf5f4; color:#126f62; }
.auth-password-toggle:focus-visible { outline:2px solid #168878; outline-offset:0; }
.auth-password-toggle svg { width:20px; height:20px; }
.auth-eye-slash { display:none; }
.auth-password-toggle[aria-pressed="true"] .auth-eye-slash { display:block; }
.auth-caps-lock { margin:9px 0 0; font-size:12px; color:#926514; }
.auth-card .error { margin:0; padding:12px 14px; border:1px solid #edccd0; border-radius:8px; color:#a33e4c; background:#fff2f3; font-size:13px; line-height:1.6; }
.auth-card .auth-submit { display:flex; justify-content:center; align-items:center; gap:12px; width:100%; min-height:50px; border:1px solid #117b6c; border-radius:9px; background:#117d6e; color:white; font-size:14px; font-weight:600; box-shadow:0 4px 10px #10766714; transition:background 150ms, box-shadow 150ms; margin-top:4px; }
.auth-card .auth-submit:hover:not(:disabled) { background:#0c6a5d; box-shadow:0 6px 16px #10766724; }
.auth-submit svg { width:18px; height:18px; }
.auth-submit:disabled { cursor:wait; opacity:.8; }
#authForm[aria-busy="true"] .auth-submit svg { display:none; }
#authForm[aria-busy="true"] .auth-submit::before { content:""; width:16px; height:16px; border:2px solid #ffffff40; border-top-color:#fff; border-radius:50%; animation:auth-spin 800ms linear infinite; }
.auth-help { margin:28px 0 0; padding-top:24px; border-top:1px solid #e1e9ee; font-size:12px; line-height:1.8; color:#6d8694; }
.auth-help span { color:#415f70; }
.auth-access-foot { position:absolute; bottom:24px; margin:0; color:#7f96a2; font-size:11px; }
.auth-access-foot span { margin:0 8px; color:#9bb2bd; }
@keyframes auth-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { #authForm[aria-busy="true"] .auth-submit::before { animation:none; } }
@media(max-width:900px) {
  .auth-panel { grid-template-columns:minmax(0, .8fr) minmax(0, 1fr); }
  .auth-intro { padding:32px; }
  .auth-intro h1 { font-size:34px; }
  .auth-intro-copy { margin:48px 0 24px; }
  .auth-product { font-size:9px; letter-spacing:1.5px; }
  .auth-access { padding:40px 28px 70px; }
}
@media(min-width:721px) and (max-height:820px) {
  .auth-intro-copy { margin:36px 0 20px; }
  .auth-visual { max-width:330px; margin:22px 0 14px; }
  .auth-access { padding-top:32px; padding-bottom:64px; }
  .auth-panel .auth-brand { margin-bottom:32px; }
}
@media(max-width:720px) {
  .auth-panel { grid-template-columns:1fr; padding:0; }
  .auth-panel .auth-intro { display:none; }
  .auth-access { min-height:100dvh; padding:40px 26px 28px; }
  .auth-panel .auth-card { padding:0; }
  .auth-panel .auth-brand { margin-bottom:36px; }
  .auth-brand img { width:230px; }
  .auth-card input { font-size:16px; }
  .auth-access-foot { position:static; margin-top:44px; }
}
.plain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.info-card {
  padding: 22px;
  border: 1px solid #dfe8ed;
  border-radius: 9px;
  background: white;
}
.info-card p {
  font-size: 12px;
  color: #8195a1;
  line-height: 1.6;
}
.period-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.period-card {
  border: 1px solid #e0e8ed;
  background: white;
  border-radius: 8px;
  padding: 17px;
}
.period-card strong {
  font-size: 14px;
  font-weight: 550;
  display: block;
  margin: 8px 0 13px;
}
.period-card .period-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.subnav {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.subnav button {
  border: 1px solid #d7e4e7;
  background: white;
  color: #537481;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
}
.subnav button.active {
  background: #e3f2ea;
  color: #176b52;
  border-color: #b8d7c8;
}
@media (max-width: 1100px) {
  .application {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  main {
    padding: 23px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .period-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 761px) {
  .application.menu-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .application {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    z-index: 30;
    width: 248px;
    left: -260px;
    transition: left 0.2s;
  }
  .application.menu-open .sidebar {
    left: 0;
  }
  .topbar {
    padding: 0 10px;
  }
  .topbar-right {
    gap: 5px;
  }
  #userName {
    display: none;
  }
  main {
    padding: 20px 12px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
  }
  h1 {
    font-size: 25px;
  }
  .metric strong {
    font-size: 20px;
  }
  .filters {
    gap: 10px;
  }
  .filters label {
    min-width: 125px;
  }
  .period-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dialog-form,
  .check-grid {
    grid-template-columns: 1fr;
  }
  .footer > span:first-child {
    display: none;
  }
  .explorer-frame {
    height: 80vh;
  }
  .statement th:first-child,
  .statement td:first-child {
    min-width: 220px;
  }
  .plain-grid {
    grid-template-columns: 1fr;
  }
}
@media print {
  .sidebar,
  .menu-backdrop,
  .topbar,
  .filters,
  .heading-actions,
  .footer {
    display: none;
  }
  .application {
    display: block;
  }
  .table-scroll {
    max-height: none;
    overflow: visible;
  }
  main {
    padding: 0;
  }
  table {
    font-size: 8px;
  }
  th,
  td {
    padding: 5px;
  }
  .statement th:first-child,
  .statement td:first-child {
    position: static;
    min-width: 0;
  }
  .metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-notice { flex: none; margin: 8px 12px; padding: 8px 12px; overflow-wrap: anywhere; }
.applied-filters {
  font-size: 12px;
  color: #526778;
  padding: 0 4px 16px;
  line-height: 1.7;
}
.applied-filters.pending {
  color: #8a580f;
}
.movement-tools {
  margin-top: 12px;
  margin-bottom: 6px;
  display: block;
}
.movement-search-bar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.movement-tools .movement-search-bar .wide { flex: 1 1 300px; }
.movement-tools .movement-search-bar label:not(.wide) { flex: 0 1 180px; }
.movement-filter-rows { display: grid; gap: 12px; }
.movement-filter-rows:not(:empty) { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e0e8f1; }
.movement-filter-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(145px, .8fr) minmax(200px, 1.6fr) 32px; align-items: start; gap: 12px; }
.movement-tools .movement-filter-row label { min-width: 0; max-width: none; width: auto; }
.movement-remove-filter { margin-top: 22px; height: 35px; color: #79909f; }
.movement-remove-filter:hover { background: #fff0ef; color: #b84040; }
.movement-filter-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.movement-filter-actions .caption { margin: 0; }
.movement-filter-row small { margin-top: 5px; }
@media (max-width: 950px) {
  .movement-filter-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; }
  .movement-filter-row > label:nth-child(3) { grid-column: 1 / 3; }
  .movement-remove-filter { grid-column: 3; grid-row: 1; }
}
@media (max-width: 480px) {
  .movement-filter-row { grid-template-columns: minmax(0, 1fr) 32px; }
  .movement-filter-row > label { grid-column: 1; }
  .movement-filter-row > label:nth-child(3) { grid-column: 1; }
  .movement-remove-filter { grid-column: 2; }
}
.movement-table .table-scroll {
  max-height: 62vh;
}
.movement-table th {
  position: sticky;
  top: 0;
  background: #f2f6fa;
  z-index: 1;
}
.movement-table td {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.column-sort {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
}
.column-list {
  max-height: 55vh;
  overflow: auto;
}
.column-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  border-bottom: 1px solid #e6edf2;
}
.column-option label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.column-option input {
  width: auto;
}

#detailFilterError:empty { display: none; }
.detail-filter-field { position: relative; min-width: 0; }
.detail-suggestions {
  position: absolute;
  top: 57px;
  left: 0;
  right: 0;
  z-index: 2;
  max-height: 205px;
  overflow: auto;
  background: #fff;
  border: 1px solid #b7d5cf;
  border-radius: 6px;
  box-shadow: 0 8px 22px #17334226;
}
.detail-suggestions [role="option"] {
  padding: 10px;
  cursor: pointer;
  color: #244759;
  overflow-wrap: anywhere;
}
.detail-suggestions [role="option"]:hover,
.detail-suggestions [aria-selected="true"] { background: #e8f5f1; }
.page-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:22px; flex-wrap:wrap; }
.page-heading h1 { margin:8px 0; }
.page-heading .actions { display:flex; gap:8px; align-items:center; }
.incident-tabs { display:flex; gap:10px; align-items:center; margin:22px 0 14px; flex-wrap:wrap; }
.incident-tabs button span { margin-left:7px; border-radius:5px; padding:2px 6px; background:#94a3b81a; font-size:12px; }
.incident-search { flex-wrap:wrap; align-items:end; }
.incident-search > label { flex:1; max-width:none; min-width:220px; }
.incident-search > .caption, .incident-filter-rows { width:100%; }
.incident-filter-rows:empty { display:none; }
.incident-selection { position:sticky; top:8px; z-index:4; display:flex; gap:16px; align-items:center; padding:16px 20px; margin:16px 0; background:#fff9eb; border:1px solid #eed7a3; border-radius:10px; box-shadow:0 4px 12px #0c273012; flex-wrap:wrap; }
.incident-selection.is-balanced { background:#effaf7; border-color:#9ad5c8; }
.incident-selection > div:first-child { flex:1; min-width:220px; }
.incident-selection p { margin:6px 0 0; }
.incident-selection-totals { display:flex; flex-direction:column; gap:4px; text-align:right; font-variant-numeric:tabular-nums; }
#incidentSelectionGroups { flex-basis:100%; min-width:0; }
#incidentSelectionGroups:empty { display:none; }
.incident-group-summary { max-height:180px; margin:4px 0; border:1px solid #dbe6e9; border-radius:7px; background:#ffffffb8; }
.incident-group-summary table { min-width:580px; width:100%; }
.incident-group-summary th, .incident-group-summary td { padding:7px 10px; font-size:12px; }
.incident-group-summary th { position:sticky; top:0; background:#f1f6f9; }
.incident-group-summary .code { overflow-wrap:anywhere; }
.incident-group-ready { color:#117c69; }
.incident-group-pending { color:#916016; }
.incident-table tr.is-selected td { background:#e8f6f2; }
.incident-table small { display:block; color:#698899; padding-top:4px; }
.incident-table .incident-description { max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.incident-check { width:17px; height:17px; accent-color:#0d8177; cursor:pointer; }
.incident-history { border-top:1px solid #e2eaf0; }
.incident-history summary { display:flex; align-items:center; gap:14px; padding:18px 20px; cursor:pointer; flex-wrap:wrap; list-style:none; }
.incident-history summary::before { content:'›'; font-size:20px; }
.incident-history[open] summary::before { transform:rotate(90deg); }
.incident-history summary > span:last-child { margin-left:auto; font-size:12px; color:#698899; }
.incident-history-body { padding:0 20px 20px; }
.pill.compensated { color:#0e7569; background:#e7f6f1; }
.report-detail-dialog{width:calc(100vw - 48px);max-width:1440px;height:calc(100dvh - 48px);max-height:none;padding:0;border:1px solid #c8dce0;border-radius:14px;box-shadow:0 24px 100px #143e4d55;overflow:hidden}
.report-detail-dialog::backdrop{background:#183b4980;backdrop-filter:blur(2px)}
.report-detail-dialog>header{display:flex;align-items:center;gap:16px;padding:13px 20px;border-bottom:1px solid #d8e5e8;background:#fff;min-height:74px;box-sizing:border-box}
.report-detail-dialog>header>div{flex:1;min-width:0}.report-detail-dialog>header span{font-size:10px;letter-spacing:.1em;color:#43846e;font-weight:650}.report-detail-dialog h2{font-size:18px;margin:4px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#244d5a}.report-detail-dialog header button{white-space:nowrap}
.report-detail-body{height:calc(100% - 75px)}.report-detail-body iframe{width:100%;height:100%;border:0;background:#f5f8fa;display:block}.report-detail-body iframe[hidden]{display:none}
.report-detail-embedded #sidebar,.report-detail-embedded #menuBackdrop,.report-detail-embedded .topbar,.report-detail-embedded .footer{display:none!important}.report-detail-embedded #application{display:block;grid-template-columns:1fr}.report-detail-embedded .main-shell{margin:0;width:100%;min-width:0}.report-detail-embedded #main{padding:18px 22px}.report-detail-embedded .page-heading{margin-top:0}.report-detail-embedded .auth-panel{min-height:100dvh}
@media(max-width:760px){.report-detail-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:9px}.report-detail-dialog>header{gap:9px;padding:12px}.report-detail-dialog h2{font-size:15px}.report-detail-embedded #main{padding:12px}}
@media(max-width:600px) { .page-heading .actions { flex-wrap:wrap; } .incident-selection { position:static; } .incident-tabs .right { margin-left:0; } }
