/* Ajuste responsive para bien agregado en móvil */
.inventory-shell .crud-card,
.inventory-shell .card,
.inventory-shell .items-agregados,
.inventory-shell .agregado-bien,
.inventory-shell .inventory-item-card {
    max-width: 100%;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 767.98px) {
    .inventory-shell .crud-card,
    .inventory-shell .card,
    .inventory-shell .items-agregados,
    .inventory-shell .agregado-bien,
    .inventory-shell .inventory-item-card {
        max-width: 100vw;
        width: 100vw;
        margin-left: -12px !important;
        margin-right: -12px !important;
        border-radius: 0;
        box-shadow: none;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
.inventory-shell {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 0 0.75rem;
}

.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.inventory-stat {
    border: 1px solid #e5edf3;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    padding: 0.95rem 1rem;
    box-shadow: 0 12px 22px -20px rgba(0, 0, 0, 0.45);
}

.inventory-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #7e8080;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.inventory-stat-value {
    color: #446078;
    font-size: 1.35rem;
    font-weight: 700;
}

.inventory-table td,
.inventory-table th {
    vertical-align: middle;
}

.inventory-code {
    font-weight: 700;
    color: #077ba1;
}

.inventory-qty {
    font-weight: 600;
    color: #446078;
}

.inventory-location {
    color: #6a8091;
    font-size: 0.92rem;
}

.inventory-filter-select {
    max-width: 240px;
}

.inventory-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.inventory-edit-grid .full {
    grid-column: 1 / -1;
}

.inventory-help-text {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: #6a8091;
}

.inventory-danger-btn:hover,
.inventory-danger-btn:focus {
    background: #b42318;
    border-color: #b42318;
    color: #fff;
}

.inventory-readonly-field {
    background: linear-gradient(180deg, #f3f5f7 0%, #e3e8ed 100%);
    border-color: #c8d1da;
    color: #5b6773;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.85), inset 0 -2px 4px rgba(120, 132, 145, 0.12);
    cursor: not-allowed;
}

.inventory-readonly-field:focus {
    border-color: #c8d1da;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.85), inset 0 -2px 4px rgba(120, 132, 145, 0.12);
}

.inventory-readonly-note {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: #7e8080;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}