.ce-ntl__filters{
  display:grid;
  grid-template-columns:repeat(4,minmax(160px,1fr));
  gap:12px;
  margin:12px auto;
  max-width: 1200px;
}
.ce-ntl__filters label span{
  display:block;
  font-size:.85rem;
  color:#555;
  margin-bottom:4px;
  font-weight: bold;
}
.ce-ntl__table{width:100%;border-collapse:collapse}
.ce-ntl__table th,.ce-ntl__table td{
  border-bottom:1px solid #ececec;
  padding:8px;
  text-align:left
}
.ce-ntl__table tbody tr{cursor:pointer}
.ce-ntl__table tbody tr:hover{background:#fafafa}
.ce-ntl__table--details tbody tr{cursor:default}
.ce-ntl__details{margin-top:16px}


.ce-ntl__table-wrap {
    height: 400px;
    overflow: scroll;
    max-width: 1200px;
    margin: 0 auto;
}

.ce-ntl__filters select {
  width: 100%;
  max-width: 100%;
}

.ce-ntl__table tbody tr:nth-child(odd) {
  background-color: #f2f1f0;
}

.ce-ntl__table thead {
      background-color: #d13237;
    color: white;
    position: sticky; top: 0; 
}

@media (max-width: 650px) {
  .ce-ntl__table {
    font-size: 14px;
  }
}

/* Badge */
.ntl-badge {
  display:inline-block;
  margin-left:.5rem;
  padding:.15rem .45rem;
  border-radius:999px;
  font-size:12px;
  line-height:1;
  vertical-align:middle;
}
.ntl-badge--dow {
  background:#eef7ff;
  border:1px solid #cfe6ff;
  color:#09539b;
}

/* Row highlighting */
.ce-ntl__table tr.is-dow-leader {
  background: #fcffef; /* soft highlight */
}
.ce-ntl__table tr.is-dow-leader--current {
  background: #fff7d6; /* stronger when matching selected DOW */
  outline: 2px solid #ffd24d;
  outline-offset: -2px;
}


/* any leader */
.ce-ntl__table tr.is-dow-leader { outline: 2px solid #1FD60A; }

/* the leader for the currently selected day */
.ce-ntl__table tr.is-dow-leader--current { background-color: #5CF64A !important; }

/* day-specific accents (tweak colors as you like) */


.ntl-badge.ntl-badge--dow { margin-left:.4rem; font-size:.75rem; padding:.1rem .35rem; border-radius:.4rem; background:#eee; }

/* Highlight classes for different leader types */

/* Cumulative leaders */
.ce-ntl__table tbody tr.is-cumulative-leader {
  background-color: #fff3cd !important;
  border-left: 4px solid #ffc107;
}

/* Venue leaders */
.ce-ntl__table tbody tr.is-venue-leader {
  background-color: #d1ecf1 !important;
  border-left: 4px solid #17a2b8;
}

/* Day of week leaders */
.ce-ntl__table tbody tr.is-dow-leader {
  background-color: #d4edda !important;
  border-left: 4px solid #28a745;
}

/* Current filtered day leader (more prominent) */
.ce-ntl__table tbody tr.is-dow-leader--current {
  background-color: #c3e6cb !important;
  font-weight: 600;
}

/* Multiple highlights (combination) */
.ce-ntl__table tbody tr.is-cumulative-leader.is-venue-leader,
.ce-ntl__table tbody tr.is-cumulative-leader.is-dow-leader,
.ce-ntl__table tbody tr.is-venue-leader.is-dow-leader {
  background: linear-gradient(90deg, #fff3cd 0%, #d1ecf1 50%, #d4edda 100%) !important;
  border-left: 4px solid #ff6b6b;
  font-weight: 600;
}

/* Badge styles */
.ntl-badge {
  display: inline-block;
  padding: 3px 8px;
  margin-left: 6px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ntl-badge--cumulative {
  background-color: #ffc107;
  color: #856404;
}

.ntl-badge--venue {
  background-color: #17a2b8;
  color: #ffffff;
}

.ntl-badge--dow {
  background-color: #28a745;
  color: #ffffff;
}

/* Hover effects for highlighted rows */
.ce-ntl__table tbody tr.is-cumulative-leader:hover,
.ce-ntl__table tbody tr.is-venue-leader:hover,
.ce-ntl__table tbody tr.is-dow-leader:hover {
  opacity: 0.9;
  cursor: pointer;
  transform: scale(1.01);
  transition: all 0.2s ease;
}

/* Legend (optional - add to your template if needed) */
.ntl-legend {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 14px;
}

.ntl-legend__item {
  display: inline-block;
  margin-right: 20px;
  margin-bottom: 8px;
}

.ntl-legend__color {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 6px;
}

.ntl-legend__color--cumulative {
  background-color: #fff3cd;
  border: 2px solid #ffc107;
}

.ntl-legend__color--venue {
  background-color: #d1ecf1;
  border: 2px solid #17a2b8;
}

.ntl-legend__color--dow {
  background-color: #d4edda;
  border: 2px solid #28a745;
}


/* Season Notes - Area Manager */
.ntl-season-notes-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.ntl-season-notes-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.ntl-season-notes-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

.ntl-season-notes-section .ntl-field-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Season Notes - Leaderboard Display */
.ce-ntl__season-notes {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.ce-ntl__notes-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* ============================================================================
   NTL National Rankings Styles
   ============================================================================ */

/* National Summary Section */
.ce-ntl__national-summary {
    margin: 20px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 1200px;
    box-sizing: border-box;
    overflow: hidden;
}

.ce-ntl__national-title {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
}

.ce-ntl__national-title span {
    color: #cc0000;
}

/* Tabs */
.ce-ntl__national-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.ce-ntl__national-tab {
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 28px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.ce-ntl__national-tab:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.ce-ntl__national-tab.active {
    background: #cc0000;
    border-color: #cc0000;
    color: #fff;
}

.ce-ntl__national-tab .tab-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.ce-ntl__national-tab.active .tab-label {
    opacity: 0.9;
}

.ce-ntl__national-tab .tab-name {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

/* Panels */
.ce-ntl__national-panel {
    display: none;
}

.ce-ntl__national-panel.active {
    display: block;
}

/* Grid Layout - 4 columns for days */
.ce-ntl__national-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    max-width: 100%;
    overflow: hidden;
    overflow-x: auto;
}

/* Cards */
.ce-ntl__national-card {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    min-width: 0;
    overflow: hidden;
}

.ce-ntl__national-card--wide {
    grid-column: span 2;
}

.ce-ntl__national-card--full {
    grid-column: 1 / -1;
}

.ce-ntl__national-card h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid #cc0000;
    padding-bottom: 10px;
}

.ce-ntl__subtitle {
    font-weight: 400;
    font-size: 14px;
    color: #666;
}

/* Day indicator icon */
.ce-ntl__day-icon {
    margin-right: 8px;
}

/* Lists */
.ce-ntl__national-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ce-ntl__national-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
    font-size: 15px;
    transition: all 0.15s ease;
    min-width: 0;
    overflow: hidden;
}

.ce-ntl__national-list li:hover {
    border-color: #cc0000;
    box-shadow: 0 2px 4px rgba(204,0,0,0.1);
}

.ce-ntl__national-list li:last-child {
    margin-bottom: 0;
}

/* Rank number styling */
.ce-ntl__national-list .team-rank {
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    background: #cc0000;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Gold/Silver/Bronze for top 3 */
.ce-ntl__national-list li:nth-child(1) .team-rank {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
}

.ce-ntl__national-list li:nth-child(2) .team-rank {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    color: #333;
}

.ce-ntl__national-list li:nth-child(3) .team-rank {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
    color: #fff;
}

.ce-ntl__national-list .team-name {
    flex: 1;
    margin: 0 10px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.ce-ntl__national-list .team-score {
    font-weight: 700;
    font-size: 13px;
    color: #cc0000;
    background: #fff5f5;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid #ffcccc;
    white-space: nowrap;
    flex-shrink: 0;
}

.ce-ntl__national-list .team-league {
    font-size: 13px;
    color: #666;
    margin-left: 10px;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.ce-ntl__national-list .team-games {
    font-size: 13px;
    color: #888;
    margin-left: 10px;
}

/* Wide list for Top 5/10 - two columns */
.ce-ntl__national-list--wide {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 25px;
}

.ce-ntl__national-list--wide li {
    margin-bottom: 0;
}

/* Top 10 list */
.ce-ntl__national-list--top10 {
    grid-template-columns: repeat(2, 1fr);
}

/* ============================================================================
   National Rank Badges in Table
   ============================================================================ */

.ce-ntl__national-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.ce-ntl__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Split badges - Gold theme */
.ce-ntl__badge--split-cumulative {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    color: #856404;
    border: 1px solid #ffc107;
}

.ce-ntl__badge--split-day {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 1px solid #4caf50;
}

/* Yearly badges - Blue/Purple theme */
.ce-ntl__badge--yearly-overall {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border: 1px solid #2196f3;
}

.ce-ntl__badge--yearly-day {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #7b1fa2;
    border: 1px solid #9c27b0;
}

.ce-ntl__badge--yearly-avg {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    color: #c2185b;
    border: 1px solid #e91e63;
}

/* ============================================================================
   Responsive - Filters
   ============================================================================ */

@media (max-width: 900px) {
    .ce-ntl__filters {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .ce-ntl__filters {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   Responsive - National Rankings
   ============================================================================ */

@media (max-width: 768px) {
    .ce-ntl__national-summary {
        padding: 15px;
        margin: 15px;
    }
    
    .ce-ntl__national-title {
        font-size: 22px;
    }
    
    .ce-ntl__national-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ce-ntl__national-card--wide {
        grid-column: span 2;
    }
    
    .ce-ntl__national-card--full {
        grid-column: 1 / -1;
    }
    
    .ce-ntl__national-list--wide {
        grid-template-columns: 1fr;
    }
    
    .ce-ntl__national-tab {
        padding: 10px 16px;
    }
    
    .ce-ntl__national-tab .tab-name {
        font-size: 14px;
    }
    
    .ce-ntl__national-list li {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .ce-ntl__national-list .team-rank {
        min-width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .ce-ntl__national-list .team-name {
        font-size: 14px;
        margin: 0 10px;
    }
    
    .ce-ntl__national-list .team-score {
        font-size: 13px;
        padding: 3px 8px;
    }
    
    .ce-ntl__national-list .team-league {
        display: none;
    }
}

@media (max-width: 480px) {
    .ce-ntl__national-grid {
        grid-template-columns: 1fr;
    }
    
    .ce-ntl__national-card--wide,
    .ce-ntl__national-card--full {
        grid-column: span 1;
    }
}