.subscription-create { margin-bottom: 16px; }
.plan-create { margin-bottom: 16px; }
.subscription-create select { display: block; width: 100%; margin-top: 7px; padding: 13px; font-size: 12px; }
.account-grid { grid-template-columns: .85fr 1.15fr; }
.table-heading { padding: 18px 18px 0; margin-bottom: 8px; }
.subscription-metrics { margin-top: 0; }
.driver-plan-panel { margin-bottom: 16px; }
.driver-plan-panel .table-heading span { display: block; margin-top: 5px; color: #777b73; font-size: 11px; }
.driver-plan-panel input { width: 140px; max-width: 100%; padding: 10px 11px; border: 1px solid #dfe2dc; border-radius: 9px; background: #f7f8f5; font: inherit; }
.driver-plan-panel .plan-name-input { width: 180px; }
.driver-plan-panel .percent-input { width: 96px; }
.driver-plan-panel button { white-space: nowrap; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-actions button { border: 0; border-radius: 8px; padding: 8px 10px; font-size: 9px; font-weight: 900; cursor: pointer; }
.plan-actions .quiet { background: #edf0eb; }
.plan-actions .danger { background: #fee9e5; color: #a34232; }
.payment-panel { margin-top: 16px; }
.payment-panel .table-heading span { display: block; margin-top: 5px; color: #777b73; font-size: 11px; }
.payout-panel { margin-top: 16px; overflow: auto; }
.payout-panel .panel-head { align-items: flex-start; gap: 14px; }
.payout-panel .panel-head span { display: block; margin-top: 5px; color: #777b73; font-size: 11px; max-width: 720px; line-height: 1.45; }
.payout-form { margin-bottom: 12px; }
.payout-form select,
.payout-form input { display: block; width: 100%; margin-top: 7px; }
.payout-form small { display: block; margin-top: 5px; color: #8a6418; font-size: 8px; line-height: 1.35; }
.payout-notes { grid-column: 1 / -1; }
.payout-warning { border: 1px solid #f2deb7; background: #fff8e7; color: #7d5a13; border-radius: 12px; padding: 10px 12px; font-size: 10px; font-weight: 800; margin: 8px 0 14px; }
.payout-table td small { display: block; margin-top: 4px; color: #777b73; line-height: 1.35; }
.muted-action { color: #777b73; font-size: 9px; font-weight: 900; }
.status-chip.succeeded { background: #edf7d8; color: #648a19; }
.status-chip.failed { background: #fee9e5; color: #a34232; }
.secondary { border: 1px solid #dfe2dc; background: #fff; padding: 13px 18px; border-radius: 12px; font-weight: 900; cursor: pointer; }
.report-workspace { margin-top: 34px; }
.report-heading { align-items: center; }
.report-actions { display: flex; gap: 8px; }
.report-filter-panel { margin-bottom: 16px; }
.report-filter-grid { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; }
.report-filter-grid select { display: block; width: 100%; margin-top: 7px; padding: 13px; font-size: 11px; }
.report-filter-grid button { height: 43px; }
.report-table-panel { margin-bottom: 16px; }
.plan-history-panel { margin-top: 16px; }
.archived-row { opacity: .58; }
.status-chip.archived { background: #edf0eb; color: #596057; }
.status-chip.pending,
.status-chip.pending-approval { background: #fff3d9; color: #8a6418; }
.status-chip.paused { background: #edf0eb; color: #596057; }
.status-chip.active { background: #edf7d8; color: #648a19; }
.status-chip.pending-review,
.status-chip.replaced { background: #fff3d9; color: #8a6418; }
.status-chip.rejected { background: #fee9e5; color: #a34232; }
.status-chip.cancelled,
.status-chip.expired { background: #fee9e5; color: #a34232; }

@media (max-width: 950px) {
  .account-grid { grid-template-columns: 1fr; }
  .report-filter-grid { grid-template-columns: 1fr 1fr; }
}

@media print {
  .sidebar, header, #subscriptions > :not(.report-workspace), .report-actions, .report-filter-panel, .save-message { display: none !important; }
  main { margin: 0; padding: 0; }
  .view { display: none !important; }
  #subscriptions.view, .report-workspace { display: block !important; }
  .report-workspace { margin: 0; }
  .report-table-panel, .plan-history-panel, .metrics article { break-inside: avoid; }
  body { background: #fff; }
}
