/* weekly_predictions.css - Dedicated styles for Weekly Predictions page */

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Filter Section Styles */
.weekly-filter-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px #808080;
    display: flex;           /* stack filter rows */
    flex-direction: column;  /* vertical layout for rows */
    gap: 12px;               /* space between Row 1 and Row 2 */
}

/* Fallback spacing in case gap isn't applied */
.weekly-filter-container > .weekly-filter-row:not(:first-child) {
    margin-top: 12px;
}

.weekly-filter-row {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
}

/* Right-align a specific filter row (e.g., buttons row) */
.weekly-filter-row--right {
    justify-content: flex-end;
}

.weekly-filter-item {
    margin-right: 0;
    flex: 0 1 auto;
}

/* Group buttons nicely and allow wrapping on small screens */
.weekly-filter-buttons {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

/* Make inputs shrink better on narrow screens */
@media (max-width: 980px) {
    .weekly-dropdown-wide { width: 200px; }
    .weekly-dropdown-extra-wide { width: 230px; }
    .weekly-search-input { width: 160px; }
}

@media (max-width: 640px) {
    .weekly-dropdown-wide { width: 180px; }
    .weekly-dropdown-extra-wide { width: 200px; }
    .weekly-search-input { width: 140px; }
}

.weekly-filter-label {
    color: #000;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.weekly-search-input {
    width: 180px;
    padding: 8px;
    border-radius: 2px;
    border: 1px solid #e5e7eb;
    background-color: #fff;
}

/* Legacy product filter container removed */

.weekly-dropdown-standard {
    width: 120px;
    color: #000;
}

.weekly-dropdown-wide {
    width: 220px;
    color: #000;
}

.weekly-dropdown-extra-wide {
    width: 270px;
    color: #000;
}

.weekly-location-tn-label {
    color: #000;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.weekly-location-tn-red {
    color: #dc2626;
    font-weight: 400;
}

.weekly-location-tn-green {
    color: #16a34a;
    font-weight: 400;
}

/* Reset Button */
.weekly-reset-button {
    background-color: #3DC6C3;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    height: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.weekly-reset-button:hover {
    background-color: #3DC6C3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.weekly-reset-button:active {
    transform: translateY(1px);
}

.weekly-reset-spacer {
    margin-bottom: 28px;
    display: block;
}

/* Refresh Button and Summary Row */
.weekly-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.weekly-summary-container {
    flex: 1;
}

.weekly-refresh-button {
    background-color: #3DC6C3;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    height: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.weekly-refresh-button:hover {
    background-color: #3DC6C3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.weekly-refresh-button:active {
    transform: translateY(1px);
}

/* Export Button - Match refresh button styling */
.filters-export-btn {
    background-color: #3DC6C3;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    height: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.filters-export-btn:hover {
    background-color: #3DC6C3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.filters-export-btn:active {
    transform: translateY(1px);
}
.filters-export-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

/* Date Information Boxes - removed (unused) */

/* Time Display - removed (unused) */

/* Summary Statistics Cards - removed (using global dashboard styles) */

/* Product Filter Radio and Checkbox Styles */
.weekly-product-radio-container {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.weekly-product-radio {
    color: #000;
    font-size: 16px;
    margin-bottom: 10px;
}

.weekly-product-radio-input {
    margin-right: 8px;
}

.weekly-product-radio-label {
    display: inline-block;
    margin-right: 20px;
    font-size: 16px;
    font-weight: 600;
}

.weekly-product-checkbox-container {
    display: block;
}

.weekly-product-checkbox-label {
    color: #000;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.weekly-product-checkbox-scroll {
    max-height: 80px;
    overflow-y: auto;
    padding: 8px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.weekly-product-checkbox {
    color: #000;
    font-size: 14px;
}

.weekly-product-checkbox-input {
    margin-right: 5px;
}

/* Legacy product checkbox item removed */

/* Chart Section Styles */
.weekly-charts-title {
    color: #000;
    margin-top: 30px;
    margin-bottom: 20px;
}

.weekly-chart-selector-label {
    color: #000;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.weekly-chart-selector-row {
    display: flex;
    align-items: end;
    margin-bottom: 20px;
}

.weekly-chart-selector-item {
    margin-right: 20px;
}

.weekly-chart-selector-dropdown {
    width: 200px;
    color: #000;
}

.weekly-chart-selector-dropdown-wide {
    width: 400px;
    color: #000;
}

/* Chart Container Styles */
.weekly-chart-container {
    margin-bottom: 20px;
    background-color: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.weekly-chart-title {
    color: #000;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.weekly-chart-legend {
    color: #3DC6C3;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.weekly-chart-legend-detail {
    color: #374151;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.weekly-chart-grid {
    width: 100%;
}

.weekly-chart-grid-row {
    display: flex;
    width: 100%;
}

.weekly-chart-grid-item {
    width: 48%;
    display: inline-block;
    margin: 1%;
}

.weekly-chart-height {
    height: 350px;
}

.weekly-chart-info {
    color: #3DC6C3;
    font-size: 14px;
    margin-top: 20px;
    font-weight: 600;
    text-align: center;
}

.weekly-chart-tech-note {
    color: #16a34a;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
    text-align: center;
}

.weekly-table-actual {
    background-color: #ecfdf5;
    color: #065f46;
}

.weekly-table-predicted {
    background-color: #fef3c7;
    color: #a16207;
}

/* Additional Styles Found in Python Code */

/* Default Date Box Styles */
.weekly-default-date-box {
    display: inline-block;
    background-color: #fff;
    color: #374151;
    padding: 3px 8px;
    border-radius: 4px;
    margin: 0 1px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    min-width: 25px;
    text-align: center;
}

.weekly-default-date-info {
    padding: 2px 2px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

/* Date Spans and Labels */
.weekly-date-span {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.weekly-date-span-small {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.weekly-date-margin-small {
    margin: 0 2px;
}

.weekly-date-margin-none {
    margin: 0 0px;
}

.weekly-date-margin-medium {
    margin: 0 4px;
}

/* Australia Map Styles */
.weekly-map-container {
    margin-bottom: 20px;
    background-color: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.weekly-map-error-text {
    color: #f59e0b;
    text-align: center;
    padding: 20px;
}

.weekly-map-error-detail {
    color: #374151;
    font-size: 12px;
    text-align: center;
}

/* Product Filter Styling */
.weekly-product-radio-style {
    color: #000;
    font-size: 16px;
    margin-bottom: 10px;
}

.weekly-product-radio-input-style {
    margin-right: 8px;
}

.weekly-product-radio-label-style {
    display: inline-block;
    margin-right: 20px;
    font-size: 16px;
    font-weight: 600;
}

.weekly-product-container-style {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.weekly-product-checkbox-container-style {
    max-height: 80px;
    overflow-y: auto;
    padding: 5px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.weekly-product-checkbox-style {
    color: #000;
    font-size: 14px;
}

.weekly-product-checkbox-input-style {
    margin-right: 5px;
}

.weekly-product-checkbox-label-item {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 5px;
}

/* Chart Grid Layout - DUPLICATE REMOVED */

.weekly-chart-description {
    color: #374151;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.weekly-chart-instruction {
    color: #374151;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.weekly-chart-formula {
    color: #3DC6C3;
    font-size: 14px;
    margin-top: 20px;
    font-weight: 600;
    text-align: center;
}

.weekly-chart-dynamic-note {
    color: #16a34a;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
    text-align: center;
}

/* Time Display Styling */

/* Data Table Styling */
.weekly-table {
    overflow-x: auto;
    background-color: #f8fafc;
}

/* DataTable specific styling using element selectors */
#weekly-predictions-table .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table {
    background-color: #f8fafc;
}

#weekly-predictions-table .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner .dash-spreadsheet-inner table thead tr th {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    font-weight: 700 !important;
    border: 1px solid #bae6fd !important;
    text-align: left !important;
    white-space: pre-line !important;
}

#weekly-predictions-table .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner .dash-spreadsheet-inner table tbody tr td {
    padding: 12px !important;
    text-align: left !important;
    background-color: #fff;
    color: #111827;
    border: 1px solid #e5e7eb !important;
}

#weekly-predictions-table .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner .dash-spreadsheet-inner table tbody tr:nth-child(odd) td {
    background-color: #f9fafb;
}

/* Location TN Column Specific Styling - Higher Specificity */
#weekly-predictions-table .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner .dash-spreadsheet-inner table tbody tr td[data-dash-column="Location TN"] {
    font-weight: 700 !important;
}

/* NTN - Green styling */
#weekly-predictions-table .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner .dash-spreadsheet-inner table tbody tr td[data-dash-column="Location TN"][data-dash-row-value*="NTN"]:not([data-dash-row-value*="Non-NTN"]) {
    background-color: #f0fdf4 !important;
    color: #16a34a !important;
}

/* Non-NTN - Red styling */
#weekly-predictions-table .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner .dash-spreadsheet-inner table tbody tr td[data-dash-column="Location TN"][data-dash-row-value*="Non-NTN"] {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

.weekly-table-header {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    border: 1px solid #bae6fd;
    text-align: left;
    white-space: pre-line;
}

.weekly-table-cell {
    padding: 12px;
    text-align: left;
    background-color: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.weekly-table-odd-row {
    background-color: #f9fafb;
}

/* Utility Classes */
.weekly-hidden {
    display: none;
}

.weekly-visible {
    display: block;
}

.weekly-text-center {
    text-align: center;
}

.weekly-text-left {
    text-align: left;
}

.weekly-text-right {
    text-align: right;
}

.weekly-mb-2 {
    margin-bottom: 2px;
}

.weekly-mb-8 {
    margin-bottom: 8px;
}

.weekly-mb-10 {
    margin-bottom: 10px;
}

.weekly-mb-15 {
    margin-bottom: 15px;
}

.weekly-mb-20 {
    margin-bottom: 20px;
}

.weekly-mt-5 {
    margin-top: 5px;
}

.weekly-mt-20 {
    margin-top: 20px;
}

.weekly-p-5 {
    padding: 5px;
}

.weekly-p-10 {
    padding: 10px;
}

.weekly-p-15 {
    padding: 15px;
}

.weekly-p-20 {
    padding: 20px;
}

/* Additional Missing Styles from Python Code */

/* Reset Button Content */

/* Default Date Styles */
.weekly-default-date-box-style {
    display: inline-block;
    background-color: #fff;
    color: #374151;
    padding: 3px 8px;
    border-radius: 4px;
    margin: 0 1px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    min-width: 25px;
    text-align: center;
}

.weekly-default-date-box-inline {
    display: inline-block;
    background-color: #3DC6C3;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    margin: 0 2px;
    font-size: 14px;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

.weekly-date-span-default {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.weekly-date-span-large {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

/* Date Box Style for Dynamic Dates */
.weekly-date-box-style {
    display: inline-block;
    background-color: #3DC6C3;
    color: #fff;
    padding: 1px 1px;
    border-radius: 2px;
    margin: 0 2px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #3DC6C3;
    min-width: 25px;
    text-align: center;
}

.weekly-date-box-dynamic {
    display: inline-block;
    background-color: #3DC6C3;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    margin: 0 4px;
    font-size: 16px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* Time Box Style for Dynamic Time */
.weekly-time-box-style {
    display: inline-block;
    background-color: #3DC6C3;
    color: #fff;
    padding: 2px 2px;
    border-radius: 4px;
    margin: 0 2px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #3DC6C3;
}

/* Map Error Styles */
.weekly-map-unavailable {
    color: #f59e0b;
    text-align: center;
    padding: 10px;
}

/* Chart Styles */
.weekly-chart-error-red {
    color: #ef4444;
    text-align: center;
    padding: 20px;
}

.weekly-chart-fallback {
    color: #9ca3af;
    text-align: center;
    font-size: 14px;
}

.weekly-chart-height-350 {
    height: 350px;
}

.weekly-chart-height-500 {
    height: 500px;
}

/* Product Filter Specific Styles */
.weekly-product-individual-label {
    color: #000;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}


/* Australia Map Legend Styles */
.weekly-map-legend-red {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.weekly-map-legend-green {
    color: #16a34a;
    font-size: 12px;
    margin-bottom: 10px;
    text-align: center;
    font-style: italic;
}

/* Date Information Row Styles */
.weekly-date-row-default {
    margin-bottom: 2px;
    text-align: left;
}

/* Chart Info Styles */
.weekly-chart-title-main {
    color: #374151;
    margin-bottom: 20px;
    text-align: center;
}

.weekly-chart-histogram-title {
    color: #16a34a;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.weekly-chart-histogram-legend {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

/* Warning/Error Message Styles */
.weekly-warning-no-data {
    color: #f59e0b;
    text-align: center;
    padding: 20px;
}

.weekly-error-no-selection {
    color: #9ca3af;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* Input Styles for Product Filters */
.weekly-product-radio-style-main {
    color: #000;
    font-size: 16px;
    margin-bottom: 10px;
}

.weekly-product-checkbox-style-main {
    color: #000;
    font-size: 14px;
}

/* Container Visibility */
.weekly-product-hidden {
    display: none;
}

.weekly-product-visible {
    display: block;
}

/* Flex Utilities */
.weekly-flex {
    display: flex;
}

.weekly-flex-center {
    justify-content: center;
}

.weekly-flex-end {
    align-items: end;
}

.weekly-gap-16 {
    gap: 16px;
}

.weekly-inline-block {
    display: inline-block;
}

.weekly-font-italic {
    font-style: italic;
}

/* Additional Classes for Inline Style Replacement */

/* Australia Map Title and Legend */
.weekly-map-title-centered {
    color: #e2e8f0;
    margin-bottom: 15px;
    text-align: center;
}

.weekly-map-legend-gray {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.weekly-map-graph {
    height: 500px;
}

.weekly-map-error-warning {
    color: #f59e0b;
    text-align: center;
    padding: 20px;
}

.weekly-map-error-detail-small {
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
}

/* Date Box Styles - Default */
.weekly-default-date-box-inline {
    display: inline-block;
    background-color: #374151;
    color: #e2e8f0;
    padding: 3px 8px;
    border-radius: 4px;
    margin: 0 1px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #4b5563;
    min-width: 25px;
    text-align: center;
}

/* Date Span Styles - Default Size */
.weekly-date-span-default {
    font-size: 14px;
    font-weight: 600;
}

.weekly-date-span-large {
    font-size: 16px;
    font-weight: 600;
}

.weekly-date-margin-2px {
    margin: 0 2px;
}

.weekly-date-margin-4px {
    margin: 0 4px;
}

.weekly-date-margin-0px {
    margin: 0 0px;
}

/* Date row/box styles removed (unused) */

/* Warning and Error Messages */
.weekly-error-no-data {
    color: #f59e0b;
    text-align: center;
    padding: 20px;
}

.weekly-error-dashboard {
    color: #f59e0b;
    text-align: center;
    padding: 20px;
}

.weekly-error-callback {
    color: #f59e0b;
    text-align: center;
    padding: 20px;
}

/* Product filter container styles removed (unused) */

.weekly-product-filter-radio {
    color: #374151;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Legacy product-filter checklist styles removed */

/* Chart Styles */
.weekly-chart-no-selection {
    color: #9ca3af;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.weekly-chart-no-data-warning {
    color: #f59e0b;
    text-align: center;
    padding: 20px;
}

.weekly-chart-data-not-found {
    color: #f59e0b;
    text-align: center;
    padding: 20px;
}

.weekly-chart-main-title {
    color: #e2e8f0;
    margin-bottom: 20px;
    text-align: center;
}

.weekly-chart-histogram-description {
    color: #10b981;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.weekly-chart-legend-instruction {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

/* Chart Grid Layout */
.weekly-chart-grid-48-percent {
    width: 48%;
    display: inline-block;
    margin: 1%;
}

.weekly-chart-graph-350 {
    height: 350px;
}

.weekly-chart-formula-info {
    color: #fdc54d;
    font-size: 14px;
    margin-top: 20px;
    font-weight: 600;
    text-align: center;
}

.weekly-chart-dynamic-info {
    color: #10b981;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
    text-align: center;
}

.weekly-chart-error-main {
    color: #ef4444;
    text-align: center;
    padding: 20px;
}

.weekly-chart-fallback-text {
    color: #9ca3af;
    text-align: center;
    font-size: 14px;
}

/* Time Display styles removed (unused) */

/* Modal Pop-up Styles */
.weekly-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.weekly-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 1300px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease-out;
    pointer-events: all;
}

.weekly-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.weekly-modal-title {
    margin: 0;
    color: #2dd4bf;
    font-size: 1.5em;
    font-weight: 600;
    text-align: left;
}

.weekly-modal-close-btn {
    background: none;
    border: none;
    font-size: 30px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.weekly-modal-close-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
    transform: scale(1.1);
}

.weekly-modal-body {
    padding: 20px 25px;
    min-height: 400px;
}

/* Modal animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive modal design */
@media (max-width: 768px) {
    .weekly-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }

    .weekly-modal-header {
        padding: 15px 20px;
    }

    .weekly-modal-body {
        padding: 15px 20px;
    }

    .weekly-modal-title {
        font-size: 1.2em;
    }
}

/* Layout and Spacing Classes */
.weekly-spacer-small {
    margin-top: 5px;
}

.weekly-table-container {
    margin-top: 20px;
}

.weekly-chart-container-hidden {
    display: none;
}

.weekly-modal-hidden {
    display: none;
}

/* Chart Styling */
.weekly-chart-height-400 {
    height: 400px;
}

/* Error Message Styles */
.weekly-error-message {
    color: #ef4444;
    text-align: center;
    padding: 20px;
}

.weekly-error-message-small {
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

.weekly-error-message-detail {
    color: #6b7280;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .weekly-filter-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .weekly-chart-selector-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .weekly-chart-grid-item {
        width: 100%;
        margin: 1% 0;
    }
}

@media (max-width: 768px) {
    .weekly-header {
        flex-direction: column;
        text-align: center;
    }
    
    .weekly-summary-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .weekly-summary-row-cards {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .weekly-chart-height {
        height: 300px;
    }
    
    .weekly-filter-item {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .weekly-title-main,
    .weekly-title-sub {
        font-size: 20px;
    }
    
    .weekly-summary-card,
    .weekly-summary-card-large,
    .weekly-summary-card-predicted {
        max-width: none;
        min-width: 120px;
    }
    
    .weekly-chart-height {
        height: 250px;
    }
}
