.admin-page [data-admin-section] { min-width: 0; scroll-margin-top: 130px; }
.admin-page .content-body { display: block; max-width: 1600px; }
.admin-page .sidebar nav a b { margin-left: auto; padding: 3px 7px; background: #e7efda; color: #375c32; border-radius: 6px; font-size: 10px; font-weight: 600; }
.admin-mobile-nav { display: none; }
.operations-shortcuts { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.operations-shortcuts a { padding: 25px; display: grid; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s,transform .2s; }
.operations-shortcuts a:hover { border-color: #a4ba82; transform: translateY(-2px); }
.operations-shortcuts span { font-size: 11px; color: #8c9f79; }
.operations-shortcuts strong { font-size: 19px; font-weight: 550; }
.operations-shortcuts small { font-size: 12px; color: #8b9a80; }
.queue-metrics { margin: 22px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.queue-metrics article { padding: 22px 25px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #e0e8d5; border-radius: 16px; background: #f0f5e7; }
.queue-metrics span { color: #7c9464; font-size: 13px; }
.queue-metrics strong { color: #3c6035; font-size: 28px; font-weight: 550; }
.operations-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; padding: 22px 25px; border-bottom: 1px solid var(--line); }
.operations-filters label { min-width: 125px; display: grid; gap: 7px; flex: 0 1 auto; font-size: 11px; color: #81916e; }
.operations-filters label.filter-search { min-width: 190px; flex: 1; }
.operations-filters input, .operations-filters select { min-height: 42px; padding: 9px 12px; width: 100%; max-width: 100%; border: 1px solid #e0e8d5; border-radius: 9px; background: #fbfcf8; font: inherit; font-size: 12px; color: #435e38; outline: none; }
.operations-filters select { min-width: 130px; }
.operations-filters input:focus, .operations-filters select:focus, .processing-form textarea:focus, .processing-form select:focus { border-color: #8aa967; box-shadow: 0 0 0 3px #a6bf8325; }
.admin-page .operations-filters button { min-height: 42px; }
.table-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 25px; border-top: 1px solid var(--line); color: #8a9a7a; font-size: 11px; }
.table-pagination p { margin: 0; }
.table-pagination > div { display: flex; gap: 8px; }
.table-pagination button { padding: 7px 11px; color: #617d4b; background: #f0f5e8; border: 1px solid #e5ecd9; border-radius: 7px; font: inherit; }
.table-pagination button:disabled { opacity: .35; cursor: default; }
.case-cell { display: grid; max-width: 260px; gap: 5px; }
.case-cell strong { font-size: 12px; white-space: normal; overflow-wrap: anywhere; font-weight: 550; }
.case-cell small { font: 10px var(--mono); color: #9ca98f; }
.admin-page .status-pill.rejected, .admin-page .status-pill.failed { background: #fbece7; color: #b66e59; }
.admin-page .status-pill.refunded, .admin-page .status-pill.closed, .admin-page .status-pill.complete, .admin-page .status-pill.resolved { background: #eaf3df; color: #6c8e45; }
.admin-page .status-pill.open, .admin-page .status-pill.assigned, .admin-page .status-pill.pending, .admin-page .status-pill.merchant_review { background: #fbf2df; color: #ad8c44; }
.admin-page .status-pill.cancelled { background: #f0f2ed; color: #929b88; }
.finance-unit { color: #91a17f; font-size: 11px; }
#financeFilterForm { margin-top: 22px; border-radius: 14px; }
#financeFilterForm label { flex: 1; }
#financeFilterForm input:disabled { opacity: .5; }
.operations-message { min-height: 18px; margin: 15px 2px; color: #978d61; font-size: 11px; line-height: 1.7; }
.operations-message.error { color: #b66e59; }
.finance-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-bottom: 22px; }
.finance-metrics article { padding: 23px; border: 1px solid #e4ecd9; border-radius: 16px; background: white; }
.finance-metrics article:first-child { background: #183f32; border-color: #183f32; }
.finance-metrics span,.finance-metrics strong,.finance-metrics small { display: block; }
.finance-metrics span { color: #8a9a79; font-size: 12px; }
.finance-metrics strong { margin: 15px 0 10px; font-size: clamp(19px,2.1vw,30px); color: #526e3d; font-weight: 550; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.finance-metrics small { color: #9aa88c; font-size: 10px; line-height: 1.5; }
.finance-metrics article:first-child strong { color: #edf6dc; }
.finance-metrics article:first-child span,.finance-metrics article:first-child small { color: #a1b88b; }
.finance-charts { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; margin-bottom: 22px; }
.admin-page .panel-heading h3 { margin: 0; font-size: 18px; font-weight: 550; }
.chart-legend { display: flex; gap: 12px; font-size: 10px; color: #97a58b; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 3px; background: #6a8d4a; }
.chart-legend span + span::before { background: #c7d6af; }
.flow-trend { min-height: 250px; padding: 20px 24px; overflow-x: auto; }
.trend-bars { min-height: 190px; min-width: 240px; display: flex; align-items: end; justify-content: space-around; gap: 8px; padding-top: 24px; }
.trend-day { flex: 1; min-width: 22px; max-width: 75px; display: grid; gap: 9px; text-align: center; }
.trend-pair { height: 155px; display: flex; align-items: end; justify-content: center; gap: 3px; border-bottom: 1px solid #e7eddd; }
.trend-pair i { display: block; width: min(15px,40%); min-height: 2px; max-height: 100%; border-radius: 4px 4px 0 0; background: #6a8d4a; }
.trend-pair i + i { background: #c7d6af; }
.trend-day small { font: 9px var(--mono); color: #9caa8d; }
.trend-table { width: 100%; margin-top: 20px; }
.trend-table th,.trend-table td { font-size: 10px !important; padding: 7px 10px !important; }
.trend-accessible { margin-top: 15px; font-size: 10px; color: #8f9f7c; }
.trend-accessible summary { cursor: pointer; }
.category-breakdown { padding: 24px; display: grid; align-content: start; gap: 20px; }
.category-row header { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.category-row header span { color: #8b9d77; }
.category-row header b { font-weight: 550; color: #6d8554; }
.category-row > div { height: 5px; border-radius: 5px; background: #f1f5e9; margin-top: 9px; overflow: hidden; }
.category-row i { display: block; height: 100%; border-radius: inherit; background: #a2bb82; }
.category-row small { display: block; margin-top: 6px; font-size: 9px; color: #a2af94; }
.ledger-footnote { margin: 0; border-top: 1px solid var(--line); padding: 15px 25px 20px; color: #9ca88f; font-size: 10px; line-height: 1.8; }
.amount-in { color: #648c45; }
.amount-out { color: #a38c65; }
.processing-form { display: grid; gap: 16px; }
.processing-form label { display: grid; gap: 8px; color: #8b9a7d; font-size: 12px; }
.processing-form textarea,.processing-form select { width: 100%; padding: 12px; border: 1px solid #e0e8d5; border-radius: 9px; background: #fbfcf8; color: #425e35; font: inherit; font-size: 13px; line-height: 1.7; outline: 0; }
.processing-form textarea { resize: vertical; min-height: 110px; }
.processing-form .confirm-refund { padding: 13px; display: flex; align-items: start; gap: 10px; color: #a17b45; background: #fff5e5; border-radius: 10px; line-height: 1.7; }
.processing-form .confirm-refund input { margin-top: 4px; accent-color: #466c38; }
.processing-form .submit-processing { min-height: 45px; border-radius: 9px; color: #f0f6e8; background: #1c4938; font-size: 13px; }
.processing-form .submit-processing:disabled { opacity: .45; cursor: wait; }
.processing-form .form-message { margin: 0; color: #b87660; font-size: 11px; }
.processing-help { margin: 0; font-size: 11px; line-height: 1.8; color: #99a68c; }
.case-history { display: grid; gap: 15px; }
.case-history article { padding-left: 14px; border-left: 2px solid #dbe5cd; }
.case-history strong { display: block; font-size: 12px; color: #7e9568; font-weight: 500; }
.case-history small { display: block; margin-top: 4px; font-size: 10px; color: #a6b098; }
.case-history p { margin: 9px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.8; color: #8c9c7b; }
.case-description { margin: 0; color: #8a9a79; font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-page .detail-backdrop { inset: 32px 0 0; }
.admin-page .detail-panel { width: min(650px,100%); }
.admin-page .event-item small { max-width: 650px; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .finance-metrics { grid-template-columns: 1fr 1fr; } .finance-charts { grid-template-columns: 1fr; } .queue-metrics article { padding: 18px; } }
@media (max-width: 950px) { .admin-page .sidebar nav a b { display: none; } }
@media (max-width: 700px) {
  .admin-mobile-nav { position: sticky; top: 106px; z-index: 9; display: flex; padding: 8px 16px; gap: 6px; background: #f7f8f3; border-bottom: 1px solid #e4ecd9; }
  .admin-mobile-nav a { flex: 1; padding: 10px 5px; text-align: center; font-size: 11px; border-radius: 8px; color: #8fa17c; }
  .admin-mobile-nav a.active { color: #f0f6e8; background: #1c4938; }
  .operations-shortcuts { grid-template-columns: 1fr; }
  .queue-metrics { gap: 8px; margin: 18px 0; }
  .queue-metrics article { padding: 15px 10px; display: grid; gap: 8px; }
  .queue-metrics span { font-size: 10px; }
  .queue-metrics strong { font-size: 24px; }
  .operations-filters { padding: 18px; gap: 12px; }
  .operations-filters label { flex: 1 1 calc(50% - 12px); min-width: 100px; }
  .operations-filters label.filter-search { min-width: 160px; }
  .operations-filters input,.operations-filters select { font-size: 16px; min-width: 0; }
  #financeFilterForm label { flex: 1 1 calc(50% - 12px); }
  .finance-metrics { gap: 10px; }
  .finance-metrics article { padding: 18px; }
  .finance-metrics strong { font-size: 22px; }
  .finance-metrics small { font-size: 9px; }
  .finance-unit { max-width: 110px; text-align: right; font-size: 9px; }
  .table-pagination { padding: 15px 18px; }
  .processing-form textarea,.processing-form select { font-size: 16px; }
  #business .table-scroll { overflow: visible; }
  #business table,#business tbody { display: block; }
  #business thead { display: none; }
  #business tr { padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 13px 10px; border-top: 1px solid var(--line); }
  .admin-page #business td { border: 0; padding: 0; white-space: normal; font-size: 11px; }
  #business td:first-child,#business td:last-child { grid-column: 1 / -1; }
  #business .case-cell { max-width: none; }
  #business td:nth-child(3),#business td:nth-child(5) { text-align: right; color: #94a384; }
  .admin-page #business .view-user { width: 100%; min-height: 39px; background: #edf4e3; font-size: 12px; color: #5a7c43; }
  #business .table-state { display: grid; place-items: center; grid-column: 1 / -1; }
}
