:root {
  color: #2b2420;
  background: #f5f1eb;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f5f1eb;
}

button,
a {
  font: inherit;
}

.admin-shell {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 40px 0;
}

.access-state,
.admin-panel {
  border: 1px solid #ded3c7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(64 40 25 / 8%);
}

.access-state {
  max-width: 560px;
  margin: 12vh auto 0;
  padding: 32px;
  text-align: center;
}

h1,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  color: #681414;
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  line-height: 1.1;
}

.access-state p,
.admin-user,
.admin-notice {
  color: #625750;
  line-height: 1.55;
}

.admin-panel {
  padding: 32px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.admin-eyebrow {
  margin-bottom: 8px;
  color: #9b6b25;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-user {
  margin-bottom: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
}

.admin-actions .button {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .admin-header {
    flex-direction: column;
  }

  .admin-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.button--primary {
  border-color: #681414;
  background: #681414;
  color: #fff;
}

.button--secondary {
  border-color: #b9aaa0;
  background: #fff;
  color: #4d4038;
}

.button:focus-visible,
.admin-section:focus-visible {
  outline: 3px solid #d5a64a;
  outline-offset: 2px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.admin-notice {
  margin: 28px 0 18px;
  padding-top: 20px;
  border-top: 1px solid #eadfd5;
}

.admin-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.admin-section {
  min-height: 92px;
  padding: 18px;
  border: 1px solid #ded3c7;
  border-radius: 10px;
  background: #f8f5f1;
  color: #574a42;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}

.admin-section:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.admin-section--available {
  border-color: #9b6b25;
  background: #fff9ee;
  color: #681414;
  cursor: pointer;
}

.admin-section--available:hover {
  border-color: #681414;
  background: #fff4df;
}

.orders-view,
.clients-view,
.statistics-view,
.dishes-view,
.categories-view,
.promotions-view {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #eadfd5;
}

.orders-view__header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.orders-view__header h2 {
  margin: 0;
  color: #681414;
  font-size: 1.75rem;
}

.orders-view__header .admin-eyebrow {
  margin-bottom: 4px;
}

.orders-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.orders-controls label,
.status-editor label {
  font-weight: 700;
}

.orders-controls select,
.status-editor select {
  min-height: 44px;
  padding: 8px 36px 8px 12px;
  border: 1px solid #b9aaa0;
  border-radius: 9px;
  background: #fff;
  color: #2b2420;
  font: inherit;
}

.orders-controls select:focus-visible,
.status-editor select:focus-visible,
.order-card:focus-visible {
  outline: 3px solid #d5a64a;
  outline-offset: 2px;
}

.orders-message,
.orders-empty {
  color: #625750;
  line-height: 1.5;
}

.orders-message[data-type="error"],
.status-message[data-type="error"] {
  color: #9b2020;
}

.orders-message[data-type="success"] {
  color: #326036;
}

.orders-list {
  display: grid;
  gap: 10px;
}

.order-card {
  display: grid;
  grid-template-columns: 0.65fr 1fr 1.2fr 1fr 1fr 0.75fr 1fr;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid #ded3c7;
  border-radius: 10px;
  background: #fff;
  color: #2b2420;
  cursor: pointer;
  text-align: left;
}

.order-card:hover {
  border-color: #9b6b25;
  background: #fffdf8;
}

.order-card__cell {
  min-width: 0;
}

.order-card__cell small,
.order-meta small,
.order-summary small,
.order-item small {
  display: block;
  margin-bottom: 4px;
  color: #7b6f67;
  font-size: 0.75rem;
  line-height: 1.35;
}

.order-card__cell strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.4;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #efe9e2;
  color: #51463f;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-badge--awaiting_whatsapp {
  background: #fff0bd;
  color: #705000;
}

.status-badge--confirmed,
.status-badge--preparing {
  background: #dfeafb;
  color: #244d79;
}

.status-badge--ready,
.status-badge--completed {
  background: #dcefdc;
  color: #275d2a;
}

.status-badge--cancelled {
  background: #f5dddd;
  color: #852525;
}

.order-details > .button {
  margin-bottom: 20px;
}

.order-details__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.order-details__header h3 {
  margin: 0 0 6px;
  color: #681414;
  font-size: 1.5rem;
}

.order-details__header p {
  margin: 0;
  color: #625750;
}

.order-meta,
.order-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.order-meta > div,
.order-summary > div,
.order-note {
  padding: 14px;
  border: 1px solid #e7ddd3;
  border-radius: 9px;
  background: #faf8f5;
}

.order-meta strong,
.order-summary strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.order-items-title {
  margin: 24px 0 12px;
  font-size: 1.2rem;
}

.order-items {
  display: grid;
  gap: 10px;
}

.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px;
  border: 1px solid #e7ddd3;
  border-radius: 9px;
}

.order-item h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.order-item p {
  margin: 4px 0 0;
  color: #625750;
  line-height: 1.45;
}

.order-item__price {
  white-space: nowrap;
}

.order-note {
  margin: 16px 0;
  line-height: 1.5;
}

.order-note strong {
  display: block;
  margin-bottom: 5px;
}

.status-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #eadfd5;
}

.status-message {
  flex-basis: 100%;
  min-height: 1.4em;
  margin: 0;
  color: #326036;
}

.statistics-periods,
.statistics-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.statistics-periods .button.is-active {
  border-color: #681414;
  background: #681414;
  color: #fff;
}

.statistics-custom label {
  font-weight: 700;
}

.statistics-custom input {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #b9aaa0;
  border-radius: 9px;
  background: #fff;
  color: #2b2420;
  font: inherit;
}

.statistics-custom input:focus-visible {
  outline: 3px solid #d5a64a;
  outline-offset: 2px;
}

.statistics-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}

.statistics-card {
  padding: 18px;
  border: 1px solid #ded3c7;
  border-radius: 10px;
  background: #faf8f5;
}

.statistics-card span {
  display: block;
  min-height: 2.7em;
  color: #625750;
  line-height: 1.35;
}

.statistics-card strong {
  display: block;
  margin-top: 8px;
  color: #681414;
  font-size: 2rem;
  line-height: 1;
}

.statistics-chart {
  padding: 20px;
  border: 1px solid #ded3c7;
  border-radius: 10px;
  background: #fff;
}

.statistics-chart h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.statistics-bar {
  display: flex;
  width: 100%;
  height: 34px;
  overflow: hidden;
  border-radius: 8px;
  background: #ebe5df;
}

.statistics-bar span {
  display: block;
  width: 0;
  transition: width 180ms ease;
}

.statistics-bar__registered,
.legend-dot--registered {
  background: #3f7d44;
}

.statistics-bar__guests,
.legend-dot--guests {
  background: #d5a64a;
}

.statistics-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  color: #625750;
  font-size: 0.875rem;
}

.statistics-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.clients-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.clients-controls label {
  font-weight: 700;
}

.clients-controls input {
  width: min(100%, 360px);
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #b9aaa0;
  border-radius: 9px;
  background: #fff;
  color: #2b2420;
  font: inherit;
}

.clients-controls input:focus-visible,
.client-link:focus-visible,
.client-order-link:focus-visible {
  outline: 3px solid #d5a64a;
  outline-offset: 2px;
}

.clients-table-wrap {
  overflow-x: auto;
  border: 1px solid #ded3c7;
  border-radius: 10px;
}

.clients-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  background: #fff;
}

.clients-table th,
.clients-table td {
  padding: 12px;
  border-bottom: 1px solid #eadfd5;
  text-align: left;
  vertical-align: top;
}

.clients-table th {
  background: #f8f5f1;
  color: #675a52;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.clients-table tbody tr:last-child td {
  border-bottom: 0;
}

.client-link,
.client-order-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #681414;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-state {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f5dddd;
  color: #852525;
  font-size: 0.8rem;
  font-weight: 700;
}

.consent-state--yes {
  background: #dcefdc;
  color: #275d2a;
}

.client-details > .button {
  margin-bottom: 20px;
}

.client-details__header {
  margin-bottom: 20px;
}

.client-details__header h3 {
  margin: 0 0 6px;
  color: #681414;
  font-size: 1.5rem;
}

.client-details__header p {
  margin: 0;
  color: #625750;
}

.client-history-title {
  margin: 26px 0 12px;
  color: #3e332d;
  font-size: 1.2rem;
}

.client-orders {
  display: grid;
  gap: 8px;
}

.client-order {
  display: grid;
  grid-template-columns: 0.7fr 1fr 0.8fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e7ddd3;
  border-radius: 9px;
  background: #fff;
}

.client-order small {
  display: block;
  margin-bottom: 3px;
  color: #7b6f67;
  font-size: 0.75rem;
}

.dishes-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(145px, 0.8fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.dishes-toolbar label,
.dish-field {
  display: grid;
  gap: 6px;
  color: #4d4038;
  font-weight: 700;
}

.dishes-toolbar input,
.dishes-toolbar select,
.dish-field input,
.dish-field select,
.dish-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #b9aaa0;
  border-radius: 9px;
  background: #fff;
  color: #2b2420;
  font: inherit;
}

.dish-field textarea {
  min-height: 88px;
  resize: vertical;
}

.dish-option-missing {
  color: #806f61;
  font-size: 0.76rem;
  font-weight: 500;
}

.dish-option-translation-heading {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #4d4038;
  font-size: 0.9rem;
  font-weight: 700;
}

.translation-editor {
  margin: 20px 0 16px;
}

.translation-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.translation-tabs button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #cdbfb1;
  border-radius: 9px;
  background: #faf8f5;
  color: #4d4038;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.translation-tabs button[aria-pressed="true"] {
  border-color: #7b1717;
  background: #7b1717;
  color: #fff8ed;
}

.translation-tabs button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.translation-tabs button:focus-visible {
  outline: 3px solid #d5a64a;
  outline-offset: 2px;
}

.translation-tabs small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.2;
}

.translation-tabs small[hidden],
.dish-photo-control[hidden] {
  display: none;
}

.translation-editor__hint {
  margin: 8px 0 0;
  color: #625750;
  font-size: 0.86rem;
  line-height: 1.45;
}

.dish-field input:disabled,
.dish-field select:disabled,
.dish-field textarea:disabled {
  background: #f5f1ec;
  color: #746b65;
}

.dishes-toolbar input:focus-visible,
.dishes-toolbar select:focus-visible,
.dish-field input:focus-visible,
.dish-field select:focus-visible,
.dish-field textarea:focus-visible,
.dish-visibility input:focus-visible {
  outline: 3px solid #d5a64a;
  outline-offset: 2px;
}

.dishes-toolbar__actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  justify-content: flex-end;
}

.dishes-table-wrap {
  overflow-x: auto;
  border: 1px solid #ded3c7;
  border-radius: 10px;
}

.dishes-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: #fff;
}

.categories-table { min-width: 820px; }
.categories-actions { margin-bottom: 16px; flex-wrap: wrap; }
.category-form { margin-top: 20px; padding: 20px; border: 1px solid #ded3c7; border-radius: 10px; background: #fff; }
.category-form h3 { margin-top: 0; }
.category-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.category-list-icon { font-size: 1.5rem; }
.category-icon-field { display: flex; align-items: center; gap: 10px; }
.category-icon-field input { min-width: 0; }
.category-icon-preview { display: grid; flex: 0 0 44px; min-height: 44px; place-items: center; border: 1px solid #ded3c7; border-radius: 9px; font-size: 1.5rem; }
.categories-table td:nth-child(2) { min-width: 140px; overflow-wrap: anywhere; }
.category-menu-confirm { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding: 14px; border: 1px solid #ded3c7; border-radius: 9px; background: #f8f5f1; }
.category-menu-confirm p { flex-basis: 100%; margin: 0; line-height: 1.5; }

.dishes-table th,
.dishes-table td {
  padding: 12px;
  border-bottom: 1px solid #eadfd5;
  text-align: left;
  vertical-align: middle;
}

.dishes-table th {
  background: #f8f5f1;
  color: #675a52;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.dishes-table tbody tr:last-child td {
  border-bottom: 0;
}

.dish-table-image {
  display: grid;
  width: 64px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #f1ece6;
}

.dish-table-name__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-table-image__empty {
  color: #81736a;
  font-size: 0.7rem;
  text-align: center;
}

.dish-table-name strong,
.dish-table-name small {
  display: block;
}

.dish-table-name {
  min-width: 180px;
}

.dish-table-name small {
  max-width: 240px;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #81736a;
  font-size: 0.7rem;
}

.dish-visibility {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.dish-visibility--active {
  background: #dcefdc;
  color: #275d2a;
}

.dish-visibility--hidden {
  background: #efe9e2;
  color: #625750;
}

.dish-edit-button {
  min-height: 38px;
  padding: 7px 11px;
  font-size: 0.82rem;
}

.dish-editor > .button {
  margin-bottom: 20px;
}

.dish-editor__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dish-editor__header h3 {
  margin: 0 0 6px;
  color: #681414;
  font-size: 1.5rem;
}

.dish-editor__id {
  margin: 0;
  color: #81736a;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.dish-editor__preview {
  display: grid;
  width: 150px;
  min-width: 150px;
  height: 108px;
  margin: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid #ded3c7;
  border-radius: 10px;
  background: #f8f5f1;
}

.dish-editor__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-editor__preview figcaption {
  padding: 10px;
  color: #81736a;
  font-size: 0.78rem;
  text-align: center;
}

.dish-photo-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 20px;
  align-items: center;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid #ded3c7;
  border-radius: 10px;
  background: #faf8f5;
}

.dish-photo-control h4,
.dish-photo-control p {
  margin: 0;
}

.dish-photo-control h4 {
  margin-bottom: 5px;
  color: #681414;
}

.dish-photo-control p {
  color: #625750;
  font-size: 0.86rem;
  line-height: 1.5;
}

.dish-photo-control__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dish-photo-control__message {
  grid-column: 1 / -1;
  min-height: 1.3em;
}

.dish-photo-control__message[data-type="error"] {
  color: #9b2020;
}

.dish-photo-control__message[data-type="success"] {
  color: #326036;
}

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

.dish-field--wide {
  grid-column: 1 / -1;
}

.dish-rule-fields {
  margin: 22px 0 0;
  padding: 18px;
  border: 1px solid #ded3c7;
  border-radius: 10px;
}

.dish-rule-fields legend {
  padding: 0 7px;
  color: #681414;
  font-weight: 700;
}

.dish-form-hint {
  margin: 0 0 14px;
  color: #625750;
  font-size: 0.86rem;
  line-height: 1.5;
}

label.dish-visibility {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 22px 0;
  padding: 15px;
  border: 1px solid #ded3c7;
  border-radius: 10px;
  background: #faf8f5;
  color: #2b2420;
  cursor: pointer;
  white-space: normal;
}

label.dish-visibility input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #681414;
}

label.dish-visibility span,
label.dish-visibility small {
  display: block;
}

label.dish-visibility small {
  margin-top: 4px;
  color: #625750;
  font-weight: 400;
}

.dish-form-actions,
.dish-delete-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dish-form-actions {
  margin-top: 10px;
}

.dish-delete-zone {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #e1b5b5;
  border-radius: 10px;
  background: #fff8f8;
}

.dish-delete-zone h4 {
  margin: 0 0 8px;
  color: #852525;
}

.dish-delete-zone p {
  color: #625750;
  line-height: 1.5;
}

.button--danger-outline {
  border-color: #a63232;
  background: #fff;
  color: #852525;
}

.button--danger {
  border-color: #852525;
  background: #852525;
  color: #fff;
}

.dish-delete-confirm {
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e1b5b5;
}

.dish-delete-confirm p {
  flex-basis: 100%;
  margin-bottom: 0;
}

.promotions-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.promotions-toolbar > p {
  margin: 0;
  color: #625750;
  line-height: 1.5;
}

.promotions-toolbar__actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.promotions-table-wrap {
  overflow-x: auto;
  border: 1px solid #ded3c7;
  border-radius: 10px;
}

.promotions-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #fff;
}

.promotions-table th,
.promotions-table td {
  padding: 12px;
  border-bottom: 1px solid #eadfd5;
  text-align: left;
  vertical-align: middle;
}

.promotions-table th {
  background: #f8f5f1;
  color: #675a52;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.promotions-table tbody tr:last-child td {
  border-bottom: 0;
}

.promotion-table-title {
  min-width: 210px;
}

.promotion-table-title strong,
.promotion-table-title small {
  display: block;
}

.promotion-table-title small {
  max-width: 300px;
  margin-top: 4px;
  overflow: hidden;
  color: #81736a;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-table-period {
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.promotion-status {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #efe9e2;
  color: #625750;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.promotion-status--scheduled {
  background: #dfeafb;
  color: #244d79;
}

.promotion-status--active {
  background: #dcefdc;
  color: #275d2a;
}

.promotion-status--completed {
  background: #f1e5d5;
  color: #70502e;
}

.promotion-edit-button {
  min-height: 38px;
  padding: 7px 11px;
  font-size: 0.82rem;
}

.promotion-editor > .button {
  margin-bottom: 20px;
}

.promotion-editor__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.promotion-editor__header h3 {
  margin: 0 0 6px;
  color: #681414;
  font-size: 1.5rem;
}

.promotion-editor__id {
  margin: 0;
  color: #81736a;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.promotion-enabled {
  margin-bottom: 0;
}

.promotion-dishes {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #ded3c7;
  border-radius: 10px;
  background: #faf8f5;
}

.promotion-dishes__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.promotion-dishes__heading h4,
.promotion-dishes__heading p {
  margin: 0;
}

.promotion-dishes__heading h4 {
  margin-bottom: 5px;
  color: #681414;
}

.promotion-dishes__heading p {
  color: #625750;
  font-size: 0.86rem;
  line-height: 1.5;
}

.promotion-dishes__heading > strong {
  flex-shrink: 0;
  color: #681414;
}

.promotion-dishes__search {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  color: #4d4038;
  font-weight: 700;
}

.promotion-dishes__search input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #b9aaa0;
  border-radius: 9px;
  background: #fff;
  color: #2b2420;
  font: inherit;
}

.promotion-dishes__search input:focus-visible,
.promotion-dish-card__action:focus-visible {
  outline: 3px solid #d5a64a;
  outline-offset: 2px;
}

.promotion-dish-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.promotion-dish-columns h5 {
  margin: 0 0 10px;
  color: #4d4038;
  font-size: 0.92rem;
}

.promotion-dish-list {
  display: grid;
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
}

.promotion-dish-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid #e2d7cd;
  border-radius: 9px;
  background: #fff;
}

.promotion-dish-card__image {
  display: grid;
  width: 54px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #f1ece6;
  color: #81736a;
  font-size: 0.65rem;
  text-align: center;
}

.promotion-dish-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promotion-dish-card__details {
  min-width: 0;
}

.promotion-dish-card__details strong,
.promotion-dish-card__details small {
  display: block;
}

.promotion-dish-card__details strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-dish-card__details small {
  margin-top: 3px;
  color: #81736a;
  font-size: 0.72rem;
  line-height: 1.35;
}

.promotion-dish-card__details .promotion-dish-card__hidden {
  color: #9b2020;
}

.promotion-dish-card__action {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 0.76rem;
}

.promotion-dish-card__action--remove {
  border-color: #c69d9d;
  color: #852525;
}

@media (max-width: 680px) {
  .admin-shell {
    width: min(100% - 24px, 1040px);
    padding: 20px 0;
  }

  .access-state,
  .admin-panel {
    padding: 22px;
  }

  .admin-header {
    display: block;
  }

  .admin-actions {
    margin-top: 22px;
  }

  .admin-actions .button {
    flex: 1 1 150px;
  }

  .orders-view__header {
    display: block;
  }

  .orders-view__header > .button {
    margin-bottom: 18px;
  }

  .orders-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .clients-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .clients-controls input {
    width: 100%;
  }

  .dishes-toolbar,
  .dish-form-grid {
    grid-template-columns: 1fr;
  }

  .dish-field--wide {
    grid-column: auto;
  }

  .dishes-toolbar__actions {
    grid-column: auto;
    justify-content: stretch;
  }

  .dishes-toolbar__actions .button {
    flex: 1 1 150px;
  }

  .dish-editor__header {
    display: block;
  }

  .dish-editor__preview {
    width: 100%;
    height: 180px;
    margin-top: 16px;
  }

  .dish-photo-control {
    grid-template-columns: 1fr;
  }

  .dish-photo-control__actions {
    justify-content: stretch;
  }

  .dish-photo-control__actions .button {
    flex: 1 1 180px;
  }

  .dish-photo-control__message {
    grid-column: auto;
  }

  .promotions-toolbar,
  .promotion-editor__header,
  .promotion-dishes__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .promotions-toolbar__actions .button {
    flex: 1 1 150px;
  }

  .promotion-dish-columns {
    grid-template-columns: 1fr;
  }

  .order-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-details__header {
    display: block;
  }

  .order-details__header .status-badge {
    margin-top: 10px;
  }

  .order-meta,
  .order-summary {
    grid-template-columns: 1fr;
  }

  .statistics-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-order {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .order-card {
    grid-template-columns: 1fr;
  }

  .order-item {
    grid-template-columns: 1fr;
  }

  .status-editor > * {
    width: 100%;
  }

  .client-order {
    grid-template-columns: 1fr;
  }

  .statistics-periods,
  .statistics-custom {
    align-items: stretch;
    flex-direction: column;
  }

  .statistics-periods .button,
  .statistics-custom > * {
    width: 100%;
  }

  .statistics-cards {
    grid-template-columns: 1fr;
  }
}
