/* TSF NYC TLC Dashboard - v1.0 */
.nyc-tlc-dashboard-wrapper * { box-sizing: border-box; }
.nyc-tlc-dashboard-wrapper { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; }

.ntd-header { background: #820a02; color: white; padding: 20px 30px; margin-bottom: 20px; }
.ntd-header h1 { margin: 0; font-size: 24px; color: #fde047; }
.ntd-header-sub { margin: 5px 0 0; font-size: 14px; color: #fff; }
.ntd-header-week { margin-top: 8px; color: #fff; font-weight: 600; font-size: 14px; }

.ntd-container { max-width: 1400px; margin: 0 auto; padding: 20px; }

.ntd-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; }
.ntd-control-group { display: flex; flex-direction: column; gap: 6px; }
.ntd-control-group label { font-size: 12px; font-weight: 600; color: #666; text-transform: uppercase; }
.ntd-control-group select { padding: 8px 12px; font-size: 14px; border: 1px solid #ddd; border-radius: 4px; min-width: 160px; }

.ntd-card { background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 20px; overflow: hidden; }
.ntd-card-header { padding: 16px 20px; border-bottom: 1px solid #eee; background: #fafafa; }
.ntd-card-header h2 { margin: 0; font-size: 18px; font-weight: 600; }
.ntd-card-header h3 { margin: 0; font-size: 14px; font-weight: 500; color: #666; }
.ntd-card-body { padding: 20px; }

.ntd-charts-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
.ntd-chart-title { margin: 0 0 10px; font-size: 14px; font-weight: 600; }

.ntd-legend { display: flex; gap: 20px; justify-content: center; margin-top: 10px; font-size: 12px; flex-wrap: wrap; }
.ntd-legend-item { display: flex; align-items: center; gap: 6px; }

.ntd-table { width: 100%; border-collapse: collapse; }
.ntd-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; }
.ntd-table th.left { text-align: left; }
.ntd-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; font-size: 13px; text-align: center; }
.ntd-table td.left { text-align: left; font-weight: 600; }
.ntd-table tr.clickable { cursor: pointer; }
.ntd-table tr.clickable:hover { background: #f8f9fa; }

.ntd-metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.ntd-metric-card { background: #f8f9fa; padding: 15px; border-radius: 6px; text-align: center; }
.ntd-metric-card.alert { background: #fff0f0; }
.ntd-metric-card.warning { background: #fff8e6; }
.ntd-metric-value { font-size: 24px; font-weight: 700; color: #1a1a2e; }
.ntd-metric-label { font-size: 11px; color: #666; text-transform: uppercase; margin-top: 5px; }
.ntd-metric-consec-red { font-size: 11px; color: #c00; }
.ntd-metric-consec-orange { font-size: 11px; color: #e65c00; }

.ntd-break-high { color: #c00; font-weight: 700; }
.ntd-break-med  { color: #e65c00; font-weight: 600; }
.ntd-break-low  { color: #080; }
.ntd-break-low-warn { color: #997700; font-weight: 600; }
.ntd-break-cell { font-variant-numeric: tabular-nums; text-align: center; vertical-align: middle; }
.ntd-tier-label { font-size: 10px; display: block; margin-top: 1px; }
.ntd-consec { font-size: 10px; color: #666; display: block; margin-top: 1px; }

.ntd-legend-box { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 6px; padding: 12px 16px; margin-bottom: 15px; font-size: 12px; color: #555; }
.ntd-legend-box strong { color: #1a1a2e; }
.ntd-surge { color: #c00; font-weight: 600; }
.ntd-shortfall { color: #e65c00; font-weight: 600; }

.ntd-back-btn { background: #1a1a2e; color: #fde047; border: none; padding: 6px 14px; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 600; }
.ntd-back-btn:hover { background: #2a2a4e; }

.ntd-loading { padding: 40px; text-align: center; color: #666; }

@media (max-width: 768px) {
  .ntd-metric-grid { grid-template-columns: repeat(2, 1fr); }
}
.ntd-download-btn { padding: 8px 16px; font-size: 14px; background-color: #820a02; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; }
.ntd-download-btn:disabled { background-color: #666; cursor: not-allowed; }
.ntd-download-btn:hover:not(:disabled) { background-color: #a00d02; }
