:root{--blue:#1f5f8f;--text:#1f2933;--muted:#66788a;--danger:#b42318}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif;background:#e9eef3;color:var(--text)}button{font-family:inherit}.hidden-page{display:none!important}.app-page{min-height:100vh}.toolbar{position:sticky;top:0;z-index:50;display:flex;justify-content:center;gap:10px;padding:14px;background:#fff;border-bottom:1px solid #d8e0e7;box-shadow:0 2px 8px rgba(0,0,0,.06)}.toolbar button,.app-button,.small-button,.login-button{border:none;cursor:pointer;color:#fff;background:var(--blue);font-weight:800}.toolbar button{border-radius:8px;padding:10px 16px}.toolbar button.secondary,.app-button.secondary,.small-button.secondary{background:#687789}.app-button.danger,.small-button.danger{background:var(--danger)}button:disabled{opacity:.55;cursor:not-allowed}
    .login-page{display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(135deg,#e9eef3,#f8fbfd)}.login-card{width:min(420px,100%);background:#fff;border-radius:18px;padding:30px;box-shadow:0 16px 40px rgba(31,95,143,.16);border:1px solid #d8e0e7}.login-card h1{margin:0 0 4px;font-size:34px;color:#111827}.login-card h2{margin:0 0 24px;font-size:15px;color:#66788a;font-weight:600}.login-field{margin-bottom:14px}.login-field label{display:block;margin-bottom:6px;font-weight:700;color:#263746;font-size:13px}.login-field input{width:100%;border:1px solid #c8d3dc;border-radius:10px;padding:12px;font-size:14px;outline:none}.login-field input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(31,95,143,.12)}.login-button{width:100%;margin-top:8px;border-radius:10px;padding:12px}.login-note{margin-top:14px;font-size:12px;color:#66788a;text-align:center;line-height:1.5}
    .app-header{background:#fff;border-bottom:1px solid #d8e0e7;padding:16px 24px;display:flex;justify-content:space-between;align-items:center;gap:16px;position:sticky;top:0;z-index:40;box-shadow:0 2px 8px rgba(0,0,0,.04)}.app-brand h1{margin:0;font-size:24px;color:#111827}.app-brand p{margin:3px 0 0;font-size:13px;color:#66788a}.app-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;align-items:center}.user-email{font-size:12px;color:#66788a}.app-button{border-radius:9px;padding:10px 14px}.main-wrap{width:min(1180px,calc(100% - 28px));margin:22px auto}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:16px}.summary-card,.search-card,.project-table-card{background:#fff;border:1px solid #d8e0e7;border-radius:16px;box-shadow:0 6px 16px rgba(0,0,0,.04)}.summary-card{padding:18px}.summary-card .num{font-size:30px;font-weight:900;color:var(--blue);margin-bottom:4px}.summary-card .label{color:#66788a;font-size:13px;font-weight:700}.search-card{padding:16px;margin-bottom:16px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}.search-card input{width:100%;border:1px solid #c8d3dc;border-radius:10px;padding:12px;font-size:14px;outline:none}.project-table-card{padding:0;overflow:hidden}.project-table{width:100%;border-collapse:collapse;font-size:14px}.project-table th{background:#f3f7fa;text-align:left;padding:12px;color:#263746;border-bottom:1px solid #d8e0e7;white-space:nowrap}.project-table td{padding:12px;border-bottom:1px solid #eef2f5;vertical-align:middle}.project-name{font-weight:800;color:#111827}.project-sub{color:#66788a;font-size:12px;margin-top:3px}.row-actions{display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap}.small-button{border-radius:7px;padding:7px 9px;font-size:12px}.empty-state{padding:36px;text-align:center;color:#66788a}
    .page-wrap{padding:28px 12px}#report{width:210mm;height:297mm;min-height:auto;margin:0 auto;background:#fff;padding:9mm 10mm 8mm;box-shadow:0 4px 18px rgba(0,0,0,.15);overflow:hidden}.header{display:block!important;margin-bottom:12px}.title{width:100%}.title h1{margin:0;font-size:64px;letter-spacing:1px;color:#111827;line-height:1}.title h2{margin:5px 0 16px;font-size:28px;font-weight:700;color:#263746;line-height:1.1}.project-line{display:grid;grid-template-columns:150px 1fr;align-items:center;gap:8px;font-size:14px;font-weight:700}.field-input,.field-area,.field-select{width:100%;border:none;border-bottom:1px solid #a6b2bd;background:#f8fbfd;padding:2px 5px;font-family:inherit;font-size:12px;color:#111827;outline:none}.field-input:focus,.field-area:focus{background:#fff8dc;border-bottom-color:var(--blue)}.top-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:6px;align-items:start}.section-title{margin:0 0 4px;color:var(--blue);font-weight:900;text-decoration:none!important;font-size:18px}table{width:100%;border-collapse:collapse;font-size:12px}td{padding:2px 2px;vertical-align:middle}td.label{width:68%;color:#111827}td.value{width:22%}td.unit{width:10%;color:#111827;white-space:nowrap;padding-left:4px}table.compact td.label{width:56%}table.compact td.value{width:30%}.chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:3mm;margin-top:10px;align-items:stretch}.panel{border:1px solid #9da9b4;min-height:88mm;max-height:88mm;padding:8px;display:flex;flex-direction:column;background:#fff;overflow:hidden}.panel-title{text-align:center;color:var(--blue);font-weight:900;text-decoration:none!important;margin-bottom:6px;font-size:18px}.hidden-input{display:none}.upload-zone{border:2px solid #111827!important;background:#f8fbfd;min-height:62mm;max-height:62mm;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--muted);padding:10px;cursor:pointer;overflow:hidden;position:relative;flex:1}.upload-zone img{width:100%;height:62mm;max-height:62mm;object-fit:contain;display:none}.upload-zone.has-image .upload-text{display:none}.upload-zone.has-image img{display:block}.axis-label{margin-top:7px;text-align:center;font-size:12px;font-weight:700;color:#111827}.installation-panel-box{flex:1;border:2px solid #111827;padding:12px 16px;background:#fff;display:grid;grid-template-columns:1fr 1fr;gap:0;min-height:62mm;max-height:62mm;overflow:hidden}.installation-col{padding:7px 12px;border-right:2px solid #111827;overflow:hidden;min-width:0}.installation-col:last-child{border-right:0}.installation-table{table-layout:fixed;width:100%}.installation-table td{font-size:11.5px;padding:2px 0}.installation-table td:nth-child(1){width:56px;min-width:56px;white-space:nowrap}.installation-table td:nth-child(2){width:52px;min-width:52px;max-width:52px}.installation-table td:nth-child(3){width:24px;min-width:24px;max-width:24px;white-space:nowrap;text-align:left}.installation-table input.field-input{width:44px;min-width:44px;max-width:44px}.disclaimer{margin-top:7px;font-size:9.2px;line-height:1.25;color:#111827;text-align:justify}.static-disclaimer{border:none;background:transparent;padding:0;font-size:9.2px;line-height:1.25;color:#111827}.footer{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:end;margin-top:14px;font-size:11px;color:#111827}.footer div:nth-child(2){text-align:center}.footer div:nth-child(3){text-align:right}.static-footer{border:none;background:transparent;padding:4px 0;color:#111827;font-weight:400}.helper{margin:10px auto 0;width:210mm;color:#506273;font-size:12px;text-align:center}
    #report.exporting-pdf{width:210mm!important;height:297mm!important;min-height:297mm!important;max-height:297mm!important;padding:9mm 10mm 8mm!important;overflow:hidden!important;box-shadow:none!important;transform:none!important}#report.exporting-pdf .top-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:18px!important;align-items:start!important}#report.exporting-pdf .chart-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:3mm!important;align-items:stretch!important}#report.exporting-pdf .title h1{font-size:64px!important;line-height:1!important}#report.exporting-pdf .title h2{font-size:28px!important;line-height:1.1!important}#report.exporting-pdf input.field-input,#report.exporting-pdf textarea.field-area,#report.exporting-pdf select.field-select{background:transparent!important;border:none!important;border-bottom:none!important;box-shadow:none!important;outline:none!important;appearance:none!important;-webkit-appearance:none!important;padding:0 2px!important;margin:0!important;height:auto!important;min-height:16px!important;line-height:16px!important;overflow:visible!important;color:#111827!important}#report.exporting-pdf .project-line input.field-input{padding-left:4px!important;line-height:18px!important;min-height:18px!important}#report.exporting-pdf .installation-panel-box tr.export-hide-empty{display:none!important}

    /* ===== Dynamic UVGI Lamp Data ===== */
    .lamp-section{margin-top:14px}
    .lamp-section-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
    .lamp-section-header .section-title{margin:0}
    .add-lamp-btn{border:none;border-radius:7px;padding:5px 12px;background:var(--blue);color:#fff;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}
    .lamp-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px}
    .lamp-table th{padding:3px 2px;border-bottom:1px solid #c8d3dc;text-align:left;color:#263746;font-weight:800;white-space:nowrap}
    .lamp-table td{padding:3px 2px;vertical-align:middle;overflow:hidden}
    .lamp-table .col-model{width:38%}
    .lamp-table .col-qty{width:10%}
    .lamp-table .col-intensity{width:17%}
    .lamp-table .col-length{width:15%}
    .lamp-table .col-type{width:12%}
    .lamp-table .col-remove{width:8%;text-align:center}
    .lamp-table input,.lamp-table select{width:100%;min-width:0;border:none;border-bottom:1px solid #a6b2bd;background:#f8fbfd;padding:2px 3px;font-family:inherit;font-size:11px;color:#111827;outline:none}
    .lamp-table input{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
    .remove-lamp-btn{border:none;border-radius:7px;padding:3px 6px;background:var(--danger);color:#fff;font-size:10px;font-weight:900;cursor:pointer;line-height:1.2}
    #report.exporting-pdf .add-lamp-btn,#report.exporting-pdf .remove-lamp-btn{display:none!important}
    #report.exporting-pdf .lamp-table tr.export-hide-empty{display:none!important}
    #report.exporting-pdf .lamp-table input,#report.exporting-pdf .lamp-table select{background:transparent!important;border:none!important;border-bottom:none!important;box-shadow:none!important;outline:none!important;appearance:none!important;-webkit-appearance:none!important;padding:0 1px!important;margin:0!important;height:auto!important;min-height:14px!important;line-height:14px!important;color:#111827!important;font-size:11px!important}
    #report.exporting-pdf .lamp-table th,#report.exporting-pdf .lamp-table td{padding:2px 2px!important}


    /* ===== Lamp Schedule Width + Export Readability Fix ===== */
    .top-grid > .lamp-section{
      grid-column:1 / -1;
      width:100%;
      margin-top:12px;
    }

    .lamp-section-header{
      justify-content:flex-start!important;
      gap:12px!important;
    }

    .lamp-table{
      width:100%!important;
      table-layout:fixed!important;
      border-collapse:collapse!important;
      font-size:12px!important;
    }

    .lamp-table th,
    .lamp-table td{
      padding:4px 5px!important;
      vertical-align:middle!important;
      overflow:hidden!important;
    }

    .lamp-table .col-model{width:36%!important}
    .lamp-table .col-qty{width:10%!important}
    .lamp-table .col-intensity{width:16%!important}
    .lamp-table .col-length{width:16%!important}
    .lamp-table .col-type{width:12%!important}
    .lamp-table .col-remove{width:10%!important;text-align:center!important}

    .lamp-table input,
    .lamp-table select{
      width:100%!important;
      max-width:100%!important;
      min-width:0!important;
      height:22px!important;
      line-height:20px!important;
      font-size:12px!important;
      padding:2px 5px!important;
    }

    .remove-lamp-btn{
      min-width:30px!important;
      padding:4px 6px!important;
      border-radius:7px!important;
      line-height:1.1!important;
      font-size:10px!important;
    }

    #report.exporting-pdf .lamp-table{
      font-size:12px!important;
      table-layout:fixed!important;
      border-collapse:collapse!important;
    }

    #report.exporting-pdf .lamp-table th,
    #report.exporting-pdf .lamp-table td{
      padding:4px 5px!important;
      height:22px!important;
      line-height:18px!important;
      vertical-align:middle!important;
      overflow:hidden!important;
      white-space:nowrap!important;
    }

    #report.exporting-pdf .lamp-table input,
    #report.exporting-pdf .lamp-table select{
      background:transparent!important;
      border:none!important;
      border-bottom:none!important;
      box-shadow:none!important;
      outline:none!important;
      appearance:none!important;
      -webkit-appearance:none!important;
      width:100%!important;
      height:18px!important;
      min-height:18px!important;
      line-height:18px!important;
      padding:0!important;
      margin:0!important;
      font-size:12px!important;
      color:#111827!important;
      overflow:hidden!important;
      white-space:nowrap!important;
      text-overflow:ellipsis!important;
    }

    #report.exporting-pdf .lamp-table .col-remove{
      display:none!important;
    }

    #report.exporting-pdf .lamp-table .col-model{width:40%!important}
    #report.exporting-pdf .lamp-table .col-qty{width:12%!important}
    #report.exporting-pdf .lamp-table .col-intensity{width:18%!important}
    #report.exporting-pdf .lamp-table .col-length{width:18%!important}
    #report.exporting-pdf .lamp-table .col-type{width:12%!important}


    /* ===== OCR Preview Modal ===== */
    .ocr-modal{position:fixed;inset:0;z-index:100;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;padding:20px}
    .ocr-card{width:min(860px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;border:1px solid #d8e0e7;box-shadow:0 20px 60px rgba(0,0,0,.25);padding:18px}
    .ocr-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
    .ocr-header h3{margin:0;color:var(--blue);font-size:22px}
    .ocr-header button{border:none;background:#687789;color:#fff;border-radius:8px;width:32px;height:32px;font-weight:900;cursor:pointer}
    .ocr-status{font-size:13px;color:#66788a;margin-bottom:8px}
    .ocr-textarea{width:100%;min-height:180px;border:1px solid #c8d3dc;border-radius:10px;padding:10px;font-family:Consolas,monospace;font-size:12px;resize:vertical}
    .ocr-summary{margin-top:12px}
    .ocr-summary strong{color:#263746}
    .ocr-summary pre{margin:6px 0 0;background:#f3f7fa;border:1px solid #d8e0e7;border-radius:10px;padding:10px;max-height:220px;overflow:auto;font-size:12px}
    .ocr-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}

    @media print{body{background:#fff}.toolbar,.helper{display:none!important}.page-wrap{padding:0}#report{box-shadow:none;width:210mm;min-height:297mm;margin:0}}@media(max-width:900px){#report,.helper{width:100%}#report{padding:18px;height:auto}.top-grid,.chart-grid{grid-template-columns:1fr}.summary-grid,.search-card{grid-template-columns:1fr}.app-header{align-items:flex-start;flex-direction:column}.project-table{min-width:760px}.project-table-card{overflow-x:auto}}
  
/* =========================================================
   QUICK REPORT VISUAL IMPROVEMENTS
   - light section cards
   - clearer section separation
   - cleaner UVGI Lamp table
   - better lower panels / disclaimer / footer
========================================================= */

/* Section cards for upper data blocks */
.top-grid > div {
  background: #f8fbfd;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  padding: 8px 10px;
}

.top-grid > .lamp-section {
  background: #f8fbfd;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  padding: 8px 10px;
}

/* Section title: stronger visual anchor */
.section-title {
  position: relative;
  padding-bottom: 4px;
  margin-bottom: 6px !important;
  border-bottom: 2px solid rgba(31,95,143,0.18);
}

.lamp-section-header {
  border-bottom: 2px solid rgba(31,95,143,0.18);
  padding-bottom: 4px;
  margin-bottom: 6px !important;
}

.lamp-section-header .section-title {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Make normal data tables easier to scan */
.top-grid table:not(.lamp-table) tr:nth-child(even) td {
  background: rgba(255,255,255,0.55);
}

.top-grid table:not(.lamp-table) td {
  padding-top: 3px;
  padding-bottom: 3px;
}

/* UVGI Lamp table: clearer report-table style */
.lamp-table {
  background: #ffffff;
  border: 1px solid #d8e0e7;
  border-radius: 6px;
  overflow: hidden;
}

.lamp-table thead th {
  background: #eaf2f8;
  border-bottom: 1px solid #c8d3dc !important;
  color: #263746;
}

.lamp-table tbody tr {
  border-bottom: 1px solid #eef2f5;
}

.lamp-table tbody tr:last-child {
  border-bottom: none;
}

/* Lower panels: slightly stronger visual weight */
.panel {
  background: #fbfdff !important;
  border: 1px solid #b9c7d3 !important;
  border-radius: 4px;
}

.panel-title {
  padding-bottom: 5px;
  border-bottom: 2px solid rgba(31,95,143,0.18);
}

/* Inner frames stay strong and clear */
.upload-zone,
.installation-panel-box {
  background: #ffffff !important;
}

/* Disclaimer: separate from content with a thin top rule */
.disclaimer {
  border-top: 1px solid #c8d3dc;
  padding-top: 5px;
}

/* Footer: subtle divider and tighter layout */
.footer {
  border-top: 1px solid #d8e0e7;
  padding-top: 6px;
  margin-top: 10px !important;
}

/* Export mode: keep visual improvements but remove input decoration cleanly */
#report.exporting-pdf .top-grid > div,
#report.exporting-pdf .top-grid > .lamp-section {
  background: #f8fbfd !important;
  border: 1px solid #d8e0e7 !important;
  border-radius: 8px !important;
}

#report.exporting-pdf .lamp-table {
  background: #ffffff !important;
  border: 1px solid #d8e0e7 !important;
}

#report.exporting-pdf .lamp-table thead th {
  background: #eaf2f8 !important;
}

#report.exporting-pdf .top-grid table:not(.lamp-table) tr:nth-child(even) td {
  background: rgba(255,255,255,0.55) !important;
}

#report.exporting-pdf .add-lamp-btn,
#report.exporting-pdf .remove-lamp-btn {
  display: none !important;
}

/* Keep top section from pushing lower panels too far */
#report.exporting-pdf .top-grid > div,
#report.exporting-pdf .top-grid > .lamp-section {
  padding: 7px 9px !important;
}

#report.exporting-pdf .section-title {
  padding-bottom: 3px !important;
  margin-bottom: 5px !important;
}

#report.exporting-pdf .panel-title {
  padding-bottom: 4px !important;
}


/* =========================================================
   LAMP INSTALLATION POSITIONING DIAGRAM
========================================================= */
.installation-panel {
  gap: 6px;
}

.installation-inputs-compact {
  min-height: 30mm !important;
  max-height: 30mm !important;
  padding: 6px 10px !important;
}

.installation-inputs-compact .installation-col {
  padding: 3px 10px !important;
}

.installation-inputs-compact .installation-table td {
  font-size: 9.5px !important;
  padding: 0 !important;
  line-height: 12px !important;
}

.installation-inputs-compact .installation-table input.field-input {
  font-size: 9.5px !important;
  height: 12px !important;
  min-height: 12px !important;
  line-height: 12px !important;
  padding: 0 2px !important;
}

.installation-diagram-box {
  flex: 1;
  border: 2px solid #111827;
  background: #ffffff;
  padding: 4px 6px 3px;
  min-height: 31mm;
  max-height: 31mm;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.installation-diagram-title {
  text-align: center;
  color: var(--blue);
  font-weight: 800;
  font-size: 11px;
  margin-bottom: 2px;
}

.installation-diagram-svg {
  width: 100%;
  height: 86px;
  display: block;
  background: #fff;
}

.installation-diagram-axis {
  text-align: center;
  font-size: 8.5px;
  font-weight: 700;
  color: #111827;
  margin-top: 1px;
}

/* Diagram drawing styles */
.install-diagram-grid {
  stroke: #d1d5db;
  stroke-width: 1;
}

.install-diagram-axis-line {
  stroke: #6b7280;
  stroke-width: 1.2;
}

.install-diagram-lamp {
  stroke: #1f5f8f;
  stroke-width: 6;
  stroke-linecap: round;
}

.install-diagram-label {
  font-size: 8px;
  fill: #111827;
  font-family: Arial, Helvetica, sans-serif;
}

.install-diagram-small-label {
  font-size: 7px;
  fill: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
}

.install-diagram-empty {
  font-size: 12px;
  fill: #66788a;
  font-family: Arial, Helvetica, sans-serif;
}

#report.exporting-pdf .installation-inputs-compact {
  min-height: 30mm !important;
  max-height: 30mm !important;
  padding: 6px 10px !important;
}

#report.exporting-pdf .installation-diagram-box {
  min-height: 31mm !important;
  max-height: 31mm !important;
}

#report.exporting-pdf .installation-diagram-svg {
  height: 86px !important;
}


/* =========================================================
   REQUESTED LAYOUT UPDATE
   - SUMMARY IRRADIATION moved to left
   - INSTALLATION moved to top right
   - POSITIONING diagram moved to lower right
   - orange lamp positioning lines
========================================================= */

.installation-top-box {
  min-height: 48mm !important;
  max-height: 48mm !important;
  height: 48mm !important;
  padding: 8px 12px !important;
}

.installation-top-box .installation-col {
  padding: 5px 12px !important;
}

.installation-top-box .installation-table td {
  font-size: 10.5px !important;
  line-height: 15px !important;
  padding: 1px 0 !important;
}

.installation-top-box .installation-table input.field-input {
  font-size: 10.5px !important;
  height: 15px !important;
  min-height: 15px !important;
  line-height: 15px !important;
}

.positioning-panel {
  gap: 6px;
}

.positioning-diagram-box {
  flex: 1;
  min-height: 62mm !important;
  max-height: 62mm !important;
  height: 62mm !important;
  padding: 6px 8px 4px !important;
}

.positioning-diagram-box .installation-diagram-svg {
  height: 148px !important;
}

.install-diagram-lamp {
  stroke: #f97316 !important;
  stroke-width: 6 !important;
  stroke-linecap: round !important;
}

#report.exporting-pdf .installation-top-box {
  min-height: 48mm !important;
  max-height: 48mm !important;
  height: 48mm !important;
}

#report.exporting-pdf .positioning-diagram-box {
  min-height: 62mm !important;
  max-height: 62mm !important;
  height: 62mm !important;
}

#report.exporting-pdf .positioning-diagram-box .installation-diagram-svg {
  height: 148px !important;
}


/* =========================================================
   V6 REFINEMENT
   - reduce blank space above UV LAMP DATA
   - remove bottom x-axis captions
   - align SURFACE IRRADIATION and POSITIONING frames
   - make positioning fill frame better
========================================================= */

/* Tighten vertical spacing in top area */
.top-grid {
  gap: 10px 16px !important;
  align-items: start !important;
}

.top-grid > div,
.top-grid > .lamp-section {
  margin: 0 !important;
}

.top-grid .section-title {
  margin-top: 0 !important;
}

/* Reduce the height of top-right installation block so UV LAMP DATA moves up */
.installation-top-box {
  min-height: 40mm !important;
  max-height: 40mm !important;
  height: 40mm !important;
  padding: 6px 10px !important;
}

.installation-top-box .installation-col {
  padding: 4px 10px !important;
}

.installation-top-box .installation-table td {
  font-size: 10px !important;
  line-height: 13px !important;
  padding: 0 !important;
}

.installation-top-box .installation-table input.field-input {
  font-size: 10px !important;
  height: 13px !important;
  min-height: 13px !important;
  line-height: 13px !important;
  padding: 0 2px !important;
}

/* UV lamp data block tighter and cleaner */
.lamp-section {
  padding-top: 6px !important;
  padding-bottom: 8px !important;
}

.lamp-table th,
.lamp-table td {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

/* Lower panels aligned and visually even */
.chart-grid {
  gap: 16px !important;
  align-items: stretch !important;
}

.chart-grid .panel {
  display: flex !important;
  flex-direction: column !important;
  min-height: auto !important;
  padding: 10px 10px 10px !important;
}

.chart-grid .panel-title {
  margin-bottom: 8px !important;
}

/* Remove the external axis captions under both lower panels */
.axis-label,
.installation-diagram-axis {
  display: none !important;
}

/* Make both black frames identical in size and alignment */
.upload-zone,
.positioning-diagram-box {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 72mm !important;
  max-height: 72mm !important;
  height: 72mm !important;
  margin: 0 !important;
  border: 2px solid #111827 !important;
  background: #ffffff !important;
}

/* SURFACE IRRADIATION image should fit nicely without extra blank space */
.upload-zone {
  flex: 1 1 auto !important;
  padding: 6px !important;
}

.upload-zone img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
}

/* POSITIONING box should use the frame area better */
.positioning-diagram-box,
.installation-diagram-box.positioning-diagram-box {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  padding: 4px !important;
  overflow: hidden !important;
}

.positioning-diagram-box .installation-diagram-svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  background: #ffffff !important;
}

/* Export PDF: keep the same tighter layout */
#report.exporting-pdf .top-grid {
  gap: 8px 14px !important;
}

#report.exporting-pdf .installation-top-box {
  min-height: 40mm !important;
  max-height: 40mm !important;
  height: 40mm !important;
  padding: 6px 10px !important;
}

#report.exporting-pdf .chart-grid {
  gap: 14px !important;
  align-items: stretch !important;
}

#report.exporting-pdf .chart-grid .panel {
  display: flex !important;
  flex-direction: column !important;
  padding: 9px 9px 9px !important;
}

#report.exporting-pdf .upload-zone,
#report.exporting-pdf .positioning-diagram-box {
  min-height: 72mm !important;
  max-height: 72mm !important;
  height: 72mm !important;
  margin: 0 !important;
  border: 2px solid #111827 !important;
}

#report.exporting-pdf .upload-zone img,
#report.exporting-pdf .positioning-diagram-box .installation-diagram-svg {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
}


/* =========================================================
   COLUMN ASSIGNMENT
   Map each installation column to a UV Lamp Data row.
   Auto = Col 1 uses Lamp 1, Col 2 uses Lamp 2; fallback Lamp 1.
========================================================= */
.column-assignment-box {
  margin-top: 8px;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px 8px;
}

.column-assignment-title {
  font-size: 11px;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 4px;
  letter-spacing: .3px;
}

.column-assignment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 8px;
  align-items: center;
}

.column-assignment-grid label {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #111827;
  white-space: nowrap;
}

.column-assignment-select {
  width: 100%;
  min-width: 0;
  height: 18px;
  border: none;
  border-bottom: 1px solid #a6b2bd;
  background: #f8fbfd;
  font-size: 10px;
  padding: 0 2px;
  outline: none;
}

#report.exporting-pdf .column-assignment-box {
  padding: 5px 7px !important;
  margin-top: 6px !important;
}

#report.exporting-pdf .column-assignment-title {
  font-size: 10px !important;
  margin-bottom: 3px !important;
}

#report.exporting-pdf .column-assignment-grid {
  gap: 3px 7px !important;
}

#report.exporting-pdf .column-assignment-grid label,
#report.exporting-pdf .column-assignment-select {
  font-size: 9.5px !important;
}

#report.exporting-pdf .column-assignment-select {
  background: transparent !important;
  border: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  height: 14px !important;
  line-height: 14px !important;
}



/* =========================================================
   V8 COLUMN ASSIGNMENT REFINEMENT
========================================================= */
.install-assignment-separator {
  margin: 8px 0 8px;
  border-top: 2px solid #d8e0e7;
}

.column-assignment-box {
  margin-top: 0 !important;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 10px;
}

.column-assignment-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 6px;
  letter-spacing: .3px;
}

.column-assignment-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px 18px !important;
  align-items: center;
}

.column-assignment-grid label {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) !important;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #111827;
  white-space: nowrap;
}

.column-assignment-grid label span {
  white-space: nowrap;
}

.column-assignment-select {
  width: 100%;
  min-width: 0;
  height: 22px;
  border: none;
  border-bottom: 1px solid #a6b2bd;
  background: #f8fbfd;
  font-size: 11px;
  padding: 0 2px;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tighten installation section so assignment fits cleanly */
.installation-top-box {
  min-height: 38mm !important;
  max-height: 38mm !important;
  height: 38mm !important;
}

.installation-top-box .installation-table td,
.installation-top-box .installation-table input.field-input {
  font-size: 10px !important;
  line-height: 12px !important;
  height: 12px !important;
  min-height: 12px !important;
}

#report.exporting-pdf .install-assignment-separator {
  margin: 6px 0 6px !important;
  border-top: 1.5px solid #d8e0e7 !important;
}

#report.exporting-pdf .column-assignment-box {
  padding: 6px 8px !important;
  margin-top: 0 !important;
}

#report.exporting-pdf .column-assignment-title {
  font-size: 10px !important;
  margin-bottom: 4px !important;
}

#report.exporting-pdf .column-assignment-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px 12px !important;
}

#report.exporting-pdf .column-assignment-grid label {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 6px !important;
  font-size: 9px !important;
  line-height: 10px !important;
  white-space: nowrap !important;
}

#report.exporting-pdf .column-assignment-grid label span {
  white-space: nowrap !important;
}

#report.exporting-pdf .column-assignment-select {
  background: transparent !important;
  border: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  font-size: 8.5px !important;
  line-height: 10px !important;
  height: 10px !important;
  min-height: 10px !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}



/* =========================================================
   V9 COLUMN ASSIGNMENT CLEAN STYLE + EXPORT FIX
========================================================= */
.install-assignment-separator {
  display: none !important;
}

.column-assignment-box {
  margin-top: 10px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.column-assignment-title {
  font-size: 16px !important;
  font-weight: 900 !important;
  color: var(--blue) !important;
  letter-spacing: .3px;
  margin: 0 !important;
}

.column-assignment-divider {
  border-top: 1px solid #c8d3dc;
  margin: 6px 0 10px;
}

.column-assignment-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px 20px !important;
  align-items: center !important;
}

.column-assignment-grid label {
  display: grid !important;
  grid-template-columns: 86px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12px !important;
  color: #111827 !important;
  white-space: nowrap !important;
}

.column-assignment-select {
  width: 100% !important;
  min-width: 0 !important;
  height: 22px !important;
  border: none !important;
  border-bottom: 1px solid #a6b2bd !important;
  background: transparent !important;
  font-size: 11px !important;
  padding: 0 2px !important;
  outline: none !important;
  color: #111827 !important;
}

.column-assignment-export-value {
  display: none;
}

#report.exporting-pdf .column-assignment-box {
  margin-top: 8px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

#report.exporting-pdf .column-assignment-title {
  font-size: 12px !important;
  margin: 0 !important;
}

#report.exporting-pdf .column-assignment-divider {
  margin: 4px 0 6px !important;
  border-top: 1px solid #c8d3dc !important;
}

#report.exporting-pdf .column-assignment-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px 12px !important;
}

#report.exporting-pdf .column-assignment-grid label {
  grid-template-columns: 62px minmax(0, 1fr) !important;
  gap: 5px !important;
  font-size: 9px !important;
  line-height: 10px !important;
  white-space: nowrap !important;
}

#report.exporting-pdf .column-assignment-select {
  display: none !important;
}

#report.exporting-pdf .column-assignment-export-value {
  display: block !important;
  font-size: 8.7px !important;
  line-height: 10px !important;
  color: #111827 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}



/* =========================================================
   V10 INSTALLATION + COLUMN ASSIGNMENT TUNING
========================================================= */
.installation-top-box {
  border: none !important;
  background: transparent !important;
  padding: 6px 2px 2px !important;
}

.installation-top-box .installation-col {
  padding: 6px 12px !important;
}

#report.exporting-pdf .installation-top-box {
  border: none !important;
  background: transparent !important;
  padding: 4px 2px 2px !important;
}

.column-assignment-grid label {
  font-size: 13px !important;
}

.column-assignment-select {
  font-size: 12px !important;
}

#report.exporting-pdf .column-assignment-grid label {
  grid-template-columns: 72px minmax(0, 1fr) !important;
  gap: 6px !important;
  font-size: 10.8px !important;
  line-height: 12px !important;
}

#report.exporting-pdf .column-assignment-export-value {
  display: block !important;
  font-size: 10.8px !important;
  line-height: 12px !important;
  color: #111827 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}


/* =========================================================
   V12 SAFE FIX
   - equal top card height without forcing input height
   - remove risky export text transform/clipping
========================================================= */

/* Equal height for the two top cards only by using CSS grid stretch */
.top-grid {
  align-items: stretch !important;
}

#report.exporting-pdf .top-grid {
  align-items: stretch !important;
}

/* Make sure the two top cards can stretch naturally without clipping contents */
.top-grid > div:not(.lamp-section) {
  align-self: stretch !important;
}

#report.exporting-pdf .top-grid > div:not(.lamp-section) {
  align-self: stretch !important;
}

/* Safer export rendering for input values: no transform, no fixed clipping height */
#report.exporting-pdf input.field-input,
#report.exporting-pdf textarea.field-area,
#report.exporting-pdf select.field-select {
  transform: none !important;
  height: auto !important;
  min-height: 16px !important;
  line-height: normal !important;
  overflow: visible !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Keep installation table compact but avoid clipping numeric values */
#report.exporting-pdf .installation-table input.field-input {
  height: auto !important;
  min-height: 13px !important;
  line-height: normal !important;
  transform: none !important;
  overflow: visible !important;
}

/* Keep cells vertically centered without reducing input height */
#report.exporting-pdf td {
  vertical-align: middle !important;
  overflow: visible !important;
}



/* =========================================================
   V13 INSTALLATION EXPORT HARD FIX
   - make Row/Col labels same visual size as values
   - use static text spans for installation values during PDF export
========================================================= */
.installation-top-box .installation-table td:nth-child(1),
.installation-top-box .installation-table td:nth-child(2),
.installation-top-box .installation-table td:nth-child(3) {
  font-size: 11.5px !important;
  line-height: 16px !important;
}

.installation-export-value {
  display: none;
}

#report.exporting-pdf .installation-top-box .installation-table td:nth-child(1),
#report.exporting-pdf .installation-top-box .installation-table td:nth-child(2),
#report.exporting-pdf .installation-top-box .installation-table td:nth-child(3) {
  font-size: 11px !important;
  line-height: 14px !important;
  vertical-align: middle !important;
}

#report.exporting-pdf .installation-top-box .installation-table input.field-input {
  display: none !important;
}

#report.exporting-pdf .installation-export-value {
  display: inline-block !important;
  font-size: 11px !important;
  line-height: 14px !important;
  color: #111827 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}


/* =========================================================
   V15 SHORT DISCLAIMER + FIXED BOTTOM FOOTER
========================================================= */
#report {
  display: flex !important;
  flex-direction: column !important;
}

.disclaimer {
  margin-top: auto !important;
  padding-top: 5px !important;
}

.static-disclaimer {
  font-size: 8.5px !important;
  line-height: 1.18 !important;
}

.footer {
  margin-top: 8px !important;
  padding-top: 5px !important;
}

#report.exporting-pdf {
  display: flex !important;
  flex-direction: column !important;
}

#report.exporting-pdf .disclaimer {
  margin-top: auto !important;
  padding-top: 4px !important;
}

#report.exporting-pdf .static-disclaimer {
  font-size: 8.2px !important;
  line-height: 1.15 !important;
}

#report.exporting-pdf .footer {
  margin-top: 7px !important;
  padding-top: 5px !important;
}


/* =========================================================
   V16 DISCLAIMER / LOGIN / POSITIONING LABEL UPDATE
========================================================= */
.login-note:empty {
  display: none !important;
}

.static-disclaimer {
  font-size: 8.2px !important;
  line-height: 1.16 !important;
}

#report.exporting-pdf .static-disclaimer {
  font-size: 8px !important;
  line-height: 1.13 !important;
}


/* =========================================================
   V17 DISCLAIMER FLOW + FOOTER BOTTOM ONLY
   - Disclaimer follows Surface Irradiation / Positioning immediately
   - Blank space is placed between Disclaimer and Footer
   - Only footer stays at the bottom
========================================================= */
#report {
  display: flex !important;
  flex-direction: column !important;
}

.disclaimer {
  margin-top: 8px !important;
  padding-top: 5px !important;
}

.footer {
  margin-top: auto !important;
  padding-top: 6px !important;
}

#report.exporting-pdf {
  display: flex !important;
  flex-direction: column !important;
}

#report.exporting-pdf .disclaimer {
  margin-top: 7px !important;
  padding-top: 4px !important;
}

#report.exporting-pdf .footer {
  margin-top: auto !important;
  padding-top: 5px !important;
}


/* =========================================================
   V18 LAMP POSITION DATA REDESIGN
   - No separate Installation / Column Assignment block
   - Each UV Lamp row contains its own Row / Col position
========================================================= */

/* Hide obsolete installation / assignment elements if any old data remains */
.installation-top-box,
.column-assignment-box,
.install-assignment-separator {
  display: none !important;
}

/* UV Lamp Position Data table: more horizontal room */
.lamp-section-header .section-title {
  font-size: 18px !important;
}

.lamp-table .col-model { width: 26% !important; }
.lamp-table .col-intensity { width: 14% !important; }
.lamp-table .col-length { width: 13% !important; }
.lamp-table .col-type { width: 11% !important; }
.lamp-table .col-row { width: 14% !important; }
.lamp-table .col-col { width: 14% !important; }
.lamp-table .col-remove { width: 8% !important; text-align: center !important; }

.lamp-table input,
.lamp-table select {
  font-size: 11px !important;
  padding: 2px 4px !important;
}

#report.exporting-pdf .lamp-table .col-model { width: 27% !important; }
#report.exporting-pdf .lamp-table .col-intensity { width: 14% !important; }
#report.exporting-pdf .lamp-table .col-length { width: 13% !important; }
#report.exporting-pdf .lamp-table .col-type { width: 10% !important; }
#report.exporting-pdf .lamp-table .col-row { width: 14% !important; }
#report.exporting-pdf .lamp-table .col-col { width: 14% !important; }
#report.exporting-pdf .lamp-table .col-remove { width: 8% !important; }

/* Top cards stay balanced */
.top-grid {
  align-items: stretch !important;
}

#report.exporting-pdf .top-grid {
  align-items: stretch !important;
}


/* =========================================================
   V19 SIMPLIFY SURFACE DATA + REMOVE LOWER BLACK FRAMES
========================================================= */

/* Remove black inner frames from Surface Irradiation and Positioning */
.upload-zone,
.positioning-diagram-box,
.installation-diagram-box.positioning-diagram-box {
  border: none !important;
  background: transparent !important;
}

/* Keep images/SVG clean inside the panel after border removal */
.upload-zone {
  padding: 0 !important;
}

.positioning-diagram-box,
.installation-diagram-box.positioning-diagram-box {
  padding: 0 !important;
}

/* Export PDF consistency */
#report.exporting-pdf .upload-zone,
#report.exporting-pdf .positioning-diagram-box,
#report.exporting-pdf .installation-diagram-box.positioning-diagram-box {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}


/* =========================================================
   V20 TIGHTEN SURFACE IRRADIATION + POSITIONING PANELS
   Reduce blank space above and below lower content.
========================================================= */

/* Lower panels: reduce inner vertical padding */
.chart-grid .panel {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

/* Reduce gap under panel title */
.chart-grid .panel-title {
  margin-bottom: 4px !important;
  padding-bottom: 3px !important;
}

/* Surface Irradiation upload area: tighter content box */
.upload-zone {
  min-height: 60mm !important;
  max-height: 60mm !important;
  height: 60mm !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Uploaded image fills available panel height better */
.upload-zone img {
  width: 100% !important;
  height: 60mm !important;
  max-height: 60mm !important;
  object-fit: contain !important;
}

/* Positioning diagram: tighter box and larger SVG inside */
.positioning-diagram-box,
.installation-diagram-box.positioning-diagram-box {
  min-height: 60mm !important;
  max-height: 60mm !important;
  height: 60mm !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.positioning-diagram-box .installation-diagram-svg,
.installation-diagram-box.positioning-diagram-box .installation-diagram-svg {
  width: 100% !important;
  height: 58mm !important;
  max-height: 58mm !important;
}

/* Export PDF: keep the same tighter layout */
#report.exporting-pdf .chart-grid .panel {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

#report.exporting-pdf .chart-grid .panel-title {
  margin-bottom: 3px !important;
  padding-bottom: 3px !important;
}

#report.exporting-pdf .upload-zone {
  min-height: 59mm !important;
  max-height: 59mm !important;
  height: 59mm !important;
}

#report.exporting-pdf .upload-zone img {
  height: 59mm !important;
  max-height: 59mm !important;
}

#report.exporting-pdf .positioning-diagram-box,
#report.exporting-pdf .installation-diagram-box.positioning-diagram-box {
  min-height: 59mm !important;
  max-height: 59mm !important;
  height: 59mm !important;
}

#report.exporting-pdf .positioning-diagram-box .installation-diagram-svg,
#report.exporting-pdf .installation-diagram-box.positioning-diagram-box .installation-diagram-svg {
  height: 57mm !important;
  max-height: 57mm !important;
}


/* =========================================================
   V21 MULTI-PAGE PDF EXPORT
   If lamp table makes the report too tall, SURFACE IRRADIATION
   and POSITIONING are exported on page 2.
========================================================= */
.pdf-export-clone-wrap {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 210mm;
  background: #ffffff;
  z-index: -1;
  pointer-events: none;
}

.pdf-export-page {
  width: 210mm !important;
  height: 297mm !important;
  min-height: 297mm !important;
  max-height: 297mm !important;
  margin: 0 !important;
  padding: 9mm 10mm 8mm !important;
  box-shadow: none !important;
  overflow: hidden !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
}

.pdf-page-one .chart-grid,
.pdf-page-one .disclaimer,
.pdf-page-one .helper {
  display: none !important;
}

.pdf-page-two .header,
.pdf-page-two .top-grid,
.pdf-page-two .helper {
  display: none !important;
}

.pdf-page-two .chart-grid {
  margin-top: 0 !important;
}

.pdf-page-two .disclaimer {
  margin-top: 8px !important;
}

.pdf-page-two .footer {
  margin-top: auto !important;
}


/* =========================================================
   V22 UI OVERFLOW + MULTIPAGE FOOTER + PDF STATIC TEXT FIX
========================================================= */

/* On-screen editor should expand when many lamp rows are added, so lower panels remain visible/editable */
#report:not(.exporting-pdf) {
  height: auto !important;
  min-height: 297mm !important;
  overflow: visible !important;
}

/* In 2-page export, page 1 should still show footer; only chart/disclaimer/helper are hidden */
.pdf-page-one .footer {
  display: grid !important;
  margin-top: auto !important;
}

/* Static text generated only inside PDF export clones */
.pdf-static-value {
  display: inline-block;
  width: 100%;
  min-height: 14px;
  line-height: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.lamp-table .pdf-static-value {
  font-size: 11px;
  line-height: 13px;
  min-height: 13px;
}

.project-line .pdf-static-value {
  font-size: 13px;
  line-height: 16px;
  min-height: 16px;
}

/* Remove input-looking backgrounds from cloned static values */
.pdf-export-page input,
.pdf-export-page select,
.pdf-export-page textarea {
  display: none !important;
}

.pdf-export-page .pdf-static-value {
  display: inline-block !important;
}


/* =========================================================
   V23 FLEXIBLE MULTI-PAGE SPLIT
   - Page 1 keeps footer
   - UV Lamp rows can continue to following pages
   - SURFACE IRRADIATION / POSITIONING appear after remaining rows
========================================================= */

/* Page 1: keep header/top/lamp/footer, hide charts/disclaimer */
.pdf-page-one .chart-grid,
.pdf-page-one .disclaimer,
.pdf-page-one .helper {
  display: none !important;
}

.pdf-page-one .footer {
  display: grid !important;
  margin-top: auto !important;
}

/* Middle pages: continuation of UV Lamp rows only */
.pdf-page-middle .header,
.pdf-page-middle .top-grid,
.pdf-page-middle .chart-grid,
.pdf-page-middle .disclaimer,
.pdf-page-middle .helper {
  display: none !important;
}

.pdf-page-middle .lamp-section {
  margin-top: 0 !important;
}

.pdf-page-middle .footer {
  display: grid !important;
  margin-top: auto !important;
}

/* Last page: remaining UV Lamp rows + charts + disclaimer + footer */
.pdf-page-last .header,
.pdf-page-last .top-grid,
.pdf-page-last .helper {
  display: none !important;
}

.pdf-page-last .lamp-section {
  margin-top: 0 !important;
}

.pdf-page-last .chart-grid {
  margin-top: 10px !important;
}

.pdf-page-last .footer {
  display: grid !important;
  margin-top: auto !important;
}

/* Chart-only page for cases where lamp rows fit page 1 but chart needs page 2 */
.pdf-page-chart-only .header,
.pdf-page-chart-only .top-grid,
.pdf-page-chart-only .lamp-section,
.pdf-page-chart-only .helper {
  display: none !important;
}

.pdf-page-chart-only .chart-grid {
  margin-top: 0 !important;
}

.pdf-page-chart-only .footer {
  display: grid !important;
  margin-top: auto !important;
}

/* Keep lamp rows compact during multi-page export */
.pdf-export-page .lamp-table th,
.pdf-export-page .lamp-table td {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}


/* =========================================================
   V24 MULTIPAGE LAMP CONTINUATION FIX
   UV LAMP POSITION DATA is inside .top-grid, so do not hide
   the whole .top-grid on continuation pages.
========================================================= */

/* Middle pages: hide only top summary cards, keep lamp-section visible */
.pdf-page-middle .top-grid,
.pdf-page-last .top-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin-top: 0 !important;
}

.pdf-page-middle .top-grid > div:not(.lamp-section),
.pdf-page-last .top-grid > div:not(.lamp-section) {
  display: none !important;
}

.pdf-page-middle .top-grid .lamp-section,
.pdf-page-last .top-grid .lamp-section {
  display: block !important;
  grid-column: 1 / -1 !important;
  margin-top: 0 !important;
}

/* Override earlier rules that hid .top-grid entirely */
.pdf-page-middle .top-grid,
.pdf-page-last .top-grid {
  visibility: visible !important;
}

/* Last page keeps charts after remaining lamp rows */
.pdf-page-last .chart-grid {
  margin-top: 10px !important;
}

/* Use available page 1 space better */
.pdf-page-one .lamp-section {
  margin-bottom: 8px !important;
}


/* =========================================================
   V25 NO. COLUMN + PAGE ROW CAPACITY TUNING
========================================================= */
.lamp-table .col-no {
  width: 5% !important;
  text-align: center !important;
}

.lamp-no {
  display: inline-block;
  width: 100%;
  font-weight: 700;
  color: #263746;
}

.lamp-table .col-model { width: 25% !important; }
.lamp-table .col-intensity { width: 13% !important; }
.lamp-table .col-length { width: 13% !important; }
.lamp-table .col-type { width: 10% !important; }
.lamp-table .col-row { width: 14% !important; }
.lamp-table .col-col { width: 14% !important; }
.lamp-table .col-remove { width: 6% !important; text-align: center !important; }

#report.exporting-pdf .lamp-table .col-no {
  width: 5% !important;
  text-align: center !important;
}

#report.exporting-pdf .lamp-table .col-model { width: 25% !important; }
#report.exporting-pdf .lamp-table .col-intensity { width: 13% !important; }
#report.exporting-pdf .lamp-table .col-length { width: 13% !important; }
#report.exporting-pdf .lamp-table .col-type { width: 10% !important; }
#report.exporting-pdf .lamp-table .col-row { width: 14% !important; }
#report.exporting-pdf .lamp-table .col-col { width: 14% !important; }
#report.exporting-pdf .lamp-table .col-remove { width: 6% !important; }

/* Fit a few more rows before the page footer */
.pdf-export-page .lamp-table th,
.pdf-export-page .lamp-table td {
  padding-top: 1.4px !important;
  padding-bottom: 1.4px !important;
}

.pdf-export-page .lamp-table .pdf-static-value,
.pdf-export-page .lamp-no {
  font-size: 10.5px !important;
  line-height: 12px !important;
  min-height: 12px !important;
}


/* UV Calculator toolbar button */
.toolbar button.calc-orange{background:#f97316!important;color:#fff!important}
.toolbar button.calc-orange:hover{background:#ea580c!important}
