.view-reimbursement-hub,
.view-reimbursement-submit,
.view-reimbursement-list-staff,
.view-reimbursement-admin,
.view-reimbursement-audit {
  background: #f2f2f7;
}

.rb-hub-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 8px;
}
.rb-hub-stats-top {
  grid-template-columns: 1fr;
  padding-bottom: 0;
}
.rb-hub-stat {
  background: #fff;
  border-radius: 14px;
  padding: 14px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.rb-hub-stat.highlight {
  border: 1px solid rgba(193, 127, 58, 0.28);
  background: linear-gradient(180deg, #fffaf3 0%, #fff 100%);
}
.rb-hub-stat-label { display: block; font-size: 11px; color: #8e8e93; font-weight: 600; }
.rb-hub-stat-value { display: block; margin-top: 6px; font-size: 20px; font-weight: 800; color: #1c1c1e; }
.rb-hub-stat-value.accent { color: #c17f3a; }
.rb-hub-inflight-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 8px;
}
.rb-hub-inflight-col {
  display: flex;
  flex-direction: column;
  min-width: 64px;
}
.rb-hub-inflight-col.grow { flex: 1; }
.rb-hub-inflight-col .rb-hub-stat-value { margin-top: 0; }
.rb-hub-inflight-divider {
  width: 1px;
  background: rgba(193, 127, 58, 0.25);
  margin: 2px 0;
}
.rb-hub-stat-unit {
  margin-top: 2px;
  font-size: 11px;
  color: #8e8e93;
  font-weight: 600;
}
.rb-hub-stats-tip { padding: 0 16px 12px; font-size: 11px; color: #aeaeb2; }
.rb-resubmit-tip {
  margin: 0 16px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffebeb;
  color: #c41e1e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.rba-header { padding: 12px 12px 0; flex-shrink: 0; }
.rba-sum-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rba-sum-row-3 { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.rba-sum-row-4 { grid-template-columns: 1fr 1fr; gap: 8px; }
.rba-sum-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.rba-sum-clickable {
  display: block;
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.rba-sum-clickable:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.rba-sum-tap {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: #007aff;
  font-weight: 600;
}
.rba-sum-row-3 .rba-sum-card,
.rba-sum-row-4 .rba-sum-card { padding: 12px 10px; }
.rba-sum-card .l { display: block; font-size: 11px; color: #8e8e93; font-weight: 600; }
.rba-sum-row-3 .rba-sum-card .l,
.rba-sum-row-4 .rba-sum-card .l { font-size: 11px; }
.rba-sum-card .s {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #aeaeb2;
  font-weight: 500;
  line-height: 1.3;
}
.rba-sum-card .v { display: block; margin-top: 6px; font-size: 20px; font-weight: 800; color: #c17f3a; }
.rba-sum-row-3 .rba-sum-card .v,
.rba-sum-row-4 .rba-sum-card .v { font-size: 16px; margin-top: 4px; word-break: break-all; }
.rba-sum-card.rba-sum-total .v { color: #c17f3a; }
.rba-sum-lifetime {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.rba-sum-lifetime .l { font-size: 12px; color: #8e8e93; font-weight: 600; }
.rba-sum-lifetime .v { font-size: 16px; font-weight: 800; color: #636366; }
.rba-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.rba-export-btn {
  border: 1px solid #c17f3a !important;
  color: #8a5520 !important;
  background: #fff8f0 !important;
  white-space: nowrap;
}
.rba-pdf-progress {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8f0;
  border: 1px solid #f0d2b0;
}
.rba-pdf-progress.hidden { display: none !important; }
.rba-pdf-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5c3a14;
}
.rba-pdf-progress-top strong {
  font-size: 16px;
  color: #c17f3a;
}
.rba-pdf-progress-track {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f3e2cf;
  overflow: hidden;
}
.rba-pdf-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: #c17f3a;
  transition: width 0.25s ease;
}
.rba-pdf-progress-sub {
  margin-top: 6px;
  font-size: 12px;
  color: #8a6a45;
}
.rba-pdf-link-box {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e5ea;
}
.rba-pdf-link-box.hidden { display: none !important; }
.rba-pdf-link-label {
  font-size: 12px;
  color: #636366;
  font-weight: 600;
  margin-bottom: 8px;
}
.rba-pdf-link-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e5e5ea;
  border-radius: 10px;
  background: #f2f2f7;
  font-size: 12px;
  color: #1c1c1e;
  word-break: break-all;
}
.rba-pdf-link-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.rba-pdf-link-btn {
  flex: 1;
  margin: 0 !important;
}
.rba-month, .rba-search {
  border: 1px solid #e5e5ea;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}
.rba-search { flex: 1; min-width: 120px; }
.rba-hint { font-size: 11px; color: #8e8e93; margin: 8px 0 4px; }
.rba-list { flex: 1; min-height: 0; overflow: auto; padding: 8px 12px 24px; }
.rba-row {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.rba-name { font-size: 16px; font-weight: 700; color: #1c1c1e; }
.rba-meta { font-size: 11px; color: #8e8e93; margin-top: 2px; }
.rba-amounts { display: flex; gap: 16px; margin: 10px 0; }
.rba-amt .l { font-size: 11px; color: #8e8e93; margin-right: 4px; }
.rba-amt .v { font-size: 15px; font-weight: 800; color: #1c1c1e; }
.rba-amt .v.muted { color: #636366; font-weight: 700; }
.rba-meta-split {
  width: 100%;
  margin-top: 4px;
  font-size: 11px;
  color: #8e8e93;
  font-weight: 600;
}
.rba-detail-btn {
  width: 100%;
  border: none;
  background: #f2f2f7;
  color: #007aff;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}
.rba-detail-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 80;
  display: flex;
  align-items: flex-end;
}
.rba-detail-mask.hidden { display: none; }
.rba-detail-sheet {
  width: 100%;
  height: 92vh;
  max-height: 92vh;
  background: #f2f2f7;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rba-detail-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid #e5e5ea;
}
.rba-detail-title { font-size: 16px; font-weight: 700; }
.rba-detail-sum {
  padding: 10px 14px;
  font-size: 13px;
  color: #8e8e93;
  background: #fff;
  flex-shrink: 0;
}
.rba-detail-sum #rbaDetailSum { color: #c17f3a; font-weight: 800; font-size: 18px; margin-left: 6px; }
.rba-detail-subhint {
  margin-top: 6px;
  font-size: 11px;
  color: #8e8e93;
  line-height: 1.45;
  font-weight: 500;
}
.rba-detail-subhint b { color: #1c1c1e; font-weight: 800; }
.rba-profit-box {
  margin-top: 10px;
  padding: 10px;
  background: #f8f8fa;
  border-radius: 12px;
}
.rba-profit-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #1c1c1e;
  font-weight: 600;
  margin-top: 4px;
}
.rba-profit-row.muted { color: #8e8e93; font-weight: 500; font-size: 12px; }
.rba-profit-row.tip { color: #8e8e93; font-weight: 500; font-size: 11px; margin-top: 8px; }
.rba-profit-row.total { margin-top: 8px; font-size: 15px; font-weight: 800; }
.rba-profit-row.profit-pos, .a.profit-pos { color: #34c759; }
.rba-profit-row.profit-neg, .a.profit-neg { color: #ff3b30; }
.margin-good { color: #34c759 !important; font-weight: 800; }
.margin-bad { color: #ff3b30 !important; font-weight: 800; }
.margin-na { color: #8e8e93 !important; font-weight: 700; }
.rba-profit-formula {
  margin-top: 6px;
  font-size: 11px;
  color: #aeaeb2;
}
.rba-cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.rba-cost-grid > div {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rba-cost-grid .k { font-size: 11px; color: #8e8e93; font-weight: 600; }
.rba-cost-grid .n { font-size: 13px; font-weight: 800; color: #1c1c1e; }
.rba-tl {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e5e5ea;
}
.rba-tl-head {
  font-size: 13px;
  font-weight: 700;
  color: #1c1c1e;
  margin-bottom: 8px;
}
.rba-tl-node {
  display: flex;
  gap: 10px;
  position: relative;
  padding-bottom: 12px;
}
.rba-tl-node:last-child { padding-bottom: 0; }
.rba-tl-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #007aff;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(0,122,255,0.15);
}
.rba-tl-title { font-size: 13px; font-weight: 700; color: #1c1c1e; }
.rba-tl-meta { font-size: 11px; color: #8e8e93; margin-top: 2px; }
.rba-clue-card .rba-detail-btn { margin-top: 12px; }
.rba-detail-toolbar { flex-shrink: 0; }
/* ??????????????????????? */
.rba-detail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.rba-detail-scroll .rba-detail-body {
  overflow: visible;
  flex: none;
  padding: 12px 14px calc(20px + env(safe-area-inset-bottom));
}
.rba-detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.rba-detail-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.rba-detail-head .t { font-weight: 700; }
.rba-detail-head .a { font-weight: 800; color: #c17f3a; }
.rba-detail-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #636366;
  padding: 3px 0;
}
.rba-detail-note { margin-top: 6px; font-size: 12px; color: #3a3a3c; background: #f8f5f0; padding: 8px; border-radius: 8px; }
.rba-audit { margin-top: 8px; padding-top: 8px; border-top: 1px solid #f2f2f7; }
.rba-audit-title { font-size: 11px; color: #8e8e93; font-weight: 700; margin-bottom: 4px; }
.rba-audit-line { font-size: 11px; color: #636366; line-height: 1.5; }

.rb-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #e5e5ea;
  flex-shrink: 0;
}

.rb-title { font-size: 17px; font-weight: 700; color: #1c1c1e; }

.rb-hub-header { padding: 20px 16px 8px; }
.rb-hub-title { font-size: 22px; font-weight: 800; color: #1c1c1e; }
.rb-hub-sub { font-size: 12px; color: #8e8e93; margin-top: 6px; }

.rb-hub-list { padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 12px; }

.rb-hub-card {
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.rb-hub-card-text { font-size: 16px; font-weight: 700; color: #007aff; display: block; }
.rb-hub-card-desc { font-size: 12px; color: #8e8e93; margin-top: 4px; display: block; }
.rb-hub-arrow { color: #c7c7cc; font-size: 18px; }

.rb-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 24px;
}

.rb-page-header { margin-bottom: 12px; }
.rb-page-title { font-size: 24px; font-weight: 700; color: #1c1c1e; }
.rb-page-desc { font-size: 11px; color: #8e8e93; letter-spacing: 0.5px; margin-top: 4px; }

.rb-section {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.rb-section.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.rb-s-label {
  font-size: 12px;
  font-weight: 600;
  color: #8e8e93;
  margin-bottom: 10px;
  display: block;
}

.rb-section.row .rb-s-label { margin-bottom: 0; }

.rb-hint { font-size: 10px; color: #8e8e93; display: block; margin-top: 4px; }
.rb-hint.warn { color: #ff9500; }

.rb-tag-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.rb-ios-tag {
  padding: 8px 14px;
  background: #f2f2f7;
  border-radius: 8px;
  font-size: 13px;
  color: #3a3a3c;
  border: none;
  cursor: pointer;
}

.rb-ios-tag.on { background: #34c759; color: #fff; font-weight: 600; }

.rb-custom-input {
  margin-top: 10px;
  width: 100%;
  background: #f2f2f7;
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
}

.rb-photo-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.rb-photo-item, .rb-upload-btn {
  width: 72px;
  height: 72px;
  position: relative;
}

.rb-photo-item img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
}

.rb-pdf-box {
  width: 100%;
  height: 100%;
  background: #f2f2f7;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5ea;
  padding: 4px;
  cursor: pointer;
}

.rb-pdf-icon {
  font-size: 10px;
  background: #ff3b30;
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 800;
}

.rb-pdf-name {
  font-size: 9px;
  color: #8e8e93;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rb-del-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff3b30;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
}

.rb-upload-btn {
  background: #f2f2f7;
  border: none;
  font-size: 32px;
  color: #c7c7cc;
  border-radius: 8px;
  cursor: pointer;
}

.rb-amt-input {
  flex: 1;
  text-align: right;
  font-size: 22px;
  font-weight: 700;
  color: #ff3b30;
  border: none;
  background: transparent;
  outline: none;
  max-width: 140px;
}

.rb-row-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.rb-row-cell.border-b { border-bottom: 1px solid #f2f2f7; }

.rb-p-val { font-size: 14px; color: #007aff; font-weight: 500; }
.rb-p-val.gray { color: #8e8e93; }

.rb-ios-area {
  width: 100%;
  min-height: 72px;
  font-size: 14px;
  line-height: 1.4;
  border: none;
  resize: vertical;
  outline: none;
  font-family: inherit;
}

.rb-submit-btn {
  width: 100%;
  margin-top: 8px;
  background: #007aff;
  color: #fff;
  border: none;
  border-radius: 14px;
  height: 48px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,122,255,0.2);
}

.rb-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.rb-switch { width: 44px; height: 24px; }

.rb-filter-panel {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.rb-filter-row { margin-bottom: 12px; }
.rb-filter-row.last { margin-bottom: 0; }
.rb-f-label { font-size: 12px; color: #8e8e93; font-weight: 600; margin-bottom: 8px; display: block; }

.rb-sum-hero {
  background: #1c1c1e;
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  display: flex;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.rb-sum-box { flex: 1.5; }
.rb-sum-box.side { flex: 1; text-align: right; border-left: 1px solid rgba(255,255,255,0.2); padding-left: 12px; }
.rb-sum-label { font-size: 11px; opacity: 0.6; display: block; margin-bottom: 4px; }
.rb-sum-val { font-size: 24px; font-weight: 800; color: #34c759; }
.rb-sum-box.side .rb-sum-val { color: #fff; font-size: 20px; }

.rb-list { padding-bottom: 16px; }

.rb-item-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
}

.rb-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 8px;
}

.rb-item-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rb-t-type { font-size: 16px; font-weight: 700; color: #1c1c1e; }
.rb-t-amount { font-size: 18px; font-weight: 800; color: #ff3b30; flex-shrink: 0; }

.rb-status-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
}

.rb-status-tag.pending_l1,
.rb-status-tag.pending_l2,
.rb-status-tag.pending_l3,
.rb-status-tag.pending_payout { background: #fff7e6; color: #ff9500; }
.rb-status-tag.approved { background: #e6f9eb; color: #34c759; }
.rb-status-tag.rejected { background: #ffebeb; color: #ff3b30; }

.rb-item-body {
  padding: 10px 0;
  border-top: 1px solid #f2f2f7;
  border-bottom: 1px solid #f2f2f7;
}

.rb-date-line { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 12px; }
.rb-date-line .l { color: #8e8e93; }
.rb-date-line .r { color: #3a3a3c; font-weight: 500; }

.rb-note-box { background: #f9f9f9; padding: 8px; border-radius: 6px; margin-top: 8px; }
.rb-note-txt { font-size: 12px; color: #8e8e93; line-height: 1.4; }

.rb-item-footer { padding-top: 10px; text-align: right; font-size: 11px; color: #c7c7cc; }

.rb-empty, .rb-loading { padding: 40px; text-align: center; color: #c7c7cc; }

.rb-hidden-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.rb-upload-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.rba-audit-entry {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  text-align: left;
  border: none;
  background: linear-gradient(135deg, #315b7d, #3f6f91);
  color: #fff;
  border-radius: 14px;
  padding: 14px 14px;
  margin-bottom: 12px;
  cursor: pointer;
}
.rba-audit-entry-title {
  grid-column: 1;
  font-size: 15px;
  font-weight: 800;
}
.rba-audit-entry-desc {
  grid-column: 1;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
}
.rba-audit-entry-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 22px;
  color: rgba(255,255,255,0.55);
}
.rba-audit-entry.has-pending { background: linear-gradient(135deg, #d97706, #b45309); box-shadow: 0 5px 16px rgba(180,83,9,.24); }
.rba-export-range-label { color: #636366; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* 管理员报账看板紧凑布局：顶栏自身已处理状态栏，不再重复下移页面。 */
.view-reimbursement-admin.active { padding-top: 0 !important; }
.view-reimbursement-admin .rb-toolbar {
  padding-top: calc(6px + var(--sat)) !important;
  padding-bottom: 6px;
}
.view-reimbursement-admin .rba-header { padding: 6px 12px 0; }
.view-reimbursement-admin .rba-audit-entry {
  padding: 9px 12px;
  margin-bottom: 7px;
  border-radius: 12px;
}
.view-reimbursement-admin .rba-audit-entry-title { font-size: 14px; }
.view-reimbursement-admin .rba-audit-entry-desc { font-size: 10px; }
.view-reimbursement-admin .rba-sum-row-4 { gap: 6px; }
.view-reimbursement-admin .rba-sum-row-4 .rba-sum-card {
  min-height: 76px;
  padding: 8px 10px;
  border-radius: 12px;
}
.view-reimbursement-admin .rba-sum-row-4 .rba-sum-card .l { font-size: 10px; }
.view-reimbursement-admin .rba-sum-row-4 .rba-sum-card .s {
  min-height: 13px;
  margin-top: 1px;
  font-size: 9px;
  line-height: 1.2;
}
.view-reimbursement-admin .rba-sum-row-4 .rba-sum-card .v {
  margin-top: 2px;
  font-size: 15px;
}
.view-reimbursement-admin .rba-sum-tap { margin-top: 2px; font-size: 9px; }
.view-reimbursement-admin .rba-sum-lifetime {
  margin-top: 6px;
  padding: 7px 10px;
}
.view-reimbursement-admin .rba-filters { gap: 6px; margin-top: 6px; }
.view-reimbursement-admin .rba-month,
.view-reimbursement-admin .rba-search { padding: 6px 9px; }
.view-reimbursement-admin .rba-hint {
  margin: 4px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.view-reimbursement-admin .rba-list { padding-top: 5px; }

.rbaq-header { padding: 10px 12px 0; flex-shrink: 0; }
.view-reimbursement-audit.active { padding-top: 0 !important; }
.view-reimbursement-audit .rb-toolbar { padding-top: calc(6px + var(--sat)) !important; padding-bottom: 6px; }
.rbaq-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.rbaq-tab {
  border: none;
  background: #fff;
  color: #3a3a3c;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.rbaq-tab.on { background: #c17f3a; color: #fff; }
.rbaq-list { flex: 1; min-height: 0; overflow: auto; padding: 8px 12px 24px; }
.rbaq-card {
  width: 100%;
  text-align: left;
  border: none;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  cursor: pointer;
}
.rbaq-card-top, .rbaq-card-mid, .rbaq-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.rbaq-name { font-size: 15px; font-weight: 800; color: #1c1c1e; }
.rbaq-status { font-size: 11px; font-weight: 700; color: #ff9500; background: #fff7e6; padding: 3px 8px; border-radius: 8px; }
.rbaq-status.done { color: #34c759; background: #e6f9eb; }
.rbaq-status.reject { color: #ff3b30; background: #ffebeb; }
.rbaq-card.paid { border: 1px solid rgba(52, 199, 89, 0.2); }
.rbaq-card.rejected { border: 1px solid rgba(255, 59, 48, 0.2); }
.rbaq-note.reject { color: #ff3b30; font-weight: 600; }
.rbaq-detail-note.reject {
  background: #ffebeb;
  border: 1px solid rgba(255, 59, 48, 0.15);
}
.rbaq-detail-note.reject .l { color: #ff3b30; }
.rbaq-type { margin-top: 8px; font-size: 13px; color: #636366; font-weight: 600; }
.rbaq-amt { margin-top: 8px; font-size: 18px; font-weight: 800; color: #ff3b30; }
.rbaq-card-meta { margin-top: 8px; font-size: 11px; color: #8e8e93; }
.rbaq-note { margin-top: 8px; font-size: 12px; color: #636366; line-height: 1.4; }
.rbaq-sheet { padding-bottom: 0; }
.rbaq-sheet-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
.rbaq-detail-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #f2f2f7;
}
.rbaq-detail-line span:first-child { color: #8e8e93; }
.rbaq-detail-note {
  margin: 10px 0;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 8px;
  font-size: 13px;
  color: #3a3a3c;
  line-height: 1.45;
}
/* ???????????????body ?????? */
.rbaq-sheet-scroll .rba-detail-body {
  overflow: visible;
  padding: 12px 14px 4px;
  flex: none;
  min-height: 0;
}
.rbaq-form-row { padding: 8px 14px 10px; background: #fff; }
.rbaq-amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #f2f2f7;
}
.rbaq-amt-input {
  flex: 1;
  min-width: 0;
  max-width: 160px;
  text-align: right;
  font-size: 20px;
  font-weight: 800;
  color: #ff3b30;
  border: 1px solid #e5e5ea;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 8px 10px;
  outline: none;
}
.rbaq-note-area { min-height: 72px; max-height: 120px; }
.rbaq-voucher-preview img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin: 8px 0;
}
.rbaq-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e5e5ea;
  flex-shrink: 0;
  z-index: 2;
}
.rbaq-actions.hidden,
#rbsDetailActions.hidden {
  display: none !important;
}
.rb-resubmit-bar {
  margin: 0 0 12px;
  padding: 14px;
  border-radius: 12px;
  background: #fff7e6;
  border: 1px solid rgba(193, 127, 58, 0.25);
}
.rb-resubmit-bar-tip {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #8a5a1a;
  line-height: 1.45;
}
.rb-resubmit-main {
  width: 100%;
  grid-column: 1 / -1;
}
.rb-card-resubmit {
  width: calc(100% - 24px);
  margin: 0 12px 12px;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 800;
  background: #1c1c1e;
  color: #fff;
  cursor: pointer;
}
.rb-reject-inline .rb-note-txt { color: #ff3b30; font-weight: 600; }
.rbaq-btn {
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.rbaq-btn.reject { background: #ffebeb; color: #ff3b30; }
.rbaq-btn.approve { background: #1c1c1e; color: #fff; }
.rbaq-btn:disabled {
  opacity: 0.68;
  cursor: wait;
}
.rbaq-btn[aria-busy="true"] {
  background: #1677ff;
  color: #fff;
}

.rbaq-detail-block { padding: 0 4px 8px; }
.rbaq-amt-em { color: #ff3b30; font-weight: 800; }
.rbaq-detail-note .l {
  font-size: 12px;
  color: #8e8e93;
  margin-bottom: 4px;
  font-weight: 600;
}
.rbaq-detail-note .t {
  font-size: 14px;
  color: #1c1c1e;
  line-height: 1.45;
}

.rb-attach-section { margin-top: 12px; }
.rb-attach-section-top {
  margin-top: 0;
  margin-bottom: 12px;
  padding: 12px;
  background: #f8f8fa;
  border-radius: 12px;
}
.rb-attach-title {
  font-size: 14px;
  font-weight: 800;
  color: #1c1c1e;
  margin-bottom: 8px;
}
.rb-attach-tip {
  margin-top: 8px;
  font-size: 11px;
  color: #8e8e93;
}
.rb-attach-empty {
  padding: 16px;
  text-align: center;
  color: #aeaeb2;
  font-size: 13px;
  background: #f2f2f7;
  border-radius: 10px;
}
.rb-attach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.rb-attach-item {
  border: none;
  padding: 0;
  background: #e5e5ea;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.rb-attach-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rb-attach-item.pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.rb-attach-pdf {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #ff3b30;
  border-radius: 6px;
  padding: 4px 8px;
}
.rb-attach-name { font-size: 11px; color: #636366; font-weight: 600; }

/* ????????? */
.rb-lines-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.rb-lines-empty {
  padding: 16px 12px;
  text-align: center;
  color: #8e8e93;
  font-size: 13px;
  background: #f2f2f7;
  border-radius: 12px;
}
.rb-line-card {
  background: #f9f9fb;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 12px;
}
.rb-line-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1c1c1e;
}
.rb-line-card-amt { color: #c17f3a; }
.rb-line-card-meta { margin-top: 4px; font-size: 12px; color: #8e8e93; }
.rb-line-card-actions { display: flex; gap: 8px; margin-top: 8px; }
.rb-line-del { color: #ff3b30 !important; }
.rb-add-line-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed #c17f3a;
  border-radius: 12px;
  background: #fffaf3;
  color: #c17f3a;
  font-size: 14px;
  font-weight: 700;
}
.rb-lines-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e5ea;
  font-size: 13px;
  color: #636366;
}
.rb-lines-total strong { font-size: 20px; color: #c17f3a; }

.rb-line-editor-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.rb-line-editor-mask.hidden { display: none !important; }
.rb-line-editor-sheet {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  background: #f2f2f7;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
}
.rb-line-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid #e5e5ea;
  font-weight: 700;
  flex-shrink: 0;
}
.rb-line-editor-scroll {
  flex: 1;
  overflow: auto;
  padding: 12px 0 8px;
  -webkit-overflow-scrolling: touch;
}
.rb-line-editor-actions {
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e5e5ea;
  flex-shrink: 0;
}
.rb-line-editor-actions .rb-submit-btn { margin: 0; }

.rbaq-lines-block { margin-bottom: 12px; }
.rbaq-line-card {
  background: #f9f9fb;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
}
.rbaq-line-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.rbaq-line-amt { color: #c17f3a; }
.rbaq-line-meta { margin-top: 4px; font-size: 11px; color: #8e8e93; }
.rbaq-line-attach { margin-top: 8px; }

/* hidden ??????? .rb-section.row { display:flex } */
.rb-section[hidden],
.rb-section.row[hidden],
.rb-row-cell[hidden],
#rbSingleAmountRow[hidden],
#rbInvoiceRow[hidden],
#rbExpenseLinesSection[hidden],
#rbTypeSection[hidden],
#rbPhotoSection[hidden] {
  display: none !important;
}

.rbaq-sum-card {
  background: #f2f2f7;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.rbaq-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: #636366;
}
.rbaq-sum-row strong {
  font-size: 20px;
  color: #c17f3a;
}
.rbaq-sum-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #8e8e93;
}
.rbaq-lines-table {
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 4px;
}
.rbaq-lines-table .rb-attach-title {
  padding: 10px 12px 6px;
}
.rbaq-lines-tr {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid #e5e5ea;
  font-size: 13px;
  align-items: center;
}
.rbaq-lines-tr .a { font-weight: 700; color: #c17f3a; }
.rbaq-lines-tr .m { font-size: 11px; color: #8e8e93; }
.rb-pdf-preview { position: fixed; inset: 0; z-index: 10050; display: flex; flex-direction: column; background: #eef0f4; padding-top: var(--sat, env(safe-area-inset-top)); }
.rb-pdf-preview-head { flex: 0 0 auto; min-height: 56px; display: grid; grid-template-columns: minmax(72px,1fr) auto minmax(110px,1fr); align-items: center; gap: 8px; padding: 6px 12px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.rb-pdf-preview-head strong { text-align: center; font-size: 17px; }
.rb-pdf-preview-head button { border: 0; background: #f3f4f6; border-radius: 10px; padding: 9px 10px; color: #1677ff; font-size: 14px; }
.rb-pdf-preview-close { justify-self: start; }
.rb-pdf-preview-external { justify-self: end; }
.rb-pdf-preview-tools { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 10px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.rb-pdf-preview-tools button { min-width: 42px; height: 34px; border: 0; border-radius: 9px; background: #eef4ff; color: #1677ff; font-size: 18px; font-weight: 700; }
.rb-pdf-preview-tools .rb-pdf-preview-zoom { min-width: 62px; font-size: 13px; }
.rb-pdf-preview-tools span { margin-left: 4px; color: #8e8e93; font-size: 11px; }
.rb-pdf-preview-status { padding: 14px; text-align: center; color: #6b7280; }
.rb-pdf-preview-status.error { color: #dc2626; }
.rb-pdf-preview-pages { flex: 1 1 auto; overflow: auto; padding: 10px; overscroll-behavior: contain; touch-action: pan-x pan-y; }
.rb-pdf-preview-page { display: block; max-width: none; height: auto; margin: 0 auto 12px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); image-rendering: auto; }
.rba-export-date { min-width: 126px; flex: 1 1 132px; padding: 7px 8px; border: 1px solid #dddfe5; border-radius: 10px; background: #fff; }
.rba-export-date-sep { color: #8e8e93; font-size: 13px; }
