﻿#calendarwrapper {
    display: grid;
    grid-template-columns: 160px 160px 160px 160px 160px 160px 160px;
    grid-gap: 0px;
    background-color: #fff;
    color: #444;
}

#calendarwrappertablet {
    display: grid;
    grid-template-columns: 110px 110px 110px 110px 110px 110px 110px;
    grid-gap: 0px;
    background-color: #fff;
    color: #444;
}

#calendartitle {
    border: 1px solid black;
    border-width: thin;
    border-color: darkgray;
    position: relative;
    margin-top: -1px;
    margin-left: -1px;
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
    border-color: lightslategrey;
    border-radius: 5px 5px 0 0;
    height: 50px;
    width: 1121px;
}

#calendartitletablet {
    border: 1px solid black;
    border-width: thin;
    border-color: darkgray;
    position: relative;
    margin-top: -1px;
    margin-left: -1px;
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
    border-color: lightslategrey;
    border-radius: 5px 5px 0 0;
    height: 50px;
    width: 771px;
}

#calendartitlebuttons {
    position: absolute;
    top: 11px;
    left: 10px;
    width: 200px;
    z-index: 1;
    height: 38px;
    padding-left: 0px;
    padding-right: 0px;
    background-color: transparent;
    border: 0px solid black;
    color: darkgrey;
    font-size: 120%;
    font-weight: 500;
}

#calendartitlebuttonsright {
    position: absolute;
    top: 11px;
    right: 10px;
    z-index: 1;
    height: 38px;
    padding-left: 0px;
    padding-right: 0px;
    background-color: transparent;
    border: 0px solid black;
    color: darkgrey;
    font-size: 120%;
    font-weight: 500;
}

#calendartitlelabel {
    position: absolute;
    top: 10px;
    width: 100%;
    height: 46px;
    padding-left: 0px;
    padding-right: 0px;
    background-color: transparent;
    border: 0px solid black;
    text-align: center;
    color: darkgrey;
    font-size: 120%;
    font-weight: 1000;
}

#calendarheader {
    border: 1px solid black;
    border-width: thin;
    border-color: darkgray;
    position: relative;
    margin-top: -1px;
    margin-left: -1px;
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
    border-color: lightslategrey;
    border-radius: 0px;
    height: 25px;
}

#calendarheaderbar {
    position: absolute;
    top: -1px;
    width: 100%;
    height: 24px;
    padding-left: 0px;
    padding-right: 0px;
    background-color: lightgrey;
    border-top: thin solid black;
    border-bottom: thin solid black;
}

#calendarheaderbarweekend {
    position: absolute;
    top: -1px;
    width: 100%;
    height: 24px;
    padding-left: 0px;
    padding-right: 0px;
    background-color: lightblue;
    border-top: thin solid black;
    border-bottom: thin solid black;
}

#calendarheaderlabel {
    position: absolute;
    top: 2px;
    width: 100%;
    height: 20px;
    padding-left: 0px;
    padding-right: 0px;
    background-color: transparent;
    border: 0px solid black;
    text-align: center;
    color: darkgrey;
    font-size: 80%;
    font-weight: 500;
}

#calendararea {
    border: 1px solid black;
    border-width: thin;
    border-color: darkgray;
    position: relative;
    margin-top: -1px;
    margin-left: -1px;
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
    border-color: lightslategrey;
    border-radius: 0px;
    min-height: 120px;
}

#calendarlabel {
    position: absolute;
    top: 2px;
    left: 0px;
    height: 20px;
    width: 24px;
    align-content: center;
    padding-left: 0px;
    padding-right: 0px;
    background-color: grey;
    text-decoration-color: black;
    border: 0px solid black;
    text-align: center;
    color: aliceblue;
    font-size: 80%;
    font-weight: 500;
}

#calendarlabelalt {
    position: absolute;
    top: 1px;
    left: 0px;
    height: 20px;
    width: 24px;
    align-content: center;
    text-shadow: 0px 0px 1.4em var(--highlightcolor), 0px 0px 0.2px var(--highlightcolor),0px 0px 5px var(--highlightcolor);
    padding-left: 0px;
    padding-right: 0px;
    background-color: transparent;
    border: 0px solid black;
    text-align: center;
    color: darkblue;
    font-size: 80%;
    font-weight: 500;
}

#calendarmonth {
    position: absolute;
    top: 1px;
    left: 0px;
    height: 20px;
    width: 100%;
    align-content: center;
    padding-left: 0px;
    padding-right: 0px;
    background-color: transparent;
    text-decoration-color: black;
    border: 0px solid black;
    text-align: center;
    color: saddlebrown;
    font-size: 70%;
    font-weight: 500;
}

#calendaricon {
    position: absolute;
    top: 0px;
    right: 0px;
    height: 20px;
    width: 20px;
    padding-left: 0px;
    padding-right: 0px;
    background-color: transparent;
    border: 0px solid black;
    text-align: center;
    color: darkblue;
    font-size: 90%;
    font-weight: 500;
}

/*#calendaritem {
    border-bottom: thin solid grey;
    border-bottom-color: lightgrey;
    position: relative;
    margin-top: 0px;
    margin-left: 1px;
    margin-right: 1px;
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
    border-radius: 0px;
    min-height: 21px;
}

    #calendaritem:hover {
        background-color: lightgoldenrodyellow;
    }

#calendaritemlabel {
    position: absolute;
    top: 2px;
    left: 3px;
    height: 20px;
    width: 70%;
    align-content: start;
    padding-left: 0px;
    padding-right: 0px;
    background-color: transparent;
    border: 0px solid black;
    text-align: start;
    color: black;
    font-size: 80%;
    font-weight: 500;
    cursor: pointer;
}

#calendaritemlabeltime {
    position: absolute;
    top: 2px;
    right: 4px;
    height: 20px;
    white-space: nowrap;*/ /* Prevent text from wrapping */
    /*text-align: end;*/ /* Align text to the right */
    /*overflow: hidden;*/ /* Prevent content from overflowing */
    /*align-content: end;*/ /* Align content to the end */
    /*padding-left: 0px;
    padding-right: 0px;
    background-color: transparent;
    border: 0px solid black;
    color: black;
    font-size: 80%;
    font-weight: 500;
    cursor: pointer;
}*/

#calendaritem {
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Space between the label and time */
    align-items: center; /* Vertically align items */
    border-bottom: thin solid grey;
    border-bottom-color: lightgrey;
    position: relative;
    margin-top: 0px;
    margin-left: 1px;
    margin-right: 1px;
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
    border-radius: 0px;
    min-height: 21px;
}

    #calendaritem:hover {
        background-color: lightgoldenrodyellow;
    }

#calendaritemlabel {
    flex: 1; /* Allow the label to take up available space */
    height: auto; /* Adjust height automatically */
    padding-left: 3px;
    background-color: transparent;
    text-align: start;
    color: black;
    font-size: 80%;
    font-weight: 500;
    cursor: pointer;
}

#calendaritemlabeltime {
    white-space: nowrap; /* Prevent text from wrapping */
    text-align: end; /* Align text to the right */
    overflow: hidden; /* Prevent content from overflowing */
    color: black;
    font-size: 80%;
    font-weight: 500;
    cursor: pointer;
    margin-right: 3px; /* Add 3px space on the right */
    line-height: 21px; /* Match the height of the parent container */
}

@supports (-webkit-touch-callout: none) {
    #calendaritemlabeltime {
        margin-top: 2px; /* Adjust specifically for Safari */
    }
}

#calendaritemlabelamount {
    position: absolute;
    top: 2px;
    right: 2px;
    height: 20px;
    align-content: end;
    padding-left: 0px;
    padding-right: 0px;
    background-color: transparent;
    border: 0px solid black;
    text-align: start;
    color: black;
    font-size: 70%;
    font-weight: 500;
    cursor: pointer;
}
