.lf-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 16px 60px;
}

.lf-card {
  background: #fff;
  border: 1px solid #d7b15f;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.lf-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lf-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr)) 32px;
  gap: 10px 14px;
  align-items: end;
  border: 1px solid #e6d9be;
  background: #fbf7ed;
  padding: 10px 12px;
  border-radius: 0;
  position: relative;
}

.lf-row.lf-row-header {
  background: #f4e2b7;
  color: #4a3706;
  font-weight: 800;
  text-transform: none;
  align-items: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.lf-head {
  line-height: 1.2;
}

.lf-row.lf-row-header .lf-head {
  font-size: 0.88rem;
}

.lf-head-delete {
  width: 32px;
}

.lf-row.lf-row-header .lf-label-sub {
  font-weight: 400;
  font-style: italic;
}

.lf-row.lf-data-row {
  border-top: none;
}

.lf-row.lf-data-row:last-of-type {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.lf-row.lf-data-row:nth-of-type(odd) {
  background: #fff;
}

.lf-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1b2f46;
  margin-bottom: 6px;
}

.lf-label-sub {
  display: block;
  font-weight: 400;
  font-style: italic;
}

.lf-field input,
.lf-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9c08c;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  background: #fff;
  color: #0a274f;
}

.lf-row .lf-delete-row {
  justify-self: center;
  align-self: center;
  padding: 0;
}

.lf-table-wrap {
  overflow-x: auto;
}

.lf-table {
  width: 100%;
  border-collapse: collapse;
}

.lf-table th,
.lf-table td {
  border: 1px solid #e1e1e1;
  padding: 10px 12px;
  text-align: left;
}

.lf-table th {
  background: #f7f7f7;
  font-weight: 700;
}

.lf-table input[type="number"],
.lf-table input[type="date"] {
  width: 100%;
  box-sizing: border-box;
}

.lf-center {
  text-align: center;
}

.lf-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.lf-actions-left {
  justify-content: flex-start;
}

.lf-actions-between {
  justify-content: space-between;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.btn-gold {
  background: #f0c75e;
  color: #0b1f33;
  border: 2px solid #bc8a36;
}

.btn-outline {
  background: #ffffff;
  color: #0b1f33;
  border: 2px solid #bc8a36;
}

.btn-blue-dark {
  background: #0b3a6e;
  color: #fff;
  border: 2px solid #0a2f58;
}

.btn-blue-bright {
  background: #2a63bf;
  color: #fff;
  border: 2px solid #2456a8;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: #c00;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.lf-results {
  margin-top: 28px;
  background: #fff;
  border-radius: 14px;
  border: 2px solid #0b3a6e;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.lf-results-stack {
  display: grid;
  gap: 16px;
}

.lf-result-card {
  border: 1px solid #d7e2f2;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
}

.lf-result-card h3 {
  margin: 0 0 10px;
  color: #0a274f;
  font-size: 1.1rem;
  font-weight: 800;
}

.lf-result-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-weight: 600;
  color: #1b2f46;
}

.lf-result-line span {
  font-weight: 800;
  color: #0a274f;
}

.lf-disclaimer {
  margin: 16px 0 0;
  text-align: center;
  color: #2b4060;
  font-size: 0.95rem;
}

.lf-footer-note {
  margin: 26px auto 0;
  max-width: 860px;
  text-align: center;
  font-style: italic;
  color: #2b4060;
  font-size: 0.95rem;
}

.lf-results-actions {
  margin: 18px 0 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

@media (min-width: 901px) {
  .lf-row.lf-data-row .lf-field label {
    display: none;
  }
}

@media (max-width: 640px) {
  .lf-card,
  .lf-results {
    padding: 16px;
  }

  .lf-row {
    grid-template-columns: 1fr;
  }

  .lf-row .lf-delete-row {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .lf-row {
    grid-template-columns: repeat(2, minmax(160px, 1fr)) 32px;
  }
}
