/* ==========================================================================
   UsayRestoBar - Production-Grade Design System (modern-pos.css v3.0)
   Built for Any Device: Desktop POS, Laptops, Tablets / iPads, Mobile Phones
   ========================================================================== */

/* ─── Design Tokens ─── */
:root {
    --pos-primary: #3b82f6;
    --pos-primary-hover: #2563eb;
    --pos-primary-light: #eff6ff;
    --pos-success: #10b981;
    --pos-success-hover: #059669;
    --pos-success-light: #ecfdf5;
    --pos-warning: #f59e0b;
    --pos-warning-hover: #d97706;
    --pos-warning-light: #fffbeb;
    --pos-danger: #ef4444;
    --pos-danger-hover: #dc2626;
    --pos-danger-light: #fef2f2;
    --pos-info: #06b6d4;
    --pos-info-hover: #0891b2;
    --pos-info-light: #ecfeff;
    --pos-indigo: #6366f1;
    --pos-dark: #0f172a;
    --pos-light: #f8fafc;
    --pos-card-bg: #ffffff;
    --pos-border: #e2e8f0;
    --pos-border-focus: #3b82f6;
    --pos-text-main: #0f172a;
    --pos-text-secondary: #334155;
    --pos-text-muted: #64748b;
    --pos-text-faint: #94a3b8;
    --pos-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --pos-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --pos-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --pos-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --pos-shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
    --pos-radius-xs: 4px;
    --pos-radius-sm: 6px;
    --pos-radius: 10px;
    --pos-radius-lg: 14px;
    --pos-radius-xl: 18px;
    --pos-radius-full: 9999px;
    --pos-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --pos-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Standardized control sizing */
    --pos-control-h: 38px;
    --pos-control-h-sm: 32px;
    --pos-control-h-lg: 44px;
    --pos-control-font: 13px;
    --pos-control-padding: 8px 12px;
}

/* ─── 1. Global Reset & Shell ─── */
*, *::before, *::after {
    box-sizing: border-box;
}

body.modern-pos-body {
    background-color: var(--pos-light);
    font-family: var(--pos-font) !important;
    color: var(--pos-text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: 0 !important;
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    background-color: var(--pos-light);
}

/* Base layout content reset: clean outer shell */
.content-wrapper, .content, .body-content {
    flex: 1;
    width: 100% !important;
    background-color: var(--pos-light);
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* ─── OPTION A: UNIVERSAL ENTERPRISE CANVAS (1440px) ─── */
/* Guarantees 100% identical page width and alignment across every view */
.pos-page-container,
.pos-dashboard-container,
.body-content > .container,
.content > .container,
.content > .container-fluid {
    width: 100% !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 20px 24px !important;
    box-sizing: border-box !important;
    display: block !important;
}

@media (max-width: 1200px) {
    .pos-page-container,
    .pos-dashboard-container,
    .body-content > .container,
    .content > .container {
        padding: 16px 20px !important;
    }
}

@media (max-width: 991px) {
    .pos-page-container,
    .pos-dashboard-container,
    .body-content > .container,
    .content > .container {
        padding: 14px 16px !important;
    }
}

@media (max-width: 767px) {
    .pos-page-container,
    .pos-dashboard-container,
    .body-content > .container,
    .content > .container {
        padding: 10px 12px !important;
    }
}

/* ─── 2. Ultra-Modern POS Header Strip ─── */
.pos-topbar-strip, .main-header {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-height: 56px !important;
    height: 56px !important;
    max-height: 56px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.3) !important;
    z-index: 1050 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pos-topbar-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 40%, #f59e0b 80%, #ec4899 100%);
    z-index: 1051;
}

.pos-topbar-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 54px !important;
    width: 100% !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 24px !important;
    gap: 14px !important;
    box-sizing: border-box !important;
}

@media (max-width: 1200px) {
    .pos-topbar-inner {
        padding: 0 20px !important;
    }
}

@media (max-width: 991px) {
    .pos-topbar-inner {
        padding: 0 16px !important;
    }
}

@media (max-width: 767px) {
    .pos-topbar-inner {
        padding: 0 12px !important;
    }
}

/* Universal Footer Standard: Aligned with 1440px Canvas */
.content > footer,
.wrapper > footer,
body footer {
    width: 100% !important;
    max-width: 1440px !important;
    margin: 20px auto 16px auto !important;
    padding: 12px 24px !important;
    box-sizing: border-box !important;
    text-align: right !important;
    color: var(--pos-text-muted) !important;
    font-size: 13px !important;
    border-top: 1px solid var(--pos-border) !important;
}

/* Brand Emblem */
.pos-topbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.pos-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: #ffffff !important;
}

.pos-brand-icon-emblem {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    transition: transform 0.2s ease;
}

.pos-brand-link:hover .pos-brand-icon-emblem {
    transform: scale(1.06) rotate(-2deg);
}

.pos-brand-titles {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.pos-brand-title-main {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #ffffff;
}

.pos-brand-title-sub {
    color: #34d399;
    font-weight: 800;
    margin-left: 2px;
}

.pos-brand-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    padding: 1px 5px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    margin-top: 2px;
}

/* Center Navigation Tabs */
.pos-topbar-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pos-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 7px;
    color: #94a3b8 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.pos-nav-item:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

.pos-nav-item.active {
    color: #ffffff !important;
    background: var(--pos-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.pos-nav-item.pos-nav-dayend {
    color: #c084fc !important;
}

.pos-nav-item.pos-nav-dayend:hover {
    color: #ffffff !important;
    background: rgba(168, 85, 247, 0.2);
}

.pos-nav-item.pos-nav-dayend.active {
    background: #8b5cf6;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Right Actions */
.pos-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pos-live-clock-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    font-variant-numeric: tabular-nums;
}

.pos-pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
    animation: posPulse 2s infinite ease-in-out;
}

@keyframes posPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.5; }
}

.pos-clock-date {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 8px;
}

.pos-action-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pos-action-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

/* User Profile Chip */
.pos-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 10px 4px 4px;
    border-radius: 20px;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.15s ease;
}

.pos-user-chip:hover, .pos-user-chip:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.pos-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.pos-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.pos-user-name {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.pos-user-role-badge {
    font-size: 9px;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pos-user-caret {
    font-size: 10px;
    color: #94a3b8;
    margin-left: 2px;
}

/* User Dropdown Card */
.pos-user-dropdown-card {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.5), 0 8px 16px -8px rgba(0, 0, 0, 0.4) !important;
    min-width: 230px !important;
    padding: 12px !important;
    margin-top: 8px !important;
}

.pos-dropdown-user-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px;
}

.pos-dropdown-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pos-dropdown-user-info {
    line-height: 1.2;
}

.pos-dropdown-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.pos-dropdown-role {
    font-size: 11px;
    color: #94a3b8;
}

.pos-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 10px 0;
}

.pos-dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pos-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #cbd5e1 !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.pos-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
}

.pos-dropdown-item i {
    width: 16px;
    text-align: center;
    color: #94a3b8;
}

.pos-btn-logout {
    width: 100%;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pos-btn-logout:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Mobile & Tablet Overrides for Topbar */
@media (max-width: 991px) {
    .pos-topbar-nav span {
        display: none;
    }
    .pos-nav-item {
        padding: 6px 10px;
    }
}

@media (max-width: 767px) {
    .pos-topbar-strip, .main-header {
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
    }
    .pos-topbar-inner {
        height: 50px !important;
        padding: 0 10px !important;
        gap: 8px !important;
    }
    .pos-brand-badge {
        display: none;
    }
    .pos-topbar-nav {
        display: none;
    }
    .pos-user-chip {
        padding: 2px;
        border-radius: 50%;
    }
    .pos-user-caret {
        display: none;
    }
}

/* ─── 3. Standardized Form Controls ─── */
.form-control,
select.form-control,
textarea.form-control,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"] {
    height: var(--pos-control-h);
    min-height: var(--pos-control-h);
    border-radius: var(--pos-radius-sm);
    border: 1.5px solid var(--pos-border);
    font-size: var(--pos-control-font);
    font-family: var(--pos-font);
    padding: var(--pos-control-padding);
    color: var(--pos-text-main);
    background-color: #ffffff;
    width: 100%;
    max-width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

textarea.form-control {
    height: auto;
    min-height: 80px;
    resize: vertical;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 32px;
}

.form-control:focus,
input:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: var(--pos-border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background-color: #ffffff;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #f1f5f9;
    color: var(--pos-text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-control::placeholder {
    color: var(--pos-text-faint);
    font-weight: 400;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label,
label {
    font-size: 12px;
    font-weight: 600;
    color: var(--pos-text-secondary);
    margin-bottom: 4px;
    display: inline-block;
    letter-spacing: 0.2px;
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-radius: var(--pos-radius-sm) 0 0 var(--pos-radius-sm);
}

.input-group-btn .btn,
.input-group-addon {
    height: var(--pos-control-h);
    min-height: var(--pos-control-h);
    border-radius: 0 var(--pos-radius-sm) var(--pos-radius-sm) 0;
}

/* ─── 4. Standardized Buttons ─── */
.btn {
    height: var(--pos-control-h);
    min-height: var(--pos-control-h);
    border-radius: var(--pos-radius-sm);
    font-weight: 600;
    font-size: var(--pos-control-font);
    font-family: var(--pos-font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: var(--pos-transition);
    border: 1.5px solid transparent;
    white-space: nowrap;
    text-decoration: none !important;
    line-height: 1;
}

.btn:active {
    transform: scale(0.97);
}

.btn-sm {
    height: var(--pos-control-h-sm);
    min-height: var(--pos-control-h-sm);
    font-size: 12px;
    padding: 0 10px;
    gap: 4px;
    border-radius: var(--pos-radius-xs);
}

.btn-xs {
    height: 26px;
    min-height: 26px;
    font-size: 11px;
    padding: 0 8px;
    gap: 3px;
    border-radius: var(--pos-radius-xs);
}

.btn-lg {
    height: var(--pos-control-h-lg);
    min-height: var(--pos-control-h-lg);
    font-size: 15px;
    padding: 0 22px;
    border-radius: var(--pos-radius);
}

.btn-primary, .btn-primary:focus {
    background: var(--pos-primary);
    border-color: var(--pos-primary);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--pos-primary-hover);
    border-color: var(--pos-primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-success, .btn-success:focus {
    background: var(--pos-success);
    border-color: var(--pos-success);
    color: #ffffff;
}
.btn-success:hover {
    background: var(--pos-success-hover);
    border-color: var(--pos-success-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-warning, .btn-warning:focus {
    background: var(--pos-warning);
    border-color: var(--pos-warning);
    color: #ffffff;
}
.btn-warning:hover {
    background: var(--pos-warning-hover);
    border-color: var(--pos-warning-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-danger, .btn-danger:focus {
    background: var(--pos-danger);
    border-color: var(--pos-danger);
    color: #ffffff;
}
.btn-danger:hover {
    background: var(--pos-danger-hover);
    border-color: var(--pos-danger-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-info, .btn-info:focus {
    background: var(--pos-info);
    border-color: var(--pos-info);
    color: #ffffff;
}
.btn-info:hover {
    background: var(--pos-info-hover);
    border-color: var(--pos-info-hover);
    color: #ffffff;
}

.btn-default, .btn-default:focus {
    background: #ffffff;
    border-color: var(--pos-border);
    color: var(--pos-text-secondary);
}
.btn-default:hover {
    background: var(--pos-light);
    border-color: #cbd5e1;
    color: var(--pos-text-main);
}

.btn[disabled], .btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* ─── 5. Universal Fluid Auto-Fill Grid ─── */
.pos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
}

@media (min-width: 1200px) {
    .pos-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .pos-grid {
        grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    }
}

@media (max-width: 767px) and (min-width: 481px) {
    .pos-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .pos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Dashboard Action Grid (legacy compat) */
.dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    width: 100%;
    padding: 6px 0;
}

@media (min-width: 1200px) {
    .dashboard-action-grid {
        grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .dashboard-action-grid {
        grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
        gap: 10px;
    }
}

.dashboard-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 95px;
    padding: 14px 10px;
    border-radius: var(--pos-radius);
    background: #ffffff;
    border: 1.5px solid var(--pos-border);
    box-shadow: var(--pos-shadow-xs);
    color: var(--pos-text-secondary);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: var(--pos-transition);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dashboard-action-btn i {
    font-size: 26px;
    margin-bottom: 8px;
    color: var(--pos-primary);
    transition: var(--pos-transition);
}

.dashboard-action-btn:hover, .dashboard-action-btn:focus {
    transform: translateY(-3px);
    box-shadow: var(--pos-shadow-hover);
    border-color: var(--pos-primary);
    background: #ffffff;
    color: var(--pos-primary);
}

/* ─── 6. Dashboard & Page Design System ─── */
.pos-dashboard-container,
.pos-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero Welcome Banner */
.pos-dashboard-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--pos-radius-lg);
    padding: 24px 28px;
    color: #ffffff;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.pos-dashboard-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.pos-dashboard-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-user-details {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1;
}

.hero-avatar-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.hero-user-greeting {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    line-height: 1.2;
}

.hero-user-subtext {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.pos-role-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--pos-radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.pos-role-pill.role-admin    { background: #ef4444; color: #fff; }
.pos-role-pill.role-manager  { background: #3b82f6; color: #fff; }
.pos-role-pill.role-captain  { background: #10b981; color: #fff; }
.pos-role-pill.role-cashier  { background: #f59e0b; color: #fff; }
.pos-role-pill.role-supervisor { background: #06b6d4; color: #fff; }

.hero-meta-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 1;
}

.hero-meta-chip {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: var(--pos-radius-full);
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-meta-chip.chip-online {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.hero-meta-chip.chip-online i {
    color: #10b981;
    font-size: 10px;
    animation: posPulse 2s infinite;
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: 28px;
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pos-border);
}

.dashboard-section-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pos-text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-section-title i {
    color: var(--pos-success);
    font-size: 15px;
}

.dashboard-section-subtitle {
    font-size: 12px;
    color: var(--pos-text-muted);
    font-weight: 500;
}

/* Primary Fast-Touch Hero Cards */
.pos-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.pos-hero-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 145px;
    padding: 20px 22px;
    border-radius: var(--pos-radius-lg);
    color: #ffffff !important;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    box-shadow: var(--pos-shadow);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pos-hero-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.pos-hero-card:hover, .pos-hero-card:focus {
    transform: translateY(-4px);
    box-shadow: var(--pos-shadow-hover);
    color: #ffffff !important;
}

.pos-hero-card:active {
    transform: translateY(-1px) scale(0.99);
}

.pos-hero-card-table {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
}

.pos-hero-card-billdesk {
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
}

.pos-hero-card-takeaway {
    background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
}

.pos-hero-card-cancel {
    background: linear-gradient(135deg, #be123c 0%, #e11d48 50%, #f43f5e 100%);
}

.pos-hero-card-dayend {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #8b5cf6 100%);
}

.pos-hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.pos-hero-card-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--pos-radius);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
}

.pos-hero-card-badge {
    padding: 3px 10px;
    border-radius: var(--pos-radius-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.pos-hero-card-body h3 {
    margin: 0 0 4px 0;
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.pos-hero-card-body p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    line-height: 1.4;
}

.pos-hero-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.pos-hero-card-footer i {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.pos-hero-card:hover .pos-hero-card-footer i {
    transform: translateX(4px);
}

/* Secondary Modules & Analytics Grid */
.pos-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.pos-module-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    border-radius: var(--pos-radius);
    border: 1.5px solid var(--pos-border);
    box-shadow: var(--pos-shadow-xs);
    text-decoration: none !important;
    color: var(--pos-text-main) !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pos-module-card:hover, .pos-module-card:focus {
    transform: translateY(-3px);
    box-shadow: var(--pos-shadow-md);
    border-color: #cbd5e1;
    color: var(--pos-primary) !important;
}

.pos-module-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--pos-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.pos-module-card:hover .pos-module-icon-wrap {
    transform: scale(1.1);
}

.pos-module-text {
    flex: 1;
    min-width: 0;
}

.pos-module-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--pos-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-module-subtitle {
    margin: 3px 0 0 0;
    font-size: 12px;
    color: var(--pos-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .pos-dashboard-hero {
        padding: 16px 18px;
        margin-bottom: 18px;
    }
    .hero-avatar-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    .hero-user-greeting {
        font-size: 18px;
    }
    .pos-hero-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .pos-hero-card {
        min-height: 120px;
        padding: 16px 18px;
    }
    .pos-hero-card-body h3 {
        font-size: 17px;
    }
    .pos-module-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .pos-module-card {
        padding: 12px 14px;
        gap: 10px;
    }
    .pos-module-icon-wrap {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .pos-module-title {
        font-size: 13px;
    }
    .pos-module-subtitle {
        font-size: 11px;
    }
}

/* ─── 7. Table Floor Management ─── */
.pos-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: var(--pos-radius);
    border: 1.5px solid var(--pos-border);
    box-shadow: var(--pos-shadow-xs);
}

.table-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pos-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: var(--pos-radius-full);
    border: 1.5px solid var(--pos-border);
    background: #ffffff;
    font-weight: 700;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pos-filter-pill .pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    display: inline-block;
}

.pos-filter-pill .pill-dot.dot-vacant { background: #10b981; }
.pos-filter-pill .pill-dot.dot-occupied { background: #ef4444; }

.pos-filter-pill .pill-count {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    background: #f1f5f9;
    color: var(--pos-text-secondary);
}

.pos-filter-pill:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: var(--pos-text-main);
}

.pos-filter-pill.active {
    background: var(--pos-dark);
    border-color: var(--pos-dark);
    color: #ffffff;
}

.pos-filter-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.pos-filter-pill.filter-vacant.active {
    background: var(--pos-success-hover);
    border-color: var(--pos-success-hover);
    color: #ffffff;
}

.pos-filter-pill.filter-occupied.active {
    background: var(--pos-danger-hover);
    border-color: var(--pos-danger-hover);
    color: #ffffff;
}

.table-search-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.table-search-icon {
    position: absolute;
    left: 12px;
    font-size: 13px;
    color: var(--pos-text-faint);
    pointer-events: none;
}

.table-search-input {
    height: var(--pos-control-h);
    padding: 6px 30px 6px 34px;
    border-radius: var(--pos-radius-full);
    border: 1.5px solid var(--pos-border);
    font-size: 13px;
    width: 220px;
    background: #f8fafc;
    color: var(--pos-text-main);
    transition: all 0.2s ease;
    outline: none;
}

.table-search-input:focus {
    border-color: var(--pos-border-focus);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    width: 260px;
}

.table-search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: var(--pos-text-faint);
    cursor: pointer;
    padding: 0 4px;
}

.table-search-clear:hover {
    color: var(--pos-text-main);
}

.btn-pos-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: var(--pos-control-h);
    padding: 0 14px;
    border-radius: var(--pos-radius-full);
    background: #f1f5f9;
    border: 1.5px solid var(--pos-border);
    color: #475569 !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.btn-pos-back:hover {
    background: #e2e8f0;
    color: var(--pos-text-main) !important;
}

/* Modern Table Card */
.table-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
    padding: 14px 16px;
    border-radius: var(--pos-radius-lg);
    border: 2px solid transparent;
    box-shadow: var(--pos-shadow-sm);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
    user-select: none;
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    -webkit-tap-highlight-color: transparent;
}

.table-card:hover, .table-card:focus {
    transform: translateY(-3px);
    box-shadow: var(--pos-shadow-hover);
}

.table-card:active {
    transform: translateY(-1px) scale(0.98);
}

.table-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 6px;
}

.table-card-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.75;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.table-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: var(--pos-radius-full);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-status-pill .status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-vacant {
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
}

.status-vacant .status-indicator { background: #10b981; }

.status-occupied {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
}

.status-occupied .status-indicator { background: #ef4444; }

.table-card-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
}

.table-card-number {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}

.table-card-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 6px;
}

.table-card-ord-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--pos-radius-full);
    font-size: 11px;
    font-weight: 700;
    background: rgba(225, 29, 72, 0.1);
    color: #9f1239;
    white-space: nowrap;
}

.table-card-vacant-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--pos-success);
    opacity: 0.85;
}

/* Card Theme Variants */
.table-card-vacant {
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: #86efac;
    color: #065f46;
}

.table-card-vacant:hover {
    background: linear-gradient(180deg, #dcfce7 0%, #d1fae5 100%);
    border-color: #22c55e;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2);
}

.table-card-occupied {
    background: linear-gradient(180deg, #fff1f2 0%, #fef2f2 100%);
    border-color: #fca5a5;
    color: #881337;
}

.table-card-occupied:hover {
    background: linear-gradient(180deg, #ffe4e6 0%, #fee2e2 100%);
    border-color: #f43f5e;
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.2);
}

.table-card-billed {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    color: #1e3a8a;
}

.table-card-billed:hover {
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.table-no-match {
    text-align: center;
    padding: 36px 20px;
    background: #ffffff;
    border-radius: var(--pos-radius);
    border: 1.5px dashed var(--pos-border);
    color: var(--pos-text-muted);
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0;
    grid-column: 1 / -1;
}

.table-no-match i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    color: var(--pos-text-faint);
}

/* Legacy Filter Bar Compat */
.pos-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: var(--pos-radius);
    border: 1.5px solid var(--pos-border);
}

.pos-filter-btn {
    padding: 6px 14px;
    border-radius: var(--pos-radius-full);
    border: 1.5px solid var(--pos-border);
    background: #ffffff;
    font-weight: 600;
    font-size: 13px;
    color: var(--pos-text-main);
    cursor: pointer;
    transition: var(--pos-transition);
}

.pos-filter-btn.active, .pos-filter-btn:hover {
    background: var(--pos-primary);
    color: #ffffff;
    border-color: var(--pos-primary);
}

/* Mobile Table Overrides */
@media (max-width: 767px) {
    .pos-table-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }
    .table-filter-group {
        justify-content: space-between;
        width: 100%;
    }
    .pos-filter-pill {
        flex: 1;
        justify-content: center;
        padding: 7px 8px;
        font-size: 12px;
    }
    .table-search-group {
        width: 100%;
    }
    .table-search-wrapper {
        flex: 1;
    }
    .table-search-input {
        width: 100%;
    }
    .table-search-input:focus {
        width: 100%;
    }
    .table-card {
        min-height: 115px;
        padding: 12px;
    }
    .table-card-number {
        font-size: 22px;
    }
}

/* ─── 8. Order Screen Layout ─── */
.pos-screen-layout {
    display: flex;
    flex-direction: row;
    gap: 14px;
    width: 100%;
    align-items: flex-start;
}

.pos-pane-main {
    flex: 0 0 48%;
    max-width: 48%;
    min-width: 0;
}

.pos-pane-sidebar {
    flex: 0 0 52%;
    max-width: 52%;
    min-width: 0;
}

@media (min-width: 1366px) {
    .pos-pane-main { flex: 0 0 46%; max-width: 46%; }
    .pos-pane-sidebar { flex: 0 0 54%; max-width: 54%; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .pos-screen-layout { gap: 10px; }
    .pos-pane-main { flex: 0 0 46%; max-width: 46%; }
    .pos-pane-sidebar { flex: 0 0 54%; max-width: 54%; }
}

@media (max-width: 767px) {
    .pos-screen-layout { flex-direction: column; gap: 12px; }
    .pos-pane-main, .pos-pane-sidebar {
        flex: 0 0 100%; max-width: 100%; width: 100%;
    }
}

/* Mobile Toggle Bar */
.pos-mobile-toggle-bar { display: none; width: 100%; margin-bottom: 12px; }

@media (max-width: 767px) {
    .pos-mobile-toggle-bar {
        display: flex;
        background: #e2e8f0;
        padding: 4px;
        border-radius: var(--pos-radius-sm);
        gap: 4px;
    }
    .pos-mobile-tab-btn {
        flex: 1;
        padding: 8px 12px;
        border-radius: var(--pos-radius-xs);
        border: none;
        background: transparent;
        font-weight: 700;
        font-size: 13px;
        color: #475569;
        cursor: pointer;
        text-align: center;
        transition: var(--pos-transition);
    }
    .pos-mobile-tab-btn.active {
        background: #ffffff;
        color: var(--pos-primary);
        box-shadow: var(--pos-shadow-sm);
    }
    .pos-pane-hidden-mobile { display: none !important; }
}

/* ─── 9. Panels ─── */
.pos-panel {
    background: #ffffff;
    border-radius: var(--pos-radius);
    border: 1.5px solid var(--pos-border);
    box-shadow: var(--pos-shadow-xs);
    margin-bottom: 16px;
    overflow: hidden;
}

.pos-panel-header {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1.5px solid var(--pos-border);
    background: #fafbfc;
}

.pos-panel-header.header-primary { background: var(--pos-primary); color: #fff; border-bottom-color: var(--pos-primary-hover); }
.pos-panel-header.header-success { background: var(--pos-success); color: #fff; border-bottom-color: var(--pos-success-hover); }
.pos-panel-header.header-danger  { background: var(--pos-danger);  color: #fff; border-bottom-color: var(--pos-danger-hover); }

.pos-panel-body {
    padding: 14px 16px;
}

/* Scrollable Regions */
.pos-order-scrollable {
    max-height: 520px;
    min-height: 280px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pos-menu-scrollable {
    max-height: 480px;
    min-height: 320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
}

@media (max-width: 767px) {
    .pos-order-scrollable { max-height: 380px; min-height: 200px; }
    .pos-menu-scrollable  { max-height: 380px; min-height: 200px; }
}

/* ─── 10. Categories & Menu Items ─── */
.pos-category-container {
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1.5px solid var(--pos-border);
    max-height: 125px;
    overflow-y: auto;
}

.pos-category-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pos-category-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--pos-radius-full);
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    font-weight: 600;
    font-size: 12px;
    color: var(--pos-text-secondary);
    cursor: pointer;
    transition: var(--pos-transition);
    user-select: none;
    white-space: nowrap;
}

.pos-category-chip:hover, .pos-category-chip.active {
    background: var(--pos-success);
    color: #ffffff;
    border-color: var(--pos-success);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.pos-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    width: 100%;
}

@media (min-width: 1200px) {
    .pos-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .pos-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
        gap: 6px;
    }
}

.pos-menu-item-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    padding: 10px 8px;
    border-radius: var(--pos-radius-sm);
    background: #ffffff;
    border: 1.5px solid var(--pos-border);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--pos-transition);
    color: var(--pos-text-main);
    box-shadow: var(--pos-shadow-xs);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.3;
}

.pos-menu-item-btn:hover {
    border-color: var(--pos-primary);
    background: var(--pos-primary-light);
    color: var(--pos-primary);
    transform: translateY(-1px);
    box-shadow: var(--pos-shadow-sm);
}

.pos-menu-item-btn:active {
    transform: translateY(0);
}

.pos-menu-item-btn .item-price {
    font-weight: 700;
    color: var(--pos-success);
    font-size: 12px;
    margin-top: 4px;
}

/* ─── 11. Status Legend ─── */
.pos-legend-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.pos-legend-chip {
    padding: 4px 10px;
    border-radius: var(--pos-radius-xs);
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* ─── 12. Order Row Status ─── */
.order-row {
    transition: background-color 0.15s ease;
}

.order-row[data-status="S"] { border-left: 4px solid #10b981 !important; background-color: #f0fdf4; }
.order-row[data-status="R"] { border-left: 4px solid #f59e0b !important; background-color: #fffbeb; }
.order-row[data-status="P"] { border-left: 4px solid #06b6d4 !important; background-color: #ecfeff; }
.order-row[data-status="O"] { border-left: 4px solid #3b82f6 !important; background-color: #eff6ff; }
.order-row[data-status="E"] { border-left: 4px solid #ef4444 !important; background-color: #fef2f2; }
.order-row[data-status="T"], .order-row[data-status="B"] { border-left: 4px solid #6366f1 !important; background-color: #eef2ff; }

.order-actions-btn {
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--pos-radius-xs);
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: transform 0.1s;
    user-select: none;
    margin: 1px;
}

.order-actions-btn:active { transform: scale(0.92); }
.order-actions-btn.plus  { background: #dcfce7; color: #16a34a; }
.order-actions-btn.minus { background: #fef9c3; color: #ca8a04; }
.order-actions-btn.del   { background: #fee2e2; color: #dc2626; }

.order-remarks-input {
    width: 100%;
    min-width: 80px;
    max-width: 130px;
    border-radius: var(--pos-radius-xs);
    border: 1.5px solid #cbd5e1;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--pos-text-main);
    height: var(--pos-control-h-sm);
}

/* ─── 13. Kitchen Display System Board ─── */
.kds-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    width: 100%;
}

@media (max-width: 575px) {
    .kds-board { grid-template-columns: 1fr; gap: 10px; }
}

.kds-ticket {
    background: #ffffff;
    border-radius: var(--pos-radius);
    border: 1.5px solid var(--pos-border);
    box-shadow: var(--pos-shadow-xs);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--pos-transition);
}

.kds-ticket-header {
    background: var(--pos-dark);
    color: #ffffff;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kds-ticket-header .ticket-table {
    font-size: 16px;
    font-weight: 800;
}

.kds-ticket-header .ticket-time {
    font-size: 12px;
    opacity: 0.8;
}

.kds-ticket-body {
    padding: 10px 14px;
    flex: 1;
    max-height: 380px;
    overflow-y: auto;
}

.kds-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.kds-item-row:last-child { border-bottom: none; }

/* ─── 14. Supervisor Display ─── */
.sv-table-card {
    background: #ffffff;
    border-radius: var(--pos-radius);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--pos-shadow-xs);
    border: 1.5px solid var(--pos-border);
}

.sv-table-header {
    background: var(--pos-dark);
    color: #ffffff;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.sv-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.sv-item-row:last-child { border-bottom: none; }

.sv-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sv-status-dot.S { background: #16a34a; }
.sv-status-dot.R { background: #f59e0b; }
.sv-status-dot.P, .sv-status-dot.O { background: #3b82f6; }
.sv-status-dot.E { background: #ef4444; }
.sv-items-list { max-height: 220px; overflow-y: auto; }

.pos-card {
    background: #ffffff;
    border-radius: var(--pos-radius);
    border: 1.5px solid var(--pos-border);
    box-shadow: var(--pos-shadow-xs);
    padding: 16px;
}

.pos-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--pos-radius-xs);
    font-size: 11px;
    font-weight: 700;
}

/* ─── 15. Data Tables & Clean Tables ─── */
.table-responsive-clean {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 10px;
}

.table-responsive-clean table { width: 100%; }

.table {
    font-size: 13px;
    border-collapse: collapse;
}

.table > thead > tr > th {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--pos-text-muted);
    background: #f8fafc;
    border-bottom: 2px solid var(--pos-border);
    padding: 10px 14px;
    white-space: nowrap;
}

.table > tbody > tr > td {
    padding: 10px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: var(--pos-text-secondary);
}

.table > tbody > tr:hover > td {
    background-color: #f8fafc;
}

.table > tbody > tr:last-child > td {
    border-bottom: none;
}

/* Bootstrap label overrides for consistent styling */
.label {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--pos-radius-xs);
    display: inline-flex;
    align-items: center;
}

.label-success { background-color: var(--pos-success); }
.label-danger  { background-color: var(--pos-danger); }
.label-warning { background-color: var(--pos-warning); color: #ffffff; }
.label-info    { background-color: var(--pos-info); }
.label-primary { background-color: var(--pos-primary); }

/* ─── 16. Alerts & Validation ─── */
.alert {
    border-radius: var(--pos-radius);
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid;
}

.alert-info {
    background: var(--pos-info-light);
    border-color: #a5f3fc;
    color: #0e7490;
}

.alert-success {
    background: var(--pos-success-light);
    border-color: #a7f3d0;
    color: #047857;
}

.alert-warning {
    background: var(--pos-warning-light);
    border-color: #fde68a;
    color: #92400e;
}

.alert-danger {
    background: var(--pos-danger-light);
    border-color: #fca5a5;
    color: #b91c1c;
}

.text-danger {
    color: var(--pos-danger) !important;
    font-size: 12px;
    font-weight: 500;
}

/* ─── 17. Footer ─── */
footer {
    padding: 12px 20px;
    text-align: right;
}

footer p, footer a {
    font-size: 12px;
    color: var(--pos-text-faint);
    text-decoration: none;
    font-weight: 500;
    margin: 0;
    transition: color 0.15s ease;
}

footer a:hover, footer a:hover p {
    color: var(--pos-primary);
}

/* ─── 18. Mobile Bottom Order Bar ─── */
.mobile-order-summary-bar {
    display: none;
}

@media (max-width: 767px) {
    .mobile-order-summary-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--pos-dark);
        color: #ffffff;
        padding: 10px 16px;
        z-index: 1050;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
        align-items: center;
        justify-content: space-between;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .mobile-order-summary-bar .summary-text {
        font-size: 14px;
        font-weight: 700;
    }
    .mobile-order-summary-bar .summary-btn {
        padding: 8px 18px;
        border-radius: var(--pos-radius-full);
        background: var(--pos-success);
        color: #ffffff;
        border: none;
        font-weight: 700;
        font-size: 13px;
    }
}

/* ─── 19. Utility Classes ─── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.font-bold   { font-weight: 700; }
.font-medium { font-weight: 500; }

/* Toastr Overrides for consistent look */
.toast-success { background-color: var(--pos-success) !important; }
.toast-error   { background-color: var(--pos-danger)  !important; }
.toast-warning { background-color: var(--pos-warning) !important; }
.toast-info    { background-color: var(--pos-primary) !important; }

#toast-container > div {
    border-radius: var(--pos-radius) !important;
    box-shadow: var(--pos-shadow-md) !important;
    font-family: var(--pos-font) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 14px 18px !important;
}

/* ─── 20. Scrollbar Styling ─── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ─── 21. Print Styles ─── */
@media print {
    .pos-topbar-strip, .main-header,
    .pos-mobile-toggle-bar,
    .mobile-order-summary-bar,
    .pos-table-toolbar,
    footer { display: none !important; }

    body.modern-pos-body {
        background: #ffffff;
        font-size: 12px;
    }

    .content-wrapper, .content {
        padding: 0;
    }
}

/* ==========================================================================
   22. Universal Modern Form, Card, Table & Master Page Skinning System
   Automatically modernizes ALL views, CRUD forms, Dialogs, Tables & Controls
   ========================================================================== */

/* ── Form Master Title Banners ── */
body center > .box-header,
body .box-header.with-border,
body .box-header {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    margin: 12px auto 18px auto !important;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #e2e8f0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    max-width: 96% !important;
}

body .box-header .box-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.3px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
}

body .box-header .box-title i {
    color: #3b82f6 !important;
    background: #eff6ff !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    border: 1px solid #dbeafe !important;
}

/* ── Modern Box Card Containers ── */
body .box,
body .box.box-primary,
body .box.box-info,
body .box.box-success,
body .box.box-warning,
body .box.box-danger {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 24px !important;
    transition: box-shadow 0.2s ease !important;
    overflow: hidden !important;
}

body .box-body {
    padding: 20px 22px !important;
}

body .box hr {
    border: none !important;
    border-top: 1px solid #f1f5f9 !important;
    margin: 14px 0 !important;
}

/* ── Modern Sub-Panels ── */
body .panel,
body .panel-default {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    margin-bottom: 20px !important;
    overflow: hidden !important;
}

body .panel-default > .panel-heading {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    font-size: 14px !important;
    padding: 12px 18px !important;
}

body .panel-body {
    padding: 18px !important;
}

/* ── Modern Form Controls & Labels ── */
body .form-group {
    margin-bottom: 16px !important;
}

body .form-group label,
body label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    display: inline-block !important;
    letter-spacing: 0.1px !important;
}

body .form-control,
body input[type="text"],
body input[type="password"],
body input[type="number"],
body input[type="email"],
body input[type="date"],
body select.form-control,
body textarea.form-control {
    height: 40px !important;
    border-radius: 8px !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    font-family: var(--pos-font) !important;
    padding: 8px 13px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.15s ease-in-out !important;
    max-width: 100% !important;
}

body textarea.form-control {
    height: auto !important;
    min-height: 80px !important;
}

body .form-control:focus,
body input[type="text"]:focus,
body input[type="password"]:focus,
body input[type="number"]:focus,
body input[type="email"]:focus,
body select.form-control:focus,
body textarea.form-control:focus {
    border-color: #3b82f6 !important;
    outline: none !important;
    box-shadow: 0 0 0 3.5px rgba(59, 130, 246, 0.16) !important;
    background-color: #ffffff !important;
}

body .form-control[readonly],
body .form-control[disabled],
body input[readonly],
body input[disabled] {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

body .form-control::placeholder {
    color: #94a3b8 !important;
    font-size: 13px !important;
    opacity: 1 !important;
}

/* Date Range Picker Container (#reportrange) */
body #reportrange {
    height: 40px !important;
    border-radius: 8px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: border-color 0.15s ease !important;
}

body #reportrange:hover {
    border-color: #3b82f6 !important;
}

/* ── Modern Universal Buttons ── */
body .btn,
body input[type="submit"].btn,
body input[type="reset"].btn,
body input[type="button"].btn,
body button.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    height: 38px !important;
    padding: 0 18px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

body .btn:hover {
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14) !important;
}

body .btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

body .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
}

body .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
}

body .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
}

body .btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
}

body .btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: #ffffff !important;
}

body .btn-default {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body .btn-default:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

body .btn-group {
    display: inline-flex !important;
    gap: 8px !important;
}

body .btn-group > .btn {
    border-radius: 8px !important;
    margin-right: 0 !important;
}

/* ── Modern Table & DataTables (Overrides Legacy Green th #4CAF50) ── */
body table.table,
body .table-bordered,
body .dataTable {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    margin-top: 14px !important;
    margin-bottom: 20px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body table.table thead th,
body .table > thead > tr > th,
body .dataTable thead th,
body th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0.2px !important;
    padding: 12px 14px !important;
    border: none !important;
    border-bottom: 2px solid #e2e8f0 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

body table.table tbody td,
body .table > tbody > tr > td,
body .dataTable tbody td {
    padding: 11px 14px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
    background: #ffffff;
    transition: background-color 0.12s ease !important;
}

body .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #f8fafc !important;
}

body .table-hover > tbody > tr:hover > td {
    background-color: #f1f5f9 !important;
}

/* Table scroll wrapper cards (#UserContainer, #CategoryContainer, etc.) */
div[id$="Container"] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    margin-top: 10px !important;
    padding: 0 !important;
}

/* DataTables Controls Modernization */
body .dataTables_wrapper {
    padding: 12px 0 !important;
    font-family: var(--pos-font) !important;
}

body .dataTables_length {
    margin-bottom: 12px !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

body .dataTables_length select {
    height: 34px !important;
    border-radius: 7px !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    margin: 0 6px !important;
    background-color: #ffffff !important;
}

body .dataTables_filter {
    margin-bottom: 12px !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

body .dataTables_filter input {
    height: 36px !important;
    border-radius: 8px !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    margin-left: 8px !important;
    background-color: #ffffff !important;
    transition: all 0.15s ease !important;
}

body .dataTables_filter input:focus {
    border-color: #3b82f6 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

body .dataTables_info {
    color: #64748b !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    padding-top: 14px !important;
}

body .dataTables_paginate {
    padding-top: 10px !important;
}

body .dataTables_paginate .paginate_button {
    border-radius: 7px !important;
    padding: 6px 12px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    margin: 0 3px !important;
    transition: all 0.15s ease !important;
}

body .dataTables_paginate .paginate_button:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body .dataTables_paginate .paginate_button.current,
body .dataTables_paginate .paginate_button.current:hover {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3) !important;
}

/* ── Modern Checkboxes & Radios ── */
body .checkbox, body .radio {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

body .checkbox label,
body .radio label {
    font-weight: 500 !important;
    font-size: 13px !important;
    color: #334155 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    user-select: none !important;
}

body input[type="checkbox"],
body input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #3b82f6 !important;
    cursor: pointer !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

/* ── Modern Alerts & Validation Messages ── */
body .field-validation-error,
body .text-danger {
    color: #ef4444 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
    display: block !important;
}

body .validation-summary-errors {
    background: #fef2f2 !important;
    border: 1px solid #fca5a5 !important;
    border-radius: 10px !important;
    padding: 12px 18px !important;
    margin-bottom: 16px !important;
    color: #991b1b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

body .validation-summary-errors ul {
    margin: 0 !important;
    padding-left: 20px !important;
}

/* ==========================================================================
   23. Complete Enterprise Consistency Engine (RestoBar POS Global Design)
   Guarantees 100% Visual Consistency for Layout, Content, Cards & Controls
   ========================================================================== */

/* ── Universal Page Header Banner (DayEnd Standard) ── */
.pos-page-header,
body center > .box-header,
body .box-header.with-border,
body .box-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    margin: 0 0 24px 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
}

body center {
    display: block !important;
    text-align: left !important;
    margin: 0 0 16px 0 !important;
}

.pos-page-header .pos-page-title-group,
.pos-page-header .pos-page-title-wrap,
body .box-header .box-title {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.3px !important;
}

.pos-page-header .pos-page-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.3px !important;
    margin: 0 !important;
}

.pos-page-header .pos-page-icon,
body .box-header .box-title i {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: blur(6px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    flex-shrink: 0 !important;
}

.pos-page-header .pos-page-subtitle {
    margin: 4px 0 0 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
}

.pos-page-header .pos-page-actions,
.pos-page-header .pos-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.pos-page-header .pos-page-actions .btn,
.pos-page-header .pos-header-actions .btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    backdrop-filter: blur(4px) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

.pos-page-header .pos-page-actions .btn:hover,
.pos-page-header .pos-header-actions .btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

/* ── Universal Clean Card Overrides (DayEnd Standard) ── */
body .box,
body .box.box-primary,
body .box.box-info,
body .box.box-success,
body .box.box-warning,
body .box.box-danger {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 24px !important;
    padding: 22px !important;
    overflow: hidden !important;
}

body .box-body {
    padding: 0 !important;
}

/* Remove double nested panel inside box */
body .box .panel,
body .box .panel.panel-default {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

body .box .panel.panel-default > .box-body,
body .box .panel.panel-default > .panel-body {
    padding: 0 !important;
}

/* Standalone Modern Card */
.pos-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    padding: 22px !important;
    margin-bottom: 24px !important;
    transition: var(--pos-transition) !important;
}

.pos-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05) !important;
}

.pos-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 14px !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.pos-card-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

/* ── Universal Clean Table Styling (DayEnd Standard) ── */
html body th,
html body table th,
html body table.table th,
html body table.table thead th,
html body .table > thead > tr > th,
html body .dataTable thead th,
html body #Categorytables thead th,
html body #Usertables thead th,
html body #Menutables thead th,
html body #Grouptables thead th,
html body #OfferTable thead th,
html body #ProductOfferTable thead th,
html body #Tabletables thead th,
html body #gridT thead th,
html body #subT thead th,
html body #gridT th,
html body #subT th {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 14px !important;
    border: none !important;
    border-bottom: 2px solid #e2e8f0 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

html body table.table tbody td,
html body .table > tbody > tr > td,
html body .dataTable tbody td,
html body #gridT tbody td,
html body #subT tbody td {
    padding: 12px 14px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
    background: #ffffff;
}

html body table.table-striped > tbody > tr:nth-of-type(odd) > td,
html body .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #f8fafc !important;
}

html body table.table-hover > tbody > tr:hover > td,
html body .table-hover > tbody > tr:hover > td {
    background-color: #f1f5f9 !important;
}

/* Table Card Shell Container */
div[id$="Container"],
#CategoryContainer,
#UserContainer,
#Menutables_wrapper,
#Categorytables_wrapper,
#Grouptables_wrapper,
#Usertables_wrapper {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    margin-top: 16px !important;
    overflow-x: auto !important;
}

/* ── Modern Table Action Buttons & Links ── */
body table.table td a:not(.btn),
body .dataTable td a:not(.btn) {
    color: #2563eb !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-decoration: none !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 2px !important;
    transition: all 0.15s ease !important;
}

body table.table td a:not(.btn):hover,
body .dataTable td a:not(.btn):hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25) !important;
}

/* ── Unified Form Controls ── */
body .form-group {
    margin-bottom: 16px !important;
}

body .form-group label,
body label {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    display: inline-block !important;
    letter-spacing: 0.1px !important;
}

body .form-control,
body input[type="text"],
body input[type="password"],
body input[type="number"],
body input[type="email"],
body input[type="date"],
body select.form-control,
body textarea.form-control {
    height: 40px !important;
    border-radius: 8px !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    max-width: 100% !important;
}

body .form-control:focus,
body select.form-control:focus,
body textarea.form-control:focus,
body input[type="text"]:focus,
body input[type="password"]:focus,
body input[type="number"]:focus {
    border-color: #3b82f6 !important;
    outline: none !important;
    box-shadow: 0 0 0 3.5px rgba(59, 130, 246, 0.16) !important;
}

body .form-control[readonly],
body input[readonly] {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
}

/* ── Unified Buttons System ── */
body .btn,
body input[type="submit"].btn,
body input[type="button"].btn,
body a.btn,
body button.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    height: 38px !important;
    padding: 0 18px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

body .btn:hover {
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

body .btn:active {
    transform: translateY(0) !important;
}

body .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
}

body .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
}

body .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
}

body .btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
}

body .btn-default {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1.5px solid #cbd5e1 !important;
}

body .btn-default:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

/* Button groups spacing */
body .btn-group {
    display: inline-flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

body .btn-group > .btn {
    float: none !important;
    border-radius: 8px !important;
    margin: 0 !important;
}

/* ── Modern Badges & Status Pills ── */
body .badge,
body .label {
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
}

body .badge-success,
body .label-success {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
}

body .badge-danger,
body .label-danger {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}

body .badge-warning,
body .label-warning {
    background-color: #fffbeb !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
}

body .badge-info,
body .label-info {
    background-color: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
}

/* ── Universal Modals & Dialogs ── */
body .modal-content {
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
}

body .modal-header {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #334155 !important;
}

body .modal-header .modal-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

body .modal-header .close {
    color: #ffffff !important;
    opacity: 0.8 !important;
    text-shadow: none !important;
    font-size: 24px !important;
}

body .modal-header .close:hover {
    opacity: 1 !important;
}

body .modal-body {
    padding: 20px 24px !important;
}

body .modal-footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 14px 20px !important;
}

/* ── Modern Alerts & Notifications ── */
body .alert {
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 12px 18px !important;
    border-width: 1px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

body .alert-success {
    background-color: #f0fdf4 !important;
    color: #166534 !important;
    border-color: #bbf7d0 !important;
}

body .alert-danger {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border-color: #fecaca !important;
}

body .alert-warning {
    background-color: #fffbeb !important;
    color: #92400e !important;
    border-color: #fde68a !important;
}

body .alert-info {
    background-color: #f0f9ff !important;
    color: #075985 !important;
    border-color: #bae6fd !important;
}

/* Table cell uniform padding & alignment */
body table.table tbody td {
    vertical-align: middle !important;
    padding: 12px 14px !important;
    color: #334155 !important;
    font-size: 13px !important;
}

/* Bootstrap Multiselect button consistency */
body .btn-group > button.multiselect {
    height: 40px !important;
    border-radius: 8px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    font-size: 13px !important;
    text-align: left !important;
    font-weight: 500 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

body .multiselect-container {
    border-radius: 10px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 6px 0 !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    z-index: 10050 !important;
}

body .multiselect-container > li > a > label {
    padding: 6px 16px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    cursor: pointer !important;
}

/* ==========================================================================
   Universal Control Anti-Overlap & Positioning Safety Rules
   ========================================================================== */

/* Prevent table cells from floating when assigned Bootstrap col-* classes */
table td[class*="col-"],
table th[class*="col-"] {
    float: none !important;
    display: table-cell !important;
}

table td .editor-field {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Button vs Form-Control class conflict prevention */
.btn.form-control,
.form-control.btn {
    width: auto !important;
    display: inline-block !important;
    line-height: normal !important;
}

/* Timepicker & Datepicker popups overlay fix */
.ui-timepicker-wrapper {
    min-width: 140px !important;
    width: auto !important;
    max-width: 220px !important;
    z-index: 10050 !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15) !important;
}

.datepicker.dropdown-menu,
.xdsoft_datetimepicker {
    z-index: 10050 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
}

/* Form group and multiselect full width containment */
.form-group .btn-group,
.btn-group:has(.multiselect) {
    width: 100% !important;
}

/* Clean up legacy checkbox & radio spacing and prevent text overlap */
.checkbox label,
.radio label {
    padding-left: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    color: #334155 !important;
}

.checkbox input[type="checkbox"],
.radio input[type="radio"] {
    position: static !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
    accent-color: #2563eb !important;
}

.checkbox, .radio {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding-left: 0 !important;
}


