:root {
  --cream: #f6f0e3;
  --ivory: #fdfaf4;
  --paper: #f3ead6;
  --ink: #3a2416;
  --brown: #5c3317;
  --brown-soft: #6b3e26;
  --gold: #c4a35a;
  --gold-bright: #d4af77;
  --gold-deep: #9a7840;
  --border: rgba(92, 51, 23, 0.18);
  --shadow: 0 18px 50px rgba(58, 36, 22, 0.12);
  --nunta: #8b2e2e;
  --botez: #3d6b8a;
  --majorat: #7a4e2a;
  --banchet: #2f5d50;
  --coffee: #6a4a32;
  --masa: #3f5c52;
  --catering: #6e4b3a;
  --corporate: #4a5d43;
  --conferinta: #5b4a7a;
  --cina: #9a6b3a;
  --intrevedere: #2c3f38;
  --post: rgba(118, 52, 148, 0.34);
  --post-fill: #e8d4f2;
  --post-ink: #5c2d78;
  --degustare: #6e2c3e;
  --altele: #6b5344;
  --aniversare: #7a5c8a;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(196, 163, 90, 0.25);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  overflow: visible;
  height: auto;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  background:
    radial-gradient(circle at top left, rgba(212, 175, 119, 0.18), transparent 36%),
    radial-gradient(circle at 90% 10%, rgba(92, 51, 23, 0.08), transparent 30%),
    linear-gradient(180deg, #f8f3e8 0%, var(--cream) 100%);
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
.brand-kicker,
.day-kicker,
.modal-kicker,
.stat-label,
.calendar-heading h2 {
  font-family: "Cinzel", serif;
}

.page-ornament {
  position: fixed;
  width: 140px;
  height: 140px;
  pointer-events: none;
  opacity: 0.22;
  background: radial-gradient(circle, var(--gold-bright), transparent 70%);
  z-index: 0;
}

.page-ornament--tl {
  top: -40px;
  left: -40px;
}

.app-credit {
  margin-top: auto;
  padding: 16px 24px 22px;
  text-align: center;
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.app-credit strong {
  font-weight: 600;
  color: var(--brown);
  letter-spacing: 0.28em;
}

.modal .app-credit,
.confirm-box .app-credit,
.menu-info-card .app-credit,
.table-plan-shell .app-credit {
  margin-top: 16px;
  padding: 12px 0 0;
}

.lock-credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  z-index: 81;
}

.sheet-credit {
  max-width: 920px;
  margin: 0 auto 12px;
  padding: 0 8px 4px;
  border: 0;
}

@media print {
  .app-credit {
    display: none !important;
  }

  body.printing-year-report > *:not(#year-report-overlay) {
    display: none !important;
  }

  body.printing-year-report .year-report-overlay {
    position: static !important;
    inset: auto;
    display: block !important;
    background: #fff;
    padding: 0;
    overflow: visible;
    z-index: auto;
  }

  body.printing-year-report .year-report-overlay,
  body.printing-year-report .year-report-card {
    page: year-report;
  }

  body.printing-year-report .year-report-card {
    width: 100%;
    height: 196mm;
    max-height: 196mm;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.printing-year-report .year-report-actions,
  body.printing-year-report .year-report-note,
  body.printing-year-report .app-credit {
    display: none !important;
  }

  body.printing-stock-report > *:not(#stock-report-overlay) {
    display: none !important;
  }

  body.printing-stock-report .stock-report-overlay {
    position: static !important;
    inset: auto;
    display: block !important;
    background: #fff;
    padding: 0;
    overflow: visible;
    z-index: auto;
  }

  body.printing-stock-report .stock-report-card {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: #fff;
  }

  body.printing-stock-report .year-report-actions,
  body.printing-stock-report .app-credit {
    display: none !important;
  }

  body.printing-stock-report .stock-report-halls {
    grid-template-columns: 1fr;
  }

  body.printing-stock-report .stock-report-hall {
    break-inside: auto;
    page-break-inside: auto;
  }

  body.printing-stock-report .stock-report-event {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.printing-year-report .year-report-head {
    flex: 0 0 auto;
    margin: 0 0 1.5mm;
  }

  body.printing-year-report .year-report-head h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.1;
  }

  body.printing-year-report .modal-kicker,
  body.printing-year-report .year-report-summary {
    margin: 0;
    font-size: 9px;
    line-height: 1.15;
  }

  body.printing-year-report .year-summary-appointments {
    display: none !important;
  }

  body.printing-year-report .year-report-fasts,
  body.printing-year-report .year-month-bookings,
  body.printing-year-report .year-day-edge,
  body.printing-year-report .year-report-print-list {
    display: none !important;
  }

  body.printing-year-report .year-report-grid {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 1.5mm 2.5mm;
  }

  body.printing-year-report .year-month {
    break-inside: avoid;
    page-break-inside: avoid;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 0.8mm 0.7mm 0.6mm;
    border: 0.45mm solid #8a6a32 !important;
    border-radius: 1.2mm;
    background: #fff !important;
    box-sizing: border-box;
  }

  body.printing-year-report .year-month h4 {
    flex: 0 0 auto;
    margin: 0;
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: 0.08em;
  }

  body.printing-year-report .year-weekdays,
  body.printing-year-report .year-month-days {
    gap: 0;
  }

  body.printing-year-report .year-weekdays {
    flex: 0 0 auto;
  }

  body.printing-year-report .year-month-days {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: repeat(6, minmax(0, 1fr));
  }

  body.printing-year-report .year-weekday {
    font-size: 7px;
    padding: 0;
    line-height: 1.1;
    letter-spacing: 0.02em;
  }

  body.printing-year-report .year-day {
    min-height: 0;
    height: auto;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
  }

  body.printing-year-report .year-day,
  body.printing-year-report .year-day-num,
  body.printing-year-report .year-print-legend .swatch {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.printing-year-report .year-day.is-fast {
    background: transparent !important;
    color: #3a2416 !important;
  }

  body.printing-year-report .year-day-num {
    width: 5.4mm;
    height: 5.4mm;
    max-width: 92%;
    max-height: 92%;
    font-size: 9px;
    font-weight: 800;
    background: transparent !important;
    color: #3a2416 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.printing-year-report .year-day.is-reserved .year-day-num {
    border: 0.6mm solid var(--reserve-a, #8b2e2e) !important;
    background: var(--reserve-a, #8b2e2e) !important;
    background-color: var(--reserve-a, #8b2e2e) !important;
    color: #fff !important;
  }

  body.printing-year-report .year-day.is-reserved.is-multi .year-day-num {
    box-shadow: 0 0 0 0.45mm var(--reserve-b, #3d6b8a) !important;
  }

  body.printing-year-report .year-day.is-appointment:not(.is-reserved) .year-day-num {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #3a2416 !important;
  }

  body.printing-year-report .year-report-legend {
    display: none !important;
  }

  body.printing-year-report .year-print-legend {
    flex: 0 0 auto;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1mm 3.5mm;
    margin: 1.5mm 0 0;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: #3a2416;
  }

  body.printing-year-report .year-print-legend span {
    display: inline-flex;
    align-items: center;
    gap: 1.4mm;
  }

  body.printing-year-report .year-print-legend span:has(.swatch.appointment) {
    display: none !important;
  }

  body.printing-year-report .year-print-legend .swatch {
    width: 4mm;
    height: 4mm;
    border-radius: 50%;
    box-sizing: border-box;
  }

  body.printing-year-report .year-print-legend .swatch.nunta { background: #8b2e2e !important; }
  body.printing-year-report .year-print-legend .swatch.botez { background: #3d6b8a !important; }
  body.printing-year-report .year-print-legend .swatch.majorat { background: #7a4e2a !important; }
  body.printing-year-report .year-print-legend .swatch.banchet { background: #2f5d50 !important; }
  body.printing-year-report .year-print-legend .swatch.coffee { background: #6a4a32 !important; }
  body.printing-year-report .year-print-legend .swatch.masa { background: #3f5c52 !important; }
  body.printing-year-report .year-print-legend .swatch.catering { background: #6e4b3a !important; }
  body.printing-year-report .year-print-legend .swatch.corporate { background: #4a5d43 !important; }
  body.printing-year-report .year-print-legend .swatch.aniversare { background: #7a5c8a !important; }
  body.printing-year-report .year-print-legend .swatch.conferinta { background: #5b4a7a !important; }
  body.printing-year-report .year-print-legend .swatch.cina { background: #9a6b3a !important; }
  body.printing-year-report .year-print-legend .swatch.altele { background: #6b5344 !important; }
  body.printing-year-report .year-print-legend .swatch.appointment { background: #c4a35a !important; }
}

body.year-report-open {
  overflow: hidden;
}

.topbar,
.layout,
.modal,
.confirm-box {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 18px 32px 10px;
  max-width: 1440px;
  margin: 0 auto;
  z-index: 6;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 118px;
  height: auto;
  background: transparent;
  filter: drop-shadow(0 10px 16px rgba(58, 36, 22, 0.22));
}

.brand-kicker,
.day-kicker,
.modal-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.brand-copy h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  color: var(--brown);
}

.brand-manager {
  margin: 4px 0 0;
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.brand-sub {
  margin: 6px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--brown-soft);
}

.topbar-right {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.topbar-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.lock-tool-btn {
  width: auto;
  align-self: center;
  padding: 10px 14px;
  font-size: 12px;
}

.topbar-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  justify-content: flex-end;
  min-width: 0;
}

.notify-wrap {
  position: relative;
  z-index: 8;
  display: flex;
}

.notify-btn {
  width: 64px;
  min-height: 64px;
  height: 100%;
  padding: 0;
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, var(--ivory), #faf4e8);
  color: var(--brown);
  box-shadow: var(--shadow);
  font: inherit;
}

.notify-btn svg {
  width: 22px;
  height: 22px;
  transform-origin: 50% 8%;
}

.notify-btn.has-alerts {
  animation: notify-glow 2.4s ease-in-out infinite;
}

.notify-btn.has-alerts svg {
  animation: notify-swing 1.7s ease-in-out infinite;
}

.notify-btn.has-alerts .notify-badge {
  animation: notify-badge-pulse 1.6s ease-in-out infinite;
}

.notify-btn.has-alerts[aria-expanded="true"],
.notify-btn.has-alerts[aria-expanded="true"] svg,
.notify-btn.has-alerts[aria-expanded="true"] .notify-badge {
  animation: none;
}

@keyframes notify-swing {
  0%,
  100% {
    transform: rotate(0deg);
  }
  18% {
    transform: rotate(14deg);
  }
  36% {
    transform: rotate(-12deg);
  }
  52% {
    transform: rotate(8deg);
  }
  68% {
    transform: rotate(-5deg);
  }
}

@keyframes notify-glow {
  0%,
  100% {
    box-shadow: var(--shadow), 0 0 0 0 rgba(212, 175, 119, 0.35);
  }
  50% {
    box-shadow: var(--shadow), 0 0 0 7px rgba(212, 175, 119, 0);
  }
}

@keyframes notify-badge-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

.notify-btn[aria-expanded="true"],
.notify-btn:hover {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}

.notify-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--nunta);
  color: #fff;
  font-family: "Cinzel", serif;
  font-size: 10px;
  line-height: 1;
}

.notify-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, calc(100vw - 32px));
  max-height: min(70vh, 560px);
  overflow: auto;
  padding: 16px 16px 12px;
  background: linear-gradient(180deg, var(--ivory), #faf4e8);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}

.notify-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.notify-kicker {
  margin: 0 0 4px;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.notify-head h3 {
  margin: 0;
  font-size: 18px;
  color: var(--brown);
}

.notify-range {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--brown-soft);
}

.notify-day {
  margin: 12px 0 6px;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.notify-item {
  width: 100%;
  margin-bottom: 6px;
  padding: 8px 8px 8px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.45);
}

.notify-item:hover {
  border-color: var(--gold);
}

.notify-item.anulat {
  opacity: 0.55;
}

.notify-open {
  min-width: 0;
  padding: 2px 0;
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  align-items: start;
  text-align: left;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.notify-open .dot {
  margin: 6px 0 0;
  margin-right: 0;
}

.notify-item strong {
  display: block;
  font-size: 14px;
  color: var(--brown);
}

.notify-copy span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--brown-soft);
}

.notify-item.needs-sheet {
  border-color: rgba(196, 163, 90, 0.55);
  background: rgba(255, 249, 236, 0.8);
}

.notify-copy .status-pill {
  display: inline-block;
  margin-top: 6px;
  max-width: none;
  text-align: left;
}

.notify-sheet {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--brown);
}

.notify-done {
  flex-shrink: 0;
  padding: 8px 10px;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #3a5249, #2c3f38);
  color: #f7f3ea;
  font-family: "Cinzel", serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notify-done:hover {
  background: linear-gradient(180deg, #4a675c, #2c3f38);
}

.notify-empty {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--brown-soft);
}

.stat-card {
  min-width: 140px;
  padding: 12px 16px;
  background: var(--ivory);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}

.stat-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.stat-card strong {
  display: block;
  margin-top: 4px;
  font-family: "Cinzel", serif;
  font-size: 28px;
  color: var(--brown);
}

.view-switch {
  display: flex;
  gap: 8px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px 12px;
  position: relative;
  z-index: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.view-btn {
  flex: 1 1 0;
  min-width: 110px;
  padding: 10px 14px;
  border: 1px solid var(--gold);
  background: var(--ivory);
  color: var(--brown);
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.view-btn.is-on,
.view-btn[aria-selected="true"] {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #3a2416;
}

.dashboard-view {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 32px 28px;
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
}

.dashboard-toolbar {
  align-items: center;
}

.dashboard-grid {
  width: 100%;
}

.dashboard-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 12px 16px;
  align-items: stretch;
}

.dash-period {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin: 0;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(248, 241, 226, 0.92));
}

.dash-period-kicker {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.dash-period strong {
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--brown);
}

.dash-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(196, 163, 90, 0.45);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.96), rgba(250, 244, 232, 0.88));
}

.dash-card--tasks {
  grid-column: 1 / -1;
}

.dash-card--tasks .dash-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.dash-card--tasks .dash-item {
  border-top: 0;
  border-right: 1px solid rgba(196, 163, 90, 0.22);
}

.dash-card--tasks .dash-item:nth-child(3n) {
  border-right: 0;
}

.dash-card--tasks .dash-empty {
  grid-column: 1 / -1;
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(196, 163, 90, 0.28);
}

.dash-card-head h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
}

.dash-count {
  min-width: 1.75rem;
  padding: 2px 8px;
  border: 1px solid var(--gold);
  font-family: "Source Sans 3", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--brown);
  background: rgba(255, 255, 255, 0.55);
}

.dash-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 88px;
}

.dash-empty {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  margin: 0;
  min-height: 88px;
  padding: 14px 16px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  color: var(--brown-soft);
}

.dash-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 76px;
  border-top: 1px solid rgba(196, 163, 90, 0.22);
  padding-right: 10px;
}

.dash-item:first-child {
  border-top: 0;
}

.dash-item.needs-sheet {
  background: rgba(196, 120, 60, 0.08);
}

.dash-open {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 12px 8px 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.dash-open:hover {
  background: rgba(196, 163, 90, 0.12);
}

.dash-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dash-copy strong {
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dash-copy span {
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  color: var(--brown-soft);
  line-height: 1.35;
}

.dash-meta {
  font-size: 12px !important;
}

.dash-meta--warn {
  color: #8a4b1a !important;
}

.dash-task-btn {
  justify-self: end;
  align-self: center;
  flex: 0 0 auto;
  padding: 8px 10px;
  font-size: 11px;
  min-width: 5.5rem;
}

.install-app-btn {
  width: auto;
  align-self: center;
  padding: 10px 14px;
  font-size: 12px;
}

.sync-status-btn {
  width: auto;
  align-self: center;
  padding: 10px 14px;
  font-size: 12px;
  border-color: #9a6b3a;
  color: #8a4b1a;
  background: rgba(212, 175, 119, 0.22);
}

.sync-status-btn.is-pending {
  animation: notify-badge-pulse 1.6s ease-in-out infinite;
}

.sync-status-btn.is-stale-backup {
  border-color: var(--nunta);
  color: var(--nunta);
}

.install-help-card {
  max-width: 34rem;
}

.install-help-body {
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  color: var(--brown);
  line-height: 1.5;
}

.install-help-body p {
  margin: 0 0 12px;
}

.install-help-steps {
  margin: 0 0 14px;
  padding-left: 1.25em;
}

.install-help-steps li + li {
  margin-top: 6px;
}

.install-help-note {
  color: var(--brown-soft);
  font-size: 14px;
}

.install-help-body code {
  font-size: 12px;
  word-break: break-all;
  color: var(--brown);
}

html.is-pwa body,
body.is-pwa {
  overscroll-behavior: none;
}

@media (display-mode: fullscreen), (display-mode: standalone) {
  body {
    overscroll-behavior: none;
  }

  .install-app-btn {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .dashboard-board {
    grid-template-columns: 1fr;
  }

  .dash-card--tasks .dash-list {
    grid-template-columns: 1fr;
  }

  .dash-card--tasks .dash-item {
    border-right: 0;
    border-top: 1px solid rgba(196, 163, 90, 0.22);
  }

  .dash-card--tasks .dash-item:first-child {
    border-top: 0;
  }
}

.clients-view {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 32px 24px;
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
}

.journal-view {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 32px 24px;
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
}

.offers-view {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 32px 24px;
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
}

.offers-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 18px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  color: var(--brown-soft);
}

.offers-crumb-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--brown);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.offers-crumb-btn.is-current,
.offers-crumb-current {
  text-decoration: none;
  font-weight: 600;
  color: var(--brown);
  cursor: default;
}

.offers-crumb-sep {
  color: var(--gold-deep);
}

.offers-back-btn {
  min-width: 7.5rem;
}

.offers-variants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.offers-variant,
.offers-course {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.95), rgba(250, 244, 232, 0.9));
  color: var(--brown);
  cursor: pointer;
}

.offers-course {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.offers-variant:hover,
.offers-course:hover,
.offers-variant:focus-visible,
.offers-course:focus-visible {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #3a2416;
}

.offers-variant-name {
  font-family: "Cinzel", serif;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offers-variant-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
}

.offers-variant-price,
.offers-variant-lead {
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  color: var(--brown-soft);
}

.offers-variant-lead {
  margin: 0 0 14px;
}

.offers-courses {
  display: grid;
  gap: 8px;
}

.offers-course-label {
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.offers-course-go {
  font-size: 22px;
  color: var(--gold-deep);
  line-height: 1;
}

.offer-course-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.offer-photo {
  margin: 0;
  min-height: 280px;
  background:
    linear-gradient(145deg, rgba(196, 163, 90, 0.18), transparent 45%),
    linear-gradient(180deg, #f3ead8, #e8dcc4);
  border: 1px solid var(--gold);
  overflow: hidden;
}

.offer-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.offer-photo.is-missing {
  display: grid;
  place-items: center;
  padding: 24px;
}

.offer-photo-fallback {
  margin: 0;
  max-width: 28ch;
  text-align: center;
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  color: var(--brown-soft);
  line-height: 1.45;
}

.offer-photo-fallback code {
  font-size: 12px;
  color: var(--brown);
}

.offer-course-copy h3 {
  margin: 0 0 12px;
  font-family: "Cinzel", serif;
  font-size: 22px;
  color: var(--brown);
}

.offer-course-list {
  margin: 0;
  padding: 0 0 0 1.15em;
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  color: var(--brown);
  line-height: 1.55;
}

.offer-course-list li + li {
  margin-top: 6px;
}

.offer-course-text {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1.45;
  color: var(--brown);
}

.offers-note {
  margin: 16px 0 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  color: var(--brown-soft);
}

.offers-note--bar {
  max-width: 62rem;
  line-height: 1.5;
  padding: 12px 14px;
  border-left: 3px solid var(--gold-deep);
  background: rgba(255, 252, 245, 0.65);
}

.offers-note--bar strong {
  color: var(--brown);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.offers-variant--gallery {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.gallery-cover {
  display: block;
  width: 88px;
  height: 66px;
  overflow: hidden;
  border: 1px solid rgba(196, 163, 90, 0.55);
  background:
    linear-gradient(145deg, rgba(196, 163, 90, 0.22), transparent 50%),
    linear-gradient(180deg, #efe4cf, #e2d3b6);
  flex-shrink: 0;
}

.gallery-cover--all {
  background:
    linear-gradient(135deg, rgba(92, 51, 23, 0.18), transparent 40%),
    linear-gradient(180deg, var(--gold-bright), var(--gold));
}

.gallery-cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-cover-fallback {
  display: block;
  width: 100%;
  height: 100%;
}

.offers-variant-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.gallery-tile {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 1px solid var(--gold);
  background: #efe6d4;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}

.gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  transform: scale(1.04);
}

.gallery-empty {
  margin-top: 8px;
  padding: 18px 16px;
  border: 1px dashed rgba(196, 163, 90, 0.55);
  background: rgba(255, 252, 245, 0.7);
  font-family: "Source Sans 3", sans-serif;
  color: var(--brown-soft);
}

.gallery-empty p {
  margin: 0 0 8px;
}

.gallery-empty code {
  font-size: 12px;
  color: var(--brown);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(28, 16, 10, 0.88);
}

.gallery-lightbox[hidden] {
  display: none !important;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox-figure {
  margin: 0;
  min-width: 0;
  text-align: center;
}

.gallery-lightbox-figure img {
  max-width: min(96vw, 1100px);
  max-height: min(78vh, 820px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(196, 163, 90, 0.45);
  background: #1a100a;
}

.gallery-lightbox-figure figcaption {
  margin-top: 10px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  color: #f3ead6;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  border: 1px solid var(--gold);
  background: rgba(253, 250, 244, 0.92);
  color: var(--brown);
  cursor: pointer;
  font: inherit;
}

.gallery-lightbox-close {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: 12px;
  width: 48px;
  height: 48px;
  font-size: 28px;
  line-height: 1;
  z-index: 2;
}

.gallery-lightbox-nav {
  width: 48px;
  height: 64px;
  font-size: 32px;
  line-height: 1;
}

@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
  }

  .gallery-lightbox-nav {
    width: min(46vw, 140px);
    height: 48px;
  }

  .gallery-lightbox-prev {
    order: 2;
    justify-self: start;
  }

  .gallery-lightbox-next {
    order: 2;
    justify-self: end;
    margin-top: -48px;
  }

  .gallery-lightbox-figure {
    order: 1;
  }
}

.offer-course-detail--solo {
  grid-template-columns: 1fr;
  max-width: 52rem;
}

.offer-bar-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.offer-bar-block {
  padding: 14px 16px;
  border: 1px solid rgba(196, 163, 90, 0.45);
  background: rgba(255, 252, 245, 0.72);
}

.offer-bar-block h3 {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--brown);
}

.offers-course .offers-variant-price {
  display: block;
  margin-top: 4px;
}

.brand-actor {
  margin: 6px 0 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  color: var(--brown-soft);
}

.net-banner {
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px solid #8a6234;
  background: #fff6e4;
  color: #3a2416;
  font-size: 13px;
  line-height: 1.35;
}

.brand-online {
  margin: 2px 0 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  color: var(--brown);
}

.journal-toolbar-actions {
  align-items: flex-end;
}

.journal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.journal-filters .ghost-btn.is-on {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--brown);
  border-color: var(--gold);
}

.journal-day {
  margin: 0 0 22px;
}

.journal-day-title {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
}

.journal-day-list {
  display: grid;
  gap: 10px;
}

.journal-entry {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fffdf8, #faf4e8);
  color: inherit;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.journal-entry:disabled {
  cursor: default;
  opacity: 0.92;
}

.journal-entry:not(:disabled):hover,
.journal-entry:not(:disabled):focus-visible {
  border-color: var(--gold);
  outline: none;
}

.journal-entry-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--brown-soft);
}

.journal-time {
  font-family: "Cinzel", serif;
  font-weight: 600;
  color: var(--brown);
  min-width: 3.2em;
}

.journal-action {
  margin-left: auto;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.journal-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--brown);
}

.journal-date,
.journal-changes {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  color: var(--ink);
}

.journal-changes {
  color: var(--brown-soft);
}

#lock-actor-wrap {
  display: grid;
  gap: 6px;
  text-align: left;
  margin-bottom: 10px;
}

#lock-actor {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

.clients-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 22px 24px;
  background: linear-gradient(180deg, var(--ivory), #faf4e8);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}

.clients-toolbar h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 26px;
  color: var(--brown);
}

.clients-intro {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 17px;
  color: var(--brown-soft);
}

.clients-toolbar-actions {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.clients-search {
  min-width: 260px;
}

.clients-search input {
  min-width: 280px;
}

.clients-toolbar-actions .gold-btn {
  width: auto;
}

.clients-table-wrap {
  overflow: auto;
  background: linear-gradient(180deg, var(--ivory), #faf4e8);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}

.clients-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.clients-table th,
.clients-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.clients-table th {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(196, 163, 90, 0.12);
}

.clients-table tr:hover td {
  background: rgba(255, 253, 248, 0.7);
}

.clients-table .name-cell {
  font-weight: 600;
  color: var(--brown);
}

.client-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.client-event-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  width: 100%;
  text-align: left;
  padding: 5px 8px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid rgba(196, 163, 90, 0.55);
  background: rgba(255, 253, 248, 0.85);
  color: var(--brown);
  cursor: pointer;
}

.client-event-btn strong {
  font-family: "Cinzel", serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.client-event-empty {
  margin: 0;
  color: var(--brown-soft);
  font-size: 13px;
}

.clients-table a {
  color: var(--brown);
}

.client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-actions .ghost-btn,
.client-actions .gold-btn {
  width: auto;
  padding: 6px 10px;
  font-size: 11px;
}

.client-modal {
  width: min(560px, 100%);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 22px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 32px 24px;
  flex: 1 1 auto;
}

.calendar-panel,
.day-panel,
.modal,
.confirm-box {
  background: #fdfaf4;
  background-image: linear-gradient(180deg, #fdfaf4, #faf4e8);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}

.calendar-panel {
  padding: 22px 24px 18px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.calendar-heading {
  text-align: center;
}

.calendar-heading h2 {
  margin: 0;
  font-size: 28px;
  color: var(--brown);
}

.today-btn,
.nav-btn,
.gold-btn,
.ghost-btn {
  cursor: pointer;
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--brown);
  transition: 0.2s ease;
}

.nav-btn {
  width: 42px;
  height: 42px;
  font-size: 26px;
  line-height: 1;
}

  .today-btn {
    margin-top: 8px;
    padding: 6px 14px;
    font-size: 10px;
  }

  .calendar-heading-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }

  .calendar-heading-actions .today-btn {
    margin-top: 0;
  }

.gold-btn {
  padding: 12px 18px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #3a2416;
  font-weight: 600;
  font-size: 12px;
  width: 100%;
}

.ghost-btn {
  padding: 10px 16px;
  font-size: 11px;
  background: transparent;
}

.today-btn:hover,
.nav-btn:hover,
.ghost-btn:hover,
.day-cell:hover {
  background: rgba(196, 163, 90, 0.16);
}

.gold-btn:hover {
  filter: brightness(1.05);
}

.day-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-actions .ghost-btn {
  width: 100%;
}

.day-actions #add-meeting-btn {
  background: linear-gradient(180deg, #3a5249, var(--intrevedere));
  color: #f6f0e3;
  border-color: #4a635a;
}

.day-actions #add-tasting-btn {
  background: linear-gradient(180deg, #83364a, var(--degustare));
  color: #f6f0e3;
  border-color: #8a3d52;
}

.day-actions #add-meeting-btn:hover,
.day-actions #add-tasting-btn:hover {
  filter: brightness(1.08);
  background: linear-gradient(180deg, #3a5249, var(--intrevedere));
}

.day-actions #add-tasting-btn:hover {
  background: linear-gradient(180deg, #83364a, var(--degustare));
}

.day-meetings-wa {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #4a635a;
  background: linear-gradient(180deg, #3a5249, var(--intrevedere));
  color: #f6f0e3;
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 100%;
}

.weekday-row {
  margin-bottom: 8px;
}

.weekday {
  padding: 8px 0;
  text-align: center;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.calendar-grid {
  gap: 6px;
}

.day-cell {
  min-width: 0;
  min-height: 96px;
  padding: 8px;
  border: 1px solid var(--border);
  background: #fdfaf4;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.day-cell.muted {
  opacity: 0.38;
}

.day-cell.selected {
  border-color: var(--gold-deep);
  background: rgba(212, 175, 119, 0.18);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.day-cell.today .day-number {
  background: var(--brown);
  color: var(--ivory);
}

.day-cell.is-fast {
  background: rgba(118, 52, 148, 0.07);
}

.day-cell.is-fast:hover,
.day-cell.is-fast:active {
  background: rgba(118, 52, 148, 0.11);
}

.day-cell.is-fast.selected {
  background:
    linear-gradient(rgba(118, 52, 148, 0.07), rgba(118, 52, 148, 0.07)),
    rgba(212, 175, 119, 0.18);
}

.day-number {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-size: 13px;
  border-radius: 50%;
}

.event-chip {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 2px 6px;
  font-size: 11px;
  color: #fff;
  line-height: 1.4;
}

.event-chip.nunta { background: var(--nunta); }
.event-chip.botez { background: var(--botez); }
.event-chip.majorat { background: var(--majorat); }
.event-chip.banchet { background: var(--banchet); }
.event-chip.coffee { background: var(--coffee); }
.event-chip.masa { background: var(--masa); }
.event-chip.catering { background: var(--catering); }
.event-chip.aniversare { background: var(--aniversare); }
.event-chip.corporate { background: var(--corporate); }
.event-chip.conferinta { background: var(--conferinta); }
.event-chip.cina { background: var(--cina); }
.event-chip.intrevedere { background: var(--intrevedere); }
.event-chip.degustare { background: var(--degustare); }
.event-chip.altele { background: var(--altele); }
.event-chip.status-rezervat { box-shadow: inset 3px 0 0 #c4a35a; }
.event-chip.status-meniu { box-shadow: inset 3px 0 0 #9a6b3a; }
.event-chip.status-avans-partial { box-shadow: inset 3px 0 0 #d4af77; }
.event-chip.status-confirmat { box-shadow: inset 3px 0 0 #4a5d43; }
.event-chip.status-in-desfasurare { box-shadow: inset 3px 0 0 #d4af77; outline: 1px solid rgba(212, 175, 119, 0.9); }
.event-chip.status-inchis { opacity: 0.72; box-shadow: inset 3px 0 0 #6b5344; }
.event-chip.status-anulat { opacity: 0.45; text-decoration: line-through; box-shadow: inset 3px 0 0 var(--nunta); }

.more-count {
  font-size: 11px;
  color: var(--brown-soft);
  font-style: italic;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--brown-soft);
}

.legend-status {
  margin-top: 8px;
  padding-top: 10px;
}

.status-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border: 1px solid currentColor;
  vertical-align: -1px;
}

.status-mark.rezervat { background: #c4a35a; border-color: #c4a35a; }
.status-mark.meniu { background: #9a6b3a; border-color: #9a6b3a; }
.status-mark.avans-partial { background: #d4af77; border-color: #d4af77; }
.status-mark.confirmat { background: #4a5d43; border-color: #4a5d43; }
.status-mark.in-desfasurare { background: #d4af77; border-color: #5c3317; box-shadow: 0 0 0 1px #5c3317; }
.status-mark.inchis { background: #6b5344; border-color: #6b5344; }
.status-mark.anulat { background: transparent; border-color: var(--nunta); }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  vertical-align: middle;
}

.dot.nunta { background: var(--nunta); }
.dot.botez { background: var(--botez); }
.dot.majorat { background: var(--majorat); }
.dot.banchet { background: var(--banchet); }
.dot.coffee { background: var(--coffee); }
.dot.masa { background: var(--masa); }
.dot.catering { background: var(--catering); }
.dot.aniversare { background: var(--aniversare); }
.dot.corporate { background: var(--corporate); }
.dot.conferinta { background: var(--conferinta); }
.dot.cina { background: var(--cina); }
.dot.intrevedere { background: var(--intrevedere); }
.dot.degustare { background: var(--degustare); }
.dot.altele { background: var(--altele); }

.day-panel {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 680px;
}

.day-panel-header h2 {
  margin: 0;
  font-size: 24px;
  color: var(--brown);
}

.day-count {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-style: italic;
  color: var(--brown-soft);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}

.empty-state {
  padding: 28px 12px;
  text-align: center;
  color: var(--brown-soft);
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-style: italic;
}

.event-card {
  padding: 14px;
  border: 1px solid var(--border);
  background: #fffdf8;
  text-align: left;
}

.event-card.intrevedere {
  border-left: 4px solid var(--intrevedere);
}

.event-card.degustare {
  border-left: 4px solid var(--degustare);
}

.event-card.coffee {
  border-left: 4px solid var(--coffee);
}

.event-card.masa {
  border-left: 4px solid var(--masa);
}

.event-card.catering {
  border-left: 4px solid var(--catering);
}

.event-card.status-anulat {
  opacity: 0.7;
}

.event-card.status-inchis {
  background: #f3ead6;
}

.event-card-main {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.event-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.event-card-print {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-card-actions .ghost-btn {
  width: auto;
  font-size: 11px;
  padding: 7px 10px;
}

.event-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.event-card h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.event-meta,
.event-client,
.event-quote,
.event-benefits {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--brown-soft);
}

.event-quote {
  color: var(--brown);
  font-weight: 600;
}

.event-deposit {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--brown-soft);
}

.event-deposit.is-on {
  color: #4a5d43;
  font-weight: 600;
}

.event-benefits {
  color: var(--gold-deep);
}

.status-pill {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  white-space: normal;
  text-align: right;
  line-height: 1.25;
  max-width: 11.5em;
}

.status-pill.confirmat {
  background: rgba(74, 93, 67, 0.12);
  border-color: #4a5d43;
  color: #4a5d43;
}

.status-pill.rezervat {
  background: rgba(196, 163, 90, 0.14);
  border-color: var(--gold);
  color: var(--gold-deep);
}

.status-pill.meniu {
  background: rgba(154, 107, 58, 0.12);
  border-color: #9a6b3a;
  color: #7a4e2a;
}

.status-pill.avans-partial {
  background: rgba(212, 175, 119, 0.18);
  border-color: var(--gold-bright);
  color: #7a4e2a;
}

.status-pill.in-desfasurare {
  background: linear-gradient(180deg, rgba(212, 175, 119, 0.28), rgba(196, 163, 90, 0.16));
  border-color: var(--gold);
  color: var(--brown);
}

.status-pill.inchis {
  background: rgba(107, 83, 68, 0.1);
  border-color: #6b5344;
  color: #6b5344;
}

.status-pill.anulat {
  background: rgba(139, 46, 46, 0.08);
  border-color: var(--nunta);
  color: var(--nunta);
}

.modal-overlay,
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 20, 12, 0.46);
  display: grid;
  place-items: start center;
  overflow-y: auto;
  z-index: 60;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}

body.modal-open {
  overflow: hidden;
}

.confirm-overlay {
  z-index: 70;
  place-items: center;
}

.modal,
.confirm-box {
  width: min(1040px, 100%);
  padding: 28px 30px 24px;
  position: relative;
}

.confirm-box {
  width: min(480px, 100%);
}

.confirm-step {
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.confirm-box p {
  margin: 0 0 12px;
  color: var(--brown-soft);
}

.confirm-summary {
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 253, 248, 0.8);
  font-size: 14px;
  color: var(--ink);
}

.confirm-summary strong {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 14px;
  margin-bottom: 4px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--brown);
  cursor: pointer;
}

.modal h3,
.confirm-box h3 {
  margin: 0 0 18px;
  font-size: 24px;
  color: var(--brown);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: #fffdf8;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(196, 163, 90, 0.45);
  border-color: var(--gold);
}

.form-error {
  margin: 12px 0 0;
  color: var(--nunta);
  font-size: 14px;
}

.save-status {
  flex: 1 1 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  color: #7a1f1f;
  background: #f8e6e2;
  border: 1px solid rgba(178, 74, 74, 0.35);
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #b24a4a !important;
  box-shadow: 0 0 0 3px rgba(178, 74, 74, 0.18);
}

.form-section {
  margin: 0 0 18px;
  padding: 16px 16px 18px;
  border: 1px solid var(--border);
  background: #fffdf8;
}

.form-section h4 {
  margin: 0 0 14px;
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
}

fieldset legend {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

.halls-field,
.yesno-field {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.yesno-field .soup-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  width: 100%;
}

#menu-soup-fieldset {
  margin-top: -4px;
  padding-top: 4px;
  border-top: 1px dashed rgba(92, 51, 23, 0.18);
}

#iorga-served-courses .serve-courses-hint {
  flex: 1 0 100%;
  margin: 0;
}

.check-item {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  cursor: pointer;
}

.check-item input {
  width: auto;
  margin: 0;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.course-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.course-list label {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

input.time-24 {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.course-list input.time-24 {
  width: 140px;
}

.course-list #time-gustare-rece {
  width: min(100%, 280px);
  flex: 1 1 auto;
}

.course-sarmale {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: 1 / -1;
}

.course-sarmale > label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sarmale-style {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding-left: 2px;
}

.course-prezentare-tort {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: 1 / -1;
}

.course-prezentare-tort > label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-prezentare-tort #prezentare-tort-loc {
  width: min(100%, 280px);
  flex: 1 1 auto;
}

.course-burger-timing {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(196, 163, 90, 0.45);
  background: rgba(255, 250, 240, 0.55);
}

.course-burger-kicker {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
}

.course-burger-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
}

.course-burger-fields label {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.course-burger-fields input {
  width: 100%;
}

.ceremony-block {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--gold);
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ceremony-fields {
  grid-template-columns: 1fr 1fr 1fr;
}

.ceremony-fields .ceremony-covor-color {
  grid-column: 1 / -1;
  max-width: 420px;
}

.special-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.special-name,
.signature-label {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  min-width: 110px;
}

.inline-time {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.inline-time input {
  width: 140px;
}

.bring-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bring-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  align-items: end;
}

.notes-label {
  margin-top: 14px;
}

.kitchen-confirmed-menu {
  margin-top: 16px;
  padding: 14px 16px 16px;
  border: 1px solid var(--border);
  background: rgba(196, 163, 90, 0.08);
  display: grid;
  gap: 4px;
}

.kitchen-confirmed-title {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
}

.kitchen-confirmed-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--brown-soft);
}

.kitchen-confirmed-menu .notes-label {
  margin-top: 8px;
}

.kitchen-confirmed-menu textarea {
  min-height: 84px;
}

.menu-builder {
  margin-top: 16px;
  padding: 14px 16px 16px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #fffdf8, #faf4e8);
}

.menu-builder-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.menu-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-builder-count {
  margin: 8px 0 12px;
  font-size: 13px;
  color: var(--brown-soft);
}

.menu-builder-course {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.menu-builder-course:last-of-type {
  border-bottom: none;
  margin-bottom: 8px;
}

.menu-builder-course h5 {
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
}

.menu-builder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.menu-builder-col {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border);
  background: rgba(253, 250, 244, 0.9);
}

.menu-builder-col h6 {
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.menu-builder-col .check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  font-family: "Source Sans 3", sans-serif;
}

.menu-builder-col .check-item:has(input:checked) {
  background: rgba(138, 115, 88, 0.18);
  border-radius: 4px;
  padding: 2px 4px;
}

.menu-builder-extra {
  margin-top: 8px;
}

.menu-builder-extra textarea {
  min-height: 58px;
}

.menu-builder-text {
  margin-top: 8px;
}

.menu-builder-text summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--brown-soft);
}

@media (max-width: 1100px) {
  .menu-builder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .menu-builder-grid {
    grid-template-columns: 1fr;
  }
}

.stay-hint {
  display: block;
  margin: 0 0 12px;
  margin-left: 0;
  text-transform: none;
  letter-spacing: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
}

.stay-group {
  border: 1px solid var(--gold);
  background: #fffdf8;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.stay-group-title {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown);
}

.stay-free-room {
  margin: 4px 0 8px;
}

.appointment-field,
.degustare-field {
  display: none;
}

.modal-overlay.is-appointment .event-sheet-section,
.modal-overlay.is-appointment .event-sheet-field {
  display: none;
}

.modal-overlay.is-appointment .appointment-field {
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
}

.modal-overlay.is-appointment:not(.is-degustare) .degustare-field {
  display: none;
}

.modal-overlay.is-degustare .client-pick-field {
  display: none;
}

.modal-overlay.is-coffee .wedding-only-count,
.modal-overlay.is-coffee .wedding-only-section,
.modal-overlay.is-coffee .wedding-only-field,
.modal-overlay.is-coffee .menu-extra-discount,
.modal-overlay.is-coffee .menu-custom-price,
.modal-overlay.is-coffee .print-actions.event-sheet-section,
.modal-overlay.is-coffee #service-timing-section,
.modal-overlay.is-coffee #special-section,
.modal-overlay.is-coffee #open-bar-section,
.modal-overlay.is-coffee #iorga-served-courses,
.modal-overlay.is-coffee #menu-builder {
  display: none !important;
}

.print-actions.coffee-print-actions {
  display: none;
}

.modal-overlay.is-coffee .print-actions.coffee-print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body:not(.hall-iorga) .legend-masa,
body:not(.hall-iorga) .legend-catering {
  display: none;
}

.modal-overlay.is-masa .wedding-only-count,
.modal-overlay.is-masa .wedding-only-section,
.modal-overlay.is-masa .wedding-only-field,
.modal-overlay.is-masa .menu-extra-discount,
.modal-overlay.is-masa .menu-custom-price,
.modal-overlay.is-masa .print-actions.event-sheet-section,
.modal-overlay.is-masa #service-timing-section,
.modal-overlay.is-masa #special-section,
.modal-overlay.is-masa #open-bar-section,
.modal-overlay.is-masa #iorga-served-courses,
.modal-overlay.is-masa #menu-builder,
.modal-overlay.is-masa #menu-section,
.modal-overlay.is-masa #quote-section,
.modal-overlay.is-masa .halls-field,
.modal-overlay.is-masa .masa-extra {
  display: none !important;
}

.print-actions.masa-print-actions {
  display: none;
}

.modal-overlay.is-masa .print-actions.masa-print-actions,
.modal-overlay.is-catering .print-actions.catering-print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-overlay.is-catering .wedding-only-count,
.modal-overlay.is-catering .wedding-only-section,
.modal-overlay.is-catering .wedding-only-field,
.modal-overlay.is-catering .menu-extra-discount,
.modal-overlay.is-catering .menu-custom-price,
.modal-overlay.is-catering .print-actions.event-sheet-section,
.modal-overlay.is-catering #service-timing-section,
.modal-overlay.is-catering #special-section,
.modal-overlay.is-catering #open-bar-section,
.modal-overlay.is-catering #iorga-served-courses,
.modal-overlay.is-catering #menu-builder,
.modal-overlay.is-catering #menu-section,
.modal-overlay.is-catering #quote-section,
.modal-overlay.is-catering .halls-field,
.modal-overlay.is-catering .masa-extra {
  display: none !important;
}

.print-actions.catering-print-actions {
  display: none;
}

#coffee-break-menu .coffee-count-field,
#coffee-break-menu .coffee-price-field {
  flex: 1 1 100%;
  max-width: 280px;
}

#catering-menu .coffee-menu-list,
#coffee-break-menu .coffee-menu-list {
  margin: 4px 0 12px;
  padding-left: 1.2em;
  flex: 1 1 100%;
  line-height: 1.45;
}

.linked-event-meta {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--brown-soft);
  line-height: 1.4;
}

.legal-box {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--gold);
  background: rgba(196, 163, 90, 0.08);
  font-size: 13px;
  line-height: 1.45;
  color: var(--brown-soft);
}

.legal-box p {
  margin: 0 0 8px;
}

.price-hint {
  display: inline;
  margin-left: 4px;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold-deep);
  font-family: "Source Sans 3", sans-serif;
  font-weight: 500;
}

label .price-hint {
  display: block;
  margin: 0 0 4px;
}

.check-item .price-hint {
  display: inline;
  margin-left: 4px;
}

.menu-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.menu-group-label {
  flex-basis: 100%;
  margin: 10px 0 4px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-soft);
}

.open-bar-type {
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.open-bar-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  align-items: end;
}

.field-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 18px;
}

.field-head .price-hint,
.open-bar-counts .price-hint {
  display: inline;
  margin: 0;
}

.info-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: transparent;
  color: var(--gold-deep);
  font-family: "Cinzel", serif;
  font-size: 11px;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.info-dot:hover,
.info-dot:focus-visible {
  background: var(--gold);
  color: #3a2416;
}

.menu-tariffs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 14px;
}

.menu-custom-price {
  display: grid;
  gap: 4px;
  max-width: 420px;
  margin: 0 0 14px;
}

.menu-custom-price input {
  max-width: 180px;
}

.menu-extra-discount {
  margin: 4px 0 14px;
  padding: 10px 12px 8px;
  border: 1px solid rgba(154, 107, 58, 0.45);
  border-radius: 10px;
  background: rgba(196, 163, 90, 0.08);
}

.menu-extra-discount legend {
  padding: 0 6px;
  font-weight: 600;
}

#menu-extra-discount-hint {
  margin: 8px 0 4px;
}

.tariff-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: rgba(196, 163, 90, 0.08);
  font-size: 12px;
  color: var(--brown-soft);
}

.tariff-chip .info-dot {
  margin-left: auto;
}

.menu-info-overlay {
  position: fixed;
  inset: 0;
  /* Peste fișa de eveniment (60) și bara de acțiuni de pe tabletă (80) */
  z-index: 90;
  overflow: auto;
  background: rgba(58, 36, 22, 0.5);
  padding: 24px 16px 40px;
  display: grid;
  place-items: start center;
}

.menu-info-overlay[hidden] {
  display: none !important;
}

.menu-info-card {
  width: min(720px, 100%);
  margin-top: 24px;
  padding: 22px 24px 26px;
  background: linear-gradient(180deg, var(--ivory), #faf4e8);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}

.menu-info-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold);
}

.menu-info-head h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  color: var(--brown);
}

.menu-info-prices {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  color: var(--brown);
}

.menu-info-card h4 {
  margin: 14px 0 8px;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.menu-info-list {
  margin: 0;
  padding-left: 18px;
  columns: 2;
  column-gap: 24px;
}

.menu-info-list li {
  break-inside: avoid;
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

.menu-info-text,
.menu-info-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.menu-info-note {
  margin-top: 16px;
  font-style: italic;
  color: var(--brown-soft);
}

@media (max-width: 700px) {
  .menu-info-list {
    columns: 1;
  }
}

.year-report-overlay {
  position: fixed;
  inset: 0;
  z-index: 88;
  overflow: auto;
  background: rgba(58, 36, 22, 0.52);
  padding: 18px 16px 36px;
  display: grid;
  place-items: start center;
}

.year-report-overlay[hidden] {
  display: none !important;
}

.stock-report-note {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--brown-soft);
}

.stock-report-halls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stock-report-hall {
  padding: 14px 14px 8px;
  border: 1px solid var(--gold);
  background: rgba(255, 252, 246, 0.72);
}

.stock-report-hall h4 {
  margin: 0 0 6px;
  font-family: "Cinzel", serif;
  color: var(--brown);
  font-size: 18px;
}

.stock-report-total,
.stock-report-empty,
.stock-report-formula {
  margin: 0 0 12px;
  font-size: 15px;
}

.stock-report-formula {
  margin-top: -6px;
  font-size: 13px;
  color: var(--brown-soft);
}

.stock-report-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 14px;
}

.stock-report-table th,
.stock-report-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(138, 115, 88, 0.35);
  text-align: left;
}

.stock-report-table th:nth-child(n + 2),
.stock-report-table td:nth-child(n + 2) {
  text-align: right;
  white-space: nowrap;
}

.stock-report-events-title {
  margin: 4px 0 8px;
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--brown);
}

.stock-report-events {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.stock-report-event {
  margin: 0 0 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(138, 115, 88, 0.35);
}

.stock-report-event p {
  margin: 0 0 6px;
}

.stock-report-event .stock-report-table {
  margin-bottom: 0;
  font-size: 13px;
}

@media (max-width: 800px) {
  .stock-report-halls {
    grid-template-columns: 1fr;
  }
}

body.hall-iorga .stock-report-hall {
  background: transparent;
  border-color: rgba(246, 240, 227, 0.4);
}

.year-report-card {
  width: min(1360px, 100%);
  margin-top: 12px;
  padding: 20px 22px 24px;
  background: linear-gradient(180deg, var(--ivory), #faf4e8);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.year-report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold);
}

.year-report-head h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  color: var(--brown);
  font-size: 26px;
}

.year-report-summary {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--brown-soft);
}

.year-report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.year-report-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--brown-soft);
}

.year-report-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.year-legend-circle,
.year-legend-dash,
.year-legend-fast {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.year-legend-circle {
  border: 2.5px solid #1f8a40;
  border-radius: 50%;
  color: #1b6b36;
  background: #fff;
}

.year-legend-circle::before {
  content: "12";
}

.year-legend-dash {
  border: 2px dashed #1f8a40;
  border-radius: 50%;
  color: #1b6b36;
  background: #fff;
}

.year-legend-dash::before {
  content: "8";
}

.year-legend-fast {
  border-radius: 4px;
  background: var(--post);
  color: var(--post-ink);
  border: 1px solid rgba(118, 52, 148, 0.45);
}

.year-legend-fast::before {
  content: "3";
}

.year-report-fasts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 16px;
  margin: 0 0 16px;
  padding: 10px 12px;
  list-style: none;
  border: 1px solid rgba(118, 52, 148, 0.28);
  background: rgba(118, 52, 148, 0.08);
  color: var(--brown-soft);
  font-size: 13px;
}

.year-report-fasts strong {
  color: var(--post-ink);
  font-weight: 700;
}

.year-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.year-month {
  min-width: 0;
  padding: 12px 10px 14px;
  border: 1px solid var(--border);
  background: #fffdf8;
}

.year-month h4 {
  margin: 0 0 10px;
  text-align: center;
  font-family: "Cinzel", serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
}

.year-weekdays,
.year-month-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.year-weekday {
  text-align: center;
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 4px;
}

.year-day {
  position: relative;
  min-width: 0;
  min-height: 38px;
  padding: 2px 0 10px;
  border: none;
  background: #f7f1e4;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 4px;
}

.year-day.is-empty {
  visibility: hidden;
  pointer-events: none;
  background: transparent;
}

.year-day-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  line-height: 1;
  font-weight: 600;
}

.year-day-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  font-size: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  color: var(--post-ink);
}

.year-day.is-fast {
  background: var(--post);
  color: var(--ink);
}

.year-day.is-fast .year-day-num {
  color: var(--ink);
}

.year-day.is-fast .year-day-edge {
  color: var(--post-ink);
}

.year-day.is-fast-start {
  box-shadow: inset 3px 0 0 var(--post-ink);
}

.year-day.is-fast-end {
  box-shadow: inset -3px 0 0 var(--post-ink);
}

.year-day.is-fast-start.is-fast-end {
  box-shadow: inset 0 0 0 2px var(--post-ink);
}

.year-day.is-reserved .year-day-num,
.year-day.is-appointment .year-day-num,
.year-day.is-fast.is-reserved .year-day-num,
.year-day.is-fast.is-appointment .year-day-num {
  color: #1b6b36;
  font-weight: 800;
  background: #fff;
}

.year-day.is-reserved .year-day-num {
  border: 2.5px solid #1f8a40;
}

.year-day.is-appointment:not(.is-reserved) .year-day-num {
  border: 2px dashed #1f8a40;
}

.year-day.is-today:not(.is-reserved):not(.is-appointment) {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.year-day:hover:not(.is-empty):not(.is-fast) {
  background: rgba(196, 163, 90, 0.28);
}

.year-day.is-fast:hover:not(.is-empty) {
  background: rgba(118, 52, 148, 0.48);
}

.year-month-bookings,
.year-day-kind,
.year-print-legend {
  display: none;
}

.year-print-legend .swatch.nunta { background: #8b2e2e; }
.year-print-legend .swatch.botez { background: #3d6b8a; }
.year-print-legend .swatch.majorat { background: #7a4e2a; }
.year-print-legend .swatch.banchet { background: #2f5d50; }
.year-print-legend .swatch.coffee { background: #6a4a32; }
.year-print-legend .swatch.masa { background: #3f5c52; }
.year-print-legend .swatch.catering { background: #6e4b3a; }
.year-print-legend .swatch.corporate { background: #4a5d43; }
.year-print-legend .swatch.aniversare { background: #7a5c8a; }
.year-print-legend .swatch.conferinta { background: #5b4a7a; }
.year-print-legend .swatch.cina { background: #9a6b3a; }
.year-print-legend .swatch.altele { background: #6b5344; }
.year-print-legend .swatch.appointment { background: #c4a35a; }
.year-print-legend .swatch.fast { background: #e8d4f2; border: 1px solid #5c2d78; }

.year-report-print-list {
  display: none;
}

.year-report-note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--brown-soft);
}

@media (max-width: 1100px) {
  .year-report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .year-report-head {
    flex-direction: column;
  }

  .year-report-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .year-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .year-report-grid {
    grid-template-columns: 1fr;
  }

  .year-report-card {
    padding: 14px 12px 18px;
  }
}

.tariff-chip strong {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 2px;
}

.deposit-section {
  border-color: var(--gold);
  background: rgba(196, 163, 90, 0.14);
}

.deposit-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.9fr;
  gap: 16px;
  align-items: end;
  padding: 12px 14px;
  border: 1px solid var(--gold);
  background: #fffdf8;
}

.deposit-row .yesno-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.deposit-row .check-item {
  min-height: 42px;
  align-items: center;
  font-size: 16px;
}

.deposit-custom {
  grid-column: 1 / -1;
}

.deposit-custom input {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 8px 12px;
  font-size: 18px;
  border: 1px solid var(--gold);
  background: #fffdf8;
}

.quote-intro,
.quote-note,
.quote-deposit {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--brown-soft);
}

.quote-flags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.quote-flag {
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: #fffdf8;
  font-size: 13px;
  color: var(--brown-soft);
}

.quote-flag.is-on {
  border-color: var(--gold);
  background: rgba(196, 163, 90, 0.16);
  color: var(--brown);
}

.quote-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.quote-cols h5 {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown);
}

#quote-benefits {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--brown-soft);
}

#quote-benefits li {
  margin-bottom: 6px;
}

#quote-packages {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--brown);
}

#quote-packages li {
  margin-bottom: 6px;
}

#quote-packages strong {
  color: var(--brown);
}

.quote-formula,
.sheet-formula {
  display: block;
  margin-top: 4px;
  line-height: 1.4;
  white-space: normal;
  font-weight: 400;
  color: var(--brown-soft, #7a5a3c);
  font-size: 0.92em;
}

.quote-total-formula,
.sheet-total-formula {
  margin: 2px 0 10px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--brown-soft, #7a5a3c);
}

.quote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.quote-table td {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.quote-table td:first-child {
  padding-right: 16px;
}

.quote-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  padding-left: 12px;
  width: 1%;
  color: var(--brown);
}

.quote-total {
  margin: 12px 0 6px;
  font-family: "Cinzel", serif;
  font-size: 15px;
  color: var(--brown);
}

.signature-block {
  margin-top: 14px;
}

#consent-signature {
  display: block;
  width: 100%;
  height: 160px;
  border: 1px solid var(--border);
  background: #fffdf8;
  cursor: crosshair;
  touch-action: none;
}

#clear-signature {
  margin-top: 8px;
}

#event-form {
  padding-bottom: 12px;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(250, 244, 232, 0), #faf4e8 28%);
  padding-top: 16px;
}

.modal-actions-right {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.modal-actions-right .gold-btn {
  width: auto;
}

.ghost-btn.danger,
.danger-fill {
  border-color: var(--nunta);
  color: var(--nunta);
}

.danger-fill {
  background: linear-gradient(180deg, #b24a4a, #8b2e2e);
  color: #fff;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brown);
  color: var(--ivory);
  padding: 12px 20px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  z-index: 120;
  box-shadow: var(--shadow);
  max-width: min(520px, calc(100vw - 32px));
  text-align: center;
}

[hidden] {
  display: none !important;
}

body.is-locked {
  overflow: hidden;
}

.lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px 24px 56px;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 119, 0.22), transparent 40%),
    linear-gradient(180deg, #f8f3e8 0%, var(--cream) 100%);
}

.lock-overlay[hidden] {
  display: none !important;
}

.lock-card {
  width: min(420px, 100%);
  padding: 28px 26px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--ivory), #faf4e8);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}

.lock-crest {
  position: relative;
  width: 124px;
  height: 124px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
}

.lock-crest-glow,
.lock-crest-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  pointer-events: none;
}

.lock-crest-glow {
  inset: 0;
  background: radial-gradient(circle, rgba(212, 175, 119, 0.45), rgba(196, 163, 90, 0.08) 52%, transparent 70%);
  animation: lock-glow 3.8s ease-in-out infinite;
}

.lock-crest-ring {
  inset: 2px;
  background: conic-gradient(
    from 210deg,
    transparent 0 76%,
    rgba(212, 175, 119, 0.2) 82%,
    #d4af77 90%,
    rgba(196, 163, 90, 0.2) 96%,
    transparent 100%
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 100%);
  animation: lock-ring 16s linear infinite;
}

.lock-logo {
  position: relative;
  z-index: 1;
  width: 96px;
  height: auto;
  margin: 0;
  filter: drop-shadow(0 8px 16px rgba(92, 51, 23, 0.16));
  animation: lock-logo-enter 1.15s ease-out both, lock-logo-breathe 4.4s 1.1s ease-in-out infinite;
}

@keyframes lock-glow {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@keyframes lock-ring {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes lock-logo-enter {
  from {
    opacity: 0;
    transform: scale(0.86) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes lock-logo-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lock-crest-glow,
  .lock-crest-ring,
  .lock-logo,
  .notify-btn.has-alerts,
  .notify-btn.has-alerts svg,
  .notify-btn.has-alerts .notify-badge {
    animation: none;
  }
}

.lock-kicker,
.lock-copy {
  margin: 0;
  font-family: "Cinzel", serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.lock-kicker {
  font-size: 10px;
}

.lock-card h2 {
  margin: 8px 0 10px;
  font-size: 24px;
  color: var(--brown);
}

.lock-copy {
  margin-bottom: 18px;
  font-family: "Source Sans 3", sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
  line-height: 1.45;
  color: var(--brown-soft);
}

.lock-card form {
  display: grid;
  gap: 12px;
  text-align: left;
}

.lock-card label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.lock-card input {
  width: 100%;
  padding: 10px 12px;
  font-size: 22px;
  letter-spacing: 0.35em;
  text-align: center;
  font-family: "Cinzel", serif;
  color: var(--brown);
  border: 1px solid var(--gold);
  background: #fffdf8;
}

.lock-error {
  margin: 0;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  color: #5c3317;
  background: #f6f0e3;
  border: 1px solid #c4a35a;
}

.lock-card .gold-btn,
.lock-card .ghost-btn {
  width: 100%;
  margin-top: 4px;
}

/* Meniu click dreapta pe eveniment */
.event-context-menu {
  position: fixed;
  z-index: 80;
  min-width: 180px;
  padding: 6px;
  background: #fffdf8;
  border: 1px solid var(--gold);
  box-shadow: 0 12px 28px rgba(60, 36, 18, 0.18);
  display: grid;
  gap: 4px;
}

.event-context-menu[hidden] {
  display: none !important;
}

.event-context-menu button {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  cursor: pointer;
}

.event-context-menu button:hover {
  background: rgba(196, 163, 90, 0.18);
}

/* Listă taskuri */
.task-modal {
  max-width: 920px;
  width: min(96vw, 920px);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
}

.task-event-meta {
  margin: 0 0 6px;
  color: var(--brown-soft);
  font-size: 15px;
}

.task-progress {
  margin: 0 0 14px;
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.task-progress.is-complete {
  color: #4a5d43;
}

.task-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  max-height: none;
  flex: 1 1 auto;
  overflow: auto;
  padding-right: 4px;
  margin-bottom: 16px;
  min-height: 0;
}

.task-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(92, 51, 23, 0.14);
  background: #fff;
  cursor: pointer;
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.task-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.task-check.is-done {
  background: rgba(74, 93, 67, 0.08);
  border-color: rgba(74, 93, 67, 0.28);
}

.task-check.is-done span {
  text-decoration: line-through;
  color: var(--brown-soft);
}

@media (max-width: 720px) {
  .task-list {
    grid-template-columns: 1fr;
  }
}

.notify-tasks {
  appearance: none;
  border: 1px solid var(--gold);
  background: rgba(196, 163, 90, 0.14);
  color: var(--brown);
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 8px;
  cursor: pointer;
  align-self: center;
}

/* ——— Tabletă & touch (landscape / portrait) ——— */
@media (max-width: 1180px) {
  html {
    height: auto;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    display: block;
    overflow: visible;
    height: auto;
    max-height: none;
  }

  body.modal-open,
  body.year-report-open,
  body.is-locked {
    overflow: hidden;
    height: 100%;
  }

  .layout {
    flex: none;
  }

  .topbar {
    padding: 12px 16px 8px;
    gap: 12px;
    align-items: stretch;
  }

  .brand {
    gap: 12px;
    min-width: 0;
    flex: 1 1 220px;
  }

  .brand-logo {
    width: 64px;
    flex-shrink: 0;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy h1 {
    font-size: clamp(16px, 2.4vw, 20px);
    line-height: 1.25;
  }

  .brand-sub {
    display: none;
  }

  .brand-manager,
  .brand-actor {
    font-size: 11px;
  }

  .topbar-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .topbar-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .topbar-tools .lock-tool-btn,
  .topbar-tools .install-app-btn {
    width: 100%;
  }

  .topbar-tools .notify-wrap,
  .topbar-tools .notify-btn {
    width: 100%;
    min-width: 0;
  }

  .topbar-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stat-card {
    min-width: 0;
    padding: 10px 12px;
  }

  .stat-card strong {
    font-size: 18px;
  }

  .stat-label {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .lock-tool-btn,
  .notify-btn,
  .nav-btn,
  .today-btn,
  .gold-btn,
  .ghost-btn,
  .view-btn {
    min-height: 44px;
    touch-action: manipulation;
  }

  .notify-btn {
    min-height: 48px;
  }

  .notify-panel {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: min(70vh, 520px);
    z-index: 90;
  }

  .view-switch {
    padding: 0 12px 10px;
    gap: 6px;
  }

  .view-btn {
    flex: 1 0 auto;
    min-width: 4.8rem;
    padding: 12px 8px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .layout,
  .clients-view,
  .journal-view,
  .offers-view,
  .dashboard-view {
    padding-left: 16px;
    padding-right: 16px;
    gap: 16px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .offers-variants {
    grid-template-columns: 1fr;
  }

  .offer-bar-sections {
    grid-template-columns: 1fr;
  }

  .offer-course-detail {
    grid-template-columns: 1fr;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .calendar-panel,
  .day-panel {
    padding: 16px;
    min-width: 0;
  }

  .calendar-toolbar {
    gap: 8px;
    margin-bottom: 12px;
  }

  .calendar-heading {
    min-width: 0;
  }

  .calendar-heading h2 {
    font-size: clamp(18px, 3vw, 22px);
  }

  .nav-btn {
    width: 48px;
    height: 48px;
    font-size: 28px;
    flex-shrink: 0;
  }

  .calendar-grid,
  .weekday-row {
    gap: 3px;
    min-width: 0;
  }

  .day-cell {
    min-height: 84px;
    padding: 5px;
    min-width: 0;
    background: #fdfaf4;
  }

  .day-cell:active {
    background: rgba(212, 175, 119, 0.22);
  }

  .day-cell.selected {
    background: #f3e6c8;
  }

  .day-number {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .event-chip {
    font-size: 10px;
    padding: 3px 4px;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .legend,
  .legend-status {
    gap: 8px 12px;
    font-size: 11px;
  }

  .day-panel {
    min-height: auto;
  }

  .day-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
  }

  .day-actions .gold-btn,
  .day-actions .ghost-btn {
    width: 100%;
    min-height: 48px;
    font-size: 12px;
    pointer-events: auto;
  }

  .event-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .event-card-print {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .event-card-actions .ghost-btn,
  .event-card-print .ghost-btn {
    width: 100%;
    min-height: 44px;
  }

  .modal-overlay,
  .confirm-overlay {
    padding: 0;
    place-items: stretch;
    align-items: start;
    z-index: 60;
    background: #f6f0e3;
    height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  .modal-overlay {
    display: block;
  }

  .sheet-overlay,
  .year-report-overlay,
  .stock-report-overlay,
  .menu-info-overlay {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  .modal {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: min-content;
    overflow: visible;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    background: #fdfaf4;
    background-image: none;
    box-shadow: none;
  }

  .confirm-overlay {
    place-items: center;
    padding: 24px 16px;
    background: rgba(35, 20, 12, 0.72);
  }

  .confirm-box {
    width: min(480px, 100%);
    background: #fdfaf4;
  }

  .modal-close {
    top: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    font-size: 32px;
    display: grid;
    place-items: center;
    background: #fdfaf4;
    border: 1px solid var(--border);
    z-index: 3;
  }

  .form-section,
  .ceremony-block,
  .quote-box,
  .event-card,
  .clients-table-wrap,
  .stat-card,
  .notify-panel,
  .lock-card,
  .menu-info-card,
  .task-modal,
  .client-modal {
    background: #fffdf8;
  }

  .modal-actions {
    flex-wrap: wrap;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #faf4e8;
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(58, 36, 22, 0.12);
    pointer-events: auto;
  }

  .save-status {
    order: -1;
    margin-bottom: 10px;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    max-width: none;
    transform: none;
    z-index: 130;
  }

  #event-form,
  #client-form {
    padding-bottom: 110px;
  }

  #save-event-btn,
  #save-client-btn,
  #cancel-event-btn,
  #cancel-client-btn {
    min-height: 48px;
    pointer-events: auto;
    touch-action: manipulation;
  }

  .calendar-panel,
  .day-panel,
  .clients-view .clients-toolbar,
  .clients-view .clients-table-wrap,
  .journal-view .clients-toolbar,
  .journal-entry {
    background: #fdfaf4;
  }

  .sheet-overlay {
    padding: 10px 10px 24px;
    background: #f6f0e3;
  }

  .sheet-preview-bar,
  .sheet-edit-banner {
    background: #fdfaf4;
  }

  .lock-overlay {
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    background: #f6f0e3;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: start;
  }

  .lock-card {
    width: min(440px, 100%);
    padding: 24px 20px 20px;
    background: #fdfaf4;
  }

  .modal h3 {
    font-size: 20px;
    padding-right: 48px;
    margin-bottom: 14px;
  }

  .form-section {
    padding: 14px;
    background: #fffdf8;
  }

  input,
  select,
  textarea {
    font-size: 16px;
    padding: 12px 14px;
    min-height: 44px;
    background: #fffdf8;
    max-width: 100%;
  }

  textarea {
    min-height: 96px;
  }

  .check-item {
    min-height: 44px;
    padding: 6px 0;
  }

  .check-item input[type="checkbox"],
  .check-item input[type="radio"],
  input[type="checkbox"],
  input[type="radio"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    flex-shrink: 0;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .check-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }

  .bring-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .modal-actions-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-left: 0;
  }

  .modal-actions-right .gold-btn,
  .modal-actions-right .ghost-btn {
    width: 100%;
  }

  .modal-actions > .ghost-btn.danger {
    width: 100%;
    order: 3;
  }

  .print-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .print-actions .ghost-btn,
  .print-actions .gold-btn {
    width: 100%;
  }

  .clients-toolbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
  }

  .clients-toolbar h2 {
    font-size: 22px;
  }

  .clients-toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .clients-search,
  .clients-search input {
    min-width: 0;
    width: 100%;
  }

  .clients-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .clients-table {
    min-width: 640px;
  }

  .clients-table th,
  .clients-table td {
    padding: 10px 12px;
    font-size: 14px;
  }

  .client-actions {
    flex-wrap: wrap;
  }

  .lock-card input {
    font-size: 22px;
    letter-spacing: 0.35em;
    text-align: center;
    min-height: 52px;
  }

  .lock-card .gold-btn,
  .lock-card .ghost-btn {
    min-height: 48px;
    font-size: 13px;
  }

  .sheet-preview-bar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }

  .sheet-preview-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .sheet-preview-actions .gold-btn,
  .sheet-preview-actions .ghost-btn {
    width: 100%;
  }

  .quote-cols {
    grid-template-columns: 1fr;
  }

  .open-bar-counts {
    grid-template-columns: 1fr 1fr;
  }

  .menu-tariffs {
    grid-template-columns: 1fr;
  }

  .journal-filters {
    flex-wrap: wrap;
    gap: 8px;
  }

  .install-help-card,
  .client-modal,
  .menu-info-card,
  .task-modal {
    width: min(100%, 100vw);
    max-width: none;
  }

  .menu-info-overlay,
  .install-help-overlay {
    padding: 12px;
    align-items: flex-start;
  }
}

/* Portrait tablet / telefon lat */
@media (max-width: 900px) {
  .form-grid,
  .ceremony-fields,
  .course-list,
  .open-bar-counts,
  .deposit-row,
  .course-burger-fields {
    grid-template-columns: 1fr;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }

  .day-cell {
    min-height: 68px;
    padding: 4px;
  }

  .weekday {
    font-size: 10px;
    letter-spacing: 0.04em;
    padding: 4px 0;
  }

  .print-actions,
  .event-card-print {
    grid-template-columns: 1fr;
  }

  .dash-card--tasks .dash-list {
    grid-template-columns: 1fr;
  }

  .dash-card--tasks .dash-item {
    border-right: 0;
    border-top: 1px solid rgba(196, 163, 90, 0.22);
  }

  .dash-card--tasks .dash-item:first-child {
    border-top: 0;
  }

  .clients-toolbar-actions {
    grid-template-columns: 1fr;
  }

  .brand-kicker {
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 12px 6px;
  }

  .brand-logo {
    width: 52px;
  }

  .brand-copy h1 {
    font-size: 15px;
  }

  .brand-manager,
  .brand-actor,
  .brand-kicker {
    display: none;
  }

  .topbar-tools {
    grid-template-columns: 1fr 1fr;
  }

  .topbar-tools .notify-wrap {
    grid-column: 1 / -1;
  }

  .topbar-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .stat-card strong {
    margin-top: 0;
    font-size: 20px;
  }

  .view-switch {
    padding: 0 10px 8px;
  }

  .layout,
  .clients-view,
  .journal-view,
  .offers-view,
  .dashboard-view {
    padding-left: 12px;
    padding-right: 12px;
  }

  .calendar-heading h2 {
    font-size: 16px;
  }

  .today-btn {
    font-size: 11px;
    padding: 8px 10px;
  }

  .event-chip {
    font-size: 9px;
  }

  .legend {
    display: none;
  }

  .modal-actions-right,
  .clients-toolbar-actions,
  .sheet-preview-actions {
    grid-template-columns: 1fr;
  }

  .clients-table {
    min-width: 0;
  }

  .clients-table,
  .clients-table thead,
  .clients-table tbody,
  .clients-table th,
  .clients-table td,
  .clients-table tr {
    display: block;
  }

  .clients-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .clients-table tr {
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid rgba(196, 163, 90, 0.35);
    background: #fffdf8;
  }

  .clients-table td {
    padding: 6px 0;
    border: 0;
  }

  .clients-table td::before {
    content: attr(data-label);
    display: block;
    font-family: "Cinzel", serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 2px;
  }

  .client-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .client-actions .ghost-btn {
    width: 100%;
  }
}

/* Touch: hover „lipicios” pe Android — resetăm, folosim :active */
@media (hover: none) and (pointer: coarse) {
  .gold-btn:hover {
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    color: #3a2416;
  }

  .ghost-btn:hover,
  .nav-btn:hover,
  .today-btn:hover {
    background: transparent;
  }

  .day-cell:hover {
    background: #fdfaf4;
  }

  .day-cell:active {
    background: #f3e6c8;
  }

  .gold-btn:active {
    filter: brightness(0.96);
  }

  .ghost-btn:active,
  .nav-btn:active,
  .today-btn:active {
    background: #f3e6c8;
  }

  .check-item:active {
    background: #f3e6c8;
  }
}

body.is-observer #add-event-btn,
body.is-observer #add-meeting-btn,
body.is-observer #add-tasting-btn,
body.is-observer #add-client-btn,
body.is-observer #save-event-btn,
body.is-observer #delete-event-btn,
body.is-observer #save-client-btn,
body.is-observer #delete-client-btn,
body.is-observer #change-pin-btn,
body.is-observer #sync-status-btn,
body.is-observer #sheet-edit-btn,
body.is-observer #clear-signature,
body.is-observer #menu-builder-load,
body.is-observer #menu-builder-clear,
body.is-observer #tp-save,
body.is-observer .tp-toolbar,
body.is-observer [data-delete-id],
body.is-observer [data-delete-client],
body.is-observer [data-book-client],
body.is-observer .notify-done {
  display: none !important;
}

body.is-observer #consent-signature,
body.is-observer .task-check input,
body.is-observer .tp-scale-handle,
body.is-observer #table-plan-inspector input,
body.is-observer #table-plan-inspector textarea,
body.is-observer #table-plan-inspector select,
body.is-observer #table-plan-inspector button {
  pointer-events: none;
}

body.is-observer .sheet-stock input,
body.is-observer .sheet-stock textarea,
body.is-observer .sheet-stock select {
  pointer-events: none;
}

.hall-switch {
  display: flex;
  gap: 8px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 4px 32px 8px;
  position: relative;
  z-index: 2;
}

.hall-btn {
  flex: 1 1 0;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--gold);
  background: var(--ivory);
  color: var(--brown);
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.hall-btn.is-on,
.hall-btn[aria-selected="true"] {
  background: linear-gradient(180deg, var(--brown-soft), var(--brown));
  color: var(--ivory);
  border-color: var(--brown);
}

body.hall-iorga {
  --cream: #243832;
  --ivory: #2c3f38;
  --paper: #314a42;
  --ink: #f7f3ea;
  --brown: #f7f3ea;
  --brown-soft: #efe8dc;
  --gold: #4a635a;
  --gold-bright: #3a5249;
  --gold-deep: #e4f0ea;
  --border: rgba(109, 144, 132, 0.45);
  --shadow: 0 18px 40px rgba(18, 32, 28, 0.32);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(58, 82, 73, 0.65), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(44, 63, 56, 0.45), transparent 36%),
    linear-gradient(180deg, #314a42 0%, #2c3f38 48%, #243832 100%);
}

body.hall-iorga .hall-btn.is-on,
body.hall-iorga .hall-btn[aria-selected="true"],
body.hall-iorga .view-btn.is-on,
body.hall-iorga .view-btn[aria-selected="true"] {
  background: linear-gradient(180deg, #3a5249, #2c3f38);
  color: #f6f0e3;
  border-color: #4a635a;
}

body.hall-iorga .lock-overlay {
  background: #243832;
  background-image:
    radial-gradient(circle at top left, rgba(58, 82, 73, 0.7), transparent 42%),
    linear-gradient(180deg, #3a5249 0%, #2c3f38 100%);
}

body.hall-iorga .calendar-panel,
body.hall-iorga .day-panel,
body.hall-iorga .modal,
body.hall-iorga .confirm-box,
body.hall-iorga .lock-card,
body.hall-iorga .stat-card,
body.hall-iorga .event-card,
body.hall-iorga .notify-panel,
body.hall-iorga .menu-info-card,
body.hall-iorga .year-month,
body.hall-iorga .journal-entry,
body.hall-iorga .day-cell {
  background: #2c3f38;
  background-image: linear-gradient(180deg, #3a5249, #2c3f38);
  color: #f6f0e3;
  border-color: #4a635a;
}

body.hall-iorga .dash-card,
body.hall-iorga .dash-period {
  background: linear-gradient(180deg, #3a5249, #2c3f38);
  border-color: #4a635a;
  color: #f6f0e3;
}

body.hall-iorga .day-cell.selected {
  background: rgba(58, 82, 73, 0.55);
  border-color: #6d9084;
}

body.hall-iorga input,
body.hall-iorga select,
body.hall-iorga textarea,
body.hall-iorga .clients-table tr {
  background: #243832;
  color: #f6f0e3;
  border-color: #4a635a;
}

body.hall-iorga .gold-btn,
body.hall-iorga .gold-btn:hover {
  background: linear-gradient(180deg, #3a5249, #2c3f38);
  color: #f7f3ea;
  border-color: #4a635a;
}

body.hall-iorga .clients-toolbar {
  background: linear-gradient(180deg, #3a5249, #2c3f38);
  color: #f7f3ea;
}

body.hall-iorga .clients-toolbar h2,
body.hall-iorga h1,
body.hall-iorga h2,
body.hall-iorga h3,
body.hall-iorga h4,
body.hall-iorga .offers-variant-name,
body.hall-iorga .offers-variant-title,
body.hall-iorga .offers-course-label,
body.hall-iorga .brand-copy h1,
body.hall-iorga .calendar-heading h2 {
  color: #f7f3ea;
}

body.hall-iorga .clients-intro,
body.hall-iorga .day-kicker,
body.hall-iorga .brand-kicker,
body.hall-iorga .brand-sub,
body.hall-iorga .brand-manager,
body.hall-iorga .stat-label,
body.hall-iorga .empty-state,
body.hall-iorga .dash-period-kicker,
body.hall-iorga .offers-variant-price,
body.hall-iorga .offers-variant-lead,
body.hall-iorga .offers-note,
body.hall-iorga .offers-crumb,
body.hall-iorga .offers-crumb-btn,
body.hall-iorga .modal-kicker {
  color: #efe8dc;
}

body.hall-iorga .offers-variant,
body.hall-iorga .offers-course,
body.hall-iorga .offers-note--bar {
  background: linear-gradient(180deg, #3a5249, #2c3f38);
  color: #f7f3ea;
  border-color: #4a635a;
}

body.hall-iorga .offers-variant:hover,
body.hall-iorga .offers-course:hover,
body.hall-iorga .offers-variant:focus-visible,
body.hall-iorga .offers-course:focus-visible {
  background: linear-gradient(180deg, #4e6b61, #3a5249);
  color: #f7f3ea;
}

body.hall-iorga .view-btn,
body.hall-iorga .hall-btn,
body.hall-iorga .ghost-btn,
body.hall-iorga .nav-btn,
body.hall-iorga .today-btn {
  color: #f7f3ea;
}

@media (max-width: 1180px) {
  .hall-switch {
    padding: 2px 12px 8px;
    gap: 6px;
  }

  .hall-btn {
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 10px 8px;
    white-space: normal;
    line-height: 1.25;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .hall-switch,
  .view-switch,
  .layout,
  .dashboard-view,
  .clients-view,
  .journal-view,
  .offers-view {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .view-switch {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    padding-bottom: 8px;
  }

  .view-btn {
    min-width: 0;
    width: 100%;
    padding: 8px 2px;
    font-size: 10px;
    letter-spacing: 0.02em;
    line-height: 1.15;
    white-space: normal;
  }

  .hall-btn {
    font-size: 10px;
    letter-spacing: 0.02em;
    padding: 8px 6px;
  }

  .weekday {
    letter-spacing: 0;
    font-size: 9px;
    padding: 4px 0;
  }

  .calendar-heading-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .clients-table {
    min-width: 0;
  }

  .clients-table,
  .clients-table thead,
  .clients-table tbody,
  .clients-table th,
  .clients-table td,
  .clients-table tr {
    display: block;
  }

  .clients-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .clients-table tr {
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid rgba(196, 163, 90, 0.35);
    background: #fffdf8;
  }

  .clients-table td {
    padding: 6px 0;
    border: 0;
    white-space: normal;
  }

  .clients-table td::before {
    content: attr(data-label);
    display: block;
    font-family: "Cinzel", serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 2px;
  }

  img,
  video {
    max-width: 100%;
    height: auto;
  }

  .brand-logo {
    height: auto;
  }

  .form-grid > *,
  .modal label,
  .modal fieldset,
  .yesno-field,
  .halls-field {
    min-width: 0;
    max-width: 100%;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 1440px) {
  body {
    display: block;
    overflow: visible;
    height: auto;
    max-height: none;
  }

  body.modal-open,
  body.year-report-open,
  body.is-locked {
    overflow: hidden;
    height: 100%;
  }

  .modal-overlay {
    display: block;
    height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  .lock-overlay,
  .sheet-overlay,
  .year-report-overlay,
  .stock-report-overlay {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 420px) {
  .view-switch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .view-btn {
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 10px 4px;
  }
}

/* Sala Nicolae Iorga: text crem pe orice suprafață verde, inclusiv după regulile de tabletă. */
@media screen {
  body.hall-iorga,
  body.hall-iorga * {
    color: #f6f0e3 !important;
  }

  body.hall-iorga input::placeholder,
  body.hall-iorga textarea::placeholder {
    color: rgba(246, 240, 227, 0.78) !important;
  }

  body.hall-iorga .calendar-panel,
  body.hall-iorga .day-panel,
  body.hall-iorga .modal,
  body.hall-iorga .confirm-box,
  body.hall-iorga .lock-card,
  body.hall-iorga .lock-overlay,
  body.hall-iorga .stat-card,
  body.hall-iorga .event-card,
  body.hall-iorga .notify-panel,
  body.hall-iorga .menu-info-card,
  body.hall-iorga .year-month,
  body.hall-iorga .year-report-card,
  body.hall-iorga .stock-report-card,
  body.hall-iorga .journal-entry,
  body.hall-iorga .day-cell,
  body.hall-iorga .dash-card,
  body.hall-iorga .dash-period,
  body.hall-iorga .dash-count,
  body.hall-iorga .form-section,
  body.hall-iorga .ceremony-block,
  body.hall-iorga .quote-box,
  body.hall-iorga .clients-table-wrap,
  body.hall-iorga .clients-table tr,
  body.hall-iorga .clients-table td,
  body.hall-iorga .task-modal,
  body.hall-iorga .client-modal,
  body.hall-iorga .clients-toolbar,
  body.hall-iorga .modal-actions,
  body.hall-iorga .modal-close,
  body.hall-iorga .sheet-overlay,
  body.hall-iorga .sheet-preview-bar,
  body.hall-iorga .sheet-edit-banner,
  body.hall-iorga .offers-variant,
  body.hall-iorga .offers-course,
  body.hall-iorga .offers-note,
  body.hall-iorga input,
  body.hall-iorga select,
  body.hall-iorga textarea,
  body.hall-iorga option {
    background-color: #2c3f38 !important;
    color: #f6f0e3 !important;
  }

  body.hall-iorga .day-cell.today .day-number {
    background-color: #f6f0e3 !important;
    color: #243832 !important;
  }

  /* Fișa de eveniment: hârtie crem și scris închis, ca să se citească fiecare chenar. */
  body.hall-iorga .form-section,
  body.hall-iorga .ceremony-block,
  body.hall-iorga .menu-builder,
  body.hall-iorga .menu-builder-col,
  body.hall-iorga .menu-builder-course,
  body.hall-iorga .tariff-chip,
  body.hall-iorga .stay-group,
  body.hall-iorga .legal-box,
  body.hall-iorga .menu-extra-discount,
  body.hall-iorga .course-burger-timing,
  body.hall-iorga .kitchen-confirmed-menu {
    background-color: #f6f0e3 !important;
    background-image: none !important;
    color: #243832 !important;
    border-color: #8a7358 !important;
  }

  body.hall-iorga .form-section *,
  body.hall-iorga .ceremony-block * {
    color: #243832 !important;
  }

  body.hall-iorga .form-section input,
  body.hall-iorga .form-section select,
  body.hall-iorga .form-section textarea,
  body.hall-iorga .form-section option,
  body.hall-iorga .ceremony-block input,
  body.hall-iorga .ceremony-block select,
  body.hall-iorga .ceremony-block textarea {
    background-color: #fffdf8 !important;
    color: #243832 !important;
    border-color: #6d5a45 !important;
  }

  body.hall-iorga .form-section input::placeholder,
  body.hall-iorga .form-section textarea::placeholder,
  body.hall-iorga .ceremony-block input::placeholder,
  body.hall-iorga .ceremony-block textarea::placeholder {
    color: rgba(36, 56, 50, 0.62) !important;
  }

  body.hall-iorga input[type="checkbox"],
  body.hall-iorga input[type="radio"] {
    background-color: #fffdf8 !important;
    accent-color: #243832;
    color: #243832 !important;
    border: 1px solid #243832 !important;
  }

  body.hall-iorga .form-section .ghost-btn,
  body.hall-iorga .form-section .info-dot {
    background-color: #fffdf8 !important;
    color: #243832 !important;
    border-color: #243832 !important;
  }

  body.hall-iorga #print-root,
  body.hall-iorga #print-root *,
  body.hall-iorga .table-plan-floor,
  body.hall-iorga .table-plan-floor * {
    color: #3a2416 !important;
  }

  body.hall-iorga #print-root .sheet,
  body.hall-iorga .table-plan-floor {
    background-color: #fffdf8 !important;
  }

  body.hall-iorga .toast,
  body.hall-iorga .lock-error {
    background-color: #f6f0e3 !important;
    color: #243832 !important;
    border: 1px solid #4a635a;
  }
}

/* Constructorul de meniu pe Iorga: scris închis pe hârtie, nu crem pe crem. */
body.hall-iorga .menu-builder,
body.hall-iorga .menu-builder h5,
body.hall-iorga .menu-builder h6,
body.hall-iorga .menu-builder p,
body.hall-iorga .menu-builder label,
body.hall-iorga .menu-builder .check-item,
body.hall-iorga .menu-builder summary,
body.hall-iorga .menu-builder .menu-builder-count,
body.hall-iorga .menu-builder .kitchen-confirmed-kicker,
body.hall-iorga .menu-builder .kitchen-confirmed-title {
  color: #1a2e28 !important;
  -webkit-text-fill-color: #1a2e28 !important;
}

body.hall-iorga .menu-builder .menu-builder-col,
body.hall-iorga .menu-builder .menu-builder-course {
  background-color: #fffdf8 !important;
  border-color: #5c4a38 !important;
}

body.hall-iorga .menu-builder .ghost-btn {
  background-color: #fffdf8 !important;
  color: #1a2e28 !important;
  -webkit-text-fill-color: #1a2e28 !important;
  border: 2px solid #1a2e28 !important;
}

body.hall-iorga .menu-builder textarea,
body.hall-iorga .menu-builder input:not([type="checkbox"]):not([type="radio"]) {
  background-color: #fffdf8 !important;
  color: #1a2e28 !important;
  -webkit-text-fill-color: #1a2e28 !important;
  border-color: #5c4a38 !important;
}

body.hall-iorga .menu-builder textarea::placeholder,
body.hall-iorga .menu-builder input::placeholder {
  color: #4d635c !important;
  -webkit-text-fill-color: #4d635c !important;
}

/* Butoanele de jos și textul ofertei: scris închis pe hârtie crem. */
body.hall-iorga .modal-actions {
  background: #f6f0e3 !important;
  background-image: none !important;
}

body.hall-iorga .modal .print-actions .ghost-btn,
body.hall-iorga .modal-actions .ghost-btn,
body.hall-iorga .modal-actions .save-status {
  background-color: #fffdf8 !important;
  color: #1a2e28 !important;
  -webkit-text-fill-color: #1a2e28 !important;
  border: 2px solid #1a2e28 !important;
}

body.hall-iorga .modal-actions .ghost-btn.danger {
  color: #8b2e2e !important;
  -webkit-text-fill-color: #8b2e2e !important;
  border-color: #8b2e2e !important;
}

body.hall-iorga .modal-actions .gold-btn,
body.hall-iorga .modal-actions .gold-btn:hover {
  background: #243832 !important;
  background-image: none !important;
  color: #f6f0e3 !important;
  -webkit-text-fill-color: #f6f0e3 !important;
  border-color: #c4a35a !important;
}

body.hall-iorga .form-section,
body.hall-iorga .form-section * {
  color: #1a2e28 !important;
  -webkit-text-fill-color: #1a2e28 !important;
}

body.hall-iorga .form-section input,
body.hall-iorga .form-section select,
body.hall-iorga .form-section textarea,
body.hall-iorga .form-section option {
  background-color: #fffdf8 !important;
  color: #1a2e28 !important;
  -webkit-text-fill-color: #1a2e28 !important;
}

body.hall-iorga .form-section input::placeholder,
body.hall-iorga .form-section textarea::placeholder {
  color: #4d635c !important;
  -webkit-text-fill-color: #4d635c !important;
}

@media print {
  body.printing-year-report .year-report-overlay,
  body.printing-year-report .year-report-card,
  body.printing-year-report .year-month,
  body.hall-iorga.printing-year-report .year-report-card,
  body.hall-iorga.printing-year-report .year-month {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    color: #3a2416 !important;
  }

  body.printing-year-report .year-month,
  body.hall-iorga.printing-year-report .year-month {
    border: 0.45mm solid #8a6a32 !important;
  }

  body.printing-year-report .year-day,
  body.hall-iorga.printing-year-report .year-day {
    background: transparent !important;
    background-color: transparent !important;
    color: #3a2416 !important;
  }

  body.printing-year-report .year-month h4,
  body.printing-year-report .year-weekday,
  body.printing-year-report .year-report-head,
  body.printing-year-report .year-report-head h3,
  body.printing-year-report .year-print-legend,
  body.printing-year-report .year-print-legend span,
  body.hall-iorga.printing-year-report .year-month h4,
  body.hall-iorga.printing-year-report .year-weekday,
  body.hall-iorga.printing-year-report .year-print-legend,
  body.hall-iorga.printing-year-report .year-print-legend span {
    color: #3a2416 !important;
  }

  body.printing-year-report .year-day.is-reserved .year-day-num,
  body.hall-iorga.printing-year-report .year-day.is-reserved .year-day-num {
    background: var(--reserve-a, #8b2e2e) !important;
    background-color: var(--reserve-a, #8b2e2e) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  body.printing-year-report .year-day.is-appointment:not(.is-reserved) .year-day-num,
  body.hall-iorga.printing-year-report .year-day.is-appointment:not(.is-reserved) .year-day-num {
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #3a2416 !important;
    -webkit-text-fill-color: #3a2416 !important;
  }
}

.inventory-view {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 32px 40px;
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
}

.inventory-form {
  margin-top: 8px;
}

.inventory-photo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.inventory-photo-preview,
.inventory-photo-empty {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f3e6d0;
}

.inventory-photo-empty {
  display: grid;
  place-items: center;
  color: #6b5344;
  font-size: 13px;
}

.inventory-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inventory-photo-actions .price-hint {
  flex: 1 1 100%;
  margin: 0;
}

.inventory-file-input {
  position: fixed !important;
  left: -120px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

.inventory-camera-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(28, 22, 16, 0.78);
}

.inventory-camera-overlay[hidden] {
  display: none !important;
}

.inventory-camera-card {
  width: min(560px, 100%);
  padding: 12px;
  border-radius: 12px;
  background: #1c1814;
  border: 1px solid #8a6a32;
}

.inventory-camera-card video {
  display: block;
  width: 100%;
  max-height: 62vh;
  background: #000;
  border-radius: 8px;
  object-fit: cover;
}

.inventory-camera-card .price-hint {
  margin: 10px 0 0;
  color: #f6f0e3;
}

.inventory-camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.inventory-camera-actions .gold-btn,
.inventory-camera-actions .ghost-btn {
  width: auto;
  flex: 1 1 140px;
}

.inventory-camera-card .ghost-btn {
  color: #f6f0e3;
  border-color: #d4af77;
}

body.hall-iorga .inventory-camera-card .gold-btn,
body.hall-iorga .inventory-camera-card .gold-btn:hover {
  color: #3a2416 !important;
  -webkit-text-fill-color: #3a2416 !important;
}

.inventory-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.inventory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.inventory-list-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.inventory-list-bar .clients-search {
  flex: 1 1 260px;
  margin: 0;
}

.inventory-list-bar .ghost-btn {
  flex: 0 0 auto;
}

.inventory-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: #fffdf8;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #3a2416;
}

.inventory-row img,
.inventory-row .inventory-photo-empty {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.inventory-row .inventory-photo-empty {
  border: 0;
  font-size: 12px;
}

.inventory-row h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #3a2416;
}

.inventory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 8px;
}

.inventory-meta p,
.inventory-desc {
  margin: 0;
  color: #3a2416;
}

.inventory-desc {
  margin-top: 8px;
  white-space: pre-wrap;
}

.inventory-meta span,
.inventory-desc span {
  display: block;
  margin-bottom: 2px;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6a32;
}

.inventory-row-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.hall-iorga .inventory-row {
  background: #2c3f38;
  border-color: #4a635a;
}

body.hall-iorga .inventory-row h3,
body.hall-iorga .inventory-row p,
body.hall-iorga .inventory-row .inventory-photo-empty {
  color: #f6f0e3 !important;
  -webkit-text-fill-color: #f6f0e3 !important;
}

body.hall-iorga .inventory-meta span,
body.hall-iorga .inventory-desc span {
  color: #d4af77 !important;
  -webkit-text-fill-color: #d4af77 !important;
}

@media (max-width: 720px) {
  .inventory-view {
    padding-left: 12px;
    padding-right: 12px;
  }

  .inventory-photo-row {
    align-items: flex-start;
  }

  .inventory-row {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
  }

  .inventory-row img,
  .inventory-row .inventory-photo-empty {
    width: 92px;
    height: 72px;
  }

  .inventory-row-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .inventory-list-bar {
    flex-wrap: wrap;
  }

  .inventory-list-bar .ghost-btn {
    width: 100%;
  }
}

.inventory-print-sheet {
  display: none;
}

@media print {
  body.printing-inventory > *:not(#inventory-print-sheet) {
    display: none !important;
  }

  body.printing-inventory,
  body.printing-inventory #inventory-print-sheet {
    display: block !important;
    background: #fff !important;
    background-image: none !important;
    color: #3a2416 !important;
  }

  body.printing-inventory #inventory-print-sheet {
    padding: 12mm 14mm;
  }

  body.printing-inventory #inventory-print-sheet,
  body.printing-inventory #inventory-print-sheet * {
    color: #3a2416 !important;
    -webkit-text-fill-color: #3a2416 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.printing-inventory #inventory-print-sheet {
    background: #fff !important;
  }

  body.printing-inventory .inventory-print-table {
    width: 100%;
    border-collapse: collapse;
  }

  body.printing-inventory .inventory-print-table thead {
    display: table-header-group;
  }

  body.printing-inventory .inventory-print-kicker {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  body.printing-inventory .inventory-print-table h1 {
    margin: 2mm 0 1mm;
    font-family: "Cinzel", serif;
    font-size: 22px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.printing-inventory .inventory-print-meta {
    margin: 0 0 4mm;
    font-size: 12px;
  }

  body.printing-inventory .inventory-print-row {
    break-inside: avoid;
    page-break-inside: avoid;
    border-top: 0.3mm solid #c4b49a;
  }

  body.printing-inventory .inventory-print-row td {
    vertical-align: top;
    padding: 3.5mm 0;
  }

  body.printing-inventory .inventory-print-row td:first-child {
    width: 38mm;
    padding-right: 4mm;
  }

  body.printing-inventory .inventory-print-row img,
  body.printing-inventory .inventory-print-empty {
    display: block;
    width: 34mm;
    height: 26mm;
    object-fit: cover;
    border: 0.2mm solid #c4b49a;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.printing-inventory .inventory-print-empty {
    display: grid;
    place-items: center;
    font-size: 10px;
    text-align: center;
  }

  body.printing-inventory .inventory-print-row h2 {
    margin: 0 0 1.5mm;
    font-family: "Cinzel", serif;
    font-size: 16px;
    letter-spacing: 0.04em;
  }

  body.printing-inventory .inventory-print-row p {
    margin: 0 0 1mm;
    font-size: 13px;
    white-space: pre-wrap;
  }

  body.printing-inventory .inventory-print-row span {
    font-family: "Cinzel", serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

