/* Sales Report Dashboard - CSS */

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: white;
  }
  .print-break {
    page-break-after: always;
  }
  .shadow-md, .shadow-lg {
    box-shadow: none !important;
  }
}

/* Loading Spinner */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Filter Badges */
.filter-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: #3b82f6;
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.filter-badge button {
  margin-left: 0.5rem;
  font-weight: bold;
  cursor: pointer;
}

/* Table Styles */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th {
  background-color: #1f2937;
  color: white;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #000;
}

td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

tr:nth-child(even) {
  background-color: #f9fafb;
}

tr:hover {
  background-color: #f3f4f6;
}

.summary-row {
  background-color: #e5e7eb !important;
  font-weight: 700;
  border-top: 2px solid #000;
}

/* URL Links */
.url-link {
  color: #3b82f6;
  text-decoration: underline;
  cursor: pointer;
}

.url-link:hover {
  color: #2563eb;
}

/* Debug Panel */
#debugPanel {
  font-family: 'Courier New', monospace;
}

#debugPanel details summary {
  list-style: none;
}

#debugPanel details summary::-webkit-details-marker {
  display: none;
}

#debugPanel table {
  font-size: inherit;
}

#debugPanel th {
  background-color: #f3f4f6;
  color: #1f2937;
  padding: 0.25rem;
  font-size: 0.75rem;
}

#debugPanel td {
  padding: 0.25rem;
  font-size: 0.75rem;
}
