.inventory-page {
    color: var(--app-ink);
}

.inventory-hero {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.35rem;
    padding: 1.8rem 2rem;
    border: 1px solid #dfe5ed;
    border-radius: 1.1rem;
    background:
        radial-gradient(circle at 88% 10%, rgba(72, 126, 255, 0.16), transparent 27%),
        linear-gradient(135deg, #ffffff 0%, #f7f9fd 100%);
    box-shadow: 0 0.7rem 2rem rgba(16, 24, 40, 0.055);
}

.inventory-hero::after {
    position: absolute;
    top: -5rem;
    right: 11rem;
    width: 9rem;
    height: 9rem;
    border: 1.4rem solid rgba(36, 87, 214, 0.035);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.inventory-eyebrow {
    margin: 0 0 0.35rem;
    color: var(--app-primary);
    font-size: 0.7rem;
    font-weight: 780;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.inventory-title {
    margin: 0;
    color: #15223a;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 760;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.inventory-subtitle {
    max-width: 42rem;
    margin: 0.55rem 0 0;
    color: #667085;
    font-size: 0.94rem;
    line-height: 1.55;
}

.inventory-total {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 8rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(36, 87, 214, 0.16);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 0.45rem 1.2rem rgba(36, 87, 214, 0.08);
    text-align: center;
    backdrop-filter: blur(6px);
}

.inventory-total strong {
    color: var(--app-primary-dark);
    font-size: 1.75rem;
    font-weight: 780;
    letter-spacing: -0.04em;
    line-height: 1;
}

.inventory-total span {
    margin-top: 0.35rem;
    color: #667085;
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.inventory-empty,
.inventory-table-card {
    border: 1px solid #dfe5ed;
    border-radius: 1.1rem;
    background: #ffffff;
    box-shadow: 0 0.7rem 2rem rgba(16, 24, 40, 0.05);
}

.inventory-empty {
    display: grid;
    min-height: 18rem;
    place-items: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.inventory-empty-icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    place-items: center;
    border-radius: 1rem;
    background: #eef3ff;
    color: var(--app-primary);
}

.inventory-empty-icon svg {
    width: 1.55rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.inventory-empty h2 {
    margin-bottom: 0.35rem;
    color: #26334a;
    font-size: 1.15rem;
    font-weight: 720;
}

.inventory-empty p {
    margin: 0;
    color: #667085;
}

.inventory-table-card {
    overflow: hidden;
}

.inventory-toolbar,
.inventory-table-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.inventory-toolbar {
    flex-wrap: wrap;
    border-bottom: 1px solid #e8ecf2;
    background: #fbfcfe;
}

.inventory-search {
    flex: 1 1 34rem;
    max-width: 42rem;
}

.inventory-page-size {
    flex: 0 0 8.5rem;
}

.inventory-filter {
    flex: 0 0 10rem;
}

.inventory-price-filter {
    flex-basis: 8.5rem;
}

.inventory-toolbar .form-label {
    margin-bottom: 0.38rem;
    color: #475467;
    font-size: 0.72rem;
    font-weight: 720;
}

.inventory-search-control {
    position: relative;
}

.inventory-search-control svg {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    width: 1rem;
    transform: translateY(-50%);
    fill: none;
    stroke: #8490a3;
    stroke-linecap: round;
    stroke-width: 1.8;
    pointer-events: none;
}

.inventory-search-control .form-control {
    min-height: 2.65rem;
    padding-left: 2.5rem;
    border-color: #d7dee8;
    border-radius: 0.7rem;
    background: #ffffff;
    font-size: 0.86rem;
}

.inventory-page-size .form-select,
.inventory-filter .form-select,
.inventory-filter .form-control {
    min-height: 2.65rem;
    border-color: #d7dee8;
    border-radius: 0.7rem;
    font-size: 0.86rem;
}

.inventory-table {
    min-width: 68rem;
    margin: 0;
}

.inventory-table.inventory-table-wide {
    min-width: 86rem;
}

.inventory-table > thead > tr > th {
    padding: 0;
    border-bottom: 1px solid #dfe5ed;
    background: #f5f7fa;
    color: #475467;
    white-space: nowrap;
}

.inventory-sort-button {
    display: flex;
    width: 100%;
    min-height: 2.9rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.78rem 0.9rem;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0.69rem;
    font-weight: 780;
    letter-spacing: 0.045em;
    text-align: left;
    text-transform: uppercase;
}

.inventory-sort-button:hover {
    background: #ebf0f8;
    color: var(--app-primary-dark);
}

.inventory-sort-button:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid rgba(36, 87, 214, 0.24);
    outline-offset: -3px;
}

.inventory-sort-indicator {
    display: inline-grid;
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.3rem;
    color: #98a2b3;
    font-size: 0.85rem;
    line-height: 1;
}

th[aria-sort] .inventory-sort-indicator {
    background: #e4ebff;
    color: var(--app-primary);
}

.inventory-table > tbody > tr > th,
.inventory-table > tbody > tr > td {
    padding: 0.85rem 0.9rem;
    border-color: #edf0f4;
    color: #475467;
    font-size: 0.82rem;
    vertical-align: middle;
}

.inventory-table > tbody > tr:hover > * {
    background: #f8faff;
}

.inventory-id {
    color: #68758a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.77rem;
    font-weight: 650;
}

.inventory-name {
    color: #25324a;
    font-weight: 720;
}

.inventory-code {
    display: inline-flex;
    align-items: center;
    padding: 0.23rem 0.45rem;
    border: 1px solid #dce4f5;
    border-radius: 0.4rem;
    background: #f6f8fd;
    color: #244fba;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 650;
    white-space: nowrap;
}

.inventory-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #eef4ff;
    color: #3158a8;
    font-size: 0.73rem;
    font-weight: 680;
    white-space: nowrap;
}

.inventory-money {
    color: #1e6b4f;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    white-space: nowrap;
}

.inventory-muted {
    color: #98a2b3;
}

.inventory-notes {
    min-width: 13rem;
    max-width: 24rem;
    color: #667085 !important;
    white-space: normal;
}

.inventory-link {
    color: var(--app-primary-dark);
    font-weight: 650;
    text-decoration: none;
}

.inventory-link:hover {
    color: var(--app-primary);
    text-decoration: underline;
}

.inventory-no-results {
    padding: 3rem !important;
    color: #667085 !important;
    text-align: center;
}

.inventory-table-footer {
    align-items: center;
    border-top: 1px solid #e8ecf2;
    background: #fbfcfe;
}

.inventory-status,
.inventory-page-number {
    color: #667085;
    font-size: 0.78rem;
}

.inventory-pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.inventory-pagination .btn {
    min-width: 5.1rem;
    border-color: #d1d8e3;
    border-radius: 0.58rem;
    color: #475467;
    font-size: 0.76rem;
    font-weight: 650;
}

.inventory-pagination .btn:hover:not(:disabled) {
    border-color: #9db3ea;
    background: #eef3ff;
    color: var(--app-primary-dark);
}

.inventory-page-number {
    min-width: 6.5rem;
    text-align: center;
}

@media (max-width: 767.98px) {
    .inventory-hero,
    .inventory-toolbar,
    .inventory-table-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .inventory-hero {
        gap: 1.25rem;
        padding: 1.35rem;
    }

    .inventory-total {
        display: flex;
        width: 100%;
        align-items: baseline;
        justify-content: center;
        gap: 0.45rem;
    }

    .inventory-total span {
        margin-top: 0;
    }

    .inventory-search,
    .inventory-page-size,
    .inventory-filter {
        width: 100%;
        max-width: none;
        flex-basis: auto;
    }

    .inventory-pagination {
        justify-content: space-between;
    }
}
