/* ============================================================
   print.css — 打印「本月分账方案书」
   ============================================================ */

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  :root {
    --c-bg: #ffffff;
    --c-surface: #ffffff;
    --c-surface-2: #ffffff;
  }

  html, body {
    background: #fff !important;
    color: #000;
    font-size: 11pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sidebar,
  .topbar,
  .tabbar,
  .batchbar,
  .toast-stack,
  .drawer,
  .modal,
  .login,
  #view-bills,
  #view-stats,
  .no-print { display: none !important; }

  .shell { display: block !important; }
  .main { min-height: 0; }
  .content { padding: 0 !important; }
  .view { display: none !important; max-width: none; }
  #view-overview { display: block !important; }

  .card,
  .wallet,
  .kpi {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #d4d4d8 !important;
  }

  /* 输入框打印成静态数值 */
  .input,
  .amount-input {
    border: 0 !important;
    border-bottom: 1px solid #d4d4d8 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 0 !important;
  }

  /* 交互元素不打印 */
  .btn,
  .icon-btn,
  .batchbar,
  .badge--ink,
  .card__actions,
  .budget-row__del { display: none !important; }

  .overview-grid { display: block !important; }
  .wallet-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .alloc__fill { background: #111 !important; }

  .print-head {
    display: block !important;
    margin-bottom: 8mm;
    padding-bottom: 4mm;
    border-bottom: 2px solid #000;
  }
  .print-head__title { font-size: 16pt; font-weight: 700; letter-spacing: -0.02em; }
  .print-head__meta { font-size: 9pt; color: #444; margin-top: 2mm; }

  a[href]::after { content: ""; }
}

.print-head { display: none; }
