/* ── Tab badge (count pill on Manage Archive tab) ── */
.aw-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #0090A0;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  margin-left: 6px;
  line-height: 1;
}
.nav-link.active .aw-tab-badge { background: #0090A0; }
.nav-link:not(.active) .aw-tab-badge { background: #aab2bc; }

/* ── Archive sub-tab strip ── */
.aw-archive-subtabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding-left: 4px;
}
.aw-archive-subtab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1px solid #d4dade;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #5a5c69;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.aw-archive-subtab:hover { color: #0090A0; border-color: #0090A0; background: #f8fdfe; }
.aw-archive-subtab.active {
  background: #0090A0;
  color: #fff;
  border-color: #0090A0;
  font-weight: 600;
}
.aw-archive-subtab .aw-tab-badge { background: rgba(255,255,255,0.3); color: #fff; }
.aw-archive-subtab:not(.active) .aw-tab-badge { background: #e6eaee; color: #5a5c69; }

/* ── Selection bar (collapsed when nothing selected) ── */
.aw-selection-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.2s ease, margin-bottom 0.2s ease;
  margin-bottom: 0;
}
.aw-selection-bar.has-selection {
  max-height: 50px;
  opacity: 1;
  margin-bottom: 10px;
}
.aw-selection-bar .aw-sel-count {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
}

/* ── Archive sub-tab helper text + search row ── */
.aw-archive-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.aw-archive-bar .aw-helper {
  font-size: 13px;
  color: #6b7280;
}

/* ── Archived row treatment (in Manage Archive > Archived sub-tab) ── */
.aw-archived-row td {
  background: #f2f4f6 !important;
  color: #b3bac3 !important;
  font-weight: 400 !important;
}
.aw-archived-row:hover td { background: #eaecef !important; }

/* ── Selected row ── */
.aw-selected-row td { background: #fff6e2 !important; }
.aw-selected-row:hover td { background: #fdf0d5 !important; }

/* ── Row checkbox (used in Manage Archive tables only) ── */
.aw-row-check {
  width: 17px;
  height: 17px;
  accent-color: #0090A0;
  cursor: pointer;
}

/* ── Confirm modal ── */
.aw-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,30,36,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1060;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.aw-confirm-overlay.open { opacity: 1; pointer-events: all; }
.aw-confirm-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  width: 460px;
  max-width: 94vw;
  padding: 28px;
  transform: scale(0.95);
  transition: transform 0.18s;
}
.aw-confirm-overlay.open .aw-confirm-card { transform: scale(1); }
.aw-confirm-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
}
.aw-confirm-icon.archive { background: #fdf3da; color: #d8991d; }
.aw-confirm-icon.unarchive { background: #e2f1f3; color: #0090A0; }
.aw-confirm-title {
  font-size: 18px; font-weight: 700; color: #111827;
  text-align: center; margin-bottom: 8px;
}
.aw-confirm-body {
  font-size: 14px; color: #6b7280;
  text-align: center; margin-bottom: 16px; line-height: 1.5;
}
.aw-confirm-list {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 14px;
  max-height: 168px;
  overflow-y: auto;
  margin-bottom: 20px;
  font-size: 13px;
  color: #374151;
}
.aw-confirm-list-item {
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 10px;
}
.aw-confirm-list-item:last-child { border-bottom: none; }
.aw-confirm-list-item .id { font-weight: 600; color: #0090A0; min-width: 44px; }
.aw-confirm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ── Undo toast ── */
.aw-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #14566a;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0,0,0,.3);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  min-width: 280px;
  z-index: 1070;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
.aw-toast.show { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.aw-toast .aw-toast-undo {
  color: #efad2b; font-weight: 700; cursor: pointer; text-decoration: underline; white-space: nowrap;
}
.aw-toast .aw-toast-dismiss {
  margin-left: auto; cursor: pointer; opacity: 0.7; font-size: 16px;
}
.aw-toast .aw-toast-dismiss:hover { opacity: 1; }

/* ── Main-grid inline selection checkbox (revealed only in deposit selection mode) ── */
.rev-sel-check {
  display: none;
  margin-right: 6px;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  accent-color: #0090A0;
  cursor: pointer;
}
#revenueStatementsTable.sel-mode .rev-sel-check { display: inline-block; }
