/* MiLB Component Styles */

/* Plot Dropdown Container */
.plot-dropdown-container {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 2.5rem auto;
    text-align: center;
}

.plot-dropdown-container.show-dropdown {
    display: flex !important;
    margin: 2.5rem auto !important;
}

.plot-dropdown-container .dropdown-menu,
.plot-dropdown-container .dropdown {
    display: block;
    position: absolute;
    min-width: clamp(240px, 60vw, 320px);
    max-width: min(480px, 96vw);
    width: max-content;
    box-sizing: border-box;
    overflow: visible;
    white-space: normal;
    z-index: 3000;
    background: #1c1e22;
    padding: 0.75rem 1.15rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.plot-dropdown-container .dropdown-menu li,
.plot-dropdown-container .dropdown-menu label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: 100%;
}

.plot-dropdown-container .dropdown-menu {
    width: max-content;
    min-width: clamp(240px, 60vw, 320px);
    max-width: min(480px, 96vw);
    padding: 0.75rem 1.15rem;
    overflow: visible;
}

.dropdown-menu,
.dropdown-menu.zones-menu,
.dropdown-menu.pitchtype-menu {
  width: max-content;
  min-width: clamp(240px, 60vw, 320px);
  max-width: min(480px, 96vw);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: #232323;
  padding: 0.75em 1.15em;
  border-radius: 9px;
  border: 1px solid #444;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 4000;
  box-sizing: border-box;
}

.dropdown-btn, .plot-dropdown-container .dropdown-btn {
  max-width: 110px;
  min-width: 80px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block;
  background: #223447;
  color: #d2edfc;
  border: 1px solid #2388c8;
  border-radius: 7px;
  font-size: 13px;
  padding: 5px 10px;
}

.dropdown-menu label,
.dropdown-menu .menu-item,
.dropdown-menu li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  max-width: 100%;
  padding: 8px 14px;
  background: #333;
  color: #fff;
  border-radius: 18px;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 6px;
  margin-right: 8px;
  box-sizing: border-box;
  white-space: normal;
  word-break: keep-all;
  overflow: visible;
  text-overflow: unset;
  cursor: pointer;
}

/* Elevated plot selector styling */
.plot-type-selector {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 1rem 3.5rem 1rem 1.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    color: #7bd6ff !important;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.15), transparent 55%),
                linear-gradient(160deg, #0d111a 0%, #131b2a 100%) !important;
    background-color: transparent !important;
    border: 2px solid #33bfff !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(51, 191, 255, 0.25) !important;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    min-width: 260px !important;
    color-scheme: dark;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237bd6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1.5rem) 50%;
    background-size: 12px 8px;
}

.plot-type-selector:hover {
    border-color: #63e0ff !important;
    box-shadow: 0 14px 28px rgba(99, 224, 255, 0.35) !important;
    transform: translateY(-1px);
}

.plot-type-selector:focus {
    outline: none;
    border-color: #9bf0ff !important;
    box-shadow: 0 0 0 3px rgba(155, 240, 255, 0.25) !important;
}

.plot-type-selector option {
    background: #0d111a;
    color: #e0f7ff;
}

.plot-dropdown-container select.plot-type-selector {
    padding: 1rem 3.5rem 1rem 1.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #7bd6ff !important;
    border: 2px solid #33bfff !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(51, 191, 255, 0.25) !important;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.15), transparent 55%),
                linear-gradient(160deg, #0d111a 0%, #131b2a 100%) !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237bd6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1.5rem) 50%;
    background-size: 12px 8px;
}

@media (max-width: 640px) {
    .plot-dropdown-container {
        width: 100%;
    }
    .plot-type-selector {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* MiLB Dashboard Layout */
.milb-dashboard {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    color: #ffffff;
    background-color: #1a1a1a;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.milb-single-player-root .milb-dashboard {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* MLB-style clean title */
.clean-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 1.2em !important;
    font-weight: bold !important;
    color: #fff !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
}

/* Counting Stats Table Styles */
.counting-stats-section {
    background: #222;
    border-radius: 8px;
    padding: 20px;
    margin: 2em auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 90%;
}

#countingStatsTable {
    width: 100%;
    max-width: 90%;
    table-layout: auto;
    margin: 0 auto;
    border-collapse: collapse;
}

#countingStatsTable th,
#countingStatsTable td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid #444;
    font-size: 12px;
    white-space: nowrap;
}

#countingStatsTable th {
    background-color: #1a1a1a;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Color grading for performance metrics */
.performance-excellent { background-color: #1a472a; color: #ffffff; }
.performance-good { background-color: #2d5016; color: #ffffff; }
.performance-average { background-color: #4a4a4a; color: #ffffff; }
.performance-below { background-color: #5d2e2e; color: #ffffff; }
.performance-poor { background-color: #7a1a1a; color: #ffffff; }

/* MLB-style pitch-by-pitch table headers */
.pitch-by-pitch-container .data-table th[colspan] {
    background-color: #1a1a1a;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding: 8px 6px;
    border-bottom: 2px solid #888;
    border-right: 2px solid #888;
    border-left: 2px solid #888;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.pitch-by-pitch-container .data-table th[colspan]:first-child {
    border-left: none;
}

.pitch-by-pitch-container .data-table th[colspan]:last-child {
    border-right: none;
}

/* Heatmap Container Styles */
.heatmap-container {
    background: #222 !important;
    border-radius: 8px !important;
    padding: 40px !important;
    padding-bottom: 88px !important;
    margin: 3em auto !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    width: 90% !important;
    max-width: 90% !important;
    box-sizing: border-box !important;
}

.heatmap-container h3 {
    color: #ffffff !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}

/* Pitch Log Table Styles */
.pitch-log-section {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 2em auto;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
}

.pitch-by-pitch-wrapper {
    width: 100%;
}

.table-container {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 5px;
    margin: 5px auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: fit-content;
    max-width: 90%;
    overflow-x: auto;
}

.pitch-by-pitch-container {
    width: fit-content;
    margin: 0 auto;
    overflow-x: auto;
}

.milb-pitch-log-table {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.milb-pitch-log-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block !important;
    margin: 0 auto !important;
    overflow-x: auto !important;
}

.milb-pitch-log-container .table-controls,
.milb-pitch-log-container .table-footer {
    width: 100%;
}

/* Reset Filters Button */
.reset-filters-btn {
    background: var(--accent-color);
    border: none;
    color: #fff;
    border-radius: 4px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}
.reset-filters-btn:hover {
    background: #ff3333;
}

/* Data Table - MLB styling - Matching MLB exactly */
.data-table {
    width: 100%;
    min-width: max-content; /* Match MLB's approach */
    margin: 0;
    border-collapse: collapse;
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.data-table th,
.data-table td {
    padding: 10px 8px; /* Increased padding for better spacing */
    text-align: center;
    border-bottom: 1px solid #444;
    font-size: 13px;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.data-table th {
    background-color: #1a1a1a;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.data-table th[colspan] {
    color: #888;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Pitch log controls - Expanded for full width */
.pitch-log-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.entries-control, .search-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* MLB-style table controls */
.table-controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entries-control label, .search-control label {
    color: #ccc;
    font-size: 14px;
    white-space: nowrap;
}

/* MLB-style entries and search controls */
.entries-control label {
    color: #fff;
    margin-right: 10px;
}

.entries-control select {
    background: #444;
    color: #fff;
    border: 1px solid #666;
    padding: 5px;
    border-radius: 4px;
}

.search-control label {
    color: #fff;
    margin-right: 10px;
}

.search-control input {
    background: #444;
    color: #fff;
    border: 1px solid #666;
    padding: 5px;
    border-radius: 4px;
}

.compact-select {
    padding: 4px 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 12px;
    min-width: 100px;
}

.compact-select:focus {
    outline: none;
    border-color: #007acc;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background-color: #3a3a3a;
    border-color: #555;
}

.pagination-btn.active {
    background-color: #007acc;
    border-color: #007acc;
}

.pagination-ellipsis {
    color: #888;
    padding: 8px 4px;
    font-size: 14px;
}

.showing-info {
    text-align: center;
    color: #ccc;
    font-size: 14px;
    margin-top: 20px;
}

/* MLB-style table footer */
.table-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.sortable-header:hover {
    background-color: #333;
}

.sort-asc::after {
    content: ' ▲';
    color: #007acc;
}

.sort-desc::after {
    content: ' ▼';
    color: #007acc;
}

/* Search Section */
.search-section {
    margin: 2rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.search-bar {
    position: relative;
    display: inline-block;
}

.search-bar input {
    width: 300px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #2a2a2a;
    color: #ffffff;
}

.search-bar input::placeholder {
    color: #888;
}

/* Suggestion dropdown (match MLB) */
.suggestion-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 4px 4px;
  min-height: 0;
  max-height: 360px; /* up to ~10 names */
  overflow-y: auto;
  z-index: 2000;
  display: none;
  max-height: 70vh;
}

.suggestion-box div {
    padding: 8px 12px;
    cursor: pointer;
    color: #ffffff;
}

.suggestion-box div:hover {
    background-color: #3a3a3a;
}

/* Date Range Container */
.date-range-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.date-input-group label {
    color: #ccc;
    font-size: 14px;
}

.date-input-group input {
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #2a2a2a;
    color: #ffffff;
}

/* Update button styling (match MLB) */
.date-update-btn {
    padding: 10px 16px;
    background-color: #0063B1;  /* match NCAA */
    color: #fff;
    border: 2px solid #007acc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.date-update-btn:hover { background-color: #007acc; border-color: #0099ff; }
.date-update-btn:active { background-color: #0060a8; }

/* Pitch Averages Container - Matching MLB Counting Stats exactly */
.pitch-averages-container {
    justify-content: center;
    margin: 2em auto;
}

/* Metrics Wrapper - MLB structure */
.metrics-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

/* Table Container - MLB structure - Matching MLB exactly */
.table-container {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 5px;
    margin: 5px auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: fit-content;
    max-width: 90%;
    overflow-x: auto;
}

/* Pitch Metrics Container - MLB structure */
.pitch-metrics-container {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: inline-block;
    min-width: min-content;
    max-width: 95%;
}

/* Data Table - MLB styling - Matching MLB exactly */
.data-table {
    width: 100%;
    min-width: max-content; /* Match MLB's approach */
    margin: 0;
    border-collapse: collapse;
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.data-table th,
.data-table td {
    padding: 10px 8px; /* Increased padding for better spacing */
    text-align: center;
    border-bottom: 1px solid #444;
    font-size: 13px;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.data-table th {
    background-color: #1a1a1a;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.data-table th[colspan] {
    color: #888;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Pitch Metrics Container Table Overrides - MLB styling */
.pitch-metrics-container .data-table {
    margin: 0;
    width: 100%;
    min-width: max-content; /* Match MLB's approach */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.pitch-metrics-container .data-table th[colspan] {
    background-color: #1a1a1a;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding: 8px 6px;
    border-bottom: 2px solid #888;
    border-right: 2px solid #888;
    border-left: 2px solid #888;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.pitch-metrics-container .data-table th[colspan]:first-child {
    border-left: none;
}

.pitch-metrics-container .data-table th[colspan]:last-child {
    border-right: none;
}

.pitch-metrics-container .data-table td {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 13px;
    padding: 6px 8px;
    white-space: nowrap;
}

/* Pitch Type Colors */
.pitch-type {
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.pitch-type.FF { background-color: #ff4444; }
.pitch-type.SL { background-color: #9c27b0; }
.pitch-type.CH { background-color: #4caf50; }
.pitch-type.SI { background-color: #2196f3; }
.pitch-type.CB { background-color: #ff9800; }
.pitch-type.FC { background-color: #e91e63; }
.pitch-type.FS { background-color: #00bcd4; }
.pitch-type.ST { background-color: #03a9f4; }

/* Location Plot Container */
#locationPlotContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 2em auto;
}

/* Movement Plot Container */
#movementPlotContainer {
    margin: 2em auto;
    text-align: center;
}

/* Filter Controls */
.plot-controls {
    text-align: center;
    margin: 2em auto;
}

/* Filter Group & Dropdowns (match MLB behavior) */
.filter-group {
    position: relative;
    display: inline-block;
}

/* Filter row layout (match MLB) */
.filter-row {
    display: flex;
    justify-content: center;
    gap: 2px;
    flex-wrap: nowrap;
    align-items: center;
}

.count-dropdown-btn {
    padding: 4px 8px;
    font-size: 12px;
    background-color: #333;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    min-width: 100px;
    white-space: nowrap;
}

.count-dropdown-btn:hover { background-color: #444; }

.count-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #222;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 12px;
    z-index: 1000;
    min-width: 250px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.count-dropdown-content.show { display: block; }

.count-filter-grid, .zone-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.count-filter-grid label,
.zone-filter-grid label,
.dropdown-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 9999px; /* pill */
    border: 1px solid #444;
    background: #222;
    transition: background-color 0.2s, border-color 0.2s;
    white-space: normal;
    line-height: 1.35;
    text-align: center;
    min-height: 36px;
}

.count-filter-grid label:hover, .zone-filter-grid label:hover, .dropdown-pill:hover { background-color: #333; }

.count-filter-grid label input[type="checkbox"],
.zone-filter-grid label input[type="checkbox"],
.dropdown-pill input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.count-filter-grid label:has(input:checked),
.zone-filter-grid label:has(input:checked),
.dropdown-pill:has(input:checked) {
    background: #0063B1;
    border-color: #0099ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .date-range-container {
        flex-direction: column;
        align-items: center;
    }
    
    .search-bar input {
        width: 100%;
        max-width: 300px;
    }
    
    .pitch-averages-container {
        margin: 1em;
        padding: 15px;
    }
    
    /* Mobile table adjustments */
    .data-table {
        min-width: 1200px; /* Slightly smaller minimum width for mobile */
    }
    
    .pitch-log-section {
        width: 98%;
        max-width: 98%;
        padding: 15px;
    }
}

/* Download Report Button */
.download-report-btn {
    position: fixed;
    top: calc(var(--navbar-offset, 70px) + 12px);
    right: clamp(16px, 3vw, 32px);
    padding: 10px 22px;
    background-color: #0f9d58;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
    z-index: 1200;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.download-report-btn:hover {
    background-color: #128647;
}

.download-report-btn:disabled {
    cursor: default;
    background-color: #1a6c49;
    opacity: 0.65;
}

.download-report-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.milb-dashboard .download-report-btn {
    opacity: 1;
    pointer-events: none;
    background-color: #1a6c49;
}

.milb-dashboard .download-report-btn.has-download-data {
    background-color: #0f9d58;
    pointer-events: auto;
}

.milb-dashboard .download-report-btn.has-download-data:hover {
    background-color: #128647;
}
