/**
 * styles.css
 * Design system mobile-first para o sistema de orçamentos de piscina.
 */

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --primary-soft: #f0f9ff;
  --accent: #0ea5e9;
  --accent-cyan: #06b6d4;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;

  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #38bdf8;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
  --shadow-float: 0 12px 28px rgba(2, 132, 199, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 15px;
  padding-bottom: calc(75px + var(--safe-bottom));
  overflow-x: hidden;
}

/* -------------------------------------------------------------------------- */
/* Cabeçalho do App                                                           */
/* -------------------------------------------------------------------------- */
.app-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-logo-icon svg {
  width: 24px;
  height: 24px;
}

.store-meta {
  display: flex;
  flex-direction: column;
}

.store-name-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

.store-tagline {
  font-size: 11px;
  opacity: 0.85;
}

.badge-prototype {
  background: rgba(254, 240, 138, 0.95);
  color: #854d0e;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Banner de aviso explicativo para o amigo */
.prototype-notice-bar {
  background: #fef9c3;
  color: #713f12;
  border-bottom: 1px solid #fde047;
  padding: 8px 14px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prototype-notice-bar span {
  font-size: 14px;
}

/* -------------------------------------------------------------------------- */
/* Barra de Navegação Inferior (Mobile Bottom Nav)                            */
/* -------------------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(60px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 900;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 3px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.nav-item.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background: var(--danger);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  height: 16px;
  min-width: 16px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* Conteúdo e Vistas (Tabs)                                                   */
/* -------------------------------------------------------------------------- */
.tab-content {
  display: none;
  padding: 16px;
  max-width: 768px;
  margin: 0 auto;
}

.tab-content.active {
  display: block;
}

/* -------------------------------------------------------------------------- */
/* Seções em Cartão                                                           */
/* -------------------------------------------------------------------------- */
.card-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-icon {
  color: var(--primary);
}

.section-badge {
  font-size: 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* -------------------------------------------------------------------------- */
/* Formulários e Inputs (Mobile Friendly)                                     */
/* -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 14px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-label-desc {
  font-weight: normal;
  font-size: 11px;
  color: var(--text-light);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-main);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* -------------------------------------------------------------------------- */
/* Filtros de Categoria (Pill Chips com Rolagem Horizontal)                   */
/* -------------------------------------------------------------------------- */
.category-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-scroller::-webkit-scrollbar {
  display: none;
}

.category-chip {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.category-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Busca rápida */
.search-box {
  position: relative;
  margin-bottom: 14px;
}

.search-box input {
  padding-left: 40px;
}

.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* Lista de Produtos do Catálogo                                              */
/* -------------------------------------------------------------------------- */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-item-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease;
}

.catalog-item-card.has-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

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

.item-info {
  flex: 1;
}

.item-category-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.item-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.item-price-tag {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
  white-space: nowrap;
}

.item-unit {
  font-size: 11px;
  font-weight: normal;
  color: var(--text-light);
}

.item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px dashed var(--border-color);
}

.badge-sample-small {
  font-size: 10px;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Contador Stepper (+ / -) */
.quantity-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  color: var(--primary);
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.1s ease;
}

.stepper-btn:active {
  background: var(--primary-light);
  transform: scale(0.95);
}

.stepper-btn.btn-add {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  width: auto;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
}

.stepper-input {
  width: 44px;
  height: 36px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
}

/* -------------------------------------------------------------------------- */
/* Itens Selecionados no Orçamento Atual                                      */
/* -------------------------------------------------------------------------- */
.selected-items-table {
  width: 100%;
  border-collapse: collapse;
}

.selected-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  gap: 10px;
}

.selected-item-row:last-child {
  border-bottom: none;
}

.selected-item-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

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

.selected-item-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

.selected-item-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* Condições Comerciais e Totais                                              */
/* -------------------------------------------------------------------------- */
.discount-toggle {
  display: flex;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 8px;
}

.discount-toggle-btn {
  flex: 1;
  padding: 8px 12px;
  background: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.discount-toggle-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.payment-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.payment-btn {
  padding: 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.payment-btn.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
}

.totals-summary-box {
  background: var(--primary-soft);
  border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.totals-row.discount {
  color: var(--success);
  font-weight: 600;
}

.totals-row.final {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1.5px solid #bae6fd;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
}

.parcelas-breakdown {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #e0f2fe;
}

/* -------------------------------------------------------------------------- */
/* Barra Fixa Flutuante Inferior (Sticky Action Bar)                          */
/* -------------------------------------------------------------------------- */
.sticky-budget-bar {
  position: fixed;
  bottom: calc(60px + var(--safe-bottom));
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 850;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.sticky-total-info {
  display: flex;
  flex-direction: column;
}

.sticky-total-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.sticky-total-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.btn-primary-large {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-float);
  transition: transform 0.1s ease, filter 0.15s ease;
  min-height: 46px;
  text-decoration: none;
}

.btn-primary-large:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  min-height: 42px;
}

.btn-danger-outline {
  background: #ffffff;
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* Visualização da Proposta Comercial (Tela / Impressão / PDF)                */
/* -------------------------------------------------------------------------- */
.proposal-actions-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  min-height: 48px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:active {
  background: var(--whatsapp-dark);
}

.btn-pdf {
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  min-height: 48px;
}

.proposal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* Top bar decorativa da proposta */
.proposal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0284c7, #0ea5e9, #38bdf8);
}

.proposal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 16px;
}

.proposal-store-brand h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.proposal-store-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.proposal-number-badge {
  text-align: right;
}

.proposal-number-badge .label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.proposal-number-badge .num {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.proposal-client-block {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
}

.proposal-client-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13px;
}

.client-field-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.client-field-val {
  font-weight: 600;
  color: var(--text-main);
}

/* Tabela da Proposta */
.proposal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 13px;
}

.proposal-table th {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-weight: 700;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid var(--border-color);
  font-size: 11px;
  text-transform: uppercase;
}

.proposal-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
}

.proposal-table .text-right {
  text-align: right;
}

.proposal-table .text-center {
  text-align: center;
}

/* Bloco de Totais da Proposta */
.proposal-totals-box {
  margin-left: auto;
  max-width: 320px;
  background: #f0f9ff;
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid #bae6fd;
  margin-bottom: 18px;
}

.proposal-notes-box {
  background: #fafaf9;
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.proposal-notes-box h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.proposal-footer-watermark {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

/* -------------------------------------------------------------------------- */
/* Lista de Histórico                                                         */
/* -------------------------------------------------------------------------- */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.history-client-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

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

.history-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-amount {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-dark);
}

.history-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.history-actions button {
  flex: 1;
}

/* -------------------------------------------------------------------------- */
/* Modais                                                                     */
/* -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal-overlay.active {
  display: flex;
}

.modal-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* -------------------------------------------------------------------------- */
/* Toast Notificação                                                          */
/* -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 400px;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.toast-success {
  background: #065f46;
}

.toast.toast-info {
  background: #0369a1;
}

/* -------------------------------------------------------------------------- */
/* Estilos Especiais para Impressão / PDF (@media print)                      */
/* -------------------------------------------------------------------------- */
@media print {
  @page {
    margin: 12mm;
    size: A4 portrait;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    font-size: 12pt;
  }

  /* Oculta tudo que não faz parte da proposta comercial */
  .app-header,
  .prototype-notice-bar,
  .bottom-nav,
  .sticky-budget-bar,
  .proposal-actions-bar,
  .toast-container,
  .modal-overlay,
  #tab-orcamento,
  #tab-historico,
  #tab-catalogo,
  #tab-loja {
    display: none !important;
  }

  #tab-visualizar {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .proposal-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .proposal-card::before {
    display: none !important;
  }

  .proposal-table th {
    background-color: #f1f5f9 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .proposal-totals-box {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Telas maiores (Tablet / Desktop) */
@media (min-width: 640px) {
  body {
    font-size: 16px;
  }

  .modal-overlay {
    align-items: center;
    padding: 20px;
  }

  .modal-sheet {
    border-radius: var(--radius-lg);
  }

  .proposal-actions-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}
