.print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}

.print-actions .ghost-btn {
  width: auto;
}

.print-actions.degustare-print-actions {
  display: none;
}

.modal-overlay.is-degustare .print-actions.degustare-print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.print-actions.coffee-print-actions {
  display: none;
}

.modal-overlay.is-coffee .print-actions.coffee-print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.print-actions.masa-print-actions {
  display: none;
}

.modal-overlay.is-masa .print-actions.masa-print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.print-actions.catering-print-actions {
  display: none;
}

.modal-overlay.is-catering .print-actions.catering-print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 68;
  overflow: auto;
  background: #f6f0e3;
  padding: 18px 16px 40px;
}

.sheet-preview-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto 16px;
  padding: 14px 18px;
  background: linear-gradient(180deg, var(--ivory), #faf4e8);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}

.sheet-preview-bar h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  color: var(--brown);
}

.sheet-edit-hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--brown-soft, #7a5a3c);
  max-width: 42ch;
}

.sheet-edit-banner {
  position: sticky;
  top: 78px;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto 14px;
  padding: 10px 14px;
  background: #fff4d6;
  border: 1px solid #c4a35a;
  color: #5c3317;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: var(--shadow);
}

.sheet-edit-banner strong {
  font-family: "Cinzel", serif;
  letter-spacing: 0.04em;
}

.sheet-preview-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sheet-preview-actions .gold-btn,
.sheet-preview-actions .ghost-btn {
  width: auto;
}

#sheet-edit-btn.is-on {
  background: rgba(196, 163, 90, 0.22);
  border-color: #c4a35a;
  color: #5c3317;
}

.sheet-overlay.is-editing #print-root .sheet {
  outline: 2px dashed rgba(196, 163, 90, 0.85);
  outline-offset: 4px;
  cursor: text;
}

.sheet-overlay.is-editing #print-root .sheet:focus,
.sheet-overlay.is-editing #print-root .sheet:focus-within {
  outline-color: #9a7840;
}

.sheet {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 32px 24px;
  background: #fffdf8;
  color: #3a2416;
  border: 1px solid #c4a35a;
  box-shadow: var(--shadow);
}

.sheet-head {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid #c4a35a;
}

.sheet-logo {
  width: 88px;
  height: auto;
}

.sheet-kicker,
.sheet-audience,
.sheet-manager {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a7840;
}

.sheet-manager {
  margin-top: 6px;
  color: #5c3317;
}

.sheet h1 {
  margin: 4px 0;
  font-family: "Cinzel", serif;
  font-size: 26px;
  color: #5c3317;
}

.sheet-stamp {
  text-align: right;
  font-family: "Cinzel", serif;
  font-size: 12px;
  color: #5c3317;
}

.sheet-stamp span {
  display: block;
  margin-top: 4px;
  color: #9a7840;
}

.sheet-event-title {
  margin: 12px 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-style: italic;
  color: #6b3e26;
}

.sheet-block {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(92, 51, 23, 0.14);
  break-inside: avoid;
  page-break-inside: avoid;
}

.sheet-block.sheet-block-flow,
.sheet-block.sheet-offer-products,
.sheet-block-grow {
  break-inside: auto;
  page-break-inside: auto;
}

.sheet-block h2 {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a7840;
}

.sheet-ops-pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  align-items: stretch;
}

.sheet-ops-pairs > .sheet-block {
  margin-bottom: 0;
  padding: 10px 0 12px;
}

.sheet-ops-pairs > .sheet-block:nth-child(odd):not(.wide) {
  padding-right: 14px;
  border-right: 1px solid rgba(92, 51, 23, 0.14);
}

.sheet-ops-pairs > .sheet-block:nth-child(even):not(.wide) {
  padding-left: 14px;
}

.sheet-ops-pairs > .wide {
  grid-column: 1 / -1;
  padding-left: 0;
  padding-right: 0;
  border-right: 0;
}

.sheet-ops-rules {
  margin-top: 2px;
}

.sheet-ops .sheet-page-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  box-sizing: border-box;
}

.sheet-ops .sheet-page-info .sheet-head {
  padding-bottom: 6px;
  gap: 10px;
}

.sheet-ops .sheet-page-info .sheet-logo {
  width: 64px;
}

.sheet-ops .sheet-page-info .sheet-kicker,
.sheet-ops .sheet-page-info .sheet-audience,
.sheet-ops .sheet-page-info .sheet-manager {
  font-size: 10px;
  letter-spacing: 0.1em;
}

.sheet-ops .sheet-page-info h1 {
  font-size: 22px;
}

.sheet-ops .sheet-page-info .sheet-stamp {
  font-size: 12px;
}

.sheet-ops .sheet-page-info .sheet-event-title {
  margin: 4px 0 6px;
  font-size: 18px;
}

.sheet-ops .sheet-page-info .sheet-block h2,
.sheet-ops .sheet-page-info .sheet-subhead {
  font-size: 11px;
  margin-bottom: 3px;
}

.sheet-ops .sheet-page-info .sheet-grid {
  gap: 4px 12px;
}

.sheet-ops .sheet-page-info .sheet-grid span {
  font-size: 10px;
}

.sheet-ops .sheet-page-info .sheet-grid strong {
  margin-top: 1px;
  font-size: 13px;
  line-height: 1.2;
}

.sheet-ops .sheet-page-info .sheet-notes,
.sheet-ops .sheet-page-info .sheet-empty {
  font-size: 12px;
  line-height: 1.3;
}

.sheet-ops .sheet-page-info .sheet-chips {
  gap: 4px;
  margin-top: 4px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.sheet-ops .sheet-page-info .sheet-chips li {
  padding: 3px 7px;
  font-size: 11px;
}

.sheet-ops .sheet-page-info .sheet-ops-pairs {
  flex: 0 0 auto;
  align-content: start;
  align-items: start;
  row-gap: 0;
}

.sheet-ops .sheet-page-info .sheet-ops-pairs > .sheet-block {
  padding: 3px 0 5px;
}

.sheet-ops .sheet-page-info .sheet-block {
  margin-bottom: 0;
  padding-bottom: 4px;
}

.sheet-ops .sheet-page-info .sheet-sign {
  margin-top: 8px;
}

.sheet-ops .sheet-page-info .sheet-rules {
  margin: 0;
  padding-left: 1.1em;
  font-size: 12px;
  line-height: 1.35;
  columns: 2;
  column-gap: 16px;
}

.sheet-ops .sheet-page-info .sheet-rules li {
  break-inside: avoid;
  margin: 0 0 2px;
}

.sheet-ops .sheet-page {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px dashed #c4a35a;
}

.sheet-ops .sheet-page-info {
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

.sheet-ops .sheet-page-info .sheet-sign {
  margin-top: 10px;
}

.sheet-ops .sheet-page-run {
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

.sheet-ops .sheet-page-run .sheet-ops-rules .sheet-rules {
  margin: 0;
  padding-left: 1.1em;
  font-size: 13px;
  line-height: 1.4;
  columns: 2;
  column-gap: 18px;
}

.sheet-ops .sheet-page-run .sheet-sign {
  margin-top: auto;
}

.sheet-ops .sheet-page-run .sheet-ops-pairs,
.sheet-ops .sheet-page-run-extra .sheet-ops-pairs {
  flex: 0 0 auto;
  align-content: start;
  align-items: start;
  row-gap: 0;
}

.sheet-ops .sheet-page-run .sheet-ops-pairs > .sheet-block,
.sheet-ops .sheet-page-run-extra .sheet-ops-pairs > .sheet-block {
  padding: 4px 0 6px;
}

.sheet-ops .sheet-page-run-extra .sheet-offer-products {
  flex: 1 1 auto;
}

.sheet-ops .sheet-page-run-extra .sheet-sign {
  margin-top: auto;
}

.sheet-ops .sheet-page:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.sheet-ops-hall.sheet {
  max-width: 210mm;
  padding: 0;
}

.sheet-ops-hall .sheet-page-hall-info,
.sheet-ops-hall .sheet-page-floor {
  min-height: 297mm;
  padding: 8mm 9mm 7mm;
  margin: 0 0 18px;
  border: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 0 0 1px rgba(92, 51, 23, 0.12);
}

.sheet-ops-hall .sheet-page-hall-info {
  height: auto;
  max-height: none;
  overflow: visible;
}

.sheet-ops-hall .sheet-page-floor {
  height: 297mm;
  max-height: 297mm;
  overflow: hidden;
}

.sheet-ops-hall .sheet-page-floor {
  margin-bottom: 0;
}

.sheet-ops-hall .sheet-head {
  padding-bottom: 4px;
  gap: 8px;
}

.sheet-ops-hall .sheet-logo {
  width: 52px;
}

.sheet-ops-hall .sheet-kicker,
.sheet-ops-hall .sheet-audience,
.sheet-ops-hall .sheet-manager {
  font-size: 9px;
}

.sheet-ops-hall h1 {
  font-size: 18px;
  margin: 0;
}

.sheet-ops-hall .sheet-event-title {
  margin: 0 0 2px;
  font-size: 15px;
}

.sheet-ops-hall .sheet-block {
  margin: 0;
  padding: 2px 0 3px;
}

.sheet-ops-hall .sheet-block h2,
.sheet-ops-hall .hall-one-seating h2,
.sheet-ops-hall .sheet-page-floor h2 {
  margin: 0 0 2px;
  font-size: 10px;
}

.sheet-ops-hall .sheet-grid {
  gap: 2px 8px;
}

.sheet-ops-hall .sheet-grid span {
  font-size: 8px;
}

.sheet-ops-hall .sheet-grid strong,
.sheet-ops-hall .sheet-notes,
.sheet-ops-hall .sheet-empty {
  font-size: 11px;
  line-height: 1.2;
}

.hall-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
  flex: 0 1 auto;
  overflow: visible;
  align-content: start;
}

.hall-info-grid > .wide {
  grid-column: 1 / -1;
}

.hall-info-grid .sheet-chips {
  gap: 3px;
  margin-top: 2px;
}

.hall-info-grid .sheet-chips li {
  padding: 1px 6px;
  font-size: 10px;
}

.hall-one-seating {
  flex: 0 1 auto;
  max-height: 28%;
  overflow: hidden;
}

.hall-one-seating .sheet-seating {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 6px;
}

.hall-one-seating .sheet-seat-card {
  padding: 3px 5px;
}

.hall-one-seating .sheet-seat-card h3 {
  font-size: 10px;
  margin: 0 0 2px;
}

.hall-one-seating .sheet-seat-card li,
.hall-one-seating .sheet-seat-card .sheet-empty {
  font-size: 9px;
  line-height: 1.2;
}

.sheet-ops-hall .sheet-sign {
  margin-top: 4px;
  flex: 0 0 auto;
}

.sheet-ops-hall .sheet-page-floor .sheet-floor.table-plan-floor {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
}

.sheet-page-floor h2,
.sheet-page-seating h2,
.sheet-page-legal h2 {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a7840;
}

.sheet-contract .sheet-page {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px dashed #c4a35a;
}

.sheet-contract .sheet-page:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.sheet-contract .sheet-page-info,
.sheet-contract .sheet-page-contract-mid,
.sheet-contract .sheet-page-contract-run,
.sheet-contract .sheet-page-legal {
  min-height: 1180px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.sheet-contract .sheet-page-info .sheet-spacer {
  flex: 1 1 auto;
  min-height: 48px;
}

.sheet-contract .sheet-page-info .sheet-contract-foot {
  margin-top: 0;
}

.sheet-contract .sheet-page-legal .sheet-sign {
  margin-top: 10px;
}

.sheet-contract h1 {
  font-size: 26px;
}

.sheet-contract .sheet-event-title {
  margin: 10px 0 14px;
  font-size: 22px;
}

.sheet-contract .sheet-block h2 {
  font-size: 13px;
  margin-bottom: 8px;
}

.sheet-contract .sheet-grid span {
  font-size: 11px;
}

.sheet-contract .sheet-grid strong {
  font-size: 16px;
}

.sheet-contract .sheet-notes,
.sheet-contract .sheet-empty,
.sheet-contract .sheet-note {
  font-size: 15px;
  line-height: 1.5;
}

.sheet-contract .sheet-chips li {
  font-size: 13px;
  padding: 6px 10px;
}

.sheet-articles {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.4;
}

.sheet-articles li {
  margin-bottom: 5px;
}

.sheet-contract .sheet-block p {
  margin: 0 0 6px;
  font-size: 12.5px;
  line-height: 1.4;
}

.sheet-consent-img {
  display: block;
  max-width: 360px;
  height: auto;
  max-height: 90px;
  margin-top: 8px;
  border: 1px solid #c4a35a;
  background: #fff;
}

.sheet-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.sheet-rules li {
  padding: 0 0 0 14px;
  position: relative;
}

.sheet-rules li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #9a7840;
}

.sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px 16px;
}

.sheet-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.sheet-grid-4 {
  grid-template-columns: 1fr 1fr;
}

.sheet-grid .wide {
  grid-column: 1 / -1;
}

.sheet-stay-group + .sheet-stay-group {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(196, 163, 90, 0.35);
}

.sheet-stay-kicker {
  margin: 0 0 6px;
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a7840;
}

.sheet-grid span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a7840;
}

.sheet-grid strong {
  display: block;
  margin-top: 2px;
  font-weight: 600;
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sheet-table th,
.sheet-table td {
  padding: 6px 0;
  border-bottom: 1px solid rgba(92, 51, 23, 0.12);
  text-align: left;
  vertical-align: top;
}

.sheet-table.money td:first-child,
.sheet-table.money th:first-child {
  padding-right: 16px;
}

.sheet-table.money td:last-child,
.sheet-table.money th:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  width: 1%;
}

.sheet-chips,
.sheet-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
}

.sheet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.sheet-chips li {
  padding: 4px 8px;
  border: 1px solid #c4a35a;
  background: rgba(196, 163, 90, 0.12);
  font-size: 12px;
}

.sheet-empty,
.sheet-note,
.sheet-deposit {
  margin: 8px 0 0;
  font-size: 13px;
  color: #6b3e26;
}

.sheet-subhead {
  margin: 16px 0 8px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c3317;
}

.sheet-notes {
  margin: 0;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.45;
}

.sheet-total {
  margin: 14px 0 6px;
  font-family: "Cinzel", serif;
  font-size: 18px;
  color: #5c3317;
}

.sheet-flag {
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid rgba(92, 51, 23, 0.18);
  font-size: 13px;
}

.sheet-flag.is-on {
  border-color: #c4a35a;
  background: rgba(196, 163, 90, 0.14);
}

.sheet-sign {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
  padding-top: 12px;
}

.sheet-offer .sheet-sign,
.sheet-kitchen .sheet-sign {
  grid-template-columns: 1fr 1fr;
}

.sheet-offer .sheet-page {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px dashed #c4a35a;
}

.sheet-offer .sheet-page:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

/* Previzualizare: 2 pagini A4, fără spații goale forțate */
.sheet-offer .sheet-page-offer-main,
.sheet-offer .sheet-page-offer-costs {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  box-sizing: border-box;
}

.sheet-offer .sheet-offer-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  align-items: start;
}

.sheet-offer .sheet-page-offer-costs .sheet-sign {
  margin-top: auto;
  flex: 0 0 auto;
}

.sheet-offer .sheet-head {
  padding-bottom: 12px;
  flex: 0 0 auto;
}

.sheet-offer h1 {
  font-size: 26px;
}

.sheet-offer .sheet-event-title {
  margin: 10px 0 14px;
  font-size: 22px;
  flex: 0 0 auto;
}

.sheet-offer .sheet-block {
  margin-bottom: 0;
  padding-bottom: 14px;
  flex: 0 0 auto;
}

.sheet-offer .sheet-block h2 {
  font-size: 13px;
  margin-bottom: 8px;
}

.sheet-offer .sheet-grid span {
  font-size: 11px;
}

.sheet-offer .sheet-grid strong {
  font-size: 16px;
}

.sheet-offer .sheet-table {
  font-size: 14px;
  width: 100%;
}

.sheet-offer .sheet-table th,
.sheet-offer .sheet-table td {
  padding: 8px 0;
}

.sheet-offer .sheet-total {
  font-size: 20px;
}

.sheet-offer .sheet-total-formula {
  margin: 2px 0 10px;
  font-size: 12px;
  line-height: 1.35;
  color: #6b3e26;
}

.sheet-offer .sheet-formula {
  display: block;
  margin-top: 3px;
  line-height: 1.4;
  white-space: normal;
  color: #6b3e26;
  font-weight: 400;
  font-size: 0.92em;
}

.sheet-offer .sheet-list,
.sheet-offer .sheet-note,
.sheet-offer .sheet-deposit,
.sheet-offer .sheet-empty {
  font-size: 15px;
  line-height: 1.5;
}

.sheet-offer .sheet-block-benefits .sheet-list {
  font-size: 15px;
  line-height: 1.45;
  columns: 1;
}

.sheet-offer .sheet-block-benefits .sheet-list li {
  margin-bottom: 4px;
  break-inside: avoid;
}

.sheet-offer .sheet-block-grow {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.sheet-offer .sheet-block-grow .sheet-table {
  flex: 1 1 auto;
}

.sheet-offer .sheet-page-offer-last .sheet-block h2 {
  font-size: 14px;
}

.sheet-offer .sheet-page-offer-last .sheet-list,
.sheet-offer .sheet-page-offer-last .sheet-block p {
  font-size: 16px;
  line-height: 1.55;
}

.sheet-offer .sheet-page-offer-last .sheet-grid strong {
  font-size: 17px;
}

.sheet-offer .sheet-page-offer-last .sheet-sign {
  margin-top: auto;
  flex: 0 0 auto;
}

.sheet-kitchen .sheet-head {
  padding-bottom: 14px;
  gap: 16px;
}

.sheet-kitchen .sheet-logo {
  width: 96px;
}

.sheet-kitchen h1 {
  font-size: 28px;
}

.sheet-kitchen .sheet-kicker,
.sheet-kitchen .sheet-audience,
.sheet-kitchen .sheet-manager {
  font-size: 11px;
}

.sheet-kitchen .sheet-stamp {
  font-size: 14px;
}

.sheet-kitchen .sheet-event-title {
  margin: 12px 0 16px;
  font-size: 24px;
}

.sheet-kitchen .sheet-block {
  margin-bottom: 10px;
  padding-bottom: 12px;
}

.sheet-kitchen .sheet-block h2,
.sheet-kitchen .sheet-subhead {
  margin-bottom: 8px;
  font-size: 13px;
}

.sheet-kitchen .sheet-grid {
  gap: 10px 18px;
}

.sheet-kitchen .sheet-grid span {
  font-size: 12px;
}

.sheet-kitchen .sheet-grid strong {
  margin-top: 3px;
  font-size: 17px;
  line-height: 1.3;
}

.sheet-kitchen .sheet-notes,
.sheet-kitchen .sheet-empty {
  font-size: 16px;
  line-height: 1.5;
}

.sheet-kitchen .sheet-offer-products .sheet-note {
  margin: 0 0 10px;
  font-size: 15px;
}

.sheet-kitchen .sheet-product-group {
  margin-top: 12px;
}

.sheet-kitchen .sheet-product-group .sheet-subhead {
  margin: 0 0 8px;
  font-size: 13px;
}

.sheet-kitchen .sheet-products,
.sheet-kitchen .sheet-products.sheet-products-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
  column-count: 1;
  font-size: 15px;
  line-height: 1.45;
}

.sheet-kitchen .sheet-products li,
.sheet-kitchen .sheet-check-item {
  break-inside: avoid;
  margin: 0 0 7px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sheet-kitchen .sheet-check {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 3px;
  border: 1.6px solid #5c3317;
  background: #fff;
  box-sizing: border-box;
}

.sheet-kitchen .sheet-check-label {
  flex: 1 1 auto;
}

.sheet-kitchen .sheet-product-group .sheet-notes {
  font-size: 15px;
  line-height: 1.45;
}

.sheet-kitchen .sheet-page {
  min-height: 1180px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sheet-kitchen .sheet-page-kitchen-main .sheet-ops-pairs {
  flex: 1 1 auto;
  align-content: start;
}

.sheet-kitchen .sheet-page-kitchen-run .sheet-offer-products {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.sheet-kitchen .sheet-kitchen-notes {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.sheet-kitchen .sheet-kitchen-notes-lines {
  flex: 1 1 auto;
  min-height: 100px;
  margin-top: 10px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 27px,
    rgba(92, 51, 23, 0.22) 27px,
    rgba(92, 51, 23, 0.22) 28px
  );
}

.sheet-write-lines {
  min-height: 140px;
  margin-top: 8px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 27px,
    rgba(92, 51, 23, 0.22) 27px,
    rgba(92, 51, 23, 0.22) 28px
  );
}

.sheet-kitchen .sheet-sign {
  margin-top: auto;
}

.sheet-kitchen .sheet-sign div {
  min-height: 80px;
}

.sheet-floor {
  flex: none;
  width: 100%;
  max-width: 620px;
  height: auto;
  aspect-ratio: 0.64 / 1;
  margin: 0 auto;
  pointer-events: none;
}

.sheet-floor .tp-table {
  cursor: default;
}

.sheet-floor .tp-scale-handle {
  display: none;
}

.sheet-seating {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.sheet-seat-card {
  padding: 8px 10px;
  border: 1px solid rgba(196, 163, 90, 0.45);
  background: rgba(255, 250, 240, 0.7);
}

.sheet-seat-card h3 {
  margin: 0 0 6px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c3317;
}

.sheet-seat-card h3 span {
  display: block;
  margin-top: 2px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: #9a7840;
  font-weight: 500;
}

.sheet-seat-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.4;
}

.sheet-sign div {
  min-height: 72px;
  border-top: 1px solid #5c3317;
  padding-top: 8px;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sheet-sign span {
  display: block;
  margin-top: 6px;
  font-family: "Source Sans 3", sans-serif;
  letter-spacing: 0;
  text-transform: none;
  color: #6b3e26;
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  @page {
    @top-left { content: none; }
    @top-center { content: none; }
    @top-right { content: none; }
    @bottom-left { content: none; }
    @bottom-center { content: none; }
    @bottom-right { content: none; }
  }

  body.sheet-print > *:not(#sheet-overlay) {
    display: none !important;
  }

  .sheet-overlay.is-printing #print-root .sheet,
  .sheet-overlay.is-printing #print-root .sheet[contenteditable] {
    outline: none !important;
    cursor: default;
  }

  .sheet-overlay.is-printing {
    position: static;
    inset: auto;
    overflow: visible;
    background: #fff;
    padding: 0;
  }

  .sheet-overlay.is-printing .sheet-preview-bar,
  .sheet-overlay.is-printing .sheet-edit-banner,
  .sheet-overlay.is-printing .app-credit {
    display: none !important;
  }

  .sheet {
    max-width: none;
    margin: 0;
    border: 0;
    box-shadow: none;
    padding: 10mm;
    box-sizing: border-box;
  }

  .sheet:has(> .sheet-page) {
    padding: 0;
  }

  .sheet-page {
    padding: 10mm;
    box-sizing: border-box;
  }

  /* Secțiuni coerente — nu se rup între pagini; listele lungi pot continua */
  .sheet-block:not(.sheet-block-flow):not(.sheet-block-grow) {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-ops-pairs > .sheet-block,
  .sheet-ops-pairs > .wide,
  .sheet-ops-rules,
  .sheet-ceremony,
  .sheet-stay-group,
  .sheet-product-group,
  .sheet-seat-card,
  .blank-cazare,
  .blank-special,
  .blank-notes,
  .blank-sign-box {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-offer-products {
    break-inside: auto;
    page-break-inside: auto;
  }

  .sheet-product-group {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-table.money thead {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-table.money tbody tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-block-grow .sheet-total,
  .sheet-block-grow .sheet-deposit,
  .sheet-block-grow .sheet-flag,
  .sheet-block-grow .sheet-note {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet:has(> .sheet-page) > .sheet-page {
    min-height: 297mm;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    box-sizing: border-box;
  }

  .sheet:has(> .sheet-page) > .sheet-page > .sheet-head,
  .sheet:has(> .sheet-page) > .sheet-page > .sheet-event-title,
  .sheet:has(> .sheet-page) > .sheet-page > .sheet-sign {
    flex: 0 0 auto;
  }

  .sheet:has(> .sheet-page) > .sheet-page > .sheet-block {
    flex: 0 0 auto;
  }

  .sheet:has(> .sheet-page) > .sheet-page > .sheet-block-grow {
    flex: 1 1 auto;
  }

  .sheet-head,
  .sheet-sign,
  .sheet-stamp {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-kitchen {
    padding: 0;
  }

  .sheet-kitchen .sheet-page {
    min-height: 297mm;
    padding: 10mm;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
  }

  .sheet-kitchen .sheet-page-kitchen-main {
    break-after: page;
    page-break-after: always;
  }

  .sheet-kitchen .sheet-page-kitchen-main > .sheet-block,
  .sheet-kitchen .sheet-page-kitchen-main .sheet-ops-pairs > .sheet-block {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-kitchen .sheet-page-kitchen-main .sheet-ops-pairs {
    flex: 1 1 auto;
    align-content: start;
  }

  .sheet-kitchen .sheet-page-kitchen-run {
    break-before: page;
    page-break-before: always;
  }

  .sheet-kitchen .sheet-page-kitchen-run .sheet-offer-products {
    flex: 1 1 auto;
    break-inside: auto;
    page-break-inside: auto;
  }

  .sheet-kitchen .sheet-page-kitchen-run .sheet-kitchen-notes {
    flex: 0 0 auto;
    min-height: 42mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-kitchen .sheet-kitchen-notes-lines {
    min-height: 28mm;
  }

  .sheet-kitchen .sheet-page-kitchen-run .sheet-sign {
    margin-top: auto;
  }

  .sheet-kitchen .sheet-head {
    padding-bottom: 12px;
    gap: 14px;
  }

  .sheet-kitchen .sheet-logo {
    width: 88px;
  }

  .sheet-kitchen h1 {
    font-size: 26px;
  }

  .sheet-kitchen .sheet-event-title {
    margin: 10px 0 12px;
    font-size: 22px;
  }

  .sheet-kitchen .sheet-block {
    margin-bottom: 0;
    padding-bottom: 10px;
  }

  .sheet-kitchen .sheet-block h2,
  .sheet-kitchen .sheet-subhead {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .sheet-kitchen .sheet-grid {
    gap: 10px 16px;
  }

  .sheet-kitchen .sheet-grid strong {
    font-size: 17px;
  }

  .sheet-kitchen .sheet-notes,
  .sheet-kitchen .sheet-empty {
    font-size: 16px;
    line-height: 1.5;
  }

  .sheet-kitchen .sheet-offer-products h2 {
    font-size: 14px;
  }

  .sheet-kitchen .sheet-offer-products .sheet-note {
    font-size: 15px;
  }

  .sheet-kitchen .sheet-products,
  .sheet-kitchen .sheet-products.sheet-products-flow {
    columns: 1 !important;
    column-count: 1 !important;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.5;
  }

  .sheet-kitchen .sheet-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 8px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-kitchen .sheet-check {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-top: 4px;
    border: 1.5px solid #5c3317;
    background: #fff;
  }

  .sheet-kitchen .sheet-product-group {
    break-inside: auto;
    page-break-inside: auto;
    margin-top: 12px;
  }

  .sheet-kitchen .sheet-product-group .sheet-subhead {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .sheet-kitchen .sheet-product-group .sheet-notes {
    font-size: 15px;
    line-height: 1.5;
  }

  .sheet-kitchen .sheet-sign {
    margin-top: auto;
    padding-top: 12px;
    flex: 0 0 auto;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-kitchen .sheet-sign div {
    min-height: 72px;
  }

  .sheet-offer .sheet-page {
    margin: 0;
    padding: 6mm 7mm;
    border: 0;
  }

  .sheet-offer.sheet:has(> .sheet-page) > .sheet-page-offer-main,
  .sheet-offer.sheet:has(> .sheet-page) > .sheet-page-offer-costs,
  .sheet-offer .sheet-page-offer-main,
  .sheet-offer .sheet-page-offer-costs {
    min-height: 0 !important;
    height: 297mm;
    max-height: 297mm;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    gap: 5px;
    box-sizing: border-box;
  }

  .sheet-offer .sheet-page-offer-main {
    break-after: page;
    page-break-after: always;
  }

  .sheet-offer .sheet-page-offer-costs {
    break-before: page;
    page-break-before: always;
    break-after: auto;
    page-break-after: auto;
  }

  .sheet-offer .sheet-offer-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
    align-items: start;
    flex: 1 1 auto;
    min-height: 0;
  }

  .sheet-offer .sheet-page-offer-main > .sheet-block,
  .sheet-offer .sheet-offer-split > .sheet-block {
    break-inside: auto;
    page-break-inside: auto;
    margin: 0;
    padding-bottom: 3px;
  }

  .sheet-offer .sheet-page-offer-costs > .sheet-block-grow {
    flex: 1 1 auto;
    min-height: 0;
    break-inside: auto;
    page-break-inside: auto;
    padding-bottom: 3px;
  }

  .sheet-offer .sheet-page-offer-costs .sheet-sign {
    margin-top: 4px;
    flex: 0 0 auto;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-offer .sheet-page-offer-costs .sheet-sign div {
    min-height: 40px;
    font-size: 11px;
  }

  .sheet-offer .sheet-table,
  .sheet-offer .sheet-table tr,
  .sheet-offer .sheet-table thead,
  .sheet-offer .sheet-table tbody {
    break-inside: auto;
    page-break-inside: auto;
  }

  .sheet-offer .sheet-head {
    padding-bottom: 4px;
    gap: 8px;
  }

  .sheet-offer .sheet-logo {
    width: 58px;
  }

  .sheet-offer h1 {
    font-size: 21px;
  }

  .sheet-offer .sheet-event-title {
    margin: 2px 0 4px;
    font-size: 17px;
  }

  .sheet-offer .sheet-kicker,
  .sheet-offer .sheet-audience,
  .sheet-offer .sheet-manager {
    font-size: 10px;
  }

  .sheet-offer .sheet-block h2 {
    font-size: 11px;
    margin-bottom: 3px;
  }

  .sheet-offer .sheet-grid {
    gap: 3px 10px;
  }

  .sheet-offer .sheet-grid span {
    font-size: 10px;
  }

  .sheet-offer .sheet-grid strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .sheet-offer .sheet-list,
  .sheet-offer .sheet-note,
  .sheet-offer .sheet-deposit,
  .sheet-offer .sheet-empty,
  .sheet-offer .sheet-flag {
    font-size: 11.5px;
    line-height: 1.28;
    margin: 0 0 2px;
  }

  .sheet-offer .sheet-block-benefits .sheet-list {
    font-size: 11px;
    line-height: 1.28;
    columns: 1;
  }

  .sheet-offer .sheet-block-benefits .sheet-list li,
  .sheet-offer .sheet-list li {
    margin-bottom: 2px;
  }

  .sheet-offer .sheet-table {
    font-size: 11.5px;
  }

  .sheet-offer .sheet-table th,
  .sheet-offer .sheet-table td {
    padding: 3px 0;
    vertical-align: top;
  }

  .sheet-offer .sheet-formula {
    font-size: 10px;
    display: block;
    margin-top: 2px;
    line-height: 1.35;
    white-space: normal;
  }

  .sheet-offer .sheet-total {
    font-size: 16px;
    margin: 4px 0 0;
  }

  .sheet-offer .sheet-total-formula {
    font-size: 10px;
    margin: 1px 0 4px;
  }

  .sheet-offer .sheet-page-offer-last {
    display: none !important;
  }

  .sheet-ops .sheet-block {
    break-inside: auto;
    page-break-inside: auto;
    margin-bottom: 0;
    padding-bottom: 4px;
  }

  .sheet-ops .sheet-block h2 {
    margin-bottom: 3px;
    break-after: avoid;
    page-break-after: avoid;
  }

  .sheet-ops .sheet-ops-pairs {
    column-gap: 14px;
    break-inside: auto;
    page-break-inside: auto;
  }

  .sheet-ops .sheet-ops-pairs > .sheet-block {
    break-inside: auto;
    page-break-inside: auto;
  }

  .sheet-ops .sheet-page {
    margin: 0;
    padding: 7mm 9mm;
    border: 0;
  }

  /* Pagina de detalii curge pe A4: fără înălțime forțată, fără goluri uriașe */
  .sheet-ops.sheet:has(> .sheet-page) > .sheet-page-info,
  .sheet-ops .sheet-page-info {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    gap: 0;
    break-after: page;
    page-break-after: always;
    orphans: 3;
    widows: 3;
  }

  .sheet-ops .sheet-page-info .sheet-ops-pairs {
    display: grid;
    flex: none;
    align-content: start;
    align-items: start;
  }

  .sheet-ops .sheet-page-info .sheet-notes,
  .sheet-ops .sheet-page-info .sheet-empty {
    font-size: 11px;
    line-height: 1.3;
  }

  .sheet-ops .sheet-page-info .sheet-head {
    padding-bottom: 4px;
    gap: 8px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-ops .sheet-page-info .sheet-logo {
    width: 58px;
  }

  .sheet-ops .sheet-page-info h1 {
    font-size: 20px;
  }

  .sheet-ops .sheet-page-info .sheet-event-title {
    margin: 2px 0 4px;
    font-size: 16px;
    break-after: avoid;
    page-break-after: avoid;
  }

  .sheet-ops .sheet-page-info .sheet-grid strong {
    font-size: 12px;
  }

  .sheet-ops .sheet-page-info .sheet-block {
    margin-bottom: 0;
    padding-bottom: 3px;
    break-inside: auto;
    page-break-inside: auto;
  }

  .sheet-ops .sheet-page-info .sheet-block h2,
  .sheet-ops .sheet-page-info .sheet-subhead {
    font-size: 10px;
    margin-bottom: 2px;
    break-after: avoid;
    page-break-after: avoid;
  }

  .sheet-ops .sheet-page-info .sheet-grid {
    gap: 2px 10px;
  }

  .sheet-ops .sheet-page-info .sheet-grid > div {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-ops .sheet-page-info .sheet-sign {
    margin-top: 8px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-ops .sheet-page-info .sheet-sign div {
    min-height: 38px;
  }

  .sheet-ops .sheet-page-info .sheet-chips {
    break-inside: auto;
    page-break-inside: auto;
  }

  .sheet-ops .sheet-page-info .sheet-chips li {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-ops .sheet-page-info .sheet-ops-rules,
  .sheet-ops .sheet-page-info .sheet-ops-rules .sheet-rules {
    break-inside: auto;
    page-break-inside: auto;
  }

  .sheet-ops .sheet-page-info .sheet-ops-rules .sheet-rules {
    font-size: 11px;
    line-height: 1.3;
    columns: 2;
    column-gap: 12px;
  }

  .sheet-ops .sheet-page-info .sheet-block.wide {
    break-inside: auto;
    page-break-inside: auto;
  }

  .sheet-ops .sheet-page-run {
    break-before: auto;
    page-break-before: auto;
    break-after: auto;
    page-break-after: auto;
    min-height: 0;
    height: auto;
  }

  .sheet-ops .sheet-page-run-extra {
    break-before: page;
    page-break-before: always;
    break-after: page;
    page-break-after: always;
    min-height: 297mm;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
  }

  .sheet-ops .sheet-page-run .sheet-ops-pairs,
  .sheet-ops .sheet-page-run-extra .sheet-ops-pairs {
    flex: 0 0 auto;
    align-content: start;
    align-items: start;
    row-gap: 0;
    column-gap: 14px;
  }

  .sheet-ops .sheet-page-run .sheet-ops-pairs > .sheet-block,
  .sheet-ops .sheet-page-run-extra .sheet-ops-pairs > .sheet-block {
    padding: 3px 0 5px;
  }

  .sheet-ops .sheet-page-run .sheet-block h2,
  .sheet-ops .sheet-page-run-extra .sheet-block h2 {
    margin-bottom: 3px;
  }

  .sheet-ops .sheet-page-run .sheet-grid,
  .sheet-ops .sheet-page-run-extra .sheet-grid {
    gap: 4px 12px;
  }

  .sheet-ops .sheet-page-run .sheet-chips {
    gap: 4px;
    margin-top: 4px;
  }

  .sheet-ops .sheet-page-run .sheet-notes,
  .sheet-ops .sheet-page-run .sheet-empty,
  .sheet-ops .sheet-page-run-extra .sheet-notes,
  .sheet-ops .sheet-page-run-extra .sheet-empty {
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
  }

  .sheet-ops .sheet-page-run .sheet-sign {
    margin-top: auto;
  }

  .sheet-ops .sheet-page-run-extra .sheet-offer-products {
    flex: 1 1 auto;
  }

  .sheet-ops .sheet-page-run-extra .sheet-products-flow {
    column-count: 2;
    column-gap: 16px;
  }

  .sheet-ops .sheet-page-run-extra .sheet-sign {
    margin-top: auto;
  }

  .sheet-ops .sheet-page-floor {
    break-before: page;
    page-break-before: always;
    break-after: auto;
    page-break-after: auto;
    height: 297mm;
    max-height: 297mm;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .sheet-ops .sheet-page-floor h2 {
    flex: 0 0 auto;
    margin: 0 0 6px;
  }

  .sheet-ops .sheet-page-floor .sheet-floor.table-plan-floor {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-height: 230mm;
    height: 250mm;
    aspect-ratio: auto;
    break-inside: avoid;
    overflow: hidden;
  }

  .sheet-ops .sheet-page-seating {
    break-before: page;
    page-break-before: always;
    break-after: auto;
    page-break-after: auto;
    min-height: 297mm;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .sheet-ops .sheet-page-seating .sheet-seating {
    flex: 1 1 auto;
  }

  .sheet-ops .sheet-page-seating .sheet-sign {
    margin-top: auto;
  }

  .sheet-ops .sheet-page:last-child,
  .sheet-contract .sheet-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .sheet-ops-hall.sheet {
    padding: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .sheet-ops-hall .sheet-page-hall-info,
  .sheet-ops-hall .sheet-page-floor {
    min-height: 0 !important;
    padding: 6mm 7mm !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column;
    gap: 3px !important;
  }

  .sheet-ops-hall .sheet-page-hall-info {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
    break-after: page !important;
    page-break-after: always !important;
    break-before: auto !important;
    page-break-before: auto !important;
  }

  .sheet-ops-hall .sheet-page-floor {
    height: 297mm !important;
    max-height: 297mm !important;
    min-height: 297mm !important;
    overflow: hidden;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    break-before: page !important;
    page-break-before: always !important;
    break-after: auto !important;
    page-break-after: auto !important;
  }

  .sheet-ops-hall .hall-info-grid {
    flex: 0 1 auto;
    min-height: auto;
    overflow: visible !important;
  }

  .sheet-ops-hall .hall-one-seating {
    max-height: 62mm;
  }

  .sheet-ops-hall .sheet-sign {
    margin-top: 2px;
  }

  .sheet-ops-hall .sheet-page-floor .sheet-floor.table-plan-floor {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-height: 230mm;
    height: 250mm;
    aspect-ratio: auto;
    break-inside: avoid;
    overflow: hidden;
  }

  .sheet-contract .sheet-page {
    margin: 0;
    padding: 10mm;
    border: 0;
  }

  .sheet-contract .sheet-page-info {
    min-height: 297mm;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    break-after: page;
    page-break-after: always;
  }

  .sheet-contract .sheet-page-info .sheet-spacer {
    flex: 1 1 auto;
    min-height: 12mm;
  }

  .sheet-contract .sheet-page-info .sheet-contract-foot {
    margin-top: 0;
  }

  .sheet-contract .sheet-page-run {
    break-before: page;
    page-break-before: always;
    break-after: auto;
    page-break-after: auto;
  }

  .sheet-contract .sheet-page-contract-mid,
  .sheet-contract .sheet-page-contract-run {
    min-height: 297mm;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    break-before: page;
    page-break-before: always;
    break-after: page;
    page-break-after: always;
  }

  .sheet-contract .sheet-page-legal {
    min-height: 297mm;
    max-height: 297mm;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: 8mm 10mm;
    box-sizing: border-box;
    break-before: page;
    page-break-before: always;
    break-after: auto;
    page-break-after: auto;
  }

  .sheet-contract .sheet-page-legal > .sheet-block,
  .sheet-contract .sheet-page-legal > .sheet-contract-consent,
  .sheet-contract .sheet-page-legal > .sheet-note {
    flex: 0 0 auto;
    break-inside: auto;
    page-break-inside: auto;
    margin-bottom: 4px;
    padding-bottom: 4px;
  }

  .sheet-contract .sheet-page-legal h2 {
    margin: 0 0 4px;
    font-size: 11px;
  }

  .sheet-contract .sheet-page-legal .sheet-articles {
    margin: 0;
    padding-left: 16px;
    font-size: 10.5px;
    line-height: 1.28;
  }

  .sheet-contract .sheet-page-legal .sheet-articles li {
    margin-bottom: 3px;
  }

  .sheet-contract .sheet-page-legal .sheet-contract-consent p,
  .sheet-contract .sheet-page-legal .sheet-note,
  .sheet-contract .sheet-page-legal .sheet-empty {
    margin: 0 0 4px;
    font-size: 10.5px;
    line-height: 1.28;
  }

  .sheet-contract .sheet-page-legal .sheet-grid {
    gap: 4px 12px;
    margin-top: 4px;
  }

  .sheet-contract .sheet-page-legal .sheet-grid span {
    font-size: 9px;
  }

  .sheet-contract .sheet-page-legal .sheet-grid strong {
    font-size: 12px;
  }

  .sheet-contract .sheet-page-legal .sheet-consent-img {
    max-height: 48px;
    margin-top: 4px;
  }

  .sheet-contract .sheet-page-legal .sheet-sign {
    margin-top: 8px;
    padding-top: 6px;
    flex: 0 0 auto;
  }

  .sheet-contract .sheet-page-legal .sheet-sign div {
    min-height: 42px;
  }

  .sheet-contract h1 {
    font-size: 24px;
  }

  .sheet-contract .sheet-event-title {
    font-size: 20px;
  }

  .sheet-contract .sheet-grid strong {
    font-size: 15px;
  }

  .sheet-contract .sheet-notes,
  .sheet-contract .sheet-empty,
  .sheet-contract .sheet-note,
  .sheet-contract .sheet-articles {
    font-size: 14px;
    line-height: 1.5;
  }

  .sheet-contract .sheet-block {
    break-inside: auto;
    margin-bottom: 8px;
    padding-bottom: 6px;
  }

  .sheet-keep {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .sheet-consent-img {
    max-height: 70px;
  }

  .sheet-contract .sheet-sign {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-top: 16px;
  }

  .sheet-ops .sheet-seating {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px 10px;
  }

  .sheet-seat-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-ops .sheet-sign {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-top: 8px;
  }
}

.sheet-blank .sheet-page {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #c4a35a;
  min-height: 1180px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.sheet-blank .sheet-page-blank-consent .sheet-sign {
  margin-top: auto;
}

.sheet-blank .sheet-page:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.sheet-blank .sheet-block {
  margin: 0 0 12px;
  padding-bottom: 9px;
  break-inside: auto;
}

.sheet-blank .sheet-block h2 {
  margin: 0 0 7px;
}

.blank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.blank-grid.nums,
.blank-grid.times {
  grid-template-columns: repeat(4, 1fr);
}

.blank-sarmale-style {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 2px 0 4px;
}

.blank-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: #6b3e26;
}

.blank-field.wide,
.blank-pair {
  grid-column: 1 / -1;
}

.blank-pair {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: end;
}

.blank-line,
.blank-time {
  display: block;
  min-height: 22px;
  border-bottom: 1px solid #5c3317;
}

.blank-time {
  min-height: 24px;
  border: 1px solid #5c3317;
  border-radius: 0;
}

.stamp-line {
  min-width: 110px;
  margin: 4px 0 8px;
}

.blank-legend {
  margin: 8px 0 4px;
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a7840;
}

.sheet-blank .sheet-block h2 + .blank-legend {
  margin-top: 0;
}

.blank-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.blank-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #3a2416;
}

.blank-check i {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 1.4px solid #5c3317;
  background: #fff;
}

.blank-check em {
  font-style: italic;
  color: #9a7840;
  font-size: 11px;
}

.blank-hint {
  margin: 5px 0 0;
  font-size: 11px;
  color: #6b3e26;
}

.blank-notes {
  margin-top: 8px;
}

.blank-notes p {
  margin: 0 0 4px;
  font-size: 11px;
  color: #6b3e26;
}

.blank-ruled {
  min-height: 54px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 17px,
    rgba(92, 51, 23, 0.35) 17px,
    rgba(92, 51, 23, 0.35) 18px
  );
}

.blank-notes.is-tall .blank-ruled {
  min-height: 108px;
}

.blank-special p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin: 0 0 6px;
  font-size: 12px;
}

.blank-special .blank-field {
  min-width: 90px;
}

.blank-ack {
  margin: 8px 0 0;
}

.blank-sign-box {
  margin-top: 12px;
  min-height: 72px;
  border: 1px solid #c4a35a;
  padding: 8px 10px;
}

.blank-sign-box p {
  margin: 0;
  font-size: 11px;
  color: #9a7840;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "Cinzel", serif;
}

.sheet-blank .sheet-sign {
  margin-top: 16px;
}

@media print {
  .sheet-blank .sheet-page {
    min-height: 297mm;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    break-after: auto !important;
    page-break-after: auto !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
    margin: 0;
    padding: 10mm;
    border: 0;
    box-sizing: border-box;
  }

  .sheet-blank .sheet-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .sheet-blank .sheet-page-blank-menu,
  .sheet-blank .sheet-page-run,
  .sheet-blank .sheet-page-run-moments,
  .sheet-blank .sheet-page-run-extra,
  .sheet-blank .sheet-page-services,
  .sheet-blank .sheet-page-blank-rules,
  .sheet-blank .sheet-page-offer,
  .sheet-blank .sheet-page-blank-consent {
    break-before: page;
    page-break-before: always;
  }

  .sheet-blank .sheet-page-blank-menu,
  .sheet-blank .sheet-page-run,
  .sheet-blank .sheet-page-run-moments,
  .sheet-blank .sheet-page-run-extra,
  .sheet-blank .sheet-page-blank-rules,
  .sheet-blank .sheet-page-services,
  .sheet-blank .sheet-page-offer,
  .sheet-blank .sheet-page-blank-consent {
    min-height: 297mm;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .sheet-blank .sheet-page-blank-consent .sheet-sign {
    margin-top: auto;
  }

  .sheet-blank .sheet-page-blank-rules .sheet-block:last-of-type {
    margin-bottom: 0;
  }

  .sheet-blank .sheet-page-offer,
  .sheet-blank .sheet-page-blank-consent {
    break-after: auto;
    page-break-after: auto;
  }

  .sheet-blank .sheet-block {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    flex: 0 0 auto;
  }

  .sheet-blank .blank-notes.is-tall {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .sheet-blank .sheet-head {
    padding-bottom: 8px;
    gap: 12px;
    flex: 0 0 auto;
  }

  .sheet-blank .sheet-logo {
    width: 62px;
  }

  .sheet-blank h1 {
    font-size: 20px;
  }

  .sheet-blank,
  .sheet-blank .sheet-page {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .sheet-blank .blank-grid {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .blank-line,
  .blank-time {
    min-height: 20px;
  }

  .blank-ruled {
    min-height: 48px;
  }

  .blank-notes.is-tall .blank-ruled {
    min-height: 90px;
  }

  .blank-sign-box {
    min-height: 64px;
  }

  .sheet-blank .sheet-sign {
    margin-top: auto;
    flex: 0 0 auto;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

@media screen and (max-width: 800px) {
  .sheet-head,
  .sheet-grid,
  .sheet-ops-pairs,
  .sheet-rules,
  .sheet-sign,
  .sheet-offer .sheet-sign,
  .sheet-kitchen .sheet-sign,
  .sheet-seating,
  .print-actions {
    display: block;
  }

  .sheet-stamp {
    text-align: left;
    margin-top: 8px;
  }
}

/* Fișă de stoc bar — o pagină A4, tabele pe toată înălțimea */
.sheet.sheet-stock {
  width: 210mm;
  max-width: 210mm;
  min-height: 297mm;
  height: 297mm;
  padding: 7mm 7mm 6mm;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.sheet-stock .sheet-page-stock {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sheet-stock-top {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  align-items: start;
  flex: 0 0 auto;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(196, 163, 90, 0.55);
}

.sheet-stock-top .sheet-logo {
  width: 40px;
  height: auto;
}

.sheet-stock-top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.sheet-stock-top h1 {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
}

.sheet-stock-stamp {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a7840;
  white-space: nowrap;
}

.sheet-stock-event {
  margin: 1px 0 2px;
  font-family: "Cinzel", serif;
  font-size: 13px;
  line-height: 1.2;
  color: #3a2416;
}

.sheet-stock-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #5c3317;
}

.sheet-stock-line span + span::before {
  content: " · ";
  color: #c4a35a;
}

.sheet-stock-formula {
  font-style: italic;
  color: #6b3e26;
}

.sheet-stock-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.sheet-stock-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
  font-size: 12.5px;
}

.sheet-stock-table th,
.sheet-stock-table td {
  border: 1px solid #5c3317;
  padding: 0 5px;
  vertical-align: middle;
}

.sheet-stock-table thead th {
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: #5c3317;
  font-weight: 600;
  height: 28px;
  padding: 4px 4px;
}

.sheet-stock-table tbody tr {
  height: calc((100% - 28px) / var(--stock-rows, 18));
}

.sheet-stock-table .stock-nr {
  width: 30px;
  text-align: center;
  font-weight: 600;
}

.sheet-stock-table .stock-name {
  text-align: left;
  font-weight: 600;
  color: #3a2416;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-stock-table .stock-unit {
  font-weight: 500;
  font-size: 9.5px;
  color: #9a7840;
  letter-spacing: 0.02em;
}

.sheet-stock-table .stock-cell {
  width: 13.5%;
  padding: 0 2px;
}

.sheet-stock-table .stock-cell input {
  width: 100%;
  height: 100%;
  min-height: 22px;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 12.5px;
  color: #3a2416;
  padding: 4px 1px;
  box-sizing: border-box;
}

.sheet-stock-table .stock-cell input:focus {
  outline: 1px solid #c4a35a;
  background: rgba(255, 250, 240, 0.9);
}

.sheet-stock-table .stock-consum input {
  font-weight: 700;
  color: #5c3317;
  cursor: default;
}

.sheet-stock-table tbody tr:nth-child(even) {
  background: rgba(196, 163, 90, 0.1);
}

.sheet-stock-table .stock-empty {
  text-align: left;
  color: #6b3e26;
  font-style: italic;
  padding: 10px 8px;
}

.sheet-stock .sheet-sign {
  margin-top: 2px;
  flex: 0 0 auto;
}

.sheet-stock .sheet-sign div {
  min-height: 32px;
  font-size: 11px;
}

@media print {
  .sheet.sheet-stock {
    width: auto;
    max-width: none;
    min-height: 0;
    height: auto;
    padding: 0;
  }

  .sheet-stock.sheet:has(> .sheet-page) > .sheet-page-stock,
  .sheet-stock .sheet-page-stock {
    min-height: 0 !important;
    height: 297mm;
    max-height: 297mm;
    overflow: hidden;
    padding: 6mm 7mm 5mm;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    break-after: auto;
    page-break-after: auto;
  }

  .sheet-stock-top {
    grid-template-columns: 32px 1fr;
    gap: 7px;
    padding-bottom: 3px;
  }

  .sheet-stock-top .sheet-logo {
    width: 32px;
  }

  .sheet-stock-top h1 {
    font-size: 14px;
  }

  .sheet-stock-stamp {
    font-size: 9px;
  }

  .sheet-stock-event {
    margin: 0 0 1px;
    font-size: 12px;
  }

  .sheet-stock-line {
    font-size: 10px;
    line-height: 1.3;
  }

  .sheet-stock-cols {
    gap: 0 8px;
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
  }

  .sheet-stock-table {
    font-size: 11.5px;
    height: 100%;
  }

  .sheet-stock-table thead th {
    font-size: 9px;
    height: 24px;
    padding: 3px 2px;
  }

  .sheet-stock-table tbody tr {
    height: calc((100% - 24px) / var(--stock-rows, 18));
  }

  .sheet-stock-table th,
  .sheet-stock-table td {
    padding: 0 4px;
  }

  .sheet-stock-table .stock-name {
    font-size: 11px;
    line-height: 1.2;
  }

  .sheet-stock-table .stock-unit {
    font-size: 8.5px;
  }

  .sheet-stock-table .stock-nr {
    width: 26px;
  }

  .sheet-stock-table .stock-cell input {
    min-height: 0;
    padding: 2px 0;
    font-size: 11.5px;
    -webkit-appearance: none;
    appearance: none;
  }

  .sheet-stock-spacer {
    display: none;
  }

  .sheet-stock .sheet-sign {
    margin-top: 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-stock .sheet-sign div {
    min-height: 28px;
    font-size: 10px;
  }

  .sheet-stock-table thead {
    display: table-header-group;
  }

  .sheet-stock-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

.sheet-staff-schedule {
  max-width: 1120px;
}

.sheet-staff-schedule .schedule-word,
body.hall-iorga #print-root .schedule-word {
  color: #c41212 !important;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.sheet-staff-schedule .schedule-word.is-reception,
body.hall-iorga #print-root .schedule-word.is-reception {
  color: #17803d !important;
}

.sheet-staff-schedule .schedule-word.is-kitchen,
body.hall-iorga #print-root .schedule-word.is-kitchen {
  color: #1d4f91 !important;
}

.sheet-staff-schedule .schedule-word.is-housekeeping,
body.hall-iorga #print-root .schedule-word.is-housekeeping {
  color: #6b2d91 !important;
}

.sheet-staff-schedule .waiter-grid {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  table-layout: fixed;
}

.sheet-staff-schedule .waiter-grid th,
.sheet-staff-schedule .waiter-grid td {
  border: 1px solid #5c3317;
  text-align: center;
  vertical-align: middle;
}

.sheet-staff-schedule .waiter-grid th:first-child,
.sheet-staff-schedule .waiter-grid td:first-child {
  width: 18%;
  text-align: left;
  padding-left: 8px;
}

.sheet-staff-schedule .waiter-grid th {
  padding: 8px 2px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #3a2416;
  background: #f3e6d0;
  white-space: nowrap;
}

.sheet-staff-schedule .waiter-grid th:first-child {
  white-space: normal;
}

.sheet-staff-schedule .waiter-grid td {
  height: 68px;
  padding: 6px;
  background: #fffdf8;
}

@page staff-schedule {
  size: A4 landscape;
  margin: 8mm;
}

@page year-report {
  size: 297mm 210mm;
  margin: 6mm;
}

@media print {
  .sheet-staff-schedule {
    page: staff-schedule;
  }

  .sheet-staff-schedule .sheet-page {
    padding: 6mm 8mm;
  }

  .sheet-staff-schedule .waiter-grid {
    margin-top: 6mm;
  }

  .sheet-staff-schedule .waiter-grid th {
    padding: 2mm 1mm;
    font-size: 12px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .sheet-staff-schedule .waiter-grid td {
    height: 18mm;
  }
}

.kitchen-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1120px;
  margin: 0 auto 12px;
}

.kitchen-tools button {
  font: inherit;
  padding: 8px 12px;
  border: 1px solid #5c3317;
  background: #fffdf8;
  color: #3a2416;
  cursor: pointer;
}

.kitchen-month {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  table-layout: fixed;
}

.kitchen-month th,
.kitchen-month td {
  border: 1px solid #5c3317;
  text-align: center;
  vertical-align: middle;
  height: 52px;
  font-size: 16px;
  font-weight: 700;
}

.kitchen-month th {
  height: 32px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f3e6d0;
  color: #3a2416;
}

.kitchen-month td.is-empty {
  background: #f7f1e6;
}

.kitchen-month td.is-marinela,
.kitchen-legend i.is-marinela,
body.hall-iorga #print-root .kitchen-month td.is-marinela {
  background: #1d4f91 !important;
  color: #fff !important;
}

.kitchen-month td.is-daniela,
.kitchen-legend i.is-daniela,
body.hall-iorga #print-root .kitchen-month td.is-daniela {
  background: #b86a12 !important;
  color: #fff !important;
}

.kitchen-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-family: "Cinzel", serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #3a2416;
}

.kitchen-legend li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kitchen-legend i {
  width: 22px;
  height: 22px;
  border: 1px solid #5c3317;
}

body.hall-iorga #print-root .kitchen-legend,
body.hall-iorga #print-root .kitchen-legend li {
  color: #3a2416 !important;
}

@media print {
  .kitchen-tools {
    display: none !important;
  }

  .sheet-kitchen-schedule {
    page: staff-schedule;
  }

  .kitchen-month th,
  .kitchen-month td,
  .kitchen-legend i {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .kitchen-month td {
    height: 16mm;
  }
}
