﻿.custom-datepicker {
    position: relative;
    display: inline-block;
    max-width: 300px; /* rajoittaa leveyden */
    width: 100%; /* skaalautuu vanhemman mukaan */
}

.datepicker-wrapper {
    position: relative;
    width: 100%;
}

    .datepicker-wrapper input[type="text"] {
        width: 100%;
        padding-right: 30px;
        box-sizing: border-box;
    }

.calendar-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #555;
}

.calendar-popup {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    padding: 8px;
    z-index: 10;
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.calendar-table {
    border-collapse: collapse;
    width: 100%;
    text-align: center;
    table-layout: fixed;
}

.calendar-table th, .calendar-table td {
    border: 1px solid #ccc;
    padding: 6px;
    width: 13.14%; /* (100% - 8%) / 7 */
}

.day-button {
    font-family: 'Klavika', sans-serif;
    font-size: 1em;
    width: 100%;
    height: 100%;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-button.selected {
    background-color: #0078d4;
    color: white;
    font-weight: bold;
}

.week-number {
    font-weight: bold;
    background-color: #f0f0f0;
    text-align: center;
    /*width: 40px;*/
    width: 8%;

}

