/*the main container*/
.dateselector {
    background: #ffffff;
    border: solid 1px #EEB556;
    border-radius: 4px;
    color: #EEB556;
    font-size: 13px;
    position: absolute;
    width: 360px;
    padding: 10px;
    box-shadow: #222222 8px 8px 15px -6px;
}

/*the top navigation container*/
.dateselector>.title-nav {
    align-items: center;
    background: #222;
    border: solid 1px #979797;
    border-radius: 3px;
    display: flex;
    flex-direction: row;
    font-weight: bold;
    justify-content: space-between;
    margin: 2px;
    width: auto;
}

.dateselector>.title-nav>.month-navigate,
.dateselector>.title-nav>.year-navigate {
    align-items: center;
    border: solid 1px #222;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    flex: 0 15px;
    font-weight: bold;
    height: 15px;
    justify-content: center;
    margin: 1px;
    padding: 2px;
    text-align: center;
}

.dateselector>.title-nav>.month-navigate:first-child,
.dateselector>.title-nav>.year-navigate:first-child {
    align-self: flex-start;
}

.dateselector>.title-nav>.month-navigate:hover,
.dateselector>.title-nav>.year-navigate:hover {
    border: solid 1px #979797;
}

/*the controlls - left container*/
.dateselector>.selector-controls-container {
    width: 130px;
    display: inline-grid;
    padding: 10px 10px 10px 10px;
}

.dateselector>.selector-controls-container>.year-selector-controller {
    border-radius: 0;
    border: #EEB556 1px solid;
    background-color: #ffffff;
    margin-top: 0;
}

.dateselector>.selector-controls-container>.month-selector-controller {
    margin-top: 15px;
}




/* the month table - right container */
.dateselector>.month-table-container {
    width: 200px;
    display: inline-grid;
}

.dateselector>.month-table-container>.week-header {
    font-weight: bold;
}

.dateselector>.month-table-container>.week-header,
.dateselector>.month-table-container>.week {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.dateselector>.month-table-container>.week-header>div {
    align-items: flex-start;
    display: flex;
    flex: 1;
    justify-content: center;
}

.dateselector>.month-table-container>.week>div {
    align-items: flex-end;
    border: solid 1px #ccc;
    cursor: pointer;
    display: flex;
    flex: 1;
    justify-content: flex-end;
    margin: 1px;
    padding: 2px;
    text-align: center;
}

.dateselector>.month-table-container>.week>div.no-select {
    cursor: auto;
    background: #979797;
    color: #555;
}

.dateselector>.month-table-container>.week>div.selected {
    background-color: #EEB556;
    font-weight: bold;
    color: #fff;
    border: 1px solid #EEB556;
}

.dateselector>.month-table-container>.week>div:not(.no-select):hover {
    background: #FFF9EC;
}