/* ── Click Cliente › Entregas-specific ───────────────────────────────────
   Shared filters/cards/actions/tables live in layout-click.css.
   This file keeps only the packaging-details modal density rules. */

.drt-embalagem-dialog .mud-dialog-content {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.drt-embalagem-dialog-titulo {
    margin: 0 0 8px !important;
    font-size: 1rem !important;
    line-height: 1.25 !important;
}

.drt-embalagem-produto {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    background: var(--mud-palette-surface);
    margin-bottom: 8px;
    padding: 8px 10px;
}

.drt-embalagem-produto__topo {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 4px;
}

.drt-embalagem-produto__nome {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.25;
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}

.drt-embalagem-produto__qtd {
    flex: 0 0 108px;
    min-width: 96px;
    max-width: 120px;
}

.drt-embalagem-produto__qtd .mud-input-control,
.drt-embalagem-produto .mud-input-control {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.drt-embalagem-produto__qtd .mud-input {
    font-size: 0.875rem;
}

.drt-embalagem-produto__acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 2px;
}

.drt-embalagem-produto__acoes .mud-button-root {
    min-height: 40px;
    margin: 0 !important;
}

.drt-embalagem-produto__acoes .mud-button-text {
    min-height: 36px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.drt-embalagem-produto__fotos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: stretch;
    width: 100%;
}

.drt-embalagem-produto__fotos .mud-button-root {
    flex: 1 1 120px;
    min-height: 40px;
    justify-content: center;
}

@media (max-width: 600px) {
    .drt-embalagem-produto__topo {
        flex-direction: row;
        align-items: center;
    }

    .drt-embalagem-produto__acoes {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .drt-embalagem-produto__acoes > .mud-button-root {
        width: 100%;
        justify-content: center;
    }

    .drt-embalagem-produto__fotos {
        flex-wrap: nowrap;
    }

    .drt-embalagem-produto__fotos .mud-button-root {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
    }
}

.drt-embalagem-problema {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--mud-palette-background-gray);
}

.drt-embalagem-problema .mud-input-control {
    margin-top: 0 !important;
}

.drt-embalagem-problema .mud-input-slot textarea {
    min-height: 48px !important;
}
