/* ============================================
   DULCES AROMAS POS v7 - STYLES.CSS
   Shopify Style | Mobile-First | 100% Offline
   ============================================ */

:root {
  --color-primary: #0d9488;
  --color-primary-dark: #0f766e;
  --color-primary-light: #5eead4;
  --color-accent: #06b6d4;
  --color-surface: #ffffff;
  --color-surface-elevated: #fafafa;
  --color-background: #f5f5f5;
  --color-text: #1a1a1a;
  --color-text-secondary: #616161;
  --color-text-tertiary: #a0a0a0;
  --color-border: #e0e0e0;
  --color-border-light: #f0f0f0;
  --color-success: #008060;
  --color-warning: #ffc453;
  --color-danger: #d72c0d;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-background);
  color: var(--color-text);
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* SPLASH */
.splash-screen {
  position: fixed; inset: 0;
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.splash-screen.hidden { opacity: 0; pointer-events: none; }
.splash-content { text-align: center; padding: 20px; }
.splash-logo {
  width: 80px; height: 80px;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}
.logo-fallback { font-size: 40px; }
.splash-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.splash-title { font-size: 24px; font-weight: 700; color: var(--color-text); margin-bottom: 4px; }
.splash-subtitle { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 24px; }
.splash-loader { width: 120px; height: 3px; background: var(--color-border-light); border-radius: 3px; margin: 0 auto; overflow: hidden; }
.loader-bar { width: 0; height: 100%; background: var(--color-primary); border-radius: 3px; animation: loadBar 1.5s ease forwards; }
@keyframes loadBar { to { width: 100%; } }

/* APP */
.app { height: 100vh; display: flex; flex-direction: column; }
.app.hidden { display: none; }

/* HEADER */
.app-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-surface);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}
.header-left { display: flex; align-items: center; gap: 10px; }
.header-logo { width: 36px; height: 36px; object-fit: cover; border-radius: var(--radius-sm); }
.header-title { font-size: 18px; font-weight: 700; color: var(--color-primary); }
.header-right { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none; background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.icon-btn:active { background: var(--color-border-light); }
.badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  background: var(--color-danger);
  color: white; font-size: 11px; font-weight: 700;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* NOTIFICATIONS */
.notif-panel {
  position: fixed; top: 60px; right: 16px;
  width: 300px; max-height: 400px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
  animation: slideDown 0.2s ease;
}
.notif-panel.hidden { display: none; }
.notif-header { padding: 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--color-border-light); }
.notif-header h3 { font-size: 16px; font-weight: 600; }
.notif-list { max-height: 320px; overflow-y: auto; padding: 8px; }
.notif-item { padding: 12px; border-radius: var(--radius-sm); margin-bottom: 6px; font-size: 13px; }
.notif-item.warning { background: #fff8e1; color: #e65100; }
.notif-item.info { background: #e3f2fd; color: #1565c0; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* MAIN CONTENT */
.main-content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 16px 100px; -webkit-overflow-scrolling: touch; }

/* TABS */
.tab-panel { display: none; animation: fadeIn 0.2s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* SEARCH */
.search-bar {
  display: flex; align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 10px 14px;
  margin-bottom: 12px;
  gap: 8px;
}
.search-bar input {
  flex: 1; border: none; background: none;
  font-size: 15px; outline: none;
  color: var(--color-text);
}
.search-bar input::placeholder { color: var(--color-text-tertiary); }
.search-icon { color: var(--color-text-tertiary); flex-shrink: 0; }
.clear-search {
  background: none; border: none;
  color: var(--color-text-tertiary);
  font-size: 16px; cursor: pointer;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}

/* CATEGORY PILLS */
.category-pills {
  display: flex; gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.category-pills::-webkit-scrollbar { display: none; }
.pill {
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 13px; font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer; white-space: nowrap;
  transition: all 0.2s;
}
.pill.active {
  background: var(--color-primary);
  color: white; border-color: var(--color-primary);
}
.pill:active { transform: scale(0.96); }

/* PRODUCTS */
.products-scroll { height: calc(100vh - 220px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  position: relative;
}
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--color-border-light);
}
.product-card:active { transform: scale(0.98); }
.product-image {
  position: relative;
  width: 100%; height: 140px;
  background: var(--color-surface-elevated);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.3s;
}
.product-image img.loaded { opacity: 1; }
.img-placeholder { font-size: 40px; }
.product-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px; font-weight: 600;
  z-index: 2;
}
.product-badge.low { background: var(--color-warning); color: var(--color-text); }
.product-badge.out { background: var(--color-danger); color: white; }
.product-info { padding: 10px 12px 12px; }
.product-name { font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.product-variant { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 8px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 15px; font-weight: 700; color: var(--color-primary); }
.product-stock { font-size: 11px; color: var(--color-text-tertiary); }
.product-stock.low { color: var(--color-warning); font-weight: 600; }
.product-stock.out { color: var(--color-danger); font-weight: 600; }

/* EMPTY STATE */
.empty-state {
  text-align: center; padding: 40px 20px;
  color: var(--color-text-tertiary);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* LIST ROWS (Inventory, Clients, Debts) */
.inventory-list, .clients-list, .debts-list, .report-list {
  display: flex; flex-direction: column; gap: 8px;
}
.list-row {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: background 0.2s;
}
.list-row:active { background: var(--color-surface-elevated); }
.list-row-main { flex: 1; min-width: 0; }
.list-row-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.list-row-sub { font-size: 13px; color: var(--color-text-secondary); }
.list-row-actions { display: flex; gap: 6px; flex-shrink: 0; margin-left: 10px; }

/* MARGEN BADGE */
.margen-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600;
  margin-top: 4px;
}
.margen-badge.buen-margen { background: #e8f5e9; color: var(--color-success); }
.margen-badge.margen-ok { background: #fff3e0; color: #e65100; }
.margen-badge.margen-bajo { background: #ffebee; color: var(--color-danger); }

/* QTY BUTTONS */
.qty-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 18px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.qty-btn:active { background: var(--color-border-light); transform: scale(0.95); }

/* BUTTONS */
.btn-primary {
  background: var(--color-primary);
  color: white; border: none;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.btn-primary:active { background: var(--color-primary-dark); transform: translateY(1px); }
.btn-full { width: 100%; margin-top: 12px; }
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
}
.btn-danger {
  background: var(--color-danger);
  color: white; border: none;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
}
.btn-pill {
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  border: none;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
}

/* FAB CART */
.fab-cart {
  position: fixed; bottom: 80px; right: 16px;
  width: 56px; height: 56px;
  background: var(--color-primary);
  color: white;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 90;
  transition: transform 0.3s, opacity 0.3s;
}
.fab-cart.hidden { transform: scale(0); opacity: 0; pointer-events: none; }
.fab-cart:active { transform: scale(0.95); }
.fab-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px;
  background: var(--color-danger);
  color: white; font-size: 12px; font-weight: 700;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px;
}

/* CART DRAWER */
.cart-drawer {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-height: 85vh;
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 300;
  display: flex; flex-direction: column;
  animation: slideUp 0.3s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}
.cart-drawer.hidden { display: none; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.drawer-header {
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--color-border-light);
}
.drawer-header h3 { font-size: 18px; font-weight: 700; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; max-height: 40vh; }
.cart-item {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.cart-item-image {
  width: 56px; height: 56px;
  background: var(--color-surface-elevated);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 13px; color: var(--color-text-secondary); margin-bottom: 8px; }
.cart-item-qty { display: flex; align-items: center; gap: 12px; }
.cart-item-qty span { font-size: 15px; font-weight: 600; min-width: 24px; text-align: center; }

/* CART FOOTER */
.cart-footer { padding: 16px 20px 24px; border-top: 1px solid var(--color-border-light); }
.cart-totals { margin-bottom: 16px; }
.total-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.total-row.total { font-size: 18px; font-weight: 700; border-top: 2px solid var(--color-border); padding-top: 10px; margin-top: 4px; }
.discount-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.discount-row input {
  width: 100px; padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px; text-align: right;
}
.payment-methods { margin-bottom: 12px; }
.payment-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.payment-row span { font-size: 14px; color: var(--color-text-secondary); }
.payment-row input {
  width: 120px; padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px; text-align: right;
}
.vuelto-box {
  display: flex; justify-content: space-between; align-items: center;
  background: #e8f5e9;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 16px; font-weight: 700;
  color: var(--color-success);
}
.vuelto-box.hidden { display: none; }

/* FIADO */
.fiado-section { margin-bottom: 16px; }
.fiado-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; font-weight: 500; }
.fiado-check input { width: 20px; height: 20px; accent-color: var(--color-primary); }
.fiado-options { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.fiado-options.hidden { display: none; }
.fiado-options select {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--color-surface);
}
.fiado-preview { font-size: 14px; color: var(--color-text-secondary); padding: 8px 0; }

/* BOTTOM NAV */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  display: flex; justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border: none; background: none;
  color: var(--color-text-tertiary);
  font-size: 11px; font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-item.active { color: var(--color-primary); }
.nav-item svg { stroke-width: 1.5; }

/* BOTTOM SHEET */
.bottom-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 400;
  animation: slideUp 0.3s ease;
  max-height: 70vh;
  overflow-y: auto;
}
.bottom-sheet.hidden { display: none; }
.sheet-header { padding: 12px 20px 8px; text-align: center; }
.sheet-handle {
  width: 40px; height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin: 0 auto 12px;
}
.sheet-header h3 { font-size: 18px; font-weight: 700; }
.sheet-content { padding: 8px 16px 24px; }
.sheet-item {
  width: 100%;
  padding: 16px;
  background: none; border: none;
  text-align: left;
  font-size: 15px;
  color: var(--color-text);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  display: flex; align-items: center;
}
.sheet-item:active { background: var(--color-surface-elevated); }
.sheet-item.danger { color: var(--color-danger); }

/* OVERLAY */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 250;
  animation: fadeIn 0.2s ease;
}
.overlay.hidden { display: none; }

/* MODALS */
.modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 92%; max-width: 420px;
  max-height: 85vh;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  z-index: 500;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}
.modal.hidden { display: none; }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -45%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.modal-header {
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-form { padding: 16px 20px 24px; overflow-y: auto; flex: 1; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px; font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--color-primary); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* FOTO PREVIEW */
.foto-preview {
  width: 100%; height: 160px;
  background: var(--color-surface-elevated);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}
.foto-preview:active { border-color: var(--color-primary); }
.foto-preview.has-image { border-style: solid; border-color: var(--color-primary); }
.foto-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-placeholder {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; color: var(--color-text-tertiary);
}
.upload-placeholder span { font-size: 13px; }

/* TICKET */
.ticket-content {
  padding: 20px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
}
.ticket-header { text-align: center; margin-bottom: 12px; }
.ticket-line { display: flex; justify-content: space-between; margin: 4px 0; }

/* CONFETTI */
.confetti-container {
  position: absolute; top: 0; left: 0; right: 0;
  height: 200px; pointer-events: none;
  overflow: hidden;
}
.confetti-piece {
  position: absolute; top: -10px;
  width: 10px; height: 10px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(200px) rotate(720deg); opacity: 0; }
}

/* CONFIRM BOX */
.confirm-box {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  width: 85%; max-width: 320px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 600;
}
.confirm-box p { font-size: 15px; margin-bottom: 20px; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* TOAST */
.toast {
  position: fixed; bottom: 100px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  font-size: 14px; font-weight: 500;
  z-index: 700;
  animation: toastIn 0.3s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
.toast.hidden { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* DEBT SUMMARY */
.debt-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.debt-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}
.debt-card.total { border-top: 3px solid var(--color-primary); }
.debt-card.vencido { border-top: 3px solid var(--color-warning); }
.card-value { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.card-label { font-size: 12px; color: var(--color-text-secondary); }

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.metric-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}
.metric-value { font-size: 18px; font-weight: 700; color: var(--color-primary); margin-bottom: 4px; }
.metric-label { font-size: 12px; color: var(--color-text-secondary); }

/* CHART */
.chart-container {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  height: 200px;
}
.chart-container canvas { width: 100%; height: 100%; }

/* PROFIT BOX */
.profit-box {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  text-align: center;
}
.profit-label { font-size: 13px; color: var(--color-text-secondary); margin-bottom: 8px; }
.profit-value { font-size: 24px; font-weight: 700; color: var(--color-success); }

/* PERIOD TABS */
.period-tabs {
  display: flex; gap: 8px;
  margin-bottom: 16px;
  background: var(--color-surface);
  padding: 4px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.period-tab {
  flex: 1;
  padding: 10px;
  border: none; background: none;
  font-size: 13px; font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.2s;
}
.period-tab.active { background: var(--color-primary); color: white; }

/* CUOTAS CONTENT */
.cuotas-content { padding: 0 20px 24px; overflow-y: auto; max-height: 60vh; }

/* HIDDEN */
.hidden { display: none !important; }

/* PRINT */
@media print {
  .app-header, .bottom-nav, .fab-cart, .overlay, .modal, .toast { display: none !important; }
  .main-content { padding: 0; }
  #ticketModal { position: static; transform: none; width: 100%; max-width: none; box-shadow: none; }
  #ticketOverlay { display: none !important; }
}

/* RESPONSIVE */
@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .debt-summary { grid-template-columns: repeat(3, 1fr); }
}
