/* TSF Walmart Dashboard - v1.0 */
.walmart-dashboard-wrapper * { box-sizing: border-box; }
.walmart-dashboard-wrapper { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; }
.wmd-header { background: #820a02; color: white; padding: 20px 30px; margin-bottom: 20px; }
.wmd-header h1 { margin: 0; font-size: 24px; color: #fde047; }
.wmd-header-sub { margin: 5px 0 0; font-size: 14px; color: #fff; }
.wmd-header-week { margin-top: 8px; color: #fff; font-weight: 600; font-size: 14px; }
.wmd-container { max-width: 1400px; margin: 0 auto; padding: 20px; }
.wmd-controls { display: flex; gap: 20px; align-items: flex-end; margin-bottom: 20px; padding: 20px; background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); flex-wrap: wrap; }
.wmd-control-group { display: flex; flex-direction: column; gap: 6px; }
.wmd-control-group label { font-size: 12px; font-weight: 600; color: #666; text-transform: uppercase; }
.wmd-control-group select { padding: 8px 12px; font-size: 14px; border: 1px solid #ddd; border-radius: 4px; min-width: 160px; }
.wmd-card { background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 20px; overflow: hidden; }
.wmd-card-header { padding: 16px 20px; border-bottom: 1px solid #eee; background: #fafafa; }
.wmd-card-header h2 { margin: 0; font-size: 18px; font-weight: 600; }
.wmd-card-header h3 { margin: 0; font-size: 14px; font-weight: 500; color: #666; }
.wmd-card-body { padding: 20px; }
.wmd-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wmd-chart-title { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.wmd-legend { display: flex; gap: 20px; justify-content: center; margin-top: 10px; font-size: 12px; }
.wmd-legend-item { display: flex; align-items: center; gap: 6px; }
.wmd-table { width: 100%; border-collapse: collapse; }
.wmd-table th { padding: 10px 12px; text-align: center; border-bottom: 2px solid #eee; font-size: 11px; font-weight: 600; color: #666; text-transform: uppercase; background: #fafafa; }
.wmd-table th.left { text-align: left; }
.wmd-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; font-size: 13px; text-align: center; }
.wmd-table td.left { text-align: left; font-weight: 600; }
.wmd-table tr.clickable { cursor: pointer; }
.wmd-table tr.clickable:hover { background: #f8f9fa; }
.wmd-metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.wmd-metric-card { background: #f8f9fa; padding: 15px; border-radius: 6px; text-align: center; }
.wmd-metric-card.alert { background: #fff0f0; }
.wmd-metric-card.warning { background: #fff8e6; }
.wmd-metric-value { font-size: 24px; font-weight: 700; color: #1a1a2e; }
.wmd-metric-label { font-size: 11px; color: #666; text-transform: uppercase; margin-top: 5px; }
.wmd-metric-consec-red { font-size: 11px; color: #c00; }
.wmd-metric-consec-orange { font-size: 11px; color: #e65c00; }
.wmd-break-high { color: #c00; font-weight: 700; }
.wmd-break-med  { color: #e65c00; font-weight: 600; }
.wmd-break-low  { color: #080; }
.wmd-break-cell { font-variant-numeric: tabular-nums; }
.wmd-consec { font-size: 10px; color: #666; display: block; }
.wmd-legend-box { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 6px; padding: 12px 16px; margin-bottom: 15px; font-size: 12px; color: #555; }
.wmd-legend-box strong { color: #1a1a2e; }
.wmd-stockout { color: #c00; font-weight: 600; }
.wmd-overstock { color: #e65c00; font-weight: 600; }
.wmd-sku-note { background: #fff3cd; padding: 10px 15px; border-radius: 6px; margin-bottom: 15px; font-size: 13px; color: #856404; }
.wmd-download-btn { padding: 8px 16px; font-size: 14px; background-color: #820a02; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; }
.wmd-download-btn:disabled { background-color: #666; cursor: not-allowed; }
.wmd-download-btn:hover:not(:disabled) { background-color: #a00d02; }
.wmd-loading { padding: 40px; text-align: center; color: #666; }
