/* Status tab (_StatusApproval): the status in a tab, View more opens the stamps below it.
   Its own file, not components.css: that one arrives through site.css's @import, which
   asp-append-version does not version, so browsers keep serving the old copy. */

.status-approval-tab {
    position: relative;
    width: min(100%, 620px);
    border: 1px solid var(--plm-border);
    border-radius: var(--plm-radius);
    background-color: var(--plm-white);
}

.status-approval-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 8.5rem 0.5rem 0.75rem;
    border-radius: var(--plm-radius);
    background-color: var(--plm-gray-50);
}

.status-approval-tab:has(.status-approval-details[open]) .status-approval-header {
    border-bottom: 1px solid var(--plm-border);
    border-radius: var(--plm-radius) var(--plm-radius) 0 0;
}

.status-approval-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
}

.status-approval .bom-controls .bom-control-field,
.status-approval .bom-controls .bom-link-field {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}

/* Date and user share one line: the date keeps its width, the user takes the rest. */
.status-approval .bom-controls .status-approval-date {
    flex: 0 0 8.5rem;
    border-radius: 0;
}

.status-approval .bom-controls .status-approval-user {
    border-left-width: 0;
}

/* Pinned to the header's first line; it sits outside the header because summary must lead its details. */
.status-approval-toggle {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    height: 28px;
    font-size: 13px;
    list-style: none;
}

.status-approval-toggle::-webkit-details-marker {
    display: none;
}

.status-approval-toggle-open,
.status-approval-details[open] .status-approval-toggle-closed {
    display: none;
}

.status-approval-details[open] .status-approval-toggle-open {
    display: inline;
}

.status-approval-details[open] .status-approval-toggle .fa-chevron-down {
    transform: rotate(180deg);
}
