* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--pos-font-sans, 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    background-color: var(--body-bg);
    color: #111827;
    letter-spacing: -0.005em;
}

.btn-primary {
    background-color: var(--pos-primary);
    border-color: var(--pos-primary);
    color: #fff;
    box-shadow: 0 16px 30px -18px rgba(42, 98, 244, 0.55);
    transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--pos-primary-dark);
    border-color: var(--pos-primary-dark);
    color: #fff;
}

.btn-primary:focus,
.btn-primary:focus-visible {
    box-shadow: 0 0 0 0.28rem rgba(42, 98, 244, 0.22);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 12px 24px -16px rgba(31, 70, 200, 0.45);
}

.app {
    display: flex;
    min-height: 100vh;
}

.app-shell-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(13, 110, 253, 0.15), rgba(13, 110, 253, 0.02)) #f8fafc;
    z-index: 3000;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.app-shell-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.app-shell-loader-card {
    width: min(92vw, 420px);
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.app-shell-loader-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    text-align: left;
}

.app-shell-loader-logo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(13, 110, 253, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-shell-loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-shell-loader-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: #0f172a;
}

.app-shell-loader-subtitle {
    font-size: 0.9rem;
    color: #475569;
}

.app-shell-loader-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #0f172a;
}

.app-shell-loader-body .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
}

@media (max-width: 575.98px) {
    .app-shell-loader-card {
        padding: 1.5rem;
        border-radius: 1rem;
        gap: 1.25rem;
    }
    .app-shell-loader-brand {
        flex-direction: column;
        text-align: center;
    }
}

.modal-body--form {
    background-color: var(--bs-body-bg, #fff);
    overflow-y: auto;
    padding-bottom: 3.5rem;
}

.modal-content--form {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
}

.modal-content--form > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.modal-dialog-scrollable .modal-content--form {
    max-height: calc(100vh - 2rem);
    height: calc(100vh - 2rem);
}

.modal-content--form .modal-body--form {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-content--form .modal-header,
.modal-content--form .modal-footer {
    flex-shrink: 0;
}

.modal-content--form .modal-footer {
    position: sticky;
    bottom: 0;
    background-color: var(--bs-body-bg, #fff);
    z-index: 5;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

@media (max-width: 991.98px) {
    .modal-dialog-scrollable .modal-content--form {
        max-height: calc(100vh - 1.5rem);
        height: calc(100vh - 1.5rem);
    }
}

.form-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-stepper-item {
    flex: 1 1 160px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.85rem;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.form-stepper-item.active {
    border-color: var(--bs-primary, #0d6efd);
    background-color: rgba(13, 110, 253, 0.07);
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.08);
}

.form-stepper-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    font-weight: 600;
    background-color: #ffffff;
    border: 2px solid currentColor;
    color: var(--bs-primary, #0d6efd);
}

.form-stepper-item.active .form-stepper-number {
    background-color: var(--bs-primary, #0d6efd);
    color: #ffffff;
}

.form-stepper-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-body-color, #212529);
    text-transform: capitalize;
}

.form-section {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 1rem;
    background-color: #ffffff;
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.form-section--ghost {
    background-color: rgba(15, 23, 42, 0.015);
    border-style: dashed;
    box-shadow: none;
}

.form-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.form-section-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--bs-secondary-color, #6c757d);
    font-weight: 600;
}

.form-section-title {
    margin: 0.2rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bs-body-color, #212529);
}

.form-section-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: var(--bs-secondary-color, #6c757d);
}

.form-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    background-color: rgba(13, 110, 253, 0.08);
    font-size: 1.2rem;
}

.form-section-icon i {
    line-height: 1;
}

.form-section-icon.text-primary {
    background-color: rgba(13, 110, 253, 0.08);
}

.form-section-icon.text-success {
    background-color: rgba(25, 135, 84, 0.12);
}

.form-section-icon.text-warning {
    background-color: rgba(255, 193, 7, 0.14);
}

.form-card {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.85rem;
    background-color: #ffffff;
    padding: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.form-card-muted {
    background-color: rgba(15, 23, 42, 0.04);
    border: 1px dashed rgba(15, 23, 42, 0.15);
}

.form-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--bs-body-color, #212529);
}

.form-note {
    border-radius: 0.75rem;
    background: rgba(13, 110, 253, 0.07);
    color: var(--bs-primary, #0d6efd);
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.form-label-required::after {
    content: "*";
    color: var(--bs-danger, #dc3545);
    margin-left: 0.25rem;
    font-weight: 700;
}

.modal-footer .btn {
    min-width: 140px;
}

@media (max-width: 768px) {
    .form-section {
        padding: 1.15rem;
    }

    .form-stepper-item {
        flex: 1 1 100%;
    }

    .modal-footer .btn {
        min-width: 0;
    }
}

body.pos-tablet-body .app {
    flex-direction: column;
    min-height: 100vh;
    height: auto;
}

body.pos-tablet-body {
    cursor: auto;
    min-height: 100vh;
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
}

body.pos-tablet-body input,
body.pos-tablet-body textarea {
    cursor: text;
}

body.pos-tablet-body .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(320px, 85vw);
    transform: translateX(-100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1200;
    box-shadow: none;
    overflow: hidden;
}

body.pos-tablet-body .app-sidebar.open {
    transform: translateX(0);
    box-shadow: 0 24px 48px -32px rgba(15, 23, 42, 0.45);
}

body.pos-tablet-body .app-main {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    height: auto;
}

body.pos-tablet-body .app-header {
    display: none;
}

.app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 1100;
}

.app-sidebar-backdrop.is-visible {
    opacity: 1;
}

.app-sidebar-backdrop[hidden] {
    display: none !important;
}

body.sidebar-open {
    overflow: hidden;
}

body.pos-tablet-body #toggleSidebar {
    padding: 0.55rem 0.85rem;
    border-radius: 0.9rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.15rem;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 48px -32px rgba(14, 34, 64, 0.65);
    isolation: isolate;
    backdrop-filter: blur(6px);
}

.app-sidebar-top {
    flex-shrink: 0;
}

.app-sidebar-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin-top: 1.5rem;
    padding-right: 0.25rem;
}

.app-sidebar::before,
.app-sidebar::after {
    content: "";
    position: absolute;
    inset: -40% -25%;
    background: radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.35), transparent 60%),
        radial-gradient(circle at 80% 15%, rgba(14, 165, 233, 0.28), transparent 55%),
        radial-gradient(circle at 50% 80%, rgba(129, 140, 248, 0.35), transparent 60%);
    opacity: 0.6;
    transform: translate3d(0, 0, 0);
    animation: sidebarAurora 24s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.app-sidebar::after {
    animation-direction: reverse;
    animation-duration: 32s;
    mix-blend-mode: screen;
    opacity: 0.45;
}

.app-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
    padding: 0.85rem;
    border-radius: 1.15rem;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 36px -28px rgba(15, 23, 42, 0.6);
    overflow: hidden;
}

.app-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-brand:hover::after {
    opacity: 1;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.55);
    padding: 0.4rem;
    box-shadow: 0 12px 32px -18px rgba(56, 189, 248, 0.6);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.app-brand:hover .brand-logo {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 16px 40px -22px rgba(56, 189, 248, 0.75);
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: rgba(209, 213, 219, 0.85);
}

.user-panel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(14, 165, 233, 0.75));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #f8fafc;
    box-shadow: 0 12px 22px -16px rgba(14, 165, 233, 0.85);
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: inherit;
    text-decoration: none;
    padding: 0.65rem 0.85rem;
    border-radius: 0.85rem;
    font-size: 0.95rem;
    gap: 0.75rem;
    overflow: hidden;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    flex-wrap: nowrap;
}

.menu-item > a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.22), rgba(14, 165, 233, 0.18));
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.menu-item > a > * {
    position: relative;
    z-index: 1;
}

.menu-item > a span:not(.menu-icon):not(.menu-caret) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
}

.menu-item > a:hover {
    transform: translateX(4px);
}

.menu-item.active > a,
.menu-item > a:hover {
    background: rgba(59, 130, 246, 0.18);
    color: #f8fafc;
    box-shadow: 0 16px 36px -28px rgba(59, 130, 246, 0.75);
}

.menu-item.active > a::before,
.menu-item > a:hover::before {
    opacity: 1;
}

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    margin-right: 0.75rem;
    font-size: 1rem;
    border-radius: 0.6rem;
    background: rgba(59, 130, 246, 0.16);
    transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
    flex-shrink: 0;
}

.menu-item.active .menu-icon,
.menu-item > a:hover .menu-icon {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
    transform: scale(1.05);
}

.menu-caret {
    transition: transform 0.25s ease;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.menu-item.open > a .menu-caret {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    margin-left: 1.25rem;
    margin-top: 0.35rem;
    padding-left: 0.75rem;
    border-left: 1px dashed rgba(148, 163, 184, 0.35);
}

.submenu-columns {
    column-count: 2;
    column-gap: 0.85rem;
    column-fill: balance;
    margin-left: 1rem;
}

.submenu-columns .submenu-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 0.3rem;
}

.submenu-columns .submenu-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .submenu-columns {
        column-count: 1;
        margin-left: 1.5rem;
    }
}

.submenu-header {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    font-weight: 600;
    margin: 0.6rem 0 0.2rem;
    padding: 0.2rem 0.3rem;
}

.submenu-header:first-child {
    margin-top: 0.3rem;
}

.submenu-columns .submenu-header {
    column-span: all;
    -webkit-column-span: all;
    padding-left: 0.3rem;
}

.submenu-item a {
    position: relative;
    display: block;
    padding: 0.4rem 0.6rem;
    color: rgba(209, 213, 219, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 0.6rem;
    overflow: hidden;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.submenu-item a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.22), rgba(14, 165, 233, 0.12));
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
}

.submenu-item.active a,
.submenu-item a:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
    transform: translateX(4px);
}

.submenu-item.active a::before,
.submenu-item a:hover::before {
    opacity: 1;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.animated-card {
    position: relative;
    border-radius: 1.35rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 26px 54px -38px rgba(15, 23, 42, 0.55);
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    transition-delay: var(--animate-delay, 0s);
    backdrop-filter: blur(2px);
}

.animated-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    border-radius: inherit;
}

.animated-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.animated-card.is-visible::before {
    opacity: 0.18;
}

.animated-card.is-visible:hover {
    box-shadow: 0 28px 60px -32px rgba(59, 130, 246, 0.4);
}

.animated-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.animated-card .card-body {
    position: relative;
    z-index: 1;
}

[data-animate-number] {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

[data-animate-number].is-counting::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.1rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.65), transparent);
    animation: metricUnderline 1.2s ease-in-out infinite;
    opacity: 0.6;
}

[data-quick-action] {
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .animated-card {
        transition: none;
        transform: none !important;
        opacity: 1 !important;
    }

    [data-animate-number]::after,
    [data-animate-number].is-counting::after {
        animation: none;
    }
}

.notification-dropdown {
    position: relative;
}

.notification-dropdown .notification-toggle {
    position: relative;
    padding-right: 1.75rem;
}

.notification-dropdown .notification-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.45rem;
    font-size: 0.65rem;
    line-height: 1;
}

.notification-menu {
    width: 320px;
    max-width: 90vw;
    padding: 0;
}

.notification-menu-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.notification-menu-body {
    max-height: 360px;
    overflow-y: auto;
}

.notification-entry {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f3f5;
}

.notification-entry:last-child {
    border-bottom: none;
}

.notification-entry.is-unread {
    background-color: #f5f9ff;
}

.notification-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.notification-entry-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.notification-entry-message {
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.notification-entry.priority-critical .notification-entry-title {
    color: #b91c1c;
}

.notification-entry.priority-high .notification-entry-title {
    color: #dc2626;
}

.notification-entry.priority-low .notification-entry-title {
    color: #0f766e;
}

.notification-entry .btn {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
}

.notification-empty {
    padding: 1rem;
    font-size: 0.85rem;
}

.pos-tax-detail-list {
    margin-top: 0.5rem;
}

.pos-tax-detail-list .tax-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.pos-tax-detail-list .tax-line span:first-child {
    flex: 1;
}

.pos-tax-detail-list .tax-line + .tax-line {
    margin-top: 0.25rem;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.page-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.clock {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: #6b7280;
}

.app-content {
    padding: 1rem 1.5rem 3rem;
    flex: 1;
}

body.pos-tablet-body .app-content {
    padding: 1rem 1.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 0;
    height: auto;
    box-sizing: border-box;
}

body.pos-tablet-body .app-footer {
    display: none;
}

.app-footer {
    background-color: #fff;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6b7280;
}

.card-title {
    font-weight: 600;
}

.thumb-sm {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.thumb-md {
    width: 96px;
    height: 96px;
    border-radius: 0.75rem;
    object-fit: cover;
}

.placeholder {
    width: 48px;
    height: 48px;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background-color: #f9fafb;
}

.stats-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    background-color: #fff;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.stats-card.small {
    padding: 0.75rem;
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.stats-label {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: #6b7280;
}

.stats-value {
    font-size: 1.35rem;
    margin: 0;
}

.timeline {
    border-left: 2px solid #e5e7eb;
    padding-left: 1rem;
    display: grid;
    gap: 1rem;
}

.timeline-item {
    position: relative;
    padding-left: 1rem;
}

.timeline-item::before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #3b82f6;
    border-radius: 50%;
    position: absolute;
    left: -1.1rem;
    top: 0.4rem;
}

.timeline-time {
    font-size: 0.8rem;
    color: #6b7280;
}

.timeline-content {
    font-size: 0.9rem;
}

.quick-actions .btn {
    text-align: left;
}

.avatar-placeholder {
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-weight: 600;
}

.avatar-lg {
    width: 120px;
    height: 120px;
}

.avatar-xl {
    width: 160px;
    height: 160px;
    border-radius: 1rem;
}

.auth-page {
    position: relative;
    display: flex;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #0ea5e9 0%, #0f172a 55%, #020617 100%);
    color: #0f172a;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
}

.auth-animated-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.auth-gradient {
    position: absolute;
    inset: -30% -10% -10% -30%;
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.5), transparent 60%),
        radial-gradient(circle at 80% 10%, rgba(129, 140, 248, 0.6), transparent 55%),
        radial-gradient(circle at 50% 80%, rgba(14, 116, 144, 0.45), transparent 60%);
    filter: blur(40px);
    animation: gradientShift 16s ease-in-out infinite alternate;
}

.auth-orb {
    position: absolute;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.75), rgba(96, 165, 250, 0.65));
    filter: blur(0);
    opacity: 0.6;
    mix-blend-mode: screen;
}

.auth-orb.orb-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    animation: floatY 12s ease-in-out infinite;
}

.auth-orb.orb-2 {
    width: 280px;
    height: 280px;
    bottom: -120px;
    left: 15%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.7), rgba(59, 130, 246, 0.65));
    animation: floatY 14s ease-in-out infinite;
    animation-delay: 1.8s;
}

.auth-orb.orb-3 {
    width: 200px;
    height: 200px;
    top: 35%;
    left: -120px;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.65), rgba(192, 132, 252, 0.7));
    animation: floatY 18s ease-in-out infinite;
    animation-delay: 3.2s;
}

.auth-grid {
    position: absolute;
    inset: 10% 15%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.35;
    transform: perspective(800px) rotateX(58deg);
    animation: pulseGrid 10s ease-in-out infinite;
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, 100% - 3rem);
    margin: auto;
    padding: 3.5rem 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: stretch;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-panel-info {
    color: #f8fafc;
    gap: 1.5rem;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
}

.auth-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem;
    box-shadow: 0 12px 40px rgba(15, 118, 110, 0.35);
    animation: floatY 12s ease-in-out infinite;
    animation-delay: 0.8s;
}

.auth-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.auth-subtitle {
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
    color: rgba(248, 250, 252, 0.85);
}

.auth-highlights {
    list-style: none;
    padding: 0;
    margin: 2.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.auth-highlight-item {
    position: relative;
    padding: 1rem 1.25rem;
    border-radius: 1.15rem;
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.28);
    font-weight: 500;
    letter-spacing: 0.01em;
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.auth-highlight-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.auth-highlight-item:hover::before {
    opacity: 1;
}

.auth-highlight-item:nth-child(1) {
    animation-delay: 0.15s;
}

.auth-highlight-item:nth-child(2) {
    animation-delay: 0.3s;
}

.auth-highlight-item:nth-child(3) {
    animation-delay: 0.45s;
}

.auth-pwa-cta {
    margin-top: 2rem;
    padding: 1.15rem 1.25rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e5e7eb;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.35);
}

.auth-pwa-title {
    margin: 0 0 0.25rem;
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 700;
}

.auth-pwa-text {
    margin: 0;
    color: rgba(226, 232, 240, 0.85);
}

.auth-pwa-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 18px rgba(15, 23, 42, 0.35);
}

.auth-pwa-hint {
    color: rgba(226, 232, 240, 0.8);
}

.auth-pwa-cta .btn-light {
    color: #0f172a;
    border-color: transparent;
}

.auth-pwa-cta .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.55);
    color: #f8fafc;
}

.auth-panel-form {
    align-items: stretch;
}

.auth-card {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 1.6rem;
    padding: clamp(2rem, 4vw, 2.75rem);
    box-shadow: 0 32px 64px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.15);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    transform: translateZ(0);
    animation: fadeUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.auth-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.auth-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
    color: #0f172a;
}

.auth-card-subtitle {
    font-size: 0.95rem;
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.auth-alert {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    border: 1px solid transparent;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.auth-alert::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.auth-alert-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #047857;
}

.auth-alert-danger {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(220, 38, 38, 0.35);
    color: #b91c1c;
}

.auth-alert-warning {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(217, 119, 6, 0.35);
    color: #b45309;
}

.auth-alert-info {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
    color: #1d4ed8;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.floating-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.floating-input {
    width: 100%;
    padding: 1.1rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(255, 255, 255, 0.75);
    color: #0f172a;
    font-size: 1rem;
    font-weight: 500;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.floating-input::placeholder {
    color: transparent;
}

.floating-input:focus {
    outline: none;
    border-color: rgba(14, 165, 233, 0.85);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.2);
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

.floating-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.2s ease, font-size 0.2s ease, color 0.2s ease;
    color: #64748b;
    font-weight: 500;
}

.floating-focus {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    pointer-events: none;
    border: 1px solid transparent;
    transition: border-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
    transform: translateY(-2.1rem) scale(0.88);
    color: #0284c7;
}

.floating-input:focus ~ .floating-focus {
    border-color: rgba(14, 165, 233, 0.35);
    transform: scale(1.01);
    opacity: 1;
}

.floating-group + .floating-group {
    margin-top: 0.25rem;
}

.floating-group input[type="password"] {
    padding-right: 3.25rem;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: none;
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.toggle-password:hover {
    background: rgba(14, 165, 233, 0.2);
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.25);
}

.toggle-password:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.4);
    outline-offset: 2px;
}

.toggle-password::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 18px;
    background: currentColor;
    transform: rotate(42deg);
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.toggle-password.is-active::after {
    opacity: 0;
}

.toggle-password-bar {
    position: relative;
    width: 20px;
    height: 12px;
}

.toggle-password-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid currentColor;
    border-radius: 999px;
    opacity: 0.85;
}

.toggle-password-bar::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease;
}

.toggle-password.is-active .toggle-password-bar::after {
    opacity: 0.35;
}

.auth-submit {
    width: 100%;
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 22px 38px rgba(99, 102, 241, 0.35);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    animation: pulseButton 6s ease-in-out infinite;
}

.auth-submit:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 24px 48px rgba(99, 102, 241, 0.4);
    filter: brightness(1.02);
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-footer {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.auth-footer small {
    display: block;
    line-height: 1.6;
}

@media (max-width: 1080px) {
    .auth-shell {
        width: min(980px, 100% - 2.5rem);
        gap: 2.5rem;
    }

.auth-card {
    padding: clamp(2rem, 4vw, 2.5rem);
}
}

.pwa-install-fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1060;
    background: #0f172a;
    color: #f8fafc;
    border-radius: 999px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.4);
    padding: 0.35rem;
}

.pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #0b1021;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.pwa-install-btn:active {
    transform: translateY(1px);
}

.pwa-install-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.pwa-install-text {
    font-size: 0.95rem;
}

@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .auth-panel-info {
        align-items: center;
    }

    .auth-highlight-item {
        background: rgba(15, 23, 42, 0.3);
    }
}

@media (max-width: 640px) {
    .auth-shell {
        width: min(560px, 100% - 1.5rem);
        padding: 2.5rem 0;
    }

    .auth-brand {
        align-items: center;
    }

    .auth-card {
        border-radius: 1.25rem;
    }
}

@media (max-width: 420px) {
    .auth-shell {
        width: 100%;
        padding: 2rem 1rem;
    }

    .auth-card {
        padding: 1.75rem 1.5rem;
    }

    .floating-input {
        padding: 1rem 0.9rem;
    }

    .floating-label {
        left: 0.9rem;
    }

    .toggle-password {
        right: 0.75rem;
    }
}

@keyframes sidebarAurora {
    0% {
        transform: translate3d(-4%, -3%, 0) scale(1);
    }
    50% {
        transform: translate3d(3%, 2%, 0) scale(1.04);
    }
    100% {
        transform: translate3d(-2%, -4%, 0) scale(1);
    }
}

@keyframes metricUnderline {
    0% {
        transform: scaleX(0);
        transform-origin: left;
        opacity: 0;
    }
    50% {
        transform: scaleX(1);
        transform-origin: left;
        opacity: 1;
    }
    100% {
        transform: scaleX(0);
        transform-origin: right;
        opacity: 0;
    }
}

@keyframes gradientShift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-4%, 2%, 0) scale(1.05);
    }
    100% {
        transform: translate3d(3%, -3%, 0) scale(1.02);
    }
}

@keyframes floatY {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -18px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes pulseGrid {
    0%, 100% {
        opacity: 0.22;
    }
    50% {
        opacity: 0.33;
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 22px 38px rgba(99, 102, 241, 0.32);
    }
    50% {
        box-shadow: 0 26px 46px rgba(99, 102, 241, 0.42);
    }
}

.pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 1280px) {
    .pos-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

body.pos-tablet-body .pos-layout {
    flex: 1;
    min-height: 0;
    height: auto;
}

.pos-products {
    background-color: #fff;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

body.pos-tablet-body .pos-products {
    padding: 1.4rem 1.6rem;
    box-shadow: 0 24px 48px -32px rgba(15, 23, 42, 0.18);
    height: auto;
}

body.pos-tablet-body .pos-cart {
    border-radius: 1.75rem;
    box-shadow: 0 28px 60px -34px rgba(15, 23, 42, 0.22);
    height: auto;
}

.pos-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 1.25rem;
}

.pos-toolbar-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.pos-toolbar-header .pos-search {
    flex: 1 1 320px;
}

.pos-toolbar-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pos-category-select {
    min-width: 180px;
}

.pos-category-tabs {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    margin-top: 0.25rem;
    scrollbar-width: none;
}

.pos-category-tabs::-webkit-scrollbar {
    display: none;
}

.pos-category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    min-width: max-content;
    box-shadow: 0 2px 4px -3px rgba(15, 23, 42, 0.18);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.pos-category-tab:hover {
    border-color: #2563eb;
    color: #1d4ed8;
}

.pos-category-tab:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

.pos-category-tab .pos-category-tab-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.pos-category-tab .pos-category-tab-count {
    font-size: 0.75rem;
    color: #64748b;
    background: rgba(148, 163, 184, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
}

.pos-category-tab.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 6px 16px -12px rgba(15, 23, 42, 0.4);
}

.pos-category-tab.active .pos-category-tab-count {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.pos-toolbar-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: stretch;
}

.pos-toolbar-bottom .pos-category-filter {
    flex: 1 1 50%;
    min-width: 240px;
}

.pos-field-table .form-select {
    min-height: 0;
}

.pos-table-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: none;
}

.pos-table-summary-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pos-table-summary-name {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
}

.pos-table-summary-zone {
    font-size: 0.8rem;
    color: #64748b;
}

.pos-table-summary-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.pos-table-summary-status.status-available {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.pos-table-summary-status.status-occupied {
    background: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.pos-table-summary-status.status-reserved {
    background: rgba(245, 158, 11, 0.2);
    color: #b45309;
}

.pos-table-summary-status.status-cleaning {
    background: rgba(14, 165, 233, 0.2);
    color: #0369a1;
}

.pos-table-summary-status.status-blocked {
    background: rgba(107, 114, 128, 0.2);
    color: #374151;
}

.pos-table-summary-status.status-default {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.pos-table-summary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #2563eb;
    border-radius: 0.8rem;
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pos-table-summary-button:hover {
    transform: translateY(-1px);
    background: #dbeafe;
    border-color: #1d4ed8;
    color: #1d4ed8;
}

.pos-table-summary-button:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.75);
    outline-offset: 3px;
}

.pos-touch-active .pos-table-summary-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.85));
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 28px 58px -30px rgba(2, 6, 23, 0.7);
}

.pos-touch-active .pos-table-summary-name {
    color: #f8fafc;
}

.pos-touch-active .pos-table-summary-zone {
    color: rgba(148, 163, 184, 0.8);
}

.pos-touch-active .pos-table-summary-status.status-default {
    background: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

.pos-touch-active .pos-table-summary-button {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    box-shadow: 0 24px 45px -22px rgba(14, 165, 233, 0.6);
}

.pos-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.45), rgba(203, 213, 225, 0.35));
    box-shadow: 0 18px 34px -28px rgba(37, 99, 235, 0.5);
    flex: 0 0 auto;
}

.pos-mode-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pos-mode-label {
    font-weight: 700;
    color: #1d4ed8;
    font-size: 0.95rem;
}

.pos-mode-text small {
    color: #475569;
    font-size: 0.78rem;
    max-width: 200px;
}

.pos-mode-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #f8fafc;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.25s ease;
}

.pos-mode-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -18px rgba(37, 99, 235, 0.65);
}

.pos-mode-button-active {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.pos-mode-button:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.75);
    outline-offset: 3px;
}

@media (max-width: 992px) {
    .pos-toolbar {
        gap: 0.75rem;
    }
    .pos-toolbar-bottom {
        flex-direction: column;
        align-items: stretch;
    }
    .pos-mode-toggle {
        width: 100%;
        justify-content: space-between;
    }
    .pos-mode-text small {
        max-width: none;
    }
}

.pos-table-picker-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pos-table-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #475569;
}

.pos-table-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
}

.pos-table-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.pos-table-legend-dot.status-available {
    background: #22c55e;
}

.pos-table-legend-dot.status-occupied {
    background: #ef4444;
}

.pos-table-legend-dot.status-reserved {
    background: #f59e0b;
}

.pos-table-legend-dot.status-cleaning {
    background: #0ea5e9;
}

.pos-table-legend-dot.status-blocked {
    background: #6b7280;
}

.pos-table-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pos-table-card {
    position: relative;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 18px 36px -32px rgba(15, 23, 42, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}

.pos-table-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.2), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pos-table-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 48px -28px rgba(37, 99, 235, 0.5);
}

.pos-table-card:hover::after {
    opacity: 1;
}

.pos-table-card.is-selected {
    border-color: rgba(37, 99, 235, 0.75);
    box-shadow: 0 28px 56px -26px rgba(37, 99, 235, 0.6);
}

.pos-table-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
    filter: grayscale(0.2);
}

.pos-table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.pos-table-card-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.05rem;
}

.pos-table-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pos-table-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: #475569;
    font-size: 0.85rem;
}

.pos-table-card-meta i {
    color: #2563eb;
}

.table-status-kosong {
    border-color: rgba(34, 197, 94, 0.35);
}

.table-status-kosong .pos-table-card-status {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.table-status-terisi {
    border-color: rgba(239, 68, 68, 0.35);
}

.table-status-terisi .pos-table-card-status {
    background: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.table-status-reserved {
    border-color: rgba(245, 158, 11, 0.35);
}

.table-status-reserved .pos-table-card-status {
    background: rgba(245, 158, 11, 0.2);
    color: #b45309;
}

.table-status-cleaning {
    border-color: rgba(14, 165, 233, 0.35);
}

.table-status-cleaning .pos-table-card-status {
    background: rgba(14, 165, 233, 0.2);
    color: #0369a1;
}

.table-status-blocked {
    border-color: rgba(107, 114, 128, 0.35);
}

.table-status-blocked .pos-table-card-status {
    background: rgba(107, 114, 128, 0.2);
    color: #374151;
}

.table-status-none {
    border-color: rgba(37, 99, 235, 0.35);
}

.table-status-none .pos-table-card-status {
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
}

@media (max-width: 768px) {
    .pos-table-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .pos-table-summary-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .pos-table-summary-button {
        width: 100%;
        justify-content: center;
    }
    .pos-cart-actions {
        justify-content: flex-start;
    }
    .pos-cart-action {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .pos-table-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
}

.pos-search {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.75), rgba(226, 232, 240, 0.6));
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 1rem;
    padding-inline: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pos-search:focus-within {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 12px 28px -24px rgba(37, 99, 235, 0.65);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(226, 232, 240, 0.8));
}

.pos-search input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0.9rem 0.5rem 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
}

.pos-search input:focus {
    box-shadow: none;
}

.pos-search-icon {
    position: absolute;
    left: 1.1rem;
    font-size: 1.1rem;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
}

.pos-search:focus-within .pos-search-icon {
    color: #2563eb;
}

.pos-search-clear {
    border: 0;
    background: transparent;
    color: #a1a1aa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.pos-search-clear:hover {
    color: #dc2626;
    transform: scale(1.05);
}

.pos-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pos-category-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    outline: none;
    background: rgba(226, 232, 240, 0.6);
    color: #1f2937;
    padding: 0.75rem 1.15rem;
    border-radius: 1rem;
    min-height: 54px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 6px 14px -12px rgba(15, 23, 42, 0.5);
}

.pos-category-btn .pos-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    color: inherit;
    font-size: 1rem;
}

.pos-category-btn .pos-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    font-size: 0.75rem;
    font-weight: 600;
    color: inherit;
}

.pos-category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -16px rgba(37, 99, 235, 0.4);
}

.pos-category-btn:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 2px;
}

.pos-category-btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #f8fafc;
    box-shadow: 0 18px 30px -18px rgba(37, 99, 235, 0.7);
}

.pos-category-btn.active .pos-category-icon {
    background: rgba(248, 250, 252, 0.2);
}

.pos-category-btn.active .pos-category-count {
    background: rgba(248, 250, 252, 0.25);
}

.pos-category-btn.pos-category-favorite:not(.active) {
    background: rgba(250, 204, 21, 0.18);
    color: #b45309;
}

.pos-category-btn.pos-category-favorite .pos-category-icon {
    background: rgba(251, 191, 36, 0.25);
}

.pos-category-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pos-category-filter .btn.active {
    background-color: #3b82f6;
    color: #fff;
}
.pos-category-filter .pos-category-btn[data-favorite="1"] {
    border-color: rgba(255, 193, 7, 0.6);
    background-color: rgba(255, 243, 205, 0.35);
    color: #0d6efd;
}
.pos-category-filter .pos-category-btn[data-favorite="1"]:hover {
    background-color: rgba(255, 243, 205, 0.65);
}


.pos-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}
.pos-product-grid.pos-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.pos-product-grid.pos-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}


.pos-product-grid {
    position: relative;
}
.pos-product-grid.is-loading {
    pointer-events: none;
}
.pos-product-grid.is-loading .pos-product-card {
    display: none !important;
}
.pos-loading-shimmer {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: inherit;
    gap: inherit;
    width: 100%;
}
.pos-product-grid.is-loading .pos-loading-shimmer {
    display: grid;
}
.pos-loading-card {
    background-color: #f3f4f6;
    border-radius: 0.85rem;
    padding: 0.75rem;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.pos-loading-thumb,
.pos-loading-line {
    background: linear-gradient(90deg, #eef1f5 0%, #f6f8fb 50%, #eef1f5 100%);
    background-size: 200% 100%;
    animation: posShimmer 1.3s ease-in-out infinite;
}
.pos-loading-thumb {
    width: 100%;
    height: 120px;
    border-radius: 0.85rem;
}
.pos-loading-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pos-loading-line {
    height: 12px;
    border-radius: 999px;
}
.pos-loading-line.w-80 { width: 80%; }
.pos-loading-line.w-60 { width: 60%; }
.pos-loading-line.w-40 { width: 40%; }

.shortcut-flash {
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
    outline: none;
}

.pos-tablet-shell {
    min-height: 100vh;
    height: auto;
    padding: 1.5rem 1.75rem 2rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    display: flex;
    flex-direction: column;
    overflow: visible;
    box-sizing: border-box;
}

.pos-tablet-shell > .pos-tab-status-grid,
.pos-tablet-shell > .pos-tab-header {
    flex-shrink: 0;
}

.pos-tablet-shell .pos-layout {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}

.pos-layout-tablet {
    grid-template-columns: minmax(0, 2.35fr) minmax(340px, 1fr);
    gap: 1.9rem;
}

.pos-products-tablet {
    background: #ffffff;
    color: #0f172a;
    border-radius: 1.75rem;
    padding: 1.8rem;
    box-shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pos-toolbar-tablet {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}

.pos-tab-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: var(--pos-surface);
    border: 1px solid var(--pos-border);
    border-radius: 1.9rem;
    padding: 1.4rem 1.75rem;
    box-shadow: var(--pos-shadow-soft);
}

.pos-tab-header-title {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pos-tab-title {
    font-size: 2.05rem;
    font-weight: 700;
    color: var(--pos-heading);
    margin: 0;
    letter-spacing: -0.01em;
}

.pos-tab-caption {
    margin: 0;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
}

.pos-tab-header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.pos-tab-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.pos-tab-header-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(241, 245, 249, 0.75);
    color: #1f2937;
    font-size: 0.87rem;
    font-weight: 500;
    box-shadow: 0 10px 22px -20px rgba(15, 23, 42, 0.55);
}

.pos-tab-header-chip i {
    font-size: 1rem;
    color: inherit;
}

.pos-tab-header-chip.chip-warning {
    background: #fef3c7;
    border-color: rgba(217, 119, 6, 0.35);
    color: #b45309;
}

.pos-tab-header-chip.chip-success {
    background: #dcfce7;
    border-color: rgba(22, 163, 74, 0.35);
    color: #166534;
}

.pos-tab-icon-button {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pos-primary-soft);
    border: 1px solid rgba(42, 98, 244, 0.18);
    color: var(--pos-primary);
    border-radius: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 16px 26px -18px rgba(42, 98, 244, 0.25);
}

.pos-tab-icon-button:hover {
    background: var(--pos-primary);
    border-color: var(--pos-primary);
    color: #ffffff;
    box-shadow: 0 22px 36px -20px rgba(42, 98, 244, 0.4);
}
.pos-tab-icon-button:disabled,
.pos-tab-icon-button[disabled] {
    background: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.4);
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.pos-tab-icon-button .pos-tab-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color: #dc3545;
}

.pos-tab-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 1.75rem;
}

.pos-tab-shift-card {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
    border-radius: 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 1.35rem 1.5rem;
    box-shadow: 0 26px 48px -32px rgba(32, 52, 112, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.pos-tab-shift-card.is-active {
    border-color: rgba(34, 197, 94, 0.28);
    box-shadow: 0 32px 58px -34px rgba(34, 197, 94, 0.35);
}

.pos-tab-shift-card.is-pending {
    border-color: rgba(248, 180, 34, 0.32);
}

.pos-tab-shift-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.pos-tab-shift-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.pos-tab-shift-state {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
}

.pos-tab-shift-card.is-active .pos-tab-shift-state {
    color: #16a34a;
}

.pos-tab-shift-card.is-pending .pos-tab-shift-state {
    color: #dc2626;
}

.pos-tab-shift-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
    font-size: 0.9rem;
    color: #1f2937;
}

.pos-tab-shift-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 0.85rem;
    background: rgba(42, 98, 244, 0.08);
    border: 1px solid rgba(42, 98, 244, 0.12);
}

.pos-tab-shift-meta i {
    color: #2563eb;
}

.pos-tab-shift-empty {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

.pos-tab-shift-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pos-tab-shift-actions .btn {
    border-radius: 0.9rem;
    padding: 0.45rem 0.85rem;
    font-weight: 600;
    box-shadow: 0 14px 28px -24px rgba(15, 23, 42, 0.45);
}

.pos-tab-shift-actions .btn-outline-primary {
    border-color: rgba(37, 99, 235, 0.35);
    color: #1d4ed8;
}

.pos-tab-shift-actions .btn-outline-secondary {
    border-color: rgba(148, 163, 184, 0.5);
    color: #475569;
}

.pos-tab-shift-actions .btn-danger {
    box-shadow: 0 20px 36px -28px rgba(220, 38, 38, 0.5);
}

#posDraftBadge {
    font-size: 0.65rem;
    min-width: 1.5em;
}

.pos-tab-search {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #f8fafc;
    border-radius: 1.1rem;
    padding: 0.7rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    width: 100%;
}

.pos-tab-search i {
    font-size: 1.2rem;
    color: #64748b;
}

.pos-tab-search input {
    background: transparent;
    border: none;
    color: #0f172a;
    padding: 0;
    box-shadow: none;
}

.pos-tab-search input::placeholder {
    color: #94a3b8;
}

.pos-tab-search-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #e2e8f0;
    color: #1f2937;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
}

.pos-tab-search-action:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 14px 30px -18px rgba(37, 99, 235, 0.45);
}

.pos-tab-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1 1 auto;
    min-height: 0;
}

.pos-tab-sidebar {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: static;
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 1.15rem 1.35rem;
    box-shadow: 0 22px 46px -32px rgba(15, 23, 42, 0.22);
}
.pos-tab-sidebar .pos-tab-category-grid {
    margin-top: -0.25rem;
}

.pos-tab-sidebar .pos-tab-search {
    background: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.25);
}

.pos-tab-sidebar .pos-tab-search input {
    font-size: 0.95rem;
}



.pos-tab-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pos-tab-main .pos-low-stock-wrapper,
.pos-tab-main #posOfflineQueueNotice {
    flex-shrink: 0;
}

.pos-tab-main .pos-product-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.pos-tab-main .pos-product-grid::-webkit-scrollbar {
    width: 6px;
}

.pos-tab-main .pos-product-grid::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 999px;
}

.pos-tab-category-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.45rem;
}

.pos-tab-category-grid::-webkit-scrollbar {
    height: 6px;
}

.pos-tab-category-grid::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

.pos-tab-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.pos-tab-search-clear {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.pos-tab-search-clear:hover,
.pos-tab-search-clear:focus-visible {
    color: #ef4444;
}

.pos-category-filter-tablet {
    margin: 0;
}

.pos-tab-category-card {
    border-radius: 999px;
    padding: 0.6rem 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-width: 150px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pos-tab-category-card::after {
    content: none;
}

.pos-tab-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px -20px rgba(37, 99, 235, 0.22);
    border-color: rgba(37, 99, 235, 0.35);
}

.pos-tab-category-card.active {
    box-shadow: 0 18px 32px -18px rgba(37, 99, 235, 0.32);
    border-color: rgba(37, 99, 235, 0.55);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
}

.pos-tab-category-card .pos-tab-category-label {
    font-weight: 600;
    font-size: 0.92rem;
}

.pos-tab-category-card.active .pos-tab-category-label {
    color: inherit;
}

.pos-tab-category-count {
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
    background: rgba(148, 163, 184, 0.18);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.pos-tab-category-card.active .pos-tab-category-count {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
}

.pos-tab-category-card.active .pos-tab-category-count i {
    color: inherit;
}

.pos-category-filter-tablet .pos-tab-category-count {
    justify-content: center;
    width: auto;
}

.pos-tab-category-count i {
    font-size: 0.9rem;
}

.pos-tab-category-all { background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(129, 140, 248, 0.12)); }
.pos-tab-category-sunset { background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(251, 113, 133, 0.12)); }
.pos-tab-category-tangerine { background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(249, 115, 22, 0.12)); }
.pos-tab-category-berry { background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(168, 85, 247, 0.12)); }
.pos-tab-category-leaf { background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(34, 211, 238, 0.12)); }
.pos-tab-category-ocean { background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(14, 165, 233, 0.12)); }
.pos-tab-category-violet { background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(99, 102, 241, 0.12)); }
.pos-tab-category-rose { background: linear-gradient(135deg, rgba(244, 114, 182, 0.12), rgba(251, 113, 133, 0.12)); }
.pos-tab-category-mint { background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(34, 211, 238, 0.12)); }

.pos-layout-tablet .pos-low-stock-wrapper .alert {
    background: #f8fafc;
    color: #1f2937;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 18px 34px -24px rgba(15, 23, 42, 0.18);
}

.pos-layout-tablet .pos-low-stock-wrapper .btn {
    border-color: rgba(37, 99, 235, 0.35);
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

.pos-layout-tablet .pos-product-grid {
    padding: 0;
    margin-top: 1.6rem;
    gap: 1.35rem;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.pos-layout-tablet .pos-product-card {
    position: relative;
    border-radius: 1.35rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    min-height: 0;
    padding: 0;
    color: #0f172a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 20px 36px -24px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    height: auto;
}

.pos-layout-tablet .pos-product-card-simple {
    border-radius: 1.25rem;
    border-color: rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, rgba(248, 250, 252, 0.92) 100%);
    box-shadow: 0 18px 34px -26px rgba(42, 63, 112, 0.22);
}

.pos-layout-tablet .pos-product-card-simple .pos-product-image {
    height: 110px;
    background: #eef2ff;
}

.pos-layout-tablet .pos-product-card-simple .pos-product-info {
    padding: 0.95rem 1.05rem 1.05rem;
    border-top-color: rgba(148, 163, 184, 0.1);
    gap: 0.5rem;
}

.pos-layout-tablet .pos-product-card-simple .pos-product-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.pos-layout-tablet .pos-product-card-simple .pos-product-price {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--pos-primary);
}

.pos-layout-tablet .pos-product-card-simple .pos-product-status,
.pos-layout-tablet .pos-product-card-simple .pos-product-stock {
    display: none;
}

.pos-layout-tablet .pos-product-card-simple .pos-product-image .placeholder {
    font-size: 1.4rem;
    color: rgba(45, 55, 72, 0.25);
}

.pos-layout-tablet .pos-product-card-simple:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -20px rgba(37, 99, 235, 0.22);
}

.pos-layout-tablet .pos-product-card::after {
    content: none;
}

.pos-layout-tablet .pos-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 48px -26px rgba(37, 99, 235, 0.28);
}

.pos-layout-tablet .pos-product-card:active {
    transform: scale(0.97);
}

.pos-layout-tablet .pos-product-card.disabled {
    opacity: 0.6;
    filter: grayscale(0.2);
}

.pos-layout-tablet .badge {
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
}

.pos-layout-tablet .pos-product-image {
    position: relative;
    margin: 0;
    height: 150px;
    background: #f8fafc;
}

.pos-layout-tablet .pos-product-image img,
.pos-layout-tablet .pos-product-image .placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pos-layout-tablet .pos-product-image .placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: rgba(148, 163, 184, 0.65);
    background: #f1f5f9;
}

.pos-layout-tablet .pos-product-info {
    position: relative;
    inset: auto;
    padding: 0.85rem 1rem 0.95rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background: #ffffff;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    flex: 0 0 auto;
}
.pos-layout-tablet .pos-product-chips {
    gap: 0.35rem;
}
.pos-layout-tablet .pos-chip {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}
.pos-layout-tablet .pos-product-title {
    color: var(--pos-heading);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
}
.pos-layout-tablet .pos-product-price {
    color: var(--pos-primary);
    font-weight: 700;
}
.pos-layout-tablet .pos-product-status {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}
.pos-layout-tablet .pos-product-status.status-available {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}
.pos-layout-tablet .pos-product-status.status-unavailable {
    background: rgba(248, 113, 113, 0.18);
    color: #b91c1c;
}
.pos-layout-tablet .pos-product-stock {
    color: #475569;
}
.pos-layout-tablet .pos-product-stock i {
    color: #f59e0b;
}
.pos-layout-tablet .pos-product-stock-warning {
    color: #b91c1c;
}

.pos-layout-tablet .pos-product-info h3 {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.pos-layout-tablet .pos-product-info p,
.pos-layout-tablet .pos-product-info small {
    color: #64748b;
}

.pos-layout-tablet .pos-product-badge {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 2;
    border-radius: 999px;
}

.pos-tab-cart {
    border-radius: 1.75rem;
    background: var(--pos-surface);
    padding: 1.8rem;
    box-shadow: 0 28px 60px -30px rgba(15, 23, 42, 0.2);
    color: var(--pos-heading);
    border: 1px solid var(--pos-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: auto;
    min-height: 0;
}

.pos-tab-order-header {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-bottom: 1.5rem;
}

.pos-tab-order-primary {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.pos-tab-summary-pill {
    min-height: 64px;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
    color: var(--pos-heading);
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.pos-tab-summary-pill:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.5);
    outline-offset: 2px;
}

.pos-tab-summary-pill:hover {
    background: rgba(42, 98, 244, 0.08);
    border-color: rgba(42, 98, 244, 0.35);
    box-shadow: 0 18px 30px -24px rgba(42, 98, 244, 0.32);
}

.pos-tab-summary-pill:active {
    transform: scale(0.99);
}

.pos-tab-pill-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: #64748b;
}

.pos-tab-pill-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.pos-tab-order-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pos-tab-order-zone {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: #64748b;
}

.pos-tab-order-name {
    margin: 0;
    font-size: 1.9rem;
    color: #0f172a;
    font-weight: 700;
}

.pos-tab-order-actions {
    display: flex;
    gap: 0.65rem;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.pos-tab-order-actions #posTabletOptionsToggle i {
    transition: transform 0.2s ease;
}

#posTabletOptionsToggle[aria-expanded="true"] i {
    transform: rotate(90deg);
}

.pos-tab-options {
    margin-bottom: 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 1rem;
    background: rgba(241, 245, 249, 0.65);
}

.pos-tab-options .pos-tab-form-grid {
    gap: 1.1rem;
    padding: 1rem 1.15rem;
}

.pos-tab-options.show .pos-tab-form-grid {
    border-top: none;
}

.pos-tab-order-tabs {
    display: flex;
    gap: 0.75rem;
    margin: 0.75rem 0 1.4rem;
}

.pos-tab-order-tabs button {
    flex: 1;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #eef2f7;
    color: #1f2937;
    padding: 0.55rem 0.75rem;
    border-radius: 0.9rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pos-tab-order-tabs button:hover:not(.disabled):not([disabled]):not(.active) {
    background: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.45);
}

.pos-tab-order-tabs button.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 16px 30px -20px rgba(37, 99, 235, 0.48);
}

.pos-tab-order-tabs button.disabled {
    opacity: 1;
    cursor: not-allowed;
    background: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.3);
    color: #94a3b8;
}

.pos-tab-order-shortcuts {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.35rem;
}

.pos-tab-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
}

.pos-tab-shortcut.btn-outline-light {
    background: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.35);
    color: #1f2937;
}

.pos-tab-shortcut.btn-outline-light:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 12px 28px -16px rgba(37, 99, 235, 0.4);
}
.pos-tab-shortcut:disabled,
.pos-tab-shortcut[disabled] {
    background: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.35);
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.pos-tab-cart-items {
    background: #f9fbff;
    border-radius: 1.3rem;
    padding: 1.1rem 1.35rem;
    margin: 1.1rem 0;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.pos-tab-cart-items::-webkit-scrollbar {
    width: 6px;
}

.pos-tab-cart-items::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 999px;
}

.pos-tab-summary {
    display: grid;
    gap: 1.5rem;
}

.pos-tab-footer {
    margin-top: auto;
    background: #ffffff;
    padding-top: 1.2rem;
    padding-bottom: 0.2rem;
    position: relative;
}

.pos-tab-footer::before {
    content: "";
    position: absolute;
    top: -32px;
    left: -1.8rem;
    right: -1.8rem;
    height: 48px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.76) 65%, #ffffff 100%);
}

.pos-tab-secondary-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pos-tab-secondary-btn {
    flex: 1 1 140px;
    min-height: 52px;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #f8fafc;
    color: #1f2937;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.pos-tab-secondary-btn:hover:not(:disabled) {
    background: var(--pos-primary);
    border-color: var(--pos-primary);
    color: #ffffff;
    box-shadow: 0 18px 34px -20px rgba(42, 98, 244, 0.35);
}

.pos-tab-secondary-btn:disabled,
.pos-tab-secondary-btn[disabled] {
    background: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.35);
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.pos-tab-pay-btn:disabled,
.pos-tab-pay-btn[disabled] {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.pos-tab-totals {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.25rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 18px 35px -18px rgba(15, 23, 42, 0.18);
    position: relative;
    overflow: hidden;
    min-width: 0;
}
.pos-tab-totals::before {
    content: "";
    position: absolute;
    inset: -60% -30%;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.pos-tab-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #0f172a;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pos-tab-total-row span {
    color: var(--pos-muted);
    font-weight: 500;
}

.pos-tab-total-row strong {
    font-weight: 700;
    text-align: right;
}

.pos-tab-total-main span {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: #64748b;
}

.pos-tab-total-main strong {
    font-size: clamp(1.2rem, 2.6vw, 1.8rem);
    color: var(--pos-primary);
}

.pos-tab-total-change strong {
    color: #16a34a;
}

.pos-tab-pay-btn {
    background: linear-gradient(140deg, var(--pos-primary) 0%, rgba(42, 98, 244, 0.88) 55%, var(--pos-primary-dark) 100%);
    border: none;
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 24px 48px -26px rgba(42, 98, 244, 0.55);
}

.pos-tab-pay-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 32px 58px -26px rgba(31, 70, 200, 0.55);
}

@media (max-width: 1200px) {
    .pos-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    body.pos-tablet-body .pos-layout {
        height: auto;
    }

    .pos-tab-order-header {
        gap: 1rem;
    }

    .pos-tab-order-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .pos-tab-order-actions .pos-tab-icon-button {
        width: 48px;
        height: 48px;
    }
}

/* Tablet mid-range (mis. 10\" Xiaomi Pad) */
@media (max-width: 1100px) {
    .pos-layout,
    .pos-layout-tablet {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }
    .pos-tablet-shell {
        padding: 1.1rem 1.2rem 1.4rem;
    }
    .pos-products-tablet,
    .pos-cart-tablet {
        padding: 1.25rem;
    }
    .pos-tab-order-primary {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 0.85rem;
    }
    .pos-tab-status-grid {
        gap: 0.65rem;
    }
    .pos-tab-total-row {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .pos-tab-order-primary {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .pos-tab-total-row {
        font-size: 0.88rem;
    }

    .pos-tab-total-main strong {
        font-size: clamp(1rem, 6vw, 1.35rem);
    }

    .pos-tab-pay-btn {
        width: 100%;
    }

    .pos-tab-options-modal .pos-tab-form-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.pos-tab-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.pos-tab-form-card {
    background: #ffffff;
    border-radius: 1.1rem;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: 0 14px 32px -20px rgba(15, 23, 42, 0.22);
}

.pos-tab-form-card label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #0f172a;
}

.pos-tab-options-modal .modal-content {
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 28px 60px -30px rgba(33, 43, 72, 0.35);
}

.pos-tab-options-modal .modal-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding: 1.2rem 1.5rem;
}

.pos-tab-options-modal .modal-title {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--pos-heading);
}

.pos-tab-options-modal .modal-body {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 65%);
    padding: 1.4rem 1.6rem;
}

.pos-tab-options-modal .pos-tab-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.1rem 1.2rem;
}

.pos-tab-options-modal .pos-tab-form-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 38px -28px rgba(15, 23, 42, 0.22);
    padding: 1rem 1.1rem;
    gap: 0.55rem;
}

.pos-tab-options-modal .pos-tab-form-card-wide {
    grid-column: 1 / -1;
}

.pos-tab-options-modal .pos-table-summary-card {
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.9rem 1rem;
}

.pos-tab-options-modal .pos-table-summary-button {
    border-radius: 0.85rem;
}

.pos-tab-options-modal select,
.pos-tab-options-modal textarea,
.pos-tab-options-modal input[type="text"],
.pos-tab-options-modal input[type="tel"],
.pos-tab-options-modal input[type="email"] {
    border-radius: 0.9rem;
}

.pos-tab-options-modal .modal-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding: 1.1rem 1.5rem;
}

.pos-tab-form-card-wide {
    grid-column: 1 / -1;
}

.pos-tab-panel {
    padding: 0.75rem;
    border-radius: 0.95rem;
    background: #f1f5f9;
    border: 1px dashed rgba(37, 99, 235, 0.18);
    min-height: 74px;
}

.pos-tab-panel p {
    color: #475569;
}

.pos-tab-cart .form-control,
.pos-tab-cart .form-select {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

.pos-tab-cart .form-control::placeholder,
.pos-tab-cart .form-select::placeholder {
    color: #94a3b8;
}

.pos-tab-cart .form-control:focus,
.pos-tab-cart .form-select:focus {
    background: #ffffff;
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.2);
    color: #0f172a;
}

.pos-tab-bottom-nav {
    margin-top: 2rem;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 20px 44px -24px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.pos-tab-nav-profile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.pos-tab-nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.pos-tab-nav-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pos-tab-nav-name {
    color: #0f172a;
    font-weight: 600;
    font-size: 0.85rem;
}

.pos-tab-nav-link {
    color: #475569;
    font-size: 0.8rem;
    text-decoration: none;
}

.pos-tab-nav-link:hover {
    color: #1d4ed8;
}

.pos-tab-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex: 1;
}

.pos-tab-nav-item {
    min-width: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    padding: 0.65rem 0.95rem;
    border-radius: 1rem;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pos-tab-nav-item i {
    font-size: 1.2rem;
}

.pos-tab-nav-item.active {
    background: rgba(37, 99, 235, 0.16);
    color: #1d4ed8;
    box-shadow: 0 16px 36px -22px rgba(37, 99, 235, 0.4);
}

.pos-tab-nav-item:hover {
    color: #1d4ed8;
}

@keyframes posShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.pos-product-card {
    position: relative;
    border-radius: 1.05rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    overflow: hidden;
    cursor: grab;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 22px 44px -32px rgba(15, 23, 42, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
    will-change: transform, box-shadow;
    transform-origin: center;
}

.pos-product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 55%);
    transition: opacity 0.25s ease;
}

.pos-product-card:active {
    cursor: grabbing;
}

.pos-product-card.dragging {
    opacity: 0.6;
    cursor: grabbing;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.22);
}

.pos-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 52px -28px rgba(37, 99, 235, 0.45);
    border-color: rgba(37, 99, 235, 0.55);
}

.pos-product-card.pos-product-adding {
    animation: posProductAdding 0.26s ease;
}

@keyframes posProductAdding {
    0% {
        transform: translateY(0);
        box-shadow: 0 22px 44px -32px rgba(15, 23, 42, 0.45);
    }
    50% {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 30px 54px -26px rgba(37, 99, 235, 0.55);
    }
    100% {
        transform: translateY(-2px);
        box-shadow: 0 26px 48px -28px rgba(37, 99, 235, 0.32);
    }
}

.pos-product-card:hover::after {
    opacity: 1;
}

.pos-product-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.1);
}

.pos-product-image {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.45), rgba(203, 213, 225, 0.4));
}

.pos-product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.35) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pos-product-card:hover .pos-product-image::after {
    opacity: 1;
}

.pos-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pos-product-image .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pos-product-image .pos-product-initial {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #3b82f6, #22c55e);
    box-shadow: 0 12px 24px -12px rgba(37, 99, 235, 0.45);
}

.pos-product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(248, 113, 113, 0.9);
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 16px -10px rgba(220, 38, 38, 0.6);
}

.pos-product-badge.status-config {
    background: rgba(250, 204, 21, 0.95);
    box-shadow: 0 8px 16px -10px rgba(250, 204, 21, 0.55);
}

.pos-product-badge.status-out {
    background: rgba(239, 68, 68, 0.95);
}

.pos-product-badge.status-closed {
    background: rgba(148, 163, 184, 0.9);
    box-shadow: 0 8px 16px -10px rgba(100, 116, 139, 0.45);
}

.pos-product-info {
    padding: 0.95rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pos-product-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-height: 1px;
}

.pos-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pos-chip i {
    font-size: 0.85rem;
}

.pos-chip-warning {
    background: rgba(250, 204, 21, 0.2);
    color: #b45309;
}

.pos-chip-danger {
    background: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.pos-product-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--pos-heading);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pos-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.pos-product-price {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--pos-primary);
}

.pos-product-status {
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    background: rgba(148, 163, 184, 0.25);
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.pos-product-status.status-available {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.pos-product-status.status-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #b45309;
}

.pos-product-status.status-unavailable {
    background: rgba(248, 113, 113, 0.2);
    color: #b91c1c;
}

.pos-product-stock {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.pos-product-stock i {
    color: #1d4ed8;
}

.pos-product-stock-warning {
    display: block;
    margin-top: 0.25rem;
    color: #b91c1c;
    font-weight: 500;
}

.pos-touch-active .pos-product-card {
    cursor: pointer;
}

.pos-touch-active .pos-product-card:hover {
    transform: translateY(-2px);
}

.pos-touch-active .pos-cart {
    min-height: auto;
}

.pos-touch-active .pos-cart-items {
    -webkit-overflow-scrolling: touch;
}

.split-qty-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
}

.split-qty-stepper .split-qty-input {
    max-width: 64px;
    text-align: center;
    background-color: #f8fafc;
    border: 1px solid #cbd5f5;
    font-weight: 600;
}

.split-step-btn {
    width: 34px;
    height: 34px;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(226, 232, 240, 0.55);
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.split-step-btn:hover {
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
    box-shadow: 0 10px 22px -18px rgba(37, 99, 235, 0.6);
}

.split-step-btn:active {
    transform: scale(0.96);
}

.pos-touch-active .split-qty-stepper .split-qty-input {
    background-color: #ffffff;
}

.pos-touch-active .split-step-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
}

#splitBillModal .modal-body {
    max-height: min(70vh, calc(100vh - 220px));
    overflow-y: auto;
}

.pos-touch-active #splitBillModal .modal-body {
    -webkit-overflow-scrolling: touch;
}

#tablePickerModal .modal-body {
    max-height: min(72vh, calc(100vh - 220px));
    overflow-y: auto;
}

.pos-touch-active #tablePickerModal .modal-body {
    -webkit-overflow-scrolling: touch;
}

.pos-cart {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 160px);
    box-shadow: 0 24px 48px -32px rgba(15, 23, 42, 0.55);
    border: 1px solid #e5e7eb;
}

.pos-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pos-cart-items {
    flex: 1;
    overflow-y: auto;
    border: 1px dashed #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    background-color: #f9fafb;
}

.pos-cart-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    margin-bottom: 0.75rem;
}

.pos-cart-item:last-child {
    margin-bottom: 0;
}

.pos-cart-item h4 {
    margin: 0;
    font-size: 0.95rem;
}

.pos-cart-item small {
    color: #6b7280;
}

.pos-cart-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pos-cart-controls button {
    width: 32px;
    height: 32px;
}

.pos-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2.5rem 1rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.pos-cart-empty-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.pos-cart-empty-tablet {
    color: #475569;
}

.pos-cart-empty-tablet .pos-cart-empty-icon {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.pos-cart-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.pos-cart-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.pos-cart-actions {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pos-cart-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #dbe4f1;
    border-radius: 1rem;
    padding: 0.6rem 0.9rem;
    background: #f8fafc;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-width: 200px;
}

.pos-cart-action:disabled,
.pos-cart-action[disabled] {
    border-color: rgba(226, 232, 240, 0.8);
    background: #f3f4f6;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.pos-product-actions {
    margin-top: 0.55rem;
}

.pos-product-actions .pos-product-add {
    width: 100%;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background-color: var(--pos-primary);
    border-color: var(--pos-primary);
    box-shadow: 0 18px 32px -22px rgba(42, 98, 244, 0.45);
}

.pos-product-card.disabled .pos-product-actions .pos-product-add {
    opacity: 0.6;
    box-shadow: none;
}

.pos-cart-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
}

.pos-cart-body .pos-cart-items {
    flex: 1 1 auto;
    border: none;
    background: transparent;
    padding: 0;
    margin-top: 0.5rem;
}

.pos-cart-body .pos-cart-empty {
    border: 1px dashed #d1d5db;
    border-radius: 1rem;
    background: #f8fafc;
}

.pos-cart-totals {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1rem;
    padding: 1.15rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pos-cart-totals-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    font-size: 0.92rem;
}

.pos-cart-totals-line strong {
    font-weight: 600;
    color: #0f172a;
}

.pos-cart-totals-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.25rem;
    color: #111827;
}

.pos-cart-totals-change {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2563eb;
    font-weight: 600;
}

.pos-cart-quick-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.pos-cart-simple-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.pos-cart-simple-header p {
    color: #64748b;
    margin-bottom: 0;
}

.pos-cart-simple-actions {
    display: flex;
    gap: 0.5rem;
}

.pos-cart-simple-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pos-cart-simple-actions .badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.45rem;
}

@media (max-width: 991.98px) {
    .pos-toolbar-header {
        flex-direction: column;
        align-items: stretch;
    }

    .pos-toolbar-header .pos-search {
        width: 100%;
    }

    .pos-cart-simple-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .pos-cart-simple-actions {
        justify-content: flex-end;
    }
}

.pos-cart-action:hover {
    transform: translateY(-1px);
    border-color: #bfdbfe;
    background: #eff6ff;
    box-shadow: 0 12px 24px -18px rgba(37, 99, 235, 0.4);
}

.pos-cart-action:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}

.pos-cart-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.pos-cart-action-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.1;
}

.pos-cart-action-body .title {
    font-weight: 600;
    font-size: 0.92rem;
    color: inherit;
}

.pos-cart-action-body .subtitle {
    font-size: 0.72rem;
    color: #64748b;
}

.pos-cart-action-badge {
    position: absolute;
    top: 6px;
    right: 10px;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: #ef4444;
    color: #fff;
}

.pos-cart-action.danger {
    border-color: #fecaca;
    background: #fff5f5;
    color: #b91c1c;
}

.pos-cart-action.danger:hover {
    border-color: #fca5a5;
    background: #fee2e2;
    box-shadow: 0 12px 22px -20px rgba(248, 113, 113, 0.4);
}

.btn-soft-primary,
.btn-soft-secondary,
.btn-soft-danger {
    border: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
    border-radius: 0.75rem;
}

.btn-soft-primary {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    box-shadow: 0 6px 18px -16px rgba(37, 99, 235, 0.65);
}

.btn-soft-primary:hover {
    background: rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-soft-secondary {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.btn-soft-secondary:hover {
    background: rgba(100, 116, 139, 0.18);
    color: #334155;
    transform: translateY(-1px);
}

.btn-soft-primary:disabled,
.btn-soft-primary[disabled],
.btn-soft-secondary:disabled,
.btn-soft-secondary[disabled],
.btn-soft-danger:disabled,
.btn-soft-danger[disabled] {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-soft-danger {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.btn-soft-danger:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #991b1b;
    transform: translateY(-1px);
}

.pos-cart-summary {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pos-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pos-section--outline {
    background: #ffffff;
    border-style: dashed;
}

.pos-section--surface {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.pos-section--secondary {
    background: rgba(226, 232, 240, 0.35);
    border: 1px dashed rgba(148, 163, 184, 0.45);
}

.pos-summary-section {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(37, 99, 235, 0.04));
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.pos-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.pos-section-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.pos-section-title h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.pos-section-title p {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.pos-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(15, 23, 42, 0.08);
}

.pos-section-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pos-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pos-field-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pos-field-static {
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    font-size: 0.9rem;
    color: #475569;
}

.pos-field .form-control,
.pos-field .form-select {
    border-radius: 0.8rem;
    border: 1px solid #dbe4f1;
    padding: 0.6rem 0.85rem;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pos-field .form-control:focus,
.pos-field .form-select:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pos-field textarea {
    min-height: 90px;
}

.pos-promo-wrapper {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pos-promo-card-list {
    display: grid;
    gap: 0.75rem;
}

.pos-promo-options,
.pos-promo-applied {
    border-radius: 0.9rem;
    border: 1px dashed #d1d5db;
    background-color: #ffffff;
    padding: 0.85rem;
}

.pos-promo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    border-radius: 0.9rem;
    padding: 0.95rem 1rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    text-align: left;
    transition: all 0.2s ease;
}

.pos-promo-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 12px 24px -20px rgba(15, 23, 42, 0.8);
}

.pos-promo-card.active {
    border-color: #2563eb;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.12));
}

.pos-promo-card-info {
    flex: 1;
}

.pos-promo-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #0f172a;
}

.pos-promo-meta {
    font-size: 0.82rem;
    color: #64748b;
}

.pos-promo-card.active .pos-promo-meta {
    color: #1d4ed8;
}

.pos-promo-status {
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
}

.pos-promo-card.active .pos-promo-status {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.pos-promo-applied-empty {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
}

.pos-promo-applied-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid #e2e8f0;
}

.pos-promo-applied-row:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pos-promo-amount {
    font-weight: 600;
    color: #0f172a;
}

.pos-promo-remove {
    font-weight: 600;
    color: #ef4444 !important;
}

.pos-summary {
    border-radius: 0.95rem;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.pos-summary-hero {
    border-radius: 0.9rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.08));
    padding: 0.95rem 1rem;
    text-align: center;
    display: grid;
    gap: 0.35rem;
}

.pos-summary-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1d4ed8;
    font-weight: 600;
}

.pos-summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.pos-summary-caption {
    font-size: 0.8rem;
    color: #64748b;
}

.pos-summary-data {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.5rem 0;
}

.pos-summary-data .pos-summary-row span {
    color: #64748b;
}

.pos-summary-data .pos-summary-row strong {
    font-weight: 600;
    color: #0f172a;
}


.pos-summary-data .pos-summary-row:not(:last-child):not(.pos-summary-change) {
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 0.45rem;
    margin-bottom: 0.45rem;
}

.pos-summary-value {
    font-size: 2.1rem;
    letter-spacing: -0.03em;
}

.pos-pay-button-wrapper {
    display: flex;
    gap: 0.75rem;
}

.pos-pay-button-wrapper .pos-pay-button {
    flex: 1;
}


.pos-summary-data .pos-summary-row + .pos-tax-detail-list {
    margin-top: -0.25rem;
}

.pos-summary-hint {
    font-size: 0.8rem;
}

.pos-helper-text {
    font-size: 0.8rem;
    color: #94a3b8;
}

.pos-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #334155;
    font-size: 0.95rem;
}

.pos-summary-row strong {
    font-weight: 600;
}

.pos-summary hr {
    margin: 0.35rem 0;
}

.pos-summary-total strong {
    font-size: 1.15rem;
    color: #0f172a;
    font-weight: 700;
}

.pos-summary-change strong {
    color: #16a34a;
}

.pos-pay-button {
    margin-top: 0.5rem;
    padding: 0.9rem 1.25rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 15px 30px -18px rgba(37, 99, 235, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pos-pay-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px -16px rgba(37, 99, 235, 0.85);
    color: #ffffff;
}

.pos-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pos-quick-actions .btn {
    flex: 1 1 150px;
}

.pos-note {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    width: 100%;
    margin-top: 0.35rem;
}

.table-responsive {
    border-radius: 1rem;
    background-color: #fff;
    padding: 1rem;
}

.table {
    margin-bottom: 0;
}

.bg-primary-subtle {
    background-color: rgba(37, 99, 235, 0.12) !important;
}

.bg-warning-subtle {
    background-color: rgba(234, 179, 8, 0.18) !important;
}

.bg-success-subtle {
    background-color: rgba(22, 163, 74, 0.15) !important;
}

.bg-secondary-subtle {
    background-color: rgba(148, 163, 184, 0.2) !important;
}

.bg-indigo-subtle {
    background-color: rgba(99, 102, 241, 0.2) !important;
}

.text-indigo {
    color: #4f46e5 !important;
}

.badge {
    font-weight: 600;
}

.list-group-item-action {
    display: flex;
    align-items: center;
}

.list-group-item-action i {
    margin-right: 0.5rem;
}

.btn-close {
    background-size: 10px;
}

/* POS Variant Selection */
#variantSelectionModal .modal-content {
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 45px 90px -45px rgba(15, 23, 42, 0.5);
    overflow: hidden;
}

#variantSelectionModal .modal-header {
    padding: 1.5rem 1.75rem 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

#variantSelectionModal .modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

#variantSelectionModal .modal-header small {
    color: #64748b;
    font-weight: 600;
}

#variantSelectionModal .btn-close {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

#variantSelectionModal .btn-close:hover {
    opacity: 0.9;
}

#variantSelectionModal .modal-body {
    padding: 1.5rem 1.75rem;
    background: #ffffff;
}

#variantSelectionModal .modal-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: #f8fafc;
    padding: 1.5rem 1.75rem 1.75rem;
}

#variantSelectionModal .modal-footer .btn {
    border-radius: 0.9rem;
    padding: 0.6rem 1.35rem;
    font-weight: 600;
}

#variantSelectionModal .modal-footer .btn-outline-secondary {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.45);
    color: #1f2937;
}

#variantSelectionModal .modal-footer .btn-outline-secondary:hover {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(37, 99, 235, 0.45);
    color: #1d4ed8;
}

#variantSelectionModal #variantConfirmButton {
    border: none;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 22px 44px -24px rgba(37, 99, 235, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#variantSelectionModal #variantConfirmButton:hover {
    transform: translateY(-1px);
    box-shadow: 0 28px 56px -26px rgba(37, 99, 235, 0.65);
}

#variantSelectionModal #variantConfirmButton i {
    margin-right: 0.4rem;
}

#variantSelectionModal .badge.bg-danger {
    background: rgba(248, 113, 113, 0.18) !important;
    color: #b91c1c;
    border: 1px solid rgba(248, 113, 113, 0.3);
    font-weight: 600;
}

#variantSelectionModal .badge.bg-light {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.variant-selection-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .variant-selection-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}

.variant-search.input-group {
    flex: 1;
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 0.2rem 0.3rem;
    background: rgba(248, 250, 252, 0.85);
    align-items: center;
    gap: 0.2rem;
}

@media (min-width: 992px) {
    .variant-search.input-group {
        max-width: 560px;
    }
}

.variant-search .input-group-text {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.05rem;
    padding: 0 0.65rem 0 0.75rem;
}

.variant-search .form-control {
    border: none;
    background: transparent;
    padding: 0.3rem 0.5rem;
    font-weight: 500;
    color: #0f172a;
    box-shadow: none;
}

.variant-search .form-control:focus {
    border: none;
    box-shadow: none;
}

.variant-search .form-control::placeholder {
    color: #94a3b8;
}

.variant-search .btn {
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    color: #94a3b8;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.variant-search .btn:hover {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.variant-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.variant-selection-groups {
    display: grid;
    gap: 1rem;
}

.variant-group {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1rem;
    background: #ffffff;
    padding: 1.1rem 1.2rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: 0 18px 36px -32px rgba(15, 23, 42, 0.25);
}

.variant-group:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 22px 44px -30px rgba(37, 99, 235, 0.28);
    transform: translateY(-2px);
}

.variant-group.variant-group-selected {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 18px 36px -24px rgba(37, 99, 235, 0.28);
}

.variant-group.variant-group-error {
    border-color: rgba(220, 38, 38, 0.45);
    box-shadow: 0 22px 44px -30px rgba(220, 38, 38, 0.35);
}

.variant-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.variant-group-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.variant-group-title {
    font-weight: 600;
    font-size: 1rem;
    color: #0f172a;
}

.variant-group-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.variant-group-hint {
    font-size: 0.8rem;
    color: #64748b;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
}

.variant-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.variant-badge-required {
    background: rgba(248, 113, 113, 0.2);
    color: #b91c1c;
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.variant-badge-single {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.variant-badge-multi {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.variant-group-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.variant-option.form-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.95rem;
    background: rgba(248, 250, 252, 0.85);
    padding: 0.65rem 0.85rem;
    margin: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.variant-option + .variant-option {
    margin-top: 0.55rem;
}

.variant-option .form-check-input {
    margin: 0;
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    border-color: rgba(148, 163, 184, 0.6);
    box-shadow: none;
}

.variant-option .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.6);
}

.variant-option .form-check-input:checked {
    background-color: #2563eb;
    border-color: #1d4ed8;
}

.variant-option .form-check-label {
    margin-left: 0.75rem;
    flex: 1;
    color: #0f172a;
    gap: 0.75rem;
    font-weight: 600;
}

.variant-option .form-check-label span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    justify-content: flex-end;
    text-align: right;
    min-width: 4rem;
}

.variant-option .badge {
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1) !important;
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.2);
    font-weight: 600;
}

.variant-option.is-selected {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.12);
    box-shadow: 0 20px 40px -30px rgba(37, 99, 235, 0.45);
}

.variant-option.is-selected .form-check-label {
    color: #1d4ed8;
}

.variant-option.is-selected .badge {
    background: #ffffff !important;
}

.variant-option-title {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.variant-price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5rem;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #ffffff;
    color: #0f172a;
}

.variant-price-up {
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.08);
}

.variant-price-down {
    color: #b91c1c;
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.12);
}

.variant-price-neutral {
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(248, 250, 252, 0.85);
}

.variant-summary-sep {
    display: inline-block;
    margin: 0 0.4rem;
    color: #94a3b8;
    font-weight: 600;
}

.variant-group-empty {
    flex: 1 1 100%;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 0.85rem;
    padding: 0.9rem;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    background-color: rgba(248, 250, 252, 0.7);
}

.variant-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 999px;
    background: #ffffff;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
    color: #1f2937;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.variant-chip:hover {
    border-color: rgba(37, 99, 235, 0.6);
    color: #1d4ed8;
    box-shadow: 0 10px 22px -20px rgba(37, 99, 235, 0.3);
}

.variant-chip input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.variant-chip.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 14px 26px -20px rgba(37, 99, 235, 0.45);
}

.variant-chip-title {
    font-weight: 600;
}

.variant-chip-meta {
    font-size: 0.75rem;
    color: inherit;
    opacity: 0.75;
}

.variant-chip.active .variant-chip-meta {
    opacity: 0.85;
}

.variant-selection-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #64748b;
}

.variant-selection-empty i {
    font-size: 2rem;
    color: #2563eb;
    opacity: 0.8;
    display: block;
    margin-bottom: 0.75rem;
}

.variant-group.variant-group-collapsed .variant-group-options {
    display: none;
}

.variant-group.variant-group-collapsed .variant-group-header {
    margin-bottom: 0;
}

.variant-group.variant-group-collapsed .variant-group-title::after {
    content: " (diciutkan)";
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8;
}

.variant-group-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #94a3b8;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.variant-group-header:hover .variant-group-caret,
.variant-group-header:focus-within .variant-group-caret {
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.25);
    background-color: rgba(37, 99, 235, 0.08);
}

.variant-group-options[aria-hidden="true"] {
    display: none;
}

.variant-highlight {
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.3), rgba(37, 99, 235, 0));
    border-radius: 0.35rem;
    padding: 0 0.2rem;
}

.variant-section-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.45), rgba(148, 163, 184, 0));
    margin: 0.75rem 0;
}

.variant-toolbar-actions .btn {
    border-radius: 999px;
    padding-inline: 0.9rem;
}

.variant-toolbar-actions .btn[data-active="1"],
.variant-toolbar-actions .btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 28px -18px rgba(37, 99, 235, 0.7);
}

.variant-toolbar-actions .btn[data-collapsed="1"] {
    border-color: rgba(59, 130, 246, 0.5);
    color: #1d4ed8;
}






.menu-item.open > .submenu {
    display: block;
}

.menu-item.open > a .menu-caret {
    transform: rotate(180deg);
}

.delta-badge {
    font-weight: 600;
}

.delta-badge[data-direction="up"] {
    color: #16a34a;
}

.delta-badge[data-direction="down"] {
    color: #dc2626;
}

.delta-badge[data-direction="flat"] {
    color: #6b7280;
}

.realtime-card .stats-card {
    min-height: 100%;
}

.cohort-table {
    font-size: 0.85rem;
}

.cohort-table th,
.cohort-table td {
    white-space: nowrap;
}

.cohort-table td.cohort-cell {
    position: relative;
    text-align: center;
    font-weight: 600;
}

.cohort-table td.cohort-cell::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 6px;
    background-color: var(--cohort-color, rgba(16, 185, 129, 0.15));
    z-index: 0;
}

.cohort-table td.cohort-cell > span {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .realtime-card .stats-card {
        min-height: auto;
    }
}

.waiter-app {
    --waiter-ink: #0f172a;
    --waiter-ink-soft: #475569;
    --waiter-accent: #0d6efd;
    --waiter-gold: #f59e0b;
    min-height: 100vh;
    padding: 1.25rem 0 5rem;
    background: radial-gradient(circle at 20% 10%, rgba(13, 110, 253, 0.06), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.08), transparent 38%),
                linear-gradient(180deg, #f5f7fb 0%, #f8fafc 60%, #ffffff 100%);
    color: #0f172a;
    overflow-x: hidden;
}

.waiter-hero {
    border-radius: 1.6rem;
    background: linear-gradient(135deg, #0f172a 0%, #1f2a3d 65%, #2c374f 100%);
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 35px 65px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.waiter-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(248, 250, 252, 0.12), transparent 50%),
                radial-gradient(circle at 80% 30%, rgba(248, 250, 252, 0.08), transparent 55%);
    pointer-events: none;
}

.waiter-hero-body {
    padding: 2rem;
    position: relative;
}

.waiter-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.waiter-subtitle {
    font-size: 1rem;
    opacity: 0.85;
}

.waiter-hero-head {
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.waiter-hero-head-meta {
    gap: 0.5rem;
}

.waiter-hero-badge {
    background: rgba(248, 250, 252, 0.16);
    border: 1px solid rgba(248, 250, 252, 0.28);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.waiter-hero-badge--primary {
    background: rgba(13, 110, 253, 0.18);
    border-color: rgba(13, 110, 253, 0.5);
    color: #e7f1ff;
}

.waiter-hero-stat-grid {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.waiter-hero-stat-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 1rem;
    min-height: 120px;
}

.waiter-hero-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}

.waiter-hero-stat-label {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
}

.waiter-hero-stat-note {
    font-size: 0.78rem;
    color: rgba(248, 250, 252, 0.9);
}

.waiter-hero-statuses {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.waiter-hero-status-pill {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    border: 1px solid rgba(248, 250, 252, 0.4);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.12), rgba(255, 255, 255, 0.02));
    color: #e2e8f0;
    box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.35);
}

.waiter-hero-status-pill.status-terisi {
    border-color: #34d399;
    color: #bbf7d0;
}

.waiter-hero-status-pill.status-reserved {
    border-color: #fbbf24;
    color: #fef3c7;
}

.waiter-hero-status-pill.status-cleaning {
    border-color: #94a3b8;
    color: #e2e8f0;
}

.waiter-hero-status-pill.status-blocked {
    border-color: #475569;
    color: #cbd5f5;
}

.waiter-hero-status-pill.status-kosong {
    border-color: #60a5fa;
    color: #dbeafe;
}

.waiter-section-switch {
    display: flex;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 0.35rem;
    gap: 0.35rem;
    margin-bottom: 1rem;
    position: sticky;
    top: 0.75rem;
    z-index: 30;
    backdrop-filter: blur(12px);
}

.waiter-switch-btn {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 0.55rem 0.75rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.waiter-switch-btn.is-active {
    background: #0d6efd;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.25);
}

.waiter-sections {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.waiter-section {
    display: none;
    animation: waiterFade 0.25s ease;
}

.waiter-section:first-of-type {
    display: block;
}

.waiter-section.is-active {
    display: block;
}

.waiter-sections.is-desktop {
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
}

.waiter-sections.is-desktop .waiter-section {
    display: block;
}

.waiter-panel {
    flex: 1;
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
    background-color: #ffffff;
}

.waiter-panel-header {
    border: 0;
    background: transparent;
    padding: 1.25rem 1.5rem 0;
}

.waiter-panel .card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.waiter-table-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.waiter-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.1rem;
}

.waiter-multi-select-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.waiter-multi-select-summary {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    font-size: 0.9rem;
    color: #475569;
}

.waiter-multi-select-summary span {
    font-weight: 600;
}

.waiter-multi-select-summary button {
    color: #0d6efd;
}

.waiter-table-filters {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 0.9rem;
    padding: 0.6rem 0.9rem;
    gap: 0.75rem;
    box-shadow: 0 14px 32px -22px rgba(15, 23, 42, 0.22);
    margin-bottom: 0.5rem;
}

.waiter-table-card.is-selected {
    border-color: #2563eb;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25);
    background: #eef3ff;
}

.waiter-table-card {
    display: block;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 1.05rem 1.1rem;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 65%, #ffffff 100%);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.waiter-table-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    border-color: rgba(15, 23, 42, 0.25);
}

.waiter-table-card.is-active {
    border-color: rgba(15, 23, 42, 0.5);
    box-shadow: 0 23px 55px rgba(15, 23, 42, 0.25);
}

.waiter-table-card.status-terisi { border-left: 4px solid #22c55e; }
.waiter-table-card.status-reserved { border-left: 4px solid #f97316; }
.waiter-table-card.status-cleaning { border-left: 4px solid #64748b; }
.waiter-table-card.status-blocked { border-left: 4px solid #0f172a; }
.waiter-table-card.status-kosong { border-left: 4px solid #2563eb; }
.waiter-table-card.is-attention { border-left-color: #e11d48; box-shadow: 0 20px 48px rgba(225, 29, 72, 0.26); }

.waiter-table-header {
    font-size: 1rem;
    font-weight: 600;
}

.waiter-table-body {
    font-size: 0.9rem;
    color: #475569;
    margin-top: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.waiter-table-body .bi {
    color: #0d6efd;
}

.waiter-order-form .form-control,
.waiter-order-form .form-select {
    border-radius: 0.75rem;
}

.waiter-order-table .table {
    border-collapse: separate;
    border-spacing: 0 12px;
    width: 100%;
}

.waiter-order-table tbody tr {
    background-color: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
}

.waiter-order-table tbody tr td {
    border: 0;
    padding: 0.85rem 1rem;
    vertical-align: top;
}

.waiter-order-table tbody tr td:first-child {
    border-top-left-radius: 1.25rem;
    border-bottom-left-radius: 1.25rem;
}

.waiter-order-table tbody tr td:last-child {
    text-align: right;
    border-top-right-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
}

.waiter-recent {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(255, 255, 255, 0.95) 60%);
    border-radius: 1.1rem;
}

.waiter-recent-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.waiter-recent-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed rgba(13, 110, 253, 0.2);
}

.waiter-recent-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.waiter-recent-name {
    font-weight: 600;
}

.waiter-recent-note {
    line-height: 1.3;
}

.waiter-recent-subtotal {
    font-weight: 600;
}

.waiter-recent-total {
    border-top: 1px solid rgba(13, 110, 253, 0.15);
    padding-top: 0.75rem;
}

@keyframes waiterFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.waiter-order-table .waiter-variant-select {
    min-width: 180px;
}

.waiter-order-table .form-control,
.waiter-order-table .form-select {
    border-radius: 0.85rem;
    min-height: 42px;
    font-size: 0.95rem;
    line-height: 1.35;
}

.waiter-order-table [data-field="qty"] {
    width: 82px;
    text-align: center;
}

.waiter-order-table textarea {
    min-height: 90px;
    resize: vertical;
}

.waiter-order-toolbar {
    margin-top: 0.5rem;
    background: #f8fafc;
    border: 1px dashed rgba(15, 23, 42, 0.08);
    border-radius: 0.95rem;
    padding: 0.9rem 1.1rem;
}

.waiter-order-table .waiter-menu-picker {
    gap: 0.35rem;
}

.waiter-order-table .waiter-menu-trigger {
    min-height: 50px;
    font-size: 0.98rem;
}

.waiter-order-footer {
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #0d6efd 0%, #35a1ff 70%);
    color: #ffffff;
    border-radius: 1.35rem;
    padding: 1.3rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    bottom: 1rem;
    box-shadow: 0 20px 45px rgba(13, 110, 253, 0.35);
    z-index: 5;
}

.waiter-total-label {
    font-size: 0.9rem;
    opacity: 0.85;
    display: block;
}

.waiter-total-amount {
    font-size: 2rem;
    font-weight: 700;
}

.waiter-submit {
    width: 100%;
    min-height: 54px;
    border-radius: 1rem;
    box-shadow: 0 22px 42px rgba(25, 135, 84, 0.35);
}

.waiter-add-item {
    border-radius: 999px;
    padding-inline: 1.25rem;
}

.waiter-note {
    resize: vertical;
}

.waiter-menu-picker {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.waiter-menu-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(13, 110, 253, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.9));
    box-shadow: 0 18px 38px -26px rgba(13, 110, 253, 0.35);
    color: #0f172a;
    font-weight: 600;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.18s ease;
}

.waiter-menu-trigger:hover {
    border-color: rgba(13, 110, 253, 0.4);
    box-shadow: 0 24px 48px -28px rgba(13, 110, 253, 0.45);
    transform: translateY(-1px);
}

.waiter-menu-trigger.has-selection {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(99, 102, 241, 0.18));
    border-color: rgba(13, 110, 253, 0.48);
}

.waiter-menu-trigger-label {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.waiter-menu-trigger-price {
    font-weight: 700;
    color: #0d6efd;
    white-space: nowrap;
}

.waiter-menu-modal-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.waiter-menu-modal-sidebar {
    border-right: 1px solid rgba(148, 163, 184, 0.25);
    padding-right: 1.25rem;
    max-height: calc(70vh);
    overflow-y: auto;
}

.waiter-menu-search .input-group-text {
    border-radius: 0.85rem 0 0 0.85rem;
}

.waiter-menu-search .form-control {
    border-radius: 0 0.85rem 0.85rem 0;
}

.waiter-menu-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.waiter-menu-category-btn {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.9rem;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    font-weight: 600;
    color: #0f172a;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.waiter-menu-category-btn:hover {
    border-color: rgba(13, 110, 253, 0.35);
    transform: translateX(4px);
}

.waiter-menu-category-btn.is-active {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(59, 130, 246, 0.12));
    border-color: rgba(13, 110, 253, 0.5);
    color: #0d6efd;
    box-shadow: 0 16px 36px -28px rgba(13, 110, 253, 0.45);
}

.waiter-menu-modal-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.waiter-menu-modal-toolbar .badge {
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
}
.waiter-menu-modal-toolbar [data-menu-quick-filters] .btn {
    border-radius: 999px;
    font-weight: 600;
    padding-inline: 0.9rem;
}
.waiter-menu-modal-toolbar [data-menu-quick-filters] .btn.btn-primary {
    box-shadow: 0 12px 28px -18px rgba(13, 110, 253, 0.55);
}

.waiter-menu-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.waiter-menu-card {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 1.1rem;
    padding: 1rem;
    text-align: left;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 85%, #ffffff 100%);
    box-shadow: 0 22px 46px -32px rgba(15, 23, 42, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.waiter-menu-card:hover {
    transform: translateY(-6px);
    border-color: rgba(13, 110, 253, 0.45);
    box-shadow: 0 32px 60px -26px rgba(13, 110, 253, 0.35);
}

.waiter-menu-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0.9rem;
    overflow: hidden;
    margin-bottom: 0.85rem;
    background: radial-gradient(circle at top left, rgba(13, 110, 253, 0.2), rgba(59, 130, 246, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}

.waiter-menu-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.waiter-menu-card:hover .waiter-menu-card-media img {
    transform: scale(1.04);
}

.waiter-menu-card-initial {
    font-size: 2.6rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.75);
    text-transform: uppercase;
}

.waiter-menu-card.is-active {
    border-color: rgba(13, 110, 253, 0.6);
    box-shadow: 0 36px 64px -28px rgba(13, 110, 253, 0.45);
}

.waiter-menu-card.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.waiter-menu-card.is-disabled:hover {
    transform: none;
    box-shadow: 0 22px 44px -36px rgba(15, 23, 42, 0.28);
    border-color: rgba(148, 163, 184, 0.28);
}

.waiter-menu-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.waiter-menu-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.waiter-menu-card-price {
    font-weight: 700;
    color: var(--waiter-accent, #0d6efd);
}

.waiter-menu-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #475569;
}

.waiter-menu-card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(148, 163, 184, 0.22);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-weight: 500;
}

.waiter-menu-card-status {
    border-radius: 999px;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
}

.waiter-menu-card .waiter-menu-card-status + .waiter-menu-card-status {
    top: 2.1rem;
}

.waiter-menu-empty {
    max-width: 380px;
    margin: 0 auto;
}

.waiter-recent-mini {
    display: block;
}

.waiter-recent-mini .text-truncate {
    max-width: 16rem;
}

.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.16) !important;
}

@media (max-width: 991.98px) {
    .waiter-app {
        padding: 0.9rem 0 6rem;
    }
    .waiter-hero {
        margin-bottom: 0.85rem;
    }
    .waiter-panel {
        border-radius: 1rem;
    }
    .waiter-menu-modal-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-height: none;
    }
    .waiter-menu-modal-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.25);
        padding-right: 0;
        padding-bottom: 1rem;
        max-height: none;
    }
    .waiter-menu-modal-content {
        max-height: none;
        padding-right: 0;
    }
    .waiter-table-grid {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
    }
    .waiter-table-grid::-webkit-scrollbar {
        height: 6px;
    }
    .waiter-table-grid::-webkit-scrollbar-thumb {
        background-color: rgba(13, 110, 253, 0.25);
        border-radius: 999px;
    }
    .waiter-table-card {
        min-width: 190px;
        scroll-snap-align: start;
        font-size: 0.95rem;
    }
    .waiter-order-footer {
        position: sticky;
        bottom: 0.5rem;
        border-radius: 1rem;
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .waiter-hero-body {
        padding: 1.1rem;
    }
    .waiter-title {
        font-size: 1.28rem;
    }
    .waiter-subtitle {
        font-size: 0.9rem;
    }
    .waiter-panel-header {
        padding: 1rem 1rem 0;
    }
    .waiter-panel .card-body {
        padding: 1rem 1rem 1.25rem;
    }
    .waiter-table-card {
        min-width: 160px;
        padding: 0.95rem;
    }
    .waiter-menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .waiter-order-table table {
        display: block;
    }
    .waiter-order-table table thead {
        display: none;
    }
    .waiter-order-table table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        width: 100%;
    }
    .waiter-order-table table tbody tr {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        width: 100%;
    }
    .waiter-order-table table tbody tr td {
        width: 100%;
        padding: 0.4rem 0;
        display: block;
    }
    .waiter-order-table table tbody tr td:nth-child(2) {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    .waiter-order-table table tbody tr td:last-child {
        justify-content: flex-end;
        display: flex;
    }
    .waiter-order-footer {
        margin-bottom: 0.75rem;
        position: static;
        box-shadow: 0 12px 24px rgba(13, 110, 253, 0.25);
    }
    .waiter-recent-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .waiter-recent-subtotal {
        text-align: left;
    }
}

@media (min-width: 576px) {
    .waiter-order-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .waiter-submit {
        width: auto;
        min-width: 220px;
    }
}

@media (max-width: 575.98px) {
    .waiter-app {
        padding: 0.65rem 0 5rem;
    }
    .waiter-hero {
        border-radius: 1rem;
    }
    .waiter-hero-body {
        padding: 0.95rem;
    }
    .waiter-hero-meta {
        width: 100%;
        justify-content: space-between;
    }
    .waiter-table-grid {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        overflow: visible;
    }
    .waiter-table-card {
        min-width: 100%;
        padding: 0.85rem 0.95rem;
    }
    .waiter-panel {
        border-radius: 1rem;
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
    }
    .waiter-panel .card-body {
        padding: 0.95rem 1rem 1.2rem;
    }
    .waiter-panel-header {
        padding: 0.9rem 1rem 0;
    }
    .waiter-order-form {
        gap: 1.1rem;
    }
    .waiter-order-table table tbody tr {
        padding: 0.85rem;
        gap: 0.6rem;
    }
    .waiter-order-footer {
        padding: 1rem 1.1rem;
        border-radius: 1rem;
    }
}

@media (min-width: 992px) {
    .waiter-section-switch {
        display: none;
    }
    .waiter-sections {
        grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
    }
}

.pos-shift-locked .pos-product-card {
    pointer-events: none;
    opacity: 0.55;
}

.pos-shift-locked .pos-product-card .pos-product-card-inner {
    transform: none !important;
}

.shift-banner-highlight {
    animation: shift-banner-pulse 0.8s ease-in-out;
}

@keyframes shift-banner-pulse {
    0% {
        box-shadow: 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.12);
    }
    100% {
        box-shadow: 0 0 0 rgba(59, 130, 246, 0);
    }
}

.btn-glow {
    position: relative;
    animation: shift-btn-glow 1.4s ease-in-out;
}

@keyframes shift-btn-glow {
    0% {
        box-shadow: 0 0 0 rgba(59, 130, 246, 0.5);
    }
    40% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.1);
    }
    100% {
        box-shadow: 0 0 0 rgba(59, 130, 246, 0);
    }
}

.pos-shift-card {
    border-top: 3px solid #0d6efd;
}

.pos-shift-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pos-shift-method {
    background-color: #f8f9fa;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pos-shift-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.08);
}

.pos-shift-method-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.pos-shift-last-log .border {
    background-color: #f1f5ff;
}

.pos-shift-last-log .text-muted strong {
    color: #0d6efd;
}

.pos-shift-method [data-field="net"] {
    display: inline-block;
    min-width: 72px;
}

.payment-change-container {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.payment-change-container.has-change {
    background-color: #ecfdf5;
    transform: translateY(-2px);
}

.payment-change-label {
    font-weight: 500;
    color: #475467;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.payment-change-label-strong {
    color: #15803d;
    font-weight: 700;
}

.payment-change-positive {
    color: #16a34a;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.2vw, 2.6rem);
    text-shadow: 0 0.2rem 0.6rem rgba(22, 163, 74, 0.25);
}

.payment-submit-highlight {
    animation: payment-button-pulse 1.4s ease-in-out infinite;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
}

.payment-submit-highlight:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.7);
    outline-offset: 2px;
}

@keyframes payment-button-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.face-video-frame {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #111827;
}

.face-video-frame video,
.face-video-frame canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    border-radius: inherit;
}

.face-video-hint {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-align: center;
}

.face-enroll-status {
    min-height: 40px;
}

.face-kiosk-body {
    min-height: 100vh;
    background: radial-gradient(110% 140% at 50% 0%, #1f2937 0%, #0f172a 55%, #0b1120 100%);
    padding: 2.5rem 1.25rem;
    overflow-x: hidden;
}

.face-kiosk-body .app {
    display: block;
    min-height: 100vh;
}

.face-kiosk-body .app-sidebar,
.face-kiosk-body .app-header,
.face-kiosk-body .app-footer,
.face-kiosk-body .app-sidebar-backdrop {
    display: none !important;
}

.face-kiosk-body .app-main,
.face-kiosk-body .app-content {
    width: 100%;
}

.face-kiosk-body .app-content {
    padding: 0;
}

.face-kiosk-shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.face-kiosk-app {
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 1.75rem;
    box-shadow: 0 28px 65px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.face-kiosk-app.face-kiosk-disabled {
    opacity: 0.85;
    filter: grayscale(0.35);
}

.face-kiosk-app .card-body {
    --face-kiosk-body-pad: 3rem;
    padding: var(--face-kiosk-body-pad);
    padding-bottom: calc(var(--face-kiosk-body-pad) + 1.25rem);
    position: relative;
}

.face-kiosk-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(79, 70, 229, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.face-kiosk-hero-glow {
    position: absolute;
    inset: -40% -10%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), rgba(59, 130, 246, 0));
    opacity: 0.75;
    pointer-events: none;
}

.face-kiosk-hero * {
    position: relative;
    z-index: 2;
}

.face-kiosk-hero-text {
    max-width: 38rem;
    color: #0b1120;
}

.face-kiosk-badge {
    letter-spacing: 0.08em;
    font-weight: 600;
}

.face-kiosk-title {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #0b1120;
}

.face-kiosk-subtitle {
    color: #1f2937;
    max-width: 32rem;
}

.face-kiosk-hero-meta {
    min-width: 14rem;
}

.face-kiosk-hero-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 1.1rem;
    padding: 1rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.face-kiosk-hero-label {
    letter-spacing: 0.05em;
    color: rgba(15, 23, 42, 0.58);
}

.face-kiosk-hero-clock {
    font-family: var(--bs-font-monospace, 'SFMono-Regular', 'Menlo', monospace);
    font-size: clamp(2.1rem, 4vw, 2.9rem);
    font-weight: 600;
    color: #111827;
}

.face-kiosk-hero-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0b1120;
}

.face-kiosk-alert {
    border-radius: 1rem;
    border-width: 1px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.face-kiosk-toolbar {
    border-radius: 1.2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.face-kiosk-action {
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.face-kiosk-action i {
    font-size: 1rem;
}

.face-kiosk-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.face-kiosk-action.face-kiosk-action-loading {
    transform: none;
}

.face-kiosk-toolbar-note {
    max-width: 20rem;
    line-height: 1.4;
}

.face-kiosk-panel .card-body {
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.75));
    border-radius: 1.1rem;
}

.face-kiosk-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.face-kiosk-pill-soft {
    background: rgba(79, 70, 229, 0.1);
    color: #4338ca;
}

.face-kiosk-video {
    position: relative;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.22), #020617 70%);
    border-radius: 1.4rem;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 28px 45px rgba(15, 23, 42, 0.32);
    min-height: clamp(240px, 45vw, 520px);
}

.face-kiosk-video::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 60%);
    mix-blend-mode: screen;
}

.face-kiosk-video video,
.face-kiosk-video canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    transform-origin: center;
}

.face-kiosk-video video {
    z-index: 1;
    background-color: #000;
    backface-visibility: hidden;
}

.face-kiosk-video canvas {
    z-index: 2;
    background-color: transparent;
    pointer-events: none;
}

.face-kiosk-video .face-kiosk-overlay {
    z-index: 3;
    pointer-events: none;
}

.face-kiosk-overlay {
    position: absolute;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
    padding: 0.55rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.35);
}

.face-kiosk-hint {
    padding: 0.85rem 1rem;
    border-radius: 0.95rem;
    background: rgba(148, 163, 184, 0.12);
}

.face-kiosk-control {
    background: rgba(248, 250, 252, 0.82);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 1.1rem;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.face-kiosk-control:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 18px 38px rgba(59, 130, 246, 0.12);
}

.face-kiosk-control-label {
    font-weight: 600;
    color: #111827;
    letter-spacing: 0.02em;
}

.face-kiosk-control .btn-group .btn {
    border-radius: 999px !important;
    padding: 0.55rem 0.85rem;
    font-weight: 600;
    border-color: rgba(99, 102, 241, 0.45);
    color: #312e81;
    background: rgba(248, 250, 252, 0.9);
}

.face-kiosk-control .btn-group .btn:hover {
    background: rgba(99, 102, 241, 0.12);
}

.face-kiosk-control .btn-group .btn.active {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.25);
}

.face-kiosk-control .btn-group .btn.btn-outline-secondary {
    border-color: rgba(148, 163, 184, 0.55);
    color: #0f172a;
}

.face-kiosk-control .btn-group .btn.btn-outline-secondary.active {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.25);
}

.face-kiosk-status-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.face-kiosk-status-label {
    letter-spacing: 0.08em;
    font-weight: 600;
}

#faceKioskStatus {
    font-size: 1.05rem;
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}

#faceKioskStatus::after {
    content: '';
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    margin-left: 0.75rem;
    background: var(--bs-primary);
    box-shadow: 0 0 0 0.35rem rgba(59, 130, 246, 0.18);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

#faceKioskStatus.text-success::after {
    background: var(--bs-success);
    box-shadow: 0 0 0 0.35rem rgba(25, 135, 84, 0.22);
}

#faceKioskStatus.text-danger::after {
    background: var(--bs-danger);
    box-shadow: 0 0 0 0.35rem rgba(220, 53, 69, 0.22);
}

.face-kiosk-identity {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    flex-wrap: wrap;
}

.face-kiosk-identity.is-active {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.2);
}

.face-kiosk-identity-photo {
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #eef2ff);
    border: 2px solid rgba(59, 130, 246, 0.2);
    flex-shrink: 0;
}

.face-kiosk-identity-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.face-kiosk-identity-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    color: #1d4ed8;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.7), rgba(224, 231, 255, 0.9));
}

.face-kiosk-identity-info {
    flex: 1 1 200px;
    min-width: 0;
}

.face-kiosk-identity-label {
    letter-spacing: 0.08em;
    font-weight: 600;
}

.face-kiosk-identity-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.face-kiosk-identity-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-weight: 500;
}

.face-kiosk-identity-separator {
    color: rgba(15, 23, 42, 0.35);
}

.face-kiosk-identity-confidence {
    margin-top: 0.35rem;
}

@media (max-width: 576px) {
    .face-kiosk-identity {
        flex-direction: column;
        align-items: flex-start;
    }
    .face-kiosk-identity-photo {
        width: 72px;
        height: 72px;
    }
    .face-kiosk-identity-name {
        font-size: 1.2rem;
    }
}

#faceKioskStatus.text-warning::after {
    background: var(--bs-warning);
    box-shadow: 0 0 0 0.35rem rgba(255, 193, 7, 0.22);
}

#faceKioskStatus.text-info::after {
    background: var(--bs-info);
    box-shadow: 0 0 0 0.35rem rgba(13, 202, 240, 0.22);
}

.face-kiosk-history .card-header {
    padding-bottom: 1rem;
}

.face-kiosk-history-table {
    max-height: 420px;
    overflow-y: auto;
}

.face-kiosk-history-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.4rem;
}

.face-kiosk-history-table tbody tr {
    border-radius: 0.85rem;
    background: rgba(248, 250, 252, 0.95);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.face-kiosk-history-table td,
.face-kiosk-history-table th {
    padding: 0.75rem 1rem;
    border: none;
    vertical-align: middle;
}

.face-kiosk-history-table th {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: #475569;
}

.face-kiosk-history-empty {
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 1.2rem;
}

.face-kiosk-tips {
    background: rgba(248, 250, 252, 0.95);
    border-radius: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.face-kiosk-tips-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.5rem;
}

.face-kiosk-tips-list li::before {
    content: 'â€¢';
    color: #2563eb;
    font-weight: 700;
    margin-right: 0.5rem;
}

@media (max-width: 1200px) {
    .face-kiosk-app .card-body {
        --face-kiosk-body-pad: 2.5rem;
    }
}

@media (max-width: 992px) {
    .face-kiosk-body {
        padding: 2rem 1rem;
    }

    .face-kiosk-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .face-kiosk-toolbar-note {
        max-width: none;
    }

    .face-kiosk-app .card-body {
        --face-kiosk-body-pad: 2rem;
    }
}

@media (max-width: 768px) {
    .face-kiosk-body {
        padding: 1.5rem 0.85rem;
    }

    .face-kiosk-app {
        border-radius: 1.25rem;
        box-shadow: 0 12px 35px rgba(15, 23, 42, 0.18);
    }

    .face-kiosk-app .card-body {
        --face-kiosk-body-pad: 1.75rem;
    }

    .face-kiosk-hero {
        padding: 1.75rem;
    }

    .face-kiosk-hero-meta {
        width: 100%;
    }

    .face-kiosk-hero-card {
        width: 100%;
    }

    .face-kiosk-toolbar {
        padding: 1rem 1.1rem;
        background: rgba(248, 250, 252, 0.92);
    }

    .face-kiosk-video {
        border-radius: 1.1rem;
        min-height: 260px;
    }

    .face-kiosk-overlay {
        width: calc(100% - 2rem);
        font-size: 0.75rem;
    }

    .face-kiosk-history-table {
        max-height: none;
    }
}

@media (max-width: 480px) {
    .face-kiosk-app .card-body {
        --face-kiosk-body-pad: 1.5rem;
    }

    .face-kiosk-action {
        width: 100%;
        justify-content: center;
    }

    .face-kiosk-toolbar {
        gap: 1rem;
    }

    .face-kiosk-control {
        padding: 1rem;
    }

    .face-kiosk-overlay {
        font-size: 0.72rem;
        padding: 0.45rem 1.1rem;
    }

    .face-kiosk-video {
        min-height: 220px;
    }

    #faceKioskStatus {
        font-size: 0.95rem;
    }
}
.pos-receipt-modal {
    border-radius: 1rem;
    overflow: hidden;
}

.pos-receipt-modal .modal-body {
    background: #f8fafc;
}

.pos-receipt-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 420px;
    padding: 12px;
    background: transparent;
}

.pos-receipt-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #475569;
    font-size: 0.95rem;
    padding: 32px;
}

.pos-receipt-loading .spinner-border {
    width: 1.75rem;
    height: 1.75rem;
}

.pos-receipt-frame {
    width: min(100%, 280px);
    height: 70vh;
    border: none;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.pos-receipt-preview .alert {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.pos-transactions-panel {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(420px, 100%);
    height: 100%;
    background: #ffffff;
    box-shadow: -16px 0 32px rgba(15, 23, 42, 0.35);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1085;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pos-transactions-panel.show {
    transform: translateX(0);
}

.pos-transactions-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.pos-transactions-panel__header-actions {
    display: inline-flex;
    gap: 0.4rem;
}

.pos-transactions-panel__controls .input-group {
    border-radius: 0.75rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.pos-transactions-panel__controls .form-control {
    border: none;
    box-shadow: none;
}

.pos-transactions-panel__body {
    flex: 1;
    overflow-y: auto;
    background: #f8fafc;
    border-radius: 0.85rem;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pos-transactions-panel__body::-webkit-scrollbar {
    width: 6px;
}

.pos-transactions-panel__body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(107, 114, 128, 0.4);
}

.pos-transactions-item {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.pos-transactions-item__top,
.pos-transactions-item__bottom {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.pos-transactions-item__number {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
}

.pos-transactions-item__meta {
    font-size: 0.8rem;
    color: #64748b;
}

.pos-transactions-item__total {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.pos-transactions-item__method {
    font-size: 0.8rem;
    color: #475569;
}

.pos-transactions-item__actions {
    display: inline-flex;
    gap: 0.35rem;
}

.pos-transactions-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1080;
}

.pos-transactions-panel-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

body.pos-transactions-open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .pos-transactions-panel {
        width: 100%;
        padding-inline: 1.1rem;
    }
}

@media (max-width: 768px) {
    .pos-receipt-frame {
        height: 60vh;
    }
}

/* Guided tour */
.tour-guide-backdrop,
.tour-guide-overlay {
    --tour-guide-accent: var(--bs-primary);
}

.tour-guide-backdrop[data-theme="success"],
.tour-guide-overlay[data-theme="success"] {
    --tour-guide-accent: var(--bs-success);
}

.tour-guide-backdrop[data-theme="warning"],
.tour-guide-overlay[data-theme="warning"] {
    --tour-guide-accent: var(--bs-warning);
}

.tour-guide-backdrop[data-theme="info"],
.tour-guide-overlay[data-theme="info"] {
    --tour-guide-accent: var(--bs-info);
}

.tour-guide-backdrop[data-theme="danger"],
.tour-guide-overlay[data-theme="danger"] {
    --tour-guide-accent: var(--bs-danger);
}

.tour-guide-backdrop[data-theme="secondary"],
.tour-guide-overlay[data-theme="secondary"] {
    --tour-guide-accent: var(--bs-secondary);
}

.tour-guide-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(1px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1075;
}

.tour-guide-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.tour-guide-overlay {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: min(360px, calc(100% - 2rem));
    background: var(--bs-body-bg, #ffffff);
    border: 1px solid var(--bs-border-color, #e2e8f0);
    border-radius: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1100;
}

.tour-guide-overlay.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.tour-guide-overlay [data-tour-progress-bar] {
    display: block;
    width: 0%;
    height: 3px;
    border-radius: 999px;
    background: var(--tour-guide-accent);
    margin-bottom: 1rem;
    transition: width 0.3s ease;
}

.tour-guide-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tour-guide-overlay-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tour-guide-accent);
    margin-bottom: 0.25rem;
}

.tour-guide-overlay-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.tour-guide-overlay-body {
    font-size: 0.95rem;
    color: var(--bs-body-color, #0f172a);
}

.tour-guide-overlay-description {
    margin-bottom: 0.5rem;
}

.tour-guide-overlay-tip {
    font-size: 0.8rem;
    color: var(--bs-secondary-color, #475569);
    background: rgba(148, 163, 184, 0.18);
    padding: 0.45rem 0.75rem;
    border-radius: 0.75rem;
}

.tour-guide-overlay-tip.d-none {
    display: none !important;
}

.tour-guide-overlay-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tour-guide-overlay-step {
    font-size: 0.85rem;
    color: var(--bs-secondary-color, #475569);
}

.tour-highlight {
    position: relative;
    z-index: 1095 !important;
    border-radius: 0.9rem;
    --tour-guide-shadow-color: rgba(14, 165, 233, 0.18);
    box-shadow: 0 0 0 3px var(--tour-guide-accent), 0 0 0 11px var(--tour-guide-shadow-color);
    animation: tourGuidePulse 1.6s ease-in-out infinite;
    transition: box-shadow 0.25s ease;
}

.tour-highlight[data-tour-accent="success"] {
    --tour-guide-accent: var(--bs-success);
    --tour-guide-shadow-color: rgba(25, 135, 84, 0.22);
}

.tour-highlight[data-tour-accent="warning"] {
    --tour-guide-accent: var(--bs-warning);
    --tour-guide-shadow-color: rgba(255, 193, 7, 0.3);
}

.tour-highlight[data-tour-accent="info"] {
    --tour-guide-accent: var(--bs-info);
    --tour-guide-shadow-color: rgba(13, 202, 240, 0.25);
}

.tour-highlight[data-tour-accent="danger"] {
    --tour-guide-accent: var(--bs-danger);
    --tour-guide-shadow-color: rgba(220, 53, 69, 0.25);
}

.tour-highlight[data-tour-accent="secondary"] {
    --tour-guide-accent: var(--bs-secondary);
    --tour-guide-shadow-color: rgba(108, 117, 125, 0.2);
}

@keyframes tourGuidePulse {
    0% {
        box-shadow: 0 0 0 3px var(--tour-guide-accent), 0 0 0 11px var(--tour-guide-shadow-color);
    }
    70% {
        box-shadow: 0 0 0 3px var(--tour-guide-accent), 0 0 0 26px rgba(15, 23, 42, 0);
    }
    100% {
        box-shadow: 0 0 0 3px var(--tour-guide-accent), 0 0 0 11px rgba(15, 23, 42, 0);
    }
}

@media (max-width: 576px) {
    .tour-guide-overlay {
        right: 0.75rem;
        bottom: 0.75rem;
        width: calc(100% - 1.5rem);
    }
}


/* POS tablet enhancements */
body.pos-tablet-body {
    touch-action: manipulation;
}

body.pos-tablet-body.pos-portrait {
    overflow: hidden;
}

.pos-orientation-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.75rem;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.12), rgba(15, 23, 42, 0.9));
    color: #f8fafc;
    z-index: 4000;
    backdrop-filter: blur(6px);
}

.pos-orientation-overlay .pos-orientation-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 0.75rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(16, 185, 129, 0.9));
    box-shadow: 0 18px 42px -20px rgba(59, 130, 246, 0.85);
    font-size: 1.9rem;
}

body.pos-portrait .pos-orientation-overlay {
    display: flex;
}

/* Waiter sticky actions (mobile quick access) */
.waiter-sticky-actions {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 0.5rem 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 35%);
    z-index: 30;
    border-top: 1px solid #e5e7eb;
}
.waiter-sticky-actions-inner {
    display: flex;
    gap: 0.5rem;
}
@media (min-width: 992px) {
    .waiter-sticky-actions {
        display: none;
    }
}

/* Table card loading and clearer status contrast */
.waiter-table-card.is-loading {
    position: relative;
    pointer-events: none;
}
.waiter-table-card.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
}
.waiter-table-card.is-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 50%;
    border: 3px solid #0d6efd;
    border-top-color: transparent;
    animation: waiter-spin 0.9s linear infinite;
    z-index: 1;
}
@keyframes waiter-spin {
    to {
        transform: rotate(360deg);
    }
}
/* Waiter button + modal animations */
.waiter-submit,
.waiter-sticky-actions .btn {
    animation: waiterBounceIn 0.7s cubic-bezier(0.22, 1.05, 0.36, 1) both, waiterShine 2s ease-in-out 0.6s forwards;
    position: relative;
    overflow: hidden;
}
.waiter-submit::after,
.waiter-sticky-actions .btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 70%);
    transform: translateX(-120%);
    pointer-events: none;
}
.waiter-submit:hover::after,
.waiter-sticky-actions .btn:hover::after {
    animation: waiterShimmer 0.85s ease forwards;
}

#waiterMenuModal .modal-dialog {
    animation: waiterFadeSlide 0.45s ease both;
}
#waiterMenuModal .waiter-menu-modal-sidebar,
#waiterMenuModal .waiter-menu-modal-content {
    animation: waiterFadeSlideUp 0.55s ease 0.05s both;
}
.waiter-menu-card {
    animation: waiterMenuCard 0.5s ease forwards;
    opacity: 0;
    transform: translateY(14px);
}
.waiter-menu-card:nth-child(2) { animation-delay: 0.04s; }
.waiter-menu-card:nth-child(3) { animation-delay: 0.08s; }
.waiter-menu-card:nth-child(4) { animation-delay: 0.12s; }
.waiter-menu-card:nth-child(5) { animation-delay: 0.16s; }
.waiter-menu-card:nth-child(6) { animation-delay: 0.2s; }

@keyframes waiterBounceIn {
    0% { transform: translateY(12px) scale(0.96); opacity: 0; }
    60% { transform: translateY(-4px) scale(1.02); opacity: 1; }
    100% { transform: translateY(0) scale(1); }
}
@keyframes waiterShine {
    0% { box-shadow: none; }
    50% { box-shadow: 0 18px 32px rgba(13, 110, 253, 0.26); }
    100% { box-shadow: inherit; }
}
@keyframes waiterShimmer {
    to { transform: translateX(120%); }
}
@keyframes waiterFadeSlide {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes waiterFadeSlideUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes waiterMenuCard {
    to { opacity: 1; transform: translateY(0); }
}
.waiter-table-card.status-reserved {
    border-color: #f7c948;
    box-shadow: 0 4px 18px rgba(247, 201, 72, 0.25);
}
.waiter-table-card.status-cleaning {
    border-color: #9aa5b1;
    box-shadow: 0 4px 18px rgba(154, 165, 177, 0.25);
}
.waiter-table-card.status-blocked {
    border-color: #d14343;
    box-shadow: 0 4px 18px rgba(209, 67, 67, 0.24);
}
.waiter-table-card.status-reserved .badge.bg-warning {
    background-color: #f7c948 !important;
    color: #2f2f2f !important;
}
.waiter-table-card.status-cleaning .badge {
    background-color: #9aa5b1 !important;
    color: #ffffff !important;
}
.waiter-table-card.status-blocked .badge {
    background-color: #d14343 !important;
    color: #ffffff !important;
}
