: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; /* Ensure positioning context for back button */
  flex-direction: column; /* Stack items vertically */
  align-items: flex-start; /* Align items to the start */
}

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: 40px;
  background: linear-gradient(180deg, var(--primary-color) 0%, rgba(43, 43, 63, 0.8) 100%);
  padding: 40px 20px; 
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.hourly-sales-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 4px 4px 0 0;
}

.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: 30px 20px;
  background: linear-gradient(180deg, rgba(31, 31, 43, 0.8) 0%, rgba(31, 31, 43, 0.6) 100%);
  border-radius: 15px;
  position: relative;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto; 
  -webkit-overflow-scrolling: touch; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.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"],
.bar[data-sales="15"] {
  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"] {
  background: linear-gradient(180deg, #ffd700 0%, #daa520 100%) !important;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.bar-label {
  position: absolute;
  top: -25px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9em;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
}

.bar:hover .bar-label {
  opacity: 1;
  transform: translateY(0);
}

.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 {
  background-color: var(--primary-color);
  border-radius: 10px;
  padding: 20px;
  overflow: auto;
  max-height: 400px;
  scrollbar-width: thin;
  scrollbar-color: var(--green) var(--primary-color);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.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: 0.8em;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.stat-card p {
  color: var(--text-dark);
  font-size: 0.95em;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin: 10px 0;
}

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

.sales-table-section h2 {
  font-size: 0.9em;
  color: var(--green);
  margin-bottom: 20px;
}

.table-container {
  background: linear-gradient(145deg, var(--primary-color), rgba(43, 43, 63, 0.8));
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.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 {
  background: linear-gradient(145deg, rgba(43, 43, 63, 0.8), rgba(31, 31, 43, 0.8));
  border-radius: 12px;
  padding: 25px;
  display: grid;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.average-section {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.average-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-color: var (--green);
}

.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.8em;
  color: var (--text-dark);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.average-section.highlight {
  border-color: var(--green);
  background: linear-gradient(145deg, rgba(0, 200, 83, 0.1), rgba(0, 184, 77, 0.05));
}

.top-sellers {
  background: linear-gradient(145deg, rgba(43, 43, 63, 0.8), rgba(31, 31, 43, 0.8));
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-seller-item {
  background: linear-gradient(145deg, rgba(43, 43, 63, 0.8), rgba(31, 31, 43, 0.8));
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-seller-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
}

.top-seller-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Estilo para o primeiro lugar (ouro) */
.top-seller-item.rank-1 {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.15), rgba(218, 165, 32, 0.05));
  border: 1px solid 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 {
  background: linear-gradient(145deg, rgba(192, 192, 192, 0.15), rgba(169, 169, 169, 0.05));
  border: 1px solid 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 {
  background: linear-gradient(145deg, rgba(205, 127, 50, 0.15), rgba(160, 82, 45, 0.05));
  border: 1px solid 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;
}

.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);
}

@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;
  gap: 10px;
  margin-top: 10px;
}

.price-input-container input {
  flex: 1;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 8px 8px 0;
  color: var(--text-light);
  font-size: 1em;
  transition: all 0.3s ease;
}

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

.price-input-container::before {
  content: 'R$';
  color: var(--text-light);
  font-size: 1em;
}

.price-input-container .currency-symbol {
  color: var(--text-light);
  padding: 12px 5px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px 0 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
}

.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;
}

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

.form-group label {
  display: block;
  color: #e0e0e0;
  margin-bottom: 10px;
  font-size: 0.95em;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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);
}

.sale-items {
  background: linear-gradient(145deg, #2a2a40, #232334);
  border-radius: 12px;
  padding: 20px;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sale-items h3 {
  color: var(--text-light);
  font-size: 1.1em;
  margin-bottom: 20px;
}

.sale-item {
  background: linear-gradient(145deg, rgba(45, 45, 68, 0.8), rgba(36, 36, 54, 0.8));
  margin-bottom: 8px;
  padding: 12px 15px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.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: env(safe-area-inset-top) 15px 15px;
    position: sticky;
    top: 0;
    background: var(--gradient-primary);
    z-index: 10;
    backdrop-filter: blur(10px);
  }

  .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    -webkit-overflow-scrolling: touch;
  }

  /* Ajustes para select e inputs */
  select, input {
    font-size: 16px; /* Evita zoom automático no iPhone */
    padding: 12px;
    height: 44px; /* Altura mínima recomendada pela Apple */
    border-radius: 12px;
  }

  /* Grid de botões mais espaçado */
  .quantity-buttons {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 10px 0;
  }

  .quantity-btn {
    padding: 12px 8px;
    min-height: 44px;
    font-size: 16px;
    border-radius: 12px;
    touch-action: manipulation;
  }

  .price-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 10px 0;
  }

  .price-btn {
    padding: 12px 8px;
    min-height: 44px;
    font-size: 16px;
    border-radius: 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 de finalização */
  .finalize-btn {
    position: sticky;
    bottom: env(safe-area-inset-bottom);
    margin: 0 -15px -15px;
    padding: 16px;
    border-radius: 0;
    font-size: 18px;
    z-index: 10;
  }

  /* 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;
    user-select: none;
  }

  /* 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 */
  }
}

/* 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);
 