
.leadboard {
    display: flex;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
}
.leadboard-column {
    display: flex;
    flex-direction: column;
    flex: 1 1 220px;
    min-width: 220px;
    height: 70vh;
    background-color: var(--color-row-tint);
    border: 1px solid var(--color-borderdecent);
    border-radius: 6px;
    overflow: hidden;
}
.widget-element.maximized .leadboard-column {
    height: calc(100vh - 110px);
}

.leadboard-column-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-top: 4px solid;
    font-weight: 600;
    color: var(--color-text-strong);
}
.leadboard-column-count {
    font-size: .8em;
    font-weight: 600;
    color: var(--color-text-strong);
    padding: 1px 8px;
    border-radius: 10px;
}
.leadboard-column-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    min-height: 60px;
}
.leadboard-column-body:not(:has(.leadboard-card)) {
    display: flex;
    align-items: center;
    justify-content: center;
}
.leadboard-column-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--color-text-faint-3);
    text-align: center;
    padding: 10px 0;
    transform: translateY(-14px);
}
.leadboard-column-empty i {
    font-size: 1.3em;
    color: var(--color-text-faint-3);
}
.leadboard-column-empty span {
    font-size: .8em;
}
.leadboard-card {
    position: relative;
    background-color: var(--color-white);
    border: 1px solid var(--color-borderdecent);
    border-radius: 4px;
    padding: 10px 28px 10px 12px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s ease, border-color .15s ease;
}
.leadboard-draggable .leadboard-card {
    cursor: move;
}
.leadboard-card:hover {
    border-color: var(--color-border-medium);
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .12);
}
.leadboard-card:last-child {
    margin-bottom: 0;
}
.leadboard-card-open {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: .85em;
    color: var(--color-text-muted);
    cursor: pointer;
}
.leadboard-card-open:hover {
    color: var(--color-text-strong);
}
.leadboard-card-customer {
    font-size: 1.05em;
    font-weight: 700;
    color: var(--color-text-strong);
    padding-right: 16px;
    line-height: 1.3;
}
.leadboard-card-value {
    margin-top: 5px;
    font-size: .9em;
    color: var(--color-text-muted);
}
.leadboard-card-classification {
    margin-top: 8px;
}
.leadboard-card-user {
    margin-top: 8px;
    font-size: .85em;
    color: var(--color-text-muted);
}
.leadboard-card-dates {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.leadboard-card-user + .leadboard-card-dates {
    margin-top: 4px;
}
.leadboard-card-date {
    font-size: .85em;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.leadboard-card-placeholder {
    border: 1px dashed var(--color-borderdecent);
    border-radius: 4px;
    margin-bottom: 8px;
    background-color: var(--color-surface-light-2);
}

/* issuekanban - extra affordances beyond the shared .leadboard* language above */
.issuekanban-assignee {
    position: relative;
}
.issuekanban-assignee-toggle {
    cursor: pointer;
    margin-left: 4px;
    color: var(--color-text-muted);
}
.badge.issue-priority-bullet {
    padding: .3em .65em;
    margin-right: 0;
    margin-bottom: 0;
    font-size: .6em;
    vertical-align: .1em;
}
.ui-autocomplete {
    z-index: 10000;
    max-width: 260px;
    margin: 0;
    padding: 2px 0;
    list-style: none;
    font-size: .85rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-borderdecent);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}
.ui-autocomplete .ui-menu-item-wrapper {
    display: block;
    padding: 4px 10px;
    cursor: pointer;
    color: var(--color-text-strong);
}
.ui-autocomplete .ui-state-active,
.ui-autocomplete .ui-menu-item-wrapper:hover {
    background-color: var(--color-highlight);
    color: var(--color-white);
}
.ui-helper-hidden-accessible {
    display: none;
}
.issuekanban-assignee-input {
    margin-top: 4px;
    width: 100%;
    font-size: .85em;
    border: 1px solid var(--color-borderdecent);
    border-radius: 4px;
    background-color: var(--color-white);
    color: var(--color-text-strong);
}
.issuekanban-comment {
    margin-top: 8px;
    font-size: .85em;
    color: var(--color-text-muted);
}
.issuekanban-comment-toggle {
    color: var(--color-text-muted);
    text-decoration: none;
    cursor: pointer;
}
.issuekanban-comment-toggle:hover {
    color: var(--color-text-strong);
}
.issuekanban-comment-box {
    margin-top: 6px;
    display: flex;
    gap: 6px;
}
.issuekanban-comment-text {
    flex: 1;
    resize: vertical;
    border: 1px solid var(--color-borderdecent);
    border-radius: 4px;
    font-size: .9em;
    padding: 3px 6px;
    background-color: var(--color-white);
    color: var(--color-text-strong);
}
.issuekanban-comment-send {
    border: none;
    background: var(--color-highlight);
    color: var(--color-highlight-invert);
    border-radius: 4px;
    padding: 0 10px;
    cursor: pointer;
}
.issuekanban-quickcreate {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-top: 1px solid var(--color-borderdecent);
}
.issuekanban-quickcreate-project {
    font-size: .85em;
    max-width: 40%;
    border: 1px solid var(--color-borderdecent);
    border-radius: 4px;
    background-color: var(--color-white);
    color: var(--color-text-strong);
}
.issuekanban-quickcreate-title {
    flex: 1;
    border: 1px solid var(--color-borderdecent);
    border-radius: 4px;
    padding: 3px 6px;
    font-size: .9em;
    background-color: var(--color-white);
    color: var(--color-text-strong);
}
.issuekanban-quickcreate-title::placeholder {
    color: var(--color-text-faint-3);
}
.issuekanban-quickcreate-add {
    border: none;
    background: var(--color-highlight);
    color: var(--color-highlight-invert);
    border-radius: 4px;
    padding: 3px 10px;
    cursor: pointer;
}


/* ticket widgets: the list of tickets and the quick create form */
.is-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 -8px;
    padding: 7px 8px;
    border-radius: .3rem;
    color: var(--color-textprimary);
    text-decoration: none;
}
.is-item:hover {
    background: var(--color-surface-light-1);
    color: var(--color-textprimary);
    text-decoration: none;
}
.is-priority {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--is-priority, var(--color-border-medium));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--is-priority, var(--color-border-medium)) 22%, transparent);
}
.is-text {
    flex: 1 1 0;
    min-width: 0;
}
.is-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-weight: var(--font-weight-strong);
    line-height: 1.3;
}
.is-item:hover .is-title {
    color: var(--color-highlight);
}
.is-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
    font-size: .78rem;
    color: var(--color-text-muted);
}
.is-due {
    flex: none;
    padding: 1px 10px;
    border-radius: 99px;
    font-size: .78rem;
    white-space: nowrap;
    color: var(--color-text-muted);
}
.is-due.is-overdue {
    background: color-mix(in srgb, #d93025 14%, transparent);
    color: color-mix(in srgb, #d93025 75%, var(--color-text-strong));
}
.is-due.is-today {
    background: color-mix(in srgb, #e8a100 20%, transparent);
    color: color-mix(in srgb, #b07800 75%, var(--color-text-strong));
}
.is-row .is-link {
    color: inherit;
    text-decoration: none;
}
.is-row:hover .is-link .is-title {
    color: var(--color-highlight);
}
.is-closed .is-title {
    color: var(--color-text-muted);
    font-weight: normal;
}
.is-closed .is-priority {
    opacity: .45;
}
.is-milestone {
    flex: none;
    width: 130px;
    border-radius: 99px;
    font-size: .78rem;
    text-overflow: ellipsis;
}
.is-slot-due {
    flex: none;
    width: 96px;
    text-align: right;
}
.is-tools {
    flex: none;
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity .15s ease;
}
.is-row:hover .is-tools,
.is-row:focus-within .is-tools {
    opacity: 1;
}
@media (hover: none) {
    .is-tools {
        opacity: 1;
    }
}
.is-tools .btn {
    padding: 0 5px;
    color: var(--color-text-faint-2);
}
.is-tools .btn:hover {
    color: var(--color-highlight);
}
.is-arrow {
    flex: none;
    color: var(--color-text-faint-3);
    transition: transform .15s ease, color .15s ease;
}
.is-item:hover .is-arrow {
    color: var(--color-highlight);
    transform: translateX(3px);
}

.is-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    container-type: inline-size;
}
.is-title-input {
    font-weight: var(--font-weight-strong);
}
.is-title-input::placeholder {
    font-weight: normal;
}
.is-description {
    min-height: 72px;
    resize: vertical;
}
.is-selects {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}
.is-selects label {
    margin: 0;
    min-width: 0;
}
.is-selects label > span {
    display: block;
    margin-bottom: 2px;
    font-size: .75rem;
    color: var(--color-text-muted);
}
.is-selects select, .is-selects .select2-container {
    width: 100% !important;
    min-width: 0;
}
@container (max-width: 380px) {
    .is-selects {
        grid-template-columns: minmax(0, 1fr);
    }
}
.is-actions {
    text-align: right;
}
.is-section {
    margin: 16px 0 2px 0;
    padding-top: 12px;
    border-top: 1px solid var(--color-borderdecent);
    font-size: .7rem;
    font-weight: var(--font-weight-strong);
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
