﻿.suggestions-mode .gantt-item-proposal,
.suggestions-mode .GanttModeDropdown,
.suggestions-mode .create-suggestion-btn,
.suggestions-mode.solve .gantt-item.selected-item.has-suggestions,
.suggestions-mode.solve .gantt-item.has-selected-suggestions {
    --backgroundColor: var(--secondary-teal-d2) !important;
    --borderColor: var(--secondary-teal-d5) !important;
    --color: var(--text-white) !important;
}

.suggestions-mode .gantt-item.has-selected-suggestions.gantt-item-filtered {
    opacity: 1 !important; /* AR: unfortunately .gantt-item-filtered already has an important flag which I don't feel safe removing in release week */
}

.suggestions-mode .gantt-item-proposal .gantt-item-content {
    color: inherit;
}

.suggestions-mode .gantt-item-proposal.gantt-item-draft .gantt-item-content {
    height: 100%;
    margin-bottom: 0;
    margin-left: 0;
    margin-top: 0;
}

.suggestions-mode .gantt-item-proposal .item-resize-handle {
    background-color: var(--secondary-teal-d5);
}

.suggestions-mode .gantt-item-proposal {
    border: 1px dashed var(--secondary-teal-d5);
    color: white !important;
}

.suggestions-mode .gantt-item-proposal.selected-item.gantt-item-warning {
    border-left-width: 2px;
}

.suggestions-mode .gantt-item-proposal::after,
.suggestions-mode .gantt-item.has-suggestions::after {
    background: var(--backgroundColor);
    background: linear-gradient(90deg, transparent 0%, var(--backgroundColor) 40%);
    content: "";
    height: 100%;
    position: absolute;
    right: 0;
    width: 12px;
}

.suggestions-mode .gantt-item-proposal.has-handle::after,
.suggestions-mode .gantt-item.has-suggestions.has-handle::after {
    right: 7px; /* .item-resize-handle width */
}

/* AR: .hat-container is our suggestions dot */
.suggestions-mode .gantt-item-proposal .hat-container,
.suggestions-mode .gantt-item.has-suggestions .hat-container {
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 6px 0 rgb(0 0 0 / 30%);
    height: 9px;
    width: 9px;
    position: absolute;
    right: 3px;
    top: 3px;
    z-index: 1;
}

.suggestions-mode .gantt-item-proposal .hat-container.hat-container--half-circle {
    height: fit-content;
    width: fit-content;
    font-size: 9px;
    background: unset;
}

.suggestions-mode:not(.solve) .gantt-item.has-suggestions:not(.gantt-item-proposal) .hat-container {
    width: 14px;
    height: 14px;
    font-size: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
}

.suggestions-mode:not(.solve) .gantt-item.has-suggestions.gantt-item-draft .hat-container {
    color: white;
}

.suggestions-mode .gantt-item.has-suggestions.gantt-item-draft:not(.gantt-item-proposal)::after {
    --backgroundColor: white;
    /* Account for extra border around draft item content */
    border-bottom-right-radius: 2px;
    border-top-right-radius: 2px;
    height: calc(100% - 2px);
    right: 1px;
    top: 1px;
}

.suggestions-mode .gantt-item-proposal.has-handle .hat-container,
.suggestions-mode .gantt-item.has-suggestions.has-handle .hat-container {
    right: 9px; /* 3 + .item-resize-handle width */
}

.suggestions-mode .gantt-item.has-suggestions.gantt-item-draft:not(.gantt-item-proposal) .hat-container {
    background-color: var(--secondary-teal-d2);
}

.suggestions-mode .gantt-job-bounds,
.suggestions-mode .gantt-item-bounds {
    top: 0;
}

.suggestions-mode .gantt-item-warning.unselected .error-flag,
.suggestions-mode .gantt-item-error.unselected .error-flag {
    color: #8a8c99;
}

.suggestions-mode .btn-secondary.GanttModeDropdown {
    color: var(--text-white);
    background-color: var(--backgroundColor);
    border-color: var(--backgroundColor);
}

.suggestions-mode .btn-secondary.GanttModeDropdown:hover {
    color: var(--text-white);
    background-color: var(--secondary-teal-d3);
    border-color: var(--secondary-teal-d3);
}

.suggestions-mode .btn-secondary.GanttModeDropdown:focus,
.suggestions-mode .btn-secondary.GanttModeDropdown.focus {
    box-shadow: 0 0 0 0.2rem rgb(var(--secondary-teal-d2-base) / 50%);
}

.suggestions-mode .btn-secondary.GanttModeDropdown.disabled,
.suggestions-mode .btn-secondary.GanttModeDropdown:disabled {
    color: var(--text-white);
    background-color: var(--backgroundColor);
    border-color: var(--backgroundColor);
}

.suggestions-mode .btn-secondary.GanttModeDropdown:not(:disabled, .disabled):active,
.suggestions-mode .btn-secondary.GanttModeDropdown:not(:disabled, .disabled).active,
.suggestions-mode .show > .btn-secondary.GanttModeDropdown.dropdown-toggle {
    color: var(--text-white);
    background-color: var(--borderColor);
    border-color: var(--borderColor);
}

.suggestions-mode .btn-secondary.GanttModeDropdown:not(:disabled, .disabled):active:focus,
.suggestions-mode .btn-secondary.GanttModeDropdown:not(:disabled, .disabled).active:focus,
.suggestions-mode .show > .btn-secondary.GanttModeDropdown.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgb(var(--secondary-teal-d2-base) / 50%);
}

.suggestions-mode .btn-secondary.create-suggestion-btn {
    color: var(--text-white);
    background-color: var(--backgroundColor);
    border-color: var(--backgroundColor);
}

.suggestions-mode .btn-secondary.create-suggestion-btn:hover {
    color: var(--text-white);
    background-color: var(--secondary-teal-d3);
    border-color: var(--secondary-teal-d3);
}

.suggestions-mode .btn-secondary.create-suggestion-btn:focus,
.suggestions-mode .btn-secondary.create-suggestion-btn.focus {
    box-shadow: 0 0 0 0.2rem rgb(var(--secondary-teal-d2-base) / 50%);
}

.suggestions-mode .btn-secondary.create-suggestion-btn.disabled,
.suggestions-mode .btn-secondary.create-suggestion-btn:disabled {
    color: var(--text-white);
    background-color: var(--backgroundColor);
    border-color: var(--backgroundColor);
}

.suggestions-mode .btn-secondary.create-suggestion-btn:not(:disabled, .disabled):active,
.suggestions-mode .btn-secondary.create-suggestion-btn:not(:disabled, .disabled).active,
.suggestions-mode .show > .btn-secondary.create-suggestion-btn.dropdown-toggle {
    color: var(--text-white);
    background-color: var(--borderColor);
    border-color: var(--borderColor);
}

.suggestions-mode .btn-secondary.create-suggestion-btn:not(:disabled, .disabled):active:focus,
.suggestions-mode .btn-secondary.create-suggestion-btn:not(:disabled, .disabled).active:focus,
.suggestions-mode .show > .btn-secondary.create-suggestion-btn.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgb(var(--secondary-teal-d2-base) / 50%);
}

.suggestion-conflict {
    color: var(--secondary-teal-d2);
}

.suggestion-conflict-border {
    border: 1px solid var(--secondary-teal-d2);
    color: var(--secondary-teal-d2);
}

.suggestion-row {
    margin: 10px -10px -10px !important;
}

.suggestion-item.suggestion-selected {
    background-color: var(--tinted-grey-14-base);
    cursor: pointer;
}

.suggestion-item,
.suggestion-selected,
.suggestion-handle {
    transition: background 0.3s;
}

.suggestion-item:not(.suggestion-selected):hover {
    background-color: var(--tinted-grey-14-base);
    cursor: pointer;
}

.suggestions-mode .suggestion-selected .suggestion-handle {
    background-color: var(--secondary-teal-d2);
}

.suggestions-mode .stale-warning {
    color: var(--secondary-teal-d2);
    display: inline-flex;
    align-items: center;
    height: 30px;
    font-size: 25px;
    cursor: help;
}

.suggestions-mode .suggestion-item:not(.suggestion-selected):hover .suggestion-handle {
    background-color: var(--secondary-teal-d2);
}
