.dashboard-container{min-height:100vh;background:#f5f6fa}.dashboard-header{background:white;border-bottom:1px solid #e1e5e9;padding:0 20px;position:-webkit-sticky;position:sticky;top:0;z-index:100;box-shadow:0 2px 8px rgba(0,0,0,.06)}.header-content{max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;padding:14px 0;gap:12px}.header-info h1{margin:0 0 2px;color:#2f3542;font-size:20px;font-weight:700}.header-info p{margin:0;color:#57606f;font-size:13px}.logout-button-f{background:#ff4757;color:white;border:none;padding:10px 14px;border-radius:8px;cursor:pointer;display:flex;align-items:center;gap:6px;font-weight:600;font-size:13px;transition:background .2s ease;white-space:nowrap}.logout-button-f:hover{background:#ff3838}.qr-button{background:#3742fa;color:white;border:none;padding:10px 14px;border-radius:8px;cursor:pointer;display:flex;align-items:center;gap:6px;font-weight:600;font-size:13px;white-space:nowrap}.dashboard-main{max-width:1200px;margin:0 auto;padding:24px 16px}.stats-section{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:14px;gap:14px;margin-bottom:28px}.stat-card{border-radius:12px;padding:20px;gap:14px;box-shadow:0 2px 8px rgba(0,0,0,.07);border:1px solid #e1e5e9}.stat-icon{width:44px;height:44px;color:#3742fa;background:#f0f2ff;border-radius:10px;padding:10px;box-sizing:border-box;flex-shrink:0}.stat-icon.completed{color:#2ed573;background:#f0fff4}.stat-content h3{margin:0 0 4px;color:#57606f;font-size:13px;font-weight:500}.stat-number{margin:0;color:#2f3542;font-size:26px;font-weight:800}.orders-section h2{color:#2f3542;margin:0 0 16px;font-size:18px;font-weight:700}.no-orders{text-align:center;padding:48px 20px;background:white;border-radius:12px;border:2px dashed #ddd}.no-orders svg{color:#a4b0be;margin-bottom:12px}.no-orders p{color:#57606f;font-size:16px;margin:0}.orders-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));grid-gap:16px;gap:16px}.order-card{background:white;border-radius:14px;padding:20px;box-shadow:0 2px 10px rgba(0,0,0,.08);border:1px solid #e1e5e9;transition:transform .2s ease,box-shadow .2s ease}.order-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,0,0,.12)}.order-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid #f1f2f6;gap:8px}.order-header h3{margin:0;color:#2f3542;font-size:16px;font-weight:700}.status-badge{display:flex;align-items:center;gap:4px;padding:5px 10px;border-radius:20px;font-size:11px;font-weight:600;text-transform:uppercase;white-space:nowrap;flex-shrink:0}.status-badge.pending{background:#fff0ec;color:#e17055}.status-badge.completed{background:#d4edda;color:#2ed573}.order-info{margin-bottom:14px}.order-info p{margin:6px 0;color:#57606f;font-size:13px}.order-items{margin-bottom:16px}.order-items h4{margin:0 0 10px;color:#2f3542;font-size:14px;font-weight:600}.order-items ul{margin:0;padding:0;list-style:none}.order-items li{padding:7px 0;color:#57606f;font-size:13px;border-bottom:1px solid #f1f2f6}.order-items li:last-child{border-bottom:none}.complete-button{width:100%;background:linear-gradient(135deg,#2ed573,#26de81);color:white;border:none;padding:13px 16px;border-radius:10px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:14px;transition:all .2s ease;box-shadow:0 2px 8px rgba(46,213,115,.3)}.complete-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 14px rgba(46,213,115,.4)}.complete-button:disabled{opacity:.6;cursor:not-allowed}.completed-order-item{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-bottom:1px solid #f1f2f6}.completed-order-item:last-child{border-bottom:none}.qr-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.85);z-index:1000;display:flex;align-items:flex-end;justify-content:center}@media (min-width:600px){.qr-modal-overlay{align-items:center}}.qr-modal{background:white;width:100%;max-width:480px;border-radius:20px 20px 0 0;overflow:hidden;max-height:95vh;display:flex;flex-direction:column;animation:slideUp .3s ease}@media (min-width:600px){.qr-modal{border-radius:20px;max-height:90vh}}.qr-modal-header{justify-content:space-between;padding:16px 20px;border-bottom:1px solid #f0f0f0;flex-shrink:0}.qr-close-btn,.qr-modal-header{display:flex;align-items:center}.qr-close-btn{background:#f1f2f6;border:none;border-radius:50%;width:36px;height:36px;justify-content:center;cursor:pointer;color:#2f3542;transition:background .2s}.qr-close-btn:hover{background:#e1e5e9}.qr-viewfinder-container{position:relative;width:100%;aspect-ratio:4/3;background:#000;overflow:hidden;flex-shrink:0}.qr-video{width:100%;height:100%;object-fit:cover;display:block}.qr-scan-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(0,0,0,.25)}.qr-scan-frame{position:relative;width:210px;height:210px}.qr-corner{position:absolute;width:30px;height:30px;border:0 solid #fff}.qr-corner-tl{top:0;left:0;border-top-width:4px;border-left-width:4px;border-top-left-radius:6px}.qr-corner-tr{top:0;right:0;border-top-width:4px;border-right-width:4px;border-top-right-radius:6px}.qr-corner-bl{bottom:0;left:0;border-bottom-width:4px;border-left-width:4px;border-bottom-left-radius:6px}.qr-corner-br{bottom:0;right:0;border-bottom-width:4px;border-right-width:4px;border-bottom-right-radius:6px}.qr-scan-line{position:absolute;left:0;right:0;height:3px;background:linear-gradient(90deg,transparent,#3742fa 40%,#3742fa 60%,transparent);border-radius:2px;animation:scanLine 1.8s ease-in-out infinite;box-shadow:0 0 8px 2px rgba(55,66,250,.5)}@keyframes scanLine{0%{top:4px}50%{top:calc(100% - 4px)}to{top:4px}}.qr-modal-body{padding:16px 20px 28px;overflow-y:auto;flex:1 1}.qr-spinner{width:36px;height:36px;border:4px solid #f0f0f0;border-top-color:#3742fa;border-radius:50%;animation:spin .8s linear infinite;margin:0 auto}.qr-deliver-btn{width:100%;padding:14px;background:linear-gradient(135deg,#28a745,#20c997);color:white;border:none;border-radius:10px;font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 2px 10px rgba(40,167,69,.3);transition:all .2s ease}.qr-deliver-btn:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(40,167,69,.4)}@media (max-width:600px){.header-content{flex-wrap:nowrap;padding:10px 0;gap:8px}.header-info{flex:1 1;min-width:0}.header-info h1{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-info p{font-size:11px}.btn-text{display:none}.logout-button-f,.qr-button{padding:9px 11px;font-size:12px}.dashboard-main{padding:14px 10px}.stats-section{grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:18px}.stat-card{padding:14px 12px;gap:10px}.stat-icon{width:36px;height:36px;padding:8px}.stat-number{font-size:20px}.stat-content h3{font-size:11px}.orders-grid{grid-template-columns:1fr;gap:10px}.order-card{padding:14px}.order-header h3{font-size:14px}.qr-viewfinder-container{aspect-ratio:1/1}}@media (max-width:380px){.header-info h1{font-size:14px}.stat-number{font-size:18px}.stat-card{padding:10px}}.order-card-status-pending{border-left:4px solid #f59e0b}.order-card-status-confirmed{border-left:4px solid #3b82f6}.order-card-status-preparing{border-left:4px solid #8b5cf6}.order-card-status-ready{border-left:4px solid #10b981}.order-card-status-completed{border-left:4px solid #22c55e}.action-btn{width:100%;border:none;padding:13px 16px;border-radius:10px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:14px;letter-spacing:.2px;transition:filter .15s ease,transform .1s ease;margin-top:14px}.action-btn:disabled{opacity:.6;cursor:not-allowed}.action-btn:not(:disabled):active{transform:scale(.97)}.action-btn:not(:disabled):hover{filter:brightness(1.07)}.action-btn-confirm{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:white;box-shadow:0 3px 10px rgba(59,130,246,.35)}.action-btn-preparing{background:linear-gradient(135deg,#8b5cf6,#6d28d9);color:white;box-shadow:0 3px 10px rgba(139,92,246,.35)}.action-btn-ready{background:linear-gradient(135deg,#10b981,#047857);color:white;box-shadow:0 3px 10px rgba(16,185,129,.35)}.action-btn-paid{background:linear-gradient(135deg,#22c55e,#15803d);color:white;box-shadow:0 3px 10px rgba(34,197,94,.35)}:root{--primary:#4f46e5;--primary-hover:#4338ca;--secondary:#64748b;--accent:#8b5cf6;--success:#10b981;--warning:#f59e0b;--danger:#ef4444;--bg-main:#f3f4f6;--bg-card:#ffffff;--bg-sidebar:#111827;--text-main:#111827;--text-muted:#6b7280;--text-light:#f9fafb;--radius-sm:0.375rem;--radius-md:0.5rem;--radius-lg:1rem;--shadow-sm:0 1px 2px 0 rgba(0,0,0,0.05);--shadow-md:0 4px 6px -1px rgba(0,0,0,0.1);--shadow-lg:0 10px 15px -3px rgba(0,0,0,0.1)}body{background-color:var(--bg-main);font-family:Inter,system-ui,-apple-system,sans-serif;color:var(--text-main);margin:0;padding:0;overflow-x:hidden!important;max-width:100vw!important;width:100%!important}*{box-sizing:border-box}html{overflow-x:hidden!important;max-width:100vw!important;width:100%!important}.admin-dashboard{display:flex;min-height:100vh;position:relative;width:100%;max-width:100vw;overflow-x:hidden;background:var(--bg-main)}.mobile-menu-toggle{position:fixed;top:1rem;left:1rem;z-index:1001;background:white;border:none;border-radius:12px;padding:.75rem;box-shadow:0 4px 12px rgba(0,0,0,.1);cursor:pointer;display:none;color:#1f2937;transition:all .3s ease}.mobile-menu-toggle:hover{transform:scale(1.05);box-shadow:0 6px 16px rgba(0,0,0,.15)}.mobile-menu-toggle:active{transform:scale(.95)}.sidebar-close-btn{display:none}.mobile-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:999;opacity:0;pointer-events:none;transition:opacity .3s ease;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.mobile-overlay.show{opacity:1;pointer-events:all}.admin-sidebar{width:280px;min-width:280px;background:white;border-right:1px solid #e5e7eb;display:flex;flex-direction:column;transition:transform .3s ease;position:relative;z-index:100;height:100vh;position:-webkit-sticky;position:sticky;top:0}.sidebar-header{padding:2rem 1.5rem;border-bottom:1px solid #e5e7eb;position:relative}.sidebar-header .sidebar-close-btn{display:none;position:absolute;top:1rem;right:1rem;background:#f3f4f6;border:none;border-radius:8px;padding:.5rem;cursor:pointer;color:#374151;transition:all .2s ease}.sidebar-header .sidebar-close-btn:hover{background:#e5e7eb;transform:scale(1.05)}.sidebar-header .sidebar-close-btn:active{transform:scale(.95)}.sidebar-nav{flex:1 1;padding:1rem;overflow-y:auto}.nav-item{display:flex;align-items:center;gap:.75rem;padding:.875rem 1rem;border-radius:10px;border:none;background:transparent;color:#6b7280;font-size:.9375rem;font-weight:500;cursor:pointer;transition:all .2s ease;width:100%;text-align:left;margin-bottom:.25rem}.nav-item:hover{background:#f3f4f6;color:#1f2937;transform:translateX(4px)}.nav-item.active{box-shadow:0 4px 12px rgba(102,126,234,.4)}.nav-item.active,.nav-item.start-selling-cta{background:linear-gradient(135deg,#667eea,#764ba2);color:white}.nav-item.start-selling-cta{margin-top:1rem;border:none;animation:pulse 2s infinite}.sidebar-footer{padding:1rem;border-top:1px solid #e5e7eb}.tenant-selector{margin-bottom:1rem}.admin-main{flex:1 1;padding:2rem;overflow-y:auto;min-width:0;width:100%;max-width:100%}.top-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem;gap:1rem;flex-wrap:wrap}.page-title h1{font-size:2rem;font-weight:700;color:#1f2937;margin:0 0 .5rem}.page-title p{color:#6b7280;font-size:.875rem;margin:0}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));grid-gap:1.5rem;gap:1.5rem;margin-bottom:2rem}.stat-card{background:white;border-radius:16px;padding:1.5rem;display:flex;align-items:center;gap:1rem;box-shadow:0 1px 3px rgba(0,0,0,.1);transition:all .3s ease}.stat-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,.12)}.stat-card .icon-wrapper{width:56px;height:56px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.stat-card.revenue .icon-wrapper{background:linear-gradient(135deg,#10b981,#059669);color:white}.stat-card.orders .icon-wrapper{background:linear-gradient(135deg,#3b82f6,#2563eb);color:white}.stat-card.avg .icon-wrapper{background:linear-gradient(135deg,#f59e0b,#d97706);color:white}.stat-info{flex:1 1;min-width:0}.stat-info h3{font-size:.875rem;color:#6b7280;margin:0 0 .25rem;font-weight:500}.stat-info .value{font-size:1.75rem;font-weight:700;color:#1f2937;margin:0}.content-card{background:white;border-radius:16px;box-shadow:0 1px 3px rgba(0,0,0,.1);overflow:hidden}.card-header{padding:1.5rem;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}.card-header h3{font-size:1.25rem;font-weight:600;color:#1f2937;margin:0}.modal-subtitle{font-size:.875rem;color:#6b7280;margin:.25rem 0 0}.products-header{display:flex;gap:1rem;margin-bottom:1.5rem;align-items:center}.products-search{flex:1 1;position:relative;max-width:400px}.products-search__icon{position:absolute;left:1rem;top:50%;transform:translateY(-50%);color:#9ca3af;pointer-events:none}.products-search__input{width:100%;padding:.875rem 1rem .875rem 3rem;border:1px solid #e5e7eb;border-radius:12px;font-size:.9375rem;background:white;transition:all .2s ease}.products-search__input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.1)}.products-header__add-btn{width:48px;height:48px;border-radius:12px;border:none;background:linear-gradient(135deg,#667eea,#764ba2);color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease;flex-shrink:0;box-shadow:0 4px 12px rgba(102,126,234,.4)}.products-header__add-btn:hover{transform:scale(1.05);box-shadow:0 6px 16px rgba(102,126,234,.5)}.products-header__add-btn:active{transform:scale(.95)}.category-bar{background:#ffffff;border-radius:14px;padding:.875rem 1rem;margin-bottom:1.25rem;border:1px solid #e8ecf1;box-shadow:0 1px 3px rgba(0,0,0,.04)}.category-bar__top{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.75rem}.category-bar__title-wrap{display:flex;align-items:center;gap:.5rem}.category-bar__label{font-weight:700;font-size:.78rem;color:#475569;text-transform:uppercase;letter-spacing:.06em}.category-bar__count{background:#eef2ff;color:#4338ca;border:1px solid #e0e7ff;border-radius:999px;font-size:.75rem;font-weight:700;padding:.1rem .5rem}.category-bar__add-btn{background:#ffffff;color:#4f46e5;border:1px solid #c7d2fe;border-radius:8px;padding:.45rem .85rem;font-size:.78rem;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:.35rem}.category-bar__add-btn:hover{background:#eef2ff}.category-bar__chips{display:flex;flex-wrap:wrap;gap:.45rem}.category-bar__chip{background:#eef2ff;color:#4338ca;padding:.28rem .55rem;border-radius:999px;font-size:.75rem;font-weight:600;display:inline-flex;align-items:center;gap:.35rem;border:1px solid #e0e7ff}.category-bar__chip-name{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-bar__chip-edit{background:transparent;border:none;color:#6366f1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}.category-bar__empty{color:#94a3b8;font-size:.82rem;font-style:italic}.categories-header{align-items:flex-start}.categories-header__subtitle{font-size:.875rem;color:#6b7280;margin-top:.25rem;margin-bottom:0}.categories-header__add-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:white;border:none;border-radius:10px;padding:.625rem 1rem;cursor:pointer;display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:700;box-shadow:0 4px 12px rgba(102,126,234,.25)}.categories-header__add-btn:hover{transform:translateY(-1px)}.categories-content{padding:1.25rem}.categories-loading{text-align:center;padding:2.5rem;color:#64748b}.categories-empty{text-align:center;padding:3rem 1.25rem;background:linear-gradient(180deg,#f8fafc,#f9fafb);border-radius:14px;border:2px dashed #e5e7eb}.categories-empty__icon{color:#9ca3af;margin-bottom:1rem}.categories-empty__title{margin:0 0 .5rem;color:#374151}.categories-empty__description{color:#6b7280;margin:0 0 1.25rem}.categories-empty__action{background:#3b82f6;color:white;padding:.75rem 1.2rem;border-radius:10px;border:none;cursor:pointer;display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:700}.categories-grid{display:grid;grid-gap:.75rem;gap:.75rem}.category-item{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.95rem 1rem;background:#ffffff;border-radius:12px;border:1px solid #e5e7eb;transition:all .2s ease}.category-item:hover{border-color:#c7d2fe;box-shadow:0 4px 12px rgba(79,70,229,.08)}.category-item__main{display:flex;align-items:center;gap:.75rem;min-width:0}.category-item__icon{width:40px;height:40px;border-radius:10px;background:#eef2ff;border:1px solid #e0e7ff;display:inline-flex;align-items:center;justify-content:center;font-size:1.25rem;flex-shrink:0}.category-item__text{min-width:0}.category-item__name{margin:0;font-size:1rem;font-weight:700;color:#111827}.category-item__description{margin:.25rem 0 0;font-size:.82rem;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:440px}.category-item__actions{display:flex;gap:.5rem;align-items:center;flex-shrink:0}.category-item__order{font-size:.75rem;color:#64748b;background:#f1f5f9;padding:.22rem .5rem;border-radius:999px;border:1px solid #e2e8f0}.category-item__btn{background:#f8fafc;border:1px solid #d1d5db;border-radius:8px;padding:.45rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:#334155}.category-item__btn:hover{background:#eef2ff;border-color:#c7d2fe;color:#4338ca}.category-item__btn--danger{background:#fff5f5;border-color:#fecaca;color:#dc2626}.category-item__btn--danger:hover{background:#fef2f2;border-color:#fca5a5;color:#b91c1c}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));grid-gap:1.5rem;gap:1.5rem;padding:0}.employees-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem;gap:1rem;flex-wrap:wrap}.employees-header__left h1{font-size:1.875rem;font-weight:700;color:#1f2937;margin:0 0 .25rem}.employees-header__subtitle{color:#6b7280;font-size:.875rem;margin:0}.employees-header__actions{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.employees-header__upgrade{background:linear-gradient(135deg,#f59e0b,#d97706);color:white;border:none;padding:.625rem 1rem;border-radius:8px;font-weight:600;font-size:.875rem;display:flex;align-items:center;gap:.5rem;cursor:pointer;transition:all .2s ease;white-space:nowrap}.employees-header__upgrade:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(245,158,11,.4)}.employees-usage{background:white;border-radius:12px;padding:1.25rem;margin-bottom:1.5rem;border:1px solid #e5e7eb}.employees-usage__info{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;flex-wrap:wrap;gap:.5rem}.employees-usage__label{font-size:.875rem;color:#6b7280;font-weight:500}.employees-usage__count{font-size:.875rem;color:#1f2937}.employees-usage__bar{height:8px;background:#e5e7eb;border-radius:4px;overflow:hidden;margin-bottom:.5rem}.employees-usage__fill{height:100%;background:linear-gradient(90deg,#3b82f6,#2563eb);transition:width .3s ease;border-radius:4px}.employees-usage__fill--warning{background:linear-gradient(90deg,#f59e0b,#d97706)}.employees-usage__fill--full{background:linear-gradient(90deg,#ef4444,#dc2626)}.employees-usage__warning{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:#dc2626;font-weight:500}.employees-list{display:flex;flex-direction:column;gap:1rem}.employees-empty{text-align:center;padding:4rem 2rem;color:#6b7280}.employees-empty__icon{width:64px;height:64px;margin:0 auto 1rem;background:#f3f4f6;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#9ca3af}.employees-spinner{width:40px;height:40px;border:3px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;margin:0 auto 1rem;animation:spin 1s linear infinite}.employee-card{background:white;border-radius:12px;padding:1.25rem;display:flex;justify-content:space-between;align-items:center;border:1px solid #e5e7eb;transition:all .2s ease;gap:1rem}.employee-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.08);transform:translateY(-2px)}.employee-card--inactive{opacity:.6}.employee-card__left{display:flex;align-items:center;gap:1rem;flex:1 1;min-width:0}.employee-card__avatar{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);color:white;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:1.125rem;flex-shrink:0}.employee-card__info{flex:1 1;min-width:0}.employee-card__name{font-weight:600;color:#1f2937;font-size:.9375rem;margin-bottom:.125rem}.employee-card__name,.employee-card__username{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.employee-card__username{font-size:.8125rem;color:#6b7280}.employee-card__role{padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;background:#e0e7ff;color:#4338ca;white-space:nowrap;flex-shrink:0}.employee-card__role--admin{background:#fef3c7;color:#92400e}.employee-card__role--manager{background:#dbeafe;color:#1e40af}.employee-card__actions{display:flex;gap:.5rem;flex-shrink:0}.employee-card__btn{width:36px;height:36px;border-radius:8px;border:1px solid #e5e7eb;background:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;color:#6b7280}.employee-card__btn:hover{background:#f3f4f6;border-color:#d1d5db}.employee-card__btn--edit:hover{background:#dbeafe;border-color:#3b82f6;color:#1e40af}.employee-card__btn--delete:hover{background:#fee2e2;border-color:#ef4444;color:#dc2626}.animate-fade-in{animation:fadeIn .3s ease}.product-image{height:160px;background-size:cover;background-position:50%;position:relative}.product-details{padding:1rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.5rem 1rem;border-radius:var(--radius-md);font-weight:600;font-size:.875rem;cursor:pointer;transition:all .2s ease;border:none;white-space:nowrap;text-decoration:none;line-height:1.5}.btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.btn-primary{background:var(--primary);color:white;box-shadow:0 2px 4px rgba(79,70,229,.2)}.btn-primary:hover:not(:disabled){background:var(--primary-hover);transform:translateY(-1px);box-shadow:0 4px 8px rgba(79,70,229,.3)}.btn-primary:active:not(:disabled){transform:translateY(0)}.btn-secondary{background:white;border:1px solid #d1d5db;color:var(--text-main)}.btn-secondary:hover:not(:disabled){background:#f9fafb;border-color:#9ca3af}.btn-danger{background:var(--danger);color:white}.btn-danger:hover:not(:disabled){background:#dc2626}.btn-success{background:var(--success);color:white}.btn-sm{padding:.375rem .75rem;font-size:.8125rem}.btn-icon{padding:.5rem;border-radius:var(--radius-md);min-width:36px;min-height:36px}.modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,.5);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center;z-index:10000;animation:fadeIn .2s ease;padding:2rem 1rem;overflow-y:auto}.modal-content{background:#ffffff;border-radius:20px;padding:0;width:100%;max-width:520px;max-height:calc(100vh - 4rem);overflow:hidden;box-shadow:0 25px 60px -12px rgba(0,0,0,.25),0 0 0 1px rgba(0,0,0,.03);position:relative;animation:modalSlideUp .35s cubic-bezier(.16,1,.3,1);display:flex;flex-direction:column;margin:auto}@keyframes modalSlideUp{0%{opacity:0;transform:translateY(24px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-header{padding:1.5rem 1.75rem 1.25rem;border-bottom:1px solid #f1f5f9;display:flex;align-items:flex-start;justify-content:space-between;flex-shrink:0;gap:1rem}.modal-header h2{font-size:1.25rem;font-weight:700;color:#0f172a;margin:0;letter-spacing:-.02em;line-height:1.3}.modal-header .modal-subtitle{font-size:.8rem;color:#94a3b8;margin-top:4px;font-weight:400;line-height:1.4}.modal-body{padding:1.5rem 1.75rem;overflow-y:auto;overflow-x:hidden;flex:1 1;min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-behavior:smooth}.modal-body::-webkit-scrollbar{width:6px}.modal-body::-webkit-scrollbar-track{background:transparent}.modal-body::-webkit-scrollbar-thumb{background:#e2e8f0;border-radius:3px}.modal-body::-webkit-scrollbar-thumb:hover{background:#cbd5e1}.modal-footer{padding:1.25rem 1.75rem 1.5rem;border-top:1px solid #f1f5f9;flex-shrink:0;background:#fafbfc}.modal-close{width:36px;height:36px;min-width:36px;display:flex;align-items:center;justify-content:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;cursor:pointer;color:#64748b;transition:all .2s ease;flex-shrink:0;position:static}.modal-close:hover{background:#fee2e2;color:#dc2626;border-color:#fecaca;transform:rotate(90deg)}.modal-close:active{transform:rotate(90deg) scale(.92)}.form-group{margin-bottom:1.15rem;max-width:100%}.form-label{display:block;font-size:.8rem;font-weight:600;margin-bottom:.4rem;color:#374151;letter-spacing:.01em;text-transform:uppercase}.form-input{width:100%;max-width:100%;padding:.65rem .85rem;border:1.5px solid #e2e8f0;border-radius:12px;font-size:.875rem;color:#1e293b;background:#f8fafc;transition:all .2s ease;box-sizing:border-box}.form-input::placeholder{color:#94a3b8}.form-input:hover{border-color:#cbd5e1;background:#ffffff}.form-input:focus{outline:none;border-color:var(--primary);background:#ffffff;box-shadow:0 0 0 3.5px rgba(99,102,241,.12)}textarea.form-input{resize:vertical;min-height:80px;line-height:1.5}select.form-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .85rem center;padding-right:2.25rem}.form-row{display:grid;grid-template-columns:1fr 1fr;grid-gap:.85rem;gap:.85rem}.form-input-with-action{display:flex;gap:.5rem;align-items:stretch}.form-input-with-action .form-input{flex:1 1}.form-input-with-action .btn-icon-action{width:42px;min-width:42px;height:auto;display:flex;align-items:center;justify-content:center;background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:12px;cursor:pointer;color:#64748b;transition:all .15s ease}.form-input-with-action .btn-icon-action:hover{background:#eef2ff;border-color:#c7d2fe;color:#6366f1}.form-translations{margin-top:.5rem;display:grid;grid-gap:.5rem;gap:.5rem;padding:.85rem;background:#f8fafc;border-radius:12px;border:1.5px solid #e2e8f0;animation:fadeIn .2s ease}.image-preview{margin-bottom:.75rem;position:relative;border-radius:14px;overflow:hidden;border:1.5px solid #e2e8f0;background:#f8fafc}.image-preview img{width:100%;max-height:200px;object-fit:cover;display:block}.image-preview .image-remove{position:absolute;top:8px;right:8px;width:28px;height:28px;background:rgba(15,23,42,.7);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:white;border:none;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:600;transition:all .15s ease}.image-preview .image-remove:hover{background:rgba(239,68,68,.9)}.image-upload-row{display:flex;gap:.5rem}.image-upload-btn{flex:1 1;display:flex;align-items:center;justify-content:center;gap:.4rem;padding:.7rem 1rem;background:#f8fafc;border:1.5px dashed #d1d5db;border-radius:12px;cursor:pointer;font-size:.8rem;font-weight:500;color:#64748b;transition:all .15s ease}.image-upload-btn:hover{background:#f1f5f9;border-color:#94a3b8;color:#475569;border-style:dashed}.image-upload-btn input[type=file]{display:none}.image-upload-btn--camera{flex:0 0 auto;background:#eef2ff;border:1.5px solid #c7d2fe;color:#6366f1;white-space:nowrap}.image-upload-btn--camera:hover{background:#e0e7ff;border-color:#a5b4fc;color:#4f46e5}.image-upload-btn--disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.multi-image-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));grid-gap:.75rem;gap:.75rem;margin-bottom:.75rem}.multi-image-item{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;border:2px solid #e2e8f0;background:#f8fafc;transition:all .2s ease}.multi-image-item:hover{border-color:#c7d2fe;transform:translateY(-2px);box-shadow:0 4px 12px rgba(99,102,241,.15)}.multi-image-item--cover{border-color:#6366f1;box-shadow:0 0 0 2px rgba(99,102,241,.2)}.multi-image-item img{width:100%;height:100%;object-fit:cover}.multi-image-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(180deg,rgba(0,0,0,.4),transparent 50%,rgba(0,0,0,.4));display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;padding:6px;opacity:0;transition:opacity .2s ease}.multi-image-item:hover .multi-image-overlay{opacity:1}.multi-image-remove,.multi-image-star{width:28px;height:28px;border:none;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s ease}.multi-image-star{background:rgba(255,255,255,.9);color:#94a3b8}.multi-image-star:hover{background:#fff;color:#f59e0b}.multi-image-star--active{background:#fef3c7;color:#f59e0b}.multi-image-remove{background:rgba(239,68,68,.9);color:white}.multi-image-remove:hover{background:#dc2626}.multi-image-badge{position:absolute;bottom:6px;left:6px;background:linear-gradient(135deg,#6366f1,#4f46e5);color:white;font-size:.65rem;font-weight:600;padding:2px 6px;border-radius:4px;text-transform:uppercase;letter-spacing:.03em}.upload-progress{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:#eef2ff;border-radius:10px;color:#6366f1;font-size:.85rem;font-weight:500;margin-bottom:.75rem}.upload-spinner{animation:spin 1s linear infinite}.form-hint{margin:.5rem 0 0;font-size:.75rem;color:#94a3b8}.modal-submit-btn{width:100%;padding:.85rem 1.5rem;font-size:.9rem;font-weight:600;border:none;border-radius:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:.5rem;transition:all .2s ease;background:linear-gradient(135deg,#6366f1,#4f46e5);color:white;box-shadow:0 2px 8px rgba(99,102,241,.3);letter-spacing:.01em}.modal-submit-btn:hover:not(:disabled){background:linear-gradient(135deg,#4f46e5,#4338ca);box-shadow:0 4px 14px rgba(99,102,241,.4);transform:translateY(-1px)}.modal-submit-btn:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 6px rgba(99,102,241,.3)}.modal-submit-btn:disabled{opacity:.6;cursor:not-allowed}.btn-spinner{width:18px;height:18px;border:2.5px solid rgba(255,255,255,.3);border-top-color:#ffffff;border-radius:50%;display:inline-block;animation:spin .65s linear infinite}.modal-submit-btn--danger{background:linear-gradient(135deg,#ef4444,#dc2626);box-shadow:0 2px 8px rgba(239,68,68,.3)}.modal-submit-btn--danger:hover:not(:disabled){background:linear-gradient(135deg,#dc2626,#b91c1c);box-shadow:0 4px 14px rgba(239,68,68,.4)}.modal-submit-btn--secondary{background:#f1f5f9;color:#475569;box-shadow:none;border:1.5px solid #e2e8f0}.modal-submit-btn--secondary:hover:not(:disabled){background:#e2e8f0;box-shadow:none;transform:none}.form-checkbox-row{display:flex;align-items:center;gap:.6rem;padding:.6rem .85rem;background:#f8fafc;border-radius:12px;border:1.5px solid #e2e8f0;margin-bottom:1.15rem}.password-input-wrapper{position:relative}.password-input-wrapper .form-input{padding-right:2.75rem}.password-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#94a3b8;padding:4px;display:flex;align-items:center;justify-content:center;transition:color .15s ease}.password-toggle:hover{color:#475569}.order-detail-grid{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:1rem;gap:1rem;background:#f8fafc;padding:1rem;border-radius:12px;border:1px solid #f1f5f9;margin-bottom:1.25rem}.order-detail-item{display:flex;flex-direction:column;gap:4px}.order-detail-label{font-size:.75rem;color:#94a3b8;font-weight:500;text-transform:uppercase;letter-spacing:.03em}.order-detail-value{font-size:.9rem;font-weight:600;color:#1e293b}.order-detail-value--primary{color:#6366f1}.order-items-title{font-size:.875rem;font-weight:600;color:#374151;margin:0 0 .5rem}.order-items-list{border:1px solid #f1f5f9;border-radius:12px;overflow:hidden}.order-item-row{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;border-bottom:1px solid #f8fafc;font-size:.875rem}.order-item-row:last-child{border-bottom:none}.order-item-price{font-weight:600;color:#1e293b}.product-chips{display:flex;flex-wrap:wrap;gap:.5rem}.product-chip{padding:.4rem .75rem;border-radius:20px;border:1.5px solid #e2e8f0;background:#f8fafc;color:#475569;font-size:.8rem;font-weight:500;cursor:pointer;transition:all .15s ease}.product-chip:hover{border-color:#c7d2fe;background:#eef2ff;color:#4f46e5}.product-chip--selected{background:linear-gradient(135deg,#6366f1,#4f46e5);color:white;border-color:transparent;box-shadow:0 2px 6px rgba(99,102,241,.3)}.product-chip--selected:hover{background:linear-gradient(135deg,#4f46e5,#4338ca);color:white}.form-section-divider{margin-top:.5rem;padding-top:1rem;border-top:1px solid #f1f5f9}.form-section-toggle{background:none;border:none;cursor:pointer;display:flex;align-items:center;gap:8px;font-size:.875rem;font-weight:600;color:#374151;padding:.5rem 0;width:100%;text-align:left;transition:color .15s ease}.form-section-toggle:hover{color:#6366f1}.form-section-content{background:#f8fafc;padding:1rem;border-radius:12px;border:1px solid #f1f5f9;margin-top:.75rem;animation:fadeIn .2s ease}.form-section-description{font-size:.8rem;color:#94a3b8;margin:0 0 1rem;line-height:1.5}.form-checkbox-row input[type=checkbox]{width:18px;height:18px;border-radius:5px;accent-color:#6366f1;cursor:pointer}.emoji-grid{flex-wrap:wrap;gap:8px;padding:12px;background:#f8fafc;border-radius:8px}.emoji-btn,.emoji-grid{display:flex;border:1px solid #e2e8f0}.emoji-btn{width:40px;height:40px;font-size:20px;background:white;border-radius:8px;cursor:pointer;align-items:center;justify-content:center;transition:all .15s ease}.emoji-btn:hover{background:#f1f5f9;transform:scale(1.12)}.emoji-btn--selected{background:#eff6ff;border:2px solid #3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.15)}.emoji-selected-hint{margin-top:8px;font-size:13px;color:#64748b;display:flex;align-items:center;gap:6px}.emoji-selected-preview{font-size:22px;line-height:1}.form-checkbox-row .form-label{margin:0;text-transform:none;font-size:.875rem;cursor:pointer}.modal-delete-title{font-size:1.2rem;font-weight:700;color:#ef4444;margin:0}.modal-delete-msg{color:#64748b;font-size:.9rem;margin:.75rem 0 0;line-height:1.5}.modal-actions-row{display:flex;gap:.75rem}.modal-actions-row .modal-submit-btn{flex:1 1}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes spin{to{transform:rotate(1turn)}}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.2)}}.animate-fade-in{animation:fadeIn .3s ease-in-out}.responsive-hide-mobile{display:block}.responsive-show-mobile{display:none}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width:768px){.mobile-menu-toggle{display:flex!important;align-items:center;justify-content:center;transition:opacity .3s ease,visibility .3s ease}.admin-sidebar.open~* .mobile-menu-toggle,body:has(.admin-sidebar.open) .mobile-menu-toggle{opacity:0;visibility:hidden;pointer-events:none}.sidebar-header .sidebar-close-btn{display:flex!important;align-items:center;justify-content:center}.admin-sidebar{position:fixed;top:0;left:0;bottom:0;height:100vh;width:85%;max-width:320px;transform:translateX(-100%);z-index:1000;box-shadow:none}.admin-sidebar.open{transform:translateX(0);box-shadow:4px 0 24px rgba(0,0,0,.15)}.sidebar-header{padding:1.5rem 1rem 1.5rem 1.5rem}.admin-dashboard{display:block}.admin-main{padding:4.5rem 1rem calc(4.5rem + env(safe-area-inset-bottom));margin-left:0!important;width:100%!important;max-width:100%!important;flex:none}.top-header{flex-direction:column;align-items:flex-start;gap:1rem;margin-bottom:1.5rem}.page-title h1{font-size:1.5rem}.stats-grid{grid-template-columns:1fr;gap:1rem}.stat-card{padding:1.25rem}.stat-card .icon-wrapper{width:48px;height:48px}.stat-info .value{font-size:1.5rem}.card-header{flex-direction:column;align-items:flex-start}.products-header{flex-direction:column;align-items:stretch}.products-search{max-width:100%}.products-header__add-btn{align-self:flex-end}.category-bar__top{flex-direction:column;align-items:flex-start}.category-bar__add-btn{width:100%;justify-content:center}.categories-content{padding:1rem}.categories-header__add-btn{width:100%;justify-content:center}.category-item{flex-direction:column;align-items:stretch}.category-item__actions{width:100%;justify-content:flex-end}.category-item__description{max-width:100%}.product-grid{grid-template-columns:1fr;gap:1rem}.employees-header{flex-direction:column;align-items:stretch}.employees-header__actions{width:100%;justify-content:flex-start}.employee-card{flex-direction:column;align-items:flex-start}.employee-card__left{width:100%}.employee-card__actions{width:100%;justify-content:flex-end}.modal-content{max-width:calc(100% - 2rem);margin:1rem;max-height:calc(100vh - 2rem);overflow-y:auto}.modal-body,.modal-footer,.modal-header{padding:1.25rem}.form-row{grid-template-columns:1fr}.weekly-chart-container{padding:1rem!important;min-height:200px!important}}@media (max-width:480px){body,html{max-width:100vw!important}.admin-dashboard,body,html{overflow-x:hidden!important}.admin-dashboard{display:block!important}.mobile-menu-toggle{top:.75rem;left:.75rem;padding:.625rem}.admin-sidebar{width:90%;max-width:280px}.admin-main{padding:4rem .75rem 1.5rem!important;width:100%!important;max-width:100%!important;overflow-x:hidden!important}.top-header{margin-bottom:1.25rem;gap:.75rem}.page-title h1{font-size:1.25rem!important;line-height:1.3}.page-title p{font-size:.75rem}.stats-grid{grid-template-columns:1fr!important;gap:.75rem}.stat-card{padding:1rem!important;gap:.75rem}.stat-card .icon-wrapper{width:40px;height:40px;min-width:40px}.stat-info .value{font-size:1.25rem!important}.stat-info .label{font-size:.75rem}.card-header{gap:.5rem}.card-header h2{font-size:1rem}.product-grid{grid-template-columns:1fr!important;gap:.75rem}.category-bar{padding:.75rem}.category-bar__chip-name{max-width:96px}.category-item__order{margin-right:auto}.form-group{margin-bottom:.75rem}.form-group label{font-size:.875rem}.form-group input,.form-group select,.form-group textarea{font-size:16px!important}.card-header,.employee-card,.employees-usage{padding:1rem}.employee-card__avatar{width:40px;height:40px;font-size:1rem}.employee-card__name{font-size:.875rem}.employee-card__username{font-size:.75rem}.modal-content{border-radius:12px}}@media (max-width:768px){.weekly-chart-container{padding:1rem!important;min-height:200px!important}}.weekly-sales-modal .modal-content{max-width:700px}.weekly-sales-modal .modal-header{background:linear-gradient(135deg,#667eea,#764ba2);color:white;border-bottom:none}.weekly-sales-modal .modal-close{background:rgba(255,255,255,.2);color:white}.weekly-sales-modal .modal-close:hover{background:rgba(255,255,255,.3)}.weekly-stats-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));grid-gap:1rem;gap:1rem;margin-bottom:2rem}.weekly-stat-item{background:#f9fafb;padding:1.25rem;border-radius:12px;text-align:center}.weekly-stat-item__label{font-size:.8125rem;color:#6b7280;font-weight:500;margin-bottom:.5rem;text-transform:uppercase;letter-spacing:.05em}.weekly-stat-item__value{font-size:1.5rem;font-weight:700;color:#1f2937}.weekly-stat-item--primary .weekly-stat-item__value{background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.chart-container{background:white;border-radius:12px;padding:1.5rem;margin-bottom:1.5rem;border:1px solid #e5e7eb}.chart-container canvas{max-height:300px!important}.daily-breakdown{display:grid;grid-gap:.75rem;gap:.75rem}.daily-breakdown-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#f9fafb;border-radius:12px;transition:all .2s ease}.daily-breakdown-item:hover{background:#f3f4f6}.daily-breakdown-item__day{display:flex;align-items:center;gap:.75rem}.daily-breakdown-item__dot{width:12px;height:12px;border-radius:50%;background:#3b82f6;flex-shrink:0}.daily-breakdown-item__label{font-size:.9375rem;font-weight:500;color:#1f2937}.daily-breakdown-item__value{font-size:1rem;font-weight:700;color:#1f2937}@media (max-width:768px){.weekly-sales-modal .modal-content{max-width:100%;border-radius:20px 20px 0 0}.weekly-stats-summary{grid-template-columns:repeat(2,1fr);gap:.75rem}.weekly-stat-item{padding:1rem}.weekly-stat-item__value{font-size:1.25rem}.chart-container{padding:1rem}.chart-container canvas{max-height:250px!important}.daily-breakdown{gap:.5rem}}@media (max-width:480px){.weekly-stats-summary{grid-template-columns:1fr}.weekly-stat-item__label{font-size:.75rem}.weekly-stat-item__value{font-size:1.125rem}.chart-container canvas{max-height:200px!important}}.weekly-sales-modal.modal-overlay{z-index:2000}.weekly-sales-modal .modal-content{width:min(920px,100%);max-height:90vh;overflow:hidden}.weekly-sales-modal .modal-body{overflow-y:auto;-webkit-overflow-scrolling:touch}.weekly-sales-modal .chart-container{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff;margin-bottom:16px}.weekly-sales-modal .chart-fallback{padding:10px 0}@media (max-width:768px){.weekly-sales-modal.modal-overlay{align-items:flex-end;padding:0}.weekly-sales-modal .modal-content{border-radius:18px 18px 0 0;max-height:92vh}}.order-details-modal{animation:slideUpModal .3s ease-out}@keyframes slideUpModal{0%{opacity:0;transform:translateY(20px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.order-details-modal .modal-header{position:relative;overflow:hidden}.order-details-modal .modal-header:before{content:"";position:absolute;top:-50%;right:-20%;width:200px;height:200px;background:rgba(255,255,255,.1);border-radius:50%}.order-details-modal .modal-body::-webkit-scrollbar{width:6px}.order-details-modal .modal-body::-webkit-scrollbar-track{background:#f1f5f9;border-radius:3px}.order-details-modal .modal-body::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.order-details-modal .modal-body::-webkit-scrollbar-thumb:hover{background:#94a3b8}@media (max-width:600px){.modal-overlay:has(.order-details-modal){align-items:flex-end;padding:0}.order-details-modal{max-width:100%!important;max-height:95vh!important;border-radius:20px 20px 0 0!important;animation:slideUpMobileModal .3s ease-out}@keyframes slideUpMobileModal{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.order-details-modal .modal-header{border-radius:20px 20px 0 0!important}.order-details-modal .modal-body{padding:1rem!important;max-height:55vh!important}.order-details-modal .modal-body>div:first-child{grid-template-columns:1fr 1fr!important;gap:.75rem!important;padding:.75rem!important}.order-details-modal .modal-footer{flex-direction:column!important;padding:1rem!important}.order-details-modal .modal-footer button{width:100%!important}}.invoices-page{padding:0;animation:fadeIn .3s ease}.invoices-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem;padding:0 0 1.5rem;border-bottom:1px solid #e5e7eb;margin-bottom:1.5rem}.invoices-header__left{flex:1 1}.invoices-header__title{display:flex;align-items:center;gap:.75rem;font-size:1.75rem;font-weight:700;color:#1e293b;margin:0 0 .25rem}.invoices-header__title svg{color:#6366f1}.invoices-header__subtitle{color:#64748b;font-size:.9rem;margin:0}.invoices-header__actions{display:flex;gap:.75rem;align-items:center}.export-dropdown-container{position:relative}.invoices-export-btn{display:flex;align-items:center;gap:.5rem;padding:.6rem 1rem;font-weight:500}.invoices-export-btn.exporting{opacity:.7;pointer-events:none}.invoices-export-btn .spin{animation:spin 1s linear infinite}.export-dropdown{position:absolute;top:calc(100% + 6px);right:0;background:white;border-radius:12px;box-shadow:0 10px 40px rgba(0,0,0,.15);border:1px solid #e5e7eb;min-width:200px;z-index:100;animation:dropdownFadeIn .15s ease;overflow:hidden}@keyframes dropdownFadeIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.export-dropdown button{display:flex;align-items:center;gap:.6rem;width:100%;padding:.75rem 1rem;background:none;border:none;cursor:pointer;font-size:.875rem;color:#374151;transition:all .15s ease;text-align:left}.export-dropdown button:hover:not(:disabled){background:#f1f5f9;color:#1e293b}.export-dropdown button:disabled{opacity:.5;cursor:not-allowed}.export-dropdown button svg{color:#6366f1;flex-shrink:0}.export-dropdown-divider{height:1px;background:#e5e7eb;margin:.25rem 0}.invoice-stats{display:grid;grid-template-columns:repeat(5,1fr);grid-gap:1rem;gap:1rem;margin-bottom:1.5rem}.invoice-stat-card{display:flex;align-items:center;gap:1rem;padding:1.25rem;background:white;border-radius:16px;border:1.5px solid #e5e7eb;transition:all .2s ease}.invoice-stat-card:hover{border-color:#c7d2fe;box-shadow:0 4px 12px rgba(99,102,241,.1)}.invoice-stat-card__icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.invoice-stat-card--total .invoice-stat-card__icon{background:#eef2ff;color:#6366f1}.invoice-stat-card--paid .invoice-stat-card__icon{background:#d1fae5;color:#059669}.invoice-stat-card--pending .invoice-stat-card__icon{background:#fef3c7;color:#d97706}.invoice-stat-card--overdue .invoice-stat-card__icon{background:#fee2e2;color:#dc2626}.invoice-stat-card--amount .invoice-stat-card__icon{background:#dbeafe;color:#2563eb}.invoice-stat-card__content{display:flex;flex-direction:column}.invoice-stat-card__value{font-size:1.5rem;font-weight:700;color:#1e293b;line-height:1.2}.invoice-stat-card__label{font-size:.8rem;color:#64748b;margin-top:.125rem}.invoice-filters{background:white;border-radius:16px;border:1.5px solid #e5e7eb;padding:1.25rem;margin-bottom:1.5rem}.invoice-filters__row{display:flex;gap:1rem;flex-wrap:wrap;align-items:flex-end}.invoice-filter-group{display:flex;flex-direction:column;gap:.5rem;min-width:140px}.invoice-filter-group label{font-size:.75rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.03em}.invoice-filter-group input[type=date],.invoice-filter-group select{padding:.6rem .75rem;border:1.5px solid #e5e7eb;border-radius:10px;font-size:.875rem;color:#374151;background:white;transition:all .15s ease}.invoice-filter-group input[type=date]:focus,.invoice-filter-group select:focus{outline:none;border-color:#a5b4fc;box-shadow:0 0 0 3px rgba(99,102,241,.1)}.invoice-filter-group--search{flex:1 1;min-width:200px}.date-range-inputs{display:flex;align-items:center;gap:.5rem}.date-range-separator{color:#94a3b8;font-size:.875rem}.invoice-search-input{display:flex;align-items:center;gap:.5rem;padding:0 .75rem;border:1.5px solid #e5e7eb;border-radius:10px;transition:all .15s ease}.invoice-search-input:focus-within{border-color:#a5b4fc;box-shadow:0 0 0 3px rgba(99,102,241,.1)}.invoice-search-input svg{color:#94a3b8;flex-shrink:0}.invoice-search-input input{flex:1 1;padding:.6rem 0;border:none;background:transparent;font-size:.875rem;color:#374151;outline:none}.invoice-filters__actions{display:flex;gap:.5rem;margin-top:1rem;padding-top:1rem;border-top:1px solid #f1f5f9}.btn-ghost{background:transparent;border:none;color:#64748b}.btn-ghost:hover{background:#f1f5f9;color:#374151}.invoice-list-container{background:white;border-radius:16px;border:1.5px solid #e5e7eb;overflow:hidden}.invoice-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:4rem 2rem;color:#64748b}.invoice-loading svg{color:#6366f1}.invoice-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:4rem 2rem}.invoice-empty svg{color:#cbd5e1;margin-bottom:1rem}.invoice-empty h3{font-size:1.25rem;font-weight:600;color:#374151;margin:0 0 .5rem}.invoice-empty p{color:#64748b;margin:0 0 1.5rem}.invoice-table-wrapper{overflow-x:auto}.invoice-table{width:100%;border-collapse:collapse}.invoice-table thead{background:#f8fafc;border-bottom:1.5px solid #e5e7eb}.invoice-table th{padding:1rem 1.25rem;text-align:left;font-size:.75rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.invoice-table__col-actions{text-align:right!important}.invoice-table tbody tr{border-bottom:1px solid #f1f5f9;transition:background .15s ease}.invoice-table tbody tr:hover{background:#fafbfc}.invoice-table tbody tr:last-child{border-bottom:none}.invoice-table td{padding:1rem 1.25rem;vertical-align:middle}.invoice-number-badge{display:inline-flex;padding:.35rem .75rem;background:#eef2ff;color:#4f46e5;font-size:.8rem;font-weight:600;border-radius:6px;font-family:SF Mono,Monaco,monospace}.invoice-date{display:flex;align-items:center;gap:.5rem;color:#64748b;font-size:.875rem}.invoice-date svg{color:#94a3b8}.invoice-client{display:flex;flex-direction:column;gap:.125rem}.invoice-client__name{font-weight:500;color:#1e293b}.invoice-client__nif{font-size:.75rem;color:#94a3b8}.payment-method-badge{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .65rem;background:#f1f5f9;color:#475569;font-size:.75rem;font-weight:500;border-radius:6px;text-transform:capitalize}.payment-method-badge--cash{background:#d1fae5;color:#059669}.payment-method-badge--card,.payment-method-badge--stripe{background:#dbeafe;color:#2563eb}.invoice-amount{font-size:1rem;font-weight:700;color:#1e293b}.invoice-status-badge{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .75rem;font-size:.75rem;font-weight:600;border-radius:20px;text-transform:capitalize}.invoice-status-badge--paid{background:#d1fae5;color:#059669}.invoice-status-badge--pending{background:#fef3c7;color:#d97706}.invoice-status-badge--overdue{background:#fee2e2;color:#dc2626}.invoice-status-badge--cancelled{background:#f1f5f9;color:#64748b}.invoice-actions{display:flex;justify-content:flex-end;gap:.5rem}.invoice-action-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:#f1f5f9;border:none;border-radius:8px;color:#64748b;cursor:pointer;transition:all .15s ease}.invoice-action-btn:hover{background:#e0e7ff;color:#4f46e5}.invoice-action-btn--danger:hover{background:#fee2e2;color:#dc2626}@media (max-width:1200px){.invoice-stats{grid-template-columns:repeat(3,1fr)}}@media (max-width:900px){.invoices-header{flex-direction:column;gap:1rem}.invoices-header__actions{width:100%;justify-content:flex-start}.invoice-stats{grid-template-columns:repeat(2,1fr)}.invoice-filters__row{flex-direction:column}.date-range-inputs,.invoice-filter-group{width:100%}.date-range-inputs input[type=date]{flex:1 1}}@media (max-width:600px){.invoice-stats{grid-template-columns:1fr}.invoice-table td,.invoice-table th{padding:.75rem;font-size:.8rem}.invoice-table__col-client,.invoice-table__col-payment{display:none}.invoice-number-badge{font-size:.7rem;padding:.25rem .5rem}}.invoice-modal-overlay{background:rgba(15,23,42,.7);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.invoice-detail-modal{background:#ffffff;border-radius:20px;width:90%;max-width:560px;max-height:90vh;overflow:hidden;box-shadow:0 25px 50px -12px rgba(0,0,0,.25);animation:invoiceModalSlide .3s ease-out}@keyframes invoiceModalSlide{0%{opacity:0;transform:translateY(20px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.invoice-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem 1.75rem;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:white}.invoice-modal-header__left{display:flex;align-items:center;gap:1rem}.invoice-modal-icon{width:48px;height:48px;background:rgba(255,255,255,.2);border-radius:12px;display:flex;align-items:center;justify-content:center}.invoice-modal-title h2{font-size:1.25rem;font-weight:700;margin:0;color:white}.invoice-modal-number{font-size:.8rem;opacity:.85;font-family:SF Mono,Fira Code,monospace;letter-spacing:.02em}.invoice-modal-header__right{display:flex;align-items:center;gap:1rem}.invoice-modal-status{display:inline-flex;align-items:center;gap:.375rem;padding:.5rem .875rem;border-radius:50px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em}.invoice-modal-status--Pago,.invoice-modal-status--paid{background:rgba(16,185,129,.2);color:#a7f3d0}.invoice-modal-status--pending{background:rgba(251,191,36,.2);color:#fde68a}.invoice-modal-status--cancelled{background:rgba(239,68,68,.2);color:#fecaca}.invoice-modal-close{width:36px;height:36px;background:rgba(255,255,255,.1);border:none;border-radius:10px;color:white;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.invoice-modal-close:hover{background:rgba(255,255,255,.2);transform:rotate(90deg)}.invoice-modal-body{padding:1.5rem 1.75rem;overflow-y:auto;max-height:calc(90vh - 200px)}.invoice-info-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));grid-gap:.875rem;gap:.875rem;margin-bottom:1.5rem}.invoice-info-card{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;background:#f8fafc;border-radius:12px;border:1px solid #e2e8f0}.invoice-info-card__icon{width:36px;height:36px;background:white;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#6366f1;box-shadow:0 1px 3px rgba(0,0,0,.1);flex-shrink:0}.invoice-info-card__content{display:flex;flex-direction:column;gap:.125rem;min-width:0}.invoice-info-card__label{font-size:.7rem;color:#64748b;text-transform:uppercase;letter-spacing:.05em;font-weight:500}.invoice-info-card__value{font-size:.9rem;color:#1e293b;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.invoice-items-section{background:#f8fafc;border-radius:16px;overflow:hidden;border:1px solid #e2e8f0}.invoice-items-header{display:flex;align-items:center;gap:.625rem;padding:1rem 1.25rem;background:white;border-bottom:1px solid #e2e8f0}.invoice-items-header svg{color:#6366f1}.invoice-items-header h3{font-size:.9rem;font-weight:600;color:#1e293b;margin:0;flex:1 1}.invoice-items-count{font-size:.75rem;color:#64748b;background:#e2e8f0;padding:.25rem .625rem;border-radius:50px;font-weight:500}.invoice-items-list{padding:.5rem}.invoice-item-row{display:flex;align-items:center;justify-content:space-between;padding:.875rem 1rem;background:white;border-radius:10px;margin-bottom:.375rem}.invoice-item-row:last-child{margin-bottom:0}.invoice-item-info{display:flex;align-items:center;gap:.5rem;min-width:0;flex:1 1}.invoice-item-name{font-size:.9rem;font-weight:500;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.invoice-item-qty{font-size:.8rem;color:#64748b;background:#f1f5f9;padding:.125rem .5rem;border-radius:4px;flex-shrink:0}.invoice-item-prices{display:flex;flex-direction:column;align-items:flex-end;gap:.125rem;flex-shrink:0;margin-left:1rem}.invoice-item-unit{font-size:.75rem;color:#94a3b8}.invoice-item-total{font-size:.9rem;font-weight:600;color:#1e293b}.invoice-totals-section{margin-top:1.5rem;padding:1.25rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9);border-radius:16px;border:1px solid #e2e8f0}.invoice-totals-row{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;font-size:.875rem;color:#64748b}.invoice-totals-row--grand{margin-top:.75rem;padding-top:1rem;border-top:2px dashed #cbd5e1}.invoice-totals-row--grand span:first-child{font-size:1rem;font-weight:600;color:#1e293b}.invoice-grand-total{font-size:1.5rem!important;font-weight:800!important;color:#4f46e5!important;letter-spacing:-.02em}.invoice-modal-footer{display:flex;gap:.75rem;justify-content:flex-end;padding:1.25rem 1.75rem;background:#f8fafc;border-top:1px solid #e2e8f0}.invoice-modal-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1.5rem;border-radius:12px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s;border:none}.invoice-modal-btn--ghost{background:transparent;color:#64748b;border:1px solid #e2e8f0}.invoice-modal-btn--ghost:hover{background:#f1f5f9;color:#475569}.invoice-modal-btn--primary{background:linear-gradient(135deg,#4f46e5,#7c3aed);color:white;box-shadow:0 4px 14px rgba(79,70,229,.35)}.invoice-modal-btn--primary:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(79,70,229,.45)}@media (max-width:600px){.invoice-detail-modal{width:100%;max-width:100%;max-height:100vh;border-radius:0}.invoice-modal-header{padding:1.25rem}.invoice-modal-body{padding:1.25rem;max-height:calc(100vh - 180px)}.invoice-info-cards{grid-template-columns:1fr 1fr}.invoice-modal-footer{padding:1rem 1.25rem}.invoice-modal-btn{flex:1 1}}