/* Tabs navigation */
.du-toan-nlmt__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.du-toan-nlmt__tabs .nlmt-tab {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all .2s ease;
}

.du-toan-nlmt__tabs .nlmt-tab.is-active {
  background: #1e73be;
  color: #fff;
  border-color: #1e73be;
}

/* Panels */
.du-toan-nlmt__panel label {
  display: block;
  margin-bottom: 12px;
}

.du-toan-nlmt__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* Popup */
.nlmt-loan-popup__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 9998;
}

.nlmt-loan-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  max-width: 1200px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
  z-index: 9999;
  overflow: hidden;
}

.nlmt-loan-popup__header {
  padding: 16px 20px;
  background: #1e73be;
  color: #fff;
  font-weight: 600;
}

.nlmt-loan-popup__body {
  padding: 16px 20px;
}

.nlmt-loan-popup__subtitle {
  font-weight: 600;
  margin: 4px 0 12px;
}

.nlmt-loan-popup__table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.nlmt-loan-popup__table th,
.nlmt-loan-popup__table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.nlmt-loan-popup__table thead th {
  background: #f9fafb;
  font-weight: 600;
}

.nlmt-loan-popup__footer {
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.nlmt-btn {
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  color: #333;
  cursor: pointer;
}

.nlmt-btn--primary {
  background: #1e73be;
  color: #fff;
  border-color: #1e73be;
}

/* Center action buttons in panels */
.du-toan-nlmt__calc,
.du-toan-nlmt__loan_calc {
  display: block;
  width: max-content;
  margin: 16px auto;
  background: linear-gradient(90deg, #16c2f3, #10b981);
  color: #00313a;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}