:root {
    --inventory-primary: #6c8cf5;
    --inventory-primary-hover: #5a79e6;
    --inventory-surface: #ffffff;
    --inventory-background: #f8fafc;
    --inventory-border: #e5e7eb;
    --inventory-text: #1f2937;
    --inventory-muted: #6b7280;
}

.inventories-page {
    display: grid;
    gap: 14px;
}

.inventories-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--inventory-muted);
}

.inventories-breadcrumb strong {
    color: var(--inventory-text);
    font-weight: 600;
}

.inventories-header-card,
.inventories-table-card,
.inventories-empty-state,
.inventories-form-card {
    background: var(--inventory-surface);
    border: 1px solid var(--inventory-border);
    border-radius: 16px;
}

.inventories-header-card {
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.inventories-header-card h2 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: var(--inventory-text);
}

.inventories-header-card p {
    margin: 8px 0 0;
    color: var(--inventory-muted);
    max-width: 760px;
}

.inventories-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.inventories-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2c4ab8;
    font-weight: 700;
    font-size: 0.82rem;
}

.inventories-chip.is-soft {
    background: #f8fafc;
    color: var(--inventory-text);
}

.inventories-table-card {
    overflow: hidden;
}

.inventories-table-wrapper {
    overflow-x: auto;
}

.inventories-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
}

.inventories-table thead {
    background: #f8fafc;
}

.inventories-table th,
.inventories-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: middle;
}

.inventories-table th {
    color: var(--inventory-muted);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.inventories-table td {
    color: var(--inventory-text);
    font-size: 0.92rem;
}

.inventories-table tbody tr:hover td {
    background: #f9fbff;
}

.inventories-vehicle-cell {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

.inventories-availability {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-weight: 700;
}

.inventories-availability.is-good {
    background: #dcfce7;
    color: #166534;
}

.inventories-availability.is-low {
    background: #fffbeb;
    color: #92400e;
}

.inventories-availability.is-zero {
    background: #fee2e2;
    color: #b91c1c;
}

.inventories-view-btn,
.inventories-back-btn,
.inventories-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
}

.inventories-view-btn {
    background: #eef4ff;
    color: #2c4ab8;
}

.inventories-view-btn:hover {
    background: #dfe9ff;
}

.inventories-pagination-wrap {
    margin-top: 14px;
}

.inventories-empty-state {
    padding: 52px 24px;
    text-align: center;
}

.inventories-empty-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: #eef4ff;
    color: var(--inventory-primary);
}

.inventories-empty-state h3 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
}

.inventories-empty-state p {
    margin: 10px 0 0;
    color: var(--inventory-muted);
}

.inventories-form-card {
    padding: 18px 20px;
}

.inventories-form {
    display: grid;
    gap: 14px;
}

.inventories-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.inventories-field {
    display: grid;
    gap: 8px;
}

.inventories-field label {
    font-weight: 600;
    color: var(--inventory-text);
}

.inventories-field input,
.inventories-field textarea {
    width: 100%;
    border: 1px solid var(--inventory-border);
    border-radius: 10px;
    padding: 11px 12px;
    font-family: "Poppins", sans-serif;
    color: var(--inventory-text);
    background: #ffffff;
}

.inventories-field input:focus,
.inventories-field textarea:focus {
    outline: 2px solid rgba(108, 140, 245, 0.18);
    border-color: var(--inventory-primary);
}

.inventories-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.inventories-back-btn {
    background: #ffffff;
    border-color: var(--inventory-border);
    color: var(--inventory-text);
}

.inventories-save-btn {
    background: var(--inventory-primary);
    color: #ffffff;
}

.inventories-save-btn:hover {
    background: var(--inventory-primary-hover);
}

@media (max-width: 980px) {
    .inventories-header-card {
        flex-direction: column;
    }

    .inventories-header-meta {
        justify-content: flex-start;
    }

    .inventories-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .inventories-header-card,
    .inventories-form-card,
    .inventories-empty-state {
        border-radius: 12px;
    }

    .inventories-table th,
    .inventories-table td {
        padding: 12px 10px;
    }

    .inventories-form-actions {
        justify-content: stretch;
    }

    .inventories-back-btn,
    .inventories-save-btn {
        width: 100%;
    }
}