/* "Criar UA" planned from Posições and the screen Atividades (wms-activity-scheduler, 2026-10-28; only in the Blazor app): the dialog with the capacity of the apartment and the rows that fit,
   the button on the rows of the grid, and the plan details. Colors only by tokens (theme.css). */
/* V-AG1: the apartment cell clips its text (ellipsis); the button gets a line of its own under the address so it is always visible, whatever the width of the column. */
.positions-grid td.positions-address-cell {
    white-space: normal;
    text-overflow: clip
}

.positions-grid td.positions-address-cell .positions-address {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.positions-plan-button {
    display: flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    margin: 3px 0 0;
    white-space: normal;
    text-align: left;
    padding: 2px 6px;
    min-height: 22px;
    line-height: 1.2;
    font-size: 11px;
    color: var(--purple);
    background: transparent;
    border: 1px solid var(--purple);
    border-radius: var(--radius-sm);
    cursor: pointer
}

.positions-plan-button>svg {
    flex-shrink: 0
}

.positions-plan-button:hover {
    background: var(--surface-2)
}

.plan-unit-dialog {
    max-width: 760px;
    width: min(760px, 94vw);
    max-height: 90vh;
    overflow: auto
}

.plan-unit-identity,
.plan-unit-intro,
.plan-unit-total {
    margin: 6px 0;
    font-size: 13px
}

.plan-unit-capacity {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0
}

.plan-unit-capacity dt {
    font-size: 11px;
    color: var(--text-muted)
}

.plan-unit-capacity dd {
    margin: 0;
    font-weight: 600
}

.plan-unit-capacity .is-over,
.plan-unit-dialog .field-hint.is-error {
    color: var(--danger-text)
}

.plan-unit-grid .plan-unit-input {
    width: 96px
}

.plan-unit-grid tr.is-destination td {
    background: var(--surface-2)
}

.activity-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0
}

.activity-summary dt {
    font-size: 11px;
    color: var(--text-muted)
}

.activity-summary dd {
    margin: 0
}

.activity-history {
    list-style: none;
    margin: 6px 0;
    padding: 0;
    font-size: 12px
}

.activity-history li {
    padding: 3px 0;
    border-bottom: 1px solid var(--border)
}

.activity-history-title {
    margin: 12px 0 4px;
    font-size: 14px
}

.activities-page .compact-chip.is-blocked {
    color: var(--danger-text)
}
