/* 自動產生，請勿手改：node tools/make-dark-theme.js（來源：managementFee_report.html 的內嵌樣式）。 */
@media screen{
  html[data-theme="dark"] .floorplan-frame{border:1px solid #1f2e48;background:linear-gradient(145deg,#262218,#1f1c15)}
  html[data-theme="dark"] .floorplan-dialog{background:#343947ee}
  html[data-theme="dark"] .floorplan-dialog::backdrop{background:#2c3144ef}
  html[data-theme="dark"] .floorplan-close{background:#15203220;color:#ffffff}
  html[data-theme="dark"] .scenario-btn{border:1px solid #323941;background:#152032;color:#b3becd}
  html[data-theme="dark"] .scenario-btn small{color:#a8b1bd}
  html[data-theme="dark"] .scenario-btn[aria-pressed="true"]{background:#112c1f;color:#abf3df}
  html[data-theme="dark"] .scenario-btn[aria-pressed="true"] small{color:#97f3d9}
  html[data-theme="dark"] .donut::after{background:#152032}
  html[data-theme="dark"] .forecast-table tbody tr:nth-child(even){background:#1a2128}
  html[data-theme="dark"] .amount-negative{color:#e28383}
  html[data-theme="dark"] .amount-positive{color:#97f3d9}
  @media(max-width:640px){
    html[data-theme="dark"] .text-lg.font-bold{border-top:1px solid #1f2e48}
    html[data-theme="dark"] .comparison-table tr{border-bottom:1px solid #1f2e48}
    html[data-theme="dark"] .comparison-table td::before{color:#a8b1bd}
    html[data-theme="dark"] .forecast-table tr{border:1px solid #2b323b;background:#152032 !important}
    html[data-theme="dark"] .forecast-table td::before{color:#a8b1bd}
    html[data-theme="dark"] .forecast-table td:last-child{border-top:1px solid #1f2e48}
  }
  html[data-theme="dark"] .wage-year{border:1px solid #323b37;background:#152032;color:#a6b0bf}
  html[data-theme="dark"] .wage-year strong{color:#abf3df}
  html[data-theme="dark"] .wage-year[aria-pressed="true"]{background:#112c1f}
  html[data-theme="dark"] .wage-notice{background:#24695e;color:#ffffff}
  html[data-theme="dark"] .wage-detail{background:#122c1a;color:#abf3df}
}

/* ===== 管理費報告頁（Tailwind）的深色覆寫：Tailwind 的顏色類別是寫死的，必須逐一對應 ===== */
@media screen{
html[data-theme="dark"]{background:#090e1d}
html[data-theme="dark"] body{
  background:radial-gradient(ellipse at 85% 12%,#192c51 0,transparent 35%),radial-gradient(ellipse at 0% 70%,#10273b 0,transparent 32%),#090e1d;
  background-attachment:fixed;color:#eaf2ff
}
html[data-theme="dark"] *,html[data-theme="dark"] ::before,html[data-theme="dark"] ::after{border-color:#263451}
html[data-theme="dark"] .bg-gray-50:not(body){background:#0d1730}
html[data-theme="dark"] .bg-white{background:#111b30;box-shadow:0 14px 40px #0004}
html[data-theme="dark"] .bg-gray-100,html[data-theme="dark"] .bg-slate-100{background:#0f1830}
html[data-theme="dark"] .bg-slate-50{background:#0d1730}
html[data-theme="dark"] .bg-slate-900{background:#0a1224;border:1px solid #263451}
html[data-theme="dark"] .bg-amber-50{background:#2a2210}
html[data-theme="dark"] .bg-blue-50{background:#101f3e}
html[data-theme="dark"] .bg-cyan-50{background:#0e2a33}
html[data-theme="dark"] .bg-emerald-50{background:#0f2f2c}
html[data-theme="dark"] .bg-emerald-50\/40{background:#0f2f2c80}
html[data-theme="dark"] .bg-red-50{background:#2c1318}
html[data-theme="dark"] .border-amber-200{border-color:#5a4515}
html[data-theme="dark"] .border-blue-100,html[data-theme="dark"] .border-blue-200{border-color:#24406e}
html[data-theme="dark"] .border-cyan-200{border-color:#1f5565}
html[data-theme="dark"] .border-emerald-100,html[data-theme="dark"] .border-emerald-200{border-color:#1f5a50}
html[data-theme="dark"] .border-red-100{border-color:#5a2530}
html[data-theme="dark"] .border-slate-200{border-color:#263451}
html[data-theme="dark"] .border-gray-300{border-color:#2c3b5b}
html[data-theme="dark"] .text-gray-900,html[data-theme="dark"] .text-slate-900{color:#eaf2ff}
html[data-theme="dark"] .text-gray-600,html[data-theme="dark"] .text-slate-700{color:#c3d0e8}
html[data-theme="dark"] .text-gray-500,html[data-theme="dark"] .text-slate-500,html[data-theme="dark"] .text-slate-600{color:#aab8d4}
html[data-theme="dark"] .text-gray-400,html[data-theme="dark"] .text-slate-400{color:#8d9ebd}
html[data-theme="dark"] .text-slate-300{color:#cdd9ee}
html[data-theme="dark"] .text-amber-700,html[data-theme="dark"] .text-amber-800{color:#ffd98a}
html[data-theme="dark"] .text-amber-900{color:#ffe6b0}
html[data-theme="dark"] .text-blue-700{color:#8fb5ff}
html[data-theme="dark"] .text-blue-900{color:#bcd2ff}
html[data-theme="dark"] .text-blue-950{color:#d6e4ff}
html[data-theme="dark"] .text-cyan-900{color:#9fe3f3}
html[data-theme="dark"] .text-cyan-950{color:#c4f1fb}
html[data-theme="dark"] .text-emerald-700,html[data-theme="dark"] .text-emerald-800{color:#70f0cb}
html[data-theme="dark"] .text-emerald-900{color:#b5fae9}
html[data-theme="dark"] .text-red-700{color:#ff9a9a}
html[data-theme="dark"] .text-red-900{color:#ffc0c0}
html[data-theme="dark"] .text-blue-700.underline,html[data-theme="dark"] a.text-blue-700{color:#8fb5ff}
/* 頁面自己的元件 */
html[data-theme="dark"] .donut::after{background:#0d1428;box-shadow:0 0 0 1px #263451}
html[data-theme="dark"] .donut-center .text-gray-500{color:#aab8d4}
html[data-theme="dark"] .donut-center strong{color:#eaf2ff}
html[data-theme="dark"] .floorplan-frame{background:linear-gradient(145deg,#152039,#10192b);border-color:#263451;box-shadow:none}
html[data-theme="dark"] .floorplan-frame img{border-radius:10px}
html[data-theme="dark"] .scenario-btn{background:#0f1830;border-color:#2c3b5b;color:#c3d0e8}
html[data-theme="dark"] .scenario-btn small{color:#9dabca}
html[data-theme="dark"] .scenario-btn[aria-pressed="true"]{background:#143c38;border-color:#70f0cb;color:#70f0cb;box-shadow:0 0 0 3px #70f0cb22}
html[data-theme="dark"] .scenario-btn[aria-pressed="true"] small{color:#8af5d8}
html[data-theme="dark"] .forecast-table tbody tr:nth-child(even){background:#0e1730}
html[data-theme="dark"] .forecast-table thead,html[data-theme="dark"] thead.bg-gray-100,html[data-theme="dark"] thead.bg-slate-100{background:#0f1830;color:#9dabca}
html[data-theme="dark"] .amount-negative{color:#ff8a8a}
html[data-theme="dark"] .amount-positive{color:#70f0cb}
html[data-theme="dark"] .assumption-card{background:#2a2210;border-left-color:#ffcb54}
html[data-theme="dark"] .wage-year{background:#0f1830;border-color:#2c3b5b;color:#aab8d4}
html[data-theme="dark"] .wage-year strong{color:#70f0cb}
html[data-theme="dark"] .wage-year[aria-pressed="true"]{background:#143c38;border-color:#70f0cb;box-shadow:0 0 0 2px #70f0cb33}
html[data-theme="dark"] .wage-detail{background:#143c38;color:#b5fae9}
html[data-theme="dark"] .wage-notice{background:#0f2f2c;border:1px solid #1f5a50}
html[data-theme="dark"] .wage-chart line{stroke:#263451}
html[data-theme="dark"] .wage-chart text{fill:#aab8d4}
html[data-theme="dark"] .wage-chart polyline{stroke:#70f0cb}
html[data-theme="dark"] .wage-chart text[fill="#065f46"]{fill:#8af5d8}
html[data-theme="dark"] .floorplan-dialog{background:#050913ee}
}
