/* CSS Reset & Variables */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Color Palette - Premium Forest Green & Gold */
  --color-primary: #103F27;
  --color-primary-light: #185c39;
  --color-primary-dark: #092517;
  --color-accent: #C9A054;
  --color-accent-hover: #e5b967;
  --color-bg-dark: #050d09;
  --color-bg-card: rgba(16, 63, 39, 0.08);
  --color-bg-panel: #0a1c13;
  --color-text-light: #f4fcf8;
  --color-text-muted: #a0baa9;
  --color-border: rgba(201, 160, 84, 0.2);
  --color-border-hover: rgba(201, 160, 84, 0.5);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scoped Wrapper to prevent breaking WordPress theme */
#abos-cotizador-wrapper {
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 63, 39, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(201, 160, 84, 0.1) 0%, transparent 40%);
  padding: 2rem 0;
  border-radius: 20px;
  margin-bottom: 2rem;
  box-sizing: border-box;
}

#abos-cotizador-wrapper * {
  box-sizing: border-box;
}

/* Hero Section */
.hero-section {
  padding: 4rem 2rem 2.5rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-text-light) 40%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* Benefits Banner */
.benefits-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  max-width: 1600px;
  margin: 0 auto 2.5rem auto;
  padding: 0 2rem;
}

.benefit-card {
  background: rgba(16, 63, 39, 0.2);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  flex: 1 1 300px;
  max-width: 380px;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-2px);
  background: rgba(16, 63, 39, 0.3);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  background: rgba(201, 160, 84, 0.15);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 10px rgba(201, 160, 84, 0.1);
}

.benefit-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.benefit-info h4 {
  font-family: var(--font-heading);
  color: var(--color-text-light);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.benefit-info p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Layout */
.app-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem 4rem 2rem;
}

@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
}

/* Filters & Search */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: rgba(16, 63, 39, 0.15);
  border: 1px solid var(--color-border);
  padding: 1rem;
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
}

.search-box input {
  width: 100%;
  background: rgba(5, 13, 9, 0.6);
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  border-radius: 12px;
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(201, 160, 84, 0.25);
}

.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-dark);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(201, 160, 84, 0.3);
}

/* Sync Bar */
.sync-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(201, 160, 84, 0.08);
  border: 1px solid var(--color-border);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.sync-icon.spinning i {
  animation: spin 2s linear infinite;
  color: var(--color-accent);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-lg);
  background: rgba(16, 63, 39, 0.12);
}

.product-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: var(--color-primary-dark);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-primary-dark);
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
  line-height: 1.3;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pricing block inside cards */
.product-pricing {
  background: rgba(5, 13, 9, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.pvp-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.pvp-val {
  text-decoration: line-through;
}

.net-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.net-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
}

.net-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
}

.btn-card-add {
  width: 100%;
  background: transparent;
  color: var(--color-text-light);
  border: 1px solid var(--color-accent);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-card-add:hover {
  background: var(--color-accent);
  color: var(--color-bg-dark);
  box-shadow: 0 4px 10px rgba(201, 160, 84, 0.25);
}

/* Sidebar Cotizador */
.quoting-panel {
  background-color: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  max-height: none;
  position: sticky;
  top: 110px;
  box-shadow: var(--shadow-lg);
}

.quoting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.quoting-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quoting-header h3 i {
  color: var(--color-accent);
}

.item-count-badge {
  background: rgba(201, 160, 84, 0.15);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}

.quoting-body {
  flex: 1;
  overflow-y: visible;
  padding-right: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Scrollbars for listing */
.quoting-body::-webkit-scrollbar {
  width: 6px;
}
.quoting-body::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 10px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
}

.empty-state i {
  font-size: 3rem;
  color: var(--color-border);
  margin-bottom: 1rem;
}

.empty-state p {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.empty-state span {
  font-size: 0.75rem;
}

/* Cart Item Cards */
.quote-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

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

.item-remove-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.item-remove-btn:hover {
  color: #ef4444;
}

.quote-item-card h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding-right: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-light);
}

.item-configs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.config-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.config-label {
  color: var(--color-text-muted);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--color-text-light);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.qty-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}

.qty-val {
  font-weight: 600;
  width: 20px;
  text-align: center;
}

.food-badge-trigger {
  background: rgba(201, 160, 84, 0.1);
  border: 1px dashed var(--color-border);
  color: var(--color-accent);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.food-badge-trigger:hover {
  background: rgba(201, 160, 84, 0.2);
}

/* Totals */
.totals-section {
  background: rgba(5, 13, 9, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.total-row.discount {
  color: #38bdf8;
  font-weight: 500;
}

.total-divider {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin: 0.75rem 0;
}

.total-row.grand-total {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0;
}

.btn-primary {
  width: 100%;
  background: var(--color-accent);
  color: var(--color-bg-dark);
  border: none;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(201, 160, 84, 0.4);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.75rem;
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-secondary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  width: 90%;
  max-width: 500px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-accent);
}

.close-modal {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
  max-height: 350px;
  overflow-y: auto;
}

.modal-intro {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.food-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.food-details {
  display: flex;
  flex-direction: column;
}

.food-name {
  font-size: 0.9rem;
  font-weight: 550;
}

.food-price {
  font-size: 0.75rem;
  color: var(--color-accent);
}

.modal-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   THEME INTEGRATION OVERRIDES (Ensures correct contrast & overrides Astra)
   ========================================================================== */
#abos-cotizador-wrapper {
  background-color: #050d09 !important;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 63, 39, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(201, 160, 84, 0.1) 0%, transparent 40%) !important;
  color: #f4fcf8 !important;
  padding: 2.5rem !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

#abos-cotizador-wrapper h1,
#abos-cotizador-wrapper h2,
#abos-cotizador-wrapper h3,
#abos-cotizador-wrapper h4,
#abos-cotizador-wrapper h5,
#abos-cotizador-wrapper h6 {
  color: #f4fcf8 !important;
}

#abos-cotizador-wrapper p,
#abos-cotizador-wrapper li,
#abos-cotizador-wrapper label {
  color: #a0b2a6 !important;
}

#abos-cotizador-wrapper span {
  color: inherit;
}

/* Force specific colors for highlighted labels and values */
#abos-cotizador-wrapper .benefit-info h4,
#abos-cotizador-wrapper .product-info h4,
#abos-cotizador-wrapper .quoting-header h3,
#abos-cotizador-wrapper .quote-item-info h5,
#abos-cotizador-wrapper .modal-header h4 {
  color: #f4fcf8 !important;
}

#abos-cotizador-wrapper .benefit-info p,
#abos-cotizador-wrapper .product-desc,
#abos-cotizador-wrapper .empty-state p {
  color: #a0b2a6 !important;
}

#abos-cotizador-wrapper .net-label,
#abos-cotizador-wrapper .net-val,
#abos-cotizador-wrapper .item-count-badge,
#abos-cotizador-wrapper .qty-val,
#abos-cotizador-wrapper .total-row.discount,
#abos-cotizador-wrapper .food-price {
  color: var(--color-accent) !important;
}

#abos-cotizador-wrapper #total-pvp,
#abos-cotizador-wrapper #total-net-experiences,
#abos-cotizador-wrapper #total-food,
#abos-cotizador-wrapper #grand-total {
  color: #f4fcf8 !important;
}

#abos-cotizador-wrapper #total-discount {
  color: var(--color-accent) !important;
}

/* Form inputs & search box */
#abos-cotizador-wrapper input[type="text"],
#abos-cotizador-wrapper #search-input {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #f4fcf8 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 0.8rem 1.2rem !important;
  border-radius: 12px !important;
}

#abos-cotizador-wrapper input[type="text"]::placeholder,
#abos-cotizador-wrapper #search-input::placeholder {
  color: rgba(244, 252, 248, 0.4) !important;
}

/* Category Filters */
#abos-cotizador-wrapper .filter-btn {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #f4fcf8 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#abos-cotizador-wrapper .filter-btn:hover,
#abos-cotizador-wrapper .filter-btn.active {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-bg-dark) !important;
}

/* Sync Status Bar */
#abos-cotizador-wrapper .sync-status {
  background: rgba(201, 160, 84, 0.08) !important;
  border: 1px solid rgba(201, 160, 84, 0.15) !important;
  color: var(--color-accent) !important;
}

/* Add Experience Button */
#abos-cotizador-wrapper .btn-card-add {
  border: 1px solid var(--color-accent) !important;
  color: #f4fcf8 !important;
}

#abos-cotizador-wrapper .btn-card-add:hover {
  background: var(--color-accent) !important;
  color: var(--color-bg-dark) !important;
}

/* Sidebar Panel */
#abos-cotizador-wrapper .quoting-panel {
  background-color: var(--color-bg-panel) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Responsive Overrides for Mobile Integration */
@media (max-width: 768px) {
  #abos-cotizador-wrapper {
    padding: 1rem 0.5rem !important;
    border-radius: 12px !important;
  }
  
  .app-layout {
    padding: 0 0.5rem 2rem 0.5rem !important;
    gap: 1.5rem !important;
  }
  
  .benefits-banner {
    padding: 0 0.5rem !important;
    gap: 1rem !important;
  }
  
  .filter-bar {
    padding: 0.8rem !important;
    gap: 1rem !important;
  }
  
  .filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 0.8rem !important;
    font-size: 0.8rem !important;
    flex: 1 1 auto;
    text-align: center;
  }
}

/* ==========================================================================
   PRINT STYLES (Creates a clean corporate PDF when printing the page)
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
    font-size: 11pt;
    line-height: 1.5;
  }
  
  /* Hide interactive areas, background graphics, and headers */
  .main-header,
  .hero-section,
  .catalog-section,
  .quoting-header,
  .item-remove-btn,
  .qty-btn,
  .qty-control button,
  .food-badge-trigger,
  .btn-primary,
  .btn-secondary,
  #category-filters,
  #search-input {
    display: none !important;
  }
  
  /* Reset Page Layout to full-width */
  .app-layout {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Style quoting sidebar to act as the main document */
  .quoting-panel {
    position: relative !important;
    top: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-height: none !important;
  }
  
  /* Reveal custom print invoice header */
  .print-invoice-header {
    display: block !important;
    margin-bottom: 2.5rem;
    color: #000000 !important;
  }
  
  .print-invoice-header h2 {
    font-family: var(--font-heading);
    font-size: 22pt;
    font-weight: 800;
    color: #103F27 !important;
    margin-bottom: 0.5rem;
  }
  
  .print-invoice-header p {
    font-size: 10pt;
    color: #444444;
  }
  
  /* Style cart items as clean list rows */
  .quote-item-card {
    background: none !important;
    border: none !important;
    border-bottom: 1px solid #dddddd !important;
    padding: 1.5rem 0 !important;
    margin-bottom: 0 !important;
    page-break-inside: avoid;
  }
  
  .quote-item-card h5 {
    color: #103F27 !important;
    font-size: 14pt !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .config-row {
    font-size: 10pt !important;
    color: #333333 !important;
  }
  
  /* Show static quantity for printing */
  .qty-val {
    width: auto !important;
    font-weight: 700;
  }
  
  /* Format list elements */
  ul {
    padding-left: 1.5rem !important;
    margin-top: 0.5rem !important;
  }
  
  ul li {
    color: #000000 !important;
    font-size: 9pt !important;
    list-style-type: square !important;
  }
  
  /* Formatting Totals block */
  .totals-section {
    background: #f7f9f8 !important;
    border: 1px solid #cccccc !important;
    border-radius: 12px;
    padding: 1.5rem !important;
    margin-top: 2rem !important;
    page-break-inside: avoid;
  }
  
  .total-row {
    font-size: 10pt !important;
    color: #333333 !important;
    margin-bottom: 0.6rem !important;
  }
  
  .total-row.discount {
    color: #0d47a1 !important; /* Dark blue for readability on white paper */
    font-weight: 600;
  }
  
  .total-divider {
    background: #cccccc !important;
    height: 1px !important;
    margin: 1rem 0 !important;
  }
  
  .total-row.grand-total {
    font-size: 15pt !important;
    color: #103F27 !important;
    font-weight: 800;
  }
  
  /* Reveal print invoice footer */
  .print-invoice-footer {
    display: block !important;
    page-break-inside: avoid;
  }
}
