.menu-view-options p {
  width: 80%;
}
.account-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}
.form-group {
  margin-bottom: 15px;
}
#goBackBtn {
  display: none !important;
}
#goBackBtn.visible {
  display: inline-block !important;
}
.alert {
  border-radius: 4px;
  margin-bottom: 20px;
  padding: 15px;
  width: 100%;
}
.alert-success {
  background-color: var(--agree);
}
.alert-danger,
.alert-success {
  border: 1px solid var(--white);
}
.alert-danger {
  background-color: var(--white);
  color: var(--brown);
}
.alert-danger p {
  margin: 5px 0;
  padding: 0;
}
.menu-view-text {
  line-height: 1.4;
  margin: 0;
  padding: 5px 0;
}
@media (max-width: 768px) {
  .menu-view-text {
    font-size: 14px;
    max-width: 80%;
  }
}
.account-section {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 25px;
  box-shadow: var(--ui-shadow-soft);
  flex: 1;
  margin-top: 25px;
  padding: 30px;
  width: 100%;
}
.account-section h2 {
  border-bottom: 2px solid var(--primary-color);
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.form-group label {
  color: var(--ui-text);
  display: flex;
  font-weight: 600;
}
.form-group input:focus {
  border-color: var(--ui-focus-ring);
  outline: 2px solid var(--ui-focus-ring);
  outline-offset: 1px;
}
.form-group input:disabled {
  background-color: var(--ui-surface-muted);
  color: var(--ui-text-muted);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.order-items {
  display: none;
}
.order-header {
  align-items: center;
  background: var(--bg-light);
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  font-family: var(--font-text);
  font-size: 14px;
  gap: 5px;
  justify-content: space-evenly;
  padding: 10px;
}
.order-id {
  color: var(--primary-color);
  font-weight: 700;
}
.order-date,
.order-id {
  line-height: 1.3;
  min-width: 50px;
  white-space: pre-wrap;
  word-break: break-word;
}
.order-date {
  color: var(--ui-text-muted);
  font-size: 14px;
}
.order-status {
  background-color: var(--accent-color);
  border: none;
  border-radius: 4px;
  color: var(--white);
  flex: 0 0 auto;
  font-family: var(--font-text);
  font-size: 14px;
  padding: 8px;
  text-align: center;
  transition: background 0.3s;
}
.order-total {
  flex: 0 0 auto;
  font-weight: 700;
  min-width: 60px;
  text-align: right;
}
.order-toggle-icon {
  flex: 0 0 auto;
  min-width: 20px;
  text-align: center;
}
.order-product {
  background-color: var(--bg-light);
  border-bottom: 1px dashed var(--white);
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
  padding: 10px 20px !important;
}
.product-name {
  flex: 1;
  min-width: 90px;
}
.product-quantity {
  color: var(--ui-text-muted);
  margin-left: 10px;
  min-width: 90px;
  text-align: right;
}
.repeat-order-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.menu-tabs-container {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  bottom: 0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  left: 0;
  opacity: 1;
  position: fixed;
  right: 0;
  visibility: visible;
  white-space: nowrap;
  z-index: 100;
}
.tab-btn {
    background: var(--ui-surface-muted);
    border: 1px solid var(--ui-border);
    border-bottom: 2px solid var(--ui-border);
    border-radius: 25px;
    color: var(--ui-text-muted);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin: 0 5px;
    min-height: 40px;
    padding: 10px 20px;
    transition: background-color 0.2s ease, color 0.2s ease, border-bottom-color 0.2s ease;
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--ui-surface);
  border-color: var(--ui-border);
  border-bottom-color: var(--ui-accent);
  color: var(--ui-accent);
}
.status-btn.disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.order-customer-info {
  background: var(--bg-light);
  border-radius: 5px;
  color: var(--light-text);
  display: flex;
  font-size: 14px;
  gap: 15px;
  justify-content: space-evenly;
  margin: 10px 0;
  padding: 8px 15px;
}
.order-customer-info span {
  align-items: center;
  display: flex;
}
.order-customer-info i {
  color: var(--ui-text-muted);
  margin-right: 5px;
}
.delivery-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px;
}
.delivery-icon-text i {
  color: var(--primary-color);
  margin-right: 4px;
}
.delivery-details {
  color: var(--ui-text-muted);
}
.divider {
  border: none;
  border-top: 1px solid var(--light-text);
  margin: 8px 0;
  width: 100%;
}
.order-actions {
  text-align: right;
}
.update-order-form {
  align-items: center;
  display: block;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: right;
  margin-top: 10px;
}
.status-btn,
.status-btn-r {
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-text);
  font-weight: 600;
  padding: 8px 16px;
  transition: background 0.3s;
}
.status-btn {
  background: var(--agree);
  color: var(--ui-accent-contrast);
}
.status-btn-r {
  background: var(--accent-color);
  color: var(--ui-accent-contrast);
  margin-left: 5px;
}
.status-btn:hover {
  background: var(--agree);
}
.status-btn-r:hover {
  background: var(--accent-color);
}
.status-btn-r:disabled,
.status-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.file-list-container {
  max-height: 200px;
}
.file-upload-group {
  margin-bottom: 15px;
}
.file-upload-group input[type="file"] {
  margin-bottom: 10px;
}
.file-item {
  justify-content: space-between;
  padding: 8px;
}
.file-delete-btn {
  border: none;
  border-radius: 3px;
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
}
.cancel,
.file-delete-btn:hover {
  background-color: var(--primary-dark);
}
.design-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 10px;
  margin-bottom: 3%;
  position: relative;
}
.file-manager-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}
.file-browser {
  display: none;
}
.file-list-container {
  border: 1px solid var(--light-text);
  border-radius: 6px;
  margin-bottom: 15px;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
}
.file-item {
  align-items: center;
  border-bottom: 1px solid var(--light-text);
  display: flex;
  gap: 10px;
  padding: 10px;
}
.file-item:last-child {
  border-bottom: none;
}
.file-item.folder {
  background-color: rgba(var(--primary-color-rgb), 0.05);
}
.file-item.empty,
.file-item.error {
  color: var(--light-text);
  font-style: italic;
  justify-content: center;
}
.file-icon {
  font-size: 18px;
  text-align: center;
  width: 24px;
}
.file-name {
  flex-grow: 1;
  font-weight: 500;
}
.file-actions {
  display: flex;
  gap: 5px;
}
.file-delete-btn,
.file-open-btn {
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
}
.file-open-btn {
  background-color: var(--agree);
  color: #fff;
}
.file-delete-btn {
  background-color: var(--accent-color);
  color: #fff;
}
.file-open-btn:hover {
  background-color: #45a049;
}
.file-delete-btn:hover {
  background-color: #d32f2f;
}
.file-navigation {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.current-folder {
  background-color: var(--bg-light);
  border-radius: 4px;
  flex-grow: 1;
  font-weight: 600;
  margin-top: 20px;
  padding: 8px 12px;
  width: 50%;
}
.folder-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.color-controls,
.font-controls {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-bottom: 20px;
}
.color-control,
.font-control {
  border: 1px solid var(--light-text);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  padding: 10px;
}
.color-control label,
.font-control label {
  font-weight: 600;
  margin-bottom: 8px;
}
.font-selector {
  border: 1px solid var(--light-text);
  border-radius: 4px;
  margin-top: 5px;
  padding: 8px;
}
.color-value {
  color: var(--light-text);
  font-size: 12px;
  margin-top: 5px;
}
.admin-checkout-btn {
  background-color: var(--ui-accent);
  border: none;
  border-radius: 25px;
  color: var(--ui-accent-contrast);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  min-height: 40px;
  padding: 8px 16px;
}
.admin-checkout-btn:hover {
  background-color: var(--ui-accent-hover);
  box-shadow: var(--ui-shadow-soft);
  transform: translateY(-1px);
}
.admin-checkout-btn.cancel {
  margin-left: 10px;
}
.admin-checkout-btn.cancel,
.admin-checkout-btn.cancel:hover {
  background-color: var(--ui-text-muted);
  color: var(--ui-accent-contrast);
}
.color {
  height: 50px;
}
.project-name-control {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.project-name-control label {
  font-weight: 600;
  min-width: 80px;
}
.project-name-control input {
  border: 1px solid var(--light-text);
  border-radius: 4px;
  flex: 1;
  min-width: 200px;
  padding: 10px;
}
.project-name-control button {
  margin: 0;
}
.upload-progress {
  display: none;
  margin-top: 10px;
}
.progress-bar {
  background: var(--ui-surface-muted);
  border-radius: 25px;
  height: 20px;
  overflow: hidden;
  width: 100%;
}
.progress {
  background: var(--ui-success);
  height: 100%;
  transition: width 0.3s;
  width: 0;
}
.progress-text {
  font-size: 14px;
  margin-top: 5px;
  text-align: center;
}
.uploading {
  cursor: not-allowed;
  opacity: 0.7;
}
.account-admin {
  font-size: 25px;
  padding: 0;
}
.account-action-icon {
  display: block;
  fill: currentColor;
  font-size: 15px;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 26px;
}
.account-admin,
.account-owner {
  align-items: center;
  background: var(--ui-surface);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  color: var(--ui-text-muted);
  display: flex;
  font-weight: 700;
  gap: 0;
  justify-content: center;
  min-height: 50px;
  min-width: 50px;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.account-admin:hover,
.account-admin:focus-visible,
.account-owner:hover,
.account-owner:focus-visible {
  background: var(--ui-surface);
  border-color: rgba(var(--primary-color-rgb), 0.28);
  box-shadow: var(--ui-shadow-soft);
  color: var(--ui-text);
  transform: translateY(-1px);
}
.account-admin:hover .account-action-icon,
.account-admin:focus-visible .account-action-icon,
.account-owner:hover .account-action-icon,
.account-owner:focus-visible .account-action-icon {
  opacity: 1;
  transform: scale(1.03);
}
.account-owner {
  line-height: 1;
  padding: 0;
}
.save-role-btn {
  background-color: var(--ui-accent);
  border: none;
  border-radius: 25px;
  color: var(--ui-accent-contrast);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  min-height: 32px;
  margin-left: 8px;
  padding: 6px 10px;
  transition:
    background-color 0.3s,
    transform 0.2s;
}
.save-role-btn:hover {
  background-color: var(--ui-accent-hover);
  box-shadow: var(--ui-shadow-soft);
  transform: translateY(-1px);
}
.save-role-btn:active {
  transform: translateY(0);
}
.save-role-btn.loading {
  cursor: not-allowed;
  opacity: 0.7;
}
.role-select {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  color: var(--ui-text);
  min-height: 32px;
  padding: 5px 10px;
}
:is(.tab-btn, .admin-checkout-btn, .save-role-btn, .status-btn, .status-btn-r, .role-select):focus-visible {
  box-shadow: 0 0 0 3px var(--ui-focus-shadow);
  outline: 2px solid var(--ui-focus-ring);
  outline-offset: 2px;
}
body.customer_orders-page .customer-orders-section {
  padding-bottom: 36px;
}
body.customer_orders-page .customer-orders-header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
}
body.customer_orders-page .customer-orders-heading h3 {
  border-bottom: none;
  color: var(--secondary-color);
  margin: 0 0 8px;
  padding: 0;
}
body.customer_orders-page .customer-orders-subtitle {
  color: var(--ui-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 64ch;
}
body.customer_orders-page .customer-orders-switch {
  background: var(--ui-surface-muted);
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
}
body.customer_orders-page .customer-orders-switch-btn {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--ui-text-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
body.customer_orders-page .customer-orders-switch-btn.active {
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-soft);
  color: var(--secondary-color);
}
body.customer_orders-page .customer-orders-switch-count {
  align-items: center;
  background: rgba(18, 18, 18, 0.08);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  justify-content: center;
  min-width: 28px;
  padding: 4px 8px;
}
body.customer_orders-page .customer-orders-view {
  display: none;
}
body.customer_orders-page .customer-orders-view.active {
  display: block;
}
body.customer_orders-page .customer-orders-group-head {
  margin-bottom: 18px;
}
body.customer_orders-page .customer-orders-group-head h4 {
  color: var(--secondary-color);
  font-size: 22px;
  margin: 0 0 6px;
}
body.customer_orders-page .customer-orders-group-head p {
  color: var(--ui-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
body.customer_orders-page .customer-orders-list {
  display: grid;
  gap: 18px;
}
body.customer_orders-page .customer-orders-empty {
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(var(--primary-color-rgb), 0.04) 0%, rgba(var(--primary-color-rgb), 0.01) 100%), var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}
body.customer_orders-page .customer-orders-empty h4,
body.customer_orders-page .customer-orders-empty p {
  margin: 0;
}
body.customer_orders-page .customer-orders-empty p {
  color: var(--ui-text-muted);
  line-height: 1.6;
}
body.customer_orders-page .customer-orders-empty--compact {
  gap: 0;
}
body.customer_orders-page .customer-order-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 25px;
  box-shadow: var(--ui-shadow-soft);
  overflow: hidden;
}
body.customer_orders-page .customer-order-summary {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 20px;
}
body.customer_orders-page .customer-order-primary {
  flex: 1;
  min-width: 0;
}
body.customer_orders-page .customer-order-topline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
body.customer_orders-page .order-status-chip {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  min-height: 30px;
  padding: 6px 12px;
}
body.customer_orders-page .order-status-chip.is-intake {
  background: rgba(var(--primary-color-rgb), 0.10);
  color: var(--primary-color);
}
body.customer_orders-page .order-status-chip.is-cooking {
  background: rgba(255, 147, 33, 0.12);
  color: #b85f00;
}
body.customer_orders-page .order-status-chip.is-delivery {
  background: rgba(44, 131, 194, 0.12);
  color: #155a8a;
}
body.customer_orders-page .order-status-chip.is-done {
  background: rgba(76, 175, 80, 0.12);
  color: var(--agree);
}
body.customer_orders-page .order-status-chip.is-cancelled {
  background: rgba(229, 57, 53, 0.12);
  color: #c62828;
}
body.customer_orders-page .customer-order-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
body.customer_orders-page .customer-order-meta .order-date,
body.customer_orders-page .customer-order-meta .order-total {
  min-width: 0;
}
body.customer_orders-page .customer-order-delivery {
  display: grid;
  gap: 4px;
}
body.customer_orders-page .customer-order-delivery-type {
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: 700;
}
body.customer_orders-page .customer-order-delivery-detail {
  color: var(--ui-text-muted);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
body.customer_orders-page .customer-order-actions-top {
  align-items: flex-start;
  display: flex;
  flex: 0 0 auto;
}
body.customer_orders-page .customer-order-action {
  margin-top: 0;
  min-width: 150px;
  text-align: center;
}
body.customer_orders-page .customer-order-expand {
  align-items: center;
  background: rgba(18, 18, 18, 0.03);
  border: 0;
  border-top: 1px solid var(--ui-border);
  color: var(--secondary-color);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 700;
  justify-content: space-between;
  padding: 14px 20px;
  width: 100%;
}
body.customer_orders-page .customer-order-expand-text {
  font-size: 14px;
}
body.customer_orders-page .order-toggle-icon {
  color: var(--ui-text-muted);
  display: inline-flex;
  font-size: 12px;
  font-family: inherit !important;
  line-height: 1;
  min-width: 18px;
}
body.customer_orders-page .order-toggle-icon::before {
  content: "▾";
}
body.customer_orders-page .order-toggle-icon.fa-chevron-down::before {
  content: "▾";
  font-family: inherit !important;
}
body.customer_orders-page .order-toggle-icon.fa-chevron-up::before {
  content: "▴";
  font-family: inherit !important;
}
body.customer_orders-page .customer-order-details {
  background: rgba(18, 18, 18, 0.015);
  padding: 0 20px 18px;
}
body.customer_orders-page .customer-order-detail-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding-top: 14px;
}
body.customer_orders-page .customer-order-detail-label {
  color: var(--ui-text-muted);
  font-size: 13px;
  font-weight: 700;
}
body.customer_orders-page .customer-order-detail-value {
  color: var(--secondary-color);
  font-size: 14px;
  text-align: right;
}
body.customer_orders-page .customer-order-products {
  margin-top: 12px;
}
body.customer_orders-page .customer-order-items-count {
  color: var(--ui-text-muted);
}
body.customer_orders-page .order-toggle-icon {
  color: var(--ui-text-muted);
  display: inline-flex;
  min-width: 18px;
}
body.customer_orders-page .order-toggle-icon::before {
  content: none;
}
body.customer_orders-page .order-toggle-icon::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  display: inline-block;
  height: 8px;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
  width: 8px;
}
body.customer_orders-page .order-toggle-icon.fa-chevron-down::after {
  transform: rotate(45deg) translateY(-1px);
}
body.customer_orders-page .order-toggle-icon.fa-chevron-up::after {
  transform: rotate(-135deg) translateY(-1px);
}
@media (max-width: 768px) {
  body.customer_orders-page .customer-orders-header {
    gap: 14px;
  }
  body.customer_orders-page .customer-orders-switch {
    width: 100%;
  }
  body.customer_orders-page .customer-orders-switch-btn {
    flex: 1 1 0;
  }
  body.customer_orders-page .customer-order-summary {
    flex-direction: column;
    padding: 18px;
  }
  body.customer_orders-page .customer-order-actions-top,
  body.customer_orders-page .repeat-order-form,
  body.customer_orders-page .customer-order-action {
    width: 100%;
  }
  body.customer_orders-page .customer-order-action {
    min-width: 0;
  }
  body.customer_orders-page .customer-order-detail-line {
    align-items: flex-start;
    flex-direction: column;
  }
  body.customer_orders-page .customer-order-detail-value {
    text-align: left;
  }
}

/* Audit 2026-05-03 (M5): standalone surfaces без account-header.php
   тоже должны компенсировать высоту fixed-хедера, чтобы hero-заголовок
   не обрезался. account.php / owner.php получают это через #menu. */
body.reservation-page,
body.group-page,
body.signup-page {
  padding-top: 96px;
}
