/* Remove extra top padding from food menu list rendered outside #food-menu */
ul.food-menu-list {
  margin-block-start: -60px; /* cancel the inherited section padding */
  padding-block-start: 0;
}

@media (min-width: 992px) {
  ul.food-menu-list {
    margin-block-start: 60px; /* desktop section padding is 120px */
  }
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(210, 26%, 11%);
  overflow: visible;
}

.app-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.outlet-bar {
  background: hsl(210, 20%, 18%);
  padding: 0.75rem 0;
  border-top: 1px solid hsl(210, 15%, 25%);
}

.outlet-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.outlet-bar-label {
  color: hsl(0, 0%, 90%);
  font-weight: 600;
}

.nav-outlet-nav .nav-outlet-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  max-width: 100%;
}

.header:not(.app-topbar) .nav-outlet-wrap .outlet-bar-label {
  color: var(--btn-color);
}

.app-topbar .nav-outlet-wrap .outlet-bar-label {
  color: hsl(0, 0%, 90%);
}

.outlet-select {
  min-width: 220px;
}

.nav-outlet-nav .outlet-select {
  min-width: min(220px, 100%);
  max-width: min(220px, 100%);
}

.muted {
  color: hsl(0, 0%, 65%);
}

.app-main {
  min-height: 40vh;
}

/* Match menu page section shell; cart/checkout tables stay left-aligned */
.app-main section.app-cart-shell.food-menu,
.app-main section.app-cart-shell.food-menu .container {
  text-align: left;
}

.app-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-narrow {
  max-width: 640px;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  background: hsl(210, 26%, 11%);
  color: hsl(0, 0%, 95%);
}

.app-table th,
.app-table td {
  border: 1px solid hsl(210, 15%, 25%);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.app-summary {
  margin-top: 1.5rem;
}

.app-offer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.app-offer-chip {
  background: hsl(38, 100%, 50%);
  color: hsl(210, 26%, 11%);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.app-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: hsl(0, 0%, 90%);
}

.admin-flash-success {
  padding: 0.65rem 1rem;
  margin: 0 0 1rem;
  border-radius: 6px;
  background: hsl(152 35% 16%);
  color: hsl(145 25% 92%);
  border: 1px solid hsl(152 30% 28%);
}

.app-error {
  color: hsl(0, 70%, 55%);
}

.admin-body {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  background: hsl(220, 16%, 14%);
  color: hsl(0, 0%, 95%);
}

.btn-danger {
  background: hsl(0, 60%, 45%);
  border: none;
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
}

.app-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Footer reservation: outlet select uses full row (theme uses 2-col .input-wrapper) */
.footer-form .input-wrapper.footer-outlet-row {
  grid-template-columns: 1fr;
}

.footer-form .input-wrapper.footer-outlet-row select,
.footer-form .input-wrapper.footer-outlet-row .input-field {
  width: 100%;
  max-width: 100%;
}

.footer-reserved-flash {
  margin: 0 auto 1rem;
  max-width: 900px;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: hsl(120, 25%, 22%);
  color: hsl(0, 0%, 96%);
  font-size: 0.95rem;
  text-align: center;
}

#food-menu .food-menu-list > li.food-menu-item-hidden {
  display: none !important;
}

.cart-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  background: var(--deep-saffron, #ff9d2d);
  color: #1a1a1a;
}

/* Match legacy testimonial avatars: fixed 80×80 circle */
.testi-card .avatar img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Testimonials: 992px+ .testi-list zeros padding — keep enough for scrollbar without a big gap under the cards */
#reviews ul.testi-list.has-scrollbar {
  padding-block-end: 2rem;
  margin-block-end: 0.35rem;
  box-sizing: border-box;
}

/* CTA: full-width row under scrollbar; extra space above separates from scrollbar track */
#reviews .customer-review-cta {
  display: flex;
  width: 100%;
  margin: 1.75rem 0 0;
}

#reviews a.customer-review-cta__link.btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  height: auto;
  min-height: 3.4rem;
  padding: 0.78rem 2rem;
  font-size: 1.5rem;
  font-weight: var(--fw-500, 500);
  box-sizing: border-box;
  text-align: center;
}

.review-page .section-text {
  margin-bottom: 1.25rem;
}

.customer-review-submit {
  max-width: 520px;
  margin: 2rem auto 0;
  text-align: left;
}

.customer-review-submit__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.customer-review-submit__label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  text-align: left;
}

.customer-review-submit__label-text {
  font-size: 0.9rem;
  font-weight: 600;
}

.review-submit-flash {
  margin: 0 0 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.review-submit-flash--ok {
  background: hsl(145 35% 92%);
  color: hsl(145 40% 22%);
  border: 1px solid hsl(145 25% 75%);
}

.review-submit-flash--err {
  background: hsl(0 55% 95%);
  color: hsl(0 45% 28%);
  border: 1px solid hsl(0 35% 80%);
}

.app-inline-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.app-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  margin: 0 0 1rem;
}

.app-result-card {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: hsl(210, 20%, 10%);
  border: 1px solid hsl(210, 14%, 24%);
}

.app-dl dt {
  font-weight: 600;
  margin: 0;
}

.app-dl dd {
  margin: 0;
}

.app-list-plain {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.app-list-plain li {
  padding: 0.25rem 0;
}

.admin-menu-thumb {
  max-width: 160px;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

/* ------------------------------------------------------------------
   Form system — inputs, labels, primary/secondary buttons (site + admin)
   ------------------------------------------------------------------ */

:root {
  --app-form-surface: hsl(210, 24%, 11%);
  --app-form-surface2: hsl(210, 20%, 8%);
  --app-form-edge: hsl(210, 16%, 22%);
  --app-input-bg: hsl(210, 18%, 13%);
  --app-input-bg-hover: hsl(210, 16%, 16%);
  --app-input-border: hsl(210, 14%, 28%);
  --app-input-text: hsl(0, 0%, 96%);
  --app-input-placeholder: hsl(210, 8%, 55%);
  --app-focus-ring: hsla(32, 100%, 55%, 0.35);
  --app-focus-border: hsl(32, 100%, 54%);
  --app-btn-fg: hsl(210, 28%, 8%);
  --app-btn-bg1: hsl(34, 100%, 58%);
  --app-btn-bg2: hsl(28, 96%, 46%);
}

/* Card panel for stacked forms (order track, checkout, cart, admin CRUD) */
form.app-form {
  background: linear-gradient(155deg, var(--app-form-surface) 0%, var(--app-form-surface2) 100%);
  border: 1px solid var(--app-form-edge);
  border-radius: 18px;
  padding: 1.5rem 1.35rem 1.65rem;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (min-width: 480px) {
  form.app-form {
    padding: 1.65rem 1.75rem 1.85rem;
  }
}

.admin-body form.app-form {
  background: linear-gradient(155deg, hsl(220, 18%, 13%) 0%, hsl(220, 16%, 10%) 100%);
  border-color: hsl(220, 12%, 24%);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Labels that wrap fields */
form.app-form label:has(textarea.input-field),
form.app-form label:has(select.input-field),
form.app-form label:has(input.input-field:not([type="checkbox"]):not([type="radio"])) {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: hsl(0, 0%, 86%);
}

form.app-form label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  cursor: pointer;
}

form.app-form label:has(input[type="checkbox"]) input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--app-focus-border);
}

/* Fields: public app + admin (footer reservation overrides below) */
.app-main .input-field,
.admin-body .input-field {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--app-input-border);
  background: var(--app-input-bg);
  color: var(--app-input-text);
  padding: 0.65rem 1rem;
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.app-main .input-field::placeholder,
.admin-body .input-field::placeholder {
  color: var(--app-input-placeholder);
}

.app-main .input-field:hover:not(:disabled),
.admin-body .input-field:hover:not(:disabled) {
  background: var(--app-input-bg-hover);
  border-color: hsl(210, 12%, 38%);
}

.app-main .input-field:focus,
.admin-body .input-field:focus {
  outline: none;
  border-color: var(--app-focus-border);
  box-shadow: 0 0 0 3px var(--app-focus-ring);
}

.app-main .input-field:disabled,
.admin-body .input-field:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

textarea.input-field {
  min-height: 6.5rem;
  resize: vertical;
}

select.input-field {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b8c0cc' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}

input.input-field[type="file"] {
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-size: 0.9rem;
}

input.input-field[type="number"] {
  font-variant-numeric: tabular-nums;
}

/* Table quantity fields */
.app-table .input-field {
  padding: 0.45rem 0.65rem;
  min-height: 2.4rem;
  font-size: 0.95rem;
}

/* Light footer reservation card */
.footer-form .input-field {
  background: hsl(0, 0%, 99%);
  color: hsl(210, 20%, 16%);
  border-color: hsl(0, 0%, 88%);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
}

.footer-form .input-field:focus {
  border-color: var(--app-focus-border);
  box-shadow: 0 0 0 3px var(--app-focus-ring);
}

.footer-form .btn {
  border-radius: 12px;
  min-height: 2.65rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.footer-form .btn:is(:hover, :focus) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

/* Primary + outline buttons (do not flatten theme food-menu buttons) */
.app-main a.btn:not(.food-menu-btn):not(.btn-danger):not(.btn-secondary):not(.btn-cancel),
.app-main button.btn:not(.food-menu-btn):not(.btn-danger):not(.btn-secondary):not(.btn-cancel),
.admin-body a.btn:not(.btn-danger):not(.btn-secondary):not(.btn-cancel),
.admin-body button.btn:not(.btn-danger):not(.btn-secondary):not(.btn-cancel) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 12px;
  min-height: 2.75rem;
  padding: 0.55rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  background: linear-gradient(165deg, var(--app-btn-bg1) 0%, var(--app-btn-bg2) 100%);
  color: var(--app-btn-fg);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.app-main a.btn:not(.food-menu-btn):not(.btn-danger):not(.btn-secondary):not(.btn-cancel):is(:hover, :focus),
.app-main button.btn:not(.food-menu-btn):not(.btn-danger):not(.btn-secondary):not(.btn-cancel):is(:hover, :focus),
.admin-body a.btn:not(.btn-danger):not(.btn-secondary):not(.btn-cancel):is(:hover, :focus),
.admin-body button.btn:not(.btn-danger):not(.btn-secondary):not(.btn-cancel):is(:hover, :focus) {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.app-main a.btn:not(.food-menu-btn):not(.btn-danger):not(.btn-secondary):not(.btn-cancel):active,
.app-main button.btn:not(.food-menu-btn):not(.btn-danger):not(.btn-secondary):not(.btn-cancel):active,
.admin-body a.btn:not(.btn-danger):not(.btn-secondary):not(.btn-cancel):active,
.admin-body button.btn:not(.btn-danger):not(.btn-secondary):not(.btn-cancel):active {
  transform: translateY(0);
}

.app-main button.btn:not(.food-menu-btn):not(.btn-danger):not(.btn-secondary):not(.btn-cancel):disabled,
.admin-body button.btn:not(.btn-danger):not(.btn-secondary):not(.btn-cancel):disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

/* Secondary / cancel */
a.btn.btn-secondary,
button.btn.btn-secondary {
  background: transparent;
  color: hsl(0, 0%, 88%);
  border: 2px solid hsl(210, 12%, 38%);
  box-shadow: none;
  filter: none;
}

a.btn.btn-secondary:is(:hover, :focus),
button.btn.btn-secondary:is(:hover, :focus) {
  background: hsl(210, 16%, 18%);
  border-color: hsl(210, 10%, 48%);
  color: hsl(0, 0%, 96%);
  filter: none;
  transform: translateY(-1px);
}

.admin-body a.btn.btn-secondary:is(:hover, :focus),
.admin-body button.btn.btn-secondary:is(:hover, :focus) {
  background: hsl(220, 14%, 20%);
  border-color: hsl(220, 10%, 42%);
}

/* Back / cancel — does not use primary gradient */
a.btn.btn-cancel,
button.btn.btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-sizing: border-box;
  min-height: 2.65rem;
  padding: 0.5rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: hsl(215, 10%, 78%);
  border: 1px solid hsl(210, 10%, 34%);
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.btn.btn-cancel:is(:hover, :focus),
button.btn.btn-cancel:is(:hover, :focus) {
  background: hsl(210, 14%, 16%);
  border-color: hsl(210, 8%, 46%);
  color: hsl(0, 0%, 96%);
}

.app-main a.btn.btn-cancel:is(:hover, :focus),
.app-main button.btn.btn-cancel:is(:hover, :focus) {
  background: hsl(210, 18%, 20%);
  border-color: hsl(210, 12%, 42%);
}

/* Destructive */
button.btn-danger,
.admin-body .btn-danger {
  border-radius: 10px;
  min-height: 2.25rem;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: filter 0.15s ease, transform 0.15s ease;
}

button.btn-danger:is(:hover, :focus),
.admin-body .btn-danger:is(:hover, :focus) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Form actions row */
.app-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.app-form-actions--split {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 520px) {
  .app-form-actions--split {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .app-form-actions--split > .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Optional label helper used on checkout */
label.app-label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: hsl(0, 0%, 88%);
}

.app-order-total {
  margin: 0.25rem 0 0.15rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: hsl(210, 18%, 14%);
  border: 1px solid hsl(210, 14%, 26%);
  color: hsl(0, 0%, 92%);
  font-size: 1.05rem;
}

/* ------------------------------------------------------------------
   Admin portal: public-style top bar + left sidebar + submenus
   ------------------------------------------------------------------ */

.admin-topbar.header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-block-end: 1px solid hsl(210, 14%, 22%);
}

.admin-topbar .logo {
  font-size: clamp(1.85rem, 4.2vw, 2.5rem);
  letter-spacing: -0.04em;
}

.admin-topbar-nav .navbar-list {
  gap: 0.35rem 1.25rem;
}

.admin-topbar-nav .navbar-link {
  font-weight: 600;
  font-size: 1.35rem;
}

.admin-header-burger {
  display: none;
}

@media (max-width: 960px) {
  .admin-header-burger {
    display: flex;
  }
}

.admin-shell {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 5.5rem);
}

.admin-sidebar {
  width: 288px;
  flex-shrink: 0;
  background: hsl(220, 18%, 10%);
  border-right: 1px solid hsl(220, 12%, 22%);
  padding: 1rem 0 2rem;
  transition: transform 0.22s ease;
}

.admin-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 0.75rem;
}

.admin-side-link {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  color: hsl(0, 0%, 88%);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-side-link:hover {
  background: hsl(220, 14%, 18%);
  color: hsl(0, 0%, 98%);
}

.admin-side-link.is-active {
  background: hsla(32, 100%, 55%, 0.15);
  color: hsl(32, 100%, 62%);
}

.admin-nav-group {
  border-radius: 10px;
  margin-block: 0.15rem;
}

.admin-nav-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(210, 8%, 58%);
  user-select: none;
}

.admin-nav-summary::-webkit-details-marker {
  display: none;
}

.admin-nav-summary::after {
  content: "";
  float: right;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.42rem;
  border-right: 2px solid hsl(210, 8%, 50%);
  border-bottom: 2px solid hsl(210, 8%, 50%);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.admin-nav-group[open] .admin-nav-summary::after {
  transform: rotate(-135deg);
  margin-top: 0.55rem;
}

.admin-nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.25rem 0 0.5rem 0.35rem;
}

.admin-side-sublink {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  color: hsl(0, 0%, 78%);
  text-decoration: none;
  font-size: 1.08rem;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-side-sublink:hover {
  background: hsl(220, 12%, 16%);
  color: hsl(0, 0%, 96%);
}

.admin-side-sublink.is-active {
  background: hsl(220, 14%, 15%);
  color: hsl(32, 100%, 58%);
  border-left-color: hsl(32, 100%, 52%);
}

/* Admin table row: Edit + Delete as compact pills */
.admin-inline-form {
  display: inline-flex;
  margin: 0;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}

.admin-row-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9px;
  border: 1px solid hsl(210, 18%, 36%);
  background: linear-gradient(180deg, hsl(220, 14%, 22%) 0%, hsl(220, 14%, 17%) 100%);
  color: hsl(0, 0%, 94%);
  box-shadow: 0 1px 0 hsl(0deg 0% 100% / 0.05);
  transition: border-color 0.15s ease, filter 0.15s ease, transform 0.12s ease;
}

.admin-row-actions a:hover {
  border-color: hsl(32, 70%, 42%);
  filter: brightness(1.07);
}

.admin-row-actions a:active {
  transform: translateY(1px);
}

.admin-text-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  border-radius: 9px;
  border: 1px solid hsl(210, 18%, 36%);
  background: linear-gradient(180deg, hsl(220, 14%, 22%) 0%, hsl(220, 14%, 17%) 100%);
  color: hsl(0, 0%, 94%);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 0 hsl(0deg 0% 100% / 0.05);
  transition: border-color 0.15s ease, filter 0.15s ease, transform 0.12s ease;
}

.admin-text-submit:hover {
  border-color: hsl(210, 22%, 44%);
  filter: brightness(1.08);
  color: hsl(0, 0%, 98%);
}

.admin-text-submit:active {
  transform: translateY(1px);
}

.admin-text-submit--danger {
  border-color: hsl(0, 42%, 38%);
  background: linear-gradient(180deg, hsla(0, 40%, 30%, 0.9) 0%, hsla(0, 38%, 20%, 0.95) 100%);
  color: hsl(8, 88%, 78%);
}

.admin-text-submit--danger:hover {
  border-color: hsl(0, 50%, 48%);
  color: hsl(5, 95%, 90%);
  filter: brightness(1.12);
}

/* Orders / reservations — status dropdown in table */
.admin-status-form {
  margin: 0;
  display: block;
  max-width: 100%;
}

.admin-status-form__select.input-field {
  min-width: min(100%, 12.5rem);
  min-height: 2.65rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.98rem;
  border-radius: 10px;
  background: hsl(220, 14%, 14%);
  border-color: hsl(220, 10%, 28%);
  color: hsl(0, 0%, 92%);
}

/* Admin category / menu list — search strip */
.admin-search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.35rem;
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.25rem 1.2rem;
  border-radius: 14px;
  background: hsl(220, 16%, 12%);
  border: 1px solid hsl(220, 10%, 22%);
}

.admin-search-bar__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.admin-search-bar__field:not(.admin-search-bar__field--grow) {
  flex: 0 0 auto;
  width: min(100%, 13rem);
}

.admin-search-bar--wide-outlet .admin-search-bar__field:not(.admin-search-bar__field--grow) {
  width: min(100%, 17rem);
}

.admin-search-bar__field--grow {
  flex: 1 1 240px;
  min-width: min(100%, 16rem);
}

.admin-search-bar__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(210, 10%, 68%);
  letter-spacing: 0.02em;
}

.admin-search-bar__control {
  width: 100%;
  min-height: 3rem;
  padding: 0.55rem 0.9rem;
  font-size: 1.06rem;
  border-radius: 10px;
}

.admin-search-bar__submit.btn {
  min-height: 3rem;
  padding: 0.55rem 1.55rem;
  font-size: 1.06rem;
  font-weight: 600;
  border-radius: 10px;
}

@media (max-width: 520px) {
  .admin-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.1rem;
  }

  .admin-search-bar__field:not(.admin-search-bar__field--grow) {
    width: 100%;
  }

  .admin-search-bar__submit.btn {
    width: 100%;
  }
}

.admin-main.admin-content {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1rem 3rem;
}

.admin-main.admin-content > h1:first-child {
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  margin: 0 0 1.1rem;
  font-weight: 700;
}

.admin-main-login {
  padding: 2.5rem 1rem 4rem;
  max-width: 520px;
  margin-inline: auto;
}

.admin-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.5);
}

.admin-sidebar-open-body .admin-backdrop {
  display: block;
}

@media (max-width: 960px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 75;
    width: min(300px, 90vw);
    padding-top: 4.5rem;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
    transform: translateX(-102%);
  }

  .admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-shell {
    flex-direction: column;
  }

  .admin-main.admin-content {
    width: 100%;
  }
}

.admin-dashboard-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.admin-dashboard-grid a {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  color: hsl(0, 0%, 94%);
  background: linear-gradient(155deg, hsl(220, 16%, 16%) 0%, hsl(220, 14%, 12%) 100%);
  border: 1px solid hsl(220, 10%, 24%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.admin-dashboard-grid a:hover {
  transform: translateY(-2px);
  border-color: hsl(32, 80%, 45%);
}

/* Date filter — range row inside admin search bar */
.admin-search-bar__date-range {
  display: flex;
  gap: 1rem;
  flex: 0 0 100%;
}

.admin-search-bar__date-range .admin-search-bar__field {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

/* Active date filter badge strip */
.admin-date-filter-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: -0.75rem 0 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.4em 0.9em;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  line-height: 1.35;
}

.badge--accent {
  background: hsl(32, 80%, 45%, 0.18);
  color: hsl(32, 85%, 60%);
  border: 1px solid hsl(32, 70%, 40%, 0.35);
}

.badge--clear {
  background: hsl(0, 60%, 45%, 0.15);
  color: hsl(0, 70%, 65%);
  border: 1px solid hsl(0, 50%, 40%, 0.3);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.badge--clear:hover {
  background: hsl(0, 60%, 45%, 0.3);
  color: hsl(0, 80%, 72%);
}

@media (max-width: 520px) {
  .admin-search-bar__date-range {
    flex-direction: column;
    gap: 0.75rem;
  }
}
