:root {
    --primary: #059669; /* Emerald Green */
    --primary-light: #34d399;
    --primary-glow: rgba(5, 150, 105, 0.15);
    --secondary: #f43f5e;
    --accent: #10b981;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

html {
    font-size: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    background: white;
    border-right: 1px solid #e2e8f0;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 32px;
    max-width: calc(100vw - 250px);
}

/* Sidebar Navigation */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    margin-bottom: 32px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), #10b981);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.nav-menu {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.nav-menu::-webkit-scrollbar {
    width: 3px;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 20px 16px 8px;
}

.nav-item {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2px;
    font-size: 0.9rem;
}


.nav-item:hover {
    background: #f1f5f9;
    color: var(--primary);
    transform: translateX(4px);
}

.nav-item.active {
    background: var(--primary-glow);
    color: var(--primary);
    position: relative;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}

/* Components */
.btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px 0 rgba(5, 150, 105, 0.2);
}

.btn-primary:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(5, 150, 105, 0.15);
}

.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Stats */
.stat-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
}


/* Grid & Products */
.grid-lines {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scrollbar-width: none;
}

.grid-lines::-webkit-scrollbar { display: none; }

.line-tag {
    padding: 10px 24px;
    background: white;
    border-radius: 100px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.line-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.line-tag.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
    width: 100%;
    height: 180px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 8px;
}

/* Auth View */
.auth-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    background-image: radial-gradient(at 0% 0%, rgba(5, 150, 105, 0.05) 0, transparent 50%), 
                      radial-gradient(at 50% 0%, rgba(16, 185, 129, 0.05) 0, transparent 50%);
}

.auth-card {
    width: 440px;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s;
    margin-top: 8px;
}

.input-field:focus {
    background: white;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

/* Cart Drawer */
.cart-drawer {
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
}

.cart-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* Table Style */
.table-container {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8fafc;
    padding: 16px 24px;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

td {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
}

.compact-table th {
    padding: 12px 16px;
    font-size: 0.8rem;
}

.compact-table td {
    padding: 10px 16px;
    font-size: 0.85rem;
}

.compact-table tr:hover {
    background-color: #f8fafc;
}

.clickable-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.clickable-row:hover {
    background-color: #f1f5f9 !important;
}

.view-container {
    animation: fadeInUp 0.4s ease-out;
}

/* Status Tags */
.success-glow { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.warning-glow { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.danger-glow { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.primary-glow { background: var(--primary-glow); color: var(--primary); }

.swal2-confirm {
    background-color: var(--primary) !important;
    box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.39) !important;
    border-radius: 12px !important;
}

.swal2-cancel {
    border-radius: 12px !important;
}

.swal2-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1) !important;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-container.active {
    display: block;
}

@keyframes progressPulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.progress-bar.pulsing {
    animation: progressPulse 1.5s infinite;
}

.print-only { display: none; }

@media print {
    body { background: white !important; font-size: 10pt !important; }
    .print-only { display: block !important; }
    .sidebar, header, .nav-menu, .nav-footer, button, .input-field, select, .no-print, .swal2-container, #receipt-print { display: none !important; }
    .main-content { margin-left: 0 !important; padding: 0 !important; max-width: 100% !important; width: 100% !important; }
    .view-container { animation: none !important; transform: none !important; width: 100% !important; }
    .card { box-shadow: none !important; border: 1px solid #eee !important; break-inside: avoid; padding: 12px !important; margin-bottom: 10px !important; }
    .table-container { border: 1px solid #eee !important; box-shadow: none !important; }
    table { width: 100% !important; }
    th, td { border-bottom: 1px solid #eee !important; padding: 2px 4px !important; color: black !important; font-size: 7pt !important; }
    .line-tag { padding: 2px 4px !important; border: none !important; background: transparent !important; color: black !important; font-size: 7pt !important; }
    h3 { font-size: 12pt !important; margin-bottom: 6px !important; }
    .stat-value { font-size: 1.1rem !important; }
    .stat-card { gap: 2px !important; padding: 6px !important; }
}

/* ==========================================================================
   HORIZONTAL NAVIGATION BAR (LAPTOP & PC)
   ========================================================================== */

.horizontal-navbar {
    display: none; /* Hidden by default; displayed on >= 1024px */
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 62px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.hnav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    flex-shrink: 0;
}

.hnav-brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.22);
    transition: transform 0.2s ease;
}

.hnav-brand:hover img {
    transform: scale(1.05);
}

.hnav-brand-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.hnav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.hnav-dropdown-wrapper {
    position: relative;
}

.hnav-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.84rem;
    color: #475569;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.hnav-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.hnav-btn.active {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
    font-weight: 700;
}

.hnav-btn.open {
    background: #f8fafc;
    color: #059669;
    border-color: #cbd5e1;
}

.hnav-chevron {
    width: 13px;
    height: 13px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    stroke-width: 2.2;
}

.hnav-btn.open .hnav-chevron {
    transform: rotate(180deg);
}

/* Quick POS Button in Navbar */
.hnav-pos-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #ffffff;
    background: linear-gradient(135deg, #059669, #10b981);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hnav-pos-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.hnav-pos-btn.active {
    outline: 2px solid #047857;
    outline-offset: 1px;
}

/* Dropdown Menu Box */
.hnav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 235px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 1100;
    animation: hnavFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hnavFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hnav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    white-space: nowrap;
}

.hnav-item:hover {
    background: #f8fafc;
    color: #059669;
    transform: translateX(3px);
}

.hnav-item.active {
    background: #ecfdf5;
    color: #059669;
    font-weight: 700;
}

.hnav-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #f1f5f9;
    color: #64748b;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.hnav-item:hover .hnav-item-icon {
    background: #ecfdf5;
    color: #059669;
}

.hnav-item.active .hnav-item-icon {
    background: #10b981;
    color: #ffffff;
}

.hnav-item-icon i {
    width: 15px;
    height: 15px;
}

/* Right Widgets */
.hnav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.hnav-clock {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 9px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    font-family: monospace;
    white-space: nowrap;
    user-select: none;
}

.hnav-pill {
    padding: 5px 9px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    user-select: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hnav-pill-bcv {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #1e293b;
}

.hnav-pill-printer {
    cursor: pointer;
}

.hnav-pill-held {
    cursor: pointer;
    background: #fef3c7;
    border: 1.5px solid #f59e0b;
    color: #92400e;
    animation: hnavPulse 2s infinite;
}

@keyframes hnavPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.hnav-user-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 8px 2px 4px;
    border-radius: 20px;
    white-space: nowrap;
}

.hnav-logout-btn-full {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fee2e2;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
    padding: 6px 12px;
    border-radius: 9px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.12);
}

.hnav-logout-btn-full:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

@media (max-width: 1280px) {
    .hnav-clock {
        display: none !important;
    }
}

.hnav-logout-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hnav-logout-btn:hover {
    background: #ef4444;
    color: #ffffff;
    transform: scale(1.08);
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 10000;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (LAPTOP & PC vs CELULAR & TABLET)
   ========================================================================== */

/* Laptop & PC: Pantallas >= 1024px */
@media (min-width: 1024px) {
    .horizontal-navbar {
        display: flex !important;
    }

    .sidebar {
        display: none !important;
    }

    .app-container {
        display: block !important;
    }

    .main-content {
        margin-left: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 28px 36px !important;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .mobile-drawer-overlay {
        display: none !important;
    }

    .desktop-hide {
        display: none !important;
    }
}

/* Celular y Tablet: Pantallas < 1024px */
@media (max-width: 1023px) {
    html {
        font-size: 13.5px;
    }

    .horizontal-navbar {
        display: none !important;
    }

    .sidebar {
        display: flex !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        height: 100vh !important;
        width: 260px !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 10001 !important;
        background: white !important;
        border-right: 1px solid #e2e8f0 !important;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0) !important;
        box-shadow: 20px 0 50px rgba(0,0,0,0.2) !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 16px !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
        margin-bottom: 20px !important;
    }

    .auth-card {
        width: 95%;
        padding: 24px 16px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 10px !important;
    }

    .stat-card {
        padding: 12px !important;
        gap: 4px !important;
    }

    .stat-card .stat-value {
        font-size: 1.2rem !important;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .cart-drawer {
        width: 100%;
        padding: 16px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .product-card .product-img-wrapper {
        height: 120px;
    }

    .view-container h3 {
        font-size: 1.1rem;
    }

    .card {
        padding: 16px;
    }

    /* Floating Menu Button for Mobile and Tablet */
    .mobile-menu-btn {
        display: flex !important;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: var(--primary);
        color: white;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
        z-index: 10002;
        border: none;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .mobile-menu-btn:hover {
        transform: scale(1.06);
    }
}

.mobile-menu-btn { display: none; }

#receipt-print { display: none; }
#receipt-print .header { text-align: center; margin-bottom: 10px; }
#receipt-print .header h3 { margin: 0; }
#receipt-print .divider { border-bottom: 1px dashed black; margin: 10px 0; }
#receipt-print table { width: 100%; border-collapse: collapse; }
#receipt-print th { text-align: left; font-size: 10px; }
#receipt-print .total-row { font-weight: bold; font-size: 14px; }
#receipt-print .footer { text-align: center; margin-top: 20px; font-size: 10px; }

/* Custom SweetAlert Buttons for Roles */
.swal-save-btn { background: #c2410c !important; color: white !important; border-radius: 12px !important; padding: 12px 24px !important; font-weight: 700 !important; display: flex !important; align-items: center !important; gap: 8px !important; box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3) !important; }
.swal-cancel-btn { background: #fff !important; color: #64748b !important; border: 1px solid #e2e8f0 !important; border-radius: 12px !important; padding: 12px 24px !important; font-weight: 600 !important; }
.swal-actions-custom { padding: 24px !important; border-top: 1px solid #f1f5f9 !important; margin: 0 !important; width: 100% !important; justify-content: flex-end !important; gap: 12px !important; }
.swal2-popup { border-radius: 20px !important; }

/* POS Responsive Layout */
.pos-container-grid { display: grid; grid-template-columns: 1fr; gap: 20px; height: calc(100vh - 100px); }
@media (min-width: 1300px) { .pos-container-grid.has-cart { grid-template-columns: 1fr 380px; } }
@media (min-width: 1025px) and (max-width: 1299px) { .pos-container-grid.has-cart { grid-template-columns: 1fr 350px; } }
@media (max-width: 1024px) { 
    .pos-container-grid { grid-template-columns: 1fr !important; height: auto !important; overflow: visible !important; }
    .pos-container-grid.has-cart { grid-template-columns: 1fr !important; } 
    .cart-drawer { position: relative !important; margin-top: 20px; height: auto !important; max-height: none !important; border-radius: 15px !important; } 
    .pos-view { height: auto !important; overflow: visible !important; }
}

@media (max-width: 767px) {
    .pos-view > div:first-child { flex-direction: column; align-items: stretch !important; gap: 10px !important; }
    .pos-view .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .pos-view .product-img-wrapper { height: 70px !important; }
    .pos-view .product-info h4 { font-size: 0.75rem !important; }
    .pos-view .product-price { font-size: 0.85rem !important; }
}

/* Compact POS Product Display */
.pos-view .product-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; gap: 10px !important; }
.pos-view .product-card { border-radius: 12px !important; border: 1px solid #e2e8f0 !important; }
.pos-view .product-img-wrapper { height: 90px !important; }
.pos-view .product-info { padding: 8px !important; }
.pos-view .product-info h4 { font-size: 0.8rem !important; margin-bottom: 4px !important; white-space: normal !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; line-height: 1.2 !important; height: 2.4em !important; }
.pos-view .product-price { font-size: 0.95rem !important; font-weight: 900 !important; }
.pos-view .add-badge { width: 24px !important; height: 24px !important; top: 6px !important; right: 6px !important; }
.pos-view .add-badge i { width: 10px !important; }

.pos-view .product-img { object-fit: contain !important; background: #fff !important; padding: 4px !important; }

@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
