/* =========================================================
   REPORT2 - Stili specifici della pagina report NOAA
   ========================================================= */

.report-page {
    min-height: 100vh;
}

.report-content {
    width: 100%;
}

.report-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    padding: 24px;
}

.report-card-header {
    margin-bottom: 22px;
}

.report-card-header h1 {
    margin: 0 0 7px;
    font-size: 1.45rem;
    font-weight: 700;
}

.report-card-header p {
    margin: 0;
    color: var(--muted);
}

.report-month-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.report-month-card,
.report-month-selector {
    min-height: 82px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.report-month-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.report-month-card > a:first-child {
    min-width: 0;
}

.report-month-name {
    color: var(--text);
    font-weight: 600;
}

.report-month-name:hover {
    color: var(--accent);
}

.report-export-links {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.report-export-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border-radius: 6px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.report-export-link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.report-export-link img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.report-month-selector {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}

.report-month-selector label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.report-selector-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-selector-row select {
    min-width: 0;
    flex: 1;
    min-height: 36px;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
}

.report-selector-row select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.report-submit {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid var(--accent);
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.report-submit:hover {
    filter: brightness(1.08);
}

.report-results {
    min-height: 120px;
    width: 100%;
}

.report-results.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.report-data-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
}

.report-data-title {
    font-weight: 600;
}

.report-data-exports {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.report-data-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.report-data-table {
    width: 100%;
    min-width: 1020px;
    border-collapse: collapse;
    font-size: 0.78rem;
    white-space: nowrap;
}

.report-data-table th {
    padding: 10px 9px;
    text-align: left;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.report-data-table td {
    padding: 7px 8px;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    vertical-align: middle;
}

.report-data-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
}

.report-data-table tbody tr.report-row-alt td {
    background: rgba(255, 255, 255, 0.018);
}

.report-data-table img {
    max-width: 30px;
    max-height: 30px;
    vertical-align: middle;
}

.report-data-table .report-heat-cell {
    width: 30px;
    min-width: 30px;
    padding: 3px 2px;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 1px #222;
}

.report-data-table .report-rain-cell {
    padding: 3px 4px;
    color: #fff;
    text-shadow: 1px 1px 1px #222;
}

.report-data-table .report-wind-cell {
    text-align: center;
}

.report-error {
    padding: 14px 16px;
    border: 1px solid rgba(255, 80, 80, 0.35);
    border-radius: 9px;
    background: rgba(255, 60, 60, 0.08);
    color: var(--text);
}

.report-notice {
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 190, 70, 0.25);
    border-radius: 9px;
    background: rgba(255, 190, 70, 0.055);
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.report-notice strong {
    color: var(--text);
}

.report-footer-credit {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.report-footer-credit a {
    color: inherit;
}

@media (max-width: 960px) {
    .report-month-options {
        grid-template-columns: 1fr 1fr;
    }

    .report-month-selector {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .report-card {
        padding: 16px;
        border-radius: 11px;
    }

    .report-month-options {
        grid-template-columns: 1fr;
    }

    .report-month-selector {
        grid-column: auto;
    }

    .report-data-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 460px) {
    .report-month-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-selector-row {
        align-items: stretch;
        flex-direction: column;
    }

    .report-submit {
        width: 100%;
    }

    .report-data-table {
        min-width: 1020px;
    }
}
