:root {
  --primary-color: #2b2b3f;
  --secondary-color: #1f1f2b;
  --green: #00c853;
  --blue: #2196f3;
  --purple: #7c4dff;
  --pink: #e91e63;
  --text-light: #ffffff;
  --text-dark: #b3b3b3;
  --success: #00c853;
  --warning: #ffc107;
  --danger: #f44336;
  --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-numbers: 'Roboto Mono', monospace;

  /* Novas variáveis de cor */
  --gradient-primary: linear-gradient(145deg, #2b2b3f 0%, #1a1a2e 100%);
  --gradient-green: linear-gradient(145deg, #00e676 0%, #00c853 100%);
  --gradient-blue: linear-gradient(145deg, #42a5f5 0%, #2196f3 100%);
  --gradient-purple: linear-gradient(145deg, #9575cd 0%, #7c4dff 100%);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--secondary-color);
  color: var(--text-light);
  min-width: 320px;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100%;
  padding-bottom: 80px;
  /* Space for FAB */
}

header {
  margin-bottom: 30px;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
}

/* Estilos de Status de Conexão */
.header-title {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 600%;
  height: 600%;
  border-radius: 50%;
  transform: translate(-42%, -42%);
  animation: status-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.4;
}

@keyframes status-ping {
  0% {
    transform: translate(-42%, -42%) scale(0.1);
    opacity: 0.8;
  }

  70%,
  100% {
    transform: translate(-42%, -42%) scale(1);
    opacity: 0;
  }
}

/* Estado Online */
.connection-status.online {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.connection-status.online .status-dot,
.connection-status.online .status-dot::after {
  background-color: #4ade80;
}

/* Estado Offline */
.connection-status.offline {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.05);
}

.connection-status.offline .status-dot,
.connection-status.offline .status-dot::after {
  background-color: #f87171;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

body.is-offline .fab {
  background: #555 !important;
}

body.is-offline .finalize-btn-large {
  background: #ff9800 !important;
}

header h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 2em;
  /* Increase font size for better visibility */
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  /* Keep the text shadow */
}

.back-button {
  position: relative;
  /* Remove absolute positioning */
  top: auto;
  left: auto;
  transform: none;
  /* Remove transform */
  margin-bottom: 10px;
  /* Add some space between button and title */
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.back-button i {
  margin-right: 5px;
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.card {
  background: linear-gradient(145deg, var(--primary-color), rgba(31, 31, 43, 0.9));
  border-radius: 16px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 25px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transform: translateY(0);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.1));
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02));
  pointer-events: none;
  border-radius: inherit;
}

.card:nth-child(1) {
  background: linear-gradient(145deg,
      rgba(0, 200, 83, 0.15) 0%,
      rgba(0, 230, 118, 0.05) 100%);
}

.card:nth-child(2) {
  background: linear-gradient(145deg,
      rgba(33, 150, 243, 0.15) 0%,
      rgba(66, 165, 245, 0.05) 100%);
}

.card:nth-child(3) {
  background: linear-gradient(145deg,
      rgba(124, 77, 255, 0.15) 0%,
      rgba(149, 117, 205, 0.05) 100%);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--green);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.card:hover .card-icon {
  transform: scale(1.05);
}

.card-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.card-icon.shirt {
  background: linear-gradient(145deg, #00e676 0%, #00c853 50%, #00a045 100%);
  box-shadow: 0 8px 25px rgba(0, 230, 118, 0.35);
}

.card-icon.money {
  background: linear-gradient(145deg, #42a5f5 0%, #2196f3 50%, #1976d2 100%);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.35);
}

.card-icon.profit {
  background: linear-gradient(145deg, #9575cd 0%, #7c4dff 50%, #6200ea 100%);
  box-shadow: 0 8px 25px rgba(124, 77, 255, 0.35);
}

.card-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.2) 60%,
      transparent 70%);
  opacity: 0.4;
  mix-blend-mode: soft-light;
}

.card-icon i {
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.card-content h3 {
  font-size: 0.85em;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.number {
  font-family: var(--font-numbers);
  font-size: 2em;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.card-icon i,
.payment-icon i {
  animation: floatIcon 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes iconGlow {

  0%,
  100% {
    transform: rotate(0deg);
    opacity: 0.8;
  }

  50% {
    transform: rotate(180deg);
    opacity: 0.4;
  }
}

.subtitle {
  font-size: 0.85em;
  color: var(--text-dark);
  opacity: 0.8;
}

.payment-section h2 {
  font-size: 1em;
  color: var(--green);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-section h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: var(--green);
  border-radius: 2px;
}

.payment-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.payment-card {
  background: none;
  background: linear-gradient(145deg,
      rgba(43, 43, 63, 0.8),
      rgba(31, 31, 43, 0.6));
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

.payment-card:nth-child(1) {
  background: linear-gradient(145deg,
      rgba(0, 200, 83, 0.15) 0%,
      rgba(0, 230, 118, 0.05) 100%);
  border: 1px solid rgba(0, 200, 83, 0.2);
}

.payment-card:nth-child(2) {
  background: linear-gradient(145deg,
      rgba(33, 150, 243, 0.15) 0%,
      rgba(66, 165, 245, 0.05) 100%);
  border: 1px solid rgba(33, 150, 243, 0.2);
}

.payment-card:nth-child(3) {
  background: linear-gradient(145deg,
      rgba(233, 30, 99, 0.15) 0%,
      rgba(240, 98, 146, 0.05) 100%);
  border: 1px solid rgba(233, 30, 99, 0.2);
}

.payment-card:nth-child(4) {
  background: linear-gradient(145deg,
      rgba(124, 77, 255, 0.15) 0%,
      rgba(149, 117, 205, 0.05) 100%);
  border: 1px solid rgba(124, 77, 255, 0.2);
}

.payment-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.payment-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2em;
  position: relative;
  overflow: hidden;
}

.payment-icon.pix {
  background: linear-gradient(145deg, #00e676 0%, #00c853 50%, #00a045 100%);
  box-shadow: 0 8px 25px rgba(0, 230, 118, 0.35);
}

.payment-icon.money {
  background: linear-gradient(145deg, #42a5f5 0%, #2196f3 50%, #1976d2 100%);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.35);
}

.payment-icon.debit {
  background: linear-gradient(145deg, #ff4081 0%, #e91e63 50%, #c2185b 100%);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.35);
}

.payment-icon.credit {
  background: linear-gradient(145deg, #9575cd 0%, #7c4dff 50%, #6200ea 100%);
  box-shadow: 0 8px 25px rgba(124, 77, 255, 0.35);
}

.payment-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.2) 60%,
      transparent 70%);
  opacity: 0.4;
  mix-blend-mode: soft-light;
  animation: iconGlow 3s ease-in-out infinite;
}

.payment-card:hover .payment-icon {
  transform: scale(1.1) rotate(5deg);
}

.payment-card h3 {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.payment-card:nth-child(1) .amount {
  background: linear-gradient(90deg, #00e676, #00c853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.payment-card:nth-child(2) .amount {
  background: linear-gradient(90deg, #42a5f5, #2196f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.payment-card:nth-child(3) .amount {
  background: linear-gradient(90deg, #ff4081, #e91e63);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.payment-card:nth-child(4) .amount {
  background: linear-gradient(90deg, #9575cd, #7c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.amount {
  font-family: var(--font-numbers);
  font-size: 1.6em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.details {
  font-size: 0.9em;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.tax {
  font-size: 0.8em;
  color: var(--text-dark);
  margin-bottom: 4px;
  opacity: 0.8;
}

.hourly-sales-section {
  margin-top: 20px;
  padding: 20px 0;
  position: relative;
}

/* Linha de topo removida para deixar solto */

.hourly-sales-section h2 {
  font-size: 1.2em;
  color: var(--green);
  margin-bottom: 35px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(45px, 1fr));
  gap: 15px;
  padding: 10px 0;
  position: relative;
  height: 224px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hours-grid::-webkit-scrollbar {
  height: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.hours-grid::-webkit-scrollbar-track {
  background: transparent;
}

.hours-grid::-webkit-scrollbar-thumb {
  background-color: rgba(0, 200, 83, 0.3);
  border-radius: 4px;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.hours-grid::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 200, 83, 0.5);
}

.hour-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.bar-container {
  width: 45px;
  height: 200px;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bar-container::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background-image: repeating-linear-gradient(to top,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 20px);
  pointer-events: none;
}

.bar {
  width: 100%;
  transition: height 0.6s ease;
  min-height: 2px;
  border-radius: 8px 8px 0 0;
  position: relative;
  background: linear-gradient(180deg, var(--green) 0%, rgba(0, 200, 83, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%,
      rgba(255, 255, 255, 0.1) 100%);
}

.bar[data-sales="0"] {
  background: linear-gradient(180deg, #444 0%, #333 100%);
}

.bar[data-sales="1"],
.bar[data-sales="2"],
.bar[data-sales="3"],
.bar[data-sales="4"] {
  background: linear-gradient(180deg, var(--danger) 0%, rgba(244, 67, 54, 0.8) 100%);
}

.bar[data-sales="5"],
.bar[data-sales="6"],
.bar[data-sales="7"],
.bar[data-sales="8"],
.bar[data-sales="9"] {
  background: linear-gradient(180deg, var(--warning) 0%, rgba(255, 193, 7, 0.8) 100%);
}

.bar[data-sales="10"],
.bar[data-sales="11"],
.bar[data-sales="12"],
.bar[data-sales="13"],
.bar[data-sales="14"] {
  background: linear-gradient(180deg, var(--success) 0%, rgba(0, 200, 83, 0.8) 100%);
}

.bar[data-sales="15"],
.bar[data-sales="16"],
.bar[data-sales="17"],
.bar[data-sales="18"],
.bar[data-sales="19"],
.bar[data-sales="20"],
.bar[data-sales="21"],
.bar[data-sales="22"],
.bar[data-sales="23"],
.bar[data-sales="24"],
.bar[data-sales="25"] {
  background: linear-gradient(180deg, #0047AB 0%, #002366 100%) !important;
  box-shadow: 0 0 15px rgba(0, 71, 171, 0.4);
}

.bar-label {
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.85em;
  opacity: 0;
  transition: all 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 5px;
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
}

.bar:hover .bar-label {
  opacity: 1;
}

.hour-label {
  font-size: 0.85em;
  color: var(--text-light);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 30px;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  /* Hide the label since we're showing numbers in bars now */
  height: 0;
  padding: 0;
  margin: 0;
}

.hour-column span {
  font-size: 0.85em;
  color: var(--text-light);
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 500;
}

.hour-column:hover .bar {
  filter: brightness(1.2);
  transform: scaleX(1.1);
}

.hour-column:hover .hour-label {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.grid-labels {
  position: absolute;
  left: 10px;
  top: 20px;
  bottom: 30px;
  width: 30px;
  pointer-events: none;
  border-right: 1px dashed rgba(255, 255, 255, 0.1);
}

.grid-label {
  position: absolute;
  right: 40px;
  transform: translateY(-50%);
  color: var(--text-dark);
  font-size: 0.75em;
  font-weight: 500;
  font-family: var(--font-numbers);
  letter-spacing: 0.02em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.stat-card {
  padding: 10px 0;
  overflow: auto;
  max-height: 400px;
  scrollbar-width: thin;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card::-webkit-scrollbar {
  width: 6px;
}

.stat-card::-webkit-scrollbar-track {
  background: var(--primary-color);
}

.stat-card::-webkit-scrollbar-thumb {
  background-color: var(--green);
  border-radius: 3px;
}

.stat-card h3 {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.stat-card p {
  color: var(--text-light);
  font-size: 1em;
  text-align: left;
  padding: 0;
  margin: 10px 0;
  opacity: 0.8;
}

.sales-table-section {
  margin-top: 40px;
}

.sales-table-section h2 {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.table-container {
  padding: 10px 0;
  margin-top: 10px;
  position: relative;
}

.table-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--primary-color));
  pointer-events: none;
  opacity: 0.8;
}

.sales-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--primary-color);
  border-radius: 8px;
  overflow: hidden;
}

.sales-table th {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  text-align: left;
  font-size: 0.95em;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sales-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1em;
  color: var(--text-light);
}

.sales-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.action-button {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 1.2em;
}

.action-button:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.1);
}

.action-button i {
  font-size: 18px;
}

.no-data {
  text-align: center;
  color: var(--text-dark);
  padding: 30px !important;
}

.no-data i {
  font-size: 24px;
  margin-right: 10px;
  vertical-align: middle;
}

/* Status da venda */
.venda-concluida {
  position: relative;
}

.venda-concluida::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--success);
}

/* Responsividade da tabela */
@media (max-width: 768px) {
  .sales-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sales-table th,
  .sales-table td {
    white-space: nowrap;
  }
}

.hourly-average {
  padding: 10px 0;
  display: grid;
  gap: 20px;
}

.average-section {
  padding: 10px 0;
  transition: all 0.3s ease;
}

.average-section:hover {
  transform: translateY(-2px);
}

.average-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.average-label {
  color: var(--text-dark);
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.average-label i {
  color: var(--green);
  font-size: 1.2em;
}

.average-value {
  font-family: var(--font-numbers);
  font-size: 1.3em;
  font-weight: 600;
  color: var(--green);
  background: linear-gradient(90deg, var(--green), #00b84d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
}

.average-hours {
  font-size: 0.85em;
  color: var(--text-dark);
  margin-top: 10px;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.average-hours i {
  font-size: 1em;
  color: var (--text-dark);
}

.average-section.highlight {
  color: var(--green);
}

.top-sellers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-seller-item {
  padding: 10px 0;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Efeito removido */

.top-seller-item:hover {
  transform: translateX(5px);
}

/* Estilo para o primeiro lugar (ouro) */
.top-seller-item.rank-1 {
  border-bottom-color: rgba(255, 215, 0, 0.3);
}

.top-seller-item.rank-1 .rank-badge {
  background: linear-gradient(145deg, #ffd700, #daa520);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Estilo para o segundo lugar (prata) */
.top-seller-item.rank-2 {
  border-bottom-color: rgba(192, 192, 192, 0.3);
}

.top-seller-item.rank-2 .rank-badge {
  background: linear-gradient(145deg, #c0c0c0, #a9a9a9);
  box-shadow: 0 0 15px rgba(192, 192, 192, 0.3);
}

/* Estilo para o terceiro lugar (bronze) */
.top-seller-item.rank-3 {
  border-bottom-color: rgba(205, 127, 50, 0.3);
}

.top-seller-item.rank-3 .rank-badge {
  background: linear-gradient(145deg, #cd7f32, #a0522d);
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.3);
}

/* Estilo para o quarto lugar (bronze claro) */
.top-seller-item.rank-4 {
  background: linear-gradient(145deg, rgba(184, 115, 51, 0.12), rgba(139, 69, 19, 0.05));
  border: 1px solid rgba(184, 115, 51, 0.2);
}

.top-seller-item.rank-4 .rank-badge {
  background: linear-gradient(145deg, #b87333, #8b4513);
  box-shadow: 0 0 15px rgba(184, 115, 51, 0.2);
}

/* Estilo para o quinto lugar (bronze escuro) */
.top-seller-item.rank-5 {
  background: linear-gradient(145deg, rgba(139, 69, 19, 0.1), rgba(101, 67, 33, 0.05));
  border: 1px solid rgba(139, 69, 19, 0.2);
}

.top-seller-item.rank-5 .rank-badge {
  background: linear-gradient(145deg, #8b4513, #654321);
  box-shadow: 0 0 15px rgba(139, 69, 19, 0.2);
}

.rank-badge {
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1em;
  color: white;
  font-family: var(--font-numbers);
  transition: all 0.3s ease;
}

.top-seller-details {
  flex: 1;
}

.top-seller-name {
  font-size: 1.05em;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 2px;
}

.top-seller-quantity {
  font-size: 0.9em;
  color: var(--text-light);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 5px;
}

.rank-1 .rank-badge {
  background: linear-gradient(145deg, #ffd700, #daa520);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.rank-2 .rank-badge {
  background: linear-gradient(145deg, #c0c0c0, #a0a0a0);
  box-shadow: 0 2px 8px rgba(192, 192, 192, 0.2);
}

.rank-3 .rank-badge {
  background: linear-gradient(145deg, #cd7f32, #a0522d);
  box-shadow: 0 2px 8px rgba(205, 127, 50, 0.2);
}

.rank-4 .rank-badge,
.rank-5 .rank-badge {
  background: linear-gradient(145deg, #4a4a4a, #3a3a3a);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-header h3 {
  font-size: 0.95em;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stat-summary {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.summary-item h4 {
  font-size: 0.85em;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.summary-value {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--green);
  font-family: var(--font-numbers);
  letter-spacing: 0.02em;
}

.inventory-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  margin-top: 20px;
}

.inventory-section {
  background: linear-gradient(145deg, rgba(43, 43, 63, 0.8), rgba(31, 31, 43, 0.8));
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.inventory-section h3 {
  color: var(--purple);
  font-size: 1.1em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-inventory-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(45deg, var(--purple), #6200ea);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3);
}

.add-inventory-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3);
}

.inventory-search {
  position: relative;
  margin-bottom: 20px;
}

.inventory-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dark);
}

.inventory-search input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-light);
}

.inventory-items {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.inventory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.inventory-item:hover {
  transform: translateX(5px);
  background: rgba(0, 0, 0, 0.3);
}

.inventory-item.low-stock {
  border-color: var(--danger);
  background: rgba(244, 67, 54, 0.1);
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.item-name {
  font-size: 0.95em;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.item-details {
  font-size: 0.8em;
  color: var(--text-dark);
}

.item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quantity-btn-small {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quantity-btn-small:hover {
  background: rgba(255, 255, 255, 0.2);
}

.quantity-display {
  min-width: 40px;
  text-align: center;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-light);
  font-family: var(--font-numbers);
  letter-spacing: 0.02em;
}

.inventory-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-card {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-card.warning {
  border-color: var(--danger);
  background: rgba(244, 67, 54, 0.1);
}

.summary-title {
  display: block;
  font-size: 0.8em;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.summary-card.warning .summary-value {
  color: var(--danger);
}

.inventory-alert {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid var(--warning);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--warning);
  font-size: 0.9em;
}

.inventory-alert i {
  font-size: 20px;
}

.inventory-status {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.inventory-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inventory-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.inventory-badge.projected {
  color: var(--text-dark);
}

.inventory-badge i {
  font-size: 20px;
}

.projected-stock {
  font-style: italic;
}

.status-text {
  font-size: 0.85em;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.inventory-status.in-stock {
  border-color: var(--success);
}

.inventory-status.in-stock .status-text {
  background: rgba(0, 200, 83, 0.2);
  color: var(--success);
}

.inventory-status.low-stock {
  border-color: var(--warning);
}

.inventory-status.low-stock .status-text {
  background: rgba(255, 193, 7, 0.2);
  color: var(--warning);
}

.inventory-status.out-of-stock {
  border-color: var(--danger);
}

.inventory-status.out-of-stock .status-text {
  background: rgba(244, 67, 54, 0.2);
  color: var(--danger);
}

.inventory-warning {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid var(--danger);
  border-radius: 6px;
  color: var(--danger);
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

.crown-icon {
  position: absolute;
  top: -20px;
  color: #ffd700;
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes floatCrown {

  0%,
  100% {
    transform: translateX(-50%) translateZ(20px) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateZ(20px) translateY(-5px);
  }
}

.golden-bar {
  background: linear-gradient(180deg, #ffd700 0%, #daa520 100%) !important;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.date-filter {
  background: linear-gradient(145deg, rgba(43, 43, 63, 0.95), rgba(31, 31, 43, 0.95));
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 35px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.date-filter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--purple));
  border-radius: 3px 3px 0 0;
}

.date-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.date-input {
  flex: 1;
  padding: 12px 20px;
  background: rgba(43, 43, 63, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-light);
  font-size: 1.1em;
  font-family: var(--font-numbers);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.date-input:hover {
  background: rgba(43, 43, 63, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
}

.date-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.2);
  outline: none;
}

.date-nav {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(43, 43, 63, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2em;
}

.date-nav:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 200, 83, 0.3);
}

.date-nav i {
  transition: transform 0.3s ease;
}

.date-nav:hover i {
  transform: scale(1.2);
}

.filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 5px;
}

.filter-btn {
  padding: 12px 24px;
  background: rgba(43, 43, 63, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95em;
  font-weight: 500;
  letter-spacing: 0.5px;
  flex: 1;
  justify-content: center;
  min-width: 120px;
}

.filter-btn i {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.filter-btn:hover {
  background: rgba(0, 200, 83, 0.1);
  border-color: var(--green);
  transform: translateY(-2px);
}

.filter-btn:hover i {
  transform: scale(1.2);
}

.filter-btn.selected {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 5px 15px rgba(0, 200, 83, 0.3);
  transform: translateY(-2px);
}

.filter-btn.selected i {
  transform: scale(1.2);
  color: white;
}

.filter-btn.weekly-report {
  background: linear-gradient(145deg, rgba(0, 184, 212, 0.2), rgba(0, 229, 255, 0.1));
  border-color: rgba(0, 184, 212, 0.3);
  color: #00e5ff;
}

.filter-btn.weekly-report i {
  color: #00e5ff;
}

.filter-btn.weekly-report:hover {
  background: linear-gradient(145deg, rgba(0, 184, 212, 0.3), rgba(0, 229, 255, 0.2));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}

@media (max-width: 768px) {
  .date-filter {
    padding: 20px;
    border-radius: 15px;
  }

  .date-selector {
    flex-direction: row;
    padding: 8px;
  }

  .filter-buttons {
    gap: 8px;
  }

  .filter-btn {
    padding: 10px 16px;
    font-size: 0.9em;
    min-width: auto;
    flex: 1;
  }
}

.date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  padding: 5px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.date-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}

.price-input-container {
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #2d2d44, #242436);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0 15px;
  min-height: 48px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.price-input-container:focus-within {
  border-color: rgba(0, 200, 83, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.price-input-container .currency-symbol {
  color: #b0b0b0;
  font-size: 16px;
  font-weight: 600;
  margin-right: 10px;
  flex-shrink: 0;
}

.price-input-container input {
  flex: 1;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  padding: 15px 0;
  outline: none;
  font-weight: 500;
}

.price-input-container input::placeholder {
  color: #888;
}

/* Removido ::before duplicado - usando apenas .currency-symbol */

.add-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(45deg, var(--blue), #1976d2);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  margin-top: 20px;
}

.add-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(45deg, #1976d2, var(--blue));
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 20px 30px;
  border-radius: 12px;
  background: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1100;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  font-size: 0.95em;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}

.notification.show {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification.success {
  border-left: 4px solid var(--success);
}

.notification.error {
  border-left: 4px solid var(--danger);
}

.notification .material-icons {
  font-size: 24px;
}

.notification.success .material-icons {
  color: var(--success);
}

.notification.error .material-icons {
  color: var(--danger);
}

.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--green);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, background-color 0.2s;
  z-index: 1000;
  font-size: 2em;
  box-shadow: 0 8px 24px rgba(0, 200, 83, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab:hover {
  transform: scale(1.15) rotate(360deg);
  background-color: #00b84d;
}

.fab i {
  font-size: 1.8em;
}

.fab-left {
  left: 30px;
  background: linear-gradient(45deg, #7c4dff, #6200ea);
}

.fab-left:hover {
  background: linear-gradient(45deg, #6200ea, #7c4dff);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 10px;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, #2d2d44, #1e1e2f);
  padding: 20px;
  border-radius: 15px;
  text-align: left;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  scrollbar-width: thin;
  scrollbar-color: var(--green) var(--primary-color);
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--primary-color);
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: var(--green);
  border-radius: 4px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(0, 200, 83, 0.3);
  padding: 20px 25px;
  background: linear-gradient(145deg, #323250, #252538);
}

.modal-header h2 {
  color: var(--green);
  font-size: 1.4em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--green), #00e676);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 200, 83, 0.2);
}

.modal-header h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: var(--green);
  border-radius: 2px;
}

.modal-header h2 i {
  font-size: 1.8em;
  margin-right: 15px;
}

.modal-body {
  padding: 25px;
}

/* Estilos base de form-group - serão sobrescritos pelo quick-sale-simple */
.form-group {
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  display: block;
  color: #e0e0e0;
  margin-bottom: 10px;
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0.3px;
}

select,
input {
  width: 100%;
  padding: 12px 15px;
  background: linear-gradient(145deg, #2a2a40, #232334);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1em;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

select:focus,
input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.2);
  outline: none;
}

.price-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 5px;
}

.price-btn {
  padding: 12px;
  background: linear-gradient(145deg, #2d2d44, #242436);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1.1em;
  font-weight: 600;
  font-family: var(--font-numbers);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-btn:hover {
  background: linear-gradient(145deg, #323250, #28283c);
  border-color: rgba(0, 200, 83, 0.3);
}

.price-btn.selected {
  background: linear-gradient(145deg, #00e676, #00c853);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
  color: white;
  transform: scale(1.05);
}

.quantity-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 5px;
}

.quantity-btn {
  padding: 12px;
  background: linear-gradient(145deg, #2d2d44, #242436);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  /* Alterado para branco */
  font-size: 1.1em;
  font-weight: 600;
  font-family: var(--font-numbers);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quantity-btn:hover {
  background: linear-gradient(145deg, #323250, #28283c);
  border-color: rgba(0, 200, 83, 0.3);
}

.quantity-btn.selected {
  background: linear-gradient(145deg, #00e676, #00c853);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
  color: white;
  transform: scale(1.05);
}

/* ===== ESTILOS PARA VENDA RÁPIDA SIMPLIFICADA ===== */
.quick-sale-simple {
  overflow: hidden;
}

.quick-sale-simple .modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Garantir que todos os elementos fiquem dentro do container */
.quick-sale-simple * {
  max-width: 100%;
  box-sizing: border-box;
}

.quick-sale-simple .form-group {
  margin-bottom: 20px;
  padding: 0;
  background: transparent;
  border: none;
  width: 100%;
  box-sizing: border-box;
}

.quick-sale-simple .form-group label {
  display: block;
  color: #e0e0e0;
  margin-bottom: 10px;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.quick-sale-simple .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Garantir que todos os inputs fiquem dentro dos containers */
.quick-sale-simple input,
.quick-sale-simple select,
.quick-sale-simple .search-input-wrapper,
.quick-sale-simple .quantity-input-simple,
.quick-sale-simple .price-input-container {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

/* ===== BUSCA DE PRODUTOS ===== */
.product-search-container {
  position: relative;
  margin-bottom: 0;
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0 15px;
  min-height: 48px;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.search-input-wrapper:focus-within {
  border-color: rgba(0, 200, 83, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
  outline: none;
}

.search-input-wrapper i {
  color: #b0b0b0;
  margin-right: 10px;
  font-size: 20px;
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  padding: 15px 0;
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: #888;
}

.clear-search-btn {
  background: none;
  border: none;
  color: #b0b0b0;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  margin-left: 10px;
}

.clear-search-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.product-list-container {
  position: relative;
  margin-top: 10px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 12px;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}

.product-list-placeholder {
  padding: 40px 20px;
  text-align: center;
  color: #888;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.product-list-placeholder i {
  font-size: 48px;
  opacity: 0.5;
}

.product-list {
  padding: 8px;
}

.product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  margin-bottom: 2px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.product-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(4px);
}

.product-item.selected {
  background: linear-gradient(145deg, rgba(0, 200, 83, 0.2), rgba(0, 230, 118, 0.15));
  border-color: rgba(0, 200, 83, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.product-item.low-stock {
  border-left: 4px solid #ff5252;
}

.product-item-content {
  flex: 1;
}

.product-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.product-details {
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 13px;
}

.product-color {
  color: #b0b0b0;
  background: rgba(33, 150, 243, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.product-size {
  color: #b0b0b0;
  background: rgba(124, 77, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.product-stock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4caf50;
}

.product-stock i {
  font-size: 16px;
}

.product-stock.low-stock {
  color: #ff5252;
}

.check-icon {
  color: #00e676;
  font-size: 24px;
}

/* Scrollbar para lista de produtos */
.product-list-container::-webkit-scrollbar {
  width: 6px;
}

.product-list-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.product-list-container::-webkit-scrollbar-thumb {
  background: rgba(0, 200, 83, 0.3);
  border-radius: 3px;
}

.product-list-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 200, 83, 0.5);
}

.inventory-badge {
  margin-top: 10px;
  margin-bottom: 0;
  width: 100%;
}

.inventory-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(145deg, rgba(33, 150, 243, 0.2), rgba(66, 165, 245, 0.1));
  border: 1px solid rgba(33, 150, 243, 0.3);
  border-radius: 8px;
  color: var(--blue);
  font-size: 0.9em;
  font-weight: 500;
}

.inventory-info.low-stock {
  background: linear-gradient(145deg, rgba(244, 67, 54, 0.2), rgba(239, 83, 80, 0.1));
  border-color: rgba(244, 67, 54, 0.3);
  color: #ff5252;
}

.quantity-input-simple {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.quantity-input-simple:focus-within {
  border-color: rgba(0, 200, 83, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: linear-gradient(145deg, #323250, #28283c);
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: linear-gradient(145deg, #3a3a5a, #303048);
  transform: scale(1.05);
}

.qty-btn:active {
  transform: scale(0.95);
}

.quantity-input-simple input {
  flex: 1;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  padding: 0;
  font-family: var(--font-numbers);
}

.quantity-input-simple input:focus {
  outline: none;
}

.payment-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
}

.payment-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.payment-btn i {
  font-size: 24px;
}

.payment-btn:hover {
  background: linear-gradient(145deg, #323250, #28283c);
  border-color: rgba(0, 200, 83, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.payment-btn.selected {
  background: linear-gradient(145deg, #00e676, #00c853);
  border-color: #00e676;
  box-shadow: 0 4px 15px rgba(0, 200, 83, 0.4);
  transform: scale(1.02);
}

.payment-btn[data-method="PIX"].selected {
  background: linear-gradient(145deg, #00e676, #00c853);
  border-color: #00e676;
}

.payment-btn[data-method="DINHEIRO"].selected {
  background: linear-gradient(145deg, #2196f3, #1976d2);
  border-color: #2196f3;
}

.payment-btn[data-method="DEBITO"].selected {
  background: linear-gradient(145deg, #e91e63, #c2185b);
  border-color: #e91e63;
}

.payment-btn[data-method="CREDITO"].selected {
  background: linear-gradient(145deg, #7c4dff, #651fff);
  border-color: #7c4dff;
}

.total-display {
  background: linear-gradient(145deg, #2a2a40, #232334);
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
  text-align: center;
  border: 2px solid rgba(0, 200, 83, 0.3);
  box-shadow: 0 4px 15px rgba(0, 200, 83, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.total-label {
  color: #b0b0b0;
  font-size: 0.9em;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.total-value {
  color: #00e676;
  font-size: 2em;
  font-weight: 700;
  font-family: var(--font-numbers);
  text-shadow: 0 2px 4px rgba(0, 200, 83, 0.3);
}

.action-buttons-simple {
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

.action-buttons-simple button {
  width: 100%;
  box-sizing: border-box;
}

.finalize-btn-large {
  width: 100%;
  padding: 18px;
  background: linear-gradient(145deg, #00e676, #00c853);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.finalize-btn-large:hover {
  background: linear-gradient(145deg, #00ff88, #00d95a);
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
  transform: translateY(-2px);
}

.finalize-btn-large:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 200, 83, 0.3);
}

.finalize-btn-large i {
  font-size: 24px;
}

/* ===== CARRINHO DE PRODUTOS ===== */
.add-to-cart-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(145deg, #2196f3, #1976d2);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
  margin-bottom: 20px;
}

.add-to-cart-btn:hover {
  background: linear-gradient(145deg, #42a5f5, #1e88e5);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
  transform: translateY(-2px);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

.add-to-cart-btn i {
  font-size: 20px;
}

.cart-section {
  margin: 25px 0;
  padding: 20px;
  background: linear-gradient(145deg, #2a2a40, #232334);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.cart-title {
  color: #ffffff;
  font-size: 1.1em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-title::before {
  content: '🛒';
  font-size: 1.2em;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: linear-gradient(145deg, rgba(45, 45, 68, 0.8), rgba(36, 36, 54, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.cart-item:hover {
  background: linear-gradient(145deg, rgba(50, 50, 80, 0.9), rgba(40, 40, 60, 0.9));
  border-color: rgba(0, 200, 83, 0.3);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.cart-item-details {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #b0b0b0;
  margin-bottom: 4px;
}

.cart-item-payment {
  padding: 2px 8px;
  background: rgba(0, 200, 83, 0.2);
  border-radius: 4px;
  color: #00e676;
  font-weight: 500;
}

.cart-item-total {
  color: #00e676;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-numbers);
}

.remove-cart-item-btn {
  background: none;
  border: none;
  color: #ff5252;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: 10px;
}

.remove-cart-item-btn:hover {
  background: rgba(244, 67, 54, 0.2);
  transform: scale(1.1);
}

.remove-cart-item-btn:active {
  transform: scale(0.95);
}

.remove-cart-item-btn i {
  font-size: 20px;
}

.cart-items-list::-webkit-scrollbar {
  width: 6px;
}

.cart-items-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.cart-items-list::-webkit-scrollbar-thumb {
  background: rgba(0, 200, 83, 0.3);
  border-radius: 3px;
}

.cart-items-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 200, 83, 0.5);
}

/* Responsivo para mobile */
@media screen and (max-width: 428px) {
  .payment-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .payment-btn {
    padding: 12px;
    font-size: 13px;
  }

  .payment-btn i {
    font-size: 20px;
  }

  .total-value {
    font-size: 1.8em;
  }

  .finalize-btn-large {
    padding: 16px;
    font-size: 16px;
  }

  .qty-btn {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  /* Carrinho mobile */
  .cart-section {
    padding: 12px;
    margin: 16px 0;
    border-radius: 10px;
  }

  .cart-title {
    font-size: 1em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .cart-items-list {
    max-height: 250px;
    gap: 8px;
  }

  .cart-item {
    padding: 12px;
    border-radius: 8px;
    flex-wrap: wrap;
  }

  .cart-item-info {
    flex: 1;
    min-width: 0;
  }

  .cart-item-name {
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .cart-item-details {
    font-size: 11px;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
  }

  .cart-item-payment {
    padding: 2px 6px;
    font-size: 10px;
  }

  .cart-item-total {
    font-size: 13px;
    margin-top: 4px;
  }

  .remove-cart-item-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    margin-left: 8px;
  }

  .remove-cart-item-btn i {
    font-size: 18px;
  }

  /* Total display mobile */
  .total-display {
    padding: 16px;
    margin: 16px 0;
    border-radius: 10px;
  }

  .total-label {
    font-size: 0.8em;
    margin-bottom: 6px;
  }

  .total-value {
    font-size: 1.6em;
  }

  /* Melhorias adicionais de organização mobile */
  .quick-sale-simple {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* Grupos de formulário mobile - sem background extra */
  .quick-sale-simple .form-group {
    background: transparent;
    padding: 0;
    border: none;
    margin-bottom: 18px;
  }

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

  /* Labels mobile */
  .quick-sale-simple .form-group label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Form row mobile - vertical */
  .quick-sale-simple .form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  /* Garantir que tudo fique dentro dos containers no mobile */
  .quick-sale-simple .search-input-wrapper,
  .quick-sale-simple .quantity-input-simple,
  .quick-sale-simple .price-input-container,
  .quick-sale-simple .product-list-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Espaçamento consistente entre seções */
  .action-buttons-simple {
    margin: 20px 0 16px;
  }

  .cart-section {
    margin: 20px 0;
  }

  .total-display {
    margin: 20px 0;
  }

  /* Scrollbar personalizada para lista de produtos */
  .product-list-container::-webkit-scrollbar {
    width: 4px;
  }

  .product-list-container::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 83, 0.4);
    border-radius: 2px;
  }

  /* Melhor feedback tátil em todos os elementos interativos */
  * {
    -webkit-tap-highlight-color: rgba(0, 200, 83, 0.2);
  }

  button:active,
  .product-item:active {
    opacity: 0.8;
    transform: scale(0.98);
  }

  /* Busca de produtos mobile */
  .product-list-container {
    max-height: 250px;
  }

  .product-item {
    padding: 14px 12px;
    margin-bottom: 8px;
  }

  .product-name {
    font-size: 14px;
  }

  .product-details {
    font-size: 12px;
    gap: 8px;
  }

  .search-input-wrapper {
    padding: 0 12px;
  }

  .search-input-wrapper input {
    font-size: 16px;
    /* Evita zoom no iOS */
    padding: 14px 0;
  }
}

.sale-items {
  padding: 10px 0;
  margin-top: 20px;
}

.sale-items h3 {
  color: var(--green);
  font-size: 1.1em;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sale-item {
  margin-bottom: 4px;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.item-details {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 15px;
  align-items: center;
  width: 100%;
}

.payment-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.payment-badge.pix {
  background: linear-gradient(145deg, rgba(0, 200, 83, 0.2), rgba(0, 230, 118, 0.1));
  color: var(--green);
  border: 1px solid rgba(0, 200, 83, 0.3);
}

.payment-badge.dinheiro {
  background: linear-gradient(145deg, rgba(33, 150, 243, 0.2), rgba(66, 165, 245, 0.1));
  color: var(--blue);
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.payment-badge.debito {
  background: linear-gradient(145deg, rgba(233, 30, 99, 0.2), rgba(240, 98, 146, 0.1));
  color: var(--pink);
  border: 1px solid rgba(233, 30, 99, 0.3);
}

.payment-badge.credito {
  background: linear-gradient(145deg, rgba(124, 77, 255, 0.2), rgba(149, 117, 205, 0.1));
  color: var(--purple);
  border: 1px solid rgba(124, 77, 255, 0.3);
}

.payment-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
  padding: 15px;
  background: linear-gradient(145deg, rgba(45, 45, 68, 0.5), rgba(36, 36, 54, 0.5));
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: linear-gradient(145deg, #2d2d44, #242436);
  border-radius: 6px;
  font-size: 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-total span:first-child {
  color: var(--text-dark);
}

.payment-total span:last-child {
  color: var(--text-light);
  font-weight: 500;
}

.remove-item {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 5px;
}

.remove-item:hover {
  color: #ff5252;
}

.sale-summary {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.subtotal {
  background-color: #1f1f35;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  background: linear-gradient(145deg, #323250, #28283c);
  border: 1px solid rgba(0, 200, 83, 0.2);
}

.subtotal span:last-child {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--green);
}

.finalize-btn {
  background: linear-gradient(45deg, #00e676, #00c853);
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.finalize-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(45deg, #00c853, #00e676);
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
}

.close-button {
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.8em;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: var(--text-light);
}

.size-color-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-row {
  background: linear-gradient(145deg, rgba(43, 43, 63, 0.8), rgba(31, 31, 43, 0.8));
  padding: 15px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Novos estilos para cores específicas */
.stat-row[data-color="PRETO"],
.stat-row[data-color="PRETA"] {
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.3), rgba(40, 40, 40, 0.1));
  border-left: 3px solid #000000;
}

.stat-row[data-color="BRANCO"],
.stat-row[data-color="BRANCA"] {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(240, 240, 240, 0.05));
  border-left: 3px solid #ffffff;
}

.stat-row[data-color="AZUL"] {
  background: linear-gradient(145deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.05));
  border-left: 3px solid #2196f3;
}

.stat-row[data-color="ROSA"] {
  background: linear-gradient(145deg, rgba(233, 30, 99, 0.15), rgba(233, 30, 99, 0.05));
  border-left: 3px solid #e91e63;
}

.stat-row[data-color="VERDE"] {
  background: linear-gradient(145deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
  border-left: 3px solid #4CAF50;
}

.stat-row[data-color="LARANJA"] {
  background: linear-gradient(145deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.05));
  border-left: 3px solid #FF9800;
}

.shirt-icon {
  font-size: 1.2em;
  margin-right: 8px;
}

/* Cores dos ícones */
.shirt-icon.preto {
  color: #000000;
}

.shirt-icon.branco {
  color: #ffffff;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
}

.shirt-icon.azul {
  color: #2196f3;
}

.shirt-icon.rosa {
  color: #e91e63;
}

.shirt-icon.verde {
  color: #4CAF50;
}

.shirt-icon.laranja {
  color: #FF9800;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95em;
  color: var(--text-light);
}

.stat-details {
  color: var(--green);
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-details::before {
  content: 'sell';
  font-family: 'Material Icons';
  font-size: 1.2em;
}

h2,
h3 {
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Responsividade melhorada */
@media (max-width: 768px) {
  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 2em;
  }

  .payment-icon {
    width: 55px;
    height: 55px;
    font-size: 1.8em;
  }
}

/* Melhorias para Modal em iPhone */
@media screen and (max-width: 428px) {

  /* iPhone 12/13 Pro Max width */
  .modal {
    padding: 0;
    background-color: var(--primary-color);
  }

  .modal-content {
    width: 100%;
    height: 100%;
    max-height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .modal-header {
    padding: calc(env(safe-area-inset-top) + 10px) 12px 12px;
    position: sticky;
    top: 0;
    background: var(--gradient-primary);
    z-index: 10;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .modal-header h2 {
    font-size: 1.3em;
    margin: 0;
  }

  .close-button {
    width: 36px;
    height: 36px;
    font-size: 24px;
    padding: 0;
  }

  .quick-sale-simple .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(env(safe-area-inset-bottom) + 12px);
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-group label {
    font-size: 0.85em;
    margin-bottom: 8px;
    font-weight: 600;
  }

  .form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Ajustes para inputs */
  input[type="text"],
  input[type="number"] {
    font-size: 16px;
    /* Evita zoom automático no iPhone */
    padding: 14px 12px;
    min-height: 48px;
    /* Altura mínima recomendada pela Apple */
    border-radius: 10px;
    width: 100%;
  }

  /* Busca de produtos mobile */
  .product-search-container {
    margin-bottom: 12px;
  }

  .search-input-wrapper {
    padding: 0 12px;
    min-height: 48px;
  }

  .search-input-wrapper input {
    padding: 14px 0;
    font-size: 16px;
  }

  .search-input-wrapper i {
    font-size: 20px;
    margin-right: 8px;
  }

  .clear-search-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .product-list-container {
    max-height: 200px;
    margin-top: 8px;
    border-radius: 10px;
  }

  .product-item {
    padding: 12px;
    margin-bottom: 6px;
    border-radius: 8px;
  }

  .product-name {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .product-details {
    font-size: 11px;
    gap: 6px;
    margin-bottom: 4px;
  }

  .product-color,
  .product-size {
    padding: 2px 6px;
    font-size: 10px;
  }

  .product-stock {
    font-size: 11px;
  }

  .product-stock i {
    font-size: 14px;
  }

  .inventory-badge {
    margin-top: 6px;
    margin-bottom: 12px;
  }

  .inventory-info {
    padding: 6px 10px;
    font-size: 0.8em;
  }

  .inventory-info i {
    font-size: 16px;
  }

  /* Quantidade e Preço mobile */
  .quantity-input-simple {
    padding: 4px;
    border-radius: 10px;
    min-height: 48px;
  }

  .qty-btn {
    width: 48px;
    height: 48px;
    font-size: 22px;
    border-radius: 8px;
    touch-action: manipulation;
  }

  .quantity-input-simple input {
    font-size: 18px;
    min-height: 48px;
  }

  .price-input-container {
    min-height: 48px;
    padding: 0 12px;
    border-radius: 10px;
  }

  .price-input-container .currency-symbol {
    font-size: 16px;
    margin-right: 8px;
  }

  .price-input-container input {
    font-size: 18px;
    padding: 14px 0;
    min-height: 48px;
  }

  /* Forma de pagamento mobile */
  .payment-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 8px;
  }

  .payment-btn {
    padding: 14px 10px;
    min-height: 60px;
    border-radius: 10px;
    font-size: 13px;
  }

  .payment-btn i {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .payment-btn span {
    font-size: 12px;
  }

  /* Lista de itens da venda */
  .sale-items {
    margin-top: 15px;
    border-radius: 12px;
  }

  .sale-item {
    padding: 12px;
    margin-bottom: 8px;
  }

  .item-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Botões mobile */
  .action-buttons-simple {
    margin-top: 16px;
    margin-bottom: 12px;
  }

  .add-to-cart-btn {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    border-radius: 10px;
    min-height: 52px;
    touch-action: manipulation;
  }

  .add-to-cart-btn i {
    font-size: 20px;
  }

  .finalize-btn-large {
    position: sticky;
    bottom: env(safe-area-inset-bottom);
    width: 100%;
    padding: 18px;
    border-radius: 0;
    font-size: 17px;
    font-weight: 700;
    min-height: 56px;
    z-index: 10;
    margin: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    touch-action: manipulation;
  }

  .finalize-btn-large i {
    font-size: 22px;
  }

  /* Melhorias visuais para botões de ação */
  .action-buttons {
    gap: 12px;
  }

  .action-button {
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
  }

  /* Resumo de pagamentos mais compacto */
  .payment-totals {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .payment-total {
    padding: 12px;
    border-radius: 12px;
  }

  /* Feedback tátil melhorado */
  .quantity-btn:active,
  .price-btn:active,
  .action-button:active {
    transform: scale(0.96);
  }

  /* Prevenção de seleção acidental de texto */
  .modal-content * {
    -webkit-tap-highlight-color: transparent;
  }

  .modal-content input,
  .modal-content textarea {
    user-select: text;
  }

  /* Scroll suave */
  .modal-body {
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
  }

  .modal-body::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  /* Melhor organização visual */
  .quick-sale-simple .form-group:first-child {
    margin-top: 0;
  }

  /* Espaçamento entre seções */
  .form-row+.form-group {
    margin-top: 20px;
  }

  /* Placeholder melhorado */
  .product-list-placeholder {
    padding: 30px 15px;
  }

  .product-list-placeholder i {
    font-size: 40px;
    margin-bottom: 8px;
  }

  .product-list-placeholder span {
    font-size: 13px;
  }

  /* Melhor contraste e legibilidade */
  .product-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .product-item:hover,
  .product-item:active {
    border-color: rgba(0, 200, 83, 0.4);
    background: linear-gradient(145deg, rgba(50, 50, 80, 0.95), rgba(40, 40, 60, 0.95));
  }

  /* Botões com melhor área de toque */
  button {
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 200, 83, 0.2);
  }

  /* Inputs com melhor área de toque */
  input[type="text"],
  input[type="number"] {
    touch-action: manipulation;
  }

  /* Melhor feedback visual */
  .qty-btn:active,
  .payment-btn:active,
  .add-to-cart-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s;
  }

  /* Organização do layout */
  .quick-sale-simple .modal-body {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* Espaçamento consistente */
  .action-buttons-simple+.cart-section {
    margin-top: 20px;
  }

  .cart-section+.total-display {
    margin-top: 20px;
  }

  .total-display+.action-buttons-simple {
    margin-top: 20px;
  }

  /* Header fixo melhorado */
  .modal-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
}

/* Ajustes específicos para notch/dynamic island */
@supports (padding-top: env(safe-area-inset-top)) {
  .modal-header {
    padding-top: max(env(safe-area-inset-top), 15px);
  }

  .modal-content {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Ajustes para gestos do iPhone */
@media (hover: none) and (pointer: coarse) {
  .modal-content {
    overscroll-behavior-y: contain;
  }

  .finalize-btn {
    margin-bottom: max(env(safe-area-inset-bottom), 15px);
  }
}

/* Melhorias para Modal de Estoque em iPhone */
@media screen and (max-width: 428px) {
  #backpackInventoryModal .modal-content {
    width: 100%;
    height: 100%;
    max-height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  #backpackInventoryModal .modal-header {
    padding: max(env(safe-area-inset-top), 15px) 15px 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--gradient-primary);
    backdrop-filter: blur(10px);
  }

  #backpackInventoryModal .inventory-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
    height: calc(100% - 60px);
    overflow-y: auto;
  }

  #backpackInventoryModal .inventory-section {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
  }

  #backpackInventoryModal .inventory-search input {
    height: 44px;
    font-size: 16px;
    padding-left: 44px;
  }

  #backpackInventoryModal .inventory-search i {
    font-size: 20px;
    left: 15px;
  }

  #backpackInventoryModal .inventory-items {
    max-height: none;
    padding-bottom: 100px;
  }

  #backpackInventoryModal .inventory-item {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
  }

  #backpackInventoryModal .quantity-btn-small {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 10px;
  }

  #backpackInventoryModal .item-quantity {
    gap: 15px;
  }

  #backpackInventoryModal .quantity-display {
    min-width: 50px;
    font-size: 18px;
  }

  #backpackInventoryModal .add-inventory-btn {
    position: fixed;
    bottom: max(env(safe-area-inset-bottom), 15px);
    left: 15px;
    right: 15px;
    width: calc(100% - 30px);
    height: 54px;
    font-size: 18px;
    z-index: 101;
    border-radius: 12px;
  }

  #backpackInventoryModal .inventory-summary {
    position: sticky;
    bottom: 80px;
    background: var(--gradient-primary);
    margin: 0 -15px;
    padding: 15px;
    border-radius: 12px 12px 0 0;
    backdrop-filter: blur(10px);
  }

  #backpackInventoryModal .summary-card {
    padding: 12px;
    border-radius: 10px;
  }

  #backpackInventoryModal .close-button {
    padding: 10px;
    font-size: 24px;
  }

  /* Melhorar feedback tátil */
  #backpackInventoryModal .quantity-btn-small:active,
  #backpackInventoryModal .add-inventory-btn:active,
  #backpackInventoryModal .inventory-item:active {
    gap: 10px;
    margin: 15px 0;
  }

  #backpackInventoryModal .quantity-btn {
    height: 44px;
    font-size: 16px;
    border-radius: 10px;
  }

  /* Ajustar scroll para iOS */
  #backpackInventoryModal .inventory-items::-webkit-scrollbar {
    display: none;
  }
}

/* Ajustes específicos para notch/dynamic island no modal de estoque */
@supports (padding-top: env(safe-area-inset-top)) {
  #backpackInventoryModal .modal-content {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ==========================================================================
   SISTEMA DE MENU LATERAL (SIDEBAR)
   ========================================================================== */
.menu-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color) 0%, #1a1a2e 100%);
  z-index: 2000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  backdrop-filter: blur(15px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.sidebar-header h2 {
  color: var(--green);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-menu {
  flex: 1;
  list-style: none;
  padding: 0 15px;
}

.sidebar-item {
  margin-bottom: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.sidebar-link i {
  font-size: 24px;
  transition: all 0.3s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.sidebar-link.active {
  background: var(--gradient-green);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.sidebar-link.active i {
  color: white;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
  display: block;
  opacity: 1;
}

.sidebar-footer {
  padding: 20px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--danger);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 15px;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.logout-btn:hover {
  background: rgba(244, 67, 54, 0.1);
}