/* ==========================================================================
   VITHU RESIN WORKS — VIEW-SPECIFIC STYLES
   ========================================================================== */

/* Quick Sale Mobile-First Pad */
.quick-sale-wrapper {
  max-width: 580px;
  margin: 0 auto;
}

.quick-sale-card {
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.quick-sale-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.quick-sale-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #ffffff;
}

.quick-sale-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quick-amount-input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.quick-amount-currency {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.quick-amount-input {
  padding-left: 4.5rem !important;
  font-family: var(--font-heading) !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  height: 70px !important;
  text-align: right;
  padding-right: 1.25rem !important;
  background: rgba(0, 0, 0, 0.4) !important;
}

.quick-product-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.product-chip {
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.product-chip:hover {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.1);
}

.product-chip.selected {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.25);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.product-chip .chip-name {
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-chip .chip-price {
  font-size: 0.75rem;
  color: var(--primary);
}

/* Production Pour Calculator */
.pour-calc-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(13, 19, 34, 0.9));
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.ratio-display-box {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.ratio-formula {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
}

.ready-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xl);
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Product Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
}

.product-image-box {
  width: 100%;
  height: 180px;
  background-color: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 2.5rem;
  overflow: hidden;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stock-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.product-details {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.product-category-tag {
  font-size: 0.75rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.price-margin-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.selling-price-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--success);
}

.margin-val {
  font-size: 0.8rem;
  color: var(--accent-pink);
  font-weight: 600;
}

/* Invoice Live HTML Preview */
.invoice-preview-container {
  background: #ffffff;
  color: #1f2937;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
  max-width: 800px;
  margin: 0 auto;
}

.invoice-preview-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.inv-brand-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #0891b2;
}

.inv-meta-table {
  text-align: right;
  font-size: 0.85rem;
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.inv-table th {
  background: #f3f4f6;
  color: #374151;
  padding: 0.65rem;
  font-size: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #d1d5db;
}

.inv-table td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
}

.inv-totals-box {
  width: 260px;
  margin-left: auto;
  font-size: 0.9rem;
}

.inv-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
}

.inv-grand-total {
  font-weight: 800;
  font-size: 1.2rem;
  color: #0891b2;
  border-top: 2px solid #0891b2;
  padding-top: 0.5rem;
}

/* P&L Statement Layout */
.pnl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pnl-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.pnl-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.pnl-total-row {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  padding-top: 1rem;
  border-bottom: none;
}
