/* Adjusts the height of some floating form fields (ie: private speed dial). */
.form-floating-custom-height>.form-control,
.form-floating-custom-height>.form-control-plaintext {
    padding: 0rem 0.75rem;
}

.form-floating-custom-height>.form-control,
.form-floating-custom-height>.form-control-plaintext,
.form-floating-custom-height>.form-select {
    height: calc(2.5rem + 2px);
    line-height: 1;
}

.form-floating-custom-height>label {
    padding: 0.5rem 0.75rem;
}

.form-floating-custom-height>button {
    padding: 0.5rem 0.75rem;
}

.tooltip-inner {
    max-width: 300px !important;
    font-size: 0.85em;
}

.table-overflow-ellipses {
    text-overflow: ellipsis;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
}

/* .even rows override background settings, making danger and warning take priority over that */
.even .bg-warning-soft {
    --bs-table-accent-bg: #fdedc0 !important;
}

.even .bg-danger {
    --bs-table-accent-bg: rgba(var(--bs-danger-rgb), var(--bs-bg-opacity)) !important;
}

.modal-body {
    background: #f5f5f5;
}

.modal-footer {
    background: #f5f5f5;
}

.switch-icon {
    background-color: lightgrey;
}

/* Checks aren't centering in tables properly because of their default css, removing those settings */
.form-check {
    margin-bottom: 0rem;
    min-height: 0rem;
}

/* Custom datatables formatting */
.dataTables_length {
    margin-top: 0.15rem !important;
}

.table-datatable {
    width: 100% !important;
}

/* Custom calendar formatting */
.fc-day-grid-container,
.fc-listWeek-view .fc-scroller {
    height: auto !important;
    overflow: hidden !important;
}

.fc-past {
    color: #494f54 !important;
    background-color: #f5f5f5 !important;
    border-color: #d9e2ef !important;
}

.fc-today {
    background-color: #cee3ff !important;
    border-color: #d9e2ef !important;
}

.fc-row {
    border-color: #d9e2ef !important;
}

.fc-event-container {
    width: 100% !important;
}

.fc-center {
    max-height: 41px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-center,
.fc-left,
.fc-right {
    max-height: 41px !important;
}

@media (max-width: 576px) {
    .fc-toolbar {
        display: block !important;
        text-align: center;
    }

    .fc-center,
    .fc-left,
    .fc-right {
        display: block;
        position: relative;
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (min-width:577px) and (max-width:1402px) {
    .fc-toolbar h2 {
        font-size: 1em !important;
    }

    .fc-toolbar button {
        font-size: 0.9em !important;
    }
}

.bg-danger .fc-event-dot {
    background-color: rgb(250, 151, 161) !important;
}

.bg-success .fc-event-dot {
    background-color: rgb(149, 214, 97) !important;
}

/* Searchable Dropdowns */
.form-floating .dropdown-menu {
    min-width: 500px !important;
}

/* -xl */
@media (min-width: 1200px) {
    .mcq-button {
        /* Left blank for posterity */
    }
}

/* -lg */
@media only screen and (min-width: 991px) and (max-width: 1199px) {
    .mcq-button {
        font-size: 0.66rem !important;
    }
}

/* -md */
@media only screen and (min-width: 768px) and (max-width: 990px) {
    .mcq-button {
        font-size: 0.75rem !important;
    }
}

/* -sm */
@media only screen and (min-width: 576px) and (max-width: 767px) {
    .mcq-button {
        font-size: 0.66rem !important;
    }
}

.table-datatable tr:not(.align-middle) span:not(.list-span) {
    font-family: var(--bs-font-monospace) !important;
}

.w-15 {
    width: 15% !important; 
}

.w-20 {
    width: 20% !important; 
}

.bg-mid-grey {
    background-color: #f5f5f5 !important;
}

.inner-aside {
    display: none !important;
}

@media (min-width: 992px) {
    .inner-aside {
        left: 265px !important; 
        top: 80px !important;
        bottom: 56px !important;
        display: flex !important;
    }
}

.doc-anchor {
    top: -120px;
    visibility: hidden;
    position: relative;
}

.doc-sidebar {
    max-width: 300px;
}

.z-1 {
    z-index: 1 !important;
}

.sidebarFullscreen {
    margin-top: -50px;
    margin-left: -250px;
    position: fixed;
}
