.orca-status-filter-option:hover {
  background: #f6f3f5;
}

.orca-status-option-all {
  color: #1b1b1d;
}

.orca-status-option-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.375rem 0.625rem;
}

.orca-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  gap: 0.375rem;
  border-radius: 0.5rem;
  color: #1d4ed8;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0 0.5rem;
  transition: background-color 120ms ease, color 120ms ease;
}

.orca-filter-reset:hover {
  background: #dbeafe;
  color: #1e40af;
}

.orca-filter-reset.hidden {
  display: none;
}

.orca-amount-input {
  font-variant-numeric: tabular-nums;
  width: 9.25rem;
  max-width: 100%;
}

.orca-date-picker {
  position: fixed;
  z-index: 80;
  width: 18rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.orca-date-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  color: #64748b;
}

.orca-date-nav:hover {
  background: #f6f3f5;
  color: #1b1b1d;
}

.orca-date-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border-radius: 0.5rem;
  color: #1b1b1d;
  font-size: 0.8125rem;
  transition: background-color 120ms ease, color 120ms ease;
}

.orca-date-day-placeholder {
  display: block;
  min-height: 2rem;
}

.orca-date-day:hover {
  background: #d8e2ff;
  color: #001a42;
}

.orca-date-day-selected {
  background: #0058be;
  color: #ffffff;
}

.orca-date-day-selected:hover {
  background: #0058be;
  color: #ffffff;
}

.orca-selected-row {
  background: rgba(216, 226, 255, 0.48) !important;
}

.orca-selected-row:hover {
  background: rgba(216, 226, 255, 0.62) !important;
}

.orca-mobile-upload-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.orca-mobile-upload-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 6rem;
  border-radius: 1rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  padding: 1.25rem 0.75rem;
  white-space: nowrap;
}

.orca-mobile-upload-action:active {
  transform: scale(0.99);
}

.orca-mobile-upload-action--primary {
  background: #000000;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.16);
  color: #ffffff;
}

.orca-mobile-upload-action--secondary {
  border: 1px solid #c6c6cd;
  background: #ffffff;
  color: #000000;
}

.orca-mobile-upload-action-icon {
  flex-shrink: 0;
  font-size: 1.875rem;
}

.orca-mobile-overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.orca-mobile-overview-header h1 {
  color: #000000;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.orca-mobile-overview-header span {
  flex-shrink: 0;
  color: #45464d;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.orca-mobile-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.orca-mobile-overview-card {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 1rem;
}

.orca-mobile-overview-card--review {
  border-color: #f4e4cf;
  background: #fff7ed;
}

.orca-mobile-overview-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.orca-mobile-overview-card-header p {
  color: #45464d;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.25;
  margin: 0;
  text-transform: uppercase;
}

.orca-mobile-overview-card-header .lucide-icon {
  flex-shrink: 0;
  color: #0058be;
  font-size: 1.25rem;
}

.orca-mobile-overview-card--review .orca-mobile-overview-card-header p,
.orca-mobile-overview-card--review .orca-mobile-overview-card-header .lucide-icon,
.orca-mobile-overview-card--review .orca-mobile-overview-value {
  color: #98805d;
}

.orca-mobile-overview-value {
  color: #131b2e;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin: 0.625rem 0 0;
}

@media (min-width: 380px) {
  .orca-mobile-upload-action {
    gap: 0.75rem;
    font-size: 1.125rem;
  }

  .orca-mobile-upload-action-icon {
    font-size: 2.125rem;
  }
}

.receipt-search-row.orca-row-updated,
.receipt-search-row.orca-row-updated > td {
  animation: orca-row-updated 900ms ease-out;
}

.orca-receipt-table__col--select,
.orca-receipt-table__col--actions {
  width: 4%;
}

.orca-receipt-table__col--filename {
  width: 30%;
}

.orca-receipt-table__col--vendor {
  width: 20%;
}

.orca-receipt-table__col--date {
  width: 16%;
}

.orca-receipt-table__col--amount {
  width: 12%;
}

.orca-receipt-table__col--status {
  width: 14%;
}

.orca-receipt-table__col--accounting {
  width: 20%;
}

.orca-receipt-table--with-accounting .orca-receipt-table__col--filename {
  width: 23%;
}

.orca-receipt-table--with-accounting .orca-receipt-table__col--vendor {
  width: 15%;
}

.orca-receipt-table--with-accounting .orca-receipt-table__col--date {
  width: 13%;
}

.orca-receipt-table--with-accounting .orca-receipt-table__col--amount {
  width: 10%;
}

.orca-receipt-table--with-accounting .orca-receipt-table__col--status {
  width: 11%;
}

.orca-receipt-table-checkbox {
  display: block;
}

.orca-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  color: #64748b;
  transition: background-color 120ms ease, color 120ms ease;
  cursor: pointer;
}

.orca-icon-button:hover {
  background: #f0edef;
  color: #1b1b1d;
}

.orca-primary-button,
.orca-secondary-button,
.orca-danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  transition: opacity 120ms ease, background-color 120ms ease;
}

.orca-primary-button {
  background: #000000;
  color: #ffffff;
}

.orca-secondary-button {
  border: 1px solid #c6c6cd;
  background: #ffffff;
  color: #1b1b1d;
}

.orca-danger-button {
  background: #fee2e2;
  color: #991b1b;
}

.orca-primary-button:disabled,
.orca-secondary-button:disabled,
.orca-danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.orca-bulk-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.375rem;
  color: currentColor;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.375rem 0.5rem;
  transition: background-color 120ms ease, opacity 120ms ease;
}

.orca-bulk-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.orca-bulk-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.orca-bulk-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.72);
  transition: background-color 120ms ease, color 120ms ease;
}

.orca-bulk-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.orca-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #c6c6cd;
  border-radius: 0.375rem;
  background: #ffffff;
  color: #1b1b1d;
}

.orca-page-button:hover {
  background: #f6f3f5;
}

.orca-page-button-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.orca-page-button-disabled:hover {
  background: #ffffff;
}

.orca-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #c6c6cd;
  color: #45464d;
  font-size: 0.75rem;
  padding: 1rem 1.5rem;
}

.orca-pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.orca-pagination-current {
  color: #45464d;
  font-weight: 600;
  white-space: nowrap;
}

.orca-per-page-menu {
  display: inline-flex;
  width: 9rem;
}

.orca-per-page-summary {
  min-height: 2.25rem;
  gap: 0.25rem;
  padding: 0 0.75rem;
}

.orca-per-page-summary span:first-child {
  white-space: nowrap;
}

.orca-per-page-panel {
  width: 9rem;
  min-width: 9rem;
  padding: 0.375rem;
}

@media (max-width: 767px) {
  .orca-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .orca-pagination-controls {
    justify-content: space-between;
  }
}

.orca-menu {
  display: inline-flex;
}

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

.orca-menu-button,
.orca-menu-link {
  gap: 0.625rem;
  border-radius: 0;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: nowrap;
}

.orca-menu-button .lucide-icon,
.orca-menu-link .lucide-icon {
  flex-shrink: 0;
  color: #64748b;
}

.orca-menu-button.text-\[\#ba1a1a\],
.orca-menu-button.text-\[\#ba1a1a\] .lucide-icon {
  color: #ba1a1a;
}

.orca-menu-button:hover,
.orca-menu-link:hover {
  background: #f6f3f5;
}

.orca-menu-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.orca-menu-button:disabled:hover {
  background: transparent;
}

.orca-status-badge {
  position: relative;
  cursor: help;
}

.orca-status-success {
  background: #dcfce7;
  color: #166534;
}

.orca-status-info {
  background: #e0f2fe;
  color: #075985;
}

.orca-status-warning {
  background: #fef3c7;
  color: #92400e;
}

.orca-status-muted {
  background: #f1f5f9;
  color: #475569;
}

.orca-status-error {
  background: #fee2e2;
  color: #991b1b;
}

.orca-status-ready {
  background: #dbeafe;
  color: #1d4ed8;
}

.orca-status-shimmer {
  background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.64) 50%, rgba(255, 255, 255, 0) 80%);
  background-size: 220% 100%;
  animation: orca-shimmer 1.15s ease-in-out infinite;
}

.orca-status-badge:hover::after {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  z-index: 90;
  width: max-content;
  max-width: 18rem;
  transform: translateX(-50%);
  border-radius: 0.5rem;
  background: #111827;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
  color: #ffffff;
  content: "";
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  padding: 0.5rem 0.625rem;
  pointer-events: none;
  text-align: left;
  white-space: normal;
}

.orca-status-tooltip {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  z-index: 92;
  display: none;
  width: max-content;
  min-width: 14rem;
  max-width: 20rem;
  transform: translateX(-50%);
  border-radius: 0.5rem;
  background: #111827;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  padding: 0.625rem 0.75rem;
  pointer-events: none;
  text-align: left;
  white-space: normal;
}

.orca-status-badge:hover .orca-status-tooltip {
  display: grid;
  gap: 0.25rem;
}

.orca-status-tooltip-row {
  display: block;
}

.orca-status-tooltip-row strong {
  color: #dbeafe;
  font-weight: 700;
}

.orca-status-badge:hover::before {
  position: absolute;
  bottom: calc(100% + 0.25rem);
  left: 50%;
  z-index: 91;
  width: 0.5rem;
  height: 0.5rem;
  transform: translateX(-50%) rotate(45deg);
  background: #111827;
  content: "";
  pointer-events: none;
}
