/* Typography & layout */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 14px;
    background: #fff;
    color: #333;
    padding: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

h1, h2 {
    text-align: center;
    color: #1565C0;
    margin-bottom: 1rem;
}

.region-block {
    margin-top: 2rem;
}

.region-header {
    background: #f4f6f9;
    padding: 0.5rem 1rem;
    border-left: 4px solid #1565C0;
    border-radius: 0.25rem;
}

.region-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #c01537;
    text-transform: uppercase;
}

.forecast-date{
    color: #97273d;
}

/* Forecast table */
.forecast-table {
    width: 100%;
    margin-bottom: 0;
}

.forecast-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    font-size: 0.9rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #ddd;
}

.locality-col {
    width: 30%;
    text-align: left;
}

.moment-col {
    width: 23%;
    font-size: 1.4rem;
    text-align: center;
}

.moment-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.locality-name td {
    font-weight: 600;
    font-size: 1rem;
    background-color: #f0f3f5;
    color: #0d47a1;
    border-top: 1px solid #ccc;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.metric-label {
    font-weight: 500;
    color: #666;
    width: 30%;
    text-align: left;
    font-size: 0.85rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
table td.metric-label {
    vertical-align: middle !important;
}

/* Badge style (appliqué aux *_label) */
.watch-style-badge {
    display: inline-block;
    text-align: center;
    margin: 2px auto;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #eee;
    padding: 4px;
    font-size: 0.75rem;
}

.watch-style-badge .icon {
    font-size: 1.4rem;
    display: block;
    margin-top: 4px;
    opacity: 0.8;
}

.watch-style-badge .value {
    font-weight: bold;
    margin-top: 2px;
    display: block;
}

.badge-bar {
    height: 4px;
    margin-top: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}
.badge-bar-fill {
    height: 100%;
    display: block;
    border-radius: 2px;
}

@media print {
    body {
        background: white;
        color: black;
        font-size: 16px;
        max-width: 400px;
    }

    .no-print {
        display: none !important;
    }

    .watch-style-badge {
        background: white !important;
        border: 1px solid #ccc;
        color: black;
    }

    a[href]:after {
        content: "";
    }

    @page {
        margin: 1cm 5cm;
    }
}

