.panel-kicker {
  margin: 0 0 7px;
  color: #8d97b1;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .18em;
}
.auto-pill {
  display: inline-block;
  padding: 5px 8px;
  color: #2f55f0;
  background: #e9eeff;
  border: 1px solid #dbe3ff;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .08em;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.calc-card {
  padding: 13px 12px 11px;
  background: #f7f9fe;
  border: 1px solid #e6ebf6;
  border-radius: 9px;
}
.calc-card span { display: block; color: #8f99b0; font-size: 8.5px; }
.calc-card b {
  display: block;
  margin-top: 7px;
  color: #172247;
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.calc-card small { display: block; margin-top: 4px; color: #a3abc0; font-size: 7.5px; }
.rate-grid { align-items: end; }
.readonly-box {
  min-height: 35px;
  padding: 9px 10px;
  color: #6e7892;
  background: #f7f9fe;
  border: 1px solid #e6ebf6;
  border-radius: 7px;
  font-size: 9px;
  line-height: 1.5;
}
.rate-hint { margin-top: 8px; }
.brand-admin-row { display: flex; align-items: flex-start; gap: 14px; }
.brand-preview {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  padding: 3px;
  overflow: hidden;
  background: linear-gradient(135deg, #2f55f0, #7b4dff);
  border-radius: 15px;
}
.brand-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center top; background: #fff; border-radius: 12px; }
.brand-admin-fields { flex: 1; min-width: 0; }
.brand-upload-row { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.brand-upload-row .admin-btn { height: 28px; font-size: 8px; }
.admin-footnote { margin: 0 2px; color: #9aa3b8; font-size: 8px; line-height: 1.6; }
.admin-footnote a { color: #7585c9; }
.admin-nav button .nav-symbol {
  width: 22px;
  color: #6e7b98;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 500;
}
.admin-nav button.is-active .nav-symbol { color: rgba(255, 255, 255, .72); }
.preview-actions #previewReload {
  width: 27px;
  height: 27px;
  color: #8590a6;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
}
.preview-actions #previewReload:hover { background: #f0f3fa; border-color: #e0e4ef; }
.field-hint span { color: #66718d; }
@media (max-width: 1100px) {
  .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .calc-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .calc-card { padding: 11px 10px; }
  .calc-card b { font-size: 14px; }
  .brand-admin-row { flex-direction: column; }
  .brand-preview { width: 52px; height: 52px; flex-basis: 52px; }
  .brand-admin-fields { width: 100%; }
}

[hidden] { display: none !important; }
.procurement-admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 17px 0 22px;
}
.procurement-admin-summary > div {
  padding: 11px 10px;
  background: #f7f9fe;
  border: 1px solid #e7ebf5;
  border-radius: 8px;
}
.procurement-admin-summary span { display: block; color: #929cb2; font-size: 8px; }
.procurement-admin-summary b { display: block; margin-top: 6px; color: #263250; font-size: 14px; font-weight: 550; letter-spacing: -.02em; }
.purchase-list-head { margin-bottom: 14px; }
.admin-purchase-list { border-top: 1px solid #edf0f7; }
.admin-purchase-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1.3fr) minmax(80px, .7fr) 80px 46px;
  gap: 9px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f7;
}
.admin-purchase-row .p-date { color: #929cb2; font-size: 8px; }
.admin-purchase-row .p-main b { display: block; color: #3f4b68; font-size: 9.5px; font-weight: 550; }
.admin-purchase-row .p-main small { display: block; margin-top: 3px; color: #9ba4b9; font-size: 7.5px; }
.admin-purchase-row .p-money { color: #3f4b68; font-size: 9px; text-align: right; }
.admin-purchase-row .p-money small { display: block; margin-top: 3px; color: #9ba4b9; font-size: 7.5px; }
.admin-purchase-row .p-images { display: flex; gap: 3px; }
.admin-purchase-row .p-images img { width: 22px; height: 22px; object-fit: cover; border: 1px solid #e2e7f1; border-radius: 4px; }
.admin-purchase-row .p-actions { display: flex; gap: 2px; justify-content: flex-end; }
.admin-icon-btn { width: 22px; height: 22px; padding: 0; color: #8c96ad; background: transparent; border: 1px solid transparent; border-radius: 5px; font-size: 10px; }
.admin-icon-btn:hover { color: #2f55f0; background: #edf1ff; border-color: #dfe6fa; }
.admin-icon-btn.danger:hover { color: #b45540; background: #fdf0ec; border-color: #f0d9d1; }
.admin-empty { padding: 30px 12px 24px; text-align: center; color: #939db3; }
.admin-empty b { display: block; color: #56627d; font-size: 10px; font-weight: 550; }
.admin-empty span { display: block; margin-top: 5px; font-size: 8px; }
.purchase-form-panel { margin-top: 12px; }
.purchase-images-section { margin-top: 11px; }
.purchase-images { display: flex; flex-wrap: wrap; gap: 7px; min-height: 37px; padding: 8px; background: #f8fafd; border: 1px dashed #dfe5f0; border-radius: 8px; }
.purchase-image { position: relative; width: 49px; height: 49px; }
.purchase-image img { width: 100%; height: 100%; object-fit: cover; border: 1px solid #e1e6f1; border-radius: 6px; }
.purchase-image button { position: absolute; top: -5px; right: -5px; width: 16px; height: 16px; padding: 0; color: #fff; background: #22305a; border: 0; border-radius: 50%; font-size: 11px; line-height: 16px; }
.purchase-image-empty { color: #a0a8ba; font-size: 8px; line-height: 37px; }
.purchase-form-actions { display: flex; gap: 7px; margin-top: 17px; }
.investor-list { border-top: 1px solid #edf0f7; }
.investor-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) 70px 95px 78px; gap: 9px; align-items: center; padding: 13px 0; border-bottom: 1px solid #edf0f7; }
.investor-row .i-name b { display: block; color: #3f4b68; font-size: 9.5px; font-weight: 550; }
.investor-row .i-name small { display: block; margin-top: 3px; color: #9ba4b9; font-size: 7.5px; }
.investor-row .i-username { color: #65708a; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; }
.investor-row .i-status { font-size: 8px; }
.investor-row .i-status.is-active { color: #2f55f0; }
.investor-row .i-status.is-off { color: #a2aabc; }
.investor-row .i-login { color: #9ba4b9; font-size: 7.5px; }
.investor-row .i-actions { display: flex; gap: 3px; justify-content: flex-end; }
.investor-row .i-actions button { color: #7f8aa2; background: transparent; border: 1px solid #e3e8f2; border-radius: 5px; font-size: 7px; padding: 4px 5px; }
.investor-row .i-actions button:hover { color: #2f55f0; border-color: #b9c8f0; background: #f5f8ff; }
.investor-row .i-actions button.danger:hover { color: #b45540; border-color: #eccfc7; background: #fdf5f2; }

.image-upload-modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(8, 14, 38, .66); backdrop-filter: blur(6px); }
.upload-dialog { width: min(100%, 480px); background: #fff; border-radius: 14px; box-shadow: 0 28px 70px rgba(6, 13, 38, .22); }
.upload-dialog header { display: flex; align-items: flex-start; justify-content: space-between; padding: 19px 19px 0; }
.upload-dialog h3 { margin: 0; color: #1b2647; font-size: 15px; font-weight: 600; }
.upload-dialog header > button { width: 24px; height: 24px; color: #8c96ad; background: transparent; border: 0; font-size: 19px; }
.upload-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 112px; margin: 15px 19px 0; color: #6f7b96; background: #f8faff; border: 1px dashed #b9c6e9; border-radius: 9px; cursor: pointer; }
.upload-drop:hover, .upload-drop.is-over { background: #eef2ff; border-color: #7f94df; }
.upload-drop b { color: #445275; font-size: 10px; font-weight: 550; }
.upload-drop span { margin-top: 5px; color: #9aa3b8; font-size: 7.5px; }
.upload-previews { display: flex; flex-wrap: wrap; gap: 6px; min-height: 10px; max-height: 155px; overflow-y: auto; padding: 11px 19px 0; }
.upload-preview { position: relative; width: 58px; height: 58px; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; border: 1px solid #e1e6f1; border-radius: 6px; }
.upload-preview span { position: absolute; bottom: 0; left: 0; right: 0; padding: 2px 3px; overflow: hidden; color: #fff; background: rgba(8, 14, 38, .62); font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.upload-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 14px; padding: 13px 19px 17px; border-top: 1px solid #eef1f6; }
.upload-dialog footer > span { color: #9aa3b8; font-size: 8px; }
.upload-dialog footer > div { display: flex; gap: 6px; }
.upload-dialog .admin-btn { height: 28px; font-size: 8px; }
.upload-dialog .admin-btn:disabled { opacity: .55; cursor: default; }
@media (max-width: 900px) {
  .procurement-admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-purchase-row { grid-template-columns: 54px minmax(0, 1fr) 73px 30px; }
  .admin-purchase-row .p-images { display: none; }
  .investor-row { grid-template-columns: minmax(0, 1fr) 64px 68px; }
  .investor-row .i-username, .investor-row .i-login { display: none; }
}
.section-head .admin-btn.primary,
.section-head .admin-btn.primary:hover { color: #ffffff; }
.investor-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) 70px 95px 108px; }
.investor-row .i-actions { flex-wrap: nowrap; }
.investor-row .i-actions button { white-space: nowrap; padding: 4px 4px; }
@media (max-width: 900px) {
  .investor-row { grid-template-columns: minmax(0, 1fr) 64px 100px; }
}
.upload-preview > button { position: absolute; top: -5px; right: -5px; width: 15px; height: 15px; padding: 0; color: #fff; background: #22305a; border: 0; border-radius: 50%; font-size: 10px; line-height: 15px; }
.ledger-admin-head { align-items: flex-start; }
.ledger-month-filter { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.ledger-month-filter label { color: #9aa3b8; font-size: 8px; }
.ledger-month-filter select { height: 27px; padding: 0 24px 0 8px; color: #52607c; background: #f8faff; border: 1px solid #e2e7f1; border-radius: 6px; font: inherit; font-size: 8px; outline: none; }
.ledger-admin-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ledger-admin-actions .admin-btn { height: 28px; font-size: 8px; white-space: nowrap; }
.admin-ledger-list { border-top: 1px solid #edf0f7; }
.admin-ledger-row { display: grid; grid-template-columns: 58px 42px minmax(0, 1fr) 90px 42px; gap: 9px; align-items: center; padding: 12px 0; border-bottom: 1px solid #edf0f7; }
.admin-ledger-row .l-date { color: #929cb2; font-size: 8px; }
.admin-ledger-row .l-type { display: inline-flex; justify-content: center; width: 34px; padding: 3px 0; border-radius: 4px; font-size: 7.5px; }
.admin-ledger-row .l-type.is-income { color: #2f55f0; background: #e9eeff; }
.admin-ledger-row .l-type.is-expense { color: #a35b41; background: #fcece7; }
.admin-ledger-row .l-main b { display: block; color: #3f4b68; font-size: 9.5px; font-weight: 550; }
.admin-ledger-row .l-main small { display: block; margin-top: 3px; color: #9ba4b9; font-size: 7.5px; }
.admin-ledger-row .l-amount { color: #3f4b68; font-size: 9.5px; font-weight: 550; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin-ledger-row .l-amount.is-income { color: #2f55f0; }
.admin-ledger-row .l-amount.is-expense { color: #a35b41; }
.admin-ledger-row .l-actions { display: flex; gap: 2px; justify-content: flex-end; }
@media (max-width: 900px) {
  .ledger-admin-actions { justify-content: flex-start; margin-top: 8px; }
  .ledger-admin-head { flex-direction: column; }
  .admin-ledger-row { grid-template-columns: 52px 38px minmax(0, 1fr) 78px 42px; gap: 6px; }
}
.purchase-list-head { align-items: flex-start; }
.purchase-list-head > .admin-btn { flex: 0 0 auto; }
.import-box {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 16px 0 0;
  padding: 12px 13px;
  background: linear-gradient(135deg, #f4f7ff, #fbfbff);
  border: 1px solid #e0e6f3;
  border-radius: 9px;
}
.import-badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #2f55f0, #7b4dff);
  border-radius: 8px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 650;
  letter-spacing: .04em;
}
.import-copy { flex: 1; min-width: 0; }
.import-copy b { display: block; color: #332f5a; font-size: 9.5px; font-weight: 600; }
.import-copy span { display: block; margin-top: 3px; color: #8e98af; font-size: 8px; line-height: 1.5; }
.import-copy p { margin: 4px 0 0; color: #2f55f0; font-size: 8px; }
.import-copy p.is-error { color: #b45540; }
.import-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.import-box > .admin-btn, .import-actions .admin-btn { height: 28px; padding: 0 8px; font-size: 8px; white-space: nowrap; }
@media (max-width: 720px) {
  .import-box { align-items: flex-start; flex-wrap: wrap; }
  .import-copy { flex-basis: calc(100% - 45px); }
  .import-actions { width: 100%; padding-left: 43px; }
  .import-box > .admin-btn { margin-left: 43px; }
}
.admin-project-list { border-top: 1px solid #edf0f7; }
.admin-project-row { display: grid; grid-template-columns: 94px minmax(0, 1.6fr) 76px 78px 52px 66px 44px; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid #edf0f7; }
.admin-project-row .p-cat { color: #7f8aa2; font-size: 8px; }
.admin-project-row .p-title b { display: block; color: #35415f; font-size: 9.5px; font-weight: 550; }
.admin-project-row .p-title small { display: block; margin-top: 3px; color: #9ba4b9; font-size: 7.5px; }
.admin-project-row .p-owner, .admin-project-row .p-due { color: #77829b; font-size: 8px; }
.admin-project-row .p-progress { color: #2f55f0; font-size: 9px; font-weight: 600; text-align: right; }
.admin-project-row .p-status { font-size: 7.5px; }
.admin-project-row .p-status span { display: inline-block; padding: 3px 5px; border-radius: 4px; white-space: nowrap; }
.admin-project-row .p-status .is-on-track { color: #2f55f0; background: #e9eeff; }
.admin-project-row .p-status .is-attention { color: #956b15; background: #fff2d6; }
.admin-project-row .p-status .is-risk { color: #a35b41; background: #fce8e7; }
.admin-project-row .p-status .is-done { color: #4f6a61; background: #eaf3ed; }
.admin-project-row .p-status .is-planning { color: #6e7892; background: #f0f2f7; }
.admin-project-row .p-actions { display: flex; gap: 2px; justify-content: flex-end; }
@media (max-width: 1000px) {
  .admin-project-row { grid-template-columns: 80px minmax(0, 1fr) 58px 48px 64px 44px; }
  .admin-project-row .p-owner { display: none; }
}
/* 统一后台板块内边距：内容居中，不贴面板边线 */
.admin-panel > :not(.panel-intro):not(.admin-section) {
  margin-left: 24px;
  margin-right: 24px;
}
.admin-panel > .panel-intro + :not(.admin-section) {
  margin-top: 18px;
}
.admin-panel > :not(.panel-intro):not(.admin-section):last-child {
  margin-bottom: 22px;
}
@media (max-width: 900px) {
  .admin-panel > :not(.panel-intro):not(.admin-section) {
    margin-left: 14px;
    margin-right: 14px;
  }
  .admin-panel > .panel-intro + :not(.admin-section) {
    margin-top: 14px;
  }
  .admin-panel > :not(.panel-intro):not(.admin-section):last-child {
    margin-bottom: 16px;
  }
}
/* 支出凭证 + 采购进度 */
.procurement-admin-summary.voucher-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.procurement-admin-summary.purchase-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-voucher-list { border-top: 1px solid #edf0f7; }
.admin-voucher-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 78px 104px 42px; gap: 9px; align-items: center; padding: 12px 0; border-bottom: 1px solid #edf0f7; }
.admin-voucher-row .p-date { color: #929cb2; font-size: 8px; }
.admin-voucher-row .p-main b { display: block; color: #3f4b68; font-size: 9.5px; font-weight: 550; }
.admin-voucher-row .p-main small { display: block; margin-top: 3px; color: #9ba4b9; font-size: 7.5px; }
.admin-voucher-row .p-money { color: #3f4b68; font-size: 9px; text-align: right; }
.voucher-thumbs { display: flex; gap: 3px; }
.voucher-thumb { display: block; width: 24px; height: 24px; overflow: hidden; border: 1px solid #e2e7f1; border-radius: 4px; }
.voucher-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-purchase-row { grid-template-columns: 58px minmax(0, 1.3fr) 76px 92px 88px 42px; }
.admin-purchase-row .p-progress-cell span { display: block; color: #64708a; font-size: 7.5px; white-space: nowrap; }
.admin-purchase-row .p-progress-cell small { display: block; margin-top: 3px; color: #9ba4b9; font-size: 7px; text-align: right; }
.mini-track { height: 4px; margin-top: 5px; overflow: hidden; background: #edf0f7; border-radius: 4px; }
.mini-track i { display: block; height: 100%; min-width: 2px; background: linear-gradient(90deg, #2f55f0, #7b4dff); border-radius: inherit; }
.admin-purchase-row .p-tracking { overflow: hidden; color: #7d88a1; font-family: "SFMono-Regular", Menlo, monospace; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.logistics-box { margin-top: 18px; padding: 15px 16px; background: #f7f9fe; border: 1px solid #e7ebf5; border-radius: 9px; }
.logistics-box .section-head { margin-bottom: 8px; }
.logistics-box .section-head h3 { font-size: 10px; }
.logistics-preview { margin-top: 9px; }
.logistics-link { display: inline-block; margin-top: 4px; color: #2f55f0; font-size: 9px; }
.logistics-event { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid #e9edf6; }
.logistics-event span { color: #929cb2; font-size: 7.5px; white-space: nowrap; }
.logistics-event p { margin: 0; color: #5f6a83; font-size: 8.5px; line-height: 1.55; }
@media (max-width: 1100px) {
  .admin-purchase-row { grid-template-columns: 52px minmax(0, 1fr) 70px 80px 42px; }
  .admin-purchase-row .p-tracking { display: none; }
}
@media (max-width: 900px) {
  .procurement-admin-summary.voucher-summary,
  .procurement-admin-summary.purchase-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-voucher-row { grid-template-columns: 50px minmax(0, 1fr) 66px 42px; }
  .admin-voucher-row .voucher-thumbs { display: none; }
  .admin-purchase-row { grid-template-columns: 48px minmax(0, 1fr) 64px 42px; }
  .admin-purchase-row .p-progress-cell,
  .admin-purchase-row .p-tracking { display: none; }
  .logistics-event { grid-template-columns: 1fr; gap: 2px; }
}
/* 日期 / 月份输入：整块可点，带快捷选择 */
.date-field { position: relative; }
.date-field .date-control { padding-right: 76px; cursor: pointer; }
.date-field .date-control::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.date-actions { position: absolute; right: 7px; bottom: 6px; z-index: 2; display: flex; align-items: center; gap: 3px; }
.date-pick-btn { display: grid; place-items: center; width: 23px; height: 24px; padding: 0; color: #5f6d88; background: #fff; border: 1px solid #e0e5f0; border-radius: 5px; cursor: pointer; }
.date-pick-btn:hover { color: #2f55f0; border-color: #b8c6f1; background: #f5f7ff; }
.date-pick-btn svg { width: 13px; height: 13px; }
.date-quick-btn { height: 24px; padding: 0 5px; color: #687591; background: #fff; border: 1px solid #e0e5f0; border-radius: 5px; font-size: 7.5px; cursor: pointer; }
.date-quick-btn:hover { color: #2f55f0; border-color: #b8c6f1; background: #f5f7ff; }
@media (max-width: 640px) {
  .date-field .date-control { padding-right: 68px; }
  .date-actions { right: 5px; }
}

/* 新增收支表单在底部时，提供可居中的滚动空间 */
.admin-page.has-ledger-form { padding-bottom: 38vh; }
@media (max-width: 900px) {
  .admin-page.has-ledger-form { padding-bottom: 30vh; }
}
.field-wide { grid-column: 1 / -1; }
/* 收支累计与单月 */
.ledger-summary-block { margin: 16px 0 0; }
.ledger-summary-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 1px 7px; }
.ledger-summary-label span { color: #4f5d78; font-size: 9px; font-weight: 600; }
.ledger-summary-label small { color: #9aa4bb; font-size: 8px; }
.ledger-summary-block .procurement-admin-summary { margin: 0 0 12px; }
.ledger-total-summary > div { background: #eef3ff; border-color: #dfe7fb; }
