.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  border-radius: 9px;
  padding: 9px 11px;
  transition: var(--transition);
}

.input:hover, .select:hover, .textarea:hover {
  border-color: #c5cad3;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  color: #344054;
}

.required {
  color: var(--color-danger);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.form-section {
  padding: 4px 0 18px;
}

.form-section h3 {
  margin-bottom: 12px;
  color: #344054;
}

.error-text {
  color: var(--color-danger);
  font-size: 10px;
  min-height: 13px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}

.filter-bar>* {
  min-width: 130px;
  flex: 0 1 auto;
}

.filter-bar .search-filter {
  flex: 1 1 220px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--color-surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.modal.wide {
  width: min(980px, 100%);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-surface);
  z-index: 1;
}

.modal-body {
  padding: 20px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 20px;
  border-top: 1px solid var(--color-border);
  position: sticky;
  bottom: 0;
  background: var(--color-surface);
}

.toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  min-width: 290px;
  background: #101828;
  color: #fff;
  border-radius: 11px;
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: toastIn .18s ease;
}

.toast.success .toast-mark {
  color: #6ce9a6;
}

.toast.error .toast-mark {
  color: #f97066;
}

@keyframes toastIn {
  from {
    transform: translateY(12px);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

.empty-state {
  text-align: center;
  padding: 52px 20px;
}

.empty-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}

.skeleton {
  background: linear-gradient(90deg, #eef1f5, #f8fafc, #eef1f5);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  to {
    background-position: -200% 0
  }
}