*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{background:#f1f5f9;color:#0f172a;font-family:IBM Plex Sans,system-ui,sans-serif;font-size:14px;line-height:1.5}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.app-layout{display:flex;min-height:100vh}.main-content{flex:1;overflow-y:auto;padding:24px 32px;background:#f1f5f9}.sidebar{width:220px;flex-shrink:0;height:100vh;position:sticky;top:0;background:#1e293b;display:flex;flex-direction:column;overflow-y:auto}.sidebar-logo{padding:14px 16px 12px;border-bottom:1px solid #334155;display:flex;align-items:center;gap:10px}.sidebar-icon{width:28px;height:28px;border-radius:8px;background:#3b82f6;display:flex;align-items:center;justify-content:center;flex-shrink:0}.sidebar-icon svg{width:14px;height:14px;stroke:#fff;fill:none;stroke-width:2.2;stroke-linecap:round}.sidebar-title{font-size:13px;font-weight:700;color:#f8fafc;line-height:1.2}.sidebar-sub{font-size:10px;color:#64748b}.sidebar-nav{flex:1;padding:8px}.nav-section{font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#475569;padding:14px 8px 4px}.nav-item{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:7px;font-size:12px;color:#94a3b8;cursor:pointer;margin-bottom:1px;transition:all .1s;text-decoration:none}.nav-item:hover{background:#334155;color:#e2e8f0}.nav-item.active{background:#2563eb;color:#fff;font-weight:700}.nav-item.sub{padding-left:22px;font-size:11px}.nav-dot{width:5px;height:5px;border-radius:50%;flex-shrink:0;background:#475569}.nav-dot.orange{background:#f59e0b}.tag-dc{background:#7c2d12;color:#fed7aa}.tag-ac{background:#1e3a5f;color:#bfdbfe}.tag-inv{background:#3b0764;color:#e9d5ff}.sidebar-footer{padding:10px 12px;border-top:1px solid #334155;font-size:9px;color:#475569;line-height:1.8}.page-header{margin-bottom:20px}.page-title{font-size:20px;font-weight:700;color:#0f172a;display:flex;align-items:center;gap:10px}.page-chip{font-size:11px;font-weight:700;padding:3px 10px;border-radius:20px;background:#1d4ed8;color:#fff}.page-sub{font-size:12px;color:#64748b;margin-top:4px}.info-box{padding:10px 14px;background:#eff6ff;border:2px solid #3B82F6;border-radius:8px;font-size:11px;color:#1e3a5f;line-height:1.6;margin-bottom:12px}.info-box b{color:#1d4ed8}.card{background:#fff;border:2px solid #E2E8F0;border-radius:10px;overflow:hidden;margin-bottom:12px}.card-title{font-size:13px;font-weight:700;color:#1e293b}.card-count{font-size:11px;font-weight:700;color:#fff;background:#1d4ed8;padding:2px 10px;border-radius:10px}table{width:100%;border-collapse:collapse;font-size:11px}th{text-align:left;padding:9px 12px;background:#f1f5f9;font-weight:700;font-size:10px;color:#1e293b;border-bottom:2px solid #CBD5E1;white-space:nowrap;text-transform:uppercase;letter-spacing:.04em}th span{color:#64748b;font-weight:500;text-transform:none;font-size:9px;margin-left:3px}td{padding:8px 12px;border-bottom:1px solid #E2E8F0;color:#1e293b;white-space:nowrap;vertical-align:middle}td.brand{font-weight:700;color:#0f172a}td.model{color:#334155}td.mono{font-family:IBM Plex Mono,monospace;font-size:11px;color:#1e3a5f;font-weight:600}td.size{font-family:IBM Plex Mono,monospace;font-size:12px;color:#1d4ed8;font-weight:700}td.amp{font-family:IBM Plex Mono,monospace;font-size:11px;color:#065f46;font-weight:700}tr:hover td{background:#f0f9ff}tr:last-child td{border:none}.btn-add{display:flex;align-items:center;gap:6px;padding:8px 18px;background:#1d4ed8;color:#fff;border:none;border-bottom:3px solid #1e40af;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit}.btn-add:hover{background:#1e40af}.btn-reset{padding:7px 12px;background:#fff;border:2px solid #E2E8F0;border-radius:8px;font-size:12px;font-weight:600;color:#475569;cursor:pointer;font-family:inherit}.btn-reset:hover{border-color:#94a3b8}.btn-save{padding:8px 20px;background:#1d4ed8;color:#fff;border:none;border-bottom:3px solid #1e40af;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit}.btn-save:hover{background:#1e40af}.btn-cancel{padding:8px 16px;border:2px solid #CBD5E1;background:#fff;border-radius:8px;font-size:12px;font-weight:600;color:#1e293b;cursor:pointer;font-family:inherit}.btn-cancel:hover{background:#f1f5f9}.filter-bar{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap}.filter-bar2{display:flex;align-items:center;gap:8px;margin-bottom:12px}.filter-label{font-size:12px;font-weight:700;color:#1e293b}.btn-filter-on{padding:6px 13px;border:2px solid #1D4ED8;border-bottom:3px solid #1e40af;border-radius:8px;font-size:12px;font-weight:700;color:#fff;background:#1d4ed8;cursor:pointer;font-family:inherit}.btn-filter-off{padding:6px 13px;border:2px solid #1D4ED8;border-radius:8px;font-size:12px;font-weight:700;color:#1d4ed8;background:#eff6ff;cursor:pointer;font-family:inherit}.btn-filter-off:hover{background:#dbeafe}.search-input{padding:7px 12px;border:2px solid #94A3B8;border-radius:8px;font-size:12px;color:#1e293b;outline:none;width:260px;font-family:inherit}.search-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #bfdbfe}.found-label{font-size:11px;color:#64748b;margin-left:auto}.found-label b{color:#1d4ed8}.pill{display:inline-block;font-size:10px;font-weight:700;padding:2px 8px;border-radius:8px;color:#fff}.pill-cv4c{background:#1d4ed8}.pill-cv1c{background:#059669}.pill-cv3c{background:#d97706}.formula-box{background:#f0fdf4;border:2px solid #4ADE80;border-left:4px solid #16A34A;border-radius:8px;padding:9px 14px;font-family:IBM Plex Mono,monospace;font-size:10px;color:#14532d;line-height:1.8;font-weight:600;margin-top:4px}.derating-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.derating-title{font-size:12px;font-weight:700;color:#1e293b;margin-bottom:8px}.derating-sub{font-size:10px;color:#64748b;font-weight:400}.ca-highlight{background:#fff7ed!important}.ca-highlight td{color:#b45309!important;font-weight:700!important}.cg-val{color:#1d4ed8;font-weight:700}.fill-40{background:#fef3c7;color:#d97706;font-size:11px;font-weight:700;padding:2px 8px;border-radius:8px}.fill-20{background:#dcfce7;color:#059669;font-size:11px;font-weight:700;padding:2px 8px;border-radius:8px}.topbar{background:#fff;border-bottom:2px solid #E2E8F0;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;margin:-24px -32px 20px;position:sticky;top:0;z-index:10}.topbar-right{display:flex;align-items:center;gap:8px}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8c;display:flex;align-items:center;justify-content:center;z-index:100}.modal-box{background:#fff;border-radius:12px;padding:22px;width:520px;max-height:90vh;overflow-y:auto;border:2px solid #CBD5E1}.modal-title{font-size:14px;font-weight:700;color:#0f172a;margin-bottom:16px;padding-bottom:12px;border-bottom:2px solid #E2E8F0;display:flex;align-items:center;gap:10px}.modal-icon{width:30px;height:30px;background:#dbeafe;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;color:#1d4ed8}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.form-grid .full{grid-column:1 / -1}.form-field label{display:block;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#475569;margin-bottom:4px}.form-field input,.form-field select{width:100%;padding:7px 10px;font-size:12px;border:2px solid #CBD5E1;border-radius:7px;color:#0f172a;outline:none;font-family:inherit;background:#fff}.form-field input:focus,.form-field select:focus{border-color:#2563eb;box-shadow:0 0 0 3px #bfdbfe}.form-field input.mono{font-family:IBM Plex Mono,monospace;color:#1e3a5f;font-weight:700}.field-hint{font-size:10px;color:#64748b;margin-top:3px}.modal-actions{display:flex;gap:8px;justify-content:flex-end;padding-top:14px;border-top:2px solid #E2E8F0}.dashboard{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 32px;text-align:center}.dashboard-icon{width:56px;height:56px;border-radius:16px;background:#1d4ed8;display:flex;align-items:center;justify-content:center;margin-bottom:16px;font-size:24px}.dashboard-title{font-size:24px;font-weight:700;color:#0f172a;margin-bottom:8px}.dashboard-sub{font-size:13px;color:#64748b;max-width:360px;line-height:1.7;margin-bottom:24px}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:440px;width:100%}.dashboard-card{background:#fff;border:2px solid #E2E8F0;border-radius:10px;padding:16px;text-align:left;cursor:pointer;text-decoration:none;transition:all .15s;display:block}.dashboard-card:hover{border-color:#3b82f6;box-shadow:0 0 0 3px #dbeafe}.dashboard-card-title{font-size:13px;font-weight:600;color:#1e293b;margin-bottom:4px}.dashboard-card-sub{font-size:11px;color:#94a3b8}.dashboard-version{font-size:11px;color:#cbd5e1;margin-top:32px}.nav-tag{font-size:9px;font-weight:700;padding:1px 5px;border-radius:3px;margin-left:auto}.nav-tag-dc{background:#7c2d12;color:#fed7aa}.nav-tag-ik{background:#7c3aed40;color:#c4b5fd}.nav-tag-mdb{background:#05966940;color:#6ee7b7}.nav-tag-ac{background:#1e3a5f;color:#bfdbfe}.nav-dot.green{background:#10b981}.nav-dot.blue{background:#3b82f6}.filter-bar{background:#fff;border:2px solid #E2E8F0;border-radius:10px;padding:14px 16px;margin-bottom:14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.filter-bar-label{font-size:11px;font-weight:700;color:#475569;white-space:nowrap}.filter-select{padding:7px 10px;border:2px solid #CBD5E1;border-radius:7px;font-size:12px;color:#0f172a;background:#fff;outline:none;cursor:pointer;font-family:inherit;min-width:160px}.filter-select:focus{border-color:#2563eb;box-shadow:0 0 0 3px #dbeafe}.filter-divider{width:1px;height:24px;background:#e2e8f0;flex-shrink:0}.notes-box{padding:10px 14px;background:#fffbeb;border:2px solid #FDE68A;border-left:4px solid #D97706;border-radius:8px;font-size:11px;color:#78350f;line-height:1.7;margin-bottom:14px}.notes-box strong{color:#92400e}.ref-std{background:#7c3aed;color:#fff;font-size:10px;font-weight:700;padding:2px 7px;border-radius:4px}.ref-spec{background:#0891b2;color:#fff;font-size:10px;font-weight:700;padding:2px 7px;border-radius:4px}.cable-1c{background:#d97706;color:#fff;font-size:10px;font-weight:700;padding:2px 7px;border-radius:4px}.cable-4c,.mod-mono{background:#1d4ed8;color:#fff;font-size:10px;font-weight:700;padding:2px 7px;border-radius:4px}.mod-bi{background:#059669;color:#fff;font-size:10px;font-weight:700;padding:2px 7px;border-radius:4px}.calc-placeholder{padding:20px;background:#f8fafc;border:2px dashed #CBD5E1;border-radius:8px;text-align:center;color:#94a3b8;font-size:12px;margin-top:8px}.calc-placeholder span{font-size:10px;display:block;margin-top:4px}.raceway-section{background:#fff;border:2px solid #E2E8F0;border-radius:10px;overflow:hidden;margin-bottom:14px}.raceway-section-hd{display:flex;align-items:center;gap:10px;padding:10px 16px;background:#f1f5f9;border-bottom:2px solid #E2E8F0}.raceway-num{width:24px;height:24px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff;flex-shrink:0}.raceway-ttl{font-size:12px;font-weight:700;color:#1e293b}.raceway-rule{margin-left:auto;font-size:10px;font-weight:700;padding:2px 9px;border-radius:20px}.raceway-body{padding:14px 16px}.raceway-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:10px}.raceway-field label{display:block;font-size:10px;font-weight:700;color:#64748b;margin-bottom:4px;text-transform:uppercase;letter-spacing:.05em}.raceway-field select,.raceway-field input{width:100%;padding:7px 10px;font-size:12px;border:2px solid #CBD5E1;border-radius:7px;color:#0f172a;outline:none;font-family:inherit;background:#fff}.raceway-field select:focus,.raceway-field input:focus{border-color:#2563eb}.arrange-row{display:flex;align-items:center;gap:10px;margin-bottom:10px}.arrange-btn{padding:6px 14px;border:2px solid #E2E8F0;border-radius:7px;font-size:12px;font-weight:600;color:#475569;background:#fff;cursor:pointer;font-family:inherit}.arrange-btn.on{background:#1d4ed8;color:#fff;border-color:#1d4ed8;border-bottom:3px solid #1e40af}.card-header{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-bottom:2px solid #E2E8F0;background:#f8fafc}.card-title{font-size:12px;font-weight:700;color:#1e293b}.table-wrap{overflow-x:auto}.table-empty{text-align:center;padding:40px;color:#94a3b8;font-size:12px;font-weight:600}.btn-edit{padding:3px 9px;border:2px solid #93C5FD;background:#eff6ff;border-radius:6px;font-size:11px;color:#1d4ed8;cursor:pointer;font-weight:700;margin-right:4px;font-family:inherit}.btn-edit:hover{background:#dbeafe}.btn-del{padding:3px 9px;border:2px solid #FCA5A5;background:#fef2f2;border-radius:6px;font-size:11px;color:#dc2626;cursor:pointer;font-weight:700;font-family:inherit}.btn-del:hover{background:#fee2e2}.formula-box{background:#f0fdf4;border:2px solid #86EFAC;border-left:4px solid #16A34A;border-radius:8px;padding:9px 14px;font-family:IBM Plex Mono,monospace;font-size:10px;color:#14532d;line-height:1.8;font-weight:600}.print-only,.print-cover,.print-footer{display:none!important}@media print{@page{size:A4 portrait;margin:15mm 12mm;@bottom-right{content:"หน้า " counter(page) " / " counter(pages);font-size:8pt;color:#64748b;font-family:IBM Plex Sans,sans-serif}@bottom-left{content:"Solar Calc · Electrical Sizing Report";font-size:8pt;color:#94a3b8;font-family:IBM Plex Sans,sans-serif;font-style:italic}}@page :first{margin:0;@bottom-right{content:""}@bottom-left{content:""}}*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;color-adjust:exact!important}html,body{background:#fff!important;margin:0!important;padding:0!important;font-size:10pt;color:#0f172a}.sidebar,.no-print,button,.print-header,.main-content>*:not(.report-body),nav,header.app-header{display:none!important}.app-layout{display:block!important;min-height:0!important}.main-content{padding:0!important;margin:0!important;overflow:visible!important;background:#fff!important}.report-body{padding:0!important;margin:0!important}.print-only,.print-cover{display:block!important}.print-cover{box-sizing:border-box;width:210mm;height:297mm;padding:22mm 18mm 16mm;background:#fff;page-break-after:always;break-after:page;page-break-inside:avoid;break-inside:avoid;overflow:hidden;display:flex!important;flex-direction:column}.print-cover .cover-top{border-top:3px solid #1B4FD8;border-bottom:1px solid #CBD5E1;padding:8mm 0 6mm;margin-bottom:5mm}.print-cover .cover-eyebrow{font-size:9pt;color:#1b4fd8;font-weight:700;letter-spacing:.15em;text-transform:uppercase;margin-bottom:5mm}.print-cover .cover-title{font-size:22pt;font-weight:800;color:#0f172a;line-height:1.15;margin-bottom:5mm;word-wrap:break-word;overflow-wrap:break-word}.print-cover .cover-subtitle{font-size:11pt;color:#475569;font-weight:500;margin-bottom:4mm}.print-cover .cover-rev{display:inline-block;padding:1.5mm 5mm;background:#1b4fd8;color:#fff;font-size:10pt;font-weight:700;border-radius:3mm;letter-spacing:.05em}.print-cover .cover-meta{display:grid;grid-template-columns:1fr 1fr;gap:4mm 12mm;padding:6mm 0;border-top:1px solid #E2E8F0;border-bottom:1px solid #E2E8F0;margin-bottom:5mm}.print-cover .cover-meta .item{display:flex;flex-direction:column;gap:1mm}.print-cover .cover-meta .lbl{font-size:7.5pt;font-weight:700;color:#64748b;letter-spacing:.08em;text-transform:uppercase}.print-cover .cover-meta .val{font-size:11.5pt;font-weight:700;color:#0f172a;word-wrap:break-word;overflow-wrap:break-word}.print-cover .cover-meta .val.mono{font-family:IBM Plex Mono,monospace;color:#1b4fd8;font-size:13pt}.print-cover .cover-summary{background:#f8fafc;border:1px solid #E2E8F0;border-radius:2mm;padding:4mm 5mm;margin-bottom:4mm}.print-cover .cover-summary h3{font-size:8.5pt;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.1em;margin-bottom:3mm}.print-cover .cover-summary table{width:100%;border-collapse:collapse;font-size:9.5pt}.print-cover .cover-summary td{padding:1.5mm 0;border-bottom:1px dotted #CBD5E1}.print-cover .cover-summary td:last-child{text-align:right;font-family:IBM Plex Mono,monospace;font-weight:700}.print-cover .cover-summary tr:last-child td{border-bottom:none}.print-cover .cover-standards{font-size:8.5pt;color:#475569;line-height:1.6;padding:4mm 0;border-top:1px solid #E2E8F0}.print-cover .cover-standards strong{color:#1b4fd8;font-weight:700;display:block;margin-bottom:1.5mm;font-size:9pt}.print-cover .cover-disclaimer{margin-top:3mm;padding:3mm 4mm;background:#fffbeb;border:.5pt solid #FDE68A;border-left:2pt solid #F59E0B;border-radius:1.5mm;font-size:7.5pt;color:#78350f;line-height:1.5}.print-cover .cover-disclaimer strong{color:#92400e;font-weight:700;display:block;margin-bottom:1mm;font-size:8.5pt}.print-cover .cover-disclaimer b{font-weight:700;color:#7c2d12}.print-cover .cover-footer{margin-top:auto;padding-top:5mm;border-top:2px solid #1B4FD8;display:flex;justify-content:space-between;font-size:8.5pt;color:#64748b}.report-body>div[style*="background: rgb(15, 30, 53)"]{display:none!important}.section-card{background:#fff!important;border:1px solid #CBD5E1!important;border-radius:0!important;margin-bottom:5mm!important;page-break-inside:avoid;break-inside:avoid-page}.section-card>div:first-child{background:#f8fafc!important}table{width:100%;border-collapse:collapse;font-size:8.5pt;page-break-inside:auto}thead{display:table-header-group}tfoot{display:table-row-group}tr{page-break-inside:avoid;break-inside:avoid}th,td{padding:1.5mm 2mm!important;border-bottom:.3pt solid #E2E8F0!important;font-size:8.5pt!important}th{background:#f1f5f9!important;color:#1e293b!important;font-weight:700;border-bottom:1pt solid #64748B!important}.page-break{page-break-before:always;break-before:page}.print-footer{display:none!important}.badge-pass{background:#059669!important;color:#fff!important}.badge-fail{background:#dc2626!important;color:#fff!important}a,button{color:inherit!important;text-decoration:none!important}}
