:root {
  --ci-orange: #f47a0b;
  --ci-orange-soft: #3d2817;
  --ci-anthracite: #555756;
  --ci-dark: #202322;
  --bg: #181a1a;
  --surface: rgba(31, 34, 33, 0.68);
  --surface-raised: rgba(43, 46, 45, 0.64);
  --surface-muted: rgba(244, 122, 11, 0.11);
  --ink: #f7f7f2;
  --muted: #b7bbb8;
  --line: rgba(255, 255, 255, 0.105);
  --line-hot: rgba(244, 122, 11, 0.42);
  --green: #8bcf9b;
  --green-soft: #26392d;
  --red: #e06f63;
  --amber: var(--ci-orange);
  --blue: #9fb8c9;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
}

/* Balanced desktop density: closer to browser 150% without losing overview. */
@media (min-width: 1101px) {
  body {
    font-size: 15px;
  }

  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .sidebar {
    padding: 14px 12px;
    gap: 22px;
  }

  .ez35-logo-img {
    max-width: 150px;
  }

  .nav-list a {
    min-height: 34px;
    padding: 6px 8px;
  }

  .nav-icon {
    width: 20px;
    height: 20px;
    font-size: 0.68rem;
  }

  .workspace {
    padding: 10px 12px;
    gap: 9px;
  }

  h1 {
    font-size: clamp(1.45rem, 1.8vw, 1.75rem);
  }

  h2 {
    font-size: 1rem;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .ci-claim,
  .brand span,
  .menu-details,
  .muted-note {
    font-size: 0.86rem;
  }

  .icon-button,
  .date-button,
  .primary-action,
  .secondary-action,
  .segmented-control button {
    min-height: 32px;
  }

  .icon-button {
    width: 34px;
  }

  .status-panel,
  .section-block {
    padding: 8px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(320px, 1.75fr) repeat(3, minmax(170px, 1fr));
    gap: 8px;
  }

  .calendar-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 8px;
  }

  .calendar-grid {
    gap: 6px;
  }

  .calendar-month {
    padding: 7px;
    gap: 4px;
  }

  .calendar-month h3 {
    font-size: 0.86rem;
  }

  .calendar-weekdays,
  .calendar-days {
    grid-template-columns: 31px repeat(5, minmax(0, 1fr));
    gap: 3px;
  }

  .calendar-empty,
  .calendar-day,
  .calendar-week-number {
    min-height: 24px;
  }

  .calendar-day strong {
    font-size: 0.78rem;
  }

  .calendar-week-number,
  .calendar-weekdays span {
    font-size: 0.58rem;
  }

  .calendar-booking-panel {
    padding: 8px;
    gap: 7px;
  }

  .booking-form select,
  .employee-choice select,
  .deposit-form select,
  .deposit-form input,
  .order-row input,
  .order-row select {
    min-height: 30px;
  }

  .proposal-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title votes"
      "source portions";
    gap: 3px 10px;
    padding: 8px 10px;
  }

  .proposal-title {
    grid-area: title;
    font-size: 0.98rem;
    line-height: 1.15;
  }

  .proposal-source {
    grid-area: source;
    font-size: 0.82rem;
    white-space: normal;
  }

  .proposal-card strong {
    grid-area: portions;
    justify-self: end;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .proposal-card .tag {
    grid-area: votes;
    justify-self: end;
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .operations-grid {
    grid-template-columns: minmax(0, 0.96fr) minmax(440px, 0.8fr);
    gap: 8px;
  }

  .employee-choice-list {
    gap: 6px;
  }

  .employee-choice {
    grid-template-columns: 120px minmax(0, 1fr);
    padding: 6px 8px;
  }

  .account-row {
    min-height: 34px;
    padding: 6px 8px;
  }

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

/* Compact density pass for office dashboard view. */
body {
  font-size: 13px;
}

.app-shell {
  grid-template-columns: 170px minmax(0, 1fr);
}

.sidebar {
  padding: 12px 10px;
  gap: 18px;
}

.ez35-logo-img {
  max-width: 132px;
}

.nav-list a {
  gap: 7px;
  min-height: 30px;
  padding: 5px 7px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  font-size: 0.62rem;
}

.workspace {
  padding: 7px 9px;
  gap: 7px;
}

.topbar {
  padding: 9px 2px 0;
}

.eyebrow {
  margin-bottom: 2px;
  font-size: 0.66rem;
}

h1 {
  font-size: clamp(1.2rem, 1.55vw, 1.45rem);
}

h2 {
  font-size: 0.88rem;
}

.ci-claim,
.brand span,
.menu-details,
.muted-note {
  font-size: 0.78rem;
}

.icon-button,
.date-button,
.primary-action,
.secondary-action,
.segmented-control button {
  min-height: 26px;
}

.icon-button {
  width: 28px;
}

.dashboard-grid,
.calendar-layout,
.calendar-grid,
.proposal-strip,
.side-stack {
  gap: 6px;
}

.status-panel,
.section-block {
  padding: 6px;
}

.compact-panel {
  gap: 4px;
}

.compact-panel strong {
  font-size: 1.25rem;
}

.calendar-section {
  gap: 5px;
}

.calendar-layout {
  grid-template-columns: minmax(0, 1fr) 210px;
}

.calendar-month {
  gap: 3px;
  padding: 5px;
}

.calendar-month h3 {
  font-size: 0.72rem;
}

.calendar-weekdays,
.calendar-days {
  grid-template-columns: 25px repeat(5, minmax(0, 1fr));
  gap: 2px;
}

.calendar-empty,
.calendar-day,
.calendar-week-number {
  min-height: 19px;
}

.calendar-day {
  padding: 1px 2px;
}

.calendar-day strong {
  font-size: 0.64rem;
}

.calendar-day span {
  min-height: 0;
  font-size: 0;
}

.calendar-week-number,
.calendar-weekdays span {
  font-size: 0.48rem;
}

.calendar-booking-panel {
  gap: 5px;
  padding: 6px;
}

.booking-form {
  gap: 5px;
}

.booking-form label {
  gap: 3px;
}

.booking-form select,
.employee-choice select,
.deposit-form select,
.deposit-form input,
.order-row input,
.order-row select {
  min-height: 24px;
}

.proposal-card {
  min-height: 72px;
  padding: 6px;
}

.proposal-card strong {
  font-size: 0.98rem;
}

.employee-choice {
  padding: 4px 6px;
}

.account-row {
  min-height: 27px;
  padding: 4px 7px;
}

.daily-booking-row {
  min-height: 26px;
  padding: 4px 6px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #181a1a;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: rgba(20, 22, 21, 0.82);
  color: #f7f3ed;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-right: 1px solid rgba(244, 122, 11, 0.42);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 14px;
}

.brand-mark {
  width: 100%;
}

.ez35-logo-img {
  display: block;
  max-width: 168px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-list a {
  color: #dfe8e3;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 6px;
}

.nav-list a.active,
.nav-list a:hover {
  background: rgba(244, 122, 11, 0.18);
  color: #fff;
}

.nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: rgba(244, 122, 11, 0.18);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.sidebar-meta {
  margin-top: auto;
  padding: 11px;
  border: 1px solid rgba(244, 122, 11, 0.36);
  border-left: 2px solid var(--ci-orange);
  border-radius: 6px;
}

.sidebar-meta span,
.sidebar-meta strong {
  display: block;
}

.sidebar-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.workspace {
  padding: 10px 12px;
  display: grid;
  gap: 9px;
}

.topbar {
  position: relative;
  padding: 12px 2px 0;
}

.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  top: 0;
  height: 6px;
}

.topbar::before {
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.topbar::after {
  left: 0;
  width: min(42%, 680px);
  background: linear-gradient(90deg, transparent 0%, rgba(244, 122, 11, 0.18) 16%, var(--ci-orange) 50%, rgba(244, 122, 11, 0.18) 84%, transparent 100%);
  box-shadow: 0 0 26px rgba(244, 122, 11, 0.5), 0 0 46px rgba(244, 122, 11, 0.22);
  animation: topbar-orange-scan 8s ease-in-out infinite alternate;
}

@keyframes topbar-orange-scan {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(100vw - min(42vw, 680px) - 260px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar::after {
    animation: none;
  }
}

.topbar,
.section-heading,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--ci-orange);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.ci-claim {
  margin: 3px 0 0;
  color: var(--muted);
  font-weight: 800;
}

h2 {
  font-size: 1.04rem;
}

.top-actions,
.segmented-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.date-button,
.primary-action,
.secondary-action,
.segmented-control button {
  border: 1px solid var(--line);
  background: rgba(19, 22, 21, 0.64);
  color: var(--ink);
  border-radius: 6px;
  min-height: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.icon-button:hover,
.date-button:hover,
.primary-action:hover,
.secondary-action:hover,
.segmented-control button:hover {
  border-color: var(--line-hot);
  transform: translateY(-1px);
}

.icon-button {
  width: 34px;
  display: grid;
  place-items: center;
}

.icon-button svg,
.primary-action svg {
  width: 18px;
  height: 18px;
}

.date-button,
.segmented-control button {
  padding: 0 12px;
  font-weight: 700;
}

.segmented-control button.active {
  background: linear-gradient(135deg, var(--amber), #ff9b32);
  color: #111817;
  border-color: var(--amber);
  box-shadow: 0 0 20px rgba(244, 122, 11, 0.22);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.8fr) repeat(3, minmax(150px, 1fr));
  gap: 8px;
}

.status-panel,
.section-block {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 42%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.status-panel::before,
.section-block::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 122, 11, 0.7), transparent);
  pointer-events: none;
}

.status-panel {
  padding: 8px;
}

.primary-panel {
  min-height: 0;
  display: grid;
  gap: 9px;
  overflow: hidden;
}

.compact-panel {
  display: grid;
  align-content: start;
  gap: 8px;
}

.compact-panel strong {
  font-size: 1.55rem;
  line-height: 1;
}

.compact-panel span {
  color: var(--muted);
}

.warning-panel strong {
  color: var(--amber);
}

.availability {
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
}

.availability.open {
  background: var(--green-soft);
  color: var(--green);
}

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

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

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 246px;
  gap: 8px;
}

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

.calendar-month {
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(16, 19, 18, 0.42);
}

.calendar-month h3 {
  margin: 0;
  font-size: 0.8rem;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: 32px repeat(5, minmax(0, 1fr));
  gap: 2px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  text-align: center;
}

.calendar-empty {
  min-height: 24px;
}

.calendar-day {
  display: grid;
  gap: 0;
  align-content: center;
  min-height: 24px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(11, 15, 14, 0.62);
  color: var(--ink);
  text-align: center;
}

.calendar-day:hover,
.calendar-day.active {
  border-color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(244, 122, 11, 0.72), 0 0 18px rgba(244, 122, 11, 0.12);
}

.calendar-day strong {
  font-size: 0.74rem;
}

.calendar-day span {
  color: var(--muted);
  min-height: 8px;
  font-size: 0.54rem;
  font-weight: 800;
}

.calendar-week-number {
  min-height: 24px;
  display: grid;
  place-items: center;
  color: var(--ci-orange);
  font-size: 0.55rem;
  font-weight: 900;
  opacity: 0.82;
}

.calendar-day.active span {
  color: var(--amber);
}

.calendar-booking-panel {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(16, 19, 18, 0.42);
}

.booking-form {
  display: grid;
  gap: 7px;
}

.booking-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-weight: 800;
}

.booking-form select {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(10, 14, 13, 0.72);
  color: var(--ink);
  padding: 0 10px;
}

.booking-status {
  min-height: 20px;
  margin: 0;
  color: var(--amber);
  font-weight: 800;
}

.daily-bookings {
  display: grid;
  gap: 8px;
}

.daily-booking-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(11, 15, 14, 0.62);
}

.daily-booking-row span {
  color: var(--muted);
}

.daily-booking-row button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.proposal-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 88px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(244, 122, 11, 0.12), transparent 42%),
    rgba(17, 22, 21, 0.68);
}

.proposal-title {
  margin: 0 0 6px;
  font-weight: 850;
}

.proposal-card strong {
  font-size: 1.18rem;
}

.meal-visual {
  min-height: 88px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(36, 51, 47, 0.86), rgba(59, 51, 39, 0.74));
  border-radius: 6px;
}

.plate {
  width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f2eadb;
  box-shadow: inset 0 0 0 10px #d2c7b6, 0 12px 28px rgba(0, 0, 0, 0.35);
  position: relative;
}

.plate-item {
  position: absolute;
  border-radius: 999px;
}

.item-a {
  width: 58px;
  height: 24px;
  left: 28px;
  top: 42px;
  background: #bd5644;
}

.item-b {
  width: 36px;
  height: 36px;
  left: 48px;
  top: 34px;
  background: #efc75f;
}

.item-c {
  width: 18px;
  height: 18px;
  left: 38px;
  top: 32px;
  background: var(--green);
}

.meal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meal-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: #dbe3df;
  font-size: 0.84rem;
  font-weight: 700;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 12px;
}

.section-block {
  padding: 8px;
}

.section-block.dense {
  box-shadow: none;
}

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

.menu-list,
.employee-choice-list,
.quantity-grid,
.dish-grid,
.offer-grid {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.employee-choice-list {
  gap: 8px;
}

.menu-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.menu-day {
  color: var(--blue);
  font-weight: 800;
}

.menu-title {
  margin: 0 0 6px;
  font-weight: 800;
}

.menu-details {
  margin: 0;
  color: var(--muted);
}

.employee-choice {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.2fr);
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.employee-choice > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.employee-choice select,
.deposit-form select,
.deposit-form input {
  width: 100%;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(10, 14, 13, 0.72);
}

.balance {
  color: var(--green);
  font-weight: 800;
}

.balance.low {
  color: var(--red);
}

.factor-form,
.planning-list,
.deposit-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.factor-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.factor-form input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.planning-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.planning-list span {
  color: var(--muted);
}

.compact-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.compact-list li + li {
  margin-top: 8px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-weight: 800;
}

.primary-action {
  background: linear-gradient(135deg, var(--ci-orange), #ff9b32);
  color: #111817;
  border-color: var(--ci-orange);
}

.secondary-action {
  background: var(--surface);
  color: var(--ink);
}

.order-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.order-row label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.order-row input,
.order-row select {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(10, 14, 13, 0.72);
}

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

.quantity-card,
.dish-card,
.offer-card,
.provider-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
}

.quantity-card {
  display: grid;
  gap: 8px;
}

.quantity-card strong {
  font-size: 1.28rem;
}

.quantity-card span,
.provider-card span,
.offer-card p {
  color: var(--muted);
}

.quantity-card.total {
  background: linear-gradient(135deg, rgba(244, 122, 11, 0.18), rgba(15, 21, 20, 0.88));
  color: #fff;
  border-color: var(--line-hot);
}

.quantity-card.total span {
  color: #dfe8e3;
}

.account-table {
  display: grid;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.account-row {
  display: grid;
  grid-template-columns: 0.55fr 0.75fr 0.85fr 0.85fr minmax(190px, 1.4fr) 0.95fr;
  gap: 12px;
  align-items: center;
  min-height: 34px;
  padding: 6px 9px;
  border-bottom: 1px solid var(--line);
}

.account-head {
  background: rgba(10, 14, 13, 0.72);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-negative {
  box-shadow: inset 4px 0 0 var(--red);
}

.account-row:last-child {
  border-bottom: 0;
}

.deposit-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

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

.recipe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 10px;
  align-items: start;
}

.dish-card {
  display: grid;
  gap: 0;
  align-content: start;
  overflow: hidden;
  padding: 0;
}

.recipe-photo {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: cover;
  background: #101413;
}

.dish-card-body {
  display: grid;
  gap: 4px;
  padding: 6px;
}

.recipe-image {
  min-height: 54px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 6px;
  overflow: hidden;
  background: #101413;
}

.recipe-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
}

.recipe-image::before,
.recipe-image::after {
  content: none !important;
  display: none !important;
}

.recipe-image span {
  position: relative;
  z-index: 1;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
}

.recipe-image-1 { background: linear-gradient(135deg, #58351f, #b84f30 52%, #31553a); }
.recipe-image-2 { background: linear-gradient(135deg, #8f281f, #f47a0b 54%, #2f6b42); }
.recipe-image-3 { background: linear-gradient(135deg, #244b35, #7ba673 50%, #e8dbc0); }
.recipe-image-4 { background: linear-gradient(135deg, #813b23, #cf7c2c 48%, #47613c); }
.recipe-image-5 { background: linear-gradient(135deg, #244b5a, #d9b65c 52%, #f4f0dc); }
.recipe-image-6 { background: linear-gradient(135deg, #295a47, #b7cf80 52%, #f4e7c2); }
.recipe-image-7 { background: linear-gradient(135deg, #6f241e, #d0462f 54%, #2a442e); }
.recipe-image-8 { background: linear-gradient(135deg, #9a6b25, #e5bb51 52%, #244435); }
.recipe-image-9 { background: linear-gradient(135deg, #d6c49a, #f47a0b 46%, #4b6b4a); }
.recipe-image-10 { background: linear-gradient(135deg, #33251e, #806344 50%, #c9b28b); }
.recipe-image-11 { background: linear-gradient(135deg, #2e5c6d, #d7c197 52%, #855d35); }
.recipe-image-12 { background: linear-gradient(135deg, #4d2f1c, #d38b34 48%, #31523d); }

.recipe-kind {
  justify-self: start;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(244, 122, 11, 0.16);
  color: var(--ci-orange);
  font-size: 0.62rem;
  font-weight: 900;
}

.dish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.dish-meta span {
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: #dbe3df;
  font-size: 0.62rem;
  font-weight: 700;
}

.dish-ingredients {
  margin: 0;
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.22;
}

.dish-card .menu-title {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.12;
}

.dish-card .menu-details {
  font-size: 0.74rem;
  line-height: 1.22;
}

.dish-card .source-link {
  font-size: 0.76rem;
}

.wish-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(16, 19, 18, 0.42);
}

.wish-form {
  display: grid;
  gap: 10px;
}

.wish-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.wish-form input,
.wish-form select,
.wish-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(10, 14, 13, 0.72);
  color: var(--ink);
  padding: 9px 10px;
  resize: vertical;
}

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

.wish-item {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(11, 15, 14, 0.62);
}

.wish-item div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.wish-item span,
.wish-item p {
  margin: 0;
  color: var(--muted);
}

.wish-item button {
  justify-self: start;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.map-toolbar .active {
  background: linear-gradient(135deg, var(--amber), #ff9b32);
  color: #111817;
  border-color: var(--amber);
  box-shadow: 0 0 18px rgba(244, 122, 11, 0.18);
}

.map-reset {
  margin-left: auto;
  border-color: var(--ci-orange);
  color: var(--ci-orange);
}

.real-map {
  position: relative;
  height: 430px;
  min-height: 360px;
  width: 100%;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #e8eee8;
  box-shadow: inset 0 0 0 1px rgba(244, 122, 11, 0.08);
}

.leaflet-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: #ddd;
  outline-offset: 1px;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-pane {
  z-index: 400;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-map-pane canvas,
.leaflet-map-pane svg {
  z-index: 100;
}

.leaflet-zoom-animated {
  transform-origin: 0 0;
}

.leaflet-interactive {
  cursor: pointer;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-tile {
  width: 256px;
  height: 256px;
  max-width: none;
}

.leaflet-marker-icon,
.leaflet-marker-shadow {
  display: block;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control-zoom {
  margin: 10px;
  border: 1px solid rgba(17, 24, 23, 0.18);
  border-radius: 6px;
  overflow: hidden;
}

.leaflet-control-zoom a {
  display: block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  background: #f7f3ed;
  color: #111817;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

.leaflet-control-attribution {
  margin: 0;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
}

.leaflet-popup {
  position: absolute;
  text-align: center;
  margin-bottom: 20px;
}

.leaflet-popup-content-wrapper {
  padding: 1px;
  text-align: left;
  border-radius: 6px;
  background: #f7f3ed;
  color: #1f2725;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
  margin: 12px;
  line-height: 1.35;
}

.leaflet-popup-tip-container {
  width: 40px;
  height: 20px;
  position: absolute;
  left: 50%;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}

.leaflet-popup-tip {
  width: 14px;
  height: 14px;
  padding: 1px;
  margin: -7px auto 0;
  transform: rotate(45deg);
  background: #f7f3ed;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.leaflet-tooltip {
  position: absolute;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7f3ed;
  color: #1f2725;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(31, 39, 37, 0.16);
}

.market-logo-marker {
  background: transparent;
  border: 0;
}

.brand-logo {
  display: grid;
  place-items: center;
  min-width: 50px;
  height: 25px;
  padding: 0 6px;
  border: 1px solid #fff;
  border-radius: 5px;
  box-shadow: 0 5px 14px rgba(31, 39, 37, 0.2);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-aldi {
  background: linear-gradient(135deg, #162f77 0%, #162f77 55%, var(--ci-orange) 56%, var(--ci-orange) 70%, #2f6fbb 71%);
  color: #fff;
  border-color: #f5cf2e;
}

.brand-lidl {
  background: radial-gradient(circle at 50% 50%, #f6d528 0 38%, #0d4f9e 39% 42%, #0d4f9e 43% 100%);
  color: #d71920;
  border-color: #0d4f9e;
}

.brand-netto {
  background: #f6d528;
  color: #d71920;
  border-color: #1e4f9b;
}

.brand-rewe {
  background: #d71920;
  color: #fff;
  border-color: #fff;
}

.brand-edeka {
  background: #f8d441;
  color: #164a9b;
  border-color: #164a9b;
}

.brand-norma {
  background: #1e4f9b;
  color: #f8d441;
  border-color: #d71920;
}

.brand-scharl {
  background: #2f6fbb;
  color: #fff;
  border-color: #b9d7f2;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 13px;
  height: 13px;
  display: inline-block;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
}

.legend-box {
  width: 24px;
  height: 14px;
  display: inline-block;
  border: 2px solid #fff;
  border-radius: 5px;
  box-shadow: 0 0 0 1px var(--line);
}

.legend-route {
  width: 28px;
  height: 0;
  display: inline-block;
  border-top: 4px solid var(--ci-orange);
  border-radius: 999px;
}

.legend-dot.origin {
  background: var(--ci-orange);
}

.legend-dot.verified {
  background: var(--green);
}

.legend-dot.open {
  background: var(--amber);
}

.legend-dot.backup {
  background: var(--blue);
}

.legend-dot.limited {
  background: #8a6a22;
}

.legend-box.discount {
  background: #d63b2f;
}

.legend-box.supermarket {
  background: #f2c230;
}

.legend-box.beverages {
  background: #2f6fbb;
}

.map-fallback {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.map-attribution {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.provider-list,
.provider-select-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.provider-select-list {
  max-height: 330px;
  overflow: auto;
  padding-right: 4px;
}

.provider-row {
  width: 100%;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(16, 19, 18, 0.48);
  color: var(--ink);
  text-align: left;
}

.provider-row.active {
  border-color: var(--amber);
  box-shadow: inset 3px 0 0 var(--amber), 0 0 18px rgba(244, 122, 11, 0.1);
}

.provider-row-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.provider-row-main strong,
.provider-row-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-row-main small {
  color: var(--muted);
}

.provider-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
}

.provider-dot.verified {
  background: var(--green);
}

.provider-dot.open {
  background: var(--amber);
}

.provider-detail {
  margin-top: 12px;
}

.provider-menu-panel {
  margin-top: 12px;
}

.provider-card {
  display: grid;
  gap: 8px;
}

.provider-card[data-confidence="verified"] {
  border-left: 3px solid var(--green);
}

.provider-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.provider-card p {
  margin: 0;
  color: var(--muted);
}

.provider-facts {
  display: grid;
  gap: 6px;
  margin: 2px 0;
}

.provider-facts div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
}

.provider-facts dt,
.provider-facts dd {
  margin: 0;
  font-size: 0.84rem;
}

.provider-facts dt {
  color: var(--muted);
  font-weight: 800;
}

.source-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.source-link:hover {
  text-decoration: underline;
}

.provider-suitability {
  justify-self: start;
}

.provider-menu {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  background: rgba(16, 24, 23, 0.72);
}

.provider-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.provider-menu-head span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
}

.provider-menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.provider-menu-links a,
.provider-menu-links span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(10, 14, 13, 0.74);
  border: 1px solid var(--line);
  color: var(--blue);
  box-shadow: 0 1px 0 rgba(31, 39, 37, 0.04);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.provider-menu-links a:hover {
  text-decoration: underline;
}

.provider-menu-groups {
  display: grid;
  gap: 6px;
}

.provider-menu-group {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

.provider-menu-group strong {
  color: var(--ink);
}

.provider-menu-group span {
  color: var(--muted);
}

.provider-menu-group.empty strong {
  color: var(--amber);
}

.provider-status,
.provider-next {
  padding: 7px 9px;
  border-radius: 6px;
  background: rgba(16, 24, 23, 0.72);
}

.provider-next {
  border-left: 3px solid var(--amber);
}

.tag-good {
  background: var(--green-soft);
  color: var(--green);
}

.provider-card .tag,
.offer-card .tag,
.quantity-card .tag,
.proposal-card .tag {
  background: var(--surface-muted);
  color: #e6eee9;
}

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

.market-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.market-matrix-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 6px;
  background: rgba(16, 19, 18, 0.48);
}

.market-matrix-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 900;
}

.market-matrix-card strong {
  font-size: 1rem;
}

.market-matrix-card p {
  margin: 0;
  color: var(--muted);
}

.weekly-offers-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(16, 19, 18, 0.48);
}

.weekly-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.weekly-offer-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(244, 122, 11, 0.09), transparent 48%),
    rgba(16, 19, 18, 0.52);
}

.weekly-offer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.weekly-offer-head > span:last-child {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: right;
}

.weekly-offer-card h3 {
  margin: 0;
  font-size: 1rem;
}

.weekly-offer-card p {
  margin: 0;
  color: var(--muted);
}

.weekly-offer-card strong {
  color: var(--amber);
}

.offer-card {
  display: grid;
  gap: 8px;
}

.market-card {
  align-content: start;
}

.market-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.market-card-head .eyebrow {
  margin: 0;
}

.market-card-head span {
  color: var(--muted);
  font-weight: 800;
}

.market-card-head .brand-logo {
  color: inherit;
}

.market-card-head .brand-aldi,
.market-card-head .brand-rewe,
.market-card-head .brand-scharl {
  color: #fff;
}

.market-card-head .brand-lidl,
.market-card-head .brand-netto {
  color: #d71920;
}

.market-card-head .brand-edeka {
  color: #164a9b;
}

.market-card-head .brand-norma {
  color: #f8d441;
}

.market-facts {
  display: grid;
  gap: 6px;
  margin: 0;
}

.market-facts div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
}

.market-facts dt,
.market-facts dd {
  margin: 0;
  font-size: 0.84rem;
}

.market-facts dt {
  color: var(--muted);
  font-weight: 800;
}

.offer-card h3 {
  margin: 0;
  font-size: 1rem;
}

.muted-note {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    padding: 16px;
    gap: 16px;
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .sidebar-meta {
    display: none;
  }

  .dashboard-grid,
  .content-layout,
  .calendar-layout,
  .calendar-grid,
  .recipe-layout,
  .quantity-grid,
  .dish-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .proposal-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .workspace {
    padding: 16px;
  }

  .topbar,
  .section-heading,
  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list {
    grid-template-columns: 1fr 1fr;
  }

  .menu-card,
  .order-row,
  .employee-choice,
  .account-row {
    grid-template-columns: 1fr;
  }

  .top-actions {
    width: 100%;
  }

  .date-button {
    flex: 1;
  }

  .provider-card > div,
  .employee-choice > div {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Final compact override: keep dashboard dense on desktop. */
@media (min-width: 1101px) {
  body {
    font-size: 13px;
  }

  .app-shell {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .sidebar {
    padding: 12px 10px;
    gap: 18px;
  }

  .ez35-logo-img {
    max-width: 132px;
  }

  .nav-list a {
    gap: 7px;
    min-height: 30px;
    padding: 5px 7px;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
    font-size: 0.62rem;
  }

  .workspace {
    padding: 7px 9px;
    gap: 7px;
  }

  .topbar {
    padding: 9px 2px 0;
  }

  .eyebrow {
    margin-bottom: 2px;
    font-size: 0.66rem;
  }

  h1 {
    font-size: clamp(1.2rem, 1.55vw, 1.45rem);
  }

  h2 {
    font-size: 0.88rem;
  }

  .ci-claim,
  .brand span,
  .menu-details,
  .muted-note {
    font-size: 0.78rem;
  }

  .icon-button,
  .date-button,
  .primary-action,
  .secondary-action,
  .segmented-control button {
    min-height: 26px;
  }

  .icon-button {
    width: 28px;
  }

  .dashboard-grid,
  .calendar-layout,
  .calendar-grid,
  .proposal-strip,
  .side-stack {
    gap: 6px;
  }

  .status-panel,
  .section-block {
    padding: 6px;
  }

  .compact-panel {
    gap: 4px;
  }

  .compact-panel strong {
    font-size: 1.25rem;
  }

  .calendar-section {
    gap: 5px;
  }

  .calendar-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
    align-items: start;
  }

  .calendar-section {
    align-content: start;
  }

  .calendar-section::after {
    content: none;
  }

  .calendar-section .section-heading {
    min-height: 0;
  }

  .calendar-booking-panel h2 {
    font-size: 0.82rem;
  }

  .booking-status {
    min-height: 0;
    margin: 0;
    font-size: 0.68rem;
  }

  .daily-bookings {
    gap: 4px;
  }

  .calendar-month {
    gap: 3px;
    padding: 5px;
  }

  .calendar-month h3 {
    font-size: 0.72rem;
  }

  .calendar-weekdays,
  .calendar-days {
    grid-template-columns: 25px repeat(5, minmax(0, 1fr));
    gap: 2px;
  }

  .calendar-empty,
  .calendar-day,
  .calendar-week-number {
    min-height: 19px;
  }

  .calendar-day {
    padding: 1px 2px;
  }

  .calendar-day strong {
    font-size: 0.64rem;
  }

  .calendar-day span {
    min-height: 0;
    font-size: 0;
  }

  .calendar-week-number,
  .calendar-weekdays span {
    font-size: 0.48rem;
  }

  .calendar-booking-panel {
    gap: 5px;
    padding: 6px;
  }

  .booking-form {
    gap: 5px;
  }

  .booking-form label {
    gap: 3px;
  }

  .booking-form select,
  .employee-choice select,
  .deposit-form select,
  .deposit-form input,
  .order-row input,
  .order-row select {
    min-height: 24px;
  }

  .proposal-card {
    min-height: 0;
    grid-template-columns: minmax(0, 1.2fr) 0.8fr auto auto;
    align-items: center;
    gap: 6px;
    padding: 5px 7px;
  }

  .proposal-card strong {
    font-size: 0.82rem;
  }

  .proposal-title {
    margin: 0;
    font-size: 0.78rem;
  }

  .proposal-source {
    color: var(--muted);
    font-size: 0.68rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .proposal-card .tag {
    min-height: 20px;
    padding: 2px 7px;
    font-size: 0.66rem;
  }

  .primary-panel {
    gap: 5px;
  }

  .primary-panel .panel-header {
    gap: 8px;
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .operations-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.78fr);
    gap: 6px;
  }

  .operations-grid > #tageswahl {
    grid-column: 1;
    grid-row: 1;
  }

  .operations-grid > #mitarbeiter {
    grid-column: 2;
    grid-row: 1;
  }

  .operations-grid > #mengenliste {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  #tageswahl .side-stack {
    display: none;
  }

  #mitarbeiter {
    grid-template-columns: minmax(0, 1fr);
  }

  #mitarbeiter > aside {
    display: none;
  }

  #mitarbeiter .account-row {
    grid-template-columns: 0.5fr 0.72fr 0.85fr;
  }

  #mitarbeiter .account-row span:nth-of-type(2),
  #mitarbeiter .account-row span:nth-of-type(3),
  #mitarbeiter .account-row span:nth-of-type(4) {
    display: none;
  }

  #mitarbeiter .account-table {
    margin-top: 6px;
  }

  .employee-choice-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .employee-choice {
    grid-template-columns: 92px minmax(0, 1fr);
  }

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

  .winner-quantity strong {
    font-size: 0.95rem;
  }

  .employee-choice {
    padding: 4px 6px;
  }

  .account-row {
    min-height: 27px;
    padding: 4px 7px;
  }

  .daily-booking-row {
    min-height: 26px;
    padding: 4px 6px;
  }
}

/* Final balanced desktop override: applied after all compact rules. */
@media (min-width: 1101px) {
  body {
    font-size: 15px;
  }

  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .sidebar {
    padding: 14px 12px;
    gap: 22px;
  }

  .ez35-logo-img {
    max-width: 150px;
  }

  .nav-list a {
    min-height: 34px;
    padding: 6px 8px;
  }

  .nav-icon {
    width: 20px;
    height: 20px;
    font-size: 0.68rem;
  }

  .workspace {
    padding: 10px 12px;
    gap: 9px;
  }

  h1 {
    font-size: clamp(1.45rem, 1.8vw, 1.75rem);
  }

  h2 {
    font-size: 1rem;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .ci-claim,
  .brand span,
  .menu-details,
  .muted-note {
    font-size: 0.86rem;
  }

  .icon-button,
  .date-button,
  .primary-action,
  .secondary-action,
  .segmented-control button {
    min-height: 32px;
  }

  .icon-button {
    width: 34px;
  }

  .status-panel,
  .section-block {
    padding: 8px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(320px, 1.75fr) repeat(3, minmax(170px, 1fr));
    gap: 8px;
  }

  .calendar-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 8px;
  }

  .calendar-grid {
    gap: 6px;
  }

  .calendar-month {
    padding: 7px;
    gap: 4px;
  }

  .calendar-month h3 {
    font-size: 0.86rem;
  }

  .calendar-weekdays,
  .calendar-days {
    grid-template-columns: 31px repeat(5, minmax(0, 1fr));
    gap: 3px;
  }

  .calendar-empty,
  .calendar-day,
  .calendar-week-number {
    min-height: 24px;
  }

  .calendar-day strong {
    font-size: 0.78rem;
  }

  .calendar-week-number,
  .calendar-weekdays span {
    font-size: 0.58rem;
  }

  .calendar-booking-panel {
    padding: 8px;
    gap: 7px;
  }

  .booking-form select,
  .employee-choice select,
  .deposit-form select,
  .deposit-form input,
  .order-row input,
  .order-row select {
    min-height: 30px;
  }

  .proposal-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title votes"
      "source portions";
    gap: 3px 10px;
    padding: 8px 10px;
  }

  .proposal-title {
    grid-area: title;
    font-size: 0.98rem;
    line-height: 1.15;
  }

  .proposal-source {
    grid-area: source;
    font-size: 0.82rem;
    white-space: normal;
  }

  .proposal-card strong {
    grid-area: portions;
    justify-self: end;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .proposal-card .tag {
    grid-area: votes;
    justify-self: end;
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .operations-grid {
    grid-template-columns: minmax(0, 0.96fr) minmax(440px, 0.8fr);
    gap: 8px;
  }

  .employee-choice-list {
    gap: 6px;
  }

  .employee-choice {
    grid-template-columns: 120px minmax(0, 1fr);
    padding: 6px 8px;
  }

  .account-row {
    min-height: 34px;
    padding: 6px 8px;
  }

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

/* Current dashboard refinement: account forecast is merged into the employee query. */
@media (min-width: 1101px) {
  .operations-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .operations-grid > #tageswahl,
  .operations-grid > #mengenliste {
    grid-column: 1;
  }

  .operations-grid > #tageswahl {
    grid-row: 1;
  }

  .operations-grid > #mengenliste {
    grid-row: 2;
  }

  .operations-grid > #mitarbeiter {
    display: none;
  }

  .nav-list a[href="#mitarbeiter"] {
    display: none;
  }

  .employee-choice-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 7px;
  }

  .employee-choice {
    grid-template-columns: 118px minmax(220px, 1fr) 132px;
    gap: 7px;
    min-height: 34px;
    padding: 5px 7px;
  }

  .employee-choice-person,
  .employee-choice-after {
    display: grid;
    gap: 1px;
    align-items: center;
  }

  .employee-choice-person {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .employee-choice-after {
    justify-items: end;
    line-height: 1.05;
  }

  .employee-choice-after span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .employee-choice select {
    min-height: 28px;
    padding: 0 8px;
  }

  .quantity-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(220px, 0.7fr);
  }
}

@media (min-width: 1101px) and (max-width: 1450px) {
  .employee-choice {
    grid-template-columns: 104px minmax(160px, 1fr) 116px;
  }

  .employee-choice-list {
    gap: 4px 6px;
  }
}

/* The current proposal summary renders a single card, so it needs the full panel width. */
.primary-panel .proposal-strip {
  grid-template-columns: minmax(0, 1fr);
}

.primary-panel .proposal-card {
  min-height: 92px;
  overflow: hidden;
}

.primary-panel .proposal-title,
.primary-panel .proposal-source,
.primary-panel .proposal-card strong,
.primary-panel .proposal-card .tag {
  min-width: 0;
}

.primary-panel .proposal-source,
.primary-panel .proposal-card .tag {
  overflow-wrap: anywhere;
  white-space: normal;
}

.primary-panel .proposal-card .tag {
  max-width: 100%;
  text-align: right;
}
