/* Dashboard cards and charts. Authenticated navigation/brand colors live in admin-workspace.css. */
.admin-dashboard-page { --dash-ink: #202735; --dash-muted: #667085; --dash-line: #e4e7ec; }
.admin-dashboard-page .bodywrapper__inner { padding-top: 0; }

.admin-dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.admin-dashboard-heading .admin-dashboard-eyebrow { margin: 0 0 4px; color: var(--dash-accent); font-size: 10px; font-weight: 650; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.admin-dashboard-heading h1 { margin: 0 0 4px; color: var(--dash-ink); font-family: inherit; font-size: 25px; font-weight: 650; line-height: 1.25; letter-spacing: -.035em; }
.admin-dashboard-heading > div > p:last-child { margin: 0; color: var(--dash-muted); font-size: 12px; }
.admin-dashboard { display: grid; gap: 20px; min-width: 0; color: var(--dash-ink); }
.admin-dashboard :is(h2, h3, h4) { font-family: inherit; color: var(--dash-ink); }
.admin-dashboard [hidden] { display: none !important; }
.admin-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.admin-section-heading h2 { margin: 0 0 2px; font-size: 14px; font-weight: 650; line-height: 1.5; letter-spacing: -.015em; }
.admin-section-heading p { margin: 0; color: var(--dash-muted); font-size: 11px; line-height: 1.5; }
.admin-section-heading__unit { padding: 4px 7px; border: 1px solid var(--dash-line); border-radius: 4px; color: var(--dash-muted); background: #fff; font-size: 10px; white-space: nowrap; }
.admin-funds-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-fund { position: relative; min-width: 0; padding: 17px 16px; border: 1px solid var(--dash-line); border-radius: 7px; background: #fff; }
.admin-fund__icon { position: absolute; top: 13px; right: 13px; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 5px; color: var(--dash-accent); background: var(--dash-tint); font-size: 18px; }
.admin-fund p { min-height: 18px; margin: 0 0 13px; padding-right: 30px; color: #566173; font-size: 12px; line-height: 1.5; }
.admin-fund strong { display: block; color: var(--dash-ink); font-size: clamp(21px, 1.7vw, 27px); font-weight: 650; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.admin-fund--total { border-color: var(--dash-primary); background: var(--dash-primary); }
.admin-fund--total strong,
.admin-fund--total p { color: var(--dash-on-primary); }
.admin-fund--total .admin-fund__icon { color: var(--dash-on-primary); background: transparent; }
.admin-attention-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.admin-attention { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 9px; align-content: center; min-width: 0; min-height: 80px; padding: 13px; border: 1px solid var(--dash-line); border-radius: 6px; background: #fff; }
.admin-attention__icon { grid-row: 1 / 3; align-self: center; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 5px; color: var(--dash-muted); background: #f2f4f7; font-size: 18px; }
.admin-attention > strong { grid-column: 2; display: block; padding-right: 9px; color: var(--dash-ink); font-size: 22px; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.admin-attention h3 { grid-column: 2; margin: 3px 0 0; color: #566173; font-size: 11px; font-weight: 500; line-height: 1.4; }
.admin-attention--pending { border-color: var(--dash-tint-strong); background: var(--dash-tint); }
.admin-attention--pending .admin-attention__icon { color: var(--dash-accent); background: var(--dash-tint-strong); }
.admin-attention--pending > strong { color: var(--dash-accent); }
.admin-metric-link { position: static; display: inline-flex; color: #667085; font-size: 15px; text-decoration: none; line-height: 1; }
.admin-metric-link::after { content: ''; position: absolute; inset: 0; border-radius: 6px; }
.admin-metric-link > i { position: absolute; right: 10px; top: 12px; }
.admin-attention .admin-metric-link > i,
.admin-stat .admin-metric-link > i,
.admin-product-stat .admin-metric-link > i { transform: rotate(45deg); }
.admin-attention .admin-metric-link { grid-column: 1; height: 0; }
.admin-dashboard :is(.admin-attention, .admin-stat, .admin-account-stat, .admin-product-stat, .admin-due-stat):has(.admin-metric-link) { transition: border-color .15s, background-color .15s; }
.admin-dashboard :is(.admin-attention, .admin-stat, .admin-account-stat, .admin-product-stat, .admin-due-stat):has(.admin-metric-link):hover { border-color: var(--dash-accent); background: var(--dash-tint); }
.admin-dashboard .admin-metric-link:focus-visible { outline: none; box-shadow: none; }
.admin-dashboard .admin-metric-link:focus-visible::after { outline: 2px solid var(--dash-accent); outline-offset: 2px; }
.admin-panel { min-width: 0; padding: 16px; border: 1px solid var(--dash-line); border-radius: 7px; background: #fff; }
.admin-reports-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-panel-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.admin-panel-heading h3 { margin: 0; font-size: 12px; font-weight: 650; line-height: 1.5; }
.admin-date-filter { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; max-width: 100%; padding: 5px 8px; border: 1px solid var(--dash-line); border-radius: 4px; color: #475467; background: #fff; font-size: 10px; font-weight: 500; line-height: 1.5; cursor: pointer; text-align: left; }
.admin-date-filter:hover { border-color: var(--dash-accent); background: var(--dash-tint); }
.admin-date-filter > span { min-width: 0; overflow-wrap: anywhere; }
.admin-date-filter > i { flex-shrink: 0; font-size: 14px; }
.admin-dashboard .admin-date-filter:focus-visible { outline: 2px solid var(--dash-accent); outline-offset: 2px; box-shadow: none; }
.admin-report__chart { min-width: 0; min-height: 230px; }
.admin-report__chart .apexcharts-canvas,
.admin-report__chart svg { max-width: 100%; }
.admin-report__status { margin: 6px 0 0; color: var(--dash-muted); font-size: 11px; line-height: 1.6; }
.admin-report__status[data-error] { padding: 9px; border-radius: 4px; color: #854d0e; background: #fffbeb; }
.admin-dashboard .apexcharts-menu { min-width: 120px; }
.admin-card-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-stat { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--dash-line); border-radius: 6px; background: #fff; }
.admin-stat__icon { flex: 0 0 32px; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 5px; color: var(--dash-accent); background: var(--dash-tint); font-size: 21px; }
.admin-stat > div { min-width: 0; }
.admin-stat h3 { margin: 0 10px 4px 0; color: #566173; font-size: 11px; font-weight: 500; line-height: 1.5; }
.admin-stat strong { display: block; color: var(--dash-ink); font-size: 21px; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.admin-operations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.admin-panel-symbol { display: inline-flex; color: var(--dash-accent); font-size: 23px; }
.admin-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.admin-account-stat { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 61px; padding: 11px 18px 11px 0; border-bottom: 1px solid #edf0f3; }
.admin-account-stat:nth-last-child(-n+2) { border-bottom: 0; }
.admin-account-stat__icon { flex: 0 0 27px; display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 4px; color: var(--dash-accent); background: var(--dash-tint); font-size: 18px; }
.admin-account-stat > div { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.admin-account-stat h3 { min-width: 0; overflow-wrap: anywhere; margin: 0; color: #566173; font-size: 11px; font-weight: 500; line-height: 1.4; }
.admin-account-stat strong { flex-shrink: 0; white-space: nowrap; color: var(--dash-ink); font-size: 17px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.admin-account-stat .admin-metric-link > i,
.admin-due-stat .admin-metric-link > i { top: 50%; right: 2px; transform: translateY(-50%); font-size: 13px; }
.admin-subsection-title { margin: 12px 0 8px; color: var(--dash-muted) !important; font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; }
.admin-subsection-title--due { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--dash-line); }
.admin-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-product-stat { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 9px; min-width: 0; padding: 10px 22px 10px 10px; border: 1px solid var(--dash-line); border-radius: 5px; background: #fafbfc; }
.admin-product-stat > i { grid-row: 1 / 3; align-self: center; color: var(--dash-accent); font-size: 20px; }
.admin-product-stat > strong { grid-column: 2; color: var(--dash-ink); font-size: 19px; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.admin-product-stat h4 { grid-column: 2; margin: 3px 0 0; color: #566173; font-size: 11px; font-weight: 500; line-height: 1.4; }
.admin-due-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.admin-due-stat { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; min-width: 0; padding: 10px 17px 10px 10px; border: 1px solid var(--dash-line); border-radius: 5px; background: #fafbfc; }
.admin-due-stat h4 { margin: 0; color: #566173; font-size: 11px; font-weight: 500; line-height: 1.5; }
.admin-due-stat strong { color: var(--dash-accent); font-size: 18px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.admin-due-stat .admin-metric-link > i { right: 4px; }
.admin-insights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.admin-insight h3 { margin: 0 0 17px; color: var(--dash-ink); font-size: 12px; font-weight: 650; line-height: 1.5; }
.admin-insight__legend { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.admin-insight__legend li { min-width: 0; }
.admin-insight__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 11px; line-height: 1.5; }
.admin-insight__legend-label { min-width: 0; color: #566173; overflow-wrap: anywhere; }
.admin-insight__row strong { flex-shrink: 0; color: var(--dash-ink); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.admin-insight__track { height: 5px; overflow: hidden; border-radius: 3px; background: #eef1f5; }
.admin-insight__track > span { display: block; width: var(--admin-bar-width, 0%); height: 100%; border-radius: inherit; background: var(--dash-accent); }
.admin-insight:nth-child(2) .admin-insight__track > span { background: var(--dash-secondary-accent); }
.admin-insight__empty { margin: 0; padding: 18px 0; color: var(--dash-muted); font-size: 12px; line-height: 1.6; }
.admin-report-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 17px 0 14px; padding-bottom: 15px; border-bottom: 1px solid var(--dash-line); }
.admin-report-totals > div { min-width: 0; }
.admin-report-totals dt { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; color: var(--dash-muted); font-size: 11px; font-weight: 500; line-height: 1.5; }
.admin-report-totals dd { margin: 0; }
.admin-report-totals strong { color: var(--dash-ink); font-size: clamp(17px, 1.45vw, 23px); font-weight: 650; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: -.025em; overflow-wrap: anywhere; }
.admin-report-key { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 2px; background: var(--dash-accent); }
.admin-report-key--1 { background: var(--dash-secondary-accent); }
.admin-dashboard-shell .daterangepicker { font-family: inherit; border-color: var(--dash-line); border-radius: 6px; box-shadow: 0 8px 28px #20273518; }
.admin-dashboard-shell .daterangepicker .ranges li.active,
.admin-dashboard-shell .daterangepicker td.active,
.admin-dashboard-shell .daterangepicker td.active:hover { color: #fff !important; background-color: var(--dash-accent) !important; }
.admin-dashboard-shell .daterangepicker .applyBtn { border-color: var(--dash-accent); color: #fff; background: var(--dash-accent); }
.admin-dashboard-shell .daterangepicker td.in-range { color: var(--dash-ink); background: var(--dash-tint); }
@media (max-width: 1399px) {
    .admin-fund { padding-inline: 14px; }
}
@media (max-width: 1199px) {
    .admin-attention-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-funds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-operations-grid { grid-template-columns: minmax(0, 1fr); }
    .admin-account-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .admin-account-stat:nth-last-child(-n+4) { border-bottom: 0; }
    .admin-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .admin-card-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1049px) and (min-width: 992px) {
    .admin-reports-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .admin-dashboard-heading { margin-bottom: 18px; }
    .admin-dashboard-heading h1 { font-size: 23px; }
    .admin-dashboard { gap: 18px; }
    .admin-reports-grid { grid-template-columns: minmax(0, 1fr); }
    .admin-account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-account-stat:nth-last-child(-n+4) { border-bottom: 1px solid #edf0f3; }
    .admin-account-stat:nth-last-child(-n+2) { border-bottom: 0; }
    .admin-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-insights-grid { grid-template-columns: minmax(0, 1fr); }
    .admin-date-filter { min-height: 40px; font-size: 11px; }
    .admin-section-heading { align-items: flex-start; }
}
@media (max-width: 575px) {
    .admin-funds-grid { gap: 8px; }
    .admin-fund { padding: 14px 12px; }
    .admin-fund__icon { top: 11px; right: 9px; width: 22px; height: 22px; font-size: 17px; }
    .admin-fund p { min-height: 32px; margin-bottom: 9px; padding-right: 21px; font-size: 11px; line-height: 1.45; }
    .admin-fund strong { font-size: clamp(17px, 4.9vw, 24px); letter-spacing: -.035em; }
    .admin-attention-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .admin-attention { min-height: 82px; padding: 11px; }
    .admin-attention h3 { font-size: 11px; }
    .admin-panel { padding: 13px; }
    .admin-panel-heading { gap: 9px; }
    .admin-panel-heading h3 { font-size: 13px; }
    .admin-date-filter { width: 100%; justify-content: space-between; }
    .admin-card-metrics { gap: 8px; }
    .admin-stat { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 8px; padding: 12px 10px; }
    .admin-stat > div { display: contents; }
    .admin-stat__icon { flex-basis: 24px; width: 24px; height: 24px; font-size: 18px; }
    .admin-stat h3 { min-height: 32px; font-size: 11px; }
    .admin-stat h3 { grid-column: 2; margin: 0 10px 0 0; }
    .admin-stat strong { grid-column: 1 / -1; font-size: 19px; }
    .admin-account-stat { gap: 6px; padding-right: 13px; }
    .admin-account-stat__icon { display: none; }
    .admin-account-stat > div { gap: 5px; }
    .admin-due-grid { gap: 6px; }
    .admin-subsection-title { margin-top: 9px; }
}
@media (max-width: 359px) {
    .admin-card-metrics { grid-template-columns: minmax(0, 1fr); }
    .admin-stat h3 { min-height: 0; }
    .admin-funds-grid { grid-template-columns: minmax(0, 1fr); }
    .admin-fund p { min-height: 18px; margin-bottom: 8px; }
    .admin-fund strong { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .admin-dashboard * { transition: none !important; scroll-behavior: auto; }
}
