:root {
  --bg-top: #f8f4ec;
  --bg-bottom: #efe7db;
  --ink: #143f66;
  --muted: #5f7a90;
  --line: rgba(0, 123, 200, 0.12);
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --shadow: 0 22px 60px rgba(0, 123, 200, 0.08);
  --shadow-soft: 0 10px 26px rgba(0, 123, 200, 0.06);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --success: #16a34a;
  --success-soft: rgba(22, 163, 74, 0.14);
  --alert: #d98732;
  --alert-soft: rgba(217, 135, 50, 0.16);
  --danger: #c93b3b;
  --danger-soft: rgba(201, 59, 59, 0.16);
  --neutral-soft: rgba(0, 123, 200, 0.07);
  --accent: #00adef;
  --accent-soft: rgba(0, 173, 239, 0.12);
  --accent-strong: #007bc8;
  --app-topbar-sticky-offset: calc(4px + 54px + env(safe-area-inset-top, 0px) + 4px);
  --app-restaurant-margins-chrome-stack: 44px;
  --app-page-gutter: max(20px, calc((100vw - min(1520px, calc(100vw - 40px))) / 2));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(0, 173, 239, 0.06), transparent 26%),
    radial-gradient(circle at top right, rgba(0, 123, 200, 0.05), transparent 28%),
    linear-gradient(180deg, var(--bg-top) 0%, #f6f0e8 42%, var(--bg-bottom) 100%);
  position: relative;
}

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

button {
  cursor: pointer;
}

code {
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(0, 173, 239, 0.1);
}

.page-shell {
  width: min(1520px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.app-layout {
  display: grid;
  grid-template-columns: 316px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 22px;
}

.sidebar-shell {
  position: sticky;
  top: 24px;
  align-self: start;
  height: calc(100vh - 48px);
}

.hero,
.overview-layout,
.detail-layout {
  display: grid;
  gap: 20px;
}

.hero {
  grid-template-columns: 1fr;
}

.panel,
.hero-main,
.summary-card,
.view-switcher,
.dish-card,
.quick-item,
.alert-card,
.strip-card,
.result-card,
.focus-card,
.spotlight-card,
.ingredient-card,
.metric-chip,
.detail-metric,
.meter-card {
  backdrop-filter: blur(16px);
}

.panel,
.hero-main,
.summary-card,
.view-switcher {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.alert-card,
.dish-card,
.result-card,
.strip-card,
.quick-item,
.ingredient-card,
.meter-card,
.summary-mini-card,
.simple-product-row,
.empty-state {
  border-radius: 30px;
}

.hero-main {
  position: relative;
  overflow: hidden;
  padding: 34px;
  background: linear-gradient(135deg, #ffffff 0%, #f3faff 58%, #e7f4ff 100%);
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: auto -70px -90px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 173, 239, 0.16) 0%, transparent 72%);
}

.hero-banner {
  min-height: 0;
  padding: 22px 34px;
  text-align: center;
}

.hero-banner::after {
  display: none;
}

.hero-banner-line {
  margin: 0;
  color: var(--accent-strong);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-side,
.panel,
.view-switcher {
  padding: 24px;
  background: var(--panel-strong);
}

.hero h1,
.panel h2,
.hero-side h2,
.alert-card h3,
.section-header h3,
.detail-heading h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  line-height: 0.9;
}


.eyebrow,
.summary-label,
.dish-section,
.focus-label,
.health-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
}

.hero-text,
.hero-side p,
.helper-text,
.summary-detail,
.focus-detail,
.alert-item span,
.strip-header span,
.stat-line span,
.dish-card-footer-row span,
.detail-copy,
.health-meta,
.spotlight-card p,
.ingredient-meta,
.ingredient-supplier {
  color: var(--muted);
}

.hero-text {
  max-width: 66ch;
  margin: 18px 0 0;
  line-height: 1.6;
}

.hero-badges,
.view-tabs,
.section-tabs,
.supplier-filters,
.purchase-category-menu,
.purchase-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges {
  margin-top: 26px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 700;
}

.hero-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.hero-side-copy p {
  margin: 12px 0 0;
  line-height: 1.55;
}

.hero-focus {
  display: grid;
  gap: 12px;
}

.focus-card {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius-lg);
  text-align: left;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px var(--line);
}

.focus-card-good {
  background: rgba(236, 253, 241, 0.88);
}

.focus-card-danger {
  background: rgba(255, 240, 240, 0.9);
}

.focus-value {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
}

.focus-detail {
  margin: 8px 0 0;
}

.view-switcher {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 0;
  padding: 20px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 243, 236, 0.96) 100%);
  border-color: rgba(90, 163, 222, 0.08);
  box-shadow: 0 20px 36px rgba(37, 99, 156, 0.08);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.sidebar-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.sidebar-logo {
  display: block;
  width: min(100%, 138px);
  height: auto;
  object-fit: contain;
}

.sidebar-brand-copy {
  display: grid;
  gap: 4px;
  text-align: center;
}

.sidebar-brand-copy strong {
  color: var(--ink);
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

.sidebar-brand-copy span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-profile-slot {
  margin: 6px 0 14px;
}

.sidebar-profile-card {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 15px 15px 14px;
  border: 1px solid rgba(0, 123, 200, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 250, 255, 0.95) 100%);
  box-shadow: 0 14px 26px rgba(28, 74, 116, 0.06);
  text-align: center;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.sidebar-profile-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 123, 200, 0.16);
  box-shadow: 0 16px 30px rgba(28, 74, 116, 0.08);
}

.sidebar-profile-body {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
}

.sidebar-profile-main {
  width: 100%;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 10px;
}

.sidebar-profile-main::after {
  content: "";
  width: 50px;
  height: 1px;
}

.sidebar-profile-avatar {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(0, 173, 239, 0.18) 0%, rgba(0, 123, 200, 0.12) 100%);
  color: var(--accent-strong);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  grid-column: 1;
  overflow: hidden;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 123, 200, 0.12);
}

.sidebar-profile-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  justify-items: center;
  text-align: center;
  grid-column: 2;
}

.sidebar-profile-kicker {
  color: rgba(0, 123, 200, 0.62);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-profile-copy strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.1;
}

.sidebar-profile-copy span,
.sidebar-profile-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.sidebar-kicker {
  width: 100%;
  margin: 0 0 8px;
  color: rgba(0, 123, 200, 0.58);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.view-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.view-tab {
  width: 100%;
  min-width: 0;
  padding: 1rem 1.15rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 173, 239, 0.08);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0, 173, 239, 0.1);
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.view-tab[data-active="true"] {
  background: linear-gradient(135deg, #00adef 0%, #007bc8 100%);
  color: rgba(255, 255, 255, 0.99);
  box-shadow: 0 12px 24px rgba(0, 123, 200, 0.22);
}

.view-tab:hover,
.section-tab:hover,
.supplier-filter:hover,
.dish-card:hover,
.quick-item:hover,
.alert-item:hover {
  transform: translateY(-1px);
}

.views-stack {
  margin-top: 0;
}

.view-panel {
  display: grid;
  gap: 20px;
}

.view-panel[hidden] {
  display: none !important;
}

.restaurant-view-header {
  display: grid;
  gap: 8px;
  margin-bottom: 2px;
}

.app-back-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  width: max-content;
  max-width: 100%;
}

.app-back-toolbar[hidden] {
  display: none !important;
}

.app-back-button {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 0;
  height: 34px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(15, 54, 88, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #0f4c81;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 1px 2px rgba(16, 52, 87, 0.06);
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease;
}

.app-back-button::before {
  content: "←";
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.72;
}

.app-back-button:hover {
  border-color: rgba(0, 123, 200, 0.28);
  background: #f8fbff;
  box-shadow: 0 2px 6px rgba(16, 52, 87, 0.08);
}

.app-back-title {
  display: inline;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  color: inherit;
}

.app-back-button .app-back-label {
  display: inline;
  max-width: 11rem;
  margin: 0;
  padding: 0 0 0 2px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  text-align: left;
  color: rgba(15, 54, 88, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.restaurant-view-header[hidden] {
  display: none !important;
}

.restaurant-view-header-copy {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.restaurant-view-title {
  margin: 0;
  color: #0f3658;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  font-weight: 760;
  letter-spacing: -0.05em;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.summary-card {
  position: relative;
  min-height: 180px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(0, 123, 200, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 248, 255, 0.95) 100%);
  box-shadow: var(--shadow-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.18);
}

.summary-card-good {
  border-color: rgba(22, 163, 74, 0.14);
  background: linear-gradient(160deg, rgba(240, 253, 244, 0.98), rgba(255, 255, 255, 0.92));
}

.summary-card-good::before {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.95), rgba(22, 163, 74, 0.35));
}

.summary-card-alert {
  border-color: rgba(227, 97, 97, 0.14);
  background: linear-gradient(160deg, rgba(255, 246, 246, 0.98), rgba(255, 255, 255, 0.92));
}

.summary-card-alert::before {
  background: linear-gradient(90deg, rgba(227, 97, 97, 0.92), rgba(227, 97, 97, 0.35));
}

.summary-card-danger {
  border-color: rgba(201, 59, 59, 0.15);
  background: linear-gradient(160deg, rgba(255, 241, 241, 0.98), rgba(255, 255, 255, 0.92));
}

.summary-card-danger::before {
  background: linear-gradient(90deg, rgba(201, 59, 59, 0.95), rgba(201, 59, 59, 0.35));
}

.summary-card-good .summary-value {
  color: var(--success);
}

.summary-card-alert .summary-value {
  color: var(--alert);
}

.summary-card-danger .summary-value {
  color: var(--danger);
}

.summary-value {
  display: block;
  margin-top: 14px;
  font-size: 1.6rem;
  line-height: 1.1;
}

.summary-detail {
  margin: 10px 0 0;
  line-height: 1.45;
}

.overview-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.panel-head,
.catalog-head,
.detail-intro,
.section-header,
.meter-header,
.strip-header,
.dish-card-top,
.dish-card-footer-row,
.ingredient-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.panel-head,
.catalog-head,
.section-header {
  align-items: end;
}

.alert-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.alert-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 248, 255, 0.95) 100%);
  box-shadow: var(--shadow-soft);
}

.alert-card-danger {
  background: rgba(255, 240, 240, 0.95);
}

.alert-card-alert {
  background: rgba(255, 245, 245, 0.95);
}

.alert-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.alert-item {
  padding: 12px 14px;
  border: none;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px var(--line);
}

.alert-item strong,
.strip-header strong,
.spotlight-card strong {
  display: block;
}

.alert-item span {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
}

.simulator-stack {
  display: grid;
  gap: 14px;
}

.field,
.search-field {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field input,
.field select,
.search-field input {
  width: 100%;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(90, 163, 222, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.search-field input:focus {
  outline: 2px solid rgba(90, 163, 222, 0.22);
  outline-offset: 2px;
}

.sim-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.result-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 247, 255, 0.94) 100%);
  box-shadow: var(--shadow-soft);
}

.result-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.result-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.14rem;
}

.result-card-good {
  background: rgba(236, 253, 241, 0.9);
}

.result-card-danger {
  background: rgba(255, 240, 240, 0.92);
}

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

.strip-card {
  position: relative;
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 123, 200, 0.1);
  border-radius: 28px;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 248, 255, 0.95) 100%);
  box-shadow: 0 14px 28px rgba(0, 123, 200, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.strip-card[data-tone="good"] {
  background: linear-gradient(180deg, rgba(245, 255, 247, 0.99) 0%, rgba(239, 252, 242, 0.95) 100%);
  border-color: rgba(22, 163, 74, 0.12);
}

.strip-card[data-tone="alert"] {
  background: linear-gradient(180deg, rgba(255, 247, 247, 0.99) 0%, rgba(255, 241, 241, 0.95) 100%);
  border-color: rgba(227, 97, 97, 0.12);
}

.strip-card[data-tone="danger"] {
  background: linear-gradient(180deg, rgba(255, 241, 241, 0.99) 0%, rgba(255, 235, 235, 0.95) 100%);
  border-color: rgba(201, 59, 59, 0.14);
}

.strip-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.16);
}

.strip-card[data-tone="good"]::before {
  background: rgba(22, 163, 74, 0.9);
}

.strip-card[data-tone="alert"]::before {
  background: rgba(227, 97, 97, 0.85);
}

.strip-card[data-tone="danger"]::before {
  background: rgba(201, 59, 59, 0.9);
}

.strip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 123, 200, 0.09);
}

.strip-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.strip-title-block {
  display: grid;
  gap: 6px;
}

.strip-title-block strong {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.08rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.strip-title-block span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.strip-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 0.5rem 0.74rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.strip-pill-good {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
}

.strip-pill-alert {
  background: rgba(227, 97, 97, 0.12);
  color: var(--alert);
}

.strip-pill-danger {
  background: rgba(201, 59, 59, 0.12);
  color: var(--danger);
}

.strip-pill-neutral {
  background: rgba(0, 123, 200, 0.06);
  color: var(--ink);
}

.strip-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.strip-meta-card {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(246, 251, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.06);
}

.strip-meta-card span {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strip-meta-card strong {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--ink);
}

.strip-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  margin-top: 2px;
  padding: 0.68rem 0.92rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #00adef 0%, #007bc8 100%);
  color: rgba(255, 255, 255, 0.99);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow: 0 10px 18px rgba(0, 123, 200, 0.16);
}


.stat-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.section-tabs,
.supplier-filters {
  margin-top: 18px;
}

.section-tab,
.supplier-filter {
  padding: 0.78rem 1.05rem;
  border: none;
  border-radius: 999px;
  background: rgba(236, 247, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(90, 163, 222, 0.1);
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.section-tab[data-active="true"],
.supplier-filter[data-active="true"] {
  background: var(--accent-strong);
  color: rgba(255, 255, 255, 0.99);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.search-field {
  min-width: 280px;
}

.purchase-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 14px;
  width: 100%;
}

.mercuriale-supplier-switch {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 2px;
  margin-bottom: 16px;
}

.mercuriale-supplier-switch .purchase-filter-label {
  width: 100%;
  text-align: center;
}

.app-supplier-switch-host {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#purchases-view .app-supplier-switch-host {
  margin-top: 2px;
}

.app-segment-switch {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(237, 245, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(17, 65, 108, 0.08);
}

.app-segment-button {
  min-height: 34px;
  padding: 0 11px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(15, 53, 88, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.app-segment-button[data-active="true"] {
  background: #ffffff;
  color: #0f3558;
  box-shadow: 0 4px 12px rgba(16, 52, 87, 0.1);
}

.dish-ingredient-supplier-pick {
  display: grid;
  gap: 10px;
}

.dish-ingredient-supplier-pick-label {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
  color: #0f3558;
}

.dish-ingredient-supplier-pick-counts {
  margin: 0;
  font-size: 0.76rem;
  color: rgba(15, 53, 88, 0.62);
}

.dashboard-supplier-monitoring--quad {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-supplier-monitoring--quad .supplier-trend-toolbar,
.dashboard-supplier-monitoring--quad .supplier-trend-global-link {
  grid-column: 1 / -1;
}

.mercuriale-add-panel-manual .mercuriale-add-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mercuriale-add-panel-manual .mercuriale-add-field-wide {
  grid-column: 1 / -1;
}

.mercuriale-supplier-tabs .supplier-filter {
  min-height: 46px;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 780;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Mercuriale — mise en page compacte (vue achats uniquement) */
#purchases-view > .panel.mercuriale-panel {
  padding: 22px 22px 26px;
}

#purchases-view .mercuriale-page-top {
  margin-bottom: 6px;
}

#purchases-view .mercuriale-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 4px;
}

#purchases-view .mercuriale-title-block h2 {
  margin: 0.12rem 0 0;
}

#purchases-view .mercuriale-supplier-switch--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 0;
  margin-bottom: 0;
  justify-content: flex-end;
  justify-items: initial;
}

#purchases-view .mercuriale-supplier-switch--inline .purchase-filter-label {
  width: auto;
  text-align: left;
  margin: 0;
  font-size: 0.72rem;
}

#purchases-view .mercuriale-supplier-switch--inline .mercuriale-supplier-tabs {
  margin-top: 0;
  min-width: min(100%, 320px);
}

#purchases-view .mercuriale-admin-tabs {
  margin-top: 4px;
  margin-bottom: 8px;
}

#purchases-view .mercuriale-controls-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  margin-bottom: 8px;
  width: 100%;
}

#purchases-view .mercuriale-controls-toolbar .mercuriale-controls-head {
  flex: 1 1 200px;
  margin-bottom: 0;
}

#purchases-view .mercuriale-controls-toolbar .purchase-controls {
  justify-items: stretch;
}

#purchases-view .mercuriale-controls-toolbar .mercuriale-search-field input {
  min-height: 42px;
}

#purchases-view .mercuriale-controls-toolbar .purchase-filter-stack {
  flex: 2 1 260px;
  margin-top: 0;
}

#purchases-view .mercuriale-controls-toolbar .mercuriale-add-toolbar {
  flex: 0 0 auto;
  margin-top: 0;
  justify-content: flex-end;
}

#purchases-view .products-summary {
  margin-top: 6px;
}

#purchases-view .mercuriale-context-bar {
  padding: 8px 12px;
  gap: 10px;
}

#purchases-view .mercuriale-table-head {
  top: 56px;
  min-height: 26px;
  padding: 0 8px;
  font-size: 0.6rem;
}

#purchases-view .product-simple-groups {
  margin-top: 8px;
}

.mercuriale-controls-head {
  margin-bottom: 0;
}

.mercuriale-search-field {
  width: 100%;
  max-width: none;
}

.mercuriale-search-field > span {
  display: none;
}

.mercuriale-search-field input {
  min-height: 48px;
  text-align: center;
}

.purchase-filter-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  width: 100%;
}

body.mercuriale-modal-open {
  overflow: hidden;
}

/* Modales Mercuriale : calque fixe au niveau body (hors vues masquees) */
.mercuriale-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  overflow: visible;
}

.mercuriale-modal-layer .mercuriale-add-overlay {
  pointer-events: auto;
}

/* Toasts Mercuriale (actions produit), aligné modales premium */
.mercuriale-toast-host {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 460;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  max-width: min(440px, calc(100vw - 32px));
  pointer-events: none;
}

.mercuriale-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 14px;
  align-items: start;
  width: 100%;
  padding: 14px 14px 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(17, 65, 108, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 251, 255, 0.96) 100%);
  box-shadow:
    0 20px 42px rgba(16, 52, 87, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.32s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.mercuriale-toast[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

.mercuriale-toast-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mercuriale-toast-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  color: #0d3457;
}

.mercuriale-toast-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.42;
  color: rgba(18, 58, 96, 0.72);
}

.mercuriale-toast-tone-success {
  border-color: rgba(22, 163, 136, 0.28);
  box-shadow:
    0 20px 42px rgba(16, 52, 87, 0.12),
    0 0 0 4px rgba(22, 163, 136, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mercuriale-toast-tone-success .mercuriale-toast-title {
  color: #0f766e;
}

.mercuriale-toast-tone-warning {
  border-color: rgba(233, 160, 32, 0.35);
  box-shadow:
    0 20px 42px rgba(100, 60, 0, 0.1),
    0 0 0 4px rgba(234, 179, 8, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mercuriale-toast-tone-warning .mercuriale-toast-title {
  color: #a16207;
}

.mercuriale-toast-tone-danger {
  border-color: rgba(220, 60, 60, 0.28);
  box-shadow:
    0 22px 48px rgba(90, 20, 20, 0.12),
    0 0 0 4px rgba(220, 60, 60, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.mercuriale-toast-tone-danger .mercuriale-toast-title {
  color: #b91c1c;
}

.mercuriale-toast-tone-neutral .mercuriale-toast-title {
  color: #1e4976;
}

.mercuriale-toast-close {
  margin-top: 2px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(17, 65, 108, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(18, 58, 96, 0.55);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.mercuriale-toast-close:hover {
  border-color: rgba(0, 123, 200, 0.25);
  color: rgba(13, 52, 87, 0.85);
}

.mercuriale-add-toolbar {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.mercuriale-add-button {
  min-width: 0;
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 173, 239, 0.92) 0%, rgba(0, 123, 200, 0.92) 100%);
  box-shadow: 0 10px 18px rgba(0, 123, 200, 0.12);
}

.mercuriale-add-button[data-open="true"] {
  box-shadow:
    0 16px 28px rgba(0, 123, 200, 0.16),
    0 0 0 4px rgba(0, 173, 239, 0.08);
}

.mercuriale-add-host {
  position: relative;
  z-index: 30;
}

.mercuriale-add-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(237, 245, 255, 0.24);
  backdrop-filter: blur(0px);
  opacity: 0;
  transition:
    opacity 240ms ease,
    background-color 280ms ease,
    backdrop-filter 280ms ease;
  will-change: opacity, backdrop-filter;
}

.mercuriale-add-overlay[data-active="true"] {
  opacity: 1;
  background: rgba(237, 245, 255, 0.46);
  backdrop-filter: blur(12px);
}

.mercuriale-add-panel {
  display: grid;
  gap: 16px;
  width: min(100%, 520px);
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(17, 65, 108, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(247, 251, 255, 0.975) 100%);
  box-shadow:
    0 28px 56px rgba(16, 52, 87, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transform-origin: top center;
  transition:
    opacity 220ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 300ms ease;
  will-change: transform, opacity;
}

.mercuriale-add-overlay[data-active="true"] .mercuriale-add-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow:
    0 34px 64px rgba(16, 52, 87, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.dish-ingredient-add-panel {
  width: min(100%, 560px);
}

.dish-ingredient-add-body {
  display: grid;
  gap: 14px;
}

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

.dish-ingredient-supplier-option {
  display: grid;
  gap: 6px;
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(17, 65, 108, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.96) 100%);
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.dish-ingredient-supplier-option:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 123, 200, 0.28);
  box-shadow: 0 12px 24px rgba(16, 52, 87, 0.08);
}

.dish-ingredient-supplier-option strong {
  font-size: 1rem;
  color: #0f3558;
}

.dish-ingredient-supplier-option span {
  font-size: 0.82rem;
  color: rgba(15, 53, 88, 0.68);
}

.dish-ingredient-add-back {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #007bc8;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.dish-ingredient-add-search input {
  width: 100%;
}

.dish-ingredient-add-results {
  display: grid;
  gap: 8px;
  max-height: min(52vh, 360px);
  overflow: auto;
  padding-right: 2px;
}

.dish-ingredient-add-option {
  width: 100%;
}

.dish-ingredient-add-empty {
  margin: 0;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(237, 245, 255, 0.7);
  color: rgba(15, 53, 88, 0.72);
  font-size: 0.86rem;
}

@media (max-width: 560px) {
  .dish-ingredient-supplier-grid {
    grid-template-columns: 1fr;
  }
}

.mercuriale-detail-edit-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(17, 65, 108, 0.1);
  background: rgba(247, 251, 255, 0.9);
  margin-bottom: 12px;
}

.mercuriale-detail-edit-title {
  font-size: 0.86rem;
  color: #0f3558;
}

.mercuriale-detail-edit-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mercuriale-detail-edit-field {
  display: grid;
  gap: 6px;
}

.mercuriale-detail-edit-field span {
  font-size: 0.78rem;
  color: rgba(15, 53, 88, 0.72);
}

.mercuriale-detail-edit-field input {
  width: 100%;
}

.mercuriale-detail-edit-save {
  grid-column: 1 / -1;
  justify-self: start;
}

.supplier-links-grouped-names {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.supplier-links-grouped-name-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(237, 245, 255, 0.95);
  border: 1px solid rgba(17, 65, 108, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f3558;
}

.supplier-links-grouped-meta {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  color: rgba(15, 53, 88, 0.62);
}

.supplier-link-comparison-section {
  display: grid;
  gap: 10px;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(17, 65, 108, 0.08);
}

.supplier-link-comparison-title {
  font-size: 0.86rem;
  color: #0f3558;
}

.supplier-link-comparison-copy,
.supplier-link-comparison-note,
.supplier-link-comparison-empty {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(15, 53, 88, 0.68);
  line-height: 1.45;
}

.supplier-link-comparison-list {
  display: grid;
  gap: 6px;
}

.supplier-link-comparison-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(247, 251, 255, 0.9);
  border: 1px solid rgba(17, 65, 108, 0.08);
}

.supplier-link-comparison-unlink,
.supplier-link-comparison-current {
  font-size: 0.76rem;
}

.supplier-link-comparison-unlink {
  border: 0;
  background: transparent;
  color: #007bc8;
  cursor: pointer;
  font-weight: 600;
}

.supplier-link-comparison-results {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.supplier-link-comparison-option {
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(17, 65, 108, 0.1);
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
}

.supplier-link-field-baseline input {
  font-weight: 600;
}

.supplier-compare-sides-shell {
  display: grid;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(17, 65, 108, 0.08);
  margin-bottom: 12px;
}

.supplier-compare-title-field {
  display: grid;
  gap: 6px;
}

.supplier-compare-title-input {
  width: 100%;
  font-size: 1.05rem;
  font-weight: 650;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(17, 65, 108, 0.14);
}

.supplier-compare-sides-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.supplier-compare-side {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(17, 65, 108, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.94) 100%);
}

.supplier-compare-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.supplier-compare-side-supplier {
  font-size: 0.92rem;
  color: #0f3558;
}

.supplier-compare-side-product {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: #0f3558;
  line-height: 1.35;
}

.supplier-compare-side-price {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(15, 53, 88, 0.68);
}

.supplier-compare-side-detach {
  border: 0;
  background: transparent;
  color: #007bc8;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.supplier-compare-usage {
  display: block;
}

.supplier-link-advanced-details--tarifs {
  margin-top: 8px;
}

@media (max-width: 720px) {
  .supplier-compare-sides-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .mercuriale-detail-edit-grid {
    grid-template-columns: 1fr;
  }
}

.supplier-refresh-review-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(14, 30, 50, 0.35);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 240ms ease,
    visibility 0ms linear 240ms,
    backdrop-filter 240ms ease;
}

.supplier-refresh-review-overlay[data-active="true"] {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 240ms ease,
    visibility 0ms linear,
    backdrop-filter 240ms ease;
}

.supplier-refresh-review-panel {
  width: min(100%, 640px);
  max-height: min(88vh, 720px);
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(17, 65, 108, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  box-shadow:
    0 28px 64px rgba(16, 52, 87, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.supplier-refresh-review-head {
  display: grid;
  gap: 8px;
}

.supplier-refresh-review-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 750;
  color: var(--ink);
}

.supplier-refresh-review-note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
}

.supplier-refresh-review-list-intro {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(20, 63, 102, 0.66);
}

.supplier-refresh-review-list-host {
  max-height: min(340px, 46vh);
  overflow: auto;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(17, 65, 108, 0.08);
  background: rgba(248, 251, 255, 0.85);
}

.supplier-refresh-review-list {
  margin: 0;
  padding-left: 1rem;
}

.supplier-refresh-review-li small {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  color: rgba(178, 24, 24, 0.95);
}

.supplier-refresh-review-li-line strong {
  display: block;
  font-size: 0.87rem;
  color: var(--ink);
}

.supplier-refresh-review-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.supplier-refresh-review-stat {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.supplier-refresh-review-stat--ok {
  color: #166534;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.22);
}

.supplier-refresh-review-stat--error {
  color: #991b1b;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.supplier-refresh-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.supplier-refresh-review-cancel {
  min-height: 44px;
}

.supplier-refresh-review-apply {
  min-height: 44px;
}

.mercuriale-add-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.mercuriale-add-panel-copy {
  display: grid;
  gap: 6px;
}

.mercuriale-add-panel-title {
  color: var(--ink);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.mercuriale-add-panel-note {
  color: var(--muted);
  font-size: 0.83rem;
}

.mercuriale-add-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(17, 65, 108, 0.08);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.95);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 500;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.mercuriale-add-close:hover {
  border-color: rgba(0, 123, 200, 0.18);
  color: var(--accent-strong);
  background: rgba(241, 248, 255, 0.98);
}

.mercuriale-add-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.mercuriale-add-field {
  display: grid;
  gap: 8px;
}

.mercuriale-add-field > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mercuriale-add-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(17, 65, 108, 0.08);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  font: inherit;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 16px rgba(16, 52, 87, 0.025);
}

.mercuriale-add-field input:focus {
  outline: none;
  border-color: rgba(0, 123, 200, 0.24);
  box-shadow:
    0 0 0 4px rgba(0, 173, 239, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.mercuriale-add-footer {
  display: flex;
  justify-content: center;
}

.mercuriale-delete-confirm-footer {
  justify-content: flex-end;
}

.mercuriale-add-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.mercuriale-delete-confirm-actions {
  justify-content: flex-end;
  width: auto;
}

.mercuriale-add-submit {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
}

.mercuriale-add-feedback {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.83rem;
  font-weight: 700;
}

.mercuriale-add-feedback-neutral {
  border: 1px solid rgba(17, 65, 108, 0.08);
  background: rgba(243, 248, 255, 0.92);
  color: var(--accent-strong);
}

.mercuriale-add-feedback-danger {
  border: 1px solid rgba(201, 59, 59, 0.14);
  background: rgba(255, 243, 243, 0.96);
  color: var(--danger);
}

/* Progression recherche ajout Mercuriale (lecture prix Sysco via pont) */
.mercuriale-add-progress {
  display: grid;
  gap: 8px;
  width: 100%;
}

.mercuriale-add-progress-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(17, 65, 108, 0.09);
  overflow: hidden;
}

.mercuriale-add-progress-fill {
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 123, 200, 0.88), rgba(0, 173, 239, 0.92));
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.mercuriale-add-progress-fill-indeterminate {
  width: 100% !important;
  background: linear-gradient(
    105deg,
    rgba(0, 123, 200, 0.2) 0%,
    rgba(0, 173, 239, 0.55) 48%,
    rgba(0, 123, 200, 0.2) 100%
  ) !important;
  background-size: 200% 100%;
  animation: mercuriale-add-progress-shimmer 1.15s linear infinite;
}

@keyframes mercuriale-add-progress-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.mercuriale-add-progress-detail {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
  color: rgba(18, 58, 96, 0.78);
}

.purchase-filter-block {
  display: grid;
  gap: 6px;
  justify-items: stretch;
  width: 100%;
  padding: 10px 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(17, 65, 108, 0.055);
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98) 0%, rgba(246, 250, 255, 0.94) 100%);
  box-shadow:
    0 10px 18px rgba(16, 52, 87, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.purchase-filter-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  opacity: 0.82;
}

.purchase-category-menu {
  margin-top: 0;
  width: 100%;
  justify-content: center;
}

.purchase-subcategory-menu {
  min-height: 42px;
}

.purchase-filter-select {
  width: 100%;
  min-height: 44px;
  padding: 0 40px 0 16px;
  border: 1px solid rgba(17, 65, 108, 0.075);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 250, 255, 0.92) 100%);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow:
    0 8px 16px rgba(16, 52, 87, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(16, 56, 93, 0.75) 50%),
    linear-gradient(135deg, rgba(16, 56, 93, 0.75) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.purchase-filter-select:hover,
.purchase-filter-select:focus-visible {
  outline: none;
  border-color: rgba(0, 123, 200, 0.22);
  box-shadow:
    0 12px 24px rgba(16, 52, 87, 0.05),
    0 0 0 4px rgba(0, 123, 200, 0.08);
}

.purchase-filter-select:disabled {
  color: rgba(16, 56, 93, 0.5);
  background-color: rgba(247, 250, 255, 0.9);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.dish-card {
  padding: 22px;
  border: none;
  border-radius: var(--radius-lg);
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 248, 255, 0.95) 100%);
  box-shadow: var(--shadow-soft);
}

.dish-card[data-tone="good"] {
  background: linear-gradient(165deg, rgba(241, 253, 244, 0.96), rgba(255, 255, 255, 0.9));
}

.dish-card[data-tone="alert"] {
  background: linear-gradient(165deg, rgba(255, 248, 238, 0.96), rgba(255, 255, 255, 0.9));
}

.dish-card[data-tone="danger"] {
  background: linear-gradient(165deg, rgba(255, 240, 240, 0.96), rgba(255, 255, 255, 0.9));
}

.dish-name {
  display: block;
  margin-top: 10px;
  font-size: 1.24rem;
  line-height: 1.15;
}

.margin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
}

.margin-pill-good,
.health-card-good,
.meter-fill-good {
  background: var(--success-soft);
  color: var(--success);
}

.margin-pill-alert,
.health-card-alert,
.meter-fill-alert {
  background: var(--alert-soft);
  color: var(--alert);
}

.margin-pill-danger,
.health-card-danger,
.meter-fill-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.margin-pill-neutral,
.health-card-neutral,
.meter-fill-neutral {
  background: var(--neutral-soft);
  color: var(--ink);
}

.dish-metrics,
.detail-metrics,
.spotlight-grid,
.purchase-highlights {
  display: grid;
  gap: 12px;
}

.dish-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.dish-card-footer-row {
  align-items: center;
  margin-top: 16px;
  font-size: 0.92rem;
}

.dish-card-link {
  color: var(--accent);
  font-weight: 800;
}

.metric-chip,
.detail-metric,
.spotlight-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 248, 255, 0.92) 100%);
  box-shadow: var(--shadow-soft);
}

.metric-chip span,
.detail-metric span,
.spotlight-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.metric-chip strong,
.detail-metric strong,
.spotlight-card strong {
  display: block;
  margin-top: 6px;
}

.detail-layout {
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1.45fr);
  align-items: start;
}

.detail-sidebar,
.detail-main {
  min-height: 100%;
}

.detail-selector-panel {
  display: grid;
  gap: 12px;
}

.detail-selector-panel[hidden] {
  display: none !important;
}

.detail-selector-head {
  margin-bottom: 0;
  justify-content: center;
}

.detail-selector-head > div {
  width: 100%;
  text-align: center;
}

.detail-selector-head h2 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  letter-spacing: 0.12em;
}

.detail-search-field {
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
}

.detail-search-field input {
  width: 100%;
  min-height: 52px;
  text-align: center;
}

.detail-top-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

#detail-editor-host {
  display: grid;
  gap: 12px;
}

.detail-editor-screen {
  display: grid;
  gap: 20px;
}

.detail-editor-picker {
  display: grid;
  gap: 16px;
  padding: 22px 22px 18px;
  border-radius: 26px;
  border: 1px solid rgba(17, 65, 108, 0.07);
  background: linear-gradient(180deg, rgba(252, 254, 255, 1) 0%, rgba(245, 250, 255, 0.98) 100%);
  box-shadow:
    0 16px 28px rgba(16, 52, 87, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.detail-editor-picker-head {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.detail-editor-picker-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #10385d;
}

.detail-editor-picker-copy {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(16, 56, 93, 0.7);
}

.detail-inline-editor-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-editor-recipe {
  display: grid;
  gap: 16px;
}

.detail-inline-editor-recipe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-inline-editor-recipe-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-inline-ingredient-list {
  display: grid;
  gap: 14px;
}

.detail-inline-ingredient-row {
  display: grid;
  gap: 14px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(17, 65, 108, 0.07);
  background: linear-gradient(180deg, rgba(251, 253, 255, 1) 0%, rgba(245, 250, 255, 0.985) 100%);
  box-shadow:
    0 12px 22px rgba(16, 52, 87, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.detail-inline-ingredient-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-inline-ingredient-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  background: rgba(240, 247, 255, 0.92);
  color: #0f4c81;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.08);
}

.detail-inline-ingredient-grid {
  display: grid;
  gap: 14px;
}

.detail-inline-ingredient-top,
.detail-inline-ingredient-bottom {
  display: grid;
  justify-content: center;
  gap: 14px;
}

.detail-inline-ingredient-top {
  grid-template-columns: repeat(2, minmax(220px, 320px));
}

.detail-inline-ingredient-bottom {
  grid-template-columns: repeat(3, minmax(120px, 180px));
  gap: 14px;
  justify-content: center;
}

.detail-inline-ingredient-piece-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding-top: 4px;
}

.detail-inline-ingredient-piece-row .detail-editor-field-piece-net[hidden] {
  display: none;
}

.detail-inline-ingredient-top .detail-editor-field,
.detail-inline-ingredient-bottom .detail-editor-field {
  justify-items: center;
  text-align: center;
}

.detail-inline-ingredient-top .detail-editor-field span,
.detail-inline-ingredient-bottom .detail-editor-field span {
  text-align: center;
}

.detail-inline-ingredient-top .detail-editor-field input,
.detail-inline-ingredient-top .detail-editor-field select,
.detail-inline-ingredient-bottom .detail-editor-field input,
.detail-inline-ingredient-bottom .detail-editor-field select,
.detail-inline-ingredient-bottom .detail-editor-static-value {
  width: 100%;
  text-align: center;
}

.detail-selector-hidden {
  display: none;
}

.detail-selector-field {
  width: 100%;
}

.detail-selector-field select,
#detail-view .detail-sidebar select {
  width: 100%;
  min-height: 54px;
}

.detail-section-tabs {
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

#detail-view .section-tab {
  min-height: 38px;
  padding: 0.66rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.detail-quick-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.quick-item {
  padding: 14px 16px;
  border: none;
  border-radius: 18px;
  text-align: left;
  background: rgba(241, 248, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(90, 163, 222, 0.1);
}

.quick-item[data-active="true"] {
  background: linear-gradient(135deg, #5aa3de 0%, #2f7cbc 100%);
  color: rgba(255, 255, 255, 0.99);
  box-shadow: none;
}

.quick-item strong,
.quick-item span {
  display: block;
}

.quick-item span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-intro {
  align-items: start;
}

.detail-copy {
  max-width: 55ch;
  margin: 12px 0 0;
  line-height: 1.55;
}

.health-card {
  min-width: 160px;
  padding: 16px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.health-value {
  display: block;
  margin-top: 10px;
  font-size: 1.65rem;
}

.health-meta {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
}

.detail-metrics,
.spotlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.spotlight-card p {
  margin: 10px 0 0;
  line-height: 1.45;
}

.spotlight-card-good {
  background: rgba(236, 253, 241, 0.92);
}

.spotlight-card-danger {
  background: rgba(255, 240, 240, 0.92);
}

.meter-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 248, 255, 0.95) 100%);
  box-shadow: var(--shadow-soft);
}

.meter-track {
  height: 16px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.08);
}

.meter-fill {
  height: 100%;
  border-radius: inherit;
}

.recipe-block {
  margin-top: 22px;
}

.recipe-block .section-header h3,
.recipe-block .section-header span,
.ingredient-list {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.recipe-block .section-header h3 {
  letter-spacing: -0.03em;
}

.recipe-block .section-header span {
  color: rgba(16, 56, 93, 0.62);
  font-size: 0.82rem;
  font-weight: 680;
}

.ingredient-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.ingredient-card {
  position: relative;
  display: grid;
  gap: 0;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(247, 251, 255, 0.98) 100%);
  box-shadow:
    0 14px 30px rgba(16, 52, 87, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 65, 108, 0.06);
}

.ingredient-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 173, 239, 0.9) 0%, rgba(0, 123, 200, 0.72) 100%);
  box-shadow: 0 0 0 4px rgba(0, 173, 239, 0.06);
}

.ingredient-card-top {
  display: block;
}

.ingredient-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ingredient-card-inline-edit {
  gap: 16px;
  padding: 20px 22px;
}

.ingredient-card-top-edit {
  align-items: start;
}

.ingredient-title-wrap {
  display: grid;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
}

.ingredient-edit-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.ingredient-edit-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.48rem 0.82rem;
  border-radius: 999px;
  background: rgba(246, 250, 255, 0.95);
  color: rgba(16, 56, 93, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.ingredient-edit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.ingredient-edit-unit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(240, 248, 255, 0.98) 0%, rgba(232, 243, 255, 0.98) 100%);
  color: #0f4c81;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.08);
}

.ingredient-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(201, 59, 59, 0.12);
  border-radius: 12px;
  background: rgba(255, 246, 246, 0.94);
  color: #c93b3b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.ingredient-delete-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 240, 240, 0.98);
  border-color: rgba(201, 59, 59, 0.2);
  box-shadow:
    0 8px 16px rgba(201, 59, 59, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.ingredient-delete-button svg {
  width: 16px;
  height: 16px;
}

.ingredient-inline-edit-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.ingredient-inline-edit-bottom-main {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ingredient-inline-piece-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.ingredient-inline-piece-row[hidden] {
  display: none;
}

.ingredient-inline-piece-net[hidden] {
  display: none;
}

.ingredient-inline-unit {
  min-width: 120px;
}

.ingredient-inline-unit-select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 123, 200, 0.12);
  background: rgba(255, 255, 255, 0.98);
  color: #10385d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 6px 12px rgba(16, 52, 87, 0.02);
}

.ingredient-inline-unit-select:focus {
  outline: none;
  border-color: rgba(0, 123, 200, 0.28);
  box-shadow:
    0 0 0 4px rgba(0, 173, 239, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.ingredient-inline-quantity,
.ingredient-inline-picker {
  display: grid;
  gap: 8px;
}

.ingredient-inline-quantity {
  min-width: 164px;
}

.ingredient-inline-quantity-label,
.ingredient-inline-picker-label {
  color: rgba(16, 56, 93, 0.56);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ingredient-inline-quantity input,
.ingredient-inline-picker select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 123, 200, 0.12);
  background: rgba(255, 255, 255, 0.98);
  color: #10385d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 6px 12px rgba(16, 52, 87, 0.02);
}

.ingredient-inline-quantity input:focus,
.ingredient-inline-picker select:focus {
  outline: none;
  border-color: rgba(0, 123, 200, 0.28);
  box-shadow:
    0 0 0 4px rgba(0, 173, 239, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.ingredient-inline-price {
  min-width: 160px;
}

.ingredient-product-search-field {
  position: relative;
}

.ingredient-product-search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 123, 200, 0.12);
  background: rgba(255, 255, 255, 0.98);
  color: #10385d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 6px 12px rgba(16, 52, 87, 0.02);
}

.ingredient-product-search-input:focus {
  outline: none;
  border-color: rgba(0, 123, 200, 0.28);
  box-shadow:
    0 0 0 4px rgba(0, 173, 239, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.ingredient-product-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: grid;
  gap: 8px;
  max-height: 260px;
  padding: 10px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(17, 65, 108, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 18px 32px rgba(16, 52, 87, 0.09),
    0 6px 12px rgba(16, 52, 87, 0.04);
}

.ingredient-product-search-option {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(17, 65, 108, 0.06);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(250, 253, 255, 1) 0%, rgba(244, 249, 255, 0.98) 100%);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.ingredient-product-search-option:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 123, 200, 0.14);
  box-shadow:
    0 10px 18px rgba(16, 52, 87, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.ingredient-product-search-option-title {
  color: #10385d;
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ingredient-product-search-option-meta {
  color: rgba(16, 56, 93, 0.6);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.35;
}

.ingredient-name {
  display: block;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: #10385d;
  font-size: 1.02rem;
  font-weight: 760;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.ingredient-supplier-inline {
  display: block;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: rgba(0, 95, 160, 0.76);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ingredient-facts {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 0;
  width: fit-content;
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(238, 247, 255, 0.92) 0%, rgba(247, 251, 255, 0.99) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 123, 200, 0.08),
    0 10px 18px rgba(0, 123, 200, 0.05);
  overflow: hidden;
}

.ingredient-fact {
  display: grid;
  gap: 4px;
  justify-items: center;
  align-items: center;
  min-width: 122px;
  padding: 0.78rem 1rem 0.82rem;
  text-align: center;
}

.ingredient-fact + .ingredient-fact {
  border-left: 1px solid rgba(0, 123, 200, 0.08);
}

.ingredient-fact-highlight {
  background: linear-gradient(180deg, rgba(232, 245, 255, 0.9) 0%, rgba(243, 250, 255, 0.98) 100%);
}

.ingredient-fact-label {
  display: block;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: rgba(0, 95, 160, 0.72);
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.1;
}

.ingredient-fact-value {
  display: block;
  width: 100%;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: #10385d;
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
}

.ingredient-fact-value-price {
  color: #0c4f82;
  font-size: 1rem;
  font-weight: 790;
}

.ingredient-fact-subnote {
  display: block;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: rgba(16, 56, 93, 0.62);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 2px;
}

.ingredient-cost {
  font-weight: 800;
}

.ingredient-meta,
.ingredient-supplier {
  margin: 10px 0 0;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .ingredient-card {
    gap: 10px;
  }

  .ingredient-card-top {
    flex-direction: column;
    align-items: start;
  }

  .ingredient-inline-edit-bottom-main {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .ingredient-inline-piece-row {
    flex-direction: column;
  }

  .ingredient-inline-edit-bottom,
  .ingredient-edit-header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .ingredient-facts {
    width: 100%;
    grid-template-columns: 1fr;
    align-self: stretch;
  }

  .ingredient-fact {
    min-width: 0;
  }

  .ingredient-fact + .ingredient-fact {
    border-left: none;
    border-top: 1px solid rgba(0, 123, 200, 0.08);
  }

  .ingredient-inline-quantity,
  .ingredient-inline-unit,
  .ingredient-inline-piece-net,
  .ingredient-inline-price,
  .ingredient-inline-picker {
    width: 100%;
    min-width: 0;
  }
}

.products-summary {
  position: sticky;
  top: 14px;
  z-index: 8;
  margin-top: 12px;
}

.mercuriale-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(17, 65, 108, 0.08);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  box-shadow:
    0 8px 20px rgba(16, 52, 87, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.mercuriale-context-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mercuriale-context-path {
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.mercuriale-context-note {
  display: none;
}

.mercuriale-context-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(237, 245, 255, 0.92);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.product-simple-groups {
  display: block;
  margin-top: 12px;
}

.mercuriale-table-shell {
  display: grid;
  gap: 8px;
}

.mercuriale-table-head,
.mercuriale-row {
  display: grid;
  grid-template-columns: 1.38fr 0.82fr 0.86fr 0.72fr 0.88fr 0.86fr 0.68fr 0.64fr 0.76fr;
  gap: 8px;
  align-items: center;
}

.mercuriale-table-head {
  position: sticky;
  top: 68px;
  z-index: 7;
  padding: 0 10px;
  min-height: 30px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(246, 250, 255, 0.88);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(17, 65, 108, 0.04);
}

.mercuriale-head-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.mercuriale-head-cell-product {
  justify-content: flex-start;
  text-align: left;
}

.mercuriale-table-body {
  display: grid;
  gap: 18px;
}

/* Niveau 1 — FAMILLE (mainCategory) : titre fort, accentué, encadré. */
.mercuriale-family-section {
  display: grid;
  gap: 12px;
}

.mercuriale-family-section + .mercuriale-family-section {
  margin-top: 6px;
}

.mercuriale-family-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(0, 123, 200, 0.12) 0%,
    rgba(0, 123, 200, 0.04) 100%
  );
  border: 1px solid rgba(0, 123, 200, 0.2);
  box-shadow: 0 4px 12px rgba(16, 52, 87, 0.05);
}

.mercuriale-family-title {
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 850;
  line-height: 1.2;
}

.mercuriale-family-meta {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  opacity: 0.78;
  white-space: nowrap;
}

.mercuriale-family-body {
  display: grid;
  gap: 14px;
  padding-left: 14px;
  margin-left: 8px;
  border-left: 2px solid rgba(0, 123, 200, 0.18);
}

/* Niveau 2 — SOUS-CATÉGORIE : titre intermédiaire, sobre, séparé du précédent. */
.mercuriale-group-section {
  display: grid;
  gap: 8px;
}

.mercuriale-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px 6px;
  border-bottom: 1px dashed rgba(17, 65, 108, 0.12);
}

.mercuriale-group-title {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 800;
}

.mercuriale-group-meta {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.mercuriale-group-rows {
  display: grid;
  gap: 6px;
}

.mercuriale-row-shell {
  display: grid;
  gap: 6px;
}

.mercuriale-row {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(17, 65, 108, 0.06);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 251, 255, 0.96) 100%);
  box-shadow:
    0 8px 18px rgba(16, 52, 87, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.mercuriale-row:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 123, 200, 0.14);
  box-shadow:
    0 16px 30px rgba(16, 52, 87, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.mercuriale-row-shell[data-expanded="true"] .mercuriale-row {
  border-color: rgba(0, 123, 200, 0.16);
}

.mercuriale-cell {
  min-width: 0;
  color: var(--ink);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.2;
}

.mercuriale-cell-conditioning {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
}

.mercuriale-cell-standardized {
  font-weight: 760;
}

.mercuriale-cell-ref {
  cursor: pointer;
  border-radius: 10px;
  padding: 2px 6px;
  margin: -2px -6px;
  outline-offset: 2px;
  font-weight: 700;
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: rgba(0, 123, 200, 0.35);
  text-underline-offset: 3px;
}

.mercuriale-cell-ref:hover {
  text-decoration-color: rgba(0, 123, 200, 0.65);
  background: rgba(232, 243, 255, 0.55);
}

.mercuriale-cell-ref:focus-visible {
  outline: 2px solid rgba(0, 123, 200, 0.45);
}

.mercuriale-cell-product {
  display: grid;
  gap: 4px;
  text-align: left;
}

.mercuriale-product-name {
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.mercuriale-product-meta {
  color: var(--muted);
  font-size: 0.7rem;
}

.mercuriale-cell-price {
  font-weight: 800;
}

.mercuriale-cell-unit {
  color: var(--muted);
  font-size: 0.84rem;
}

.mercuriale-cell-variation-good {
  color: var(--success);
}

.mercuriale-cell-variation-danger {
  color: var(--danger);
}

.mercuriale-cell-variation-alert {
  color: #b76600;
}

.mercuriale-cell-variation-neutral,
.mercuriale-cell-variation-manual {
  color: var(--muted);
}

.mercuriale-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.mercuriale-status-pill-good {
  background: rgba(227, 247, 233, 0.96);
  color: var(--success);
}

.mercuriale-status-pill-danger {
  background: rgba(255, 236, 236, 0.96);
  color: var(--danger);
}

.mercuriale-status-pill-alert {
  background: rgba(255, 244, 231, 0.96);
  color: #b76600;
}

.mercuriale-status-pill-neutral {
  background: rgba(240, 246, 252, 0.96);
  color: var(--muted);
}

.mercuriale-status-pill-manual {
  background: rgba(232, 243, 255, 0.96);
  color: var(--accent-strong);
}

.mercuriale-row-detail {
  padding: 2px 4px 4px;
}

.mercuriale-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(17, 65, 108, 0.06);
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.99) 0%, rgba(244, 249, 255, 0.97) 100%);
  box-shadow:
    0 14px 28px rgba(16, 52, 87, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.mercuriale-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.mercuriale-detail-metric,
.mercuriale-detail-block {
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(17, 65, 108, 0.05);
}

.mercuriale-detail-metric {
  display: grid;
  gap: 6px;
}

.mercuriale-detail-metric-label,
.mercuriale-history-date,
.mercuriale-detail-empty {
  color: var(--muted);
  font-size: 0.79rem;
}

.mercuriale-detail-metric-value,
.mercuriale-history-values {
  font-size: 0.94rem;
  letter-spacing: -0.01em;
}

.mercuriale-detail-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.mercuriale-detail-block {
  display: grid;
  gap: 10px;
}

.mercuriale-detail-block-title {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.mercuriale-history-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(244, 249, 255, 0.9);
}

.mercuriale-usage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mercuriale-usage-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(237, 245, 255, 0.92);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.mercuriale-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mercuriale-action-button {
  min-height: 44px;
  padding-inline: 18px;
}

.empty-state {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 248, 255, 0.95) 100%);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1350px) {
  .summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 1180px) {
  .hero,
  .overview-layout,
  .detail-layout,
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-shell {
    position: static;
    height: auto;
  }

  .view-switcher {
    padding: 18px;
    height: auto;
    overflow: visible;
  }

  .sidebar-nav-tree {
    overflow: visible;
    padding-right: 0;
  }

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

  .view-tab {
    text-align: center;
  }

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

  .strip-meta-grid,
  .overview-strips {
    grid-template-columns: 1fr;
  }

  .detail-metrics,
  .spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 20px, 1500px);
    padding-top: 20px;
  }

  .app-layout {
    gap: 18px;
  }

  .hero-main,
  .panel,
  .view-switcher {
    padding: 18px;
  }

  .view-tabs,
  .summary-grid,
  .alert-cards,
  .overview-strips,
  .menu-grid,
  .detail-metrics,
  .spotlight-grid,
  .dish-metrics,
  .sim-results,
  .field-row,
  .strip-meta-grid {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .catalog-head,
  .detail-intro,
  .section-header,
  .meter-header,
  .dish-card-top,
  .dish-card-footer-row,
  .ingredient-card-header,
  .strip-top,
  .mercuriale-context-bar,
  .mercuriale-history-item,
  .mercuriale-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .search-field {
    min-width: 0;
  }

  .mercuriale-table-head,
  .mercuriale-row,
  .mercuriale-detail-grid,
  .mercuriale-detail-metrics {
    grid-template-columns: 1fr;
  }

  .mercuriale-table-head {
    display: none;
  }

  .mercuriale-cell,
  .mercuriale-cell-product {
    text-align: left;
  }

  .purchase-filter-stack {
    grid-template-columns: 1fr;
  }

  .mercuriale-supplier-switch {
    flex-direction: column;
    align-items: stretch;
  }

  .mercuriale-group-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .mercuriale-family-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 12px;
  }

  .mercuriale-family-body {
    padding-left: 10px;
    margin-left: 4px;
  }

  .mercuriale-family-title {
    font-size: 0.96rem;
  }

  .mercuriale-add-form {
    grid-template-columns: 1fr;
  }

  .mercuriale-add-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .mercuriale-delete-confirm-footer {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  .mercuriale-add-actions:not(.mercuriale-delete-confirm-actions),
  .mercuriale-add-submit {
    width: 100%;
  }

  .mercuriale-delete-confirm-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .mercuriale-add-overlay {
    padding: 16px;
  }
}


.strip-meta-card span {
  white-space: nowrap;
}

.strip-meta-card strong {
  text-align: center;
}

/* Premiere page: lisibilite max */
#dashboard-view {
  gap: 16px;
}

.dashboard-hero-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 22px;
  padding: 30px 30px 30px;
  border: 1px solid rgba(15, 23, 42, 0.045);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at right 14%, rgba(0, 123, 200, 0.14) 0%, rgba(0, 123, 200, 0) 31%),
    radial-gradient(circle at left 82%, rgba(212, 180, 126, 0.18) 0%, rgba(212, 180, 126, 0) 28%),
    linear-gradient(142deg, rgba(255, 255, 255, 0.99) 0%, rgba(251, 246, 239, 0.985) 46%, rgba(243, 249, 253, 0.975) 100%);
  box-shadow:
    0 24px 42px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.dashboard-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0) 22%);
  pointer-events: none;
}

.dashboard-hero-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 123, 200, 0.16) 0%, rgba(0, 123, 200, 0) 68%);
  pointer-events: none;
}

.dashboard-hero-copy {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 920px;
  justify-items: center;
  align-content: start;
  text-align: center;
  position: relative;
  z-index: 1;
}

.dashboard-hero-panel {
  padding-block: 30px;
}

.dashboard-hero-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-hero-title {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.72rem, 2.85vw, 2.35rem);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}

.dashboard-hero-subtitle {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.5rem 0.92rem;
  max-width: 48ch;
  color: rgba(27, 56, 84, 0.88);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 10px 18px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.dashboard-hero-mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 820px);
  margin-top: 14px;
}

.dashboard-hero-subtitle[hidden],
.dashboard-hero-mini-kpis[hidden] {
  display: none;
}

.dashboard-hero-mini-kpi {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-height: 96px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 16px 30px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  text-align: center;
}

.dashboard-hero-mini-kpi-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-hero-mini-kpi-value {
  color: var(--ink);
  font-size: 1.34rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.dashboard-hero-mini-kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.16);
}

.dashboard-hero-mini-kpi-good .dashboard-hero-mini-kpi-value {
  color: var(--success-strong);
}

.dashboard-hero-mini-kpi-good::before {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.95), rgba(22, 163, 74, 0.28));
}

.dashboard-hero-mini-kpi-danger .dashboard-hero-mini-kpi-value {
  color: var(--danger-strong);
}

.dashboard-hero-mini-kpi-danger::before {
  background: linear-gradient(90deg, rgba(201, 59, 59, 0.96), rgba(201, 59, 59, 0.28));
}

.dashboard-hero-mini-kpi-neutral .dashboard-hero-mini-kpi-value {
  color: var(--accent-strong);
}

.dashboard-hero-mini-kpi-neutral::before {
  background: linear-gradient(90deg, rgba(0, 123, 200, 0.96), rgba(0, 123, 200, 0.26));
}

.dashboard-hero-meta {
  display: grid;
  justify-items: center;
  gap: 14px;
  align-content: center;
}

.dashboard-hero-meta .update-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
}

.dashboard-hero-copy .update-card-shell {
  width: 100%;
}

.dashboard-hero-copy .update-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  width: 100%;
  min-height: 74px;
  padding: 14px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 254, 0.96) 100%);
  box-shadow: 0 12px 24px rgba(0, 123, 200, 0.05);
}

.dashboard-hero-copy .update-card-dot {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
}

.dashboard-hero-copy .update-card-copy {
  justify-items: center;
  width: 100%;
}

.dashboard-hero-copy .update-card-value,
.dashboard-hero-copy .update-card-details {
  text-align: center;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}

.dashboard-import-button {
  min-height: 56px;
  padding: 0 22px;
  border-radius: 20px;
  border: 1px solid rgba(0, 123, 200, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dashboard-import-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 123, 200, 0.26);
  box-shadow: 0 16px 28px rgba(0, 123, 200, 0.1);
}

.dashboard-refresh-button {
  min-height: 56px;
  padding: 0 24px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #00adef 0%, #007bc8 100%);
  color: rgba(255, 255, 255, 0.99);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 28px rgba(0, 123, 200, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.dashboard-refresh-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(0, 123, 200, 0.22);
}

.dashboard-refresh-button:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
  box-shadow: 0 10px 20px rgba(0, 123, 200, 0.12);
}

.dashboard-supplier-refresh-zone {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0 0 12px;
}

.dashboard-supplier-refresh-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.dashboard-supplier-refresh-panel {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 123, 200, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.96) 100%);
  box-shadow: 0 8px 22px rgba(16, 52, 87, 0.08);
}

.dashboard-supplier-refresh-panel[hidden],
.dashboard-supplier-refresh-loading[hidden] {
  display: none !important;
}

.dashboard-supplier-refresh-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-supplier-refresh-panel-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-supplier-refresh-panel-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(0, 123, 200, 0.16);
  border-top-color: rgba(0, 123, 200, 0.9);
  animation: supplier-refresh-spin 0.75s linear infinite;
}

.dashboard-supplier-refresh-panel-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #10385d;
}

.dashboard-supplier-refresh-btn-icon::before {
  content: "↻";
  font-size: 1rem;
  line-height: 1;
}

.dashboard-supplier-refresh-zone.is-running .dashboard-supplier-refresh-btn-icon::before {
  display: inline-block;
  animation: supplier-refresh-spin 0.85s linear infinite;
}

@keyframes supplier-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.dashboard-supplier-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-supplier-progress-count {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 63, 102, 0.72);
}

.dashboard-supplier-progress-percent {
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(0, 123, 200, 0.95);
}

.dashboard-supplier-progress-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.12);
}

.dashboard-supplier-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 123, 200, 0.95), rgba(72, 184, 255, 0.95));
  transition: width 0.28s ease-out;
}

.dashboard-supplier-progress-detail {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
  min-height: 1.35em;
}

.dashboard-supplier-refresh-loading .dashboard-supplier-progress-detail {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.dashboard-supplier-progress-track--embedded {
  height: 10px;
}

.dashboard-refresh-progress {
  width: min(100%, 560px);
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.12);
}

.dashboard-refresh-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 123, 200, 0.95), rgba(72, 184, 255, 0.95));
  transition: width 0.35s ease;
}

.dashboard-refresh-button-secondary {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 18px;
  font-size: 0.88rem;
}

.dashboard-supplier-refresh-button {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: min(100%, 16rem);
  min-height: 40px;
  padding: 0 16px;
}

.dashboard-supplier-refresh-button.is-loading:disabled {
  opacity: 0.88;
  cursor: progress;
}

.dashboard-supplier-refresh-cancel {
  min-height: 40px;
}

.dashboard-refresh-button-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  min-height: 2.85rem;
}

.dashboard-refresh-button-compact {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 16px;
  box-shadow: 0 10px 18px rgba(0, 123, 200, 0.12);
}

.dashboard-data-footer-panel {
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.dashboard-data-footer-head {
  display: flex;
  justify-content: center;
}

.dashboard-data-footer-title {
  color: rgba(20, 63, 102, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-update-card-shell {
  justify-content: center;
}

.dashboard-data-footer-panel .update-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(28, 74, 116, 0.04);
}

.dashboard-data-footer-panel .update-card-copy {
  justify-items: start;
}

.dashboard-data-footer-panel .update-card-value {
  font-size: 0.84rem;
}

.dashboard-data-footer-panel .update-card-details {
  font-size: 0.74rem;
}

.dashboard-data-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.dashboard-refresh-inline-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  flex-wrap: wrap;
}

.dashboard-refresh-inline-status[hidden],
.dashboard-supplier-refresh-button.is-loading .dashboard-refresh-inline-status::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: rgba(255, 255, 255, 0.98);
  animation: dashboardRefreshSpin 0.85s linear infinite;
  flex: 0 0 auto;
}

.dashboard-refresh-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.dashboard-refresh-note[data-status="success"] {
  color: var(--success);
}

.dashboard-refresh-note[data-status="partial"] {
  color: var(--alert);
}

.dashboard-refresh-note[data-status="loading"] {
  color: var(--accent-strong);
}

.dashboard-refresh-note[data-status="error"] {
  color: var(--danger);
}

@keyframes dashboardRefreshSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-kpi-grid-hero {
  position: relative;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 6px;
  padding-top: 18px;
  z-index: 1;
}

.dashboard-kpi-grid-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 720px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0, 123, 200, 0), rgba(0, 123, 200, 0.16), rgba(0, 123, 200, 0));
}

.dashboard-suppliers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.dashboard-supplier-monitoring,
.dashboard-supplier-alerts,
.dashboard-shortcuts-grid {
  display: grid;
  gap: 16px;
}

.dashboard-supplier-alerts-panel-wide .dashboard-supplier-alerts {
  grid-template-columns: 1fr;
  gap: 14px;
}

.dashboard-supplier-alerts-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-supplier-alert-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-supplier-alert-summary-card {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 123, 200, 0.08);
  box-shadow: 0 12px 22px rgba(28, 74, 116, 0.04);
}

.dashboard-supplier-alert-summary-card-neutral {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.96) 100%);
}

.dashboard-supplier-alert-summary-card-alert {
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.dashboard-supplier-alert-summary-card-good {
  background: linear-gradient(180deg, rgba(244, 252, 247, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.dashboard-supplier-alert-summary-card-danger {
  background: linear-gradient(180deg, rgba(255, 247, 247, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.dashboard-supplier-alert-summary-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-supplier-alert-summary-value {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.dashboard-supplier-alert-summary-card-good .dashboard-supplier-alert-summary-value {
  color: var(--success);
}

.dashboard-supplier-alert-summary-card-alert .dashboard-supplier-alert-summary-value {
  color: var(--alert);
}

.dashboard-supplier-alert-summary-card-danger .dashboard-supplier-alert-summary-value {
  color: var(--danger);
}

.dashboard-supplier-alert-summary-detail {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.dashboard-supplier-alerts-toolbar:empty {
  display: none;
  margin-bottom: 0;
}

.dashboard-history-link-button,
.dashboard-history-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 0.92rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.1);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.dashboard-history-link-button:hover,
.dashboard-history-back-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(28, 74, 116, 0.08);
}

.dashboard-supplier-alert-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-supplier-alert-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0.48rem 0.82rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 16px rgba(28, 74, 116, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.dashboard-supplier-alert-filter:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(28, 74, 116, 0.08);
}

.dashboard-supplier-alert-filter span {
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-supplier-alert-filter strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  line-height: 1;
}

.dashboard-supplier-alert-filter-danger {
  background: linear-gradient(135deg, rgba(201, 59, 59, 0.12) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.dashboard-supplier-alert-filter-danger strong {
  color: var(--danger);
  background: rgba(201, 59, 59, 0.12);
}

.dashboard-supplier-alert-filter-alert {
  background: linear-gradient(135deg, rgba(217, 135, 50, 0.14) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.dashboard-supplier-alert-filter-alert strong {
  color: var(--alert);
  background: rgba(217, 135, 50, 0.14);
}

.supplier-alert-section {
  display: grid;
  gap: 14px;
}

.supplier-alert-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.supplier-alert-section-copy {
  display: grid;
  gap: 4px;
}

.supplier-alert-section-title {
  margin: 0;
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.supplier-alert-section-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.supplier-alert-section-aside {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.supplier-alert-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.supplier-alert-section-count-danger {
  background: rgba(201, 59, 59, 0.1);
  color: var(--danger);
}

.supplier-alert-section-count-alert {
  background: rgba(217, 135, 50, 0.12);
  color: var(--alert);
}

.supplier-alert-section-count-good {
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
}

.supplier-alert-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.34rem 0.72rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.08);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.supplier-alert-section-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, calc((100% - 14px) / 2));
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.supplier-alert-section-grid::-webkit-scrollbar {
  height: 10px;
}

.supplier-alert-section-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.18);
}

.supplier-alert-section-empty {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(0, 123, 200, 0.12);
}

.dashboard-supplier-monitoring {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-supplier-card {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
  padding: 20px 20px 18px;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 253, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 14px 24px rgba(28, 74, 116, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
}

.dashboard-supplier-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.16);
}

.dashboard-supplier-card-good::before {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.9), rgba(22, 163, 74, 0.25));
}

.dashboard-supplier-card-alert::before {
  background: linear-gradient(90deg, rgba(217, 135, 50, 0.92), rgba(217, 135, 50, 0.24));
}

.dashboard-supplier-card-neutral::before {
  background: linear-gradient(90deg, rgba(0, 123, 200, 0.7), rgba(0, 123, 200, 0.16));
}

.dashboard-supplier-card-top {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
}

.dashboard-supplier-card-title {
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.dashboard-supplier-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent-strong);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.dashboard-supplier-glance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.dashboard-supplier-snapshot {
  display: grid;
  gap: 6px;
  align-content: center;
  justify-items: center;
  text-align: center;
  min-height: 74px;
  padding: 12px 10px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 251, 253, 0.74) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 123, 200, 0.07),
    0 8px 16px rgba(28, 74, 116, 0.03);
}

.dashboard-supplier-snapshot span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-supplier-snapshot strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.dashboard-supplier-snapshot-good strong {
  color: var(--success);
}

.dashboard-supplier-snapshot-alert strong {
  color: var(--alert);
}

.dashboard-supplier-snapshot-danger strong {
  color: var(--danger);
}

.dashboard-supplier-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.dashboard-supplier-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.06);
}

.dashboard-supplier-inline strong {
  font-size: 0.84rem;
  color: var(--ink);
}

.dashboard-supplier-inline span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-supplier-inline-good {
  background: rgba(22, 163, 74, 0.08);
}

.dashboard-supplier-inline-alert {
  background: rgba(217, 135, 50, 0.1);
}

.dashboard-supplier-inline-good strong {
  color: var(--success);
}

.dashboard-supplier-inline-alert strong {
  color: var(--alert);
}

.dashboard-supplier-inline-danger strong {
  color: var(--danger);
}

.supplier-alert-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  scroll-snap-align: start;
  justify-items: center;
  align-items: start;
  padding: 18px 20px;
  min-height: 238px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 123, 200, 0.08);
  box-shadow: 0 14px 26px rgba(28, 74, 116, 0.05);
}

.supplier-alert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: rgba(0, 123, 200, 0.18);
}

.supplier-alert-card-increase::before,
.supplier-alert-card-critique::before,
.supplier-alert-card-attention::before {
  background: rgba(201, 59, 59, 0.9);
}

.supplier-alert-card-decrease::before,
.supplier-alert-card-info::before {
  background: rgba(22, 163, 74, 0.82);
}

.supplier-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 800;
}

.supplier-alert-icon-critique {
  background: rgba(201, 59, 59, 0.1);
  color: var(--danger);
}

.supplier-alert-icon-attention {
  background: rgba(217, 135, 50, 0.12);
  color: var(--alert);
}

.supplier-alert-icon-info {
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
}

.supplier-alert-content {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: center;
  text-align: center;
  width: 100%;
}

.supplier-alert-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  flex-direction: column;
}

.supplier-alert-supplier {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.supplier-alert-product-block {
  display: grid;
  gap: 3px;
  justify-items: center;
}

.supplier-alert-title {
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--ink);
}

.supplier-alert-reference {
  color: var(--muted);
  font-size: 0.76rem;
}

.supplier-alert-footer {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  flex-direction: column;
}

.supplier-alert-price-stack {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.supplier-alert-prices {
  margin: 0;
  color: rgba(20, 63, 102, 0.72);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.supplier-alert-status-summary {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.supplier-alert-comment-preview {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.supplier-alert-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.supplier-alert-status-pill-neutral {
  background: rgba(20, 63, 102, 0.08);
  color: var(--accent-strong);
}

.supplier-alert-status-pill-alert {
  background: rgba(201, 59, 59, 0.1);
  color: var(--danger);
}

.supplier-alert-status-pill-good {
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
}

.supplier-alert-status-pill-danger {
  background: rgba(201, 59, 59, 0.1);
  color: var(--danger);
}

/* Étape 4 (garde-fou moteur prix v2) : ton "warning" pour la pill et la
   variation lorsque la quote n'est pas marquée "ok". Cohérent avec le reste
   des pills (radius/typo), couleur ambre subtile, jamais rouge ni vert. */
.supplier-alert-status-pill-warning {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.supplier-alert-cell-variation-warning {
  color: #b45309;
}

/* Badge "À vérifier" placé dans la cellule prix Sysco de la Mercuriale.
   Discret, n'altère pas la lisibilité du prix lui-même. */
.mercuriale-cell-quality-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: help;
  vertical-align: middle;
}

.supplier-alert-processed-date {
  color: var(--muted);
  font-size: 0.8rem;
}

.supplier-alert-status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.supplier-alert-status-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.34rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.1);
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.supplier-alert-status-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 16px rgba(28, 74, 116, 0.08);
}

.supplier-alert-status-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.supplier-alert-status-button-neutral {
  background: rgba(0, 123, 200, 0.08);
  color: var(--accent-strong);
}

.supplier-alert-status-button-alert {
  background: rgba(217, 135, 50, 0.12);
  color: var(--alert);
}

.supplier-alert-status-button-good {
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
}

.supplier-alert-status-button-danger {
  background: rgba(201, 59, 59, 0.1);
  color: var(--danger);
}

.supplier-alert-comment-field {
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: left;
}

.supplier-alert-comment-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.supplier-alert-comment-input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(0, 123, 200, 0.08);
  border-radius: 16px;
  background: rgba(247, 250, 252, 0.95);
  color: var(--ink);
  font: inherit;
}

.supplier-alert-comment-input:focus {
  outline: none;
  border-color: rgba(0, 123, 200, 0.22);
  box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.08);
}

.supplier-alert-comment {
  width: 100%;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 123, 200, 0.08);
  border-radius: 18px;
  background: rgba(247, 250, 252, 0.95);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.supplier-alert-comment:focus {
  outline: none;
  border-color: rgba(0, 123, 200, 0.22);
  box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.08);
}

.supplier-alert-variation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.38rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(245, 248, 251, 0.76) 100%);
  box-shadow:
    0 10px 18px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.supplier-alert-variation-good {
  background:
    linear-gradient(180deg, rgba(241, 252, 246, 0.92) 0%, rgba(232, 250, 239, 0.82) 100%);
  border-color: rgba(22, 163, 74, 0.16);
  box-shadow:
    0 10px 18px rgba(22, 163, 74, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  color: var(--success);
  font-weight: 650;
}

.supplier-alert-variation-alert {
  background:
    linear-gradient(180deg, rgba(255, 247, 235, 0.94) 0%, rgba(255, 241, 220, 0.84) 100%);
  border-color: rgba(217, 135, 50, 0.18);
  box-shadow:
    0 10px 18px rgba(217, 135, 50, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  color: var(--alert);
  font-weight: 650;
}

.supplier-alert-variation-danger {
  background:
    linear-gradient(180deg, rgba(255, 243, 243, 0.94) 0%, rgba(255, 232, 232, 0.84) 100%);
  border-color: rgba(201, 59, 59, 0.18);
  box-shadow:
    0 10px 18px rgba(201, 59, 59, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  color: var(--danger);
  font-weight: 650;
}

.supplier-alert-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.supplier-alert-impact-card {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(247, 250, 252, 0.92);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.supplier-alert-impact-card-good {
  background: rgba(244, 252, 247, 0.96);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.12);
}

.supplier-alert-impact-card-danger {
  background: rgba(255, 247, 247, 0.96);
  box-shadow: inset 0 0 0 1px rgba(201, 59, 59, 0.12);
}

.supplier-alert-impact-label {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.supplier-alert-impact-value {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.supplier-alert-impact-card-good .supplier-alert-impact-value {
  color: var(--success);
}

.supplier-alert-impact-card-danger .supplier-alert-impact-value {
  color: var(--danger);
}

.supplier-alert-impact-detail {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.supplier-alert-negotiated {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
}

.supplier-alert-negotiated-input {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(0, 123, 200, 0.1);
  border-radius: 16px;
  background: rgba(247, 250, 252, 0.95);
  color: var(--ink);
  font: inherit;
  text-align: center;
}

.supplier-alert-negotiated-input:focus {
  outline: none;
  border-color: rgba(0, 123, 200, 0.22);
  box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.08);
}

.supplier-alert-link-warning {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.supplier-alert-history-section {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.dashboard-supplier-alert-history-cta {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.dashboard-history-view {
  gap: 20px;
}

.dashboard-history-panel {
  padding: 28px;
}

.dashboard-history-content,
.dashboard-history-shell {
  display: grid;
  gap: 20px;
}

.dashboard-history-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-history-copy {
  display: grid;
  gap: 8px;
}

.dashboard-history-group {
  display: grid;
  gap: 14px;
}

.supplier-links-history-section {
  margin-top: 20px;
}

.supplier-alert-history-list {
  display: grid;
  gap: 12px;
}

.supplier-alert-history-card {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 123, 200, 0.08);
  box-shadow: 0 12px 22px rgba(28, 74, 116, 0.04);
}

.supplier-alert-history-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.supplier-alert-history-title-block {
  display: grid;
  gap: 4px;
}

.supplier-alert-history-title {
  color: var(--ink);
  font-size: 0.98rem;
}

.supplier-alert-history-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.supplier-alert-history-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.supplier-alert-history-comment {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.dashboard-shortcuts-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-shortcut-card {
  --shortcut-accent: rgba(0, 123, 200, 0.92);
  --shortcut-accent-soft: rgba(0, 173, 239, 0.12);
  --shortcut-accent-glow: rgba(0, 173, 239, 0.18);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: stretch;
  min-height: 112px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 249, 252, 0.94) 100%);
  box-shadow:
    0 14px 24px rgba(28, 74, 116, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  cursor: pointer;
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.dashboard-shortcut-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at top right, var(--shortcut-accent-soft) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.54) 0%, rgba(255, 255, 255, 0) 62%);
}

.dashboard-shortcut-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--shortcut-accent) 0%, rgba(255, 255, 255, 0.18) 100%);
  opacity: 0.72;
}

.dashboard-shortcut-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--shortcut-accent) 18%, rgba(255, 255, 255, 0.82));
  box-shadow:
    0 18px 30px rgba(28, 74, 116, 0.08),
    0 0 0 1px var(--shortcut-accent-glow);
}

.dashboard-shortcut-body {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 84px;
  padding-top: 8px;
}

.dashboard-shortcut-title {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.16;
}

.dashboard-shortcut-note {
  color: color-mix(in srgb, var(--shortcut-accent) 56%, #607084);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.dashboard-shortcut-card:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--shortcut-accent) 24%, rgba(255, 255, 255, 0.9));
  box-shadow:
    0 18px 30px rgba(28, 74, 116, 0.08),
    0 0 0 3px color-mix(in srgb, var(--shortcut-accent) 14%, transparent);
}

.dashboard-kpi-card {
  display: grid;
  align-content: space-between;
  justify-items: center;
  text-align: center;
  gap: 18px;
  min-height: 154px;
  padding: 22px 22px 20px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(250, 252, 253, 0.72) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    0 18px 30px rgba(28, 74, 116, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  position: relative;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.dashboard-kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.16);
}

.dashboard-kpi-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.dashboard-kpi-card-good::before {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.98), rgba(22, 163, 74, 0.35));
}

.dashboard-kpi-card-alert::before {
  background: linear-gradient(90deg, rgba(217, 135, 50, 0.98), rgba(217, 135, 50, 0.35));
}

.dashboard-kpi-card-danger::before {
  background: linear-gradient(90deg, rgba(201, 59, 59, 0.98), rgba(201, 59, 59, 0.35));
}

.dashboard-kpi-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.94;
}

.dashboard-kpi-value {
  position: relative;
  z-index: 1;
  font-size: clamp(2.12rem, 2.8vw, 2.72rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.dashboard-kpi-card-good .dashboard-kpi-value {
  color: var(--success);
}

.dashboard-kpi-card-alert .dashboard-kpi-value {
  color: var(--alert);
}

.dashboard-kpi-card-danger .dashboard-kpi-value {
  color: var(--danger);
}

.dashboard-kpi-detail {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 24ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.dashboard-kpi-footer {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0;
  width: 100%;
  margin-top: auto;
}

.dashboard-kpi-trend {
  position: relative;
  z-index: 1;
  align-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.4rem 0.76rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.dashboard-kpi-trend-neutral {
  color: var(--accent-strong);
  background: rgba(0, 123, 200, 0.08);
}

.dashboard-kpi-trend-good {
  color: var(--success);
  background: rgba(22, 163, 74, 0.1);
}

.dashboard-kpi-trend-alert {
  color: var(--alert);
  background: rgba(217, 135, 50, 0.12);
}

.dashboard-kpi-trend-danger {
  color: var(--danger);
  background: rgba(201, 59, 59, 0.1);
}

.dashboard-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0.58rem 0.92rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.08);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.dashboard-link-button:hover {
  transform: translateY(-1px);
  background: rgba(0, 123, 200, 0.12);
  box-shadow: 0 10px 18px rgba(28, 74, 116, 0.08);
}

.dashboard-link-button-muted {
  background: rgba(20, 63, 102, 0.05);
  color: rgba(20, 63, 102, 0.46);
}

.dashboard-top-grid,
.dashboard-middle-grid {
  display: grid;
  gap: 20px;
}

.dashboard-top-grid {
  grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1.14fr);
}

.dashboard-middle-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

#dashboard-view .panel {
  padding: 28px;
}

#dashboard-view .panel-head {
  margin-bottom: 10px;
}

#dashboard-view .panel-head h2.dashboard-section-title {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.dashboard-panel-copy {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.dashboard-quick-read {
  display: grid;
  gap: 12px;
}

.dashboard-quick-card {
  display: grid;
  gap: 10px;
  min-height: 116px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.dashboard-quick-card-good {
  box-shadow: inset 4px 0 0 rgba(22, 163, 74, 0.78), inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.dashboard-quick-card-alert {
  box-shadow: inset 4px 0 0 rgba(217, 135, 50, 0.78), inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.dashboard-quick-card-neutral {
  box-shadow: inset 4px 0 0 rgba(0, 123, 200, 0.34), inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.dashboard-quick-label {
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-quick-message {
  font-size: 1.02rem;
  line-height: 1.45;
}

.dashboard-chart {
  display: grid;
  gap: 10px;
}

.dashboard-chart-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.82fr) minmax(0, 1.7fr) minmax(88px, auto);
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 253, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow:
    0 12px 20px rgba(28, 74, 116, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  position: relative;
  overflow: hidden;
}

.dashboard-chart-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 999px;
}

.dashboard-chart-row:hover,
.dashboard-chart-row:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 16px 26px rgba(28, 74, 116, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  outline: none;
}

.dashboard-chart-row-good::before {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.95), rgba(22, 163, 74, 0.3));
}

.dashboard-chart-row-alert::before {
  background: linear-gradient(90deg, rgba(217, 135, 50, 0.95), rgba(217, 135, 50, 0.3));
}

.dashboard-chart-row-danger::before {
  background: linear-gradient(90deg, rgba(201, 59, 59, 0.95), rgba(201, 59, 59, 0.3));
}

.dashboard-chart-copy {
  display: grid;
  gap: 4px;
}

.dashboard-chart-title {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.dashboard-chart-meta {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.dashboard-chart-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-chart-delta-good {
  color: rgba(21, 128, 61, 0.95);
  background: rgba(240, 253, 244, 0.96);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.12);
}

.dashboard-chart-delta-alert {
  color: rgba(180, 83, 9, 0.96);
  background: rgba(255, 247, 237, 0.98);
  box-shadow: inset 0 0 0 1px rgba(217, 135, 50, 0.14);
}

.dashboard-chart-delta-danger {
  color: rgba(185, 28, 28, 0.96);
  background: rgba(254, 242, 242, 0.98);
  box-shadow: inset 0 0 0 1px rgba(201, 59, 59, 0.14);
}

.dashboard-chart-visual {
  display: grid;
  gap: 6px;
}

.dashboard-chart-track {
  position: relative;
  height: 14px;
  margin-top: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(226, 236, 245, 0.72) 0%, rgba(214, 228, 239, 0.58) 100%);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(0, 123, 200, 0.06),
    inset 0 10px 18px rgba(255, 255, 255, 0.18);
}

.dashboard-chart-track::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.dashboard-chart-target {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  border-radius: 999px;
  background: rgba(20, 63, 102, 0.48);
  z-index: 2;
}

.dashboard-chart-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: inherit;
  z-index: 1;
}

.dashboard-chart-fill-good {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.95), rgba(22, 163, 74, 0.5));
}

.dashboard-chart-fill-alert {
  background: linear-gradient(90deg, rgba(217, 135, 50, 0.95), rgba(217, 135, 50, 0.5));
}

.dashboard-chart-fill-danger {
  background: linear-gradient(90deg, rgba(201, 59, 59, 0.95), rgba(201, 59, 59, 0.5));
}

.dashboard-chart-objective {
  color: rgba(20, 63, 102, 0.72);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.25;
}

.dashboard-chart-values {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.dashboard-chart-actual {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1;
}

.dashboard-chart-actual-good {
  color: rgba(21, 128, 61, 0.96);
}

.dashboard-chart-actual-alert {
  color: rgba(180, 83, 9, 0.96);
}

.dashboard-chart-actual-danger {
  color: rgba(185, 28, 28, 0.96);
}

.dashboard-alerts-list,
.dashboard-actions-list {
  display: grid;
  gap: 12px;
}

.dashboard-alert-card,
.dashboard-action-card {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.dashboard-alert-card-critique {
  box-shadow: inset 4px 0 0 rgba(201, 59, 59, 0.78), inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.dashboard-alert-card-attention {
  box-shadow: inset 4px 0 0 rgba(217, 135, 50, 0.78), inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.dashboard-alert-card-info {
  box-shadow: inset 4px 0 0 rgba(0, 123, 200, 0.34), inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.dashboard-alert-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-alert-badge-critique {
  color: var(--danger);
  background: rgba(201, 59, 59, 0.1);
}

.dashboard-alert-badge-attention {
  color: var(--alert);
  background: rgba(217, 135, 50, 0.12);
}

.dashboard-alert-badge-info {
  color: var(--accent-strong);
  background: rgba(0, 123, 200, 0.08);
}

.dashboard-alert-name,
.dashboard-action-title {
  font-size: 1rem;
}

.dashboard-alert-problem,
.dashboard-alert-action,
.dashboard-action-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.dashboard-alert-action {
  color: var(--ink);
}

.dashboard-alert-link {
  justify-self: start;
  border: none;
  background: rgba(0, 123, 200, 0.08);
  color: var(--accent-strong);
  min-height: 38px;
  padding: 0.52rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
}

.dashboard-action-card-danger {
  box-shadow: inset 4px 0 0 rgba(201, 59, 59, 0.78), inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.dashboard-action-card-alert {
  box-shadow: inset 4px 0 0 rgba(217, 135, 50, 0.78), inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.dashboard-action-card-neutral {
  box-shadow: inset 4px 0 0 rgba(0, 123, 200, 0.34), inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.dashboard-action-card-good {
  box-shadow: inset 4px 0 0 rgba(22, 163, 74, 0.78), inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.dashboard-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-category-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 123, 200, 0.08);
  box-shadow: 0 12px 24px rgba(28, 74, 116, 0.05);
}

.dashboard-category-card-good {
  box-shadow: inset 4px 0 0 rgba(22, 163, 74, 0.78), 0 12px 24px rgba(28, 74, 116, 0.05);
}

.dashboard-category-card-alert {
  box-shadow: inset 4px 0 0 rgba(217, 135, 50, 0.78), 0 12px 24px rgba(28, 74, 116, 0.05);
}

.dashboard-category-card-danger {
  box-shadow: inset 4px 0 0 rgba(201, 59, 59, 0.78), 0 12px 24px rgba(28, 74, 116, 0.05);
}

.dashboard-category-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-category-title {
  font-size: 1.04rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.dashboard-category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-category-pill-good {
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
}

.dashboard-category-pill-alert {
  background: rgba(217, 135, 50, 0.12);
  color: var(--alert);
}

.dashboard-category-pill-danger {
  background: rgba(201, 59, 59, 0.1);
  color: var(--danger);
}

.dashboard-category-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-category-helper {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.dashboard-metric-chip {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(245, 249, 252, 0.96);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.dashboard-metric-chip span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-metric-chip strong {
  font-size: 1rem;
}

.dashboard-category-button {
  justify-self: start;
  border: none;
  min-height: 42px;
  padding: 0.62rem 0.92rem;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.08);
  color: var(--accent-strong);
  font-weight: 700;
}

.dashboard-empty-state {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--muted);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

#overview-view {
  gap: 24px;
}

#overview-view .panel {
  padding: 28px;
}

#overview-view .panel-head h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.summary-grid {
  gap: 22px;
}

.summary-card {
  position: relative;
  min-height: 196px;
  padding: 30px 28px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 248, 255, 0.96) 100%);
  box-shadow: 0 18px 34px rgba(0, 123, 200, 0.07);
  gap: 10px;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.summary-card::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.18);
}

.summary-card-good {
  border-color: rgba(22, 163, 74, 0.18);
  background: linear-gradient(165deg, rgba(231, 250, 238, 0.98) 0%, rgba(242, 253, 246, 0.96) 48%, rgba(255, 255, 255, 0.94) 100%);
}

.summary-card-good::after {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.98), rgba(22, 163, 74, 0.35));
}

.summary-card-alert {
  border-color: rgba(217, 135, 50, 0.2);
  background: linear-gradient(165deg, rgba(255, 246, 234, 0.98) 0%, rgba(255, 251, 243, 0.96) 48%, rgba(255, 255, 255, 0.94) 100%);
}

.summary-card-danger {
  border-color: rgba(201, 59, 59, 0.18);
  background: linear-gradient(165deg, rgba(255, 238, 238, 0.98) 0%, rgba(255, 245, 245, 0.96) 48%, rgba(255, 255, 255, 0.94) 100%);
}

.summary-card-alert::after {
  background: linear-gradient(90deg, rgba(217, 135, 50, 0.98), rgba(217, 135, 50, 0.35));
}

.summary-card-danger::after {
  background: linear-gradient(90deg, rgba(201, 59, 59, 0.98), rgba(201, 59, 59, 0.35));
}

.summary-label,
.summary-value,
.summary-detail {
  position: relative;
  z-index: 1;
}

.summary-value {
  margin-top: 6px;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.summary-detail {
  margin-top: 2px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.overview-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 22px;
}

.alert-cards {
  gap: 16px;
}

.alert-card {
  padding: 24px;
  box-shadow: 0 14px 28px rgba(0, 123, 200, 0.06);
}

.alert-list {
  gap: 12px;
}

.alert-item {
  padding: 14px 16px;
}

.overview-strips {
  gap: 20px;
}

.strip-card,
.strip-card[data-tone="good"],
.strip-card[data-tone="alert"],
.strip-card[data-tone="danger"] {
  gap: 18px;
  padding: 26px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 248, 255, 0.96) 100%);
  border-color: rgba(0, 123, 200, 0.1);
  box-shadow: 0 16px 30px rgba(0, 123, 200, 0.06);
}

.strip-card::before,
.strip-card[data-tone="good"]::before,
.strip-card[data-tone="alert"]::before,
.strip-card[data-tone="danger"]::before {
  width: 4px;
  background: rgba(0, 123, 200, 0.14);
}

.strip-title-block strong {
  font-size: 1.14rem;
}

.strip-pill {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.08);
}

.strip-pill-good {
  color: var(--success);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.18);
}

.strip-pill-alert {
  color: var(--alert);
  box-shadow: inset 0 0 0 1px rgba(217, 135, 50, 0.18);
}

.strip-pill-danger {
  color: var(--danger);
  box-shadow: inset 0 0 0 1px rgba(201, 59, 59, 0.18);
}

.strip-meta-grid {
  gap: 12px;
}

.strip-meta-card,
.strip-meta-card-neutral,
.strip-meta-card-good,
.strip-meta-card-alert,
.strip-meta-card-danger {
  padding: 15px 14px;
  text-align: center;
  background: rgba(246, 251, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.06);
}

.strip-meta-card span,
.strip-meta-card-good span,
.strip-meta-card-alert span,
.strip-meta-card-danger span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.strip-meta-card strong,
.strip-meta-card-neutral strong {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--ink);
}

.strip-meta-card-good strong {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--success);
}

.strip-meta-card-alert strong {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--alert);
}

.strip-meta-card-danger strong {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--danger);
}

@media (max-width: 1350px) {
  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* Radar title and neutral meta values */
.radar-panel .panel-head {
  margin-bottom: 10px;
}

.panel h2.radar-title {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strip-meta-card strong,
.strip-meta-card-neutral strong,
.strip-meta-card-good strong,
.strip-meta-card-alert strong,
.strip-meta-card-danger strong {
  color: var(--ink);
}


/* Radar blue title and names */
.radar-title,
.strip-title-block strong {
  color: var(--accent-strong);
}

.radar-panel .strip-title-block strong {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Menu cards open only from the button */
.dish-card {
  cursor: default;
}

.dish-card:hover {
  transform: none;
}

.dish-card-link {
  border: none;
  background: transparent;
  padding: 0;
}

/* Radar cards open only from the footer button */
.strip-card {
  cursor: default;
}

.strip-card:hover {
  transform: none;
}

.strip-footer {
  border: none;
  cursor: pointer;
}
/* Radar cards premium refinements */
.overview-strips {
  gap: 22px;
  align-items: stretch;
}

.strip-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 248px;
  padding: 24px 24px 22px;
  border-radius: 32px;
}

.strip-title-block {
  gap: 4px;
}

.strip-title-block span {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.66;
}

.strip-meta-grid {
  gap: 10px;
  margin-top: 2px;
}

.strip-meta-card,
.strip-meta-card-neutral,
.strip-meta-card-good,
.strip-meta-card-alert,
.strip-meta-card-danger {
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(248, 252, 255, 0.96);
}

.strip-meta-card span,
.strip-meta-card-neutral span,
.strip-meta-card-good span,
.strip-meta-card-alert span,
.strip-meta-card-danger span {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.strip-meta-card strong,
.strip-meta-card-neutral strong,
.strip-meta-card-good strong,
.strip-meta-card-alert strong,
.strip-meta-card-danger strong {
  margin-top: 6px;
  font-size: 0.95rem;
}

.strip-footer {
  margin-top: auto;
  padding: 0.56rem 0.92rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.16);
}

.strip-footer:hover {
  background: rgba(238, 247, 255, 0.98);
}

.strip-card[data-section-slug="planches"] {
  grid-column: 1 / -1;
  width: min(460px, calc(50% - 11px));
  justify-self: center;
}

@media (max-width: 1180px) {
  .strip-card[data-section-slug="planches"] {
    width: 100%;
  }
}

/* Modern wave background */
body {
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 173, 239, 0.05) 0%, transparent 18%),
    radial-gradient(circle at 90% 14%, rgba(0, 123, 200, 0.04) 0%, transparent 20%),
    linear-gradient(180deg, #fbf8f3 0%, #f4ede2 46%, #ece3d7 100%);
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(145% 120% at -12% 18%, transparent 0 57.2%, rgba(182, 191, 198, 0.13) 57.2% 57.42%, transparent 57.42% 63.4%, rgba(199, 206, 212, 0.09) 63.4% 63.58%, transparent 63.58% 100%),
    radial-gradient(135% 118% at 112% 72%, transparent 0 55.2%, rgba(181, 190, 198, 0.12) 55.2% 55.4%, transparent 55.4% 61.2%, rgba(203, 209, 214, 0.08) 61.2% 61.38%, transparent 61.38% 100%),
    radial-gradient(120% 96% at 28% 118%, transparent 0 50.3%, rgba(222, 227, 231, 0.3) 50.3% 50.46%, transparent 50.46% 56.1%, rgba(231, 235, 238, 0.2) 56.1% 56.24%, transparent 56.24% 100%);
  opacity: 0.78;
}

body::after {
  background:
    radial-gradient(90% 76% at 18% 32%, transparent 0 64.3%, rgba(188, 196, 204, 0.08) 64.3% 64.46%, transparent 64.46% 100%),
    radial-gradient(84% 74% at 78% 82%, transparent 0 62.3%, rgba(183, 191, 199, 0.08) 62.3% 62.46%, transparent 62.46% 100%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.4) 0%, transparent 18%),
    radial-gradient(circle at 14% 82%, rgba(255, 255, 255, 0.32) 0%, transparent 16%);
  opacity: 0.72;
}

.page-shell {
  position: relative;
  z-index: 1;
}
/* Fine readability polish */
.sidebar-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
}

.eyebrow,
.summary-label,
.dish-section,
.focus-label,
.health-label {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.summary-detail,
.alert-item span,
.dish-card-footer-row span,
.detail-copy,
.health-meta,
.spotlight-card p,
.ingredient-meta,
.ingredient-supplier {
  font-size: 0.95rem;
  line-height: 1.55;
}

.strip-title-block span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  opacity: 0.78;
}

.strip-meta-card span,
.strip-meta-card-neutral span,
.strip-meta-card-good span,
.strip-meta-card-alert span,
.strip-meta-card-danger span {
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  opacity: 0.8;
}
/* Overview layout after priorities removal */
.overview-layout {
  grid-template-columns: 1fr;
}

.overview-layout > .panel {
  max-width: 920px;
}
/* Simulator redesign aligned with radar */
.overview-layout > .panel.simulator-panel {
  max-width: none;
}

.simulator-panel .panel-head {
  margin-bottom: 6px;
}

.panel h2.simulator-title {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.simulator-stack {
  width: 100%;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.sim-focus-card,
.simulator-controls-card {
  border-radius: 32px;
  border: 1px solid rgba(0, 123, 200, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 248, 255, 0.95) 100%);
  box-shadow: 0 16px 30px rgba(0, 123, 200, 0.06);
}

.sim-focus-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.sim-focus-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.sim-focus-title {
  display: grid;
  gap: 6px;
}

.sim-focus-title span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sim-focus-title strong {
  color: var(--accent-strong);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sim-focus-copy,
.simulator-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.sim-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sim-focus-grid .strip-meta-card {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 94px;
  text-align: center;
}

.sim-focus-grid .strip-meta-card strong {
  margin-top: 10px;
}

.simulator-controls-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.simulator-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.simulator-fields {
  gap: 14px;
  width: min(100%, 560px);
  margin: 0 auto;
  align-items: end;
}

.simulator-field {
  gap: 10px;
}

.simulator-field-label {
  display: block;
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.simulator-field-wide {
  max-width: 100%;
}

.sim-dish-combobox {
  position: relative;
}

.sim-dish-trigger {
  width: 100%;
  min-height: 64px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(0, 123, 200, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(244, 250, 255, 0.98) 0%, rgba(255, 255, 255, 0.97) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 10px 20px rgba(0, 123, 200, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sim-dish-trigger:hover {
  transform: translateY(-1px);
}

.sim-dish-trigger[aria-expanded="true"] {
  border-color: rgba(0, 123, 200, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 14px 28px rgba(0, 123, 200, 0.1);
}

.sim-dish-trigger-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sim-dish-trigger-copy strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-dish-trigger-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sim-dish-trigger-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}

.sim-dish-trigger-icon::before {
  content: "";
  position: absolute;
  inset: 2px 2px 0 0;
  border-right: 2px solid rgba(20, 63, 102, 0.82);
  border-bottom: 2px solid rgba(20, 63, 102, 0.82);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.sim-dish-trigger[aria-expanded="true"] .sim-dish-trigger-icon::before {
  transform: rotate(225deg);
}

.sim-dish-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(0, 123, 200, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 24px 48px rgba(0, 123, 200, 0.12);
}

.sim-dish-panel[hidden] {
  display: none !important;
}

.sim-dish-search input {
  width: 100%;
  min-height: 48px;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(0, 123, 200, 0.1);
  border-radius: 16px;
  background: rgba(247, 251, 255, 0.95);
  color: var(--ink);
}

.sim-dish-search input:focus {
  outline: 2px solid rgba(0, 123, 200, 0.14);
  outline-offset: 2px;
}

.sim-dish-categories:empty {
  display: none;
}

.sim-dish-categories {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 3px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.sim-dish-categories::-webkit-scrollbar {
  height: 6px;
}

.sim-dish-categories::-webkit-scrollbar-thumb {
  background: rgba(0, 123, 200, 0.22);
  border-radius: 999px;
}

.sim-dish-categories::-webkit-scrollbar-track {
  background: rgba(230, 241, 251, 0.62);
  border-radius: 999px;
}

.sim-dish-options {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
}

.sim-dish-category {
  flex: 0 0 auto;
  padding: 0.78rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: rgba(241, 248, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.sim-dish-category:hover {
  transform: translateY(-1px);
}

.sim-dish-category[data-active="true"] {
  background: linear-gradient(135deg, #00adef 0%, #007bc8 100%);
  color: rgba(255, 255, 255, 0.99);
  box-shadow: 0 10px 18px rgba(0, 123, 200, 0.14);
}

.sim-dish-category-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sim-dish-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 0.28rem 0.42rem;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.08);
  color: inherit;
  font-size: 0.7rem;
  font-weight: 800;
}

.sim-dish-option {
  width: 100%;
  padding: 0.92rem 1rem;
  border: none;
  border-radius: 18px;
  background: rgba(245, 250, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.07);
  display: grid;
  gap: 5px;
  text-align: left;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  animation: simDishReveal 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sim-dish-option strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.sim-dish-empty {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(247, 251, 255, 0.94);
  color: var(--muted);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

@keyframes simDishReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.simulator-field-price {
  max-width: none;
}

.simulator-field-price input {
  font-size: 1.04rem;
  font-weight: 700;
}

.simulator-stack > .simulator-fields {
  justify-self: center;
}

.simulator-panel .field input,
.simulator-panel .field select {
  min-height: 56px;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(0, 123, 200, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.sim-results {
  grid-template-columns: minmax(260px, 1.18fr) repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.result-card {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  padding: 20px 20px 18px;
  border-radius: 26px;
  border: 1px solid rgba(0, 123, 200, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 250, 255, 0.95) 100%);
  box-shadow: 0 14px 26px rgba(0, 123, 200, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.14);
}

.result-card span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-card strong {
  display: block;
  margin-top: 0;
  font-size: 1.44rem;
  line-height: 1.02;
}

.result-card-highlight {
  min-height: 138px;
  padding: 22px 22px 20px;
}

.result-card-highlight strong {
  font-size: clamp(2rem, 2.9vw, 2.5rem);
}

.result-card-neutral,
.result-card-good,
.result-card-danger,
.result-card-alert {
  border-color: rgba(0, 123, 200, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 250, 255, 0.95) 100%);
}

.result-card-neutral::before {
  background: rgba(0, 123, 200, 0.16);
}

.result-card-good::before {
  background: rgba(22, 163, 74, 0.9);
}

.result-card-alert::before {
  background: rgba(217, 135, 50, 0.9);
}

.result-card-danger::before {
  background: rgba(201, 59, 59, 0.9);
}

.result-card-neutral strong {
  color: var(--ink);
}

.result-card-good strong {
  color: var(--success);
}

.result-card-alert strong {
  color: var(--alert);
}

.result-card-danger strong {
  color: var(--danger);
}

.overview-update-strip {
  width: 100%;
  max-width: 1120px;
  margin: 18px auto 0;
}

.update-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 123, 200, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 18px rgba(0, 123, 200, 0.04);
}

.update-card-shell {
  display: flex;
  justify-content: center;
  width: 100%;
}

.update-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00adef 0%, #007bc8 100%);
  box-shadow: 0 0 0 4px rgba(0, 173, 239, 0.09);
}

.update-card-copy {
  display: grid;
  gap: 3px;
  justify-items: center;
}

.update-card-value {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
}

.update-card-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.overview-layout > .panel.pricing-advisor-panel {
  max-width: none;
}

.pricing-advisor-panel .panel-head {
  margin-bottom: 6px;
}

.panel h2.pricing-advisor-title {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.pricing-advisor-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.market-pricing-advisor {
  display: grid;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.advisor-group {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(0, 123, 200, 0.1);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 251, 255, 0.96) 100%);
  box-shadow: 0 14px 26px rgba(0, 123, 200, 0.05);
}

.advisor-group-header {
  display: grid;
  gap: 12px;
}

.advisor-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.advisor-group-title strong {
  color: var(--accent-strong);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.advisor-group-title span,
.advisor-columns span,
.advisor-product-stat span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.advisor-columns,
.advisor-product-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(140px, 0.95fr)) minmax(120px, 0.75fr);
  gap: 12px;
  align-items: center;
}

.advisor-columns {
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(239, 248, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.08);
}

.advisor-columns span {
  color: var(--accent-strong);
}

.advisor-columns span:first-child {
  text-align: center;
}

.advisor-columns span:nth-child(2),
.advisor-columns span:nth-child(3),
.advisor-columns span:nth-child(4),
.advisor-columns span:nth-child(5) {
  text-align: center;
}

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

.advisor-product-row {
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 123, 200, 0.08);
  box-shadow: 0 8px 18px rgba(0, 123, 200, 0.04);
}

.advisor-product-row[data-tone="neutral"] {
  box-shadow: inset 4px 0 0 rgba(0, 123, 200, 0.3), 0 8px 18px rgba(0, 123, 200, 0.04);
}

.advisor-product-row[data-tone="good"] {
  box-shadow: inset 4px 0 0 rgba(22, 163, 74, 0.72), 0 8px 18px rgba(0, 123, 200, 0.04);
}

.advisor-product-row[data-tone="alert"],
.advisor-product-row[data-tone="danger"] {
  box-shadow: inset 4px 0 0 rgba(201, 59, 59, 0.72), 0 8px 18px rgba(0, 123, 200, 0.04);
}

.advisor-product-name {
  display: grid;
  gap: 6px;
}

.advisor-product-name strong {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
}

.advisor-product-name span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.advisor-product-stat {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.advisor-product-stat strong {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.advisor-product-stat span {
  display: none;
}

.advisor-product-stat-accent {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(236, 247, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.08);
}

.advisor-product-stat-accent strong {
  color: var(--accent-strong);
}

.advisor-product-stat-market strong {
  font-size: 0.96rem;
  font-weight: 500;
}

.advisor-product-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.advisor-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 164px;
  min-height: 34px;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.advisor-chip-neutral {
  color: var(--accent-strong);
  background: rgba(0, 123, 200, 0.08);
}

.advisor-chip-good {
  color: var(--success);
  background: rgba(22, 163, 74, 0.1);
}

.advisor-chip-alert {
  color: var(--alert);
  background: rgba(217, 135, 50, 0.12);
}

.advisor-chip-danger {
  color: var(--danger);
  background: rgba(201, 59, 59, 0.1);
}

.advisor-note-source {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.advisor-note-source-global {
  margin-top: 2px;
  text-align: right;
}

@media (max-width: 1260px) {
  .dashboard-kpi-grid,
  .dashboard-categories-grid,
  .dashboard-shortcuts-grid,
  .dashboard-supplier-alert-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-alert-section-grid {
    grid-auto-columns: minmax(220px, calc((100% - 14px) / 2));
  }

  .dashboard-suppliers-grid,
  .dashboard-supplier-alerts-panel-wide .dashboard-supplier-alerts,
  .dashboard-supplier-monitoring,
  .dashboard-top-grid,
  .dashboard-middle-grid,
  .dashboard-hero-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .dashboard-kpi-grid,
  .dashboard-categories-grid,
  .dashboard-category-metrics,
  .dashboard-top-grid,
  .dashboard-middle-grid,
  .dashboard-shortcuts-grid,
  .dashboard-supplier-monitoring,
  .dashboard-supplier-metrics,
  .dashboard-supplier-alert-summary-grid,
  .supplier-alert-impact-grid,
  .supplier-alert-history-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-panel {
    padding: 24px;
  }

  .dashboard-hero-mini-kpis {
    grid-template-columns: 1fr;
    width: min(100%, 420px);
  }

  .dashboard-history-top,
  .supplier-alert-history-top {
    grid-template-columns: 1fr;
    display: grid;
  }

  .dashboard-chart-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .dashboard-chart-values {
    justify-items: start;
  }

  .dashboard-refresh-button {
    width: 100%;
  }

  .supplier-alert-section-grid {
    grid-auto-columns: minmax(220px, 88%);
  }

  .supplier-alert-top,
  .supplier-alert-meta {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .supplier-alert-negotiated,
  .supplier-alert-history-top {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 1180px) {
  .sim-focus-grid,
  .sim-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advisor-columns {
    display: none;
  }

  .advisor-product-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .advisor-product-name,
  .advisor-product-status {
    grid-column: 1 / -1;
  }

  .advisor-product-stat span {
    display: block;
  }

  .advisor-chip {
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 860px) {
  .sim-focus-top {
    flex-direction: column;
    align-items: stretch;
  }

  .simulator-toolbar {
    grid-template-columns: 1fr;
  }

  .sim-dish-panel {
    position: static;
    margin-top: 10px;
  }

  .simulator-field-price {
    max-width: none;
    justify-self: stretch;
  }

  .sim-focus-grid,
  .sim-results,
  .advisor-columns,
  .advisor-product-row {
    grid-template-columns: 1fr;
  }

  .update-card {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .update-card-details {
    justify-content: flex-start;
  }

  .advisor-group {
    padding: 18px;
  }

  .advisor-product-row {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: left;
  }

  .advisor-product-stat {
    justify-items: start;
    text-align: left;
  }

  .advisor-product-stat span {
    display: block;
  }

  .advisor-product-status {
    justify-content: flex-start;
  }

  .advisor-note-source-global {
    text-align: left;
  }

  .result-card-highlight {
    grid-column: auto;
  }
}
/* App-wide navigation architecture */
.domain-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.domain-tab {
  width: 100%;
  min-width: 0;
  padding: 0.82rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 173, 239, 0.06);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0, 173, 239, 0.1);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.domain-tab[data-active="true"] {
  background: linear-gradient(135deg, #00adef 0%, #007bc8 100%);
  color: rgba(255, 255, 255, 0.99);
  box-shadow: 0 12px 24px rgba(0, 123, 200, 0.18);
}

.module-tabs {
  display: grid;
  gap: 10px;
}

.module-tab {
  width: 100%;
  padding: 1rem 1rem 0.96rem;
  border: none;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.08);
  text-align: left;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.module-tab strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
}

.module-tab span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.module-tab[data-active="true"] {
  background: linear-gradient(180deg, rgba(237, 247, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.14), 0 12px 24px rgba(0, 123, 200, 0.08);
}

.module-tab[data-active="true"] strong {
  color: var(--accent-strong);
}

.module-tab:hover,
.domain-tab:hover,
.restaurant-view-tab:hover {
  transform: translateY(-1px);
}

.restaurant-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 6px;
}

.restaurant-view-tabs[hidden],
.module-placeholder[hidden] {
  display: none !important;
}

.restaurant-view-tab {
  padding: 0.86rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.1);
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.restaurant-view-tab[data-active="true"] {
  background: linear-gradient(135deg, #00adef 0%, #007bc8 100%);
  color: rgba(255, 255, 255, 0.99);
  box-shadow: 0 12px 24px rgba(0, 123, 200, 0.18);
}

.module-placeholder {
  display: grid;
  gap: 18px;
  max-width: 1120px;
}

.module-placeholder-intro {
  display: grid;
  gap: 8px;
}

.panel h2.module-placeholder-title {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.module-placeholder-copy {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.settings-module-intro {
  justify-items: center;
  text-align: center;
  margin-bottom: 4px;
}

.settings-module-intro .module-placeholder-title {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: 0.08em;
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 123, 200, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 22px rgba(28, 74, 116, 0.04);
}

.settings-tab-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(20, 63, 102, 0.62);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.settings-tab-button:hover {
  transform: translateY(-1px);
  color: rgba(20, 63, 102, 0.84);
}

.settings-tab-button[data-active="true"] {
  color: var(--accent-strong);
  background: linear-gradient(180deg, rgba(239, 248, 255, 1) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(0, 123, 200, 0.16);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.06), 0 8px 18px rgba(0, 123, 200, 0.08);
}

.settings-tab-content {
  display: grid;
  gap: 18px;
}

#module-placeholder.is-settings-module,
.module-placeholder.is-settings-module {
  margin-inline: auto;
  justify-items: center;
  width: min(100%, 1120px);
}

.is-settings-module .settings-tab-content {
  justify-items: center;
  width: 100%;
}

.is-settings-module .settings-tab-content > * {
  width: min(100%, 780px);
}

.is-settings-module .settings-margin-groups,
.is-settings-module .settings-priority-summary,
.is-settings-module .settings-priority-groups {
  width: min(100%, 920px);
}

.is-settings-module .settings-panel-header {
  text-align: center;
  justify-items: center;
}

.is-settings-module .settings-panel-copy {
  margin-inline: auto;
  text-align: center;
}

.is-settings-module .settings-bridge-actions,
.is-settings-module .settings-bridge-sync-actions,
.is-settings-module .settings-profile-actions {
  justify-content: center;
}

.is-settings-module .settings-bridge-hint {
  text-align: center;
}

.is-settings-module .settings-profile-form,
.is-settings-module .settings-profile-photo-editor {
  width: min(100%, 860px);
}

.settings-panel-header {
  display: grid;
  gap: 8px;
}

.settings-panel-title {
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.settings-panel-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.settings-profile-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 248, 255, 0.96) 100%);
  border: 1px solid rgba(0, 123, 200, 0.08);
  box-shadow: 0 14px 26px rgba(28, 74, 116, 0.05);
}

.settings-profile-avatar-host {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-profile-avatar {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(0, 173, 239, 0.18) 0%, rgba(0, 123, 200, 0.12) 100%);
  color: var(--accent-strong);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  overflow: hidden;
  object-fit: cover;
  box-shadow: 0 12px 22px rgba(0, 123, 200, 0.14);
}

.settings-profile-summary-copy {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.settings-profile-summary-kicker {
  color: rgba(0, 123, 200, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.settings-profile-summary-copy strong {
  color: var(--ink);
  font-size: 1.22rem;
}

.settings-profile-summary-copy span,
.settings-profile-summary-copy small {
  color: var(--muted);
  line-height: 1.45;
}

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

.settings-profile-photo-editor {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 18px;
  padding: 20px 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 251, 255, 0.97) 100%);
  border: 1px solid rgba(0, 123, 200, 0.08);
  box-shadow: 0 16px 28px rgba(28, 74, 116, 0.05);
}

.settings-profile-photo-editor[data-editing="false"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(249, 251, 253, 0.98) 100%);
}

.settings-profile-photo-preview-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.settings-profile-photo-preview-title {
  color: var(--ink);
  font-size: 0.9rem;
}

.settings-profile-photo-preview-hint {
  color: var(--muted);
  line-height: 1.45;
}

.settings-profile-photo-preview-bubble {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.92) 0%, rgba(226, 239, 248, 0.78) 100%);
  border: 1px solid rgba(0, 123, 200, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 14px 24px rgba(28, 74, 116, 0.08);
}

.settings-profile-photo-preview-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  will-change: transform;
}

.settings-profile-photo-preview-static {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(0, 173, 239, 0.18) 0%, rgba(0, 123, 200, 0.12) 100%);
  color: var(--accent-strong);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  object-fit: cover;
  overflow: hidden;
}

.settings-profile-photo-controls {
  display: grid;
  gap: 12px;
  align-content: start;
}

.settings-profile-photo-editor[data-editing="false"] .settings-profile-photo-controls {
  opacity: 0.58;
}

.settings-profile-photo-control {
  display: grid;
  gap: 8px;
}

.settings-profile-photo-control-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.settings-profile-photo-control-top strong {
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.settings-profile-photo-control-top small {
  color: rgba(0, 123, 200, 0.74);
  font-size: 0.75rem;
  font-weight: 700;
}

.settings-profile-photo-range {
  width: 100%;
  accent-color: var(--accent-strong);
}

.settings-profile-photo-range:disabled {
  cursor: not-allowed;
}

.settings-profile-photo-editor-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-profile-photo-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 123, 200, 0.1);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.settings-profile-photo-button:hover {
  transform: translateY(-1px);
}

.settings-profile-photo-button-primary {
  background: rgba(0, 123, 200, 0.1);
  color: var(--accent-strong);
}

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

.settings-profile-field {
  display: grid;
  gap: 6px;
}

.settings-profile-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-profile-field input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(0, 123, 200, 0.1);
  border-radius: 16px;
  background: rgba(247, 250, 252, 0.95);
  color: var(--ink);
  font: inherit;
}

.settings-profile-field input:focus {
  outline: none;
  border-color: rgba(0, 123, 200, 0.22);
  box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.08);
}

.settings-profile-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-profile-photo-status {
  margin: 0;
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .settings-profile-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-profile-photo-editor {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .settings-profile-photo-controls {
    width: 100%;
  }
}

.settings-priority-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.settings-priority-summary-card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 123, 200, 0.08);
  box-shadow: 0 12px 22px rgba(28, 74, 116, 0.04);
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  appearance: none;
  -webkit-appearance: none;
}

.settings-priority-summary-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 123, 200, 0.14);
  box-shadow: 0 14px 24px rgba(28, 74, 116, 0.06);
}

.settings-priority-summary-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-priority-summary-card strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.settings-priority-summary-card-critical {
  box-shadow: inset 3px 0 0 rgba(201, 59, 59, 0.8), 0 12px 22px rgba(28, 74, 116, 0.04);
}

.settings-priority-summary-card-important {
  box-shadow: inset 3px 0 0 rgba(217, 135, 50, 0.82), 0 12px 22px rgba(28, 74, 116, 0.04);
}

.settings-priority-summary-card-standard {
  box-shadow: inset 3px 0 0 rgba(0, 123, 200, 0.36), 0 12px 22px rgba(28, 74, 116, 0.04);
}

.settings-priority-groups {
  display: grid;
  gap: 18px;
}

.settings-priority-group {
  display: grid;
  gap: 14px;
  padding: 18px 18px 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 123, 200, 0.08);
  box-shadow: 0 14px 26px rgba(28, 74, 116, 0.05);
}

.settings-priority-group-critical {
  box-shadow: inset 4px 0 0 rgba(201, 59, 59, 0.84), 0 14px 26px rgba(28, 74, 116, 0.05);
}

.settings-priority-group-important {
  box-shadow: inset 4px 0 0 rgba(217, 135, 50, 0.84), 0 14px 26px rgba(28, 74, 116, 0.05);
}

.settings-priority-group-standard {
  box-shadow: inset 4px 0 0 rgba(0, 123, 200, 0.32), 0 14px 26px rgba(28, 74, 116, 0.05);
}

.settings-priority-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.settings-priority-group-copy {
  display: grid;
  gap: 6px;
}

.settings-priority-group-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-priority-group-title {
  color: var(--accent-strong);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-priority-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.settings-priority-group-count-critical {
  color: var(--danger);
  background: rgba(201, 59, 59, 0.1);
}

.settings-priority-group-count-important {
  color: var(--alert);
  background: rgba(217, 135, 50, 0.12);
}

.settings-priority-group-count-standard {
  color: var(--accent-strong);
  background: rgba(0, 123, 200, 0.1);
}

.settings-priority-group-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

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

.settings-priority-card {
  display: grid;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 123, 200, 0.08);
  box-shadow: 0 10px 18px rgba(28, 74, 116, 0.04);
  overflow: hidden;
}

.settings-priority-card-critical {
  background: linear-gradient(180deg, rgba(255, 249, 249, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.settings-priority-card-important {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.settings-priority-card-standard {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.settings-priority-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.settings-priority-identity {
  display: grid;
  gap: 3px;
}

.settings-priority-identity strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.settings-priority-identity span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-priority-badge-danger {
  color: var(--danger);
  background: rgba(201, 59, 59, 0.1);
}

.settings-priority-badge-alert {
  color: var(--alert);
  background: rgba(217, 135, 50, 0.12);
}

.settings-priority-badge-neutral {
  color: var(--accent-strong);
  background: rgba(0, 123, 200, 0.1);
}

.settings-priority-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, 112px);
  gap: 10px;
  align-items: end;
}

.settings-priority-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settings-priority-field span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-priority-field select,
.settings-priority-field input {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(0, 123, 200, 0.1);
  border-radius: 14px;
  background: rgba(247, 250, 252, 0.95);
  color: var(--ink);
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .settings-priority-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}

.settings-priority-field select:focus,
.settings-priority-field input:focus {
  outline: none;
  border-color: rgba(0, 123, 200, 0.22);
  box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.08);
}

.settings-priority-empty {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(247, 250, 252, 0.9);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.06);
}

.settings-margin-groups {
  display: grid;
  gap: 18px;
}

.settings-margin-group {
  display: grid;
  gap: 14px;
  padding: 18px 18px 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 123, 200, 0.08);
  box-shadow: 0 14px 26px rgba(28, 74, 116, 0.05);
}

.settings-margin-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.settings-margin-group-title-wrap {
  display: grid;
  gap: 4px;
}

.settings-margin-group-title {
  color: var(--accent-strong);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-margin-group-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 680;
}

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

.settings-margin-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.98) 100%);
  border: 1px solid rgba(0, 123, 200, 0.08);
  box-shadow: 0 10px 18px rgba(28, 74, 116, 0.04);
}

.settings-margin-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.settings-margin-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settings-margin-card-copy strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.settings-margin-actual {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.settings-margin-card-form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.settings-margin-field {
  display: grid;
  gap: 6px;
}

.settings-margin-field span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-margin-input-wrap {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px 0 14px;
  border-radius: 16px;
  background: rgba(247, 250, 252, 0.95);
  border: 1px solid rgba(0, 123, 200, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.settings-margin-input-wrap input {
  width: 68px;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 760;
  text-align: right;
}

.settings-margin-input-wrap input:focus {
  outline: none;
}

.settings-margin-input-wrap small {
  color: rgba(0, 95, 160, 0.72);
  font-size: 0.84rem;
  font-weight: 800;
}

@media (max-width: 760px) {
  .settings-margin-card-top {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-margin-card-form {
    justify-content: flex-start;
  }
}


.module-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.module-placeholder-card {
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 248, 255, 0.95) 100%);
  box-shadow: 0 14px 28px rgba(0, 123, 200, 0.06);
}

.module-placeholder-card-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.module-placeholder-card strong {
  display: block;
  margin-top: 10px;
  color: var(--accent-strong);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.module-placeholder-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .restaurant-view-tabs {
    margin-bottom: 2px;
  }

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

@media (max-width: 860px) {
  .domain-tabs,
  .module-placeholder-grid {
    grid-template-columns: 1fr;
  }

  .restaurant-view-tabs {
    gap: 8px;
    justify-content: center;
  }
}
.restaurant-view-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 123, 200, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 22px rgba(28, 74, 116, 0.04);
}

.restaurant-view-tabs[hidden] {
  display: none !important;
}

.restaurant-view-tab {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(20, 63, 102, 0.62);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.restaurant-view-tab[data-active="true"] {
  background: linear-gradient(180deg, rgba(239, 248, 255, 1) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: var(--accent-strong);
  border-color: rgba(0, 123, 200, 0.16);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.06), 0 8px 18px rgba(0, 123, 200, 0.08);
}

.restaurant-view-tab:hover {
  transform: translateY(-1px);
  color: rgba(20, 63, 102, 0.84);
}

@media (max-width: 1180px) {
  .restaurant-view-tabs {
    margin-bottom: 16px;
  }
}

@media (max-width: 860px) {
  .restaurant-view-tabs {
    gap: 8px;
  }
}

/* Sidebar expandable navigation */
.sidebar-nav-tree {
  display: grid;
  gap: 10px;
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 123, 200, 0.26) transparent;
}

.sidebar-nav-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 123, 200, 0.08);
}

.sidebar-nav-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 123, 200, 0.08);
}

.sidebar-nav-tree::-webkit-scrollbar {
  width: 7px;
}

.sidebar-nav-tree::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav-tree::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.2);
}

.sidebar-nav-tree::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 123, 200, 0.3);
}

.sidebar-nav-group {
  display: grid;
  gap: 8px;
}

.sidebar-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.sidebar-section-heading-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidebar-section-title {
  color: rgba(20, 63, 102, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.sidebar-section-heading[data-active="true"] .sidebar-section-title {
  color: var(--accent-strong);
}

.sidebar-section-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 254, 0.95) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.sidebar-nav-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0.88rem 0.92rem 0.88rem 1rem;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.06);
  text-align: left;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.sidebar-nav-item-primary,
.sidebar-nav-item-footer {
  min-height: 52px;
}

.sidebar-nav-item-footer {
  background: rgba(247, 250, 253, 0.94);
}

.sidebar-nav-item-primary,
.sidebar-nav-item-footer {
  min-height: 52px;
}

.sidebar-nav-item-footer {
  background: rgba(247, 250, 253, 0.94);
}

.sidebar-nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.sidebar-nav-item-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidebar-nav-item-label {
  display: block;
  color: rgba(20, 63, 102, 0.92);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.2;
}

.sidebar-nav-item[data-active="true"] {
  background: linear-gradient(180deg, rgba(236, 247, 255, 1) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.14), 0 10px 20px rgba(0, 123, 200, 0.08);
}

.sidebar-nav-item[data-active="true"] .sidebar-nav-item-label {
  color: var(--accent-strong);
}

.sidebar-nav-item[data-active="true"]::before {
  background: linear-gradient(180deg, #00adef 0%, #007bc8 100%);
}

.sidebar-nav-item[data-active="true"] .sidebar-icon-module {
  background: linear-gradient(135deg, #00adef 0%, #007bc8 100%);
  color: rgba(255, 255, 255, 0.98);
}

.sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(0, 123, 200, 0.08);
  color: var(--accent-strong);
  flex: 0 0 26px;
}

.sidebar-icon svg {
  width: 14px;
  height: 14px;
}

.sidebar-icon-domain {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(0, 173, 239, 0.08);
  flex-basis: 28px;
}

.sidebar-icon-domain svg {
  width: 15px;
  height: 15px;
}

.sidebar-icon-module {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(0, 123, 200, 0.07);
  flex-basis: 28px;
}

.sidebar-nav-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.1), 0 10px 18px rgba(0, 123, 200, 0.06);
}

.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.42rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sidebar-badge-neutral {
  background: rgba(0, 123, 200, 0.08);
  color: var(--accent-strong);
}

.sidebar-badge-alert {
  background: rgba(217, 135, 50, 0.14);
  color: var(--alert);
}

.sidebar-badge-danger {
  background: rgba(201, 59, 59, 0.12);
  color: var(--danger);
}

@media (max-width: 860px) {
  .sidebar-section-card {
    padding: 8px;
  }
}
/* Sidebar smooth reveal polish */
.sidebar-section-card {
  animation: none;
}


.detail-editor-card {
  display: grid;
  gap: 20px;
  margin-top: 14px;
  padding: 26px 28px;
  border: 1px solid rgba(0, 123, 200, 0.1);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 251, 255, 0.92) 100%);
  box-shadow: var(--shadow-soft);
}

.detail-editor-head,
.detail-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-editor-title-block {
  display: grid;
  gap: 8px;
}

.detail-editor-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  background: rgba(237, 246, 255, 0.92);
  color: #0f4c81;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.08);
}

.detail-editor-title,
.supplier-link-column-title {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 780;
  letter-spacing: -0.03em;
  text-transform: none;
}

.detail-editor-copy,
.detail-editor-hint,
.supplier-link-usage,
.supplier-link-snapshot {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.detail-editor-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.detail-editor-section-title-wrap {
  display: grid;
  gap: 7px;
}

.detail-editor-section-kicker {
  color: #10385d;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-editor-section-copy {
  margin: 0;
  color: rgba(16, 56, 93, 0.62);
  font-size: 0.9rem;
  line-height: 1.55;
}

.detail-editor-section-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.5rem 0.82rem;
  border-radius: 999px;
  background: rgba(246, 250, 254, 0.95);
  color: rgba(16, 56, 93, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.07);
}

.detail-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.detail-editor-field,
.ingredient-editor-field,
.supplier-link-field {
  display: grid;
  gap: 10px;
}

.detail-editor-field span,
.ingredient-editor-field span,
.supplier-link-field span {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-editor-field input,
.detail-editor-field select,
.ingredient-editor-field input,
.ingredient-editor-field select,
.supplier-link-field input,
.supplier-link-field select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(0, 123, 200, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.detail-editor-field input:focus,
.detail-editor-field select:focus,
.ingredient-editor-field input:focus,
.ingredient-editor-field select:focus,
.supplier-link-field input:focus,
.supplier-link-field select:focus {
  outline: none;
  border-color: rgba(0, 123, 200, 0.32);
  box-shadow: 0 0 0 4px rgba(0, 173, 239, 0.1);
}

.detail-editor-field-static {
  align-content: end;
}

.detail-editor-static-value {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(0, 123, 200, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.98) 0%, rgba(241, 248, 255, 0.96) 100%);
  color: rgba(16, 56, 93, 0.86);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.detail-editor-field-price .detail-editor-static-value {
  justify-content: center;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 640;
  color: rgba(16, 56, 93, 0.74);
}

.editor-save-button,
.editor-secondary-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.editor-save-button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 123, 200, 0.18);
}

.editor-save-button:hover,
.editor-secondary-button:hover {
  transform: translateY(-1px);
}

.editor-save-button-compact {
  min-height: 42px;
  padding: 0 16px;
}

.editor-secondary-button-compact {
  min-height: 38px;
  padding: 0 15px;
  font-size: 0.84rem;
}

.editor-secondary-button {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border: 1px solid rgba(0, 123, 200, 0.12);
  box-shadow: var(--shadow-soft);
}

.ingredient-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 123, 200, 0.08);
}

.ingredient-editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.suppliers-view-panel {
  display: grid;
  gap: 20px;
}

.supplier-links-summary {
  display: grid;
  gap: 16px;
}

.supplier-category-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.supplier-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.supplier-category-button {
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(0, 123, 200, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  text-align: left;
  cursor: pointer;
}

.supplier-category-button strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.supplier-category-button span {
  color: var(--muted);
  font-size: 0.83rem;
}

.supplier-category-button[data-active="true"] {
  border-color: rgba(0, 123, 200, 0.2);
  background: rgba(240, 248, 252, 0.96);
}

.supplier-link-summary-card {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(0, 123, 200, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.supplier-link-summary-card span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.supplier-link-summary-card strong {
  font-size: 1.45rem;
  color: var(--ink);
}

.supplier-links-list,
.supplier-links-group-list {
  display: grid;
  gap: 16px;
}

.supplier-links-group {
  display: grid;
  gap: 14px;
}

.supplier-links-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 6px;
}

.supplier-links-group-toggle {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid rgba(0, 123, 200, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.supplier-links-group-toggle[data-active="true"] {
  border-color: rgba(0, 123, 200, 0.18);
  background: rgba(242, 249, 253, 0.96);
}

.supplier-links-group-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.supplier-links-group-header span {
  color: var(--muted);
  font-size: 0.92rem;
}

.supplier-links-group-arrow {
  color: var(--blue-strong);
  font-size: 1.2rem;
  font-weight: 700;
}

.supplier-link-card {
  display: grid;
  gap: 20px;
  padding: 26px 28px;
  border-radius: 28px;
  border: 1px solid rgba(0, 123, 200, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.supplier-link-card-top,
.supplier-link-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.supplier-link-title-wrap {
  display: grid;
  gap: 6px;
}

.supplier-link-name {
  font-size: 1.08rem;
  color: var(--ink);
}

.supplier-link-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.supplier-link-badge {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.supplier-link-badge-good {
  color: var(--success);
  background: var(--success-soft);
}

.supplier-link-badge-alert {
  color: var(--alert);
  background: var(--alert-soft);
}

.supplier-link-badge-neutral {
  color: var(--muted);
  background: var(--neutral-soft);
}

.supplier-link-gap {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.supplier-link-gap-good {
  color: var(--success);
  background: var(--success-soft);
}

.supplier-link-gap-alert {
  color: var(--alert);
  background: var(--alert-soft);
}

.supplier-link-gap-neutral {
  color: var(--muted);
  background: var(--neutral-soft);
}

.supplier-link-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.supplier-quick-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.supplier-quick-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(0, 123, 200, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

.supplier-quick-card.is-best {
  background: linear-gradient(180deg, rgba(239, 250, 242, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%);
  border-color: rgba(47, 157, 92, 0.18);
}

.supplier-quick-card.is-alert {
  background: linear-gradient(180deg, rgba(255, 247, 238, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%);
  border-color: rgba(224, 136, 58, 0.18);
}

.supplier-quick-card.is-active {
  box-shadow: 0 12px 24px rgba(0, 88, 145, 0.08);
}

.supplier-quick-card-diff {
  background: linear-gradient(180deg, rgba(242, 249, 253, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.supplier-quick-card-label {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.supplier-quick-card-value {
  color: var(--ink);
  font-size: 1.1rem;
}

.supplier-quick-card-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.supplier-link-column {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(246, 250, 253, 0.92) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(0, 123, 200, 0.08);
}

.supplier-comparison-glance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.supplier-comparison-metric {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 123, 200, 0.08);
}

.supplier-comparison-metric span {
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.supplier-comparison-metric strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.35;
}

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

.supplier-link-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

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

.supplier-link-field-toggle {
  align-content: center;
}

.supplier-link-field-toggle input {
  width: 22px;
  height: 22px;
  min-height: auto;
  margin: 0;
}

.supplier-source-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.supplier-source-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(0, 123, 200, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.supplier-source-card.is-active {
  border-color: rgba(0, 123, 200, 0.22);
  box-shadow: 0 14px 28px rgba(0, 88, 145, 0.08);
}

.supplier-source-card.is-best {
  background: linear-gradient(180deg, rgba(244, 251, 246, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.supplier-source-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.supplier-source-card-title {
  color: var(--ink);
  font-size: 0.96rem;
}

.supplier-source-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.supplier-source-card-pill {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.supplier-source-card-pill-active {
  color: var(--blue-strong);
  background: rgba(0, 123, 200, 0.12);
}

.supplier-source-card-pill-best {
  color: var(--success);
  background: var(--success-soft);
}

.supplier-source-card-pill-manual {
  color: var(--accent-strong);
  background: rgba(0, 173, 239, 0.1);
}

.supplier-source-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.supplier-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.supplier-source-action {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 123, 200, 0.14);
  background: rgba(0, 123, 200, 0.08);
  color: var(--blue-strong);
  font-weight: 700;
  cursor: pointer;
}

.supplier-source-action[data-active="true"] {
  background: rgba(0, 123, 200, 0.16);
  border-color: rgba(0, 123, 200, 0.22);
}

.supplier-source-action-secondary[data-active="true"] {
  background: rgba(232, 245, 255, 0.98);
  border-color: rgba(0, 123, 200, 0.24);
  color: var(--accent-strong);
}

.supplier-source-action-secondary {
  background: rgba(255, 255, 255, 0.98);
}

.supplier-conversion-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(246, 250, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.08);
}

.supplier-conversion-card span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.supplier-conversion-card strong {
  color: var(--accent-strong);
  font-size: 1rem;
  line-height: 1.2;
}

.supplier-conversion-card-primary {
  background: linear-gradient(180deg, rgba(235, 246, 255, 0.98) 0%, rgba(246, 251, 255, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 123, 200, 0.1),
    0 10px 20px rgba(16, 52, 87, 0.05);
}

.supplier-conversion-card-primary strong {
  color: var(--blue-strong);
  font-size: 1.06rem;
}

.supplier-conversion-meta {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.supplier-base-column {
  gap: 16px;
}

.supplier-base-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.supplier-base-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.supplier-base-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 123, 200, 0.08);
}

.supplier-base-card span {
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.supplier-base-card strong {
  color: var(--ink);
  font-size: 1rem;
}

.supplier-link-snapshot {
  max-width: 70%;
}

@media (max-width: 1120px) {
  .detail-editor-grid,
  .supplier-links-summary,
  .supplier-link-body,
  .supplier-link-form-grid,
  .supplier-comparison-glance,
  .supplier-source-cards,
  .supplier-base-grid,
  .supplier-quick-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-inline-ingredient-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-inline-ingredient-bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .detail-editor-head,
  .detail-editor-actions,
  .detail-inline-editor-recipe-head,
  .detail-inline-editor-recipe-actions,
  .detail-inline-ingredient-row-head,
  .supplier-link-card-top,
  .supplier-link-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-editor-grid,
  .detail-inline-ingredient-grid,
  .detail-inline-ingredient-top,
  .detail-inline-ingredient-bottom,
  .supplier-links-summary,
  .supplier-link-body,
  .supplier-link-form-grid,
  .supplier-comparison-glance,
  .supplier-source-cards,
  .supplier-base-grid,
  .supplier-quick-compare,
  .ingredient-editor-row {
    grid-template-columns: 1fr;
  }

  .supplier-link-badges,
  .supplier-source-card-head {
    justify-content: flex-start;
  }

  .supplier-link-snapshot {
    max-width: none;
  }
}

/* Premium dashboard and sidebar refresh */
:root {
  --bg-top: #fcfdff;
  --bg-bottom: #edf5fc;
  --ink: #123a60;
  --muted: #6d8399;
  --line: rgba(0, 123, 200, 0.09);
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --shadow: 0 22px 48px rgba(18, 58, 96, 0.08);
  --shadow-soft: 0 12px 28px rgba(18, 58, 96, 0.06);
  --neutral-soft: rgba(0, 123, 200, 0.06);
  --accent-soft: rgba(0, 123, 200, 0.1);
}

body {
  background:
    radial-gradient(circle at top left, rgba(0, 173, 239, 0.07) 0%, rgba(0, 173, 239, 0) 24%),
    radial-gradient(circle at top right, rgba(0, 123, 200, 0.06) 0%, rgba(0, 123, 200, 0) 28%),
    linear-gradient(180deg, #fcfeff 0%, #f6fbff 34%, #edf5fc 100%);
}

.page-shell {
  width: min(1540px, calc(100% - 44px));
}

.app-layout {
  gap: 28px;
}

.view-switcher {
  padding: 24px 22px 20px;
  border: 1px solid rgba(18, 58, 96, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(247, 251, 255, 0.98) 100%);
  box-shadow:
    0 22px 46px rgba(18, 58, 96, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sidebar-brand {
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 123, 200, 0.08);
}

.sidebar-brand-copy strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.sidebar-brand-copy span {
  font-size: 0.69rem;
  letter-spacing: 0.12em;
}

.sidebar-profile-slot {
  margin: 4px 0 16px;
}

.sidebar-profile-card {
  gap: 10px;
  padding: 16px 16px 15px;
  border: 1px solid rgba(0, 123, 200, 0.07);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 255, 0.97) 100%);
  box-shadow: 0 12px 28px rgba(18, 58, 96, 0.05);
}

.sidebar-profile-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 123, 200, 0.14);
  box-shadow: 0 16px 30px rgba(18, 58, 96, 0.07);
}

.sidebar-profile-avatar {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(0, 123, 200, 0.08);
  background: linear-gradient(180deg, rgba(233, 245, 255, 1) 0%, rgba(243, 249, 255, 1) 100%);
  box-shadow: 0 10px 24px rgba(0, 123, 200, 0.1);
}

.sidebar-profile-kicker {
  color: rgba(0, 123, 200, 0.64);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.sidebar-profile-copy strong {
  font-size: 1.02rem;
}

.sidebar-profile-copy span,
.sidebar-profile-copy small {
  font-size: 0.74rem;
  color: rgba(18, 58, 96, 0.62);
}

.sidebar-kicker {
  margin-bottom: 10px;
  color: rgba(0, 123, 200, 0.56);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
}

.sidebar-nav-tree,
.sidebar-nav-footer {
  display: grid;
  gap: 8px;
}

.sidebar-nav-item {
  gap: 12px;
  padding: 0.92rem 1rem 0.92rem 1.02rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 58, 96, 0.04);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.sidebar-nav-item::before {
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 4px;
}

.sidebar-nav-item-label {
  font-size: 0.85rem;
  font-weight: 650;
  color: rgba(18, 58, 96, 0.88);
}

.sidebar-nav-item[data-active="true"] {
  border-color: rgba(0, 123, 200, 0.11);
  background: linear-gradient(180deg, rgba(239, 247, 255, 1) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 123, 200, 0.07),
    0 14px 28px rgba(0, 123, 200, 0.1);
}

.sidebar-nav-item[data-active="true"] .sidebar-nav-item-label {
  color: var(--accent-strong);
}

.sidebar-nav-item:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 123, 200, 0.09);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.86),
    0 12px 20px rgba(18, 58, 96, 0.05);
}

.sidebar-icon-module,
.sidebar-icon-domain,
.sidebar-icon {
  background: rgba(0, 123, 200, 0.07);
  color: var(--accent-strong);
}

#dashboard-view {
  gap: 20px;
}

#dashboard-view .panel {
  padding: 30px;
  border: 1px solid rgba(18, 58, 96, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(250, 253, 255, 0.99) 100%);
  box-shadow:
    0 20px 38px rgba(18, 58, 96, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#dashboard-view .panel-head {
  margin-bottom: 16px;
}

#dashboard-view .panel-head h2.dashboard-section-title {
  font-size: clamp(1.04rem, 1.45vw, 1.24rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #0f4c81;
}

.dashboard-panel-copy {
  margin-top: 4px;
  color: rgba(18, 58, 96, 0.54);
  font-size: 0.78rem;
  line-height: 1.5;
}

.dashboard-hero-panel {
  gap: 24px;
  padding: 34px 34px 32px;
  border: 1px solid rgba(18, 58, 96, 0.055);
  background:
    radial-gradient(circle at top right, rgba(0, 123, 200, 0.14) 0%, rgba(0, 123, 200, 0) 30%),
    radial-gradient(circle at left 85%, rgba(0, 173, 239, 0.1) 0%, rgba(0, 173, 239, 0) 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 252, 255, 0.99) 52%, rgba(241, 248, 255, 0.97) 100%);
  box-shadow:
    0 22px 44px rgba(18, 58, 96, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dashboard-hero-panel::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 24%);
}

.dashboard-hero-panel::after {
  width: 300px;
  height: 300px;
  right: -130px;
  top: -150px;
  background: radial-gradient(circle, rgba(0, 123, 200, 0.14) 0%, rgba(0, 123, 200, 0) 70%);
}

.dashboard-hero-copy {
  max-width: 980px;
  gap: 8px;
}

.dashboard-hero-title {
  font-size: clamp(1.68rem, 2.6vw, 2.24rem);
  font-weight: 720;
  letter-spacing: -0.05em;
  color: #0f3658;
}

.dashboard-hero-subtitle {
  display: none !important;
}

.dashboard-kpi-grid-hero {
  gap: 18px;
  padding-top: 20px;
  margin-top: 2px;
}

.dashboard-kpi-grid-hero::before {
  width: min(100%, 760px);
  background: linear-gradient(90deg, rgba(0, 123, 200, 0), rgba(0, 123, 200, 0.14), rgba(0, 123, 200, 0));
}

.dashboard-kpi-card,
.dashboard-supplier-card,
.supplier-alert-card,
.dashboard-shortcut-card,
.dashboard-chart-row,
.dashboard-supplier-alert-summary-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.dashboard-kpi-card {
  align-content: space-between;
  justify-items: start;
  text-align: left;
  gap: 20px;
  min-height: 182px;
  padding: 24px 24px 22px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(249, 252, 255, 0.99) 100%);
  border: 1px solid rgba(18, 58, 96, 0.06);
  box-shadow:
    0 18px 32px rgba(18, 58, 96, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dashboard-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 38px rgba(18, 58, 96, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.dashboard-kpi-card::before {
  left: 24px;
  right: 24px;
  height: 2px;
  background: rgba(0, 123, 200, 0.14);
}

.dashboard-kpi-label {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(0, 123, 200, 0.82);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
}

.dashboard-kpi-value {
  font-size: clamp(2.34rem, 2.95vw, 2.96rem);
  line-height: 0.9;
}

.dashboard-kpi-detail {
  max-width: none;
  color: rgba(18, 58, 96, 0.6);
  font-size: 0.8rem;
  line-height: 1.45;
}

.dashboard-kpi-footer {
  justify-items: start;
}

.dashboard-kpi-trend {
  min-height: 30px;
  padding: 0.36rem 0.72rem;
  border-radius: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  box-shadow: none;
}

.dashboard-supplier-refresh-zone {
  gap: 0.9rem;
  margin: 2px 0 16px;
}

.dashboard-supplier-refresh-button {
  min-height: 50px;
  border: 1px solid rgba(0, 123, 200, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, #00adef 0%, #007bc8 100%);
  box-shadow:
    0 14px 28px rgba(0, 123, 200, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-supplier-refresh-button.is-loading {
  padding: 1rem 1.2rem 1.05rem;
  border-radius: 18px;
}

.dashboard-refresh-progress {
  height: 8px;
  background: rgba(229, 239, 248, 0.92);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.08);
}

.dashboard-supplier-alerts-toolbar {
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-supplier-alert-summary-grid {
  gap: 14px;
}

.dashboard-supplier-alert-summary-card {
  min-height: 104px;
  padding: 18px 18px 17px;
  border-radius: 22px;
  border: 1px solid rgba(18, 58, 96, 0.06);
  box-shadow: 0 12px 24px rgba(18, 58, 96, 0.05);
}

.dashboard-supplier-alert-summary-label {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
}

.dashboard-supplier-alert-summary-value {
  font-size: 1.34rem;
  font-weight: 700;
}

.dashboard-supplier-alert-summary-detail {
  font-size: 0.78rem;
  color: rgba(18, 58, 96, 0.6);
}

.supplier-alert-section {
  gap: 16px;
}

.supplier-alert-section-title {
  font-size: 0.94rem;
  letter-spacing: 0.14em;
}

.supplier-alert-section-note {
  font-size: 0.8rem;
  color: rgba(18, 58, 96, 0.56);
}

.supplier-alert-section-count,
.supplier-alert-section-toggle,
.supplier-alert-status-pill,
.dashboard-history-link-button,
.dashboard-history-back-button {
  min-height: 30px;
  border-radius: 12px;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.supplier-alert-section-grid {
  gap: 16px;
  grid-auto-columns: minmax(332px, calc((100% - 16px) / 2));
  padding-bottom: 6px;
}

.supplier-alert-card {
  gap: 12px;
  min-height: 224px;
  padding: 20px 20px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(250, 252, 255, 0.98) 100%);
  border: 1px solid rgba(18, 58, 96, 0.065);
  box-shadow:
    0 16px 30px rgba(18, 58, 96, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.supplier-alert-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 36px rgba(18, 58, 96, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.supplier-alert-card::before {
  top: 0;
  left: 18px;
  right: 18px;
  bottom: auto;
  width: auto;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.14);
}

.supplier-alert-header {
  gap: 10px;
}

.supplier-alert-supplier {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.supplier-alert-title {
  font-size: 1rem;
  font-weight: 700;
}

.supplier-alert-reference {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.supplier-alert-prices {
  color: rgba(18, 58, 96, 0.66);
  font-size: 0.86rem;
  font-weight: 500;
}

.supplier-alert-variation {
  min-height: 36px;
  padding: 0.34rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(18, 58, 96, 0.06);
  box-shadow: none;
  font-size: 1.02rem;
  font-weight: 620;
}

.supplier-alert-status-actions {
  gap: 9px;
}

.supplier-alert-status-button {
  min-height: 36px;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  border-width: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.supplier-alert-status-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(18, 58, 96, 0.06);
}

.dashboard-supplier-monitoring {
  gap: 10px;
}

.dashboard-supplier-monitoring.supplier-trend-shell {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.supplier-trend-toolbar {
  grid-column: 1 / -1;
}

.supplier-trend-chart-card {
  min-height: 0;
}

.dashboard-supplier-summary-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.supplier-trend-global-link-wrap {
  grid-column: 1 / -1;
}

.supplier-trend-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.dashboard-supplier-trends-global-view {
  gap: 20px;
}

.dashboard-supplier-trends-global-panel {
  padding: 28px;
}

.dashboard-supplier-trends-global-content,
.dashboard-supplier-trends-global-shell {
  display: grid;
  gap: 20px;
}

@media (max-width: 860px) {
  html.ui-premium #dashboard-supplier-trends-global-view .dashboard-supplier-trends-global-grid {
    grid-template-columns: 1fr;
  }

  html.ui-premium #dashboard-supplier-trends-global-view .dashboard-supplier-trends-global-top {
    flex-direction: column;
    align-items: stretch;
  }
}

.dashboard-supplier-card {
  gap: 18px;
  padding: 22px 20px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(249, 252, 255, 0.98) 100%);
  border: 1px solid rgba(18, 58, 96, 0.06);
  box-shadow:
    0 16px 30px rgba(18, 58, 96, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: none;
}

.dashboard-supplier-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 36px rgba(18, 58, 96, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.dashboard-supplier-card::before {
  left: 20px;
  right: 20px;
  height: 2px;
}

.dashboard-supplier-status {
  min-height: 30px;
  padding: 0.3rem 0.68rem;
  border-radius: 12px;
  background: rgba(0, 123, 200, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.06);
}

.dashboard-supplier-snapshot {
  min-height: 78px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.95) 0%, rgba(252, 253, 255, 1) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.06);
}

.dashboard-supplier-inline {
  min-height: 32px;
  border-radius: 12px;
}

.dashboard-chart-row {
  min-height: 82px;
  padding: 13px 15px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.96) 100%);
  border: 1px solid rgba(18, 58, 96, 0.055);
  box-shadow: 0 10px 20px rgba(18, 58, 96, 0.045);
}

.dashboard-chart-row:hover,
.dashboard-chart-row:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(18, 58, 96, 0.06);
}

.dashboard-shortcuts-grid {
  gap: 14px;
}

.dashboard-shortcut-card {
  min-height: 108px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  border: 1px solid rgba(18, 58, 96, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(249, 252, 255, 0.98) 100%);
  box-shadow:
    0 14px 26px rgba(18, 58, 96, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dashboard-shortcut-card::after {
  left: 16px;
  right: 16px;
  top: 12px;
  opacity: 0.62;
}

.dashboard-shortcut-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 32px rgba(18, 58, 96, 0.075),
    0 0 0 1px rgba(0, 123, 200, 0.08);
}

.dashboard-shortcut-body {
  gap: 6px;
  min-height: 76px;
  padding-top: 4px;
}

.dashboard-shortcut-title {
  font-size: 1rem;
  font-weight: 700;
}

.dashboard-shortcut-note {
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.dashboard-data-footer-panel {
  gap: 10px;
  padding-top: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.92) 100%);
}

.dashboard-data-footer-title {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
}

.dashboard-data-footer-panel .update-card {
  border: 1px solid rgba(18, 58, 96, 0.05);
  box-shadow: 0 8px 18px rgba(18, 58, 96, 0.04);
}

.dashboard-refresh-button,
.dashboard-import-button,
.dashboard-link-button,
.supplier-alert-status-button {
  border-radius: 12px;
}

@media (max-width: 1180px) {
  #dashboard-view .panel {
    padding: 24px;
  }

  .dashboard-kpi-grid-hero,
  .dashboard-shortcuts-grid,
  .dashboard-supplier-monitoring,
  .dashboard-supplier-alert-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .app-layout {
    gap: 18px;
  }

  .view-switcher {
    padding: 18px;
  }

  .dashboard-hero-panel,
  #dashboard-view .panel {
    padding: 22px;
  }

  .dashboard-kpi-grid-hero,
  .dashboard-shortcuts-grid,
  .dashboard-supplier-monitoring,
  .dashboard-supplier-alert-summary-grid {
    grid-template-columns: 1fr;
  }

  .supplier-alert-section-grid {
    grid-auto-columns: minmax(280px, 88%);
  }
}

/* High-impact premium dashboard refresh */
body {
  background:
    radial-gradient(circle at top left, rgba(0, 173, 239, 0.1) 0%, rgba(0, 173, 239, 0) 26%),
    radial-gradient(circle at top right, rgba(0, 123, 200, 0.08) 0%, rgba(0, 123, 200, 0) 30%),
    linear-gradient(180deg, #fdfeff 0%, #f6fbff 32%, #ebf4fb 100%);
}

#dashboard-view {
  gap: 24px;
}

#dashboard-view .panel {
  padding: 34px;
  border-radius: 32px;
  border: 1px solid rgba(17, 65, 108, 0.075);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 252, 255, 0.985) 100%);
  box-shadow:
    0 28px 56px rgba(17, 65, 108, 0.08),
    0 8px 18px rgba(17, 65, 108, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

#dashboard-view .panel-head {
  margin-bottom: 18px;
}

#dashboard-view .panel-head h2.dashboard-section-title {
  font-size: clamp(1.06rem, 1.45vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #0f4c81;
}

.dashboard-panel-copy {
  margin-top: 6px;
  color: rgba(18, 58, 96, 0.56);
  font-size: 0.82rem;
  line-height: 1.6;
}

.dashboard-hero-panel {
  gap: 30px;
  padding: 44px 42px 38px;
  border-radius: 36px;
  border: 1px solid rgba(17, 65, 108, 0.08);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 88% 16%, rgba(0, 123, 200, 0.18) 0%, rgba(0, 123, 200, 0) 30%),
    radial-gradient(circle at 18% 88%, rgba(0, 173, 239, 0.12) 0%, rgba(0, 173, 239, 0) 24%),
    linear-gradient(140deg, #ffffff 0%, #f6fbff 48%, #eef7ff 100%);
  box-shadow:
    0 34px 70px rgba(17, 65, 108, 0.11),
    0 12px 24px rgba(17, 65, 108, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.dashboard-hero-panel::before {
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 84% 22%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 24%);
}

.dashboard-hero-panel::after {
  width: 360px;
  height: 360px;
  right: -150px;
  top: -170px;
  background: radial-gradient(circle, rgba(0, 123, 200, 0.16) 0%, rgba(0, 123, 200, 0) 72%);
}

.dashboard-hero-copy {
  gap: 12px;
}

.dashboard-hero-title {
  font-size: clamp(2.05rem, 3vw, 2.78rem);
  font-weight: 760;
  letter-spacing: -0.06em;
  color: #0d3457;
  text-align: center;
}

.dashboard-hero-subtitle {
  display: block !important;
  margin: 0;
  color: rgba(18, 58, 96, 0.64);
  font-size: 0.96rem;
  font-weight: 550;
  line-height: 1.6;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: 0;
  padding: 0;
}

.dashboard-kpi-grid-hero {
  gap: 20px;
  padding-top: 24px;
  margin-top: 4px;
}

.dashboard-kpi-grid-hero::before {
  width: min(100%, 820px);
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 123, 200, 0), rgba(0, 123, 200, 0.18), rgba(0, 123, 200, 0));
}

.dashboard-kpi-card {
  gap: 24px;
  min-height: 224px;
  padding: 30px 28px 26px;
  border-radius: 30px;
  justify-items: center;
  text-align: center;
  border: 1px solid rgba(17, 65, 108, 0.075);
  background:
    linear-gradient(180deg, rgba(246, 251, 255, 1) 0%, rgba(240, 248, 255, 0.92) 100%);
  box-shadow:
    0 26px 48px rgba(17, 65, 108, 0.09),
    0 10px 20px rgba(17, 65, 108, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.dashboard-kpi-card-good {
  background:
    linear-gradient(180deg, rgba(246, 255, 249, 1) 0%, rgba(239, 251, 243, 0.96) 100%);
}

.dashboard-kpi-card-alert {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 1) 0%, rgba(255, 246, 233, 0.96) 100%);
}

.dashboard-kpi-card-danger {
  background:
    linear-gradient(180deg, rgba(255, 246, 246, 1) 0%, rgba(255, 238, 238, 0.96) 100%);
}

.dashboard-kpi-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 34px 60px rgba(17, 65, 108, 0.11),
    0 12px 24px rgba(17, 65, 108, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.dashboard-kpi-card::before {
  left: 28px;
  right: 28px;
  height: 3px;
  background: linear-gradient(90deg, rgba(0, 123, 200, 0.96), rgba(0, 173, 239, 0.32));
}

.dashboard-kpi-label {
  color: rgba(0, 123, 200, 0.82);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}

.dashboard-kpi-value {
  font-size: clamp(2.48rem, 3.75vw, 3.3rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.dashboard-kpi-detail {
  font-size: 0.84rem;
  color: rgba(18, 58, 96, 0.6);
  text-align: center;
}

.dashboard-kpi-trend {
  min-height: 34px;
  padding: 0.42rem 0.82rem;
  border-radius: 12px;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.dashboard-supplier-refresh-zone {
  gap: 1rem;
  margin: 6px 0 20px;
}

.dashboard-refresh-button {
  font-weight: 750;
  letter-spacing: 0.03em;
}

.dashboard-supplier-refresh-button {
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(0, 123, 200, 0.16);
  background: linear-gradient(135deg, #17b2f4 0%, #007bc8 100%);
  box-shadow:
    0 20px 34px rgba(0, 123, 200, 0.2),
    0 8px 18px rgba(0, 123, 200, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.dashboard-supplier-refresh-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 26px 40px rgba(0, 123, 200, 0.24),
    0 10px 20px rgba(0, 123, 200, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.dashboard-supplier-refresh-button.is-loading {
  border-radius: 20px;
}

.dashboard-supplier-alert-summary-grid {
  gap: 16px;
}

.dashboard-supplier-alert-summary-card {
  min-height: 114px;
  padding: 20px 20px 18px;
  border-radius: 24px;
  border: 1px solid rgba(17, 65, 108, 0.075);
  box-shadow:
    0 18px 30px rgba(17, 65, 108, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.dashboard-supplier-alert-summary-card-neutral {
  background: linear-gradient(180deg, rgba(244, 250, 255, 1) 0%, rgba(238, 247, 255, 0.96) 100%);
}

.dashboard-supplier-alert-summary-card-alert {
  background: linear-gradient(180deg, rgba(244, 250, 255, 1) 0%, rgba(238, 247, 255, 0.96) 100%);
}

.dashboard-supplier-alert-summary-card-good {
  background: linear-gradient(180deg, rgba(244, 250, 255, 1) 0%, rgba(238, 247, 255, 0.96) 100%);
}

.dashboard-supplier-alert-summary-card-danger {
  background: linear-gradient(180deg, rgba(244, 250, 255, 1) 0%, rgba(238, 247, 255, 0.96) 100%);
}

.dashboard-supplier-alert-summary-value {
  font-size: 1.56rem;
  letter-spacing: -0.05em;
}

.supplier-alert-section {
  gap: 18px;
}

.supplier-alert-section-grid {
  gap: 18px;
  grid-auto-columns: minmax(356px, calc((100% - 18px) / 2));
}

.supplier-alert-card {
  gap: 14px;
  min-height: 244px;
  padding: 22px 22px 20px;
  border-radius: 26px;
  border: 1px solid rgba(17, 65, 108, 0.075);
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 1) 0%, rgba(243, 249, 255, 0.98) 100%);
  box-shadow:
    0 22px 38px rgba(17, 65, 108, 0.08),
    0 8px 18px rgba(17, 65, 108, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.supplier-alert-card-increase,
.supplier-alert-card-critique,
.supplier-alert-card-attention {
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 1) 0%, rgba(243, 249, 255, 0.98) 100%);
}

.supplier-alert-card-decrease,
.supplier-alert-card-info {
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 1) 0%, rgba(243, 249, 255, 0.98) 100%);
}

.supplier-alert-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 30px 50px rgba(17, 65, 108, 0.1),
    0 10px 22px rgba(17, 65, 108, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.supplier-alert-card::before {
  left: 22px;
  right: 22px;
  height: 3px;
}

.supplier-alert-supplier {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}

.supplier-alert-title {
  font-size: 1.04rem;
  line-height: 1.34;
}

.supplier-alert-prices {
  font-size: 0.88rem;
}

.supplier-alert-variation {
  min-height: 40px;
  padding: 0.42rem 0.92rem;
  border-radius: 14px;
  font-size: 1.08rem;
  font-weight: 640;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 10px 18px rgba(17, 65, 108, 0.05);
}

.supplier-alert-status-pill,
.supplier-alert-section-count,
.supplier-alert-section-toggle {
  min-height: 32px;
  border-radius: 12px;
  font-size: 0.65rem;
}

.supplier-alert-status-button {
  min-height: 38px;
  padding: 0.44rem 0.86rem;
  border-radius: 12px;
  font-size: 0.66rem;
  border-width: 1px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 8px 16px rgba(17, 65, 108, 0.04);
}

.supplier-alert-status-button:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 14px 22px rgba(17, 65, 108, 0.07);
}

.dashboard-supplier-card {
  gap: 20px;
  padding: 24px 22px 22px;
  border-radius: 26px;
  border: 1px solid rgba(17, 65, 108, 0.075);
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 1) 0%, rgba(241, 248, 255, 0.98) 100%);
  box-shadow:
    0 20px 36px rgba(17, 65, 108, 0.07),
    0 8px 18px rgba(17, 65, 108, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.dashboard-supplier-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 28px 46px rgba(17, 65, 108, 0.09),
    0 10px 22px rgba(17, 65, 108, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.dashboard-supplier-card::before {
  left: 22px;
  right: 22px;
  height: 3px;
}

.dashboard-supplier-snapshot {
  min-height: 82px;
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 123, 200, 0.06),
    0 8px 16px rgba(17, 65, 108, 0.04);
}

.dashboard-chart-row {
  min-height: 86px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(17, 65, 108, 0.07);
  box-shadow:
    0 14px 24px rgba(17, 65, 108, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.dashboard-chart-row:hover,
.dashboard-chart-row:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 18px 30px rgba(17, 65, 108, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.dashboard-shortcuts-grid {
  gap: 16px;
}

.dashboard-shortcut-card {
  min-height: 114px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(17, 65, 108, 0.07);
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 1) 0%, rgba(241, 248, 255, 0.98) 100%);
  box-shadow:
    0 18px 30px rgba(17, 65, 108, 0.06),
    0 8px 18px rgba(17, 65, 108, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.dashboard-shortcut-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 38px rgba(17, 65, 108, 0.08),
    0 10px 22px rgba(17, 65, 108, 0.04),
    0 0 0 1px rgba(0, 123, 200, 0.08);
}

.dashboard-shortcut-title {
  font-size: 1.04rem;
}

.dashboard-data-footer-panel {
  padding-top: 18px;
}

@media (max-width: 1180px) {
  #dashboard-view .panel {
    padding: 28px;
  }

  .dashboard-hero-panel {
    padding: 36px 32px 32px;
  }

  .dashboard-kpi-card {
    min-height: 210px;
  }
}

@media (max-width: 860px) {
  #dashboard-view .panel,
  .dashboard-hero-panel {
    padding: 24px;
  }

  .dashboard-kpi-card {
    min-height: 196px;
    padding: 24px 22px 22px;
  }

  .dashboard-kpi-value {
    font-size: clamp(2.2rem, 8vw, 2.8rem);
  }
}

/* Final Stripe-style premium dashboard layer */
#dashboard-view {
  gap: 28px;
}

#dashboard-view .panel {
  padding: 36px;
  border-radius: 34px;
  box-shadow:
    0 30px 70px rgba(16, 52, 87, 0.09),
    0 12px 28px rgba(16, 52, 87, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.dashboard-hero-panel {
  gap: 34px;
  padding: 48px 44px 42px;
  border-radius: 38px;
  box-shadow:
    0 36px 78px rgba(16, 52, 87, 0.12),
    0 12px 24px rgba(16, 52, 87, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.dashboard-hero-copy {
  max-width: 1040px;
  gap: 14px;
}

.dashboard-hero-title {
  font-size: clamp(2.1rem, 3.2vw, 2.9rem);
  font-weight: 760;
  letter-spacing: -0.065em;
}

.dashboard-hero-subtitle {
  color: rgba(18, 58, 96, 0.62);
  font-size: 0.98rem;
  font-weight: 550;
}

.dashboard-kpi-grid-hero {
  gap: 22px;
  padding-top: 26px;
}

.dashboard-kpi-card {
  min-height: 232px;
  padding: 32px 30px 28px;
  border-radius: 32px;
  gap: 26px;
  box-shadow:
    0 28px 54px rgba(16, 52, 87, 0.1),
    0 10px 22px rgba(16, 52, 87, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.dashboard-kpi-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 40px 72px rgba(16, 52, 87, 0.13),
    0 14px 28px rgba(16, 52, 87, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.dashboard-kpi-value {
  font-size: clamp(2.9rem, 4.6vw, 4rem);
  line-height: 0.86;
  letter-spacing: -0.085em;
}

.dashboard-kpi-trend {
  min-height: 36px;
  padding: 0.44rem 0.86rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 10px 18px rgba(16, 52, 87, 0.04);
}

.dashboard-supplier-refresh-button {
  min-height: 58px;
  border-radius: 18px;
  box-shadow:
    0 22px 38px rgba(0, 123, 200, 0.22),
    0 8px 20px rgba(0, 123, 200, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.dashboard-supplier-refresh-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 30px 44px rgba(0, 123, 200, 0.24),
    0 10px 22px rgba(0, 123, 200, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.dashboard-supplier-alert-summary-card {
  border-radius: 26px;
  padding: 22px 22px 20px;
  box-shadow:
    0 18px 34px rgba(16, 52, 87, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.supplier-alert-section-grid {
  gap: 20px;
  grid-auto-columns: minmax(370px, calc((100% - 20px) / 2));
}

.supplier-alert-card {
  min-height: 252px;
  padding: 24px 24px 22px 26px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(247, 251, 255, 0.985) 100%);
  box-shadow:
    0 24px 42px rgba(16, 52, 87, 0.09),
    0 10px 22px rgba(16, 52, 87, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.supplier-alert-card::before {
  left: 0;
  right: auto;
  top: 18px;
  bottom: 18px;
  width: 4px;
  height: auto;
}

.supplier-alert-card-increase,
.supplier-alert-card-critique,
.supplier-alert-card-attention {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(247, 251, 255, 0.985) 100%);
}

.supplier-alert-card-decrease,
.supplier-alert-card-info {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(247, 251, 255, 0.985) 100%);
}

.supplier-alert-content {
  justify-items: center;
  text-align: center;
  gap: 14px;
}

.supplier-alert-header {
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.supplier-alert-product-block {
  justify-items: center;
  gap: 4px;
}

.supplier-alert-supplier {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
}

.supplier-alert-title {
  font-size: 1.08rem;
  font-weight: 720;
  line-height: 1.32;
}

.supplier-alert-reference {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.supplier-alert-footer {
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.supplier-alert-price-stack {
  justify-items: center;
  gap: 10px;
}

.supplier-alert-prices {
  font-size: 0.9rem;
  color: rgba(18, 58, 96, 0.7);
}

.supplier-alert-variation {
  min-height: 42px;
  padding: 0.46rem 0.94rem;
  font-size: 1.12rem;
  font-weight: 650;
  border: 1px solid rgba(17, 65, 108, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 12px 20px rgba(16, 52, 87, 0.05);
}

.supplier-alert-variation-good,
.supplier-alert-variation-alert,
.supplier-alert-variation-danger {
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 12px 20px rgba(16, 52, 87, 0.05);
}

.supplier-alert-status-summary {
  justify-items: center;
  gap: 8px;
}

.supplier-alert-status-actions {
  justify-content: center;
  gap: 10px;
}

.supplier-alert-status-button {
  min-height: 40px;
  padding: 0.46rem 0.88rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 8px 16px rgba(16, 52, 87, 0.04);
}

.dashboard-supplier-card {
  border-radius: 28px;
  padding: 26px 24px 24px;
  box-shadow:
    0 22px 40px rgba(16, 52, 87, 0.08),
    0 8px 20px rgba(16, 52, 87, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.dashboard-supplier-glance {
  gap: 12px;
}

.dashboard-supplier-snapshot {
  min-height: 86px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 123, 200, 0.06),
    0 10px 18px rgba(16, 52, 87, 0.04);
}

.dashboard-supplier-snapshot strong {
  font-size: 1.06rem;
}

.dashboard-supplier-snapshot-textual strong {
  font-size: 0.74rem;
  line-height: 1.35;
  letter-spacing: 0;
  max-width: 10ch;
}

.dashboard-chart {
  gap: 12px;
}

.dashboard-chart-row {
  min-height: 90px;
  padding: 16px 18px;
  border-radius: 22px;
}

.dashboard-chart-track {
  height: 16px;
}

.dashboard-chart-target {
  top: -5px;
  bottom: -5px;
  width: 3px;
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

.dashboard-chart-objective {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-chart-actual {
  font-size: 1.08rem;
}

.dashboard-shortcut-card {
  min-height: 118px;
  border-radius: 24px;
  padding: 20px 20px 18px;
  box-shadow:
    0 20px 34px rgba(16, 52, 87, 0.07),
    0 8px 18px rgba(16, 52, 87, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.dashboard-shortcut-body {
  min-height: 80px;
  gap: 8px;
}

.dashboard-shortcut-title {
  font-size: 1.06rem;
  font-weight: 720;
}

@media (max-width: 1180px) {
  #dashboard-view .panel {
    padding: 30px;
  }

  .dashboard-hero-panel {
    padding: 40px 34px 36px;
  }

  .dashboard-kpi-card {
    min-height: 214px;
    padding: 28px 24px 24px;
  }
}

@media (max-width: 860px) {
  #dashboard-view .panel,
  .dashboard-hero-panel {
    padding: 24px;
  }

  .dashboard-kpi-card {
    min-height: 196px;
    padding: 24px 22px 22px;
  }

  .dashboard-kpi-value {
    font-size: clamp(2.5rem, 10vw, 3.2rem);
  }

  .supplier-alert-section-grid {
    grid-auto-columns: minmax(300px, 92%);
  }
}

/* Restaurant views aligned with dashboard premium theme */
#overview-view,
#menu-view,
#detail-view,
#purchases-view,
#suppliers-view {
  gap: 24px;
}

#overview-view .panel,
#menu-view .panel,
#detail-view .panel,
#purchases-view .panel,
#suppliers-view .panel {
  padding: 34px;
  border-radius: 32px;
  border: 1px solid rgba(17, 65, 108, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 252, 255, 0.985) 100%);
  box-shadow:
    0 26px 58px rgba(16, 52, 87, 0.08),
    0 10px 24px rgba(16, 52, 87, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

#overview-view .panel-head,
#menu-view .panel-head,
#detail-view .panel-head,
#purchases-view .panel-head,
#suppliers-view .panel-head {
  margin-bottom: 18px;
}

#overview-view .panel-head h2,
#menu-view .panel-head h2,
#detail-view .panel-head h2,
#purchases-view .panel-head h2,
#suppliers-view .panel-head h2 {
  color: #0f4c81;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.04rem, 1.45vw, 1.24rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#overview-view .panel-head p,
#menu-view .panel-head p,
#detail-view .panel-head p,
#purchases-view .panel-head p,
#suppliers-view .panel-head p,
.pricing-advisor-subtitle,
.purchase-filter-label,
.simple-product-group-header p {
  color: rgba(18, 58, 96, 0.56);
}

.restaurant-view-header {
  margin-bottom: 6px;
}

.restaurant-view-title {
  color: #0d3457;
  font-size: clamp(2rem, 2.8vw, 2.55rem);
  font-weight: 760;
  letter-spacing: -0.06em;
}

.summary-grid,
.overview-strips,
.sim-results,
.products-summary {
  gap: 20px;
}

.summary-card,
.strip-card,
.dish-card,
.quick-item,
.detail-metric,
.spotlight-card,
.meter-card,
.ingredient-card,
.summary-mini-card,
.simple-product-row,
.result-card,
.sim-focus-card,
.simulator-controls-card,
.supplier-link-summary-card,
.supplier-link-card,
.supplier-base-card,
.empty-state {
  border: 1px solid rgba(17, 65, 108, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(245, 250, 255, 0.975) 100%);
  box-shadow:
    0 18px 34px rgba(16, 52, 87, 0.06),
    0 8px 18px rgba(16, 52, 87, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.summary-card {
  min-height: 204px;
  padding: 30px 28px;
  border-radius: 30px;
}

.summary-card::before {
  left: 26px;
  right: 26px;
  height: 3px;
}

.summary-value {
  margin-top: 16px;
  font-size: clamp(2.2rem, 3vw, 2.9rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.overview-layout > .panel.simulator-panel,
.overview-layout > .panel.pricing-advisor-panel {
  min-height: 100%;
}

.strip-card {
  padding: 26px;
  border-radius: 28px;
  box-shadow:
    0 20px 36px rgba(16, 52, 87, 0.07),
    0 8px 18px rgba(16, 52, 87, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.97);
}

.strip-card:hover,
.dish-card:hover,
.quick-item:hover,
.supplier-link-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 28px 46px rgba(16, 52, 87, 0.09),
    0 10px 22px rgba(16, 52, 87, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.strip-title-block strong,
.dish-name,
.simple-product-group-header h3 {
  color: #10385d;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
}

#detail-view {
  display: grid;
  gap: 16px;
}

#detail-view .detail-browser-page {
  display: grid;
  gap: 16px;
}

.restaurant-margins-sticky-chrome {
  position: sticky;
  top: var(--app-topbar-sticky-offset, 66px);
  z-index: 14;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  margin: 0 0 10px;
  padding: 0;
  min-height: 40px;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.restaurant-margins-sticky-chrome:hover {
  box-shadow: none;
  border-color: transparent;
}

.restaurant-margins-sticky-chrome .restaurant-margins-back-toolbar {
  grid-column: 1;
  justify-self: start;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 3;
}

.restaurant-margins-sticky-chrome .settings-tabs.restaurant-view-tabs {
  grid-column: 2;
  justify-self: center;
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  width: max-content;
  max-width: min(100vw - 12rem, 52rem);
  margin: 0;
  padding: 4px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 123, 200, 0.28) transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 123, 200, 0.08);
  box-shadow: 0 1px 3px rgba(16, 52, 87, 0.05);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.restaurant-margins-sticky-chrome .restaurant-margins-back-toolbar .app-back-button {
  width: max-content;
  max-width: min(100%, 20rem);
}

.restaurant-margins-sticky-chrome .restaurant-margins-back-toolbar .app-back-title {
  font-size: 0.8125rem;
}

.restaurant-margins-sticky-chrome .restaurant-margins-back-toolbar .app-back-button .app-back-label:empty {
  display: none;
}

.restaurant-margins-sticky-chrome .restaurant-margins-back-toolbar .app-back-button .app-back-label:not(:empty)::before {
  content: "·";
  margin-right: 4px;
  color: rgba(15, 54, 88, 0.35);
}

.restaurant-margins-sticky-chrome .restaurant-margins-back-toolbar .app-back-button .app-back-label {
  max-width: 9rem;
  font-size: 0.75rem;
  color: rgba(15, 54, 88, 0.5);
}

.restaurant-margins-sticky-chrome .settings-tabs.restaurant-view-tabs:hover {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 123, 200, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 20px rgba(28, 74, 116, 0.07);
}

.restaurant-margins-sticky-chrome .settings-tabs.restaurant-view-tabs .settings-tab-button {
  flex-shrink: 0;
}

.restaurant-margins-sticky-chrome .settings-tabs.restaurant-view-tabs .settings-tab-button.restaurant-view-tab {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.restaurant-margins-sticky-chrome .settings-tabs.restaurant-view-tabs .settings-tab-button.restaurant-view-tab:hover {
  transform: translateY(-1px);
  color: rgba(20, 63, 102, 0.9);
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(0, 123, 200, 0.14);
  box-shadow: 0 4px 14px rgba(16, 52, 87, 0.08);
}

.restaurant-margins-sticky-chrome .settings-tabs.restaurant-view-tabs .settings-tab-button.restaurant-view-tab[data-active="true"]:hover {
  border-color: rgba(0, 123, 200, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(0, 123, 200, 0.08),
    0 10px 22px rgba(0, 123, 200, 0.12);
}

.restaurant-margins-sticky-chrome .settings-tabs.restaurant-view-tabs .settings-tab-button.restaurant-view-tab:focus {
  outline: none;
}

.restaurant-margins-sticky-chrome .settings-tabs.restaurant-view-tabs .settings-tab-button.restaurant-view-tab:focus-visible {
  outline: 2px solid rgba(0, 123, 200, 0.45);
  outline-offset: 2px;
}

.restaurant-margins-sticky-chrome .settings-tabs.restaurant-view-tabs .settings-tab-button.restaurant-view-tab:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 90ms;
}

.restaurant-margins-sticky-chrome .restaurant-margins-back-toolbar .app-back-button:focus {
  outline: none;
}

.restaurant-margins-sticky-chrome .restaurant-margins-back-toolbar .app-back-button:focus-visible {
  outline: 2px solid rgba(0, 123, 200, 0.45);
  outline-offset: 2px;
}

.restaurant-margins-sticky-chrome .restaurant-margins-back-toolbar .app-back-button:active {
  background: #f2f7fc;
  box-shadow: inset 0 1px 2px rgba(16, 52, 87, 0.08);
  transition-duration: 90ms;
}

@media (prefers-reduced-motion: reduce) {
  .restaurant-margins-sticky-chrome,
  .restaurant-margins-sticky-chrome .settings-tabs.restaurant-view-tabs,
  .restaurant-margins-sticky-chrome .settings-tabs.restaurant-view-tabs .settings-tab-button.restaurant-view-tab,
  .restaurant-margins-sticky-chrome .restaurant-margins-back-toolbar .app-back-button {
    transition-duration: 0.01ms !important;
  }

  .restaurant-margins-sticky-chrome .settings-tabs.restaurant-view-tabs .settings-tab-button.restaurant-view-tab:hover,
  .restaurant-margins-sticky-chrome .settings-tabs.restaurant-view-tabs .settings-tab-button.restaurant-view-tab:active,
  .restaurant-margins-sticky-chrome .restaurant-margins-back-toolbar .app-back-button:hover,
  .restaurant-margins-sticky-chrome .restaurant-margins-back-toolbar .app-back-button:active {
    transform: none;
  }
}

@media (max-width: 520px) {
  .restaurant-margins-sticky-chrome {
    column-gap: 8px;
    min-height: 38px;
  }

  .restaurant-margins-sticky-chrome .settings-tabs.restaurant-view-tabs {
    max-width: min(100vw - 7.5rem, 100%);
    padding: 3px 4px;
  }

  .restaurant-margins-sticky-chrome .restaurant-margins-back-toolbar .app-back-button .app-back-label {
    max-width: 5rem;
  }
}

#detail-view .detail-sticky-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

#detail-view .detail-sticky-primary-button,
#detail-view .detail-sticky-secondary-button {
  width: 100%;
  justify-content: center;
}

#detail-view .detail-editor-page {
  align-self: start;
}

#detail-view .detail-editor-page #detail-editor-host {
  gap: 18px;
}

#detail-view .detail-layout {
  grid-template-columns: minmax(300px, 0.52fr) minmax(0, 1.48fr);
  gap: 18px;
}

#detail-view .detail-main {
  display: grid;
  align-self: start;
}

#detail-view .detail-page-layout,
#detail-view .detail-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 24px;
  align-items: start;
}

#detail-view .detail-page-main,
#detail-view .detail-editor-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

#detail-view .detail-sticky-rail {
  position: sticky;
  /* Sous la topbar seule (barre restaurant masquée) */
  top: calc(var(--app-topbar-sticky-offset, 72px) + 10px);
  min-width: 0;
  align-self: start;
}

/* Résumé fiche : coller sous la barre Retour + Pilotage / Carte / … quand elle est affichée */
main.views-stack:has(#restaurant-margins-sticky-chrome:not([hidden])) #detail-view .detail-sticky-rail {
  top: calc(var(--app-topbar-sticky-offset, 72px) + var(--app-restaurant-margins-chrome-stack, 84px) + 8px);
}

@media (max-width: 760px) {
  :root {
    --app-restaurant-margins-chrome-stack: 48px;
  }
}

@media (max-width: 520px) {
  :root {
    --app-restaurant-margins-chrome-stack: 52px;
  }
}

#detail-view .detail-sticky-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px 20px 20px;
  border-radius: 28px;
  border: 1px solid rgba(17, 65, 108, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 250, 255, 0.985) 100%);
  box-shadow:
    0 22px 42px rgba(16, 52, 87, 0.08),
    0 8px 18px rgba(16, 52, 87, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

#detail-view .detail-sticky-card::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 3px;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.18);
}

#detail-view .detail-sticky-card[data-tone="good"]::before {
  background: rgba(22, 163, 74, 0.44);
}

#detail-view .detail-sticky-card[data-tone="alert"]::before {
  background: rgba(217, 135, 50, 0.46);
}

#detail-view .detail-sticky-card[data-tone="danger"]::before {
  background: rgba(201, 59, 59, 0.46);
}

#detail-view .detail-sticky-head {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

#detail-view .detail-sticky-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.98) 0%, rgba(232, 243, 255, 0.98) 100%);
  color: #0f4c81;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.08);
}

#detail-view .detail-sticky-title {
  display: block;
  color: #10385d;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.08rem;
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

#detail-view .detail-sticky-status {
  display: grid;
  gap: 6px;
  padding: 14px 14px 13px;
  border-radius: 22px;
  background: rgba(246, 250, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(17, 65, 108, 0.05);
  justify-items: center;
  text-align: center;
}

#detail-view .detail-sticky-status[data-tone="good"] {
  background: rgba(240, 251, 243, 0.94);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.1);
}

#detail-view .detail-sticky-status[data-tone="alert"] {
  background: rgba(255, 248, 240, 0.95);
  box-shadow: inset 0 0 0 1px rgba(217, 135, 50, 0.12);
}

#detail-view .detail-sticky-status[data-tone="danger"] {
  background: rgba(255, 244, 244, 0.95);
  box-shadow: inset 0 0 0 1px rgba(201, 59, 59, 0.11);
}

#detail-view .detail-sticky-status-label {
  color: rgba(16, 56, 93, 0.56);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#detail-view .detail-sticky-status-value {
  color: #10385d;
  font-size: 1.16rem;
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

#detail-view .detail-sticky-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#detail-view .detail-sticky-metric {
  display: grid;
  gap: 7px;
  min-height: 94px;
  padding: 14px 14px 13px;
  border-radius: 22px;
  background: rgba(248, 252, 255, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(17, 65, 108, 0.05),
    0 6px 14px rgba(16, 52, 87, 0.025);
  justify-items: center;
  text-align: center;
}

#detail-view .detail-sticky-metric-wide {
  grid-column: 1 / -1;
  min-height: 88px;
}

#detail-view .detail-sticky-metric-label {
  color: rgba(16, 56, 93, 0.54);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#detail-view .detail-sticky-metric-value {
  color: #10385d;
  font-size: 1.26rem;
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

#detail-view .detail-quick-list {
  width: 100%;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  align-items: stretch;
}

#detail-view .detail-product-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  flex: 0 1 260px;
  min-height: 88px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 65, 108, 0.07);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(250, 253, 255, 1) 0%, rgba(244, 249, 255, 0.98) 100%);
  box-shadow:
    0 10px 18px rgba(16, 52, 87, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  text-align: center;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

#detail-view .detail-product-card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 24px rgba(16, 52, 87, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 123, 200, 0.1);
}

#detail-view .detail-product-card[data-active="true"] {
  background: linear-gradient(180deg, rgba(238, 247, 255, 0.98) 0%, rgba(231, 243, 255, 0.98) 100%);
  box-shadow:
    0 10px 18px rgba(0, 123, 200, 0.08),
    inset 0 0 0 1px rgba(0, 123, 200, 0.08);
  border-color: rgba(0, 123, 200, 0.12);
}

#detail-view .detail-product-card-head {
  display: grid;
  justify-items: center;
  width: 100%;
}

#detail-view .detail-product-card-name {
  color: #10385d;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
}

#detail-view .detail-product-card-margin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.34rem 0.56rem;
  border-radius: 999px;
  background: rgba(244, 249, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.08);
  color: #0f4c81;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

#detail-view .detail-product-card[data-active="true"] .detail-product-card-margin {
  background: rgba(255, 255, 255, 0.84);
}

#detail-view .detail-product-card[data-tone="good"] .detail-product-card-margin {
  color: var(--success);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.12);
}

#detail-view .detail-product-card[data-tone="alert"] .detail-product-card-margin {
  color: var(--alert);
  box-shadow: inset 0 0 0 1px rgba(217, 135, 50, 0.14);
}

#detail-view .detail-product-card[data-tone="danger"] .detail-product-card-margin {
  color: var(--danger);
  box-shadow: inset 0 0 0 1px rgba(201, 59, 59, 0.14);
}

#detail-view .detail-editor-picker .detail-section-tabs {
  margin-top: 0;
}

#detail-view .detail-editor-picker .detail-quick-list {
  margin-top: 0;
  gap: 10px;
}

#detail-view .detail-editor-picker .detail-product-card {
  flex: 0 1 190px;
  min-height: 78px;
  padding: 12px 14px;
  gap: 8px;
}

#detail-view .detail-editor-picker .detail-product-card-name {
  font-size: 0.84rem;
}

#detail-view .detail-editor-picker .detail-product-card-margin {
  min-height: 24px;
  padding: 0.28rem 0.5rem;
  font-size: 0.66rem;
}

#detail-view .detail-intro {
  gap: 18px;
  align-items: start;
}

#detail-view .detail-heading {
  display: grid;
  gap: 8px;
}

#detail-view .detail-edit-trigger {
  min-width: 220px;
}

#detail-view .detail-bottom-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

#detail-view .detail-dish-title {
  color: #10385d;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

#detail-view .detail-copy {
  max-width: 60ch;
  margin: 0;
  font-size: 0.94rem;
}

#detail-view .health-card {
  min-width: 142px;
  padding: 14px 16px;
  border-radius: 22px;
  align-self: start;
}

#detail-view .health-value {
  margin-top: 8px;
  font-size: 1.48rem;
}

#detail-view .detail-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

#detail-view .detail-metric {
  min-height: 102px;
  padding: 16px 14px 14px;
  border-radius: 22px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 8px;
}

#detail-view .detail-metric span {
  display: block;
  margin: 0;
  color: rgba(16, 56, 93, 0.58);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
}

#detail-view .detail-metric strong {
  display: block;
  margin: 0;
  color: #10385d;
  font-size: 1.26rem;
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

#detail-view .meter-card,
#detail-view .detail-editor-card,
#detail-view .recipe-block {
  border-radius: 28px;
}

#detail-view .detail-editor-card {
  border: 1px solid rgba(17, 65, 108, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(245, 250, 255, 0.975) 100%);
  box-shadow:
    0 18px 34px rgba(16, 52, 87, 0.06),
    0 8px 18px rgba(16, 52, 87, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

#detail-view .detail-editor-field input,
#detail-view .detail-editor-field select {
  min-height: 52px;
}

#detail-view .detail-editor-head {
  align-items: flex-end;
}

#detail-view .detail-editor-actions {
  margin-top: 2px;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98) 0%, rgba(243, 248, 255, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 123, 200, 0.06),
    0 10px 18px rgba(16, 52, 87, 0.03);
}

#detail-view .detail-editor-info-card,
#detail-view .detail-editor-recipe,
#detail-view .detail-editor-picker {
  margin-top: 0;
}

#detail-view .detail-editor-kicker {
  background: linear-gradient(180deg, rgba(240, 248, 255, 0.96) 0%, rgba(231, 243, 255, 0.96) 100%);
}

#detail-view .detail-editor-section-copy {
  max-width: 62ch;
}

#detail-view .detail-inline-ingredient-badge {
  background: linear-gradient(180deg, rgba(240, 248, 255, 0.96) 0%, rgba(232, 243, 255, 0.96) 100%);
}

#detail-view .detail-editor-field-price .detail-editor-static-value {
  min-height: 54px;
  background: linear-gradient(180deg, rgba(242, 248, 255, 0.98) 0%, rgba(236, 245, 255, 0.98) 100%);
  color: #0f4c81;
  font-weight: 760;
}

#detail-view .ingredient-list {
  gap: 14px;
}

#detail-view .ingredient-card {
  padding: 22px;
  border-radius: 24px;
}

@media (max-width: 1120px) {
  #detail-view .detail-page-layout,
  #detail-view .detail-editor-layout {
    grid-template-columns: 1fr;
  }

  #detail-view .detail-sticky-rail {
    position: static;
  }

  #detail-view .detail-sticky-grid,
  #detail-view .detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #detail-view .detail-intro {
    flex-direction: column;
    align-items: stretch;
  }

  #detail-view .detail-metrics {
    grid-template-columns: 1fr;
  }

  #detail-view .detail-sticky-grid {
    grid-template-columns: 1fr;
  }

  #detail-view .detail-edit-trigger {
    justify-self: stretch;
  }
}

.strip-meta-card,
.metric-chip,
.detail-metric,
.spotlight-card,
.result-card,
.summary-mini-card,
.supplier-base-card {
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(249, 252, 255, 1) 0%, rgba(244, 249, 255, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 123, 200, 0.06),
    0 8px 16px rgba(16, 52, 87, 0.03);
}

.simulator-stack {
  gap: 18px;
}

.sim-focus-card,
.simulator-controls-card {
  border-radius: 26px;
}

.sim-results {
  gap: 14px;
}

.result-card {
  padding: 20px;
  border-radius: 22px;
}

.result-card strong {
  font-size: 1.2rem;
}

.field input,
.field select,
.search-field input,
.simulator-panel .field input,
.simulator-panel .field select,
.supplier-alert-comment-input,
.supplier-alert-comment,
.supplier-alert-negotiated-input {
  border: 1px solid rgba(17, 65, 108, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 6px 12px rgba(16, 52, 87, 0.02);
}

.field input:focus,
.field select:focus,
.search-field input:focus,
.simulator-panel .field input:focus,
.simulator-panel .field select:focus {
  outline: none;
  border-color: rgba(0, 123, 200, 0.22);
  box-shadow:
    0 0 0 4px rgba(0, 173, 239, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.section-tab,
.supplier-filter,
.purchase-category-chip,
.purchase-category-chip-sub,
.margin-pill,
.strip-pill,
.dish-card-link,
.dashboard-link-button,
.dashboard-history-link-button,
.dashboard-history-back-button {
  border-radius: 14px;
}

.section-tab,
.supplier-filter,
.purchase-category-chip,
.purchase-category-chip-sub {
  min-height: 42px;
  background: linear-gradient(180deg, rgba(244, 249, 255, 1) 0%, rgba(237, 245, 255, 0.98) 100%);
  border: 1px solid rgba(17, 65, 108, 0.06);
  box-shadow:
    0 10px 18px rgba(16, 52, 87, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.section-tab[data-active="true"],
.supplier-filter[data-active="true"],
.purchase-category-chip[data-active="true"] {
  background: linear-gradient(135deg, #16b0f2 0%, #007bc8 100%);
  box-shadow:
    0 16px 28px rgba(0, 123, 200, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.dish-card {
  padding: 24px;
  border-radius: 26px;
}

.menu-grid .dish-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 65, 108, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(246, 251, 255, 0.985) 100%);
  box-shadow:
    0 18px 34px rgba(16, 52, 87, 0.06),
    0 8px 18px rgba(16, 52, 87, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.menu-grid .dish-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 26px 44px rgba(16, 52, 87, 0.1),
    0 10px 22px rgba(16, 52, 87, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.menu-grid .dish-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: rgba(0, 123, 200, 0.14);
}

.menu-grid .dish-card[data-tone="good"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(246, 251, 255, 0.985) 100%);
  border-color: rgba(22, 163, 74, 0.12);
}

.menu-grid .dish-card[data-tone="good"]::before {
  background: rgba(22, 163, 74, 0.72);
}

.menu-grid .dish-card[data-tone="alert"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(246, 251, 255, 0.985) 100%);
  border-color: rgba(217, 135, 50, 0.12);
}

.menu-grid .dish-card[data-tone="alert"]::before {
  background: rgba(217, 135, 50, 0.72);
}

.menu-grid .dish-card[data-tone="danger"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(246, 251, 255, 0.985) 100%);
  border-color: rgba(201, 59, 59, 0.12);
}

.menu-grid .dish-card[data-tone="danger"]::before {
  background: rgba(201, 59, 59, 0.74);
}

.menu-grid .dish-card-top {
  align-items: center;
  justify-content: flex-end;
}

.menu-grid .dish-card-content {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.menu-grid .dish-name {
  margin-top: 0;
  color: #10385d;
  font-size: 1.24rem;
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-align: center;
}

.menu-grid .dish-note {
  margin: -6px 0 0;
  color: rgba(18, 58, 96, 0.58);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.menu-grid .dish-margin-display {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: clamp(2.05rem, 3.1vw, 2.55rem);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.menu-grid .dish-metrics-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.menu-grid .dish-metric-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 96px;
  padding: 1rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 0 0 1px rgba(0, 123, 200, 0.07),
    0 8px 16px rgba(16, 52, 87, 0.024);
  text-align: center;
}

.menu-grid .dish-metric-row-label {
  color: rgba(18, 58, 96, 0.56);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-grid .dish-metric-row-value {
  color: #10385d;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  width: 100%;
}

.menu-grid .dish-card-footer-row {
  display: grid;
  justify-items: center;
  gap: 0;
  margin-top: 2px;
}

.strip-card[data-tone="good"],
.strip-card[data-tone="alert"],
.strip-card[data-tone="danger"] {
  background-blend-mode: normal;
}

.strip-card[data-tone="good"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 251, 255, 0.985) 100%);
}

.strip-card[data-tone="alert"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 251, 255, 0.985) 100%);
}

.strip-card[data-tone="danger"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 251, 255, 0.985) 100%);
}

.dish-card-link {
  color: var(--accent-strong);
  font-weight: 800;
}

.menu-grid .dish-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 172px;
  min-height: 46px;
  padding: 0.78rem 1rem;
  background: linear-gradient(180deg, rgba(248, 252, 255, 1) 0%, rgba(237, 246, 255, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 123, 200, 0.12),
    0 12px 20px rgba(16, 52, 87, 0.032);
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu-grid .dish-card-link:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(241, 248, 255, 1) 0%, rgba(232, 243, 255, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 123, 200, 0.16),
    0 14px 22px rgba(16, 52, 87, 0.05);
}

.quick-item {
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 1) 0%, rgba(242, 248, 255, 0.98) 100%);
}

.quick-item[data-active="true"] {
  background: linear-gradient(135deg, #17b2f4 0%, #007bc8 100%);
  box-shadow:
    0 18px 30px rgba(0, 123, 200, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.meter-card {
  padding: 22px;
  border-radius: 24px;
}

.meter-track {
  height: 18px;
  background: linear-gradient(180deg, rgba(223, 234, 244, 0.86) 0%, rgba(214, 227, 239, 0.68) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.06);
}

.ingredient-card,
.simple-product-row,
.supplier-link-card {
  border-radius: 22px;
}

.supplier-link-summary-card {
  border-radius: 22px;
  padding: 18px 18px 16px;
}

.supplier-link-card {
  padding: 22px;
}

.supplier-base-card {
  border-radius: 18px;
}

@media (max-width: 1180px) {
  #overview-view .panel,
  #menu-view .panel,
  #detail-view .panel,
  #purchases-view .panel,
  #suppliers-view .panel {
    padding: 28px;
  }
}

@media (max-width: 860px) {
  #overview-view .panel,
  #menu-view .panel,
  #detail-view .panel,
  #purchases-view .panel,
  #suppliers-view .panel {
    padding: 22px;
    border-radius: 26px;
  }

  .summary-card,
  .strip-card,
  .dish-card,
  .quick-item,
  .supplier-link-card {
    border-radius: 22px;
  }
}

/* Restaurant compact premium pass */
#overview-view {
  display: grid;
  gap: 22px;
}

#overview-view .panel {
  padding: 28px;
}

#overview-view .panel-head {
  margin-bottom: 14px;
}

#overview-view .panel-head h2 {
  letter-spacing: 0.16em;
}

#overview-view .panel-head p,
#overview-view .pricing-advisor-subtitle {
  font-size: 0.88rem;
}

.overview-layout {
  align-items: start;
  gap: 18px;
}

.overview-layout > .panel {
  max-width: none;
  align-self: start;
}

.overview-layout > .panel.simulator-panel,
.overview-layout > .panel.pricing-advisor-panel {
  min-height: auto;
}

.overview-strips {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.strip-card,
.strip-card[data-tone="good"],
.strip-card[data-tone="alert"],
.strip-card[data-tone="danger"] {
  min-height: 0;
  gap: 14px;
  padding: 22px 20px 18px;
  border-radius: 24px;
}

.strip-card[data-section-slug="planches"] {
  grid-column: auto;
  width: 100%;
  justify-self: stretch;
}

.overview-strips > .strip-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc((100% - 16px) / 2);
  max-width: 100%;
  justify-self: center;
}

.strip-title-block {
  gap: 6px;
}

.strip-title-block strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.strip-title-block span {
  font-size: 0.72rem;
  opacity: 0.72;
}

.strip-pill {
  padding: 0.5rem 0.78rem;
  font-size: 0.8rem;
}

.strip-meta-grid {
  gap: 10px;
}

.strip-meta-card,
.strip-meta-card-neutral,
.strip-meta-card-good,
.strip-meta-card-alert,
.strip-meta-card-danger {
  min-height: 82px;
  padding: 12px 10px;
  border-radius: 15px;
}

.strip-meta-card span,
.strip-meta-card-neutral span,
.strip-meta-card-good span,
.strip-meta-card-alert span,
.strip-meta-card-danger span {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.strip-meta-card strong,
.strip-meta-card-neutral strong,
.strip-meta-card-good strong,
.strip-meta-card-alert strong,
.strip-meta-card-danger strong {
  margin-top: 7px;
  font-size: 1.04rem;
}

.strip-footer {
  align-self: center;
  margin-top: auto;
  min-height: 38px;
  min-width: 148px;
  padding: 0.56rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.simulator-stack {
  gap: 14px;
  max-width: none;
}

.sim-focus-card,
.simulator-controls-card {
  padding: 20px;
  border-radius: 24px;
}

.sim-focus-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 28px;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(239, 247, 255, 0.94);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.1);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sim-focus-top {
  align-items: center;
}

.sim-focus-title {
  gap: 4px;
}

.sim-focus-title span {
  font-size: 0.62rem;
}

.sim-focus-title strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.sim-focus-grid {
  gap: 10px;
}

.sim-focus-grid .strip-meta-card {
  min-height: 76px;
  padding: 11px 10px;
}

.sim-focus-grid .strip-meta-card strong {
  font-size: 0.94rem;
}

.simulator-toolbar,
.field-row.simulator-fields {
  gap: 12px;
}

.simulator-panel .field input,
.simulator-panel .field select {
  min-height: 52px;
}

.sim-results {
  grid-template-columns: 1fr;
  gap: 12px;
}

.sim-results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sim-results-title {
  color: #10385d;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sim-results-note {
  color: rgba(18, 58, 96, 0.58);
  font-size: 0.8rem;
  line-height: 1.45;
}

.sim-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.result-card {
  min-height: 112px;
  padding: 16px;
  border-radius: 22px;
  gap: 8px;
}

.result-card-highlight {
  min-height: 112px;
  padding: 16px;
}

.result-card span {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.result-card strong {
  font-size: 1.22rem;
}

.result-card-highlight strong {
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
}

.market-pricing-advisor {
  gap: 14px;
  max-width: none;
}

.advisor-toolbar {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 6px 2px 2px;
  margin-top: 6px;
}

.advisor-toolbar-copy {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.advisor-toolbar-note {
  margin: 0;
  color: #10385d;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.advisor-toolbar-sources,
.advisor-refresh-state {
  color: rgba(18, 58, 96, 0.56);
  font-size: 0.75rem;
  line-height: 1.45;
}

.advisor-refresh-state {
  margin: 0;
}

.restaurant-ai-refresh-button {
  min-width: 260px;
  min-height: 48px;
  padding-inline: 1.3rem;
}

.advisor-accordion {
  border: 1px solid rgba(17, 65, 108, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(246, 251, 255, 0.985) 100%);
  box-shadow:
    0 18px 34px rgba(16, 52, 87, 0.05),
    0 6px 16px rgba(16, 52, 87, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.advisor-accordion-trigger {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 24px;
  background: transparent;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: background-color 180ms ease, transform 180ms ease;
}

.advisor-accordion-trigger:hover {
  transform: translateY(-1px);
  background: rgba(245, 250, 255, 0.72);
}

.advisor-accordion-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.advisor-accordion-title strong {
  color: #10385d;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.advisor-accordion-title span {
  color: rgba(18, 58, 96, 0.56);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.advisor-accordion-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, max-content));
  gap: 6px;
  justify-content: end;
}

.advisor-metric-card {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(248, 252, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.06);
  text-align: center;
}

.advisor-metric-card span {
  color: rgba(18, 58, 96, 0.56);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.advisor-metric-card strong {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.advisor-metric-card-good strong {
  color: var(--success);
}

.advisor-metric-card-danger strong {
  color: var(--danger);
}

.advisor-metric-card-alert strong {
  color: var(--alert);
}

.advisor-accordion-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(242, 248, 255, 0.94);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.08);
  font-size: 1.2rem;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 220ms ease, background-color 180ms ease;
}

.advisor-accordion-trigger[data-open="true"] .advisor-accordion-chevron {
  transform: rotate(270deg);
  background: rgba(232, 243, 255, 0.98);
}

.advisor-accordion-shell {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: grid-template-rows 240ms cubic-bezier(0.22, 1, 0.36, 1), margin-top 240ms ease;
}

.advisor-accordion-shell[data-open="true"] {
  grid-template-rows: 1fr;
  margin-top: 2px;
  opacity: 1;
  pointer-events: auto;
}

.advisor-accordion-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.advisor-columns,
.advisor-product-row {
  grid-template-columns: minmax(210px, 1.35fr) repeat(3, minmax(124px, 0.9fr)) minmax(112px, 0.72fr);
  gap: 10px;
}

.advisor-columns {
  padding: 10px 14px;
  border-radius: 16px;
}

.advisor-columns span,
.advisor-product-name span,
.advisor-product-stat span {
  font-size: 0.64rem;
}

.advisor-group-list {
  gap: 8px;
}

.advisor-product-row {
  min-height: 74px;
  padding: 12px 14px;
  border-radius: 18px;
}

.advisor-product-name strong {
  font-size: 0.96rem;
}

.advisor-product-name span {
  font-size: 0.74rem;
}

.advisor-product-stat strong {
  font-size: 0.98rem;
}

.advisor-product-stat-market strong {
  font-size: 0.86rem;
}

.advisor-product-stat-accent {
  padding: 8px 10px;
  border-radius: 14px;
}

.advisor-chip {
  width: 148px;
  min-height: 32px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

@media (max-width: 1220px) {
  .sim-results-grid {
    grid-template-columns: 1fr;
  }

  .advisor-accordion-trigger {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .advisor-accordion-chevron {
    justify-self: end;
  }

  .advisor-accordion-metrics {
    grid-column: 1 / -1;
    justify-content: start;
  }

  .advisor-columns,
  .advisor-product-row {
    grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(112px, 0.9fr)) minmax(104px, 0.72fr);
  }
}

@media (max-width: 920px) {
  .overview-strips {
    grid-template-columns: 1fr;
  }

  .overview-strips > .strip-card:last-child:nth-child(odd) {
    width: 100%;
  }

  .advisor-toolbar {
    justify-items: stretch;
  }

  .restaurant-ai-refresh-button {
    width: 100%;
  }

  .advisor-columns {
    display: none;
  }

  .advisor-product-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .advisor-product-stat,
  .advisor-product-status {
    justify-items: start;
    justify-content: flex-start;
    text-align: left;
  }

  .advisor-chip {
    width: auto;
    min-width: 0;
  }
}

@media (min-width: 1480px) {
  .overview-strips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-strips > .strip-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 860px) {
  #overview-view .panel {
    padding: 22px;
  }

  .sim-focus-grid,
  .strip-meta-grid,
  .field-row.simulator-fields {
    grid-template-columns: 1fr;
  }

  .advisor-accordion-trigger {
    padding: 15px;
  }

  .advisor-accordion-inner {
    padding: 0 15px 15px;
  }
}

/* Carte tab cleanup */
#menu-view .panel {
  display: grid;
  gap: 14px;
}

#menu-view .panel-head {
  margin-bottom: 0;
  justify-content: center;
}

#menu-view .panel-head > div {
  width: 100%;
  text-align: center;
}

#menu-view .panel-head h2 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  letter-spacing: 0.12em;
}

.menu-search-field {
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
}

.menu-top-actions {
  margin: 0 auto 4px;
}

.menu-top-actions .editor-save-button {
  min-width: 220px;
}

.menu-search-field input {
  width: 100%;
  min-height: 52px;
  text-align: center;
}

.menu-section-tabs {
  margin-top: 0;
}

/* Carte + choix de categorie (edition detail) : grille compacte, toujours visible */
#menu-view .section-tabs.menu-section-tabs,
#detail-view .detail-editor-picker .detail-editor-section-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-top: 12px;
  margin-bottom: 4px;
  align-items: stretch;
}

#menu-view .section-tabs.menu-section-tabs .section-tab,
#detail-view .detail-editor-picker .detail-editor-section-tabs .section-tab {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  padding: 0.52rem 0.72rem;
  hyphens: auto;
  word-break: break-word;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

#menu-view .menu-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 2px;
}

#menu-view .dish-card {
  flex: 0 1 calc((100% - 24px) / 3);
  max-width: calc((100% - 24px) / 3);
  padding: 20px;
}

#menu-view .dish-name {
  font-size: 1.14rem;
}

#menu-view .dish-margin-display {
  font-size: clamp(1.9rem, 3vw, 2.35rem);
}

#menu-view .dish-card-footer-row {
  margin-top: 14px;
}

#menu-view .menu-grid > .empty-state {
  width: 100%;
}

@media (max-width: 1380px) {
  #menu-view .menu-grid {
    justify-content: center;
  }

  #menu-view .dish-card {
    flex-basis: calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }
}

@media (max-width: 920px) {
  .menu-search-field {
    width: 100%;
  }

  #menu-view .section-tabs.menu-section-tabs,
  #detail-view .detail-editor-picker .detail-editor-section-tabs {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 6px;
  }

  #menu-view .menu-grid {
    justify-content: stretch;
  }

  #menu-view .dish-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .menu-grid .dish-metrics-list {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Fournisseurs : tableau liste + modale fiche (vue suppliers uniquement)     */
/* -------------------------------------------------------------------------- */

#suppliers-view .supplier-links-controls-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  margin-bottom: 10px;
  width: 100%;
}

#suppliers-view .supplier-links-filter-stack {
  flex: 1 1 280px;
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr);
}

#suppliers-view .supplier-links-group-header.supplier-links-group-toggle {
  cursor: default;
}

#suppliers-view .supplier-links-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(17, 65, 108, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

#suppliers-view .supplier-links-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

#suppliers-view .supplier-links-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 6px;
  text-align: left;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(246, 250, 255, 0.98);
  border-bottom: 1px solid rgba(17, 65, 108, 0.08);
  white-space: nowrap;
}

#suppliers-view .supplier-links-table tbody tr {
  border-bottom: 1px solid rgba(17, 65, 108, 0.05);
}

#suppliers-view .supplier-links-table tbody tr:hover {
  background: rgba(237, 245, 255, 0.45);
}

#suppliers-view .supplier-links-td {
  padding: 8px 6px;
  vertical-align: middle;
  color: var(--ink);
}

#suppliers-view .supplier-links-td-name {
  font-weight: 760;
  max-width: 200px;
}

#suppliers-view .supplier-links-td-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#suppliers-view .supplier-links-td-best {
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 220px;
}

#suppliers-view .supplier-links-td-action {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}

#suppliers-view .supplier-links-row-action-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 123, 200, 0.28);
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

#suppliers-view .supplier-links-row-action-button:hover {
  background: rgba(232, 243, 255, 0.9);
}

.supplier-links-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 380;
  pointer-events: none;
}

.supplier-links-modal-layer[data-active="true"] {
  pointer-events: auto;
}

.supplier-links-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(15, 52, 87, 0.38);
  backdrop-filter: blur(4px);
}

.supplier-links-detail-host {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12px 32px;
  overflow-y: auto;
}

.supplier-links-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 252, 255, 0.99) 100%);
  box-shadow:
    0 24px 60px rgba(16, 52, 87, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 65, 108, 0.08);
}

.supplier-links-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(17, 65, 108, 0.06);
}

.supplier-links-modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f4c81;
  letter-spacing: -0.02em;
}

.supplier-links-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(17, 65, 108, 0.1);
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.supplier-links-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 14px 18px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#suppliers-view .supplier-detail-bloc-a {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(237, 245, 255, 0.55);
  border: 1px solid rgba(0, 123, 200, 0.1);
}

#suppliers-view .supplier-detail-bloc-a-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink);
  line-height: 1.35;
}

#suppliers-view .supplier-link-form-grid-primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#suppliers-view .supplier-link-advanced-details {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(17, 65, 108, 0.14);
  padding: 0 10px 8px;
  background: rgba(255, 255, 255, 0.65);
}

#suppliers-view .supplier-link-advanced-summary {
  cursor: pointer;
  font-weight: 780;
  font-size: 0.78rem;
  padding: 10px 4px;
  color: var(--accent-strong);
}

#suppliers-view .supplier-link-advanced-body {
  padding-bottom: 6px;
}

body.supplier-links-modal-open {
  overflow: hidden;
}

.supplier-link-detail-editor .supplier-detail-bloc-a {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(237, 245, 255, 0.55);
  border: 1px solid rgba(0, 123, 200, 0.1);
}

.supplier-link-detail-editor .supplier-detail-bloc-a-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink);
  line-height: 1.35;
}

.supplier-link-detail-editor .supplier-link-form-grid-primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.supplier-link-detail-editor .supplier-link-advanced-details {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(17, 65, 108, 0.14);
  padding: 0 10px 8px;
  background: rgba(255, 255, 255, 0.65);
}

.supplier-link-detail-editor .supplier-link-advanced-summary {
  cursor: pointer;
  font-weight: 780;
  font-size: 0.78rem;
  padding: 10px 4px;
  color: var(--accent-strong);
}

.supplier-link-detail-editor .supplier-link-advanced-body {
  padding-bottom: 6px;
}

.supplier-link-detail-editor .supplier-link-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.supplier-link-detail-editor .supplier-link-body--suppliers-only {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.supplier-link-detail-editor .supplier-shared-comparison-basis {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 65, 108, 0.1);
}

.supplier-link-detail-editor .supplier-shared-comparison-title {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.supplier-link-detail-editor .supplier-shared-comparison-select {
  width: 100%;
  max-width: 320px;
  min-height: 38px;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.88rem;
  border: 1px solid rgba(17, 65, 108, 0.15);
  background: rgba(255, 255, 255, 0.98);
}

.supplier-link-detail-editor .supplier-shared-comparison-note {
  margin: 8px 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
}

.supplier-link-detail-editor .supplier-site-catalog-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(246, 250, 255, 0.55);
  border: 1px solid rgba(17, 65, 108, 0.08);
}

.supplier-link-detail-editor .supplier-site-catalog-readout {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink);
}

.supplier-link-detail-editor .supplier-piece-to-kg-shortcut {
  grid-column: 1 / -1;
  padding: 8px 0 4px;
  border-top: 1px dashed rgba(17, 65, 108, 0.12);
}

.supplier-link-detail-editor .supplier-piece-to-kg-hint {
  margin: 0 0 8px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
}

.supplier-link-detail-editor .supplier-link-decision-block {
  padding: 12px 14px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
  border: 1px solid rgba(17, 65, 108, 0.08);
}

.supplier-link-detail-editor .supplier-source-card .supplier-link-advanced-details--supplier-card {
  margin-top: 8px;
}

.supplier-link-detail-editor .supplier-source-card .supplier-link-conversion-details {
  margin-top: 8px;
}

.supplier-link-detail-editor .supplier-link-decision-grid {
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.supplier-link-detail-editor .supplier-link-decision-line {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink);
}

.supplier-link-detail-editor .supplier-link-decision-line--best {
  font-weight: 800;
  font-size: 0.9rem;
}

.supplier-link-detail-editor .supplier-link-decision-line--gap {
  font-size: 0.76rem;
  color: var(--muted);
}

.supplier-link-detail-editor .supplier-link-decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.supplier-link-detail-editor .supplier-link-decision-pick {
  flex: 1 1 140px;
  min-height: 38px;
  border-radius: 10px;
  font-weight: 750;
  cursor: pointer;
  border: 1px solid rgba(0, 123, 200, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-strong);
}

.supplier-link-detail-editor .supplier-link-decision-pick:hover:not(:disabled) {
  background: rgba(0, 123, 200, 0.08);
}

.supplier-link-detail-editor .supplier-link-decision-pick:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.supplier-link-detail-editor .supplier-link-internal-base {
  padding: 10px 12px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 65, 108, 0.08);
}

.supplier-link-detail-editor .supplier-link-decision-tracking {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(17, 65, 108, 0.08);
}

.supplier-link-detail-editor .supplier-source-card .supplier-link-advanced-details--supplier-card {
  margin-top: 8px;
}

.supplier-link-detail-editor .supplier-primary-negotiated-row {
  grid-column: 1 / -1;
}

.supplier-link-detail-editor .supplier-add-negotiated-price-button {
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  font-weight: 750;
  font-size: 0.78rem;
  cursor: pointer;
  border: 1px dashed rgba(0, 123, 200, 0.35);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-strong);
}

.supplier-link-detail-editor .supplier-add-negotiated-price-button:hover {
  background: rgba(232, 243, 255, 0.95);
  border-style: solid;
}

.supplier-link-detail-editor .supplier-negotiated-dialog-root {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.supplier-link-detail-editor .supplier-negotiated-dialog-root.is-open {
  display: flex;
}

.supplier-link-detail-editor .supplier-negotiated-dialog-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 28, 48, 0.42);
  cursor: pointer;
}

.supplier-link-detail-editor .supplier-negotiated-dialog-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  padding: 16px 18px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(12, 28, 48, 0.22);
  border: 1px solid rgba(17, 65, 108, 0.1);
}

.supplier-link-detail-editor .supplier-negotiated-dialog-title {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.supplier-link-detail-editor .supplier-negotiated-dialog-field {
  margin-bottom: 14px;
}

.supplier-link-detail-editor .supplier-negotiated-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.supplier-link-detail-editor .supplier-link-column {
  min-width: 0;
}

.supplier-link-detail-editor .supplier-source-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.supplier-link-detail-editor .supplier-source-card {
  padding: 10px 12px 12px;
  gap: 8px;
  border-radius: 14px;
}

.supplier-link-detail-editor .supplier-source-card-head {
  gap: 6px;
  flex-wrap: wrap;
}

.supplier-link-detail-editor .supplier-source-card-title {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
}

.supplier-link-detail-editor .supplier-source-card-pill {
  padding: 3px 8px;
  font-size: 0.62rem;
}

.supplier-link-detail-editor .supplier-source-card-compact-strip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(246, 250, 255, 0.85);
  border: 1px solid rgba(17, 65, 108, 0.06);
}

.supplier-link-detail-editor .supplier-source-card-compact-strip.is-best {
  background: linear-gradient(180deg, rgba(232, 248, 236, 0.55) 0%, rgba(246, 250, 255, 0.9) 100%);
  border-color: rgba(46, 160, 90, 0.2);
}

.supplier-link-detail-editor .supplier-source-card-compact-strip.is-active {
  border-color: rgba(0, 123, 200, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 123, 200, 0.06);
}

.supplier-link-detail-editor .supplier-source-card-compact-strip.is-alert {
  background: rgba(255, 248, 240, 0.75);
  border-color: rgba(200, 120, 40, 0.18);
}

.supplier-link-detail-editor .supplier-source-card-compact-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.supplier-link-detail-editor .supplier-source-card-compact-meta {
  font-size: 0.65rem;
  color: var(--muted);
  line-height: 1.35;
  max-height: 2.75em;
  overflow: hidden;
  word-break: break-word;
  min-width: 0;
}

.supplier-link-detail-editor .supplier-source-card-marginal-shell {
  padding: 0 2px 4px;
}

.supplier-link-detail-editor .supplier-link-form-grid-margins-only {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.supplier-link-detail-editor .supplier-link-advanced-details--supplier-card {
  margin-top: 6px;
  border-radius: 10px;
  border: 1px dashed rgba(17, 65, 108, 0.12);
  background: rgba(255, 255, 255, 0.45);
}

.supplier-link-detail-editor .supplier-link-advanced-details--supplier-card .supplier-link-advanced-summary {
  padding: 8px 10px;
  font-size: 0.7rem;
}

.supplier-link-detail-editor .supplier-link-advanced-details--supplier-card[open] .supplier-link-advanced-summary {
  border-bottom: 1px solid rgba(17, 65, 108, 0.06);
}

.supplier-link-detail-editor .supplier-base-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.supplier-link-detail-editor .supplier-compact-ecart-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(237, 245, 255, 0.55);
  border: 1px solid rgba(0, 123, 200, 0.1);
  font-size: 0.74rem;
}

.supplier-link-detail-editor .supplier-compact-ecart-value {
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.supplier-link-detail-editor .supplier-compact-ecart-meta {
  color: var(--muted);
  font-size: 0.72rem;
}

.supplier-link-detail-editor .supplier-source-actions {
  gap: 6px;
}

.supplier-link-detail-editor .supplier-source-action {
  padding: 7px 11px;
  font-size: 0.68rem;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .supplier-link-detail-editor .supplier-source-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #suppliers-view .supplier-links-table thead {
    display: none;
  }

  #suppliers-view .supplier-links-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    padding: 10px 8px;
  }

  #suppliers-view .supplier-links-td-action {
    grid-column: 1 / -1;
    text-align: stretch;
  }

  #suppliers-view .supplier-links-row-action-button {
    width: 100%;
  }
}

/* Couches thème expérimentales retirées — identité globale dans design-system.css (html.ui-premium). */

/* Masque les arcs pendant l'impression du bon de commande */
body.orders-printing::before,
body.orders-printing::after {
  display: none !important;
}
