@font-face {
    font-family: "Museo Moderno";
    src: url(./fonts/MuseoModerno-VariableFont_wght.ttf) format("truetype")
}

@font-face {
    font-family: "Vela sans";
    src: url(./fonts/VelaSans-Regular.ttf) format("truetype");
    font-style: normal;
    font-weight: 300
}

@font-face {
    font-family: "Vela sans";
    src: url(./fonts/VelaSans-Bold.ttf) format("truetype");
    font-style: normal;
    font-weight: 700
}

body {
    width: 100%;
    margin: 0;
    font-family: Vela sans, arial, sans-serif;
    font-size: 16px;
    background-image: url(./bg.jpg);
    min-height: 100vh;
    position: relative;
    padding-bottom: 64px;
    background-size: cover;
    color: #5a4c6d;
}

.container {
    margin: auto;
    max-width: 1024px;
    padding: 20px;
}

.header {
    position: relative;
    text-align: center;
}

.header-image {
    width: 720px;
    object-fit: cover;
    display: inline-block;
    height: 170px;
    margin: 0;
    margin-left: auto;
    object-position: center;
}

h1 {
    margin: 0 0 20px 0;
    font-family: "Museo Moderno", arial, sans-serif;
    color: #5a4c6d;
    font-weight: 500;
    font-size: 24px;
    width: 100%;
    text-align: center;
}

h2, h3, h4 {
    font-family: "Museo Moderno", arial, sans-serif;
    color: #5a4c6d;
    margin: 0 0 10px 0;
}

.card {
    background-color: #fffc;
    border-radius: 16px;
    padding: 20px 30px 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.checkmark {
    color: green;
}

.cross {
    color: tomato;
}

.onderdelen {
    text-align: left;
    flex-flow: nowrap column
}

label {
    width: 100%;
    display: inline-block;
    font-size: 14px;
    color: #5a4c6d;
    font-weight: 700;
    max-width: 96%;
    margin-top: 10px;
}

input[type="text"],
input[type="number"],
input[type="range"] {
    /* min-width:256px; */
    font-size: 18px;
    padding: 10px;
    border-radius: 8px;
    border: 0 none transparent;
    margin: 10px 0 20px 0;
    text-align: center;
}

input:focus,
input:focus-visible {
    outline: 2px solid #edb07a;
}

button {
    background-color: #e58f5c;
    color: #f3e4d7;
    text-align: center;
    width: 200px;
    padding: 10px;
    border-radius: 8px;
    border: 0 none transparent;
    font-size: 18px;
    font-family: Museo Moderno, arial, sans-serif;
    cursor: pointer;
    outline: 0 none transparent;
    margin-top: 10px;
}

button:hover,
button:focus {
    background-color: #ec985a;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 16px;
}

th,
td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

th {
    font-weight: 700;
}

.highlight {
    background-color: #fcecd1;
}


.onderdelen label {
    font-weight: 400;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.onderdelen input[type="checkbox"] {
    margin-right: 4px;
}

.slider-container {
    margin-top: 15px;
}

.slider-value {
    font-weight: bold;
    color: #e58f5c;
}

.selected-info {
    font-size: 16px;
    margin-top: 15px;
}

.info-icon {
    display: inline-block;
    border-radius: 100%;
    aspect-ratio: 1;
    width: 1.4em;
    background-color: #e58f5c;
    color: #fff;
    text-align: center;
    line-height: 1.4;
    margin-left: 2px;
    scale: .8;
}

.offerte-toevoegen {
    td {
        padding: 0;

        input {
            width: calc(100% - 32px);
        }
    }

    .onderdelen {
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        gap: 8px;
        margin-top: 5px;
        margin-bottom: 12px;
    }
}

.offertes-overzicht {
    .onderdelen {
        display: flex;
        gap: 4px;
        flex-flow: column nowrap;
        text-align: left;
    }
}

.offerte-berekening {
    header {
        display: flex;
        flex-flow: row nowrap;
        gap: 20px;
        align-items: center;
        justify-content: space-between;
    }

    td, th {
        text-align: left;
    }
}

/* Sortable table headers */
th.sortable {
    cursor: pointer;
    user-select: none;
}
th.sorted-asc::after,
th.sorted-desc::after {
    margin-left: 6px;
    font-size: 0.9em;
    color: #e58f5c;
}
th.sorted-asc::after { content: "▲"; }
th.sorted-desc::after { content: "▼"; }