/**
 * Copyright (c) Enalean, 2018-Present. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

@use "pkg:@tuleap/tlp-badge/badge-with-remove-button";

.timetracking-reading-mode {
    display: flex;

    &:hover {
        background-color: var(--tlp-main-color-transparent-90);
        cursor: pointer;
    }
}

.timetracking-writing-mode-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--tlp-medium-spacing);
}

.project-timetracking-writing-mode-actions-cancel {
    margin: 0 var(--tlp-medium-spacing) 0 0;
}

.project-timetracking-selector {
    display: flex;
}

.project-timetracking-form-trackers-selected {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 var(--tlp-small-spacing);
}

.timetracking-reading-mode-dates {
    display: flex;
    min-width: max-content;
    margin: var(--tlp-medium-spacing) var(--tlp-medium-spacing) 0;
}

.project-timetracking-writing-mode {
    margin: 0;
}

.project-timetracking-writing-mode-selected-dates {
    display: flex;
    margin: var(--tlp-medium-spacing) var(--tlp-medium-spacing) 0;
}

.project-timetracking-users-selector-input.tlp-select-small {
    padding: 0 var(--tlp-medium-spacing) 0 var(--tlp-small-spacing);
}

.project-timetracking-project-selector-input,
.project-timetracking-users-selector-input,
.project-timetracking-trackers-selector-input.tlp-select {
    min-width: 150px;
}

.timetracking-writing-mode-selected-tracker {
    display: flex;
    align-items: center;
}

.timetracking-writing-mode-selected-project {
    margin: 0 var(--tlp-medium-spacing) 0 0;
}

.project-timetracking-writing-mode-selected-date:last-of-type,
.timetracking-reading-date:last-of-type {
    margin: 0 0 0 var(--tlp-medium-spacing);
}

.project-timetracking-widget-table {
    margin: var(--tlp-medium-spacing);
}

.timetracking-time-tooltip {
    margin: 0 0 0 5px;
    vertical-align: middle;
}

.project-timetracking-reading-mode-trackers-list {
    display: flex;
    flex-direction: row;
    margin: var(--tlp-medium-spacing) var(--tlp-medium-spacing) var(--tlp-small-spacing);
    color: var(--tlp-main-color);
}

.project-timetracking-reading-mode-trackers {
    display: flex;
    flex-wrap: wrap;
}

.project-timetracking-reading-mode-tracker {
    display: flex;
    flex-direction: column;
    margin: 0 var(--tlp-medium-spacing) var(--tlp-small-spacing) 0;
}

.project-timetracking-reading-mode-tracker-project-name {
    display: flex;
    align-items: center;
    margin: 5px 0 0;
    color: var(--tlp-dimmed-color);
    font-size: 14px;
    font-weight: 400;

    > .project-timetracking-project-icon {
        margin: 0 5px;
        fill: var(--tlp-main-color);
    }
}

.project-timetracking-reading-mode-trackers-empty {
    display: flex;
    align-items: center;
    margin: 0 0 0 var(--tlp-medium-spacing);
    font-style: italic;
}

.timetracking-loader {
    height: 100px;
    background: url("@tuleap/burningparrot-theme/images/spinner.gif") no-repeat center center;
}

.timetracking-total-sum {
    white-space: nowrap;
}

.flatpickr-wrapper.static {
    display: block;
}

.timetracking-tooltip {
    &::before {
        opacity: 1;
    }

    &::after {
        opacity: 1;
    }
}

.project-timetracking-trackers-empty {
    display: flex;
    align-items: center;
    margin: 0;
    color: var(--tlp-main-color);
    font-style: italic;
}

.project-timetracking-tracker-selector {
    display: flex;
    align-items: center;
    margin: var(--tlp-medium-spacing) var(--tlp-small-spacing) 0;
}

.timetracking-archive {
    margin: 0 3px 0 0;
    font-size: 12px;
}

.reading-mode-actions {
    display: flex;
    justify-content: center;
    margin: var(--tlp-small-spacing) var(--tlp-medium-spacing) var(--tlp-medium-spacing);
}

.reading-mode-actions-cancel {
    margin: 0 var(--tlp-medium-spacing) 0 0;
}
