/* ===============================
   BASE
================================ */
body {
  margin: 0;
  padding: 32px;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f7fb;
  color: #1f2933;
}

/* ===============================
   MAIN CARD
================================ */
.container {
  max-width: 1500px;
  background: #ffffff;
  padding: 28px 34px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* ===============================
   HEADER
================================ */
h1 {
  font-size: 22px;
  font-weight: 600;
  color: #184f3a;
  margin-bottom: 18px;
}

/* ===============================
   DROPDOWN
================================ */
.dropdown {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.dropdown-btn {
  background: linear-gradient(135deg, #2b7dbc, #1f5f9c);
  color: #fff;
  border: none;
  padding: 9px 18px;
  font-size: 13.5px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.dropdown-btn::after {
  content: " ▼";
  font-size: 10px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: #ffffff;
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  border: 1px solid #e2e8f0;
  z-index: 100;
}

.dropdown-menu div {
  padding: 12px 16px;
  font-size: 13.5px;
  cursor: pointer;
}

.dropdown-menu div:hover {
  background: #e6f2ee;
}

/* ===============================
   SECTION
================================ */
.section-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #184f3a;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 6px;
}

/* ===============================
   CHECKLIST
================================ */
.checklist {
  max-height: 300px;
  overflow-y: auto;
  padding: 12px 10px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f9fbfd;
}

.check-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.check-item input {
  margin-right: 10px;
  transform: scale(1.1);
}

/* ===============================
   BUTTON
================================ */
.submit-btn {
  margin-top: 22px;
  background: linear-gradient(135deg, #74c69d, #40916c);
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 14px;
  color: white;
  cursor: pointer;
  font-weight: 500;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  opacity: 0.4;
  pointer-events: none;
}

.submit-btn.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===============================
   RESULT TABLE (IMPROVED)
================================ */
.result-table {
  margin-top: 30px;
}

.result-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* 🔑 critical for alignment */
}

.result-table th,
.result-table td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.result-table th {
  background: #184f3a;
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  white-space: normal;      /* ✅ allow wrapping */
  word-break: break-word;   /* ✅ break long phrases */
  line-height: 1.3;
}

.result-table td {
  color: #1f2933;
}


/* 🔹 Numeric columns align RIGHT */
.result-table td.numeric {
  text-align: left;
  font-variant-numeric: tabular-nums; /* PERFECT digit alignment */
}

/* 🔹 Text columns align LEFT */
.result-table td.text {
  text-align: left;
}

/* Row hover polish */
.result-table tr:hover td {
  background: #f1f8f5;
}

/* Title above each table */
.result-title {
  font-weight: 600;
  margin: 20px 0 8px;
  color: #184f3a;
}
.result-table {
  overflow-x: auto;
}

.result-table table {
  min-width: 1100px; /* adjust if needed */
}
.dropdown {
  vertical-align: top;
}