.hero{padding:48px 0 36px;background:linear-gradient(120deg,#f0f7ff,#fff9f0)}.hero-inner{max-width:1200px;margin:0 auto;padding:0 20px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:center}.hero-title{font-size:clamp(2rem,4vw,3rem);margin:0;line-height:1.08;color:#0f172a}.hero-sub{margin:12px 0 22px;color:#334155;font-size:1.03rem;max-width:560px}.hero-ctas{display:flex;gap:12px;flex-wrap:wrap}.hero .btn{padding:11px 18px;border-radius:10px;text-decoration:none;font-weight:700;border:1px solid transparent;cursor:pointer}.hero .btn.primary{background:#0f766e;color:#fff}.hero .btn.install{background:#fff7ed;border-color:#fdba74;color:#9a3412}.hero .btn.secondary{background:#fff;border:1px solid #cbd5e1;color:#0f172a}.hero-visual{border-radius:16px;overflow:hidden;box-shadow:0 22px 40px #020c1b33}.hero-banner{width:100%;height:380px;object-fit:cover;display:block}@media(max-width:900px){.hero-inner{grid-template-columns:1fr}.hero-banner{height:260px}}.whychoose{padding:56px 0;background:var(--brand-surface-2)}.why-container{max-width:1000px;margin:0 auto;padding:0 20px}.why-container h2{font-size:clamp(1.6rem,2vw,2.1rem);margin-bottom:16px}.why-grid ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.why-grid li{background:var(--brand-surface);padding:12px 14px;border-radius:12px;border:1px solid var(--brand-border);box-shadow:0 8px 20px #020c1b0d;display:flex;gap:10px;align-items:flex-start;color:var(--brand-ink)}.why-grid li:before{content:"+";color:var(--primary);font-weight:800;margin-top:2px}@media(max-width:700px){.why-grid ul{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}.popular-products{margin:32px auto;padding:20px;max-width:1100px;background:var(--brand-surface);border-radius:18px;border:1px solid var(--brand-border);box-shadow:var(--brand-shadow)}.popular-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.popular-header h3{margin:0;font-size:1.2rem;color:var(--brand-ink)}.popular-products .btn-outline{border:1px solid rgba(2,12,27,.12);background:transparent;padding:8px 14px;border-radius:10px;font-weight:600;color:var(--brand-ink)}.popular-products .btn-outline:hover{border-color:#0f766e59;color:var(--primary)}.pp-loading{padding:18px 8px;color:var(--brand-muted)}.pp-scroll{overflow:visible}.pp-grid{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:16px;align-items:stretch;padding:8px 4px}.pp-card{border-radius:12px;overflow:hidden;display:flex;flex-direction:column;text-decoration:none;color:inherit;background:#fff;border:1px solid rgba(2,12,27,.08);position:relative;min-height:340px;height:100%;box-shadow:0 8px 18px #020c1b14}.pp-image{width:100%;height:180px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f8fafc}.pp-image.is-placeholder{background:radial-gradient(circle at top,rgba(15,118,110,.12),transparent 55%),linear-gradient(180deg,#f8fafc,#eef2ff)}.pp-image img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;transform:scale(1);transition:transform .3s ease}.pp-card:hover .pp-image img{transform:scale(1.05)}.pp-image-placeholder{display:inline-flex;align-items:center;justify-content:center;width:74px;height:74px;border-radius:22px;background:#ffffffd9;color:var(--primary);box-shadow:0 10px 24px #0f172a14}.pp-body{display:flex;flex:1}.pp-content{width:100%;padding:14px;display:flex;flex-direction:column;gap:8px;min-height:100%}.pp-name{font-weight:700;font-size:.95rem;color:var(--brand-ink);line-height:1.35;min-height:2.6em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.pp-price{font-size:.95rem;font-weight:800;color:var(--primary)}.pp-company{font-size:.85rem;color:var(--brand-muted)}.pp-meta{margin-top:auto;display:flex;flex-direction:column;gap:4px;font-size:.82rem;color:var(--brand-ink)}@media(max-width:600px){.popular-products{padding:16px 12px}.pp-card{min-height:290px}.pp-image{height:160px}}@media(min-width:600px){.pp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:768px){.pp-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:1024px){.pp-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}}.landing-page{width:100%}.landing-page section{scroll-margin-top:90px}.login-page{min-height:100vh;background:linear-gradient(180deg,#0f172a05,#0f172a05),#f5f7fb;display:flex;align-items:center;justify-content:center;padding:20px;font-family:IBM Plex Sans,ui-sans-serif,system-ui,-apple-system,Segoe UI,Helvetica Neue,Arial}.login-container{width:100%;max-width:420px;display:flex;flex-direction:column;align-items:center;gap:32px}.login-branding{text-align:center}.brand-logo{width:116px;height:auto;object-fit:contain;margin-bottom:12px;border-radius:10px;box-shadow:0 6px 16px #0f172a1f}.brand-name{font-size:32px;font-weight:700;color:#111827;margin:0 0 8px;letter-spacing:-.01em}.auth-card{width:100%;padding:30px;background:#fff;border-radius:14px;border:1px solid #e6eaf0;box-shadow:0 14px 32px #0f172a1a}.auth-card h2{font-size:24px;font-weight:700;margin-bottom:24px;color:#111827}.auth-card label{display:block;margin-bottom:16px;font-size:14px;font-weight:500;color:#374151}.input-wrapper{position:relative;margin-top:6px}.input-wrapper input{width:100%;padding:12px 12px 12px 40px;border-radius:8px;border:1px solid #d1d7e0;font-size:14px;background:#fff;transition:border-color .2s,box-shadow .2s}.input-wrapper input:focus{outline:none;border-color:#1e3a8a;box-shadow:0 0 0 3px #1e3a8a1f}.input-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:18px;color:#6b7280}.password-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;font-size:18px;padding:6px;border-radius:6px;color:#6b7280}.actions{display:flex;flex-direction:column;gap:12px;margin-top:24px}.btn.primary{width:100%;background:#1e3a8a;color:#fff;padding:12px;border-radius:8px;border:none;font-weight:600;font-size:16px;cursor:pointer;transition:background .2s ease,box-shadow .2s ease;box-shadow:0 10px 18px #1e3a8a38}.btn.primary:hover{background:#1b2f6b}.register-link{text-align:center;margin-top:16px;font-size:14px;color:#6b7280}.register-link a{color:#314380;text-decoration:none;font-weight:600}.register-link a:hover{text-decoration:underline}@media(max-width:520px){.brand-logo{width:96px}.auth-card{padding:22px}.brand-name{font-size:28px}}.register-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#0f172a05,#0f172a05),#f5f7fb;padding:20px;font-family:IBM Plex Sans,ui-sans-serif,system-ui,-apple-system,Segoe UI,Helvetica Neue,Arial}.register-container{width:100%;max-width:700px;display:flex;flex-direction:column;align-items:center;gap:32px}.register-branding{text-align:center}.brand-logo{width:116px;height:auto;margin-bottom:12px;border-radius:10px;box-shadow:0 6px 16px #0f172a1f}.brand-name{font-size:32px;font-weight:700;margin:0 0 8px;letter-spacing:-.01em}.brand-subtitle{font-size:14px;color:#6b7280;margin:0}.register-card{width:100%;padding:30px;background:#fff;border-radius:14px;border:1px solid #e6eaf0;box-shadow:0 14px 32px #0f172a1a}.register-card h2{font-size:24px;font-weight:700;margin-bottom:24px;color:#111827}.register-form-grid{display:grid;grid-template-columns:1fr;gap:20px;margin-bottom:24px}.form-section,.form-row{display:flex;flex-direction:column;gap:16px}.form-group label{display:block;font-weight:500;margin-bottom:6px}.form-group input,.form-group select{width:100%;padding:12px;border-radius:8px;border:1px solid #d1d7e0;font-size:14px;background:#fff;transition:border-color .2s,box-shadow .2s}.form-group input:focus,.form-group select:focus{outline:none;border-color:#1e3a8a;box-shadow:0 0 0 3px #1e3a8a1f}.select-wrapper{position:relative}.select-wrapper select{appearance:none;padding-right:40px}.select-arrow{position:absolute;right:12px;top:50%;transform:translateY(-50%);pointer-events:none;color:#6b7280;font-size:12px}.password-input-wrapper{position:relative}.password-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;font-size:18px}.register-actions{display:flex;flex-direction:column;gap:12px}.legal-consent{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#374151}.legal-row{display:flex;align-items:flex-start;gap:8px}.legal-row input{margin-top:2px}.legal-row a{color:#1e3a8a;font-weight:600;text-decoration:none}.legal-row a:hover{text-decoration:underline}.register-actions .action-links{font-size:14px}.register-actions .login-link{color:#314380;margin-left:4px;font-weight:700}.register-btn{background:#1e3a8a;color:#fff;font-weight:600;border:none;border-radius:8px;padding:12px 24px;cursor:pointer;box-shadow:0 10px 18px #1e3a8a38}.register-btn:disabled{opacity:.6;cursor:not-allowed}.error-banner{color:#b91c1c;background:#fee2e2;padding:10px;margin-bottom:16px;border-radius:4px}@media(max-width:520px){.brand-logo{width:96px}.register-card{padding:22px}.brand-name{font-size:28px}}@media(min-width:768px){.register-form-grid{grid-template-columns:1fr 1fr;gap:24px}.register-actions{flex-direction:row;justify-content:space-between;align-items:center}}@media(min-width:1024px){.form-row.two-col{flex-direction:row;gap:16px}.form-row.two-col .form-group{flex:1 1 0}}.forget-container{min-height:100vh;display:flex;justify-content:center;align-items:center;background:#f6f7fb;padding:16px}.forget-box{width:100%;max-width:400px;background:#fff;padding:24px;border-radius:10px;box-shadow:0 4px 12px #00000014}.forget-title{text-align:center;font-size:1.6rem;margin-bottom:10px;font-weight:700;color:#111}.forget-text{text-align:center;color:#555;margin-bottom:20px}.forget-form{display:flex;flex-direction:column;gap:16px}label{font-size:.9rem;color:#333}.forget-input{width:100%;padding:12px;border:1px solid #d3d3d3;border-radius:6px;outline:none;font-size:1rem}.forget-input:focus{border-color:#007bff}.forget-btn{padding:12px;background:#007bff;color:#fff;border-radius:6px;font-size:1rem;transition:.3s ease;cursor:pointer}.forget-btn:hover{opacity:.9}.forget-btn.secondary{background:#f1f5f9;color:#334155;border:1px solid #e2e8f0}.forget-actions{margin-top:12px;display:flex;justify-content:center}.forget-success{color:green;text-align:center;font-size:1rem;background:#e8ffee;padding:12px;border-radius:6px;border:1px solid #bbeccc}.forget-error{margin-top:12px;color:#b91c1c;background:#fee2e2;padding:10px;border-radius:6px;text-align:center}.forget-actions{margin-top:12px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.inventory-search-page{padding:20px 12px;background:#f9fafb}.search-container{max-width:1100px;margin:0 auto}.inventory-search-page h1{font-size:34px;font-weight:700;color:#111827;text-align:center;margin:8px 0}.search-subtitle{font-size:14px;color:#6b7280;text-align:center;margin:0 0 18px}.search-form-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:8px}.search-form-row select,.search-form-row input{padding:8px 10px;border:1px solid #e5e7eb;border-radius:6px;background:#fff}.public-search-field{flex:0 0 360px;min-width:200px;max-width:100%}.public-search-field__input{min-height:42px}.search-form-row input{flex:0 0 360px;min-width:200px;max-width:100%}.search-note{margin-top:12px;color:#6b7280}.results-list{margin-top:18px;background:transparent}.product-item{padding:10px 12px;border-bottom:1px solid #eef2f7;display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}.product-item:hover{background:#fff}.product-name{font-weight:600}.product-meta{font-size:13px;color:#6b7280}@media(min-width:768px){.inventory-search-page h1{font-size:36px}}@media(min-width:1024px){.search-form-row{gap:10px}}.search-form-row button.loading{background:#f59e0b;color:#fff;border:none;cursor:progress}.search-form-row button:disabled{opacity:.85}@media(max-width:900px){.search-form-row input{flex:1;min-width:0}}.results-panel{padding:12px;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000000f}.inventory-search-page .product-card{border:1px solid #e6e7eb;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;min-height:380px;background:#fff}.inventory-search-page .product-card{position:static}.inventory-search-page .card-image{height:220px;display:flex;align-items:center;justify-content:center;overflow:hidden}.inventory-search-page .product-card img{width:100%;height:100%;object-fit:cover;object-position:center}.inventory-search-page .card-body{flex:1;display:flex;flex-direction:column;gap:8px;padding:12px;border-top:1px solid #eef2f7;box-sizing:border-box}.inventory-search-page .card-title{font-size:16px;margin:0;line-height:1.35}.inventory-search-page .card-meta{display:flex;flex-wrap:wrap;gap:8px}.inventory-search-page .product-card .price{background:#6366f114;padding:4px 8px;border-radius:6px}.inventory-search-page .product-card .stock{background:#10b9810f;padding:4px 8px;border-radius:6px}.inventory-search-page .product-card .company{background:#6b72800f;padding:4px 8px;border-radius:6px}.inventory-search-page .card-expiry{display:inline-flex;align-self:flex-start;font-size:12px;color:#92400e;background:#f59e0b1f;padding:4px 8px;border-radius:999px;flex-wrap:wrap}.am-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:#ffffffe6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:sticky;top:0;z-index:60;border-bottom:1px solid rgba(2,12,27,.06)}.am-logo{font-weight:700;color:var(--primary);font-size:20px;display:inline-flex;align-items:center}.am-logo-wrap{display:inline-flex;gap:12px;align-items:center}.am-site-name{font-weight:800;font-size:20px;color:var(--brand-ink, #0b1f2a)}.am-logo-img{height:36px;width:auto;border-radius:8px;object-fit:cover;box-shadow:0 6px 14px #020c1b1f}.am-nav{display:flex;gap:22px;align-items:center;flex:1 1 auto;justify-content:center}.am-search-form input{width:220px;padding:8px 10px;border-radius:8px;border:1px solid #cbd5e1;outline:none;font-size:14px}.am-nav a{color:var(--brand-ink, #0b1f2a);font-size:14px;font-weight:600;text-decoration:none;transition:color .2s}.am-nav a:hover{color:var(--primary)}.am-btn-secondary{background:#0b1f2a;color:#fff!important;padding:8px 14px;border-radius:8px;border:none;font-weight:600;text-decoration:none;display:inline-block}.am-btn-secondary:hover{background:#112c3a}.am-cta{background:var(--primary);color:#fff;padding:8px 14px;border-radius:8px;border:none;font-weight:600;text-decoration:none;display:inline-block;transition:background .2s}.am-cta:hover{background:var(--primary-dark)}.am-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;border:1px solid rgba(2,12,27,.08);background:#fff;color:var(--brand-ink, #0b1f2a);cursor:pointer;transition:background .2s,color .2s,border-color .2s}.am-icon-btn:hover{background:#2563eb14;color:var(--primary);border-color:#2563eb33}.am-mobile-auth{display:none;align-items:center;justify-content:center;gap:6px;flex-shrink:0;min-height:38px;padding:0 12px;border-radius:999px;border:1px solid rgba(2,12,27,.1);text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer;transition:background .2s,color .2s,border-color .2s,box-shadow .2s}.am-mobile-auth-login{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;box-shadow:0 10px 22px #2563eb38}.am-mobile-auth-login:hover{color:#fff;filter:brightness(1.02)}.am-mobile-auth-logout{background:#fff;color:var(--brand-ink, #0b1f2a)}.am-mobile-auth-logout:hover{background:#020c1b08;color:var(--brand-ink, #0b1f2a);border-color:#020c1b29}.am-hamburger{display:none;border:none;background:transparent;font-size:14px;font-weight:700;padding:6px 8px;border-radius:8px;color:var(--brand-ink, #0b1f2a);border:1px solid rgba(2,12,27,.08)}.am-header-actions,.am-lang-switch{display:flex;gap:8px;align-items:center}@media(max-width:900px){.am-notifications{display:none}.am-hamburger{display:inline-block}.am-mobile-auth{display:inline-flex}.am-header-actions>.am-cta{display:none}.am-header-actions{justify-self:end;min-width:0;flex-wrap:nowrap}.am-header-actions .lang-select{min-width:56px}.am-nav{position:absolute;top:calc(100% + 6px);left:12px;right:12px;background:#fff;border:1px solid rgba(2,12,27,.08);border-radius:12px;box-shadow:0 16px 36px #020c1b1f;padding:12px;display:none;z-index:70;flex-direction:column;align-items:stretch;gap:10px;flex:initial}.am-nav.open{display:flex}.am-nav a,.am-nav button{display:block;width:100%}.am-search-form input{width:100%}}@media(max-width:599px){.am-site-name{display:none}.am-header{display:grid;grid-template-columns:auto auto 1fr;align-items:center;column-gap:8px;row-gap:10px}.am-cta,.am-btn-secondary{padding:6px 10px}.am-header-left{min-width:0}.am-hamburger{justify-self:start}.am-header-actions .am-cta{white-space:nowrap}.am-nav{grid-column:1 / -1;left:18px;right:18px}}.am-notifications{position:relative;display:inline-block;margin-left:12px;z-index:1000}.notif-btn{background:transparent;border:none;cursor:pointer;font-size:18px;position:relative}.notif-btn.has-unread{color:#dc2626}.notif-badge{position:absolute;top:-6px;right:-8px;background:#dc2626;color:#fff;border-radius:999px;padding:2px 6px;font-size:12px}.notif-dropdown{position:fixed;top:64px;right:20px;width:360px;max-height:70vh;overflow-y:auto;background:#fff;z-index:10!important;box-shadow:0 10px 25px #0003;border:1px solid #e5e7eb}.notif-header{display:flex;justify-content:space-between;align-items:center;padding:6px 8px;border-bottom:1px solid #f1f1f1}.notif-header .small{background:transparent;border:none;color:#2563eb;cursor:pointer}.notif-list{padding:8px;display:flex;flex-direction:column;gap:8px}.notif-item{padding:8px;border-radius:6px;background:#fff;border:1px solid #f3f4f6}.notif-item.read{opacity:.6}.notif-message{font-size:13px}.notif-time{font-size:11px;color:#6b7280;margin-top:6px}.notif-empty{padding:12px;color:#6b7280;text-align:center}.toast-host{position:fixed;right:20px;top:20px;display:flex;flex-direction:column;gap:10px;z-index:9999;pointer-events:none}.toast{min-width:220px;max-width:340px;padding:12px 14px;border-radius:10px;font-size:14px;font-weight:600;color:#0f172a;background:#fff;border:1px solid #e2e8f0;box-shadow:0 10px 24px #0f172a1f;animation:toast-in .18s ease-out}.toast-info{border-color:#94a3b8}.toast-success{border-color:#22c55e;background:#f0fdf4}.toast-error{border-color:#ef4444;background:#fef2f2}.toast-warning{border-color:#f59e0b;background:#fffbeb}@keyframes toast-in{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}@media(max-width:520px){.toast-host{right:12px;left:12px}.toast{max-width:none}}.am-footer{margin-top:0;padding:56px 16px 22px;background:#0b1f2a;color:#fff}.footer-container{max-width:1200px;margin:0 auto}.footer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-bottom:24px}.footer-column h4{margin:0 0 10px;font-size:16px}.footer-column p{margin:0 0 8px;color:#cbd5e1;font-size:14px;line-height:1.6}.footer-column ul{list-style:none;margin:0;padding:0}.footer-column li{margin:0 0 8px;color:#cbd5e1;font-size:14px}.footer-column a{color:#cbd5e1;text-decoration:none}.footer-column a:hover{color:#fff}.footer-bottom{border-top:1px solid rgba(148,163,184,.2);padding-top:14px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.footer-legal{display:flex;gap:8px;align-items:center}.footer-developed,.footer-sep,.footer-copyright{color:#94a3b8;font-size:13px}@media(max-width:980px){.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.footer-grid{grid-template-columns:1fr}}.landing-root{--primary: #0f766e;--primary-dark: #0b5f59;--brand-ink: #0b1f2a;--brand-muted: #52606d;--brand-surface: #ffffff;--brand-surface-2: #f5f7fb;--brand-border: #e2e8f0;--brand-accent: #d97706;--brand-shadow: 0 18px 50px rgba(2, 12, 27, .08);color:var(--brand-ink);background:#f7f9fb;font-family:Noto Sans,ui-sans-serif,system-ui,-apple-system,Segoe UI,Helvetica Neue,Arial;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}.landing-root main{padding:0;background:radial-gradient(1200px 600px at 10% -10%,rgba(15,118,110,.12),transparent 55%),radial-gradient(900px 500px at 90% 10%,rgba(217,119,6,.12),transparent 50%),#f7f9fb}.landing-root h1,.landing-root h2,.landing-root h3{color:var(--brand-ink);letter-spacing:-.02em}.landing-root p{color:var(--brand-muted);line-height:1.7}@media(prefers-reduced-motion:reduce){.landing-root *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}.confirm-overlay{position:fixed;inset:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;padding:16px;z-index:50}.confirm-dialog{background:#fff;border-radius:12px;width:100%;max-width:420px;box-shadow:0 12px 32px #0f172a33;border:1px solid #e2e8f0;padding:20px}.confirm-title{margin:0 0 8px;font-size:18px;color:#0f172a}.confirm-message{margin:0 0 16px;color:#475569;font-size:14px}.confirm-actions{display:flex;justify-content:flex-end;gap:8px}.product-search-field{position:relative;width:100%}.product-search-field__input{width:100%;min-height:44px;box-sizing:border-box;padding:11px 124px 11px 14px;border:1px solid #d1d5db;border-radius:10px;background:#fff;font-size:14px}.product-search-field.has-value .product-search-field__input{padding-right:152px}.product-search-field__actions{position:absolute;top:50%;right:10px;transform:translateY(-50%);display:flex;align-items:center;justify-content:flex-end;gap:8px}.product-search-field__action{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:none;background:transparent;color:#64748b;appearance:none;-webkit-appearance:none;line-height:1;vertical-align:middle;flex-shrink:0}.product-search-field__mic{cursor:pointer;border:none;background:transparent;color:#202124;box-shadow:none;transform:none}.product-search-field__scanner{cursor:pointer;color:#0f766e}.product-search-field__clear{cursor:pointer;color:#475569}.product-search-field__clear:hover,.product-search-field__clear:focus{color:#0f172a}.product-search-field__scanner:hover,.product-search-field__scanner:focus{color:#115e59}.product-search-field__mic.listening{color:#000;background:transparent}.product-search-field__mic:hover,.product-search-field__mic:focus,.product-search-field__mic:active{color:#000;transform:none;translate:none;top:auto}.product-search-field__mic:disabled{cursor:not-allowed;opacity:.5}.product-search-field__mic-icon{display:block;width:18px;height:18px;color:currentColor;flex:0 0 auto}.product-search-field__listening{position:absolute;top:50%;right:70px;transform:translateY(-50%);font-size:12px;color:#dc2626;font-weight:600;white-space:nowrap;pointer-events:none}.product-search-field__scanner-modal{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:1rem;background:#0f172a9e}.product-search-field__scanner-sheet{width:min(100%,520px);border-radius:24px;background:#fff;border:1px solid rgba(148,163,184,.24);box-shadow:0 28px 64px #0f172a3d;overflow:hidden}.product-search-field__scanner-header{display:flex;justify-content:space-between;gap:1rem;padding:1rem 1rem .75rem}.product-search-field__scanner-header h3{margin:0;color:#0f172a}.product-search-field__scanner-header p{margin:.35rem 0 0;color:#64748b;font-size:.92rem}.product-search-field__scanner-close,.product-search-field__scanner-button{border:1px solid #d1d5db;background:#fff;color:#0f172a;cursor:pointer}.product-search-field__scanner-close{width:38px;height:38px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center}.product-search-field__scanner-preview{position:relative;margin:0 1rem;border-radius:20px;overflow:hidden;background:linear-gradient(135deg,#0f766e2e,#1e293bd9);aspect-ratio:4 / 3}.product-search-field__scanner-video{width:100%;height:100%;object-fit:cover;display:block}.product-search-field__scanner-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.6rem;color:#f8fafc;background:#0f172a5c}.product-search-field__scanner-status,.product-search-field__scanner-error{margin:.9rem 1rem 0;padding:.8rem .95rem;border-radius:14px;font-size:.92rem}.product-search-field__scanner-status{background:#0f766e14;border:1px solid rgba(15,118,110,.16);color:#0f766e}.product-search-field__scanner-error{background:#ef444414;border:1px solid rgba(239,68,68,.16);color:#b91c1c}.product-search-field__scanner-footer{padding:1rem;display:flex;justify-content:flex-end}.product-search-field__scanner-button{min-height:42px;padding:.65rem 1rem;border-radius:12px;font-size:.92rem;font-weight:600}@media(max-width:640px){.product-search-field__input{padding-right:118px}.product-search-field.has-value .product-search-field__input{padding-right:146px}.product-search-field__scanner-sheet{border-radius:20px}}.product-search-field__dropdown{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:40;max-height:240px;overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 12px 28px #0f172a1f}.product-search-field__item{width:100%;padding:10px 12px;border:none;background:transparent;text-align:left;font-size:14px;cursor:pointer}.product-search-field__item.active,.product-search-field__item:hover{background:#eff6ff}.product-search-field__match{background:#fde68a;color:#111827;padding:0 2px;border-radius:3px}.spin{animation:product-search-field-spin 1s linear infinite}@keyframes product-search-field-spin{to{transform:translateY(-50%) rotate(360deg)}}.product-detail-container{padding:24px}.product-detail-flex{display:flex;gap:24px;flex-wrap:wrap}.product-column{flex:1;min-width:300px}.product-image{max-width:420px;width:100%;border-radius:8px}.info-row{margin-top:12px}.button-group{display:flex;gap:12px;align-items:center;margin-top:8px}.btn-call{padding:10px 14px;background:#10b981;color:#fff;border:none;border-radius:8px;cursor:pointer}.btn-order{padding:10px 16px;background:#2563eb;color:#fff;border:none;border-radius:8px;cursor:pointer}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.modal-content{background:#fff;border-radius:12px;padding:24px;width:90%;max-width:500px;max-height:90vh;overflow-y:auto}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-header h3{margin:0;font-size:20px}.modal-header button{background:transparent;border:none;font-size:24px;cursor:pointer;color:#6b7280}.order-form{display:flex;flex-direction:column;gap:16px}.order-form .form-group{display:flex;flex-direction:column;gap:8px}.order-form label{font-weight:600;color:#374151}.order-form input,.order-form textarea{padding:10px;border:1px solid #d1d5db;border-radius:8px;font-size:14px}.order-form input:focus,.order-form textarea:focus{outline:none;border-color:#2563eb}.order-summary{background:#f3f4f6;padding:12px;border-radius:8px;margin-top:8px}.order-summary p{margin:0;font-size:16px;font-weight:600}.modal-footer{display:flex;gap:12px;justify-content:flex-end;margin-top:20px}.btn-secondary{padding:10px 20px;background:#e5e7eb;color:#374151;border:none;border-radius:8px;cursor:pointer;font-weight:500}.btn-primary{padding:10px 20px;background:#2563eb;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:500}.order-form-grid{display:grid;gap:10px}.order-form-grid input,.order-form-grid textarea{padding:10px;border:1px solid #e5e7eb;border-radius:8px;width:100%}.order-total{font-weight:700;font-size:1.1rem;margin:8px 0}.order-modal-overlay{position:fixed;inset:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:2000}.order-modal{width:460px;max-width:95%;max-height:85vh;overflow-y:auto;background:#fff;border-radius:12px;padding:18px;box-shadow:0 10px 40px #0000004d}.order-modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.close-btn{background:transparent;border:none;font-size:18px;cursor:pointer}.loading-state,.not-found-state{padding:40px}.product-info-pane{display:flex;flex-direction:column;height:100%;gap:12px}.product-meta{flex-grow:1}.action-footer{margin-top:24px;padding-top:16px;border-top:1px solid #f3f4f6}.search-results-page{padding:28px 24px}.results-header h1{margin:0 0 8px}.search-results-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:16px}.search-results-toolbar__search{flex:1 1 320px;min-width:240px}.search-results-toolbar__input,.search-results-toolbar__select{min-height:42px}.search-results-toolbar__select{border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:0 12px}.results-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px}@media(max-width:700px){.results-grid{grid-template-columns:1fr}}.search-results-page .product-card{position:relative;display:flex;flex-direction:column;text-decoration:none;color:inherit;background:#fff;border:1px solid #eee;border-radius:8px;overflow:hidden;min-height:380px}.search-results-page .card-image{height:220px;display:flex;align-items:center;justify-content:center;overflow:hidden}.search-results-page .card-image img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}.search-results-page .card-body{position:static;flex:1;padding:12px;background:#fffffff5;display:flex;flex-direction:column;gap:6px;box-sizing:border-box;border-top:1px solid #eee}.search-results-page .card-title{margin:0;font-size:16px;line-height:1.35}.search-results-page .card-expiry{display:inline-flex;align-self:flex-start;font-size:12px;color:#92400e;background:#f59e0b1f;padding:4px 8px;border-radius:999px;flex-wrap:wrap}.search-results-page .card-meta{display:flex;justify-content:space-between}.search-results-page .card-meta .price{font-size:14px;font-weight:600}.search-results-page .card-meta .stock{font-size:12px;color:#6b7280}.search-results-page .card-details{font-size:13px;color:#555;display:flex;flex-direction:column;gap:4px}.card-actions{margin-top:8px}.btn-order{padding:6px 10px;border-radius:6px;border:none;background:#6d28d9;color:#fff;cursor:pointer}.no-results{padding:20px;color:#666}.loading{padding:20px}.legal-page{min-height:70vh;padding:32px 16px 64px;background:radial-gradient(1200px 400px at 20% -10%,#e0f2fe 0%,transparent 60%),radial-gradient(900px 300px at 90% 0%,#e0e7ff 0%,transparent 55%),#f8fafc}.legal-card{max-width:900px;margin:0 auto;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:28px 28px 22px;box-shadow:0 14px 32px #0f172a1f}.legal-actions{display:flex;justify-content:flex-start;margin-bottom:8px}.legal-actions.bottom{margin-top:20px;justify-content:flex-end}.legal-back{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#0f172a;color:#fff;font-size:12px;font-weight:700;text-decoration:none}.legal-back:visited{color:#fff}.legal-back:hover{background:#1e293b}.legal-card h1{margin:0 0 12px;font-size:26px;color:#0f172a}.legal-card p{color:#334155;line-height:1.7;margin:0 0 14px}.legal-card a{color:#1e3a8a;font-weight:600;text-decoration:none}.legal-card a:hover{text-decoration:underline}.legal-contact-email{text-transform:lowercase}.legal-section{margin-bottom:14px}.legal-section h3{margin:0 0 6px;font-size:15px;font-weight:700;color:#0f172a}.legal-section p{margin:0;color:#334155}.legal-card ul{padding-left:18px;color:#334155;line-height:1.7}.legal-card p:first-of-type{color:#64748b;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.legal-card p+p{margin-top:10px}.dashboard-layout{display:flex;flex-direction:column;height:100vh;overflow:hidden}.dashboard-body{display:flex;flex:1;overflow:hidden}.dashboard-main{flex:1;overflow-y:auto;background:#f3f4f6;padding:20px}.scroll-buttons{position:fixed;right:16px;bottom:20px;display:flex;flex-direction:column;gap:8px;z-index:1400}.scroll-btn{width:40px;height:40px;border-radius:8px;border:none;background:#0f172af2;color:#fff;font-size:18px;cursor:pointer;box-shadow:0 4px 12px #02061733}.scroll-btn:hover{transform:translateY(-2px)}@media(max-width:600px){.scroll-btn{width:44px;height:44px;font-size:20px}}@media(max-width:899px){.dashboard-body{position:relative}}.sidebar-overlay{position:fixed;inset:0;background:#0006;z-index:999}.dashboard-sidebar{width:250px;background:#1e40af;display:flex;flex-direction:column;height:100%;overflow-y:auto;border-right:1px solid rgba(255,255,255,.05)}.sidebar-brand{padding:24px 20px;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:8px}.sidebar-role{font-size:11px;font-weight:800;color:#a5b4fc;text-transform:uppercase;letter-spacing:1.2px;background:#ffffff1a;padding:4px 10px;border-radius:4px;display:inline-block}.sidebar-nav{flex:1;padding:10px 12px;display:flex;flex-direction:column;gap:6px}.sidebar-nav-item{display:flex;align-items:center;gap:12px;padding:10px 16px;color:#ffffffb3;text-decoration:none;border-radius:8px;transition:all .2s cubic-bezier(.4,0,.2,1);font-size:14px;font-weight:500}.sidebar-nav-item:hover{background:#ffffff14;color:#fff}.sidebar-nav-item.active{background:#fff;color:#1e40af;box-shadow:0 4px 12px #0000001a}.nav-icon{display:flex;align-items:center;justify-content:center;width:20px;height:20px;transition:transform .2s ease}.sidebar-nav-item.active .nav-icon{color:#1e40af}.sidebar-nav-item:active .nav-icon{transform:scale(.9)}.nav-label{flex:1}@media(max-width:899px){.dashboard-sidebar{position:fixed;left:0;top:0;height:100vh;max-height:100vh;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:1000;transform:translate(-100%);transition:transform .3s cubic-bezier(.4,0,.2,1);box-shadow:20px 0 50px #0000004d}.dashboard-sidebar.open{transform:translate(0)}}.sidebar-nav-item.active .nav-icon{transform:scale(1.1);color:#1e40af}.sidebar-nav-item .nav-icon{transition:transform .2s ease-in-out}.sidebar-footer{padding:12px;border-top:1px solid rgba(255,255,255,.1);margin-top:auto}.sidebar-logout-btn{display:flex;align-items:center;gap:12px;width:100%;padding:10px 16px;background:#dc26261a;color:#ffffffe6;border:1px solid rgba(220,38,38,.3);border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s}.sidebar-logout-btn:hover{background:#dc262633;color:#fff;border-color:#dc262680}.sidebar-logout-btn .nav-icon{display:flex;align-items:center;justify-content:center;width:20px;height:20px}@media(max-width:899px){.sidebar-footer{position:static;background:#1e40af}}.dashboard-header{background:#f3f4f6;padding:6px 12px;display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;height:64px;box-sizing:border-box;border-bottom:1px solid #e5e7eb}.dashboard-header-left{display:flex;align-items:center;gap:12px;flex:0 0 auto}.dashboard-brand{font-weight:700;font-size:18px;color:#314380}.dashboard-company{font-size:18px;font-weight:800;color:#0f172a;margin-left:6px}.dashboard-header-right{display:flex;align-items:center;gap:10px;flex:1 1 auto;justify-content:flex-end;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px}.dashboard-header-btn{background:#2563eb;color:#fff;border:none;padding:6px 10px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:6px;transition:background .2s;white-space:nowrap;flex:0 0 auto}.dashboard-header-btn:hover{background:#1d4ed8}.dashboard-header-btn-secondary{background:#fff;color:#0f172a;border:1px solid rgba(15,23,42,.12)}.dashboard-header-btn-secondary:hover{background:#f8fafc;color:#0f172a;border-color:#0f172a2e}.dashboard-header-btn .icon{font-size:16px}.menu-btn{font-size:36px;background:none;border:none;cursor:pointer;display:none;line-height:1;padding:6px}.am-logo-img{height:36px}.am-logo-wrap{display:flex;align-items:center;max-width:340px;overflow:hidden}.am-header-left{display:flex;align-items:center;gap:12px}.am-site-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:inline-block;max-width:240px}.header-greeting{display:none;color:#0f172a;font-size:15px;font-weight:700;white-space:nowrap}.mobile-context{display:flex;flex-direction:column;gap:2px;font-size:12px;color:#1f2937}.mobile-context-company{font-weight:700}.mobile-context-user{color:#64748b}@media(max-width:899px){.menu-btn{display:block}}.label-small{display:none}.label-large{display:inline}@media(max-width:599px){.label-small{display:inline}.label-large{display:none}}@media(max-width:420px){.am-site-name{display:none}}@media(max-width:480px){.dashboard-header-btn{padding:6px 8px;font-size:12px}.dashboard-header-btn .icon{font-size:14px}.dashboard-lang-switch{margin-left:4px}.dashboard-lang-switch .lang-select{padding:4px 8px;font-size:12px}}@media(max-width:600px){.dashboard-header{padding:4px 8px;height:auto;min-height:56px;flex-wrap:wrap}.dashboard-header-right{flex-wrap:wrap;gap:6px;margin-top:4px}.dashboard-header-btn .label-text{display:none}.dashboard-header-btn .icon{margin:0}}.dashboard-header-right::-webkit-scrollbar{height:6px}.dashboard-header-right::-webkit-scrollbar-thumb{background:#00000014;border-radius:6px}.notifications-wrapper{position:relative}.notifications-dropdown{position:absolute;top:100%;right:0;width:300px;background:#fff;border:1px solid #e5e7eb;box-shadow:0 4px 12px #00000026;border-radius:8px;z-index:9999;display:none;padding:12px}.notifications-dropdown.active{display:block}.notifications-dropdown p{margin:0;padding:6px 0;border-bottom:1px solid #f1f1f1;font-size:14px}.notifications-dropdown p:last-child{border-bottom:none}.dashboard-lang-switch{display:flex;gap:6px;align-items:center}.dashboard-lang-switch .lang-select{appearance:none;border:1px solid rgba(0,0,0,.1);background:#fff;padding:6px 28px 6px 10px;border-radius:8px;font-weight:700;font-size:13px;cursor:pointer;box-shadow:0 1px 2px #0f172a14;background-image:linear-gradient(45deg,transparent 50%,#64748b 50%),linear-gradient(135deg,#64748b 50%,transparent 50%);background-position:calc(100% - 14px) calc(50% - 2px),calc(100% - 9px) calc(50% - 2px);background-size:5px 5px,5px 5px;background-repeat:no-repeat}.dashboard-lang-switch .lang-select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb33}.dashboard-lang-switch .lang-select:hover{border-color:#0003}.company-filter{margin-right:8px}.company-filter select{padding:6px 10px;border-radius:6px;border:1px solid rgba(0,0,0,.08);background:#fff;font-weight:600;cursor:pointer}@media(min-width:1024px){.header-greeting{display:block}.mobile-context{display:none}}.home-page{max-width:100%}.home-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;flex-wrap:wrap;position:relative;z-index:100;overflow:visible!important}.home-header-left{display:flex;gap:12px;flex:1;min-width:300px}.search-bar{flex:1;position:relative;display:flex;align-items:center}.search-bar input{width:100%;padding:12px 16px 12px 40px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;background:#fff}.search-bar .product-search-field__input{padding:12px 44px 12px 38px}.search-icon{position:absolute;left:12px;color:#6b7280}.category-filter{padding:12px 16px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;background:#fff;cursor:pointer;min-width:150px}.home-header-stats{display:flex;gap:12px}.stat-card{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:8px;min-width:150px;min-height:64px}.stat-card.sales{background:#10b981;color:#fff}.stat-card.weekly{background:#06b6d4;color:#fff}.stat-card.monthly{background:#7c3aed;color:#fff}.stat-card.yearly{background:#f97316;color:#fff}.stat-card.low-stock{background:#ef8644;color:#fff}.stat-card.expiring-soon{background:#d97706;color:#fff}.home-header-stats .stat-card{color:#fff}.home-header-stats .stat-card .stat-label,.home-header-stats .stat-card .stat-value{color:#fff!important}.payment-breakdown{border:1px solid #eef2f7;padding:8px;border-radius:8px;background:#fff}.payment-breakdown-table td{border-bottom:1px solid rgba(15,23,42,.04);font-size:14px;color:#111827}.payment-breakdown-table tr:last-child td{border-bottom:none}.sales-cards-grid{display:grid;gap:12px;align-items:stretch;grid-template-columns:repeat(4,minmax(0,1fr))}.sales-cards-grid .stat-card{min-width:0;width:100%}.financial-cards-grid{display:grid;gap:12px;align-items:stretch;grid-template-columns:repeat(4,minmax(0,1fr))}.financial-cards-grid .stat-card{min-width:0;width:100%;background:#fff;border:1px solid #e5e7eb}.stat-card.fin-total{border-left:4px solid #0ea5e9}.stat-card.fin-expenses{border-left:4px solid #ef4444}.stat-card.fin-gross{border-left:4px solid #22c55e}.stat-card.fin-net{border-left:4px solid #8b5cf6}.stat-card.profit .stat-icon{background:#fef3c7;color:#b45309}.stat-card.profit .stat-value{color:#b45309;font-weight:700}.stat-icon{font-size:20px}.stat-label{font-size:11px;opacity:.9;display:block;white-space:nowrap;line-height:1.2}.stat-value{font-size:clamp(12px,1.1vw,16px);font-weight:700;display:block;white-space:nowrap;line-height:1.2;overflow:hidden;text-overflow:ellipsis}.stat-card>div{display:flex;flex-direction:column;gap:2px}.home-content{display:grid;grid-template-columns:1fr 350px;gap:24px}.products-section{background:#fff;border-radius:12px;padding:24px}.products-section{max-height:calc(100vh - 220px);overflow-y:auto}.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}.product-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px 16px 0;position:relative;transition:transform .2s,box-shadow .2s;text-align:center;display:flex;flex-direction:column}.product-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.product-tags{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}.product-tag{display:inline-block;padding:4px 8px;border-radius:4px;font-size:10px;font-weight:600;color:#fff}.low-stock-tag{background:#ef4444}.type-tag{background:#6b7280}.country-tag{background:transparent;border:1px solid #6b7280;color:#374151}.product-icon{display:flex;align-items:center;justify-content:center;font-size:48px;text-align:center;margin:0 0 12px;color:#9ca3af;width:100%;height:160px;background:#f8fafc;border-radius:10px;overflow:hidden}.product-icon img{width:100%;height:100%;max-width:100%!important;max-height:none!important;object-fit:cover;border-radius:0}.product-price{background:#10b981;color:#fff;padding:6px 12px;border-radius:6px;font-weight:600;font-size:13px;text-align:right;margin:0;display:inline-block}.product-name{font-size:16px;font-weight:600;color:#111827;margin-bottom:0;clear:both;line-height:1.2;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.product-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:8px}.product-title-row .product-name{text-align:left;flex:1 1 auto;min-width:0}.product-title-row .product-price{flex:0 0 auto;text-align:right}.product-info{display:flex;justify-content:center;gap:12px;font-size:12px;color:#6b7280;margin-bottom:12px}.add-to-cart-btn{width:100%;padding:10px;background:#2563eb;color:#fff;border:none;border-radius:8px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;transition:background .2s;font-size:14px;margin-top:auto}.add-to-cart-btn:hover{background:#1d4ed8}.cart-section{background:#fff;border-radius:12px;padding:24px;height:fit-content;position:sticky;top:20px}.cart-section h3{font-size:20px;font-weight:700;margin-bottom:20px;color:#111827}.empty-cart{text-align:center;padding:60px 20px;color:#9ca3af}.empty-cart-icon{font-size:64px;margin-bottom:16px;opacity:.5}.empty-cart p{font-size:14px;margin:0}.cart-items{display:flex;flex-direction:column;gap:12px}.cart-item{display:flex;align-items:center;gap:12px;padding:12px;background:#f9fafb;border-radius:8px}.cart-item-info{flex:1}.cart-item-name{font-weight:600;color:#111827;margin-bottom:4px;font-size:14px}.cart-item-price{font-size:12px;color:#6b7280}.cart-item-controls{display:flex;align-items:center;gap:8px}.qty-btn{width:28px;height:28px;border:1px solid #d1d5db;background:#fff;border-radius:4px;cursor:pointer;font-weight:600;display:flex;align-items:center;justify-content:center}.qty-value{min-width:24px;text-align:center;font-weight:600;font-size:14px}.qty-input{width:80px;height:28px;border:1px solid #d1d5db;border-radius:4px;text-align:center;font-weight:600;font-size:14px;padding:0 4px}.cart-item-total{font-weight:600;color:#111827;min-width:80px;text-align:right;font-size:14px}.remove-btn{background:transparent;border:none;color:#ef4444;cursor:pointer;font-size:20px;padding:4px;width:24px;height:24px;display:flex;align-items:center;justify-content:center}@media(max-width:1200px){.home-content{grid-template-columns:1fr}.cart-section{position:static}}@media(max-width:800px){.home-header{flex-direction:column;align-items:stretch}.product-icon{margin:0 0 10px;height:140px}.product-icon img{width:100%;height:100%;max-width:100%!important;max-height:none!important}}@media(max-width:760px){.home-header-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}.sales-cards-grid,.financial-cards-grid{display:contents}.home-header-stats .stat-card{width:100%;min-width:0;box-sizing:border-box}.home-header-stats .stat-card .stat-label{font-size:10px}.home-header-stats .stat-card .stat-value{font-size:11px}}@media(min-width:761px)and (max-width:889px){.home-header-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%}.sales-cards-grid,.financial-cards-grid{display:contents}.home-header-stats .stat-card{width:100%;min-width:0;box-sizing:border-box}.home-header-stats .stat-card .stat-label{font-size:10px}.home-header-stats .stat-card .stat-value{font-size:12px}}@media(max-width:760px){.products-grid{grid-template-columns:1fr}}@media(min-width:761px)and (max-width:889px){.products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.cart-items{max-width:100%}.cart-item{min-width:0}.cart-item input[type=number]{max-width:120px}.add-to-cart-btn.added{background:#60a5fa;cursor:default}.cart-total{display:flex;justify-content:space-between;margin-top:16px;padding-top:12px;border-top:1px solid #e5e7eb;font-weight:700}.payment-methods{display:flex;gap:10px;margin:16px 0}.payment-btn{flex:1;padding:10px;border-radius:8px;border:1px solid #d1d5db;background:#f9fafb;cursor:pointer;font-weight:600;transition:none}.complete-sale-btn{width:100%;padding:12px;background:#16a34a;color:#fff;border:none;border-radius:10px;font-size:16px;font-weight:700;cursor:pointer}.bank-select{margin-top:12px}.bank-select label{display:block;font-size:14px;margin-bottom:6px;color:#374151}.bank-select select{width:100%;padding:12px;border-radius:8px;border:2px solid #2563eb;font-size:14px}.customer-info{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.customer-field label{display:block;font-size:13px;margin-bottom:6px;color:#374151}.customer-field input{width:100%;padding:10px;border-radius:8px;border:1px solid #d1d5db;font-size:14px}.customer-suggestions{grid-column:1 / -1;display:grid;gap:8px;padding:10px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff}.customer-suggestion{display:flex;justify-content:space-between;gap:12px;align-items:center;width:100%;padding:10px 12px;border:1px solid #dbeafe;border-radius:8px;background:#fff;text-align:left;cursor:pointer}.customer-suggestion strong{color:#0f172a}.customer-suggestion span{color:#475569;font-size:13px}.customer-match-banner{grid-column:1 / -1;display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 12px;border-radius:10px;background:#eff6ff;border:1px solid #bfdbfe}.customer-match-banner strong{display:block;color:#1d4ed8;margin-bottom:4px}.customer-match-banner span,.customer-match-credit{color:#1e3a8a;font-size:13px}.split-payments-toggle{margin:8px 0}.split-payments-panel{border:1px dashed #e5e7eb;padding:8px;border-radius:8px;margin-bottom:12px}.split-payment-row{display:flex;gap:8px;align-items:center;margin-bottom:8px}.split-payment-row select,.split-payment-row input{padding:8px;border-radius:6px;border:1px solid #e5e7eb}.remove-payment-btn{background:transparent;border:none;color:#ef4444;cursor:pointer;font-size:16px}.stat-card.clickable{cursor:pointer}.modal-overlay{position:fixed;inset:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:1000}.modal{background:#fff;width:500px;max-width:90%;border-radius:12px;padding:20px}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.modal-header button{background:none;border:none;font-size:20px;cursor:pointer}.low-stock-table{width:100%;border-collapse:collapse;font-size:14px;background:#fff;box-shadow:0 1px 3px #0000001a}.low-stock-table thead{background:#f3f4f6}.low-stock-table th{padding:12px 16px;text-align:left;font-weight:600;color:#374151;border-bottom:2px solid #e5e7eb;text-transform:uppercase;font-size:12px;letter-spacing:.5px}.low-stock-table td{padding:12px 16px;text-align:left;border-bottom:1px solid #e5e7eb;color:#1f2937}.low-stock-table tbody tr:hover{background:#f9fafb}.low-stock-table .danger{color:#dc2626;font-weight:700;font-family:monospace}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#0006;display:flex;justify-content:center;align-items:center;z-index:1000}.modal{background:#fff;border-radius:12px;padding:16px;width:90%;max-width:600px;max-height:80vh;display:flex;flex-direction:column}.modal-subtitle{color:#111827;font-size:14px;margin-top:-8px;margin-bottom:8px;opacity:.95}.spinner{display:inline-block;width:18px;height:18px;border:3px solid rgba(0,0,0,.15);border-top-color:#0009;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.modal-header h3{margin:0}.low-stock-table-container{flex:1;overflow-y:auto;border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:8px 0}.low-stock-table{width:100%;border-collapse:collapse}.low-stock-table th,.low-stock-table td{padding:8px;text-align:left;border-bottom:1px solid #eee}.low-stock-table td.danger{color:#dc2626;font-weight:600}.low-stock-table-container::-webkit-scrollbar{width:6px}.low-stock-table-container::-webkit-scrollbar-thumb{background-color:#0003;border-radius:3px}.low-stock-table-container::-webkit-scrollbar-track{background-color:transparent}.cart-section{background:#fff;padding:20px;border-radius:12px;box-shadow:0 4px 12px #0000000d;max-width:900px;margin:20px auto;font-family:Inter,sans-serif;width:100%;overflow:hidden}.cart-section h3{font-size:20px;margin-bottom:16px;font-weight:600}.empty-cart{text-align:center;color:#555}.empty-cart-icon{font-size:40px;margin-bottom:8px}.cart-items{display:flex;flex-direction:column;gap:12px;max-height:400px;overflow-y:auto;overflow-x:hidden;margin-bottom:16px}.cart-item{position:relative;display:block;padding:10px 36px 28px 12px;border-radius:10px;background:#f9f9f9;gap:8px;min-width:0;width:100%}.cart-item-name{font-weight:600;color:#111827;font-size:14px;margin-bottom:4px}.cart-item-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cart-item-price{display:inline-flex;align-items:center;gap:6px;min-width:0;font-weight:600;font-size:12px;color:#111827}.cart-price-input{width:90px;padding:4px 6px;border-radius:6px;border:1px solid #cbd5f5;text-align:left;font-weight:600;font-size:12px;color:#111827;background:#fff}.qty-btn{width:20px;height:20px;border:none;border-radius:6px;background:#4c6ef5;color:#fff;font-weight:700;cursor:pointer;line-height:1;padding:0}.qty-btn:hover{background:#3b5bdb}.qty-value{min-width:24px;text-align:center}.cart-item-total{font-weight:600;text-align:right;flex:0 0 auto;min-width:110px;position:absolute;bottom:6px;right:6px}.cart-remove-btn{background:transparent;border:none;color:#c92a2a;cursor:pointer;font-size:18px;position:absolute;top:6px;right:6px;width:22px;height:22px;display:flex;align-items:center;justify-content:center}.cart-item-qty{display:inline-flex;align-items:center;gap:6px}.cart-qty-input{width:70px;padding:4px 6px;border-radius:6px;border:1px solid #cbd5f5;text-align:center;font-weight:600;font-size:12px;background:#fff}.cart-total{display:flex;justify-content:space-between;font-weight:600;font-size:16px;margin-bottom:12px}.payment-methods{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}.payment-btn{padding:6px 14px;border:1px solid #4c6ef5;border-radius:8px;background:transparent;color:#4c6ef5;cursor:pointer;font-weight:500;transition:none}.payment-btn.active{background:#2563eb;border-color:#2563eb;color:#fff}.payment-btn:hover{background:#edf2ff}.bank-select,.split-payment-row{margin-bottom:12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.split-payment-row select,.split-payment-row input{padding:6px 10px;border-radius:6px;border:1px solid #ccc;flex:1 1 160px;min-width:140px}.split-payment-row button{border:none;border-radius:6px;background:#c92a2a;color:#fff;padding:6px 10px;cursor:pointer;flex:0 0 auto}.split-payment-row button:hover{background:#a61e1e}.complete-sale-btn{width:100%;padding:10px;background:#2b8a3e;color:#fff;border:none;border-radius:8px;font-weight:600;cursor:pointer;margin-top:12px}.complete-sale-btn:hover{background:#1b5e28}@media(max-width:900px){.cart-item-meta{align-items:flex-start}.cart-item-total{text-align:right;position:absolute;bottom:6px;right:6px}}.cart-qty-value{min-width:20px;text-align:center;font-weight:600;font-size:12px}@media(max-width:640px){.home-header-left{width:100%;min-width:0}.category-filter{display:none}.search-bar{width:100%}.customer-info{grid-template-columns:1fr}.customer-match-banner{flex-direction:column;align-items:flex-start}}.cc-backdrop{position:fixed;inset:0;background:#02061780;display:flex;align-items:center;justify-content:center;z-index:9999}.cc-modal{background:#fff;border-radius:8px;width:720px;max-width:94%;box-shadow:0 10px 30px #02061733;overflow:auto;max-height:90vh}.cc-header{padding:16px 20px;border-bottom:1px solid #eef2f7;display:flex;justify-content:space-between;align-items:center}.cc-header h3{margin:0;font-size:18px}.cc-header-close{background:none;border:none;font-size:18px;cursor:pointer;color:#64748b;padding:4px;border-radius:4px}.cc-header-close:hover{background:#f1f5f9;color:#1e293b}.cc-body{padding:16px 20px;max-height:60vh;overflow:auto}.cc-table{width:100%;border-collapse:collapse}.cc-table th,.cc-table td{padding:10px 8px;border-bottom:1px solid #f1f5f9;text-align:left;font-size:14px;vertical-align:middle}.cc-table th{background:#fafafa;font-weight:700;color:#374151;text-align:left}.cc-table th:nth-child(2),.cc-table th:nth-child(3),.cc-table th:nth-child(4){text-align:right}.cc-table td.num{text-align:right}.cc-table td:first-child{font-weight:500;color:#111827}.cc-table tfoot td{border-top:2px solid #e6eef8;font-weight:700}.cc-footer{padding:12px 20px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #eef2f7}.cc-close{padding:8px 14px;border-radius:8px;border:none;background:#2563eb;color:#fff;font-weight:600;cursor:pointer}.cc-close:hover{background:#1e40af}.cc-send{padding:8px 12px;border-radius:8px;border:1px solid #2563eb;background:#fff;color:#2563eb;cursor:pointer;font-weight:600}.cc-send:disabled{opacity:.6;cursor:not-allowed}.cc-copy{padding:8px 12px;border-radius:8px;border:1px solid #0f172a;background:#0f172a;color:#fff;cursor:pointer;font-weight:600}.cc-copy:hover{background:#1f2937}.cc-print{padding:8px 12px;border-radius:8px;border:1px solid #059669;background:#fff;color:#059669;cursor:pointer;font-weight:600}.cc-error{color:#b91c1c;margin-top:8px}.cc-success{color:#065f46;margin-top:8px}.cc-note{background:#f8fafc;padding:10px 12px;border-radius:6px;margin-top:8px;color:#0f172a;font-size:13px}.cc-summary{margin-top:14px;padding:10px 12px;border-radius:8px;background:#f8fafc;border:1px solid #e2e8f0;display:grid;gap:6px;font-size:13px}.cc-summary-row{display:flex;justify-content:space-between;gap:12px}.cc-summary-row span,.cc-summary-row strong{color:#000}@media(max-width:600px){.cc-modal{width:95%;max-width:95%}.cc-footer{flex-direction:column;align-items:stretch;gap:12px}.cc-footer input{min-width:auto!important;width:100%;max-width:300px}.cc-suggestions{width:300px!important;top:80px!important}.cc-send,.cc-print,.cc-close{width:100%;padding:10px}}@media print{.cc-backdrop{position:static;background:#fff;display:block}.cc-modal{box-shadow:none;border:none;width:80mm;max-width:80mm;margin:0;border-radius:0}.cc-header,.cc-footer{display:none!important}.cc-body{padding:10px}.cc-table{font-size:12px}.cc-table th,.cc-table td{padding:4px 2px}body{margin:0;padding:0}@page{size:80mm auto;margin:0}}.settings-container{padding:24px}.settings-title{margin-bottom:16px;display:flex;align-items:center;gap:8px}.settings-title .page-icon{display:inline-flex;color:#2563eb}.settings-card{display:flex;background:#fff;border-radius:8px;border:1px solid #e5e7eb;overflow:hidden}.settings-menu{width:220px;border-right:1px solid #e5e7eb;padding:12px}.menu-item{width:100%;padding:10px;border-radius:6px;border:none;background:none;text-align:left;cursor:pointer;margin-bottom:6px}.mi-icon{display:inline-flex;align-items:center;margin-right:8px}.menu-item.active{background:#eaf1ff;color:#2563eb;font-weight:600}.settings-content{flex:1;padding:24px;overflow-y:auto}@media(max-width:768px){.settings-card{flex-direction:column}.settings-menu{width:100%;border-right:none;border-bottom:1px solid #e5e7eb;display:flex;gap:8px;overflow-x:auto;padding:12px}.menu-item{white-space:nowrap;margin-bottom:0;min-width:fit-content}.settings-content{padding:16px}.company-logo-row{flex-direction:column;align-items:flex-start}.company-logo-row input[type=file]{width:100%}}.settings-content h4{margin-bottom:4px}.settings-content p{color:#6b7280;margin-bottom:16px}.btn{padding:10px 16px;border-radius:6px;border:none;cursor:pointer}.info-box{background:#eef4ff;padding:12px;border-radius:6px;margin-bottom:16px}.toggle-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #f1f5f9}.switch{position:relative;width:40px;height:22px}.switch input{display:none}.slider{position:absolute;inset:0;background:#d1d5db;border-radius:999px;cursor:pointer}.slider:before{content:"";position:absolute;width:18px;height:18px;background:#fff;border-radius:50%;top:2px;left:2px;transition:.2s}.switch input:checked+.slider{background:#22c55e}.switch input:checked+.slider:before{transform:translate(18px)}.time-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.time-box{border:1px solid #e5e7eb;border-radius:6px;padding:16px;text-align:center;cursor:pointer}.time-box.active{border-color:#2563eb;background:#eef4ff}.form-group{display:flex;flex-direction:column;margin-bottom:12px}.form-row{display:flex;gap:12px}.company-logo-row{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.company-logo-row input[type=file]{min-width:140px}input,select{padding:10px;border-radius:6px;border:1px solid #e5e7eb}.tax-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}@media(max-width:768px){.tax-grid{grid-template-columns:1fr}}.profile-wrapper{max-width:1000px;margin:0 auto;padding:40px 20px;animation:fadeIn .5s ease-in-out}.profile-hero{display:flex;align-items:center;gap:25px;margin-bottom:40px;padding:30px;background:linear-gradient(135deg,#2563eb,#1e40af);border-radius:24px;color:#fff;box-shadow:0 10px 25px #2563eb33}.avatar-circle{width:100px;height:100px;background:#fff3;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:4px solid rgba(255,255,255,.4);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:40px;font-weight:800;text-transform:uppercase}.hero-text h1{margin:0;font-size:28px}.role-badge{display:inline-block;margin-top:8px;padding:4px 12px;background:#fff3;border-radius:99px;font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:1px}.info-group{margin-bottom:40px}.info-group h3{font-size:14px;text-transform:uppercase;letter-spacing:1.5px;color:#64748b;margin-bottom:20px;padding-left:5px}.grid-layout{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}.profile-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:20px;display:flex;justify-content:space-between;align-items:center;transition:all .3s cubic-bezier(.4,0,.2,1)}.profile-card:hover{transform:translateY(-4px);box-shadow:0 12px 20px #0000000d;border-color:#2563eb}.profile-card.is-editing{border-color:#2563eb;background:#f8faff}.card-content{display:flex;align-items:center;gap:15px}.card-icon{font-size:24px;opacity:.8}.card-info label{display:block;font-size:11px;font-weight:700;color:#94a3b8;text-transform:uppercase}.card-info p{margin:4px 0 0;font-size:15px;color:#1e293b;font-weight:600}.card-info input,.card-info select{margin-top:5px;border:1px solid #cbd5e1;border-radius:6px;padding:6px 10px;width:100%;font-size:14px}.edit-btn{background:transparent;color:#2563eb;border:1px solid #e2e8f0;padding:6px 12px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;transition:all .2s}.edit-btn:hover{background:#2563eb;color:#fff;border-color:#2563eb}.save-btn{background:#2563eb;color:#fff;border:none;padding:6px 14px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer}.cancel-btn{background:#f1f5f9;border:none;margin-left:5px;padding:6px 10px;border-radius:8px;cursor:pointer}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.profile-hero{flex-direction:column;text-align:center}.grid-layout{grid-template-columns:1fr}}.pm-container{background-color:#f8fafc;min-height:100vh}.pm-card{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f;border:1px solid #e2e8f0;overflow:hidden}.pm-header{padding:20px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #f1f5f9;flex-wrap:wrap;gap:16px}.pm-title-section h2{margin:0;font-size:20px;color:#0f172a}.pm-subtitle{margin:4px 0 0;font-size:13px;color:#64748b}.pm-actions{display:flex;gap:12px;flex-wrap:wrap}.search-wrapper{position:relative}.search-field .product-search-field__input{min-width:260px}.search-icon{position:absolute;left:12px;top:10px;color:#94a3b8}.search{padding:10px 12px 10px 36px;border-radius:8px;border:1px solid #cbd5e1;font-size:14px;min-width:260px}.pm-button-group,.pm-view-toggle,.pm-action-buttons{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:720px){.pm-actions{flex-direction:column;align-items:stretch}.pm-button-group .btn{flex:1 1 140px}.pm-view-toggle{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.pm-action-buttons{width:100%}}.pm-table-viewport{width:100%;overflow-x:auto;background:#fff}.pm-table{width:100%;border-collapse:collapse;min-width:900px}.pm-table th{background:#f8fafc;padding:12px 16px;text-align:left;font-size:12px;font-weight:600;color:#475569;text-transform:uppercase;border-bottom:1px solid #e2e8f0}.pm-table td{padding:14px 16px;border-bottom:1px solid #f1f5f9;font-size:14px;color:#334155}.select-col{width:36px;text-align:center}.select-col input[type=checkbox]{width:16px;height:16px;cursor:pointer}tr:hover td{background-color:#f8fafc}.clickable-name{color:#2563eb;cursor:pointer;font-weight:600}.clickable-name:hover{text-decoration:underline}.img-placeholder{width:32px;height:32px;background:#f1f5f9;border-radius:6px;display:flex;align-items:center;justify-content:center}.product-image-cell{display:flex;align-items:center;gap:8px}.cat-pill{background:#f1f5f9;padding:4px 8px;border-radius:4px;font-size:12px}.price-text{font-family:Inter,sans-serif;font-weight:500}.price-text.sale{color:#10b981}.qty-pill{padding:2px 8px;border-radius:12px;font-size:12px;font-weight:600}.qty-pill.low{background:#fee2e2;color:#dc2626}.qty-pill.safe{background:#dcfce7;color:#15803d}.dim-text{color:#94a3b8;font-size:13px}.qty-detail{display:grid;gap:2px}.expiry-soon{background:#fff7ed;padding:4px 8px;border-radius:6px;color:#92400e;font-weight:600;border:1px solid rgba(249,115,22,.08)}.expiry-expired{background:#fee2e2;padding:4px 8px;border-radius:6px;color:#7f1d1d;font-weight:700;border:1px solid rgba(185,28,28,.08)}.visibility-dot{display:flex;align-items:center;gap:6px;font-size:13px}.visibility-dot:before{content:"";width:8px;height:8px;border-radius:50%}.product-thumb{width:48px;height:48px;object-fit:cover;border-radius:6px}.image-upload-btn{width:34px;height:34px;border:1px solid #dbe4f0;border-radius:8px;background:#fff;color:#2563eb;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:border-color .2s ease,background-color .2s ease}.image-upload-btn:hover:not(:disabled){border-color:#2563eb;background:#eff6ff}.image-upload-btn:disabled{color:#94a3b8;cursor:wait}.product-id-cell{min-width:150px}.product-id-cell code{display:inline-block;padding:4px 8px;border-radius:6px;background:#f8fafc;border:1px solid #e2e8f0;color:#334155;font-size:12px;word-break:break-all}.visibility-dot.active:before{background:#10b981}.visibility-dot.hidden:before{background:#94a3b8}.action-btns{display:flex;gap:8px;align-items:center}.tool-btn{background:#fff;border:1px solid #e2e8f0;padding:6px;border-radius:6px;cursor:pointer;transition:all .2s}.tool-btn.edit:hover{border-color:#2563eb;color:#2563eb}.tool-btn.delete:hover{border-color:#dc2626;color:#dc2626}.status-btn{border:none;padding:6px 12px;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;color:#fff}.status-btn.on{background:#10b981}.status-btn.off{background:#f97316}.center-msg{text-align:center;padding:40px;color:#94a3b8}.highlight-edited{animation:highlightFade 3s ease-in-out;box-shadow:0 6px 18px #6366f11f;border-radius:6px}@keyframes highlightFade{0%{background-color:#fffbeb}20%{background-color:#fffbeb}to{background-color:transparent}}.btn{padding:8px 14px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;border:none}.btn.primary{background:#2563eb;color:#fff}.btn.outline{background:#fff;border:1px solid #e2e8f0;color:#475569}.btn.gray{background:#f1f5f9;color:#475569}.btn:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.2)}@media(max-width:900px){.pm-header{flex-direction:column;align-items:stretch}.pm-actions{flex-direction:column}.pm-button-group,.pm-view-toggle,.pm-action-buttons{width:100%}.pm-button-group .btn{flex:1 1 auto}.search{min-width:100%}}:root{--primary: #2563eb;--primary-hover: #1d4ed8;--bg-main: #f8fafc;--text-dark: #0f172a;--text-muted: #64748b;--border: #e2e8f0;--white: #ffffff}.remove-image-btn{position:absolute;top:-8px;right:-8px;background:#dc2626;color:#fff;border:2px solid #fff;border-radius:50%;width:28px;height:28px;cursor:pointer;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #dc26264d;transition:all .2s ease;z-index:10}.remove-image-btn:hover{background:#b91c1c;transform:scale(1.1);box-shadow:0 4px 12px #dc262666}.remove-image-btn:active{transform:scale(.95)}.product-image-preview{margin-top:10px}.product-image-preview-card{position:relative;width:112px;height:112px;border-radius:14px;overflow:hidden;border:1px solid var(--border);background:#f8fafc}.product-image-preview-card img{width:100%;height:100%;object-fit:cover;display:block}.product-image-empty{min-height:112px;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc;color:var(--text-muted);display:flex;align-items:center;justify-content:center;padding:12px;font-size:13px}.product-form-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#0f172a80;display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.product-form-container{background:var(--white);width:100%;max-width:850px;height:90vh;display:flex;flex-direction:column;border-radius:16px;box-shadow:0 25px 50px -12px #00000040;overflow:hidden;animation:slideUp .3s ease-out}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.form-header{flex-shrink:0;display:flex;justify-content:space-between;align-items:center;padding:20px 32px;border-bottom:1px solid var(--border)}.form-header h2{margin:0;font-size:22px;font-weight:700;color:var(--text-dark)}.close-x-btn{background:#f1f5f9;border:none;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:20px;color:var(--text-muted);display:flex;align-items:center;justify-content:center}.form-body{flex:1;overflow-y:auto;padding:32px;background:#fff}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:13px;font-weight:600;color:var(--text-dark)}.form-group input,.form-group select{padding:12px 14px;border:1px solid #cbd5e1;border-radius:10px;font-size:14px;transition:all .2s}.form-group input:focus,.form-group select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 4px #2563eb1a}.form-footer{flex-shrink:0;padding:20px 32px;background:#f8fafc;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:12px}.btn-base{padding:12px 24px;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;transition:.2s}.btn-cancel{background:#fff;border:1px solid var(--border);color:var(--text-muted)}.btn-submit{background:var(--primary);color:#fff;border:none}.error-msg{background:#fef2f2;color:#dc2626;padding:12px;border-radius:8px;margin-bottom:24px;border:1px solid #fee2e2;font-size:14px}@media(max-width:768px){.product-form-container{height:100vh;border-radius:0}.form-grid{grid-template-columns:1fr;gap:16px}.form-footer{display:grid;grid-template-columns:1fr 1fr;gap:8px}.form-body{padding:20px}.form-header{padding:16px 20px}.form-header h2{font-size:18px}}.ac-wrapper{position:relative;width:100%}.ac-label{display:block;margin-bottom:6px;font-weight:500}.ac-input{width:100%;padding:10px 12px;border-radius:8px;border:1px solid #d1d5db;font-size:14px}.ac-dropdown{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 10px 24px #00000014;z-index:50;max-height:240px;overflow:auto}.ac-item{padding:10px 12px;cursor:pointer;font-size:14px}.ac-item:hover,.ac-item.active{background:#eff6ff}.ac-item.muted{color:#6b7280;cursor:default}.ac-match{background:#fde68a;color:#111827;padding:0 2px;border-radius:3px}.how-guide-page{min-height:100vh;padding:32px;background:radial-gradient(circle at top right,rgba(250,204,21,.2),transparent 28%),linear-gradient(180deg,#f8fafc,#eef4ff);color:#0f172a}.how-guide-hero,.how-guide-section{max-width:1180px;margin:0 auto 24px}.how-guide-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.9fr);gap:24px;align-items:stretch}.how-guide-copy,.how-guide-panel,.how-guide-card,.how-guide-note{background:#ffffffe6;border:1px solid rgba(148,163,184,.2);border-radius:24px;box-shadow:0 20px 45px #0f172a14}.how-guide-copy{padding:32px}.how-guide-eyebrow{display:inline-flex;margin-bottom:14px;padding:8px 14px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:.85rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.how-guide-copy h1,.how-guide-section-head h2,.how-guide-panel h2,.how-guide-note h2{margin:0 0 14px;line-height:1.1}.how-guide-copy h1{font-size:clamp(2rem,5vw,3.3rem)}.how-guide-copy p,.how-guide-section-head p,.how-guide-card li,.how-guide-note p,.how-guide-panel li{color:#475569;line-height:1.7}.how-guide-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.how-guide-primary,.how-guide-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border-radius:14px;text-decoration:none;font-weight:700}.how-guide-primary{background:#0f766e;color:#fff}.how-guide-secondary{border:1px solid #cbd5e1;color:#0f172a;background:#fff}.how-guide-panel{padding:28px}.how-guide-section{padding:32px}.how-guide-section-head{margin-bottom:22px}.how-guide-flow{display:flex;flex-direction:column;gap:14px}.how-guide-card{padding:24px}.how-guide-step{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;margin-bottom:16px;border-radius:16px;background:linear-gradient(135deg,#f59e0b,#f97316);color:#fff;font-weight:800;letter-spacing:.08em}.how-guide-card h3{margin:0 0 12px}.how-guide-arrow{display:flex;justify-content:center;align-items:center;color:#0f766e;font-size:28px;font-weight:800}@media(max-width:900px){.how-guide-page{padding:20px}.how-guide-hero{grid-template-columns:1fr}}@media(max-width:640px){.how-guide-copy,.how-guide-panel,.how-guide-section,.how-guide-card{padding:20px}.how-guide-actions{flex-direction:column}.how-guide-primary,.how-guide-secondary{width:100%}}.category-page{max-width:100%;width:100%;margin:0;box-sizing:border-box}.category-header{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:24px;flex-wrap:wrap;gap:20px}.header-title h2{margin:0;font-size:24px;color:#1e293b}.header-title p{margin:4px 0 0;color:#64748b;font-size:14px}.cat-tabs{display:flex;background:#e2e8f0;padding:4px;border-radius:12px;gap:4px}.tab-pill{border:none;padding:8px 16px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;color:#475569;background:transparent;transition:all .2s}.tab-pill.active{background:#fff;color:#2563eb;box-shadow:0 4px 6px -1px #0000001a}.category-card{background:#fff;border-radius:12px;border:1px solid #e2e8f0;width:100%;overflow:hidden;box-shadow:0 1px 3px #0000000d}.cat-top{padding:20px;display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #f1f5f9;flex-wrap:wrap}.search-wrapper{position:relative;flex:1;min-width:200px}.search-wrapper input{width:100%;padding:10px 15px 10px 40px;border-radius:10px;border:1px solid #cbd5e1;font-size:14px}.search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);opacity:.5}.action-btns{display:flex;gap:10px}.cat-scroll-area{width:100%;overflow-x:auto;background:#fff}.cat-grid{min-width:800px}.cat-row{display:grid;grid-template-columns:150px 1fr 150px 120px;padding:15px 20px;border-bottom:1px solid #f8fafc;align-items:center;color:#0f172a;background:#fff}.cat-row.header{background:#f8fafc;font-size:12px;font-weight:700;text-transform:uppercase;color:#64748b;letter-spacing:.5px}.col-id{color:#94a3b8;font-family:monospace}.col-name.bold{font-weight:600;color:#1e293b}.qty-tag{background:#eff6ff;color:#2563eb;padding:4px 10px;border-radius:99px;font-size:12px;font-weight:600}.col-actions{display:flex;gap:12px;justify-content:flex-end}.icon-edit,.icon-delete{background:#f8fafc;border:1px solid #e2e8f0;cursor:pointer;font-size:16px;width:34px;height:34px;border-radius:8px;color:#1e293b;display:inline-flex;align-items:center;justify-content:center;transition:transform .2s,background-color .2s,border-color .2s}.icon-edit:hover{transform:scale(1.06);background:#eff6ff;border-color:#bfdbfe}.icon-delete:hover{transform:scale(1.06);color:#dc2626;background:#fef2f2;border-color:#fecaca}.icon-edit:active,.icon-delete:active{transform:scale(.98)}.icon-edit:focus-visible,.icon-delete:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.cat-status{padding:40px;text-align:center;color:#94a3b8}.btn-icon-label{padding:10px 16px;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;border:none;white-space:nowrap}.btn-icon-label.primary{background:#2563eb;color:#fff}.btn-icon-label.outline{background:#fff;border:1px solid #e2e8f0;color:#475569}.product-type-row{grid-template-columns:minmax(0,1fr) 120px}.product-type-row.can-edit{cursor:pointer}.product-type-row.can-edit:hover{background:#f8fafc}.product-type-row.can-edit:active{background:#f1f5f9}.product-type-row.can-edit:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}@media(max-width:768px){.category-page{padding:12px}.category-header{flex-direction:column;align-items:stretch}.cat-tabs{width:100%}.product-type-row{grid-template-columns:minmax(0,1fr) 110px}}.cat-modal-overlay{position:fixed;inset:0;background:#11182766;display:flex;align-items:center;justify-content:center;z-index:50}.cat-modal{width:480px;background:#fff;border-radius:12px;padding:24px;box-shadow:0 20px 40px #0003}.cat-modal h2{margin-bottom:16px;font-size:20px;font-weight:700}.cat-modal label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:500}.cat-modal input{padding:12px;border-radius:8px;border:1px solid #d1d5db}.cat-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.cat-error{background:#fee2e2;color:#991b1b;padding:10px 12px;border-radius:8px;margin-bottom:12px}.error-message{background-color:#fee;border:1px solid #fcc;border-radius:4px;padding:12px;margin-bottom:16px;display:flex;align-items:center}.error-content{display:flex;align-items:center;width:100%}.error-icon{margin-right:8px;font-size:16px}.error-text{flex:1;color:#c33;font-size:14px}.error-close{background:none;border:none;color:#c33;font-size:18px;cursor:pointer;padding:0;margin-left:8px;width:20px;height:20px;display:flex;align-items:center;justify-content:center}.error-close:hover{background-color:#fcc;border-radius:50%}.user-page{padding:16px}.user-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:16px}.user-header h3{margin:0}.user-title{display:flex;align-items:center;gap:8px}.user-title .page-icon{display:inline-flex;color:#2563eb}.customer-history{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1rem;margin-bottom:1.5rem;box-shadow:0 1px 3px #0000000f}.history-header h4{margin:0 0 .75rem;color:#1e293b}.history-controls{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.history-controls input{padding:.6rem 1rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.9rem;min-width:220px}.history-controls .btn.gray{background:#f1f5f9;border:1px solid #e2e8f0;color:#475569}.history-error{margin-top:.5rem;color:#b91c1c;font-size:.85rem}.history-customer{margin-top:.5rem;color:#334155;font-size:.9rem}.history-empty{margin-top:.5rem;color:#64748b;font-size:.9rem}.history-table-wrapper{margin-top:.75rem;overflow-x:auto}.history-table{width:100%;border-collapse:collapse;min-width:720px}.history-table th{background:#f8fafc;padding:.75rem;text-align:left;font-size:.75rem;text-transform:uppercase;color:#64748b}.history-table td{padding:.75rem;border-bottom:1px solid #e2e8f0;font-size:.85rem}.user-table{display:grid;grid-template-rows:auto;gap:8px}.user-row{display:grid;grid-template-columns:2fr 1fr 1fr 2fr;align-items:center;gap:8px;padding:8px 12px;background:#fff;border-radius:10px;border:1px solid #eef2f7;box-shadow:0 1px 3px #1018280a}.user-row.header{font-weight:700;background:#f7fbff}.user-row .actions{display:flex;gap:8px}.user-row .actions button,.user-row .actions .icon{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:8px;border:1px solid #f1f5f9;background:#fff}.user-row .actions .icon svg{stroke:#334155}.user-row .actions .icon.disabled svg{stroke:#94a3b8}@media(max-width:899px)and (min-width:600px){.user-row,.user-row.header{grid-template-columns:1fr 1fr}.user-row>div{padding:4px 0}.user-row .actions{margin-top:8px}}@media(max-width:599px){.user-row{grid-template-columns:1fr;grid-auto-rows:auto;gap:6px;text-align:left;align-items:start;padding:12px}.user-row.header{display:none}.user-row>div{display:flex;justify-content:space-between;padding:4px 0}.user-row .actions{display:flex;gap:8px;margin-top:8px}}.modal-overlay{position:fixed;inset:0;background:#11182773;display:flex;align-items:center;justify-content:center;z-index:100}.modal{width:520px;max-height:85vh;overflow-y:auto;background:#fff;border-radius:12px;padding:24px;box-shadow:0 25px 50px #00000040}.modal h2{margin-bottom:16px;font-size:20px;font-weight:700}.modal label{display:flex;flex-direction:column;gap:8px;margin-bottom:14px;font-size:14px}.permissions-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}.permissions-grid label{flex-direction:row;align-items:center;gap:8px;font-weight:500}.permissions-grid input{width:auto}.modal input,.modal select{padding:12px;border-radius:8px;border:1px solid #d1d5db}.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.modal-error{background:#fee2e2;color:#991b1b;padding:10px 12px;border-radius:8px;margin-bottom:12px}.owner-console{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial;padding:20px;background:#f8fafc;min-height:100vh}.owner-hero{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.owner-hero h2{margin:0;font-size:22px;color:#0f172a}.owner-subtitle{margin:6px 0 0;font-size:13px;color:#64748b}.owner-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:16px}.owner-tabs{display:flex;gap:8px;flex-wrap:wrap}.tab-btn{padding:8px 12px;border-radius:999px;border:1px solid #e2e8f0;background:#fff;cursor:pointer;font-size:13px;color:#0f172a}.tab-btn.active{background:#2563eb;color:#fff;border-color:#2563eb}.owner-filter-pill{display:flex;align-items:center;gap:8px;background:#fff7ed;border:1px solid #fed7aa;padding:6px 10px;border-radius:999px;font-size:12px;color:#92400e}.owner-filter-pill .btn.link{background:none;border:none;color:#9a3412;cursor:pointer;font-weight:600}.owner-section{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px;box-shadow:0 1px 2px #0f172a0a}.owner-section h3{margin:0 0 12px;color:#0f172a}.owner-card{margin-top:12px;padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.owner-stat{display:flex;gap:8px;align-items:baseline;font-size:14px;margin-bottom:12px;color:#0f172a}.owner-table{width:100%;border-collapse:collapse}.owner-table th,.owner-table td{padding:10px 12px;border-bottom:1px solid #e2e8f0;text-align:left;font-size:13px;color:#334155}.owner-table th{background:#f1f5f9;font-weight:600;color:#475569}.owner-table tr:hover td{background:#f8fafc}.owner-console button{padding:6px 10px;border-radius:6px;border:1px solid #e2e8f0;background:#fff;cursor:pointer;font-size:12px}.owner-console .btn.outline{border:1px solid #cbd5e1;background:#fff}.owner-console .danger{color:#b91c1c;border-color:#fecaca}@media(max-width:900px){.owner-hero{flex-direction:column;align-items:flex-start}.owner-table th,.owner-table td{padding:8px}}.reports-page{padding:20px;background:#f6f7fb;min-height:100vh;box-sizing:border-box}.reports-hero{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.reports-hero h2{margin:0 0 6px;font-size:24px;color:#0f172a;font-weight:700}.reports-title{display:flex;align-items:center;gap:8px}.reports-title .page-icon{display:inline-flex;color:#314380}.reports-subtitle{margin:0;color:#64748b;font-size:14px}.reports-range{display:flex;align-items:center}.range-pill{background:#eef2ff;color:#4338ca;border:1px solid #c7d2fe;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:600}.error-banner{background:#fee2e2;color:#991b1b;border:1px solid #fecaca;padding:10px 12px;border-radius:8px;font-size:14px}.reports-toolbar{display:flex;flex-direction:column;gap:12px;background:#fff;padding:12px;border-radius:12px;box-shadow:0 2px 8px #0000000d;margin-bottom:20px}.view-tabs{display:flex;flex-wrap:wrap;gap:8px}.range-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.range-controls label{font-size:13px;font-weight:600;color:#64748b}.range-controls input[type=month],.range-controls input[type=date],.range-controls select{border:1px solid #e2e8f0;padding:8px 10px;border-radius:8px;font-family:inherit;font-size:14px;outline:none;background-color:#f8fafc}.company-filter{min-width:200px}.btn{padding:8px 12px;border-radius:8px;border:1px solid #e2e8f0;background:#f1f5f9;color:#374151;cursor:pointer;font-weight:600;font-size:13px}.btn.primary{background:#314380;color:#fff;border-color:#314380}.btn.outline{background:transparent;border:1px solid #314380;color:#314380}.btn.primary.active,.btn.primary[aria-pressed=true]{background:#1e2a5a;border-color:#1e2a5a}.report-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:20px}.card{background:#fff;border-radius:14px;box-shadow:0 4px 8px #0f172a0d;border:1px solid rgba(0,0,0,.02);padding:16px}.summary-card h4{margin:0 0 6px;font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:#64748b}.summary-card .value{font-size:18px;font-weight:800;color:#0f172a;margin:0 0 6px}.summary-card span{font-size:11px;color:#94a3b8}.report-charts{display:flex;flex-direction:column;gap:16px;margin-bottom:16px}.chart-card h4{margin:0;font-size:15px;color:#1e293b}.chart-card .sub{font-size:12px;color:#94a3b8;margin-top:4px;margin-bottom:16px}.chart-placeholder{background:#f1f5f9;border:2px dashed #cbd5e1;color:#64748b;height:200px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:13px}.report-grids{display:grid;grid-template-columns:1fr;gap:16px;margin:16px 0 20px}.table-card .table-header{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}.table-sub{font-size:12px;color:#94a3b8}.table-wrapper{max-height:360px;overflow:auto;border-radius:8px}.table{width:100%;border-collapse:collapse;font-size:13px}.table thead th{position:sticky;top:0;background:#f1f3f8;text-align:left;padding:10px;font-weight:600;cursor:pointer}.table td{padding:10px;border-bottom:1px solid #eef2f7}.table-empty{text-align:center;color:#94a3b8;padding:16px}.report-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-bottom:30px}.expiry-section h3{margin-top:8px}.expiry-table{width:100%;border-collapse:collapse;margin-top:12px}.expiry-table th,.expiry-table td{padding:10px 8px;border-bottom:1px solid #eef2f7;text-align:left}.expiry-table td.days-left{font-weight:700;color:#b45309}.expiry-table td.danger{color:#b91c1c}.reports-page.expiry-only .report-summary,.reports-page.expiry-only .report-charts,.reports-page.expiry-only .report-grids,.reports-page.expiry-only .report-actions{display:none!important}@media(min-width:900px){.report-summary{grid-template-columns:repeat(4,1fr)}.report-charts{flex-direction:row}.report-charts .chart-card{flex:1}.report-grids{grid-template-columns:1fr 1fr}.report-actions{display:flex;justify-content:flex-end}.btn.outline,.btn.primary{width:auto}}@media(max-width:600px){.reports-hero{flex-direction:column;align-items:flex-start}.report-actions{grid-template-columns:1fr}}.vat-report-page{padding:20px;background:#f6f7fb;min-height:100vh}.vat-report-card{max-width:760px;background:#fff;border-radius:12px;border:1px solid #e2e8f0;padding:20px}.vat-report-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:10px}.vat-note{color:#475569;font-size:12px}.vat-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:10px}.vat-toolbar input{border:1px solid #cbd5e1;border-radius:8px;padding:8px 10px}.vat-range{color:#64748b;font-size:13px;margin-bottom:14px}.vat-table{width:100%;border-collapse:collapse}.vat-table td{padding:12px 8px;border-bottom:1px solid #e2e8f0}.vat-table td:last-child{text-align:right;font-weight:700}.vat-actions{margin-top:16px;display:flex;gap:10px}.vat-actions .btn{display:inline-flex;align-items:center;gap:6px}.as-contact-row{display:flex;flex-direction:column;gap:6px}.as-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.as-chip{background:#fff;border:1px solid #e6eef6;padding:8px 10px;border-radius:10px;font-size:13px;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;min-width:120px}.as-chip:hover{background:#f0f7ff}.as-chip-main{font-weight:600;color:#103a63}.as-chip-sub{font-size:12px;color:#6b7785;margin-top:4px}.as-more{align-self:center;color:#666;font-size:13px;padding:6px}.as-page{padding:20px;display:flex;gap:20px;flex-direction:column}@media(min-width:901px){.as-page{flex-direction:row}.aside-custom{display:block!important;width:360px}}.as-selected{font-size:13px;color:#334155}.as-recipient-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.as-clear-btn{border:1px solid #e2e8f0;background:#fff;color:#475569;padding:6px 10px;border-radius:8px;font-size:12px;cursor:pointer}.as-clear-btn:hover{border-color:#cbd5e0;background:#f8fafc}.as-search{margin-bottom:12px}.as-contact-select{display:flex;align-items:center;margin-right:10px}.as-contact-select input{width:18px;height:18px;accent-color:#4299e1}@media(max-width:900px){.as-contact-row{flex-direction:column}.aside-custom{width:100%!important;margin-top:20px}}.as-header{margin-bottom:24px}.as-header h2{margin:0 0 8px;color:#1a202c;font-size:28px;font-weight:600}.as-subtitle{margin:0;color:#718096;font-size:16px}.as-form-container{display:flex;flex-direction:column;gap:24px;max-width:600px}.as-form-section{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px;box-shadow:0 1px 3px #0000001a}.as-label{display:block;margin-bottom:8px;font-weight:600;color:#2d3748;font-size:14px}.as-select{width:100%;padding:12px 16px;border:2px solid #e2e8f0;border-radius:8px;font-size:16px;background:#fff;transition:border-color .2s ease}.as-select:focus{outline:none;border-color:#4299e1;box-shadow:0 0 0 3px #4299e11a}.as-input{width:100%;padding:12px 16px;border:2px solid #e2e8f0;border-radius:8px;font-size:16px;background:#fff;transition:border-color .2s ease}.as-input:focus{outline:none;border-color:#4299e1;box-shadow:0 0 0 3px #4299e11a}.as-input:disabled{background:#f7fafc;color:#a0aec0;cursor:not-allowed}.as-textarea{width:100%;padding:12px 16px;border:2px solid #e2e8f0;border-radius:8px;font-size:16px;background:#fff;resize:vertical;min-height:120px;font-family:inherit;transition:border-color .2s ease}.as-textarea:focus{outline:none;border-color:#4299e1;box-shadow:0 0 0 3px #4299e11a}.as-character-count{text-align:right;font-size:12px;color:#718096;margin-top:4px}.as-character-count.as-warning{color:#e53e3e}.as-preview-title{margin:0 0 16px;font-size:18px;font-weight:600;color:#2d3748}.as-preview{background:#f7fafc;border:1px solid #e2e8f0;border-radius:8px;padding:16px;min-height:80px;font-family:inherit}.as-preview-content{white-space:pre-wrap;color:#2d3748;line-height:1.5}.as-preview-footer{margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0;color:#718096;font-size:14px}.as-preview-placeholder{color:#a0aec0;font-style:italic;text-align:center;padding:20px}.as-checkbox-container{margin-top:16px}.as-checkbox-label{display:flex;align-items:center;gap:12px;cursor:pointer;font-size:16px;color:#2d3748}.as-checkbox{width:18px;height:18px;accent-color:#4299e1}.as-checkbox-text{font-weight:500}.as-form-actions{display:flex;justify-content:center;padding:24px 0}.as-send-btn{background:linear-gradient(135deg,#4299e1,#3182ce);color:#fff;border:none;padding:14px 32px;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:8px;box-shadow:0 2px 4px #4299e133}.as-send-btn:hover:not(:disabled){background:linear-gradient(135deg,#3182ce,#2c5282);transform:translateY(-1px);box-shadow:0 4px 8px #4299e14d}.as-send-btn:disabled{background:#a0aec0;cursor:not-allowed;transform:none;box-shadow:none}.as-spinner{width:16px;height:16px;border:2px solid transparent;border-top:2px solid currentColor;border-radius:50%;animation:spin 1s linear infinite}.as-status{padding:12px 16px;border-radius:8px;font-weight:500;text-align:center;margin-top:16px}.as-status.as-success{background:#c6f6d5;color:#22543d;border:1px solid #9ae6b4}.as-status.as-error{background:#fed7d7;color:#742a2a;border:1px solid #feb2b2}.as-contacts-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.as-contacts-header h3{margin:0;color:#2d3748;font-size:18px;font-weight:600}.as-contacts-count{background:#e2e8f0;color:#4a5568;padding:2px 8px;border-radius:12px;font-size:12px;font-weight:500}.as-filter-buttons{display:flex;gap:8px;margin-bottom:16px}.as-filter-btn{padding:8px 16px;border:2px solid #e2e8f0;background:#fff;color:#4a5568;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.as-filter-btn:hover{border-color:#cbd5e0;background:#f7fafc}.as-filter-btn.active{background:#4299e1;color:#fff;border-color:#4299e1}.as-contacts-list{border:1px solid #e2e8f0;border-radius:12px;padding:16px;max-height:60vh;overflow-y:auto;background:#fff}.as-no-contacts{text-align:center;padding:40px 20px;color:#a0aec0}.as-no-contacts-icon{font-size:48px;margin-bottom:16px}.as-no-contacts-text{font-size:16px;font-weight:500;margin-bottom:8px;color:#4a5568}.as-no-contacts-subtext{font-size:14px}.as-contact-item{display:flex;align-items:center;justify-content:space-between;padding:12px;border:1px solid #f1f5f9;border-radius:8px;margin-bottom:8px;background:#fff;transition:all .2s ease}.as-contact-item:hover{border-color:#cbd5e0;box-shadow:0 1px 3px #0000001a}.as-contact-item:last-child{margin-bottom:0}.as-contact-info{flex:1;min-width:0}.as-contact-value{font-size:14px;font-weight:500;color:#2d3748;margin-bottom:4px;word-break:break-all}.as-contact-company{font-size:12px;color:#4a5568;margin-bottom:4px}.as-contact-date{font-size:12px;color:#718096}.as-edit-input{width:100%;padding:8px 12px;border:2px solid #e2e8f0;border-radius:6px;font-size:14px;background:#fff;transition:border-color .2s ease}.as-edit-input:focus{outline:none;border-color:#4299e1;box-shadow:0 0 0 3px #4299e11a}.as-contact-actions{display:flex;gap:6px;margin-left:12px;flex-shrink:0}.as-action-btn{padding:6px 8px;border:none;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:4px}.as-action-btn.use{background:#4299e1;color:#fff}.as-action-btn.use:hover{background:#3182ce}.as-action-btn.edit{background:#ed8936;color:#fff}.as-action-btn.edit:hover{background:#dd6b20}.as-action-btn.delete{background:#e53e3e;color:#fff}.as-action-btn.delete:hover{background:#c53030}.as-action-btn.save{background:#48bb78;color:#fff}.as-action-btn.save:hover{background:#38a169}.as-action-btn.cancel{background:#a0aec0;color:#fff}.as-action-btn.cancel:hover{background:#718096}.cashier-page{width:100%;padding:24px}.cashier-card{background:#fff;border-radius:12px;padding:32px;box-shadow:0 1px 3px #00000014}.cashier-title{font-size:20px;font-weight:700;color:#111827;margin-bottom:24px}.no-orders{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center}.no-orders-icon{width:56px;height:56px;border-radius:50%;background:#22c55e;color:#fff;font-size:28px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-bottom:16px}.no-orders h4{font-size:18px;font-weight:600;margin-bottom:8px;color:#111827}.no-orders p{font-size:14px;color:#6b7280}.demo-section{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:20px;margin-bottom:24px}.demo-section h4{margin:0 0 8px;color:#1f2937;font-size:16px;font-weight:600}.demo-section p{margin:0 0 16px;color:#6b7280;font-size:14px}.btn-complete-order{background:#059669;color:#fff;border:none;padding:12px 24px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:background-color .2s}.btn-complete-order:hover{background:#047857}:root{--primary-color: #2563eb;--bg-color: #f8fafc;--text-main: #1e293b;--border-color: #e2e8f0;--success: #22c55e;--danger: #ef4444}.order-page{padding:1rem;background:linear-gradient(180deg,#f8fafc,#eef5ff);min-height:100vh}.order-header{display:flex;flex-direction:column;gap:.9rem;margin-bottom:1rem}.order-heading-block{display:flex;flex-direction:column;gap:.35rem}.order-subtitle{margin:0;color:#475569;font-size:.92rem;line-height:1.5}.order-header-actions{display:flex;justify-content:flex-start;gap:.75rem}.order-summary-bar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:14px}.credit-summary-bar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px}.credit-summary-bar .summary-item{background:#ffffffeb;border:1px solid #dbe4f0;border-radius:16px;padding:8px 12px;min-width:200px;display:flex;flex-direction:column;gap:4px;font-size:13px;color:#475569}.credit-summary-bar .summary-item strong{font-size:16px;color:#0f172a}.order-summary-bar .summary-item{background:#fffffff0;border:1px solid #dbe4f0;border-radius:18px;padding:12px 14px;min-width:150px;display:flex;flex-direction:column;gap:4px;font-size:13px;color:#475569}.order-summary-bar .summary-item strong{font-size:16px;color:#0f172a}.summary-item-button-wrap{position:relative}.summary-value-button{margin-top:4px;padding:0;border:none;background:transparent;text-align:left;font-size:16px;font-weight:700;color:#0f172a;cursor:pointer}.credit-customers-popover{position:absolute;top:calc(100% + 10px);left:0;width:min(520px,calc(100vw - 40px));padding:14px;border-radius:18px;border:1px solid #dbe4f0;background:#fffffffa;box-shadow:0 20px 40px #0f172a24;z-index:20}.credit-customers-popover-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.credit-customers-popover-head span,.credit-customers-popover-item span,.credit-customers-popover-empty{color:#64748b;font-size:.88rem}.credit-customers-popover-list{display:flex;flex-direction:column;gap:10px;max-height:360px;overflow:auto}.credit-customers-popover-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0}.credit-customers-popover-item>div{display:flex;flex-direction:column;gap:4px;min-width:0}.order-title{display:flex;align-items:center;gap:.5rem;margin:0}.order-title .page-icon{display:inline-flex;color:var(--primary-color)}@media(min-width:768px){.order-header{flex-direction:row;justify-content:space-between;align-items:flex-start}}.order-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;width:100%}@media(min-width:640px){.order-filters{grid-template-columns:repeat(4,minmax(0,1fr));width:auto}}.order-filters input,.order-filters select,.btn{min-height:42px;padding:.6rem 1rem;border:1px solid var(--border-color);border-radius:12px;font-size:.9rem;outline:none;transition:border .2s}.order-search-field .product-search-field__input{padding:.6rem 2.75rem .6rem 2.3rem}.order-filters input:focus,.order-filters select:focus,.modal input:focus,.modal textarea:focus,.modal select:focus{border-color:var(--primary-color)}.table-wrapper{background:#fffffff0;border:1px solid #dbe4f0;border-radius:20px;box-shadow:0 18px 38px #0f172a14;overflow-x:auto}.orders-table{width:100%;border-collapse:collapse;text-align:left;font-size:.9rem;min-width:1200px}.orders-table th{background:#f1f5f9;padding:1rem;color:#64748b;font-weight:600;text-transform:uppercase;font-size:.75rem}.orders-table td{padding:1rem;border-bottom:1px solid var(--border-color);color:var(--text-main)}.status{display:inline-block;padding:.25rem .75rem;border-radius:99px;font-size:.8rem;font-weight:500}.status.completed,.status.sold{background:#dcfce7;color:#166534}.status.pending{background:#fef9c3;color:#854d0e}.status.reversed{background:#fee2e2;color:#991b1b}.status.mixed{background:#f1f5f9;color:#475569}.status.partial{background:#fef3c7;color:#92400e}.status.unpaid{background:#fee2e2;color:#991b1b}.status.paid{background:#dcfce7;color:#166534}.reversed-row{background-color:#fee2e2!important;border-left:4px solid #dc2626}.reversed-row td{color:#991b1b;font-weight:500}.reversed-row:hover{background-color:#fecaca!important}.even-row{background-color:#f8fafc}.odd-row{background-color:#fff}.even-row:hover,.odd-row:hover{background-color:#e2e8f0}.order-group-0{background-color:#fef7ff}.order-group-1{background-color:#f0f9ff}.order-group-0:hover{background-color:#f3e8ff}.order-group-1:hover{background-color:#e0f2fe}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;padding:1rem;z-index:1000}.modal{background:#fff;padding:2rem;border-radius:20px;width:100%;max-width:450px;box-shadow:0 20px 25px -5px #0000001a}.modal h3{margin-bottom:1.5rem}.modal-subtitle{margin:-.75rem 0 1rem;color:#475569;font-size:.95rem}.payment-guidance{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem;padding:.85rem 1rem;border-radius:12px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a}.payment-guidance strong{font-size:.95rem}.payment-guidance span{font-size:.86rem;line-height:1.5}.modal input,.modal textarea,.modal select{width:100%;padding:.75rem;margin:.5rem 0 1.25rem;border:1px solid var(--border-color);border-radius:12px}.modal-actions{display:flex;gap:1rem;justify-content:flex-end}.btn{padding:.6rem 1.2rem;border-radius:12px;cursor:pointer;font-weight:700}.btn.primary{background:#0f766e;color:#fff;border-color:#0f766e}.btn.outline{background:#f1f5f9;color:var(--text-main)}.order-section{margin-top:24px;background:#fffffff0;border-radius:20px;border:1px solid #dbe4f0;box-shadow:0 18px 38px #0f172a14;padding:18px}.order-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:12px}.order-section-error{color:#b91c1c;margin-bottom:8px;font-size:.9rem}.transfer-table,.credit-table{width:100%;border-collapse:collapse;font-size:.88rem;min-width:900px}.transfer-table th,.transfer-table td,.credit-table th,.credit-table td{padding:.75rem;border-bottom:1px solid var(--border-color)}.transfer-table th,.credit-table th{background:#f1f5f9;font-size:.75rem;text-transform:uppercase;color:#64748b;font-weight:600}.credit-paid-indicator{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:#16a34a}.credit-paid-dot{width:8px;height:8px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 2px #16a34a33}.credit-actions{display:flex;gap:8px;flex-wrap:wrap}.credit-items-list{display:flex;flex-direction:column;gap:6px;min-width:220px}.credit-items-list.mobile{margin-top:8px;min-width:0}.credit-item-line{font-size:.83rem;line-height:1.45;color:#334155;white-space:normal;word-break:break-word}.order-number-text{font-family:Consolas,Courier New,monospace;font-weight:700;letter-spacing:.02em;color:#0f172a}.orders-card-list,.order-card-list{display:none}.order-card-empty{padding:16px;text-align:center;color:#64748b}.order-card{padding:14px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 12px 28px #0f172a0f}.order-card.compact{padding:13px}.order-card-top,.order-card-actions,.order-card-grid,.order-card-meta{min-width:0}.order-card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.order-card-title{display:block;color:#0f172a;font-size:1rem}.order-card-date{display:block;margin-top:4px;color:#64748b;font-size:.86rem}.order-card-grid{margin-top:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.order-card-grid.single{grid-template-columns:1fr}.order-card-stat{padding:12px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0;min-width:0}.card-label{display:block;font-size:.72rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.04em}.order-card-stat strong{display:block;margin-top:6px;color:#0f172a;word-break:break-word}.order-card-subtext{display:block;margin-top:4px;color:#64748b;font-size:.82rem;line-height:1.45}.order-card-meta{margin-top:10px;color:#475569;font-size:.88rem}.order-card-actions{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}.order-card-actions .btn{flex:1 1 120px}@media(max-width:900px){.order-page{padding:.9rem}.order-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.order-page{padding:.75rem}.order-header,.order-header-actions,.order-section-header,.modal-actions{flex-direction:column;align-items:stretch}.order-title{font-size:1.05rem}.order-filters,.order-card-grid,.credit-summary-bar,.order-summary-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.order-filters,.order-summary-bar,.credit-summary-bar{display:grid;gap:8px}.order-summary-bar .summary-item,.credit-summary-bar .summary-item{min-width:0}.table-wrapper{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}.orders-table,.transfer-table,.credit-table{display:table}.orders-card-list,.order-card-list{display:none}.order-section{padding:14px;border-radius:16px}.modal{border-radius:16px;padding:14px}}@media(max-width:380px){.order-filters,.order-card-grid,.order-summary-bar,.credit-summary-bar{grid-template-columns:1fr}}.expenses-page{padding:16px}.expenses-grid{display:grid;grid-template-columns:1fr 2fr;gap:16px;margin-top:12px}.expense-form-card h4,.expense-table-card h4{margin:0 0 12px}.expense-form{display:grid;gap:12px}.expense-form label{display:grid;gap:6px;font-size:13px;color:#374151}.expense-form input,.expense-form textarea{width:100%;padding:10px;border-radius:8px;border:1px solid #d1d5db;font-size:14px}.expense-table-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.expense-table-actions{display:flex;gap:8px;align-items:center}.expense-range-select{padding:8px 10px;border-radius:8px;border:1px solid #d1d5db;background:#fff;font-size:13px}.expense-table-card .table{width:100%;border-collapse:collapse}.expense-table-card th,.expense-table-card td{padding:10px 12px;border-bottom:1px solid #e5e7eb;font-size:14px}.expense-table-card th{text-align:left;font-size:12px;color:#6b7280;text-transform:uppercase}.expense-table-card .num{font-weight:600}.expense-table-card .dim-text{color:#9ca3af}.expense-actions{display:flex;gap:6px;flex-wrap:wrap}.btn.small{padding:6px 10px;font-size:12px}.btn.danger{background:#ef4444;color:#fff;border:none}.btn.danger:hover{background:#dc2626}@media(max-width:980px){.expenses-grid{grid-template-columns:1fr}}.purchase-page{padding:20px;display:flex;flex-direction:column;gap:16px;background:linear-gradient(180deg,#f8fafc,#eef5ff);overflow-x:hidden}.purchase-header,.section-heading,.split-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.purchase-header h3,.section-heading h4,.section-heading h5{margin:0}.section-heading p,.split-header p,.modal-subtitle{margin:6px 0 0;color:#475569;line-height:1.6}.global-summary,.purchase-card{background:#fffffff0;border:1px solid #dbe4f0;border-radius:20px;box-shadow:0 18px 38px #0f172a14}.global-summary{padding:14px 18px;display:flex;align-items:center;justify-content:flex-start;gap:14px;background:linear-gradient(135deg,#fff7ed,#ecfccb);border-color:#fcd34d;position:relative}.global-summary-main{display:flex;flex-direction:column}.global-summary .label,.summary-metric .label,.card-label{display:block;font-size:.82rem;font-weight:700;letter-spacing:.03em;color:#64748b;text-transform:uppercase}.global-summary .value{display:block;margin-top:6px;font-size:1.15rem;color:#0f172a}.summary-value-button{margin-top:6px;padding:0;border:none;background:transparent;font-size:1.15rem;font-weight:700;color:#0f172a;cursor:pointer;text-align:left}.unpaid-popover{position:absolute;top:calc(100% + 10px);left:18px;width:min(520px,calc(100vw - 72px));border:1px solid #dbe4f0;border-radius:18px;background:#fffffffa;box-shadow:0 20px 40px #0f172a24;padding:14px;z-index:8}.unpaid-popover-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.credit-customers-popover-head-actions{display:flex;align-items:center;gap:10px}.unpaid-popover-head span,.unpaid-popover-item span,.unpaid-popover-empty{color:#64748b;font-size:.88rem}.unpaid-popover-list{display:flex;flex-direction:column;gap:10px;max-height:360px;overflow:auto}.unpaid-popover-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0}.unpaid-popover-item>div{display:flex;flex-direction:column;gap:4px;min-width:0}.purchase-grid{display:grid;gap:18px}.purchase-card{padding:18px;display:flex;flex-direction:column;gap:14px;min-width:0;overflow-x:hidden}.form-grid,.supplier-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.payment-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}.payment-field{min-width:0}.item-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.item-entry-action{grid-column:1 / -1}.item-entry-action .btn{width:100%}.form-group{display:flex;flex-direction:column;gap:8px;min-width:0}.form-group label,.date-range label{font-size:.92rem;font-weight:600;color:#334155}.purchase-page input,.purchase-page select,.modal input,.modal select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#0f172a;font-size:.95rem}.table-scroll,.summary-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.entry-table,.items-table,.summary-table{width:100%;border-collapse:separate;border-spacing:0}.items-table{table-layout:fixed;min-width:560px}.entry-table th,.items-table th,.summary-table th,.entry-table td,.items-table td,.summary-table td{padding:12px 10px;text-align:left;border-bottom:1px solid #e2e8f0;vertical-align:top;word-break:break-word}.entry-table th,.items-table th,.summary-table th{position:sticky;top:0;background:#f8fafc;color:#475569;font-size:.8rem;text-transform:uppercase;letter-spacing:.04em}.items-entry{display:flex;flex-direction:column;gap:12px}.summary-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.summary-metric{padding:12px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0}.summary-metric .value{display:block;margin-top:8px;font-size:1.05rem;color:#0f172a}.split-payments{display:flex;flex-direction:column;gap:12px}.split-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px;align-items:center}.split-placeholder{min-height:44px}.history-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-search{position:relative;min-width:0}.search-results{position:absolute;z-index:4;top:calc(100% + 4px);left:0;right:0;display:flex;flex-direction:column;background:#fff;border:1px solid #cbd5e1;border-radius:14px;box-shadow:0 14px 30px #0f172a1a;overflow:hidden}.search-results button{padding:10px 12px;border:none;background:#fff;text-align:left;cursor:pointer}.search-results button:hover{background:#f8fafc}.product-lines{display:flex;flex-direction:column;gap:4px;white-space:normal;min-width:0;word-break:break-word}.summary-scroll{padding-bottom:4px}.summary-table{min-width:720px}.history-card-list{display:grid;grid-template-columns:1fr;gap:12px}.history-card-item{padding:14px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 12px 28px #0f172a0f;min-width:0;overflow-x:hidden}.history-card-item-paid{background:linear-gradient(135deg,#f0fdf4,#ecfdf5);border-color:#bbf7d0}.history-card-top,.history-card-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.history-card-title{display:block;font-size:1rem;color:#0f172a}.history-card-meta{display:block;margin-top:4px;color:#475569;font-size:.86rem}.history-card-status{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;font-size:.82rem;font-weight:700;white-space:nowrap}.history-card-paid{background:#dcfce7;color:#166534}.history-card-open{background:#fff7ed;color:#9a3412}.history-card-date{display:block;margin-top:4px;color:#64748b;font-size:.88rem}.history-card-summary{margin-top:10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.history-card-summary,.history-card-summary>div,.summary-metric,.summary-highlight,.global-summary>div{min-width:0}.history-card-stat{padding:12px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0}.history-card-stat strong{display:block;margin-top:6px;color:#0f172a}.history-card-subtext{display:block;margin-top:4px;color:#64748b;font-size:.84rem}.history-card-progress{margin-top:4px;display:flex;flex-direction:column;gap:8px}.history-card-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.history-card-progress-bar{height:10px;border-radius:999px;background:#e2e8f0;overflow:hidden}.history-card-progress-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0f766e,#14b8a6)}.history-card-products{margin-top:10px;display:flex;flex-direction:column;gap:6px}.unpaid-amount{color:#92400e}.payment-alert{margin-bottom:14px;padding:14px;border-radius:16px;background:#eff6ff;border:1px solid #bfdbfe;display:flex;flex-direction:column;gap:8px;color:#1e3a8a}.summary-highlight{padding:14px 16px;border-radius:16px;background:linear-gradient(135deg,#fff7ed,#ecfccb);border:1px solid #fcd34d}.summary-highlight .label{display:block;font-size:.82rem;font-weight:700;color:#92400e;text-transform:uppercase;letter-spacing:.04em}.summary-highlight .value{display:block;margin-top:6px;font-size:1.3rem;font-weight:800;color:#92400e}.field-error{color:#b91c1c;font-size:.82rem;font-weight:600}.supplier-hint{color:#475569;font-size:.82rem}.supplier-credit-banner{display:grid;gap:6px;padding:14px 16px;border-radius:16px;background:linear-gradient(135deg,#eff6ff,#ecfeff);border:1px solid #bfdbfe;color:#1e3a8a}.empty-state{color:#64748b;text-align:center;padding:18px}.modal-overlay{position:fixed;inset:0;z-index:1100;padding:18px;display:flex;align-items:center;justify-content:center;background:#0f172a80}.modal{width:min(100%,460px);padding:24px;border-radius:24px;background:#fff;box-shadow:0 24px 48px #0f172a38}.modal h3{margin:0}.modal-actions{margin-top:18px;display:flex;justify-content:flex-end;gap:12px}.btn{min-height:42px;padding:0 14px;border-radius:12px;border:none;font-weight:700;cursor:pointer}.btn.primary{background:#0f766e;color:#fff}.btn.outline{background:#f8fafc;color:#0f172a;border:1px solid #cbd5e1}.btn.ghost{background:transparent;color:#b91c1c;border:1px solid #fecaca}.btn.small{min-height:38px}.save-button{align-self:flex-start}.modal-large{width:min(100%,920px);max-height:min(88vh,900px);overflow-y:auto}.modal textarea{width:100%;min-height:88px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#0f172a;font-size:.95rem;resize:vertical}.edit-payment-grid{margin-top:14px}.edit-items-list{display:flex;flex-direction:column;gap:12px}.edit-item-card{padding:14px;border:1px solid #dbe4f0;border-radius:18px;background:#f8fafc}.edit-item-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.edit-item-span-2{grid-column:span 2}.edit-item-actions{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.history-card-actions{flex-wrap:wrap}@media(max-width:900px){.purchase-page{padding:16px}.purchase-header,.global-summary,.section-heading,.split-header,.edit-item-actions{flex-direction:column;align-items:stretch}.split-row,.edit-item-grid{grid-template-columns:1fr}.edit-item-span-2{grid-column:auto}}@media(min-width:1024px){.item-entry-grid{grid-template-columns:2fr 1fr 1fr 1fr 1.2fr;align-items:end}.summary-strip{grid-template-columns:repeat(4,minmax(0,1fr))}.history-card-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}@media(max-width:640px){.purchase-page{padding:12px;gap:12px}.purchase-card,.modal{padding:14px;border-radius:16px}.purchase-header h3,.section-heading h4,.section-heading h5{font-size:1rem}.supplier-grid,.item-entry-grid,.history-filters,.summary-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.payment-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.form-group{gap:6px}.form-group label,.card-label,.global-summary .label,.summary-metric .label{font-size:.72rem}.purchase-page input,.purchase-page select,.modal input,.modal select{min-height:40px;padding:8px 10px;font-size:.88rem;border-radius:10px}.item-entry-action .btn,.save-button{min-height:40px}.items-table th,.items-table td,.summary-table th,.summary-table td{padding:9px 8px;font-size:.8rem}.summary-metric{padding:10px;border-radius:12px}.summary-metric .value,.global-summary .value,.summary-highlight .value{font-size:.95rem}.history-card-item{padding:12px;border-radius:14px}.history-card-top{align-items:flex-start}.history-card-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.history-card-products{margin-top:8px;gap:4px}.history-card-products .product-lines span{font-size:.82rem;line-height:1.45}.history-card-actions{justify-content:flex-start}.history-card-actions .btn{width:auto;min-width:132px}.modal-large{width:min(100%,100%);max-height:92vh}}@media(max-width:380px){.payment-summary-grid{grid-template-columns:1fr}.supplier-grid,.item-entry-grid,.history-filters,.summary-strip,.history-card-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.history-card-actions .btn,.edit-item-actions .btn{width:100%}}.items-added-counter{margin-bottom:10px;color:#0f172a;font-size:14px;font-weight:700}.orders-container{padding:24px;font-family:Inter,-apple-system,sans-serif;background-color:#f8f9fa;min-height:100vh}.orders-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.order-summary-bar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.order-summary-chip{background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:10px 14px;display:inline-flex;align-items:center;gap:8px}.order-summary-chip.active{border-color:#3498db;box-shadow:0 0 0 2px #3498db1f}.status-select{padding:10px 16px;border-radius:8px;border:1px solid #ddd;background-color:#fff;font-weight:600;cursor:pointer;outline:none}.main-layout{display:flex;gap:24px}.orders-list{flex:1;display:flex;flex-direction:column;gap:12px;max-height:calc(100vh - 150px);overflow-y:auto}.order-card{background:#fff;padding:16px;border-radius:10px;border:1px solid #eef0f2;box-shadow:0 2px 4px #00000005;transition:transform .2s,border-color .2s;display:flex;justify-content:space-between;align-items:center}.order-card:hover{border-color:#3498db;transform:translateY(-2px)}.order-info h3{margin:0 0 4px;font-size:1.1rem;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.order-info p{margin:2px 0;color:#666;font-size:.9rem}.order-new-badge{background:#e8f7ee;color:#1f7a45;border-radius:999px;padding:2px 8px;font-size:.72rem;font-weight:700}.details-panel{width:450px;background:#fff;padding:24px;border-radius:12px;border:1px solid #eef0f2;position:sticky;top:24px;height:fit-content;box-shadow:0 10px 15px -3px #0000001a}.empty-state{text-align:center;color:#999;padding:40px;border:2px dashed #eee;border-radius:12px}.order-items-list{background:#fcfcfc;border-radius:8px;padding:12px;margin:16px 0}.order-item{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #eee;font-size:.95rem}.btn-group{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}button{cursor:pointer;padding:10px 14px;border-radius:6px;border:none;font-weight:500;transition:opacity .2s}.btn-view{background:#3498db;color:#fff}.btn-confirm{background:#2ecc71;color:#fff}.btn-delivery{background:#f1c40f;color:#333}.btn-complete{background:#27ae60;color:#fff}.btn-cancel{background:#e74c3c;color:#fff;grid-column:span 2}button:hover{opacity:.9}.audit-container{padding:24px;background:#f8fafc;min-height:100vh}.audit-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 4px 6px -1px #0000001a}.audit-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;flex-wrap:wrap;gap:15px}.title-section h2{margin:0;font-size:22px;color:#1e293b}.subtitle{margin:4px 0 0;color:#64748b;font-size:14px}.audit-filter-box{display:flex;flex-direction:column;gap:8px;background:#f1f5f9;padding:12px 16px;border-radius:10px}.filter-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.filter-label{font-size:13px;font-weight:600;color:#475569}.audit-select{border:1px solid #cbd5e1;border-radius:6px;padding:5px 10px;font-size:14px;background:#fff;cursor:pointer}.audit-date-input{border:1px solid #cbd5e1;border-radius:6px;padding:5px 10px;font-size:14px;background:#fff;color:#334155}.audit-text-input{border:1px solid #cbd5e1;border-radius:6px;padding:5px 10px;font-size:14px;background:#fff;color:#334155;min-width:240px;max-width:100%}.audit-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-bottom:30px}.summary-stat-item{display:flex;align-items:center;gap:15px;padding:16px;border-radius:12px;background:#fff;border:1px solid #e2e8f0}.stat-icon{font-size:24px}.stat-val{display:block;font-size:20px;font-weight:700;color:#1e293b}.stat-label{font-size:12px;color:#64748b;font-weight:500}.sale-stat{border-left:4px solid #2563eb}.reversal-stat{border-left:4px solid #dc2626}.initial-stat{border-left:4px solid #059669}.audit-table-wrapper{overflow-x:auto;border:1px solid #f1f5f9;border-radius:8px}.audit-table{width:100%;border-collapse:collapse;min-width:800px}.audit-table th{background:#f8fafc;padding:14px 16px;text-align:left;font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.05em;border-bottom:2px solid #edf2f7}.audit-table td{padding:14px 16px;border-bottom:1px solid #f1f5f9;font-size:14px;color:#334155}.date-cell{color:#64748b;font-size:13px}.bold{font-weight:600}.note-cell{font-style:italic;color:#94a3b8;font-size:13px}.type-badge.sale,.type-badge.sold{background:#dbeafe;color:#1e40af}.table-loader,.empty-state{text-align:center;padding:40px!important;color:#64748b}.spinner{width:20px;height:20px;border:2px solid #f3f3f3;border-top:2px solid #2563eb;border-radius:50%;display:inline-block;animation:spin 1s linear infinite;margin-right:10px;vertical-align:middle}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:768px){.audit-container{padding:12px}.audit-card{padding:16px}.audit-header{flex-direction:column;align-items:stretch}}.stock-page{padding:24px;background:#f5f7fb;min-height:100vh}.stock-layout{display:flex;gap:20px;align-items:flex-start;min-width:0}.card{background:#fff;border-radius:12px;padding:16px;box-shadow:0 4px 12px #0000000d;flex:1;min-width:0;box-sizing:border-box}.stock-reconcile-toolbar-scroll{overflow:visible;margin-bottom:12px;padding-bottom:0;min-width:0}.stock-reconcile-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;min-width:0;margin-bottom:0;width:100%}.stock-reconcile-toolbar .btn{width:100%;min-width:0;white-space:normal;word-break:break-word;font-size:12px;padding:8px 10px;margin-top:0;line-height:1.25;min-height:42px}.mismatch-panel{border:1px solid #e6e9f2;background:#fbfcff;border-radius:10px;padding:12px;margin-bottom:12px;min-width:0;box-sizing:border-box}.mismatch-panel-header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px;font-size:13px;color:#334155}.mismatch-table-wrapper{max-height:220px;overflow-x:auto;overflow-y:auto;border-radius:8px}.mismatch-table-wrapper .table{min-width:760px}.mismatch-empty{color:#64748b;font-size:13px;padding:8px 0}.mismatch-causes-cell{min-width:280px;font-size:12px;color:#475569;line-height:1.45}.stock-search-bar{display:flex;gap:10px;align-items:center;margin-bottom:12px;flex-wrap:wrap;min-width:0}.stock-inline-warning{margin-top:12px;margin-bottom:12px}.stock-search-input{flex:1 1 360px;min-width:220px;max-width:100%;width:100%;box-sizing:border-box;padding:10px 12px;border-radius:10px;border:1px solid #e6e9f2;background:#fafbff;transition:box-shadow .12s ease,border-color .12s ease}.stock-search-field{flex:1 1 360px;min-width:220px}.stock-search-field .product-search-field__input{width:100%;box-sizing:border-box;padding:10px 44px 10px 38px;border-radius:10px;border:1px solid #e6e9f2;background:#fafbff;transition:box-shadow .12s ease,border-color .12s ease}.stock-search-input:focus{outline:none;border-color:#4c6ef5;box-shadow:0 6px 16px #4c6ef514}.stock-search-field .product-search-field__input:focus{outline:none;border-color:#4c6ef5;box-shadow:0 6px 16px #4c6ef514}.stock-supplier-select{padding:10px 12px;border-radius:10px;border:1px solid #e6e9f2;background:#fafbff;font-size:14px;cursor:pointer;transition:box-shadow .12s ease,border-color .12s ease;min-width:180px;max-width:100%;flex:1 1 180px}.stock-supplier-select:focus{outline:none;border-color:#4c6ef5;box-shadow:0 6px 16px #4c6ef514}.stock-selected-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;margin-bottom:14px;border:1px solid #dbe4f0;border-radius:14px;background:linear-gradient(135deg,#eff6ff,#f8fafc)}.stock-selected-label{display:block;font-size:12px;color:#64748b;margin-bottom:4px}.card-title.mt{margin-top:20px}.activity-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:12px}.activity-summary-card{border:1px solid #e6e9f2;background:#f8faff;border-radius:10px;padding:12px 14px}.activity-warning-causes{margin-top:8px;font-size:12px;line-height:1.45;color:#475569}.activity-summary-label{display:block;font-size:12px;color:#6b7280;margin-bottom:6px}.activity-summary-value{font-size:18px;font-weight:700;color:#0f172a}.activity-warning{margin-bottom:12px;border:1px solid #f5c2c7;background:#fff5f5;color:#9f1239;border-radius:10px;padding:12px 14px;font-size:13px;line-height:1.5;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.activity-warning-action{white-space:nowrap}.table-wrapper{max-height:420px;overflow:auto;border-radius:8px;min-width:0}.stock-items-table-wrapper{overflow-x:auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.stock-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.stock-product-card{border:1px solid #dbe4f0;border-radius:16px;background:#fff;padding:14px;display:flex;flex-direction:column;gap:12px;box-shadow:0 10px 24px #0f172a0d}.stock-product-card.is-selected{border-color:#93c5fd;box-shadow:0 14px 28px #2563eb1f}.stock-product-card-highlight{animation:stock-card-highlight 1.6s ease}.stock-product-card-head,.stock-product-card-actions,.mismatch-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.stock-product-card-head strong,.mismatch-card-head strong{display:block;color:#0f172a}.stock-product-card-head span,.mismatch-card-head span{color:#64748b;font-size:12px}.stock-product-card-meta,.mismatch-card-metrics,.detail-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}.stock-product-card-meta span,.mismatch-card-metrics span,.detail-card-grid span{display:block;font-size:12px;color:#64748b;margin-bottom:4px}.stock-product-card-meta strong,.mismatch-card-metrics strong,.detail-card-grid strong{color:#0f172a}.stock-product-card-actions .btn{flex:1 1 0}.mismatch-card-list,.detail-card-list{display:grid;gap:12px}.mismatch-card{width:100%;padding:14px;border:1px solid #dbe4f0;border-radius:14px;background:#fff;text-align:left;cursor:pointer}.mismatch-card.is-active{border-color:#93c5fd;background:#eff6ff}.mismatch-card-causes,.detail-card-note{font-size:12px;color:#475569;line-height:1.5}.detail-card{border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:14px;display:grid;gap:10px}.detail-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.detail-card-head strong{color:#0f172a}.detail-card-head span{font-size:12px;color:#64748b}.stock-adjust-modal{max-width:920px}.stock-adjust-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stock-items-table-wrapper .table{min-width:640px;table-layout:auto}.table.small td,.table.small th{padding:8px}.qty-cell{font-weight:700;font-family:monospace}.qty-cell.pos{color:#059669}.qty-cell.neg{color:#dc2626}.type-badge{padding:4px 10px;border-radius:6px;font-size:11px;font-weight:700;text-transform:uppercase}.type-badge.sale,.type-badge.sold,.type-badge.online.sale{background:#dbeafe;color:#1e40af}.type-badge.reversal{background:#fee2e2;color:#991b1b}.type-badge.initial,.type-badge.added{background:#dcfce7;color:#065f46}.reconciled-badge{display:inline-flex;margin-left:8px;padding:3px 8px;border-radius:999px;background:#ecfeff;color:#155e75;font-size:10px;font-weight:700;text-transform:uppercase}.qty{padding:4px 8px;border-radius:12px;font-weight:600}.qty.low{background:#ffe3e3;color:#c92a2a}.qty.normal{background:#e6fcf5;color:#087f5b}.selected-product-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.selected-product-row .label{font-size:12px;color:#6b7280;margin-bottom:4px}.modal{background:#fff;border-radius:12px;padding:16px;width:100%;max-width:860px;box-shadow:0 20px 50px #0003;max-height:90vh;overflow-y:auto}.modal-actions .btn-primary{width:auto}.history{max-height:360px}.history-panel{border:1px solid #e5e7eb;background:#f8fafc;min-height:240px}.history-state{min-height:120px;display:flex;align-items:center;justify-content:center;padding:16px;color:#475569;font-size:14px}.confirm-modal{max-width:520px}.confirm-text{color:#475569;line-height:1.5;margin:4px 0 12px}.confirm-count{font-weight:700;color:#0f172a;margin-bottom:8px}@media(max-width:900px){.stock-layout{flex-direction:column}.side-card{width:100%}.stock-search-input{flex:1 1 100%;min-width:100%}.stock-reconcile-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.stock-selected-strip,.stock-product-card-actions,.stock-product-card-head,.mismatch-card-head,.detail-card-head{flex-direction:column}.stock-adjust-grid{grid-template-columns:1fr}}@media(max-width:600px){.stock-page{padding:14px}.page-title{font-size:20px;margin-bottom:14px}.card{padding:12px;min-width:0}.table-wrapper{max-width:100%}.stock-items-table-wrapper .table,.mismatch-table-wrapper .table{min-width:560px}.stock-reconcile-toolbar{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.stock-reconcile-toolbar .btn{font-size:11px;padding:8px;min-height:40px}.stock-reconcile-toolbar .btn:nth-child(3){grid-column:1 / -1}.stock-reconcile-toolbar .btn:nth-child(4){grid-column:1 / 2}.stock-search-bar{gap:8px}.stock-supplier-select{flex:1 1 100%;min-width:100%}.stock-product-grid,.mismatch-card-list,.detail-card-list{grid-template-columns:1fr}}@keyframes stock-card-highlight{0%{transform:translateY(0);box-shadow:0 0 #2563eb00}30%{transform:translateY(-2px);box-shadow:0 18px 30px #2563eb29}to{transform:translateY(0);box-shadow:0 10px 24px #0f172a0d}}.price-page{padding:24px;background:#f5f7fb;min-height:100vh}.page-title{font-size:24px;font-weight:600;margin-bottom:20px;display:flex;align-items:center;gap:8px}.page-title .page-icon{display:inline-flex;color:#2563eb}.price-layout{display:flex;gap:20px;align-items:flex-start}.card{background:#fff;border-radius:12px;padding:16px;box-shadow:0 4px 12px #0000000d;flex:1}.side-card{width:380px;flex-shrink:0}.card-title{font-size:16px;font-weight:600;margin-bottom:12px}.search-bar{display:flex;gap:10px;align-items:center;margin-bottom:12px}.search-bar input[type=search]{flex:0 0 360px;min-width:220px;max-width:100%;padding:10px 12px;border-radius:10px;border:1px solid #e6e9f2;background:#fafbff;transition:box-shadow .12s ease,border-color .12s ease}.price-search-field{flex:0 0 360px;min-width:220px;max-width:100%}.price-search-field .product-search-field__input{padding:10px 44px 10px 38px;border-radius:10px;border:1px solid #e6e9f2;background:#fafbff;transition:box-shadow .12s ease,border-color .12s ease}.search-bar input[type=search]:focus{outline:none;border-color:#4c6ef5;box-shadow:0 6px 16px #4c6ef514}.price-search-field .product-search-field__input:focus{outline:none;border-color:#4c6ef5;box-shadow:0 6px 16px #4c6ef514}.search-loading{font-size:13px;color:#6b7280;padding:6px 8px}.table-wrapper{max-height:420px;overflow:auto;border-radius:8px}.table{width:100%;border-collapse:collapse;font-size:14px}.table thead th{position:sticky;top:0;background:#f1f3f8;text-align:left;padding:10px;font-weight:600}.table td{padding:10px;border-bottom:1px solid #eee}.price-cell{font-weight:600;font-family:monospace;color:#059669}.price-cell.dim{color:#6b7280;font-weight:400}.selected-row{background:#eef4ff}.form-group{margin-bottom:12px}.form-group label{display:block;font-size:13px;margin-bottom:4px;color:#555}.form-group input{width:100%;padding:10px;border-radius:8px;border:1px solid #ddd;outline:none}.form-group input:focus{border-color:#4c6ef5}.selected-product{background:#f1f3f8;padding:10px;border-radius:8px;font-weight:500}.current-price,.bought-price-info{background:#dcfce7;padding:10px;border-radius:8px;font-weight:600;color:#059669;font-family:monospace}.btn{padding:8px 14px;border-radius:8px;border:none;cursor:pointer;font-size:13px}.btn-primary{background:#4c6ef5;color:#fff;width:100%;margin-top:6px}.btn-primary:hover{background:#3b5bdb}.btn-primary.adjusting{background:#f59e0b;color:#fff}.btn-primary.adjusting:hover{background:#d97706}.btn-primary:disabled{background:#9ca3af;cursor:not-allowed}.btn-outline{background:transparent;border:1px solid #4c6ef5;color:#4c6ef5}.btn-outline:hover{background:#edf2ff}.modal-overlay{position:fixed;inset:0;background:#0f172a80;display:flex;align-items:center;justify-content:center;z-index:999;padding:20px}.modal{background:#fff;border-radius:12px;padding:16px;width:100%;max-width:480px;box-shadow:0 20px 50px #0003}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.modal-header button{background:transparent;border:none;font-size:20px;cursor:pointer}.modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}.modal-actions .btn-primary{width:auto;margin-top:0}@media(max-width:900px){.price-layout{flex-direction:column}.side-card{width:100%}.search-bar input[type=search]{flex:1;min-width:0}}.smart-popover{position:relative;display:inline-flex}.smart-popover-trigger{display:inline-flex}.smart-popover-panel{position:absolute;top:calc(100% + 8px);min-width:240px;max-width:320px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px;box-shadow:0 12px 32px #0f172a2e;z-index:20}.smart-popover-panel.right{right:0}.smart-popover-panel.left{left:0}.receipt-container{max-width:400px;margin:0 auto;padding:20px;font-family:Courier New,monospace;background:#f9f9f9;min-height:100vh}.receipt-actions{display:flex;gap:10px;margin-bottom:20px;justify-content:center}.btn-print,.btn-send,.btn-pair{padding:12px 20px;border:none;border-radius:8px;font-size:16px;cursor:pointer;transition:all .3s ease;flex:1;max-width:180px}.btn-print{background:#007bff;color:#fff}.btn-print:hover{background:#0056b3}.btn-pair{background:#6c757d;color:#fff}.btn-pair:hover:not(:disabled){background:#5a6268}.btn-pair.paired{background:#10b981}.btn-send{background:#28a745;color:#fff}.btn-send:hover{background:#1e7e34}.btn-pair:disabled{opacity:.6;cursor:not-allowed}.pair-popover{display:flex;flex-direction:column;gap:10px}.pair-title{font-weight:700;color:#0f172a}.pair-status{font-size:13px;color:#475569;background:#f8fafc;border:1px solid #e2e8f0;padding:8px 10px;border-radius:8px}.pair-status.ok{color:#065f46;background:#ecfdf5;border-color:#a7f3d0}.pair-status.warn{color:#b45309;background:#fffbeb;border-color:#fcd34d}.pair-actions{display:flex;justify-content:flex-end}.btn-pair-action{padding:8px 12px;border-radius:8px;border:1px solid #1d4ed8;background:#1d4ed8;color:#fff;font-weight:600;cursor:pointer}.btn-pair-action:disabled{opacity:.6;cursor:not-allowed}.receipt{background:#fff;border:1px solid #ddd;border-radius:8px;padding:20px;box-shadow:0 2px 10px #0000001a;font-size:14px;line-height:1.4}.receipt-header{text-align:center;margin-bottom:20px}.company-meta{display:flex;flex-direction:column;gap:6px}.receipt-header-lines{align-items:center;text-align:center}.company-meta-row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.company-address,.company-tin{white-space:normal}.receipt-header h1{margin:0;font-size:24px;color:#333}.temp-receipt-notice{background:#fef3c7;color:#92400e;padding:8px 12px;border-radius:4px;font-size:12px;margin-top:8px;text-align:center;border:1px solid #f59e0b}.receipt-divider{border-top:2px solid #333;margin:10px 0}.receipt-details{margin-bottom:20px}.detail-row{display:flex;justify-content:space-between;margin-bottom:5px}.label{font-weight:700}.receipt-items{margin-bottom:20px}.items-header{display:flex;justify-content:space-between;font-weight:700;border-bottom:1px solid #333;padding-bottom:5px;margin-bottom:10px}.item-name{flex:2}.item-qty,.item-price,.item-total{flex:1;text-align:right}.items-divider{border-top:1px dashed #999;margin:10px 0}.item-row{display:flex;justify-content:space-between;margin-bottom:5px;font-weight:700}.reversed-item{background:#fee2e2;border-left:3px solid #dc2626;padding-left:6px}.reversed-label{color:#991b1b;font-weight:700}.orig-qty{color:#6b7280;margin-left:4px}.total-row{display:flex;justify-content:space-between;font-weight:700;font-size:16px;border-top:2px solid #333;padding-top:10px;margin-top:10px}.receipt-payment{margin-bottom:20px}.payment-row{display:flex;justify-content:space-between;margin-bottom:5px}.receipt-footer{text-align:center;border-top:1px solid #ddd;padding-top:15px;color:#666}.loading,.error{text-align:center;padding:40px;font-size:18px}.error{color:#dc3545}@media(max-width:480px){.receipt-container{padding:10px}.receipt-actions{flex-direction:column}.btn-print,.btn-send{max-width:none}.receipt{padding:15px;font-size:12px}.receipt-header h1{font-size:20px}.items-header,.item-row{font-size:11px}.company-meta-row{flex-direction:column;gap:4px}}@media print{body.print-receipt *{visibility:hidden}body.print-receipt .receipt,body.print-receipt .receipt *{visibility:visible}body.print-receipt .receipt{position:absolute;left:0;top:0}.receipt-container{background:#fff;padding:0;margin:0;max-width:none}.receipt-actions{display:none!important}.receipt{border:none;box-shadow:none;padding:10px;margin:0;font-size:12px;width:80mm;max-width:80mm}.receipt-header h1{font-size:18px}body{margin:0;padding:0}@page{size:80mm auto;margin:0}}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:8px;padding:20px;max-width:400px;width:90%;box-shadow:0 4px 20px #00000026}.modal-content h3{margin:0 0 20px;color:#333}.form-group{margin-bottom:15px}.form-group label{display:block;margin-bottom:5px;font-weight:700;color:#555}.form-group input,.form-group textarea{width:100%;padding:10px;border:1px solid #ddd;border-radius:4px;font-size:14px;box-sizing:border-box}.form-group textarea{resize:vertical;min-height:80px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.btn-cancel,.btn-send-modal{padding:10px 20px;border:none;border-radius:4px;cursor:pointer;font-size:14px;transition:background-color .3s}.btn-cancel{background:#6c757d;color:#fff}.btn-cancel:hover{background:#5a6268}.btn-send-modal{background:#28a745;color:#fff}.btn-send-modal:hover:not(:disabled){background:#218838}.btn-send-modal:disabled{background:#6c757d;cursor:not-allowed}.st-page{padding:20px}.st-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.st-header h2{margin:0;font-size:26px;color:#1f2937}.st-header p{margin:6px 0 0;color:#6b7280}.st-grid{display:grid;gap:20px;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.st-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:20px;box-shadow:0 8px 24px #0f172a0f}.st-card h3{margin:0 0 14px;color:#111827;font-size:18px}.st-field{margin-bottom:14px;position:relative}.st-label{display:block;font-weight:600;font-size:13px;color:#374151;margin-bottom:6px}.st-input,.st-textarea,.st-select input{width:100%;border:1px solid #d1d5db;border-radius:10px;padding:10px 12px;font-size:14px;transition:border-color .2s,box-shadow .2s;background:#fff}.st-input:focus,.st-textarea:focus,.st-select input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.st-input.error,.st-field.has-error .st-input,.st-field.has-error .st-select input{border-color:#ef4444}.st-input.disabled{background:#f3f4f6;color:#6b7280}.st-textarea{min-height:90px;resize:vertical}.st-row{display:grid;gap:12px;grid-template-columns:1fr 1fr}.st-actions,.st-actions-inline{display:flex;justify-content:flex-end;margin-top:8px}.st-btn{background:#2563eb;color:#fff;border:none;border-radius:10px;padding:10px 18px;font-weight:600;cursor:pointer;transition:transform .15s,box-shadow .2s}.st-btn:hover{transform:translateY(-1px);box-shadow:0 6px 16px #2563eb40}.st-btn:disabled{background:#9ca3af;cursor:not-allowed;transform:none;box-shadow:none}.st-btn.ghost{background:#f3f4f6;color:#374151}.st-error{margin-top:6px;color:#ef4444;font-size:12px}.st-select{display:flex;align-items:center;gap:6px}.st-select.disabled{opacity:.7}.st-select-toggle{border:1px solid #d1d5db;background:#f9fafb;border-radius:10px;padding:8px 10px;cursor:pointer}.st-dropdown{position:absolute;z-index:10;width:100%;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:6px;margin-top:6px;max-height:220px;overflow-y:auto;box-shadow:0 10px 30px #0f172a1f}.st-option{width:100%;text-align:left;padding:8px 10px;border:none;background:transparent;border-radius:8px;cursor:pointer}.st-option:hover{background:#f3f4f6}.st-empty{padding:12px;color:#6b7280;text-align:center}.st-history-header{display:flex;justify-content:space-between;align-items:center}.st-link{background:transparent;border:none;color:#2563eb;cursor:pointer}.st-history-filters{display:flex;flex-direction:column;gap:10px;margin:12px 0}.st-table{border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}.st-table-head,.st-table-row{display:grid;grid-template-columns:1.3fr 1.2fr .4fr 1fr;gap:10px;padding:12px;align-items:center}.st-table-head{background:#f9fafb;font-weight:600;color:#374151;font-size:13px}.st-table-row{border-top:1px solid #f3f4f6;font-size:13px}.st-table-row small{display:block;color:#6b7280;margin-top:4px}.st-pagination{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:13px;color:#6b7280}.st-items{border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;margin-bottom:14px}.st-items-head,.st-items-row{display:grid;grid-template-columns:1.2fr .7fr .7fr .7fr 1fr .4fr;gap:10px;padding:10px 12px;align-items:center}.st-items-head{background:#f9fafb;font-weight:600;font-size:12px;color:#4b5563}.st-items-row{border-top:1px solid #f3f4f6;font-size:13px}.st-item-name small{display:block;color:#6b7280;margin-top:4px}.st-match{margin-bottom:14px;padding:12px 14px;border-radius:12px;border:1px solid #e5e7eb;background:#f8fafc}.st-match strong{display:block;font-size:13px}.st-match span{display:block;margin-top:4px;font-size:12px;color:#475569;line-height:1.45}.st-match.ok{border-color:#bbf7d0;background:#f0fdf4}.st-match.warn{border-color:#fed7aa;background:#fff7ed}.st-preview{margin-bottom:14px;border:1px solid #dbeafe;border-radius:12px;background:linear-gradient(180deg,#f8fbff,#eef6ff);overflow:hidden}.st-preview-head{padding:12px 14px;font-weight:700;color:#1e3a8a;background:#ffffff8c;border-bottom:1px solid #dbeafe}.st-preview-body{padding:14px;color:#475569;font-size:13px}.st-preview-error{color:#b91c1c}.st-preview-grid{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr));padding:14px}.st-preview-card{border-radius:10px;background:#fffc;border:1px solid #bfdbfe;padding:12px}.st-preview-card strong{display:block;color:#0f172a;font-size:14px}.st-preview-card span{display:block;margin-top:4px;color:#475569;font-size:12px;line-height:1.45}.st-summary{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:14px}.st-summary-card{border:1px solid #dbeafe;border-radius:12px;background:linear-gradient(180deg,#f8fbff,#eef6ff);padding:14px}.st-summary-card strong{display:block;font-size:18px;color:#1d4ed8}.st-summary-card span{display:block;margin-top:4px;font-size:12px;color:#475569}.st-note{margin-bottom:14px;padding:12px 14px;border-radius:12px;border:1px solid #e5e7eb;background:#f9fafb;color:#4b5563;font-size:13px;line-height:1.5}@media(max-width:980px){.st-grid{grid-template-columns:1fr}}@media(max-width:640px){.st-row,.st-table-head,.st-table-row,.st-items-head,.st-items-row,.st-preview-grid,.st-summary{grid-template-columns:1fr}}.pagination{display:flex;justify-content:center;align-items:center;gap:6px;padding:10px 0;flex-wrap:wrap}.page-btn,.page-number{padding:8px 12px;border:1px solid #cfcfcf;background:#fff;border-radius:6px;font-size:14px}.page-number.active{background:#111;color:#fff}.page-btn:disabled{opacity:.5;cursor:not-allowed}@media(min-width:768px){.page-btn,.page-number{padding:10px 16px}}.payment-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.payment-chart-card{border-radius:24px;border:1px solid rgba(148,163,184,.22);background:linear-gradient(180deg,#fffffffa,#f8fafcf0);box-shadow:0 20px 40px #0f172a14;padding:1rem}.payment-chart-card__header h3{margin:0;color:#0f172a;font-size:1rem}.payment-chart-card__header p{margin:.35rem 0 0;color:#64748b;font-size:.9rem}.payment-chart-card__canvas{margin-top:1rem;height:300px}.payment-chart-card__canvas.doughnut{height:320px}.payment-chart-empty{padding:1.25rem;border-radius:18px;border:1px dashed #cbd5e1;background:#f8fafceb;color:#64748b;text-align:center}@media(max-width:900px){.payment-chart-grid{grid-template-columns:1fr}}.payment-summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.9rem}.payment-summary-card{position:relative;overflow:hidden;padding:1rem 1.05rem;border-radius:18px;border:1px solid rgba(148,163,184,.24);background:radial-gradient(circle at top right,rgba(255,255,255,.95),transparent 42%),linear-gradient(160deg,var(--payment-soft) 0%,rgba(255,255,255,.96) 70%);box-shadow:0 18px 36px #0f172a14}.payment-summary-card:after{content:"";position:absolute;inset:auto -28px -28px auto;width:96px;height:96px;border-radius:999px;background:color-mix(in srgb,var(--payment-accent) 16%,white)}.payment-summary-card__label{position:relative;z-index:1;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--payment-accent)}.payment-summary-card__amount{position:relative;z-index:1;display:block;margin-top:.55rem;font-size:1.15rem;line-height:1.2;color:#0f172a}.payment-cards-empty{padding:1rem;border-radius:16px;border:1px dashed #cbd5e1;color:#64748b;background:#f8fafceb;text-align:center}.payments-summary-page{min-height:100vh;padding:1rem;background:radial-gradient(circle at top right,rgba(14,165,233,.08),transparent 28%),linear-gradient(180deg,#f7fbff,#eef4f7)}.payments-summary-hero,.payments-summary-panel__header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.payments-summary-title{display:flex;align-items:center;gap:.55rem;margin:0;color:#0f172a}.payments-summary-title .page-icon{display:inline-flex;color:#0f766e}.payments-summary-subtitle{max-width:720px;margin:.55rem 0 0;color:#475569;line-height:1.6}.payments-refresh-btn{display:inline-flex;align-items:center;gap:.5rem}.payments-summary-overview{margin-top:1rem;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.payments-overview-card,.payments-summary-panel{border-radius:24px;border:1px solid rgba(148,163,184,.22);background:#ffffffeb;box-shadow:0 24px 40px #0f172a12}.payments-overview-card{padding:1rem 1.1rem}.payments-overview-card.highlight{background:radial-gradient(circle at top right,rgba(14,165,233,.18),transparent 32%),linear-gradient(135deg,#0f766e,#155e75);color:#f8fafc}.payments-overview-card span,.payments-overview-card small{display:block}.payments-overview-card span{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:inherit;opacity:.9}.payments-overview-card strong{display:block;margin:.65rem 0 .35rem;font-size:1.25rem;color:inherit}.payments-overview-card small{color:inherit;opacity:.72;line-height:1.5}.payments-summary-panel{margin-top:1rem;padding:1.1rem}.payments-summary-panel__header h2{margin:0;color:#0f172a;font-size:1.05rem}.payments-summary-panel__header p{margin:.35rem 0 0;color:#64748b;line-height:1.5}.payments-summary-filters{margin-top:1rem;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9rem}.payments-summary-filters label{display:flex;flex-direction:column;gap:.45rem;color:#334155;font-size:.92rem}.payments-summary-filters input,.payments-summary-filters select{min-height:44px;padding:.7rem .9rem;border-radius:14px;border:1px solid #cbd5e1;background:#fff;color:#0f172a;outline:none}.payments-summary-filters input:focus,.payments-summary-filters select:focus{border-color:#0f766e;box-shadow:0 0 0 3px #0f766e1f}.payments-summary-filter-actions{display:flex;align-items:end;gap:.75rem}.payments-summary-state{padding:1.25rem;border-radius:18px;background:#f8fafcf2;border:1px dashed #cbd5e1;color:#64748b;text-align:center}.payments-summary-state.empty{background:#fffbebc7;border-color:#d9770640;color:#92400e}.payments-summary-results{color:#64748b;font-size:.9rem}.payments-table-wrapper{margin-top:1rem;overflow-x:auto;border-radius:20px;border:1px solid #dbe4f0}.payments-table{width:100%;min-width:780px;border-collapse:collapse}.payments-table th{padding:.95rem 1rem;background:#f8fafc;color:#64748b;font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;text-align:left}.payments-table td{padding:1rem;border-top:1px solid #e2e8f0;color:#0f172a;vertical-align:top}.payments-order-group-row td{padding:0;background:#f8fbff}.payments-order-group{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.85rem 1rem;border-top:1px solid #dbe4f0}.payments-order-group strong{display:block;color:#0f172a}.payments-order-group span{color:#64748b;font-size:.9rem}.payments-order-group__meta{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.payments-product-cell,.payments-method-cell{display:flex;flex-direction:column;gap:.35rem}.payments-product-cell strong{color:#0f172a}.payments-product-cell span,.payments-method-cell small{color:#64748b;line-height:1.45}.payments-method-pill{display:inline-flex;width:fit-content;padding:.4rem .75rem;border-radius:999px;background:#0f766e1f;color:#0f766e;font-size:.82rem;font-weight:700}.payments-muted-cell{color:#94a3b8}.payments-card-list{display:none;margin-top:1rem;gap:.9rem}.payments-detail-card{padding:1rem;border-radius:18px;border:1px solid #e2e8f0;background:linear-gradient(180deg,#fff,#f8fafc)}.payments-detail-card__top,.payments-detail-card__meta,.payments-detail-card__payment{display:flex;gap:.65rem}.payments-detail-card__top{justify-content:space-between;align-items:flex-start}.payments-detail-card__meta{margin-top:.75rem;flex-wrap:wrap;color:#64748b;font-size:.88rem}.payments-detail-card__payment{margin-top:.9rem;flex-direction:column}.payments-detail-card__date{margin-top:.35rem;color:#64748b;font-size:.88rem}.payments-order-items{margin-top:1rem;display:flex;flex-direction:column;gap:.8rem}.payments-order-item{display:flex;justify-content:space-between;gap:.75rem;padding:.85rem .9rem;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0}.payments-order-item>div:first-child{display:flex;flex-direction:column;gap:.28rem}.payments-order-item>div:first-child span{color:#64748b;font-size:.86rem}.payments-order-item__meta{display:flex;flex-direction:column;align-items:flex-end;gap:.3rem;color:#475569;text-align:right}.payments-order-total{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-top:.85rem;border-top:1px solid #e2e8f0}.payments-order-total span{color:#64748b}.payments-order-total strong{color:#0f172a;font-size:1rem}.payments-pagination-wrap{margin-top:1rem}@media(max-width:1100px){.payments-summary-overview,.payments-summary-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:768px){.payments-summary-page{padding:.85rem}.payments-summary-hero,.payments-summary-panel__header,.payments-summary-filter-actions{flex-direction:column;align-items:stretch}.payments-table-wrapper{display:none}.payments-card-list{display:grid}.payments-order-item{flex-direction:column}.payments-order-item__meta{align-items:flex-start;text-align:left}}@media(max-width:560px){.payments-summary-overview,.payments-summary-filters{grid-template-columns:1fr}}.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-content{flex:1 0 auto;min-height:0}.app-shell>.am-footer{margin-top:auto}:root{--primary: #0f766e;--primary-dark: #0b5f59;--primary-light: #5eead4;--muted: #6b6b6b;--bg: #f8fafc;--bg-light: #f3f4f6;--card: #ffffff;--danger: #e02424;--success: #16a34a}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:var(--bg);color:#111827;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{cursor:pointer}.container{padding:16px;margin:0 auto;max-width:1100px}.card{background:var(--card);border-radius:10px;padding:12px;box-shadow:0 1px 3px #0000000f}.row{display:flex;flex-direction:column;gap:12px}@media(min-width:900px){.row{flex-direction:row}}
