/* Turinio sekcijų mygtukų konteineris */
.section-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 36px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
}

/* Mygtukai kortelėje (turinio sekcijos) */
.section-buttons button {
  min-width: 100px;
  max-width: 130px;
  width: auto;
  flex: 1 1 100px;
  margin: 0;
  white-space: nowrap;
  background: linear-gradient(90deg, #2d7ff9 60%, #5eaefd 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 13px 0;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 24px #2d7ff933, 0 2px 8px #5eaefd22;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  letter-spacing: 0.01em;
  cursor: pointer;
}
@media (max-width: 900px) {
  .section-buttons {
    gap: 7px 5px;
  }
  .section-buttons button {
    min-width: 80px;
    max-width: 100px;
    font-size: 0.93rem;
    padding: 10px 0;
  }
}
.section-buttons button:hover:not([disabled]) {
  background: linear-gradient(90deg, #1b5fc6 60%, #2d7ff9 100%);
  box-shadow: 0 8px 32px #2d7ff944, 0 4px 16px #5eaefd33;
  transform: translateY(-2px) scale(1.04);
}
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(120deg, #e0e7ff 0%, #f4f6fb 100%);
  margin: 0;
  min-height: 100vh;
}
.builder-layout {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}
.builder-left {
  width: 420px;
  min-width: 380px;
  max-width: 480px;
  padding: 64px 0 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.builder-right {
  flex: 1;
  background: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.stepper {
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
  padding-left: 4px;
}
.step {
  padding: 12px 32px;
  border-radius: 28px;
  background: #f1f5ff;
  color: #4b5563;
  font-weight: 700;
  font-size: 1.13rem;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px #0001;
  border: 2px solid transparent;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, border 0.25s;
  cursor: pointer;
}
.step.active {
  background: linear-gradient(90deg, #2d7ff9 60%, #5eaefd 100%);
  color: #fff;
  box-shadow: 0 6px 24px #2d7ff933;
  border: 2px solid #2d7ff9;
  transform: scale(1.06);
  z-index: 2;
}
.step:not(.active):hover {
  background: #e0e7ff;
  color: #2d7ff9;
}
.step-content {
  background: linear-gradient(120deg, #fff 80%, #e0e7ff 100%);
  border-radius: 28px;
  box-shadow: 0 8px 32px 0 rgba(45,127,249,0.10), 0 2px 32px 0 rgba(45,127,249,0.08), 0 8px 32px 0 rgba(120,180,255,0.10);
  padding: 56px 48px 120px 48px;
  width: 100%;
  max-width: 500px;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  position: relative;
  border: 1.5px solid #e0e7ff;
  overflow: visible;
  transition: box-shadow 0.25s, transform 0.18s;
  padding-bottom: 60px;
}
.step-content:hover {
  box-shadow: 0 16px 48px 0 rgba(45,127,249,0.18), 0 4px 48px 0 rgba(45,127,249,0.12);
  transform: translateY(-2px) scale(1.01);

}
.actions {
  margin-top: auto;
  display: flex;
  gap: 28px;
  justify-content: center;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 40px 36px 40px;
  background: linear-gradient(0deg, #fff 90%, #fff0 100%);
  border-radius: 0 0 28px 28px;
}
button {
  background: linear-gradient(90deg, #2d7ff9 60%, #5eaefd 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 16px 44px;
  font-size: 1.18rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 24px #2d7ff933, 0 2px 8px #5eaefd22;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  letter-spacing: 0.01em;
}
button:hover:not([disabled]) {
  background: linear-gradient(90deg, #1b5fc6 60%, #2d7ff9 100%);
  box-shadow: 0 8px 32px #2d7ff944, 0 4px 16px #5eaefd33;
  transform: translateY(-2px) scale(1.04);
}
button[disabled] {
  background: #bfc9db;
  cursor: not-allowed;
}
input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border: 1.7px solid #d1d5db;
  border-radius: 9px;
  margin-bottom: 18px;
  font-size: 1.09rem;
  box-sizing: border-box;
  background: #f8fafc;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px #0001;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid #2d7ff9;
  outline: none;
  box-shadow: 0 2px 12px #2d7ff933;
}
label {
  font-weight: 800;
  display: block;
  margin-bottom: 14px;
  font-size: 1.18rem;
  color: #1e293b;
  letter-spacing: 0.01em;
}
#previewBox {
  margin: 80px 80px 0 80px;
  min-width: 440px;
  max-width: 720px;
  flex: 1;
  background: linear-gradient(120deg, #fff 80%, #e0e7ff 100%);
  border-radius: 32px;
  box-shadow: 0 16px 64px rgba(45,127,249,0.13), 0 2px 32px rgba(120,180,255,0.10);
  padding: 64px 56px;
  border: 2px solid #e0e7ff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.25s, transform 0.18s;
}
#previewBox:hover {
  box-shadow: 0 24px 96px rgba(45,127,249,0.18), 0 8px 48px rgba(120,180,255,0.13);
  transform: translateY(-2px) scale(1.01);

}
/* Headings and preview text */
h2, h3, h4, h5 {
  color: #1e293b;
  font-weight: 900;
  letter-spacing: 0.01em;
  font-size: 2.2rem;
  margin-bottom: 18px;
}
.preview-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #2d7ff9;
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}
.preview-section {
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #e0e7ff;
}



/* AutoSwiftas: collection summary fixed */
.collection-summary-card,
#collectionSummaryCard {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 26px 0;
  border: 1.5px solid #0d6efd;
  border-radius: 14px;
  background: #ffffff;
  padding: 18px 20px 22px;
  display: block;
  clear: both;
}

.collection-summary-card h3,
#collectionSummaryCard h3 {
  margin: 0 0 18px 0;
  font-size: 18px;
  font-weight: 800;
  color: #062b49;
  letter-spacing: .2px;
}

.collection-summary-grid,
#collectionSummaryGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 14px;
  align-items: end;
}

.collection-summary-item {
  border-left: 1px solid #d7e3f3;
  padding-left: 14px;
}

.collection-summary-item:first-child {
  border-left: none;
  padding-left: 0;
}

.collection-summary-item label {
  display: block;
  text-align: center;
  font-weight: 800;
  color: #000;
  margin-bottom: 8px;
}

.collection-money-input {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid #d5e0ee;
  border-radius: 9px;
  background: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  outline: none;
}

.collection-money-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}

.collection-total-readonly,
#summaryTotal {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .collection-summary-grid,
  #collectionSummaryGrid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}



/* Clean debtor/payment layout fixes */
button[id*="restore" i],
button[class*="restore" i],
button[onclick*="restore" i],
#restoreClosedBtn,
.restore-closed-btn,
.restore-closed,
button[data-action*="restore" i],
button[id*="addDebtColumn" i],
button[class*="add-debt-column" i],
button[onclick*="addDebtColumn" i],
button[onclick*="addDebt" i][onclick*="Column" i],
#addDebtColumnBtn,
.add-debt-column-btn {
  display: none !important;
}

#collectionSummaryCard,
.collection-summary-card {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 28px 0 !important;
  clear: both;
}

#collectionSummaryGrid,
.collection-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 14px;
  align-items: end;
}

.collection-summary-item {
  min-width: 0;
}

#summaryTotal,
.collection-total-readonly {
  background: #eef2f7 !important;
  cursor: not-allowed;
}


/* hide all debtors notes */
.debtors-note{
    display:none !important;
}
