﻿﻿.calendar-navigation {
    text-align: center;
    margin-top: 20px;
    width: 100%;

    button {
        width: 70px;
        height: 30px;
    }
}

#currentDatesTitle {
    display: inline-block;
    width: 300px;
    text-align: center;
    font-weight: 600;
}

.calendar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: calc(100% - 70px);

    #dpm {
        overflow: auto;
        height: unset !important;

        .month_default_cell_header {
            font-size: 14px;
            text-align: center;
            padding: 8px;
        }

        .month_default_dayheader {
            font-weight: 600;
            font-size: 14px;
            text-align: center;
            background-color: #f5f7f9;
            padding: 8px;
        }

        .month_default_header_inner {
            font-weight: bold;
        }
    }

    #dpc, #dpm {
        flex-grow: 1;
        margin-top: 20px;
    }

    #dpc > div:nth-child(2) {
        height: calc(100% - 30px) !important;
    }
}


.case-number-label {
    display: inline-flex;
    align-items: center;
    background-color: #f5f7f9;
    color: #666;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    border: 1px solid #e0e0e0;
    margin: 5px;
    margin-right: 10px
}

.status-I {
    background-color: #FDEBC8;
    color: #DAA03D;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}

.status-N {
    background-color: #FAD3D3;
    color: #D94444;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}

.status-A {
    background-color: #E4F3E1;
    color: #6AA84F;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}


.second-row-case {
    border-top: dashed;
}

.form-group-custom-margin {
    margin-top: 20px;
}

.main-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
}

.header-day {
    font-weight: bold;
    margin: 10px;
    padding: 6px;
    text-align: center;
}

.header-divider {
    width: 100%;
    background-color: grey;
    height: 1px;
}

.header-items {
    font-weight: 500;
    margin: 1px;
    padding: 4px;
    flex-direction: column;
    position: relative;
    height: 100%
}

.header-item {
    margin: 4px;
    padding: 4px;
    border-radius: 2px;
    color: #D97706;
    user-select: none;
    font-weight: 400;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    background-color: #FEF3C7;
}

.show-more-arrow {
    font-size: 12px;
    margin-top: auto;
    cursor: pointer;
    padding: 5px;
    width: 10px;
    margin-inline: auto;
}

.month_default_event_inner {
    border: none !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    font-weight: 460;
}

.month_default_event {
    border: none !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.calendar_default_event {
    border: none !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.calendar_default_event_inner {
    font-weight: 460;
    border: none !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.performed-tasks-list {
    overflow-y: auto;
    max-height: 400px;
}


.calendar-list-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    height: calc(100vh - 150px);
    overflow-y: auto;
    min-height: 200px;
    border: 1px solid rgb(192, 192, 192);

    .table {
        width: 100%;
        margin-bottom: 0;
        background: white;
        border-collapse: separate;
        border-spacing: 0;

        thead {
            position: sticky;
            top: 0;
            z-index: 10;
            background: white;

            th {
                background-color: rgb(243, 243, 243);
                color: rgb(51, 51, 51);
                font-weight: 600;
                padding: 12px;
                position: sticky;
                top: 0;
                z-index: 2;
                border: 1px solid rgb(192, 192, 192);
                border-left: none;
                white-space: nowrap;

                &:first-child {
                    border-left: 1px solid rgb(192, 192, 192);
                }

                &.sortable {
                    cursor: pointer;

                    i {
                        margin-left: 5px;
                    }
                }
            }
        }

        tbody {
            tr {
                &:hover {
                    background-color: #f5f5f5;
                }

                td {
                    padding: 12px;
                    vertical-align: middle;
                    border: 1px solid #e7eaec;
                    border-top: none;
                    border-left: none;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    max-width: 200px;

                    &:first-child {
                        border-left: 1px solid #e7eaec;
                    }
                }
            }
        }
    }

    .event-color {
        width: 20px;
        height: 20px;
        border-radius: 4px;
        display: inline-block;
    }
}

#dpList {
    display: none;
    width: 100%;
    height: calc(100vh - 300px);

    &.show {
        display: flex;
        flex-direction: column;
    }

    .calendar-list-container {
        height: 100%;
        position: relative;

        .fixed-header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: white;
        }

        .scrollable-body {
            height: calc(100% - 50px);
            overflow-y: auto;

            .table {
                margin: 0;
            }
        }

        .table {
            margin-bottom: 0;
        }
    }
}
