/* 회계 입력: 라벨+칸 한 줄, PC는 가로로 채움, 스크롤 최소. */

.content-fin {
  max-width: none !important;
  padding: 1rem 1rem 3rem !important;
}

.fin-page { width: 100%; max-width: none; }
.fin-page.is-setup,
.fin-page.is-saved:not(.is-work) {
  max-width: 210mm;
  margin-inline: auto;
}
.fin-page .page-title { font-size: 1.125rem; margin: 0; }
.fin-page form { gap: 0.5rem !important; }
.form-card.fin-card { padding: 0.75rem; }
.fin-page.is-setup .fin-card {
  padding: 1.5rem 1.6rem 1.75rem;
  box-shadow: 0 1px 6px rgba(20, 27, 43, 0.06);
}

.fin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
  min-width: 0;
}
.fin-head .page-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.fin { min-width: 0; }
.fin *, .fin *::before, .fin *::after { box-sizing: border-box; }
.fin.is-setup .fin-tabs,
.fin.is-setup .fin-actions,
.fin.is-saved:not(.is-work) .fin-actions { display: none !important; }
.fin.is-saved .fin-tabs { display: flex; }
.fin-setup[hidden],
.fin-work[hidden] { display: none; }
.fin-start {
  margin-top: 0.75rem;
  height: 2.25rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.375rem;
  background: #1e40af;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.fin-dialog {
  border: 0;
  border-radius: 0.75rem;
  padding: 1rem 1.15rem 1.15rem;
  width: min(210mm, calc(100vw - 2rem));
  box-shadow: 0 16px 48px rgba(20, 27, 43, 0.22);
}
.fin-dialog::backdrop { background: rgba(20, 27, 43, 0.45); }
.fin-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.fin-dialog-head strong { font-size: 0.9375rem; color: #141b2b; }

.fin-meta { margin: 0 0 0.4rem; min-width: 0; }
.fin-cover {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.65rem 0.6rem;
  border: 1px solid #e4e7f2;
  border-radius: 0.375rem;
  background: #f8fafc;
}
.fin-cover[hidden] { display: none; }
.fin-cover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.fin-cover-head h3,
.fin-work-title {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}
.fin-cover-head h3 { margin: 0; }
.fin-cover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem 0.75rem;
  margin: 0;
}
.fin-cover-grid div { min-width: 0; }
.fin-cover-grid dt {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 600;
  color: #64748b;
}
.fin-cover-grid dd {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #141b2b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fin-meta-edit {
  flex: 0 0 auto;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1e40af;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.fin-meta-done {
  flex: 0 0 auto;
  height: 2.25rem;
  padding: 0 0.65rem;
  border: 0;
  border-radius: 0.375rem;
  background: #e9edff;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.fin-paper { display: flex; flex-direction: column; gap: 0.7rem; }
.fin-paper-row {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}
.fin-paper-row > label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #585f6c;
  white-space: nowrap;
}
.fin-paper-row .input-field,
.fin-paper-row input {
  width: 100%;
  max-width: none;
  height: 2.15rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.875rem;
  border: 1px solid #c4c5d5;
  border-radius: 0.375rem;
}
.fin-paper-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.fin-members { margin-top: 0.35rem; }
.fin-members-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.fin-members-head > span:first-child {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #585f6c;
}
.fin-members-count {
  font-size: 0.8125rem;
  color: #141b2b;
  font-variant-numeric: tabular-nums;
}
.fin-member-wrap { overflow-x: auto; }
.fin-member-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  table-layout: auto;
  background: #fff;
}
.fin-member-table th,
.fin-member-table td {
  border: 1px solid #cfd2df;
  padding: 0.32rem 0.45rem;
  text-align: left;
  vertical-align: middle;
  font-size: 0.8125rem;
  color: #141b2b;
}
.fin-member-table th {
  background: #f4f5f9;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #585f6c;
  white-space: nowrap;
}
.fin-member-table .fin-member-no {
  width: 2.4rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #585f6c;
  white-space: nowrap;
}
.fin-member-table .is-editing td { background: #eef2ff; }
.fin-member-table .is-added td { overflow-wrap: anywhere; }
.fin-member-draft .fin-add { height: 2.05rem; }
.fin-member-actions {
  white-space: nowrap;
  width: 1%;
}
.fin-member-edit,
.fin-member-del {
  height: 1.85rem;
  padding: 0 0.45rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.fin-member-del { color: #dc2626; }
.fin-member-table input {
  width: 100%;
  min-width: 0;
  height: 2.05rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid #c4c5d5;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-family: inherit;
  box-sizing: border-box;
}
.fin-confirm-dialog {
  width: min(22rem, calc(100vw - 2rem));
  padding: 1.15rem 1.2rem 1.05rem;
}
.fin-confirm-dialog p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #141b2b;
  line-height: 1.45;
}
.fin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}
.fin-confirm-no,
.fin-confirm-yes {
  height: 2.15rem;
  padding: 0 0.9rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.fin-confirm-no {
  border: 1px solid #c4c5d5;
  background: #fff;
  color: #334155;
}
.fin-confirm-yes {
  border: 0;
  background: #dc2626;
  color: #fff;
}

.fin-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.fin-field > span {
  flex: 0 0 auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #585f6c;
  white-space: nowrap;
  margin: 0;
}
.fin-field .input-field,
.fin-field input,
.fin-field select,
.fin-field textarea {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: 2.25rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.875rem;
}
.fin-field textarea { height: auto; min-height: 2.25rem; }
.fin-grow { flex: 1 1 11rem; }
.fin-date { flex: 1 1 9.5rem; }
.fin-narrow { flex: 0 1 7rem; }

.fin-fold { margin-top: 0.35rem; }
.fin-fold > summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: #757684;
  list-style: none;
  white-space: nowrap;
}
.fin-fold > summary::-webkit-details-marker { display: none; }
.fin-fold-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-top: 0.4rem;
}

.fin-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 0;
}
.fin-tab {
  flex: 0 0 auto;
  height: 1.85rem;
  padding: 0 0.55rem;
  border: 1px solid #e4e7f2;
  border-radius: 0.375rem;
  background: #f1f3ff;
  color: #585f6c;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.fin-tab.is-on {
  background: #1e40af;
  border-color: #1e40af;
  color: #fff;
}
.fin-tab[data-phase] {
  background: #fff;
}
.fin-tab[data-phase="사전모임"] {
  margin-left: 0.15rem;
}
.fin-tab[data-phase].is-on {
  background: #1e40af;
  color: #fff;
}
.fin-add {
  flex: 0 0 auto;
  height: 1.85rem;
  background: #e9edff;
  color: #1e40af;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 0.375rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.fin-panel { min-width: 0; }
.fin-panel:not(.is-on) { display: none; }
.fin-subtabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
  min-width: 0;
}
.fin-sub {
  flex: 1 1 0;
  height: 2rem;
  padding: 0 0.35rem;
  border: 1px solid #e4e7f2;
  border-radius: 0.375rem;
  background: #fff;
  color: #585f6c;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.fin-sub.is-on {
  background: #e9edff;
  border-color: #1e40af;
  color: #1e40af;
}
.fin-phase { min-width: 0; }
.fin-phase:not(.is-on) { display: none; }

.fin-list { min-width: 0; }
.fin-list-head { display: none; }

.fin-row {
  background: #fff;
  border: 1px solid #e4e7f2;
  border-radius: 0.5rem;
  padding: 0.4rem;
  min-width: 0;
}
.fin-row + .fin-row { margin-top: 0.3rem; }

.fin-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 9.5rem) 1.75rem;
  gap: 0.35rem;
  align-items: center;
  min-width: 0;
}

.fin-cell { display: flex; align-items: center; gap: 0.3rem; min-width: 0; position: relative; }
.fin-cell-date,
.fin-cell-desc { display: none; }

.fin-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: #585f6c;
  white-space: nowrap;
  flex: 0 0 auto;
}
.fin-cell input,
.fin-cell select {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 2.15rem;
  border: 1px solid #c4c5d5;
  border-radius: 0.375rem;
  padding: 0.25rem 0.4rem;
  font-size: 0.8125rem;
  font-family: inherit;
  background: #fff;
  color: #141b2b;
}
.fin-cell select {
  appearance: auto;
  -webkit-appearance: menulist;
}
.fin-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem !important;
  letter-spacing: 0;
}

.fin-remove {
  width: 1.75rem;
  height: 2.15rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
  flex-shrink: 0;
}
.fin-remove:hover { color: #dc2626; }

.fin-more { margin-top: 0.2rem; min-width: 0; }
.fin-more > summary {
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
  list-style: none;
  white-space: nowrap;
}
.fin-more > summary::-webkit-details-marker { display: none; }
.fin-more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-top: 0.35rem;
  min-width: 0;
}
.fin-more-grid label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}
.fin-more-grid label span {
  flex: 0 0 auto;
  font-size: 0.6875rem;
  color: #757684;
  white-space: nowrap;
}
.fin-more-grid input,
.fin-more-grid select {
  flex: 1;
  min-width: 0;
  height: 2rem;
  border: 1px solid #c4c5d5;
  border-radius: 0.375rem;
  padding: 0.2rem 0.4rem;
  font-size: 0.8125rem;
  font-family: inherit;
}

.fin-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.85rem;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #757684;
}
.fin-foot > span { white-space: nowrap; }
.fin-formula-note {
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  color: #757684;
}
.fin-formula {
  display: block;
  flex-direction: column;
}
.fin-formula p { margin: 0 0 0.35rem; font-size: 0.75rem; color: #475569; }
.fin-foot strong {
  color: #141b2b;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.fin-save-status {
  font-size: 0.75rem;
  color: #757684;
  white-space: nowrap;
}
.fin-page .fin-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  border: 0 !important;
  padding-top: 0.25rem !important;
  margin-top: 0 !important;
}
.fin-page .fin-actions .btn-primary,
.fin-page .fin-actions .btn-ghost {
  flex: 0 0 auto;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.fin-sheet { margin-top: 0.5rem; }
.fin-sheet > summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: #757684;
  list-style: none;
  white-space: nowrap;
}
.fin-sheet > summary::-webkit-details-marker { display: none; }
.fin-sheet-wrap {
  overflow-x: auto;
  margin-top: 0.35rem;
  border: 1px solid #e4e7f2;
  border-radius: 0.5rem;
}
.fin-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.fin-sheet th,
.fin-sheet td {
  padding: 0.3rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid #eef0f6;
  white-space: nowrap;
}
.fin-sheet th:last-child,
.fin-sheet td.num { text-align: right; font-variant-numeric: tabular-nums; }
.fin-sheet th {
  background: #f1f3ff;
  font-size: 0.6875rem;
  color: #757684;
  font-weight: 600;
}
.fin-sheet tbody tr:last-child td { border-bottom: 0; }
.fin-sheet tr.is-in td:first-child { color: #1e40af; font-weight: 600; }
.fin-sheet tr.is-out td:first-child { color: #b45309; font-weight: 600; }
.fin-sheet .is-missing { color: #b91c1c; font-weight: 700; }
.fin-sheet-empty {
  text-align: center !important;
  color: #94a3b8;
  white-space: normal !important;
}

@media (min-width: 768px) {
  .fin-cover-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .content-fin { padding: 0.85rem 1.25rem 2rem !important; }
  .form-card.fin-card { padding: 1rem 1.25rem; }
  .fin-list {
    border: 1px solid #e4e7f2;
    border-radius: 0.5rem;
    overflow: visible;
  }
  .fin-list-head {
    display: grid;
    grid-template-columns: 9.5rem minmax(7.5rem, 9rem) minmax(0, 1fr) 9rem 1.75rem;
    gap: 0.35rem;
    align-items: center;
    padding: 0.3rem 0.5rem;
    background: #f1f3ff;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #757684;
    border-radius: 0.5rem 0.5rem 0 0;
  }
  .fin-list-head span { white-space: nowrap; }
  .fin-row {
    border: 0;
    border-top: 1px solid #e4e7f2;
    border-radius: 0;
    padding: 0.3rem 0.5rem;
    overflow: visible;
  }
  .fin-row + .fin-row { margin-top: 0; }
  .fin-list-head + div > .fin-row:first-child { border-top: 0; }
  .fin-row-main {
    grid-template-columns: 9.5rem minmax(7.5rem, 9rem) minmax(0, 1fr) 9rem 1.75rem;
    overflow: visible;
  }
  .fin-cell { display: block; overflow: visible; }
  .fin-cell-date,
  .fin-cell-desc { display: block; }
  .fin-lbl { display: none; }
  .fin-cell input,
  .fin-cell select { height: 2.15rem; }
  .fin-more { display: none; }
  .fin-more[open] { display: block; }
}

@media (max-width: 767px) {
  .fin-head {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
  }
  .fin-tabs {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
  }
  .fin-tab,
  .fin-add {
    flex: 1 1 4.4rem;
    min-width: 0;
    padding: 0 0.3rem;
    font-size: 0.75rem;
  }
  .fin-foot {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.2rem 0.4rem;
  }
  .fin-foot > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fin-sheet .col-extra { display: none; }
  .fin-grow { flex: 1 1 100%; }
  .fin-cell input,
  .fin-cell select,
  .fin-paper-split { grid-template-columns: 1fr; }
  .fin-field .input-field,
  .fin-field input,
  .fin-field select,
  .fin-paper-row input,
  .fin-member-table input,
  .fin-amount {
    font-size: 16px !important;
  }
}

/* 관리자·신청자 회계 검토: inbound/fin 토큰을 재사용한 한 화면 요약. */
.member-fin,
.admin-fin {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.75rem 0.85rem 0.85rem;
  margin-bottom: 0.75rem;
}
.member-fin-head,
.admin-fin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.65rem;
  margin-bottom: 0.5rem;
}
.member-fin-head h3,
.admin-fin-head h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
}
.member-fin-head .btn-primary {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  text-decoration: none;
}

/* Admin Financial Ledger Redesign — High density, clean dashboard layout */
.admin-submission-show {
  max-width: 100%;
}
.admin-fin {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.admin-fin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}
.admin-fin-head h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}
.admin-fin-head-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.admin-fin-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background: #ffffff;
  margin: 0 0 0.625rem;
  overflow: hidden;
}
.admin-fin-kpi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.125rem;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}
.admin-fin-kpi:nth-child(5n) {
  border-right: 0;
}
.admin-fin-kpi:nth-child(n+6) {
  border-bottom: 0;
  background: #f8fafc;
}
.admin-fin-kpi dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.admin-fin-kpi dd {
  margin: 0;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-fin-kpi.is-money dd {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.admin-fin-kpi.is-warn {
  border-color: #fed7aa;
  background: #fffbeb;
}
.admin-fin-kpi.is-warn dd { color: #b45309; }
.admin-fin-kpi.is-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.admin-fin-kpi.is-ok dd { color: #166534; }
.admin-fin-kpi.is-bad {
  border-color: #fecaca;
  background: #fef2f2;
}
.admin-fin-kpi.is-bad dd { color: #b91c1c; }

.admin-fin-next {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  padding: 0.375rem 0.625rem;
  border: 1px solid #c7d2fe;
  border-radius: 0.375rem;
  background: #eef2ff;
  font-size: 0.75rem;
  color: #1e1b4b;
}
.admin-fin-next strong {
  color: #3730a3;
  white-space: nowrap;
}
.admin-fin-blockers {
  margin: 0 0 0.5rem;
  padding: 0.375rem 0.625rem;
  border: 1px solid #fdba74;
  border-radius: 0.375rem;
  background: #fff7ed;
  font-size: 0.75rem;
  color: #9a3412;
}
.admin-fin-blockers ul {
  margin: 0.15rem 0 0;
  padding-left: 1.125rem;
}

/* Main Tab Switcher for Zero Scroll */
.admin-fin-main-tabs {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-bottom: 2px solid #e2e8f0;
  margin: 0.75rem 0 0.875rem;
  padding-bottom: 0;
}
.admin-fin-main-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.admin-fin-main-tab:hover {
  color: #1e293b;
  border-bottom-color: #cbd5e1;
}
.admin-fin-main-tab.is-on {
  color: #1e40af;
  border-bottom-color: #1e40af;
  font-weight: 700;
}
.admin-fin-main-panel {
  display: none;
}
.admin-fin-main-panel.is-on {
  display: block;
}

.admin-fin-section {
  margin-top: 0.75rem;
  padding-top: 0.625rem;
  border-top: 1px solid #f1f5f9;
}
.admin-fin-section > h4 {
  margin: 0 0 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.admin-fin-cover {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.375rem 0.75rem;
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: #334155;
}
.admin-fin-cover > div {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  min-width: 0;
}
.admin-fin-cover span {
  color: #64748b;
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
}
.admin-fin-cover strong {
  color: #0f172a;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-fin-note {
  margin: 0 0 0.375rem;
  padding: 0.25rem 0.5rem;
  background: #f1f5f9;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #475569;
}
.admin-fin-place {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
  font-size: 0.75rem;
}
.admin-fin-place label {
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}
.admin-fin-place select {
  height: 2rem;
  padding: 0 1.5rem 0 0.5rem;
  font-size: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background: #ffffff;
  color: #1e293b;
}

.admin-fin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background: #ffffff;
}
.admin-fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.admin-fin-table th,
.admin-fin-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
  vertical-align: middle;
  color: #1e293b;
}
.admin-fin-table th {
  background: #f8fafc;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #475569;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.admin-fin-table td.num,
.admin-fin-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.admin-fin-table tfoot th,
.admin-fin-table tfoot td {
  background: #f1f5f9;
  font-weight: 700;
  border-bottom: 0;
  color: #0f172a;
}
.admin-fin-table tr:hover td {
  background-color: #f8fafc;
}
.admin-fin-table tr.is-gap td {
  background: #fff7ed;
}
.admin-fin-table .is-in { color: #1e40af; font-weight: 700; }
.admin-fin-table .is-out { color: #b45309; font-weight: 700; }
.admin-fin-table .is-missing { color: #b91c1c; font-weight: 700; }
.admin-fin-empty {
  text-align: center !important;
  color: #94a3b8;
  white-space: normal !important;
  padding: 1.5rem !important;
}
.admin-fin-meta {
  margin-top: 0.625rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background: #f8fafc;
  font-size: 0.75rem;
  color: #64748b;
}
.admin-fin-meta summary {
  cursor: pointer;
  font-weight: 600;
  color: #475569;
}
.admin-fin-side {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.admin-fin-side details {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.45rem 0.625rem;
}
.admin-fin-side summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

@media (min-width: 768px) {
  .admin-fin-kpis {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .admin-fin-cover {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-fin-side {
    grid-template-columns: minmax(0, 1fr) 18rem;
  }
}
@media (max-width: 767px) {
  .admin-fin { padding: 0.625rem 0.75rem; }
  .admin-fin-table .col-extra { display: none; }
  .admin-fin-place { flex-wrap: wrap; }
  .admin-fin-place select { min-width: 0; width: 100%; max-width: none; }
}
