.fc-workspace {
  --fc-navy: #163447;
  --fc-bronze: #a78155;
  --fc-green: #24724f;
  margin: 18px 0;
  color: var(--fc-navy);
  font-size: 13px;
  line-height: 1.5;
}
.fc-heading,
.fc-section > header,
.fc-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fc-heading {
  margin-bottom: 10px;
}
.fc-heading h2 {
  font-size: 18px;
  margin: 0;
}
.fc-heading p,
.fc-section > header p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #6c7780;
}
.fc-section {
  background: #fff;
  border: 1px solid #e2e6e8;
  border-radius: 12px;
  margin: 10px 0;
  overflow: hidden;
}
.fc-section > header {
  padding: 11px 14px;
  background: #f8fafb;
  border-bottom: 1px solid #e5e9eb;
  flex-wrap: wrap;
  align-items: baseline;
}
.fc-section h3 {
  margin: 0;
  font-size: 14px;
}
.fc-section h4 {
  margin: 0;
  font-size: 13px;
}
.fc-table-scroll {
  overflow-x: auto;
}
.fc-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.fc-table th {
  padding: 8px 12px;
  text-align: left;
  color: #677580;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid #e5e9eb;
  background: #fff;
}
.fc-table td {
  padding: 10px 12px;
  vertical-align: top;
  border-bottom: 1px solid #edf0f2;
  max-width: 280px;
  overflow-wrap: anywhere;
}
.fc-table tr:last-child td {
  border-bottom: 0;
}
.fc-table small,
.fc-linked {
  display: block;
}
.fc-table small {
  font-size: 11px;
  color: #6c7780;
  line-height: 1.5;
  margin-top: 2px;
}
.fc-linked + .fc-linked {
  margin-top: 5px;
}
.fc-table b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.fc-status {
  display: inline-block;
  font-size: 11px;
  color: #8b633d;
  background: #fbf4e9;
  border-radius: 5px;
  padding: 2px 6px;
  margin-top: 4px;
}
.fc-status.is-done {
  color: #236747;
  background: #edf7f0;
}
.fc-proof {
  display: block;
  margin-top: 4px;
  color: #7b5b39;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fc-confirm,
.fc-cancel,
.fc-refresh,
.fc-close {
  font: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.4;
  border-radius: 7px;
  padding: 7px 11px;
  white-space: nowrap;
}
.fc-confirm {
  background: var(--fc-green, #24724f);
  color: #fff;
  border-color: var(--fc-green, #24724f);
}
.fc-confirm:hover {
  background: #1b5c3f;
}
.fc-confirm:disabled {
  opacity: 0.5;
  cursor: wait;
}
.fc-refresh,
.fc-cancel {
  background: #fff;
  color: var(--fc-navy, #163447);
  border-color: #dbe2e6;
}
.fc-refresh:hover,
.fc-cancel:hover {
  background: #f4f7f8;
}
.fc-readonly {
  font-size: 11px;
  color: #74828c;
}
.fc-empty {
  padding: 14px;
  margin: 0;
  font-size: 12px;
  color: #7b858c;
}
.fc-advance-group + .fc-advance-group {
  border-top: 1px solid #e5e9eb;
}
.fc-group-heading {
  padding: 9px 13px;
  background: #fcfcfb;
}
.fc-totals {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.fc-totals span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.fc-totals b {
  font-size: 12px;
  font-weight: 600;
}
.fc-totals small {
  font-size: 11px;
  color: #7b858c;
}
.fc-update,
.fc-error,
.fc-form-error {
  padding: 9px 12px;
  background: #fff5e6;
  color: #805b31;
  border: 1px solid #edddc1;
  border-radius: 7px;
  font-size: 12px;
  margin: 9px 0;
}
.fc-error,
.fc-form-error {
  color: #9b3c32;
  background: #fff3f1;
  border-color: #f2d5cf;
}
.fc-update.hidden,
.fc-form-error.hidden {
  display: none !important;
}
.fc-dialog {
  --fc-green: #24724f;
  --fc-navy: #163447;
  border: 1px solid #d9e1e4;
  border-radius: 14px;
  padding: 0;
  max-width: 460px;
  width: calc(100vw - 30px);
  max-height: calc(100dvh - 32px);
  color: var(--fc-navy);
  box-shadow: 0 20px 70px #16344735;
  overflow: auto;
}
.fc-dialog::backdrop {
  background: #122c4090;
}
.fc-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 17px;
  border-bottom: 1px solid #e4e9ec;
  background: #f8fafb;
}
.fc-dialog h3 {
  margin: 0;
  font-size: 16px;
}
.fc-close {
  padding: 2px 8px;
  font-size: 24px;
  background: transparent;
  color: #647580;
}
.fc-dialog form {
  padding: 14px 17px;
}
.fc-dialog-note {
  margin: 0 0 12px;
  color: #687982;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.fc-dialog label {
  display: block;
  margin: 11px 0;
  font-size: 12px;
  font-weight: 500;
}
.fc-dialog input,
.fc-dialog select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin-top: 5px;
  border: 1px solid #ccd6dc;
  border-radius: 7px;
  background: #fff;
  color: var(--fc-navy);
  padding: 9px 10px;
  font: inherit;
  font-size: 14px;
  min-height: 40px;
}
.fc-dialog input[type='file'] {
  font-size: 12px;
  padding: 8px;
  overflow: hidden;
}
.fc-dialog label small {
  display: block;
  margin: 4px 0;
  color: #7b858c;
  font-size: 11px;
  font-weight: 400;
}
.fc-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
}
.fc-workspace button:focus-visible,
.fc-dialog button:focus-visible,
.fc-dialog input:focus-visible,
.fc-dialog select:focus-visible {
  outline: 2px solid var(--fc-bronze, #a78155);
  outline-offset: 2px;
}
@media (max-width: 700px) {
  .fc-workspace {
    margin: 12px 0;
    font-size: 12px;
  }
  .fc-heading h2 {
    font-size: 16px;
  }
  .fc-section {
    border-radius: 10px;
  }
  .fc-section > header {
    padding: 10px 12px;
    gap: 3px;
  }
  .fc-section > header p {
    flex-basis: 100%;
  }
  .fc-table-scroll {
    overflow: visible;
  }
  .fc-table,
  .fc-table tbody {
    display: block;
    width: 100%;
  }
  .fc-table thead {
    display: none;
  }
  .fc-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 12px;
    padding: 11px 12px;
    border-bottom: 1px solid #e6eaec;
  }
  .fc-table tr:last-child {
    border-bottom: 0;
  }
  .fc-table td {
    display: block;
    min-width: 0;
    max-width: none;
    padding: 0;
    border: 0;
    font-size: 12px;
  }
  .fc-table td:before {
    content: attr(data-label);
    display: block;
    color: #83909a;
    font-size: 10px;
    margin-bottom: 2px;
  }
  .fc-table td:last-child {
    grid-column: 1/-1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
  }
  .fc-table td:last-child:before {
    display: none;
  }
  .fc-cny-table td:last-child {
    text-align: left;
    justify-content: flex-start;
  }
  .fc-cny-table td:last-child small {
    margin: 0;
  }
  .fc-group-heading {
    align-items: flex-start;
    gap: 6px;
  }
  .fc-totals {
    justify-content: flex-end;
    gap: 4px;
  }
  .fc-totals span {
    gap: 4px;
  }
  .fc-totals b {
    font-size: 11px;
  }
  .fc-confirm {
    padding: 7px 10px;
    font-size: 12px;
  }
  .fc-dialog {
    max-height: calc(100dvh - 24px);
  }
  .fc-dialog input,
  .fc-dialog select {
    font-size: 16px;
  }
  .fc-dialog footer {
    padding-bottom: 2px;
  }
}

.fc-proof-add {
  display: block;
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px dashed #bd8b35;
  border-radius: 10px;
  color: #a9792b;
  text-align: center;
  font-size: 38px;
  line-height: 62px;
  cursor: pointer;
}
.fc-dialog .fc-proof-add input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 64px;
  height: 64px;
  cursor: pointer;
  padding: 0;
}
/* Approved platform batch ledger: eleven columns, with one expandable detail. */
.fc-contextual > .fc-heading {
  display: none;
}
.fc-batch-ledger {
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  overflow: hidden;
}
.fc-batch-head,
.fc-batch-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1.1fr 0.65fr 1fr 0.75fr 1fr 0.9fr 0.85fr 0.95fr minmax(
      max-content,
      1.55fr
    );
}
/* 操作列：确认收到 USD（或 AMIN 的“付款单”）在左、“查看”在右，同一行不折行。 */
.fc-batch-cell-10 {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.fc-batch-cell-10 > button,
.fc-batch-cell-10 > .fc-readonly {
  flex: none;
  white-space: nowrap;
}
.fc-batch-cell-10 > .fc-confirm {
  padding: 8px 12px;
  font-weight: 700;
}
.fc-batch-head {
  background: #f2f5f8;
  font-size: 13px;
}
.fc-batch-head > b,
.fc-batch-cell {
  padding: 14px 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.fc-batch-group + .fc-batch-group {
  border-top: 1px solid #d9e0e7;
}
.fc-batch-row {
  font-size: 14px;
  align-items: center;
}
.fc-batch-cell small {
  display: block;
  color: #74808b;
  margin-top: 6px;
}
.fc-batch-tour {
  display: block;
}
/* 团号与“N 团 / N 单”可点：蓝色下划线链接。 */
button.fc-team-link,
.fc-batch-count {
  border: 0;
  background: none;
  padding: 2px 0;
  font: inherit;
  color: #1f5f9e;
  text-align: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
button.fc-team-link:hover,
.fc-batch-count:hover {
  color: #0f3f70;
}
button.fc-team-link:focus-visible,
.fc-batch-count:focus-visible {
  outline: 2px solid #c4a171;
  outline-offset: 2px;
}
.fc-batch-view {
  border: 1px solid #c4a171;
  color: #7a542b;
  border-radius: 5px;
  background: transparent;
  padding: 8px 12px;
  white-space: nowrap;
  font-weight: 700;
}
.fc-batch-detail {
  padding: 16px 24px;
  background: #fafbfd;
}
.fc-batch-detail table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}
.fc-batch-detail th,
.fc-batch-detail td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #d9e0e7;
  overflow-wrap: anywhere;
}
.fc-batch-detail p {
  margin: 12px 0 0;
  text-align: right;
}
.fc-carry-sources small,
.fc-batch-detail td small {
  display: block;
  margin-top: 4px;
}
.fc-carry-sources p {
  text-align: start;
  overflow-wrap: anywhere;
}
.fc-batch-group [hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .fc-batch-ledger {
    border: 0;
    overflow: visible;
  }
  .fc-batch-head {
    display: none;
  }
  .fc-batch-group {
    border: 1px solid #d9e0e7;
    border-radius: 10px;
    margin: 12px 0;
    overflow: hidden;
  }
  .fc-batch-group + .fc-batch-group {
    border-top: 1px solid #d9e0e7;
  }
  .fc-batch-row {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    gap: 0;
  }
  .fc-batch-cell {
    padding: 8px;
    font-size: 14px;
  }
  .fc-batch-cell-0 {
    grid-column: 1/-1;
    font-size: 17px;
  }
  .fc-batch-cell-1 {
    grid-column: 1/-1;
  }
  .fc-batch-cell-1 small {
    display: inline;
    margin-left: 10px;
  }
  .fc-batch-cell-2 {
    grid-column: 1/-1;
  }
  .fc-batch-tour,
  button.fc-batch-tour {
    display: inline-block;
    margin-right: 8px;
    padding: 4px 8px;
    border: 1px solid #d9e0e7;
    border-radius: 5px;
  }
  .fc-batch-cell-3 {
    grid-column: 1/-1;
    color: #74808b;
    grid-row: 3;
  }
  .fc-batch-cell-4:before,
  .fc-batch-cell-5:before,
  .fc-batch-cell-6:before,
  .fc-batch-cell-7:before {
    content: attr(data-label);
    display: block;
    color: #74808b;
    font-size: 12px;
    margin-bottom: 8px;
  }
  .fc-batch-cell-4,
  .fc-batch-cell-5,
  .fc-batch-cell-6,
  .fc-batch-cell-7 {
    border-top: 1px solid #e3e7eb;
  }
  .fc-batch-cell-8 {
    grid-column: 2;
    grid-row: 7;
    border-top: 1px solid #e3e7eb;
  }
  .fc-batch-cell-8:before {
    content: '到账日期 ';
    color: #74808b;
  }
  .fc-batch-cell-9 {
    grid-column: 1;
    grid-row: 7;
    border-top: 1px solid #e3e7eb;
  }
  .fc-batch-cell-10 {
    grid-column: 1/-1;
    text-align: center;
  }
  .fc-batch-cell-10 > button,
  .fc-batch-cell-10 > .fc-readonly {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
  }
  .fc-batch-detail {
    padding: 12px;
  }
  .fc-batch-detail th,
  .fc-batch-detail td {
    padding: 8px 4px;
    font-size: 12px;
  }
}
.fc-advance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.fc-advance-summary article {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #dbe3eb;
  padding: 20px;
  border-radius: 7px;
  background: #f7fbff;
}
.fc-advance-summary article:nth-child(2) {
  background: #f4fbf8;
}
.fc-advance-summary article:nth-child(3) {
  background: #fff8ed;
}
.fc-advance-summary span,
.fc-advance-summary b {
  display: block;
}
.fc-advance-summary b {
  margin-top: 10px;
  font-size: 28px;
}
.fc-advance-focus > header > button {
  border: 0;
  background: transparent;
  color: #55657a;
  padding: 0;
}
.fc-advance-focus > header > h2 {
  margin: 12px 0;
}
.fc-advance-focus form {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #dbe3eb;
  padding: 14px;
  margin-bottom: 20px;
}
.fc-advance-focus form > input {
  flex: 1;
  min-width: 0;
}
.fc-advance-focus form input,
.fc-advance-focus form select {
  padding: 10px;
  border: 1px solid #dbe3eb;
  border-radius: 5px;
  background: #fff;
}
.fc-advance-focus form button {
  padding: 10px 20px;
  border: 1px solid #b98332;
  border-radius: 5px;
  background: #fff;
  color: #75511f;
}
.fc-advance-focus form button[type='submit'] {
  background: #c68b26;
  color: #fff;
}
.fc-advance-ledger-head,
.fc-advance-ledger-row {
  display: grid;
  grid-template-columns: 0.7fr 0.8fr 0.8fr 1fr 0.95fr 1.2fr 1fr 0.9fr 0.9fr 0.7fr;
}
.fc-advance-ledger-head {
  background: #f0f5fa;
}
.fc-advance-ledger-head b,
.fc-advance-ledger-row > div {
  padding: 16px 8px;
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: 14px;
  border-bottom: 1px solid #dbe3eb;
}
.fc-advance-ledger-item [hidden] {
  display: none !important;
}
.fc-advance-ledger-item [data-fc-advance-detail] {
  padding: 16px;
  background: #f8fbfd;
}
.fc-transfer-summary {
  margin: 12px 0 20px;
  padding: 16px;
  background: #fff8f0;
  border: 1px solid #eed6b8;
  border-radius: 6px;
}
.fc-transfer-summary > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  margin: 6px 0;
}
.fc-transfer-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.fc-transfer-confirm-dialog [data-fc-form] > label {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.fc-transfer-confirm-dialog .fc-dialog-note:empty {
  display: none;
}
.fc-source-proofs {
  padding: 12px 0;
  display: grid;
  gap: 8px;
}
.fc-source-proofs > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fc-source-proofs small {
  color: var(--muted, #6f7c85);
}
.fc-transfer-confirm-dialog footer .fc-cancel {
  display: none;
}
.fc-transfer-confirm-dialog footer .fc-confirm {
  width: 100%;
}
.fc-input-unit {
  display: flex;
  align-items: stretch;
  min-width: 0;
}
.fc-input-unit input {
  width: 0 !important;
  flex: 1;
  border-start-end-radius: 0 !important;
  border-end-end-radius: 0 !important;
}
.fc-input-unit > b {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #dbe3eb;
  border-inline-start: 0;
  background: #eff5fa;
  font-weight: 500;
  border-start-end-radius: 5px;
  border-end-end-radius: 5px;
}
#mainContent:has(> #ownerFinanceCollaboration .fc-advance-focus) > #workbenchPage,
#mainContent:has(> #ownerFinanceCollaboration .fc-advance-focus) > #teamDirectory {
  display: none !important;
}
.fc-transfer-query {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe3eb;
  border-radius: 6px;
  margin-bottom: 16px;
}
.fc-transfer-query label,
.fc-transfer-dates {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.fc-transfer-query label {
  min-width: 0;
}
.fc-transfer-query input {
  min-width: 0;
  width: 130px;
  padding: 10px;
  border: 1px solid #dbe3eb;
  border-radius: 5px;
  font: inherit;
}
.fc-transfer-query button {
  padding: 10px 16px;
  border: 1px solid #bc883c;
  color: #855e29;
  background: #fff;
  border-radius: 5px;
  white-space: nowrap;
}
.fc-transfer-query button[type='submit'] {
  background: #bc883c;
  color: white;
}
.fc-china-transfer .fc-transfer-query {
  flex-wrap: wrap;
}
.fc-china-transfer .fc-transfer-query > label {
  flex: 1 1 220px;
  min-width: 200px;
}
.fc-china-transfer .fc-transfer-query > label input {
  flex: 1;
  width: 0;
}
.fc-china-transfer .fc-table th,
.fc-china-transfer .fc-table td {
  border: 1px solid #dce7ef;
}
.fc-china-transfer .fc-table th {
  background: #edf4fa;
}
@media (max-width: 760px) {
  .fc-china-transfer .fc-table tr {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .fc-china-transfer .fc-table td:nth-child(1),
  .fc-china-transfer .fc-table td:nth-child(2) {
    grid-row: 1;
  }
  .fc-china-transfer .fc-table td:nth-child(2) {
    text-align: right;
  }
  .fc-china-transfer .fc-table td:nth-child(-n + 2)::before {
    display: none;
  }
  .fc-china-transfer .fc-table td:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .fc-china-transfer .fc-table td:nth-child(3)::before {
    display: inline;
    margin-right: 8px;
  }
  .fc-china-transfer .fc-table td:nth-child(n + 4):nth-child(-n + 8) {
    grid-column: 1;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 8px;
  }
  .fc-china-transfer .fc-table td:nth-child(n + 4):nth-child(-n + 8)::before {
    font-size: 12px;
    margin: 0;
  }
  .fc-china-transfer .fc-table td:last-child {
    grid-column: 2;
    grid-row: 3 / 6;
    align-self: center;
  }
  .fc-china-transfer .fc-table td {
    border: 0;
  }
}
.fc-receipt-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.fc-receipt-tabs h2 {
  margin: 0 15px 0 0;
}
.fc-receipt-tabs button {
  padding: 12px 18px;
  border: 1px solid #d5dfe8;
  background: #fff;
  color: #152b40;
  font-weight: 700;
  border-radius: 5px;
}
.fc-receipt-tabs button.active {
  background: #bc883c;
  color: #fff;
}
#mainContent:has(> #egyptFinanceCollaboration .fc-receipt-focus)
  > [data-finance-workbench][data-finance-tab-active='receipts'] {
  display: none !important;
}
#mainContent:has(> [data-finance-workbench][data-finance-tab-active='receipts']) {
  display: flex;
  flex-direction: column;
}
#mainContent:has(> [data-finance-workbench][data-finance-tab-active='receipts'])
  > #egyptFinanceCollaboration {
  order: -1;
}
#mainContent:has(> [data-af-page][data-finance-tab-active='receipts'])
  > #egyptFinanceCollaboration {
  order: 1;
}
.fc-inline-confirm {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}
.fc-inline-confirm label[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .fc-advance-summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .fc-advance-summary article {
    padding: 12px 18px;
  }
  .fc-advance-summary b {
    font-size: 24px;
    margin-top: 4px;
  }
  .fc-advance-focus form {
    gap: 8px;
    padding: 8px;
  }
  .fc-advance-focus form label {
    font-size: 0;
  }
  .fc-advance-focus form select {
    font-size: 13px;
    max-width: 85px;
  }
  .fc-advance-focus form button {
    padding: 10px;
  }
  .fc-advance-focus form [data-fc-advance-reset] {
    display: none;
  }
  .fc-advance-ledger-head {
    display: none;
  }
  .fc-advance-ledger-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #dbe3eb;
    border-radius: 7px;
    padding: 10px;
    margin-bottom: 12px;
  }
  .fc-advance-ledger-row > div {
    border: 0;
    padding: 5px;
    font-size: 13px;
  }
  .fc-advance-ledger-row > div:nth-child(3),
  .fc-advance-ledger-row > div:nth-child(4),
  .fc-advance-ledger-row > div:nth-child(6) {
    grid-column: 1/-1;
  }
  .fc-advance-ledger-row > div:nth-child(5) {
    grid-row: 1;
    grid-column: 3;
  }
  .fc-advance-ledger-row > div:nth-child(10) {
    grid-row: 2;
    grid-column: 3;
    text-align: right;
  }
  .fc-advance-ledger-row > div:nth-child(7):before,
  .fc-advance-ledger-row > div:nth-child(8):before,
  .fc-advance-ledger-row > div:nth-child(9):before {
    content: attr(data-label);
    display: block;
    color: #697a8d;
    font-size: 11px;
  }
  .fc-advance-ledger-row > div:nth-child(3):before,
  .fc-advance-ledger-row > div:nth-child(4):before,
  .fc-advance-ledger-row > div:nth-child(6):before {
    content: attr(data-label) '：';
    color: #697a8d;
    font-size: 12px;
  }
  .fc-advance-ledger-row > div:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .fc-advance-ledger-row > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .fc-advance-ledger-row > div:nth-child(3) {
    grid-column: 1/3;
    grid-row: 2;
  }
  .fc-advance-ledger-row > div:nth-child(4) {
    grid-column: 1/3;
    grid-row: 3;
  }
  .fc-advance-ledger-row > div:nth-child(6) {
    grid-column: 1/-1;
    grid-row: 4;
  }
  .fc-advance-ledger-row > div:nth-child(7) {
    grid-column: 1;
    grid-row: 5;
  }
  .fc-advance-ledger-row > div:nth-child(8) {
    grid-column: 2;
    grid-row: 5;
  }
  .fc-advance-ledger-row > div:nth-child(9) {
    grid-column: 3;
    grid-row: 5;
  }
  .fc-advance-ledger-row > div:nth-child(10) {
    grid-column: 3;
    grid-row: 2/4;
    align-self: start;
  }
  .fc-transfer-query {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .fc-transfer-query label,
  .fc-transfer-dates {
    grid-column: 1/-1;
  }
  .fc-transfer-query label input {
    flex: 1;
    width: 0;
  }
  .fc-transfer-dates input {
    flex: 1;
    width: 0;
  }
  .fc-transfer-query label,
  .fc-transfer-dates {
    font-size: 12px;
  }
  .fc-receipt-tabs {
    flex-wrap: wrap;
  }
  .fc-receipt-tabs h2 {
    width: 100%;
  }
  .fc-receipt-tabs button {
    flex: 1;
    padding: 12px 8px;
  }
  .fc-transfer-confirm-dialog [data-fc-form] > label {
    grid-template-columns: 95px minmax(0, 1fr);
    font-size: 13px;
  }
}

.fc-receipt-focus > .fc-section > header {
  display: none;
}
.fc-table td bdi {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.fc-advance-summary svg {
  box-sizing: content-box;
  width: 26px;
  height: 26px;
  padding: 15px;
  border-radius: 50%;
  background: #deebf8;
  stroke: #336b9f;
  fill: none;
  stroke-width: 1.8;
  flex: none;
}
.fc-advance-summary article:nth-child(2) svg {
  background: #e1f1e8;
  stroke: #2d9061;
}
.fc-advance-summary article:nth-child(3) svg {
  background: #faead3;
  stroke: #bd8737;
}
.fc-advance-type {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.fc-advance-type.is-refund {
  color: #38749f;
  background: #e8f3fb;
}
.fc-advance-type.is-expense {
  color: #a56b1d;
  background: #fcf0df;
}
.fc-transfer-confirm-dialog .fc-upload-label {
  grid-column: 2;
  font-size: 13px;
  color: #667b90;
}
@media (max-width: 760px) {
  .fc-table td bdi {
    display: block;
  }
  .fc-advance-summary svg {
    width: 22px;
    height: 22px;
    padding: 10px;
  }
  .fc-advance-type {
    padding: 4px;
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  .fc-receipt-tabs h2 {
    display: none;
  }
}

@media (max-width: 760px) {
  .fc-table tr[data-fc-kind='transfers'] td bdi {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* 财务协作页签（老板 2026-10-19）：单行，窄屏在条内横滑；选中项沿用 guhu-theme 金色。 */
#appView .fc-collab-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
#appView .fc-collab-tabs > button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #d9e0e7;
  border-radius: 999px;
  background: #fff;
  color: #24364a;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
#appView .fc-collab-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--archive-gold-100, #fff3d4);
  color: var(--archive-gold-700, #997027);
  font-size: 12px;
  text-align: center;
}
#appView .fc-collab-count.is-zero {
  background: #eef1f4;
  color: #8a96a3;
}
#appView .fc-collab-tabs > button[aria-selected='true'] .fc-collab-count {
  background: rgb(255 255 255 / 85%);
  color: var(--archive-gold-700, #997027);
}
/* 财务协作统一页头：标题与“返回结算进度”同一行，下一行页签条；6 个页签位置一致。 */
#appView .fc-collab-frame {
  margin: 0 0 4px;
}
#appView .fc-collab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
#appView .fc-collab-head h2 {
  margin: 0;
  font-size: 22px;
  color: #24364a;
}
#appView .fc-collab-back {
  flex: none;
  min-height: 40px;
}
