/* ==========================================================================
   Rajbala IT - Toner Refill & Cartridge Booking Card Styles
   Rich Glassmorphic Design, Live Dynamic Counter, Dark/Light Mode & Modals
   ========================================================================== */

.toner-booking-section {
  position: relative;
  padding: 6rem 0;
  background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 60%),
              var(--bg-darker);
  overflow: hidden;
}

[data-theme="light"] .toner-booking-section {
  background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 60%),
              #f8fafc;
}

.toner-booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

/* Left Hero Content */
.toner-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.toner-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}

.toner-info-col h2 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-white, #ffffff);
}

[data-theme="light"] .toner-info-col h2 {
  color: #0f172a;
}

.toner-info-col p {
  font-size: 1.05rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.6;
}

.toner-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.toner-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-white, #f1f5f9);
}

[data-theme="light"] .toner-feature-item {
  color: #1e293b;
}

.toner-feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: bold;
}

.toner-guarantee-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.06);
  border: 1px dashed rgba(6, 182, 212, 0.25);
  margin-top: 0.5rem;
}

.toner-guarantee-box span {
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
}

.toner-guarantee-box strong {
  color: var(--primary-light, #22d3ee);
}

/* Right Interactive Glassmorphic Card */
.toner-card {
  position: relative;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(6, 182, 212, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .toner-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.toner-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .toner-card-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.toner-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white, #ffffff);
}

[data-theme="light"] .toner-card-title {
  color: #0f172a;
}

.toner-live-speed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 9px;
  border-radius: 9999px;
}

/* Step Form Styling */
.toner-form-group {
  margin-bottom: 1.4rem;
}

.toner-form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

[data-theme="light"] .toner-form-label {
  color: #475569;
}

/* Quick Cartridge Pills */
.toner-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.6rem;
}

.toner-pill-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted, #cbd5e1);
  padding: 6px 13px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

[data-theme="light"] .toner-pill-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

.toner-pill-btn:hover {
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--text-white, #ffffff);
}

.toner-pill-btn.active {
  background: rgba(6, 182, 212, 0.18);
  border-color: #06b6d4;
  color: #22d3ee;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

/* Service Selection Cards */
.toner-service-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.toner-radio-label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="light"] .toner-radio-label {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.toner-radio-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toner-radio-label:hover {
  border-color: rgba(6, 182, 212, 0.3);
}

.toner-radio-label:has(input:checked) {
  background: rgba(6, 182, 212, 0.12);
  border-color: #06b6d4;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.2);
}

.toner-opt-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white, #ffffff);
  margin-bottom: 2px;
}

[data-theme="light"] .toner-opt-title {
  color: #0f172a;
}

.toner-opt-price {
  font-size: 0.78rem;
  color: #22d3ee;
  font-weight: 600;
}

/* Quantity Counter & Live Price Banner */
.toner-qty-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 12px 16px;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  margin-bottom: 1.4rem;
}

.toner-qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toner-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-white, #ffffff);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

[data-theme="light"] .toner-qty-btn {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #1e293b;
}

.toner-qty-btn:hover {
  background: #06b6d4;
  color: #ffffff;
  border-color: #06b6d4;
}

.toner-qty-input {
  width: 44px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white, #ffffff);
  background: transparent;
  border: none;
}

[data-theme="light"] .toner-qty-input {
  color: #0f172a;
}

.toner-price-meta {
  text-align: right;
}

.toner-price-label {
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.toner-price-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: #10b981;
  line-height: 1.1;
}

.toner-unit-label {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  display: block;
}

/* User Inputs */
.toner-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.toner-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-white, #ffffff);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

[data-theme="light"] .toner-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.toner-input:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.toner-input-full {
  grid-column: 1 / -1;
}

/* Submit Button */
.btn-toner-submit {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.btn-toner-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

.btn-toner-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ==========================================================================
   Popup Celebratory Modal Styling
   ========================================================================== */
.toner-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.toner-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.toner-modal-card {
  position: relative;
  background: #0b1329;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 20px;
  padding: 2.2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(6, 182, 212, 0.2);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

[data-theme="light"] .toner-modal-card {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.toner-modal-backdrop.active .toner-modal-card {
  transform: scale(1) translateY(0);
}

.toner-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.15s ease;
}

.toner-modal-close:hover {
  color: #ffffff;
}

[data-theme="light"] .toner-modal-close:hover {
  color: #0f172a;
}

/* Animated SVG Checkmark */
.toner-modal-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toner-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.4);
  animation: tonerRingPulse 2s infinite ease-out;
}

@keyframes tonerRingPulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.toner-checkmark-svg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: block;
  stroke-width: 3.5;
  stroke: #10b981;
  stroke-miterlimit: 10;
}

.toner-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3.5;
  stroke-miterlimit: 10;
  stroke: #10b981;
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.toner-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes strokeCircle {
  100% { stroke-dashoffset: 0; }
}

@keyframes strokeCheck {
  100% { stroke-dashoffset: 0; }
}

.toner-modal-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.toner-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white, #ffffff);
  margin: 0 0 0.4rem;
}

[data-theme="light"] .toner-modal-title {
  color: #0f172a;
}

.toner-modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.toner-modal-order-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.4rem;
  text-align: left;
}

[data-theme="light"] .toner-modal-order-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.toner-order-code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
}

[data-theme="light"] .toner-order-code-row {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.toner-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  color: #22d3ee;
}

.btn-copy-code {
  background: transparent;
  border: none;
  color: #06b6d4;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 4px;
}

.toner-order-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.82rem;
}

.toner-detail-item {
  display: flex;
  flex-direction: column;
}

.toner-detail-item .detail-k {
  color: var(--text-muted, #94a3b8);
  font-size: 0.72rem;
}

.toner-detail-item .detail-v {
  color: var(--text-white, #ffffff);
  font-weight: 600;
}

[data-theme="light"] .toner-detail-item .detail-v {
  color: #0f172a;
}

.toner-detail-item .highlight {
  color: #10b981;
}

.btn-whatsapp-confirm {
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  margin-bottom: 8px;
  box-sizing: border-box;
}

.btn-whatsapp-confirm:hover {
  background: #20ba5a;
}

/* Responsive Rules */
@media (max-width: 968px) {
  .toner-booking-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .toner-info-col {
    text-align: center;
    align-items: center;
  }
  .toner-info-col h2 {
    font-size: 2.1rem;
  }
}

@media (max-width: 580px) {
  .toner-card {
    padding: 1.4rem;
  }
  .toner-service-options {
    grid-template-columns: 1fr;
  }
  .toner-inputs-grid {
    grid-template-columns: 1fr;
  }
  .toner-info-col h2 {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   Multi-Cartridge Order Cart & Bill Summary Styles
   ========================================================================== */
.btn-add-cartridge-order {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
  border: 1.5px dashed rgba(6, 182, 212, 0.4);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.btn-add-cartridge-order:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: #06b6d4;
  transform: translateY(-1px);
  color: #22d3ee;
}

[data-theme="light"] .btn-add-cartridge-order {
  background: #ecfeff;
  border-color: #06b6d4;
  color: #0891b2;
}

[data-theme="light"] .btn-add-cartridge-order:hover {
  background: #cffafe;
  color: #0e7490;
}

.toner-cart-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.25s ease;
}

[data-theme="light"] .toner-cart-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
}

.toner-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  color: var(--text-white, #ffffff);
}

[data-theme="light"] .toner-cart-header {
  border-bottom-color: #e2e8f0;
  color: #1e293b;
}

.btn-clear-cart {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.btn-clear-cart:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.toner-cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.toner-cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  gap: 10px;
}

[data-theme="light"] .toner-cart-item-row {
  background: #ffffff;
  border-color: #e2e8f0;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.cart-item-model {
  font-weight: 700;
  font-size: 0.85rem;
  color: #38bdf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .cart-item-model {
  color: #0284c7;
}

.cart-item-meta {
  font-size: 0.74rem;
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cart-qty-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 2px 6px;
}

[data-theme="light"] .cart-qty-pill {
  background: #f1f5f9;
}

.btn-cart-qty {
  background: transparent;
  border: none;
  color: var(--text-white, #ffffff);
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  font-size: 0.85rem;
}

[data-theme="light"] .btn-cart-qty {
  color: #0f172a;
}

.cart-item-price {
  font-weight: 800;
  font-size: 0.92rem;
  color: #10b981;
  min-width: 60px;
  text-align: right;
}

.btn-cart-del {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  font-size: 0.9rem;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-cart-del:hover {
  opacity: 1;
  transform: scale(1.15);
}

.toner-bill-summary {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
}

[data-theme="light"] .toner-bill-summary {
  border-top-color: #cbd5e1;
}

.bill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted, #94a3b8);
}

[data-theme="light"] .bill-row {
  color: #475569;
}

.bill-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

[data-theme="light"] .bill-divider {
  background: #e2e8f0;
}

.bill-row.bill-grand-total {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-white, #ffffff);
}

[data-theme="light"] .bill-row.bill-grand-total {
  color: #0f172a;
}

.bill-row.bill-grand-total strong {
  color: #10b981;
  font-size: 1.2rem;
}

/* ==========================================================================
   Printable Official Tax Invoice / Bill Modal Styles
   ========================================================================== */
.toner-invoice-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;
}

.toner-invoice-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.toner-invoice-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  width: 100%;
  max-width: 780px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.invoice-top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.invoice-actions-group {
  display: flex;
  gap: 10px;
}

.btn-invoice-print {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-invoice-print:hover {
  background: #0369a1;
}

.btn-invoice-close {
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.invoice-sheet {
  background: #ffffff;
  color: #0f172a;
}

.invoice-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 1.5rem;
}

.invoice-brand-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0284c7;
  line-height: 1.1;
}

.invoice-brand-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.3;
}

.invoice-badge-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  text-align: right;
}

.invoice-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 1.5rem;
  font-size: 0.84rem;
}

.invoice-meta-block strong {
  color: #0f172a;
}

.invoice-meta-block span {
  color: #64748b;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.86rem;
}

.invoice-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #cbd5e1;
}

.invoice-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.invoice-table tr:nth-child(even) td {
  background: #f8fafc;
}

.invoice-totals-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.invoice-totals-row {
  display: flex;
  justify-content: space-between;
  width: 260px;
}

.invoice-totals-row.grand-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  border-top: 2px solid #0f172a;
  padding-top: 8px;
  margin-top: 4px;
}

.invoice-totals-row.grand-total span:last-child {
  color: #059669;
}

.invoice-footer-note {
  border-top: 1px dashed #cbd5e1;
  padding-top: 12px;
  font-size: 0.76rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Print Only Styles */
@media print {
  body * {
    visibility: hidden !important;
  }
  .toner-invoice-card,
  .toner-invoice-card * {
    visibility: visible !important;
  }
  .toner-invoice-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .toner-invoice-card {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 10mm 15mm !important;
  }
  .invoice-top-actions {
    display: none !important;
  }
}

