.menus-shell {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  box-sizing: border-box;
}

.menus-header {
  min-width: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #a6c9ec;
  padding-bottom: 10px;
}

.menus-workflow {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.menus-workflow div {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid #a6c9ec;
  background: #ffffff;
  box-sizing: border-box;
}

.menus-workflow strong {
  color: #1e3a5f;
  font-size: 13px;
}

.menus-workflow span {
  color: #64748b;
  font-size: 12px;
}

.menus-header h1 {
  margin: 0;
  color: #1e3a5f;
  font-size: 24px;
  line-height: 1.1;
}

.menus-header p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 13px;
}

.menus-header__links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.menus-header__links a {
  color: #215c98;
  font-size: 13px;
  text-decoration: none;
}

.menus-grid {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr);
  gap: 12px;
}

.menus-list-zone,
.menus-detail-zone,
.menus-outline-zone {
  min-width: 0;
  min-height: 0;
}

.menus-list-panel-content,
.menus-detail-panel-content,
.menus-outline-panel-content {
  min-width: 0;
  min-height: 100%;
  display: grid;
}

.menus-list-panel-content {
  grid-template-rows: minmax(0, 1fr);
}

.menus-list-panel .menus-type-filter.web-select-field {
  height: 100%;
}

.menus-type-filter .web-select-field__list {
  min-width: 180px;
}

.menus-detail-panel-content {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.menus-detail-panel .web-panel__body {
  overflow-x: hidden;
  overflow-y: auto;
}

.menus-detail-panel .menus-view {
  overflow: visible;
}

.menus-outline-panel .web-panel__body {
  overflow-x: hidden;
  overflow-y: auto;
}

.menus-outline-panel-content {
  align-content: start;
}

.menus-outline-card {
  border: 0;
  background: transparent;
  padding: 0;
}

.menus-panel {
  min-width: 0;
  min-height: 0;
}

.menus-panel--detail {
  min-width: 0;
  min-height: 0;
}

.menus-panel__head {
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid #a6c9ec;
  background: #dae9f8;
  box-sizing: border-box;
}

.menus-panel__head h2 {
  margin: 0;
  color: #215c98;
  font-size: 15px;
}

.menus-list-filter select,
.menus-actions button,
.menus-inline-actions button,
.locale-control select {
  height: 28px;
  border: 1px solid #a6c9ec;
  background: #fff;
  color: #1e3a5f;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.locale-control {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 5px;
  color: #215C98;
  font-size: 12px;
  font-weight: 700;
}

.menus-list {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  padding: 0;
  gap: 4px;
}

.menu-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d6e6f7;
  background: #fff;
  color: #215C98;
  text-align: left;
  cursor: pointer;
}

.menu-row.is-active {
  background: #eef6ff;
}

.menu-row strong {
  min-width: 0;
  display: block;
  overflow: hidden;
  color: #1e3a5f;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-row span {
  color: #64748b;
  font-size: 11px;
}

.menus-tabs {
  display: flex;
  gap: 4px;
  padding: 0;
  border-bottom: 1px solid #a6c9ec;
  background: #eef2f7;
}

.menus-tabs button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid #a6c9ec;
  border-bottom: 0;
  background: #fff;
  color: #1e3a5f;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.menus-tabs button.is-active {
  background: #dae9f8;
  font-weight: 700;
}

.menus-view {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: none;
  align-content: start;
  gap: 12px;
  padding: 10px;
}

.menus-view.is-active {
  display: grid;
}

.menus-stack {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.menus-two-cols {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.conditions-editor-slot {
  height: 170px;
  min-width: 0;
}

.document-menu-list {
  min-width: 0;
  max-height: 220px;
  overflow: auto;
  display: grid;
  gap: 4px;
}

.document-menu-option {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 5px 6px;
  border: 1px solid #d6e6f7;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.document-menu-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menus-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 10px;
  border: 1px solid #d6e6f7;
  background: #fff;
  box-sizing: border-box;
}

.menus-card h3 {
  margin: 0;
  color: #1e3a5f;
  font-size: 15px;
}

.menus-card--output {
  min-height: 220px;
}

.menus-form-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.menus-form-grid label,
.menus-check {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: #215C98;
  font-size: 12px;
  font-weight: 400;
}

.menus-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.menus-form-grid input,
.menus-form-grid select {
  min-width: 0;
  height: 32px;
  border: 1px solid #a6c9ec;
  background: #fff;
  color: #215C98;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  padding: 0 7px;
  box-sizing: border-box;
}

.menus-pdf-zone {
  min-width: 0;
  min-height: 0;
}

.pdf-preview {
  min-width: 0;
  min-height: 100%;
  height: 100%;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 0;
}

.pdf-page {
  width: min(100%, 680px);
  aspect-ratio: 210 / 297;
  display: grid;
  padding: 0;
  background: #fff;
  border: 1px solid #A6C9EC;
  box-shadow: none;
  color: #1f2937;
  box-sizing: border-box;
}

.pdf-master {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 15mm 20mm;
  box-sizing: border-box;
}

.pdf-master__header {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 25.2mm) minmax(0, 1fr);
  align-items: end;
  gap: 8mm;
  padding-bottom: 6mm;
  border-bottom: 1.25pt solid #000;
}

.pdf-master__logo {
  width: 25.2mm;
  height: auto;
  display: block;
}

.pdf-master__title {
  margin: 0 0 1.5mm;
  color: #000;
  font-size: clamp(20px, 2.15vw, 30px);
  line-height: 1;
  text-align: right;
}

.pdf-master__content {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  margin: 15mm 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.pdf-menu-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  margin-bottom: 18px;
}

.pdf-menu-head h4 {
  margin: 0;
  color: #1e3a5f;
  font-size: 21px;
  line-height: 1.1;
  text-align: left;
}

.pdf-price {
  color: #1e3a5f;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.pdf-page p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  text-align: left;
}

.pdf-section {
  display: grid;
  gap: 2px;
  padding-top: 4px;
}

.pdf-section h4 {
  margin: 0;
  color: #1e3a5f;
  font-size: 14px;
  line-height: 1.15;
  text-align: left;
  text-transform: uppercase;
}

.pdf-section ul {
  margin: 0;
  padding-left: 24px;
  color: #1f2937;
  font-size: 12px;
  line-height: 1.32;
}

.pdf-master__footer {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 10mm;
  padding-top: 7mm;
  border-top: 1.25pt solid #000;
  color: #000;
  font-size: 11px;
}

.pdf-master__footer-left,
.pdf-master__footer-right {
  min-width: 0;
  display: grid;
  gap: 3px;
  align-content: start;
}

.pdf-master__footer-left strong {
  font-weight: 800;
}

.pdf-master__footer-right {
  justify-items: end;
}

.pdf-master__footer-right span {
  display: inline-grid;
  grid-template-columns: 14px auto;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.pdf-master__footer-right img {
  width: 13px;
  height: 13px;
}

.menus-control-slot {
  min-width: 0;
  height: 32px;
}

.menus-control-slot .web-text-field,
.menus-control-slot .web-number-field,
.menus-control-slot .web-currency-field,
.menus-control-slot .web-date-field {
  height: 32px;
}

.menus-inline-actions {
  display: flex;
  justify-content: end;
  gap: 8px;
}

.menus-inline-actions button {
  min-width: 110px;
  background: #dae9f8;
}

.menus-empty {
  color: #64748b;
  font-size: 13px;
}

.selected-menu {
  display: grid;
  gap: 8px;
}

.selected-menu__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  height: 22px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid #a6c9ec;
  background: #eef6ff;
  color: #215c98;
  font-size: 11px;
  font-weight: 700;
}

.section-list {
  display: grid;
  gap: 8px;
}

.section-box {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d6e6f7;
  background: #f8fafc;
}

.section-box h4 {
  margin: 0;
  color: #1e3a5f;
  font-size: 13px;
}

.item-list {
  display: grid;
  gap: 3px;
}

.item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.item-row:hover,
.item-row:focus {
  border-color: #a6c9ec;
  background: #eef6ff;
  outline: none;
}

.menus-channel-slot {
  min-width: 0;
}

.products-table {
  min-width: 0;
  display: grid;
  gap: 1px;
  overflow: auto;
  border: 1px solid #d6e6f7;
}

.product-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 120px 170px;
  gap: 8px;
  padding: 6px 8px;
  background: #fff;
  color: #334155;
  font-size: 12px;
}

.product-row:nth-child(odd) {
  background: #f8fafc;
}

.product-row strong {
  color: #1e3a5f;
}

.menus-card pre {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  margin: 0;
  padding: 8px;
  background: #0f172a;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.35;
}

.menus-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid #a6c9ec;
  background: #fff;
  color: #1e3a5f;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  font-size: 13px;
}

.menus-toast[data-kind="error"] {
  border-color: #f2aaaa;
  color: #991b1b;
}

@media (max-width: 1100px) {
  .menus-grid,
  .menus-two-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .menus-panel--list {
    min-height: 260px;
  }

  .menus-pdf-zone {
    min-height: 420px;
  }
}

@media print {
  body {
    margin: 0;
    background: #fff;
  }

  body * {
    visibility: hidden;
  }

  .pdf-preview,
  .pdf-preview * {
    visibility: visible;
  }

  .pdf-preview {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: visible;
    background: #fff;
  }

  .pdf-page {
    width: 210mm;
    height: 297mm;
    border: 1px solid #A6C9EC;
    box-shadow: none;
  }

  .pdf-master__content {
    border: 0;
  }
}
