/* Vuexy Theme Custom Overrides & A5 Print Styling */

/* Active link indicator */
.menu-item.active > .menu-link {
  font-weight: 600;
  color: #7367f0 !important;
  background-color: rgba(115, 103, 240, 0.08) !important;
}

/* Currency and status badge styling */
.badge-currency {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
}

/* ==========================================================================
   A4 Half Page Receipt Styling & Print Layout
   Standard A4 sheet: 210mm x 297mm. Half Page: 210mm x 148.5mm (max height ~138mm)
   ========================================================================== */
@page {
  size: A4 portrait;
  margin: 6mm 8mm;
}

@media print {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body * {
    visibility: hidden !important;
  }

  #receipt-print-wrapper,
  #receipt-print-wrapper *,
  #printable-receipt-card,
  #printable-receipt-card *,
  #tally-print-wrapper,
  #tally-print-wrapper * {
    visibility: visible !important;
  }

  #receipt-print-wrapper {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 194mm !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  #tally-print-wrapper {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
  }

  .half-page-receipt-card {
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1.5px solid #111 !important;
    border-radius: 4px !important;
    padding: 7px 12px !important;
    margin: 0 0 4px 0 !important;
    background: #fff !important;
    color: #000 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    box-shadow: none !important;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 10px !important;
    line-height: 1.28 !important;
  }

  .receipt-header-print {
    text-align: center !important;
    border-bottom: 1.5px solid #222 !important;
    padding-bottom: 4px !important;
    margin-bottom: 5px !important;
    position: relative !important;
  }

  .receipt-header-print h4 {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    margin: 0 0 2px 0 !important;
    color: #000 !important;
  }

  .receipt-copy-badge {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    border: 1px solid #000 !important;
    padding: 1px 5px !important;
    font-size: 8.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    background: #eee !important;
    color: #000 !important;
  }

  .receipt-grid-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 3px 0 !important;
    font-size: 9.8px !important;
  }

  .receipt-grid-table td {
    padding: 1.8px 3px !important;
    border-bottom: 1px solid #ddd !important;
    vertical-align: middle !important;
  }

  .receipt-grid-table .lbl {
    color: #444 !important;
    width: 22% !important;
    font-weight: 500 !important;
  }

  .receipt-grid-table .val {
    color: #000 !important;
    width: 28% !important;
    font-weight: 600 !important;
  }

  .receipt-amount-box {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1.5px solid #000 !important;
    border-bottom: 1.5px solid #000 !important;
    padding: 4px 6px !important;
    margin: 4px 0 !important;
    background: #f4f4f5 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #000 !important;
  }

  .receipt-words {
    font-size: 9px !important;
    font-style: italic !important;
    color: #333 !important;
    font-weight: normal !important;
    margin-top: 1px !important;
  }

  .receipt-footer-print {
    text-align: center !important;
    font-size: 8.5px !important;
    color: #333 !important;
    line-height: 1.22 !important;
    margin-top: 3px !important;
  }

  .receipt-cut-line {
    display: block !important;
    text-align: center !important;
    border-top: 1px dashed #666 !important;
    margin: 5px 0 6px 0 !important;
    padding-top: 2px !important;
    font-size: 8.5px !important;
    color: #555 !important;
    page-break-inside: avoid !important;
  }

  .no-print {
    display: none !important;
  }
}

/* Screen Styling for Receipt */
.receipt-screen-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.half-page-receipt-card {
  background: #fff;
  border: 1px solid #dbdade;
  border-radius: 6px;
  padding: 18px;
  font-family: 'Public Sans', sans-serif;
  color: #5d596c;
}

.receipt-header-print {
  text-align: center;
  border-bottom: 1px solid #dbdade;
  padding-bottom: 10px;
  margin-bottom: 12px;
  position: relative;
}

.receipt-header-print h4 {
  font-weight: 700;
  color: #5d596c;
  margin-bottom: 3px;
}

.receipt-copy-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.receipt-grid-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 0.88rem;
}

.receipt-grid-table td {
  padding: 5px 6px;
  border-bottom: 1px solid #f1f1f2;
}

.receipt-grid-table .lbl {
  color: #a5a3ae;
  width: 23%;
}

.receipt-grid-table .val {
  color: #5d596c;
  font-weight: 600;
  width: 27%;
}

.receipt-amount-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #5d596c;
  border-bottom: 2px solid #5d596c;
  padding: 8px 12px;
  margin: 10px 0;
  color: #7367f0;
  font-size: 1.15rem;
  font-weight: 700;
  background: rgba(115, 103, 240, 0.04);
  border-radius: 4px;
}

.receipt-words {
  font-size: 0.8rem;
  color: #6f6b7d;
  font-weight: normal;
}

.receipt-footer-print {
  text-align: center;
  font-size: 0.8rem;
  color: #6f6b7d;
  margin-top: 10px;
  line-height: 1.35;
}

.receipt-cut-line {
  text-align: center;
  border-top: 1px dashed #b8b7be;
  margin: 14px 0;
  padding-top: 4px;
  font-size: 0.75rem;
  color: #8c8998;
}

/* Notification banner */
.day-status-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Toast notifications (SweetAlert2 toast): compact title/text instead of the full dialog sizes */
.swal2-toast {
  padding: 0.75rem 1rem !important;
}

.swal2-toast .swal2-title {
  font-size: 1rem !important;
  margin: 0 !important;
  text-align: left;
}

.swal2-toast .swal2-html-container {
  font-size: 0.85rem !important;
  margin: 0.15rem 0 0 !important;
  text-align: left;
}

/* Active sidebar item: keep the label and icon readable on the purple highlight */
.menu-vertical .menu-inner > .menu-item.active > .menu-link,
.menu-vertical .menu-inner > .menu-item.active > .menu-link .menu-icon,
.menu-vertical .menu-inner > .menu-item.active > .menu-link div {
  color: #fff !important;
}
