/* ===== INVOICE STYLES ===== */
    .inv-wrapper {
      max-width: 800px;
      margin: 0 auto;
      padding: 32px 16px;
    }
    .inv-card {
      background: #ffffff;
      border: 1px solid #e8edf2;
      border-radius: 20px;
      padding: 40px;
      box-shadow: 0 2px 24px rgba(0,0,0,0.06);
    }

    /* TOP */
    .inv-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      flex-wrap: wrap;
    }
    .inv-logo-area img {
      height: 38px;
      width: auto;
      display: block;
      margin-bottom: 8px;
    }
    .inv-logo-area p {
      font-size: 12px;
      color: #8a93a8;
      margin: 0;
      line-height: 1.6;
    }
    .inv-badge-delivered {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 11px;
      font-weight: 600;
      padding: 4px 12px;
      border-radius: 30px;
      background: #e8faf0;
      color: #1a8a4a;
      margin-top: 10px;
    }
    .inv-badge-delivered::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #22c55e;
      display: block;
    }
    .inv-number-area { text-align: right; }
    .inv-number-area h2 {
      font-size: 26px;
      font-weight: 700;
      color: #1a1d2e;
      margin: 0 0 4px;
      letter-spacing: -0.5px;
    }
    .inv-meta-pills {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 6px;
      margin-top: 6px;
    }
    .inv-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11.5px;
      color: #6b7280;
      background: #f5f7fa;
      border: 1px solid #e8edf2;
      border-radius: 20px;
      padding: 3px 10px;
      white-space: nowrap;
    }
    .inv-pill span { font-weight: 600; color: #1a1d2e; }

    /* DIVIDER */
    .inv-divider {
      border: none;
      border-top: 1px dashed #e0e6ee;
      margin: 24px 0;
    }

    /* ADDRESS */
    .inv-address-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-bottom: 28px;
    }
    .inv-addr-box {
      background: #f8fafc;
      border: 1px solid #edf1f7;
      border-radius: 12px;
      padding: 14px 16px;
    }
    .inv-addr-box .addr-label {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #aab2c0;
      margin-bottom: 6px;
    }
    .inv-addr-box .addr-name {
      font-size: 13.5px;
      font-weight: 600;
      color: #1a1d2e;
      margin-bottom: 3px;
    }
    .inv-addr-box .addr-detail {
      font-size: 12px;
      color: #6b7280;
      line-height: 1.55;
    }

    /* TABLE */
    .inv-table-wrap {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      margin-bottom: 4px;
    }
    .inv-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 480px;
    }
    .inv-table thead tr { background: #f5f7fa; }
    .inv-table thead th {
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      color: #8a93a8;
      padding: 10px 14px;
      text-align: left;
      white-space: nowrap;
    }
    .inv-table thead th:first-child { border-radius: 10px 0 0 10px; }
    .inv-table thead th:last-child  { border-radius: 0 10px 10px 0; text-align: right; }
    .inv-table thead th.right { text-align: right; }
    .inv-table tbody tr { border-bottom: 1px solid #f0f3f8; transition: background 0.15s; }
    .inv-table tbody tr:last-child { border-bottom: none; }
    .inv-table tbody td {
      padding: 13px 14px;
      font-size: 13px;
      color: #3d4559;
      vertical-align: middle;
    }
    .inv-table tbody td.right { text-align: right; }
    .inv-prod-cell { display: flex; align-items: center; gap: 10px; }
    .inv-prod-img {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: #f0fdf4;
      border: 1px solid #e2f5e8;
      object-fit: contain;
      flex-shrink: 0;
    }
    .inv-prod-name { font-size: 13px; font-weight: 600; color: #1a1d2e; line-height: 1.3; }
    .inv-prod-cat  { font-size: 11px; color: #aab2c0; margin-top: 1px; }
    .inv-sku       { font-size: 12px; color: #aab2c0; font-family: monospace; white-space: nowrap; }
    .inv-qty-badge {
      display: inline-block;
      background: #f0f4ff;
      color: #3d5af1;
      font-size: 12px;
      font-weight: 600;
      padding: 2px 10px;
      border-radius: 20px;
    }
    .inv-price  { font-size: 13px; color: #6b7280; white-space: nowrap; }
    .inv-amount { font-size: 13.5px; font-weight: 700; color: #1a1d2e; white-space: nowrap; }

    /* MOBILE CARDS */
    .inv-mobile-items { display: none; }
    .inv-mobile-item {
      background: #f8fafc;
      border: 1px solid #edf1f7;
      border-radius: 12px;
      padding: 12px 14px;
      margin-bottom: 10px;
    }
    .inv-mobile-item-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
    .inv-mobile-item-info { flex: 1; }
    .inv-mobile-item-rows { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .inv-mobile-item-cell {
      background: #fff;
      border: 1px solid #edf1f7;
      border-radius: 8px;
      padding: 6px 10px;
    }
    .inv-mobile-item-cell .cell-label {
      font-size: 9.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #aab2c0;
      margin-bottom: 2px;
    }
    .inv-mobile-item-cell .cell-val { font-size: 12.5px; font-weight: 600; color: #1a1d2e; }
    .inv-mobile-item-cell .cell-val.green { color: #1a8a4a; }

    /* BOTTOM */
    .inv-bottom-grid {
      display: grid;
      grid-template-columns: 1fr 260px;
      gap: 20px;
      align-items: start;
      margin-top: 20px;
    }
    .inv-payment-box {
      background: #f8fafc;
      border: 1px solid #edf1f7;
      border-radius: 12px;
      padding: 14px 16px;
    }
    .inv-payment-box .pay-label {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #aab2c0;
      margin-bottom: 8px;
    }
    .inv-payment-method { display: flex; align-items: center; gap: 8px; }
    .pay-icon-box {
      width: 34px;
      height: 22px;
      background: #fff;
      border: 1px solid #e2e8f0;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 800;
      color: #003087;
      letter-spacing: -0.5px;
    }
    .pay-method-name { font-size: 13.5px; font-weight: 600; color: #1a1d2e; }
    .pay-status {
      margin-top: 8px;
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 11.5px;
      color: #1a8a4a;
      font-weight: 500;
    }
    .pay-status::before {
      content: '✓';
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: #e8faf0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 9px;
      font-weight: 800;
    }
    .inv-totals-box { border: 1px solid #edf1f7; border-radius: 12px; overflow: hidden; }
    .inv-total-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 16px;
      font-size: 13px;
      color: #6b7280;
      border-bottom: 1px solid #f0f3f8;
    }
    .inv-total-row:last-child { border-bottom: none; }
    .inv-total-row.grand { background: #1a1d2e; padding: 13px 16px; }
    .inv-total-row.grand .tot-label { font-size: 13.5px; font-weight: 600; color: #fff; }
    .inv-total-row.grand .tot-val   { font-size: 18px; font-weight: 700; color: #22c55e; }
    .tot-label { color: #6b7280; }
    .tot-val   { font-weight: 600; color: #1a1d2e; }

    /* ACTIONS */
    .inv-actions {
      display: flex;
      gap: 10px;
      justify-content: flex-end;
      margin-top: 24px;
      flex-wrap: wrap;
    }
    .inv-btn-outline {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 9px 20px;
      border-radius: 10px;
      border: 1.5px solid #e0e6ee;
      background: #fff;
      color: #3d4559;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s;
      font-family: inherit;
    }
    .inv-btn-outline:hover { border-color: #b0bcd0; color: #1a1d2e; }
    .inv-btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 9px 22px;
      border-radius: 10px;
      border: none;
      background: #22c55e;
      color: #fff;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s;
      font-family: inherit;
    }
    .inv-btn-primary:hover { background: #16a34a; color: #fff; }
    .inv-btn-outline:disabled { opacity: 0.6; cursor: not-allowed; }

    /* FOOTER */
    .inv-footer-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 24px;
      padding-top: 20px;
      border-top: 1px dashed #e0e6ee;
    }
    .inv-thank-msg { font-size: 12.5px; color: #6b7280; }
    .inv-thank-msg strong { color: #1a1d2e; }
    .inv-contact-info {
      font-size: 11.5px;
      color: #aab2c0;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    /* RESPONSIVE */
    @media (max-width: 767px) {
      .inv-card { padding: 20px 16px; border-radius: 14px; }
      .inv-number-area h2 { font-size: 20px; }
      .inv-address-grid { grid-template-columns: 1fr; gap: 10px; }
      .inv-table-wrap { display: none; }
      .inv-mobile-items { display: block; margin-bottom: 4px; }
      .inv-bottom-grid { grid-template-columns: 1fr; gap: 14px; }
      .inv-actions { flex-direction: column; }
      .inv-btn-outline, .inv-btn-primary { width: 100%; justify-content: center; }
      .inv-footer-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
    }
    @media (min-width: 768px) and (max-width: 991px) {
      .inv-card { padding: 28px 24px; }
      .inv-bottom-grid { grid-template-columns: 1fr 220px; }
    }

    /* ===== PRINT STYLES ===== */
    @media print {
      /* Hide everything except invoice */
      body > * { display: none !important; }
      .main-wrapper > *:not(.inv-wrapper) { display: none !important; }
      header, footer, .gshop-footer, .footer-curve,
      .offcanvas_menu, .offcanvas-left-menu,
      .mobile-toolbar, .scroll-top-btn,
      #preloader { display: none !important; }

      /* Show only invoice wrapper */
      .main-wrapper { display: block !important; }
      .inv-wrapper  { display: block !important; padding: 0 !important; margin: 0 !important; max-width: 100% !important; }
      .inv-card     { display: block !important; box-shadow: none !important; border: none !important; border-radius: 0 !important; padding: 20px !important; }

      /* Table always visible in print */
      .inv-actions        { display: none !important; }
      .inv-mobile-items   { display: none !important; }
      .inv-table-wrap     { display: block !important; overflow: visible !important; }
    }
    