:root {
    --bs-primary: #4C516D;
    --bs-primary-rgb: 76, 81, 109;
    --bs-heading-color: #4C516D;
    --bs-secondary: #D9C7A1;
    --bs-secondary-rgb: 217, 199, 161;
    --bs-link-color: #4C516D;
    --bs-link-color-rgb: 76, 81, 109;
    --bs-tertiary-bg: #F4F4F4;
    --bs-tertiary-bg-rgb: 244, 244, 244;
    --app-color: #4C516D;
    --bs-btn-hover-bg: #4C516D;
    --bs-btn-hover-color: #FFFFFF;
    --muted-color: #6c757d;
    --fc-event-bg-color: #4C516D;
    --fc-event-border-color: #4C516D;
    --fc-button-bg-color: #4C516D;
    --fc-button-border-color: #4C516D;
    --fc-button-hover-bg-color: #D9C7A1;
    --fc-button-hover-border-color: #D9C7A1;
    --fc-button-active-bg-color: #D9C7A1;
    --fc-button-active-border-color: #D9C7A1;
}

.btn-custom {
    background-color: var(--bs-primary);
    color: #fff;
    border: 1px solid var(--bs-primary);
}

    .btn-custom:hover {
        background-color: var(--bs-secondary);
        color: #fff;
        border-color: var(--bs-secondary);
    }

    .btn-custom:active, btn-custom:focus-visible {
        background-color: var(--bs-primary);
        border-color: var(--bs-primary);
    }

.bg-app-color {
    background: var(--app-color) !important;
}

.border-app-color {
    border-color: var(--app-color) !important;
}

.text-app-color {
    color: var(--app-color) !important;
}

.app-sidebar {
    overflow-y: auto;
}

.custom-sidebar-brand {
    flex-direction: column;
    height: auto;
}

.sidebar-menu .nav-link p.custom-sidebar-nav-pl {
    padding-left: 3px;
}

.custom-dropdown-menu {
    width: auto !important;
}

.active > .page-link, .page-link.active {
    background-color: var(--app-color);
    border-color: var(--app-color);
}

    .active > .page-link:hover {
        background-color: var(--bs-secondary);
        border-color: var(--bs-secondary);
    }

.btn-app-custom {
    background: var(--app-color);
    color: var(--bs-white);
    height: 35px;
    width: 50px;
}

    .btn-app-custom:hover {
        background: var(--bs-secondary);
        color: var(--bs-white);
        border-color: var(--bs-white);
    }

.cursor-pointer {
    cursor: pointer;
}

.access-denied-font-size {
    font-size: 8rem;
    font-weight: bolder;
}

.table-custom tr th {
    vertical-align: middle;
}

.custom-tooltip {
    opacity: 1;
}

    .custom-tooltip .tooltip-inner {
        max-width: 350px;
        background-color: var(--app-color);
    }

    .custom-tooltip .tooltip-arrow::before {
        border-top-color: var(--app-color);
    }

.tr-event-overdue td {
    background: var(--bs-secondary) !important;
}

.tr-event-finished td {
    opacity: 0.5;
}

.legend-square {
    display: inline-block;
    width: 50px;
    height: 15px;
    border: 1px solid var(--app-color);
}

.legend-bg-inprogress {
    background: var(--bs-white);
}

.legend-bg-overdue {
    background: var(--bs-secondary);
}

.legend-bg-finished {
    background: #E2E2E2;
}

.input-validation-error {
    border: 1px solid red;
}

    .input-validation-error + .ts-wrapper {
        border: 1px solid red;
    }

.label-table-cnt {
    font-size: 12px;
}

.case-list-ul {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
}

.case-list-link {
    text-decoration: none;
}

td:has(> .case-archived:disabled) {
    cursor: not-allowed;
}

#loading-indicator img {
    width: 400px;
    position: absolute;
    left: calc(50% - 200px);
    top: calc(50% - 200px);
}

#loading-indicator {
    display: none;
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    -moz-opacity: 0.8;
    opacity: .80;
    filter: alpha(opacity=80);
}

.fc-wrapper {
    max-width: 200px;
    width: 100%;
}

.fc-event-time-custom {
    font-size: 16px;
    font-weight: bold;
    width: auto;
    margin-right: 5px;
}

    .fc-event-time-custom i {
        font-weight: bold;
    }

.fc-event-title-custom {
    width: 100%;
    font-size: 16px;
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.multiline-ellipsis {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    max-height: 6em;
    line-height: 1.5em;
    border-left: 6px solid var(--bs-secondary);
    padding-left: 3px;
}

    .multiline-ellipsis:hover {
        color: var(--app-color);
    }

.fc-custom-day-class {
    font-size: 18px;
}

.ts-dropdown .option.selected {
    font-weight: bold;
}

.table-child-row {
    min-width: 50%;
    width: auto;
}

table.dataTable td.dt-control-custom {
    text-align: center;
    cursor: pointer;
}

table.dataTable tr.dt-hasChild td.dt-control-custom.hasChild:before {
    border-top: 10px solid rgba(0, 0, 0, 0.5);
    border-left: 5px solid transparent;
    border-bottom: 0px solid transparent;
    border-right: 5px solid transparent;
}

table.dataTable td.dt-control-custom:before {
    display: inline-block;
    box-sizing: border-box;
    content: "";
    border-top: 5px solid transparent;
    border-left: 10px solid rgba(0, 0, 0, 0.5);
    border-bottom: 5px solid transparent;
    border-right: 0px solid transparent;
}

.td_date_time_holder {
    min-width: 175px;
}