@charset "UTF-8";

/* ==========================================================================
   SISTEMA DE DESIGN - GLASSMORPHISM CLARO
   ========================================================================== */

:root {
  /* Cores Base & Gradientes */
  --bg-gradient: linear-gradient(135deg, #eef2f7 0%, #e0e8f5 50%, #f5f3ff 100%);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-bg-solid: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-border-subtle: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 10px 30px 0 rgba(31, 38, 135, 0.07);
  --glass-shadow-lg: 0 18px 40px 0 rgba(31, 38, 135, 0.1);
  --glass-shadow-inner: inset 0 0 0 1px rgba(255, 255, 255, 0.9), inset 0 2px 4px 0 rgba(255, 255, 255, 0.8);

  /* Paleta de Cores de Ação & Status */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.1);
  --primary-glow: rgba(37, 99, 235, 0.22);

  --secondary: #475569;
  --secondary-hover: #334155;

  --success: #10b981;
  --success-hover: #059669;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.3);

  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --warning-border: rgba(245, 158, 11, 0.3);

  --danger: #ef4444;
  --danger-hover: #dc2626;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --danger-border: rgba(239, 68, 68, 0.3);

  --purple: #8b5cf6;
  --purple-bg: rgba(139, 92, 246, 0.12);

  /* Textos & Tipografia */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Raios de Borda */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --backdrop-blur: blur(16px);
}

/* --------------------------------------------------------------------------
   RESET & UTILITÁRIOS
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100vh;
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-main);
  background: var(--bg-gradient);
  background-attachment: fixed;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "calt", "liga";
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   FUNDO ANIMADO (ORBS DE LUZ EFFECT)
   -------------------------------------------------------------------------- */
.login-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #798bca 5%, #3194ce 100%);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #bfdbfe 0%, #c7d2fe 100%);
  bottom: -120px;
  right: -90px;
  animation-delay: -6s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #e0e7ff 0%, #7158c1 100%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -12s;
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(35px, 25px) scale(1.06);
  }

  100% {
    transform: translate(-25px, 40px) scale(0.95);
  }
}

/* --------------------------------------------------------------------------
   BARCO DE VENTO ANIMADO (CANTO SUPERIOR ESQUERDO)
   -------------------------------------------------------------------------- */
.box-drift {
  position: absolute;
  width: 60px;
  height: 60px;
  top: 15px;
  left: 0%;
  z-index: 2;
  pointer-events: none;
  animation: doDrift 18s ease-in-out infinite alternate;
}

.box-bob {
  position: absolute;
  top: 15px;
  width: 60px;
  background: none;
  animation: doBob 2s ease-in-out infinite;
}

.box-pitch {
  height: 60px;
  animation: doPitch 1s ease-in-out infinite;
}

.left-sail {
  background: rgba(255, 255, 255, 0.9);
  position: absolute;
  top: 20%;
  left: 5%;
  width: 40%;
  height: 40%;
  -webkit-clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.right-sail {
  background: #ffffff;
  position: absolute;
  top: 5%;
  left: 50%;
  width: 45%;
  height: 55%;
  -webkit-clip-path: polygon(0 0, 0% 100%, 100% 100%);
  clip-path: polygon(0 0, 0% 100%, 100% 100%);
  filter: drop-shadow(0 2px 4px rgba(31, 38, 135, 0.2));
}

.hull {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  position: absolute;
  top: 65%;
  left: 10%;
  width: 80%;
  height: 25%;
  -webkit-clip-path: polygon(0 0, 100% 0, 79% 100%, 18% 100%);
  clip-path: polygon(0 0, 100% 0, 79% 100%, 18% 100%);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

@keyframes doBob {
  0% {
    top: 15px;
  }

  50% {
    top: 6px;
  }

  100% {
    top: 15px;
  }
}

@keyframes doDrift {
  0% {
    left: 2%;
    transform: scaleX(1);
  }

  49% {
    left: 88%;
    transform: scaleX(1);
  }

  50% {
    left: 88%;
    transform: scaleX(-1);
  }

  100% {
    left: 2%;
    transform: scaleX(-1);
  }
}

@keyframes doPitch {
  0% {
    transform: rotate(-8deg);
  }

  50% {
    transform: rotate(8deg);
  }

  100% {
    transform: rotate(-8deg);
  }
}

/* --------------------------------------------------------------------------
   ESTRUTURA DE TELAS
   -------------------------------------------------------------------------- */
.screen {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  transition: opacity 0.25s ease;
}

.screen.hidden {
  display: none !important;
  opacity: 0;
}

.screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   TELA DE LOGIN
   -------------------------------------------------------------------------- */
#screen-login {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow-lg), var(--glass-shadow-inner);
  padding: 36px;
  animation: cardFadeIn 0.4s ease;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.logo-icon svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 6px 16px rgba(37, 99, 235, 0.3));
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 14px;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   FORMULÁRIOS & INPUTS
   -------------------------------------------------------------------------- */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  color: #2563eb;
  opacity: 1 !important;
  pointer-events: none;
  z-index: 10;
  transition: all 0.2s ease;
}

.input-icon.icon-id-color {
  color: #2563eb !important;
  fill: #2563eb !important;
  opacity: 1 !important;
  filter: drop-shadow(0 2px 5px rgba(37, 99, 235, 0.4));
}

.input-wrapper:focus-within .icon-id-color {
  color: #1d4ed8 !important;
  fill: #1d4ed8 !important;
  transform: scale(1.1);
  filter: drop-shadow(0 3px 8px rgba(37, 99, 235, 0.6));
}

.input-wrapper input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  font-family: inherit;
  font-size: 0.925rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
}

.input-wrapper input::placeholder {
  color: var(--text-light);
}

.input-wrapper input:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px var(--primary-glow);
}

.input-wrapper input:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--primary);
}

.error-msg {
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #b91c1c;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   BOTÕES
   -------------------------------------------------------------------------- */
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-success,
.btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  width: 100%;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 5px 16px rgba(37, 99, 235, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 7px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-main);
}

.btn-success {
  color: #ffffff;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 5px 16px rgba(16, 185, 129, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 7px 20px rgba(16, 185, 129, 0.38);
}

.btn-logout {
  height: 34px;
  padding: 0 14px;
  font-size: 0.825rem;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* --------------------------------------------------------------------------
   BARRA SUPERIOR (TOPBAR)
   -------------------------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 28px;
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 16px rgba(31, 38, 135, 0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left .topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

#user-name-display {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   INDICADOR DE ETAPAS (STEPPER)
   -------------------------------------------------------------------------- */
.stepper-container {
  max-width: 840px;
  margin: 14px auto 8px auto;
  padding: 0 16px;
  width: 100%;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  box-shadow: var(--glass-shadow), var(--glass-shadow-inner);
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: all 0.25s ease;
}

.step.active,
.step.done {
  opacity: 1;
}

.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.step.active .step-circle {
  background: var(--primary);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 0 3.5px var(--primary-glow);
}

.step.done .step-circle {
  background: var(--success);
  border-color: #ffffff;
  color: #ffffff;
}

.step-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
}

.step-line {
  flex: 1;
  height: 2px;
  background: #cbd5e1;
  margin: 0 10px;
  border-radius: 2px;
}

.step-line.done {
  background: linear-gradient(90deg, var(--primary), var(--success));
}

/* --------------------------------------------------------------------------
   CONTEÚDO PRINCIPAL & CARDS GLASSMORPHISM
   -------------------------------------------------------------------------- */
.main-content {
  max-width: 840px;
  margin: 0 auto 16px auto;
  padding: 0 16px;
  width: 100%;
}

.step-content {
  display: none;
}

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

.card {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow-lg), var(--glass-shadow-inner);
  padding: 20px 24px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.card-icon.blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.card-icon.green {
  background: linear-gradient(135deg, #10b981, #047857);
}

.card-icon.orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.info-box {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.info-box-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-box-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.info-box-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 24px;
}

.mt-16 {
  margin-top: 14px;
}

.mt-24 {
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   DROPZONE (ETAPA 2)
   -------------------------------------------------------------------------- */
.dropzone {
  position: relative;
  border: 2px dashed rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  cursor: pointer;
  max-width: 480px;
  margin: 0 auto;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.65);
}

.file-input-hidden {
  display: none !important;
}

.dropzone-icon {
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}

.dropzone-icon svg {
  width: 36px;
  height: 36px;
}

.dropzone-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.dropzone-hint {
  font-size: 0.825rem;
  color: var(--text-light);
  margin: 4px 0;
}

#btn-choose-file {
  height: 36px;
  padding: 0 18px;
  font-size: 0.85rem;
  margin-top: 6px;
  color: #2563eb;
  border-color: #2563eb;
}

.dropzone-formats {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.dropzone-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.spinner-large {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(37, 99, 235, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* --------------------------------------------------------------------------
   AJUSTES ESPECÍFICOS DA ETAPA 3 — PRODUTOS & REVISÃO (EQUALIZADO PARA NOTEBOOK)
   -------------------------------------------------------------------------- */
#step-3 .card {
  padding: 18px 22px;
}

#step-3 .card-header {
  margin-bottom: 12px;
  gap: 10px;
}

#step-3 .card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
}

#step-3 .card-icon svg {
  width: 18px;
  height: 18px;
}

#step-3 .card-title {
  font-size: 1.15rem;
  line-height: 1.2;
}

#step-3 .card-desc {
  font-size: 0.825rem;
}

#step-3 .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

#step-3 .stat-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

#step-3 .stat-label {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#step-3 .stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 1px;
  line-height: 1.15;
}

#step-3 .stat-value.purple {
  color: var(--purple);
}

#step-3 .stat-value.blue {
  color: var(--primary);
}

#step-3 .stat-value.orange {
  color: var(--warning);
}

#step-3 .section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 10px 0 4px 0;
  letter-spacing: -0.01em;
}

#step-3 .chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

#step-3 .chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--primary);
}

/* TABELA CLARAMENTE DEMARCADA E ESTRUTURADA (NOTEBOOK FRIENDLY) */
#step-3 .table-wrapper {
  width: 100%;
  max-height: 160px;
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 14px;
}

#step-3 .data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.8rem;
}

#step-3 .data-table th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f1f5f9;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 0.775rem;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
  white-space: nowrap;
}

#step-3 .data-table td {
  padding: 7px 12px;
  color: #1e293b;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  white-space: nowrap;
}

#step-3 .data-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

#step-3 .data-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

#step-3 .data-table tbody tr:hover {
  background: #eff6ff !important;
}

#step-3 .data-table th:last-child,
#step-3 .data-table td:last-child {
  border-right: none;
}

#step-3 .action-row {
  margin-top: 14px;
}

#step-3 .action-row button {
  height: 38px;
  padding: 0 18px;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   ETAPA 4 — FORNECEDORES & PROGRESSO
   -------------------------------------------------------------------------- */
.progress-section {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
}

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

.progress-label {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-main);
}

.progress-pct {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(203, 213, 225, 0.5);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.progress-counts {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
}

.fornecedores-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fornecedor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.fornecedor-code {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.fornecedor-label {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 0.725rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-wait {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-sending {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.badge-done {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.badge-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.btn-enviar-forn {
  padding: 6px 14px;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-enviar-forn.idle {
  background: var(--primary);
  color: #ffffff;
}

.btn-enviar-forn.idle:hover {
  background: var(--primary-hover);
}

.btn-enviar-forn.sending {
  background: rgba(37, 99, 235, 0.2);
  color: var(--primary);
}

.btn-enviar-forn.done {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.btn-enviar-forn.error {
  background: var(--danger-bg);
  color: var(--danger);
}

.spinner-sm {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* --------------------------------------------------------------------------
   NOTIFICAÇÃO FLUTUANTE (TOAST)
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  padding: 12px 16px;
  background: var(--glass-bg-solid);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: opacity 0.25s ease;
}

.toast.hidden {
  display: none !important;
  opacity: 0;
}

.toast-icon {
  font-size: 1.15rem;
}

.toast-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
}

.toast-msg {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-light);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   RESPONSIVIDADE COMPLETA (TABLETS & SMARTPHONES)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .topbar {
    height: 54px;
    padding: 0 14px;
  }

  .topbar-left .topbar-logo span {
    font-size: 0.9rem;
  }

  .topbar-right {
    gap: 8px;
  }

  #user-name-display {
    display: none;
  }

  .topbar-user {
    padding: 3px;
  }

  .stepper-container {
    padding: 0 12px;
    margin: 12px auto 8px auto;
  }

  .stepper {
    padding: 8px 12px;
  }

  .step-label {
    display: none;
  }

  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 0.825rem;
  }

  .step-line {
    margin: 0 6px;
  }

  .main-content {
    padding: 0 12px;
    margin-bottom: 24px;
  }

  .card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }

  .card-header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .card-icon {
    width: 36px;
    height: 36px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-desc {
    font-size: 0.8rem;
  }

  .field-group {
    margin-bottom: 14px;
  }

  .input-wrapper input {
    height: 42px;
    font-size: 0.875rem;
    padding-left: 40px;
  }

  .action-row {
    flex-direction: column-reverse;
    width: 100%;
    gap: 10px;
    margin-top: 16px;
  }

  .action-row button {
    width: 100%;
    height: 42px;
    font-size: 0.875rem;
    justify-content: center;
  }

  .dropzone {
    padding: 16px 10px;
  }

  #btn-choose-file {
    width: 100%;
  }

  #step-3 .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  #step-3 .stat-card {
    padding: 6px 8px;
  }

  #step-3 .stat-label {
    font-size: 0.65rem;
  }

  #step-3 .stat-value {
    font-size: 0.95rem;
  }

  #step-3 .table-wrapper {
    max-height: 140px;
  }

  .fornecedor-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .fornecedor-info {
    width: 100%;
    justify-content: space-between;
  }

  .btn-enviar-forn {
    width: 100%;
    justify-content: center;
    height: 36px;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-width: auto;
    max-width: none;
    padding: 10px 14px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  .login-title {
    font-size: 1.25rem;
  }
}