html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =========================================================
   LITTLE CAPPADOCIA LOGIN
   ========================================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f1e8;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.15);
}

.brand-area {
    background: #4b2e22;
    color: white;
    text-align: center;
    padding: 32px 25px;
}

.brand-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 15px;
    margin-top: 6px;
    opacity: 0.9;
}

.form-area {
    padding: 32px;
}

    .form-area h2 {
        margin: 0;
        color: #2c3e50;
        font-size: 28px;
    }

.login-help {
    color: #777;
    margin-top: 6px;
    margin-bottom: 24px;
}

.form-area label {
    display: block;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 6px;
    color: #333;
}

.form-control {
    width: 100%;
    height: 46px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 16px;
}

    .form-control:focus {
        outline: none;
        border-color: #d6a85f;
        box-shadow: 0 0 0 3px rgba(214, 168, 95, 0.18);
    }

.login-button {
    width: 100%;
    height: 50px;
    margin-top: 25px;
    border: none;
    border-radius: 8px;
    background: #d6a85f;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

    .login-button:hover {
        opacity: 0.92;
    }

    .login-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.error-box {
    margin-top: 18px;
    padding: 11px;
    border-radius: 8px;
    background: #fdeaea;
    color: #9c2f2f;
    font-size: 14px;
}

/* =========================================================
   LITTLE CAPPADOCIA MAIN LAYOUT
   ========================================================= */

.lc-shell {
    min-height: 100vh;
    display: flex;
    background: #f6f1e8;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.lc-sidebar {
    width: 250px;
    min-width: 250px;
    background: #2c3e50;
    color: white;
    min-height: 100vh;
    overflow-y: auto;
}

.lc-brand {
    padding: 28px 22px 24px 22px;
    background: #253647;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lc-brand-name {
    font-size: 23px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.lc-brand-subtitle {
    margin-top: 10px;
    font-size: 11px;
    opacity: 0.72;
}

.lc-navigation {
    padding: 18px 14px 30px 14px;
}

.lc-role-title {
    padding: 8px 12px 14px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #d6a85f;
}

.lc-nav-link {
    display: block;
    width: 100%;
    color: #f4f4f4;
    text-decoration: none;
    padding: 12px 14px;
    margin-bottom: 5px;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.15s ease-in-out;
}

    .lc-nav-link:hover {
        background: rgba(255,255,255,0.10);
        color: white;
    }

    .lc-nav-link.active {
        background: #d6a85f;
        color: white;
        font-weight: 700;
    }


/* =========================================================
   MAIN AREA
   ========================================================= */

.lc-main {
    flex: 1;
    min-width: 0;
}

.lc-topbar {
    height: 86px;
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lc-topbar-title {
    font-size: 20px;
    font-weight: 800;
    color: #2c3e50;
}

.lc-topbar-subtitle {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}


/* =========================================================
   USER AREA
   ========================================================= */

.lc-user-area {
    display: flex;
    align-items: center;
    gap: 18px;
}

.lc-user-info {
    text-align: right;
}

.lc-user-name {
    font-weight: 700;
    color: #2c3e50;
}

.lc-user-role {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

.lc-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    background: #d6a85f;
    color: white;
    text-decoration: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
}

    .lc-logout-button:hover {
        color: white;
        opacity: 0.90;
    }


/* =========================================================
   CONTENT
   ========================================================= */

.lc-content {
    padding: 28px;
}

.lc-public-content {
    min-height: 100vh;
}


/* =========================================================
   MOBILE / IPAD
   ========================================================= */

@media (max-width: 900px) {

    .lc-sidebar {
        width: 190px;
        min-width: 190px;
    }

    .lc-brand-name {
        font-size: 19px;
    }

    .lc-content {
        padding: 18px;
    }

    .lc-topbar {
        padding: 0 18px;
    }
}

@media (max-width: 650px) {

    .lc-shell {
        display: block;
    }

    .lc-sidebar {
        width: 100%;
        min-height: auto;
    }

    .lc-topbar {
        height: auto;
        padding: 15px;
    }

    .lc-user-area {
        gap: 8px;
    }

    .lc-topbar-title,
    .lc-topbar-subtitle {
        display: none;
    }
}

/* =========================================================
   LITTLE CAPPADOCIA WEB POS
   ========================================================= */

.pos-page {
    width: 100%;
}

.pos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .pos-header h1 {
        margin: 0;
        font-size: 30px;
        font-weight: 800;
        color: #2c3e50;
    }

.pos-status-text {
    color: #777;
    margin-top: 4px;
}

.pos-header-actions {
    display: flex;
    gap: 10px;
}

.pos-secondary-button,
.pos-shift-button {
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 700;
}

.pos-secondary-button {
    background: white;
    border: 1px solid #ddd;
}

.pos-shift-button {
    background: #2c3e50;
    color: white;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 20px;
    min-height: calc(100vh - 170px);
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.pos-products-section {
    min-width: 0;
}

.pos-search-row {
    margin-bottom: 14px;
}

.pos-search {
    width: 100%;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 16px;
    background: white;
}

    .pos-search:focus {
        outline: none;
        border-color: #d6a85f;
        box-shadow: 0 0 0 3px rgba(214,168,95,0.15);
    }


/* =========================================================
   CATEGORIES
   ========================================================= */

.pos-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.pos-category-button {
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
}

    .pos-category-button.active {
        background: #d6a85f;
        border-color: #d6a85f;
        color: white;
    }


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.pos-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.pos-product-card {
    min-height: 130px;
    background: white;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    cursor: pointer;
    transition: 0.15s ease;
}

    .pos-product-card:hover {
        transform: translateY(-2px);
        border-color: #d6a85f;
        box-shadow: 0 7px 20px rgba(0,0,0,0.07);
    }

.pos-product-name {
    min-height: 45px;
    font-weight: 800;
    color: #2c3e50;
    font-size: 15px;
}

.pos-product-code {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
}

.pos-product-price {
    margin-top: 12px;
    color: #a4742c;
    font-size: 16px;
    font-weight: 800;
}

.pos-loading,
.pos-error {
    padding: 30px;
    background: white;
    border-radius: 10px;
}

.pos-error {
    color: #a72d2d;
}


/* =========================================================
   CART
   ========================================================= */

.pos-cart-section {
    background: white;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0,0,0,0.06);
}

.pos-cart-header {
    padding: 18px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pos-cart-title {
    font-weight: 800;
    color: #2c3e50;
}

.pos-cart-subtitle {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

.pos-clear-button {
    background: transparent;
    border: none;
    color: #a43d3d;
    font-weight: 700;
}


/* =========================================================
   ORDER TYPE
   ========================================================= */

.pos-order-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 12px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.pos-order-type {
    height: 42px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
}

    .pos-order-type.active {
        background: #2c3e50;
        border-color: #2c3e50;
        color: white;
    }


/* =========================================================
   CART ITEMS
   ========================================================= */

.pos-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    max-height: calc(100vh - 470px);
    min-height: 280px;
}

.pos-empty-cart {
    height: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #888;
    text-align: center;
}

.pos-empty-icon {
    font-size: 38px;
    margin-bottom: 10px;
}

.pos-cart-item {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 9px;
}

.pos-cart-item-top,
.pos-cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pos-cart-item-name {
    font-weight: 800;
    color: #2c3e50;
}

.pos-cart-item-price {
    color: #888;
    font-size: 12px;
    margin-top: 3px;
}

.pos-delete-button {
    border: none;
    background: #fde9e9;
    color: #a52d2d;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 20px;
}

.pos-cart-item-bottom {
    margin-top: 12px;
}

.pos-quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .pos-quantity-control button {
        width: 32px;
        height: 32px;
        border: none;
        border-radius: 6px;
        background: #eee;
        font-size: 18px;
        font-weight: 700;
    }

    .pos-quantity-control span {
        min-width: 25px;
        text-align: center;
        font-weight: 800;
    }

.pos-line-total {
    font-weight: 800;
    color: #2c3e50;
}


/* =========================================================
   TOTAL AREA
   ========================================================= */

.pos-total-area {
    border-top: 1px solid #eee;
    padding: 16px;
}

.pos-total-line {
    display: flex;
    justify-content: space-between;
    color: #666;
    margin-bottom: 10px;
}

.pos-grand-total {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 14px;
}

.pos-hold-button,
.pos-payment-button {
    width: 100%;
    border: none;
    border-radius: 9px;
    font-weight: 800;
}

.pos-hold-button {
    height: 44px;
    background: #ececec;
    margin-bottom: 8px;
}

.pos-payment-button {
    height: 55px;
    padding: 0 16px;
    background: #d6a85f;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

    .pos-hold-button:disabled,
    .pos-payment-button:disabled {
        opacity: 0.45;
    }


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .pos-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .pos-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    }
}

/* =========================================================
   POS COMPACT DESKTOP MODE
   ========================================================= */

.lc-content {
    padding: 18px 22px;
}

.pos-header {
    margin-bottom: 12px;
}

    .pos-header h1 {
        font-size: 27px;
    }

.pos-status-text {
    font-size: 13px;
}

.pos-layout {
    min-height: auto;
    height: calc(100vh - 145px);
}

.pos-search {
    height: 42px;
}

.pos-categories {
    margin-bottom: 12px;
}

.pos-category-button {
    padding: 7px 14px;
}

.pos-product-grid {
    gap: 9px;
}

.pos-product-card {
    min-height: 105px;
    padding: 12px;
}

.pos-product-name {
    min-height: 34px;
    font-size: 14px;
}

.pos-product-price {
    margin-top: 8px;
    font-size: 15px;
}

.pos-cart-header {
    padding: 13px 16px;
}

.pos-order-types {
    padding: 8px 10px;
}

.pos-order-type {
    height: 37px;
}

.pos-cart-items {
    min-height: 0;
    max-height: none;
    flex: 1;
}

.pos-cart-item {
    padding: 9px 11px;
    margin-bottom: 7px;
}

.pos-cart-item-bottom {
    margin-top: 8px;
}

.pos-quantity-control button {
    width: 29px;
    height: 29px;
}

.pos-total-area {
    padding: 12px 15px;
}

.pos-grand-total {
    font-size: 20px;
    margin-bottom: 9px;
}

.pos-hold-button {
    height: 38px;
}

.pos-payment-button {
    height: 48px;
}

/* =========================================================
   POS SHIFT MODAL
   ========================================================= */

.pos-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pos-modal {
    width: 100%;
    max-width: 470px;
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

    .pos-modal h2 {
        margin-top: 0;
        color: #2c3e50;
    }

    .pos-modal label {
        display: block;
        margin-top: 15px;
        margin-bottom: 5px;
        font-weight: 700;
    }

    .pos-modal textarea.form-control {
        height: auto;
        padding-top: 10px;
    }

.pos-modal-buttons {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pos-modal-cancel,
.pos-modal-confirm {
    border: none;
    border-radius: 8px;
    height: 46px;
    font-weight: 800;
}

.pos-modal-cancel {
    background: #ededed;
    color: #333;
}

.pos-modal-confirm {
    background: #d6a85f;
    color: white;
}

    .pos-modal-confirm.full {
        width: 100%;
        margin-top: 22px;
    }

.shift-summary-modal {
    max-width: 520px;
}

.shift-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
}

    .shift-summary-row.total {
        font-size: 17px;
        color: #2c3e50;
    }

/* =========================================================
   HELD ORDERS
   ========================================================= */

.held-orders-modal {
    max-width: 720px;
}

.held-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

    .held-orders-header h2 {
        margin-bottom: 3px;
    }

    .held-orders-header p {
        margin-top: 0;
        color: #777;
    }

.held-orders-list {
    margin-top: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.held-order-card {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
}

.held-order-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .held-order-main strong {
        color: #2c3e50;
    }

    .held-order-main small {
        color: #888;
    }

.held-order-total {
    font-size: 17px;
    font-weight: 800;
    color: #2c3e50;
}

.held-order-actions {
    display: flex;
    gap: 6px;
}

.held-open-button,
.held-cancel-button {
    border: none;
    border-radius: 7px;
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 800;
}

.held-open-button {
    background: #d6a85f;
    color: white;
}

.held-cancel-button {
    background: #fde8e8;
    color: #a52d2d;
}

.held-orders-empty {
    padding: 40px;
    text-align: center;
    color: #888;
}

.pos-success-message {
    padding: 10px 14px;
    background: #e6f5e9;
    color: #276b36;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 600;
}

.pos-warning-message {
    padding: 10px 14px;
    background: #fff0df;
    color: #8a5415;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* =========================================================
   TABLE SELECTION
   ========================================================= */

.table-selection-modal {
    max-width: 760px;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.table-card {
    min-height: 95px;
    border-radius: 12px;
    border: 2px solid transparent;
    padding: 12px;
    font-weight: 700;
}

    .table-card.available {
        background: #e8f5ea;
        border-color: #76b47f;
        color: #2f6d39;
        cursor: pointer;
    }

    .table-card.occupied {
        background: #fdeaea;
        border-color: #d88c8c;
        color: #983737;
    }

    .table-card.reserved {
        background: #fff4d9;
        border-color: #d7b45d;
        color: #856613;
    }

    .table-card.unavailable {
        background: #eeeeee;
        border-color: #cccccc;
        color: #777;
    }

.table-code {
    font-size: 22px;
    font-weight: 900;
}

.table-status {
    margin-top: 6px;
    font-size: 12px;
}

.pos-selected-table {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 12px 10px 12px;
    padding: 9px 12px;
    background: #eef4f8;
    border-radius: 8px;
    color: #2c3e50;
}

    .pos-selected-table button {
        border: none;
        background: transparent;
        color: #a4742c;
        font-size: 12px;
        font-weight: 800;
    }

/* =========================================================
   PAYMENT
   ========================================================= */

.payment-modal {
    max-width: 560px;
}

.payment-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

    .payment-modal-header h2 {
        margin-bottom: 3px;
    }

    .payment-modal-header p {
        margin-top: 0;
        color: #777;
    }

.payment-total-box {
    margin-top: 18px;
    background: #2c3e50;
    color: white;
    border-radius: 12px;
    padding: 17px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .payment-total-box span {
        font-size: 14px;
    }

    .payment-total-box strong {
        font-size: 25px;
    }

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.payment-method-button {
    min-height: 82px;
    background: white;
    border: 2px solid #e4e4e4;
    border-radius: 11px;
    font-weight: 800;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

    .payment-method-button:hover {
        border-color: #d6a85f;
    }

    .payment-method-button.active {
        background: #fff7ea;
        border-color: #d6a85f;
        color: #9b6920;
    }

.payment-method-icon {
    font-size: 20px;
}

.payment-input-area {
    margin-top: 18px;
}

    .payment-input-area label {
        display: block;
        font-weight: 700;
        margin-bottom: 6px;
    }

.payment-amount-input {
    font-size: 20px;
    font-weight: 700;
}

.payment-change-box {
    margin-top: 12px;
    background: #e9f6eb;
    color: #286a38;
    border-radius: 9px;
    padding: 13px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .payment-change-box strong {
        font-size: 20px;
    }

.payment-success-modal {
    max-width: 450px;
    text-align: center;
}

.payment-success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f4e7;
    color: #2d7a40;
    font-size: 38px;
    font-weight: 900;
}

.payment-success-order {
    margin-bottom: 20px;
    color: #777;
    font-weight: 700;
}

/* =========================================================
   PRODUCT MODIFIERS
   ========================================================= */

.modifier-modal {
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
}

.modifier-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

    .modifier-header h2 {
        margin-bottom: 3px;
    }

    .modifier-header p {
        margin-top: 0;
        color: #777;
    }

.modifier-group {
    margin-top: 20px;
}

.modifier-group-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

    .modifier-group-header span {
        font-size: 12px;
        color: #888;
    }

.modifier-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.modifier-option {
    min-height: 55px;
    padding: 9px 12px;
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 9px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

    .modifier-option small {
        color: #8a652a;
        white-space: nowrap;
    }

    .modifier-option.selected {
        background: #fff6e7;
        border-color: #d6a85f;
        color: #96661e;
    }

.modifier-notes {
    margin-top: 20px;
}

    .modifier-notes label {
        display: block;
        font-weight: 700;
        margin-bottom: 6px;
    }

.cart-modifier-text {
    font-size: 11px;
    color: #9b6d29;
    margin-top: 3px;
}

.cart-note-text {
    font-size: 11px;
    color: #777;
    font-style: italic;
    margin-top: 2px;
}

/* =========================================================
   LITTLE CAPPADOCIA 80MM RECEIPT
   ========================================================= */

.receipt-screen {
    min-height: 100vh;
    padding: 25px;
    background: #ececec;
}

.receipt-screen-actions {
    max-width: 360px;
    margin: 0 auto 15px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.receipt-back-button,
.receipt-print-button {
    height: 44px;
    border: none;
    border-radius: 8px;
    font-weight: 800;
}

.receipt-back-button {
    background: #2c3e50;
    color: white;
}

.receipt-print-button {
    background: #d6a85f;
    color: white;
}

.receipt-loading {
    max-width: 360px;
    margin: auto;
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
}


/* =========================================================
   RECEIPT PAPER
   ========================================================= */

.receipt-paper {
    width: 80mm;
    max-width: 100%;
    margin: 0 auto;
    background: white;
    color: #000;
    padding: 5mm;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}


/* BRAND */

.receipt-brand {
    text-align: center;
}

.receipt-brand-name {
    font-size: 19px;
    font-weight: 900;
}

.receipt-brand-subtitle {
    font-size: 11px;
    margin-top: 2px;
}

.receipt-address {
    font-size: 10px;
    margin-top: 4px;
}


/* SEPARATOR */

.receipt-separator {
    width: 100%;
    overflow: hidden;
    margin: 7px 0;
    white-space: nowrap;
    text-align: center;
}


/* INFO */

.receipt-info-row,
.receipt-total-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

    .receipt-info-row span:last-child,
    .receipt-info-row strong:last-child {
        text-align: right;
    }


/* ITEMS */

.receipt-item {
    margin-bottom: 8px;
}

.receipt-item-name {
    font-weight: 900;
}

.receipt-item-price-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.receipt-modifier {
    padding-left: 12px;
    font-size: 10px;
}

.receipt-note {
    padding-left: 12px;
    font-size: 10px;
    font-style: italic;
}


/* TOTAL */

.receipt-grand-total {
    display: flex;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 900;
    margin-top: 5px;
}


/* FOOTER */

.receipt-footer {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 4px;
}

    .receipt-footer strong {
        display: block;
        font-size: 15px;
        margin-bottom: 4px;
    }


/* =========================================================
   PRINT MODE
   ========================================================= */

@media print {

    @page {
        size: 80mm auto;
        margin: 0;
    }

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }

    .lc-sidebar,
    .lc-topbar,
    .receipt-screen-actions {
        display: none !important;
    }

    .lc-content {
        padding: 0 !important;
    }

    .receipt-screen {
        min-height: 0;
        padding: 0 !important;
        margin: 0 !important;
        background: white !important;
    }

    .receipt-paper {
        width: 80mm;
        margin: 0 !important;
        padding: 4mm;
        box-shadow: none !important;
    }
}

.payment-success-actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

    .payment-success-actions button {
        width: 100%;
    }

/* =========================================================
   PAYMENT SUCCESS ACTIONS
   ========================================================= */

.payment-success-actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

    .payment-success-actions button {
        width: 100%;
        min-height: 46px;
    }

/* =========================================================
   USERS PAGE
   ========================================================= */

.users-page {
    padding: 10px 5px 30px 5px;
}

.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

    .users-header h1 {
        margin: 0;
        font-size: 34px;
        color: #263f54;
    }

    .users-header p {
        margin: 4px 0 0 0;
        color: #777;
    }

.users-primary-button {
    min-height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: 8px;
    background: #d9aa59;
    color: white;
    font-weight: 800;
}

.users-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

    .users-table th,
    .users-table td {
        padding: 15px;
        border-bottom: 1px solid #eeeeee;
        text-align: left;
    }

    .users-table th {
        background: #f8f6f1;
        color: #263f54;
        font-size: 13px;
    }

.users-actions-column {
    width: 310px;
}

.users-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.users-small-button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: white;
    font-size: 11px;
    font-weight: 800;
}

.users-danger-button {
    color: #b32d2d;
}

.users-success-button {
    color: #238548;
}

.users-role-badge {
    display: inline-block;
    padding: 5px 9px;
    background: #edf1f4;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.users-status-active {
    color: #238548;
    font-weight: 800;
}

.users-status-inactive {
    color: #b32d2d;
    font-weight: 800;
}

.users-error {
    padding: 10px 12px;
    margin-top: 10px;
    border-radius: 7px;
    background: #fff0f0;
    color: #b52d2d;
}

.users-modal {
    width: min(520px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 14px;
    padding: 24px;
}

.users-password-modal {
    width: min(460px, 92vw);
}

.users-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

    .users-modal-header h2 {
        margin: 0;
        color: #263f54;
    }

    .users-modal-header p {
        margin: 4px 0 0 0;
        color: #777;
    }

.users-form {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

    .users-form label {
        margin-top: 7px;
        font-weight: 700;
    }

.users-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.users-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

@media (max-width: 900px) {

    .users-card {
        overflow-x: auto;
    }

    .users-table {
        min-width: 800px;
    }
}

/* =========================================================
   PURCHASES
   ========================================================= */

.purchase-page {
    padding: 18px 18px 36px 18px;
}

.purchase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

    .purchase-header h1 {
        margin: 0;
        color: #263f54;
        font-size: 34px;
        font-weight: 800;
    }

    .purchase-header p {
        margin: 5px 0 0 0;
        color: #777;
    }

.purchase-primary-button,
.purchase-secondary-button {
    border: none;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

.purchase-primary-button {
    min-height: 46px;
    padding: 0 22px;
    background: #d9aa59;
    color: white;
}

.purchase-secondary-button {
    min-height: 40px;
    padding: 0 16px;
    background: #edf1f4;
    color: #263f54;
}

.purchase-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eeeeee;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.purchase-table {
    width: 100%;
    border-collapse: collapse;
}

    .purchase-table th,
    .purchase-table td {
        padding: 14px 16px;
        border-bottom: 1px solid #eeeeee;
        text-align: left;
        vertical-align: middle;
    }

    .purchase-table th {
        background: #f8f6f1;
        color: #263f54;
        font-size: 12px;
        font-weight: 800;
    }

.purchase-empty {
    text-align: center !important;
    color: #777;
    padding: 36px !important;
}

.purchase-small-button {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: white;
    font-weight: 800;
    cursor: pointer;
}

.purchase-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

    .purchase-status.draft {
        background: #fff3cf;
        color: #8a6519;
    }

    .purchase-status.posted {
        background: #e7f6ec;
        color: #237a43;
    }

    .purchase-status.cancelled {
        background: #fdeaea;
        color: #b32d2d;
    }

.purchase-error {
    padding: 12px 14px;
    margin: 12px 0;
    border-radius: 8px;
    background: #fff0f0;
    color: #b52d2d;
}


/* =========================================================
   PURCHASE MODAL
   ========================================================= */

.purchase-modal {
    width: min(1180px, 94vw);
    max-height: 92vh;
    overflow-y: auto;
    background: white;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.purchase-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
}

    .purchase-modal-header h2 {
        margin: 0;
        color: #263f54;
        font-size: 28px;
        font-weight: 800;
    }

    .purchase-modal-header p {
        margin: 5px 0 0 0;
        color: #777;
        font-size: 14px;
    }


/* =========================================================
   FORM
   ========================================================= */

.purchase-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}

.purchase-form-field {
    margin-top: 12px;
}

    .purchase-form-field label,
    .purchase-line-row label {
        display: block;
        margin-bottom: 6px;
        color: #263f54;
        font-size: 12px;
        font-weight: 800;
    }

    .purchase-form-field .pos-input,
    .purchase-line-row .pos-input {
        width: 100%;
        min-width: 0;
        height: 42px;
        padding: 8px 10px;
        border: 1px solid #d9dde1;
        border-radius: 8px;
        background: white;
        box-sizing: border-box;
        font-size: 14px;
    }

    .purchase-form-field textarea.pos-input {
        min-height: 72px;
        height: auto;
        resize: vertical;
    }


/* =========================================================
   ITEMS
   ========================================================= */

.purchase-lines-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    margin-bottom: 12px;
}

    .purchase-lines-header h3 {
        margin: 0;
        color: #263f54;
        font-size: 23px;
        font-weight: 800;
    }

.purchase-lines {
    display: grid;
    gap: 10px;
}


/* =========================================================
   PURCHASE LINE
   IMPORTANT: FIXES UNIT / PRICE OVERLAP
   ========================================================= */

.purchase-line-row {
    display: grid;
    grid-template-columns: minmax(260px, 2.3fr) minmax(100px, 0.8fr) minmax(170px, 1.2fr) minmax(155px, 1.1fr) minmax(145px, 1fr) 48px;
    gap: 14px;
    align-items: end;
    padding: 14px;
    border: 1px solid #e7e9ec;
    border-radius: 12px;
    background: #fafbfc;
}

.purchase-line-product {
    min-width: 0;
}

.purchase-line-row > div {
    min-width: 0;
}

.purchase-line-row select,
.purchase-line-row input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.purchase-line-total {
    min-height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 8px;
}

    .purchase-line-total strong {
        color: #263f54;
        font-size: 16px;
        white-space: nowrap;
    }

.purchase-line-delete {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2px;
}

.purchase-delete-button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 9px;
    background: #fff0f0;
    color: #b52d2d;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
}


/* =========================================================
   TOTAL
   ========================================================= */

.purchase-summary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 34px;
    margin-top: 22px;
    padding: 18px 4px 10px 4px;
    border-top: 2px solid #eeeeee;
    font-size: 18px;
}

    .purchase-summary span {
        color: #444;
        font-weight: 700;
    }

    .purchase-summary strong {
        color: #263f54;
        font-size: 28px;
        font-weight: 900;
    }


/* =========================================================
   ACTIONS
   ========================================================= */

.purchase-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 12px;
    margin-top: 26px;
}

    .purchase-modal-actions button {
        min-height: 54px;
        border-radius: 9px;
        font-size: 16px;
        font-weight: 900;
    }


/* =========================================================
   DETAIL VIEW
   ========================================================= */

.purchase-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
}

    .purchase-detail-grid > div {
        padding: 14px;
        border-radius: 10px;
        background: #f8f6f1;
    }

    .purchase-detail-grid span {
        display: block;
        margin-bottom: 5px;
        color: #777;
        font-size: 11px;
        font-weight: 700;
    }

    .purchase-detail-grid strong {
        color: #263f54;
    }

.purchase-detail-remarks {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
}

    .purchase-detail-remarks strong {
        display: block;
        margin-bottom: 6px;
    }

.purchase-detail-lines {
    box-shadow: none;
    border: 1px solid #eeeeee;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .purchase-modal {
        width: 96vw;
    }

    .purchase-line-row {
        grid-template-columns: minmax(220px, 2fr) minmax(90px, 0.8fr) minmax(140px, 1fr) minmax(140px, 1fr);
        gap: 10px;
    }

    .purchase-line-total {
        grid-column: 3;
    }

    .purchase-line-delete {
        grid-column: 4;
    }
}


/* =========================================================
   SMALL TABLET / MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .purchase-header {
        align-items: stretch;
        flex-direction: column;
    }

    .purchase-primary-button {
        width: 100%;
    }

    .purchase-form-grid {
        grid-template-columns: 1fr;
    }

    .purchase-line-row {
        grid-template-columns: 1fr 1fr;
    }

    .purchase-line-product {
        grid-column: 1 / -1;
    }

    .purchase-line-total {
        grid-column: 1;
    }

    .purchase-line-delete {
        grid-column: 2;
        justify-content: flex-end;
    }

    .purchase-detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    .purchase-modal-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   INVENTORY
   ========================================================= */

.inventory-page {
    padding: 18px 18px 36px 18px;
}

.inventory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

    .inventory-header h1 {
        margin: 0;
        color: #263f54;
        font-size: 34px;
        font-weight: 800;
    }

    .inventory-header p {
        margin: 5px 0 0 0;
        color: #777;
    }

.inventory-primary-button {
    min-height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: #d9aa59;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.inventory-toolbar {
    margin-bottom: 15px;
}

.inventory-search {
    width: min(420px, 100%);
}

.inventory-stock {
    font-weight: 900;
}

    .inventory-stock.positive {
        color: #237a43;
    }

    .inventory-stock.zero {
        color: #8a6519;
    }

    .inventory-stock.negative {
        color: #b52d2d;
    }

.inventory-movement-in {
    color: #237a43;
    font-weight: 900;
}

.inventory-movement-out {
    color: #b52d2d;
    font-weight: 900;
}

.inventory-current-stock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0;
    padding: 16px;
    border-radius: 10px;
    background: #f8f6f1;
}

    .inventory-current-stock span {
        color: #777;
        font-size: 12px;
        font-weight: 700;
    }

    .inventory-current-stock strong {
        color: #263f54;
        font-size: 24px;
    }

.inventory-adjustment-modal {
    width: min(620px, 94vw);
    max-height: 92vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: 16px;
    background: white;
}

.inventory-adjustment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.inventory-adjustment-help {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8f6f1;
    color: #666;
    font-size: 12px;
}

@media (max-width: 760px) {

    .inventory-header {
        align-items: stretch;
        flex-direction: column;
    }

    .inventory-primary-button {
        width: 100%;
    }

    .inventory-adjustment-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SUPPLIERS
   ========================================================= */

.supplier-page {
    padding: 18px 18px 36px 18px;
}

.supplier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

    .supplier-header h1 {
        margin: 0;
        color: #263f54;
        font-size: 34px;
        font-weight: 800;
    }

    .supplier-header p {
        margin: 5px 0 0 0;
        color: #777;
    }

.supplier-primary-button {
    min-height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: #d9aa59;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.supplier-toolbar {
    margin-bottom: 15px;
}

.supplier-search {
    width: min(420px, 100%);
}

.supplier-modal {
    width: min(720px, 94vw);
    max-height: 92vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: 16px;
    background: white;
}

.supplier-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.supplier-active-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f6f1;
}

    .supplier-active-row input {
        width: 18px;
        height: 18px;
    }

    .supplier-active-row label {
        margin: 0;
        color: #263f54;
        font-weight: 700;
    }

.supplier-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

    .supplier-status.active {
        background: #e7f6ec;
        color: #237a43;
    }

    .supplier-status.inactive {
        background: #fdeaea;
        color: #b52d2d;
    }

@media (max-width: 760px) {

    .supplier-header {
        flex-direction: column;
        align-items: stretch;
    }

    .supplier-primary-button {
        width: 100%;
    }

    .supplier-form-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   INVENTORY ITEM SETUP
   ========================================================= */

.inventory-item-page {
    padding: 18px 18px 36px 18px;
}

.inventory-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

    .inventory-item-header h1 {
        margin: 0;
        color: #263f54;
        font-size: 34px;
        font-weight: 800;
    }

    .inventory-item-header p {
        margin: 5px 0 0 0;
        color: #777;
    }

.inventory-item-primary-button {
    min-height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: #d9aa59;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.inventory-item-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.inventory-item-search {
    width: min(420px, 100%);
}

.inventory-item-type-filter {
    width: 220px;
}

.inventory-item-modal {
    width: min(920px, 95vw);
    max-height: 93vh;
    overflow-y: auto;
    padding: 25px;
    border-radius: 16px;
    background: white;
}

.inventory-item-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
}

.inventory-item-highlight {
    margin-top: 18px;
    padding: 14px;
    border-radius: 10px;
    background: #f8f6f1;
}

.inventory-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.inventory-code-button {
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid #d6dadd;
    border-radius: 8px;
    background: white;
    color: #263f54;
    font-weight: 800;
    cursor: pointer;
}

.inventory-category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.inventory-new-category {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid #e6e8ea;
    border-radius: 10px;
    background: #fafbfc;
}

.inventory-category-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

    .inventory-category-actions button {
        min-width: 140px;
        min-height: 42px;
    }

.inventory-unit-section {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #e5e8ea;
    border-radius: 12px;
    background: #fafbfc;
}

    .inventory-unit-section h3 {
        margin: 0;
        color: #263f54;
    }

.inventory-unit-help {
    margin-top: 5px;
    color: #777;
    font-size: 12px;
    line-height: 1.6;
}

.inventory-item-unit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.inventory-item-example {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff8e8;
    color: #6f5a27;
    font-size: 12px;
}

.inventory-item-checks {
    display: flex;
    gap: 30px;
    margin-top: 18px;
    padding: 13px;
    border-radius: 8px;
    background: #f8f6f1;
}

    .inventory-item-checks label {
        display: flex;
        align-items: center;
        gap: 7px;
        font-weight: 700;
        color: #263f54;
    }

    .inventory-item-checks input {
        width: 18px;
        height: 18px;
    }

.inventory-type {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

    .inventory-type.ingredient {
        background: #e7f6ec;
        color: #237a43;
    }

    .inventory-type.semi {
        background: #edf2fb;
        color: #345f9d;
    }

    .inventory-type.packaging {
        background: #fff3cf;
        color: #8a6519;
    }

@media (max-width: 800px) {

    .inventory-item-header {
        flex-direction: column;
        align-items: stretch;
    }

    .inventory-item-primary-button {
        width: 100%;
    }

    .inventory-item-toolbar {
        flex-direction: column;
    }

    .inventory-item-type-filter {
        width: 100%;
    }

    .inventory-item-form-grid {
        grid-template-columns: 1fr;
    }

    .inventory-item-unit-grid {
        grid-template-columns: 1fr;
    }

    .inventory-category-row {
        grid-template-columns: 1fr;
    }
}