/* Base document and form styles */
* { box-sizing: border-box; }
html,
body {
  min-height: 100%;
  overflow-x: hidden;
}
body.app-body {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 180px, #f3f6fb 100%);
  color: var(--app-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
a { text-decoration: none; }
img,
svg { max-width: 100%; }
button,
input,
select,
textarea { font: inherit; }
label {
  display: block;
  font-weight: 600;
  color: #334155;
}
label > span,
.field-label {
  display: block;
  margin-bottom: .45rem;
  font-size: .925rem;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  border: 1px solid #ced8e5;
  border-radius: .875rem;
  padding: .74rem .95rem;
  background: #fff;
  min-height: 46px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(13, 110, 253, .45);
  box-shadow: 0 0 0 .22rem rgba(13, 110, 253, .16);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.btn,
.form-select,
.form-control,
.input-group-text {
  border-radius: .85rem;
}
.form-control,
.form-select,
.input-group-text {
  border-color: #d6e0eb;
  min-height: 3rem;
}
.input-group-lg > .form-control,
.input-group-lg > .input-group-text,
.form-select-lg {
  min-height: 3.5rem;
}
.btn {
  font-weight: 600;
}
.btn-sm {
  border-radius: .75rem;
}
.btn-primary {
  box-shadow: 0 .65rem 1.4rem rgba(13, 110, 253, .18);
}
.badge {
  border-radius: 999px;
  padding: .42rem .58rem;
  font-weight: 600;
}
.badge-info,
.badge.badge-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.badge-neutral,
.badge.badge-neutral {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.badge.badge-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.badge.badge-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.badge.badge-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.alert {
  border-radius: 1rem;
  border: 0;
}
.alert-success {
  background: #e8f8ef;
  color: #0f6c3e;
}
.alert-error {
  background: #feeaec;
  color: #b42318;
}
.alert-warning {
  background: #fff4dd;
  color: #9a6700;
}
.alert-info {
  background: #e8f2ff;
  color: #0a58ca;
}
.alert.is-dismissed {
  opacity: 0;
  transform: translateY(-4px);
  transition: .18s ease;
}
.muted,
.text-muted {
  color: var(--app-muted) !important;
}
.letter-space-sm {
  letter-spacing: .08em;
}
.center {
  text-align: center !important;
}
.top-gap {
  margin-top: 1rem;
}
.small-gap {
  gap: .75rem;
}
.border-dashed {
  border-style: dashed !important;
}
.empty-row td {
  text-align: center;
  color: var(--app-muted);
}
.button,
button.button,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: .85rem;
  border: 1px solid transparent;
  padding: .72rem 1rem;
  min-height: 42px;
  font-weight: 600;
  line-height: 1;
  transition: .2s ease;
  background: var(--app-primary);
  color: #fff;
}
.button:hover,
button.button:hover,
a.button:hover {
  background: #0b5ed7;
  color: #fff;
}
.button-secondary {
  background: #fff;
  color: #334155;
  border-color: #d7e2ee;
}
.button-secondary:hover {
  background: #f8fafc;
  color: #0f172a;
}
.button-danger {
  background: #dc3545;
}
.button-warning {
  background: #f59e0b;
  color: #111827;
}
.button-small {
  min-height: 36px;
  padding: .55rem .85rem;
  border-radius: .75rem;
}
.button-block {
  width: 100%;
}
.button:disabled,
button.button:disabled,
a.button[aria-disabled="true"],
.btn:disabled {
  opacity: .52 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  pointer-events: none !important;
  filter: saturate(70%);
}
