 /* Force table header font size + background + height */
    table th {
      font-size: 0.9rem !important;
      font-weight: 700 !important;
      background-color: #e6e9ee !important;
      color: #111827 !important;
      padding-top: 0.6rem !important;
      padding-bottom: 0.6rem !important;
    }

    .dark table th {
      background-color: #374151 !important;
      color: #f9fafb !important;
    }

    table td { font-size: 0.83rem !important; }

    /* ================= RIGHT RECEIPT DRAWER ================= */

    .fxReceiptDrawerWrap.hidden { display:none; }

    .fxReceiptDrawerWrap{
      position: fixed;
      z-index: 999999;
      left: 0;
      right: 0;
      bottom: 0;
      top: 78px; /* below header */
      pointer-events: none;
    }

    .fxReceiptDrawerBackdrop{
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.45);
      backdrop-filter: blur(2px);
      opacity: 0;
      transition: opacity .25s ease;
      pointer-events: auto;
    }

    .fxReceiptDrawer{
      position: absolute;
      top: 0;
      right: 0;
      height: 100%;
      width: 100%;
      max-width: 460px;
      background: #e5e7eb;
      border-left: 1px solid rgba(0,0,0,0.10);
      transform: translateX(100%);
      transition: transform .28s ease;
      pointer-events: auto;
      display: flex;
      flex-direction: column;
    }

    .fxReceiptDrawerWrap.is-open .fxReceiptDrawerBackdrop{ opacity: 1; }
    .fxReceiptDrawerWrap.is-open .fxReceiptDrawer{ transform: translateX(0); }

    .fxReceiptDrawerBody{
      padding: 0;
      overflow: auto;
      flex: 1 1 auto;
    }

    /* Flat receipt surface: NO shadow, NO rounding */
    .fxReceiptPaper{
      background: #ffffff;
      color: #000000;
      border-radius: 0 !important;
      box-shadow: none !important;
      border: none !important;
    }

    .fxReceiptPaper, .fxReceiptPaper * { color: #000 !important; }

    /* Tokens: single line + slightly smaller */
    .fxReceiptPaper .border-dashed{
      white-space: nowrap !important;
      font-size: 1.22rem !important;
      line-height: 1.55 !important;
      letter-spacing: 0.16em !important;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .fxReceiptDrawerFoot{
      flex: 0 0 auto;
      padding: 12px 14px;
      border-top: 1px solid rgba(0,0,0,0.10);
      display:flex;
      justify-content: flex-end;
      gap: 10px;
      background: rgba(255,255,255,0.70);
      backdrop-filter: blur(3px);
    }

    .fxPrintBtn{
      background: #facc15;
      color: #000;
      font-weight: 800;
      padding: 10px 18px;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      min-width: 120px;
      text-transform: uppercase;
    }
    .fxPrintBtn:hover{ filter: brightness(0.95); }

    .fxDrawerLoader{
      display:flex;
      align-items:center;
      gap: 10px;
      padding: 18px;
      font-size: .92rem;
      opacity: .92;
      color: #111827;
      background: #fff;
    }
    .fxDrawerSpinner{
      width: 18px;
      height: 18px;
      border-radius: 999px;
      border: 2px solid rgba(0,0,0,0.2);
      border-top-color: rgba(0,0,0,0.65);
      animation: spin 0.8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
