/* Styles for the construction-types report (construction-types.html). */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

h1 {
    color: #333;
    margin-bottom: 6px;
}

p.sub {
    color: #666;
    margin-top: 0;
}

.layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.chart-container,
.stats {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.chart-container {
    flex: 1 1 380px;
    /* Reserved so the card keeps its size while the data loads. */
    min-height: 320px;
}

.stats {
    flex: 1 1 320px;
}

canvas {
    max-height: 420px;
}

.chart-message {
    color: #666;
}

table {
    border-collapse: collapse;
    width: 100%;
}

td,
th {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    color: #888;
    font-weight: 600;
}

td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

.note {
    color: #999;
    font-size: 0.85em;
    margin-top: 14px;
    line-height: 1.4;
}

.back-btn {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 8px;
    background: #152033;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    transition: opacity 0.15s ease;
}

.back-btn:hover {
    opacity: 0.82;
}
