.crud-page {
  animation: fadein 0.2s ease;
}
.crud-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}
.crud-top h1 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 6px 0 3px;
}
.crud-top p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.back-button {
  height: 35px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #5e6674;
}
.back-button svg {
  width: 14px;
}
.crud-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 15px;
  align-items: start;
}
.crud-card,
.crud-side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow);
}
.crud-card {
  overflow: hidden;
}
.crud-section {
  padding: 20px;
  border-bottom: 1px solid #eceef1;
}
.crud-section:last-child {
  border-bottom: 0;
}
.section-heading {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.section-heading > span {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: #eee9ff;
  color: #7447ee;
  display: grid;
  place-items: center;
  flex: none;
}
.section-heading svg {
  width: 15px;
}
.section-heading h3,
.section-heading p {
  margin: 0;
}
.section-heading h3 {
  font-size: 11px;
}
.section-heading p {
  font-size: 8px;
  color: #8d95a1;
  margin-top: 4px;
}
.page-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.page-form-grid .field.full {
  grid-column: 1/-1;
}
.page-form-grid .field input,
.page-form-grid .field select {
  height: 41px;
}
.crud-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 90px;
}
.crud-side-card {
  padding: 15px;
}
.crud-side-card h3 {
  font-size: 10px;
  margin: 0 0 12px;
}
.context-line {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid #eff0f2;
}
.context-line:first-of-type {
  border-top: 0;
}
.context-line > span {
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: #f2effb;
  color: #7447ee;
  display: grid;
  place-items: center;
}
.context-line svg {
  width: 13px;
}
.context-line b,
.context-line small {
  display: block;
}
.context-line b {
  font-size: 9px;
}
.context-line small {
  font-size: 7px;
  color: #8d95a1;
  margin-top: 3px;
}
.draft-note {
  font-size: 8px;
  line-height: 1.6;
  color: #786b8f;
  background: #f8f6fd;
  border: 1px solid #e7e0f5;
  border-radius: 8px;
  padding: 10px;
}
.crud-actions {
  height: 67px;
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 8px;
}
.crud-actions > span {
  font-size: 8px;
  color: #8b93a0;
  margin-right: auto;
}
.crud-actions button {
  height: 36px;
  border-radius: 8px;
  padding: 0 13px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.crud-actions svg {
  width: 13px;
}
.save-draft {
  border: 1px solid var(--border);
  background: #fff;
  color: #606875;
}
.submit-crud {
  border: 0;
  background: #7447ee;
  color: #fff;
}
.unsaved-dot {
  width: 6px;
  height: 6px;
  background: #eea427;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.success-page {
  min-height: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  display: grid;
  place-items: center;
  text-align: center;
}
.success-page span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e6f8f1;
  color: #0b9d72;
  display: grid;
  place-items: center;
  margin: auto;
}
.success-page svg {
  width: 25px;
}
.success-page h2 {
  font-size: 17px;
  margin: 15px 0 6px;
}
.success-page p {
  font-size: 9px;
  color: #848c98;
}
.success-page button {
  height: 37px;
  background: #7447ee;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 9px;
  font-weight: 700;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .crud-layout {
    grid-template-columns: 1fr;
  }
  .crud-side {
    position: static;
    grid-row: 1;
  }
  .crud-side-card:not(:first-child) {
    display: none;
  }
}
@media (max-width: 600px) {
  .crud-top {
    align-items: flex-start;
  }
  .crud-top h1 {
    font-size: 20px;
  }
  .page-form-grid {
    grid-template-columns: 1fr;
  }
  .page-form-grid .field.full {
    grid-column: 1;
  }
  .crud-section {
    padding: 16px;
  }
  .crud-actions {
    padding: 0 14px;
  }
  .crud-actions > span {
    display: none;
  }
  .crud-actions .save-draft {
    margin-left: auto;
  }
}
