﻿
:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --bg: #f5f7fa;
}


/* Cards */
.cards {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

    .card h3 {
        margin: 0 0 10px;
        font-size: 16px;
        color: var(--primary);
    }

    .card .value {
        font-size: 20px;
        font-weight: bold;
        color: var(--accent);
        text-align: right;
    }

        .card .value.second {
            color: #203a72;
        }

        .card .value.sum {
            color: black;
        }

            .card .value.sum:before {
                font-size: 16px;
                content: '\2211  ';
                top: -4px;
                position: relative;
            }



.reportCards {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

    .reportCards .card {
        display:grid;
        grid-template-columns:1fr auto;
        grid-template-rows: auto auto;
    }

        .reportCards .card h3{
            grid-row:1;
            grid-column-start:1;
            grid-column-end:2;
        }

        .reportCards .card .value {
            text-align: left;
            grid-row: 2;
            grid-column:1;
        }

        

        .reportCards .card .percent {
            grid-row: 2;
            grid-column: 2;
            border-radius: 6px;
            background-color: green;
            color: black;
            padding: 3px 5px;
            font-size: 60%;
            display: none;
            margin: 5px 0;
        }
            .reportCards .card .percent.plus {
                background-color: #b4d69d;
                display: inline;
            }
            .reportCards .card .percent.minus {
                background-color: #e3af9b;
                display: inline;
            }

                .reportCards .card .percent.plus:before {
                    content: '+';
                }

                .reportCards .card .percent.plus:after, .reportCards .card .percent.minus:after {
                    content: ' %';
                }


                .reportCards .card .value .unit {
                    font-size: 70%;
                    color: grey;
                }
                .reportCards .card .value .unit:before{
                    content: ' ';
                }


                .reportYear {
                    border-radius: 6px;
                    background-color: var(--accent);
                    color: white;
                    padding: 5px 10px;
                    text-decoration: none;
                    margin:0 5px 5px 0;
                    display:inline-block;
                }

    .reportYear.selected {
        background-color: #1c3261;
    }


    h2{
        margin-top:25px;
        text-transform:uppercase;

    }

.reportNote {
    margin-top: 25px;
    font-style:italic;
}