body {
  background: #f5f7fa;
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
}

/* ── Two-column layout ── */
.two-col {
  display: flex;
  height: calc(100vh - 47px);
  overflow: hidden;
}

.col-input {
  width: 380px;
  min-width: 380px;
  background: #fff;
  border-right: 1px solid #ddd;
  overflow-y: auto;
}

.input-panel {
  padding: 16px 20px 24px;
}

.input-panel .ui.header {
  margin-bottom: 4px;
}

.input-panel .ui.form .field > label {
  font-size: 0.85em;
  color: #555;
}

.input-panel .ui.form input {
  padding: 7px 10px;
}

.input-panel .ui.form .fields {
  margin-bottom: 6px;
}

.input-panel h4.ui.dividing.header {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 0.95em;
}

.col-report {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: #f5f7fa;
}

/* ── Report toolbar ── */
.report-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f5f7fa;
  padding: 12px 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
}

/* ── Report area ── */
.report-area {
  padding: 16px 24px 40px;
}

.report-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px 28px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.report-section h3 {
  color: #2185d0;
  border-bottom: 2px solid #2185d0;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.report-section h4 {
  color: #555;
  margin: 14px 0 8px;
}

.calc-line {
  margin: 6px 0;
  padding: 4px 0;
  font-size: 1.05em;
}

.check-pass {
  color: #21ba45;
  font-weight: bold;
}

.check-fail {
  color: #db2828;
  font-weight: bold;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.result-table th,
.result-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.result-table th {
  background: #f8f9fa;
  color: #555;
  font-weight: 600;
}

.result-table td:last-child {
  text-align: right;
  font-family: 'Consolas', 'Courier New', monospace;
}

.summary-box {
  background: #f0f7ff;
  border-left: 4px solid #2185d0;
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 0 4px 4px 0;
}

.summary-box.pass {
  background: #f0fff4;
  border-left-color: #21ba45;
}

.summary-box.fail {
  background: #fff6f6;
  border-left-color: #db2828;
}

.ui.menu .item.active {
  font-weight: bold;
}

/* ── Print styles ── */
@media print {
  body { background: #fff; }
  .ui.menu, .col-input, .report-toolbar { display: none !important; }
  .two-col {
    display: block;
    height: auto;
    overflow: visible;
  }
  .col-report {
    overflow: visible;
    padding: 0;
    background: #fff;
  }
  .report-area {
    padding: 0;
  }
  .report-section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .summary-box {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
