﻿:root {
    --dnet-datepickerweek-raw-input-container-border: 1px solid #eee;
    --dnet-datepickerweek-raw-input-height: 28px;
    --dnet-datepickerweekca-raw-day-height: 30px;
    --dnet-datepickerweekca-raw-day-disabled-color: rgba(0,0,0,.38);
    --dnet-datepickerweekca-raw-selected-bg-color: #42b0d5;
    --dnet-datepickerweekca-raw-today-bg-color: rgba(0,0,0,.1);
}

.dnet-datepickerweek-raw-content {
    box-shadow: none;
    background: #fff;
    color: rgba(0,0,0,.87);
}

.dnet-datepickerweekca-raw-header {
    padding: 0 8px 0 8px;
}

.dnet-datepickerweekca-raw-controls {
    display: flex;
    margin: 5% calc(33% / 7 - 16px);
}

.dnet-datepickerweekca-raw-period-button {
    min-width: 0;
    font-size: .875rem;
    font-weight: 500;

    &:focus {
        outline: none;
    }

    &:hover {
        background-color: rgba(0,0,0,.05);
    }
}

.dnet-datepickerweekca-raw-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    margin: 0 0 0 5px;
    vertical-align: middle;
    border-top-color: rgba(0,0,0,.54);
}

.dnet-datepickerweekca-raw-arrow-down {
    border-bottom-width: 5px;
    border-bottom-style: solid;
}

.dnet-datepickerweekca-raw-arrow-up {
    border-top-width: 5px;
    border-top-style: solid;
}

.dnet-datepickerweekca-raw-previous-button, .dnet-datepickerweekca-raw-next-button {
    position: relative;

    &:hover:not(button[disabled]) {
        padding: 0;
        min-width: 0;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        line-height: 40px;
        border-radius: 50%;
        background-color: rgba(0,0,0,.05);
    }
}

.dnet-datepickerweekca-raw-previous-button::after, .dnet-datepickerweekca-raw-next-button::after {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    content: "";
    margin: 15.5px;
    border: 0 solid currentColor;
    border-top-width: 2px;
    color: rgba(0,0,0,.54);
    outline: none;
}

button:disabled,
button[disabled] {
    &.dnet-datepickerweekca-raw-previous-button {
        &::after {
            color: rgba(16, 16, 16, 0.3);
        }
    }

    &.dnet-datepickerweekca-raw-next-button {
        &::after {
            color: rgba(16, 16, 16, 0.3);
        }
    }
}

.dnet-datepickerweekca-raw-previous-button::after {
    border-left-width: 2px;
    transform: translateX(2px) rotate(-45deg);
}

.dnet-datepickerweekca-raw-next-button::after {
    border-right-width: 2px;
    transform: translateX(-2px) rotate(45deg);
}


.dnet-datepickerweekca-raw-spacer {
    flex: 1 1 auto;
}

.dnet-datepickerweekca-raw-content {
    padding: 0 8px 4px 8px;
    outline: none;
}

.dnet-datepickerweekca-raw-body {
    min-width: 224px;
    font-size: 13px;
}

.dnet-datepickerweekca-raw-body-label, .dnet-datepickerweekca-raw-period-button {
    font-size: 14px;
    font-weight: 500;
}

.dnet-datepickerweekca-raw-content-header {
    display: flex;
    color: rgba(0,0,0,.38);
    padding: 0px 0px 0 0px;
}

.dnet-datepickerweekca-raw-content-header-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0px 0;
    font-size: 11px;
    font-weight: 400;
    color: rgba(0,0,0,.38);
    height: 21px;
    width: var(--dnet-datepickerweekca-raw-day-height);
}

.dnet-datepickerweekca-raw-content-body {
    display: grid;
    grid-template-columns: repeat(7, var(--dnet-datepickerweekca-raw-day-height));
    grid-template-rows: repeat(6, var(--dnet-datepickerweekca-raw-day-height));
    min-width: 224px;
    font-size: 13px;
}

.dnet-datepickerweekca-raw-day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 30px;
}

.dnet-datepickerweekca-raw-day-content {
    top: 5%;
    left: 5%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 90%;
    line-height: 1;
    border-width: 1px;
    border-style: solid;
    color: rgba(0,0,0,.87);
    border-color: transparent;
    cursor: pointer;

   /* &:hover:not(.dnet-datepickerweekca-raw-day-selected) {
        background-color: rgba(0,0,0,.04);
        cursor: pointer;

        &.disabled {
            background-color: #FFFFFF;
            cursor:default;
        }
    }*/

    &.disabled {
        color: var(--dnet-datepickerweekca-raw-day-disabled-color);
    }
}

.dnet-datepickerweekca-raw-day-content.hovered:not(.dnet-datepickerweekca-raw-day-selected) {
    background-color: rgba(0,0,0,.04);
}

.dnet-datepickerweekca-raw-day-selected {
    color: #FFFFFF;
    background-color: var(--dnet-datepickerweekca-raw-selected-bg-color);
}

.dnet-datepickerweekca-raw-day-today:not(.dnet-datepickerweekca-raw-day-selected) {
    box-shadow: inset 0 0 0 1px #fff;
    background-color: var(--dnet-datepickerweekca-raw-today-bg-color);
}

.dnet-datepickerweekca-raw-day-selected {
    &.dnet-datepickerweekca-raw-day-today {
        box-shadow: inset 0 0 0 1px #fff;
    }
}

.dnet-datepickerweekca-raw-content-body-year {
    display: grid;
    grid-template-columns: repeat(3, 70px);
    min-width: 224px;
    font-size: 13px;
}

.dnet-datepickerweekca-raw-year {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 70px;
}

.dnet-datepickerweekca-raw-year-content {
    top: 5%;
    left: 5%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 90%;
    height: 90%;
    line-height: 1;
    border-width: 1px;
    border-style: solid;
    border-radius: 999px;
    color: rgba(0,0,0,.87);
    border-color: transparent;
    cursor: pointer;

    &:hover:not(.dnet-datepickerweekca-raw-year-selected) {
        background-color: rgba(0,0,0,.04);
        cursor: pointer;

        &.disabled {
            background-color: #FFFFFF;
            cursor: default;
        }
    }

    &.disabled {
        color: var(--dnet-datepickerweekca-raw-day-disabled-color);
    }
}

.dnet-datepickerweekca-raw-year-selected {
    color: #FFFFFF;
    background-color: var(--dnet-datepickerweekca-raw-selected-bg-color);
}

.dnet-datepickerweekca-raw-year-today:not(.dnet-datepickerweekca-raw-year-selected) {
    box-shadow: inset 0 0 0 1px #fff;
    background-color: rgba(0,0,0,.1);
}

.dnet-datepickerweekca-raw-year-selected {
    &.dnet-datepickerweekca-raw-year-today {
        box-shadow: inset 0 0 0 1px #fff;
    }
}

.dnet-datepickerweekca-raw-content-body-month {
    display: grid;
    grid-template-columns: repeat(3, 70px);
    min-width: 224px;
    font-size: 13px;
}

.dnet-datepickerweekca-raw-month {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 70px;
}

.dnet-datepickerweekca-raw-month-content {
    top: 5%;
    left: 5%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 90%;
    height: 90%;
    line-height: 1;
    border-width: 1px;
    border-style: solid;
    border-radius: 999px;
    color: rgba(0,0,0,.87);
    border-color: transparent;

    &:hover {
        background-color: rgba(0,0,0,.04);
        cursor: pointer;

        &.disabled {
            background-color: #FFFFFF;
            cursor: default;
        }
    }

    &.disabled {
        color: var(--dnet-datepickerweekca-raw-day-disabled-color);
    }
}

.dnet-datepickerweekca-raw-month-selected {
    color: #FFFFFF;
    background-color: var(--dnet-datepickerweekca-raw-selected-bg-color);
}

.dnet-datepickerweekca-raw-month-today:not(.dnet-datepickerweekca-raw-month-selected) {
    box-shadow: inset 0 0 0 1px #fff;
    background-color: rgba(0,0,0,.1);
}

.dnet-datepickerweekca-raw-month-selected {
    &.dnet-datepickerweekca-raw-month-today {
        box-shadow: inset 0 0 0 1px #fff;
    }
}

.dnet-datepickerweekca-raw-header-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 16px 0 8px;
    height: 20px;
}
