.mb-10 {
    margin-bottom: 10px !important;
}
.mb-12 {
    margin-bottom: 12px !important;
}
.mb-20 {
    margin-bottom: 20px !important;
}
.mt-20 {
    margin-top: 20px !important;
}
.container-fluid {
    max-width: 1320px;
}

/* Login page */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    /*padding: 132px 0 140px 0 !important;*/
}
.login-page > .row {
    align-items: center;
}
.login-page > .row > .col-6:nth-child(1) {
    display: flex;
    align-items: center;
}
.login-page > .row > .col-6:nth-child(2) {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}
.login-page form, .login-page .col-6:nth-child(1) {
    gap: 24px;
    display: flex;
    flex-direction: column;
}
.login-page input[type=text], .login-page input[type=password] {
    width: 370px;
}
.login-page label.form-label {
    margin-bottom: 10px;
}

/* Sign up page */
.sign-up-page {
    height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 860px;
}
.sign-up-page .card {
    padding: 24px 30px 30px 30px;
}
.sign-up-page label.form-label {
    margin-bottom: 10px;
}
.sign-up-page .form-group, .sign-up-page h1 {
    margin-bottom: 24px;
}


/* Commons */
.search-group {
    width: 320px;
}
.search-input {
    background-image: url("../img/icon/search-icon-gray.svg");
    background-repeat: no-repeat;
    background-position: right 6px center;
    width: 250px;
    padding: 0 36px 0 12px;
}
.filter-row {
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.buttons-cell {
    width: 160px;
}
.buttons-cell button {
    margin-left: 18px;
}
.buttons-cell button:first-child {
    margin-left: 0;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
}
.form-check input {
    margin: 4px 0;
}
.form-check p {
    margin: 0;
    padding-top: 3px;
}

.content-start-padding {
    /*padding: 100px 0 100px 0;*/
    padding-top: 100px;
    padding-bottom: 100px;
}

.list-page h1 {
    margin-bottom: 20px;
}

/* Tasks page */
.tasks-page table tbody td:nth-child(1) {
    width: 140px;
    max-width: 140px;
    min-width: 140px;
}
.tasks-page table tbody td:nth-child(2) {
    max-width: 720px;
    min-width: 256px;
}
.tasks-page table tbody td:nth-child(4), .tasks-page table th:nth-child(4), .tasks-page table th:nth-child(5), .tasks-page table tbody td:nth-child(6) {
    text-wrap: nowrap;
}

/* Task page */
#infoPanel, #taskData {
    background-color: #F2F2F2;
    border-radius: 10px;
    padding: 16px;
}
#infoPanel p, #taskData p {
    margin-bottom: 12px;
}

#taskDescription, #taskName {
    max-width: 800px;
    overflow-wrap: anywhere;
}
#taskDescription {
    white-space: pre-wrap;
}
#taskPage, .project-page {
    padding-top: 115px;
}
.custom-track-size {
    width: calc(100% - 80px);
    align-items: flex-start;
}
.custom-track-size p {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.track-item-divider {
    display: inline-block;
    width: 1px;
    height: 22px;
    min-width: 1px;
    min-height: 22px;
    background-color: #D9D9D9;
    top: 5px;
    left: 0;
    margin: 0 10px;
}

/* Team page */
.team-page table tbody td:nth-child(2) {
    width: 720px;
    max-width: 720px;
    min-width: 256px;
}
.team-page table tr td:first-child, .team-page table tr td:nth-child(3) {
    min-width: 256px;
    max-width: 256px;
}
.team-page table th {
    text-wrap: nowrap;
}

.team-page table tbody td:not(:last-child), .boards-page table tbody td:not(:last-child),
.projects-page table tbody td:not(:last-child), .tasks-page table tbody td:not(:last-child),
#heapModal table tbody td:not(:last-child), .time-report-page table tbody td:not(:last-child) {
    padding: 15px 8px;
}

/* Row limit */
.projects-page table tbody td:nth-child(2), .projects-page table tbody td:nth-child(4),
.boards-page table tbody td:nth-child(2),
.tasks-page table tbody td:nth-child(2),
.time-report-page table tbody td:nth-child(2), .time-report-page table tbody td:nth-child(5) {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    border-width: 15px 8px;
    border-color: white;
    padding: 0;
}


/* Projects page */
.projects-page table tbody td:nth-child(1) {
    width: 24px;
    max-width: 24px;
    min-width: 24px;
}
.projects-page table tbody td:nth-child(4) {
    width: 720px;
    max-width: 720px;
    min-width: 256px;
}
.projects-page table tr td:nth-child(2), .projects-page table th:nth-child(2) {
    min-width: 256px;
}
.list-page .table-wrapper table thead {
    background-color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 10;
}
.projects-page table tr td:last-child, .projects-page table th:last-child {
    width: 60px !important;
}
@media (max-width: 1320px) {
    .list-page .table-wrapper {
        width: 100vw !important;
        transform: translateX(-12px);
    }
    .list-page .table-wrapper table tr td:first-child, .list-page .table-wrapper table th:first-child {
        padding-left: 16px !important;
    }
    .list-page .table-wrapper table tr td:last-child, .list-page .table-wrapper table th:last-child {
        padding-right: 16px !important;
    }
}
.list-page #collapse {
    transition: all 0s ease 0s !important;
    padding-bottom: 24px !important;
}
@media (min-width: 1200px) {
    #filterShowBtn {
        display: none;
    }
    .list-page .collapse {
        display: block !important;
    }
}

/* Project page */

.project-table table thead th, .project-table table tbody td:nth-child(5), #staticTeam h6 {
    text-wrap: nowrap;
}

/* User page */
.user-list table tbody td:nth-child(1) {
    white-space: nowrap;
}
.user-list table tbody td:nth-child(2), .user-list table tbody td:nth-child(3) {
    min-width: 256px;
}
.user-list table tbody td:nth-child(3) {
    min-width: 200px;
}
.user-list table tbody td:nth-child(4), .user-list table th:nth-child(4), .user-list table th:nth-child(5), .user-list table tbody td:nth-child(6) {
    text-wrap: nowrap;
}

/* Boards page */
.boards-page table tbody td:nth-child(1) {
    width: 140px;
    max-width: 140px;
    min-width: 140px;
}
.boards-page table tbody td:nth-child(2) {
    width: 640px;
    max-width: 640px;
    min-width: 256px;
}
.boards-page table tbody td:nth-child(5) {
    width: 140px;
    max-width: 140px;
    min-width: 140px;
}

.sprint-report-page #pills-diff th:nth-child(4),
.sprint-report-page #pills-diff th:nth-child(5) {
    text-wrap: nowrap;
}

.sprint-report-page #pills-workers th,
.sprint-report-page #pills-workers td:nth-child(2),
.sprint-report-page #pills-workers td:nth-child(3),
.sprint-report-page #pills-workers td:nth-child(4) {
    text-wrap: nowrap;
}

/* Board page */
.board-page  {
    padding: 100px 16px 0 16px;
}
.board-modal table th, .board-modal table td:nth-child(2) {
    text-wrap: nowrap;
}
#columnContainer {
    display: flex;
    width: calc(100% + 32px) !important;
    flex-direction: row;
    overflow: auto;
    transform: translateX(-16px);
    padding: 0 16px;
}
#boardHeader {
    display: flex;
    justify-content: space-between;
}
@media (max-width: 576px) {
    .board-page .d-flex.flex-row.justify-content-between.align-items-lg-center.align-items-end.mb-3 {
        flex-wrap: wrap;
        gap: 12px;
    }
}
#columnContainer .state-column {
    display: flex;
    flex-direction: column;
    padding: 8px;
    min-width: 234px;
}
#columnContainer .state-column:not(:last-child) {
    border-right: 1px solid #D1D1D1;
}
.card-container {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
}
.card-container > * {
    width: 100%;
    padding: 12px;
    border: 1px solid #D1D1D1;
    border-radius: 10px;
}
.card-container label {
    color: #707070;
}
.card-container > * > button {
    opacity: 0;
    transition: opacity 150ms;
}
.card-container > *:hover > button {
    opacity: 1;
}
#columnContainer .card-container .dropdown .dropdown-divider {
    margin: 0;
}
#columnContainer .card-container .dropdown .dropdown-toggle::after {
    display: none;
}
#columnContainer .card-container .dropdown:hover img {
    transform: none;
}
#columnContainer .card-container .dropdown {
    display: none;
}
@media (max-width: 1000px) {
    #columnContainer .card-container .dropdown {
        display: block;
    }
    #columnContainer .card-container #detachBtn {
        display: none;
    }
}

#heapModal td:first-child, #heapModal th:first-child {
    padding-left: 0 !important;
}
.table-wrapper {
    overflow: auto;
}
#heapModal .modal-body {
    padding-right: 24px;
}

/* Table column width */
.date-column-width {
    min-width: 112px;
}
.time-column-width {
    min-width: 106px;
}

/* Debt report page */
.debt-report-page #eventTableWrapper th {
    min-width: 90px;
}
.debt-report-page #eventTableWrapper th:first-child {
    min-width: 120px;
}