/**
 * shared-industry-back-home-button-foundation-001
 * Compact page-level Back to Home. Shared by Restaurant / Services / future sectors.
 * Not the industry tool-nav group (Attendance & payroll).
 */
[data-industry-workbench] a.industry-back-home {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid #165536;
  border-radius: 8px;
  background: #fff;
  color: #165536;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

[data-industry-workbench] a.industry-back-home:hover,
[data-industry-workbench] a.industry-back-home:focus-visible {
  background: #edf5f1;
  color: #0f3f28;
  border-color: #0f3f28;
  outline: none;
}

[data-industry-workbench] a.industry-back-home:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, #165536 22%, transparent);
}

[data-industry-workbench] .industry-back-home__arrow {
  flex: 0 0 auto;
  font-size: 1em;
  line-height: 1;
  transform: translateY(-0.5px);
}

@media (max-width: 305px) {
  [data-industry-workbench] a.industry-back-home {
    min-height: 40px;
  }
}

/**
 * services-align-restaurant-industry-shell-auth-and-back-link-001
 *
 * Services reuses Restaurant chrome class names. Values copy Restaurant
 * production rules; Restaurant selectors in restaurantWorkbench.css stay
 * the visual source of truth and are not rewritten.
 */
#service-root[data-service-workbench="true"] {
  min-height: 100vh;
}

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

#service-root .restaurant-topbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rsc-line);
  background: var(--rsc-surface);
}

#service-root .restaurant-topbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#service-root .restaurant-topbar-row--brand {
  justify-content: flex-start;
  gap: 10px;
}

#service-root .restaurant-brand {
  font-weight: 700;
  font-size: 1.05rem;
}

#service-root a.restaurant-back-general {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 6px 8px;
  min-height: 32px;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #165536;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#service-root a.restaurant-back-general:hover,
#service-root a.restaurant-back-general:focus-visible {
  color: #0f3f28;
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

#service-root .restaurant-back-general-arrow {
  flex: 0 0 auto;
  font-size: 1em;
  line-height: 1;
  transform: translateY(-0.5px);
}

#service-root .restaurant-workspace-hero {
  box-sizing: border-box;
  margin: 8px 16px 0;
  padding: 8px 12px 9px;
  background: var(--rsc-identity);
  border: 1px solid var(--rsc-line);
  border-radius: 10px;
  min-height: 0;
  max-width: 100%;
  width: auto;
}

#service-root .restaurant-workspace-hero-inner,
#service-root .restaurant-workspace-hero-main {
  min-width: 0;
  width: 100%;
}

#service-root .restaurant-workspace-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--rsc-muted);
}

#service-root .restaurant-workspace-breadcrumb-sep {
  color: #8a968e;
}

#service-root .restaurant-breadcrumb-home {
  appearance: none;
  border: 0;
  background: transparent;
  color: #0b5cab;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font: inherit;
}

#service-root .restaurant-workspace-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

#service-root .restaurant-workspace-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #165536;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#service-root .restaurant-workspace-icon-img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

#service-root .restaurant-workspace-titles {
  min-width: 0;
  flex: 1 1 auto;
}

#service-root .restaurant-workspace-titles h1 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--rsc-ink);
  overflow-wrap: break-word;
}

#service-root .restaurant-workspace-subtitle {
  margin: 3px 0 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--rsc-muted);
  overflow-wrap: break-word;
}

#service-root .restaurant-panel {
  margin: 8px 16px;
  padding: 12px;
  background: var(--rsc-surface);
  border: 1px solid var(--rsc-line);
  border-radius: 10px;
}

#service-root .restaurant-panel.restaurant-panel--calculator {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 0;
  padding-bottom: 0;
}

#service-root .restaurant-calculator-host {
  margin: 0 0 16px;
}

@media (min-width: 901px) {
  #service-root .restaurant-topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  #service-root .restaurant-workspace-hero {
    padding: 10px 14px;
  }

  #service-root .restaurant-workspace-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  #service-root .restaurant-workspace-titles h1 {
    font-size: 1.25rem;
  }
}

@media (max-width: 900px) {
  #service-root .restaurant-topbar {
    gap: 8px;
    padding: 8px max(8px, env(safe-area-inset-left)) 10px max(8px, env(safe-area-inset-right));
  }

  #service-root .restaurant-workspace-hero {
    margin-left: max(8px, env(safe-area-inset-left));
    margin-right: max(8px, env(safe-area-inset-right));
  }

  #service-root .restaurant-workspace-hero {
    margin-top: 6px;
    padding: 8px 10px 10px;
  }

  #service-root .restaurant-workspace-icon {
    width: 36px;
    height: 36px;
  }

  #service-root .restaurant-workspace-subtitle {
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  #service-root .restaurant-panel.restaurant-panel--calculator {
    margin: 4px max(8px, env(safe-area-inset-left)) 6px max(8px, env(safe-area-inset-right));
    padding-left: 0;
    padding-right: 0;
  }
}
