/* =========================================================
   Lot card styles — used by LotCard, LotAvailablePane,
   LotConsumePane in the factory-floor consumption dialogs.
   Adapted from AllCost RegistrarConsumoMulti.razor:60-121.
   ========================================================= */

/* Status-coded lot card borders + tinted backgrounds */
.lote-card {
    border: 1.5px solid #bdbdbd;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    transition: border-color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    background-color: var(--mud-palette-surface);
}

.lote-card:hover {
    border-color: var(--mud-palette-primary);
    transform: translateY(-1px);
}

.lote-sugerido {
    border: 2px solid var(--mud-palette-success);
    background-color: rgba(76, 175, 80, 0.08);
}

.lote-reservado {
    border: 2px solid var(--mud-palette-warning);
    background-color: rgba(255, 152, 0, 0.10);
}

.lote-grupo-sugerido {
    border: 2px solid var(--mud-palette-info);
    background-color: rgba(33, 150, 243, 0.08);
}

/* Inline status pills */
.lote-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    line-height: 1;
    margin-right: 6px;
    text-transform: uppercase;
}

.lote-sugerido-badge {
    background-color: var(--mud-palette-success);
    color: white;
}

.lote-reservado-badge {
    background-color: var(--mud-palette-warning);
    color: white;
}

.lote-grupo-badge {
    background-color: var(--mud-palette-info);
    color: white;
}

/* Pane containers */
.lot-pane {
    border: 1px solid #bdbdbd;
    border-radius: 8px;
    padding: 8px;
    background-color: var(--mud-palette-background-grey);
    max-height: 320px;
    overflow-y: auto;
}

.lot-pane-header {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Consume row (right pane line) */
.lot-consume-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    background-color: var(--mud-palette-surface);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 6px;
}

/* AllCost parity: clickable lot rows inside the inline row expansion.
   The base .lote-card already covers .lote-item-clicavel's appearance, but
   AllCost names are kept so dialogs can render with those exact class names
   without forcing a base class. Mirrors AllCost RegistrarConsumoMulti
   .razor:60-76. */
.lote-item-clicavel {
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.15s ease, transform 0.15s ease;
}

.lote-item-clicavel:hover {
    background-color: rgba(76, 175, 80, 0.06);
    border-color: var(--mud-palette-success);
}

.lote-consumo-clicavel {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lote-consumo-clicavel:hover {
    background-color: rgba(244, 67, 54, 0.06);
}

/* AllCost group header / footer cells (used when the consolidated materials
   table is grouped by MATERIAL or ARTIGO). */
.mud-table-cell-custom-group {
    background-color: var(--mud-palette-primary-lighten);
    font-weight: bold;
}

.mud-table-cell-custom-group-footer {
    border-top: 1px solid var(--mud-palette-primary-lighten);
}

/* Stepper container shared by the consumption dialogs (vertical stepper +
   content panel). Sized to fit the typical 720x900 dialog footprint. */
.consumo-stepper-container {
    display: flex;
    height: 640px;
    overflow: hidden;
}

.consumo-stepper-section {
    width: 180px;
    padding: 16px;
    overflow-y: auto;
}

.consumo-divider-vertical {
    width: 1px;
    background-color: var(--mud-palette-divider);
    margin: 0;
}

.consumo-content-section {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}
