.mt-70 {
  margin-top: 70px;
}
.lh-2 {
  line-height: 2 !important;
}
.lh-1 {
  line-height: 1 !important;
}

.px-2-5 {
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
}

@media (max-width: 991.98px) {
  .px-2-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

.input-group.input-group-outline.is-filled .form-label + .form-control {
  border-color: var(--bs-gray-500) !important;
  border-top-color: transparent !important;
  box-shadow: none !important;
}

.input-group.input-group-outline.is-filled .form-label {
  color: var(--bs-gray-900) !important;
}

.input-group.input-group-outline.is-filled .form-label:before {
  border-top-color: var(--bs-gray-500) !important;
  box-shadow: inset 0 0px var(--bs-gray-500) !important;
}

.input-group.input-group-outline.is-filled .form-label:after {
  border-top-color: var(--bs-gray-500) !important;
  box-shadow: inset 0 0px var(--bs-gray-500) !important;
}
/* Fieldset styling: minimal margins/padding */
.compact-fieldset {
  border: 1px solid #adb5bd;
  /* same border style as before */
  border-radius: 0.25rem;
  /* reduce space between fieldsets */
  padding: 1em;
  /* minimal padding around input */
  position: relative;
  margin-top: -0.4rem;
}

/* Legend styling: smaller font, minimal padding around text */
.compact-fieldset legend {
  font-size: 0.6875rem !important;
  line-height: 1.25 !important;
  margin: 0;
  padding: 0 0.3rem;
  width: auto;
  float: none;
  color: #212529;
}

/* Input styling: smaller font, narrower width, smaller height */
.compact-input {
  font-size: 0.7rem;
  height: 1.2rem;
  width: 60%;
  border: 0;
  margin: 0.1rem 0;
}

.page-item.active .page-link {
  background-color: var(--bs-pagination) !important;
  border-color: var(--bs-pagination) !important;
}
.visibility-hidden {
  visibility: hidden;
}
.display-block {
  display: block;
}

.custom-dropdown {
  max-height: 250px; /* Set max height */
  overflow: hidden; /* Hide overflow outside */
}

.dropdown-scroll {
  max-height: 200px; /* Adjust height as needed */
  overflow-y: auto; /* Enable vertical scroll */
}

.selected-crops {
  display: inline-block;
  max-width: 100%; /* Adjust width as needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.input-group.input-group-outline.is-focused .form-label:before {
  border-top-color: var(--bs-primary) !important;
  box-shadow: inset 0 0px var(--bs-gray-500) !important;
}

.input-group.input-group-outline.is-focused .form-label:after {
  border-top-color: var(--bs-primary) !important;
  box-shadow: inset 0 0px var(--bs-gray-500) !important;
}

.input-group.input-group-outline.is-focused .form-label + .form-control {
  border-color: var(--bs-primary) !important;
  border-top-color: transparent !important;
  box-shadow: none !important;
}

.input-group.input-group-outline button.form-control {
  border-left-color: var(--bs-gray-500) !important;
  border-right-color: var(--bs-gray-500) !important;
  border-bottom-color: var(--bs-gray-500) !important;
}

.input-group.input-group-outline button.form-control.show {
  border-left-color: var(--bs-primary) !important;
  border-right-color: var(--bs-primary) !important;
  border-bottom-color: var(--bs-primary) !important;
}

.input-group.input-group-outline button.form-control.show label::after {
  border-left-color: var(--bs-primary) !important;
}

.input-group.input-group-outline.is-filled:has(.show) > .form-label:before {
  border-top-color: var(--bs-primary) !important;
}
.input-group.input-group-outline.is-filled:has(.show) > .form-label:after {
  border-top-color: var(--bs-primary) !important;
}
.auto-complete-field {
}

/* 


.input-group.input-group-outline.is-focused .form-label + .form-control, .input-group.input-group-outline.is-filled .form-label + .form-control:focus{
    border-color: #922790 !important;
    border-radius: 5px;
}
.form-control:focus {
    border-color: #922790 !important;
    border-top:0!important;
    border-radius: 5px;
}
label.form-check-label,.dropdown.dropdown-hover .dropdown-menu, .dropdown .dropdown-menu{
    transform:none !important;
    color:#212529;
    will-change: auto  !important;
}
 */

.sidenav .nav-link.active {
  background-color: var(--bs-dark) !important; /* Or use #0d6efd */
  color: #fff !important; /* Ensure text is visible */
  border-radius: 0.375rem; /* Optional rounding */
}

.table-secondary {
  --bs-table-bg: var(--bs-dark);
  color: #ffffff;
}

.btn-primary,
.btn.bg-gradient-primary {
  box-shadow: none !important;
  background-image: none !important;
  background-color: var(--bs-dark) !important; /* or your base color */
  border-color: var(--bs-dark) !important;
}

.btn-primary:hover,
.btn.bg-gradient-primary:hover,
.btn-primary:focus,
.btn.bg-gradient-primary:focus,
.btn-primary:active,
.btn.bg-gradient-primary:active,
.btn-primary:focus-visible,
.btn.bg-gradient-primary:focus-visible {
  box-shadow: none !important;
  background-color: var(
    --bs-dark
  ) !important; /* same color as base to avoid change */
  border-color: var(--bs-dark) !important;
  outline: none !important;
}

.btn-outline-primary.active {
  color: #ffffff !important;
}

.text-primary {
  color: var(--bs-dark) !important;
}

.bg-primary {
  background-color: var(--bs-dark) !important;
}

.btn-outline-primary {
  box-shadow: none;
}
.btn-outline-primary:hover:not(.active) {
  background-color: transparent;
  opacity: 0.75;
  box-shadow: none;
  color: var(--bs-dark);
}

.table-cell-custom {
  font-weight: 600;
  font-size: 0.85rem;
  border-color: #ccc !important;
  vertical-align: middle !important;
}

.table-cell-border-middle {
  font-size: 0.85rem !important;
  vertical-align: middle !important;
  border-color: #ccc !important;
}

/* ── Table header ─────────────────────────────────────── */
.app-table thead tr th {
  background-color: #2563eb;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 13px 16px;
  border: none;
  white-space: nowrap;
}
.app-table thead tr th:first-child {
  border-radius: 6px 0 0 0;
}
.app-table thead tr th:last-child {
  border-radius: 0 6px 0 0;
}
.app-table th.px-3,
.app-table td.px-3 {
  padding-left: 0.6rem !important;
}

/* ── Table body ───────────────────────────────────────── */
.app-table tbody tr td {
  padding: 13px 16px;
  vertical-align: middle;
  font-size: 0.875rem;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
}
.app-table tbody tr:last-child td {
  border-bottom: none;
}
.app-table tbody tr:hover td {
  background-color: #dbeafe;
}

/* ── Role badges ──────────────────────────────────────── */
.role-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-admin {
  background-color: #dbeafe;
  color: #1d4ed8;
}
.badge-admin .role-dot {
  background-color: #1d4ed8;
}

.badge-accountant {
  background-color: #dcfce7;
  color: #166534;
}
.badge-accountant .role-dot {
  background-color: #16a34a;
}

.badge-jr {
  background-color: #f3f4f6;
  color: #374151;
}
.badge-jr .role-dot {
  background-color: #9ca3af;
}

/* ── Edit button ──────────────────────────────────────── */
.btn-edit-action {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-color: #d1d5db;
  color: #374151;
  background: #fff;
  margin-bottom: 0rem;
}
.btn-edit-action:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

/* ── Custom pagination ────────────────────────────────── */
.dt-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dt-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
  line-height: 1;
}
.dt-page-btn:hover:not(.disabled):not(.active) {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}
.dt-page-btn.active {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.dt-page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.dt-page-btn.arrow {
  font-size: 1.1rem;
}
.dt-page-btn.ellipsis {
  font-size: 0.95rem;
  letter-spacing: 1px;
  border-color: transparent;
  background: none;
}
.dt-page-btn.ellipsis:hover:not(.disabled) {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  color: #2563eb;
}

.custom-input {
  border: 1px solid #d1d5db !important;
  box-shadow: none !important;
}

.custom-input:focus {
  border: 1px solid #d1d5db !important;
  box-shadow: none !important;
  outline: none !important;
}

.setup-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.step-completed {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.step-active {
  background: #2563eb;
  color: white;
}

.step-pending {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.step-arrow {
  color: #9ca3af;
  font-size: 0.9rem;
}

.saa-notch-field {
  position: relative;
  border: 1px solid #d2d6da;
  border-radius: 0.5rem;
}
.saa-notch-field.saa-notch-error {
  border-color: #fd5c70;
}
.saa-notch-label {
  position: absolute;
  top: -9px;
  left: 12px;
  background: white;
  padding: 0 5px;
  font-size: 0.72rem;
  color: #7b809a;
  line-height: 1;
  z-index: 1;
  white-space: nowrap;
}
.saa-notch-input {
  display: block;
  width: 100%;
  padding: 0.7rem 0.875rem;
  font-size: 0.875rem;
  color: #344767;
  background: transparent;
  border: none;
  outline: none;
  border-radius: 0.5rem;
  appearance: auto;
}
.saa-phone-code {
  width: 115px;
  flex-shrink: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.65rem 0.5rem 0.65rem 0.875rem;
  font-size: 0.875rem;
  color: #344767;
  cursor: pointer;
}
.saa-phone-divider {
  width: 1px;
  background: #d2d6da;
  height: 24px;
  flex-shrink: 0;
}
.saa-phone-number {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.65rem 0.875rem;
  font-size: 0.875rem;
  color: #344767;
}
.saa-btn-outline-danger {
  border: 1.5px solid #fd5c70;
  color: #fd5c70;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.5;
}
.saa-btn-outline-danger:hover {
  background: #fff5f5;
  color: #fd5c70;
}
.saa-btn-outline-warning {
  border: 1.5px solid #f5a623;
  color: #f5a623;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  display: inline-block;
  line-height: 1.5;
}
.saa-btn-outline-warning:hover {
  background: #fffbf0;
  color: #f5a623;
}
.saa-btn-green {
  background-color: #16a34a;
  border: 1.5px solid #16a34a;
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 1.25rem;
  border-radius: 0.375rem;
  cursor: pointer;
  display: inline-block;
  line-height: 1.5;
}
.saa-btn-green:hover {
  background-color: #16a34a;
  border-color: #16a34a;
  color: white;
}

/* Disabled state */
.saa-btn-green:disabled,
.saa-btn-green.disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.custom-tabs {
  gap: 0.5rem;
}

.custom-tab {
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.custom-tab.active {
  color: #2563eb;
  background-color: #dbeafe;
  border-radius: 5px;
}

.custom-tab:hover {
  color: #2563eb;
}

/* ── Company status badges ────────────────────────────── */
.status-badge,
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-status-new {
  background-color: #dbeafe;
  color: #1d4ed8;
}
.badge-status-new .status-dot {
  background-color: #1d4ed8;
}
.badge-status-active {
  background-color: #dcfce7;
  color: #166534;
}
.badge-status-active .status-dot {
  background-color: #16a34a;
}
.badge-status-inactive {
  background-color: #fef9c3;
  color: #92400e;
}
.badge-status-inactive .status-dot {
  background-color: #d97706;
}
.badge-status-archived {
  background-color: #f3f4f6;
  color: #374151;
}
.badge-status-archived .status-dot {
  background-color: #9ca3af;
}

.badge-status-queued {
  background: #fff3e0;
  color: #e65100;
}
.badge-status-completed {
  background: #e8f5e9;
  color: #2e7d32;
}
.badge-status-failed {
  background: #ffebee;
  color: #c62828;
}

.rounded-4 {
  border-radius: 0.85rem !important;
}
.saa-btn-danger {
  border: 1.5px solid #f44335;
  border-color: #f44335;
  background-color: #f44335;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.5;
  color: white;
}

.saa-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='gray' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6' stroke='gray' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.connection-user {
  font-size: 0.875rem;
  color: #374151;
}

.connection-meta,
.connection-empty,
.requests-info {
  font-size: 0.8rem;
  color: #6b7280;
}

.requests-table-wrapper {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.connection-banner {
  background: #e0f2fe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  padding: 14px 18px;
}

.connection-title {
  font-size: 0.875rem;
  color: #1e3a5f;
}

/* ── Reports page layout ─────────────────────────────────────── */
.rp-wrapper {
  display: flex;
  gap: 16px;
  padding: 24px;
  min-height: calc(100vh - 70px);
}

/* ── Inner sidebar ───────────────────────────────────────────── */
.rp-nav {
  width: 180px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: fit-content;
}

.rp-nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  font-size: 13px;
  color: #7b809a;
  text-decoration: none;
  border-radius: 8px;
  margin: 2px 6px;
  transition:
    background 0.15s,
    color 0.15s;
}

.rp-nav-link:hover {
  background: #f4f6fb;
  color: #344767;
  text-decoration: none;
}

.rp-nav-link.active {
  color: #344767;
  font-weight: 700;
  background: #eef2ff;
}

.rp-nav-link i {
  width: 16px;
  text-align: center;
}

/* ── Main panel ──────────────────────────────────────────────── */
.rp-main {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  min-width: 0;
}

/* ── Header ──────────────────────────────────────────────────── */
.rp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

/* ── Selected company chip ───────────────────────────────────── */
.rp-chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.rp-chip-label {
  font-size: 13px;
  font-weight: 600;
  color: #344767;
}

.rp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d2d6da;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  font-size: 13px;
}

.rp-chip-name {
  padding: 4px 12px;
  font-weight: 600;
  color: #344767;
  border-right: 1px solid #d2d6da;
}

.rp-chip-meta {
  padding: 4px 12px;
  color: #7b809a;
  border-right: 1px solid #d2d6da;
}

.rp-switch-btn {
  padding: 4px 12px;
  background: none;
  border: none;
  color: #1a73e8;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
}

.rp-switch-btn:hover {
  text-decoration: underline;
}

/* ── Sync bar ────────────────────────────────────────────────── */
.rp-sync-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f7ff;
  border: 1px solid #bbdefb;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: #344767;
  margin-bottom: 14px;
}

.rp-fetch-btn {
  border: 1px solid #344767;
  color: #344767;
  background: #fff;
  border-radius: 6px;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.rp-fetch-btn:hover {
  background: #f4f6fb;
}

/* ── Filter row ──────────────────────────────────────────────── */
.rp-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.rp-filter-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rp-filter-label {
  font-size: 13px;
  color: #344767;
  font-weight: 500;
}

.rp-select,
.rp-date {
  font-size: 13px;
  color: #344767;
  border: 1px solid #d2d6da;
  border-radius: 6px;
  padding: 5px 10px;
  background: #fff;
}

.rp-select:focus,
.rp-date:focus {
  outline: none;
  border-color: #1a73e8;
}

.rp-generate-btn {
  background: #344767;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.rp-generate-btn:hover {
  background: #1a2b4a;
}

/* ── View button ─────────────────────────────────────────────── */
.rp-view-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.12s;
}

.rp-view-btn:hover {
  background: #f0f0f0;
}

/* ── Pagination ──────────────────────────────────────────────── */
.rp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 0;
  border-top: 1px solid #e8ecf0;
}

.rp-pagination-info {
  font-size: 13px;
  color: #6b7280;
}

.rp-pagination-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}

.rp-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.rp-page-btn:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.rp-page-btn.active {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
  font-weight: 600;
}

.rp-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rp-pagination-perpage {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Footer note ─────────────────────────────────────────────── */
.rp-footer-note {
  margin-top: 8px;
  font-size: 11px;
  color: #b0b7c3;
}

/* ── Empty state ─────────────────────────────────────────────── */
.rp-empty-state {
  text-align: center;
  color: #9e9e9e;
  font-size: 13px;
  padding: 32px 0 16px;
  line-height: 2;
}

.rp-empty-state .rp-empty-primary {
  font-size: 14px;
  font-weight: 500;
  color: #7b809a;
  margin-bottom: 10px;
}

/* ── Screen 15: Generate New Report ─────────────────────────── */
.rp-gen-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.rp-gen-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.rp-gen-divider {
  border-top: 1px solid #f0f0f0;
  margin: 2px 0;
}

.rp-gen-label {
  width: 140px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #344767;
}

.rp-gen-val {
  font-size: 14px;
  color: #344767;
}

.rp-gen-meta {
  color: #7b809a;
  font-weight: 400;
  margin-left: 4px;
}

.rp-gen-conn-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 12px;
  gap: 12px;
}

.rp-gen-conn-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
}

.rp-gen-active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  flex-shrink: 0;
}

.rp-gen-active-label {
  font-weight: 700;
  color: #2e7d32;
  font-size: 13px;
}

.rp-gen-conn-name {
  font-weight: 600;
  color: #344767;
}

.rp-gen-conn-dates {
  color: #7b809a;
  font-size: 12px;
}

.rp-gen-test-btn {
  border: 1px solid #d2d6da;
  background: #fff;
  border-radius: 6px;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #344767;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.rp-gen-test-btn:hover {
  background: #f4f6fb;
}

.rp-gen-info-box {
  background: #f0f7ff;
  border: 1px solid #bbdefb;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #344767;
  margin-top: 14px;
}

.rp-gen-periods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.rp-gen-period-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 18px 20px;
}

.rp-gen-period-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.rp-gen-period-title {
  font-size: 16px;
  font-weight: 700;
  color: #344767;
}

.rp-gen-period-tag {
  font-size: 12px;
  color: #9e9e9e;
}

.rp-gen-period-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rp-gen-period-label {
  font-size: 13px;
  color: #344767;
  font-weight: 500;
  width: 38px;
  flex-shrink: 0;
}

.rp-gen-select {
  font-size: 13px;
  color: #344767;
  border: 1px solid #d2d6da;
  border-radius: 6px;
  padding: 5px 8px;
  background: #fff;
  cursor: pointer;
  appearance: auto;
}
.rp-gen-select:focus {
  outline: none;
  border-color: #1a73e8;
}

.rp-gen-single {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #344767;
  cursor: pointer;
  margin-top: 8px;
  user-select: none;
}

.rp-gen-radio {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
  cursor: pointer;
  border-radius: 50%;
}

.rp-gen-run-btn {
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 26px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.rp-gen-run-btn:hover {
  background: #1b5e20;
}

.as-wrapper {
  width: 100%;
  position: relative;
}

.as-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.as-label {
  font-size: 13px;
  font-weight: 600;
  color: #344767;
  white-space: nowrap;
}

.as-input-wrap {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.as-input {
  width: 100%;
  border: 1px solid #d2d6da;
  border-radius: 8px;
  padding: 8px 38px 8px 12px;
  font-size: 13px;
  color: #344767;
  background: #fff;
  transition: border-color 0.15s;
}

.as-input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.08);
}

.as-input::placeholder {
  color: #b0b7c3;
}

.as-search-icon {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #9e9e9e;
  font-size: 13px;
  pointer-events: none;
}

.as-panel {
  margin-top: 4px;
  border: 1px solid #e8ecf0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: absolute;
  left: 0;
  right: 0;
  z-index: 100;
  max-width: 520px;
}

.as-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #9e9e9e;
  text-transform: uppercase;
  padding: 10px 14px 6px;
}

.as-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  cursor: pointer;
  border-top: 1px solid #f5f5f5;
  transition: background 0.12s;
}

.as-row:hover {
  background: #f0f4ff;
}

.as-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-icon {
  color: #1a73e8;
  font-size: 14px;
  line-height: 1;
}

.as-primary {
  font-size: 13px;
  color: #1565c0;
  font-weight: 500;
}

.as-meta {
  font-size: 12px;
  color: #9e9e9e;
  white-space: nowrap;
}

.as-empty {
  padding: 12px 14px;
  font-size: 13px;
  color: #9e9e9e;
}

.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.no-spinner {
  -moz-appearance: textfield;
}
.clickable-row {
  cursor: pointer;
}

/* ── Override status badges ───────────────────────────── */
.badge-override-done {
  background-color: #dcfce7;
  color: #166534;
}
.badge-override-done .status-dot {
  background-color: #16a34a;
}
.badge-override-partially-done {
  background-color: #fef3c7;
  color: #92400e;
}
.badge-override-partially-done .status-dot {
  background-color: #d97706;
}
.badge-override-pending {
  background-color: #fee2e2;
  color: #991b1b;
}
.badge-override-pending .status-dot {
  background-color: #dc2626;
}

/* ── Company Overrides tab ───────────────────────────────── */

/* Filter bar */
.co-filter-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 20px;
}
.co-filter-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.co-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 160px;
}
.co-filter-group--select {
  flex: 1.5;
}
.co-filter-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0;
}
.co-filter-input {
  border-radius: 6px;
  border: 1px solid #d1d5db !important;
  box-shadow: none !important;
  font-size: 0.875rem;
}
.co-filter-input:focus {
  border-color: #d1d5db !important;
  box-shadow: none !important;
  outline: none !important;
}
.co-filter-clear {
  padding-bottom: 1px;
}
.co-clear-btn {
  white-space: nowrap;
  border-radius: 6px;
  font-size: 0.8rem;
}

/* Summary */
.co-summary {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Sub-text (company code, gbr description) */
.co-sub-text {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Override type badges */
.co-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.co-type-assign {
  background: #eff6ff;
  color: #2563eb;
}
.co-type-new {
  background: #f0fdf4;
  color: #15803d;
}
.co-type-confirm {
  background: #fff7ed;
  color: #c2410c;
}

/* Status pill badges (match screenshot style) */
.co-status-pending {
  background: #fef3c7;
  color: #92400e;
}
.co-status-partial {
  background: #dbeafe;
  color: #1d4ed8;
}
.co-status-done {
  background: #dcfce7;
  color: #166534;
}

/* Progress bar */
.co-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.co-progress-bar {
  width: 100px;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.co-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.co-progress-label {
  font-size: 0.78rem;
  color: #6b7280;
  white-space: nowrap;
}

/* Action buttons */
.co-action-btn {
  font-size: 0.8rem;
  padding: 5px 16px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ── Company Override Review screen ─────────────────────── */

/* Back link */
.cor-back-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: #374151;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cor-back-btn:hover {
  color: #111827;
  text-decoration: underline;
}

/* Page header */
.cor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.cor-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111827;
}
.cor-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
  color: #374151;
}
.cor-meta-label {
  color: #6b7280;
}
.cor-meta-sep {
  color: #d1d5db;
  font-size: 0.75rem;
}
.cor-status-badge {
  font-size: 0.8rem;
  padding: 5px 12px;
  white-space: nowrap;
}

/* Legend box */
.cor-legend {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 0.83rem;
  color: #374151;
  background: #fff;
}
.cor-legend-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
.cor-legend-sep {
  color: #9ca3af;
  margin: 0 2px;
}

/* Progress banner */
.cor-progress-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #92400e;
}
.cor-progress-banner--done {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.cor-progress-icon {
  font-size: 1rem;
  color: #d97706;
  flex-shrink: 0;
}
.cor-progress-icon--done {
  color: #16a34a;
}

/* Review table */
.cor-review-table th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}
.cor-row-confirmed td {
  opacity: 0.65;
}

/* Row status badge */
.cor-row-status-badge {
  font-size: 0.72rem;
  padding: 4px 10px;
  white-space: nowrap;
}
.cor-status-resolved {
  background: #dcfce7;
  color: #166534;
}

/* GL account cell */
.cor-gl-code {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.cor-gl-name {
  font-size: 0.8rem;
  color: #374151;
}

/* DC / balance-type tags */
.cor-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid #d1d5db;
  color: #374151;
  background: #f9fafb;
}

/* Reason badges */
.cor-reason-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.cor-reason-imperfect {
  background: #fef3c7;
  color: #92400e;
}
.cor-reason-new {
  background: #dbeafe;
  color: #1d4ed8;
}
.cor-reason-mismatch {
  background: #fee2e2;
  color: #991b1b;
}
.cor-reason-desc {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.3;
  max-width: 200px;
}

/* GBR classification link style */
.cor-gbr-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
}

/* Decision buttons grid */
.cor-decision-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 6px;
  width: fit-content;
}
.cor-decision-btn {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}
.cor-decision-btn:hover:not(:disabled) {
  border-color: #2563eb;
  color: #2563eb;
}
.cor-decision-btn--active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff !important;
}
.cor-decision-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Override text input */
.cor-override-input {
  font-size: 0.82rem;
  border-radius: 6px;
  border: 1px solid #d1d5db !important;
  box-shadow: none !important;
  width: 260px;
  max-width: 100%;
}

/* Status cell — stacks badge + decision summary */
.cor-status-cell {
  min-width: 110px;
}

/* Decision summary below Resolved badge */
.cor-decision-summary {
  font-size: 0.72rem;
  font-weight: 600;
  color: #16a34a;
  margin-top: 4px;
  white-space: nowrap;
}

/* Footer bar */
.cor-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid #e5e7eb;
  padding: 16px 0 4px;
  margin-top: 8px;
}
.cor-footer-text {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.cor-footer-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cor-footer-save-btn {
  font-size: 0.85rem;
  padding: 7px 18px;
  border-radius: 6px;
  white-space: nowrap;
}
.cor-footer-confirm-btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 20px;
  border-radius: 6px;
  white-space: nowrap;
}

.connection-test-btn {
  font-size: 0.78rem;
  padding: 0.3rem 0.875rem;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  background: #fff;
  color: #3b82f6;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Default row colors */
.row-attention {
  background-color: #f8d7da; /* light red */
}

.row-review {
  background-color: #fff3cd; /* light yellow */
}

.row-confident {
  background-color: #d1e7dd; /* light green */
}

/* Hover colors (slightly darker) */
.row-attention:hover {
  background-color: #f1bfc4;
  transition: background-color 0.2s ease;
}

.row-review:hover {
  background-color: #fbe5a5;
  transition: background-color 0.2s ease;
}

.row-confident:hover {
  background-color: #b8dcc7;
  transition: background-color 0.2s ease;
}

/* GL overrides filter buttons */
.cor-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}
.cor-filter-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cor-filter-btn--all {
  background: #f3f4f6;
  color: #374151;
  border-color: #e5e7eb;
}
.cor-filter-btn--all:hover {
  background: #e5e7eb;
}
.cor-filter-btn--all-active {
  background: #374151;
  color: #fff;
  border-color: #374151;
}

.cor-filter-btn--confident {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}
.cor-filter-btn--confident:hover {
  background: #dcfce7;
}
.cor-filter-btn--confident-active {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.cor-filter-btn--review {
  background: #fffbeb;
  color: #d97706;
  border-color: #fde68a;
}
.cor-filter-btn--review:hover {
  background: #fef3c7;
}
.cor-filter-btn--review-active {
  background: #d97706;
  color: #fff;
  border-color: #d97706;
}

.cor-filter-btn--attention {
  background: #fff1f2;
  color: #dc2626;
  border-color: #fecdd3;
}
.cor-filter-btn--attention:hover {
  background: #ffe4e6;
}
.cor-filter-btn--attention-active {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.reason-column {
  max-width: 350px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.reason-text {
  font-size: 0.82rem;
  color: #111827;
  line-height: 1.4;
}

.reason-note {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

.saa-btn-warning {
  border: 1.5px solid #f5a623;
  color: white;
  background: #f5a623;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  display: inline-block;
  line-height: 1.5;
}

.saa-btn-warning:hover {
  background: #fffbf0;
  color: #f5a623;
}
/* ── Report Comparison View ──────────────────────────────── */
.rc-page {
  background: #f0f2f5;
  min-height: calc(100vh - 70px);
}

.rc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 32px 18px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.rc-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.rc-meta {
  font-size: 0.8rem;
  color: #6b7280;
}
.rc-meta strong {
  color: #374151;
}
.rc-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rc-btn-export {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.rc-btn-export:hover {
  background: #f9fafb;
}
.rc-btn-share {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #16a34a;
  border: 1px solid #16a34a;
  color: #fff;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.rc-btn-share:hover {
  background: #15803d;
}

/* KPI cards */
.rc-kpi-row {
  display: flex;
  gap: 16px;
  padding: 18px 32px 0;
}
.rc-kpi-card {
  flex: 1;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 22px;
}
.rc-kpi-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
  height: 30px;
}
.rc-kpi-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rc-kpi-arrow {
  font-size: 1rem;
}
.rc-kpi-change {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.rc-kpi-change.up-good {
  color: #16a34a;
}
.rc-kpi-change.up-bad {
  color: #dc2626;
}
.rc-kpi-change.down-bad {
  color: #dc2626;
}
.rc-kpi-change.down-good {
  color: #16a34a;
}
.rc-kpi-ab {
  font-size: 0.75rem;
  color: #6b7280;
}

/* AI summary box */
.rc-ai-summary {
  margin: 16px 32px 0;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 14px 18px;
}
.rc-ai-summary-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rc-ai-summary ul {
  margin: 0;
  padding-left: 20px;
}
.rc-ai-narrative {
  font-size: 0.875rem;
  color: #374151 !important;
  line-height: 1.5;
  margin: 0 0 1em 0;
  opacity: 1 !important;
}
.rc-ai-summary li {
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 3px;
  line-height: 1.5;
}

/* Main body */
.rc-body {
  display: flex;
  gap: 16px;
  padding: 16px 32px 32px;
  align-items: flex-start;
}
.rc-tables-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.rc-table-col {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.rc-panel-col {
  width: 275px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}

/* Comparison table header */
.rc-table-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rc-table-hint {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 400;
}

/* Comparison table */
.rc-comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.rc-comp-table thead th {
  background: #2563eb;
  color: #fff;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 12px;
  text-align: left;
  white-space: nowrap;
  border: none;
}
.rc-comp-table thead th.ta-r,
.rc-comp-table tbody td.ta-r {
  text-align: right;
}
.rc-comp-table thead th.ta-c,
.rc-comp-table tbody td.ta-c {
  text-align: center;
}

.rc-section-row td {
  color: #fff;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
}
.rc-row-group td {
  background: #1d4ed8;
  border-bottom: 1px solid #1a44b8;
}
.rc-row-calculated td {
  background: #93c5fd;
  border-bottom: 1px solid #60a5fa;
}
.rc-row-grand-total td {
  background: #1e3a5f;
  border-bottom: 1px solid #152e4d;
}

.rc-cat-row td {
  padding: 9px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
  vertical-align: middle;
}
.rc-cat-row:hover td {
  background: #f9fafb;
}
.rc-cat-row.is-expanded td {
  background: #fffbeb !important;
  font-weight: 700;
}

.rc-child-row td {
  padding: 7px 12px 7px 26px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.78rem;
  color: #374151;
  background: #fffef5;
  vertical-align: middle;
}
.rc-child-row:hover td {
  background: #fefce8;
}
.rc-child-row.is-expanded td {
  background: #fef9c3 !important;
}

.rc-gl-row td {
  padding: 5px 12px 5px 8px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.75rem;
  color: #6b7280;
  background: #fafafa;
  vertical-align: middle;
}
.rc-gl-row:hover td {
  background: #f3f4f6;
}

.rc-total-row td {
  background: #f3f4f6;
  padding: 9px 12px;
  font-weight: 700;
  color: #111827;
  font-size: 0.83rem;
  border-top: 2px solid #d1d5db;
  border-bottom: none;
}
.rc-profit-row td {
  padding: 9px 12px;
  font-weight: 700;
  color: #111827;
  font-size: 0.83rem;
  border-top: 2px solid #374151;
}

.rc-toggle-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.75rem;
  color: #6b7280;
  margin-right: 4px;
  line-height: 1;
  vertical-align: middle;
}
.rc-toggle-btn:hover {
  color: #2563eb;
}

.rc-change-pos {
  color: #16a34a;
  font-weight: 600;
}
.rc-change-neg {
  color: #dc2626;
  font-weight: 600;
}

.rc-evidence-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  white-space: nowrap;
}
.rc-evidence-btn {
  cursor: pointer;
  border: none;
  outline: none;
  display: block;
  margin: 0 auto;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.rc-evidence-btn:hover {
  background: #dbeafe;
  box-shadow: 0 0 0 2px #93c5fd;
}
.rc-evidence-btn:focus-visible {
  box-shadow: 0 0 0 2px #3b82f6;
}
.rc-contrib-bar {
  height: 5px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0;
}
.rc-contrib-fill {
  height: 100%;
  background: linear-gradient(to right, #f59e0b, #d97706);
  border-radius: 3px;
}
.rc-vendor-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  padding: 4px 0;
  border-bottom: 1px solid #f3f4f6;
}
.rc-vendor-name {
  flex: 1;
  font-weight: 600;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc-vendor-amount {
  color: #374151;
  white-space: nowrap;
}
.rc-vendor-amounts {
  display: flex;
  gap: 3px;
  align-items: center;
  white-space: nowrap;
}
.rc-removed-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  white-space: nowrap;
}
.rc-gl-badge {
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  margin-bottom: 10px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc-new-badge {
  display: inline-block;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
}
.rc-link-icon {
  color: #9ca3af;
  font-size: 0.75rem;
  cursor: pointer;
}
.rc-link-icon:hover {
  color: #2563eb;
}
.rc-dash {
  color: #9ca3af;
}

/* Right AI panel */
.rc-panel-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.rc-panel-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
}
.rc-panel-tab {
  flex: 1;
  padding: 10px 8px;
  font-size: 0.77rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  background: none;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  line-height: 1.3;
}
.rc-panel-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: #eff6ff;
}
.rc-panel-body {
  padding: 14px 16px;
}

.rc-conf-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}
.rc-conf-bar {
  height: 7px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}
.rc-conf-fill {
  height: 100%;
  background: linear-gradient(to right, #3b82f6, #1d4ed8);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.rc-conf-pct {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 14px;
}

.rc-expl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  color: #9ca3af;
  font-size: 0.78rem;
  text-align: center;
  gap: 6px;
}
.rc-expl-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 5px;
}
.rc-expl-text {
  font-size: 0.78rem;
  color: #374151;
  line-height: 1.55;
  margin-bottom: 14px;
}
.rc-docs-heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}
.rc-doc-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.rc-doc-no {
  font-size: 0.77rem;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 1px;
}
.rc-doc-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111827;
}
.rc-doc-desc {
  font-size: 0.73rem;
  color: #6b7280;
  margin-bottom: 5px;
}
.rc-doc-amounts {
  font-size: 0.75rem;
  color: #374151;
  margin-bottom: 3px;
}
.rc-doc-hl-red {
  color: #dc2626;
  font-weight: 700;
}
.rc-doc-hl-green {
  color: #16a34a;
  font-weight: 700;
}
.rc-doc-contribution {
  font-size: 0.72rem;
  color: #6b7280;
}

.btn-confirm:disabled {
  background-color: #adb5bd !important;
  border-color: #adb5bd !important;
  color: #ffffff !important;
  opacity: 1 !important;
  cursor: not-allowed;
}
.period-header {
    vertical-align: middle;
    white-space: nowrap;
}

.period-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.period-value {
    display: block;
    font-size: 13px;
    font-weight: 600;
}


