body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 32px;
}
.app-nav {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 24px;
}
h1 {
  color: #1a1a1a;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
h2 {
  color: #333;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.2em;
}
.page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}
.header-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.subtitle {
  color: #666;
  margin: 0;
  font-size: 15px;
}
.btn-logout {
  color: #666;
  border: 1px solid #ddd;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.15s;
}
.btn-logout:hover {
  background: #f5f5f5;
  color: #333;
  border-color: #ccc;
}
.controls {
  margin-bottom: 20px;
}
.search-section {
  margin-bottom: 24px;
}
.search-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}
.search-hint {
  margin: 12px 0 0 0;
  font-size: 13px;
  color: #888;
}
.search-hint strong {
  color: #0066cc;
}
.brand-input-row {
  display: flex;
  gap: 10px;
}
button {
  background: #0066cc;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background: #0052a3;
}
button:disabled {
  background: #999;
  cursor: not-allowed;
}
.btn-secondary {
  background: #6c757d;
}
.btn-secondary:hover {
  background: #5a6268;
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.export-dropdown {
  position: relative;
}
.export-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  min-width: 180px;
  z-index: 100;
}
.export-menu.hidden {
  display: none;
}
.export-menu button {
  display: block;
  width: 100%;
  padding: 10px 15px;
  text-align: left;
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: #333;
}
.export-menu button:hover {
  background: #f5f5f5;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 1000;
  animation: fadeInOut 2s ease forwards;
}
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  85% { opacity: 1; }
  100% { opacity: 0; }
}
#savedBrandsSection {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
#savedBrandsSection:has(.saved-brands:empty) {
  display: none;
}
.saved-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.saved-brands:empty {
  display: none;
}
.saved-brands-label {
  font-size: 12px;
  color: #888;
  flex-shrink: 0;
}
.brand-pill {
  background: #f0f0f0;
  padding: 4px 8px 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
  color: #555;
}
.brand-pill:hover {
  background: #e0e0e0;
}
.pill-remove {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  color: #666;
  line-height: 1;
  border-radius: 50%;
}
.pill-remove:hover {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}
.pinned-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 10px 15px;
  background: #e7f1ff;
  border-radius: 4px;
  border: 1px solid #b6d4fe;
}
.pinned-indicator span {
  color: #0a58ca;
  font-weight: 500;
}
.pinned-badge {
  background: #0066cc;
  color: white;
  padding: 6px 10px 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pinned-badge span {
  color: white;
}
.pinned-badge button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 14px;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
}
.pinned-badge button:hover {
  background: rgba(255,255,255,0.3);
}
.status {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
}
.status.loading {
  background: #fff3cd;
  color: #856404;
}
.status.error {
  background: #f8d7da;
  color: #721c24;
}
.status.success {
  background: #d4edda;
  color: #155724;
}
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.brand-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-title::before {
  content: "";
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, #3498db, #2980b9);
  border-radius: 2px;
}
.btn-compare {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-compare:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}
.btn-export {
  background: white;
  border: 1px solid #dee2e6;
  color: #6c757d;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-export:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
}
.table-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.table-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.view-toggle-small {
  display: flex;
  gap: 4px;
  background: #f1f3f4;
  padding: 3px;
  border-radius: 6px;
}
.view-toggle-small .view-btn {
  padding: 4px 10px;
  font-size: 12px;
  border: none;
  background: transparent;
  color: #5f6368;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.view-toggle-small .view-btn:hover {
  background: rgba(0,0,0,0.05);
}
.view-toggle-small .view-btn.active {
  background: white;
  color: #1a73e8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
/* YoY table formatting */
#monthlyTable td,
#monthlyTable th {
  white-space: nowrap;
}
#monthlyTable .cogs {
  font-size: 13px;
  padding: 8px 10px;
}
/* Freeze first column in YoY view */
#monthlyTable td:first-child,
#monthlyTable th:first-child {
  position: sticky;
  left: 0;
  background: white;
  z-index: 1;
  box-shadow: 2px 0 4px rgba(0,0,0,0.05);
}
#monthlyTable thead th:first-child {
  background: #2874a6;
  z-index: 2;
}
#monthlyTable .subtotal-row td:first-child {
  background: #f0f0f0;
}
.aggregate-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e7f3ff;
  color: #0066cc;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.aggregate-badge::before {
  content: "\2211";
  font-size: 13px;
}
.table-wrapper {
  max-height: 600px;
  overflow-y: auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
th, td {
  padding: 10px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
th {
  background: #0066cc;
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}
tr:hover:not(.subtotal-row):not(.total-row) {
  background: #f8f9fa;
}
.cogs {
  text-align: right;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9em;
}
.subtotal-row {
  font-weight: 600;
  background: #e2e6ea;
  border-top: 2px solid #adb5bd;
}
.subtotal-row td {
  border-bottom: 2px solid #adb5bd;
}
.total-row {
  font-weight: bold;
  background: #343a40;
  color: white;
}
.total-row td {
  border-bottom: none;
}
.hidden {
  display: none;
}
.summary-table {
  margin-top: 20px;
}
.summary-table table {
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.summary-table th {
  background: #28a745;
}
.zero {
  color: #999;
}
/* Comparison Section */
.comparison-section {
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.comparison-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 6px;
  margin-bottom: 20px;
}
.comparison-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.comparison-icon {
  font-size: 18px;
}
.comparison-header-bar .btn-text {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
}
.comparison-header-bar .btn-text:hover {
  background: rgba(255,255,255,0.3);
}
.comparison-section h2 {
  margin-top: 0;
  color: #333;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
}
.chart-container {
  position: relative;
  height: 300px;
  margin-bottom: 20px;
}
.comparison-table {
  margin-top: 20px;
}
.comparison-table th {
  background: #667eea;
}
.comparison-table .positive {
  color: #28a745;
  font-weight: 600;
}
.comparison-table .negative {
  color: #dc3545;
  font-weight: 600;
}
.comparison-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 14px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-color {
  width: 16px;
  height: 4px;
  border-radius: 2px;
}
.legend-pinned {
  background: #0066cc;
}
.legend-current {
  background: #fd7e14;
}
.base-year-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 4px;
}
.base-year-selector label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.base-year-selector select {
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}
.base-year-selector select:focus {
  outline: none;
  border-color: #667eea;
}
.comparison-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 4px;
  flex-wrap: wrap;
}
.view-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}
.view-toggle label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.toggle-switch {
  display: flex;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}
.toggle-switch button {
  padding: 6px 14px;
  font-size: 13px;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: all 0.15s;
}
.toggle-switch button.active {
  background: #667eea;
  color: white;
}
.toggle-switch button:hover:not(.active) {
  background: #dee2e6;
}
.base-year-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.base-year-control label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.base-year-control select {
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}
.base-year-control select:focus {
  outline: none;
  border-color: #667eea;
}
.base-year-control select:disabled {
  background: #e9ecef;
  cursor: not-allowed;
}
/* Growth View Styles */
.cagr-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: center;
}
.cagr-card {
  flex: 1;
  max-width: 300px;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
}
.cagr-card.pinned {
  border-left: 4px solid #0066cc;
}
.cagr-card.current {
  border-left: 4px solid #fd7e14;
}
.cagr-card-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}
.cagr-card-brand {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}
.cagr-card-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 5px;
}
.cagr-card-value.positive {
  color: #28a745;
}
.cagr-card-value.negative {
  color: #dc3545;
}
.cagr-card-value.neutral {
  color: #666;
}
.cagr-card-period {
  font-size: 12px;
  color: #888;
}
.growth-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  margin-top: 20px;
}
.growth-chart-container {
  position: relative;
  height: 250px;
  margin-bottom: 20px;
}
/* Brand Sidebar */
.sidebar-toggle {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 60px;
  background: #0066cc;
  border: none;
  border-radius: 0 4px 4px 0;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  transition: left 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.sidebar-toggle:hover {
  background: #0052a3;
}
.sidebar-toggle .notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: #ff4444;
  border-radius: 50%;
  border: 2px solid #0066cc;
  animation: pulse 2s ease-in-out infinite;
}
.sidebar-toggle:hover .notification-dot {
  border-color: #0052a3;
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(255, 68, 68, 0);
  }
}
.brand-sidebar {
  position: fixed;
  left: -320px;
  top: 0;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 10px rgba(0,0,0,0.15);
  z-index: 999;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
}
.brand-sidebar.open {
  left: 0;
}
.brand-sidebar.open ~ .sidebar-toggle {
  left: 300px;
}
.sidebar-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebar-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}
.sidebar-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0 5px;
  line-height: 1;
}
.sidebar-close:hover {
  color: #333;
}
.sidebar-controls {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-controls input {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}
.sidebar-controls input:focus {
  outline: none;
  border-color: #0066cc;
}
.sidebar-sort-toggle {
  display: flex;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}
.sidebar-sort-toggle button {
  flex: 1;
  padding: 6px 10px;
  font-size: 13px;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: all 0.15s;
}
.sidebar-sort-toggle button.active {
  background: #0066cc;
  color: white;
}
.sidebar-sort-toggle button:hover:not(.active) {
  background: #dee2e6;
}
.sidebar-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 14px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.sidebar-refresh:hover {
  background: #5a6268;
}
.sidebar-status {
  padding: 10px 15px;
  font-size: 13px;
  color: #666;
}
.sidebar-status.error {
  color: #dc3545;
  background: #f8d7da;
}
.sidebar-status.loading {
  color: #856404;
  background: #fff3cd;
}
.sidebar-status:empty {
  display: none;
}
.brand-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}
.brand-list-item {
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.brand-list-item:hover {
  background: #f8f9fa;
}
.brand-list-item .brand-name {
  font-weight: 500;
  color: #333;
}
.brand-list-item .brand-ltv {
  color: #666;
  font-size: 12px;
}
.sidebar-cache-info {
  padding: 10px 15px;
  font-size: 11px;
  color: #999;
  border-top: 1px solid #eee;
  background: #f8f9fa;
}
.brand-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #666;
}
.empty-icon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}
.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}
.empty-hint {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
}
/* Autocomplete */
.brand-input-container {
  position: relative;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  min-height: 44px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: text;
}
.brand-input-container:focus-within {
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}
.brand-input-container input {
  flex: 1;
  min-width: 120px;
  padding: 4px 0;
  font-size: 16px;
  border: none;
  outline: none;
  background: transparent;
}
.clear-search {
  color: #999;
  font-size: 13px;
  text-decoration: none;
  padding: 4px 8px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.clear-search:hover {
  color: #666;
}
.clear-search.hidden {
  display: none;
}
.search-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0066cc;
  color: white;
  padding: 4px 8px 4px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.search-pill-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.search-pill-remove:hover {
  background: rgba(255,255,255,0.3);
}
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 100;
  display: none;
}
.autocomplete-dropdown.visible {
  display: block;
}
.autocomplete-item {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background: #e9ecef;
}
.autocomplete-item .ac-brand-name {
  font-weight: 500;
}
.autocomplete-item .ac-brand-ltv {
  color: #666;
  font-size: 0.9em;
}
.autocomplete-hint {
  padding: 8px 15px;
  font-size: 12px;
  color: #888;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}
.autocomplete-empty {
  padding: 20px;
  text-align: center;
}
.autocomplete-empty-icon {
  font-size: 24px;
  color: #0066cc;
  margin-bottom: 8px;
}
.autocomplete-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.autocomplete-empty-hint {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}
.autocomplete-empty-hint strong {
  color: #0066cc;
}
/* Drawer Styles */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 998;
  transition: opacity 0.3s;
}
.drawer-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.detail-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  z-index: 999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.detail-drawer.open {
  right: 0;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
}
.drawer-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  line-height: 1;
}
.drawer-close:hover {
  color: #333;
}
.drawer-subtitle {
  padding: 10px 20px;
  background: #667eea;
  color: white;
  font-size: 13px;
}
.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.drawer-loading {
  padding: 40px 20px;
  text-align: center;
  color: #666;
}
.drawer-error {
  padding: 20px;
  background: #fff3f3;
  color: #cc0000;
  margin: 20px;
  border-radius: 4px;
}
.drawer-table {
  width: 100%;
  border-collapse: collapse;
}
.drawer-table th {
  padding: 12px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  border-bottom: 2px solid #eee;
  position: sticky;
  top: 0;
  background: white;
}
.drawer-table td {
  padding: 10px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.drawer-table .cogs {
  text-align: right;
  font-family: 'SF Mono', Monaco, monospace;
}
.drawer-total {
  font-weight: 600;
  background: #f8f9fa;
}
.drawer-total td {
  border-bottom: none;
  border-top: 2px solid #eee;
}
.drawer-empty {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}
.item-id-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}
.copy-btn {
  background: none;
  border: none;
  padding: 3px;
  cursor: pointer;
  color: #ccc;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
  opacity: 0;
}
.item-id-cell:hover .copy-btn {
  opacity: 1;
}
.copy-btn:hover {
  color: #666;
  background: #f0f0f0;
}
.copy-btn.copied {
  color: #22c55e;
  opacity: 1;
}
/* Date range toggle */
.date-range-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.date-range-label {
  font-size: 13px;
  color: #86868b;
  font-weight: 600;
}
.date-range-toggle {
  display: flex;
  gap: 0;
}
.date-range-btn {
  padding: 6px 14px;
  border: 1px solid #d2d2d7;
  background: white;
  font-size: 12px;
  cursor: pointer;
  color: #6e6e73;
  transition: all 0.15s;
  margin-left: -1px;
}
.date-range-btn:first-child {
  border-radius: 6px 0 0 6px;
  margin-left: 0;
}
.date-range-btn:last-child {
  border-radius: 0 6px 6px 0;
}
.date-range-btn:hover:not(.active) {
  background: #f5f5f7;
}
.date-range-btn.active {
  background: #0066cc;
  color: white;
  border-color: #0066cc;
  z-index: 1;
  position: relative;
}
/* Clickable cells */
td.clickable {
  cursor: pointer;
  transition: background 0.15s;
}
td.clickable:hover {
  background: #e7f3ff !important;
}
