/*
 * Angebot: header row of a group in the panel "Leistungen" (handlers/leistungen-gruppen.js). Only theme variables of
 * EspoCRM, so the row follows the chosen theme (Hausoptik or Espo).
 */
.item-list-container table > tbody.angebot-gruppe-kopf > tr > td {
    background: var(--state-default-bg);
    padding: 0;
}

.angebot-gruppe-knopf {
    display: flex;
    align-items: center;
    gap: var(--6px);
    width: 100%;
    padding: var(--7px) var(--14px);
    border: 0;
    background: none;
    color: var(--text-color);
    font-weight: 600;
    text-align: start;
    cursor: pointer;
}

.angebot-gruppe-kopf:hover td {
    filter: brightness(0.97);
}

.angebot-gruppe-knopf:focus-visible {
    outline: var(--2px) solid var(--brand-primary);
    outline-offset: calc(var(--2px) * -1);
}

.angebot-pfeil {
    font-size: var(--10px);
    color: var(--text-muted-color);
    transition: transform 0.15s;
}

.angebot-gruppe-knopf[aria-expanded="true"] .angebot-pfeil {
    transform: rotate(90deg);
}

.angebot-gruppe.angebot-zu {
    display: none;
}

/*
 * Editing the lines of a quote: the field "Beschreibung" under every line is not shown (the text stays in the record and
 * is saved unchanged). Only in the groups of this extension, so only on quotes; while viewing nothing changes.
 */
tbody.angebot-gruppe > tr.item-container:has(.drag-icon) [data-name="item-description"],
tbody.angebot-standbild-rumpf > tr.item-container:has(.drag-icon) [data-name="item-description"] {
    display: none;
}

/*
 * Still picture of the lines while the Sales Pack draws them anew (handlers/leistungen-gruppen.js, standbild): looks
 * like the list it shows, takes no clicks.
 */
.angebot-standbild {
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .angebot-pfeil {
        transition: none;
    }
}
