/* Shared rhythm and feedback layer for the digital-menu administrator. */
:root {
  --admin-control-height: 42px;
}

.admin-shell {
  max-width: 1280px;
}

.panel {
  padding: 20px;
}

.tab-panel > .section-title {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.grid,
.product-form-grid {
  gap: 12px;
}

.grid label,
.product-form-grid label,
.list-filter,
.product-admin-card label {
  font-size: 0.8rem;
  line-height: 1.25;
}

.grid input,
.grid select,
.product-form-grid input,
.product-form-grid select,
.list-filter select {
  min-height: var(--admin-control-height);
  margin-top: 5px;
}

.form-subtitle {
  margin-top: 8px;
  padding-top: 13px;
}

.tabs {
  margin-block: 18px 12px;
}

.feedback {
  position: fixed;
  z-index: 1200;
  top: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: min(420px, calc(100vw - 36px));
  min-height: 0;
  margin: 0;
  padding: 13px 15px;
  color: #fff;
  background: #18733a;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(38, 8, 8, 0.25);
  font-weight: 800;
  line-height: 1.35;
  animation: admin-toast-in 180ms ease-out;
}

.feedback.is-ok {
  color: #fff;
  background: #18733a;
}

.feedback.is-error {
  color: #fff;
  background: #b42318;
}

.feedback.is-leaving {
  pointer-events: none;
  animation: admin-toast-out 180ms ease-in forwards;
}

.feedback-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  font-size: 18px;
}

.feedback-copy {
  min-width: 0;
}

@keyframes admin-toast-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes admin-toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

@media (max-width: 690px) {
  .panel {
    padding: 16px;
    border-radius: 14px;
  }

  .feedback {
    top: 10px;
    right: 10px;
    width: calc(100vw - 20px);
  }
}
