body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

/* === SECCIÓN PRINCIPAL === */
.tab-data-content-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin: 10px;
}

.line-graph-data,
.chart-container,
.order_value {
  background-color: #f5f4f1;
  border-radius: 35px;
  padding: 5%;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#myChart2{
  max-height: 500px;
}

.line-graph-data{
  display: grid;
  grid-template-rows: 1fr 5fr;
    width: 100%;
   max-height: calc(100vh - 35px - 60px - 20px - 350px);
    background-color: #f5f4f1;
    border-radius: 35px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    align-items: center;
    justify-content: center;
}



/* === PIE CHART === */
.chart-container {
 position: relative;
    width: 100%;
    background-color: #f5f4f1;
    border-radius: 35px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex
;
    align-items: center;
    justify-content: center;
}

#myPieChart {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  max-height: 100% !important;
  max-width: 100% !important;
  display: block;
  object-fit: contain;
}


#pieLabels {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.pie-label {
  position: absolute;
  transform: translate(-50%, -50%);
  background-color: white;
  color: #1f2937;
  font-size: 10px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  white-space: nowrap;
}

/* === TOP BOXES === */
.tab-data-content-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px;
}

.top-box {
  background-color: #f5f4f1;
  border-radius: 20px;
  padding: 20px 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.top-header h4 {
  font-size: 16px;
  font-weight: bolder;
  color: #1f2937;
}

.top-header .light-text {
  font-size: 14px;
  font-weight: 400;
  color: #9ca3af;
}

.top-header .see-all {
  font-size: 14px;
  color: #7c3aed;
  font-weight: 600;
  text-decoration: none;
}

.top-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #374151;
  margin-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
}

.top-list li span.label {
  font-size: 11px;
  color: #9ca3af;
  margin: 0 8px;
}

.top-list li span.value {
  font-weight: 600;
  font-size: 14px;
}

.top-list li span.unit {
  font-size: 11px;
  color: #9ca3af;
  margin-left: 2px;
}

.arrow-btn {
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
}

.arrow-icon {
  width: 16px;
  height: 16px;
}

.arrow-icon:hover {
 scale: 1.1;
}

.arrow-icon.rotated {
  transform: rotate(180deg);
}


/* === RECORDS SECTION === */
#records_container h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #1f2937;
}

#records_container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#records_container li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 15px;
  color: #374151;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}

#records_container li:hover {
  background-color: #f9fafb;
  transition: background-color 0.2s ease;
}

.revenue-totals {
  display: grid;
      grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  justify-content:flex-start;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
}

.revenue-totals .label {
  font-size: 12px;
  font-weight: bold;
  color: #6b7280;
  margin-right: 5px;
}

.this-week{
  display: grid;
  grid-template-rows: 1fr 2fr;
}
.prev-week{
  display: grid;
  grid-template-rows: 1fr 2fr;
}

.revenue-totals .amount {
  margin-left: 10px;
  font-size: 30px;
  font-weight: 400;
}

.this-week .amount {
  color: #374151;
}

.prev-week .amount {
  color: #6b7280;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot-blue {
  background-color: #4F46E5;
}

.dot-gray {
  background-color: #9ca3af;
}

.top-profit-days-box {
  font-family: 'Montserrat', sans-serif;
  background-color: #f5f4f1;
  border-radius: 20px;
 
  overflow-y: auto;
  padding: 20px 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.scrollable-box::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.top-profit-days-header {
  margin-bottom: 15px;
}

.top-profit-days-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.top-profit-days-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-profit-days-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #374151;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.profit-date {
  font-weight: 500;
}

.profit-amount {
  font-weight: 700;
  color: #1f2937;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
  .tab-data-content-1 {
    grid-template-columns: 1fr;
  }
  .tab-data-content-2 {
    grid-template-columns: 1fr;
  }
}
