/* ==========================================================================
   GARG PHARMA - RETAILER MOBILE APP STYLES
   Touch-first, responsive, native mobile app feel
   ========================================================================== */

.mobile-app-body {
  background: #060a14;
  color: #f8fafc;
  font-family: var(--font-sans);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.mobile-container {
  width: 100%;
  max-width: 500px;
  background: var(--bg-app);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  padding-bottom: 75px; /* space for bottom nav */
}

/* Sticky App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(14, 21, 38, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  max-width: 80%;
}

.app-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.chemist-name-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chemist-sub-title {
  font-size: 11px;
  color: #60a5fa;
  font-weight: 500;
}

.cart-icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast);
}

.cart-icon-btn:active { transform: scale(0.92); }

.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-rose);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.6);
}

/* App Views */
.app-view-container {
  flex: 1;
  padding: 16px;
}

.m-tab-view {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.m-tab-view.active { display: block; }

/* Catalog Search & Filters */
.catalog-search-bar {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-quick-filters {
  display: flex;
  gap: 8px;
}

.m-filter-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.m-filter-chip.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
  color: #93c5fd;
}

/* Catalog Items List */
.catalog-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-item-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition-fast);
}

.m-item-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.item-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.item-meta-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.item-stock-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.item-stock-tag.in-stock {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.item-stock-tag.out-stock {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.item-price-block {
  display: flex;
  flex-direction: column;
}

.item-rate-a {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #34d399;
}

.item-mrp {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Stepper / Add to Cart */
.item-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-add-cart-primary {
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  color: #fff;
  border: 0;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-add-cart-primary:active { transform: scale(0.95); }

.stepper-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.btn-step {
  background: transparent;
  border: 0;
  color: #fff;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-step:hover { background: rgba(255, 255, 255, 0.08); }

.step-val {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.step-val-input {
  width: 58px;
  height: 32px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  outline: none;
  -moz-appearance: textfield;
  padding: 0 4px;
  transition: var(--transition-fast);
}

.step-val-input::-webkit-outer-spin-button,
.step-val-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.step-val-input:focus {
  background: rgba(56, 189, 248, 0.2);
  color: #fff;
  border-color: #38bdf8;
}

/* Cart View */
.cart-header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-header-title h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.cart-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.cart-item-name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

.cart-item-rate {
  font-size: 12px;
  color: var(--accent-emerald);
  margin-top: 2px;
}

.cart-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.summary-line.total {
  font-size: 16px;
  color: #fff;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.summary-line.total .total-price {
  font-family: var(--font-heading);
  font-size: 20px;
  color: #34d399;
}

.order-notes-input textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 10px;
  font-size: 12px;
  font-family: var(--font-sans);
  min-height: 60px;
  outline: none;
  resize: none;
}

.order-notes-input textarea:focus {
  border-color: var(--accent-blue);
}

.btn-checkout-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #fff;
  border: 0;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transition: transform var(--transition-fast);
}

.btn-checkout-primary:active { transform: scale(0.98); }

.empty-cart-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.empty-cart-state h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 4px;
}

/* Invoices View */
.view-header-title {
  margin-bottom: 16px;
}

.view-header-title h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.view-header-title p {
  font-size: 12px;
  color: var(--text-secondary);
}

.invoices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invoice-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.invoice-item-card:hover, .invoice-item-card:active {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.inv-card-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inv-card-arrow {
  color: #60a5fa;
  font-size: 18px;
  font-weight: 700;
}

.inv-no {
  font-weight: 700;
  font-size: 14px;
  color: #60a5fa;
}

.badge-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}
.badge-tag.green { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.badge-tag.purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-tag.blue { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }

.inv-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.inv-amount {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  text-align: right;
}

.inv-modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.inv-modal-row:last-child {
  border-bottom: 0;
}

.inv-modal-item-name {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

.inv-modal-item-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.inv-modal-item-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #34d399;
  text-align: right;
}

/* Profile Card */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
}

.profile-badge-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.profile-card h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.prof-cid-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.profile-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.prof-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 8px;
}

.prof-item:last-child { border-bottom: 0; padding-bottom: 0; }

.prof-label { color: var(--text-muted); }
.prof-val { color: #fff; }

.w-100 { width: 100%; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 64px;
  background: rgba(14, 21, 38, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
}

.b-nav-item {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 6px 14px;
}

.b-nav-item svg {
  stroke: var(--text-muted);
  transition: stroke var(--transition-fast);
}

.b-nav-item.active {
  color: #60a5fa;
}

.b-nav-item.active svg {
  stroke: #60a5fa;
}

.nav-icon-wrap {
  position: relative;
}

.nav-cart-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--accent-rose);
  border-radius: 50%;
}

/* Chemist Autocomplete List */
.chemist-search-results {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.chemist-res-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.chemist-res-chip:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
}

.chip-name {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.chip-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.sample-chemists-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.sample-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sample-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-chip:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #fff;
  border-color: rgba(59, 130, 246, 0.4);
}

.loading-state {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Modal System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
  box-sizing: border-box;
}

.modal-overlay.active {
  display: flex !important;
  animation: fadeIn 0.2s ease-out;
}

.modal-dialog {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-close-modal:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
}

.modal-desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 12px 0;
}

/* Invoices View & Detail Popup */
.invoice-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.invoice-item-card:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.invoice-item-card:active {
  transform: scale(0.98);
}

.inv-no {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 3px;
}

.inv-date {
  font-size: 11px;
  color: #64748b;
}

.inv-card-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inv-amount {
  font-size: 15px;
  font-weight: 800;
  color: #34d399;
}

.inv-card-arrow {
  font-size: 20px;
  color: #64748b;
  line-height: 1;
}

.inv-modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inv-modal-row:last-child {
  border-bottom: none;
}

.inv-modal-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}

.inv-modal-item-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.inv-modal-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #38bdf8;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ACCOUNT SUMMARY CARD & STATEMENTS
   ========================================================================== */
.inv-summary-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.inv-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.inv-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.3px;
}

.inv-summary-badge {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 999px;
  color: #94a3b8;
}

.inv-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.inv-sum-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.inv-sum-box.sum-sales {
  border-left: 3px solid #10b981;
}

.inv-sum-box.sum-returns {
  border-left: 3px solid #a855f7;
}

.inv-sum-box.sum-net {
  border-left: 3px solid #38bdf8;
  background: rgba(56, 189, 248, 0.05);
}

.sum-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.sum-val {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  margin: 4px 0 2px 0;
  font-family: var(--font-heading);
}

.sum-sales .sum-val { color: #34d399; }
.sum-returns .sum-val { color: #c084fc; }
.sum-net .sum-val { color: #38bdf8; }

.sum-count {
  font-size: 10px;
  color: #64748b;
}

.inv-summary-actions {
  display: flex;
  gap: 8px;
}

.btn-statement-pdf, .btn-statement-wa {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-statement-pdf {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.btn-statement-pdf:active {
  background: rgba(59, 130, 246, 0.35);
}

.btn-statement-wa {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-statement-wa:active {
  background: rgba(16, 185, 129, 0.35);
}

.inv-filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

/* ==========================================================================
   PRINT STYLESHEET (PDF EXPORT FOR INVOICE & STATEMENT)
   ========================================================================== */
#print-area {
  display: none;
}

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  body > *:not(#print-area) {
    display: none !important;
  }

  #print-area {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: #fff !important;
    color: #000 !important;
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
  }

  .print-invoice-box, .print-statement-box {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #000;
    padding: 16px;
    box-sizing: border-box;
  }

  .print-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 12px;
  }

  .print-header h1 {
    font-size: 20px;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    color: #000;
  }

  .print-header p {
    margin: 2px 0;
    font-size: 11px;
    color: #333;
  }

  .print-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 11px;
  }

  .print-meta-box {
    border: 1px solid #ccc;
    padding: 8px;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
  }

  .print-table th, .print-table td {
    border: 1px solid #666;
    padding: 6px 8px;
    font-size: 11px;
    text-align: left;
  }

  .print-table th {
    background: #f0f0f0 !important;
    font-weight: bold;
  }

  .print-table td.text-right, .print-table th.text-right {
    text-align: right;
  }

  .print-table td.text-center, .print-table th.text-center {
    text-align: center;
  }

  .print-total-row td {
    font-weight: bold;
    background: #fafafa !important;
    border-top: 2px solid #000;
  }

  .print-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #666;
    font-size: 10px;
  }
}

