/* ========================== */
/* RESET */
/* ========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #022b20;
  font-family: Arial, sans-serif;
  color: white;
  overflow-x: hidden; /* 🔥 evita corte lateral */
}

/* ========================== */
/* DESKTOP BASE */
/* ========================== */

.sidebar {
  width: 250px;
  background: #01301c;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding-top: 30px;
}

.main,
.ps-main {
  margin-left: 260px;
  padding: 20px;
}

/* 🔥 CORREÇÃO IMPORTANTE */
.container {
  max-width: 1200px;
  width: 100%;
  margin: auto;
}

/* ========================== */
/* 🔥 MOBILE REAL */
/* ========================== */
@media (max-width: 768px) {

  /* ===== BODY ===== */
  body {
    padding: 0;
  }

  /* ===== SIDEBAR → TOPO ===== */
  .sidebar {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
  }

  .sidebar a {
    flex: 1 1 45%;
    text-align: center;
    font-size: 14px;
    padding: 10px;
  }

  /* ===== REMOVE MARGEM LATERAL ===== */
  .main,
  .ps-main {
    margin-left: 0 !important;
    padding: 10px !important;
  }

  /* ===== HEADER ===== */
  .ps-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .ps-header-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .ps-header-actions button {
    width: 100%;
  }

  /* ===== CARDS ===== */
  .ps-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .ps-card {
    width: 100%;
  }

  /* ===== PRODUTOS ===== */
  .ps-section-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* 🔥 TABELA NÃO QUEBRA MAIS */
  .ps-tabela-wrapper {
    overflow-x: auto;
    width: 100%;
  }

  table {
    min-width: 600px; /* evita esmagar */
    font-size: 12px;
  }

  th, td {
    padding: 6px;
    white-space: nowrap;
  }

  /* ===== PDV ===== */
  .ps-pdv-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .ps-pdv-left,
  .ps-pdv-right {
    width: 100%;
  }

  /* ===== FORM ===== */
  .ps-form-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* ===== INPUT ===== */
  input, select {
    width: 100%;
    font-size: 14px;
  }

  /* ===== BOTÕES ===== */
  button {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }

  /* ===== MODAIS ===== */
  #modalHistorico > div,
  #modalDetalhes > div {
    width: 95% !important;
    margin: 20px auto;
  }

}
/* ===== BANNER MOBILE FIX ===== */
@media (max-width: 768px) {

  .banner-area {
    height: 220px !important; /* 🔥 reduz drasticamente */
    background-position: center !important;
    background-size: cover !important;
    margin-top: 10px;
  }

  /* TEXTO HERO AJUSTADO */
  .hero-text-animado {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    padding: 20px;
    max-width: 100%;
    text-align: center;
  }

  .hero-text-animado h1 {
    font-size: 26px;
  }

  .hero-text-animado p {
    font-size: 14px;
  }

}
@media (max-width: 768px) {

  body .banner-area {
    height: 300px !important;

    background-image: url("/img/banner-mobile.png") !important;

    background-size: cover !important;
    background-position: center !important;
  }

}
