* {
    box-sizing: border-box;
}

:root {
    --font-heading: "Jura", sans-serif;
    --font-body: "Work Sans", sans-serif;
    --background: #f4f4f0;
    --surface: #ffffff;
    --text: #111111;
    --muted: #6a6a66;
    --border: #d6d6cf;
    --shadow: 0 12px 32px rgba(30, 35, 25, 0.08);
    --olive: #66724f;
    --mustard-bg: #fff4cc;
    --sage-bg: #edf4e8;
    --red-bg: #ffe8e3;
    --beige-bg: #f3ead9;
    --success: #24643a;
    --warning: #8a5b00;
    --danger: #a12626;
    --info: #244f73;
    --space-xs: 6px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 32px;
    --space-xl: 48px;
    --radius: 14px;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.45;
}

h1,
h2,
h3,
.brand {
    margin: 0 0 var(--space-md);
    font-family: var(--font-heading);
    letter-spacing: 0;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 16px;
}

a {
    color: var(--text);
    text-decoration: none;
}

small {
    display: block;
    color: var(--muted);
}

button,
.button,
input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    padding: 10px 12px;
    border-radius: 10px;
}

textarea {
    min-height: 92px;
    resize: vertical;
}

button,
.button {
    width: auto;
    min-width: 120px;
    cursor: pointer;
    font-weight: 600;
    background: #ededE7;
}

button.primary,
.primary {
    background: var(--text);
    color: var(--surface);
}

button:hover,
.button:hover {
    border-color: var(--text);
}

label {
    display: grid;
    gap: var(--space-xs);
    color: var(--muted);
    font-weight: 600;
}

code {
    white-space: normal;
    overflow-wrap: anywhere;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border);
    background: rgba(244, 244, 240, 0.96);
    backdrop-filter: blur(10px);
}

.topbar > div,
.user-chip {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.logo-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(34vw, 150px);
    height: 62px;
    border: 0px dashed #b8b8ad;
    border-radius: 0px;
    color: var(--muted);
    font-family: var(--font-heading);
    font-weight: 700;
}

.logo-slot img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.topbar span {
    color: var(--muted);
}

.brand {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: start;
}

.section-nav {
    position: sticky;
    top: 57px;
    min-height: calc(100vh - 57px);
    border-right: 1px solid var(--border);
    padding: var(--space-md);
    background: #eeeeea;
}

.section-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 8px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-weight: 600;
}

.section-nav a.active {
    color: var(--text);
    background: var(--surface);
}

.content {
    min-width: 0;
    padding: var(--space-lg);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
    align-items: start;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-sm);
    border: 0;
    background: transparent;
    margin-bottom: var(--space-md);
}

.metric-grid div {
    min-width: 0;
    background: var(--surface);
    padding: var(--space-sm);
    border: 1px solid var(--border);
    border-left: 5px solid var(--olive);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.metric-grid i {
    color: var(--olive);
    margin-bottom: 8px;
}

.accent-sage {
    background: var(--sage-bg) !important;
}

.accent-mustard {
    background: var(--mustard-bg) !important;
}

.accent-red {
    background: var(--red-bg) !important;
}

.metric-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.metric-grid strong {
    display: block;
    margin-top: 4px;
    font-family: var(--font-heading);
    font-size: 24px;
}

.form-grid,
.filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
    align-items: end;
}

.form-grid h2,
.form-grid .wide,
.checks {
    grid-column: 1 / -1;
}

.checks {
    display: grid;
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    gap: var(--space-sm);
}

.checks label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    border: 1px solid var(--border);
    padding: 10px;
    background: #fafaf8;
}

.checks input {
    width: auto;
    min-height: auto;
}

.inline-row,
.issue-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.issue-row {
    grid-template-columns: 1.2fr 1fr 1fr 140px;
    align-items: center;
    padding: var(--space-sm);
    border: 1px solid var(--border);
}

.issue-list {
    display: grid;
    gap: var(--space-sm);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-bottom: var(--space-md);
    background: var(--surface);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    background: var(--surface);
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

th {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--muted);
    background: #fafaf8;
}

td form {
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 3px 7px;
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--info);
    background: #f7f9fa;
    border-radius: 999px;
}

.low-stock,
.order-required,
.partially-arrived,
.delivery-overdue {
    color: var(--warning);
    background: #fff8e8;
}

.out-of-stock,
.expired,
.inactive,
.cancelled,
.rejected {
    color: var(--danger);
    background: #fff1f1;
}

.in-stock,
.arrived,
.issued,
.paid,
.collected {
    color: var(--success);
    background: #eef8f1;
}

.notice {
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    border: 1px solid var(--border);
    background: var(--surface);
    font-weight: 600;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.notice.success {
    border-color: var(--success);
    color: var(--success);
}

.notice.danger {
    border-color: var(--danger);
    color: var(--danger);
}

.heading-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    align-items: center;
}
.help
{
    margin-top: -10px !important;
    margin-bottom: 20px;    
    
}
.count {
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    margin-bottom: 20px;
    font-size: 11px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: var(--space-md);
}

.login-shell {
    width: min(100%, 420px);
}

.login-panel {
    margin: 0;
}

.housekeeping-shell {
    width: min(100%, 620px);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.scan-panel {
    border: 2px solid var(--text);
}

.eyebrow {
    margin: 0 0 var(--space-xs);
    color: var(--muted);
    font-weight: 700;
}

.identity {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-md);
}

.identity > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid var(--text);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
}

.big-action {
    width: 100%;
    min-height: 58px;
    margin-top: var(--space-sm);
    font-size: 17px;
}

.status-list {
    display: grid;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.status-list > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background: var(--surface);
}

.status-list small {
    grid-column: 1 / -1;
}

.tabs {
    display: flex;
    gap: var(--space-xs);
    overflow-x: auto;
    margin-bottom: var(--space-md);
}

.tabs a,
.button {
    border-radius: 999px;
}

.tabs a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-weight: 700;
}

.tabs a.active {
    color: var(--text);
    background: var(--beige-bg);
    border-color: #bcae91;
}

.card-list,
.timeline,
.request-type-grid {
    display: grid;
    gap: var(--space-sm);
}

.data-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-sm);
    align-items: center;
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.inventory-list .data-card {
    grid-template-columns: minmax(0, 1.6fr) 100px 100px auto auto auto;
}

.data-card h3,
.data-card p {
    margin: 0;
}

.data-card ul {
    margin: 0;
    padding-left: 20px;
}

.help,
.field-note,
.empty {
    color: var(--muted);
}

.field-note,
.preview-box,
.details div,
.qr-token {
    padding: var(--space-sm);
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafaf7;
}

.preview-box {
    background: var(--sage-bg);
    color: #20331d;
    font-weight: 700;
}

.timeline article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px var(--space-sm);
    padding: var(--space-sm);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.timeline small {
    grid-column: 1 / -1;
}

.pos { color: var(--success); }
.neg { color: var(--danger); }

.scan-card {
    border: 2px solid var(--olive);
    background: linear-gradient(0deg, var(--sage-bg), #fff);
}

.scanner-box {
    min-height: 150px;
    display: grid;
    place-items: center;
    border: 1px dashed #9eaa91;
    border-radius: var(--radius);
    margin-bottom: var(--space-sm);
    background: #fff!important;
    color: var(--olive);
    position: relative;
    overflow: hidden;
}

.scanner-box i {
    font-size: 48px;
    display:none;
}

.scanner-box video {
    width: 100%;
    max-height: 300px;
    
}

.scanner-box[data-state]::after {
    content: attr(data-state);
    position: absolute;
    inset: auto 10px 10px;
    padding: 10px;
    background: var(--red-bg);
    border: 1px solid #e6afa5;
    border-radius: 10px;
    color: #4b1d16;
}

.button-row {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.request-type {
    width: 100%;
    min-height: 104px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.request-type i {
    grid-row: span 2;
    font-size: 28px;
    color: var(--olive);
}

.request-type span {
    color: var(--muted);
    font-weight: 500;
}

.request-focus {
    display: grid;
    gap: var(--space-sm);
}

.qr-code {
    width: min(100%, 280px);
    height: auto;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.qr-token {
    display: block;
    max-width: 100%;
}

.review-shell {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.details dt {
    color: var(--muted);
    font-weight: 700;
}

.details dd {
    margin: 0;
}

.approved-items {
    padding-left: 20px;
}

@media (max-width: 900px) {
    .layout {
        display: block;
    }

    .section-nav {
        position: sticky;
        top: 55px;
        z-index: 4;
        display: flex;
        gap: var(--space-xs);
        min-height: 0;
        overflow-x: auto;
        padding: var(--space-xs);
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .section-nav a {
        flex: 0 0 auto;
        border: 1px solid var(--border);
        background: var(--surface);
        padding: 9px 12px;
    }

    .content {
        padding: var(--space-md);
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split,
    .form-grid,
    .filters,
    .issue-row,
    .inventory-list .data-card,
    .data-card,
    .details {
        grid-template-columns: 1fr;
    }

    .checks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 21px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--space-xs);
    }

    .topbar > div {
        width: 100%;
        justify-content: space-between;
    }

    .logo-slot {
        width: 120px;
        height: 46px;
        margin: 8px;
        margin-left: -10px;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: var(--space-sm);
    }

    button,
    .button {
        width: 100%;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
        min-width: 0;
    }

    thead {
        display: none;
    }

    tr {
        padding: var(--space-sm);
        border-bottom: 1px solid var(--border);
    }

    td {
        display: grid;
        grid-template-columns: minmax(110px, 42%) 1fr;
        gap: var(--space-sm);
        border: 0;
        padding: 6px 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    td::before {
        content: attr(data-label);
        color: var(--muted);
        font-weight: 600;
    }

    .table-wrap {
        overflow: visible;
    }

    .inline-row {
        grid-template-columns: 1fr;
    }

    .checks {
        grid-template-columns: 1fr;
    }

    .button-row {
        display: grid;
    }

    .request-type {
        min-height: 116px;
    }

    .review-shell {
        padding: var(--space-md) var(--space-sm);
    }

    .housekeeping-shell {
        padding: var(--space-md) var(--space-sm);
    }
}

.request-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.request-qr .qr-code {
    display: block;
    width: 180px;
    height: 180px;
    max-width: 100%;
    object-fit: contain;
}

.request-qr .qr-help {
    margin: 0;
    font-size: 14px;
    text-align: center;
}

.request-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #fff;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.request-history-item:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 0, 0, 0.18);
}

.request-history-item.active {
    background: #f3f1df;
    border-color: #9b8b4f;
}

.request-history-item > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.request-history-item small {
    opacity: 0.7;
}

.new-request-block {
    margin-top: 24px;
}

@media (max-width: 600px) {
    .request-qr .qr-code {
        width: 155px;
        height: 155px;
    }
}

.manager-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.manager-form > h2,
.manager-form > .wide,
.manager-form > .product-field,
.manager-form > button {
    grid-column: 1 / -1;
}

.manager-form label {
    min-width: 0;
}

.product-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.product-price,
.product-availability {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 9px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
}

.product-price {
    background: #f5edcf;
    color: #5c4812;
}

.product-availability {
    background: #e6eee0;
    color: #344728;
}

.product-price i,
.product-availability i {
    grid-row: 1 / 3;
    font-size: 18px;
}

.product-price span,
.product-availability span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0.72;
}

.product-price strong,
.product-availability strong {
    font-size: 16px;
    line-height: 1.2;
}

.request-card-list {
    display: grid;
    gap: 14px;
}

.request-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(22, 27, 24, 0.1);
    border-radius: 14px;
}

.request-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.request-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.request-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #ece9d7;
    color: #514a27;
}

.request-card h3 {
    margin: 0;
    font-size: 17px;
}

.request-type-label {
    margin: 4px 0 0;
    color: #666c68;
    font-size: 13px;
}

.request-card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.request-created,
.request-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border-radius: 10px;
    background: #f5f6f4;
}

.request-created i,
.request-timer i {
    flex: 0 0 auto;
    font-size: 16px;
}

.request-created div,
.request-timer div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.request-created span,
.request-timer span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #747a76;
}

.request-created strong,
.request-timer strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-timer {
    background: #e8efe2;
    color: #38482e;
}

.request-timer.timer-warning {
    background: #f7edcf;
    color: #725b16;
}

.request-timer.timer-danger {
    background: #f3dddd;
    color: #7a2929;
}

.request-review-button {
    background: olive;
    justify-self: start;
    border-radius: 7px;
}

.badge {
    display: inline-flex;
    width: auto;
    max-width: max-content;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.badge.awaiting-approval,
.badge.pending {
    background: #f5e8ba;
    color: #684f07;
}

.badge.approved,
.badge.paid,
.badge.collected,
.badge.completed {
    background: #dcebd3;
    color: #2d5425;
}

.badge.rejected,
.badge.cancelled,
.badge.out-of-stock {
    background: #f1d5d5;
    color: #7b2525;
}

.badge.partially-collected,
.badge.added-to-room-bill {
    background: #e4e1f3;
    color: #4d447e;
}

.badge.not-chargeable {
    background: #e8e9e8;
    color: #4d514e;
}

select[data-status-select] {
    font-weight: 600;
}

@media (max-width: 640px) {
    .manager-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .manager-form > .product-field,
    .manager-form > .wide,
    .manager-form > button {
        grid-column: 1 / -1;
    }

    .manager-form .half-field {
        grid-column: span 1;
    }

    .product-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .request-card-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .request-created,
    .request-timer {
        padding: 10px;
    }

    .request-created strong,
    .request-timer strong {
        font-size: 12px;
    }
}

.inventory-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(21, 28, 23, 0.1);
    border-radius: 14px;
}

.inventory-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.inventory-product {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.inventory-product-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    background: #e8eee0;
    color: #3e5135;
}

.inventory-product h3 {
    margin: 0;
    font-size: 17px;
}

.inventory-product small {
    display: block;
    margin-top: 4px;
    color: #777d78;
    font-size: 12px;
    line-height: 1.4;
}

.inventory-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.inventory-stat {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    padding: 13px 14px;
    border-radius: 11px;
}

.inventory-stat span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0.7;
}

.inventory-stat strong {
    font-size: 18px;
    line-height: 1.2;
}

.quantity-stat {
    background: #e4eee0;
    color: #31472b;
}

.price-stat {
    background: #f4e8c6;
    color: #654e12;
}

.inventory-order-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f2f3f1;
}

.inventory-order-status span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666c68;
    font-size: 12px;
    font-weight: 600;
}

.inventory-order-status strong {
    text-align: right;
    font-size: 13px;
}

.inventory-order-button {
    justify-self: start;
}

.field-with-help {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-with-help small {
    display: block;
    color: #747a76;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
}

.form-grid h2 {
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(20, 27, 22, 0.1);
    color: #29332d;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    border-color: #788663;
    box-shadow: 0 0 0 3px rgba(120, 134, 99, 0.13);
}

.order-form {
    border-top: 4px solid #b39a50;
}

.form-grid .checks {
    padding: 14px;
    border-radius: 12px;
    background: #f2f5ef;
}

.form-grid .checks label {
    padding: 7px 9px;
    border-radius: 8px;
    background: #ffffff;
}

@media (max-width: 640px) {
    .inventory-card {
        padding: 15px;
    }

    .inventory-card-header {
        align-items: flex-start;
    }

    .inventory-card-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inventory-stat {
        padding: 11px;
    }

    .inventory-stat strong {
        font-size: 16px;
    }

    .inventory-product small {
        font-size: 11px;
    }

    .inventory-order-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .inventory-order-status strong {
        text-align: left;
    }
}

/* Compact inventory cards on desktop */
@media (min-width: 901px) {
    .inventory-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        align-items: start;
    }

    .inventory-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px 18px;
        width: 100%;
        min-width: 0;
        padding: 18px;
        align-items: center;
    }

    .inventory-card-header {
        grid-column: 1 / -1;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        min-width: 0;
    }

    .inventory-product {
        min-width: 0;
    }

    .inventory-product > div {
        min-width: 0;
    }

    .inventory-product h3 {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .inventory-product small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .inventory-card-stats {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .inventory-stat {
        width: auto;
        min-width: 0;
        padding: 12px 14px;
    }

    .inventory-stat strong {
        font-size: 17px;
        white-space: nowrap;
    }

    .inventory-order-status {
        grid-column: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        padding: 11px 13px;
    }

    .inventory-order-status strong {
        overflow: hidden;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .inventory-order-button {
        grid-column: 1;
        justify-self: end;
        width: 100%;
        white-space: nowrap;
        background: olive;
        color: #fff;
        border-radius: 11px;
    }
}
