
.content  h1 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

ul.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

.calendar > li {
    box-sizing: border-box;
    border: 1px solid #DEDEDE;
    background: white;
    display: flex;
    list-style: none;
    margin-left: 0;    
    flex-direction: column;
    padding: 5px;
    box-shadow: 1px 1px 4px 0 rgba(0,0,0,0.15);
    font-size: 0.9rem;

}

.calendar > li.header {
    background-color: #EDEDED;
    text-transform: uppercase;
    font-weight: 400;
    box-shadow: 1px 1px 4px 0 rgba(0,0,0,0.15);
}

.calendar > *.holiday, table.vacation td.holiday {
    background-color: rgba(255,0,0,0.20);
}

.calendar > *.holiday-half, table.vacation td.holiday-half {
    background: repeating-linear-gradient(
        45deg,
        rgba(255,0,0,0.20),
        white 15px
        );
}



table.vacation td.weekend {
    background-color: rgba(0,0,0,0.20);

}

table.vacation td[data-vacation-status='requested'], .vacation-requested {
    background-color: rgba(255,255,0,0.66);

}

table.vacation td[data-vacation-status='approved'], .vacation-approved {
    background: rgba(0,128,0,0.66);

}

table.vacation td[data-vacation-status='requested'][data-vacation-partial-day='1'], .vacation-requested.vacation-partial {
    background: linear-gradient(to bottom right, rgba(255,255,0,0.66) 0%, rgba(255,255,255,1) 80%, rgba(255,255,255,1) 100%);
}

table.vacation td[data-vacation-status='approved'][data-vacation-partial-day='1'], .vacation-approved.vacation-partial {
    background: linear-gradient(to bottom right, rgba(0,128,0,0.66) 0%, rgba(255,255,255,1) 80%, rgba(255,255,255,1) 100%);
}

table.vacation td[data-vacation-status='requested'][data-vacation-unpaid='1'], .vacation-requested.vacation-unpaid {
    background: radial-gradient(circle, rgba(255,255,0.66) 0%, rgba(255,255,255,1) 80%);
}

table.vacation td[data-vacation-status='approved'][data-vacation-unpaid='1'], .vacation-approved.vacation-unpaid {
    background: radial-gradient(circle, rgba(0,128,0.66) 0%, rgba(255,255,255,1) 80%);
}

.vacation-legend {
    display: flex; 
    flex-direction: row; 
    justify-content: center; 
    margin-top: 20px; 
    list-style: none; 
    gap: 10px; 
    font-weight: 500;
    font-size: 13px;
}

.vacation-legend > * {
    display: flex;
    justify-content: baseline;
}

.vacation-approved, .vacation-requested {
    width: 20px; height: 20px;
    border: 1px solid #666666;
    display: inline-block;
    margin-right: 10px;
}

table.vacation {
    font-size: 11px; 
    border-collapse: collapse;
    border-style: hidden;
}

table.vacation thead th {
    text-align: center;
    position: -webkit-sticky;
    position: sticky;
    top: 30px;
    z-index: 2;
    background-color: white;
}


table.vacation thead tr:first-child th {
    text-align: left;
    border-bottom: 1px solid black;
    top: 0;
}

table.vacation thead tr:first-child th:first-child {
    border-bottom: none;
    background-color: white;
}

table.vacation tbody td {
    font-size: 11px; 
    min-width: 34px !important; 
    padding: 3px 4px; 
    text-align: center;
    border: 1px solid #DEDEDE;
    z-index: 1;
    min-width: unset; 
}



table.vacation tbody td.first-of-month, table.vacation thead th.first-of-month{
    border-left: 2px solid #333333;
}

table.vacation tbody td:first-child {
    text-align: left;
    font-size: 16px; 
}

table.vacation tbody td:first-child, table.vacation thead th:first-child {
    left: 0px;
    position: -webkit-sticky;
    position: sticky;
    z-index: 10;    
    background-color: white;
}

table.vacation tbody td:last-child, table.vacation thead th:last-child, table.vacation thead tr:first-child th:last-child {
    right: 0px;
    position: -webkit-sticky;
    position: sticky;
    z-index: 10;    
    background-color: white;
    border: none;
    padding: 3px 8px;
}

table.vacation tbody td[data-vacation-last-selected] {
    border: 2px dotted rgba(0,0,0,0.4);
}

table.tabular td, table.tabular th {
    border: 1px solid #DEDEDE;
    padding: 5px 10px;
    text-align: center;
}

table.tabular th:first-child, table.tabular td:first-child {
    text-align: left;
}


.calendar .day {
    margin-bottom: 10px;
}


.calendar .day, .calendar .record {
    display: flex;
    border-radius: 5px;
    padding: 2px 5px;
    align-items: baseline;
}

.calendar .day > *:first-child {
    box-sizing: border-box;
    color: #999999;
    font-size: 1.1rem;
    flex: 1;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    margin-right: 10px;
}

.calendar li > a {
    text-decoration: none;
    color: #444444;
}

.calendar .day a {
    text-decoration: none;
    color: #999999;
}


.calendar .day.active > *:first-child > * {
    background-color: blue;    
    color: white;
    padding: 3px;
    border-radius: 16px;
}



.calendar .record.vacation {
    background-color: greenyellow;
}

.calendar .record {
    border-radius: 5px;
    background-color: lightgreen;
    padding: 2px 5px;
    margin-bottom: 2px;
}

.calendar .record > *:first-child {
    flex: 1;
}

.calendar > span.hours {
    font-size: 1.5rem;
    font-weight: 400;
    align-self: center;
}

.calendar > .month {
    grid-column-start: 1; 
    grid-column-end: 8;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.25rem;
    background-color: #EEEEEE;
    margin-top: 15px;
}

.calendar .record .edit {
    display: none;
}


.calendar .record:hover .edit {
    display: inline-block;
    margin-left: 5px;
}