@import "../../../assets/css/abstracts/custom-variables.scss";
@import "tasks.scss";

.project-header .avatar {
    margin-right: 5px;
    width: 30px;
    border-radius: 15px;
}
.menu-wrapper {
    float: right;
    margin-left: 5px;
    margin-top: 5px;
}
.project-header-options {
    float: right;
    margin-top: 8px;
}

.header-row {
    margin-bottom: 10px;
}

.projects.details .btn-rag {
    border: none;
    padding: 0;
    font-size: 15px;
    color: $gray-700;
    background: $gray-200;
    height: 30px;
    width: 30px;
    margin-left: 5px;
    border-radius: 10rem;
    font-weight: bold;
}

/* Changes text colour of active RAG item to #fff */
.projects.details .btn-rag.active{
    color: #fff;
}


.project-description img {
    max-width: 100%;
    height: auto !important;
}


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

.rag-status {
    display: inline-block;
}

.project-image {
    border-radius: var(--theme-rounded-corners);
    max-width: 185px;
}

@media only screen and (max-width:768px) {
    .sub-header {
        text-align: left;
    }

}

.project-more-info {
    margin-top: 10px;
}

.project-update-icon {
    box-shadow: 0 0 9px 5px rgba(0,0,0,.07);
    border-radius: 10rem;
    padding: .6rem;
    display: block;
}

.project-summary img {
    border-radius: 50%;
}

.project-summary small {
    display: block;
}

.tab-content .panel {
    margin-top: 10px;
}

.tab-content .panel h3 {
    margin: 5px 0;
}

.project-progress {
    background-color: $gray-200;
    padding: 15px 15px 0;
}

.project-list-details .project-progress {
    padding-bottom: 15px;
}

.progress {
    margin: 0;
    height: 6px;
    background-color: $gray-200;
    border-radius: 0;
    box-shadow: none;
}

.progress-bar {
    box-shadow: none;
}

.files-show-more {
    margin-top: 15px;
    padding: 5px 10px;
    display: block;
    border: 1px solid $gray-200;
    text-align: center;
    -webkit-border-radius: 	4px;
    -moz-border-radius: 	4px;
    border-radius: 			4px;
}

.files-show-more:hover {
    border-color: $gray-300;
    background-color: $gray-100;
    text-decoration: none;
}

/* sections */
.new-section {
    border-bottom: 1px solid $gray-300;
    background-color: $gray-100;
}

/* task list */
.task-list-section {
    margin-bottom: 0;
}


.task-list-section .panel-heading {
    position: relative;
    overflow: visible;
}

.task-list-section .kolorPicker,
.task-list-section .kolorPicker-wrapper{
    display: inline-block;
}

.task-list-items {
    min-height: 10px;   /* Used to keep a drag+drop placeholder visible when list is empty */
    margin-bottom: 0;
}

/* Allows board cards to be dragged between status columns when empty */
.board-status-column [as-sortable="ctrl.dragTaskListeners"] {
    min-height: 130px;
    height: 100%;
}

/* Aligns text in add task button to the left, overrides standard .btn-block styling */
.btn.btn-add-task {
    text-align: left;
}


.task-list-item .sortable {
    cursor: move;
}

@media only screen and (max-width: 767px) {
    .task-list-section .form-inline > input {
        margin-bottom: 10px;
    }
}

.task-item .checkbox-inline {
    margin-top: -22px;
}

.task-list-item .section {
    min-width: 40px;
    min-height: 1px;
    margin-top: -7px;
    display: block;
    float: right;
}

.team-role-variant-1 {
    background-color: $red-600;
}

.team-role-variant-2 {
    background-color: $indigo-700;
}

.team-role-variant-2 ~ .team-role-variant-2 {
    background-color: $green-400;
}

.team-role-variant-3 {
    background-color: $blue-500;
}

.team-role-variant-4 {
    background-color: $teal-600;
}

.team-role-variant-5 {
    background-color: $green-800;
}

.team-role-variant-6 {
    background-color: $green-600;
}

.team-role-variant-7 {
    background-color: $orange-400;
}

.team-role-variant-8 {
    background-color: $red-700;
}

.team-role-variant-8 ~ .team-role-variant-8  {
    background-color: $indigo-800;
}

.team-role-variant-9 {
    background-color: $orange-800;
}

.team-role-variant-10 {
    background-color: $gray-800;
}

.task-duration-unit {
    padding-top: 7px;
}

.task-duration-unit.hide-unit{
    visibility: hidden;
}

/* READY FOR CONVERSION TO SCSS */

@media only screen and (min-width:768px) {
    .project-info {
        display: flex;
    }
}

.project-info {
    margin-bottom: 10px;
}

.project-info .project-info-left {
    position: relative;
}

.project-info-left::after {
    content: '';
    width: 1px;
    top: 0;
    bottom: 0;
    right: 0;
    background: $gray-200;
    position: absolute;
    margin: 0 7px;
}

@media only screen and (max-width: 768px) {
    .project-info .project-info-left {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    .project-info .project-info-left::after {
        left: 0;
        top: unset;
        height: 1px;
        width: auto;
        margin: 0 15px;
    }
}

/* Allows media to display overflow so custom border can be displayed on meta data */
.meta-custom-wrapper {
    overflow: visible;
}

.meta-custom {
    position: relative;
}

/* Adds left-hand side border to meta blocks */
.meta-custom::after {
    content: '';
    top: 0;
    bottom: 10px;
    left: 0;
    border-left: 1px solid $gray-200;
    position: absolute;
    margin-left: -10px;
}

/* Hides left hand border on smaller screens */
@media only screen and (max-width: 768px) {
    .meta-custom::after {
        display: none;
    }
}

/* Adds custom margin to the bottom of the 'last modified' text so the 'created on' text aligns with the RAG status */
.meta-custom-spacing {
    margin-bottom: 18px;
}

/* Resets custom margin on smaller screens */
@media only screen and (max-width: 768px) {
    .meta-custom-spacing {
        margin-bottom: 10.5px;
    }
}

.loading-table {
    opacity: 0.4;
}

.team-list-spinner {
    left: 50%;
    top: 50%;
}

.tasks-profile-img {
    width: 25px;
    height: 25px;
}

.btn.btn-custom-due-date {
    padding-left: 0;
}


/* Custom position of completed toggle switch which aligns it right on desktop and left on smaller screens */
.custom-toggle-position {
    text-align: right;
}

@media only screen and (max-width:768px) {
    .custom-toggle-position {
        text-align: left;
    }
}

/* Adds custom styling to task priotity badge so it is vertically aligned with other items */
.task-badge {
    margin-right: 10px;
    margin-top: 10px;
    display: inline-block;
}

.delete-confirm-icon {
    line-height: 70px;
    font-size: 50px;
    color: $gray-600;
}


/* Board mode - 'Saving' dialog box, which appears when a card has been moved */
.tasks-board-saving {
    position: fixed;
    z-index: 99;
    background: #fff;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto 20px;
    padding: 10px;
    width: 160px;
    border-radius: 8px;
    box-shadow: 0px 0px 18px 3px rgba(0, 0, 0, 0.1);
}

.overview-page-wrapper .card-overview {
    box-shadow: none;
    margin-bottom: 1rem;
}

.overview-page-wrapper .card-overview .card-header-overview {
    padding: 0;
}

.overview-page-wrapper .card-header-overview .card-title {
    font-weight: bold;
}

.overview-page-wrapper .card-header-overview .show-all-text {
    font-size: 14px;
}

.overview-page-wrapper .card-header-overview .card-title .btn-overview {
    margin-top: -20px;
    margin-bottom: -10px;
}

.dashboard-profile-img {
    border-radius: 10rem;
}

.overview-page-wrapper .card-body-overview {
    max-height: 300px;
    overflow-y: auto;
    padding-left: 0;
    padding-right: 0;
}

/* Topics Styling */

/* Topics table styling */
.topics-table,
.topics-table > tbody > tr > td,
.topics-table > thead > tr > th  {
    border: none;
}

/* Topics table header styling */
.topics-table thead tr th.sorting,
.topics-table thead tr th.sorting_asc,
.topics-table thead tr th.sorting_desc {
    position: relative;
    padding-left: 25px;
}

/* Workaround to show board tasks as like cla-card without actually being one */

.card .card-status-border {
    position: absolute;
    width: 6px;
    top: 0;
    bottom: 0;
    left: 0;
    border-radius: 8px 0 0 8px;
    z-index: 1;
}

/* Sets minimum width of pinnable wrapper to 120px */
.pinnable {
    min-width: 120px;
}

/* Styling for sorting arrows */
.sorting::after, .sorting_asc::after, .sorting_desc::after,
.sorting::before, .sorting_asc::before, .sorting_desc::before {
    content: '';
    position: absolute;
    left: 9px;
    border-style: solid;
    border-width: 2px;
    border-color: #fff;
    width: 7px;
    height: 7px;
    transform: rotate(-45deg);
}


/* Positions top arrow to the top */
.sorting::before, .sorting_asc::before, .sorting_desc::before {
    top: 50%;
    margin-top: -6px;
}

/* Positions bottom arrow to the bottom */
.sorting::after, .sorting_asc::after, .sorting_desc::after {
    bottom: 50%;
    margin-bottom: -6px;
}

/* Sets inactive top arrow to light grey */
.sorting::before, .sorting_desc::before {
    border-top-color: $gray-700;
    border-right-color: $gray-700;
}

/* Sets inactive bottom arrow to light grey */
.sorting::after, .sorting_asc::after {
    border-bottom-color: $gray-700;
    border-left-color: $gray-700;
}


/* Sets active top arrow to dark grey */
.sorting_desc::after {
    border-bottom-color: $gray-900;
    border-left-color: $gray-900;
}

/* Sets active bottom arrow to dark grey */
.sorting_asc::before {
    border-top-color: $gray-900;
    border-right-color: $gray-900;
}


/* Adds margin to bottom of table to fix issue with the table having to scroll */
.topic-table-info {
    display: block;
    margin-top: 30px;
    margin-bottom: 35px;
}


/* Puts the topic user images into a wrapper which stops the items inside from breaking line and limits the width of the table */
.user-images-wrapper {
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 425px;
}

/* Adds right hand gradient to show when there are more users than can be displayed */
.user-images-wrapper:after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}

/* Limits the width of the topic user images on tablet sized screens */
@media only screen and (max-width: 768px) {
    .user-images-wrapper {
        max-width: 225px;
    }
}

/* Limits the width of the topic user images on mobile sized screens */
@media only screen and (max-width: 450px) {
    .user-images-wrapper {
        max-width: 85px;
    }
}


/* Individual topic page styling    */
.topic-details-list td {
    padding: 0 10px;
}

.topic-title {
    display: inline-block;
}


/* Project overview page */

/* Comments component */
.comment-attachments .comment-attachments-icon,
.comment-count .comment-count-icon {
    color: $gray-600;
}

/* Added a max-width to images in history so they don't overflow  */
.history-wrapper img {
    max-width: 100%;
    height: auto !important;
}


/* Code to reverse styling of the files component so it fits the asthetics of the projects tabs */
.projects-file-component .dms-view {
    padding: 0;
}


.projects-file-component .dms-view .panel-body {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

.modal-backdrop + .modal-backdrop {
    opacity: 0;
}



// Adds a seperator line between the Projects Add list and Add task Sections in  modal.
.add-project-wrapper {
    position: relative;

    & + .add-project-wrapper::after {
    content: '';
    background: $gray-300;
    position: absolute;
    top: 0;
    bottom: 0;
    left: -8px;
    width: 1px;
    }
}
