html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #202622;
    background: #f7f5f0;
}

:root {
    --butcher-ink: #202622;
    --butcher-surface: #ffffff;
    --butcher-background: #f7f5f0;
    --butcher-border: #e3e0d8;
    --butcher-green: #1f7a4d;
    --butcher-green-dark: #155b38;
    --butcher-green-light: #e8f3eb;
    --butcher-amber: #d99a22;
    --butcher-red: #c94c4c;
}

a, .btn-link {
    color: var(--butcher-green);
}

.btn-primary {
    color: #fff;
    background-color: var(--butcher-green);
    border-color: var(--butcher-green);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--butcher-green-dark);
    border-color: var(--butcher-green-dark);
}

.btn-success {
    color: #fff;
    background-color: var(--butcher-green);
    border-color: var(--butcher-green);
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--butcher-green-dark);
    border-color: var(--butcher-green-dark);
}

.btn-warning {
    color: #2f2410;
    background-color: var(--butcher-amber);
    border-color: var(--butcher-amber);
}

.btn-warning:hover,
.btn-warning:focus {
    color: #2f2410;
    background-color: #bf8114;
    border-color: #bf8114;
}

.btn-danger {
    background-color: var(--butcher-red);
    border-color: var(--butcher-red);
}

.btn-outline-primary {
    color: var(--butcher-green);
    border-color: #b7cbbd;
    background: #fff;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff;
    background-color: var(--butcher-green);
    border-color: var(--butcher-green);
}

.modal-content,
.cart-panel,
.cart-panel2 {
    border-color: var(--butcher-border) !important;
    box-shadow: 0 10px 28px rgba(29, 43, 33, 0.08);
}

.modal-header {
    border-bottom-color: var(--butcher-border);
}

.history-table-hint {
    display: none;
}

.history-date-mobile {
    display: none;
}

.history-orders-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.history-orders-table {
    min-width: 760px;
}

.product-order-dialog .modal-content {
    overflow: hidden;
    border: 2px solid var(--butcher-green) !important;
    border-radius: 0.9rem;
}

.product-order-header {
    align-items: flex-start;
    padding: 1rem 1.1rem;
    color: #fff;
    background: var(--butcher-green-dark);
}

.product-order-title-wrap {
    min-width: 0;
    padding-right: 0.75rem;
}

.product-order-header .product-order-label {
    display: block;
    margin-bottom: 0.2rem;
    color: #c6e7d2;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.product-order-header h5 {
    margin: 0;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.product-order-header .btn-close {
    flex: 0 0 auto;
    filter: brightness(0) invert(1);
}

.modal-footer {
    border-top-color: var(--butcher-border);
}

.table {
    --bs-table-striped-bg: #f3f6f3;
    --bs-table-border-color: var(--butcher-border);
}

.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;
}

.pos-shell {
    display: flex;
    min-height: 100vh;
    background: var(--butcher-background);
}

.pos-sidebar {
    position: sticky;
    top: 0;
    width: 64px;
    height: 100vh;
    flex: 0 0 64px;
    padding: 0.55rem 0.45rem;
    color: #e9f5ee;
    background: #16211c;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.35rem 0.45rem 1.5rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.1;
}

.sidebar-brand small {
    display: block;
    margin-top: 0.25rem;
    color: #abd0bb;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sidebar-brand-mark {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 0.65rem;
    background: #27a467;
    font-size: 1.25rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-section-label {
    padding: 0.65rem 0.7rem 0.35rem;
    color: #86b89b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.8rem;
    padding: 0.65rem 0.35rem;
    border: 0;
    border-radius: 0.6rem;
    color: #dceee3;
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    text-align: left;
}

.sidebar-nav-item:hover,
.sidebar-nav-item:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav-item.active {
    color: #fff;
    background: var(--butcher-green);
    font-weight: 700;
}

.sidebar-nav-item span {
    width: 1.35rem;
    color: #8de0b2;
    font-size: 1.1rem;
    text-align: center;
}

.chat-nav-item {
    position: relative;
}

.chat-unread-badge {
    position: absolute;
    top: .25rem;
    right: .18rem;
    display: grid;
    width: auto !important;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 .25rem;
    place-items: center;
    border: 2px solid #16211c;
    border-radius: 999px;
    color: #fff !important;
    background: #d97706;
    font-size: .62rem !important;
    font-weight: 800;
    line-height: 1;
}

.sidebar-label {
    display: none;
}

.sidebar-divider {
    display: block;
    height: 1px;
    margin: 0.2rem 0.25rem;
    background: rgba(255, 255, 255, 0.15);
}

.staff-chat-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(10, 18, 14, .48);
    backdrop-filter: blur(2px);
}

.staff-chat-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1090;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    width: min(430px, 100vw);
    height: 100dvh;
    color: #1c2922;
    background: #fffdf7;
    box-shadow: -12px 0 36px rgba(10, 31, 21, .22);
}

.staff-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem;
    color: #fff;
    background: #1f513b;
}

.staff-chat-header h2 {
    margin: .15rem 0 0;
    font-size: 1.35rem;
}

.staff-chat-kicker {
    color: #a9d9bf;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.staff-chat-close {
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: .7rem;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    font-size: 1.75rem;
    line-height: 1;
}

.staff-chat-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    padding: .8rem 1.25rem;
    border-bottom: 1px solid #dfddd4;
    background: #f6f1e6;
}

.staff-chat-identity label {
    color: #58665f;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.staff-chat-device-name {
    min-width: 0;
    padding: .55rem .7rem;
    overflow: hidden;
    border: 1px solid #d6d3ca;
    border-radius: .45rem;
    color: #1f513b;
    background: rgba(255, 255, 255, .68);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-chat-messages {
    overflow-y: auto;
    padding: 1rem 1.25rem;
    background: #f9f6ef;
}

.staff-chat-empty {
    display: grid;
    min-height: 100%;
    place-content: center;
    gap: .25rem;
    color: #748078;
    text-align: center;
}

.staff-chat-message {
    width: fit-content;
    max-width: 88%;
    margin: 0 0 .8rem;
    padding: .75rem .85rem;
    border: 1px solid #dedbd2;
    border-radius: .2rem 1rem 1rem 1rem;
    background: #fff;
    box-shadow: 0 2px 7px rgba(28, 41, 34, .05);
}

.staff-chat-message.is-mine {
    margin-left: auto;
    border-color: #bad9c8;
    border-radius: 1rem .2rem 1rem 1rem;
    background: #e7f3eb;
}

.staff-chat-message-meta {
    display: flex;
    gap: .75rem;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: .3rem;
}

.staff-chat-message-meta strong {
    color: #245c43;
    font-size: .82rem;
}

.staff-chat-message-meta time {
    color: #7b857f;
    font-size: .68rem;
    white-space: nowrap;
}

.staff-chat-message p {
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.pilot-staff-chat { grid-template-rows: auto minmax(0, 1fr) auto; }
.pilot-staff-chat .staff-chat-messages { background: #fffdf8; }
.pilot-staff-chat .staff-chat-message {
    max-width: 86%;
    border: 0;
    border-radius: 1rem 1rem 1rem .25rem;
    background: #f0f1ec;
    box-shadow: none;
}
.pilot-staff-chat .staff-chat-message.is-mine {
    border-radius: 1rem 1rem .25rem 1rem;
    background: #dceedf;
}
.pilot-staff-chat .staff-chat-message-meta { flex-wrap: wrap; gap: .15rem .75rem; }
.pilot-staff-chat .staff-chat-message-meta strong { overflow-wrap: anywhere; }
.pilot-staff-chat .staff-chat-composer textarea { border-radius: 1rem; }
.pilot-staff-chat .staff-chat-composer-footer { justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
.pilot-chat-attach { margin-inline-end: auto; }
#pilot-chat-image-input:focus-visible + .pilot-chat-attach { outline: 2px solid #1f513b; outline-offset: 3px; }
#pilot-chat-image-input:disabled + .pilot-chat-attach { opacity: .55; pointer-events: none; }
.pilot-chat-image {
    display: block;
    max-width: 100%;
    max-height: 17rem;
    object-fit: contain;
    border-radius: .65rem;
}
.pilot-staff-chat .staff-chat-message p + a .pilot-chat-image { margin-top: .45rem; }
.pilot-chat-preview { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .65rem; }
.pilot-chat-preview .pilot-chat-image { max-width: 60%; max-height: 6rem; }
.pilot-private-screenshot-trigger {
    display: block;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: .65rem;
    background: transparent;
    cursor: zoom-in;
}
.staff-chat-message p + .pilot-private-screenshot-trigger { margin-top: .45rem; }
.pilot-private-screenshot-trigger:focus-visible { outline: 2px solid #1f513b; outline-offset: 3px; }
.pilot-private-screenshot-viewer {
    width: max-content;
    max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 2rem);
    padding: 0;
    overflow: hidden;
    border: 1px solid #bad9c8;
    border-radius: .85rem;
    background: #fffdf8;
}
.pilot-private-screenshot-viewer[open] { display: flex; flex-direction: column; }
.pilot-private-screenshot-viewer::backdrop { background: rgba(17, 34, 25, .65); }
.pilot-private-screenshot-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .55rem .8rem;
    border-bottom: 1px solid #bad9c8;
}
.pilot-private-screenshot-toolbar .btn { min-height: 44px; }
.pilot-private-screenshot-body { overflow: auto; overscroll-behavior: contain; }
.pilot-private-screenshot-body img { display: block; max-width: none; }

.staff-chat-composer {
    padding: 1rem 1.25rem 1.15rem;
    border-top: 1px solid #dfddd4;
    background: #fff;
}

.staff-chat-composer textarea {
    resize: none;
}

.staff-chat-composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .65rem;
}

.staff-chat-composer-footer small {
    color: #7b857f;
}

.staff-chat-composer-footer .btn {
    min-height: 2.75rem;
    padding-inline: 1.2rem;
}

.staff-chat-error {
    margin-bottom: .65rem;
    padding: .6rem .75rem;
    border-radius: .55rem;
    color: #842029;
    background: #f8d7da;
    font-size: .82rem;
}

.pos-main {
    min-width: 0;
    flex: 1;
    padding: 1.25rem;
}

.pos-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.store-name-highlight {
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #c7dfcf;
    border-left: 6px solid var(--butcher-green);
    border-radius: 0.85rem;
    background: linear-gradient(100deg, #e8f3eb 0%, #fff 78%);
    box-shadow: 0 5px 16px rgba(29, 43, 33, 0.08);
}

.store-brand-logo {
    display: block;
    width: 5.25rem;
    height: 5.25rem;
    flex: 0 0 5.25rem;
    object-fit: contain;
    border-radius: 0.5rem;
}

.store-name-label {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--butcher-green-dark);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.pos-page-heading h1 {
    margin: 0;
    color: var(--butcher-ink);
    color: var(--butcher-green-dark);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 850;
    letter-spacing: -0.025em;
}

@media (max-width: 420px) {
    .store-name-highlight {
        gap: 0.7rem;
        padding: 0.85rem;
    }

    .store-brand-logo {
        width: 4rem;
        height: 4rem;
        flex-basis: 4rem;
    }
}

.pos-page-heading p {
    margin: 0.2rem 0 0;
    color: #6c7e73;
    font-size: 0.9rem;
}

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;
}





.category-btn {
    min-height: 60px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(29, 43, 33, 0.1);
}

.category-btn.btn-danger {
    background: #a94f43;
    border-color: #a94f43;
}

.category-btn.btn-danger:hover,
.category-btn.btn-danger:focus {
    background: #8d4036;
    border-color: #8d4036;
}

.category-btn.btn-warning {
    color: #2f2410;
    background: #d8a646;
    border-color: #d8a646;
}

.sub-btn {
    min-height: 60px;
    font-size: .80rem;
    border-radius: 10px;
    padding: 4px;
    white-space: normal;
    box-shadow: 0 2px 7px rgba(29, 43, 33, 0.05);
}

.cart-panel {
    background: var(--butcher-surface);
    border: 1px solid var(--butcher-border);
    border-radius: 16px;
    padding: 15px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.recent-sales-table .recent-sale-utang td {
    color: #b42318 !important;
}

.recent-sales-table .recent-sale-gcash td {
    color: #155eef !important;
}

.recent-sales-table .recent-sale-cash td {
    color: #171717 !important;
}

.current-order-table-wrap {
    width: 100%;
    overflow-x: hidden;
}

.current-order-table {
    width: 100%;
    table-layout: fixed;
    margin-bottom: 0;
}

.current-order-table th,
.current-order-table td {
    padding: 0.45rem 0.25rem;
    vertical-align: middle;
}

.current-order-table th:first-child,
.current-order-product {
    width: 36%;
}

.current-order-table th:nth-child(2),
.current-order-quantity {
    width: 14%;
    text-align: center;
}

.current-order-table th:nth-child(3) {
    width: 32%;
}

.current-order-action-heading,
.current-order-action {
    width: 18%;
    text-align: center;
}

.current-order-product-name {
    display: block;
    overflow-wrap: anywhere;
}

.current-order-product small {
    display: block;
    margin-top: 0.15rem;
    color: #6c7e73;
    font-size: 0.72rem;
    white-space: nowrap;
}

.current-order-remove {
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    place-items: center;
    font-size: 1.35rem;
    line-height: 1;
}


.cart-panel2 {
    background: var(--butcher-surface);
    border: 1px solid var(--butcher-border);
    border-radius: 16px;
    padding: 15px;
    min-height: 100;
    display: flex;
    flex-direction: column;
}

/* The checkout needs room for payment actions on tablet point-of-sale screens. */
body:has(.checkout-modal) {
    overflow: hidden;
}

.checkout-modal {
    width: calc(100% - 2rem);
    max-width: 620px;
    margin: 1rem auto;
}

.checkout-modal .modal-content {
    border: 1px solid #dbe7df;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 18px 48px rgb(12 37 25 / 24%);
}

.checkout-modal .modal-title {
    color: #153b2b;
    font-weight: 700;
}

.checkout-modal .modal-header,
.checkout-modal .modal-footer {
    border-color: #e5ede7;
}

.checkout-modal .modal-header,
.checkout-body,
.checkout-actions {
    padding: .6rem .75rem;
}

.checkout-body,
.checkout-summary {
    display: grid;
    gap: .5rem;
}

.checkout-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-total-card,
.checkout-change-card {
    border-radius: .65rem;
    padding: .4rem .65rem;
    display: grid;
    overflow-wrap: anywhere;
}

.checkout-summary strong {
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
}

.checkout-body .form-label {
    margin-bottom: .2rem;
    font-weight: 600;
}

.checkout-body .form-control,
.checkout-body .form-select {
    min-height: 44px;
    font-size: 1rem;
    border-color: #cbdad0;
    border-radius: .6rem;
}

.checkout-total-card {
    color: #fff;
    background: #194b37;
}

.checkout-change-card {
    color: var(--butcher-green-dark);
    background: var(--butcher-green-light);
}

.checkout-cash-denominations {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .4rem;
    margin-top: .5rem;
}

.checkout-cash-button {
    min-height: 44px;
    padding-inline: .1rem;
    border: 1px solid #cbdad0;
    border-radius: .6rem;
    color: #194b37;
    background: #f5f9f6;
    font-size: .875rem;
    font-weight: 700;
}

.checkout-cash-button:hover {
    background: #e8f3eb;
    border-color: #9bbca7;
    color: #194b37;
}

.checkout-cash-button[aria-pressed="true"] {
    color: #fff;
    background: #194b37;
    border-color: #194b37;
}

.checkout-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
}

.checkout-actions > * {
    margin: 0;
}

.checkout-confirmation {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: .5rem;
}

.checkout-confirmation .btn {
    min-height: 44px;
    font-weight: 700;
}

@media (min-width: 580px) {
    .checkout-body {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    }

    .checkout-summary {
        grid-column: 1 / -1;
    }
}

@media (max-height: 420px) and (min-width: 580px) {
    .checkout-modal {
        margin-block: .35rem;
    }
}

.checkout-actions .alert {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.profit-summary {
    border: 1px solid #dee2e6;
    border-radius: .75rem;
    overflow: hidden;
}

.profit-summary thead {
    background: #f8f9fa;
}

.profit-summary-net th,
.profit-summary-net td {
    background: var(--butcher-green-light);
    font-weight: 700;
}


@media (max-width: 991px) {
    .pos-shell {
        display: block;
    }

    .pos-sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 0.85rem;
    }

    .sidebar-brand {
        padding: 0.2rem 0.3rem 0.8rem;
    }

    .sidebar-nav {
        flex-flow: row wrap;
    }

    .sidebar-section-label {
        display: none;
    }

    .sidebar-nav-item {
        width: auto;
        min-height: 2.45rem;
        padding: 0.45rem 0.65rem;
    }
}

@media (max-width: 768px) {
    .pos-main {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .category-btn {
        min-height: 55px;
        font-size: .9rem;
    }

    .sub-btn {
        min-height: 55px;
        font-size: .7rem;
    }


    .cart-panel {
        background: #fff;
        border-radius: 16px;
        padding: 16px;
        box-shadow: 0 2px 10px rgba(0,0,0,.08);
    }

        .cart-panel + .cart-panel {
            margin-top: 16px;
        }

    .table {
        font-size: .75rem;
    }

    .modal-body h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 767.98px) {
    .modal.fade.show.d-block:has(.history-orders-table) {
        position: fixed;
        inset: 0;
        overflow-y: auto;
        padding: 0.5rem;
    }

    .modal-dialog.modal-lg:has(.history-orders-table) {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .modal-dialog.modal-lg:has(.history-orders-table) .modal-content {
        max-height: calc(100dvh - 1rem);
        overflow: hidden;
        border-radius: 0.8rem;
    }

    .modal-dialog.modal-lg:has(.history-orders-table) .modal-header {
        flex: 0 0 auto;
        padding: 0.8rem 1rem;
    }

    .modal-dialog.modal-lg:has(.history-orders-table) .modal-body {
        min-height: 0;
        overflow-y: auto;
        padding: 0.75rem;
    }

    .modal-dialog.modal-lg:has(.history-orders-table) .history-summary-row {
        margin: 0 0 0.75rem;
        padding: 0.15rem 0;
    }

    .modal-dialog.modal-lg:has(.history-orders-table) .history-summary-row > [class*="col-"] {
        padding-right: 0.25rem;
        padding-left: 0.25rem;
    }

    .modal-dialog.modal-lg:has(.history-orders-table) .card-body {
        padding: 0.5rem 0.25rem !important;
    }

    .modal-dialog.modal-lg:has(.history-orders-table) .card-body h6 {
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .modal-dialog.modal-lg:has(.history-orders-table) .card-body h4 {
        font-size: clamp(0.72rem, 3.7vw, 1rem);
        white-space: nowrap;
        letter-spacing: -0.03em;
    }

    .history-orders-scroll {
        overflow-x: hidden;
    }

    .history-orders-table {
        display: table !important;
        width: 100%;
        min-width: 0;
        table-layout: fixed;
        margin-bottom: 0.5rem;
        font-size: 0.56rem;
    }

    .history-orders-table thead {
        display: table-header-group !important;
    }

    .history-orders-table tbody {
        display: table-row-group !important;
    }

    .history-orders-table tr {
        display: table-row !important;
    }

    .history-orders-table th,
    .history-orders-table td {
        display: table-cell !important;
    }

    .history-orders-table th,
    .history-orders-table td {
        padding: 0.26rem 0.08rem;
        vertical-align: middle;
    }

    .history-orders-table th,
    .history-orders-table td {
        white-space: nowrap;
    }

    .history-orders-table th:nth-child(1),
    .history-orders-table td:nth-child(1) {
        width: 5%;
    }

    .history-orders-table th:nth-child(2),
    .history-orders-table td:nth-child(2) {
        width: 8%;
    }

    .history-orders-table th:nth-child(3),
    .history-orders-table td:nth-child(3) {
        width: 18%;
    }

    .history-orders-table th:nth-child(4),
    .history-orders-table td:nth-child(4) {
        width: 10%;
    }

    .history-orders-table th:nth-child(5),
    .history-orders-table td:nth-child(5) {
        width: 16%;
    }

    .history-orders-table th:nth-child(6),
    .history-orders-table td:nth-child(6) {
        width: 16%;
    }

    .history-orders-table th:nth-child(7),
    .history-orders-table td:nth-child(7) {
        width: 14%;
    }

    .history-orders-table th:nth-child(8),
    .history-orders-table td:nth-child(8) {
        width: 13%;
    }

    .history-date-desktop {
        display: none;
    }

    .history-date-mobile {
        display: inline;
        white-space: nowrap;
    }

    .history-orders-table .btn {
        padding: 0.2rem 0.18rem;
        font-size: 0.5rem;
        white-space: nowrap;
    }
}

@media (min-width: 769px) and (max-width: 991px) {

    .sub-btn {
        min-height: 65px;
        font-size: .85rem;
    }

    .category-btn {
        min-height: 65px;
    }
}

@media (min-width: 992px) {
    .cart-panel {
        position: sticky;
        top: 20px;
    }
}

.text-red-row td {
    color: red !important;
    font-weight: bold;
}

.text-blue-row td {
    color: blue !important;
    font-weight: bold;
}

.product-catalog-modal .modal-dialog {
    max-width: min(1100px, calc(100vw - 2rem));
}

.product-catalog-header {
    color: #fff;
    background: var(--butcher-green);
}

.product-catalog-header small {
    color: #d9f2e3;
}

.product-catalog-table th {
    color: var(--butcher-ink);
    white-space: nowrap;
}

.product-inactive {
    opacity: 0.62;
}

.product-confirmation-backdrop {
    position: fixed;
    z-index: 1060;
    inset: 0;
    background: rgba(14, 27, 20, 0.55);
}

.product-editor-backdrop {
    position: fixed;
    z-index: 1060;
    inset: 0;
    background: rgba(14, 27, 20, 0.4);
}

.product-editor-dialog {
    position: fixed;
    z-index: 1065;
    top: 50%;
    left: 50%;
    width: min(620px, calc(100vw - 2rem));
    padding: 1.5rem;
    border-radius: 1rem;
    color: var(--butcher-ink);
    background: #fffdf8;
    box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
}

.product-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.inventory-editor-dialog {
    width: min(700px, calc(100vw - 2rem));
}

.expense-editor-dialog {
    width: min(620px, calc(100vw - 2rem));
}

.expense-total-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.7rem;
    color: #185f3d;
    background: #e9f5ee;
    font-weight: 700;
}

.expense-total-summary strong {
    font-size: 1.15rem;
}

.settings-section {
    padding: 1.25rem;
    border: 1px solid var(--butcher-border);
    border-radius: 0.9rem;
    background: #f8fbf8;
}

.settings-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
}

.settings-section-heading h6 {
    margin: 0 0 0.2rem;
}

.settings-section-heading p {
    margin: 0;
    color: #66736b;
    font-size: 0.9rem;
}

.settings-section-icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 0.7rem;
    color: #fff;
    background: var(--butcher-green);
    font-size: 1.2rem;
}

.settings-coming-next {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 0.75rem;
    color: #58625b;
    background: #f1f3f1;
}

.settings-coming-next h6 {
    margin-bottom: 0.35rem;
    color: var(--butcher-ink);
}

.inventory-cost-preview {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 0.65rem;
    color: #185f3d;
    background: #e9f5ee;
}

.inventory-table th,
.inventory-table td {
    white-space: nowrap;
}

.sub-inventory-header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
    margin-left: auto;
}

.sub-inventory-header-actions .btn {
    white-space: nowrap;
}

.online-session-count { display: flex; align-items: center; gap: .45rem; margin: .75rem .7rem 0; padding: .55rem .65rem; color: rgba(255,255,255,.82); font-size: .78rem; border-top: 1px solid rgba(255,255,255,.12); }
.online-session-dot { width: .5rem; height: .5rem; border-radius: 50%; background: #51c878; box-shadow: 0 0 0 .18rem rgba(81,200,120,.15); flex: 0 0 auto; }
.pos-page-heading .online-session-count { margin: 0 0 0 auto; padding: .55rem .8rem; color: var(--butcher-green); background: rgba(81,200,120,.1); border: 1px solid rgba(35,94,68,.16); border-radius: 999px; font-weight: 700; }
.pilot-online-staff { position: relative; margin-inline-start: auto; }
.pilot-header-chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 3.5rem;
    margin-inline: auto;
    padding: .55rem 1.05rem;
    border: 1px solid #1c4934;
    border-radius: 1.15rem;
    background: #1f513b;
    color: #fffdf8;
    text-align: center;
    font-weight: 750;
    line-height: 1.25;
}
.pilot-header-chat:hover { background: #173f2d; }
.pilot-header-chat:focus-visible { outline: 2px solid #1f513b; outline-offset: 3px; }
.pilot-header-chat-short-label { display: none; }
.pilot-header-chat-subtitle {
    display: block;
    margin-top: .18rem;
    color: #d5edde;
    font-size: .8rem;
    font-weight: 600;
}
.pilot-header-chat-icon {
    position: relative;
    flex: 0 0 auto;
    padding: 0 .18rem;
    border: 1.5px solid currentColor;
    border-radius: .35rem;
    font-size: .7rem;
    letter-spacing: .08em;
}
.pilot-header-chat-icon::after {
    position: absolute;
    bottom: -.25rem;
    left: .25rem;
    width: .35rem;
    height: .35rem;
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    background: inherit;
    transform: skewY(-35deg);
    content: "";
}
.pilot-pos-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
}
.pilot-pos-heading .pos-header-identity { display: contents; }
.pilot-pos-heading .store-brand-logo { grid-area: 1 / 1 / span 2; }
.pilot-pos-heading .pos-header-brand {
    grid-area: 1 / 2 / span 2;
    min-width: 0;
    overflow-wrap: anywhere;
}
.pilot-pos-heading .pos-header-account {
    grid-area: 1 / 4;
    justify-content: flex-end;
    text-align: end;
    min-width: 0;
    overflow-wrap: anywhere;
}
.pilot-pos-heading .pos-header-account > span { min-width: 0; }
.pilot-pos-heading .pilot-header-chat { grid-area: 1 / 3 / span 2; }
.pilot-header-status {
    grid-area: 2 / 4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    min-width: 0;
}
.pilot-header-status .pilot-online-staff { margin-inline-start: 0; }
@media (max-width: 950px) {
    .pilot-pos-heading {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: .35rem .7rem;
        padding: .5rem .75rem;
        margin-bottom: .75rem;
    }
    .pilot-pos-heading .store-brand-logo { grid-area: 1 / 1; }
    .pilot-pos-heading .pos-header-brand { grid-area: 1 / 2; }
    .pilot-pos-heading .pos-header-account { grid-area: 1 / 3; font-size: .8rem; }
    .pilot-header-status { grid-area: 2 / 3; }
    .pilot-pos-heading .store-name-label,
    .pilot-pos-heading .pos-header-brand > p,
    .pilot-pos-heading .pilot-header-chat-subtitle { display: none; }
    .pilot-pos-heading .store-brand-logo { width: 3rem; height: 3rem; }
    .pilot-pos-heading .pos-header-account .btn { min-height: 44px; }
    .pilot-pos-heading .pilot-header-chat {
        grid-area: 2 / 1 / auto / span 2;
        min-height: 44px;
        margin: 0;
        padding: .25rem .5rem;
        border-radius: .75rem;
        font-size: .82rem;
        justify-self: start;
    }
}
@media (max-width: 560px) {
    .pilot-pos-heading {
        grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1.15fr);
        gap: .2rem .35rem;
        padding: .4rem .5rem;
    }
    .pilot-pos-heading .pos-header-account {
        align-self: start;
        flex-direction: column;
        align-items: flex-end !important;
        gap: 0 !important;
        font-size: .75rem;
        line-height: 1.2;
    }
    .pilot-pos-heading .pos-header-account > span { max-width: 100%; }
    .pilot-pos-heading .pos-header-account .btn { font-size: .75rem; }
    .pilot-pos-heading .store-brand-logo { width: 2rem; height: 2rem; }
    .pilot-pos-heading h1 { font-size: clamp(.95rem, 4vw, 1.35rem); line-height: 1.1; }
    .pilot-pos-heading .pilot-header-chat { min-width: 44px; white-space: nowrap; }
    .pilot-pos-heading .pilot-header-chat-icon,
    .pilot-header-chat-full-label { display: none; }
    .pilot-header-chat-short-label { display: inline; }
    .pilot-header-status { gap: .25rem; }
    .pilot-header-status .online-session-count { padding: .3rem .45rem; font-size: .72rem; }
    .pilot-header-status .pilot-online-staff-list { width: min(15rem, 65vw); }
}
.pilot-online-staff summary { cursor: pointer; min-height: 44px; white-space: nowrap; }
.pilot-online-staff summary::-webkit-details-marker { display: none; }
.pilot-private-chat-contact { min-height: 44px; padding: .25rem .2rem; text-align: start; overflow-wrap: anywhere; }
.pilot-chat-notifications { position: relative; }
.pilot-chat-bell {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    min-width: 44px;
    min-height: 44px;
    padding: .35rem .55rem;
    border: 1px solid #bad9c8;
    border-radius: .8rem;
    background: #f1f8f3;
}
.pilot-chat-bell:focus-visible { outline: 2px solid #1f513b; outline-offset: 3px; }
.pilot-chat-notifications .pilot-private-chat-contact { display: block; }
.pilot-online-staff-list {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + .4rem);
    z-index: 5;
    width: min(15rem, 65vw);
    max-height: 15rem;
    overflow: auto;
    overflow-wrap: anywhere;
    padding: .75rem 1rem;
    color: var(--butcher-ink);
    background: #fffdf8;
    border: 1px solid rgba(35,94,68,.2);
    border-radius: .75rem;
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.14);
}

.product-confirmation-dialog {
    position: fixed;
    z-index: 1065;
    top: 50%;
    left: 50%;
    width: min(420px, calc(100vw - 2rem));
    padding: 1.5rem;
    border-radius: 1rem;
    color: var(--butcher-ink);
    background: #fffdf8;
    box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: translate(-50%, -50%);
}

.product-confirmation-icon {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    margin: 0 auto 0.8rem;
    place-items: center;
    border-radius: 50%;
    color: #8c2f2a;
    background: #fde7e5;
    font-size: 1.4rem;
    font-weight: 800;
}

.product-confirmation-dialog p {
    margin: 0.75rem 0 1.25rem;
    color: #58625b;
}

.product-confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .product-catalog-modal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }

    .product-catalog-table {
        min-width: 680px;
    }
}

