/* ==========================================================================
   NEXUS — ENTERPRISE UI / DESIGN SYSTEM & ULTRA-RESPONSIVE ENGINE
   Powered By: Assertec Tecnologia Assertiva | Developed: Matheus Gabardo
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Brand Tokens — Assertec Official */
  --brand-navy-950: #09101A;
  --brand-navy-900: #0E1A29;
  --brand-navy-800: #14253A;
  --brand-navy-700: #1D3552;
  --brand-navy-600: #294A70;
  
  --brand-orange-500: #FA8223;
  --brand-orange-600: #E06F18;
  --brand-orange-400: #FB9A4E;
  --brand-orange-subtle: rgba(250, 130, 35, 0.10);
  --brand-orange-glow: rgba(250, 130, 35, 0.25);
  
  /* Canvas & Surfaces */
  --surface-bg: #F4F6F9;
  --surface-card: #FFFFFF;
  --surface-card-hover: #F8FAFC;
  --surface-subtle: #EDF2F7;
  --surface-cockpit: #0D1623;
  --surface-cockpit-card: #132236;
  
  /* Borders */
  --border-subtle: #E2E8F0;
  --border-card: #E5E9F0;
  --border-focus: #FA8223;
  --border-cockpit: rgba(255, 255, 255, 0.08);
  
  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;
  --text-inverse-muted: #94A3B8;
  
  /* Status */
  --status-success: #10B981;
  --status-success-bg: #ECFDF5;
  --status-success-border: #A7F3D0;
  --status-warning: #F59E0B;
  --status-warning-bg: #FFFBEB;
  --status-warning-border: #FDE68A;
  --status-danger: #EF4444;
  --status-danger-bg: #FEF2F2;
  --status-danger-border: #FECACA;
  --status-info: #0284C7;
  --status-info-bg: #F0F9FF;
  --status-info-border: #BAE6FD;
  
  /* Radii & Shadows */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 8px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 20px -3px rgba(15, 23, 42, 0.08);
  --shadow-orange: 0 4px 14px -2px rgba(250, 130, 35, 0.35);
  --shadow-cockpit: 0 15px 30px -5px rgba(0, 0, 0, 0.4);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== GLOBAL LAYOUT & OVERFLOW PROTECTION ==================== */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--surface-bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ==================== TELA DE LOGIN ==================== */
.login-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 0%, #17283C 0%, #0A121C 100%);
  padding: 1.25rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 25px 60px -15px rgba(10, 18, 28, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
  padding: 2.5rem 2.2rem;
  border: none;
}

.login-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-logo {
  height: 48px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.system-tag-badge {
  display: inline-flex;
  align-items: center;
  background: var(--brand-orange-subtle);
  color: var(--brand-orange-600);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(250, 130, 35, 0.2);
}

.login-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-navy-900);
  margin-top: 0.5rem;
}

.login-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ==================== CAMPOS DE FORMULÁRIO (PADRÃO GLOBAL MODERNO) ==================== */
.form-input {
  width: 100%;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: var(--brand-navy-900);
  font-family: inherit;
  font-size: 0.88rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-sizing: border-box;
}

.form-input:hover {
  border-color: #94A3B8;
}

.form-input:focus {
  border-color: var(--brand-orange-500);
  box-shadow: 0 0 0 3.5px rgba(250, 130, 35, 0.16);
  background: #FFFFFF;
}

.form-input::placeholder {
  color: #94A3B8;
  font-size: 0.85rem;
}

.form-textarea {
  width: 100%;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: var(--brand-navy-900);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}

.form-textarea:hover {
  border-color: #94A3B8;
}

.form-textarea:focus {
  border-color: var(--brand-orange-500);
  box-shadow: 0 0 0 3.5px rgba(250, 130, 35, 0.16);
  background: #FFFFFF;
}

/* Wrapper para Inputs com Ícones Embutidos */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-icon .field-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-with-icon:focus-within .field-icon {
  color: var(--brand-orange-500);
}

.input-with-icon .form-input.login-input {
  padding-left: 2.6rem;
  height: 44px;
  font-size: 0.92rem;
  border-radius: 8px;
}

.btn-login-submit {
  height: 46px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(250, 130, 35, 0.35);
}

/* ==================== HEADER DA APLICAÇÃO (RESPONSIVO) ==================== */
.app-header {
  background: var(--brand-navy-900);
  color: var(--text-inverse);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.header-container {
  width: 100%;
  max-width: 100%;
  padding: 0 1.25rem;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.header-logo {
  height: 32px;
  background: #FFFFFF;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.system-tag {
  display: flex;
  flex-direction: column;
}

.system-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1.1;
}

.system-title .accent-dot {
  color: var(--brand-orange-500);
}

.version-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--brand-orange-400);
  background: rgba(250, 130, 35, 0.15);
  border: 1px solid rgba(250, 130, 35, 0.35);
  padding: 0.08rem 0.4rem;
  border-radius: var(--radius-full);
  vertical-align: middle;
  margin-left: 0.3rem;
  letter-spacing: 0.03em;
}

.system-sub {
  font-size: 0.62rem;
  color: #94A3B8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Abas de Navegação */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.nav-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.07);
}

.nav-btn.active {
  color: #FFFFFF;
  background: var(--brand-orange-500);
  box-shadow: 0 2px 8px rgba(250, 130, 35, 0.35);
}

/* Área do Usuário */
.header-user-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--brand-navy-700);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #FFFFFF;
}

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

.user-name-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
}

.user-role-pill {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-orange-400);
}

.btn-header-action {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.btn-header-action:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.btn-header-action.logout:hover {
  background: var(--status-danger);
  border-color: var(--status-danger);
  color: #FFFFFF;
}

/* ==================== WRAPPER PRINCIPAL & TELAS ==================== */
.main-wrapper {
  flex: 1;
  width: 100%;
  max-width: 100%;
  padding: 1.25rem 1.5rem;
  box-sizing: border-box;
}

.screen-view {
  display: none;
  width: 100%;
  animation: fadeInView 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen-view.active {
  display: block;
}

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

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-navy-900);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.2;
}

.page-title svg {
  color: var(--brand-orange-500);
  flex-shrink: 0;
}

.page-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  max-width: 80ch;
}

/* ==================== CALCULADORA DINÂMICA (GRID ADAPTATIVO) ==================== */
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.25rem;
  align-items: start;
  width: 100%;
}

@media (max-width: 1180px) {
  .calc-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 1rem;
  }
}

@media (max-width: 960px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.calc-checklist-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

/* Barra de Busca + Categorias em Pílulas com Quebra Fluida */
.calc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.calc-search-box {
  position: relative;
  min-width: 240px;
  max-width: 320px;
  flex: 1;
  display: flex;
  align-items: center;
}

.calc-search-box svg {
  position: absolute;
  left: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
}

.calc-search-box input {
  width: 100%;
  padding: 0.48rem 0.85rem 0.48rem 2.25rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-card);
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: var(--transition-fast);
}

.calc-search-box input:focus {
  border-color: var(--brand-orange-500);
  box-shadow: 0 0 0 3px rgba(250, 130, 35, 0.14);
}

.category-filter-bar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  flex: 2;
}

.cat-filter-btn {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cat-filter-btn:hover {
  border-color: var(--brand-navy-700);
  color: var(--brand-navy-900);
}

.cat-filter-btn.active {
  background: var(--brand-navy-900);
  color: #FFFFFF;
  border-color: var(--brand-navy-900);
}

.cat-filter-btn .cat-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
}

.cat-filter-btn.active .cat-count {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* Cards do Checklist com Grid Interno Compacto & Elegante */
.checklist-card {
  background: var(--surface-card);
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  padding: 0.95rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.15rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  width: 100%;
  cursor: pointer;
}

.checklist-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}

.checklist-card.selected {
  border-color: var(--brand-orange-500);
  background: #FFFDF9;
  box-shadow: 0 4px 14px rgba(250, 130, 35, 0.12);
}

.checklist-card.selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: var(--brand-orange-500);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.item-left-info {
  display: contents; /* Alinha o checkbox e os detalhes diretamente no grid do card */
}

.item-checkbox {
  width: 22px;
  height: 22px;
  accent-color: var(--brand-orange-500);
  cursor: pointer;
  margin: 0;
  border-radius: 4px;
}

.item-details {
  min-width: 0; /* Permite que o texto trunque sem forçar a largura */
}

.item-details h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-navy-900);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.item-sku-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-navy-700);
  background: var(--surface-subtle);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  display: inline-block;
  margin-right: 0.4rem;
  border: 1px solid var(--border-subtle);
}

.item-badge-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-comodato {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.badge-venda {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.badge-ambos {
  background: #FAF5FF;
  color: #7E22CE;
  border: 1px solid #E9D5FF;
}

.badge-insumo {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FED7AA;
}

.item-desc-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-top: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dependency-hint {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #B45309;
  background: var(--status-warning-bg);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--status-warning-border);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Controles de Quantidade e Preço Modernos */
.item-right-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.modality-toggle-group {
  display: flex;
  background: #F1F5F9;
  border-radius: 6px;
  padding: 2px;
  border: 1.5px solid #CBD5E1;
}

.toggle-option {
  border: none;
  background: transparent;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.toggle-option.active {
  background: var(--brand-navy-900);
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid #CBD5E1;
  border-radius: 6px;
  background: #F8FAFC;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.qty-btn {
  background: transparent;
  border: none;
  width: 30px;
  height: 32px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: #475569;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--brand-orange-500);
  color: #FFFFFF;
}

.qty-input {
  width: 40px;
  height: 32px;
  border: none;
  border-left: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--brand-navy-900);
  background: #FFFFFF;
}

.qty-input:focus {
  outline: none;
  background: #FFFDFB;
}

.item-live-price {
  text-align: right;
  min-width: 110px;
}

.live-price-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-navy-900);
  line-height: 1.1;
}

.live-price-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

@media (max-width: 680px) {
  .checklist-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .item-right-controls {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--border-subtle);
  }
}

/* ==================== COCKPIT LATERAL (COMPACTO & SEM ROLAGEM) ==================== */
.calc-summary-cockpit {
  background: var(--surface-cockpit);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-cockpit);
  box-shadow: var(--shadow-cockpit);
  padding: 0.85rem 1rem;
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.calc-summary-cockpit::-webkit-scrollbar {
  width: 4px;
}

.calc-summary-cockpit::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

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

.cockpit-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: -0.01em;
}

.cockpit-title svg {
  color: var(--brand-orange-500);
}

.cockpit-count-pill {
  font-size: 0.65rem;
  font-weight: 700;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-full);
}

.cockpit-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #4ADE80;
  background: rgba(74, 222, 128, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.cockpit-live-tag .live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 6px #4ADE80;
}

/* Formulário de Dados do Cliente Ultra Compacto */
.client-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.client-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.form-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-navy-800);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-summary-cockpit .form-label {
  font-size: 0.65rem;
  color: #94A3B8;
}

.form-input-compact {
  height: 32px !important;
  padding: 0.35rem 0.6rem !important;
  font-size: 0.8rem !important;
  border-radius: var(--radius-xs) !important;
}

.calc-summary-cockpit .form-input {
  background: var(--surface-cockpit-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-radius: var(--radius-xs);
  font-family: inherit;
  transition: var(--transition-fast);
}

.calc-summary-cockpit .form-input:focus {
  border-color: var(--brand-orange-500);
  background: rgba(14, 26, 41, 0.9);
  outline: none;
}

.calc-summary-cockpit .form-input::placeholder {
  color: #64748B;
  font-size: 0.75rem;
}

/* Painel de Totais em Grade Dupla (KPIs lado a lado) */
.totals-display-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.total-kpi-card {
  background: var(--surface-cockpit-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition-fast);
}

.total-kpi-card.monthly {
  border-left: 3px solid var(--brand-orange-500);
}

.total-kpi-card.sale {
  border-left: 3px solid #38BDF8;
}

.total-kpi-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.kpi-label {
  font-size: 0.62rem;
  color: #94A3B8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0.15rem 0 0.1rem;
}

.kpi-val-monthly {
  color: var(--brand-orange-500);
}

.kpi-val-sale {
  color: #38BDF8;
}

.kpi-sub {
  font-size: 0.62rem;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lista Compacta de Itens Selecionados no Cockpit */
.cockpit-selected-list {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.6rem;
  max-height: 110px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cockpit-selected-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #E2E8F0;
  gap: 0.4rem;
}

.cockpit-selected-item-row .name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.cockpit-selected-item-row .qty-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand-orange-400);
  flex-shrink: 0;
}

/* Alerta de Dependências Compacto */
.dependency-warning-card {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-xs);
  padding: 0.55rem 0.75rem;
  color: #FDE68A;
}

.dependency-warning-title {
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #FBBF24;
  margin-bottom: 0.3rem;
}

.dependency-list {
  font-size: 0.7rem;
  padding-left: 1rem;
  margin-bottom: 0.45rem;
  line-height: 1.35;
  color: #FDE68A;
}

.btn-auto-fix-dependencies {
  background: var(--brand-orange-500);
  color: #FFFFFF;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-auto-fix-dependencies:hover {
  background: var(--brand-orange-600);
}


/* Botões de Ação do Cockpit: WhatsApp (Verde) + Copiar OS (Roxo) Lado a Lado */
.action-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.action-buttons-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.25);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background: #1EBE5D;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-os-purple {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  color: #FFFFFF;
  border: 1px solid rgba(167, 139, 250, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.35);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-os-purple:hover {
  background: linear-gradient(135deg, #6D28D9 0%, #5B21B6 100%);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}

.btn-save-quote {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.52rem 0.65rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  white-space: nowrap;
  width: 100%;
}

.btn-save-quote:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Seletor de Forma de Pagamento no Cockpit (Venda Direta) */
.cockpit-payment-box {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: var(--radius-xs);
  padding: 0.4rem 0.55rem;
  margin-top: 0.1rem;
  animation: fadeInView 0.18s ease-out;
}

.cockpit-select {
  background-color: var(--surface-cockpit-card) !important;
  border: 1px solid rgba(167, 139, 250, 0.35) !important;
  color: #FFFFFF !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C4B5FD' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.cockpit-select:focus {
  border-color: #A78BFA !important;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.25) !important;
}

.cockpit-select option {
  background: #0E1A29;
  color: #FFFFFF;
}

.btn-cockpit-link {
  background: transparent;
  border: none;
  color: #A78BFA;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.btn-cockpit-link:hover {
  color: #DDD6FE;
}

/* ==================== CATÁLOGO E CONSULTA ==================== */
.catalog-search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.search-input-wrapper {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  font-size: 0.9rem;
  background: var(--surface-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-orange-500);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.form-select {
  padding: 0.65rem 2.2rem 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #CBD5E1;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  color: var(--brand-navy-900);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.form-select:hover {
  border-color: #94A3B8;
}

.form-select:focus {
  border-color: var(--brand-orange-500);
  box-shadow: 0 0 0 3.5px rgba(250, 130, 35, 0.16);
}

.catalog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.product-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.1);
  border-color: #CBD5E1;
}

.card-top {
  padding: 1.15rem;
  border-bottom: 1px solid #E2E8F0;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.card-body {
  padding: 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.price-hero-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spec-sheet-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  white-space: pre-line;
  background: #F8FAFC;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  border-left: 3.5px solid var(--brand-navy-700);
}

.sales-arguments-box {
  font-size: 0.78rem;
  color: #0C4A6E;
  background: var(--status-info-bg);
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  border-left: 3.5px solid #0284C7;
  line-height: 1.45;
}

.key-questions-box {
  font-size: 0.78rem;
  color: #4C1D95;
  background: #F5F3FF;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  border-left: 3.5px solid #7C3AED;
  line-height: 1.45;
  white-space: pre-line;
}

.checklist-probe-box {
  margin-top: 0.35rem;
  font-size: 0.73rem;
  color: #5B21B6;
  background: #F5F3FF;
  border: 1px solid #DDD6FE;
  border-left: 3px solid #7C3AED;
  padding: 0.32rem 0.6rem;
  border-radius: 4px;
  line-height: 1.35;
}

/* Dropzone de Importação XLSX / CSV */
.import-dropzone {
  border: 2px dashed #CBD5E1;
  background: #F8FAFC;
  border-radius: 10px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.import-dropzone:hover,
.import-dropzone.dragover {
  border-color: var(--brand-orange-500);
  background: #FFFDF9;
  box-shadow: 0 0 0 4px rgba(250, 130, 35, 0.1);
}

/* ==================== TABELAS DE DADOS ==================== */
.data-table-container {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.data-table th {
  background: var(--brand-navy-900);
  color: #FFFFFF;
  padding: 0.85rem 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tr:hover {
  background: #F8FAFC;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
}

.status-em_negociacao { background: #FEF3C7; color: #B45309; }
.status-em_negociacao .status-dot { background: #F59E0B; }

.status-aprovado { background: #DCFCE7; color: #15803D; }
.status-aprovado .status-dot { background: #10B981; }

.status-recusado { background: #FEE2E2; color: #B91C1C; }
.status-recusado .status-dot { background: #EF4444; }

.status-concluido { background: #E0E7FF; color: #4338CA; }
.status-concluido .status-dot { background: #6366F1; }

.table-actions {
  display: flex;
  gap: 0.4rem;
}

.btn-icon {
  background: var(--surface-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background: #FFFFFF;
  color: var(--brand-navy-900);
  border-color: var(--brand-navy-700);
}

.btn-icon.danger:hover {
  background: var(--status-danger-bg);
  color: var(--status-danger);
  border-color: var(--status-danger-border);
}

/* ==================== MODAIS ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 26, 41, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

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

.modal-dialog {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-card);
}

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

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-navy-900);
}

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

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  background: var(--surface-card-hover);
}

/* ==================== BOTÕES UTILITÁRIOS ==================== */
.btn-primary {
  background: var(--brand-orange-500);
  color: #FFFFFF;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: var(--shadow-orange);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  background: var(--brand-orange-600);
}

.btn-secondary {
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--surface-subtle);
  border-color: #CBD5E1;
}

.btn-excel {
  background: #107C41;
  color: #FFFFFF;
  border: none;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-fast);
}

.btn-excel:hover {
  background: #0B5B30;
}

/* ==================== TOASTS ==================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--brand-navy-900);
  color: #FFFFFF;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-left: 4px solid var(--brand-orange-500);
}

.toast.success { border-left-color: var(--status-success); }
.toast.error { border-left-color: var(--status-danger); }

/* ==================== RODAPÉ ==================== */
.app-footer {
  background: var(--brand-navy-900);
  color: #94A3B8;
  font-size: 0.8rem;
  padding: 1.15rem 1.25rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.footer-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-branding strong {
  color: #FFFFFF;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--status-success);
  font-weight: 600;
  font-size: 0.75rem;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-success);
  box-shadow: 0 0 8px var(--status-success);
}

/* ==================== TABELA DE FAIXAS PROGRESSIVAS (MODAL) ==================== */
.tier-table-mini {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--surface-card);
  margin-top: 0.5rem;
}

.tier-table-mini th {
  background: var(--brand-navy-900);
  color: #FFFFFF;
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tier-table-mini td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.tier-table-mini tbody tr:last-child td {
  border-bottom: none;
}

.tier-table-mini tbody tr:hover {
  background: #F8FAFC;
}

/* ==================== EDITOR DE FAIXAS (ADMIN) ==================== */
.tier-edit-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  align-items: center;
  background: #FFFFFF;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

/* ==================== BADGES DE PERFIL DE USUÁRIO & STATUS SELECT ==================== */
.user-role-badge,
.data-table .user-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-role-badge.admin,
.data-table .user-role-pill.admin {
  background: #EEF2FF;
  color: #4338CA;
  border: 1px solid #C7D2FE;
}

.user-role-badge.vendedor,
.data-table .user-role-pill.vendedor {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.status-select {
  padding: 0.28rem 1.85rem 0.28rem 0.55rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  border-radius: var(--radius-xs) !important;
  background-position: right 0.45rem center !important;
  background-size: 13px !important;
}

/* Efeito de destaque ao adicionar produto do catálogo */
.highlight-pulse {
  animation: pulseCard 1.5s ease-out;
}

@keyframes pulseCard {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(250, 130, 35, 0.7); }
  50% { transform: scale(1.01); box-shadow: 0 0 0 8px rgba(250, 130, 35, 0); border-color: var(--brand-orange-500); }
  100% { transform: scale(1); box-shadow: none; }
}

/* ==================== RESPONSIVIDADE COMPLETA DO SISTEMA ==================== */
@media (max-width: 1180px) {
  .calc-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 1rem;
  }
  .btn-excel-text {
    display: none;
  }
}

@media (max-width: 960px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .calc-summary-cockpit {
    position: static;
    max-height: none;
    top: auto;
  }
  .header-container {
    height: auto;
    padding: 0.65rem 1rem;
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .brand-section {
    order: 1;
  }
  .header-user-section {
    order: 2;
    margin-left: auto;
  }
  .nav-tabs {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .main-wrapper {
    padding: 0.85rem 1rem;
  }
  .page-header {
    margin-bottom: 0.85rem;
  }
  .page-title {
    font-size: 1.25rem;
  }
  .catalog-search-bar {
    flex-direction: column;
    gap: 0.5rem;
  }
  .catalog-search-bar > div {
    min-width: 100% !important;
  }
  .modal-dialog {
    padding: 0;
    max-height: 94vh;
  }
  .modal-body {
    padding: 1rem;
  }
  .modal-footer {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 680px) {
  .main-wrapper {
    padding: 0.65rem 0.75rem;
  }
  .checklist-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
  }
  .item-right-controls {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-subtle);
  }
  .action-buttons-group {
    grid-template-columns: 1fr;
  }
  .client-form-row {
    grid-template-columns: 1fr;
  }
  .totals-display-grid {
    grid-template-columns: 1fr;
  }
}
