.orca-dialog {
  position: fixed;
  inset: 0;
  width: min(64rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  border: 0;
  border-radius: 1rem;
  background: transparent;
  margin: auto;
  padding: 0;
}

.orca-dialog:focus {
  outline: none;
}

html.orca-dialog-open,
body.orca-dialog-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.orca-dialog-open {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
}

.orca-preview-dialog {
  width: min(72rem, calc(100vw - 2rem));
}

.orca-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.orca-dialog-panel {
  max-height: inherit;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  padding: 1.5rem;
}

.orca-dialog-backdrop {
  display: none;
}

.orca-export-dialog {
  width: min(32rem, calc(100vw - 2rem));
}

.orca-confirm-dialog {
  width: min(30rem, calc(100vw - 2rem));
}

.orca-manual-receipt-dialog {
  width: min(40rem, calc(100vw - 2rem));
}

.orca-extraction-dialog {
  width: min(56rem, calc(100vw - 2rem));
}

.orca-receipt-history-dialog {
  width: min(56rem, calc(100vw - 2rem));
  max-width: none;
}

.orca-receipt-history-dialog:focus {
  outline: none;
}

.orca-receipt-history-dialog .orca-admin-dialog-panel {
  overflow-x: hidden;
}

.orca-receipt-history-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.orca-receipt-history-badge {
  border: 1px solid #c6c6cd;
  border-radius: 9999px;
  color: #45464d;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

.orca-receipt-history-body {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.orca-receipt-history-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fcfbfc;
  padding: 0.875rem;
}

.orca-receipt-history-summary div {
  min-width: 0;
}

.orca-receipt-history-summary span {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
}

.orca-receipt-history-summary strong {
  display: block;
  overflow: hidden;
  color: #1b1b1d;
  font-size: 0.875rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orca-receipt-history-timeline {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0;
}

.orca-receipt-history-event {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  position: relative;
}

.orca-receipt-history-event:not(:last-child)::before {
  background: #e2e8f0;
  bottom: 0;
  content: "";
  left: 1rem;
  position: absolute;
  top: 2rem;
  width: 1px;
}

.orca-receipt-history-event-icon {
  align-items: center;
  background: #ffffff;
  border: 1px solid #c6c6cd;
  border-radius: 9999px;
  color: #45464d;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  position: relative;
  width: 2rem;
  z-index: 1;
}

.orca-receipt-history-event--review .orca-receipt-history-event-icon,
.orca-receipt-history-event--accounting .orca-receipt-history-event-icon {
  color: #565e74;
}

.orca-receipt-history-event--quickbooks .orca-receipt-history-event-icon {
  color: #0058be;
}

.orca-receipt-history-event--extraction .orca-receipt-history-event-icon {
  color: #64748b;
}

.orca-receipt-history-event--deletion .orca-receipt-history-event-icon {
  color: #ba1a1a;
}

.orca-receipt-history-event-icon .lucide-icon {
  height: 0.95rem;
  width: 0.95rem;
}

.orca-receipt-history-event-disclosure {
  min-width: 0;
}

.orca-receipt-history-event-shell {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: -0.35rem -0.75rem 0 -0.75rem;
  min-width: 0;
  padding: 0.35rem 0.75rem 1rem;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.orca-receipt-history-event-disclosure .orca-receipt-history-event-shell:hover {
  background: #f8fafc;
}

.orca-receipt-history-event:has(.orca-receipt-history-event-disclosure[open]) .orca-receipt-history-event-shell {
  background: #f8fbff;
  border-bottom-color: transparent;
}

.orca-receipt-history-event:has(.orca-receipt-history-event-disclosure[open]) .orca-receipt-history-event-icon {
  background: #0058be;
  border-color: #0058be;
  color: #ffffff;
}

.orca-receipt-history-event-disclosure summary {
  cursor: pointer;
  list-style: none;
}

.orca-receipt-history-event-disclosure summary::-webkit-details-marker {
  display: none;
}

.orca-receipt-history-event-main {
  display: block;
  min-width: 0;
}

.orca-receipt-history-event-summary {
  display: block;
  color: #1b1b1d;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.orca-receipt-history-event-meta {
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  gap: 0.375rem 0.75rem;
  line-height: 1.35;
  margin: 0.25rem 0 0;
}

.orca-receipt-history-event-meta span + span::before {
  color: #c6c6cd;
  content: "\2022";
  margin-right: 0.75rem;
}

.orca-receipt-history-event-actions {
  align-items: center;
  display: inline-flex;
  flex: none;
  gap: 0.625rem;
}

.orca-receipt-history-event-time {
  color: #45464d;
  flex: none;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: right;
}

.orca-receipt-history-chevron {
  color: #64748b;
  height: 1rem;
  transition: transform 160ms ease;
  width: 1rem;
}

.orca-receipt-history-event-disclosure[open] .orca-receipt-history-chevron {
  transform: rotate(180deg);
}

.orca-receipt-history-details {
  background: #f8fbff;
  border-bottom: 1px solid #e2e8f0;
  margin: 0 -0.75rem;
  padding: 0.35rem 0.75rem 1rem;
}

.orca-receipt-history-change-title {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 0 0.375rem;
}

.orca-receipt-history-change-table {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 0.5rem;
  margin-left: 0;
  overflow: hidden;
}

.orca-receipt-history-change-header,
.orca-receipt-history-change-row {
  display: grid;
  align-items: center;
  gap: 1.25rem;
  grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr);
  justify-content: start;
}

.orca-receipt-history-change-header {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  padding-bottom: 0.375rem;
}

.orca-receipt-history-change-header span:nth-child(3) {
  color: transparent;
}

.orca-receipt-history-change-row {
  color: #1b1b1d;
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
}

.orca-receipt-history-change-row > span:first-child {
  font-weight: 700;
}

.orca-receipt-history-change-row + .orca-receipt-history-change-row {
  border-top: 1px solid #edf2f7;
}

.orca-receipt-history-change-arrow {
  color: #0058be;
  font-weight: 600;
  text-align: center;
}

.orca-receipt-history-change-values {
  align-items: center;
  display: inline-grid;
  gap: 0.75rem;
  grid-template-columns: max-content 1rem max-content;
  justify-content: start;
  min-width: 0;
}

.orca-receipt-history-change-row code {
  background: #eef4ff;
  border: 1px solid #d8e2ff;
  border-radius: 0.375rem;
  color: #004395;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
  padding: 0.25rem 0.5rem;
}

.orca-receipt-history-change-row code:first-of-type {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #45464d;
  font-weight: 500;
}

.orca-receipt-history-change-row code:last-of-type {
  color: #0058be;
}

.orca-receipt-history-technical {
  margin-top: 0.75rem;
}

.orca-receipt-history-technical summary {
  color: #64748b;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

.orca-receipt-history-change-table--technical {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  margin-top: 0.5rem;
}

.orca-receipt-history-change-table--technical .orca-receipt-history-change-row {
  grid-template-columns: minmax(6.5rem, 0.8fr) minmax(0, 1fr) 1rem minmax(0, 1fr);
  justify-content: stretch;
}

.orca-receipt-history-change-table--technical .orca-receipt-history-change-header {
  grid-template-columns: minmax(6.5rem, 0.8fr) minmax(0, 1fr) 1rem minmax(0, 1fr);
  justify-content: stretch;
}

.orca-receipt-history-change-table--technical code,
.orca-receipt-history-technical-list code {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #45464d;
  display: block;
  font-weight: 400;
  max-height: 9rem;
  overflow: auto;
  padding: 0;
  white-space: pre-wrap;
}

.orca-receipt-history-change-table--technical .orca-receipt-history-change-row code:first-of-type,
.orca-receipt-history-change-table--technical .orca-receipt-history-change-row code:last-of-type {
  background: transparent;
  border: 0;
  color: #45464d;
  font-weight: 400;
  padding: 0;
}

.orca-receipt-history-technical-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}

.orca-receipt-history-technical-list div {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 8rem minmax(0, 1fr);
}

.orca-receipt-history-technical-list dt {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
}

.orca-receipt-history-technical-list dd {
  margin: 0;
  min-width: 0;
}

.orca-receipt-history-empty {
  border: 1px dashed #c6c6cd;
  border-radius: 0.5rem;
  color: #45464d;
  margin: 0;
  padding: 1rem;
  text-align: center;
}

@media (max-width: 640px) {
  .orca-receipt-history-dialog {
    width: min(100vw - 1rem, 42rem);
  }

  .orca-receipt-history-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orca-receipt-history-event-main {
    min-width: 0;
  }

  .orca-receipt-history-event-shell {
    display: grid;
    gap: 0.5rem;
  }

  .orca-receipt-history-event-time {
    text-align: left;
  }

  .orca-receipt-history-event-meta {
    display: grid;
    gap: 0.125rem;
  }

  .orca-receipt-history-event-meta span + span::before {
    content: "";
    margin-right: 0;
  }

  .orca-receipt-history-change-header {
    display: none;
  }

  .orca-receipt-history-change-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .orca-receipt-history-change-values {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .orca-receipt-history-change-arrow {
    display: none;
  }

  .orca-receipt-history-technical-list div {
    grid-template-columns: 1fr;
    gap: 0.125rem;
  }
}

.orca-extraction-card,
.orca-extraction-raw-data {
  display: grid;
  gap: 0.875rem;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 1rem;
}

.orca-extraction-card-heading,
.orca-extraction-raw-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.orca-extraction-card-heading h4,
.orca-extraction-raw-heading h4 {
  margin: 0;
  color: #000000;
  font-size: 0.875rem;
  font-weight: 800;
}

.orca-extraction-card-heading span {
  display: block;
  margin-top: 0.125rem;
  color: #565e74;
  font-size: 0.75rem;
}

.orca-extraction-field-list {
  display: grid;
  gap: 0.625rem;
  margin: 0;
}

.orca-extraction-values-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.orca-extraction-field-row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.5rem;
  min-width: 0;
  font-size: 0.8125rem;
}

.orca-extraction-field-row dt {
  color: #565e74;
  font-weight: 700;
}

.orca-extraction-field-row dd {
  min-width: 0;
  margin: 0;
  color: #1b1b1d;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}

.orca-extraction-notes {
  min-width: 0;
  border-radius: 0.625rem;
  background: #f8fafc;
  padding: 0.875rem;
}

.orca-extraction-notes h5 {
  margin: 0 0 0.375rem;
  color: #565e74;
  font-size: 0.75rem;
  font-weight: 800;
}

.orca-extraction-notes p {
  max-height: 14rem;
  overflow: auto;
  margin: 0;
  color: #1b1b1d;
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.orca-extraction-evidence {
  grid-column: 1 / -1;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  background: #ffffff;
}

.orca-extraction-evidence summary {
  cursor: pointer;
  color: #1b1b1d;
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.75rem 0.875rem;
}

.orca-extraction-evidence pre {
  max-height: 12rem;
  overflow: auto;
  border-top: 1px solid #e2e8f0;
  margin: 0;
  color: #1b1b1d;
  font-size: 0.75rem;
  line-height: 1.5;
  padding: 0.875rem;
  white-space: pre-wrap;
}

.orca-extraction-field-row__structured {
  max-height: 12rem;
  overflow: auto;
  border-radius: 0.5rem;
  background: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.625rem;
  text-align: left;
  white-space: pre-wrap;
}

.orca-extraction-raw-data {
  margin-top: 1rem;
  background: #fcfbfc;
}

.orca-extraction-raw-data details {
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  background: #ffffff;
}

.orca-extraction-raw-data summary {
  cursor: pointer;
  color: #1b1b1d;
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.75rem 0.875rem;
}

.orca-extraction-json {
  max-height: 32rem;
  overflow: auto;
  border-top: 1px solid #e2e8f0;
  padding: 0.875rem;
}

.orca-extraction-empty {
  border-top: 1px solid #e2e8f0;
  margin: 0;
  color: #565e74;
  font-size: 0.8125rem;
  padding: 0.875rem;
}

.orca-receipt-inspect-dialog {
  width: min(62rem, calc(100vw - 2rem));
}

.orca-receipt-inspect-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.orca-receipt-inspect-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.orca-receipt-inspect-debug-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.625rem;
  border: 1px solid #fed7aa;
  border-radius: 9999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0 0.625rem;
  white-space: nowrap;
}

.orca-receipt-inspect-debug-note {
  margin: 0.25rem 0 0;
  color: #565e74;
  font-size: 0.8125rem;
}

.orca-receipt-inspect-section {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 1rem;
}

.orca-receipt-inspect-primary {
  background: #fcfbfc;
}

.orca-receipt-inspect-section--full {
  grid-column: 1 / -1;
}

.orca-receipt-inspect-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.orca-receipt-inspect-section-heading p {
  margin: 0.25rem 0 0;
  color: #565e74;
  font-size: 0.8125rem;
}

.orca-receipt-inspect-section h3 {
  margin: 0;
  color: #000000;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0;
}

.orca-receipt-inspect-json {
  height: clamp(36rem, calc(100vh - 10rem), 50rem);
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  background: #ffffff;
  padding: 0.875rem;
}

.orca-receipt-json-tree {
  display: grid;
  gap: 0.125rem;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #1b1b1d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  line-height: 1.55;
}

.orca-receipt-json-tree .orca-receipt-json-tree {
  margin-left: 1.25rem;
  padding-left: 0.75rem;
  border-left: 1px solid #e2e8f0;
}

.orca-receipt-json-node {
  min-width: 0;
}

.orca-receipt-json-details > summary {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  width: fit-content;
  cursor: pointer;
  border-radius: 0.375rem;
  padding: 0.0625rem 0.25rem;
}

.orca-receipt-json-details > summary:hover,
.orca-receipt-json-leaf:hover {
  background: #f8fafc;
}

.orca-receipt-json-key {
  color: #0f172a;
  font-weight: 800;
}

.orca-receipt-json-count {
  color: #64748b;
}

.orca-receipt-json-leaf {
  display: grid;
  grid-template-columns: max-content minmax(18rem, 1fr);
  gap: 0.625rem;
  width: fit-content;
  border-radius: 0.375rem;
  padding: 0.0625rem 0.25rem;
}

.orca-receipt-json-value {
  max-width: 56rem;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.orca-receipt-json-value--string {
  color: #075985;
}

.orca-receipt-json-value--number {
  color: #854d0e;
}

.orca-receipt-json-value--boolean {
  color: #166534;
}

.orca-receipt-json-value--null {
  color: #64748b;
}

.orca-receipt-inspect-details {
  display: grid;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
}

.orca-receipt-inspect-details > summary {
  cursor: pointer;
  color: #1b1b1d;
  font-size: 0.875rem;
  font-weight: 800;
  padding: 1rem;
}

.orca-receipt-inspect-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid #e2e8f0;
  padding: 1rem;
}

.orca-receipt-inspect-list {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.orca-receipt-inspect-row {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1.2fr);
  gap: 0.75rem;
  min-width: 0;
  font-size: 0.75rem;
}

.orca-receipt-inspect-row dt {
  color: #565e74;
  font-weight: 700;
}

.orca-receipt-inspect-row dd {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
  min-width: 0;
  margin: 0;
  color: #1b1b1d;
  text-align: right;
}

.orca-receipt-inspect-row code,
.orca-receipt-inspect-candidates code,
.orca-receipt-inspect-section pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.orca-receipt-inspect-row code {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.orca-receipt-inspect-candidates {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.orca-receipt-inspect-candidates li {
  display: grid;
  grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) auto auto auto;
  gap: 0.5rem;
  align-items: center;
  border-radius: 0.5rem;
  background: #f8fafc;
  padding: 0.625rem;
  font-size: 0.75rem;
}

.orca-receipt-inspect-candidates span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orca-receipt-inspect-empty {
  margin: 0;
  color: #565e74;
  font-size: 0.8125rem;
}

.orca-receipt-inspect-section details {
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  background: #fcfbfc;
}

.orca-receipt-inspect-section summary {
  cursor: pointer;
  color: #1b1b1d;
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.75rem 0.875rem;
}

.orca-receipt-inspect-section pre {
  max-height: 22rem;
  overflow: auto;
  border-top: 1px solid #e2e8f0;
  margin: 0;
  padding: 0.875rem;
  color: #1b1b1d;
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .orca-receipt-inspect-body {
    grid-template-columns: 1fr;
  }

  .orca-receipt-inspect-breakdown {
    grid-template-columns: 1fr;
  }

  .orca-receipt-inspect-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .orca-receipt-inspect-row dd {
    justify-content: flex-start;
    text-align: left;
  }

  .orca-receipt-inspect-candidates li {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 760px) {
  .orca-extraction-values-grid {
    grid-template-columns: 1fr;
  }

  .orca-extraction-field-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .orca-extraction-field-row dd {
    text-align: left;
  }
}

.orca-manual-evidence-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  color: #45464d;
  padding: 0.875rem;
}

.orca-manual-evidence-card--interactive {
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.orca-manual-evidence-card--interactive:hover,
.orca-manual-evidence-card--interactive:focus-within {
  border-color: #94a3b8;
  background: #f8fafc;
}

.orca-manual-evidence-card--mobile {
  padding: 1rem 0.875rem;
}

.orca-manual-evidence-card__copy {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.0625rem;
  text-align: left;
}

.orca-manual-evidence-card__copy strong {
  color: #1b1b1d;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.2;
}

.orca-manual-evidence-card__copy span {
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
}

.orca-manual-evidence-card--mobile .orca-manual-evidence-card__copy span,
.orca-manual-evidence-card--mobile .orca-manual-evidence-card__copy strong {
  font-size: 0.875rem;
}

.orca-manual-evidence-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 3.25rem;
  height: 3.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #64748b;
}

.orca-manual-evidence-card--interactive .orca-manual-evidence-card__icon {
  flex-basis: 2.75rem;
  height: 2.75rem;
}

.orca-manual-evidence-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 4.875rem;
  min-height: 2.625rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 0.875rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.orca-manual-evidence-card__action:hover,
.orca-manual-evidence-card__action:focus-visible {
  border-color: #94a3b8;
  background: #f8fafc;
  outline: none;
}

.orca-evidence-dialog {
  width: min(34rem, calc(100vw - 2rem));
}

.orca-evidence-form {
  display: grid;
  gap: 1rem;
}

.orca-mobile-inline-evidence-form {
  display: grid;
  gap: 0.75rem;
}

.orca-evidence-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.orca-inline-form-error {
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.75rem 1rem;
}

.orca-manual-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.orca-manual-field {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.orca-manual-field--full {
  grid-column: 1 / -1;
}

.orca-manual-date-field {
  width: 100%;
}

.orca-manual-date-icon {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  color: #64748b;
  pointer-events: none;
  transform: translateY(-50%);
}

.orca-preview-frame {
  height: min(72vh, 44rem);
  height: min(72dvh, 44rem);
}

.orca-preview-image {
  max-height: min(72vh, 44rem);
  max-height: min(72dvh, 44rem);
}

.orca-preview-filename-form {
  margin-top: 0.25rem;
}

.orca-preview-filename-field {
  display: inline-flex;
  align-items: center;
  max-width: min(34rem, calc(100vw - 10rem));
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.orca-preview-filename-field:focus-within {
  border-color: #0058be;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 88, 190, 0.12);
}

.orca-preview-filename-input {
  min-width: 8rem;
  width: min(24rem, 52vw);
  border: 0;
  background: transparent;
  color: #45464d;
  font-size: 0.875rem;
  line-height: 1.4;
  outline: none;
  padding: 0.25rem 0.125rem 0.25rem 0.375rem;
}

.orca-preview-filename-extension {
  flex-shrink: 0;
  color: #45464d;
  font-size: 0.875rem;
  line-height: 1.4;
  padding-right: 0.375rem;
}

.orca-preview-filename-message {
  min-height: 1rem;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.25;
}

.orca-preview-filename-message.is-error {
  color: #ba1a1a;
}

.orca-current-editing-card {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  background: #ffffff;
  padding: 0.875rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.orca-current-editing-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 3.25rem;
  height: 3.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fcf8fa;
  color: #94a3b8;
}

.orca-file-empty--manual {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px dashed #c6c6cd;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #64748b;
}

.orca-file-empty-icon {
  width: 1rem;
  height: 1rem;
}

.orca-mobile-edit-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.orca-mobile-receipt-row-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  min-height: 4.75rem;
  padding: 0.95rem 1rem;
  text-align: left;
}

.orca-mobile-row-meta {
  align-self: flex-start;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.125rem;
  min-height: 2.375rem;
}

.orca-mobile-row-meta-actions {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.375rem;
  min-height: 1.5rem;
}

.orca-mobile-row-meta-actions .orca-icon-button {
  height: 1.5rem;
  min-height: 1.5rem;
  width: 1.5rem;
}

.orca-mobile-receipt-row-button:active {
  background: #f6f3f5;
}

.orca-mobile-receipt-row-button:focus-visible {
  outline: 2px solid #0058be;
  outline-offset: -2px;
}

.orca-mobile-receipt-primary {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #000000;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.orca-mobile-receipt-primary {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.orca-mobile-receipt-primary--interactive:hover,
.orca-mobile-receipt-primary--interactive:focus-visible {
  color: #0058be;
  text-decoration: underline;
}

.orca-mobile-receipt-detail {
  margin-top: 0.125rem;
  overflow: hidden;
  color: #45464d;
  font-size: 0.75rem;
  line-height: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orca-mobile-receipt-detail--block {
  display: block;
}

.orca-mobile-receipt-detail-value {
  font-size: 0.8rem;
}

.orca-mobile-receipt-context {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  margin-top: 0.25rem;
  min-width: 0;
}

.orca-mobile-payment-source-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  line-height: 1;
  vertical-align: -0.125rem;
}

.orca-mobile-payment-source-indicator .lucide-icon {
  width: 0.875rem;
  height: 0.875rem;
  stroke-width: 2.25;
}

.orca-mobile-context-separator {
  color: #94a3b8;
  padding-inline: 0.125rem;
}

.orca-mobile-note-context {
  align-items: center;
  color: #9a3412;
  display: inline-flex;
  gap: 0.25rem;
  min-width: 0;
}

.orca-mobile-row-missing-text {
  color: #f59e0b;
  font-weight: 400;
}

.orca-mobile-receipt-primary--interactive.orca-mobile-row-missing-text:hover,
.orca-mobile-receipt-primary--interactive.orca-mobile-row-missing-text:focus-visible {
  color: #f59e0b;
}

.orca-mobile-status-hint {
  color: #45464d;
  font-size: 0.8125rem;
  line-height: 1.35;
  margin-top: 0.75rem;
}

.orca-mobile-status-hint strong {
  color: #1b1b1d;
  font-weight: 600;
}

.orca-mobile-field {
  display: grid;
  gap: 0.5rem;
}

.orca-mobile-label {
  color: #1b1b1d;
  font-size: 0.875rem;
  font-weight: 600;
}

.orca-mobile-required-label {
  align-items: center;
  display: inline-flex;
  gap: 0.375rem;
  width: fit-content;
}

.orca-mobile-missing-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: #f59e0b;
  box-shadow: 0 0 0 0.1875rem rgba(245, 158, 11, 0.14);
}

.orca-mobile-label-row {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.orca-mobile-label-row > span {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
}

.orca-mobile-input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #1b1b1d;
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  padding: 0.75rem 0.875rem;
}

.orca-mobile-input:focus {
  border-color: #0058be;
  box-shadow: 0 0 0 3px rgba(0, 88, 190, 0.12);
}

.orca-mobile-amount-field {
  display: flex;
  align-items: center;
  border: 1px solid #dbe3ef;
  border-radius: 0.75rem;
  background: #ffffff;
}

.orca-mobile-amount-field:focus-within {
  border-color: #0058be;
  box-shadow: 0 0 0 3px rgba(0, 88, 190, 0.12);
}

.orca-mobile-amount-field .orca-mobile-input {
  border: 0;
  box-shadow: none;
}

.orca-mobile-amount-field span {
  flex-shrink: 0;
  color: #64748b;
  font-size: 1rem;
  font-weight: 600;
  padding-right: 0.875rem;
}

.orca-mobile-payment-source-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #1b1b1d;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.75rem 0.875rem;
  text-align: left;
}

.orca-mobile-payment-source-trigger:hover,
.orca-mobile-payment-source-trigger:focus-visible {
  border-color: #0058be;
  box-shadow: 0 0 0 3px rgba(0, 88, 190, 0.12);
  outline: none;
}

.orca-mobile-payment-source-trigger-content {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.375rem;
}

.orca-mobile-field-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #1b1b1d;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.75rem 0.875rem;
  text-align: left;
}

.orca-mobile-field-trigger:hover,
.orca-mobile-field-trigger:focus-visible {
  border-color: #0058be;
  box-shadow: 0 0 0 3px rgba(0, 88, 190, 0.12);
  outline: none;
}

.orca-mobile-field-trigger > [data-mobile-field-display] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orca-mobile-field-trigger--multiline {
  align-items: flex-start;
}

.orca-mobile-field-trigger--multiline > [data-mobile-field-display] {
  display: -webkit-box;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.orca-mobile-field-trigger .is-empty {
  color: #64748b;
  font-weight: 500;
}

.orca-mobile-field-trigger-meta {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.9375rem;
  font-weight: 600;
}

.orca-mobile-focused-field-panel {
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.orca-mobile-focused-field-body {
  display: grid;
  gap: 0.875rem;
  padding: 0 1.25rem 1.5rem;
}

.orca-mobile-focused-field-body .orca-primary-button {
  width: 100%;
  min-height: 3.25rem;
}

.orca-mobile-focused-textarea {
  min-height: 9rem;
  resize: vertical;
}

.orca-payment-source-panel-mobile {
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.orca-payment-source-options-mobile {
  display: grid;
  gap: 0.5rem;
  padding: 0 1.25rem 1.5rem;
}

.orca-payment-source-option-mobile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 4rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #1b1b1d;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.75rem 0.875rem;
  text-align: left;
}

.orca-payment-source-option-mobile.is-selected {
  border-color: #0058be;
  background: #f5f9ff;
  box-shadow: inset 0 0 0 1px #0058be;
  color: #0058be;
}

.orca-payment-source-option-mobile .orca-payment-source-check {
  flex-shrink: 0;
  margin-top: 0.125rem;
  visibility: hidden;
}

.orca-payment-source-option-mobile.is-selected .orca-payment-source-check {
  visibility: visible;
}

.orca-mobile-edit-actions {
  display: grid;
  gap: 0.875rem;
  padding-top: 0.75rem;
}

.orca-mobile-edit-actions .orca-primary-button {
  width: 100%;
  min-height: 3.25rem;
  font-size: 0.9375rem;
}

.orca-mobile-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: #ba1a1a;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 700;
}

.orca-mobile-delete-button:hover,
.orca-mobile-delete-button:focus-visible {
  background: #fff7f6;
}

.orca-mobile-date-field {
  display: grid;
  gap: 0.75rem;
}

.orca-mobile-date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.orca-mobile-date-trigger .lucide-icon {
  color: #1b1b1d;
  font-size: 1.25rem;
}

.orca-mobile-date-picker {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.orca-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #dbeafe;
  border-top-color: #0058be;
  border-radius: 9999px;
  animation: orca-spin 800ms linear infinite;
}

.orca-toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 100;
  max-width: min(24rem, calc(100vw - 2rem));
  border-radius: 0.875rem;
  background: #111827;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 0.875rem 1rem;
}

.orca-upload-manager {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 100;
  width: min(24rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.orca-upload-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.75rem;
}

.orca-upload-item + .orca-upload-item {
  margin-top: 0.625rem;
}

.orca-upload-item-complete {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.orca-upload-item-error {
  background: #fff7f6;
  border-color: #ffdad6;
}

.orca-upload-item-error [data-upload-progress] {
  background: #ba1a1a;
}

.orca-upload-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.625rem;
}

.orca-upload-item-action {
  border: 1px solid #c6c6cd;
  border-radius: 9999px;
  background: #ffffff;
  color: #1b1b1d;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.45rem 0.7rem;
}

.orca-upload-item-action:hover {
  border-color: #76777d;
}

@keyframes orca-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orca-shimmer {
  from {
    background-position: 120% 0;
  }

  to {
    background-position: -120% 0;
  }
}

@keyframes orca-row-updated {
  0% {
    background-color: #ecfdf5;
  }

  55% {
    background-color: #f0fdfa;
  }

  100% {
    background-color: transparent;
  }
}

@keyframes orca-mobile-sheet-enter {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes orca-mobile-sheet-exit {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(100%);
  }
}

@media (max-width: 767px) {
  .orca-dialog {
    width: min(100vw - 1rem, 34rem);
    max-height: calc(100dvh - 1rem);
    border-radius: 0.875rem;
  }

  .orca-preview-dialog {
    width: min(100vw - 1rem, 42rem);
  }

  .orca-dialog-panel {
    border-radius: 0.875rem;
    padding: 1rem;
  }

  .orca-mobile-edit-dialog {
    inset: auto 0 0;
    width: 100vw;
    max-width: 100vw;
    max-height: calc(100vh - env(safe-area-inset-top, 0px) - 0.5rem);
    max-height: min(42rem, calc(100svh - env(safe-area-inset-top, 0px) - 0.5rem));
    margin: 0;
    border-radius: 1.5rem 1.5rem 0 0;
    overflow: hidden;
  }

  .orca-mobile-edit-dialog[open] {
    animation: orca-mobile-sheet-enter 220ms cubic-bezier(0.2, 0, 0, 1);
  }

  .orca-mobile-edit-dialog.is-closing {
    animation: orca-mobile-sheet-exit 180ms cubic-bezier(0.4, 0, 1, 1);
  }

  .orca-mobile-edit-dialog.is-dragging {
    -webkit-user-select: none;
    user-select: none;
  }

  .orca-mobile-edit-dialog.is-dragging .orca-mobile-edit-panel {
    will-change: transform;
  }

  .orca-mobile-edit-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 1.5rem 1.5rem 0 0;
    overflow: hidden;
    overscroll-behavior: contain;
    padding: 0;
  }

  .orca-mobile-edit-header {
    flex: 0 0 auto;
    background: #ffffff;
    border-radius: 1.5rem 1.5rem 0 0;
    cursor: grab;
    padding: 0.875rem 1rem 0.75rem;
    touch-action: none;
  }

  .orca-mobile-sheet-handle {
    touch-action: none;
  }

  .orca-mobile-edit-header:active {
    cursor: grabbing;
  }

  .orca-mobile-edit-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
  }

  .orca-manual-form-grid {
    grid-template-columns: 1fr;
  }

  .orca-mobile-sheet-handle {
    width: 3rem;
    height: 0.35rem;
    border-radius: 9999px;
    background: #e2e8f0;
    margin: 0 auto 1rem;
  }

  .orca-preview-frame {
    height: min(68dvh, 34rem);
  }

  .orca-preview-image {
    max-height: min(68dvh, 34rem);
  }

  .orca-documents-header {
    align-items: stretch;
    flex-direction: column;
  }

  .orca-filter-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .orca-search-field {
    flex: 0 1 auto;
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .orca-date-range-filter {
    flex-basis: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orca-menu-panel {
    min-width: 11rem;
  }

  .orca-toast {
    right: 1rem;
    bottom: 1rem;
  }

  .orca-upload-manager {
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 70vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 1rem 1rem 0 0;
  }
}
