html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn-link:hover {
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 2px !important;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

section {
    margin: 2rem 0;
}

main section:first-of-type {
    margin-top: 0rem;
}


main a {
    color: inherit;
    text-decoration: none !important
}

.page-head {
    margin-bottom: 2rem
}

    .page-head .actions {
        margin-top: 2rem;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

        .page-head .actions > * {
            white-space: nowrap
        }

.no-border {
    border: none !important;
    box-shadow: none;
    padding: 0;
}

.page-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 1rem 0;
    gap: 1rem;
}

.page-title, .page-header {
    margin-top: 1rem;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
}

#project-header {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: space-between
}

    #project-header .actions {
        display: flex;
        gap: .75em;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    #project-header p {
        margin: 0;
    }

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem
}

    .stats-container.col {
        grid-template-columns: 1fr;
        justify-content: center;
        align-items: center;
        margin: 1.5rem 0;
        gap: 1rem
    }

.stats-card, section {
    padding: 1em 2em;
    border-radius: 0.25em;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.stats-container .stats-card {
    text-align: center;
    font-size: 1.1em;
}

.stats-card .stats_title {
    font-size: 1.2rem;
    margin-bottom: 0.5em;
    color: #6c757d
}

.stats-container .stats-card .stats_title {
    font-size: 1rem;
    margin-bottom: 0.5em;
    color: #6c757d
}

.stats-card .stats_value {
    font-weight: 700;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: .75em;
    justify-content: flex-end;
}

[disabled] {
    cursor: not-allowed
}


dialog {
    border: none;
    border-radius: 0.5em;
    padding: 2rem 2rem;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.text-right {
    text-align: right;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.ss-content.form-control {
    position: fixed !important;
}

dialog .close-modal {
    all: unset;
    font-size: 1.2em;
    position: absolute;
    right: 1em;
    top: 0.5em;
    cursor: pointer;
}

tr.selected {
    --bs-table-bg: rgba(var(--bs-success-rgb), .2);
}

.table td.fit,
.table th.fit {
    white-space: nowrap;
    width: 1%;
}

.table td, .table th {
    --padding-y: 1em;
    padding-left: var(--padding-y);
    padding-right: var(--padding-y);
}

.sidebar {
    padding-top: 5rem;
}

.hidden {
    display: none !important;
}

.filter-button {
    position: relative;
}

    .filter-button .reset {
        position: absolute;
    }

    .filter-button span,
    .filter-button .reset {
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        bottom: 70%;
        left: 70%;
        font-size: 0.7rem;
        font-weight: 600;
        width: 18px;
        height: 18px;
        background-color: red;
        border-radius: 50%;
    }

    .filter-button .reset {
        bottom: unset;
        top: 70%;
    }

.nav.nav-pills {
    margin-bottom: 1rem;
}

.popover {
    min-width: 250px;
}

.popover-date {
    font-size: 14px;
}

.popover-header {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    text-align: center;
    border-bottom: none;
}

/* TomSelect CSS surcharge */
.ts-wrapper,
.ts-control,
.ts-control .item,
.ts-dropdown,
.ts-dropdown .option,
.ts-dropdown .create,
.ts-dropdown .no-results,
.ts-wrapper .ts-control input {
    font-size: 1rem;
    color: #212529;
}

    .ts-dropdown .create {
        font-weight: 500;
        background-color: #f8f9fa;
        padding: 0.375rem 0.75rem;
        border-radius: 0.25rem;
    }

        .ts-dropdown .option.active,
        .ts-dropdown .create.active {
            background-color: var(--bs-primary);
            color: var(--bs-white) !important;
        }

        .ts-dropdown .option.active *,
        .ts-dropdown .create.active * {
            color: var(--bs-white) !important;
        }

    .ts-dropdown [data-selectable] .highlight {
        background: var(--bs-warning) !important;
        padding: 0 1px;
        font-weight: 600;
    }

    .ts-dropdown .option.active .highlight {
        background: none !important;
        font-weight: 400;
    }

    .ts-dropdown .option.active .application-icon {
        color: var(--bs-white) !important;
    }

:root {
    --user-image-width: 25px;
}

.user-image {
    display: block;
    width: var(--user-image-width);
    aspect-ratio: 1;
    object-fit: cover;
}

/*----- Remove arrow from input number -----*/
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.text-body-secondary {
    --bs-text-opacity: 1;
    color: var(--bs-secondary-color) !important;
}

    .text-body-secondary:hover {
        color: var(--bs-dark) !important;
    }

@media (width <= 768px) {
    .nav-item .dropdown-menu {
        border: none;
        font-size: 16px;
        padding: 0;
    }

        .nav-item .dropdown-menu a {
            padding-left: 15px;
        }

    .navbar-collapse {
        font-weight: 300 !important;
    }
}

#trello-suggest .btn {
    box-shadow: none;
    text-decoration: none;
}

div.ProseMirror.toastui-editor-contents {
    z-index: auto;
}

.task-comment p {
    margin-bottom: 0;
}

.task-comment ul {
    list-style-type: disc;
}