:root {
    --primary: #6366f1;
    --primary-dark: #4338ca;
    --secondary: #ec4899;
    --accent: #34d399;
    --danger: #f87171;
    --warning: #fbbf24;
    --surface: #020617;
    --surface-soft: #0a0f1a;
    --surface-lighter: #111827;
    --card-bg: rgba(15, 23, 42, 0.85);
    --text-main: #e2e8f0;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border-soft: rgba(226, 232, 240, 0.25);
    --border: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 25px 40px rgba(2, 6, 23, 0.45);
    --sidebar-width: 280px;
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6 65%);
    --gradient-secondary: linear-gradient(145deg, #ec4899, #fb7185 65%);
    --success: #34d399;
    --light: rgba(255, 255, 255, 0.08);
}

.login-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #020617;
    background-image: url('../images/login-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    overflow: hidden !important;
    font-family: 'Outfit', sans-serif;
}

.login-background-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.15), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.1), transparent 50%),
        rgba(2, 6, 23, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.login-panel {
    position: relative;
    z-index: 10;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    padding: 1.25rem 2rem;
    width: min(92%, 390px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    animation: loginPanelEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin: auto;
    overflow-y: auto;
    max-height: 95vh;
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 480px) {
    .login-panel {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .brand-logo {
        font-size: 2.2rem;
    }

    .brand-name {
        font-size: 1.6rem;
    }

    .login-form {
        gap: 0.75rem;
    }
}

/* Ajuste para pantallas con poca altura - Muy importante para laptops y monitores pequeños */
@media (max-height: 850px) {
    .login-panel {
        padding: 1rem 1.5rem;
        border-radius: 1.25rem;
    }
    .login-brand {
        margin-bottom: 0.5rem;
    }
    .brand-logo {
        font-size: 2.2rem;
        margin-bottom: 0.15rem;
    }
    .brand-name {
        font-size: 1.6rem;
    }
    .login-header {
        margin-bottom: 0.75rem;
    }
    .login-header h2 {
        font-size: 1.25rem;
    }
    .login-form {
        gap: 0.7rem;
    }
    .login-form-group {
        gap: 0.25rem;
    }
    .premium-btn {
        padding: 0.85rem;
    }
    .login-input {
        padding: 0.85rem 1rem 0.85rem 3rem;
    }
    .input-icon {
        left: 1rem;
    }
}

@media (max-height: 700px) {
    .brand-logo {
        font-size: 1.8rem;
    }
    .brand-name {
        font-size: 1.4rem;
    }
    .brand-tagline, .login-subtitle, .input-hint {
        display: none;
    }
    .login-panel {
        padding: 0.75rem 1.25rem;
    }
    .login-form {
        gap: 0.5rem;
    }
    .login-header {
        margin-bottom: 0.5rem;
    }
}

@media (max-height: 550px) {
    .login-panel {
        transform: scale(0.9);
        transform-origin: center center;
    }
    .login-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 0.5rem;
    }
    .brand-logo {
        margin-bottom: 0;
        font-size: 1.5rem;
    }
    .login-header {
        display: none;
    }
}

@keyframes loginPanelEntry {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-brand {
    text-align: center;
    margin-bottom: 0.75rem;
}

.login-brand-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.login-brand-compact .brand-logo {
    font-size: 2.2rem;
    margin-bottom: 0;
}

.login-brand-compact .brand-name {
    font-size: 1.8rem;
}

.brand-logo {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    background: transparent;
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0;
    letter-spacing: -1px;
    background: transparent;
}

.brand-name span {
    color: var(--primary);
    background: transparent;
}

.brand-tagline {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2.5px;
    font-weight: 600;
    margin-top: 0.2rem;
    text-transform: uppercase;
    background: transparent;
}

.login-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-header h2 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.login-form-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

@media (max-width: 400px) {
    .login-form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.login-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 0.25rem;
    margin-bottom: 0.15rem;
}

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

.input-icon {
    position: absolute;
    left: 1.25rem;
    opacity: 0.5;
    font-size: 1.1rem;
    pointer-events: none;
}

.login-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.login-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    outline: none;
}

.input-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 0.25rem;
    margin-left: 0.5rem;
}

.premium-btn {
    position: relative;
    padding: 1.1rem;
    border-radius: 1rem;
    border: none;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    margin-top: 0.5rem;
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.45);
}

.premium-btn:active {
    transform: scale(0.98);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.premium-btn:hover .btn-shine {
    left: 100%;
    transition: 0.5s;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.login-link-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.login-link-btn.secondary {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 400;
}

.login-link-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.login-method-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.login-method-option {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-method-option.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: white;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.35;
    }

    100% {
        opacity: 0.15;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.25), transparent 40%),
        linear-gradient(180deg, #020617 0%, #050b1a 50%, #0f172a 100%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.75;
    scroll-behavior: smooth;
    font-size: 20px;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.7rem;
}

h3 {
    font-size: 2.2rem;
}

h4 {
    font-size: 1.7rem;
}

p,
.subtitle,
label,
.form-control,
button,
.badge {
    font-size: 1.1rem;
}

.subtitle {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.8);
}

#app {
    display: flex;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0);
    position: relative;
}

#sidebar {
    width: var(--sidebar-width);
    background: var(--gradient-primary);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 6px 0 30px rgba(8, 9, 27, 0.5);
}

.sidebar-top-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-status-group {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.85);
}

.sidebar-label {
    opacity: 0.75;
}

.sidebar-value {
    font-weight: 600;
}

.sidebar-top-actions {
    display: flex;
    gap: 0.5rem;
}

.sidebar-top-actions .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
}

.sidebar-top-panel {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-top-status {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-user {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.9);
}

.sidebar-top-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sidebar-top-actions .btn {
    flex: 1;
    min-width: 130px;
    font-size: 0.85rem;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
}

.sidebar-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1.25rem;
}

.logo {
    padding: 1.75rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 0 25px 25px 0;
    transition: all 0.25s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.nav-menu li a.active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.nav-menu .icon {
    margin-right: 0.9rem;
    font-size: 1.25rem;
}

.cash-status {
    position: relative;
    width: 100%;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: auto;
    flex-shrink: 0;
    text-align: center;
}

.cash-open,
.cash-closed {
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: inline-flex;
    width: 100%;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.cash-open {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.cash-closed {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

#main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 3rem 2.75rem 2rem;
    width: calc(100% - var(--sidebar-width));
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

#main-content::before {
    content: '';
    position: absolute;
    inset: 1.25rem;
    border-radius: 1.5rem;
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.15), rgba(2, 6, 23, 0.5));
    pointer-events: none;
    filter: blur(0.5px);
    opacity: 0.7;
    z-index: -1;
}

#view-container {
    width: 100%;
    min-height: calc(100vh - 4.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.view-header {
    margin-bottom: 2rem;
}

.view-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.view-header p {
    color: var(--text-muted);
    opacity: 0.9;
}

.glass-panel {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.floating-card {
    background: var(--surface-lighter);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
}

.gradient-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.35);
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 45px rgba(2, 6, 23, 0.35);
}

.btn {
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.4rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 15px 25px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.btn-success {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #fff;
    box-shadow: 0 15px 25px rgba(16, 185, 129, 0.35);
}

.btn-danger {
    background: linear-gradient(135deg, #fb7185, #ef4444);
    color: #fff;
    box-shadow: 0 15px 25px rgba(239, 68, 68, 0.35);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #f8fafc;
    font-size: 1.05rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.4);
    background: rgba(0, 0, 0, 0.8);
}

select.form-control {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

/* Campo categoría en producto: buscador + botón ver todas */
.product-category-field {
    position: relative;
}

.product-category-input-wrap {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.product-category-input-wrap .form-control {
    flex: 1;
    min-width: 0;
}

.product-category-btn-all {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.product-category-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.25rem;
    max-height: 220px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 100;
    display: none;
}

.product-category-option {
    display: block;
    width: 100%;
    padding: 0.6rem 0.85rem;
    text-align: left;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.product-category-option:hover,
.product-category-option.selected {
    background: rgba(99, 102, 241, 0.45);
    color: #fff;
}

.product-category-dropdown-empty {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Modal Importar Productos: contraste y texto visible */
.import-modal-content {
    margin-bottom: 1.5rem;
}

.import-format-box {
    background: #dbeafe;
    border: 2px solid #3b82f6;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    color: #1e3a5f;
}

.import-format-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1e3a5f;
}

.import-format-text {
    font-size: 0.9rem;
    color: #1e3a5f;
}

.import-format-code {
    background: #fff;
    color: #0f172a;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    margin-top: 0.25rem;
}

.import-note-box {
    background: #fef3c7;
    border: 1px solid #d97706;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    color: #78350f;
}

.import-details {
    margin-top: 1rem;
}

.import-details-summary {
    cursor: pointer;
    font-weight: 600;
    color: #6366f1;
}

.import-example-code {
    margin-top: 0.75rem;
    background: #e2e8f0;
    color: #0f172a;
    padding: 1rem;
    border-radius: 0.375rem;
    font-family: monospace;
    font-size: 0.85rem;
    overflow-x: auto;
}

.table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.75);
}

table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-main);
}

thead {
    background: rgba(99, 102, 241, 0.2);
}

th {
    padding: 0.85rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

td {
    padding: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(6px);
    z-index: 999;
}

.modal-overlay.active {
    display: block;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    max-width: 92%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.close-modal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.close-modal:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.12);
}

/* Premium Modal Components 2026 */
.modern-modal-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.info-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.info-content {
    flex: 1;
}

.info-content h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
}

.info-content p {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.premium-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(15, 23, 42, 0.5) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.premium-select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
}

.modal-actions-premium {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.modal-actions-premium .btn {
    flex: 1;
    padding: 0.8rem;
    font-weight: 600;
    border-radius: 0.75rem;
}

.glass-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.premium-action-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.premium-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4) !important;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.5;
    font-style: italic;
}

#notification-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 11000;
    max-width: 400px;
    width: min(90%, 400px);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.notification {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #f8fafc;
    font-weight: 600;
    pointer-events: auto;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-success {
    border-left: 5px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.95));
}

.notification-error {
    border-left: 5px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(15, 23, 42, 0.95));
}

.notification-warning {
    border-left: 5px solid #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(15, 23, 42, 0.95));
    color: #fef3c7;
}

.notification-info {
    border-left: 5px solid #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(15, 23, 42, 0.95));
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card-highlight {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.25), rgba(79, 70, 229, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.stat-card-highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(234, 179, 8, 0.4), transparent 45%);
    opacity: 0.8;
    pointer-events: none;
}

.stat-card-highlight h3 {
    color: rgba(248, 250, 252, 0.9);
}

.stat-card-highlight .value {
    font-size: 2.2rem;
    color: #fff;
}

.stat-card-sales {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(52, 211, 153, 0.3));
}

.stat-card-total {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.45));
}

.stat-card-button {
    cursor: pointer;
    border: 1px solid transparent;
    text-align: left;
    width: 100%;
    background: transparent;
    border-radius: 0.85rem;
    padding: 1.25rem 1.5rem;
}

.stat-card-button:focus {
    outline: 2px solid rgba(99, 102, 241, 0.8);
    outline-offset: 2px;
}

.stat-card.stat-card-selected {
    border-color: rgba(99, 102, 241, 0.9);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-main);
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.movement-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.movement-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.movement-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.search-box {
    position: relative;
}

.search-box input {
    padding-left: 0.875rem;
    /* Removed padding for icon */
}

/* Removed search icon pseudo-element */
.search-box::before {
    display: none;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text);
    opacity: 0.6;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 1.75rem;
    align-items: start;
}

.pos-left-column,
.pos-right-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pos-cart-section {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.daily-sales-list {
    display: grid;
    gap: 0.5rem;
    max-height: 260px;
    overflow: auto;
}

.daily-sales-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
}

/* POS Modern Design Styles */
.pos-summary-section {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
}

.pos-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text);
}

.pos-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    padding: 1rem 0;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.pos-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.pos-helper-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.85;
}

.pos-panel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.8);
}

.pos-section {
    margin-top: 2rem;
}

.pos-payment-section {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.pos-payment-title {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 600;
}

.pos-customer-placeholder {
    margin-bottom: 1rem;
}

.pos-customer-placeholder .btn {
    width: 100%;
}

.pos-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    z-index: 50;
    display: none;
}

.search-result-item {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    color: var(--text-main);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(99, 102, 241, 0.25);
    transform: translateX(2px);
    box-shadow: 0 5px 15px rgba(2, 6, 23, 0.35);
}

.search-result-item.selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(79, 70, 229, 0.45));
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 20px 40px rgba(8, 9, 27, 0.45);
    transform: translateX(2px) scale(1.01);
}

.pos-search-name {
    font-size: 1.15rem;
    font-weight: 600;
}

.pos-search-stock {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.8);
    margin-top: 0.25rem;
}

.pos-search-stock strong {
    font-size: 1rem;
    color: #c7d2fe;
}

.pending-client-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 0.9rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.pending-client-name {
    font-size: 1.1rem;
    color: #e0e7ff;
}

.pending-client-btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
}

.pending-debt-card {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(99, 102, 241, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    box-shadow: 0 15px 30px rgba(2, 6, 23, 0.45);
}

.pending-debt-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.8);
    margin-bottom: 0.35rem;
}

.pending-debt-value {
    font-size: 1.95rem;
    color: #facc15;
}

.inventory-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 50;
    box-shadow: 0 15px 35px rgba(2, 6, 23, 0.6);
}

.inventory-search-item {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    background: rgba(15, 23, 42, 0.5);
}

.inventory-search-item:hover,
.inventory-search-item.selected {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(79, 70, 229, 0.4));
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.45);
    transform: translateX(2px);
}

.inventory-search-item-main {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.inventory-search-name {
    font-size: 1.15rem;
}

.inventory-search-stock {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.75);
}

.inventory-search-stock strong {
    font-size: 1rem;
    color: #a5b4fc;
}

.inventory-search-badge {
    display: flex;
    align-items: center;
}

.purchase-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    z-index: 50;
    box-shadow: 0 15px 40px rgba(2, 6, 23, 0.6);
}

.purchase-search-item {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    background: rgba(15, 23, 42, 0.7);
}

.purchase-search-item:last-child {
    border-bottom: none;
}

.purchase-search-item:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: translateX(1px);
}

.purchase-search-item.selected {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.8), rgba(99, 102, 241, 0.7));
    box-shadow: 0 15px 25px rgba(15, 23, 42, 0.55);
}

.purchase-add-card {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(99, 102, 241, 0.6);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.purchase-add-card-title {
    margin-bottom: 1.25rem;
    color: #e0e7ff;
    font-size: 1.3rem;
    font-weight: 700;
}

.purchase-price-preview {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
}

/* Nueva compra: secciones y espacios */
.purchase-form-section {
    background: var(--light);
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
}

.purchase-form-section.purchase-form-add {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.purchase-section-title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #c7d2fe;
}

.purchase-cost-type-row {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.purchase-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.5rem;
}

.purchase-search-hint {
    color: var(--text);
    opacity: 0.8;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    display: block;
}

.purchase-selection-area {
    margin-top: 0.75rem;
    position: relative;
    z-index: 1001;
}

.purchase-items-list {
    margin: 1.25rem 0;
    min-height: 80px;
}

.purchase-form-row.purchase-form-footer-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.purchase-total-bar {
    text-align: right;
    font-size: 1.2rem;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.5rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.purchase-total-value {
    color: var(--primary);
    font-size: 1.35rem;
}

/* Tabla de productos de la compra */
.purchase-items-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 40px rgba(2, 6, 23, 0.5);
}

.purchase-items-table-wrap {
    overflow-x: auto;
    max-height: 320px;
    overflow-y: auto;
}

.purchase-items-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    color: var(--text-main);
}

.purchase-items-table thead {
    background: rgba(99, 102, 241, 0.25);
    color: #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 1;
}

.purchase-items-table thead th {
    padding: 0.7rem 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.purchase-items-table .purchase-col-quitar {
    width: 1%;
    min-width: 100px;
    text-align: center;
    vertical-align: middle;
}

.purchase-btn-remove {
    white-space: nowrap;
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0.4rem;
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fff;
    cursor: pointer;
}

.purchase-btn-remove:hover {
    background: #dc2626;
}

.purchase-items-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.purchase-items-table tbody td {
    padding: 0.6rem 0.5rem;
    vertical-align: middle;
}

.purchase-items-table .purchase-input-qty {
    width: 72px;
    padding: 0.35rem 0.4rem;
    font-size: 0.9rem;
}

.purchase-items-table .purchase-input-number {
    width: 90px;
    padding: 0.35rem 0.4rem;
    font-size: 0.9rem;
}

.purchase-items-table input[type='number'] {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    border-radius: 0.35rem;
}

.purchase-margin {
    font-weight: 600;
    font-size: 0.9rem;
}

.purchase-row-total {
    color: var(--primary);
    font-size: 0.95rem;
}

.purchase-items-table tfoot.purchase-items-totals {
    background: rgba(15, 23, 42, 0.95);
    position: sticky;
    bottom: 0;
}

.purchase-items-totals td {
    padding: 0.85rem 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.purchase-grand-total {
    font-size: 1.2rem;
    color: var(--primary);
}

.pos-alert {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(79, 70, 229, 0.45);
    background: rgba(79, 70, 229, 0.15);
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pos-cart-list {
    list-style: decimal;
    padding-left: 1.25rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pos-cart-list li {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pos-cart-line-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.pos-cart-line-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.6);
}

.pos-cart-list-input {
    width: 5.5rem;
    padding: 0.2rem 0.35rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-main);
}

.pos-cart-line-total {
    font-size: 0.95rem;
    font-weight: 700;
}

.pos-cart-item-remove {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 0.375rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.pos-cart-item-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.pos-cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pos-cart-item-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(236, 72, 153, 0.15);
    color: var(--secondary);
    border-radius: 0.25rem;
    font-weight: 500;
}

.pos-cart-item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    align-items: start;
}

.pos-cart-item-quantity,
.pos-cart-item-price,
.pos-cart-item-total {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pos-cart-item-quantity label,
.pos-cart-item-price label,
.pos-cart-item-total label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pos-cart-input {
    width: 100%;
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.6rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-main);
}

.pos-cart-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.9);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.pos-cart-item-total {
    align-items: flex-end;
}

.pos-cart-total-amount {
    color: var(--success);
    font-size: 1.25rem;
    font-weight: 700;
}

.pos-cart-item-remove {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 0.375rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.pos-cart-item-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Payment Methods Grid */
.pos-payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pos-payment-btn {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pos-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pos-payment-btn-cash {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.pos-payment-btn-card {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

.pos-payment-btn-qr {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.pos-payment-btn-other {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.pos-payment-btn-secondary {
    width: 100%;
    background: var(--light);
    color: var(--text);
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.pos-payment-btn-secondary:hover {
    background: var(--border);
}

.pos-payment-btn-warning {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    margin-top: 0.5rem;
}

.pos-payment-btn-danger {
    width: 100%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    margin-top: 0.75rem;
}

/* Customer Info Card */
.pos-customer-card {
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(79, 70, 229, 0.4));
    border: 2px solid rgba(165, 180, 252, 0.5);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.pos-customer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pos-customer-details {
    flex: 1;
}

.pos-customer-name {
    font-weight: 800;
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.pos-customer-contact {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.pos-customer-debt {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fee2e2;
    border-radius: 0.25rem;
}

.pos-customer-debt-text {
    color: var(--danger);
    font-weight: 600;
    font-size: 0.9rem;
}

.pos-customer-no-debt {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #dcfce7;
    border-radius: 0.25rem;
}

.pos-customer-no-debt-text {
    color: var(--success);
    font-size: 0.85rem;
}

.pos-customer-remove {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.pos-customer-remove:hover {
    background: #059669;
    transform: scale(1.1);
}

/* Search Box Enhancement */
.pos-search-box {
    position: relative;
    z-index: 10;
}

.pos-search-results {
    z-index: 50;
}

.pos-search-box input {
    font-size: 1.1rem;
    padding: 0.95rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    transition: all 0.25s ease;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-main);
}

.pos-search-box input:focus {
    border-color: rgba(99, 102, 241, 0.9);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* Cash view styling */
.cash-open-grid {
    gap: 2rem;
}

.cash-open-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.55);
}

.cash-open-card h2 {
    color: white;
}

.cash-mode-switch {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cash-mode-switch label {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
}

.cash-mode-switch label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cash-mode-switch input[type="radio"] {
    accent-color: #fcd34d;
}

.denomination-grid input {
    width: 100%;
    text-align: right;
    font-weight: 600;
}

.cash-total-display {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cash-total-display strong {
    display: block;
}

.cash-info-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 30px rgba(2, 6, 23, 0.45);
}

.cash-info-panel {
    background: rgba(99, 102, 241, 0.08);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px dashed rgba(99, 102, 241, 0.4);
}

.cash-history-panel {
    margin-top: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.75);
    box-shadow: 0 15px 35px rgba(2, 6, 23, 0.45);
}

.cash-history-panel .table-container {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 35px rgba(2, 6, 23, 0.35);
}

.cash-history-panel .table-container table {
    background: transparent;
}

.cash-history-panel .table-container th,
.cash-history-panel .table-container td {
    border-color: rgba(255, 255, 255, 0.08);
}

.cash-history-modal {
    background: rgba(2, 6, 23, 0.95);
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.65);
}

.cash-history-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cash-history-modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #e0e7ff;
}

.cash-history-modal-header p {
    margin: 0;
    color: rgba(148, 163, 184, 0.85);
}

.cash-history-modal-label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.8);
    gap: 0.35rem;
}

.cash-history-modal-label input {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.25);
    color: #f8fafc;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.cash-history-list {
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.25rem;
}

.cash-history-entry {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 15px 40px rgba(2, 6, 23, 0.5);
}

.cash-history-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cash-history-entry-header h4 {
    margin: 0;
    color: #c7d2fe;
}

.cash-history-entry-header p {
    margin: 0.1rem 0;
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.9rem;
}

.cash-history-entry-open {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.85));
}

.cash-history-entry-closed {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.15), rgba(15, 23, 42, 0.85));
}

.cash-history-entry-status {
    text-align: right;
}

.cash-history-entry-status .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}

.cash-history-entry-duration {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.75);
}

.cash-history-entry-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cash-history-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.cash-history-entry-grid span {
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.7);
}

.cash-history-entry-grid strong {
    font-size: 1.1rem;
    color: #f8fafc;
}

.cash-history-entry-payments {
    padding: 0.75rem;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.cash-history-entry-payments span {
    font-size: 0.85rem;
}

.cash-history-entry-payments-grid {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.85);
}

.cash-history-entry-payments-grid strong {
    color: #f8fafc;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.cash-history-filter {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
}

.cash-history-filter-selects {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.cash-history-filter-selects label {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cash-history-filter-selects select {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.25);
    color: #f8fafc;
    border-radius: 0.5rem;
    padding: 0.45rem;
}

.cash-history-filter-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cash-history-day-grid-title {
    color: rgba(226, 232, 240, 0.85);
    font-weight: 600;
    text-transform: capitalize;
}

.cash-history-day-grid-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.4rem;
}

.close-cash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 25px 40px rgba(2, 6, 23, 0.45);
    margin-bottom: 1rem;
}

.close-cash-daily h4,
.close-cash-reconcile h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
}

.close-cash-day-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.close-cash-day-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.close-cash-day-row strong {
    color: var(--primary);
}

.close-cash-day-total {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cash-day-total span {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.8);
}

.close-cash-reconcile {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.close-cash-reconcile-hint {
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.75);
    margin: -0.4rem 0 0.5rem 0;
}

.close-cash-method-row {
    display: grid;
    grid-template-columns: 1fr 100px minmax(90px, 1fr) 140px;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.65rem;
    padding: 0.55rem 0.75rem;
}

.close-cash-method-label {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.8);
}

.close-cash-method-expected {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-align: right;
}

.close-cash-method-input {
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.2);
    color: #f8fafc;
    padding: 0.35rem 0.5rem;
}

.close-cash-method-input-placeholder {
    min-width: 0;
}

.close-cash-total-row {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.close-cash-total-row .close-cash-method-expected {
    color: #c7d2fe;
}

.close-cash-method-diff {
    min-width: 120px;
    text-align: right;
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.75);
}

.close-cash-difference-summary {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #f8fafc;
    font-weight: 600;
}

.close-cash-difference-success {
    color: #4ade80;
    font-size: 0.9rem;
}

.close-cash-difference-alert strong {
    font-size: 1rem;
    color: #f87171;
}

.close-cash-difference-alert span {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.8);
}

.text-success {
    color: #4ade80;
}

.text-danger {
    color: #f87171;
}

.cash-history-day {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    gap: 0.15rem;
    transition: transform 0.2s ease, border 0.2s ease;
}

.cash-history-day small {
    font-size: 0.7rem;
    color: rgba(226, 232, 240, 0.7);
    text-transform: uppercase;
}

.cash-history-day:hover {
    border-color: rgba(99, 102, 241, 0.8);
    transform: translateY(-1px);
}

.cash-history-day.active {
    background: rgba(99, 102, 241, 0.85);
    border-color: rgba(59, 130, 246, 0.9);
}

.cash-history-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.2));
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 25px 55px rgba(2, 6, 23, 0.5);
    margin-bottom: 1.5rem;
}

.cash-history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cash-history-card-label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    gap: 0.35rem;
    color: rgba(226, 232, 240, 0.8);
}

.cash-history-card-label input {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    padding: 0.55rem;
    border-radius: 0.45rem;
}

.cash-history-table-wrapper {
    overflow-x: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cash-history-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.65);
    color: #f8fafc;
}

.cash-history-table-wrapper thead {
    background: rgba(99, 102, 241, 0.3);
    color: #f8fafc;
}

.cash-history-table-wrapper th,
.cash-history-table-wrapper td {
    padding: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

.cash-history-table-wrapper tbody tr:hover {
    background: rgba(99, 102, 241, 0.15);
}

.cash-daily-table-wrapper {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 0.5rem;
    background: rgba(15, 23, 42, 0.9);
}

.cash-daily-table {
    width: 100%;
    border-collapse: collapse;
    color: #f8fafc;
    font-size: 1rem;
}

.cash-daily-table th,
.cash-daily-table td {
    padding: 0.95rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.cash-daily-table thead {
    background: rgba(99, 102, 241, 0.25);
}

.cash-daily-table th {
    font-weight: 600;
    color: #e0e7ff;
}

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

.cash-daily-table tbody tr {
    background: rgba(15, 23, 42, 0.6);
}

.cash-daily-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.15);
}

.cash-daily-table strong {
    color: #fef9c3;
}

.cash-history-card .empty-state {
    background: rgba(15, 23, 42, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
}

/* Add mobile menu button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #main-content {
        padding: 1.5rem;
    }

    .pos-layout {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    #main-content::before {
        display: none;
    }

    #sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 250px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    }

    #sidebar.active {
        transform: translateX(0);
    }

    #main-content {
        margin-left: 0;
        width: 100%;
        padding: 4rem 1rem 1rem 1rem;
    }

    .modal {
        max-width: 95%;
        width: 95%;
        max-height: 95vh;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .pos-layout {
        grid-template-columns: 1fr;
    }

    /* Adjust view header for mobile */
    .view-header {
        margin-bottom: 1rem;
    }

    .view-header h1 {
        font-size: 1.5rem;
    }

    .view-header p {
        font-size: 0.875rem;
    }

    /* Make table container scrollable */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Adjust card padding for mobile */
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    /* Adjust button sizes for mobile */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    /* Adjust form controls for mobile */
    .form-control {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Adjust modal for mobile */
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    /* Adjust notification position for mobile */
    #notification-container {
        top: 0.75rem;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 1.5rem);
        max-width: 420px;
    }
}

@media (max-width: 480px) {
    #main-content {
        padding: 3.5rem 0.75rem 0.75rem 0.75rem;
    }

    .view-header h1 {
        font-size: 1.25rem;
    }

    .card {
        padding: 0.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Stack modal buttons on small screens */
    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

.loading {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- NUEVOS ESTILOS PUNTO DE VENTA (PAYMENT BUTTONS) --- */
.payment-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    border: none;
    font-family: inherit;
}

.payment-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    filter: brightness(1.2);
}

.payment-btn:active {
    transform: translateY(-1px);
    filter: brightness(0.9);
}

.p-icon {
    font-size: 2.2rem;
    line-height: 1;
    filter: drop-shadow(0 2.5px 4.5px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s ease;
}

.payment-btn:hover .p-icon {
    transform: scale(1.15);
}

.p-label {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    opacity: 0.95;
}

.payment-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

/* Botones de pago en la barra superior del POS */
.payment-btn-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.6rem 1rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 90px;
}

.payment-btn-top:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.payment-btn-top:active {
    transform: translateY(0);
}


/* --- POS LAYOUT RESPONSIVE & MOBILE OPTIMIZATIONS --- */
.pos-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 1.25rem;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.pos-left-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.pos-right-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.pos-cart-container {
    flex: 1;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pos-cart-header {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pos-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Media Queries para Móviles */
@media (max-width: 1024px) {
    .pos-layout {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .pos-right-col {
        overflow-y: visible;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    #sidebar.active {
        transform: translateX(0);
    }

    #main-content {
        margin-left: 0;
        width: 100%;
        padding: 4rem 1rem 1rem;
    }

    .mobile-menu-btn {
        display: block !important;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--primary);
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        font-size: 1.2rem;
    }

    /* Estilos para el banner de actualización en móvil */
    #update-banner {
        font-size: 0.8rem;
        padding: 15px 10px;
    }
}

/* Optimización extra para pantallas muy pequeñas */
@media (max-width: 480px) {
    #cartTotal {
        font-size: 2rem !important;
    }

    .payment-btn-top {
        min-width: 70px;
        padding: 0.4rem;
    }

    .payment-btn-top span {
        font-size: 1.2rem !important;
    }
}