
:root{
  --navy:#0f1e33;
  --green:#0c8c57;
  --green-dark:#087046;
  --green-soft:#eaf8f1;
  --blue:#1265c4;
  --blue-dark:#0a4f9d;
  --blue-soft:#eaf2ff;
  --orange:#ff8b1a;
  --red:#d71920;
  --muted:#607087;
  --line:#dbe4ef;
  --card:#ffffff;
  --shadow:0 18px 45px rgba(15,30,51,.12);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:"Noto Sans Thai","Tahoma","Arial",sans-serif;
  color:var(--navy);
  background:#f5f8fc;
  min-height:100vh;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    linear-gradient(120deg,rgba(255,255,255,.92),rgba(255,255,255,.86)),
    url("solar-bg.svg") center/cover no-repeat;
  opacity:.9;
  z-index:-2;
}
body::after{
  content:"";
  position:fixed;
  width:420px;height:420px;border-radius:50%;
  right:-130px;top:-120px;background:rgba(12,140,87,.16);
  z-index:-1;
}
a{color:inherit}.wrap{max-width:1220px;margin:auto;padding:22px}.hero{padding:20px 6px 10px}.hero h1{font-size:clamp(32px,6vw,78px);line-height:1.08;margin:0 0 14px;font-weight:900;letter-spacing:-1px}.hero p{font-size:clamp(16px,2.3vw,25px);line-height:1.65;margin:0;color:#3d4c60;font-weight:700}.green-text{color:var(--green)}.blue-text{color:var(--blue)}
.nav{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.nav a,.btn,button{border:0;cursor:pointer;text-decoration:none;border-radius:16px;padding:13px 18px;font-weight:900;font-size:16px;display:inline-flex;align-items:center;gap:8px;box-shadow:0 10px 20px rgba(15,30,51,.12)}.btn-green{background:var(--green);color:white}.btn-green:hover{background:var(--green-dark)}.btn-blue{background:var(--blue);color:white}.btn-blue:hover{background:var(--blue-dark)}.btn-white{background:white;color:var(--navy);border:1px solid var(--line)}.btn-orange{background:var(--orange);color:white}.btn-red{background:var(--red);color:white}.btn-small{padding:9px 12px;border-radius:12px;font-size:13px;box-shadow:none}.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:rgba(255,255,255,.94);border:1px solid rgba(219,228,239,.9);border-radius:24px;padding:22px;box-shadow:var(--shadow);backdrop-filter:blur(4px)}.panel-green{background:linear-gradient(135deg,rgba(12,140,87,.96),rgba(6,105,65,.90));color:white;border:0}.panel-blue{background:linear-gradient(135deg,rgba(18,101,196,.96),rgba(9,70,145,.90));color:white;border:0}.panel-green .muted,.panel-blue .muted{color:rgba(255,255,255,.84)}.section-title{font-size:25px;margin:0 0 14px;font-weight:900}.sub-title{font-size:19px;margin:0 0 12px;font-weight:900}.muted{color:var(--muted)}label{display:block;font-weight:900;margin:0 0 6px}input,select{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:14px;font-size:16px;background:white;color:var(--navy)}input[readonly]{background:#f1f5f9;font-weight:900;color:#334155}.field{margin-bottom:14px}.note{background:#fff8e9;border:1px solid #ffe0a8;border-radius:16px;padding:14px;color:#6b4700}.kpi{background:white;border:1px solid var(--line);border-radius:20px;padding:18px;min-height:105px}.panel-green .kpi,.panel-blue .kpi{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.25)}.kpi .label{font-size:14px;color:var(--muted);font-weight:800}.panel-green .kpi .label,.panel-blue .kpi .label{color:rgba(255,255,255,.85)}.kpi .value{font-size:clamp(22px,3vw,34px);font-weight:1000;margin-top:7px}.kpi .small{font-size:13px;color:var(--muted);font-weight:700}.panel-green .kpi .small,.panel-blue .kpi .small{color:rgba(255,255,255,.82)}.saving-highlight{border-radius:28px;padding:28px;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.12);margin:12px 0}.saving-highlight.green{background:linear-gradient(135deg,#18a862,#077144);color:white}.saving-highlight.blue{background:linear-gradient(135deg,#2079df,#0b4f9b);color:white}.saving-highlight .label{font-weight:900;font-size:18px;opacity:.9}.saving-highlight .percent{font-size:clamp(48px,8vw,86px);font-weight:1000;line-height:1;margin:8px 0}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:900;background:#eef2f7;color:#334155}.pill-green{background:#dff7eb;color:#087046}.pill-blue{background:#dfeeff;color:#0a4f9d}.pill-red{background:#fde6e7;color:#a80e14}.table-wrap{overflow:auto;border-radius:20px;border:1px solid var(--line);background:white}table{border-collapse:collapse;width:100%;min-width:980px}th,td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}th{background:#0f1e33;color:white;font-weight:900}tr:hover td{background:#f7fbff}.num{text-align:right}.price{color:var(--red);font-weight:1000}.save{color:var(--green);font-weight:1000}.formula{background:#f8fafc;border:1px dashed #aab7c8;border-radius:18px;padding:16px;line-height:1.8}.footer-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.print-only{display:none}.history{max-height:260px;overflow:auto}.result-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}.badge{border-radius:999px;padding:10px 14px;font-weight:1000;background:white;color:var(--navy)}.panel-green .badge{color:var(--green)}.panel-blue .badge{color:var(--blue)}.lock{position:relative}.lock::after{content:"แสดงผลเท่านั้น";position:absolute;right:10px;top:34px;font-size:11px;color:#64748b;background:#e2e8f0;border-radius:999px;padding:3px 8px}
@media(max-width:900px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}.wrap{padding:14px}.hero h1{font-size:38px}.nav a,.btn,button{width:100%;justify-content:center}.card{padding:16px}}
@media print{body::before,body::after,.nav,.footer-actions,.no-print{display:none!important}.wrap{max-width:none}.card{box-shadow:none;break-inside:avoid}.print-only{display:block}body{background:white}table{font-size:12px}.hero h1{font-size:32px}}


/* Slider: สัดส่วนใช้ไฟกลางวัน / กลางคืน */
.slider-field{background:#f8fbff;border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:14px}
.slider-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:8px 0 10px;font-weight:900;color:var(--navy);flex-wrap:wrap}
.slider-head strong{font-size:24px;color:var(--green);margin-left:4px}
.slider-head span:last-child strong{color:var(--blue)}
input[type=range].percent-slider{appearance:none;-webkit-appearance:none;width:100%;height:12px;border:0;border-radius:999px;padding:0;background:linear-gradient(90deg,var(--green),var(--blue));outline:none;cursor:pointer}
input[type=range].percent-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:30px;height:30px;border-radius:50%;background:#fff;border:5px solid var(--green);box-shadow:0 8px 18px rgba(15,30,51,.22);cursor:pointer}
input[type=range].percent-slider::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:#fff;border:5px solid var(--green);box-shadow:0 8px 18px rgba(15,30,51,.22);cursor:pointer}
.slider-scale{display:flex;justify-content:space-between;color:#64748b;font-size:12px;font-weight:800;margin-top:8px}
@media(max-width:640px){.slider-head strong{font-size:21px}}


/* ระบบ Final Summary */
.ai-summary-card{border:2px solid rgba(12,140,87,.18); background:linear-gradient(180deg,#ffffff,#f7fffb)}
.summary-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap;margin-bottom:14px}
.summary-lead{margin:0;color:#405166;font-weight:800;line-height:1.7}
.badge-summary{background:#eefbf4;color:var(--green);border:1px solid #cbeedc}
.summary-mini{margin:14px 0 18px}
.summary-section{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;margin-top:12px;line-height:1.85;font-weight:650;color:#25364c}
.summary-section h3{margin:0 0 8px;color:var(--navy);font-size:20px;font-weight:1000}
.summary-section p{margin:8px 0 0}.summary-section ul{margin:8px 0 0;padding-left:22px}.summary-section li{margin:5px 0}.summary-section b{color:#071a3d;font-weight:1000}.summary-warning{background:#fff8e9;border-color:#ffe0a8;color:#614200}
@media print{.ai-summary-card{break-inside:avoid}}


/* Required customer fields */
.required{color:var(--red);font-weight:1000}
input.input-error{border-color:var(--red)!important;box-shadow:0 0 0 4px rgba(215,25,32,.12)!important;background:#fff7f7!important}
input:required:invalid{border-color:#f2b6b9}

.solar-exit-modal{position:fixed;inset:0;background:rgba(15,30,51,.62);z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px}.solar-exit-box{background:white;border-radius:26px;max-width:520px;width:min(100%,520px);padding:26px;box-shadow:0 28px 80px rgba(0,0,0,.28);border:1px solid rgba(219,228,239,.95);text-align:center}.solar-exit-box h2{margin:0 0 10px;color:#b91c1c;font-size:28px}.solar-exit-box p{margin:0;color:#334155;line-height:1.7;font-weight:700}.solar-exit-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:20px}.input-error{border-color:#d71920!important;box-shadow:0 0 0 3px rgba(215,25,32,.12)!important}.required{color:#d71920}


/* ===== AI Green Theme Upgrade (Ongrid) ===== */
:root{
  --navy:#123126;
  --green:#169a5b;
  --green-dark:#0d7a46;
  --green-soft:#effcf4;
  --blue:#2375cf;
  --blue-dark:#1258a9;
  --blue-soft:#edf5ff;
  --orange:#ff9722;
  --red:#d91f26;
  --muted:#4f6b60;
  --line:#d6e8dd;
  --card:#ffffff;
  --shadow:0 20px 48px rgba(18,49,38,.10);
}
body{
  color:var(--navy);
  background:linear-gradient(180deg,#f4fff8 0%,#eefaf2 45%,#f8fcfa 100%);
}
body::before{
  background:
    radial-gradient(circle at 12% 14%, rgba(22,154,91,.16), transparent 18%),
    radial-gradient(circle at 88% 10%, rgba(35,117,207,.10), transparent 20%),
    linear-gradient(120deg,rgba(255,255,255,.94),rgba(247,255,250,.92)),
    url("solar-bg.svg") center/cover no-repeat;
  opacity:1;
}
body::after{
  width:560px;
  height:560px;
  right:-170px;
  top:-190px;
  background:radial-gradient(circle at center, rgba(22,154,91,.22) 0%, rgba(22,154,91,.05) 38%, rgba(22,154,91,0) 72%);
}
.wrap{padding-top:28px;padding-bottom:36px}
.hero{
  position:relative;
  overflow:hidden;
  padding:34px 34px 36px;
  border-radius:32px;
  background:linear-gradient(135deg, rgba(15,132,76,.96) 0%, rgba(38,177,111,.92) 46%, rgba(235,255,244,.98) 46.2%, rgba(255,255,255,.98) 100%);
  border:1px solid rgba(255,255,255,.72);
  box-shadow:0 26px 64px rgba(12,122,70,.18);
}
.hero::before{
  content:"";
  position:absolute;
  right:54px;
  top:26px;
  width:230px;
  height:230px;
  border-radius:50%;
  background:radial-gradient(circle at center, rgba(35,117,207,.17) 0%, rgba(35,117,207,.08) 38%, rgba(35,117,207,0) 72%);
}
.hero::after{
  content:"";
  position:absolute;
  right:10px;
  bottom:-16px;
  width:270px;
  height:170px;
  background:linear-gradient(135deg, rgba(255,255,255,.30), rgba(255,255,255,.08));
  clip-path:polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
.hero h1{
  position:relative;
  z-index:1;
  max-width:62%;
  color:#0b3521;
  text-shadow:0 1px 0 rgba(255,255,255,.65);
}
.hero p{
  position:relative;
  z-index:1;
  max-width:56%;
  color:#25503b;
}
.green-text{color:var(--green-dark)}
.blue-text{color:var(--blue)}
.nav{margin:24px 0 18px}
.nav a,.btn,button{
  border-radius:18px;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.nav a:hover,.btn:hover,button:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 28px rgba(18,49,38,.14);
}
.btn-green{background:linear-gradient(135deg,var(--green),#27b36f)}
.btn-blue{background:linear-gradient(135deg,var(--blue),#4b8fe1)}
.btn-white{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(22,154,91,.12);
  backdrop-filter:blur(8px);
}
.card{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(22,154,91,.10);
  border-radius:28px;
  box-shadow:0 18px 48px rgba(18,49,38,.10);
}
.section-title,.sub-title{color:#0f4f31}
input,select{
  border:1px solid #cfe5d7;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
input:focus,select:focus{
  outline:none;
  border-color:var(--green);
  box-shadow:0 0 0 4px rgba(22,154,91,.12);
}
.slider-field{
  background:linear-gradient(180deg,#f6fffa,#eefcf4);
  border:1px solid #d7efe1;
}
.slider-head strong:first-child, .slider-head span:first-child strong{color:var(--green-dark)}
.note{
  background:linear-gradient(180deg,#fff9eb,#fff3d2);
  border-color:#ffd992;
}
.table-wrap{border-color:#d7e9dd}
th{background:linear-gradient(135deg,#0f5132,#198754)}
tr:hover td{background:#f3fbf6}
.panel-green{background:linear-gradient(135deg,rgba(15,132,76,.98),rgba(6,102,57,.92))}
.panel-blue{background:linear-gradient(135deg,rgba(35,117,207,.96),rgba(18,88,169,.92))}
.ai-summary-card{border-color:rgba(22,154,91,.22); background:linear-gradient(180deg,#ffffff,#f6fff9)}
.summary-section{border-color:#dbe9e1}
@media(max-width:900px){
  .hero{padding:24px 20px 26px; background:linear-gradient(180deg, rgba(15,132,76,.96), rgba(40,180,113,.92) 40%, rgba(255,255,255,.98) 100%)}
  .hero h1,.hero p{max-width:100%}
  .hero::before{right:-30px; top:-10px; width:190px; height:190px; opacity:.55}
  .hero::after{right:-40px; width:220px; height:130px; opacity:.5}
}


/* ===== Futuristic Neon Green Upgrade (Ongrid) ===== */
body::before{
  background:
    linear-gradient(transparent 96%, rgba(30,191,109,.06) 96%),
    linear-gradient(90deg, transparent 96%, rgba(30,191,109,.05) 96%),
    radial-gradient(circle at 10% 18%, rgba(32,216,120,.18), transparent 20%),
    radial-gradient(circle at 85% 12%, rgba(60,146,255,.16), transparent 20%),
    linear-gradient(125deg,rgba(249,255,252,.96),rgba(242,255,248,.94)),
    url("solar-bg.svg") center/cover no-repeat;
  background-size:32px 32px,32px 32px,auto,auto,auto,cover;
}
.hero{
  border:1px solid rgba(162,255,206,.62);
  background:
    linear-gradient(135deg, rgba(10,88,53,.98) 0%, rgba(22,155,90,.96) 34%, rgba(34,210,121,.88) 48%, rgba(245,255,249,.98) 48.4%, rgba(255,255,255,.98) 100%);
  box-shadow:0 30px 80px rgba(14,120,71,.22), inset 0 1px 0 rgba(255,255,255,.22);
}
.hero::before{
  background:radial-gradient(circle at center, rgba(84,170,255,.24) 0%, rgba(84,170,255,.12) 36%, rgba(84,170,255,0) 72%);
  filter:blur(2px);
}
.hero h1{
  color:#ffffff;
  max-width:58%;
  text-shadow:0 0 22px rgba(159,255,205,.30);
}
.hero p{
  max-width:56%;
  color:#e8fff2;
}
.hero .green-text{color:#a8ffd0}
.hero .blue-text{color:#cae2ff}
.card{
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(16px);
  box-shadow:0 18px 54px rgba(15,56,34,.10), inset 0 1px 0 rgba(255,255,255,.55);
}
.section-title{letter-spacing:-.2px}
.nav a,.btn,button{position:relative;overflow:hidden}
.nav a::after,.btn::after,button::after{
  content:"";
  position:absolute;
  inset:auto -40% -120% auto;
  width:120px;height:120px;border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.32), rgba(255,255,255,0) 70%);
  pointer-events:none;
}
.btn-green{box-shadow:0 14px 28px rgba(22,154,91,.26)}
.btn-blue{box-shadow:0 14px 28px rgba(35,117,207,.22)}
input,select{
  background:linear-gradient(180deg, #ffffff, #fbfffd);
  border-color:#cae8d7;
}
.kpi{
  border:1px solid rgba(22,154,91,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
.saving-highlight.green{background:linear-gradient(135deg,#1ec06d,#087748)}
.panel-green{box-shadow:0 24px 58px rgba(12,122,70,.18)}
@media(max-width:900px){
  .hero h1,.hero p{max-width:100%}
}


/* ===== Green-only Hero + Logo for Ongrid ===== */
:root{
  --navy:#11412a;
  --green:#11a35e;
  --green-dark:#0b7b45;
  --green-soft:#eefaf3;
  --blue:#138a57;
  --blue-dark:#0b6f45;
  --blue-soft:#e8f7ef;
  --line:#d4e9dc;
  --muted:#466b59;
}
body{
  background:
    linear-gradient(rgba(17,163,94,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,163,94,.06) 1px, transparent 1px),
    linear-gradient(180deg,#f7fcf9 0%,#eef8f2 100%);
  background-size:40px 40px,40px 40px,auto;
}
body::before{
  background:none;
}
body::after{
  background:radial-gradient(circle at center, rgba(17,163,94,.18) 0%, rgba(17,163,94,.05) 42%, rgba(17,163,94,0) 72%);
}
.hero{
  background:linear-gradient(135deg,#0b7b45 0%, #129558 46%, #1cc06d 100%);
  border:1px solid rgba(165,255,209,.42);
  box-shadow:0 26px 70px rgba(10,109,61,.24);
}
.hero::before{display:none}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size:36px 36px;
  opacity:.35;
  pointer-events:none;
}
.hero-brand{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
}
.hero-brand-logo{
  width:168px;
  max-width:40vw;
  background:rgba(255,255,255,.96);
  border-radius:22px;
  padding:10px 14px;
  box-shadow:0 14px 30px rgba(0,0,0,.14);
}
.hero-brand-copy{display:none}
.hero h1,.hero p,.hero .green-text,.hero .blue-text{
  color:#ffffff !important;
  position:relative;
  z-index:2;
}
.hero h1{max-width:72%; text-shadow:0 2px 16px rgba(0,0,0,.10)}
.hero p{max-width:70%; color:rgba(255,255,255,.95) !important}
.btn-green{background:linear-gradient(135deg,#11a35e,#0b7b45)}
.btn-blue{background:linear-gradient(135deg,#14b86a,#0c8b4e)}
.panel-blue{background:linear-gradient(135deg,#13a85f,#0b7b45)}
.slider-head span:last-child strong{color:#dfffee}
input[type=range].percent-slider{background:linear-gradient(90deg,#0b7b45,#27c979)}
.section-title{color:#0b6f3f}
.card{border-color:rgba(17,163,94,.14)}
@media(max-width:900px){
  .hero-brand{margin-bottom:16px}
  .hero-brand-logo{width:138px}
  .hero h1,.hero p{max-width:100%}
}


/* ===== Fix Ongrid Result Display: Green Background + White Text ===== */
body[data-page="ai"] .card.panel-green,
body[data-page="custom"] .card.panel-blue{
  background:linear-gradient(135deg,#0a6d3d 0%, #0f8f51 45%, #16b96a 100%) !important;
  color:#ffffff !important;
  border:1px solid rgba(190,255,218,.42) !important;
  box-shadow:0 26px 70px rgba(10,109,61,.25) !important;
}
body[data-page="ai"] .card.panel-green *,
body[data-page="custom"] .card.panel-blue *{
  color:#ffffff !important;
}
body[data-page="ai"] .card.panel-green .muted,
body[data-page="custom"] .card.panel-blue .muted,
body[data-page="ai"] .card.panel-green .small,
body[data-page="custom"] .card.panel-blue .small,
body[data-page="ai"] .card.panel-green .label,
body[data-page="custom"] .card.panel-blue .label{
  color:rgba(255,255,255,.86) !important;
}
body[data-page="ai"] .card.panel-green .kpi,
body[data-page="custom"] .card.panel-blue .kpi{
  background:rgba(255,255,255,.12) !important;
  border:1px solid rgba(255,255,255,.24) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 12px 30px rgba(0,0,0,.08) !important;
}
body[data-page="ai"] .card.panel-green .badge,
body[data-page="custom"] .card.panel-blue .badge{
  background:rgba(255,255,255,.18) !important;
  border:1px solid rgba(255,255,255,.25) !important;
  color:#ffffff !important;
}
body[data-page="ai"] .card.panel-green .saving-highlight,
body[data-page="custom"] .card.panel-blue .saving-highlight{
  background:rgba(255,255,255,.16) !important;
  border:1px solid rgba(255,255,255,.25) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 16px 38px rgba(0,0,0,.10) !important;
}
body[data-page="ai"] .card.panel-green .lock::after,
body[data-page="custom"] .card.panel-blue .lock::after{
  background:rgba(255,255,255,.20) !important;
  color:#ffffff !important;
}


/* ===== Ongrid Button Adjustments ===== */
.btn-blue{background:linear-gradient(135deg,#1e6fe8,#0c52c9)!important;color:#fff!important}
.btn-blue:hover{background:linear-gradient(135deg,#175ec7,#0a46ab)!important}
.btn-red{background:linear-gradient(135deg,#d92525,#a90f15)!important;color:#fff!important}
.btn-red:hover{background:linear-gradient(135deg,#bd1d1d,#8f0d12)!important}
.btn-orange-dark{background:linear-gradient(135deg,#d96a00,#a94e00)!important;color:#fff!important;border:0}
.btn-orange-dark:hover{background:linear-gradient(135deg,#bf5d00,#8f4200)!important}


/* === V5 Company Proposal Print Report === */
.professional-print-report{display:none;font-family:Thonburi, "Thonburi", Arial, sans-serif;color:#0f1e33;background:#fff;line-height:1.55}
@media print{
  @page{size:A4;margin:0}
  body.print-report-mode{background:#fff!important}
  body.print-report-mode > *:not(.professional-print-report){display:none!important}
  body.print-report-mode .professional-print-report{display:block!important;padding:0;margin:0;background:#fff;color:#0f1e33}
  .report-page{--report-accent:#0c8c57;--report-soft:#e8f8ef;--report-dark:#06245b;position:relative;page-break-after:always;break-after:page;padding:11mm 12mm 12mm;min-height:297mm;box-sizing:border-box;background:#fff;overflow:hidden}
  .report-page:last-child{page-break-after:auto;break-after:auto}
  .report-page.theme-hybrid{--report-accent:#0b8a34;--report-soft:#e9f8ef;--report-dark:#06245b}
  .report-page.theme-ongrid{--report-accent:#0c8c57;--report-soft:#e8f8ef;--report-dark:#063d8f}
  .report-page::before{content:"";position:absolute;left:0;top:0;width:5.5mm;height:100%;background:linear-gradient(180deg,var(--report-dark),var(--report-accent));z-index:0}
  .report-page > *{position:relative;z-index:1}
  .report-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:3px solid var(--report-accent);padding:0 0 8px;margin:0 0 10px;gap:16px}
  .report-logo{width:190px;height:auto;object-fit:contain;display:block}
  .report-meta{text-align:right;color:#334155;font-size:10.5px;font-weight:800;line-height:1.55;min-width:120px}
  .report-meta b{display:block;color:var(--report-dark);font-size:13px;margin-bottom:2px}
  .report-title{font-size:22px;font-weight:1000;margin:8px 0 2px;color:#0f1e33;line-height:1.25}.report-title .accent{color:var(--report-accent)}
  .report-sub{font-size:11.5px;color:#475569;font-weight:800}
  .report-badge{background:var(--report-soft);color:var(--report-accent);border:1px solid color-mix(in srgb, var(--report-accent) 30%, #fff);border-radius:999px;padding:6px 11px;font-weight:1000;font-size:11.5px;display:inline-block;margin-top:7px}
  .report-cover-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:11px;align-items:stretch;margin-top:10px}
  .report-hero-image{width:100%;height:88mm;object-fit:cover;border-radius:14px;border:1px solid #dbe4ef;display:block;box-shadow:0 10px 24px rgba(15,30,51,.10)}
  .report-client-card,.report-summary-card,.report-section{border:1px solid #dbe4ef;border-radius:14px;background:#fff;box-shadow:0 8px 18px rgba(15,30,51,.05);padding:10px 12px;break-inside:avoid;margin:9px 0}
  .report-client-card h2,.report-summary-card h2,.report-section h2{font-size:15.5px;margin:0 0 7px;color:var(--report-accent);font-weight:1000}
  .report-client-list{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;font-size:11.5px}.report-client-list span{display:block;color:#64748b;font-weight:800}.report-client-list b{display:block;color:#0f1e33;font-size:12.3px}
  .report-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:9px 0}.report-kpi{border:1px solid #dbe4ef;border-radius:13px;padding:9px;background:#f8fafc;text-align:center}.report-kpi small{display:block;color:#64748b;font-weight:900;font-size:10px}.report-kpi b{display:block;font-size:16px;margin-top:3px;color:var(--report-dark);line-height:1.15}
  .report-summary-card p,.report-section p{margin:5px 0;font-size:12px;line-height:1.65;color:#24364f}.report-section ul{margin:6px 0 0 17px;padding:0;font-size:12px;line-height:1.55}.report-section li{margin:3px 0}
  .report-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:9px}.report-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
  .report-table{width:100%;min-width:0;border-collapse:collapse;font-size:11px}.report-table th,.report-table td{border:1px solid #dbe4ef;padding:6px 7px;white-space:normal;vertical-align:top}.report-table th{background:var(--report-dark);color:#fff;font-weight:1000}.report-table td:first-child{color:#475569;font-weight:900}.report-table td:last-child{font-weight:900;color:#0f1e33}.report-table .money{color:var(--report-accent);font-weight:1000}
  .report-note{background:#fff8e9;border:1px solid #ffd999;border-radius:12px;padding:8px 10px;margin-top:7px;color:#664400;font-weight:800;font-size:10.8px}
  .saving-chart{display:grid;grid-template-columns:1fr 1fr 1fr;gap:11px;align-items:end;margin:11px 0 4px;padding:14px 10px;border:1px solid #dbe4ef;border-radius:14px;background:linear-gradient(180deg,#ffffff,#f8fafc)}
  .chart-item{text-align:center;font-size:10.5px;color:#475569;font-weight:900}.chart-bar{width:56px;margin:0 auto 6px;border-radius:10px 10px 4px 4px;background:#cbd5e1;min-height:18mm;display:flex;align-items:flex-start;justify-content:center;padding-top:5px;color:#fff;font-size:10px}.chart-bar.after{background:var(--report-accent)}.chart-bar.save{background:#ef4444}.chart-value{display:block;color:#0f1e33;font-size:12px;font-weight:1000}
  .reason-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.reason-item{border:1px solid #dbe4ef;border-radius:12px;padding:9px 10px;background:#f8fafc;font-size:11.5px;font-weight:800;color:#334155}.reason-item b{display:block;color:var(--report-accent);font-size:12.5px;margin-bottom:2px}
  .contact-box{display:grid;grid-template-columns:1.1fr .9fr;gap:12px;align-items:center;border-radius:16px;background:linear-gradient(135deg,var(--report-dark),var(--report-accent));color:#fff;padding:13px 15px;margin-top:11px}.contact-box h2{color:#fff;margin:0 0 5px;font-size:16px}.contact-box p{margin:3px 0;color:#fff;font-weight:900;font-size:12px}.contact-box .phone{font-size:18px;color:#ffcc24;font-weight:1000}.contact-mini{background:rgba(255,255,255,.14);border-radius:12px;padding:10px;font-size:11px;font-weight:850;line-height:1.7}
  .cert-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:end;margin-top:18px}.cert-card{border:1px solid #dbe4ef;border-radius:16px;padding:13px;text-align:center;min-height:78mm;background:#fff}.cert-card h2{margin:0 0 7px;color:var(--report-dark);font-size:15px}.signature-img{width:150px;max-height:58px;object-fit:contain;margin:8px auto 2px;display:block}.signature-name{font-size:13px;font-weight:1000;color:#0f1e33}.signature-role{font-size:11px;color:#64748b;font-weight:900}.stamp-img{width:198px;max-width:100%;height:auto;object-fit:contain;margin:10px auto 0;display:block}.signature-line{border-top:1px solid #94a3b8;margin:55px 18px 8px;padding-top:8px;font-weight:900;color:#475569;font-size:11.5px}

.equipment-gallery{margin-top:10px}
.equipment-gallery h2{margin:0 0 7px;color:var(--report-dark);font-size:15px}
.equipment-gallery p{margin:0 0 10px;color:#475569;font-size:11px;line-height:1.5}
.equipment-grid{display:grid;gap:10px}
.equipment-grid.cols-2{grid-template-columns:1fr 1fr}
.equipment-grid.cols-3{grid-template-columns:repeat(3,1fr)}
.equipment-card{border:1px solid #dbe4ef;border-radius:16px;padding:10px;background:#fff;display:flex;flex-direction:column;align-items:center;text-align:center;min-height:56mm}
.equipment-card img{width:100%;max-width:100%;height:48mm;object-fit:contain;margin:0 auto 8px;display:block}
.equipment-card.large img{height:56mm}
.equipment-card.wide{grid-column:1 / -1}
.equipment-card.wide img{height:68mm}
.equipment-card b{display:block;color:var(--report-dark);font-size:12.5px;line-height:1.35}
.equipment-card span{display:block;margin-top:4px;color:#64748b;font-size:10.4px;line-height:1.45}

.report-benefit-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}
.report-benefit-card{border:1px solid #dbe4ef;border-radius:12px;background:linear-gradient(180deg,#ffffff,#f8fafc);padding:8px 9px;min-height:23mm}
.report-benefit-card b{display:block;color:var(--report-dark);font-size:12.5px;margin-bottom:3px;line-height:1.25}
.report-benefit-card span{display:block;color:#475569;font-size:10.7px;line-height:1.45;font-weight:800}
.report-advice-box{margin-top:9px;border-left:4px solid var(--report-accent);background:var(--report-soft);border-radius:10px;padding:8px 10px;color:#0f1e33;font-size:11px;line-height:1.55;font-weight:850}
.report-advice-box b{color:var(--report-dark);font-size:11.5px}
.report-process-list{display:grid;gap:6px;margin-top:6px}
.report-process-step{display:grid;grid-template-columns:26px 1fr;gap:7px;align-items:start;border:1px solid #dbe4ef;border-radius:12px;background:#fff;padding:7px 8px}
.report-process-step i{width:24px;height:24px;border-radius:999px;background:var(--report-accent);color:#fff;display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:1000;font-size:11px}
.report-process-step b{display:block;color:var(--report-dark);font-size:11.2px;line-height:1.25}
.report-process-step span{display:block;color:#475569;font-size:9.8px;line-height:1.35;font-weight:800;margin-top:1px}
 .report-footer{position:absolute;left:12mm;right:12mm;bottom:6mm;border-top:1px solid #dbe4ef;padding-top:4px;display:flex;justify-content:space-between;color:#64748b;font-size:9.5px;font-weight:900}.report-footer b{color:var(--report-dark)}
}

@media print{.professional-print-report img{display:block!important;visibility:visible!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.cert-grid{page-break-inside:avoid;break-inside:avoid}.cert-card img{opacity:1!important}}


/* === V7 Compact Professional PDF Report: fills each print page and removes large blank gaps === */
@media print{
  body.print-report-mode .professional-print-report{font-family:Thonburi, "Thonburi", Arial, sans-serif!important;line-height:1.35!important}
  .report-page{height:297mm!important;min-height:0!important;padding:7mm 8mm 8mm 11mm!important;display:flex!important;flex-direction:column!important;gap:6px!important;page-break-after:always!important;break-after:page!important;overflow:hidden!important}
  .report-page:last-child{page-break-after:auto!important;break-after:auto!important}
  .report-page::before{width:4mm!important}
  .report-head{margin:0 0 5px!important;padding:0 0 5px!important;border-bottom:2.5px solid var(--report-accent)!important;gap:10px!important;min-height:22mm!important;align-items:flex-start!important}
  .report-logo{width:158px!important;max-height:24mm!important;object-fit:contain!important}
  .report-title{font-size:18px!important;margin:4px 0 0!important;line-height:1.22!important}
  .report-sub{font-size:9.8px!important;color:#536174!important}
  .report-meta{font-size:9.4px!important;line-height:1.45!important;min-width:104px!important}.report-meta b{font-size:11px!important}
  .report-cover-grid{grid-template-columns:.94fr 1.06fr!important;gap:7px!important;margin-top:1px!important;flex:1!important;align-items:stretch!important}
  .report-hero-image{height:56mm!important;border-radius:10px!important;box-shadow:none!important}
  .report-client-card,.report-summary-card,.report-section{border-radius:10px!important;padding:7px 8px!important;margin:4px 0!important;box-shadow:none!important;break-inside:avoid!important}
  .report-client-card h2,.report-summary-card h2,.report-section h2{font-size:12.8px!important;margin:0 0 4px!important}
  .report-client-list{grid-template-columns:1fr 1fr!important;gap:4px 8px!important;font-size:9.5px!important}.report-client-list b{font-size:10.4px!important}
  .report-summary-card p,.report-section p{font-size:10.7px!important;line-height:1.5!important;margin:3px 0!important}.report-section ul{font-size:10.5px!important;line-height:1.42!important;margin:3px 0 0 14px!important}.report-section li{margin:1px 0!important}
  .report-kpis{grid-template-columns:repeat(4,1fr)!important;gap:5px!important;margin:5px 0!important}.report-kpi{border-radius:10px!important;padding:6px 5px!important}.report-kpi small{font-size:8.6px!important}.report-kpi b{font-size:12.5px!important}
  .report-grid-2{gap:6px!important}.report-grid-3{gap:6px!important}
  .report-table{font-size:9.5px!important}.report-table th,.report-table td{padding:4px 5px!important;line-height:1.32!important}
  .report-table.compact td{padding:3.5px 5px!important}.report-table.compact th{padding:4px 5px!important}
  .report-note{font-size:9.3px!important;padding:5px 7px!important;margin-top:4px!important;border-radius:9px!important}
  .saving-chart{gap:7px!important;margin:5px 0!important;padding:7px 7px!important;border-radius:10px!important}.chart-bar{width:44px!important;min-height:12mm!important;margin-bottom:3px!important;border-radius:8px 8px 3px 3px!important;font-size:8.8px!important;padding-top:3px!important}.chart-item{font-size:9.2px!important}.chart-value{font-size:10.5px!important}
  .reason-list{grid-template-columns:repeat(2,1fr)!important;gap:5px!important}.reason-item{font-size:9.8px!important;padding:6px 7px!important;border-radius:9px!important}.reason-item b{font-size:10.5px!important;margin-bottom:1px!important}
  .summary-ribbon{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:4px 0}.summary-ribbon div{border-radius:10px;background:var(--report-soft);border:1px solid #d7e5f3;padding:6px;text-align:center;font-size:9px;font-weight:900;color:#475569}.summary-ribbon b{display:block;color:var(--report-dark);font-size:12px;margin-top:2px}
  .report-fill{flex:1;display:flex;flex-direction:column;gap:4px}.report-fill .report-section{flex:0 0 auto}.report-fill .report-section.flex-grow{flex:1}
  .contact-box{grid-template-columns:1fr .85fr!important;padding:8px 10px!important;margin-top:5px!important;border-radius:12px!important}.contact-box h2{font-size:13px!important}.contact-box p{font-size:10px!important}.contact-box .phone{font-size:14px!important}.contact-mini{font-size:9.6px!important;padding:7px!important;border-radius:9px!important}
  .cert-grid{gap:8px!important;margin-top:5px!important}.cert-card{min-height:40mm!important;padding:8px!important;border-radius:12px!important}.cert-card h2{font-size:12px!important;margin:0 0 3px!important}.signature-img{width:130px!important;max-height:38px!important;margin:3px auto 1px!important}.stamp-img{width:170px!important;max-height:62px!important;margin:5px auto 1px!important}.signature-name{font-size:10.8px!important}.signature-role{font-size:9.4px!important}.signature-line{margin:18px 10px 4px!important;font-size:10px!important}.equipment-gallery{margin-top:6px!important}.equipment-gallery h2{font-size:12px!important;margin:0 0 4px!important}.equipment-gallery p{font-size:9.2px!important;margin:0 0 5px!important}.equipment-grid{gap:6px!important}.equipment-card{padding:6px!important;border-radius:12px!important;min-height:0!important}.equipment-card img{height:28mm!important;margin:0 auto 5px!important}.equipment-card.large img{height:32mm!important}.equipment-card.wide img{height:40mm!important}.equipment-card b{font-size:10.2px!important}.equipment-card span{font-size:8.8px!important;line-height:1.35!important}
  .report-benefit-grid{gap:5px!important;margin-top:5px!important}.report-benefit-card{padding:6px 7px!important;border-radius:9px!important;min-height:0!important}.report-benefit-card b{font-size:10.5px!important;margin-bottom:1px!important}.report-benefit-card span{font-size:9px!important;line-height:1.32!important}.report-advice-box{margin-top:5px!important;padding:5px 7px!important;font-size:9.2px!important;line-height:1.35!important;border-left-width:3px!important;border-radius:8px!important}.report-advice-box b{font-size:9.6px!important}.report-process-list{gap:4px!important;margin-top:3px!important}.report-process-step{grid-template-columns:21px 1fr!important;gap:5px!important;border-radius:9px!important;padding:5px 6px!important}.report-process-step i{width:19px!important;height:19px!important;font-size:9px!important}.report-process-step b{font-size:9.5px!important}.report-process-step span{font-size:8.3px!important;line-height:1.25!important}.report-footer{left:11mm!important;right:8mm!important;bottom:4mm!important;font-size:8.5px!important;padding-top:3px!important}
  .professional-print-report img{display:block!important;visibility:visible!important;opacity:1!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
}


/* === V8 Print-safe SVG Chart for PDF reports === */
@media print{
  .report-chart-card{border:1px solid #dbe4ef!important;border-radius:12px!important;background:#fff!important;padding:7px 9px!important;margin:5px 0!important;break-inside:avoid!important;page-break-inside:avoid!important;box-shadow:none!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .report-chart-header{display:flex!important;justify-content:space-between!important;gap:8px!important;align-items:flex-start!important;margin-bottom:3px!important}
  .report-chart-header h2{font-size:13.2px!important;margin:0 0 2px!important;color:var(--report-accent)!important;font-weight:1000!important;line-height:1.25!important}
  .report-chart-header p{font-size:9.4px!important;margin:0!important;color:#64748b!important;font-weight:750!important;line-height:1.35!important}
  .report-chart-badge{border:1px solid var(--report-accent)!important;color:var(--report-accent)!important;background:#fff!important;border-radius:999px!important;padding:2px 9px!important;font-size:10px!important;font-weight:1000!important;white-space:nowrap!important}
  .report-chart-svg{display:block!important;width:100%!important;height:60mm!important;max-height:60mm!important;overflow:visible!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .report-chart-svg rect,.report-chart-svg line,.report-chart-svg polyline,.report-chart-svg circle,.report-chart-svg text{visibility:visible!important;opacity:1!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .chart-summary-row{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:5px!important;margin-top:3px!important}
  .chart-summary-row div{border:1px solid #dbe4ef!important;border-radius:9px!important;padding:4px 6px!important;text-align:center!important;background:#f8fafc!important}
  .chart-summary-row span{display:block!important;color:#64748b!important;font-size:8.6px!important;font-weight:900!important;line-height:1.15!important}
  .chart-summary-row b{display:block!important;color:#0f1e33!important;font-size:10.7px!important;font-weight:1000!important;line-height:1.15!important;margin-top:1px!important}
  .report-chart-note{font-size:9.4px!important;line-height:1.35!important;color:#334155!important;background:#f8fafc!important;border:1px dashed #cbd5e1!important;border-radius:9px!important;padding:5px 7px!important;margin-top:4px!important;font-weight:800!important}
}


/* V22 Global header + back home button */
.global-header{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(10,61,143,.10);box-shadow:0 10px 26px rgba(15,30,51,.06);margin:0 0 18px}
.global-header .inner{max-width:1280px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 28px}
.global-logo{display:flex;align-items:center;text-decoration:none}.global-logo img{height:84px;max-width:min(38vw,470px);width:auto;display:block}
.global-nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:center}.global-nav a{font-size:17px;font-weight:900;color:#111827;text-decoration:none}.global-nav a:hover{color:var(--blue)}
.global-consult{display:inline-flex;align-items:center;justify-content:center;background:#ff8a1f;color:#fff!important;text-decoration:none;border-radius:18px;padding:15px 28px;font-size:18px;font-weight:1000;box-shadow:0 12px 24px rgba(255,138,31,.25)}
.home-back-wrap{display:flex;justify-content:center;margin:18px 0 8px}.home-back-btn{display:inline-flex;align-items:center;justify-content:center;background:#ff8a1f;color:#fff;text-decoration:none;border-radius:16px;padding:14px 28px;font-size:19px;font-weight:1000;box-shadow:0 12px 24px rgba(255,138,31,.25)}
@media(max-width:900px){.global-header .inner{padding:12px 16px;flex-direction:column;align-items:flex-start}.global-logo img{height:60px;max-width:88vw}.global-nav{gap:12px;justify-content:flex-start}.global-nav a{font-size:15px}.global-consult{padding:12px 20px;font-size:16px}.home-back-btn{width:100%}.global-header{margin:0 0 16px}}
@media print{.global-header,.home-back-wrap{display:none!important}}


/* V23 PDF Thai font fix: force Thonburi in print/PDF reports */
@media print{
  body.print-report-mode,
  body.print-report-mode .professional-print-report,
  body.print-report-mode .professional-print-report *,
  body.print-report-mode .report-page,
  body.print-report-mode .report-page *{font-family:Thonburi, "Thonburi", Arial, sans-serif!important;}
  body.print-report-mode svg,
  body.print-report-mode svg *,
  body.print-report-mode .report-chart-svg text{font-family:Thonburi, "Thonburi", Arial, sans-serif!important;}
}

/* V25: actual ongrid saving calculation note */
.actual-saving-note{margin-top:10px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:16px;padding:12px 14px;color:#14532d;font-weight:800;line-height:1.65}
.actual-saving-note b{color:#0f5132}
@media print{.actual-saving-note{background:#f8fff9!important;border-color:#cdebd8!important;color:#123126!important}}

.save-right{margin-left:auto}
@media(max-width:900px){.save-right{margin-left:0}}

.solar-closing-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.solar-closing-card{border:1px solid #dbe4ef;border-radius:16px;overflow:hidden;background:#fff;min-height:46mm;display:flex;flex-direction:column;justify-content:space-between}
.solar-closing-card img{width:100%;height:36mm;object-fit:cover;display:block}
.solar-closing-card b{display:block;padding:8px 10px 0;color:var(--report-dark);font-size:12px;font-weight:1000}.solar-closing-card span{display:block;padding:3px 10px 10px;color:#64748b;font-size:9.4px;font-weight:850;line-height:1.35}
@media print{.solar-closing-grid{gap:6px!important;margin-top:6px!important}.solar-closing-card{min-height:28mm!important}.solar-closing-card img{height:22mm!important}.solar-closing-card b{font-size:10px!important;padding:5px 7px 0!important}.solar-closing-card span{font-size:8.4px!important;padding:2px 7px 6px!important}}


/* === V36: Larger text in On Grid / Hybrid PDF reports while keeping 3 pages === */
@media print{
  body.print-report-mode .professional-print-report{font-family:Thonburi,"Thonburi",Arial,sans-serif!important;line-height:1.42!important}
  body.print-report-mode .report-page{height:297mm!important;min-height:0!important;padding:6.5mm 7.2mm 8mm 10mm!important;gap:5px!important;overflow:hidden!important}
  body.print-report-mode .report-head{min-height:20mm!important;margin:0 0 4px!important;padding:0 0 5px!important;gap:9px!important}
  body.print-report-mode .report-logo{width:154px!important;max-height:22mm!important}
  body.print-report-mode .report-title{font-size:20px!important;line-height:1.18!important;margin:3px 0 0!important}
  body.print-report-mode .report-sub{font-size:11px!important;line-height:1.25!important}
  body.print-report-mode .report-meta{font-size:10.2px!important;line-height:1.35!important;min-width:102px!important}
  body.print-report-mode .report-meta b{font-size:12px!important}
  body.print-report-mode .report-cover-grid{gap:6px!important;margin-top:0!important}
  body.print-report-mode .report-hero-image{height:54mm!important}
  body.print-report-mode .report-client-card,
  body.print-report-mode .report-summary-card,
  body.print-report-mode .report-section{padding:6.5px 8px!important;margin:3.5px 0!important;border-radius:10px!important}
  body.print-report-mode .report-client-card h2,
  body.print-report-mode .report-summary-card h2,
  body.print-report-mode .report-section h2{font-size:14px!important;line-height:1.2!important;margin:0 0 3px!important}
  body.print-report-mode .report-client-list{font-size:10.6px!important;gap:3px 7px!important}
  body.print-report-mode .report-client-list b{font-size:11.5px!important;line-height:1.22!important}
  body.print-report-mode .report-summary-card p,
  body.print-report-mode .report-section p{font-size:11.8px!important;line-height:1.42!important;margin:2.5px 0!important}
  body.print-report-mode .report-section ul{font-size:11.6px!important;line-height:1.32!important;margin:2px 0 0 13px!important}
  body.print-report-mode .report-section li{margin:0!important}
  body.print-report-mode .report-kpis{gap:4px!important;margin:4px 0!important}
  body.print-report-mode .report-kpi{padding:5px 5px!important;border-radius:9px!important}
  body.print-report-mode .report-kpi small{font-size:9.4px!important;line-height:1.12!important}
  body.print-report-mode .report-kpi b{font-size:14px!important;line-height:1.12!important;margin-top:1px!important}
  body.print-report-mode .report-grid-2,
  body.print-report-mode .report-grid-3{gap:5px!important}
  body.print-report-mode .report-table{font-size:10.7px!important;line-height:1.25!important}
  body.print-report-mode .report-table th,
  body.print-report-mode .report-table td{padding:3.5px 5px!important;line-height:1.25!important}
  body.print-report-mode .report-table.compact td{padding:3px 4.5px!important}
  body.print-report-mode .report-note{font-size:10.2px!important;line-height:1.28!important;padding:4.5px 6px!important;margin-top:3px!important}
  body.print-report-mode .summary-ribbon{gap:4px!important;margin:3px 0!important}
  body.print-report-mode .summary-ribbon div{font-size:10px!important;padding:5px!important}
  body.print-report-mode .summary-ribbon b{font-size:13.5px!important;margin-top:1px!important}
  body.print-report-mode .report-benefit-grid{gap:4px!important;margin-top:4px!important}
  body.print-report-mode .report-benefit-card{padding:5px 6px!important;border-radius:9px!important;min-height:0!important}
  body.print-report-mode .report-benefit-card b{font-size:11.4px!important;line-height:1.18!important;margin-bottom:1px!important}
  body.print-report-mode .report-benefit-card span{font-size:9.8px!important;line-height:1.25!important}
  body.print-report-mode .report-advice-box{font-size:10.2px!important;line-height:1.28!important;padding:5px 7px!important;margin-top:4px!important}
  body.print-report-mode .report-advice-box b{font-size:10.5px!important}
  body.print-report-mode .report-process-list{gap:3px!important;margin-top:2px!important}
  body.print-report-mode .report-process-step{grid-template-columns:21px 1fr!important;gap:5px!important;padding:4.5px 6px!important;border-radius:9px!important}
  body.print-report-mode .report-process-step i{width:19px!important;height:19px!important;font-size:9.5px!important}
  body.print-report-mode .report-process-step b{font-size:10.2px!important;line-height:1.16!important}
  body.print-report-mode .report-process-step span{font-size:9px!important;line-height:1.18!important}
  body.print-report-mode .report-chart-card{padding:6px 8px!important;margin:4px 0!important}
  body.print-report-mode .report-chart-header h2{font-size:14px!important;line-height:1.2!important}
  body.print-report-mode .report-chart-header p{font-size:10.2px!important;line-height:1.22!important}
  body.print-report-mode .report-chart-svg{height:56mm!important;max-height:56mm!important}
  body.print-report-mode .chart-summary-row span{font-size:9.3px!important}
  body.print-report-mode .chart-summary-row b{font-size:11.6px!important}
  body.print-report-mode .report-chart-note{font-size:10.2px!important;line-height:1.25!important;padding:4.5px 6px!important}
  body.print-report-mode .contact-box{padding:7px 9px!important;margin-top:4px!important;border-radius:11px!important;gap:8px!important}
  body.print-report-mode .contact-box h2{font-size:14px!important;margin-bottom:2px!important}
  body.print-report-mode .contact-box p{font-size:11px!important;margin:2px 0!important}
  body.print-report-mode .contact-box .phone{font-size:15px!important}
  body.print-report-mode .contact-mini{font-size:10.2px!important;line-height:1.35!important;padding:6px!important}
  body.print-report-mode .equipment-gallery{margin-top:4px!important}
  body.print-report-mode .equipment-gallery h2{font-size:13px!important;margin-bottom:3px!important}
  body.print-report-mode .equipment-gallery p{font-size:10.1px!important;line-height:1.25!important;margin-bottom:4px!important}
  body.print-report-mode .equipment-grid{gap:5px!important}
  body.print-report-mode .equipment-card{padding:5px!important;border-radius:10px!important}
  body.print-report-mode .equipment-card img{height:27mm!important;margin-bottom:3px!important}
  body.print-report-mode .equipment-card.large img{height:31mm!important}
  body.print-report-mode .equipment-card.wide img{height:39mm!important}
  body.print-report-mode .equipment-card b{font-size:11.2px!important;line-height:1.18!important}
  body.print-report-mode .equipment-card span{font-size:9.5px!important;line-height:1.22!important}
  body.print-report-mode .report-footer{font-size:9.2px!important;bottom:3.5mm!important;padding-top:2px!important}
}


/* V37: append company profile PDF pages after assessment PDF report */
@media print{
  body.print-report-mode .company-profile-pdf-page{height:297mm!important;width:210mm!important;page-break-after:always!important;break-after:page!important;margin:0!important;padding:4mm!important;background:#fff!important;overflow:hidden!important;box-sizing:border-box!important;position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body.print-report-mode .company-profile-pdf-page:last-child{page-break-after:auto!important;break-after:auto!important}
  body.print-report-mode .company-profile-pdf-page img{width:100%!important;height:100%!important;max-width:202mm!important;max-height:289mm!important;object-fit:contain!important;object-position:center center!important;margin:0 auto!important;padding:0!important;border:0!important;display:block!important;visibility:visible!important;opacity:1!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
}


/* V38 company profile appendix fit fix */
@media print{
  body.print-report-mode .company-profile-pdf-page{height:297mm!important;width:210mm!important;margin:0!important;padding:4mm!important;background:#fff!important;overflow:hidden!important;box-sizing:border-box!important;position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;page-break-after:always!important;break-after:page!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body.print-report-mode .company-profile-pdf-page:last-child{page-break-after:auto!important;break-after:auto!important}
  body.print-report-mode .company-profile-pdf-page img{width:100%!important;height:100%!important;max-width:202mm!important;max-height:289mm!important;object-fit:contain!important;object-position:center center!important;margin:0 auto!important;padding:0!important;border:0!important;display:block!important;visibility:visible!important;opacity:1!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
}


/* ===== V39: bigger consistent menu on assessment pages ===== */
.global-header{box-shadow:0 10px 26px rgba(15,30,51,.08)!important}
.global-header .inner{min-height:104px!important;gap:24px!important}
.global-nav{gap:24px!important}
.global-nav a{font-size:18px!important;font-weight:1000!important;letter-spacing:-.25px!important;color:#111827!important;line-height:1.25!important}
.global-nav a:hover{color:var(--orange)!important}
.global-consult{font-size:20px!important;font-weight:1000!important;border-radius:20px!important;padding:18px 32px!important}
.nav{gap:14px!important}
.nav a,.nav .btn,.nav button{font-size:18px!important;font-weight:1000!important;min-height:54px!important;border-radius:18px!important;padding:14px 22px!important}
.view-btn{font-size:18px!important;font-weight:1000!important;min-height:58px!important;border-radius:20px!important}
@media(max-width:900px){
  .global-header .inner{min-height:auto!important}
  .global-nav a{font-size:18px!important}
  .global-consult{font-size:18px!important;width:100%}
  .nav a,.nav .btn,.nav button{font-size:18px!important}
}


/* V48: ปุ่มล้างค่า + เพิ่มสีสันปุ่มหน้าประเมินออนกริด */
.action-color-row{align-items:center;gap:12px!important}
.action-color-row button{min-height:52px;border-radius:18px!important;padding:14px 20px!important;font-size:17px!important;letter-spacing:-.15px!important;transition:.18s transform,.18s box-shadow,.18s filter}
.action-color-row button:hover{transform:translateY(-2px);filter:saturate(1.08)}
.action-btn-ai{background:linear-gradient(135deg,#0c9b57,#18c77a)!important;color:#fff!important;box-shadow:0 16px 30px rgba(12,155,87,.24)!important}
.action-btn-custom{background:linear-gradient(135deg,#0b63ce,#2f93ff)!important;color:#fff!important;box-shadow:0 16px 30px rgba(11,99,206,.22)!important}
.action-btn-reset{background:linear-gradient(135deg,#ff8a1f,#ffbd38)!important;color:#fff!important;box-shadow:0 16px 30px rgba(255,138,31,.28)!important}
.action-btn-submit{background:linear-gradient(135deg,#e31b23,#a70d13)!important;color:#fff!important;box-shadow:0 16px 30px rgba(227,27,35,.26)!important}
.nav.no-print .btn-white:nth-child(1){background:linear-gradient(135deg,#ffffff,#edf5ff)!important;border-color:#cfe1f7!important;color:#0b4fa8!important}
.nav.no-print .btn-white:nth-child(2){background:linear-gradient(135deg,#fff7ed,#ffffff)!important;border-color:#fed7aa!important;color:#c2410c!important}
.nav.no-print .btn-green{background:linear-gradient(135deg,#0c9b57,#18c77a)!important;color:#fff!important}
.nav.no-print .btn-blue{background:linear-gradient(135deg,#0b63ce,#2f93ff)!important;color:#fff!important}
.nav.no-print .btn-white:last-child{background:linear-gradient(135deg,#f8fafc,#eef2ff)!important;border-color:#cbd5e1!important;color:#334155!important}
@media(max-width:900px){.action-color-row button{width:100%;justify-content:center}.action-color-row .save-right{margin-left:0!important}}

/* V49 no company appendix */
.company-profile-pdf-page{display:none!important}


/* === V57 Professional ROI & Payback page for PDF reports === */
@media print{
  body.print-report-mode .roi-analysis-wrap{display:flex!important;flex-direction:column!important;gap:5px!important;min-height:0!important;color:#0f1e33!important}
  body.print-report-mode .roi-intro{display:grid!important;grid-template-columns:1fr 43mm!important;gap:7px!important;align-items:stretch!important;background:linear-gradient(135deg,#f8fafc,#eef6ff)!important;border:1px solid #dbe4ef!important;border-radius:12px!important;padding:7px 8px!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body.print-report-mode .roi-eyebrow{display:block!important;font-size:8.8px!important;letter-spacing:.8px!important;font-weight:1000!important;color:var(--report-accent)!important;margin-bottom:1px!important}
  body.print-report-mode .roi-intro h2{font-size:16.5px!important;line-height:1.16!important;margin:0 0 2px!important;color:var(--report-dark)!important;font-weight:1000!important}
  body.print-report-mode .roi-intro p{font-size:10.2px!important;line-height:1.32!important;margin:0!important;color:#475569!important;font-weight:750!important}
  body.print-report-mode .roi-payback-badge{display:flex!important;flex-direction:column!important;justify-content:center!important;text-align:center!important;background:linear-gradient(135deg,var(--report-dark),var(--report-accent))!important;color:#fff!important;border-radius:11px!important;padding:6px!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body.print-report-mode .roi-payback-badge small{font-size:9px!important;font-weight:900!important;opacity:.9!important}
  body.print-report-mode .roi-payback-badge b{font-size:17px!important;line-height:1.1!important;margin:2px 0!important;font-weight:1000!important}
  body.print-report-mode .roi-payback-badge span{font-size:9px!important;font-weight:850!important;opacity:.9!important}
  body.print-report-mode .roi-kpi-grid{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:5px!important}
  body.print-report-mode .roi-kpi-card{border:1px solid #dbe4ef!important;border-radius:10px!important;padding:6px 7px!important;background:#fff!important;min-height:19mm!important;box-sizing:border-box!important;box-shadow:0 2px 8px rgba(15,30,51,.05)!important}
  body.print-report-mode .roi-kpi-card small{display:block!important;color:#64748b!important;font-size:8.8px!important;font-weight:900!important;line-height:1.15!important}
  body.print-report-mode .roi-kpi-card b{display:block!important;color:var(--report-dark)!important;font-size:14.5px!important;font-weight:1000!important;line-height:1.12!important;margin:2px 0 1px!important}
  body.print-report-mode .roi-kpi-card span{display:block!important;color:#64748b!important;font-size:8.3px!important;font-weight:800!important;line-height:1.2!important}
  body.print-report-mode .roi-chart-card{border:1px solid #dbe4ef!important;border-radius:12px!important;background:#fff!important;padding:6px 8px!important;break-inside:avoid!important;page-break-inside:avoid!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body.print-report-mode .roi-chart-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:8px!important;margin-bottom:2px!important}
  body.print-report-mode .roi-chart-head h3{font-size:13.6px!important;line-height:1.18!important;margin:0 0 1px!important;color:var(--report-accent)!important;font-weight:1000!important}
  body.print-report-mode .roi-chart-head p{font-size:8.8px!important;line-height:1.22!important;margin:0!important;color:#64748b!important;font-weight:750!important}
  body.print-report-mode .roi-legend{display:flex!important;gap:7px!important;align-items:center!important;white-space:nowrap!important;font-size:8.6px!important;font-weight:900!important;color:#475569!important;margin-top:2px!important}
  body.print-report-mode .roi-legend span{display:flex!important;align-items:center!important;gap:3px!important}
  body.print-report-mode .roi-dot{width:7px!important;height:7px!important;border-radius:999px!important;display:inline-block!important}
  body.print-report-mode .roi-dot-saving{background:var(--report-accent)!important}
  body.print-report-mode .roi-dot-invest{background:#f59e0b!important}
  body.print-report-mode .roi-chart-svg{display:block!important;width:100%!important;height:72mm!important;max-height:72mm!important;overflow:visible!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body.print-report-mode .roi-chart-svg text{font-family:Thonburi,"Thonburi",Arial,sans-serif!important}
  body.print-report-mode .roi-break-even-note{font-size:9.4px!important;line-height:1.28!important;background:#f8fafc!important;border:1px dashed #cbd5e1!important;border-radius:9px!important;padding:4px 6px!important;color:#334155!important;font-weight:800!important}
  body.print-report-mode .roi-bottom-grid{display:grid!important;grid-template-columns:1.45fr .9fr!important;gap:5px!important;min-height:0!important}
  body.print-report-mode .roi-table-card,
  body.print-report-mode .roi-detail-card{border:1px solid #dbe4ef!important;border-radius:11px!important;background:#fff!important;padding:6px 7px!important;break-inside:avoid!important;page-break-inside:avoid!important}
  body.print-report-mode .roi-table-card h3,
  body.print-report-mode .roi-detail-card h3{font-size:12.8px!important;line-height:1.15!important;margin:0 0 3px!important;color:var(--report-dark)!important;font-weight:1000!important}
  body.print-report-mode .roi-table{width:100%!important;border-collapse:collapse!important;font-size:8.8px!important;line-height:1.18!important}
  body.print-report-mode .roi-table th{background:var(--report-dark)!important;color:#fff!important;padding:4px 4px!important;text-align:left!important;font-size:8.5px!important;font-weight:1000!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body.print-report-mode .roi-table td{padding:3px 4px!important;border-bottom:1px solid #e2e8f0!important;vertical-align:middle!important;font-weight:800!important;color:#334155!important}
  body.print-report-mode .roi-table tr:last-child td{border-bottom:0!important}
  body.print-report-mode .roi-money-positive{color:#047857!important}
  body.print-report-mode .roi-money-negative{color:#b91c1c!important}
  body.print-report-mode .roi-status{display:inline-block!important;border-radius:999px!important;padding:2px 5px!important;font-size:7.8px!important;font-weight:1000!important;white-space:nowrap!important}
  body.print-report-mode .roi-positive{background:#dcfce7!important;color:#166534!important}
  body.print-report-mode .roi-pending{background:#fff1f2!important;color:#be123c!important}
  body.print-report-mode .roi-detail-list{display:grid!important;gap:2px!important}
  body.print-report-mode .roi-detail-list div{display:flex!important;justify-content:space-between!important;gap:5px!important;border-bottom:1px solid #edf2f7!important;padding:2.5px 0!important;font-size:8.7px!important;line-height:1.15!important}
  body.print-report-mode .roi-detail-list span{color:#64748b!important;font-weight:850!important}
  body.print-report-mode .roi-detail-list b{color:var(--report-dark)!important;font-weight:1000!important;text-align:right!important}
  body.print-report-mode .roi-formula{margin-top:4px!important;background:var(--report-soft)!important;border:1px solid #dbe4ef!important;border-radius:8px!important;padding:5px 6px!important;display:grid!important;grid-template-columns:auto 1fr!important;gap:2px 5px!important;font-size:8.1px!important;line-height:1.2!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body.print-report-mode .roi-formula b{color:var(--report-accent)!important;font-weight:1000!important}
  body.print-report-mode .roi-formula span{color:#334155!important;font-weight:800!important}
  body.print-report-mode .roi-disclaimer{font-size:8.8px!important;line-height:1.28!important;color:#475569!important;background:#fffbeb!important;border:1px solid #fde68a!important;border-radius:9px!important;padding:4.5px 6px!important;font-weight:750!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body.print-report-mode .roi-disclaimer b{color:#92400e!important;font-weight:1000!important}
}


/* V57 ROI layout refinement: full-width milestones + horizontal financial metrics */
@media print{
  body.print-report-mode .roi-bottom-grid{display:flex!important;flex-direction:column!important;gap:5px!important}
  body.print-report-mode .roi-table-card,
  body.print-report-mode .roi-detail-card{width:100%!important;box-sizing:border-box!important}
  body.print-report-mode .roi-detail-list{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:4px!important}
  body.print-report-mode .roi-detail-list div{display:block!important;border:1px solid #e2e8f0!important;border-radius:8px!important;padding:4px 5px!important;background:#f8fafc!important;min-height:12mm!important;box-sizing:border-box!important}
  body.print-report-mode .roi-detail-list span{display:block!important;font-size:8.2px!important;line-height:1.18!important;color:#64748b!important;font-weight:850!important}
  body.print-report-mode .roi-detail-list b{display:block!important;font-size:10.2px!important;line-height:1.15!important;color:var(--report-dark)!important;font-weight:1000!important;text-align:left!important;margin-top:2px!important}
  body.print-report-mode .roi-formula{grid-template-columns:auto 1fr auto 1fr!important;gap:3px 6px!important;align-items:center!important;margin-top:4px!important}
}


/* V57 ROI metric row overflow fix */
@media print{
  body.print-report-mode .roi-detail-list{display:flex!important;gap:4px!important;width:100%!important}
  body.print-report-mode .roi-detail-list div{flex:1 1 0!important;min-width:0!important;overflow:hidden!important}
  body.print-report-mode .roi-detail-list span,
  body.print-report-mode .roi-detail-list b{overflow-wrap:anywhere!important;word-break:break-word!important}
}


/* V57 ROI financial metrics 2x2 for print safety */
@media print{
  body.print-report-mode .roi-detail-list{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important;width:100%!important}
  body.print-report-mode .roi-detail-list div{min-width:0!important;overflow:visible!important}
}


/* === V60 ROI 10-year chart/table print fit === */
@media print{
  body.print-report-mode .roi-chart-svg{height:62mm!important;max-height:62mm!important}
  body.print-report-mode .roi-table{font-size:8.15px!important;line-height:1.10!important}
  body.print-report-mode .roi-table th{padding:3px 3px!important;font-size:8px!important}
  body.print-report-mode .roi-table td{padding:2px 3px!important}
  body.print-report-mode .roi-status{padding:1.5px 4px!important;font-size:7.35px!important}
  body.print-report-mode .roi-detail-list div{min-height:10mm!important;padding:3px 4px!important}
  body.print-report-mode .roi-disclaimer{font-size:8.2px!important;line-height:1.22!important;padding:3.5px 5px!important}
}

@media print{
  body.print-report-mode .roi-table{table-layout:fixed!important}
  body.print-report-mode .roi-table th,
  body.print-report-mode .roi-table td{overflow-wrap:anywhere!important;word-break:break-word!important}
  body.print-report-mode .roi-table th:nth-child(1),body.print-report-mode .roi-table td:nth-child(1){width:12%!important}
  body.print-report-mode .roi-table th:nth-child(2),body.print-report-mode .roi-table td:nth-child(2){width:24%!important}
  body.print-report-mode .roi-table th:nth-child(3),body.print-report-mode .roi-table td:nth-child(3){width:28%!important}
  body.print-report-mode .roi-table th:nth-child(4),body.print-report-mode .roi-table td:nth-child(4){width:14%!important}
  body.print-report-mode .roi-table th:nth-child(5),body.print-report-mode .roi-table td:nth-child(5){width:22%!important}
}

/* === V61 On-Grid ROI table A4 overflow fix ===
   The main assessment table has a global min-width:980px rule.
   Reset it only for the ROI print table so page 3 stays inside the A4 report card,
   matching the Hybrid report behavior. */
@media print{
  body.print-report-mode .roi-table-card{overflow:hidden!important;max-width:100%!important}
  body.print-report-mode .roi-table{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    table-layout:fixed!important;
    box-sizing:border-box!important;
  }
  body.print-report-mode .roi-table th,
  body.print-report-mode .roi-table td{
    box-sizing:border-box!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }
  body.print-report-mode .roi-table td:nth-child(1),
  body.print-report-mode .roi-table td:nth-child(2),
  body.print-report-mode .roi-table td:nth-child(3),
  body.print-report-mode .roi-table td:nth-child(4){white-space:nowrap!important}
  body.print-report-mode .roi-status{white-space:nowrap!important;max-width:100%!important}
}


/* === V62 Futuristic 3D monthly savings chart === */
@media print{
  body.print-report-mode .futuristic-saving-card{
    border:1px solid #b9d8f0!important;
    border-radius:15px!important;
    background:linear-gradient(135deg,#ffffff 0%,#f1f8ff 52%,#edfdf5 100%)!important;
    padding:6px 8px 5px!important;
    overflow:hidden!important;
  }
  body.print-report-mode .futuristic-saving-card .report-chart-header{align-items:center!important;margin-bottom:1px!important}
  body.print-report-mode .futuristic-saving-card .report-chart-header h2{font-size:15.2px!important;color:#063d8f!important;letter-spacing:-.1px!important}
  body.print-report-mode .futuristic-saving-card .report-chart-header p{font-size:9.4px!important;color:#526987!important}
  body.print-report-mode .clean-energy-badge{border:1px solid #4ade80!important;border-radius:999px!important;background:#ecfdf5!important;color:#047857!important;padding:3px 10px!important;font-size:8.8px!important;line-height:1.08!important;font-weight:1000!important;text-align:center!important;white-space:nowrap!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body.print-report-mode .clean-energy-badge span{color:#16a34a!important;margin-right:2px!important}
  body.print-report-mode .futuristic-saving-svg{height:56mm!important;max-height:56mm!important;background:transparent!important;border-radius:11px!important}
  body.print-report-mode .futuristic-summary{gap:6px!important;margin-top:2px!important}
  body.print-report-mode .futuristic-summary div{border-radius:10px!important;background:linear-gradient(180deg,#ffffff,#f5f9ff)!important}
  body.print-report-mode .futuristic-summary div:nth-child(1){border-color:#bfdbfe!important}
  body.print-report-mode .futuristic-summary div:nth-child(2){border-color:#bbf7d0!important;background:linear-gradient(180deg,#f0fdf4,#ecfdf5)!important}
  body.print-report-mode .futuristic-summary div:nth-child(3){border-color:#fde68a!important;background:linear-gradient(180deg,#fffbeb,#fff7ed)!important}
  body.print-report-mode .futuristic-summary div:nth-child(2) b{color:#047857!important}
  body.print-report-mode .futuristic-summary div:nth-child(3) b{color:#065f46!important}
  body.print-report-mode .futuristic-chart-note{background:linear-gradient(90deg,#f8fbff,#f0fdf4)!important;border-color:#bfdbfe!important}
  body.print-report-mode .futuristic-chart-note span{float:right!important;color:#047857!important;font-weight:1000!important}
}
