@font-face {
  font-family: 'SesameFutura';
  src: url('../fonts/SesameFutura.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Use this font globally */
body,
input,
select,
button,
label,
a,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-family: 'SesameFutura', Arial, Helvetica, sans-serif;
}

/* Specific Sections */
#header,
.hero,
#footer {
  font-family: 'SesameFutura', Arial, Helvetica, sans-serif;
}

#header h1,
#header h2,
#footer p,
.hero h2 {
  font-family: 'SesameFutura', Arial, Helvetica, sans-serif;
}

body {
  /* font-family: 'Helvetica Neue', Arial, sans-serif; */
  font-family: 'SesameFutura', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  max-width: 210mm;
  margin: 0 auto;
  padding: 30px;
  color: #000;
  /*background-color: #fff6ec;*/

}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.logo {
  width: 120px;
  margin-right: 35px;
  margin-top: 20px;
}

.logo img {
  width: 150%;
  height: auto;
}

.business-info {
  flex: 1;
  text-align: right;
  margin-top: 30px;
}

.business-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-info {
  font-size: 14px;
}

.invoice-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.left-col {
  display: flex;
  flex-direction: column;
  width: 55%;
}

.guest-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-weight: 600;
  margin-bottom: 5px;
}

.input-group input,
.input-group select {
  padding: 6px 8px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  width: 100%;
  background-color: #fff !important;
  color: #000 !important;
}

.input-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="gray"><polygon points="0,0 16,0 8,8"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 30px;
}

.input-group input:focus,
.input-group input:active,
.input-group select:focus,
.input-group select:active {
  outline: none !important;
  box-shadow: none !important;
  background-color: #fff !important;
  border-color: #ccc !important;
  color: #000 !important;
}

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #000 !important;
  caret-color: #000 !important;
  transition: background-color 9999s ease-in-out 0s;
}

.left-col label {
  font-weight: 600;
  margin-bottom: 5px;
}

/* .left-col input {
  padding: 6px 8px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  width: 100%;
} */

.left-col input {
  padding: 6px 8px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  width: 100%;
  background-color: #fff !important;
  color: #000 !important;
}

/* Remove blue focus/background from name and contact inputs */
.left-col input:focus,
.left-col input:active {
  outline: none !important;
  box-shadow: none !important;
  background-color: #fff !important;
  border-color: #ccc !important;
  color: #000 !important;
}

/* Remove Chrome autofill blue color */
.left-col input:-webkit-autofill,
.left-col input:-webkit-autofill:hover,
.left-col input:-webkit-autofill:focus,
.left-col input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #000 !important;
  caret-color: #000 !important;
  transition: background-color 9999s ease-in-out 0s;
}


.right-col {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  width: 48%;
  text-align: left;
}

.tax-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 260px;
}

.input-group .field-value {
  display: block;
  padding: 6px 8px;
  font-size: 1em;
  font-weight: normal;
  box-sizing: border-box;
}

.tax-fields input[type="date"] {
  padding: 6px 8px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff !important;
  color: #000 !important;
}

.payment-info {
  margin-bottom: 30px;
}

.payment-info p {
    margin: 0 0 5px;
    line-height: 1.5;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #000;
  font-weight: 600;
  /*background-color: #f0e5d8;*/
  /*background-color: #E4E4E4;*/
}

td {
  padding: 8px 10px;
  border-bottom: 1px solid #e0e0e0;
}

/* Inputs inside table cells */
table tbody td input {
  width: 100%;
  padding: 6px 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  /* font-family: inherit; */
  font-size: 1em;
}

table tbody td input[type='number'] {
  text-align: right;
}

.totals {
  max-width: 340px;
  margin-left: auto;
  padding: 15px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.1em;
}

.payment-mode-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
}

.payment-mode-row label {
  font-weight: 600;
  white-space: nowrap;
}

#payment-mode {
  flex: 1;
  max-width: 280px;
  padding: 6px 8px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #000;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="gray"><polygon points="0,0 16,0 8,8"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 30px;
}

.folio-ledger .ledger-row {
  display: grid;
  grid-template-columns: 1fr 24px 90px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.folio-ledger .ledger-label {
  text-align: left;
}

.folio-ledger .ledger-op {
  text-align: center;
  font-size: 1.1em;
  color: #666;
}

.folio-ledger .ledger-value {
  text-align: right;
}

.folio-ledger .ledger-input-wrap {
  text-align: right;
}

.folio-ledger .ledger-input-wrap input {
  width: 90px;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: right;
  font-size: 1em;
  font-weight: 600;
  box-sizing: border-box;
}

.folio-ledger .ledger-divider {
  border-top: 1px solid #ccc;
  margin: 10px 0;
}

.folio-ledger .ledger-total .ledger-value,
.folio-ledger .ledger-folio .ledger-value,
.folio-ledger .ledger-balance .ledger-value {
  font-weight: 700;
}

.folio-ledger .ledger-folio,
.folio-ledger .ledger-balance {
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 1.15em;
}

.folio-ledger .ledger-folio {
  margin-bottom: 8px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

#add-service-btn {
  padding: 10px 20px;
  font-size: 1em;
  /*background-color: #007b5e;*/
  background-color: #c55527;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 20px;
}

#add-service-btn:hover {
  background-color: #c55527;
}

.buttons {
  margin-top: 30px;
  text-align: center;
}

.buttons button {
  padding: 10px 25px;
  font-size: 1em;
  background-color: #c55527;
  /*background-color: #007b5e;*/
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.buttons button:hover {
  background-color: #004d3a;
}

/* Remove button styles */
.remove-btn {
  background-color: transparent;
  border: none;
  color: black;
  font-weight: bold;
  font-size: 1.3em;
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
  user-select: none;
  margin-top: 7px;
  transition: color 0.2s ease;
}

.remove-btn:hover {
  color: darkred;
}

/* Style dropdown select boxes like inputs */
select.type-select,
select.category-select {
  width: 100%;
  padding: 6px 8px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  color: #000;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="gray"><polygon points="0,0 16,0 8,8"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 30px;
}

select.type-select:focus,
select.category-select:focus {
  outline: none;
  border-color: #007b5e;
  box-shadow: 0 0 3px #007b5e;
}

table tbody td input.type-input {
  width: 100%;
  padding: 6px 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1em;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.minibar-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.minibar-item {
  display: grid;
  grid-template-columns: 1fr 56px 108px;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #ececec;
}

.minibar-item:last-child {
  border-bottom: none;
}

.minibar-name {
  font-size: 0.95em;
}

.minibar-unit-price {
  font-size: 0.9em;
  color: #555;
  text-align: right;
}

.minibar-stepper .minibar-qty {
  width: 36px;
  min-width: 36px;
  text-align: center;
  border: 1px solid #ccc;
  border-left: none;
  border-right: none;
  border-radius: 0;
  padding: 6px 2px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.minibar-stepper .minibar-qty::-webkit-outer-spin-button,
.minibar-stepper .minibar-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.minibar-row td:nth-child(2) {
  vertical-align: top;
}

.minibar-row td:nth-child(3) input.price {
  font-weight: 600;
  text-align: right;
  background-color: #fafafa;
}

.minibar-qty-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  line-height: 1.3;
}

.minibar-qty-count {
  font-weight: 600;
  font-size: 1em;
}

.minibar-qty-note {
  font-size: 0.72em;
  color: #666;
  font-weight: normal;
  white-space: nowrap;
}

.minibar-item.minibar-selected .minibar-name {
  font-weight: 600;
}

.qty-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: 1px solid #c55527;
  background-color: #c55527;
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.qty-btn:hover {
  background-color: #a34420;
  border-color: #a34420;
}

.qty-minus {
  border-radius: 4px 0 0 4px;
}

.qty-plus {
  border-radius: 0 4px 4px 0;
}

table thead th:nth-child(4) {
  text-align: center;
}

table tbody td:nth-child(4) {
  text-align: center;
}

table tbody td:nth-child(4) input.qty {
  text-align: center;
}

#discount-amount {
  display: none;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

#discount-amount {
  display: none;
}

.discount-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.discount-controls label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.discount-controls input[type="radio"] {
  margin: 0;
}

.discount-type-selection {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
  padding-left: 10px;
}

.discount-type-selection label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.discount-type-selection input[type="radio"] {
  margin: 0;
}

@page {
  size: A4 portrait;
  margin: 10mm;
}

/* ── Mobile & tablet ── */
@media screen and (max-width: 768px) {
  body {
    max-width: 100%;
    padding: 16px;
    font-size: 15px;
  }

  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    gap: 12px;
  }

  .logo {
    width: 100px;
    margin: 0;
  }

  .logo img {
    width: 100%;
    max-width: 140px;
  }

  .business-info {
    text-align: center;
    margin-top: 0;
  }

  .business-name {
    font-size: 18px;
  }

  .contact-info {
    font-size: 13px;
  }

  .invoice-details {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }

  .left-col,
  .right-col {
    width: 100%;
  }

  .guest-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .right-col {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
  }

  .tax-fields {
    max-width: none;
    gap: 12px;
  }

  .payment-info {
    font-size: 0.9em;
    margin-bottom: 20px;
  }

  .table-wrapper {
    margin-bottom: 16px;
    overflow-x: visible;
  }

  #services-table {
    margin-bottom: 0;
  }

  #services-table thead {
    display: none;
  }

  #services-table tbody tr {
    display: block;
    position: relative;
    margin-bottom: 14px;
    padding: 14px 40px 14px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }

  #services-table tbody tr:last-child {
    margin-bottom: 0;
  }

  #services-table tbody td {
    display: block;
    border-bottom: none;
    padding: 8px 0;
    text-align: left !important;
  }

  #services-table tbody td::before {
    display: block;
    font-weight: 600;
    font-size: 0.78em;
    color: #666;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
  }

  #services-table tbody td:nth-child(1)::before { content: "CATEGORY"; }
  #services-table tbody td:nth-child(2)::before { content: "TYPE"; }
  #services-table tbody td:nth-child(3)::before { content: "PRICE"; }
  #services-table tbody td:nth-child(4)::before { content: "QTY"; }

  #services-table tbody td:last-child {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0;
    width: auto;
  }

  #services-table tbody td:last-child::before {
    display: none;
  }

  #services-table tbody td:nth-child(3) input.price,
  #services-table tbody td:nth-child(4) input.qty {
    text-align: left;
  }

  .remove-btn {
    margin-top: 0;
    font-size: 1.5em;
    padding: 4px 8px;
  }

  /* Minibar row on mobile */
  .minibar-row td:nth-child(2)::before {
    margin-bottom: 8px;
  }

  .minibar-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .minibar-item {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name name"
      "price stepper";
    gap: 6px 10px;
    padding: 10px 0;
    border-bottom: 1px solid #ececec;
  }

  .minibar-name {
    grid-area: name;
    font-size: 0.95em;
  }

  .minibar-unit-price {
    grid-area: price;
    text-align: left;
    font-size: 0.9em;
  }

  .minibar-stepper {
    grid-area: stepper;
    justify-content: flex-end;
  }

  .minibar-row td:nth-child(3) input.price {
    text-align: left;
    background-color: #f5f5f5;
    padding: 8px;
  }

  .minibar-qty-total {
    align-items: flex-start;
    text-align: left;
  }

  .minibar-qty-note {
    white-space: normal;
    max-width: 100%;
  }

  .qty-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  #add-service-btn {
    width: 100%;
    margin-bottom: 12px;
  }

  .payment-mode-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  #payment-mode {
    width: 100%;
    max-width: none;
  }

  .folio-ledger .ledger-row {
    grid-template-columns: 1fr 20px 80px;
  }

  .folio-ledger .ledger-input-wrap input {
    width: 80px;
  }

  .totals {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    padding: 14px 16px;
    font-size: 1em;
    box-sizing: border-box;
  }

  .discount-type-selection {
    padding-left: 0;
    flex-wrap: wrap;
    gap: 12px;
  }

  .buttons button {
    width: 100%;
    padding: 12px 20px;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding: 12px;
    font-size: 14px;
  }

  .business-name {
    font-size: 16px;
  }

  #services-table tbody tr {
    padding: 12px 36px 12px 12px;
  }

  .minibar-stepper .minibar-qty {
    width: 32px;
    min-width: 32px;
  }

  .qty-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 1.1em;
  }

  select.type-select,
  select.category-select,
  table tbody td input,
  .input-group input,
  .input-group select {
    font-size: 16px;
  }
}

@media print {

  /* body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  } */
  html,
  body {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 0;
  }

  body {
    max-width: none !important;
    padding: 10mm !important;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-size: 11px;
  }

  #services-table thead {
    display: table-header-group !important;
  }

  #services-table tbody tr {
    display: table-row !important;
    position: static !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #services-table tbody td {
    display: table-cell !important;
    padding: 8px 10px !important;
  }

  #services-table tbody td::before {
    display: none !important;
  }

  #services-table tbody td:last-child {
    position: static !important;
  }

  .table-wrapper {
    overflow: visible !important;
    margin-bottom: 0 !important;
  }

  /* Hide remove buttons */
  .remove-btn {
    display: none !important;
  }

  /* Hide the Add Service button */
  #add-service-btn {
    display: none !important;
  }

  /* Hide the Print Invoice button */
  .buttons {
    display: none !important;
  }

  /* Remove input borders and backgrounds for cleaner print */
  /* input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  } */
  /* Remove input borders, focus color, and autofill color for print */
  input,
  input:focus,
  input:active,
  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  textarea,
  textarea:focus,
  textarea:active {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #000 !important;
    color: #000 !important;
  }

  /* Remove calendar dropdown arrow in date input (webkit browsers) */
  input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
  }

  /* Remove calendar dropdown arrow in Firefox */
  input[type="date"]::-moz-calendar-picker-indicator {
    display: none;
  }

  /* Remove calendar dropdown arrow in Edge/IE */
  input[type="date"]::-ms-clear {
    display: none;
  }

  input,
  textarea {
    background-color: transparent;
  }

  input:focus,
  input:active,
  textarea:focus,
  textarea:active {
    outline: none;
    box-shadow: none;
    background-color: transparent;
  }

  table tbody td {
    vertical-align: middle;
  }

  /* Align price, qty, total numeric cells to right */
  table tbody td:nth-child(2),
  table tbody td:nth-child(3) {
    text-align: right;
  }

  /* Align service name (1st column) left */
  table tbody td:nth-child(1) {
    text-align: left;
  }

  /* Also align headers */
  table thead th:nth-child(2),
  table thead th:nth-child(3) {
    text-align: right;
  }

  table thead th:nth-child(4) {
    text-align: center !important;
  }

  table thead th:nth-child(1) {
    text-align: left;
  }

  table thead th:last-child {
    display: none !important;
  }

  /* Hide the "Remove" column cells */
  table tbody td:last-child {
    display: none !important;
  }

  /* Remove blue highlight and autofill background on all inputs */
  input,
  textarea {
    /*background-color: #fff6ec; */
    transition: background-color 0.3s ease;
  }

  input:focus,
  input:active,
  textarea:focus,
  textarea:active {
    outline: none !important;
    box-shadow: none !important;
    /*background-color: #fff6ec !important;*/
  }

  /* Remove Chrome autofill background color */
  /* input:-webkit-autofill,
  input:-webkit-autofill:focus,
  input:-webkit-autofill:hover {
    -webkit-box-shadow: 0 0 0px 1000px #fff6ec inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 5000s ease-in-out 0s;
  } */
  input:-webkit-autofill,
  input:-webkit-autofill:focus,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 9999s ease-in-out 0s;
  }

  body,
  th,
  .totals,
  table tbody td {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Remove borders around select dropdown in type column */
  table tbody td select.type-select,
  table tbody td select.category-select {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    pointer-events: none;
  }

  table tbody td input.type-input,
  table tbody td input.price {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .qty-btn {
    display: none !important;
  }

  .minibar-empty {
    display: none !important;
  }

  .minibar-stepper .minibar-qty {
    width: auto !important;
    min-width: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: right !important;
    padding: 0 !important;
  }

  .minibar-stepper {
    justify-content: flex-end !important;
  }

  .minibar-list {
    max-height: none !important;
    overflow: visible !important;
  }

  .minibar-item {
    grid-template-columns: 1fr auto auto !important;
    border-bottom: none !important;
    padding: 2px 0 !important;
  }

  .minibar-name,
  .minibar-unit-price,
  .minibar-item.minibar-selected .minibar-name,
  .minibar-stepper .minibar-qty {
    font-size: inherit !important;
    font-weight: normal !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }

  .minibar-row select.category-select,
  .minibar-row td:nth-child(3) input.price {
    font-size: inherit !important;
    font-weight: normal !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }

  .minibar-row td:nth-child(3) input.price {
    text-align: right !important;
  }

  .minibar-qty-total {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
  }

  .minibar-qty-total,
  .minibar-qty-count {
    font-size: inherit !important;
    font-weight: normal !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }

  .minibar-qty-note {
    font-size: 0.8em !important;
    color: #000 !important;
    font-weight: normal !important;
  }

  .guest-fields {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }

  .input-group select {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    pointer-events: none;
    padding-right: 0 !important;
    background-image: none !important;
  }

  /* Align all table cells vertically middle */
  table tbody td {
    vertical-align: middle !important;
  }

  /* Align price column right, qty column center */
  table tbody td:nth-child(3) {
    text-align: right !important;
  }

  table tbody td:nth-child(4) {
    text-align: center !important;
  }

  /* Align category and type columns left */
  table tbody td:nth-child(1),
  table tbody td:nth-child(2) {
    text-align: left !important;
  }

  /* Force fixed table layout */
  table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    border-spacing: 0 !important;
  }

  /* Set explicit widths for all columns */
  table thead th,
  table tbody td {
    padding: 8px 10px !important;
    overflow-wrap: break-word;
  }

  table thead th:nth-child(1),
  table tbody td:nth-child(1) {
    width: 20% !important;
    text-align: left !important;
  }

  table thead th:nth-child(2),
  table tbody td:nth-child(2) {
    width: 40% !important;
    text-align: left !important;
  }

  table thead th:nth-child(3),
  table tbody td:nth-child(3) {
    width: 20% !important;
    text-align: right !important;
  }

  table thead th:nth-child(4),
  table tbody td:nth-child(4) {
    width: 10% !important;
    text-align: center !important;
  }

  table thead th:nth-child(5),
  table tbody td:nth-child(5) {
    display: none !important;
    /* Remove last column */
  }

  /* Vertically center content */
  table tbody td {
    vertical-align: middle !important;
  }

  .discount-type-selection {
    display: none;
  }

  .payment-mode-row {
    border: none !important;
    background: transparent !important;
    padding: 0 0 10px 0 !important;
    margin-bottom: 10px !important;
  }

  #payment-mode {
    display: none !important;
  }

  #payment-mode-print {
    display: inline !important;
    font-weight: 600;
  }

  #discount {
    display: none !important;
  }

  #advance,
  #due-clear {
    display: none !important;
  }

  .folio-ledger .ledger-input-wrap input {
    border: none !important;
    background: transparent !important;
  }
}

.signature-section {
  margin-top: 50px;
  margin-bottom: 30px;
}

.signature-line {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.signature-line span {
  font-size: 14px;
  color: #666;
}

.signature-box {
  width: 200px;
  height: 60px;
  border-bottom: 1px solid #000;
}

@media print {
  .signature-section {
    margin-top: 50px;
    margin-bottom: 30px;
  }

  .signature-line {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .signature-box {
    width: 200px;
    height: 60px;
    border-bottom: 1px solid #000;
  }
}