:root {
  --bg: #eef3f7;
  --surface: #ffffff;
  --surface-soft: #f6f9fb;
  --ink: #202020;
  --muted: #596672;
  --line: #c8d2da;
  --forest: #104060;
  --forest-2: #155879;
  --amber: #d9952f;
  --red: #b45145;
  --blue: #2e6f95;
  --green: #4f8f6a;
  --shadow: 0 18px 50px rgba(16, 64, 96, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.app-root {
  overflow-x: clip;
}

p,
li,
dd,
figcaption,
.form-error,
.form-success,
.account-directory-state,
.detail-list strong,
.detail-list span,
.activity-copy strong,
.activity-copy span {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
label,
button,
input,
select,
textarea {
  min-width: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

button,
.primary-button,
.secondary-button,
.text-button,
.launch-link,
.icon-button {
  max-width: 100%;
}

button,
.primary-button,
.secondary-button,
.text-button,
.launch-link {
  white-space: normal;
}

.button-icon,
button svg,
.primary-button svg,
.secondary-button svg,
.text-button svg,
.icon-button svg {
  flex: 0 0 auto;
}

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

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(16, 64, 96, 0.1), rgba(217, 149, 47, 0.06) 34rem, transparent 52rem),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button:not(:disabled),
[role="button"]:not([aria-disabled="true"]) {
  cursor: pointer;
}

button:not(:disabled) {
  transition:
    filter 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

button:not(:disabled):hover {
  filter: brightness(0.94) saturate(0.88);
}

button:disabled,
[role="button"][aria-disabled="true"] {
  cursor: not-allowed;
}

button:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(48, 109, 137, 0.34);
  outline-offset: 2px;
}

.location-layout-shape:hover {
  filter: none;
}

input,
select,
textarea {
  min-width: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.app-root {
  min-height: 100vh;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(20rem, 0.92fr) minmax(22rem, 1.08fr);
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  color: #f7fbff;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 18px
    ),
    linear-gradient(145deg, #0b2438 0%, #104060 52%, #155879 74%, #d9952f 100%);
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-home-link {
  width: fit-content;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.brand-home-link:hover .brand-title,
.brand-home-link:focus-visible .brand-title {
  color: #fff8e9;
}

.brand-home-link:focus-visible {
  outline: 3px solid rgba(217, 149, 47, 0.38);
  outline-offset: 4px;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-kicker {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-title {
  display: block;
  color: #f7fbff;
  font-size: 1.05rem;
  font-weight: 800;
}

.login-feature {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.login-feature h1 {
  max-width: 12ch;
  margin: 0 0 1rem;
  color: #fff8e9;
  font-size: clamp(2.75rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.login-feature p {
  max-width: 26rem;
  margin: 0;
  color: rgba(247, 251, 255, 0.82);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-weight: 750;
  line-height: 1.6;
}

.login-brand-hero-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(18rem, 72%);
  height: auto;
  margin-top: clamp(2rem, 6vw, 4.5rem);
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.24));
}

.login-form-area {
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 4rem);
}

.login-panel {
  width: min(100%, 28rem);
  padding: clamp(1.35rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.form-heading {
  margin-bottom: 1.6rem;
}

.form-heading span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form-heading h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  line-height: 1.12;
}

.field-group {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field-group label {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border: 1px solid #c8d2da;
  border-radius: 8px;
  padding: 0.9rem 0.95rem;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 4px rgba(21, 88, 121, 0.14);
}

.form-error {
  margin: 0 0 1rem;
  border: 1px solid rgba(180, 81, 69, 0.28);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  color: #79372e;
  background: #fff3ef;
  font-size: 0.92rem;
  font-weight: 700;
}

.primary-button,
.secondary-button,
.text-button,
.launch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.18;
  text-align: center;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.primary-button {
  width: 100%;
  border: 0;
  padding: 0.9rem 1rem;
  color: #f7fbff;
  background: var(--forest);
  box-shadow: 0 12px 24px rgba(16, 64, 96, 0.18);
}

.primary-button:hover,
.launch-link:hover,
.secondary-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  background: var(--forest-2);
  box-shadow: 0 14px 28px rgba(16, 64, 96, 0.24);
}

.primary-button:disabled,
.secondary-button:disabled {
  color: #7b8790;
  border-color: rgba(120, 134, 146, 0.26);
  background: #eef2f4;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.primary-button:disabled:hover,
.secondary-button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.text-button:focus-visible,
.launch-link:focus-visible {
  outline: 3px solid rgba(48, 109, 137, 0.35);
  outline-offset: 2px;
}

.button-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(200, 210, 218, 0.86);
  padding: 1.4rem;
  color: #f7fbff;
  background: linear-gradient(180deg, #0b2438 0%, #104060 58%, #0f3048 100%);
}

.sidebar .brand-mark {
  width: 2.65rem;
  height: 2.65rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.45rem;
  margin-top: 2rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.85rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 0.8rem;
  color: rgba(247, 251, 255, 0.76);
  font-weight: 800;
}

.sidebar-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-link.is-active,
.sidebar-link:hover {
  color: #f7fbff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 3px 0 0 var(--amber);
}

.sidebar-link svg {
  width: 1.15rem;
  height: 1.15rem;
}

.sidebar-status {
  display: grid;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0.85rem;
  color: rgba(247, 251, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.sidebar-status strong {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #f7fbff;
}

.sidebar-status small {
  color: rgba(247, 251, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 750;
}

.backend-status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(217, 149, 47, 0.16);
}

.backend-status.is-connected .backend-status-dot {
  background: #79b878;
  box-shadow: 0 0 0 3px rgba(121, 184, 120, 0.16);
}

.backend-status.is-unavailable .backend-status-dot {
  background: #d96a5f;
  box-shadow: 0 0 0 3px rgba(217, 106, 95, 0.18);
}

.main-panel {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(200, 210, 218, 0.86);
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: rgba(246, 249, 251, 0.92);
  backdrop-filter: blur(16px);
}

.topbar > * {
  min-width: 0;
}

.mobile-brand {
  display: none;
  color: var(--forest);
}

.topbar-copy {
  min-width: 0;
}

.topbar-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar-copy strong {
  display: block;
  overflow: hidden;
  margin-top: 0.1rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.55rem;
  max-width: 21rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(16, 64, 96, 0.07);
  white-space: nowrap;
}

.weather-status svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  color: var(--blue);
}

.weather-status.is-muted {
  color: var(--muted);
  box-shadow: none;
}

.weather-temp {
  font-size: 1rem;
  line-height: 1;
}

.weather-detail,
.weather-place {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
}

.weather-place {
  max-width: 5.5rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.user-menu {
  position: relative;
  margin-left: auto;
}

.user-menu summary {
  list-style: none;
}

.user-menu summary::-webkit-details-marker {
  display: none;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.6rem 0.35rem 0.45rem;
  color: var(--ink);
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.user-menu-trigger span,
.user-menu-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-trigger:focus-visible {
  outline: 3px solid rgba(48, 109, 137, 0.35);
  outline-offset: 2px;
}

.user-menu[open] .user-menu-trigger {
  border-color: rgba(21, 88, 121, 0.34);
  box-shadow: 0 10px 24px rgba(16, 64, 96, 0.1);
}

.user-avatar {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  color: #f7fbff;
  background: var(--forest);
}

.user-avatar svg {
  width: 1.05rem;
  height: 1.05rem;
}

img.user-avatar {
  object-fit: cover;
}

.user-greeting {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 13rem;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.65rem;
  border: 0;
  border-radius: 6px;
  padding: 0 0.75rem;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
  background: rgba(16, 64, 96, 0.08);
  outline: none;
}

.user-menu-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--forest-2);
}

.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  justify-items: end;
  background: rgba(16, 64, 96, 0.38);
  backdrop-filter: blur(6px);
}

.profile-panel {
  width: min(100%, 34rem);
  max-height: 100vh;
  min-height: 100vh;
  overflow-y: auto;
  padding: clamp(1rem, 3vw, 1.35rem);
  background: var(--surface);
  box-shadow: -18px 0 50px rgba(16, 64, 96, 0.2);
}

.profile-inline {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 1.35rem);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(16, 64, 96, 0.06);
}

.profile-panel form,
.profile-inline form {
  display: grid;
  gap: 1rem;
}

.profile-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.profile-panel-header h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.1;
}

.profile-close {
  min-height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0.8rem;
  color: var(--ink);
  background: var(--surface-soft);
  font-weight: 800;
  cursor: pointer;
}

.profile-close:focus-visible {
  outline: 3px solid rgba(48, 109, 137, 0.35);
  outline-offset: 2px;
}

.profile-picture-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.profile-picture-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  background: var(--surface-soft);
  cursor: pointer;
}

.profile-picture-control:hover,
.profile-picture-control:focus-within {
  border-color: rgba(21, 88, 121, 0.34);
  box-shadow: inset 0 0 0 1px rgba(21, 88, 121, 0.12);
}

.profile-picture-preview {
  display: grid;
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #f7fbff;
  background: var(--forest);
}

.profile-picture-preview svg {
  width: 1.45rem;
  height: 1.45rem;
}

img.profile-picture-preview {
  object-fit: cover;
}

.profile-picture-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.profile-picture-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-picture-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-picture-reset {
  flex: 0 0 auto;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.profile-form-grid .field-group {
  margin-bottom: 0;
}

.profile-privilege-field {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  background: var(--surface-soft);
}

.profile-privilege-field legend {
  padding: 0 0.25rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.profile-app-privileges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.profile-checkbox {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.55rem;
  border: 1px solid rgba(200, 210, 218, 0.82);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}

.profile-checkbox span {
  overflow-wrap: anywhere;
}

.profile-checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--forest);
}

.profile-checkbox.is-disabled {
  color: var(--muted);
  background: rgba(236, 232, 222, 0.68);
}

.profile-superuser-checkbox {
  max-width: 14rem;
}

.profile-password-field {
  grid-column: 1 / -1;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.profile-actions .primary-button {
  width: auto;
  min-width: 9rem;
  padding-inline: 1rem;
}

.mfa-login-copy > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.mfa-trusted-device-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  margin-top: 0.8rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.mfa-trusted-device-option input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.login-back-button {
  width: 100%;
  margin-bottom: 0.65rem;
}

.mfa-security-card {
  display: grid;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  background: var(--surface-soft);
}

.mfa-security-heading,
.mfa-security-summary,
.mfa-security-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mfa-security-heading > div {
  display: grid;
  gap: 0.15rem;
}

.mfa-security-heading strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.mfa-security-heading span,
.mfa-security-summary > span,
.mfa-security-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.mfa-status-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem !important;
  font-weight: 850 !important;
  white-space: nowrap;
}

.mfa-status-pill.is-enabled {
  border-color: rgba(79, 143, 106, 0.34);
  color: #285e3d;
  background: #eaf6ee;
}

.mfa-status-pill.is-disabled {
  background: var(--surface);
}

.mfa-security-editor {
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.mfa-security-editor .field-group,
.mfa-security-note {
  margin: 0;
}

.mfa-security-actions {
  justify-content: flex-end;
}

.mfa-security-actions .primary-button,
.mfa-security-actions .secondary-button {
  width: auto;
  min-width: 6.5rem;
}

.mfa-security-actions .is-danger {
  border-color: rgba(180, 81, 69, 0.42);
  color: #79372e;
  background: #fff3ef;
}

.mfa-setup-editor {
  justify-items: center;
}

.mfa-setup-editor > .field-group,
.mfa-setup-editor > .mfa-security-actions,
.mfa-setup-editor > .mfa-security-note,
.mfa-manual-key {
  width: 100%;
}

.mfa-qr-code {
  width: 11rem;
  height: 11rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem;
  background: #ffffff;
}

.mfa-manual-key {
  display: grid;
  gap: 0.25rem;
}

.mfa-manual-key span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.mfa-manual-key code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.mfa-recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.mfa-recovery-codes code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 520px) {
  .mfa-security-heading,
  .mfa-security-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .mfa-security-summary .secondary-button {
    width: 100%;
  }

  .mfa-recovery-codes {
    grid-template-columns: 1fr;
  }
}

.user-chip {
  max-width: 12rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-card,
.applications-section,
.dashboard-app-card,
.account-directory-card,
.account-detail-card,
.flightdeck-detail-card,
.flightdeck-tabs-card,
.menu-list-card,
.menu-detail-card,
.inventory-card,
.appliance-detail-card {
  overflow-wrap: anywhere;
}

.text-button {
  border: 1px solid var(--line);
  padding: 0 0.85rem;
  color: var(--ink);
  background: var(--surface);
}

.content {
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--forest-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workspace-title h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.workspace-title p {
  max-width: 48rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.workspace-description-row {
  max-width: 52rem;
}

.workspace-description-row p {
  min-width: 0;
}

.workspace-description-edit {
  width: 2rem;
  height: 2rem;
  color: var(--muted);
  background: transparent;
}

.workspace-description-edit:hover,
.workspace-description-edit:focus-visible {
  color: var(--forest);
  background: #e8f2f8;
}

.workspace-description-editor {
  display: grid;
  gap: 0.55rem;
  max-width: 52rem;
  margin-top: 0.8rem;
}

.workspace-description-editor textarea {
  width: 100%;
  min-height: 5.25rem;
  border: 1px solid #c8d2da;
  border-radius: 8px;
  padding: 0.72rem 0.8rem;
  color: var(--ink);
  background: #fffdf8;
  resize: vertical;
}

.workspace-description-editor textarea:focus {
  border-color: var(--forest-2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(21, 88, 121, 0.12);
}

.workspace-description-editor .form-error {
  margin: 0;
}

.workspace-description-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

.workspace-description-actions .primary-button,
.workspace-description-actions .secondary-button {
  width: 5.9rem;
  min-width: 5.9rem;
  padding-inline: 0.75rem;
}

.dashboard-app-card,
.workspace-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(16, 64, 96, 0.06);
}

.applications-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200, 210, 218, 0.86);
  border-radius: 8px;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 251, 0.78)),
    var(--surface);
  box-shadow: 0 14px 36px rgba(16, 64, 96, 0.07);
}

.applications-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--forest-2), var(--amber));
}

.applications-section + .applications-section {
  margin-top: 1rem;
}

.applications-section-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding-left: 0.15rem;
}

.applications-section-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  min-width: 0;
}

.applications-section-header h2::before {
  content: "";
  display: block;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(217, 149, 47, 0.14);
}

.dashboard-date-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
  margin-left: auto;
}

.dashboard-updated-at {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.dashboard-date-controls label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.dashboard-date-controls input {
  width: 9.25rem;
  min-height: 2.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0.55rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
}

.dashboard-date-today {
  min-height: 2.15rem;
  padding: 0 0.72rem;
  font-size: 0.78rem;
}

.dashboard-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-app-card {
  position: relative;
  display: grid;
  gap: 0.85rem;
  overflow: hidden;
  padding: 0.95rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 251, 0.92)),
    var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
}

.dashboard-app-card:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  box-shadow: 0 16px 36px rgba(16, 64, 96, 0.1);
  transform: translateY(-1px);
}

.dashboard-app-card-head {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
}

.dashboard-app-card-head > * {
  min-width: 0;
}

.dashboard-app-icon {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 8px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, #ffffff);
}

.dashboard-app-icon svg {
  width: 1.12rem;
  height: 1.12rem;
}

.dashboard-app-card h3 {
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1.22;
}

.dashboard-location-title {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.dashboard-location-title h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-location-title span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-app-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.dashboard-app-metrics div {
  min-width: 0;
  border: 1px solid rgba(200, 210, 218, 0.72);
  border-radius: 8px;
  padding: 0.58rem 0.62rem;
  background: rgba(255, 255, 255, 0.74);
}

.dashboard-app-metrics dt {
  margin: 0 0 0.24rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.18;
}

.dashboard-app-metrics dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.18;
}

.dashboard-location-wide-metric {
  grid-column: 1 / -1;
}

.dashboard-location-wide-metric dd {
  overflow-wrap: anywhere;
}

.dashboard-location-feature-metric {
  min-height: 4.55rem;
}

.dashboard-location-feature-metric dd {
  overflow-wrap: anywhere;
}

.dashboard-location-trend dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.dashboard-trend-value {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-trend-chart {
  display: grid;
  width: 4.5rem;
  min-width: 4.5rem;
  height: 1.95rem;
  place-items: center;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.08);
}

.dashboard-trend-chart svg {
  width: 3.9rem;
  height: 1.62rem;
  overflow: visible;
}

.dashboard-trend-chart polyline {
  fill: none;
  stroke: #0f766e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.dashboard-location-trend.is-down .dashboard-trend-value {
  color: #dc2626;
}

.dashboard-location-trend.is-down .dashboard-trend-chart {
  background: rgba(220, 38, 38, 0.08);
}

.dashboard-location-trend.is-down .dashboard-trend-chart polyline {
  stroke: #dc2626;
}

.dashboard-location-trend.is-up .dashboard-trend-value {
  color: #0f766e;
}

.dashboard-location-trend.is-flat .dashboard-trend-value {
  color: #64748b;
}

.dashboard-location-trend.is-flat .dashboard-trend-chart {
  background: rgba(100, 116, 139, 0.1);
}

.dashboard-location-trend.is-flat .dashboard-trend-chart polyline {
  stroke: #64748b;
}

.applications-empty-state {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 750;
}

.launch-app-list {
  display: grid;
  gap: 0.55rem;
}

.launch-app-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(200, 210, 218, 0.84);
  border-radius: 8px;
  padding: 0.68rem 0.72rem;
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 42%),
    rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.launch-app-row:hover,
.launch-app-row:focus-within {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 11%, transparent), transparent 48%),
    #ffffff;
  box-shadow: 0 12px 28px rgba(16, 64, 96, 0.08);
  transform: translateY(-1px);
}

.launch-app-row-main {
  display: grid;
  grid-template-columns: 2.55rem minmax(0, 1fr) auto;
  gap: 0.72rem;
  align-items: center;
  min-width: 0;
}

.launch-app-icon {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 8px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
}

.launch-app-icon svg {
  width: 1.16rem;
  height: 1.16rem;
}

.launch-app-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.launch-app-copy strong,
.launch-app-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-app-row .status-pill,
.launch-app-row .health-dot {
  justify-self: end;
}

.launch-app-copy strong {
  font-size: 0.98rem;
}

.launch-app-copy span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.launch-app-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: 0;
}

.launch-app-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-width: 5.2rem;
  height: 2.25rem;
  border: 1px solid rgba(16, 64, 96, 0.16);
  border-radius: 8px;
  color: #ffffff;
  background: var(--forest);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(16, 64, 96, 0.16);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.launch-app-action:hover,
.launch-app-action:focus-visible {
  background: var(--forest-2);
  box-shadow: 0 10px 22px rgba(16, 64, 96, 0.2);
  outline: none;
  transform: translateY(-1px);
}

.launch-app-action svg {
  width: 0.95rem;
  height: 0.95rem;
}

.launch-app-order-controls {
  display: grid;
  grid-template-columns: repeat(2, 2rem);
  justify-content: center;
  gap: 0.28rem;
  width: auto;
  padding: 0.2rem;
  border: 1px solid rgba(200, 210, 218, 0.68);
  border-radius: 8px;
  background: rgba(246, 249, 251, 0.92);
  white-space: nowrap;
}

.launch-app-order-button {
  width: 2rem;
  height: 2rem;
  color: var(--muted);
  background: transparent;
}

.launch-app-order-button:hover:not(:disabled),
.launch-app-order-button:focus-visible {
  color: var(--forest);
  background: #e8f2f8;
}

.launch-app-order-button:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.application-order-state {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.application-order-state.is-saved {
  color: var(--green);
}

.workspace-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 1.4rem);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(16, 64, 96, 0.07);
}

.workspace-hero.has-hero-actions {
  padding-right: max(clamp(1rem, 3vw, 1.4rem), 5rem);
}

.workspace-hero-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.workspace-icon {
  display: grid;
  width: 4.75rem;
  height: 4.75rem;
  place-items: center;
  border-radius: 8px;
  color: var(--accent);
  background: rgba(16, 64, 96, 0.07);
}

.workspace-icon svg {
  width: 2.15rem;
  height: 2.15rem;
}

.workspace-title {
  min-width: 0;
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.secondary-button {
  border: 1px solid var(--line);
  padding: 0 0.85rem;
  color: var(--ink);
  background: var(--surface-soft);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: 1rem;
}

.accounts-workspace-grid {
  grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr);
  align-items: start;
}

.flightdeck-workspace-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.workspace-card {
  padding: 1rem;
}

.workspace-card h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}

.account-directory-card,
.account-detail-card {
  min-width: 0;
  overflow: hidden;
}

.account-directory-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.account-directory-header {
  display: grid;
  gap: 0.75rem;
}

.account-directory-header,
.flightdeck-panel-header > div,
.menu-list-header,
.menu-detail-header,
.appliance-summary-header,
.integrations-summary-header {
  min-width: 0;
}

.account-directory-header {
  flex-wrap: wrap;
}

.account-directory-header h2 {
  margin: 0;
}

.account-directory-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  min-width: 0;
}

.account-directory-title h2,
.account-directory-title .account-count {
  min-width: 0;
}

.account-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.45rem;
  gap: 0.45rem;
  align-items: center;
}

.account-search-form input {
  width: 100%;
  height: 2.45rem;
  border: 1px solid #c8d2da;
  border-radius: 8px;
  padding: 0 0.75rem;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.account-search-form input:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 4px rgba(21, 88, 121, 0.14);
}

.account-clear-button {
  width: 2.45rem;
  height: 2.45rem;
  color: var(--muted);
  background: var(--surface-soft);
}

.account-clear-button:hover:not(:disabled),
.account-clear-button:focus-visible {
  color: var(--forest);
  background: #e8f2f8;
}

.account-clear-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.account-count {
  flex: 0 1 auto;
  max-width: 100%;
  border: 1px solid rgba(16, 64, 96, 0.18);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  color: var(--forest);
  background: #e8f2f8;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.account-directory-body {
  min-width: 0;
}

.account-list {
  display: grid;
  gap: 0.5rem;
  max-height: clamp(26rem, calc(100vh - 22rem), 48rem);
  overflow: auto;
  overscroll-behavior: contain;
}

.account-list-row {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  gap: 0.55rem 0.75rem;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.65rem;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.account-list-row:nth-child(even) {
  background: #f8faf7;
}

.account-list-row:hover:not(:disabled) {
  background: #fff8eb;
}

.account-list-row.is-selected {
  border-color: rgba(217, 149, 47, 0.52);
  background: #fff6e7;
  box-shadow: inset 3px 0 0 var(--amber);
}

.account-list-row:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.account-create-row {
  border-color: rgba(16, 64, 96, 0.14);
  background: #f1f7f4;
}

.account-create-row:hover:not(:disabled) {
  border-color: rgba(21, 88, 121, 0.32);
  background: #e8f2f8;
}

.account-list-avatar {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #f7fbff;
  background: var(--forest);
}

.account-list-avatar svg {
  width: 1.1rem;
  height: 1.1rem;
}

img.account-list-avatar {
  object-fit: cover;
}

.account-create-avatar {
  color: var(--forest);
  background: #dfeee9;
}

.account-list-main {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.account-list-main strong,
.account-list-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-list-main strong {
  font-size: 0.96rem;
}

.account-list-main span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.account-privilege-badges {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.account-privilege-badge {
  border: 1px solid rgba(16, 64, 96, 0.16);
  border-radius: 8px;
  padding: 0.22rem 0.42rem;
  color: var(--forest);
  background: #e8f2f8;
  font-size: 0.7rem;
  font-weight: 850;
}

.account-privilege-badge.is-muted {
  color: var(--muted);
  background: var(--surface-soft);
}

.account-list-action {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
  white-space: normal;
}

.account-detail-card {
  padding: 1rem;
}

.account-detail-card .profile-inline {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.account-detail-empty {
  display: grid;
  place-items: center;
  min-height: 24rem;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.account-detail-empty h2,
.account-detail-empty p {
  margin: 0;
}

.account-detail-empty h2 {
  color: var(--ink);
  font-size: 1.15rem;
}

.account-detail-empty p {
  max-width: 24rem;
  font-weight: 750;
}

.account-detail-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(16, 64, 96, 0.18);
  border-radius: 8px;
  color: var(--forest);
  background: #e8f2f8;
}

.account-detail-empty-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}


.flightdeck-admin-workspace {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.flightdeck-admin-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  width: min(100%, 24rem);
  border: 1px solid rgba(200, 210, 218, 0.86);
  border-radius: 8px;
  padding: 0.35rem;
  background: #f7fbfa;
}

.flightdeck-admin-tab {
  min-height: 2.45rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.flightdeck-admin-tab:hover,
.flightdeck-admin-tab:focus-visible {
  color: var(--forest);
  background: #e8f2f8;
}

.flightdeck-admin-tab.is-active {
  border-color: rgba(217, 149, 47, 0.44);
  color: var(--ink);
  background: #fff6e7;
  box-shadow: inset 0 0 0 1px rgba(217, 149, 47, 0.12);
}

.flightdeck-config-workspace {
  display: grid;
  grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  min-width: 0;
}

.flightdeck-config-list-card,
.flightdeck-config-detail-card {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.flightdeck-config-header {
  display: grid;
  gap: 0.8rem;
}

.flightdeck-config-header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  min-width: 0;
}

.flightdeck-config-header h2 {
  margin: 0;
}

.flightdeck-config-location {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.flightdeck-config-location > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flightdeck-config-location select {
  width: 100%;
  min-height: 2.45rem;
  border: 1px solid #c8d2da;
  border-radius: 8px;
  padding: 0 0.75rem;
  color: var(--ink);
  background: var(--surface);
  font-weight: 850;
}

.flightdeck-config-create-row {
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
}

.flightdeck-config-point-list {
  display: grid;
  gap: 0.5rem;
}

.flightdeck-config-point-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem 0.8rem;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.72rem;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.flightdeck-config-point-row:nth-child(even) {
  background: #f8faf7;
}

.flightdeck-config-point-row:hover,
.flightdeck-config-point-row:focus-visible {
  background: #fff8eb;
}

.flightdeck-config-point-row.is-selected {
  border-color: rgba(217, 149, 47, 0.52);
  background: #fff6e7;
  box-shadow: inset 3px 0 0 var(--amber);
}

.flightdeck-config-setting-list {
  display: grid;
  gap: 0.5rem;
}

.flightdeck-config-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem 0.8rem;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.72rem;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.flightdeck-config-setting-row:nth-child(even) {
  background: #f8faf7;
}

.flightdeck-config-setting-row:hover,
.flightdeck-config-setting-row:focus-visible {
  background: #fff8eb;
}

.flightdeck-config-setting-row.is-selected {
  border-color: rgba(217, 149, 47, 0.52);
  background: #fff6e7;
  box-shadow: inset 3px 0 0 var(--amber);
}

.flightdeck-config-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-width: 0;
}

.flightdeck-config-detail-heading h2,
.flightdeck-config-detail-heading p,
.flightdeck-config-detail-heading span {
  margin: 0;
}

.flightdeck-config-detail-heading > div {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.flightdeck-config-detail-heading > div > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.flightdeck-config-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  border: 1px solid rgba(200, 210, 218, 0.72);
  border-radius: 8px;
  padding: 0.75rem;
  background: #f7fbfa;
}

.flightdeck-config-pickup-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  min-width: 0;
}

.flightdeck-config-subpanel {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.flightdeck-config-subpanel h3 {
  margin: 0;
  color: var(--forest-2);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flightdeck-config-form {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.flightdeck-config-form textarea {
  max-width: 100%;
  min-width: 0;
  resize: vertical;
}

.flightdeck-config-field-grid {
  align-items: start;
}


.flightdeck-config-ticket-preview {
  display: grid;
  gap: 0.28rem;
  width: min(100%, 22rem);
  border: 1px solid rgba(16, 64, 96, 0.18);
  border-radius: 8px;
  padding: 0.9rem;
  color: var(--ink);
  background: #fffdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.flightdeck-config-ticket-preview strong {
  border-bottom: 1px dashed rgba(16, 64, 96, 0.2);
  padding-bottom: 0.35rem;
  text-transform: uppercase;
}

.flightdeck-config-ticket-preview span {
  color: #3d4a4d;
  font-size: 0.84rem;
  font-weight: 800;
}

.flightdeck-printing-form {
  max-width: 36rem;
}

.flightdeck-printing-brand-section {
  border-top: 0;
  padding-top: 0;
}

.flightdeck-printing-header-field {
  max-width: 28rem;
}

.flightdeck-printing-preview {
  width: min(100%, 24rem);
  box-shadow: 0 10px 24px rgba(16, 64, 96, 0.08);
}

.flightdeck-printing-actions {
  justify-content: flex-start;
}

.flightdeck-printing-state {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.flightdeck-printing-state.is-dirty,
.flightdeck-printing-state.is-saving {
  color: #8a5a00;
}

.flightdeck-printing-state.is-saved {
  color: #17643b;
}

.flightdeck-printing-state.is-error {
  color: #7d211f;
}

.flightdeck-config-point-main {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.flightdeck-config-point-main strong,
.flightdeck-config-point-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-config-point-main strong {
  font-size: 0.96rem;
}

.flightdeck-config-point-main span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.flightdeck-config-badges {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.32rem;
  min-width: 0;
}

.flightdeck-config-editor,
.flightdeck-config-summary {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.flightdeck-config-editor-section {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  border-top: 1px solid rgba(200, 210, 218, 0.72);
  padding-top: 0.9rem;
}

.flightdeck-config-editor-section h3 {
  margin: 0;
  color: var(--forest-2);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}


.flightdeck-notification-form {
  gap: 0.85rem;
  max-width: 40rem;
}

.flightdeck-notification-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  width: min(100%, 18rem);
  border: 1px solid rgba(200, 210, 218, 0.86);
  border-radius: 8px;
  padding: 0.35rem;
  background: #f7fbfa;
}

.flightdeck-notification-tab {
  min-height: 2.25rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 0.6rem;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.flightdeck-notification-tab:hover,
.flightdeck-notification-tab:focus-visible {
  color: var(--forest);
  background: #e8f2f8;
}

.flightdeck-notification-tab.is-active {
  border-color: rgba(217, 149, 47, 0.44);
  color: var(--ink);
  background: #fff6e7;
  box-shadow: inset 0 0 0 1px rgba(217, 149, 47, 0.12);
}

.flightdeck-notification-pane,
.flightdeck-notification-service-list,
.flightdeck-notification-template-list {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.flightdeck-notification-pane-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.flightdeck-notification-pane-title h4,
.flightdeck-notification-pane-title span {
  margin: 0;
}

.flightdeck-notification-pane-title h4 {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
}

.flightdeck-notification-pane-title span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
}

.flightdeck-notification-service-card,
.flightdeck-notification-template-card {
  display: grid;
  gap: 0.72rem;
  min-width: 0;
  border: 1px solid rgba(16, 64, 96, 0.14);
  border-radius: 8px;
  padding: 0.88rem;
  background: #fbfdfb;
}

.flightdeck-notification-service-card.is-email {
  background: linear-gradient(135deg, rgba(232, 242, 248, 0.92), rgba(251, 253, 251, 0.96));
}

.flightdeck-notification-service-card.is-sms {
  background: linear-gradient(135deg, rgba(255, 248, 235, 0.9), rgba(251, 253, 251, 0.96));
}

.flightdeck-notification-service-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
}

.flightdeck-notification-service-icon {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--forest-2);
  box-shadow: 0 10px 22px rgba(24, 56, 72, 0.12);
}

.flightdeck-notification-service-card.is-sms .flightdeck-notification-service-icon {
  background: var(--amber);
}

.flightdeck-notification-service-icon .button-icon {
  width: 1.18rem;
  height: 1.18rem;
}

.flightdeck-notification-service-header h4,
.flightdeck-notification-service-header span,
.flightdeck-notification-template-card h4 {
  margin: 0;
}

.flightdeck-notification-service-header h4,
.flightdeck-notification-template-card h4 {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-notification-service-header > div > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-notification-service-summary {
  margin: -0.1rem 0 0 3.15rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.flightdeck-notification-service-action {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.35rem;
  min-height: 2rem;
  border-radius: 8px;
  padding: 0.28rem 0.52rem;
  color: var(--forest-2);
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
}

.flightdeck-notification-service-action:hover,
.flightdeck-notification-service-action:focus-visible {
  color: var(--forest);
  background: rgba(232, 242, 248, 0.86);
}

.flightdeck-notification-service-action svg {
  width: 0.92rem;
  height: 0.92rem;
}

.flightdeck-notification-template-card textarea {
  min-height: 5.25rem;
}

.flightdeck-notification-inline-preview {
  display: grid;
  gap: 0.24rem;
  min-width: 0;
  border: 1px solid rgba(217, 149, 47, 0.2);
  border-radius: 8px;
  padding: 0.68rem 0.72rem;
  background: #fffdf8;
}

.flightdeck-notification-inline-preview span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flightdeck-notification-inline-preview p {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.flightdeck-notification-template-actions {
  align-items: center;
}

.flightdeck-notification-template-state {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.flightdeck-notification-template-state.is-dirty,
.flightdeck-notification-template-state.is-saving {
  color: #7d4f11;
}

.flightdeck-notification-template-state.is-saved {
  color: var(--green);
}

.flightdeck-notification-template-state.is-error {
  color: #7d211f;
}

.flightdeck-notification-placeholder-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flightdeck-notification-placeholder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-width: 0;
}

.flightdeck-notification-placeholder-list span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  border: 1px solid rgba(21, 88, 121, 0.18);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  color: var(--forest-2);
  background: #e8f2f8;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}


.flightdeck-menu-icon-form {
  max-width: 48rem;
}

.flightdeck-menu-icon-section {
  border-top: 0;
  padding-top: 0;
}

.flightdeck-menu-icon-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: 0;
  border: 1px solid rgba(200, 210, 218, 0.72);
  border-radius: 8px;
  padding: 0.75rem;
  background: #f7fbfa;
}

.flightdeck-menu-icon-pane,
.flightdeck-menu-icon-list {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.flightdeck-menu-icon-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.72rem;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(16, 64, 96, 0.14);
  border-radius: 8px;
  padding: 0.72rem;
  background: #fbfdfb;
}

.flightdeck-menu-icon-row:nth-child(even) {
  background: #f8faf7;
}

.flightdeck-menu-icon-preview {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(21, 88, 121, 0.18);
  border-radius: 8px;
  color: var(--forest-2);
  background: #e8f2f8;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.flightdeck-menu-icon-preview:hover,
.flightdeck-menu-icon-preview:focus-visible,
.flightdeck-menu-icon-file-input:focus + .flightdeck-menu-icon-preview {
  border-color: rgba(217, 149, 47, 0.56);
  box-shadow: 0 0 0 4px rgba(217, 149, 47, 0.14);
  transform: translateY(-1px);
}

.flightdeck-menu-icon-preview.has-image {
  background: #fff;
}

.flightdeck-menu-icon-preview.is-loading {
  color: #536b3e;
  background: #edf5ef;
}

.flightdeck-menu-icon-preview.is-error {
  color: #7d211f;
  background: #fff3ef;
  border-color: rgba(180, 81, 69, 0.28);
}

.flightdeck-menu-icon-preview.is-disabled {
  cursor: not-allowed;
  opacity: 0.62;
  pointer-events: none;
}

.flightdeck-menu-icon-preview svg {
  width: 1.22rem;
  height: 1.22rem;
}

.flightdeck-menu-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flightdeck-menu-icon-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.flightdeck-menu-icon-copy strong,
.flightdeck-menu-icon-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-menu-icon-copy strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

.flightdeck-menu-icon-copy span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.flightdeck-menu-icon-row-actions {
  justify-content: flex-end;
  gap: 0.45rem;
}

.flightdeck-menu-icon-remove-button {
  width: 2.35rem;
  height: 2.35rem;
  color: #7d211f;
  background: #fff3ef;
  border-color: rgba(180, 81, 69, 0.28);
}

.flightdeck-menu-icon-remove-button svg {
  width: 1rem;
  height: 1rem;
}

.flightdeck-menu-icon-remove-button:disabled {
  color: #7b8790;
  border-color: rgba(120, 134, 146, 0.26);
  background: #eef2f4;
  cursor: not-allowed;
  opacity: 1;
}

.flightdeck-menu-icon-actions {
  justify-content: flex-start;
}

.flightdeck-config-summary-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(47, 125, 79, 0.22);
  border-radius: 8px;
  padding: 0.9rem;
  background: linear-gradient(135deg, rgba(239, 247, 237, 0.95), rgba(232, 242, 248, 0.78));
}

.flightdeck-config-summary-header .location-badge-group {
  grid-column: 1 / -1;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}

.flightdeck-config-preview {
  display: grid;
  gap: 0.24rem;
  border: 1px solid rgba(217, 149, 47, 0.26);
  border-radius: 8px;
  padding: 0.85rem;
  background: #fff8eb;
}

.flightdeck-config-preview span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flightdeck-config-preview strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.flightdeck-delivery-grid-manager {
  gap: 0.85rem;
}

.flightdeck-delivery-grid-list {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.flightdeck-delivery-grid-card {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  border: 1px solid rgba(200, 210, 218, 0.78);
  border-radius: 8px;
  padding: 0.72rem;
  color: inherit;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.flightdeck-delivery-grid-card:hover,
.flightdeck-delivery-grid-card:focus-visible {
  border-color: rgba(21, 88, 121, 0.34);
  background: #f7fbfa;
  box-shadow: 0 10px 24px rgba(16, 64, 96, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.flightdeck-delivery-grid-card.is-create {
  border-color: rgba(21, 88, 121, 0.16);
  background: #eef8fb;
}

.flightdeck-delivery-grid-card.is-selected {
  border-color: rgba(21, 88, 121, 0.42);
  background: #eef8fb;
  box-shadow: inset 0 0 0 1px rgba(21, 88, 121, 0.12);
}

.flightdeck-delivery-grid-main {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.flightdeck-delivery-grid-main:focus-visible,
.flightdeck-delivery-grid-status:focus-visible {
  outline: 2px solid rgba(21, 88, 121, 0.48);
  outline-offset: 3px;
}

.flightdeck-delivery-grid-main:disabled,
.flightdeck-delivery-grid-status:disabled {
  cursor: wait;
  opacity: 0.72;
}

.flightdeck-delivery-grid-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-width: 4.5rem;
  min-height: 1.7rem;
  border: 1px solid rgba(31, 90, 46, 0.26);
  border-radius: 8px;
  padding: 0.24rem 0.52rem;
  color: #1f5a2e;
  background: #eff7ed;
  appearance: none;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.flightdeck-delivery-grid-status.is-disabled {
  border-color: rgba(125, 33, 31, 0.25);
  color: #7d211f;
  background: #fff0ec;
}

.flightdeck-delivery-grid-status:disabled {
  cursor: wait;
  opacity: 0.72;
}

.flightdeck-delivery-grid-status:hover:not(:disabled),
.flightdeck-delivery-grid-status:focus-visible {
  border-color: currentColor;
  box-shadow: 0 0 0 3px rgba(31, 90, 46, 0.12);
}

.flightdeck-delivery-grid-status.is-disabled:hover:not(:disabled),
.flightdeck-delivery-grid-status.is-disabled:focus-visible {
  box-shadow: 0 0 0 3px rgba(125, 33, 31, 0.12);
}

.flightdeck-delivery-grid-status:active:not(:disabled) {
  transform: translateY(1px);
}

.flightdeck-delivery-grid-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.flightdeck-delivery-grid-copy strong,
.flightdeck-delivery-grid-copy span,
.flightdeck-delivery-grid-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-delivery-grid-copy strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
}

.flightdeck-delivery-grid-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 840;
}

.flightdeck-delivery-grid-copy small {
  color: #5f6870;
  font-size: 0.74rem;
  font-weight: 780;
}

.flightdeck-region-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 64, 96, 0.42);
  backdrop-filter: blur(4px);
}

.flightdeck-region-modal-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.85rem;
  width: min(100%, 98rem);
  height: min(100%, 62rem);
  max-height: calc(100vh - 2rem);
  border: 1px solid rgba(200, 210, 218, 0.84);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(16, 64, 96, 0.28);
  overflow: hidden;
}

.flightdeck-region-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  min-width: 0;
  border-bottom: 1px solid rgba(200, 210, 218, 0.72);
  padding-bottom: 0.78rem;
}

.flightdeck-region-modal-title {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.flightdeck-region-modal-title h2,
.flightdeck-region-modal-title p,
.flightdeck-region-modal-title span {
  margin: 0;
}

.flightdeck-region-modal-title span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-region-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.flightdeck-region-modal-actions .primary-button,
.flightdeck-region-modal-actions .secondary-button {
  width: auto;
  min-height: 2.3rem;
  padding: 0.5rem 0.82rem;
}

.flightdeck-region-modal-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.82rem;
  min-height: 0;
  overflow: hidden;
}

.flightdeck-region-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.65rem;
  border: 1px solid rgba(200, 210, 218, 0.72);
  border-radius: 8px;
  padding: 0.72rem;
  background: #f7fbfa;
}

.flightdeck-region-location,
.flightdeck-region-name {
  flex: 1 1 16rem;
  margin: 0;
}

.flightdeck-region-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.62fr);
  gap: 0.85rem;
  align-items: start;
  min-width: 0;
  min-height: 0;
}

.flightdeck-region-modal-panel .flightdeck-region-workspace {
  height: 100%;
}

.flightdeck-region-map-card,
.flightdeck-region-side,
.flightdeck-region-panel {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.flightdeck-region-map-card {
  border: 1px solid rgba(200, 210, 218, 0.72);
  border-radius: 8px;
  padding: 0.72rem;
  background: #fffdf8;
}

.flightdeck-region-modal-panel .flightdeck-region-map-card {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: 0;
}

.flightdeck-region-map-header,
.flightdeck-region-panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-width: 0;
}

.flightdeck-region-map-header h3,
.flightdeck-region-panel-title h3 {
  margin: 0;
  color: var(--forest-2);
  font-size: 0.84rem;
  font-weight: 950;
  text-transform: uppercase;
}

.flightdeck-region-map-header span,
.flightdeck-region-panel-title span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.flightdeck-region-map-actions,
.flightdeck-region-draw-actions,
.flightdeck-region-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.flightdeck-region-map-actions .secondary-button,
.flightdeck-region-draw-actions .secondary-button,
.flightdeck-region-actions .secondary-button,
.flightdeck-region-actions .primary-button {
  min-height: 2.1rem;
  padding: 0 0.68rem;
  font-size: 0.78rem;
}

.flightdeck-region-map-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(21, 88, 121, 0.18);
  border-radius: 8px;
  background: #e8f2f8;
}

.flightdeck-region-map-shell.is-drawing {
  border-color: rgba(217, 149, 47, 0.54);
  box-shadow: inset 0 0 0 2px rgba(217, 149, 47, 0.14);
}

.flightdeck-region-map-surface {
  position: relative;
  width: 100%;
  height: 28rem;
  min-height: 28rem;
}

.flightdeck-region-modal-panel .flightdeck-region-map-shell,
.flightdeck-region-modal-panel .flightdeck-region-map-surface {
  min-height: 0;
}

.flightdeck-region-modal-panel .flightdeck-region-map-surface {
  height: 100%;
  min-height: 30rem;
}

.flightdeck-region-map-state {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  z-index: 2;
  border: 1px solid rgba(21, 88, 121, 0.2);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  color: #1d5f73;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 900;
}

.flightdeck-region-map-state.is-error {
  border-color: rgba(125, 33, 31, 0.24);
  color: #7d211f;
  background: #fff0ec;
}

.flightdeck-region-side {
  align-content: start;
  max-height: 100%;
  overflow: auto;
}

.flightdeck-region-panel {
  border: 1px solid rgba(200, 210, 218, 0.72);
  border-radius: 8px;
  padding: 0.72rem;
  background: #ffffff;
}

.flightdeck-region-new-row {
  background: #eef8fb;
}

.flightdeck-region-area-list {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.flightdeck-region-area-row {
  cursor: default;
}

.flightdeck-region-rule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.flightdeck-region-rule-list span {
  display: inline-flex;
  align-items: center;
  min-height: 1.42rem;
  border: 1px solid rgba(21, 88, 121, 0.16);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  color: #1d5f73;
  background: #eef8fb;
  font-size: 0.7rem;
  font-weight: 900;
}

.flightdeck-region-grid-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flightdeck-region-projection-note,
.flightdeck-region-grid-summary,
.flightdeck-region-selected-cell {
  display: grid;
  gap: 0.16rem;
  border: 1px solid rgba(217, 149, 47, 0.24);
  border-radius: 8px;
  padding: 0.62rem;
  background: #fff8eb;
}

.flightdeck-region-projection-note strong,
.flightdeck-region-grid-summary strong,
.flightdeck-region-selected-cell strong {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 950;
}

.flightdeck-region-projection-note span,
.flightdeck-region-grid-summary span,
.flightdeck-region-grid-summary small,
.flightdeck-region-selected-cell span,
.flightdeck-region-selected-cell small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.flightdeck-region-grid-summary.is-error {
  border-color: rgba(125, 33, 31, 0.24);
  background: #fff0ec;
}

.flightdeck-pickup-config-section {
  gap: 0.85rem;
}

.flightdeck-pickup-config-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
  min-width: 0;
}

.flightdeck-pickup-config-header > div {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.flightdeck-pickup-config-header h3,
.flightdeck-pickup-config-header span {
  margin: 0;
}

.flightdeck-pickup-config-header > div > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.account-count.is-warning {
  border-color: rgba(217, 149, 47, 0.4);
  color: #7d4f11;
  background: #fff8eb;
}

.account-count.is-ready {
  border-color: rgba(47, 125, 79, 0.36);
  color: #1f5a2e;
  background: #eff7ed;
}

.account-count.is-configured {
  border-color: rgba(46, 111, 149, 0.28);
  color: var(--forest);
  background: #e8f2f8;
}

.account-count.is-muted {
  border-color: rgba(105, 119, 115, 0.22);
  color: var(--muted);
  background: var(--surface-soft);
}

.flightdeck-pickup-config-list {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.flightdeck-pickup-config-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(14rem, 20rem);
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(200, 210, 218, 0.72);
  border-radius: 8px;
  padding: 0.78rem;
  background: #fbfdfb;
}

.flightdeck-pickup-config-row:nth-child(even) {
  background: #f8faf7;
}

.flightdeck-pickup-select {
  margin: 0;
}

.flightdeck-pickup-select select {
  width: 100%;
  min-height: 2.45rem;
  border: 1px solid #c8d2da;
  border-radius: 8px;
  padding: 0 0.75rem;
  color: var(--ink);
  background: var(--surface);
  font-weight: 850;
}

.flightdeck-pickup-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.flightdeck-pickup-preview strong {
  overflow-wrap: anywhere;
}

.flightdeck-dashboard {
  display: grid;
  grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.flightdeck-users-panel,
.flightdeck-detail-panel,
.flightdeck-tabs-card,
.flightdeck-detail-card,
.flightdeck-empty-detail,
.flightdeck-selected-user {
  min-width: 0;
}

.flightdeck-users-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.flightdeck-panel-header {
  display: grid;
  gap: 0.75rem;
}

.flightdeck-panel-header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.flightdeck-panel-header h2,
.flightdeck-selected-user h2,
.flightdeck-detail-heading h3 {
  margin: 0;
}

.flightdeck-user-search {
  width: 100%;
  height: 2.45rem;
  border: 1px solid #c8d2da;
  border-radius: 8px;
  padding: 0 0.75rem;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.flightdeck-user-search:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 4px rgba(21, 88, 121, 0.14);
}

.flightdeck-user-list {
  display: grid;
  gap: 0.45rem;
  max-height: clamp(24rem, calc(100vh - 20rem), 45rem);
  overflow: auto;
  overscroll-behavior: contain;
}

.flightdeck-user-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.35rem;
  background: var(--surface);
}

.flightdeck-user-list-row:nth-child(even) {
  background: #f8faf7;
}

.flightdeck-user-list-row.is-selected {
  border-color: rgba(217, 149, 47, 0.48);
  background: #fff0d9;
  box-shadow: inset 3px 0 0 var(--amber);
}

.flightdeck-user-select {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.flightdeck-user-select:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(48, 109, 137, 0.35);
  outline-offset: 3px;
}

.flightdeck-profile-image,
.flightdeck-profile-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.flightdeck-profile-placeholder {
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--muted);
  background: #f6f4ef;
}

.flightdeck-profile-placeholder svg {
  width: 1.1rem;
  height: 1.1rem;
}

.flightdeck-user-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.flightdeck-user-copy strong,
.flightdeck-user-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-user-copy strong {
  font-size: 0.95rem;
}

.flightdeck-user-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.flightdeck-user-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  border: 1px solid rgba(31, 90, 46, 0.26);
  border-radius: 8px;
  padding: 0.28rem 0.5rem;
  color: #1f5a2e;
  background: #eff7ed;
  appearance: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.flightdeck-user-status.is-disabled {
  border-color: rgba(125, 33, 31, 0.25);
  color: #7d211f;
  background: #fff0ec;
}

.flightdeck-user-status:hover:not(:disabled),
.flightdeck-user-status:focus-visible {
  border-color: currentColor;
  box-shadow: 0 0 0 3px rgba(31, 90, 46, 0.12);
}

.flightdeck-user-status.is-disabled:hover:not(:disabled),
.flightdeck-user-status.is-disabled:focus-visible {
  box-shadow: 0 0 0 3px rgba(125, 33, 31, 0.12);
}

.flightdeck-user-status:active:not(:disabled) {
  transform: translateY(1px);
}

.flightdeck-user-status:disabled {
  cursor: wait;
  opacity: 0.72;
}

.flightdeck-detail-panel {
  display: grid;
  gap: 1rem;
}

.flightdeck-selected-user {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.flightdeck-selected-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.flightdeck-selected-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.flightdeck-profile-basics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  min-width: 0;
  margin-top: 0.5rem;
}

.flightdeck-profile-basics > span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
  min-width: 0;
  max-width: 100%;
}

.flightdeck-profile-basics > span + span {
  border-left: 1px solid rgba(82, 106, 122, 0.22);
  padding-left: 0.85rem;
}

.flightdeck-profile-basics strong {
  flex: 0 0 auto;
  color: #306d89;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}

.flightdeck-profile-basics em {
  min-width: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.12;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-selected-user .flightdeck-user-status {
  cursor: default;
}

.flightdeck-status-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.flightdeck-status-filter {
  --status-color: #23536a;
  --status-border: rgba(48, 109, 137, 0.22);
  --status-bg: #eef7fb;
  --status-ring: rgba(48, 109, 137, 0.16);
  display: grid;
  gap: 0.15rem;
  min-height: 3.25rem;
  border: 1px solid var(--status-border);
  border-radius: 8px;
  padding: 0.55rem;
  color: var(--ink);
  background: color-mix(in srgb, var(--status-bg) 42%, var(--surface));
  cursor: pointer;
}

.flightdeck-status-filter.is-all {
  --status-color: #23536a;
  --status-border: rgba(48, 109, 137, 0.24);
  --status-bg: #eef7fb;
  --status-ring: rgba(48, 109, 137, 0.16);
}

.flightdeck-status-filter.is-paid {
  --status-color: #1f5a2e;
  --status-border: rgba(31, 90, 46, 0.24);
  --status-bg: #eff8ee;
  --status-ring: rgba(31, 90, 46, 0.16);
}

.flightdeck-status-filter.is-closed {
  --status-color: #8a5a00;
  --status-border: rgba(199, 121, 27, 0.28);
  --status-bg: #fff6e7;
  --status-ring: rgba(199, 121, 27, 0.16);
}

.flightdeck-status-filter.is-canceled {
  --status-color: #7d211f;
  --status-border: rgba(125, 33, 31, 0.24);
  --status-bg: #fff0ec;
  --status-ring: rgba(125, 33, 31, 0.15);
}

.flightdeck-status-filter span {
  color: var(--status-color);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flightdeck-status-filter strong {
  color: var(--status-color);
  font-size: 1.15rem;
}


.flightdeck-ops-workspace {
  display: grid;
  gap: 0.9rem;
}

.flightdeck-ops-workspace.is-focus-mode {
  position: fixed;
  inset: 0;
  z-index: 130;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.75rem;
  background: var(--bg);
}

.flightdeck-ops-workspace.is-focus-mode .flightdeck-ops-queue {
  min-height: calc(100dvh - 1.5rem);
  margin: 0;
}

.flightdeck-ops-workspace:fullscreen,
.flightdeck-ops-workspace:-webkit-full-screen {
  overflow: auto;
  background: var(--bg);
}

.flightdeck-ops-queue {
  gap: 0.72rem;
}

.flightdeck-ops-title {
  margin: 0;
  font-size: 1rem;
}

.flightdeck-ops-location-bar,
.flightdeck-ops-filter-bar {
  border: 1px solid rgba(200, 210, 218, 0.72);
  border-radius: 8px;
  background: #f7fbfa;
}

.flightdeck-ops-location-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.52rem;
}

.flightdeck-ops-filter-bar {
  padding: 0.5rem;
}

.flightdeck-ops-status-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.48rem;
  min-width: 0;
}

.flightdeck-ops-filter-pill {
  --ops-filter-accent: #306d89;
  --ops-filter-bg: #ffffff;
  --ops-filter-active-bg: #eef7fb;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 3.2rem;
  min-width: 0;
  border: 1px solid rgba(48, 109, 137, 0.2);
  border-left: 0.36rem solid var(--ops-filter-accent);
  border-radius: 8px;
  padding: 0.52rem 0.72rem;
  color: #1e4f65;
  background: var(--ops-filter-bg);
  font-size: 0.9rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(20, 50, 68, 0.06);
}

.flightdeck-ops-filter-pill.is-all {
  --ops-filter-accent: #526a7a;
  --ops-filter-bg: #f8fbfc;
  --ops-filter-active-bg: #edf4f7;
}

.flightdeck-ops-filter-pill.is-making {
  --ops-filter-accent: #c7791b;
  --ops-filter-bg: #fff8ec;
  --ops-filter-active-bg: #fff0d7;
  color: #714000;
}

.flightdeck-ops-filter-pill.is-pickup {
  --ops-filter-accent: #2f8a72;
  --ops-filter-bg: #eff9f4;
  --ops-filter-active-bg: #ddf2ea;
  color: #174f41;
}

.flightdeck-ops-filter-pill.is-delivery {
  --ops-filter-accent: #2d6da3;
  --ops-filter-bg: #eef7ff;
  --ops-filter-active-bg: #dcefff;
  color: #1d4d73;
}

.flightdeck-ops-filter-pill strong {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 2.35rem;
  min-height: 2.1rem;
  border-radius: 8px;
  padding: 0 0.42rem;
  color: #ffffff;
  background: var(--ops-filter-accent);
  font-size: 1.18rem;
  line-height: 1;
  text-align: center;
}

.flightdeck-ops-filter-pill.is-active {
  border-color: var(--ops-filter-accent);
  background: var(--ops-filter-active-bg);
  box-shadow: inset 0 0 0 1px rgba(20, 50, 68, 0.08), 0 10px 20px rgba(20, 50, 68, 0.1);
}

.flightdeck-ops-filter-pill.is-active strong {
  color: #ffffff;
  background: var(--ops-filter-accent);
}

.flightdeck-ops-filter-pill:focus-visible {
  outline: 2px solid var(--ops-filter-accent);
  outline-offset: 2px;
}

.flightdeck-ops-filter-short {
  display: none;
}

.flightdeck-ops-location-filter {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
}

.flightdeck-ops-location-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flightdeck-ops-location-filter select {
  flex: 1 1 auto;
  min-height: 2.35rem;
  max-width: 28rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0.72rem;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 850;
}

.flightdeck-ops-refresh-button {
  min-height: 2.35rem;
}

.flightdeck-ops-sound-button {
  min-height: 2.35rem;
  min-width: 7.8rem;
  border-color: rgba(45, 109, 163, 0.28);
}

.flightdeck-ops-sound-button.is-enabled {
  border-color: rgba(47, 138, 114, 0.46);
  color: #174f41;
  background: #eff9f4;
}

.flightdeck-ops-sound-button.is-warning {
  border-color: rgba(182, 66, 54, 0.36);
  color: #7a271f;
  background: #fff5f2;
}

.flightdeck-ops-focus-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  min-width: 6.8rem;
}

.flightdeck-ops-focus-button svg {
  width: 1rem;
  height: 1rem;
}

.flightdeck-ops-focus-button.is-active {
  border-color: var(--forest-2);
  color: #ffffff;
  background: var(--forest);
}

.flightdeck-ops-state {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.flightdeck-ops-new-order-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 2px solid rgba(47, 138, 114, 0.62);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  color: #0f3d32;
  background: #dff7ea;
  box-shadow: inset 5px 0 0 #2f8a72, 0 14px 28px rgba(47, 138, 114, 0.2);
}

.flightdeck-ops-new-order-notice strong,
.flightdeck-ops-new-order-notice span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-ops-new-order-notice strong {
  font-size: 1.02rem;
  font-weight: 950;
}

.flightdeck-ops-new-order-notice span {
  color: #2f6f60;
  font-size: 0.78rem;
  font-weight: 850;
}

.flightdeck-ops-order-list {
  display: grid;
  gap: 0.5rem;
}

.flightdeck-ops-order-card {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(8.5rem, 11rem) minmax(20rem, 28rem) 2.3rem;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(200, 210, 218, 0.82);
  border-radius: 8px;
  padding: 0.52rem 0.58rem;
  background: #fffdf8;
}

.flightdeck-ops-order-card.is-new-order {
  border-color: rgba(47, 138, 114, 0.8);
  background: #e6faef;
  box-shadow: inset 7px 0 0 #2f8a72, 0 16px 30px rgba(47, 138, 114, 0.24);
}

.flightdeck-ops-order-card.is-expanded {
  border-color: rgba(47, 138, 114, 0.38);
  box-shadow: inset 3px 0 0 #2f8a72;
}

.flightdeck-ops-order-card.is-wait-warning {
  border-color: rgba(214, 148, 32, 0.9);
  box-shadow: inset 5px 0 0 #d69420;
}

.flightdeck-ops-order-card.is-wait-critical {
  border-color: rgba(199, 57, 43, 0.95);
  box-shadow: inset 5px 0 0 #c7392b;
}

.flightdeck-ops-order-card.is-wait-warning.is-expanded {
  border-color: rgba(214, 148, 32, 0.95);
  box-shadow: inset 5px 0 0 #d69420;
}

.flightdeck-ops-order-card.is-wait-critical.is-expanded {
  border-color: rgba(199, 57, 43, 0.98);
  box-shadow: inset 5px 0 0 #c7392b;
}

.flightdeck-ops-order-trigger {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr) 1rem;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.flightdeck-ops-order-trigger:focus-visible,
.flightdeck-print-item-button:focus-visible,
.flightdeck-ops-status-button:focus-visible {
  outline: 2px solid rgba(47, 138, 114, 0.55);
  outline-offset: 2px;
}

.flightdeck-ops-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid rgba(200, 210, 218, 0.92);
  border-radius: 50%;
  color: var(--forest);
  background: #edf6fa;
  object-fit: cover;
  overflow: hidden;
}

.flightdeck-ops-avatar svg {
  width: 1.05rem;
  height: 1.05rem;
}

.flightdeck-ops-order-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.flightdeck-ops-order-copy strong,
.flightdeck-ops-order-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-ops-order-copy strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.flightdeck-ops-order-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.flightdeck-ops-wait-label {
  color: #7a4a08 !important;
  font-weight: 950 !important;
}

.flightdeck-ops-order-card.is-new-order .flightdeck-ops-wait-label {
  color: #174f41 !important;
}

.flightdeck-ops-order-card.is-wait-warning .flightdeck-ops-wait-label {
  color: #8a560b !important;
}

.flightdeck-ops-order-card.is-wait-critical .flightdeck-ops-wait-label {
  color: #a93024 !important;
}

.flightdeck-ops-expand-icon {
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  transition: transform 0.16s ease;
}

.flightdeck-ops-order-card.is-expanded .flightdeck-ops-expand-icon {
  transform: rotate(180deg);
}

.flightdeck-ops-service {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  min-width: 0;
  border: 1px solid rgba(48, 109, 137, 0.24);
  border-radius: 8px;
  padding: 0.24rem 0.55rem;
  color: #23536a;
  background: #edf6fa;
  font-size: 0.8rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-ops-service.is-delivery {
  border-color: rgba(217, 149, 47, 0.34);
  color: #7a4a08;
  background: #fff6e7;
}

.flightdeck-ops-service.is-gps {
  border-color: rgba(47, 138, 114, 0.42);
  color: #174f41;
  background: #e8f7ef;
}

.flightdeck-ops-service.is-gps-aging {
  border-color: rgba(217, 149, 47, 0.52);
  color: #7a4a08;
  background: #fff1d7;
}

.flightdeck-ops-service.is-gps-stale {
  border-color: rgba(125, 33, 31, 0.4);
  color: #7d211f;
  background: #fff0ec;
}

.flightdeck-ops-service.is-gps-unknown {
  border-color: rgba(82, 106, 122, 0.34);
  color: #526a7a;
  background: #f4f7f6;
}

.flightdeck-ops-status-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  min-width: 0;
  border: 1px solid rgba(200, 210, 218, 0.8);
  border-radius: 8px;
  padding: 0.28rem;
  background: rgba(244, 247, 246, 0.92);
}

.flightdeck-ops-status-button {
  min-width: 0;
  min-height: 2.75rem;
  border: 2px solid rgba(82, 106, 122, 0.28);
  border-radius: 8px;
  padding: 0.34rem 0.5rem;
  color: #3d4a4d;
  background: #f7faf8;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(47, 61, 70, 0.16), 0 8px 18px rgba(20, 50, 68, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
  white-space: normal;
}

.flightdeck-ops-status-button.is-making {
  border-color: rgba(199, 121, 27, 0.52);
  color: #714000;
  background: linear-gradient(180deg, #fffaf1, #ffe9bf);
}

.flightdeck-ops-status-button.is-ready {
  border-color: rgba(45, 109, 163, 0.5);
  color: #1d4d73;
  background: linear-gradient(180deg, #f5fbff, #dcefff);
}

.flightdeck-ops-status-button.is-done {
  border-color: rgba(47, 138, 114, 0.52);
  color: #174f41;
  background: linear-gradient(180deg, #f5fbf7, #d7f2e6);
}

.flightdeck-ops-status-button.is-current {
  border-width: 2px;
  color: #ffffff;
  background: #526a7a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 2px 0 rgba(47, 61, 70, 0.2);
}

.flightdeck-ops-status-button.is-current.is-making {
  background: #c7791b;
}

.flightdeck-ops-status-button.is-current.is-ready {
  background: #2d6da3;
}

.flightdeck-ops-status-button.is-current.is-done {
  background: #2f8a72;
}

.flightdeck-ops-status-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(47, 61, 70, 0.18), 0 12px 22px rgba(20, 50, 68, 0.13);
}

.flightdeck-ops-status-button:disabled {
  cursor: default;
}

.flightdeck-ops-status-button:not(.is-current):disabled {
  opacity: 0.58;
  cursor: wait;
}

.flightdeck-print-item-button {
  width: 2.2rem;
  height: 2.2rem;
  min-width: 2.2rem;
  padding: 0;
  color: var(--forest-2);
  justify-self: end;
}

.flightdeck-print-item-button.is-failed,
.flightdeck-print-item-button.is-no-default-printer {
  color: #7d211f;
  border-color: rgba(125, 33, 31, 0.26);
  background: #fff0ec;
}

.flightdeck-print-item-button.is-printed {
  color: #1f5a2e;
  border-color: rgba(31, 90, 46, 0.24);
  background: #eff7ed;
}

.flightdeck-ops-order-detail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.58rem;
  border-top: 1px solid rgba(200, 210, 218, 0.7);
  padding-top: 0.55rem;
}

.flightdeck-ops-detail-main {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.flightdeck-ops-gps-panel {
  display: grid;
  gap: 0.46rem;
  min-width: 0;
  border: 1px solid rgba(47, 138, 114, 0.24);
  border-radius: 8px;
  padding: 0.46rem;
  background: linear-gradient(180deg, #f7fcf9, #fffdf8);
  box-shadow: inset 3px 0 0 rgba(47, 138, 114, 0.35);
}

.flightdeck-ops-gps-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.flightdeck-ops-gps-panel-head strong,
.flightdeck-ops-gps-panel-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-ops-gps-panel-head strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
}

.flightdeck-ops-gps-panel-head span {
  color: #2f6f60;
  font-size: 0.74rem;
  font-weight: 850;
}

.flightdeck-ops-gps-map {
  position: relative;
  min-height: 15.5rem;
  overflow: hidden;
  border: 1px solid rgba(48, 109, 137, 0.22);
  border-radius: 8px;
  background: #edf6fa;
}

.flightdeck-ops-gps-map-surface {
  position: absolute;
  inset: 0;
}

.flightdeck-ops-map-marker {
  display: block;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #526a7a;
  box-shadow: 0 0 0 2px rgba(82, 106, 122, 0.2), 0 8px 18px rgba(17, 35, 45, 0.24);
}

.flightdeck-ops-map-marker.is-current {
  width: 0.95rem;
  height: 0.95rem;
  background: #2f8a72;
  box-shadow: 0 0 0 3px rgba(47, 138, 114, 0.24), 0 10px 22px rgba(17, 79, 65, 0.28);
}

.flightdeck-ops-map-marker.is-selected {
  width: 1.15rem;
  height: 1.15rem;
  background: #d9952f;
  box-shadow: 0 0 0 4px rgba(217, 149, 47, 0.28), 0 12px 26px rgba(122, 74, 8, 0.32);
}

.flightdeck-ops-gps-state {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  max-width: calc(100% - 1.1rem);
  border: 1px solid rgba(21, 88, 121, 0.2);
  border-radius: 999px;
  padding: 0.26rem 0.56rem;
  color: #155879;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-ops-gps-state.is-error {
  border-color: rgba(125, 33, 31, 0.24);
  color: #7d211f;
  background: rgba(255, 240, 236, 0.94);
}

.flightdeck-ops-gps-grid-summary {
  min-width: 0;
  border: 1px solid rgba(217, 149, 47, 0.3);
  border-radius: 8px;
  padding: 0.32rem 0.5rem;
  color: #7a4a08;
  background: #fff8ea;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-ops-gps-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.5rem;
  min-width: 0;
}

.flightdeck-ops-gps-select {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

.flightdeck-ops-gps-select span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flightdeck-ops-gps-select select {
  width: 100%;
  min-width: 0;
  height: 2.1rem;
  border: 1px solid rgba(200, 210, 218, 0.9);
  border-radius: 8px;
  padding: 0 0.55rem;
  color: var(--ink);
  background: #ffffff;
  font-weight: 850;
}

.flightdeck-ops-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0 0.72rem;
  text-decoration: none;
  white-space: nowrap;
}

.flightdeck-ops-gps-error {
  color: #7d211f;
  font-size: 0.72rem;
  font-weight: 850;
}

.flightdeck-ops-detail-items {
  display: grid;
  gap: 0.26rem;
  min-width: 0;
}

.flightdeck-ops-detail-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.42rem;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(200, 210, 218, 0.56);
  border-radius: 8px;
  padding: 0.34rem 0.42rem;
  background: rgba(255, 255, 255, 0.78);
}

.flightdeck-ops-detail-item.is-empty {
  grid-template-columns: 1fr;
}

.flightdeck-ops-detail-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  min-height: 1.62rem;
  border: 1px solid rgba(21, 88, 121, 0.24);
  border-radius: 6px;
  color: #155879;
  background: #eef7fb;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1;
}

.flightdeck-ops-detail-drink {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
}

.flightdeck-ops-detail-drink strong,
.flightdeck-ops-detail-drink span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-ops-detail-drink strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.flightdeck-ops-detail-drink span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.flightdeck-ops-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.32rem 0.45rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-align: left;
}

.flightdeck-ops-detail-meta > span:not(.flightdeck-ops-notification) {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 1.5rem;
  border: 1px solid rgba(200, 210, 218, 0.62);
  border-radius: 999px;
  padding: 0.14rem 0.48rem;
  background: #f8faf8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-ops-delivery-assist {
  display: grid;
  grid-template-columns: minmax(10rem, 13.5rem) minmax(0, 1fr);
  align-items: stretch;
  gap: 0.55rem;
  min-width: 0;
}

.flightdeck-ops-table-movement {
  display: grid;
  gap: 0.46rem;
  min-width: 0;
  border: 1px solid rgba(217, 149, 47, 0.28);
  border-radius: 8px;
  padding: 0.5rem;
  background: linear-gradient(180deg, #fffaf1, #fffdf8);
  box-shadow: inset 3px 0 0 rgba(217, 149, 47, 0.36);
}

.flightdeck-ops-table-movement.is-warning {
  border-color: rgba(199, 121, 27, 0.46);
  background: linear-gradient(180deg, #fff6e7, #fffdf8);
}

.flightdeck-ops-table-movement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-width: 0;
}

.flightdeck-ops-table-movement-head div {
  display: grid;
  gap: 0.06rem;
  min-width: 0;
}

.flightdeck-ops-table-movement-head strong,
.flightdeck-ops-table-movement-head span,
.flightdeck-ops-table-movement-head em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-ops-table-movement-head strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 950;
}

.flightdeck-ops-table-movement-head span {
  color: #704400;
  font-size: 0.74rem;
  font-weight: 850;
}

.flightdeck-ops-table-movement-head em {
  flex: 0 0 auto;
  border: 1px solid rgba(199, 121, 27, 0.34);
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
  color: #704400;
  background: #fff8ec;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
}

.flightdeck-ops-table-movement-list {
  display: grid;
  gap: 0.26rem;
  min-width: 0;
}

.flightdeck-ops-table-movement-row {
  display: grid;
  grid-template-columns: minmax(4.4rem, 6.2rem) minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  border: 1px solid rgba(200, 210, 218, 0.58);
  border-radius: 8px;
  padding: 0.38rem 0.5rem;
  background: rgba(255, 255, 255, 0.82);
}

.flightdeck-ops-table-movement-row.is-current {
  border-color: rgba(47, 138, 114, 0.32);
  background: #f0faf5;
}

.flightdeck-ops-table-movement-row span,
.flightdeck-ops-table-movement-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-ops-table-movement-row span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.flightdeck-ops-table-movement-row strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 920;
}

.flightdeck-ops-table-movement-state {
  margin: 0;
  border: 1px dashed rgba(82, 106, 122, 0.32);
  border-radius: 8px;
  padding: 0.56rem;
  color: #526a7a;
  background: #f7faf8;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.flightdeck-ops-table-movement-state.is-error {
  border-color: rgba(125, 33, 31, 0.28);
  color: #7d211f;
  background: #fff0ec;
}

.flightdeck-ops-selfie-card {
  display: grid;
  grid-template-rows: auto minmax(10.5rem, 1fr);
  gap: 0.46rem;
  min-width: 0;
  border: 1px solid rgba(45, 109, 163, 0.24);
  border-radius: 8px;
  padding: 0.46rem;
  background: linear-gradient(180deg, #f8fcff, #fffdf8);
  box-shadow: inset 3px 0 0 rgba(45, 109, 163, 0.28);
}

.flightdeck-ops-selfie-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.flightdeck-ops-selfie-head strong,
.flightdeck-ops-selfie-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-ops-selfie-head strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
}

.flightdeck-ops-selfie-head span {
  color: #44636f;
  font-size: 0.72rem;
  font-weight: 850;
}

.flightdeck-ops-selfie-preview {
  width: 100%;
  min-height: 10.5rem;
  border: 0;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: #10242d;
  cursor: pointer;
}

.flightdeck-ops-selfie-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 10.5rem;
  object-fit: cover;
}

.flightdeck-ops-selfie-preview:focus-visible {
  outline: 2px solid rgba(45, 109, 163, 0.56);
  outline-offset: 2px;
}

.flightdeck-ops-selfie-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.36rem;
  min-height: 10.5rem;
  border: 1px dashed rgba(82, 106, 122, 0.35);
  border-radius: 8px;
  padding: 0.75rem;
  color: #526a7a;
  background: #f7faf8;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.flightdeck-ops-selfie-state svg {
  width: 1.35rem;
  height: 1.35rem;
}

.flightdeck-ops-selfie-card.is-loading .flightdeck-ops-selfie-state {
  border-color: rgba(45, 109, 163, 0.32);
  color: #1d4d73;
  background: #eef7ff;
}

.flightdeck-ops-selfie-card.is-purged .flightdeck-ops-selfie-state {
  border-color: rgba(199, 121, 27, 0.34);
  color: #704400;
  background: #fff8ec;
}

.flightdeck-ops-selfie-card.is-error .flightdeck-ops-selfie-state {
  border-color: rgba(125, 33, 31, 0.28);
  color: #7d211f;
  background: #fff0ec;
}

.flightdeck-ops-photo-preview-overlay {
  z-index: 70;
  padding: 1rem;
}

.flightdeck-ops-photo-preview-panel {
  display: grid;
  gap: 0.75rem;
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  border-radius: 8px;
  padding: 0.85rem;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(16, 64, 96, 0.28);
}

.flightdeck-ops-photo-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.flightdeck-ops-photo-preview-header div {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.flightdeck-ops-photo-preview-header strong,
.flightdeck-ops-photo-preview-header span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-ops-photo-preview-header strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 950;
}

.flightdeck-ops-photo-preview-header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.flightdeck-ops-photo-preview-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 8rem);
  border-radius: 8px;
  background: #10242d;
  object-fit: contain;
}

.flightdeck-ops-notification {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.28rem;
  min-width: 0;
  border: 1px solid rgba(82, 106, 122, 0.22);
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
  color: #526a7a;
  background: #f7faf8;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
}

.flightdeck-ops-notification svg {
  width: 0.78rem;
  height: 0.78rem;
  flex: 0 0 auto;
}

.flightdeck-ops-notification.is-sent {
  border-color: rgba(47, 138, 114, 0.28);
  color: #1f5a46;
  background: #eff9f4;
}

.flightdeck-ops-notification.is-skipped {
  border-color: rgba(199, 121, 27, 0.28);
  color: #704400;
  background: #fff8ec;
}

.flightdeck-ops-notification.is-failed {
  border-color: rgba(125, 33, 31, 0.26);
  color: #7d211f;
  background: #fff0ec;
}

.flightdeck-status-filter.is-active {
  border-color: color-mix(in srgb, var(--status-color) 46%, transparent);
  background: var(--status-bg);
  box-shadow: inset 0 0 0 1px var(--status-ring), 0 0 0 3px color-mix(in srgb, var(--status-ring) 72%, transparent);
}

.flightdeck-tab-list {
  display: grid;
  gap: 0.5rem;
  max-height: 18rem;
  overflow: auto;
  overscroll-behavior: contain;
}

.flightdeck-tab-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.flightdeck-tab-card.is-selected {
  border-color: rgba(217, 149, 47, 0.52);
  background: #fff6e7;
  box-shadow: inset 3px 0 0 var(--amber);
}

.flightdeck-tab-card:focus-visible,
.flightdeck-status-filter:focus-visible {
  outline: 3px solid rgba(48, 109, 137, 0.35);
  outline-offset: 2px;
}

.flightdeck-tab-card-main {
  display: grid;
  gap: 0.12rem;
}

.flightdeck-tab-card-main strong {
  font-size: 1rem;
}

.flightdeck-tab-card-main span,
.flightdeck-tab-card-time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.flightdeck-tab-card-side {
  display: grid;
  gap: 0.25rem;
  justify-items: end;
  align-content: center;
  min-width: 0;
}

.flightdeck-tab-card-service {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 7.5rem;
  min-height: 1.45rem;
  padding: 0.18rem 0.48rem;
  border: 1px solid rgba(48, 109, 137, 0.2);
  border-radius: 999px;
  color: #23536a;
  background: #f3f9fb;
  font-size: 0.73rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-tab-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.25rem;
  border: 1px solid rgba(48, 109, 137, 0.26);
  border-radius: 8px;
  padding: 0.28rem 0.5rem;
  color: #23536a;
  background: #edf6fa;
  font-size: 0.78rem;
  font-weight: 900;
}

.flightdeck-tab-status.is-open {
  border-color: rgba(48, 109, 137, 0.26);
  color: #23536a;
  background: #eef7fb;
}

.flightdeck-tab-status.is-paid {
  border-color: rgba(31, 90, 46, 0.26);
  color: #1f5a2e;
  background: #eff8ee;
}

.flightdeck-tab-status.is-closed {
  border-color: rgba(199, 121, 27, 0.3);
  color: #8a5a00;
  background: #fff6e7;
}

.flightdeck-tab-status.is-canceled {
  border-color: rgba(125, 33, 31, 0.25);
  color: #7d211f;
  background: #fff0ec;
}

.flightdeck-detail-card,
.flightdeck-empty-detail {
  display: grid;
  gap: 0.72rem;
}

.flightdeck-detail-card {
  border: 1px solid rgba(200, 210, 218, 0.9);
  background: linear-gradient(180deg, #fffdf8 0%, var(--surface) 100%);
}

.flightdeck-empty-detail p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.flightdeck-detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(200, 210, 218, 0.82);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  padding: 0.68rem 0.72rem;
  background: #fffdf8;
}

.flightdeck-detail-identity {
  display: grid;
  gap: 0.38rem;
  min-width: 0;
}

.flightdeck-detail-status-stack {
  display: grid;
  justify-items: start;
  gap: 0.32rem;
  min-width: 0;
}

.flightdeck-order-number {
  display: block;
  max-width: min(18rem, 100%);
  border: 1px solid rgba(217, 149, 47, 0.34);
  border-radius: 8px;
  padding: 0.25rem 0.48rem;
  color: #805415;
  background: #fff8eb;
  font-size: 0.74rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-order-number.is-missing {
  border-color: rgba(125, 33, 31, 0.24);
  color: #7d211f;
  background: #fff7f4;
}

.flightdeck-detail-total {
  display: grid;
  gap: 0.08rem;
  justify-items: end;
  min-width: 6.75rem;
  text-align: right;
}

.flightdeck-detail-total span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.flightdeck-detail-amount {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 950;
  white-space: nowrap;
}

.flightdeck-detail-location {
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-close-tab-button {
  min-height: 2.05rem;
  border: 1px solid rgba(125, 33, 31, 0.24);
  border-radius: 8px;
  padding: 0 0.7rem;
  color: #7d211f;
  background: #fff7f4;
  font-size: 0.8rem;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.flightdeck-close-tab-button:hover:not(:disabled),
.flightdeck-close-tab-button:focus-visible {
  border-color: rgba(125, 33, 31, 0.38);
  background: #fff0ec;
}

.flightdeck-close-tab-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.flightdeck-detail-card h4 {
  margin: 0.35rem 0 0;
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 850;
}

.flightdeck-status-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.45rem;
  color: var(--ink);
}

.flightdeck-status-event {
  display: grid;
  gap: 0.12rem;
  align-items: baseline;
  border: 1px solid rgba(200, 210, 218, 0.72);
  border-radius: 8px;
  padding: 0.5rem 0.58rem;
  background: #f8fafc;
}

.flightdeck-status-event span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.flightdeck-status-event strong {
  min-width: 0;
  color: #3d4a4d;
  font-size: 0.86rem;
  font-weight: 800;
}

.flightdeck-detail-section {
  display: grid;
  gap: 0.42rem;
}

.flightdeck-section-label {
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 950;
}

.flightdeck-tab-fulfillment-panel {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  padding: 0.62rem 0.68rem;
  border: 1px solid rgba(200, 210, 218, 0.76);
  border-radius: 8px;
  background: #fffdf8;
}

.flightdeck-fulfillment-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 13rem);
  align-items: end;
  gap: 0.75rem;
  min-width: 0;
}

.flightdeck-fulfillment-destination {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.flightdeck-fulfillment-method {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.flightdeck-fulfillment-destination strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 950;
}

.flightdeck-fulfillment-detail {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.flightdeck-gps-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  min-width: 0;
}

.flightdeck-gps-meta-pill,
.flightdeck-gps-map-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(48, 109, 137, 0.18);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.flightdeck-gps-meta-pill {
  color: #3d4a4d;
  background: rgba(255, 255, 255, 0.78);
}

.flightdeck-gps-map-link {
  color: #1d5f73;
  background: #eef8fb;
}

.flightdeck-gps-map-link:hover,
.flightdeck-gps-map-link:focus-visible {
  border-color: rgba(29, 95, 115, 0.34);
  background: #e5f3f8;
}

.flightdeck-tab-table-movement {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 149, 47, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf1, #fffdf8);
  box-shadow: inset 3px 0 0 rgba(217, 149, 47, 0.3);
}

.flightdeck-tab-table-movement summary {
  min-width: 0;
  padding: 0.48rem 0.58rem;
  color: var(--ink);
  cursor: pointer;
}

.flightdeck-tab-table-movement summary strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-tab-table-movement-body {
  display: grid;
  gap: 0.26rem;
  min-width: 0;
  padding: 0.45rem 0.55rem 0.55rem;
  border-top: 1px solid rgba(217, 149, 47, 0.18);
}

.flightdeck-tab-table-movement-row {
  display: grid;
  grid-template-columns: minmax(4.4rem, 6.2rem) minmax(0, 1fr);
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
  border: 1px solid rgba(200, 210, 218, 0.58);
  border-radius: 8px;
  padding: 0.34rem 0.46rem;
  background: rgba(255, 255, 255, 0.82);
}

.flightdeck-tab-table-movement-row.is-current {
  border-color: rgba(47, 138, 114, 0.32);
  background: #f0faf5;
}

.flightdeck-tab-table-movement-row span,
.flightdeck-tab-table-movement-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-tab-table-movement-row span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.flightdeck-tab-table-movement-row strong {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 920;
}

.flightdeck-tab-table-movement-state {
  margin: 0;
  border: 1px dashed rgba(82, 106, 122, 0.32);
  border-radius: 8px;
  padding: 0.52rem;
  color: #526a7a;
  background: #f7faf8;
  font-size: 0.76rem;
  font-weight: 850;
  text-align: center;
}

.flightdeck-tab-table-movement-state.is-error {
  border-color: rgba(125, 33, 31, 0.28);
  color: #7d211f;
  background: #fff0ec;
}

.flightdeck-tab-status-control {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.flightdeck-tab-status-control > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.flightdeck-item-table-wrap {
  overflow: hidden;
  border: 1px solid rgba(200, 210, 218, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.flightdeck-item-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.flightdeck-item-table td {
  padding: 0.68rem 0.8rem;
  text-align: left;
  vertical-align: middle;
}

.flightdeck-item-table tbody tr + tr td {
  border-top: 1px solid rgba(200, 210, 218, 0.38);
}

.flightdeck-item-table tbody tr:hover td {
  background: #fff8eb;
}

.flightdeck-item-table td:nth-child(1) {
  width: auto;
}

.flightdeck-item-table td:nth-child(2) {
  width: 8rem;
}

.flightdeck-item-table.has-actions td:nth-child(3) {
  width: 3rem;
  padding-left: 0;
}

.flightdeck-item-action-cell {
  text-align: right;
}

.flightdeck-remove-item-button {
  width: 2.05rem;
  height: 2.05rem;
  color: #7d211f;
  background: #fff7f4;
}

.flightdeck-remove-item-button:hover:not(:disabled),
.flightdeck-remove-item-button:focus-visible {
  border-color: rgba(125, 33, 31, 0.35);
  background: #fff0ec;
}

.flightdeck-remove-item-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.flightdeck-item-main {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.flightdeck-item-main strong,
.flightdeck-item-main span,
.flightdeck-item-amount-cell strong,
.flightdeck-item-amount-cell span,
.flightdeck-fulfillment-method,
.flightdeck-fulfillment-destination strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightdeck-item-main strong {
  font-size: 0.98rem;
}

.flightdeck-item-main span {
  color: var(--muted);
  font-weight: 750;
}

.flightdeck-item-main span {
  font-size: 0.82rem;
}

.flightdeck-item-amount-cell {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  text-align: right;
}

.flightdeck-item-amount-cell strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.flightdeck-item-amount-cell span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.flightdeck-status-select {
  width: 100%;
  min-width: 0;
  min-height: 2.05rem;
  border: 1px solid rgba(200, 210, 218, 0.9);
  border-radius: 8px;
  padding: 0 1.75rem 0 0.62rem;
  color: var(--ink);
  background: #fffdf8;
  font-size: 0.82rem;
  font-weight: 820;
  cursor: pointer;
}

.flightdeck-status-select:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 3px rgba(21, 88, 121, 0.14);
  outline: none;
}

.flightdeck-status-select:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.flightdeck-payment-details {
  margin-top: 0.2rem;
  padding-top: 0.2rem;
}

.flightdeck-payment-details summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
}

.flightdeck-payment-details summary::-webkit-details-marker {
  display: none;
}

.flightdeck-payment-details summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.flightdeck-payment-details[open] summary {
  margin-bottom: 0.55rem;
}

.flightdeck-payment-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flightdeck-payment-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  background: var(--surface);
}

.flightdeck-payment-list span {
  color: var(--muted);
  font-weight: 800;
}

.flightdeck-payment-details.is-receipt summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  gap: 0.35rem 0.75rem;
  border: 1px solid rgba(200, 210, 218, 0.82);
  border-radius: 8px;
  padding: 0.62rem 0.72rem;
  background: #fffdf8;
}

.flightdeck-payment-details.is-receipt[open] summary {
  margin-bottom: 0.65rem;
}

.flightdeck-payment-details.is-receipt summary .flightdeck-payment-summary-title {
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 900;
}

.flightdeck-payment-details.is-receipt summary .flightdeck-payment-summary-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 820;
}

.flightdeck-payment-summary-total {
  margin-left: auto;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
  white-space: nowrap;
}

.flightdeck-receipt-panel {
  display: grid;
  gap: 0.72rem;
}

.flightdeck-receipt-block {
  display: grid;
  gap: 0.65rem;
  border: 1px solid rgba(200, 210, 218, 0.82);
  border-radius: 8px;
  padding: 0.72rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.flightdeck-receipt-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 820;
}

.flightdeck-receipt-heading strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  white-space: nowrap;
}

.flightdeck-receipt-totals {
  display: grid;
  gap: 0.34rem;
  margin: 0;
}

.flightdeck-receipt-totals div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.flightdeck-receipt-totals dt,
.flightdeck-receipt-totals dd {
  margin: 0;
}

.flightdeck-receipt-totals dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.flightdeck-receipt-totals dd {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: right;
}

.flightdeck-receipt-totals .is-total {
  margin-top: 0.1rem;
  border-top: 1px solid rgba(200, 210, 218, 0.68);
  padding-top: 0.48rem;
}

.flightdeck-receipt-totals .is-total dt,
.flightdeck-receipt-totals .is-total dd {
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 950;
}

.flightdeck-receipt-note {
  margin: 0;
  border-radius: 8px;
  padding: 0.48rem 0.58rem;
  color: #5f6870;
  background: #eef3f7;
  font-size: 0.78rem;
  font-weight: 780;
}

.flightdeck-reconciliation-panel {
  display: grid;
  gap: 0.48rem;
  border-radius: 8px;
  padding: 0.58rem 0.62rem;
  background: #eef6f9;
}

.flightdeck-reconciliation-heading span {
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 900;
}

.flightdeck-reconciliation-grid {
  display: grid;
  gap: 0.34rem;
  margin: 0;
}

.flightdeck-reconciliation-grid div {
  display: grid;
  grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}

.flightdeck-reconciliation-grid dt,
.flightdeck-reconciliation-grid dd {
  margin: 0;
}

.flightdeck-reconciliation-grid dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.flightdeck-reconciliation-grid dd {
  min-width: 0;
  color: #334248;
  font-size: 0.76rem;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.flightdeck-reconciliation-grid dd.is-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  .flightdeck-dashboard,
  .flightdeck-config-workspace {
    grid-template-columns: 1fr;
  }

  .flightdeck-user-list,
  .flightdeck-tab-list {
    max-height: none;
  }

  .flightdeck-ops-order-detail {
    grid-template-columns: 1fr;
  }

  .flightdeck-ops-delivery-assist {
    grid-template-columns: minmax(10rem, 12rem) minmax(0, 1fr);
  }

  .flightdeck-ops-gps-map {
    min-height: 14rem;
  }
}

@media (max-width: 980px) and (min-width: 721px) {
  .flightdeck-ops-order-card {
    grid-template-columns: minmax(13rem, 1fr) minmax(7.5rem, 10rem) minmax(18rem, 24rem) 2.3rem;
  }

  .flightdeck-ops-status-filters {
    gap: 0.38rem;
  }

  .flightdeck-ops-filter-pill {
    gap: 0.46rem;
    padding: 0.5rem 0.56rem;
    font-size: 0.82rem;
  }

  .flightdeck-ops-filter-pill strong {
    min-width: 2rem;
    font-size: 1.08rem;
  }
}

@media (max-width: 860px) and (min-width: 721px) {
  .flightdeck-ops-order-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .flightdeck-ops-order-trigger,
  .flightdeck-ops-service,
  .flightdeck-ops-status-actions {
    grid-column: 1 / -1;
  }

  .flightdeck-ops-service {
    justify-content: flex-start;
  }

  .flightdeck-print-item-button {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
  .flightdeck-item-table td {
    padding: 0.62rem 0.65rem;
  }

  .flightdeck-item-table td:nth-child(2) {
    width: 7.25rem;
  }

  .flightdeck-item-table.has-actions td:nth-child(3) {
    width: 2.7rem;
  }
}

@media (max-width: 720px) {

  .flightdeck-admin-tabs,
  .flightdeck-config-toolbar,
  .flightdeck-config-pickup-layout,
  .flightdeck-region-workspace {
    grid-template-columns: 1fr;
  }

  .flightdeck-region-modal-overlay {
    padding: 0;
  }

  .flightdeck-region-modal-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .flightdeck-region-modal-header {
    display: grid;
  }

  .flightdeck-region-modal-actions {
    justify-content: flex-start;
  }

  .flightdeck-region-modal-body {
    overflow: auto;
  }

  .flightdeck-region-modal-panel .flightdeck-region-map-surface,
  .flightdeck-region-map-surface {
    height: 22rem;
    min-height: 22rem;
  }

  .flightdeck-config-point-row,
  .flightdeck-config-setting-row,
  .flightdeck-pickup-config-row {
    grid-template-columns: 1fr;
  }

  .flightdeck-notification-pane-title {
    display: grid;
  }

  .flightdeck-notification-pane-title span {
    text-align: left;
  }

  .flightdeck-notification-service-summary {
    margin-left: 0;
  }

  .flightdeck-notification-template-state {
    width: 100%;
    margin-right: 0;
  }

  .flightdeck-notification-template-actions .primary-button,
  .flightdeck-notification-template-actions .secondary-button {
    flex: 1 1 8rem;
  }

  .flightdeck-notification-tabs {
    width: 100%;
  }

  .flightdeck-menu-icon-filter-grid {
    grid-template-columns: 1fr;
  }

  .flightdeck-menu-icon-row {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .flightdeck-menu-icon-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .flightdeck-config-badges {
    justify-content: flex-start;
  }

  .flightdeck-ops-location-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .flightdeck-ops-status-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flightdeck-ops-filter-pill {
    min-height: 3rem;
    padding: 0.5rem 0.62rem;
  }

  .flightdeck-ops-filter-label {
    display: none;
  }

  .flightdeck-ops-filter-short {
    display: inline;
  }

  .flightdeck-ops-location-label {
    display: none;
  }

  .flightdeck-ops-location-filter select {
    max-width: none;
    width: 100%;
  }


  .flightdeck-ops-order-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .flightdeck-ops-order-trigger {
    grid-column: 1 / -1;
  }

  .flightdeck-ops-service {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .flightdeck-ops-status-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .flightdeck-ops-status-button {
    min-height: 3rem;
    font-size: 0.78rem;
  }

  .flightdeck-print-item-button {
    grid-column: 2;
  }

  .flightdeck-ops-order-detail {
    grid-template-columns: 1fr;
  }

  .flightdeck-ops-detail-meta {
    text-align: left;
  }

  .flightdeck-ops-delivery-assist {
    grid-template-columns: 1fr;
  }

  .flightdeck-ops-selfie-card {
    grid-template-rows: auto;
  }

  .flightdeck-ops-selfie-preview,
  .flightdeck-ops-selfie-preview img,
  .flightdeck-ops-selfie-state {
    min-height: 12rem;
  }

  .flightdeck-ops-gps-controls {
    grid-template-columns: 1fr;
  }

  .flightdeck-ops-gps-panel-head,
  .flightdeck-ops-table-movement-head {
    display: grid;
    align-items: start;
  }

  .flightdeck-ops-table-movement-head em {
    justify-self: start;
  }

  .flightdeck-ops-table-movement-row {
    grid-template-columns: minmax(3.8rem, 5rem) minmax(0, 1fr);
  }

  .flightdeck-ops-map-link {
    width: 100%;
    min-height: 2.45rem;
  }

  .flightdeck-ops-notification {
    justify-self: start;
  }

  .flightdeck-status-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flightdeck-profile-basics > span + span {
    border-left: 0;
    padding-left: 0;
  }

  .flightdeck-tab-card,
  .flightdeck-selected-user,
  .flightdeck-detail-heading {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .flightdeck-selected-user,
  .flightdeck-detail-heading {
    display: grid;
  }

  .flightdeck-detail-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .flightdeck-detail-total {
    justify-self: end;
  }

  .flightdeck-detail-location,
  .flightdeck-order-number {
    white-space: normal;
  }

  .flightdeck-tab-card-side {
    justify-items: start;
  }

  .flightdeck-tab-fulfillment-panel {
    width: 100%;
  }

  .flightdeck-fulfillment-primary {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .flightdeck-tab-table-movement summary {
    display: block;
  }

  .flightdeck-tab-table-movement-row {
    grid-template-columns: minmax(3.8rem, 5rem) minmax(0, 1fr);
  }

  .flightdeck-close-tab-button {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .flightdeck-item-table-wrap {
    overflow: visible;
  }

  .flightdeck-item-table,
  .flightdeck-item-table tbody,
  .flightdeck-item-table tr,
  .flightdeck-item-table td {
    display: block;
    width: 100%;
  }

  .flightdeck-item-table {
    table-layout: auto;
  }

  .flightdeck-item-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem 0.65rem;
    padding: 0.72rem;
  }

  .flightdeck-item-table tbody tr + tr {
    border-top: 1px solid rgba(200, 210, 218, 0.38);
  }

  .flightdeck-item-table tbody tr + tr td {
    border-top: 0;
  }

  .flightdeck-item-table tbody tr:hover td {
    background: transparent;
  }

  .flightdeck-item-table td,
  .flightdeck-item-table td:nth-child(1),
  .flightdeck-item-table td:nth-child(2),
  .flightdeck-item-table.has-actions td:nth-child(3) {
    width: auto;
    padding: 0;
  }

  .flightdeck-item-table td:nth-child(1) {
    grid-column: 1 / -1;
  }

  .flightdeck-item-table td:nth-child(2) {
    grid-column: 1;
  }

  .flightdeck-item-table:not(.has-actions) td:nth-child(2) {
    grid-column: 1 / -1;
  }

  .flightdeck-item-table.has-actions td:nth-child(3) {
    grid-column: 2;
    align-self: end;
  }

  .flightdeck-status-select {
    max-width: 17rem;
  }

  .flightdeck-item-action-cell {
    display: flex;
    justify-content: flex-end;
  }

  .flightdeck-payment-details.is-receipt summary {
    align-items: flex-start;
  }

  .flightdeck-payment-summary-total {
    margin-left: 0;
  }

  .flightdeck-reconciliation-grid div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

@media (max-width: 460px) {
  .flightdeck-detail-heading {
    grid-template-columns: 1fr;
  }

  .flightdeck-detail-total {
    justify-items: start;
    justify-self: start;
    text-align: left;
  }

  .flightdeck-item-table tr {
    grid-template-columns: 1fr;
  }

  .flightdeck-item-table td:nth-child(2),
  .flightdeck-item-table.has-actions td:nth-child(3) {
    grid-column: 1;
  }

  .flightdeck-status-select {
    max-width: none;
  }

  .flightdeck-item-action-cell {
    justify-content: flex-start;
  }
}

.inventory-workspace-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.inventory-card {
  min-width: 0;
}

.inventory-dashboard-tabs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid #cfd8d4;
  padding: 0.65rem 0.75rem;
  background: #f7faf8;
  overflow-x: auto;
}

.inventory-dashboard-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.25rem;
  border: 1px solid #cfd8d4;
  border-radius: 8px;
  padding: 0 0.75rem;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.inventory-dashboard-tab strong {
  color: var(--forest);
  font-size: 0.8rem;
}

.inventory-dashboard-tab.is-active {
  border-color: var(--forest);
  color: #fffaf0;
  background: var(--forest);
}

.inventory-dashboard-tab.is-active strong {
  color: #fffaf0;
}

.inventory-menu-sync-state {
  margin-left: auto;
  border: 1px solid #cfd8d4;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  color: var(--muted);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.inventory-menu-sync-state.is-ready {
  color: #1e6f3c;
  background: #eef8f0;
}

.inventory-menu-sync-state.is-error {
  color: #8f3029;
  background: #fff3ef;
}

.inventory-toolbar {
  grid-template-columns: minmax(18rem, 26rem) minmax(24rem, 1fr);
  align-items: start;
  padding: 0.65rem 0.75rem;
  gap: 0.55rem;
  overflow: visible;
}

.inventory-toolbar .account-directory-title {
  grid-column: 1 / -1;
}

.inventory-toolbar .inventory-search-form,
.inventory-toolbar .inventory-upload-actions {
  grid-column: 1;
}

.inventory-search-form {
  grid-template-columns: minmax(12rem, 20rem) 2.25rem;
  gap: 0.4rem;
  flex: 1 1 20rem;
  min-width: 15rem;
  max-width: 26rem;
}

.inventory-upload-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin-left: 0.35rem;
}

.inventory-stock-watch {
  display: grid;
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: stretch;
  gap: 0.55rem;
  min-width: 0;
  border: 1px solid rgba(16, 64, 96, 0.14);
  border-radius: 8px;
  padding: 0.58rem 0.65rem;
  background: #fbfdfc;
}

.inventory-stock-watch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.inventory-stock-watch-header > div {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.inventory-stock-watch-header strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 950;
}

.inventory-stock-watch-header span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: capitalize;
}

.inventory-stock-filter {
  display: grid;
  gap: 0.18rem;
  width: 10.5rem;
  min-width: 10.5rem;
}

.inventory-stock-filter > span {
  color: #385664;
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.inventory-stock-filter select {
  width: 100%;
  min-height: 2rem;
  border: 2px solid #90a9b7;
  border-radius: 8px;
  padding: 0.35rem 1.7rem 0.35rem 0.52rem;
  color: var(--ink);
  background: #f4f9fc;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.inventory-stock-filter select:hover {
  border-color: #527d94;
}

.inventory-stock-filter select:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 3px rgba(21, 88, 121, 0.12);
  outline: none;
}

.inventory-stock-watch-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.inventory-stock-watch-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  min-height: 2.85rem;
  border: 1px solid #d7e0dc;
  border-radius: 8px;
  padding: 0.42rem 0.5rem;
  color: #314248;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.inventory-stock-watch-item:hover {
  transform: translateY(-1px);
}

.inventory-stock-watch-icon {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  color: #fff;
  background: #6d7b80;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
}

.inventory-stock-watch-link-icon {
  width: 0.82rem;
  height: 0.82rem;
}

.inventory-stock-watch-copy {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.inventory-stock-watch-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #273b43;
  font-size: 0.73rem;
  font-weight: 950;
}

.inventory-stock-watch-copy small {
  overflow: hidden;
  color: #687a81;
  font-size: 0.62rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-stock-watch-item b {
  min-width: 1.25rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  text-align: right;
}

.inventory-stock-watch-item.is-warning {
  border-color: #e7c17a;
  background: #fff;
}

.inventory-stock-watch-item.is-warning .inventory-stock-watch-icon {
  background: #d9952f;
}

.inventory-stock-watch-item.is-danger {
  border-color: #e2a49e;
  background: #fff;
}

.inventory-stock-watch-item.is-danger .inventory-stock-watch-icon {
  background: #b64236;
}

.inventory-stock-watch-item.is-link {
  border-color: #a9c8dc;
  background: #fff;
}

.inventory-stock-watch-item.is-link .inventory-stock-watch-icon {
  background: #2d6da3;
}

.inventory-stock-watch-item.is-warning:hover {
  border-color: #c17b14;
  box-shadow: 0 0 0 2px rgba(217, 149, 47, 0.18);
}

.inventory-stock-watch-item.is-warning.is-active,
.inventory-stock-watch-item.is-warning[aria-pressed="true"] {
  border-color: #c17b14;
  background-color: #fbe8c5;
  box-shadow: 0 0 0 2px rgba(217, 149, 47, 0.18);
}

.inventory-stock-watch-item.is-danger:hover {
  border-color: #a83128;
  box-shadow: 0 0 0 2px rgba(182, 66, 54, 0.17);
}

.inventory-stock-watch-item.is-danger.is-active,
.inventory-stock-watch-item.is-danger[aria-pressed="true"] {
  border-color: #a83128;
  background-color: #f7d9d5;
  box-shadow: 0 0 0 2px rgba(182, 66, 54, 0.17);
}

.inventory-stock-watch-item.is-link:hover {
  border-color: #2d6da3;
  box-shadow: 0 0 0 2px rgba(45, 109, 163, 0.16);
}

.inventory-stock-watch-item.is-link.is-active,
.inventory-stock-watch-item.is-link[aria-pressed="true"] {
  border-color: #2d6da3;
  background-color: #d8e7f1;
  box-shadow: 0 0 0 2px rgba(45, 109, 163, 0.16);
}

.inventory-stock-watch-item:focus-visible {
  outline: 3px solid rgba(21, 88, 121, 0.22);
  outline-offset: 2px;
}

@media (max-width: 1120px) {
  .inventory-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .inventory-toolbar .account-directory-title,
  .inventory-toolbar .inventory-search-form,
  .inventory-toolbar .inventory-upload-actions,
  .inventory-stock-watch {
    grid-column: 1;
  }

  .inventory-stock-watch {
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .inventory-stock-watch-header {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory-stock-filter {
    width: 100%;
    min-width: 0;
  }

  .inventory-stock-watch-items {
    grid-template-columns: 1fr;
  }
}

.inventory-selected-count {
  border: 1px solid rgba(16, 64, 96, 0.18);
  border-radius: 8px;
  height: 2.25rem;
  padding: 0 0.6rem;
  color: var(--forest);
  background: #e8f2f8;
  font-size: 0.82rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
}

.inventory-control-button,
.inventory-icon-control {
  height: 2.1rem;
  justify-content: center;
  gap: 0.28rem;
  white-space: nowrap;
  font-size: 0.76rem;
  line-height: 1;
}

.inventory-control-button {
  width: 5.75rem;
  min-width: 5.75rem;
  padding-inline: 0.48rem;
}

.inventory-icon-control {
  width: 2.1rem;
  min-width: 2.1rem;
  padding: 0;
}

.inventory-icon-control svg,
.inventory-control-button svg {
  width: 0.86rem;
  height: 0.86rem;
}

.inventory-upload-button {
  cursor: pointer;
}

.inventory-bulk-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.inventory-delete-selected-button {
  color: #7d211f;
}

.inventory-directory-body {
  height: clamp(34rem, calc(100vh - 18rem), 54rem);
  min-height: 0;
  border-top: 1px solid #c8d2da;
  background: #fff;
  overflow: hidden;
}

.inventory-table-wrap {
  width: 100%;
  height: 100%;
  background: #fff;
  overflow: auto;
  overscroll-behavior: contain;
  position: relative;
}

.inventory-table {
  min-width: 64rem;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.85rem;
}

.inventory-table th,
.inventory-table td {
  border-right: 1px solid #c8d2da;
  border-bottom: 1px solid #c8d2da;
  padding: 0.32rem 0.4rem;
  vertical-align: top;
}

.inventory-table th:last-child,
.inventory-table td:last-child {
  border-right: 0;
}

.inventory-table th {
  position: sticky;
  top: 0;
  height: 2.15rem;
  color: #263331;
  background: #eef3f0;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  z-index: 2;
}

.inventory-table td {
  position: relative;
  color: #182528;
  font-weight: 650;
  line-height: 1.22;
}

.inventory-table.is-menu-sheet {
  min-width: 69.625rem;
}

.inventory-table.is-menu-sheet th,
.inventory-table.is-menu-sheet td {
  padding: 0.28rem 0.34rem;
  vertical-align: middle;
}

.inventory-table.is-menu-sheet th {
  height: 2.05rem;
  font-size: 0.68rem;
}

.inventory-table.is-menu-sheet td {
  height: 2.45rem;
  line-height: 1.15;
}

.inventory-table.is-menu-sheet .inventory-cell-text {
  min-height: 0;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-table.is-menu-sheet .inventory-location-status,
.inventory-table.is-menu-sheet .inventory-menu-status,
.inventory-table.is-menu-sheet .inventory-stock-status {
  overflow: hidden;
  max-width: 100%;
  padding: 0.16rem 0.38rem;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-table.is-menu-sheet .inventory-number-cell {
  text-align: center;
}

.inventory-table.is-menu-sheet .inventory-menu-can-stock {
  text-align: center;
}

.inventory-table tbody tr.is-selected {
  background: #fff8e9;
}

.inventory-table tbody tr.is-menu-only {
  background: #f8fbff;
}

.inventory-table tbody tr:hover {
  background: #f7fbf9;
}

.audit-workspace-grid {
  grid-template-columns: minmax(0, 1fr);
}

.audit-card {
  min-width: 0;
  overflow: hidden;
}

.audit-summary-panel {
  display: grid;
  gap: 0.58rem;
  padding: 0.75rem;
  border-bottom: 1px solid #c8d2da;
  background: #fbfdfc;
}

.audit-summary-tiles {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.42rem;
}

.audit-summary-tile {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  border: 1px solid #d7e0dc;
  border-left: 0.28rem solid #6b7b81;
  border-radius: 8px;
  padding: 0.48rem 0.52rem;
  background: #ffffff;
}

.audit-summary-tile span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1.12;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-summary-tile strong {
  min-width: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-summary-tile.is-danger {
  border-left-color: #b64236;
  background: #fff5f2;
}

.audit-summary-tile.is-success {
  border-left-color: #2f8a72;
  background: #f1faf5;
}

.audit-summary-tile.is-menu {
  border-left-color: #7545a5;
}

.audit-summary-tile.is-inventory {
  border-left-color: #2d6da3;
}

.audit-summary-tile.is-account {
  border-left-color: #c7791b;
}

.audit-summary-tile.is-ops {
  border-left-color: #2f8a72;
}

.audit-summary-retention {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  min-width: 0;
  overflow: hidden;
}

.audit-summary-retention-pill {
  display: inline-flex;
  align-items: center;
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
  min-height: 1.75rem;
  border: 1px solid #d7e0dc;
  border-radius: 999px;
  padding: 0 0.55rem;
  color: #4f5c60;
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audit-summary-retention-pill.is-success {
  border-color: rgba(47, 138, 114, 0.24);
  color: #174f41;
  background: #eff9f4;
}

@media (max-width: 1100px) {
  .audit-summary-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .audit-summary-retention {
    flex-wrap: wrap;
    overflow: visible;
  }
}

@media (max-width: 680px) {
  .audit-summary-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-summary-retention-pill {
    flex: 1 1 10rem;
    justify-content: center;
  }
}

.audit-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 28rem);
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem;
  border-bottom: 1px solid #c8d2da;
  background: #f7faf8;
  overflow: visible;
}

.audit-tabs {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  gap: 0.25rem;
  min-width: 0;
  overflow: hidden;
}

.audit-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.28rem;
  min-width: max-content;
  border: 1px solid #cfd8d4;
  border-radius: 8px;
  padding: 0 0.95rem;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  font-size: 0.9rem;
  white-space: nowrap;
}

.audit-tab.is-active {
  border-color: #7545a5;
  color: #fff;
  background: #7545a5;
}

.audit-search {
  display: grid;
  grid-template-columns: 1rem minmax(12rem, 1fr);
  align-items: center;
  flex: 1 1 16rem;
  gap: 0.45rem;
  width: auto;
  min-width: 0;
  height: 2.15rem;
  border: 1px solid #cfd8d4;
  border-radius: 8px;
  padding: 0 0.65rem;
  background: #fff;
  color: var(--muted);
}

.audit-search svg {
  width: 0.95rem;
  height: 0.95rem;
}

.audit-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
}

.audit-filter {
  width: auto;
  min-width: 8.5rem;
  height: 2.15rem;
  border: 1px solid #cfd8d4;
  border-radius: 8px;
  padding: 0 0.55rem;
  color: var(--ink);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 850;
}

.audit-filter-row {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  min-width: 0;
}

.audit-compact-filter {
  display: inline-grid;
  grid-template-columns: auto minmax(8rem, 1fr);
  align-items: center;
  gap: 0.35rem;
  height: 2.15rem;
  border: 1px solid #cfd8d4;
  border-radius: 8px;
  padding: 0 0.5rem;
  background: #fff;
}

.audit-compact-filter span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.audit-compact-filter input {
  min-width: 0;
  width: 9rem;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.audit-compact-filter.is-date-filter {
  grid-template-columns: auto 9.8rem;
}

.audit-compact-filter.is-date-filter input {
  width: 9.8rem;
}

.audit-date-presets {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.audit-date-presets button {
  height: 2.15rem;
  border: 1px solid rgba(48, 109, 137, 0.22);
  border-radius: 8px;
  padding: 0 0.62rem;
  color: #1b4d63;
  background: rgba(48, 109, 137, 0.08);
  appearance: none;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.audit-date-presets button:hover,
.audit-date-presets button:focus-visible {
  border-color: rgba(48, 109, 137, 0.55);
  background: rgba(48, 109, 137, 0.13);
  outline: none;
}

.audit-refresh-button {
  height: 2.15rem;
  min-width: 5.5rem;
  justify-content: center;
  padding: 0 0.75rem;
  white-space: nowrap;
}

.audit-error {
  margin: 0.75rem;
}

.audit-table-wrap {
  height: clamp(30rem, calc(100vh - 21rem), 54rem);
  overflow: auto;
  background: #fff;
}

.audit-table {
  width: 100%;
  min-width: 84rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.84rem;
}

.audit-table th,
.audit-table td {
  border-right: 1px solid #c8d2da;
  border-bottom: 1px solid #c8d2da;
  padding: 0.38rem 0.5rem;
  text-align: left;
  vertical-align: middle;
}

.audit-table th:last-child,
.audit-table td:last-child {
  border-right: 0;
}

.audit-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #263331;
  background: #eef3f0;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.audit-table td {
  color: #182528;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audit-table td:last-child {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.audit-table tbody tr:hover {
  background: #f7fbf9;
}

.audit-event-row {
  cursor: pointer;
}

.audit-event-row:focus-visible {
  outline: 2px solid #7545a5;
  outline-offset: -2px;
  background: #f5effc;
}

.audit-table th:nth-child(1),
.audit-table td:nth-child(1) {
  width: 8.5rem;
}

.audit-table th:nth-child(2),
.audit-table td:nth-child(2) {
  width: 12rem;
}

.audit-table th:nth-child(3),
.audit-table td:nth-child(3),
.audit-table th:nth-child(4),
.audit-table td:nth-child(4) {
  width: 8.5rem;
}

.audit-table th:nth-child(8),
.audit-table td:nth-child(8) {
  width: 8.5rem;
}

.audit-table th:nth-child(9),
.audit-table td:nth-child(9) {
  width: 6rem;
}

.audit-event-type,
.audit-status {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audit-event-type {
  color: #4f3566;
  background: #f1eafa;
}

.audit-event-type.is-danger {
  color: #8f3029;
  background: #fff0ec;
}

.audit-status.is-success {
  color: #1e6f3c;
  background: #eaf7ee;
}

.audit-status.is-danger {
  color: #8f3029;
  background: #fff0ec;
}

.audit-status.is-warning {
  color: #7a4d12;
  background: #fff5df;
}

.audit-status.is-neutral {
  color: #5c6765;
  background: #eef3f0;
}

.audit-status.is-making {
  color: #7a4d12;
  background: #fff5df;
}

.audit-status.is-ready {
  color: #166176;
  background: #e7f6fb;
}

.audit-status.is-done {
  color: #245f38;
  background: #eaf7ee;
}

.audit-table.is-flightdeckOps {
  min-width: 74rem;
}

.audit-table.is-flightdeckOps th:nth-child(1),
.audit-table.is-flightdeckOps td:nth-child(1) {
  width: 8rem;
}

.audit-table.is-flightdeckOps th:nth-child(2),
.audit-table.is-flightdeckOps td:nth-child(2) {
  width: 12rem;
}

.audit-table.is-flightdeckOps th:nth-child(3),
.audit-table.is-flightdeckOps td:nth-child(3) {
  width: 6.5rem;
}

.audit-table.is-flightdeckOps th:nth-child(4),
.audit-table.is-flightdeckOps td:nth-child(4) {
  width: 11rem;
}

.audit-table.is-flightdeckOps th:nth-child(5),
.audit-table.is-flightdeckOps td:nth-child(5) {
  width: 10rem;
}

.audit-table.is-flightdeckOps th:nth-child(6),
.audit-table.is-flightdeckOps td:nth-child(6) {
  width: 7rem;
}

.audit-table.is-flightdeckOps th:nth-child(7),
.audit-table.is-flightdeckOps td:nth-child(7) {
  width: 12rem;
}

.audit-table.is-flightdeckOps th:nth-child(8),
.audit-table.is-flightdeckOps td:nth-child(8) {
  width: 17rem;
}

.audit-table.is-flightdeckOps td:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audit-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border-top: 1px solid #c8d2da;
  color: var(--muted);
  background: #f7faf8;
  font-size: 0.82rem;
  font-weight: 900;
}

.audit-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.audit-pagination-actions .secondary-button {
  min-width: 5.75rem;
  height: 2.15rem;
  justify-content: center;
}

.audit-detail-overlay {
  align-items: center;
  justify-content: center;
}

.audit-detail-panel {
  width: min(72rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
}

.audit-detail-card {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  min-width: 0;
  overflow: hidden;
}

.audit-detail-header {
  flex: 0 0 auto;
}

.audit-detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem;
  border-bottom: 1px solid #c8d2da;
  background: #f7faf8;
}

.audit-detail-list div {
  min-width: 0;
  border: 1px solid #d9e1de;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #fff;
}

.audit-detail-list dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.audit-detail-list dd {
  margin: 0.12rem 0 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.audit-detail-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 0.75rem;
  padding: 0.75rem;
  overflow: auto;
}

.audit-detail-sections section {
  min-width: 0;
  border: 1px solid #d9e1de;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.audit-detail-sections h3 {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #d9e1de;
  color: #263331;
  background: #eef3f0;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.audit-detail-metadata {
  grid-column: 1 / -1;
}

.audit-detail-sections.is-ops {
  display: block;
}

.audit-ops-detail {
  border: 1px solid #d9e1de;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.audit-ops-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #d9e1de;
  background: #eef3f0;
}

.audit-ops-heading h3 {
  margin: 0;
  color: #263331;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.2;
}

.audit-ops-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0.75rem;
  background: #f8faf9;
}

.audit-ops-summary div {
  min-width: 0;
  border: 1px solid #d9e1de;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #fff;
}

.audit-ops-summary dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.audit-ops-summary dd {
  margin: 0.12rem 0 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.audit-ops-timeline {
  display: grid;
  gap: 0.4rem;
  border-top: 1px solid #d9e1de;
  padding: 0.65rem;
  background: #fbfdfc;
}

.audit-ops-timeline h4 {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.audit-ops-timeline-item {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) minmax(7rem, 11rem);
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #e2e8e5;
  border-radius: 8px;
  padding: 0.48rem 0.55rem;
  background: #fff;
  font-size: 0.78rem;
}

.audit-ops-timeline-item span,
.audit-ops-timeline-item em {
  min-width: 0;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-ops-timeline-item strong {
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .audit-ops-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-ops-timeline-item {
    grid-template-columns: 1fr;
  }
}

.audit-order-detail {
  grid-column: 1 / -1;
}

.audit-order-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-right: 0.65rem;
  border-bottom: 1px solid #d9e1de;
  background: #eef3f0;
}

.audit-order-heading h3 {
  flex: 1 1 auto;
  border: 0;
}

.audit-order-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.75rem;
  border-bottom: 1px solid #d9e1de;
  background: #f8faf9;
}

.audit-order-summary div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.audit-order-summary span,
.audit-order-items h4 span,
.audit-order-payments h4 span,
.audit-order-receipt h4 span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 950;
  text-transform: uppercase;
}

.audit-order-summary strong {
  color: var(--ink);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.audit-order-items h4,
.audit-order-payments h4,
.audit-order-receipt h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
}

.audit-order-receipt {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid #d9e1de;
  background: #ffffff;
}

.audit-order-receipt h4 {
  padding: 0 0 0.55rem;
}

.audit-order-receipt-lines {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.audit-order-receipt-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  color: var(--ink);
  font-size: 0.84rem;
}

.audit-order-receipt-line dt {
  min-width: 0;
  color: var(--muted);
  font-weight: 850;
}

.audit-order-receipt-line dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  white-space: nowrap;
}

.audit-order-receipt-line.is-total {
  margin-top: 0.25rem;
  padding-top: 0.45rem;
  border-top: 1px solid #d9e1de;
  font-size: 0.95rem;
}

.audit-order-receipt-line.is-total dt,
.audit-order-receipt-line.is-total dd {
  color: #0f3128;
  font-weight: 950;
}

.audit-order-table-wrap {
  overflow-x: auto;
}

.audit-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.audit-order-table th,
.audit-order-table td {
  padding: 0.5rem 0.65rem;
  border-top: 1px solid #e2e8e5;
  text-align: left;
  white-space: nowrap;
}

.audit-order-table th {
  color: var(--muted);
  background: #fbfdfc;
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.audit-order-table th:nth-child(n + 3),
.audit-order-table td:nth-child(n + 3) {
  text-align: right;
}

.audit-order-payments {
  border-top: 1px solid #d9e1de;
}

.audit-order-payment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.65rem;
  border-top: 1px solid #e2e8e5;
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .audit-order-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.audit-detail-json {
  max-height: 18rem;
  margin: 0;
  padding: 0.65rem;
  overflow: auto;
  color: #182528;
  background: #fbfdfc;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.audit-detail-empty {
  margin: 0;
  padding: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.audit-export-overlay {
  align-items: center;
  justify-content: center;
}

.audit-export-panel {
  width: min(28rem, calc(100vw - 2rem));
}

.audit-export-card {
  overflow: hidden;
}

.audit-export-body {
  padding: 0.85rem;
}

.audit-export-body p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.audit-export-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.audit-export-actions .primary-button,
.audit-export-actions .secondary-button {
  justify-content: center;
  min-height: 2.35rem;
}

.inventory-sheet-heading {
  position: relative;
  user-select: none;
}

.inventory-sheet-heading span:not(.inventory-column-resize) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: calc(100% - 0.4rem);
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-transform: inherit;
}

.inventory-sort-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-sort-button svg {
  flex: 0 0 auto;
  width: 0.78rem;
  height: 0.78rem;
  color: #687673;
  opacity: 0.58;
}

.inventory-sort-button:hover svg,
.inventory-sort-button.is-active svg {
  color: var(--forest);
  opacity: 1;
}

.inventory-column-resize {
  position: absolute;
  top: 0;
  right: -3px;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  z-index: 3;
}

.inventory-column-resize::after {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 3px;
  width: 1px;
  background: transparent;
}

.inventory-column-resize:hover::after {
  background: var(--forest);
}

.inventory-select-column {
  position: relative;
  text-align: center;
}

.inventory-actions-column,
.inventory-actions-cell {
  position: sticky;
  right: 0;
  width: 4.375rem;
  min-width: 4.375rem;
  max-width: 4.375rem;
  box-shadow: -1px 0 0 #c8d2da;
}

.inventory-actions-column {
  background: #eef3f0;
  z-index: 5;
}

.inventory-actions-cell {
  background: #fff;
  z-index: 3;
}

.inventory-table tbody tr.is-selected .inventory-actions-cell {
  background: #fff8e9;
}

.inventory-table tbody tr.is-menu-only .inventory-actions-cell {
  background: #f8fbff;
}

.inventory-table tbody tr:hover .inventory-actions-cell {
  background: #f7fbf9;
}

.inventory-select-column input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--forest);
  cursor: pointer;
}

.inventory-row-resize {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 7px;
  cursor: row-resize;
  z-index: 1;
}

.inventory-row-resize:hover {
  background: rgba(21, 88, 121, 0.14);
}

.inventory-cell-text {
  display: block;
  min-height: 1.15rem;
  overflow-wrap: anywhere;
}

.inventory-locations-text {
  color: #263331;
  font-weight: 850;
  line-height: 1.25;
}

.cooler-location-field {
  min-width: 0;
}

.cooler-row-editor .cooler-location-field {
  grid-column: 3 / -1;
}

.cooler-row-editor .cooler-location-field .inventory-location-picker {
  width: 100%;
  box-sizing: border-box;
}

.inventory-location-picker {
  position: relative;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  border: 1px solid #c8d2da;
  border-radius: 8px;
  padding: 0.36rem;
  background: #fbfdfb;
}

.inventory-location-picker.is-compact {
  min-width: 10.5rem;
  gap: 0.2rem;
  border-radius: 6px;
  padding: 0.28rem;
  background: #fff;
}

.inventory-location-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.28rem;
}

.inventory-location-picker.is-compact .inventory-location-options {
  grid-template-columns: 1fr;
  gap: 0.18rem;
}

.inventory-location-picker.is-empty {
  min-height: 2.25rem;
  align-items: center;
  color: #697773;
  font-size: 0.84rem;
  font-weight: 750;
}

.inventory-location-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  border: 1px solid rgba(95, 113, 108, 0.2);
  border-radius: 7px;
  padding: 0.3rem 0.42rem;
  background: #fff;
  color: #1f2e2b;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.inventory-location-picker.is-compact .inventory-location-choice {
  border: 0;
  border-radius: 5px;
  padding: 0.2rem 0.28rem;
  font-size: 0.78rem;
}

.inventory-location-choice:hover {
  border-color: rgba(21, 88, 121, 0.45);
  background: #f6fbf8;
}

.inventory-location-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.inventory-location-choice-box {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 0.92rem;
  height: 0.92rem;
  border: 1px solid #aab8b2;
  border-radius: 4px;
  background: #fff;
}

.inventory-location-choice-box::after {
  width: 0.52rem;
  height: 0.28rem;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  opacity: 0;
  transform: rotate(-45deg) translateY(-1px);
}

.inventory-location-choice input:checked + .inventory-location-choice-box {
  border-color: var(--forest);
  background: var(--forest);
}

.inventory-location-choice input:checked + .inventory-location-choice-box::after {
  opacity: 1;
}

.inventory-location-choice:has(input:checked) {
  border-color: rgba(21, 88, 121, 0.42);
  background: rgba(21, 88, 121, 0.08);
}

.inventory-location-choice:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(21, 88, 121, 0.16);
}

.inventory-location-choice-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-number-cell {
  text-align: right;
}

.inventory-package-stock,
.inventory-package-stock-button {
  display: block;
  width: 100%;
  min-height: 1.15rem;
  color: #172523;
  font-weight: 900;
  text-align: right;
}

.inventory-package-stock.is-empty {
  min-height: 1.15rem;
}

.inventory-package-stock-button {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.inventory-package-stock-button:hover,
.inventory-package-stock-button:focus-visible {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.inventory-menu-can-stock {
  font-weight: 900;
  text-align: right;
}

.inventory-location-status {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  color: var(--inventory-location-color, #5c6765);
  background: var(--inventory-location-bg, #eef3f0);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-cell-location-badge {
  vertical-align: middle;
}

.inventory-editor-location-badge {
  flex-shrink: 1;
}

.inventory-menu-stock-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.inventory-menu-stock-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
  border: 1px solid #c8d2da;
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  background: #f8fafc;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
}

.inventory-menu-stock-pill strong {
  font-size: 0.95rem;
  font-weight: 900;
  text-align: right;
}

.inventory-menu-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  color: #5c6765;
  background: #eef3f0;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.inventory-menu-status.is-active,
.inventory-menu-status.is-linked {
  color: #1e6f3c;
  background: #eaf7ee;
}

.inventory-menu-status.is-inactive {
  color: #8f3029;
  background: #fff1ef;
}

.inventory-menu-status.is-unlinked {
  color: #7a6238;
  background: #fff5dc;
}

.inventory-stock-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  color: #5c6765;
  background: #eef3f0;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.inventory-stock-status.is-linked,
.inventory-stock-status.is-stocked,
.inventory-stock-status.is-on-menu {
  color: #1e6f3c;
  background: #eaf7ee;
}

.inventory-stock-status.is-name-match,
.inventory-stock-status.is-auto-match {
  color: #155879;
  background: #e8f2f8;
}

.inventory-stock-status.is-needs-inventory {
  color: #8a5d0b;
  background: #fff4d4;
}

.inventory-stock-status.is-cooler-only {
  color: #155879;
  background: #e8f2f8;
}

.inventory-actions-cell {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
  align-items: center;
  padding-inline: 0.25rem;
}

.inventory-row-button {
  width: 1.45rem;
  height: 1.45rem;
  min-width: 1.45rem;
  justify-content: center;
  padding: 0;
  border-color: transparent;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.inventory-row-button svg {
  width: 0.9rem;
  height: 0.9rem;
}

.inventory-row-button:hover {
  color: var(--forest);
  background: rgba(16, 64, 96, 0.08);
}

.inventory-delete-button {
  color: #7d211f;
}

.inventory-delete-button:hover {
  color: #7d211f;
  background: rgba(125, 33, 31, 0.08);
}

.inventory-add-button {
  width: 5.75rem;
  min-width: 5.75rem;
}

.inventory-editor-title-block {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.inventory-editor-title-block h2 {
  margin: 0;
}

.inventory-editor-title-block span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.inventory-field-hint {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
}

.cooler-row-editor-grid {
  grid-template-columns: minmax(12rem, 0.9fr) minmax(9rem, 0.65fr) minmax(20rem, 1.85fr);
  align-items: start;
  gap: 0.7rem;
}

.cooler-row-editor .field-group input,
.cooler-row-editor .field-group select {
  min-height: 2.1rem;
}

.cooler-stock-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(4.75rem, 1fr));
  gap: 0.55rem;
  align-items: start;
}

.cooler-stock-field input {
  text-align: right;
}

.inventory-availability-field {
  justify-content: end;
}

.inventory-menu-price-grid {
  display: grid;
  gap: 0.45rem;
  border: 1px solid rgba(16, 64, 96, 0.14);
  border-radius: 8px;
  padding: 0.6rem;
  background: #f8faf7;
}

.inventory-menu-price-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(8rem, 10rem);
  gap: 0.5rem;
  align-items: center;
}

.inventory-menu-price-row.has-availability {
  grid-template-columns: minmax(8rem, 1fr) minmax(8rem, 10rem) minmax(7rem, auto);
}

.inventory-menu-price-row > label:first-child {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.inventory-link-list {
  display: grid;
  gap: 0.4rem;
  max-height: 22rem;
  overflow: auto;
  padding-right: 0.15rem;
}

.inventory-link-option {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  border: 1px solid #d6dedb;
  border-radius: 8px;
  padding: 0.55rem;
  background: #fff;
  cursor: pointer;
}

.inventory-link-option.is-selected,
.inventory-link-option:hover {
  border-color: var(--forest);
  background: #f2f7f4;
}

.inventory-link-option input {
  accent-color: var(--forest);
}

.inventory-link-option-main {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.inventory-link-option-main strong,
.inventory-link-option-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-link-option-main small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.inventory-link-qty {
  border: 1px solid rgba(16, 64, 96, 0.14);
  border-radius: 8px;
  min-width: 2.6rem;
  padding: 0.28rem 0.42rem;
  color: var(--forest);
  background: #e8f2f8;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
}

.inventory-import-summary {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(16, 64, 96, 0.18);
  border-radius: 0;
  padding: 0.5rem 0.75rem;
  color: var(--forest);
  background: #e8f2f8;
  font-size: 0.84rem;
}

.inventory-import-summary ul {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink);
}

.inventory-import-preview-panel {
  width: min(76rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.inventory-import-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.inventory-import-preview-header .secondary-button {
  min-height: 2.35rem;
  padding: 0.45rem 0.8rem;
}

.inventory-import-preview-help {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

.inventory-import-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
}

.inventory-import-preview-toolbar span {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 850;
}

.inventory-import-preview-toolbar .secondary-button {
  min-height: 2.15rem;
  padding: 0.35rem 0.7rem;
}

.inventory-import-preview-wrap {
  max-height: min(56vh, 34rem);
  overflow: auto;
  border: 1px solid #c8d2da;
  border-radius: 8px;
  background: #fff;
}

.inventory-import-preview-table {
  width: max-content;
  min-width: 70rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.82rem;
}

.inventory-import-preview-table.is-menu-upload {
  min-width: 92rem;
}

.inventory-import-preview-table th,
.inventory-import-preview-table td {
  border-right: 1px solid #c8d2da;
  border-bottom: 1px solid #c8d2da;
  padding: 0.4rem;
  vertical-align: top;
}

.inventory-import-preview-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef3f0;
  color: #263331;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-import-preview-table th:first-child,
.inventory-import-preview-table td:first-child {
  width: 3.25rem;
  text-align: center;
}

.inventory-import-preview-table th:nth-child(2),
.inventory-import-preview-table td:nth-child(2) {
  width: 4rem;
}

.inventory-import-preview-table th:nth-child(6),
.inventory-import-preview-table td:nth-child(6),
.inventory-import-preview-table th:nth-child(8),
.inventory-import-preview-table td:nth-child(8),
.inventory-import-preview-table th:nth-child(10),
.inventory-import-preview-table td:nth-child(10) {
  width: 5rem;
}

.inventory-import-preview-table input,
.inventory-import-preview-table select {
  width: 100%;
  min-height: 2rem;
  border: 1px solid #c8d2da;
  border-radius: 6px;
  padding: 0.35rem 0.45rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.inventory-import-preview-table select {
  padding-right: 1.65rem;
}

.inventory-import-preview-table .is-location {
  width: 13rem;
}

.inventory-import-preview-table .is-menu {
  width: 10.5rem;
}

.inventory-import-preview-table .is-type {
  width: 7.5rem;
}

.inventory-import-preview-table .is-name {
  width: 20rem;
}

.inventory-import-preview-table.is-menu-upload .is-name {
  width: 28rem;
}

.inventory-import-preview-table .is-category {
  width: 9rem;
}

.inventory-import-preview-table .is-price {
  width: 12rem;
}

.inventory-import-preview-table .is-status {
  width: 8rem;
}

.inventory-import-preview-table .is-stock {
  width: 7rem;
}

.inventory-import-preview-table .is-notes {
  width: 16rem;
}

.inventory-import-readonly-cell {
  display: block;
  min-height: 2rem;
  border: 1px solid #d7e0e7;
  border-radius: 6px;
  padding: 0.4rem 0.45rem;
  color: #5c6765;
  background: #f8fafc;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-import-preview-table input[type="checkbox"] {
  width: 1rem;
  min-height: 1rem;
  accent-color: var(--forest);
  cursor: pointer;
}

.inventory-import-preview-table .inventory-location-choice input {
  position: absolute;
  width: auto;
  min-height: 0;
  border: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.inventory-import-preview-table .inventory-location-picker {
  width: max-content;
  max-width: 100%;
}

.inventory-import-preview-table tr.has-errors {
  background: #fff7f4;
}

.inventory-import-preview-table tr.has-duplicate {
  background: #fffaf0;
}

.inventory-import-duplicate-count {
  margin-right: 0 !important;
  color: #79520c;
  font-weight: 850;
}

.inventory-import-row-error {
  display: block;
  margin-top: 0.25rem;
  color: #7d211f;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
}

.inventory-import-row-duplicate {
  display: block;
  margin-top: 0.25rem;
  color: #79520c;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
}

.inventory-import-preview-actions {
  margin-top: 0.85rem;
}

.form-success {
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(16, 64, 96, 0.18);
  border-radius: 0;
  padding: 0.5rem 0.75rem;
  color: var(--forest);
  background: #e8f2f8;
  font-weight: 800;
}

.menu-toast {
  width: min(18rem, 100%);
  border: 1px solid rgba(16, 64, 96, 0.18);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  text-align: right;
  box-shadow: none;
}


.inventory-card > .form-error {
  margin: 0;
  border-radius: 0;
  padding: 0.5rem 0.75rem;
}

.inventory-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.inventory-editor-header h2 {
  margin: 0;
}

.inventory-form,
.inventory-form-grid {
  display: grid;
  gap: 0.85rem;
}

.inventory-form .field-group {
  align-self: start;
  min-width: 0;
  margin-bottom: 0;
}

.inventory-form .field-group input,
.inventory-form .field-group select,
.inventory-form .field-group textarea {
  min-height: 2.1rem;
  padding: 0.52rem 0.62rem;
}

.inventory-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.inventory-editor-overlay {
  display: grid;
  place-items: center;
  z-index: 40;
}

.inventory-modal-panel {
  width: min(56rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.inventory-editor-modal {
  border-radius: 8px;
  padding: 1rem;
}

.pricing-rules-panel {
  width: min(72rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pricing-rules-helper {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.pricing-rules-table-wrap {
  overflow: auto;
  border: 1px solid #c8d2da;
  border-radius: 8px;
}

.pricing-rules-table {
  width: 100%;
  min-width: 58rem;
  border-collapse: collapse;
}

.pricing-rules-table th,
.pricing-rules-table td {
  border-right: 1px solid #c8d2da;
  border-bottom: 1px solid #c8d2da;
  padding: 0.45rem;
  text-align: left;
}

.pricing-rules-table th {
  background: #eef3f0;
  color: #263331;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-rules-table td {
  font-size: 0.85rem;
  font-weight: 700;
}

.pricing-rules-table input {
  width: 100%;
  border: 1px solid #c8d2da;
  border-radius: 6px;
  padding: 0.45rem 0.5rem;
}

.pricing-rule-save {
  height: 2rem;
}

.inventory-form textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.account-directory-state {
  margin: 0;
  padding: 1rem;
  color: var(--muted);
  font-weight: 700;
}

.account-directory-card .form-error {
  margin: 1rem;
}


.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-soft);
}

.menu-workspace-grid {
  grid-template-columns: minmax(17rem, 20rem) minmax(0, 1fr);
  align-items: start;
}

.menu-pages-column,
.menu-main-column {
  display: grid;
  gap: 1rem;
}

.menu-pages-column {
  align-content: start;
}

.menu-pages-card,
.menu-items-card,
.menu-editor-card,
.menu-create-card {
  min-width: 0;
}

.menu-pages-header,
.menu-items-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.menu-pages-header {
  align-items: center;
  flex-wrap: wrap;
}

.menu-pages-header .menu-create-button {
  min-height: 2.35rem;
  min-width: 8.25rem;
}

.menu-page-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}

.menu-page-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
  color: var(--ink);
  background: var(--surface-soft);
  text-align: left;
  cursor: pointer;
}

.menu-page-tab.is-active,
.menu-page-tab:hover,
.menu-page-tab:focus-visible {
  border-color: rgba(21, 88, 121, 0.34);
  background: rgba(16, 64, 96, 0.08);
  outline: none;
}

.menu-page-tab-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.menu-page-tab-copy strong,
.menu-item-name strong {
  display: block;
}

.menu-item-name {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.menu-item-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.menu-page-tab-copy small,
.menu-item-copy > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.menu-page-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.menu-page-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  max-width: 100%;
  min-height: 1.55rem;
  border: 1px solid rgba(24, 56, 72, 0.12);
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.73rem;
  line-height: 1;
}

.menu-page-meta-item span {
  color: var(--muted);
  font-weight: 800;
}

.menu-page-meta-item strong {
  overflow: hidden;
  max-width: 9rem;
  color: var(--ink);
  font-size: inherit;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-item-icon,
.menu-item-icon-placeholder {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 8px;
  flex: 0 0 auto;
}

.menu-item-icon-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-soft);
}

.menu-item-icon-placeholder svg {
  width: 1.65rem;
  height: 1.65rem;
}

.menu-item-icon-preview,
.menu-item-icon-empty {
  width: 8.7rem;
  height: 8.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex: 0 0 auto;
}

.menu-item-icon,
.menu-item-icon-preview {
  object-fit: cover;
}

.menu-item-icon-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--surface-soft);
}

.menu-item-icon-empty svg {
  width: 2.25rem;
  height: 2.25rem;
}

.menu-icon-upload {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  cursor: pointer;
}

.menu-icon-upload:hover .menu-item-icon-preview,
.menu-icon-upload:hover .menu-item-icon-empty,
.menu-icon-upload:focus-within .menu-item-icon-preview,
.menu-icon-upload:focus-within .menu-item-icon-empty {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 4px rgba(21, 88, 121, 0.14);
}

.menu-icon-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.menu-beer-primary-fields {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.menu-beer-primary-fields .field-group {
  margin-bottom: 0;
}

.menu-beer-details {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.menu-cost-table-field {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.menu-pricing-mode {
  display: grid;
  grid-template-columns: auto minmax(16rem, max-content) minmax(12rem, 1fr);
  align-items: center;
  gap: 0.55rem 0.7rem;
  min-width: 0;
  border: 1px solid #c8d2da;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background: #f7faf9;
}

.menu-pricing-mode-label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
}

.menu-pricing-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  min-width: 0;
  border: 1px solid #bfcac6;
  border-radius: 7px;
  padding: 0.2rem;
  background: #fff;
}

.menu-pricing-mode-button {
  min-height: 2rem;
  border: 0;
  border-radius: 5px;
  padding: 0.35rem 0.6rem;
  color: #53645f;
  background: transparent;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.menu-pricing-mode-button:hover {
  background: #edf3f0;
}

.menu-pricing-mode-button.is-active {
  color: #fff;
  background: var(--forest);
}

.menu-pricing-mode small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.25;
}

.menu-cost-table-title {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.menu-cost-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.menu-cost-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8rem, 12rem);
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.menu-cost-row.has-stock-toggle {
  grid-template-columns: minmax(0, 1fr) minmax(8rem, 11rem) auto;
}

.menu-cost-label {
  min-width: 0;
}

.menu-cost-stock-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.menu-cost-stock-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-cost-stock-toggle .menu-toggle-track {
  width: 2.65rem;
  height: 1.4rem;
  flex: 0 0 auto;
}

.menu-cost-stock-toggle .menu-toggle-thumb {
  width: 0.92rem;
  height: 0.92rem;
}

.menu-cost-stock-toggle input:checked + .menu-toggle-track {
  border-color: rgba(31, 90, 46, 0.26);
  background: #eff7ed;
}

.menu-cost-stock-toggle input:checked + .menu-toggle-track .menu-toggle-thumb {
  background: #1f5a2e;
  transform: translateX(1.24rem);
}

.menu-cost-stock-toggle input:focus-visible + .menu-toggle-track {
  box-shadow: 0 0 0 4px rgba(21, 88, 121, 0.14);
}


.menu-cost-row:last-child {
  border-bottom: 0;
}

.menu-cost-input-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.menu-cost-input-wrap span {
  color: var(--muted);
  font-weight: 900;
}

.menu-cost-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 1px solid #c8d2da;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.menu-cost-input-wrap input:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 4px rgba(21, 88, 121, 0.14);
}

.menu-availability-field {
  gap: 0.5rem;
}

.menu-availability-label {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.menu-availability-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.menu-availability-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-toggle-track {
  position: relative;
  width: 3rem;
  height: 1.55rem;
  border: 1px solid rgba(125, 33, 31, 0.26);
  border-radius: 999px;
  background: #fff0ec;
  transition: background 160ms ease, border-color 160ms ease;
}

.menu-toggle-thumb {
  position: absolute;
  top: 0.18rem;
  left: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #7d211f;
  transition: background 160ms ease, transform 160ms ease;
}

.menu-availability-toggle input:checked + .menu-toggle-track {
  border-color: rgba(31, 90, 46, 0.26);
  background: #eff7ed;
}

.menu-availability-toggle input:checked + .menu-toggle-track .menu-toggle-thumb {
  background: #1f5a2e;
  transform: translateX(1.42rem);
}

.menu-availability-toggle input:focus-visible + .menu-toggle-track {
  box-shadow: 0 0 0 4px rgba(21, 88, 121, 0.14);
}

.menu-availability-toggle input:disabled + .menu-toggle-track {
  border-color: rgba(120, 134, 146, 0.26);
  background: #eef2f4;
}

.menu-availability-toggle input:disabled + .menu-toggle-track .menu-toggle-thumb {
  background: #7b8790;
}

.menu-page-edit {
  width: 2.4rem;
  height: 2.4rem;
  min-width: 2.4rem;
  padding: 0;
}

.menu-page-edit {
  color: var(--forest-2);
}


.menu-page-edit svg {
  width: 0.95rem;
  height: 0.95rem;
}

.menu-active-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.menu-active-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-active-toggle .menu-toggle-track {
  width: 2.65rem;
  height: 1.4rem;
  flex: 0 0 auto;
}

.menu-active-toggle .menu-toggle-thumb {
  top: 0.18rem;
  left: 0.2rem;
  width: 0.92rem;
  height: 0.92rem;
}

.menu-active-toggle input:checked + .menu-toggle-track {
  border-color: rgba(31, 90, 46, 0.26);
  background: #eff7ed;
}

.menu-active-toggle input:checked + .menu-toggle-track .menu-toggle-thumb {
  background: #1f5a2e;
  transform: translateX(1.24rem);
}

.menu-active-toggle input:focus-visible + .menu-toggle-track {
  box-shadow: 0 0 0 4px rgba(21, 88, 121, 0.14);
}

.menu-active-toggle input:checked ~ .menu-active-toggle-text {
  color: var(--forest-2);
}



.menu-items-title {
  display: grid;
  min-width: 0;
  gap: 0.65rem;
}

.menu-items-title h2 {
  margin-bottom: 0;
}

.menu-items-title .menu-page-meta {
  gap: 0.45rem;
}

.menu-items-title .menu-page-meta-item {
  border-color: rgba(21, 88, 121, 0.18);
  background: var(--surface-soft);
}

.menu-items-title .menu-page-meta-item strong {
  max-width: 14rem;
}

.menu-items-title p {
  margin-top: 0;
}

.menu-create-button {
  width: fit-content;
  min-width: 9rem;
  padding-inline: 0.9rem;
}

.menu-items-summary {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.menu-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.menu-add-item-button {
  width: auto;
  min-width: 7.75rem;
  padding-inline: 0.85rem;
}

.menu-search-form {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) auto auto;
  gap: 0.4rem;
  align-items: center;
  flex: 0 1 19rem;
  min-width: min(100%, 14rem);
  margin-left: auto;
}

.menu-search-form input {
  width: 100%;
  height: 2.45rem;
  border: 1px solid #c8d2da;
  border-radius: 8px;
  padding: 0 0.75rem;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.menu-search-form input:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 4px rgba(21, 88, 121, 0.14);
}

.menu-source-picker {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.menu-source-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.menu-source-picker-header h3 {
  margin: 0;
  font-size: 1rem;
}

.menu-source-search-form {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) auto;
  gap: 0.4rem;
  align-items: center;
}

.menu-source-search-form input {
  width: 100%;
  height: 2.45rem;
  border: 1px solid #c8d2da;
  border-radius: 8px;
  padding: 0 0.75rem;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.menu-source-search-form input:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 4px rgba(21, 88, 121, 0.14);
}

.menu-source-search-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: max-content;
}

.menu-source-picker-list {
  display: grid;
  gap: 0.45rem;
  max-height: 18rem;
  overflow: auto;
}

.menu-source-batch-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.55rem;
  border: 1px solid rgba(5, 68, 94, 0.12);
  border-radius: 8px;
  background: #eef7fb;
}

.menu-source-selected-count {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin-right: auto;
  color: #23536a;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.menu-source-batch-bar .secondary-button,
.menu-source-batch-bar .primary-button {
  min-height: 2rem;
  padding: 0.38rem 0.72rem;
  font-size: 0.78rem;
}

.menu-source-picker-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.menu-source-picker-row.is-selectable {
  cursor: pointer;
}

.menu-source-picker-row.is-selectable:hover,
.menu-source-picker-row.is-selectable:focus-visible,
.menu-source-picker-row.is-selected {
  border-color: rgba(5, 68, 94, 0.28);
  background: #f1f8fb;
}

.menu-source-picker-row.is-selectable:focus-visible {
  outline: 3px solid rgba(21, 88, 121, 0.18);
  outline-offset: 2px;
}

.menu-source-select-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.menu-source-select-control span,
.menu-source-select-spacer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid #9bb4c0;
  border-radius: 5px;
  background: var(--surface);
}

.menu-source-picker-row.is-selected .menu-source-select-control span {
  border-color: #155879;
  background: #155879;
  box-shadow: inset 0 0 0 3px var(--surface);
}

.menu-source-picker-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.menu-source-picker-copy strong,
.menu-source-picker-copy small {
  overflow-wrap: anywhere;
}

.menu-source-picker-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.menu-source-picker-icon {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.menu-source-add-button {
  grid-column: 2;
  width: fit-content;
  min-width: 4.5rem;
  justify-content: center;
}

.menu-search-button,
.menu-clear-button {
  width: 2.45rem;
  height: 2.45rem;
  min-width: 2.45rem;
  padding: 0;
}

.menu-search-button svg,
.menu-clear-button svg {
  width: 1rem;
  height: 1rem;
}

.menu-search-button {
  color: var(--forest-2);
}

.menu-clear-button {
  color: #7d211f;
}

.menu-clear-button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.menu-table-wrap {
  margin-top: 1rem;
  width: 100%;
  height: auto;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
}

.menu-table-wrap.is-scrollable {
  height: 24rem;
  max-height: 24rem;
}

.menu-table {
  min-width: 42rem;
  table-layout: fixed;
}

.menu-icon-column,
.menu-icon-cell {
  width: 7.5rem;
  text-align: center;
  white-space: nowrap;
}

.menu-item-column {
  width: auto;
}

.menu-style-column,
.menu-style-cell {
  width: 9rem;
  white-space: nowrap;
}

.menu-price-column,
.menu-price-cell {
  width: 8rem;
  white-space: nowrap;
}

.menu-price-cell.is-not-in-stock {
  color: #7d211f;
  font-weight: 900;
}


.menu-actions-column,
.menu-actions-cell {
  width: 7rem;
  min-width: 7rem;
}

.menu-actions-cell {
  text-align: right;
  white-space: nowrap;
}

.menu-action-button {
  min-width: 5rem;
  height: 2.25rem;
  margin-left: 0.45rem;
}

.menu-action-button:first-child {
  margin-left: 0;
}

.menu-table-icon-action {
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  padding: 0;
  color: var(--forest-2);
}

.menu-table-icon-action + .menu-table-icon-action {
  margin-left: 0.4rem;
}

.menu-table-icon-action svg {
  width: 0.95rem;
  height: 0.95rem;
}


.menu-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.menu-editor-header h2 {
  margin: 0;
}

.menu-editor-form,
.menu-editor-grid {
  display: grid;
  gap: 0.85rem;
}

.menu-editor-form .field-group {
  min-width: 0;
}

.menu-editor-form textarea {
  max-width: 100%;
  min-width: 0;
  resize: vertical;
}

.menu-editor-feedback {
  margin: 0;
}


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

.menu-create-form textarea {
  min-height: 8rem;
}

.menu-description-count {
  justify-self: end;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: grid;
  gap: 0.25rem;
  border-bottom: 1px solid #dbe4ea;
  padding-bottom: 0.7rem;
}

.detail-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-list span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-list strong {
  font-size: 1rem;
}

.activity-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.activity-dot {
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.activity-copy strong {
  display: block;
}

.activity-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.back-row {
  margin-bottom: 0.9rem;
}

@media (max-width: 1120px) {
  .dashboard-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 30rem;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 0.8rem 1rem;
  }

  .sidebar .brand-lockup,
  .sidebar-status {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    gap: 0.45rem;
    margin-top: 0;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .sidebar-link {
    flex: 0 0 auto;
  }

  .topbar {
    align-items: flex-start;
  }

  .weather-status {
    margin-left: auto;
  }

  .weather-place {
    display: none;
  }

  .mobile-brand {
    display: block;
  }

  .user-chip {
    display: none;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .menu-items-header {
    flex-direction: column;
  }

  .menu-items-summary {
    justify-items: start;
  }

  .menu-toast {
    text-align: left;
  }

  .menu-table {
    min-width: 40rem;
  }

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

  .accounts-workspace-grid {
    grid-template-columns: 1fr;
  }

  .account-directory-header {
    align-items: stretch;
  }

  .account-list {
    max-height: none;
  }

  .account-search-form,
  .inventory-search-form,
  .menu-search-form {
    width: 100%;
    margin-left: 0;
  }

  .inventory-upload-actions {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .menu-source-batch-bar {
    align-items: stretch;
  }

  .menu-source-selected-count,
  .menu-source-batch-bar .secondary-button,
  .menu-source-batch-bar .primary-button {
    width: 100%;
    justify-content: center;
    margin-right: 0;
  }

  .menu-source-picker-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .menu-source-add-button {
    grid-column: 2;
    width: 100%;
    justify-content: center;
  }

  .menu-pricing-mode {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .account-search-form {
    grid-template-columns: minmax(0, 1fr) 2.45rem;
  }

  .login-brand {
    min-height: auto;
  }

  .login-feature h1 {
    max-width: 9ch;
  }

  .login-brand-hero-logo {
    width: min(14rem, 76%);
  }

  .login-form-area {
    place-items: start stretch;
  }

  .dashboard-app-grid {
    grid-template-columns: 1fr;
  }

  .applications-section {
    padding: 0.85rem;
  }

  .launch-app-row {
    grid-template-columns: 1fr;
    gap: 0.58rem;
  }

  .launch-app-row-main {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.62rem;
  }

  .launch-app-icon {
    width: 2.35rem;
    height: 2.35rem;
  }

  .launch-app-row .status-pill,
  .launch-app-row .health-dot {
    display: none;
  }

  .launch-app-order-controls {
    flex: 0 0 auto;
  }

  .launch-app-actions {
    width: 100%;
    justify-content: stretch;
  }

  .launch-app-actions .launch-app-action {
    flex: 1 1 auto;
  }

  .inventory-search-form,
  .inventory-form-grid,
  .menu-search-form,
  .menu-source-search-form,
  .menu-editor-grid {
    grid-template-columns: 1fr;
  }

  .menu-add-item-button,
  .menu-source-add-button,
  .inventory-upload-actions .primary-button,
  .inventory-upload-button {
    width: 100%;
  }

  .menu-search-form {
    grid-template-columns: minmax(0, 1fr) 2.45rem 2.45rem;
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .menu-source-search-form {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .menu-search-button,
  .menu-clear-button {
    width: 2.45rem;
  }

  .menu-source-picker-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .menu-source-add-button {
    grid-column: 2;
    width: 100%;
    justify-content: center;
  }

  .topbar {
    flex-direction: column;
  }

  .weather-status {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .weather-place {
    display: inline;
    margin-left: auto;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .text-button {
    min-width: 6.25rem;
  }

  .user-greeting {
    max-width: calc(100vw - 8.5rem);
  }

  .profile-panel {
    width: 100%;
  }

  .profile-picture-field {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-picture-control {
    width: 100%;
  }

  .profile-picture-reset {
    align-self: flex-start;
  }

  .profile-app-privileges {
    grid-template-columns: 1fr;
  }

  .profile-superuser-checkbox {
    max-width: none;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    flex-direction: column-reverse;
  }

  .profile-actions .primary-button,
  .profile-actions .secondary-button {
    width: 100%;
  }

  .content {
    padding-inline: 0.9rem;
  }

  .workspace-hero {
    grid-template-columns: 1fr;
  }

  .menu-beer-primary-fields,
  .menu-cost-row,
  .menu-cost-row.has-stock-toggle {
    grid-template-columns: 1fr;
  }

  .menu-page-tab {
    align-items: flex-start;
  }

  .menu-items-summary {
    width: 100%;
  }

  .menu-create-button {
    width: 100%;
  }
}

/* Menu workspace refinement: stable list/list/detail panes. */
.menu-workspace-grid {
  grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
  align-items: start;
}

.menu-list-card,
.menu-detail-card {
  min-width: 0;
}

.menu-list-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1rem;
}

.menu-list-header,
.menu-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.menu-list-header {
  align-items: center;
}

.menu-list-header-with-filter {
  align-items: flex-end;
  flex-wrap: wrap;
}

.menu-list-title {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.menu-location-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.menu-location-filter select {
  min-width: 10rem;
  max-width: 14rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.42rem 0.55rem;
  color: var(--ink);
  background: var(--surface-soft);
  font: inherit;
  font-weight: 700;
}

.menu-list-header h2,
.menu-detail-title h2 {
  margin: 0;
}

.menu-main-column {
  display: block;
  min-width: 0;
}

.menu-detail-card {
  display: grid;
  gap: 0.95rem;
}

.menu-detail-title {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.menu-detail-title .eyebrow {
  margin: 0;
}

.menu-detail-title p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.menu-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.menu-detail-meta > span:not(.menu-status-badge) {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  border: 1px solid rgba(24, 56, 72, 0.12);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: rgba(255, 255, 255, 0.72);
}

.menu-detail-meta > .menu-active-item-count:not(.menu-status-badge) {
  border-color: rgba(31, 90, 46, 0.2);
  color: #1f5a2e;
  background: #eff7ed;
}

.menu-detail-close {
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  padding: 0;
  color: #7d211f;
  background: #fff7f4;
  cursor: pointer;
}

.menu-detail-close svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.5;
}

.menu-detail-close:hover,
.menu-detail-close:focus-visible {
  border-color: rgba(125, 33, 31, 0.28);
  color: #5f1715;
  background: #fff0ec;
  box-shadow: 0 0 0 4px rgba(125, 33, 31, 0.1);
}

.menu-detail-close:active {
  transform: translateY(1px);
}

.menu-page-list {
  gap: 0.5rem;
  margin: 0;
}

.menu-page-tab {
  min-height: 3.25rem;
  padding: 0.65rem 0.7rem;
}

.menu-page-tab-copy {
  gap: 0.24rem;
}

.menu-page-tab-copy strong,
.menu-page-tab-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-create-row {
  justify-content: flex-start;
  border-color: rgba(21, 88, 121, 0.22);
  background: rgba(21, 88, 121, 0.06);
}

.menu-create-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  color: #fff;
  background: var(--forest-2);
  flex: 0 0 auto;
}

.menu-create-row-icon svg {
  width: 1rem;
  height: 1rem;
}

.menu-location-card,
.menu-menu-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  cursor: default;
}

.menu-location-card .menu-location-select,
.menu-menu-card .menu-menu-select {
  display: grid;
  min-width: 0;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.menu-location-card .menu-page-edit,
.menu-menu-card .menu-page-edit {
  align-self: center;
}

.menu-location-active-field {
  margin-bottom: 0;
}

.menu-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.35rem;
  border-radius: 999px;
  padding: 0.16rem 0.46rem;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.menu-status-badge.is-active {
  color: #1f5a2e;
  background: #eff7ed;
}

.menu-status-badge.is-inactive {
  color: #7d211f;
  background: #fff0ec;
}

.menu-active-toggle.compact {
  width: 2.65rem;
  min-height: 2.35rem;
  justify-content: center;
  gap: 0;
}

.menu-active-toggle.compact .menu-toggle-track {
  margin: 0;
}

.menu-create-button {
  min-width: 0;
}

.menu-toolbar {
  justify-content: flex-end;
  margin-top: 0;
}

.menu-search-form {
  grid-template-columns: minmax(11rem, 18rem) auto;
  flex: 0 1 21rem;
  margin-left: 0;
}

.menu-source-picker.is-panel {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-source-picker-card {
  min-height: clamp(34rem, calc(100vh - 18rem), 50rem);
  align-content: start;
}

.menu-source-picker-card .menu-source-picker.is-panel {
  min-height: 0;
}

.menu-source-picker-card .menu-source-picker-list {
  max-height: clamp(24rem, calc(100vh - 28rem), 38rem);
}

.menu-source-search-form {
  grid-template-columns: minmax(12rem, 1fr) auto;
}

.menu-source-picker-copy {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.menu-source-picker-copy strong,
.menu-source-picker-copy small {
  grid-column: 2;
}

.menu-source-picker-icon {
  grid-row: 1 / span 3;
}

.menu-table {
  min-width: 34rem;
}

.menu-icon-column,
.menu-icon-cell {
  width: 5.8rem;
}

.menu-style-column,
.menu-style-cell {
  width: 8rem;
}

.menu-price-column,
.menu-price-cell {
  width: 7.5rem;
}

.menu-actions-column,
.menu-actions-cell {
  width: 4.5rem;
  min-width: 4.5rem;
}

.menu-table-icon-action {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
}

.menu-form-card .menu-create-form textarea {
  min-height: 7rem;
}

@media (max-width: 1180px) {
  .menu-workspace-grid {
    grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .menu-workspace-grid {
    grid-template-columns: 1fr;
  }

  .menu-main-column {
    grid-column: auto;
  }

  .menu-detail-header {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .menu-search-form,
  .menu-source-search-form {
    grid-template-columns: minmax(0, 1fr) 2.45rem;
  }
}

/* Selected-menu item card rows. */
.menu-item-card-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.menu-item-card-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.68rem 0.72rem;
  background: var(--surface-soft);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.menu-item-card-row:hover,
.menu-item-card-row:focus-within {
  border-color: rgba(21, 88, 121, 0.34);
  background: rgba(21, 88, 121, 0.07);
  box-shadow: inset 3px 0 0 var(--forest-2);
}

.menu-item-action-row {
  width: 100%;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.menu-item-action-row .menu-create-row-icon {
  background: var(--forest-2);
}

.menu-item-action-spacer {
  width: 2.25rem;
  height: 2.25rem;
}

.menu-item-empty-state {
  margin: 0.35rem 0 0;
}

.menu-item-card-row .menu-item-icon,
.menu-item-card-row .menu-item-icon-placeholder {
  width: 3rem;
  height: 3rem;
}

.menu-item-card-row .menu-item-icon-placeholder svg {
  width: 1.15rem;
  height: 1.15rem;
}

.menu-item-card-row .menu-item-copy {
  min-width: 0;
}

.menu-item-card-row .menu-item-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-item-card-row .menu-table-icon-action {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
}

.menu-item-subline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.34rem;
  margin-top: 0.2rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
}

.menu-item-subline .menu-item-style {
  display: inline;
  color: var(--muted);
  font: inherit;
}

.menu-item-subline .menu-item-style::after {
  content: "·";
  margin-left: 0.34rem;
  color: rgba(24, 56, 72, 0.36);
}

.menu-price-options {
  color: var(--ink);
  font: inherit;
  overflow-wrap: anywhere;
}

.menu-price-status.is-not-in-stock {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  border-radius: 999px;
  padding: 0.14rem 0.46rem;
  color: #7d211f;
  background: #fff0ec;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}


/* Menu CSV import modal. */
.menu-import-overlay {
  place-items: center;
  padding: 1rem;
}

.menu-import-modal-panel {
  width: min(76rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.menu-import-card {
  display: grid;
  gap: 0.9rem;
  border-radius: 8px;
  padding: clamp(0.9rem, 2vw, 1.15rem);
}

.menu-import-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  min-width: 0;
  border-bottom: 1px solid rgba(200, 210, 218, 0.72);
  padding-bottom: 0.75rem;
}

.menu-import-title {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.menu-import-title h2,
.menu-import-title span {
  overflow-wrap: anywhere;
}

.menu-import-title span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.menu-import-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.menu-import-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  border: 1px solid rgba(200, 210, 218, 0.78);
  border-radius: 8px;
  padding: 0.48rem 0.58rem;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.82rem;
  font-weight: 900;
}

.menu-import-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  color: #ffffff;
  background: #8aa0aa;
  font-size: 0.72rem;
}

.menu-import-step strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-import-step.is-active {
  border-color: rgba(48, 109, 137, 0.32);
  color: #23536a;
  background: #eef7fb;
}

.menu-import-step.is-active > span,
.menu-import-step.is-complete > span {
  background: var(--forest-2);
}

.menu-import-step.is-complete {
  color: #1f5a2e;
  background: #eff8ee;
}

.menu-import-body {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.menu-import-target {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  border: 1px solid rgba(48, 109, 137, 0.16);
  border-radius: 8px;
  padding: 0.58rem 0.68rem;
  background: linear-gradient(180deg, #f5fbfd, #fffdf8);
}

.menu-import-target span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-import-target strong {
  color: var(--ink);
  font-weight: 950;
}

.menu-import-target em {
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
  color: #23536a;
  background: #e8f2f8;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}

.menu-import-upload-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
  gap: 0.75rem;
  min-width: 0;
}

.menu-import-dropzone,
.menu-import-template {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  border: 1px solid rgba(200, 210, 218, 0.82);
  border-radius: 8px;
  padding: 0.85rem;
  background: var(--surface-soft);
}

.menu-import-dropzone {
  align-content: center;
  cursor: pointer;
}

.menu-import-dropzone:hover,
.menu-import-dropzone:focus-within {
  border-color: rgba(21, 88, 121, 0.34);
  background: rgba(21, 88, 121, 0.07);
}

.menu-import-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.menu-import-dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 8px;
  color: #ffffff;
  background: var(--forest-2);
}

.menu-import-dropzone-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.menu-import-dropzone strong,
.menu-import-template > strong {
  color: var(--ink);
  font-weight: 950;
}

.menu-import-dropzone span:not(.menu-import-dropzone-icon) {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.menu-import-column-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.menu-import-column-pills span,
.menu-import-status,
.menu-import-count-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.45rem;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}

.menu-import-count-badge {
  gap: 0.25rem;
  white-space: nowrap;
}

.menu-import-count-badge > span {
  white-space: nowrap;
}

.menu-import-column-pills span {
  color: #23536a;
  background: #e8f2f8;
}

.menu-import-review-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.menu-import-review-summary .menu-import-count-badge {
  color: #3f5158;
  background: #f3f6f7;
}

.menu-import-review-summary .is-ready {
  color: #1f5a2e;
  background: #eff8ee;
}

.menu-import-review-summary .is-duplicate {
  color: #8a5a00;
  background: #fff6e7;
}

.menu-import-review-summary .is-error {
  color: #7d211f;
  background: #fff0ec;
}

.menu-import-help,
.menu-import-duplicate-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.menu-import-review-list {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.menu-import-review-row {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  border: 1px solid rgba(200, 210, 218, 0.82);
  border-radius: 8px;
  padding: 0.78rem;
  background: #ffffff;
}

.menu-import-review-row.is-ready {
  box-shadow: inset 3px 0 0 rgba(31, 90, 46, 0.34);
}

.menu-import-review-row.is-duplicate {
  box-shadow: inset 3px 0 0 rgba(217, 149, 47, 0.48);
}

.menu-import-review-row.is-error {
  background: #fffaf8;
  box-shadow: inset 3px 0 0 rgba(125, 33, 31, 0.36);
}

.menu-import-review-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.menu-import-review-head > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-import-status.is-ready {
  color: #1f5a2e;
  background: #eff8ee;
}

.menu-import-status.is-duplicate {
  color: #8a5a00;
  background: #fff6e7;
}

.menu-import-status.is-error {
  color: #7d211f;
  background: #fff0ec;
}

.menu-import-action-select {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.menu-import-action-select span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-import-action-select select,
.menu-import-row-fields input,
.menu-import-row-fields select,
.menu-import-price-field input {
  min-height: 2.05rem;
  border: 1px solid #c8d2da;
  border-radius: 8px;
  padding: 0.42rem 0.52rem;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 800;
}

.menu-import-row-fields {
  display: grid;
  grid-template-columns: minmax(11rem, 1.1fr) minmax(8rem, 0.72fr) minmax(12rem, 1.3fr);
  gap: 0.55rem;
  min-width: 0;
}

.menu-import-row-fields .field-group {
  gap: 0.24rem;
}

.menu-import-row-fields .field-group > span,
.menu-import-price-field > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-import-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.5rem;
  min-width: 0;
}

.menu-import-price-field {
  display: grid;
  gap: 0.24rem;
  min-width: 0;
}

.menu-import-price-field.is-empty input {
  color: #7d211f;
  background: #fff8f5;
}

.menu-import-row-errors {
  margin: 0;
  padding-left: 1.1rem;
  color: #7d211f;
  font-size: 0.78rem;
  font-weight: 850;
}

.menu-import-actions {
  margin-top: 0.2rem;
}

.menu-import-complete {
  justify-items: center;
  padding: 1rem 0 0.2rem;
  text-align: center;
}

.menu-import-complete-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  color: #ffffff;
  background: var(--forest-2);
}

.menu-import-complete-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.menu-import-complete h3,
.menu-import-complete p {
  margin: 0;
}

.menu-import-complete p {
  color: var(--muted);
  font-weight: 750;
}

.menu-import-complete-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.menu-import-complete-grid .menu-import-count-badge {
  color: #23536a;
  background: #e8f2f8;
}


@media (max-width: 760px) {
  .menu-import-modal-panel {
    width: min(100%, calc(100vw - 1rem));
    max-height: calc(100vh - 1rem);
  }

  .menu-import-card {
    padding: 0.78rem;
  }

  .menu-import-stepper,
  .menu-import-upload-grid,
  .menu-import-row-fields,
  .menu-import-review-head {
    grid-template-columns: 1fr;
  }

  .menu-import-action-select {
    display: grid;
    width: 100%;
  }

  .menu-import-action-select select {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .location-detail-tabs {
    grid-template-columns: 1fr;
    width: 100%;
  }

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

  .location-photo-add,
  .location-photo-card {
    min-height: 8.6rem;
  }
}

@media (max-width: 620px) {
  .menu-item-card-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding: 0.62rem;
  }

  .menu-item-card-row .menu-item-icon,
  .menu-item-card-row .menu-item-icon-placeholder {
    width: 2.45rem;
    height: 2.45rem;
  }
}

/* Locations workspace. */
.locations-workspace-grid {
  grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr);
  align-items: start;
}

.location-list-avatar,
.location-summary-icon {
  background: #2f7d4f;
}

.location-detail {
  display: grid;
  gap: 1rem;
}

.location-detail-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  width: min(100%, 34rem);
  border: 1px solid rgba(200, 210, 218, 0.86);
  border-radius: 8px;
  padding: 0.35rem;
  background: #f7fbfa;
}

.location-detail-tab {
  min-height: 2.35rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.location-detail-tab:hover,
.location-detail-tab:focus-visible {
  color: var(--forest);
  background: #e8f2f8;
}

.location-detail-tab.is-active {
  border-color: rgba(47, 125, 79, 0.32);
  color: #1f5a2e;
  background: #eff7ed;
  box-shadow: inset 0 0 0 1px rgba(47, 125, 79, 0.12);
}

.location-physical-panel,
.location-physical-editor,
.location-category-panel,
.location-category-editor {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.location-physical-editor .location-editor-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.location-physical-state-field {
  max-width: 18rem;
}

.location-layout-section {
  gap: 0.85rem;
}

.location-layout-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.42fr);
  gap: 0.85rem;
  align-items: start;
  min-width: 0;
}

.location-layout-canvas-panel {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.location-layout-toolbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  min-width: 0;
}

.location-layout-tool {
  min-height: 2.15rem;
  border: 1px solid rgba(16, 64, 96, 0.14);
  border-radius: 8px;
  padding: 0.42rem 0.62rem;
  color: var(--forest);
  background: #f1f7f4;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.location-layout-tool:hover:not(:disabled),
.location-layout-tool:focus-visible:not(:disabled) {
  border-color: rgba(21, 88, 121, 0.32);
  background: #e8f2f8;
}

.location-layout-tool.is-danger {
  color: #7d211f;
  background: #fff0ec;
}

.location-layout-tool:disabled {
  color: #7b8790;
  background: #eef2f4;
  cursor: not-allowed;
}

.location-layout-surface {
  display: block;
  width: 100%;
  aspect-ratio: 52 / 30;
  min-height: 15rem;
  border: 1px solid rgba(16, 64, 96, 0.16);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  touch-action: none;
}

.location-layout-background {
  fill: #fffdf8;
}

.location-layout-grid line {
  stroke: rgba(16, 64, 96, 0.08);
  stroke-width: 1;
}

.location-layout-shape {
  cursor: move;
  outline: none;
}

.location-layout-shape.is-readonly {
  cursor: default;
}

.location-layout-object {
  fill: rgba(232, 242, 248, 0.92);
  stroke: rgba(21, 88, 121, 0.68);
  stroke-width: 2;
}

.location-layout-text-backdrop {
  fill: rgba(255, 248, 235, 0.96);
  stroke: rgba(217, 149, 47, 0.6);
  stroke-width: 2;
}

.location-layout-shape.is-selected .location-layout-object,
.location-layout-shape.is-selected .location-layout-text-backdrop {
  fill: #fff6e7;
  stroke: var(--amber);
  stroke-width: 3;
}

.location-layout-label,
.location-layout-annotation {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 900;
  pointer-events: none;
}

.location-layout-annotation {
  font-size: 14px;
}

.location-layout-handle {
  fill: var(--amber);
  stroke: #fffdf8;
  stroke-width: 2;
  cursor: nwse-resize;
  pointer-events: all;
}

.location-layout-inspector {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
  border: 1px solid rgba(200, 210, 218, 0.72);
  border-radius: 8px;
  padding: 0.8rem;
  background: #f7fbfa;
}

.location-layout-inspector.is-empty {
  min-height: 8rem;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.location-layout-inspector-heading {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.location-layout-inspector-heading span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.location-layout-inspector-heading strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-layout-inspector .field-group {
  margin-bottom: 0;
}

.location-layout-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.location-layout-text-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
  min-width: 0;
}

.location-layout-style-controls {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 0.35rem;
  align-items: center;
  min-height: 100%;
}

.location-layout-style-controls > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.location-layout-style-toggle {
  display: grid;
  place-items: center;
  width: 2.15rem;
  min-width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(16, 64, 96, 0.14);
  border-radius: 8px;
  color: var(--forest);
  background: #f1f7f4;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.location-layout-style-toggle.is-italic {
  font-style: italic;
}

.location-layout-style-toggle:hover,
.location-layout-style-toggle:focus-visible {
  border-color: rgba(21, 88, 121, 0.32);
  background: #e8f2f8;
}

.location-layout-style-toggle.is-active {
  border-color: rgba(217, 149, 47, 0.52);
  color: #4d3510;
  background: #fff6e7;
  box-shadow: inset 0 0 0 1px rgba(217, 149, 47, 0.14);
}

.location-layout-object-actions {
  display: grid;
  gap: 0.45rem;
}

.location-layout-object-button,
.location-layout-delete-button {
  min-height: 2.35rem;
  border: 1px solid rgba(16, 64, 96, 0.14);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  color: var(--forest);
  background: #f1f7f4;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.location-layout-delete-button {
  border-color: rgba(125, 33, 31, 0.18);
  color: #7d211f;
  background: #fff0ec;
}

.location-layout-object-button:hover:not(:disabled),
.location-layout-object-button:focus-visible:not(:disabled) {
  border-color: rgba(21, 88, 121, 0.32);
  background: #e8f2f8;
}

.location-layout-delete-button:hover:not(:disabled),
.location-layout-delete-button:focus-visible:not(:disabled) {
  border-color: rgba(125, 33, 31, 0.32);
  background: #ffe6df;
}

.location-layout-object-button:disabled,
.location-layout-delete-button:disabled {
  color: #7b8790;
  border-color: rgba(120, 134, 146, 0.26);
  background: #eef2f4;
  cursor: not-allowed;
}

.location-layout-preview {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.location-layout-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.location-layout-preview-header > div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.location-layout-preview-header strong,
.location-layout-preview-header span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-layout-preview-header strong {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
}

.location-layout-preview-header span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.location-layout-preview-surface {
  position: relative;
  min-width: 0;
}

.location-layout-surface.is-preview {
  min-height: 12rem;
  pointer-events: none;
}

.location-layout-summary-preview {
  margin-top: 0.3rem;
}

.location-layout-summary-preview .location-layout-surface.is-preview {
  min-height: 8.5rem;
}

.location-layout-empty-note {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  pointer-events: none;
}

.location-layout-toolgroup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  min-width: 0;
}

.location-layout-toolgroup > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.location-layout-tool.is-expand {
  color: #155879;
  background: #e8f2f8;
}

.location-layout-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 64, 96, 0.42);
  backdrop-filter: blur(4px);
}

.location-layout-modal-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.9rem;
  width: min(100%, 96rem);
  height: min(100%, 58rem);
  max-height: calc(100vh - 2rem);
  border: 1px solid rgba(200, 210, 218, 0.84);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(16, 64, 96, 0.28);
  overflow: hidden;
}

.location-layout-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  min-width: 0;
  border-bottom: 1px solid rgba(200, 210, 218, 0.72);
  padding-bottom: 0.75rem;
}

.location-layout-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.location-layout-modal-actions .primary-button,
.location-layout-modal-actions .secondary-button {
  width: auto;
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
}

.location-layout-modal-title {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.location-layout-modal-title h2,
.location-layout-modal-title p,
.location-layout-modal-title span {
  margin: 0;
}

.location-layout-modal-title span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-layout-modal-panel .location-layout-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  height: 100%;
  min-height: 0;
}

.location-layout-modal-panel .location-layout-canvas-panel {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.location-layout-modal-panel .location-layout-surface {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.location-layout-modal-panel .location-layout-inspector {
  max-height: 100%;
  overflow: auto;
}

.location-physical-toolbar {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.location-physical-toolbar h3,
.location-physical-toolbar span {
  margin: 0;
}

.location-physical-toolbar h3 {
  color: var(--forest-2);
  font-size: 0.95rem;
  font-weight: 900;
}

.location-physical-toolbar span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.location-physical-list {
  display: grid;
  gap: 0.5rem;
}

.location-physical-row {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto auto;
  gap: 0.55rem 0.75rem;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.72rem;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.location-physical-row:nth-child(odd) {
  background: #f8faf7;
}

.location-physical-row.account-create-row {
  border-color: rgba(16, 64, 96, 0.14);
  background: #f1f7f4;
}

.location-physical-row.account-create-row:hover,
.location-physical-row.account-create-row:focus-visible {
  border-color: rgba(21, 88, 121, 0.32);
  background: #e8f2f8;
}

.location-physical-row:hover,
.location-physical-row:focus-visible {
  background: #fff8eb;
}

.location-physical-row.is-selected {
  border-color: rgba(217, 149, 47, 0.52);
  background: #fff6e7;
  box-shadow: inset 3px 0 0 var(--amber);
}

.location-physical-card {
  cursor: default;
}

.location-physical-card:hover {
  background: #fff6e7;
}

.location-physical-expanded {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.75rem;
  align-items: start;
  border-top: 1px solid rgba(217, 149, 47, 0.28);
  padding-top: 0.78rem;
}

.location-physical-expanded .location-detail-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.location-category-expanded > small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.location-physical-row.account-create-row .account-list-action {
  grid-column: 3 / -1;
}


.location-physical-main {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.location-physical-main strong,
.location-physical-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-physical-main strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

.location-physical-main span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.location-physical-preview {
  display: grid;
  gap: 0.22rem;
  border: 1px solid rgba(47, 125, 79, 0.2);
  border-radius: 8px;
  padding: 0.85rem;
  background: linear-gradient(135deg, rgba(239, 247, 237, 0.78), rgba(255, 248, 235, 0.52));
}

.location-physical-preview > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.location-physical-preview strong {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.location-physical-preview small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.location-summary-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.85rem;
  border: 1px solid rgba(47, 125, 79, 0.22);
  border-radius: 8px;
  padding: 0.9rem;
  background: linear-gradient(135deg, rgba(239, 247, 237, 0.95), rgba(232, 242, 248, 0.78));
}

.location-summary-icon {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 10px 22px rgba(24, 56, 72, 0.12);
}

.location-summary-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.location-badge-group {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.location-summary-header > .location-badge-group {
  grid-column: 1 / -1;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}

.location-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.45rem;
  border: 1px solid rgba(16, 64, 96, 0.14);
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.location-status.is-active {
  color: #1f5a2e;
  background: #eff7ed;
}

.location-status.is-inactive {
  color: #7d211f;
  background: #fff0ec;
}

.location-summary-status {
  justify-content: flex-start;
  margin-top: 0.12rem;
}


.location-summary-edit-button {
  align-self: start;
  width: 2.15rem;
  height: 2.15rem;
  min-width: 2.15rem;
  padding: 0;
  color: var(--forest-2);
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(21, 88, 121, 0.16);
  box-shadow: 0 8px 18px rgba(24, 56, 72, 0.08);
  cursor: pointer;
}

.location-summary-edit-button svg {
  width: 1rem;
  height: 1rem;
}

.location-summary-edit-button:hover:not(:disabled),
.location-summary-edit-button:focus-visible {
  color: #fff;
  background: var(--forest-2);
  border-color: var(--forest-2);
}

.location-summary-edit-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.location-detail-overview {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.location-address-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  border: 1px solid rgba(21, 88, 121, 0.12);
  border-radius: 8px;
  padding: 0.64rem 0.75rem;
  background: rgba(232, 242, 248, 0.48);
}

.location-address-strip-label {
  color: var(--forest-2);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.location-address-strip-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.24rem 0.45rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.location-address-strip-text span {
  overflow-wrap: anywhere;
}

.location-map-card,
.location-photo-panel {
  display: grid;
  gap: 0.82rem;
  min-width: 0;
  border: 1px solid rgba(200, 210, 218, 0.86);
  border-radius: 8px;
  padding: 0.9rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 56, 72, 0.06);
}

.location-detail-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
}

.location-detail-section-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 950;
}

.location-detail-section-header > span {
  overflow: hidden;
  max-width: 65%;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-map-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 16rem;
  border: 1px solid rgba(21, 88, 121, 0.15);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 242, 248, 0.96), rgba(239, 247, 237, 0.94)), #e8f2f8;
}

.location-map-preview.is-unset {
  filter: saturate(0.82);
}

.location-map-preview.has-maplibre {
  background: #e8f2f8;
  filter: none;
}

.location-maplibre-surface {
  position: absolute;
  inset: 0;
  min-width: 0;
}

.location-maplibre-state {
  position: absolute;
  z-index: 2;
  left: 0.75rem;
  bottom: 0.75rem;
  border: 1px solid rgba(16, 64, 96, 0.12);
  border-radius: 999px;
  padding: 0.38rem 0.58rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(24, 56, 72, 0.1);
}

.location-maplibre-state.is-error {
  color: #8d3c2f;
  background: #fff0ec;
}

.location-map-gridline,
.location-map-road,
.location-map-block,
.location-map-pin,
.location-map-label {
  position: absolute;
}

.location-map-gridline {
  background: rgba(255, 255, 255, 0.62);
}

.location-map-gridline.is-horizontal {
  left: 0;
  right: 0;
  height: 1px;
}

.location-map-gridline.is-horizontal.one {
  top: 32%;
}

.location-map-gridline.is-horizontal.two {
  top: 68%;
}

.location-map-gridline.is-vertical {
  top: 0;
  bottom: 0;
  width: 1px;
}

.location-map-gridline.is-vertical.one {
  left: 34%;
}

.location-map-gridline.is-vertical.two {
  left: 72%;
}

.location-map-road {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 1px rgba(16, 64, 96, 0.06);
}

.location-map-road.is-main {
  top: 47%;
  left: -10%;
  width: 120%;
  height: 1.25rem;
  transform: rotate(-11deg);
}

.location-map-road.is-cross {
  top: -12%;
  left: 46%;
  width: 1.05rem;
  height: 126%;
  transform: rotate(18deg);
}

.location-map-block {
  border: 1px solid rgba(47, 125, 79, 0.12);
  border-radius: 8px;
  background: rgba(47, 125, 79, 0.12);
}

.location-map-block.is-one {
  top: 12%;
  left: 9%;
  width: 24%;
  height: 24%;
}

.location-map-block.is-two {
  right: 9%;
  bottom: 11%;
  width: 28%;
  height: 25%;
  background: rgba(217, 149, 47, 0.14);
}

.location-map-pin {
  z-index: 2;
  top: 43%;
  left: 50%;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--forest-2);
  box-shadow: 0 14px 30px rgba(16, 64, 96, 0.24);
  transform: translate(-50%, -50%);
}

.location-map-pin svg {
  width: 1.45rem;
  height: 1.45rem;
}

.location-map-label {
  right: 0.8rem;
  bottom: 0.8rem;
  display: grid;
  gap: 0.12rem;
  max-width: min(78%, 18rem);
  border: 1px solid rgba(16, 64, 96, 0.12);
  border-radius: 8px;
  padding: 0.62rem 0.72rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(24, 56, 72, 0.1);
}

.location-map-label strong,
.location-map-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-map-label strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.location-map-label span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.location-photo-panel {
  background: linear-gradient(180deg, #fff, rgba(232, 242, 248, 0.36));
}

.location-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.8rem, 1fr));
  gap: 0.7rem;
  min-width: 0;
}

.location-photo-add,
.location-photo-card {
  position: relative;
  overflow: hidden;
  min-height: 9.2rem;
  border: 1px solid rgba(200, 210, 218, 0.86);
  border-radius: 8px;
  background: var(--surface-soft);
}

.location-photo-add {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.32rem;
  padding: 0.8rem;
  color: var(--forest-2);
  cursor: pointer;
}

.location-photo-add:hover,
.location-photo-add:focus-within {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 4px rgba(21, 88, 121, 0.12);
}

.location-photo-add.is-disabled {
  opacity: 0.62;
  cursor: wait;
}

.location-photo-add input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.location-photo-add-icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--forest-2);
}

.location-photo-add-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.location-photo-add strong,
.location-photo-add span {
  text-align: center;
}

.location-photo-add strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.location-photo-add span:last-child {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.location-photo-card {
  display: grid;
  align-content: end;
  min-width: 0;
}

.location-photo-card.is-removing {
  opacity: 0.68;
}

.location-photo-state {
  display: grid;
  min-height: 9.2rem;
  place-items: center;
  margin: 0;
  border: 1px dashed rgba(21, 88, 121, 0.2);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.location-photo-card img,
.location-photo-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.location-photo-card img {
  object-fit: cover;
}

.location-photo-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, rgba(21, 88, 121, 0.82), rgba(47, 125, 79, 0.78)), #155879;
}

.location-photo-card.is-gold .location-photo-placeholder {
  background: linear-gradient(135deg, rgba(217, 149, 47, 0.92), rgba(47, 125, 79, 0.78)), #d9952f;
}

.location-photo-placeholder svg {
  width: 2.4rem;
  height: 2.4rem;
}

.location-photo-card figcaption {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  margin: 0;
  padding: 2.4rem 0.72rem 0.68rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(16, 64, 96, 0), rgba(12, 33, 44, 0.78));
}

.location-photo-card figcaption strong,
.location-photo-card figcaption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-photo-card figcaption strong {
  font-size: 0.88rem;
  font-weight: 950;
}

.location-photo-card figcaption span {
  font-size: 0.74rem;
  font-weight: 800;
  opacity: 0.86;
}

.location-photo-remove {
  position: absolute;
  z-index: 2;
  top: 0.45rem;
  right: 0.45rem;
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 33, 44, 0.72);
  cursor: pointer;
}

.location-photo-remove svg {
  width: 0.95rem;
  height: 0.95rem;
}

.location-photo-remove:disabled {
  opacity: 0.58;
  cursor: wait;
}

.location-fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.65rem;
}

.location-fact-tile {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.78rem 0.85rem;
  background: var(--surface-soft);
}

.location-fact-tile strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-fact-tile span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.location-detail-note {
  margin: 0;
  border: 1px solid rgba(16, 64, 96, 0.1);
  border-radius: 8px;
  padding: 0.85rem;
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 750;
}

.location-detail-actions {
  justify-content: flex-end;
}

.location-editor textarea {
  max-width: 100%;
  min-width: 0;
  resize: vertical;
}

@media (max-width: 760px) {
  .locations-workspace-grid {
    grid-template-columns: 1fr;
  }

  .location-summary-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .location-layout-workspace,
  .location-layout-field-grid,
  .location-layout-text-controls,
  .location-layout-modal-panel .location-layout-workspace {
    grid-template-columns: 1fr;
  }

  .location-layout-surface {
    min-height: 13rem;
  }

  .location-layout-modal-overlay {
    padding: 0.6rem;
  }

  .location-layout-modal-panel {
    height: calc(100vh - 1.2rem);
    max-height: calc(100vh - 1.2rem);
    padding: 0.75rem;
    overflow: auto;
  }

  .location-layout-modal-header {
    align-items: stretch;
    flex-direction: column;
  }

  .location-layout-modal-panel .location-layout-surface {
    min-height: 65vh;
  }

  .location-map-preview {
    min-height: 14rem;
  }

  .location-address-strip {
    grid-template-columns: 1fr;
    gap: 0.28rem;
    align-items: start;
  }

  .location-detail-section-header > span {
    max-width: 58%;
  }

  .location-physical-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .location-physical-row .location-badge-group,
  .location-physical-row .account-list-action,
  .location-physical-row.account-create-row .account-list-action {
    grid-column: 2;
  }

  .location-physical-row .account-list-action,
  .location-physical-row .location-badge-group {
    justify-self: start;
  }

  .location-summary-header > .location-badge-group {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* Appliance workspace. */
.appliance-workspace-grid {
  grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr);
  align-items: start;
}

.appliance-list-avatar {
  background: #7d6b2f;
}

.appliance-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.45rem;
  border: 1px solid rgba(16, 64, 96, 0.14);
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.appliance-status.is-online {
  color: #1f5a2e;
  background: #eff7ed;
}

.appliance-status.is-attention {
  color: #7d211f;
  background: #fff0ec;
}

.appliance-status.is-offline {
  color: var(--muted);
  background: var(--surface-soft);
}

.appliance-status.is-standby {
  color: #7d6b2f;
  background: #fff8eb;
}

.appliance-badge-group {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.appliance-enabled-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.45rem;
  border: 1px solid rgba(16, 64, 96, 0.14);
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.appliance-enabled-badge.is-enabled {
  color: #1f5a2e;
  background: #eff7ed;
}

.appliance-enabled-badge.is-disabled {
  color: #7d211f;
  background: #fff0ec;
}

.appliance-default-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.45rem;
  border: 1px solid rgba(125, 107, 47, 0.24);
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
  color: #6f5f25;
  background: #fff8eb;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.appliance-enabled-field {
  gap: 0.5rem;
}

.appliance-editor-section,
.location-editor-section {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  border-top: 1px solid rgba(200, 210, 218, 0.72);
  padding-top: 0.9rem;
}

.appliance-editor-section h3,
.location-editor-section h3 {
  margin: 0;
  color: var(--forest-2);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.appliance-editor-grid,
.location-editor-grid {
  align-items: start;
}

.appliance-printer-field {
  max-width: 20rem;
}

.appliance-detail {
  display: grid;
  gap: 1rem;
}

.appliance-summary-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(125, 107, 47, 0.2);
  border-radius: 8px;
  padding: 0.9rem;
  background: linear-gradient(135deg, rgba(255, 248, 235, 0.95), rgba(232, 242, 248, 0.72));
}

.appliance-summary-header .appliance-badge-group {
  grid-column: 1 / -1;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}

.appliance-summary-icon {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #7d6b2f;
  box-shadow: 0 10px 22px rgba(24, 56, 72, 0.12);
}

.appliance-summary-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

img.appliance-summary-icon {
  object-fit: cover;
}

.appliance-icon-editor {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.appliance-icon-upload {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  cursor: pointer;
}

.appliance-icon-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.appliance-icon-preview {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(125, 107, 47, 0.2);
  border-radius: 8px;
  color: #fff;
  background: #7d6b2f;
  box-shadow: 0 10px 22px rgba(24, 56, 72, 0.12);
}

.appliance-icon-preview svg {
  width: 1.45rem;
  height: 1.45rem;
}

img.appliance-icon-preview {
  object-fit: cover;
}

.appliance-icon-upload:hover .appliance-icon-preview,
.appliance-icon-upload:focus-within .appliance-icon-preview {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 4px rgba(21, 88, 121, 0.14);
}

.appliance-icon-reset {
  min-height: 2.35rem;
}

.appliance-summary-title,
.location-summary-title {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.appliance-summary-title h2,
.appliance-summary-title p,
.location-summary-title h2,
.location-summary-title p {
  margin: 0;
}

.appliance-summary-title h2,
.appliance-summary-title > span,
.location-summary-title > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appliance-summary-title > span,
.location-summary-title > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.appliance-endpoint-panel {
  display: grid;
  gap: 0.42rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.78rem 0.85rem;
  background: var(--surface-soft);
}

.appliance-endpoint-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
}

.appliance-endpoint-row + .appliance-endpoint-row {
  border-top: 1px solid rgba(200, 210, 218, 0.58);
  padding-top: 0.42rem;
}

.appliance-endpoint-row span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.appliance-endpoint-row strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appliance-detail-note {
  margin: 0;
  border: 1px solid rgba(16, 64, 96, 0.1);
  border-radius: 8px;
  padding: 0.85rem;
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 750;
}

.appliance-detail-actions {
  justify-content: flex-end;
}

.appliance-editor textarea {
  max-width: 100%;
  min-width: 0;
  resize: vertical;
}

@media (max-width: 860px) {
  .appliance-workspace-grid {
    grid-template-columns: 1fr;
  }

  .appliance-summary-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .appliance-endpoint-row {
    grid-template-columns: 1fr;
    gap: 0.18rem;
  }
}


/* Integrations workspace. */
.integrations-workspace-grid {
  grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr);
  align-items: start;
}

.integrations-list-avatar {
  background: #2e6f95;
}

.integrations-list {
  max-height: clamp(22rem, calc(100vh - 22rem), 38rem);
}

.integrations-list-group {
  display: grid;
  gap: 0.42rem;
}

.integrations-list-group + .integrations-list-group {
  margin-top: 0.9rem;
}

.integrations-list-group-label {
  padding: 0 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.integrations-detail {
  display: grid;
  gap: 1rem;
}

.integrations-summary-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  border: 1px solid rgba(46, 111, 149, 0.22);
  border-radius: 8px;
  padding: 0.9rem;
  background: linear-gradient(135deg, rgba(232, 242, 248, 0.96), rgba(255, 248, 235, 0.7));
}

.integrations-summary-icon {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #2e6f95;
  box-shadow: 0 10px 22px rgba(24, 56, 72, 0.12);
}

.integrations-summary-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.integrations-summary-title {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.integrations-summary-title h2,
.integrations-summary-title span {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integrations-summary-title span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.integrations-header-toggle {
  justify-self: end;
  min-height: 2rem;
  border: 1px solid rgba(16, 64, 96, 0.14);
  border-radius: 999px;
  padding: 0.22rem 0.56rem 0.22rem 0.38rem;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.integrations-header-toggle .menu-toggle-track {
  width: 2.55rem;
  height: 1.35rem;
}

.integrations-header-toggle .menu-toggle-thumb {
  top: 0.15rem;
  left: 0.16rem;
  width: 0.95rem;
  height: 0.95rem;
}

.integrations-header-toggle input:checked + .menu-toggle-track .menu-toggle-thumb {
  transform: translateX(1.18rem);
}

.integrations-status,
.integrations-provider-badge,
.integrations-preview-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.45rem;
  border: 1px solid rgba(16, 64, 96, 0.14);
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.integrations-status.is-enabled {
  color: #1f5a2e;
  background: #eff7ed;
}

.integrations-status.is-disabled {
  color: #7d211f;
  background: #fff0ec;
}

.integrations-provider-badge {
  color: var(--forest);
  background: #e8f2f8;
}

.integrations-preview-badge {
  color: var(--muted);
  background: var(--surface-soft);
}

.integrations-section {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.integrations-section h3 {
  margin: 0;
  color: var(--forest-2);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.integrations-editor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.75rem 0.85rem;
}

.integrations-sender-field,
.integrations-wide-field {
  grid-column: 1 / -1;
}

.integrations-payment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.integrations-settings-panel {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  border: 1px solid rgba(46, 111, 149, 0.16);
  border-radius: 8px;
  padding: 0.82rem 0.85rem;
  background: #f7fbfa;
}

.integrations-settings-panel .integrations-editor-grid {
  gap: 0.65rem 0.75rem;
}

.integrations-settings-panel .integrations-settings-actions {
  border-top: 1px solid rgba(200, 210, 218, 0.72);
  padding-top: 0.7rem;
}

.integrations-settings-panel .field-group.is-error input,
.integrations-settings-panel .field-group.is-error select {
  border-color: #b44336;
  box-shadow: 0 0 0 2px rgba(180, 67, 54, 0.08);
}

.integrations-field-error {
  margin-top: 0.2rem;
  color: #7d211f;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.25;
}

.integrations-reauth-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 64, 96, 0.42);
  backdrop-filter: blur(4px);
}

.integrations-reauth-panel {
  display: grid;
  gap: 0.55rem;
  width: min(100%, 28rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(16, 64, 96, 0.28);
}

.integrations-reauth-panel h2,
.integrations-reauth-panel p {
  margin: 0;
}

.integrations-reauth-panel p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.4;
}

.integrations-reauth-panel form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.integrations-reauth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 7.5rem));
  justify-content: end;
  gap: 0.55rem;
}

.integrations-reauth-actions .primary-button,
.integrations-reauth-actions .secondary-button {
  width: 100%;
}

.integrations-production-warning {
  margin: 0;
  border: 1px solid rgba(190, 112, 30, 0.24);
  border-radius: 8px;
  padding: 0.55rem 0.68rem;
  color: #7d4f11;
  background: #fff8eb;
  font-size: 0.8rem;
  font-weight: 850;
}

.integrations-field-hint {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.25;
}

.integrations-settings-actions {
  align-items: center;
  padding-top: 0.1rem;
}

.integrations-secret-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.78rem 0.85rem;
  background: var(--surface-soft);
}

.integrations-access-list {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(46, 111, 149, 0.16);
  border-radius: 8px;
  background: #f7fbfa;
}

.integrations-access-row {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  border-bottom: 1px solid rgba(200, 210, 218, 0.72);
  padding: 0.72rem 0.8rem;
}

.integrations-access-row:last-child {
  border-bottom: 0;
}

.integrations-access-row.is-expanded {
  background: #fff;
}

.integrations-access-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.integrations-access-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.integrations-access-copy strong,
.integrations-access-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integrations-access-copy strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.integrations-access-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.integrations-access-status {
  justify-self: end;
}

.integrations-access-actions {
  justify-content: flex-end;
}

.integrations-access-row .integrations-credential-panel {
  border-color: rgba(46, 111, 149, 0.18);
  background: #f7fbfa;
}

.integrations-secret-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.integrations-secret-copy > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.integrations-secret-copy strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.integrations-secret-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integrations-secret-copy small.integrations-field-hint {
  white-space: normal;
}

.integrations-secret-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.integrations-credential-button {
  min-width: 4.6rem;
  min-height: 2rem;
  padding-inline: 0.68rem;
}

.integrations-credential-button.is-danger {
  color: #7d211f;
}

.integrations-consumer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(46, 111, 149, 0.16);
  border-radius: 8px;
  padding: 0.8rem;
  background: #f7fbfa;
}

.integrations-consumer-card.is-compact {
  grid-template-columns: minmax(0, 1fr);
  padding: 0.65rem 0.75rem;
}

.integrations-consumer-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 8px;
  color: var(--forest);
  background: #e8f2f8;
}

.integrations-consumer-icon svg {
  width: 1.12rem;
  height: 1.12rem;
}

.integrations-consumer-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.integrations-consumer-copy strong,
.integrations-consumer-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integrations-consumer-copy span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.integrations-detail-actions {
  align-items: center;
}

.integrations-save-state {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.integrations-save-state.is-saved {
  color: var(--green);
}

.integrations-save-state.is-dirty,
.integrations-save-state.is-saving {
  color: #7d4f11;
}

.integrations-save-state.is-error {
  color: #7d211f;
}

.integrations-test-panel {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto;
  gap: 0.5rem 0.7rem;
  align-items: end;
  min-width: 0;
}

.integrations-payment-test-panel {
  align-items: center;
}

.integrations-payment-test-panel .integrations-test-state {
  grid-column: auto;
}

.integrations-credential-panel {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
  min-width: 0;
  border: 1px solid rgba(46, 111, 149, 0.16);
  border-radius: 8px;
  padding: 0.85rem;
  background: #f7fbfa;
}

.integrations-credential-secret {
  margin: 0;
}

.integrations-credential-message {
  align-self: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.integrations-credential-message.is-saved,
.integrations-credential-message.is-cleared {
  color: var(--green);
}

.integrations-credential-message.is-error {
  color: #7d211f;
}

.integrations-credential-message.is-saving,
.integrations-credential-message.is-clearing {
  color: #7d4f11;
}

.integrations-test-recipient {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.integrations-test-state {
  grid-column: 1 / -1;
  align-self: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.integrations-test-state.is-sent,
.integrations-test-state.is-ready {
  color: var(--green);
}

.integrations-test-state.is-error {
  color: #7d211f;
}

.integrations-test-state.is-not-configured {
  color: #7d4f11;
}

.integrations-test-state.is-sending {
  color: #7d4f11;
}

.integrations-test-actions {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  display: inline-flex;
  gap: 0.55rem;
  justify-content: flex-end;
}

.integrations-test-actions .primary-button,
.integrations-test-actions .secondary-button {
  min-width: 7rem;
}

@media (max-width: 860px) {
  .integrations-workspace-grid,
  .integrations-editor-grid,
  .integrations-payment-grid,
  .integrations-test-panel,
  .integrations-credential-panel {
    grid-template-columns: 1fr;
  }

  .integrations-test-state {
    grid-column: auto;
    grid-row: auto;
    white-space: normal;
  }

  .integrations-sender-field,
  .integrations-wide-field {
    grid-column: auto;
  }

  .integrations-test-actions,
  .integrations-secret-actions,
  .integrations-access-actions {
    grid-column: auto;
    grid-row: auto;
    justify-content: stretch;
  }

  .integrations-access-main {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .integrations-access-actions {
    grid-column: 1 / -1;
  }

  .integrations-test-actions .primary-button,
  .integrations-test-actions .secondary-button,
  .integrations-credential-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .integrations-summary-header,
  .integrations-secret-tile {
    grid-template-columns: 1fr;
  }

  .integrations-header-toggle {
    justify-self: start;
  }
}

.tax-rates-workspace-grid {
  grid-template-columns: minmax(18rem, 25rem) minmax(0, 1fr);
  align-items: start;
}

.tax-rates-directory-card,
.tax-rates-detail-card {
  --accent: #6d7f2f;
}

.tax-rate-list {
  max-height: clamp(20rem, calc(100vh - 23rem), 36rem);
}

.tax-rate-list-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.tax-rate-list-avatar,
.tax-rate-summary-icon {
  background: #6d7f2f;
}

.tax-rate-total-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(109, 127, 47, 0.22);
  border-radius: 8px;
  padding: 0.78rem 0.85rem;
  color: #3f491a;
  background: linear-gradient(135deg, rgba(241, 246, 222, 0.92), rgba(255, 248, 235, 0.82));
}

.tax-rate-total-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tax-rate-total-card strong {
  color: #3f491a;
  font-size: 1.3rem;
  font-weight: 950;
}

.tax-rate-detail {
  display: grid;
  gap: 1rem;
}

.tax-rate-summary-header {
  border-color: rgba(109, 127, 47, 0.22);
  background: linear-gradient(135deg, rgba(241, 246, 222, 0.96), rgba(255, 248, 235, 0.76));
}

.tax-rate-summary-header .icon-button {
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(63, 73, 26, 0.32);
  color: #3f491a;
  background: #fff;
  box-shadow: 0 8px 18px rgba(43, 54, 19, 0.12);
}

.tax-rate-summary-header .icon-button svg {
  width: 1.12rem;
  height: 1.12rem;
  stroke-width: 2.4;
}

.tax-rate-summary-header .icon-button:hover,
.tax-rate-summary-header .icon-button:focus-visible {
  border-color: rgba(63, 73, 26, 0.52);
  color: #263006;
  background: #f4f8dd;
  box-shadow: 0 10px 22px rgba(43, 54, 19, 0.18);
}

.tax-rate-value-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tax-rate-value,
.tax-rate-type {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  border: 1px solid rgba(109, 127, 47, 0.18);
  border-radius: 8px;
  padding: 0.85rem;
  background: #fbfcf4;
}

.tax-rate-value strong,
.tax-rate-type strong {
  color: var(--ink);
  font-weight: 950;
  line-height: 1;
}

.tax-rate-value strong {
  font-size: 2.15rem;
}

.tax-rate-type strong {
  font-size: 1.22rem;
}

.tax-rate-value small,
.tax-rate-type small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.tax-rate-notes {
  border: 1px solid rgba(200, 210, 218, 0.72);
  border-radius: 8px;
  padding: 0.82rem 0.85rem;
  background: var(--surface-soft);
}

.tax-rate-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.45;
}

.tax-rate-editor-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(8rem, 0.6fr);
}

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

.tax-rate-actions {
  align-items: center;
}

@media (max-width: 860px) {
  .tax-rates-workspace-grid,
  .tax-rate-editor-grid {
    grid-template-columns: 1fr;
  }

  .tax-rate-wide-field {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .tax-rate-list-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .tax-rate-list-row .account-privilege-badges {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .tax-rate-summary-header,
  .tax-rate-value-panel {
    grid-template-columns: 1fr;
  }
}

/* Responsive text polish: keep labels, badges, and actions from colliding. */
.topbar,
.topbar-actions,
.account-directory-header,
.applications-section-header,
.flightdeck-panel-header > div,
.menu-list-header,
.menu-detail-header,
.menu-pages-header,
.menu-items-header,
.menu-source-picker-header,
.inventory-editor-header,
.profile-panel-header {
  min-width: 0;
}

.account-directory-header,
.applications-section-header,
.flightdeck-panel-header > div,
.menu-list-header,
.menu-detail-header,
.menu-pages-header,
.menu-items-header,
.menu-source-picker-header,
.inventory-editor-header,
.profile-panel-header,
.profile-actions,
.appliance-detail-actions {
  flex-wrap: wrap;
}

.workspace-title,
.workspace-description-row,
.applications-section-header h2,
.dashboard-app-card-head,
.launch-app-row-main,
.account-directory-title,
.account-list-main,
.flightdeck-user-copy,
.flightdeck-detail-heading,
.menu-detail-title,
.menu-location-select,
.menu-menu-select,
.menu-item-copy,
.inventory-editor-title-block,
.appliance-summary-title,
.location-summary-title,
.integrations-summary-title,
.location-fact-tile,
.appliance-endpoint-row,
.integrations-secret-tile,
.integrations-consumer-copy {
  min-width: 0;
}

.workspace-title h1,
.workspace-title p,
.workspace-description-row p,
.dashboard-app-card h3,
.dashboard-app-metrics dt,
.dashboard-app-metrics dd,
.account-directory-title h2,
.flightdeck-panel-header h2,
.flightdeck-detail-heading h3,
.menu-detail-title h2,
.menu-detail-title p,
.inventory-editor-title-block h2,
.inventory-editor-title-block span,
.appliance-summary-title h2,
.appliance-summary-title p,
.appliance-summary-title > span,
.integrations-summary-title h2,
.integrations-summary-title span,
.location-summary-title h2,
.location-summary-title p,
.location-summary-title > span {
  overflow-wrap: anywhere;
}

.status-pill,
.health-dot,
.account-count,
.menu-page-meta-item,
.inventory-menu-status,
.inventory-stock-status,
.appliance-status,
.appliance-enabled-badge,
.appliance-default-badge,
.integrations-status,
.integrations-provider-badge,
.integrations-preview-badge,
.location-status {
  max-width: 100%;
  line-height: 1.12;
  text-align: center;
  white-space: normal;
}

.sidebar-link span,
.user-greeting,
.account-list-main strong,
.account-list-main span,
.flightdeck-user-copy strong,
.flightdeck-user-copy span,
.menu-location-select strong,
.menu-location-select span,
.menu-menu-select strong,
.menu-menu-select span,
.menu-item-card-row .menu-item-copy strong,
.appliance-list-row .account-list-main strong,
.appliance-list-row .account-list-main span,
.integrations-list-row .account-list-main strong,
.integrations-list-row .account-list-main span,
.location-list-row .account-list-main strong,
.location-list-row .account-list-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-dashboard-tabs,
.inventory-toolbar,
.inventory-upload-actions,
.menu-toolbar {
  flex-wrap: wrap;
  overflow: visible;
}

.inventory-dashboard-tab,
.inventory-control-button,
.menu-add-item-button,
.menu-create-button,
.menu-action-button,
.profile-close,
.appliance-icon-reset {
  line-height: 1.12;
  white-space: normal;
}

.inventory-search-form,
.menu-search-form,
.menu-source-search-form,
.account-search-form {
  min-width: min(100%, 14rem);
}

.inventory-link-option,
.menu-source-picker-row,
.menu-item-card-row,
.appliance-summary-header,
.location-summary-header {
  min-width: 0;
}

.inventory-link-option-main strong,
.inventory-link-option-main small,
.menu-source-picker-copy strong,
.menu-source-picker-copy small,
.menu-price-options,
.appliance-detail-note {
  overflow-wrap: anywhere;
}

.inventory-table th,
.inventory-table td,
.menu-table th,
.menu-table td,
.flightdeck-item-table td,
.pricing-rules-table th,
.pricing-rules-table td {
  overflow-wrap: anywhere;
}

.menu-item-subline .menu-item-style::after {
  content: "\00b7";
}

.menu-item-subline .menu-item-style::after {
  margin-left: 0.34rem;
  color: rgba(24, 56, 72, 0.36);
}

@media (max-width: 860px) {
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .weather-status,
  .user-menu {
    max-width: 100%;
  }

  .profile-app-privileges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-app-card-head,
  .appliance-summary-header {
    align-items: start;
  }

  .inventory-dashboard-tabs {
    align-items: stretch;
  }

  .inventory-dashboard-tab,
  .inventory-menu-sync-state {
    flex: 1 1 8rem;
    justify-content: center;
    margin-left: 0;
  }

  .cooler-row-editor-grid {
    grid-template-columns: minmax(0, 1fr) minmax(9rem, 0.75fr);
  }

  .cooler-row-editor .cooler-location-field {
    grid-column: 1 / -1;
  }

  .cooler-stock-grid {
    grid-template-columns: repeat(3, minmax(4.75rem, 1fr));
  }
}

@media (max-width: 620px) {
  .content {
    padding-inline: 0.85rem;
  }

  .profile-form-grid,
  .profile-app-privileges,
  .inventory-form-grid,
  .cooler-row-editor-grid,
  .menu-editor-grid {
    grid-template-columns: 1fr;
  }

  .profile-actions,
  .appliance-detail-actions,
  .integrations-detail-actions {
    justify-content: stretch;
  }

  .integrations-save-state {
    width: 100%;
    margin-right: 0;
  }

  .profile-actions .primary-button,
  .profile-actions .secondary-button,
  .appliance-detail-actions .primary-button,
  .appliance-detail-actions .secondary-button,
  .integrations-detail-actions .primary-button,
  .integrations-detail-actions .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .workspace-description-row,
  .appliance-summary-header {
    grid-template-columns: 1fr;
  }

  .workspace-description-edit,
  .appliance-summary-header .appliance-badge-group {
    justify-self: start;
  }

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

  .account-list-row {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .account-list-action {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .inventory-upload-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-control-button,
  .inventory-add-button,
  .inventory-upload-button {
    width: 100%;
    min-width: 0;
  }

  .menu-source-picker-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .menu-source-add-button {
    grid-column: 2;
    width: 100%;
    justify-content: center;
  }

  .inventory-link-option {
    grid-template-columns: 1fr;
  }

  .inventory-link-option input {
    justify-self: start;
  }

  .inventory-link-qty {
    justify-self: start;
    text-align: left;
  }

  .inventory-import-preview-panel {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    padding: 0.75rem;
  }

  .inventory-import-preview-header {
    align-items: stretch;
  }

  .inventory-import-preview-table {
    min-width: 62rem;
  }
}


@media (max-width: 560px) {
  .flightdeck-delivery-grid-card {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .flightdeck-delivery-grid-main {
    grid-column: 1 / -1;
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .flightdeck-delivery-grid-status {
    grid-column: 2;
    justify-self: start;
  }

  .flightdeck-region-toolbar {
    display: grid;
  }

  .flightdeck-region-grid-fields {
    grid-template-columns: 1fr;
  }

  .flightdeck-region-map-actions .secondary-button,
  .flightdeck-region-draw-actions .secondary-button {
    flex: 1 1 7rem;
  }
}
