/* Migrated from styles.css for this form. */
.billing-entry-form {
  min-height: min(760px, calc(100vh - 180px));
}

.billing-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 12px 16px;
}

.billing-entry-grid .field.full {
  grid-column: 1 / -1;
}

.billing-entry-form label.field {
  color: var(--text);
  font-weight: 400;
  text-transform: none;
}

.billing-entry-form .field input,
.billing-entry-form .field select,
.billing-entry-form .field textarea,
.billing-entry-form .native-searchable-input,
.billing-entry-form .input-affix input,
.billing-entry-form .input-affix-mark {
  font-weight: 400;
}

.billing-entry-grid textarea {
  min-height: 56px;
}

.billing-entry-disabled select,
.billing-entry-disabled .native-searchable-input,
.billing-entry-disabled .native-searchable-toggle {
  background: #c8d4dc;
  color: #314256;
  font-weight: 400;
  opacity: 1;
  cursor: default;
}

#modalForm.vt-modal--scheduled-payment {
  width: min(1520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
}

#modalForm.vt-modal--scheduled-payment #modalBody {
  padding: 0;
}

.scheduled-payment-form {
  min-height: min(760px, calc(100vh - 150px));
  background: #fff;
}

.scheduled-payment-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1.35fr) minmax(360px, .65fr);
  gap: 64px;
  padding: 18px 40px 28px;
}

.scheduled-payment-main,
.scheduled-payment-side {
  min-width: 0;
}

.scheduled-payment-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 28px;
}

.scheduled-payment-form .field {
  display: grid;
  gap: 6px;
  margin: 0;
  color: #0f172a;
  font-weight: 600;
  text-transform: none;
}

.scheduled-payment-form .field-label,
.scheduled-payment-form legend {
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
}

.scheduled-payment-form input,
.scheduled-payment-form select,
.scheduled-payment-form textarea,
.scheduled-payment-form .native-searchable-input,
.scheduled-payment-form .native-searchable-toggle {
  min-height: 34px;
  border-color: #b9c7d7;
  border-radius: 3px;
  color: #0f172a;
  font-weight: 400;
}

.scheduled-payment-form textarea {
  min-height: 56px;
}

.scheduled-payment-form .hidden {
  display: none !important;
}

.scheduled-radio-group,
.scheduled-status-group {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}

.scheduled-radio-row,
.scheduled-repeat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  min-height: 34px;
}

.scheduled-radio-row-wide {
  gap: 16px;
}

.scheduled-radio-group label,
.scheduled-status-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: #0f172a;
  font-weight: 400;
  white-space: nowrap;
}

.scheduled-payment-form input[type="radio"] {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.scheduled-deduct-by,
.scheduled-date-field,
.scheduled-period-field {
  max-width: 420px;
  margin-bottom: 26px;
}

.scheduled-schedule-group {
  margin-top: 46px;
}

.scheduled-repeat-details {
  display: grid;
  grid-template-columns: minmax(190px, 1fr);
  gap: 8px;
  margin-top: 8px;
  max-width: 220px;
}

.scheduled-period-field small {
  display: block;
  margin-top: -4px;
  color: #0f172a;
  font-weight: 400;
}

.scheduled-payment-form button.scheduled-edit-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: -3px 0 -3px 2px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.scheduled-payment-form button.scheduled-edit-mark:hover,
.scheduled-payment-form button.scheduled-edit-mark:focus,
.scheduled-payment-form button.scheduled-edit-mark:focus-visible {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #08765a;
  outline: none !important;
}

dialog.scheduled-description-dialog {
  width: min(500px, calc(100vw - 32px));
  max-width: 500px;
  padding: 0;
  border: 1px solid #c9d2dc;
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.35);
}

dialog.scheduled-description-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.scheduled-description-dialog form {
  display: block;
}

.scheduled-description-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 20px;
  border-bottom: 1px solid #d7e0ea;
}

.scheduled-description-dialog h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
}

.scheduled-description-dialog-close {
  padding: 4px;
  border: 0;
  background: transparent;
  color: #7b8794;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.scheduled-description-dialog-body {
  display: grid;
  gap: 10px;
  padding: 22px 20px;
}

.scheduled-description-override-choice {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scheduled-description-dialog textarea {
  width: 100%;
  min-height: 58px;
  resize: vertical;
}

.scheduled-description-dialog textarea:disabled {
  background: #c8d4dc;
  color: #314256;
  opacity: 1;
}

.scheduled-description-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 20px 20px;
}

.scheduled-description-preview {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  color: #0f172a;
  font-weight: 400;
}

.scheduled-description-preview strong {
  font-weight: 600;
}

.scheduled-payment-side {
  padding-top: 2px;
}

.scheduled-status-group {
  margin-bottom: 40px;
}

.scheduled-status-group legend,
.scheduled-preview-panel h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.scheduled-status-group label {
  display: flex;
  margin-bottom: 6px;
}

.scheduled-preview-panel p {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 14px;
}

.scheduled-preview-table {
  margin: 0;
  overflow-x: hidden;
  border: 0;
  box-shadow: none;
}

.scheduled-preview-table table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.scheduled-preview-table th,
.scheduled-preview-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #d7e0ea;
  text-align: left;
  color: #0f172a;
  font-weight: 400;
  white-space: normal;
  overflow-wrap: anywhere;
}

.scheduled-preview-table th:nth-child(1),
.scheduled-preview-table td:nth-child(1) { width: 23%; }

.scheduled-preview-table th:nth-child(2),
.scheduled-preview-table td:nth-child(2) { width: 21%; }

.scheduled-preview-table th:nth-child(3),
.scheduled-preview-table td:nth-child(3) { width: 21%; }

.scheduled-preview-table th:nth-child(4),
.scheduled-preview-table td:nth-child(4) { width: 35%; }

.scheduled-preview-table th {
  font-weight: 600;
  text-transform: uppercase;
}

.scheduled-preview-table tbody tr:nth-child(even) {
  background: #f5f5f5;
}

.scheduled-payment-form.is-inactive .scheduled-payment-main :is(input, select, textarea, .native-searchable-input, .native-searchable-toggle),
.scheduled-payment-form.is-inactive .scheduled-preview-table {
  background: #c8d4dc;
  color: #314256;
}

.scheduled-payment-form.is-inactive .scheduled-payment-main {
  pointer-events: none;
  cursor: not-allowed;
}

.scheduled-payment-form.is-inactive .scheduled-payment-main :is(input, select, textarea, .native-searchable-input, .native-searchable-toggle) {
  border-color: #aab9c3;
  box-shadow: none;
  opacity: 0.82;
}

.scheduled-payment-form.is-inactive .scheduled-payment-main input[type="radio"] {
  filter: grayscale(1);
  opacity: 0.7;
}

.scheduled-payment-form.is-inactive .scheduled-payment-main .scheduled-edit-mark {
  color: #aab4bd;
}

@media (max-width: 980px) {
  .scheduled-payment-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 16px;
  }

  .scheduled-payment-row {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
  }
}

@media (max-width: 640px) {
  #modalForm.vt-modal--scheduled-payment {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .scheduled-radio-row,
  .scheduled-repeat-row {
    gap: 10px 14px;
  }
}
