.sidebar{width:260px;height:100%;background:#f5f5f5;display:flex;flex-direction:column;padding:24px 16px;box-sizing:border-box;border-right:1px solid #e5e5e5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;overflow:hidden}.sidebar-header{display:flex;align-items:center;gap:12px;margin-bottom:32px;padding-bottom:20px;border-bottom:1px solid #e5e5e5}.sidebar-logo{color:#2e7d32;flex-shrink:0}.sidebar-title{margin:0;font-size:18px;font-weight:600;color:#0f172a;letter-spacing:.3px;line-height:1.4}.sidebar-nav{flex:1;overflow:hidden}.sidebar-menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.sidebar-link{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border-radius:10px;border:none;background:transparent;color:#64748b;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;text-decoration:none;letter-spacing:.2px;line-height:1.5;font-family:inherit}.sidebar-link:hover{background:#e8f5e9;color:#0f172a}.sidebar-link.active{background:#2e7d32;color:#fff;font-weight:600}.sidebar-link.active .sidebar-icon{color:#fff}.sidebar-icon{color:#94a3b8;flex-shrink:0}.sidebar-link:hover .sidebar-icon,.sidebar-link.active .sidebar-icon{color:#fff}.sidebar-logout{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border-radius:10px;border:none;background:transparent;color:#64748b;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s ease;letter-spacing:.2px;line-height:1.5;font-family:inherit;margin-top:auto}.sidebar-logout:hover{background:#2e7d32;color:#fff;box-shadow:0 4px 12px #2e7d324d}.sidebar-logout:active{transform:translateY(1px)}.sidebar-nav::-webkit-scrollbar{width:6px}.sidebar-nav::-webkit-scrollbar-track{background:transparent}.sidebar-nav::-webkit-scrollbar-thumb{background:#475569;border-radius:3px}.sidebar-nav::-webkit-scrollbar-thumb:hover{background:#64748b}@media(max-width:768px){.sidebar{width:240px;padding:20px 12px}.sidebar-title{font-size:16px}.sidebar-link,.sidebar-logout{padding:10px 12px;font-size:13px}}.shop-chat-toggle{position:fixed;bottom:26px;right:26px;height:42px;padding:0 16px;border-radius:21px;background:#1a1a1a;border:none;cursor:pointer;display:flex;align-items:center;gap:7px;color:#fff;font-size:13px;font-weight:500;font-family:inherit;letter-spacing:.2px;box-shadow:0 2px 12px #00000038;transition:background .18s,transform .15s,box-shadow .18s;z-index:9999}.shop-chat-toggle:hover{background:#2e7d32;box-shadow:0 4px 18px #2e7d3259}.shop-chat-toggle.open{background:#424242;border-radius:50%;width:42px;height:42px;padding:0;justify-content:center}.shop-chat-toggle-label{font-size:13px;font-weight:500}.shop-chat-panel{position:fixed;bottom:78px;right:26px;width:360px;height:510px;background:#fff;border-radius:16px;box-shadow:0 8px 40px #0000001f,0 1px 4px #0000000d;display:flex;flex-direction:column;overflow:hidden;z-index:9998;border:1px solid #e8e8e8;animation:panel-in .22s cubic-bezier(.22,1,.36,1)}@keyframes panel-in{0%{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}.shop-chat-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #f2f2f2;flex-shrink:0;background:#fff}.shop-chat-header-left{display:flex;align-items:center;gap:7px}.shop-chat-status-dot{width:7px;height:7px;background:#4caf50;border-radius:50%;flex-shrink:0}.shop-chat-header-icon{color:#555}.shop-chat-header-name{font-size:13.5px;font-weight:600;color:#111;letter-spacing:.1px}.shop-chat-header-actions{display:flex;align-items:center;gap:4px}.shop-chat-icon-btn{background:none;border:none;cursor:pointer;color:#9e9e9e;padding:5px;border-radius:7px;display:flex;align-items:center;justify-content:center;transition:color .15s,background .15s}.shop-chat-icon-btn:hover{background:#f5f5f5;color:#333}.shop-chat-chips{padding:9px 12px 7px;display:flex;gap:5px;flex-wrap:wrap;flex-shrink:0;border-bottom:1px solid #f5f5f5}.shop-chat-chip{background:#f7f7f7;border:1px solid #ebebeb;border-radius:20px;padding:4px 10px;font-size:11.5px;font-weight:500;color:#444;cursor:pointer;font-family:inherit;transition:all .14s;white-space:nowrap}.shop-chat-chip:hover:not(:disabled){background:#1a1a1a;color:#fff;border-color:#1a1a1a}.shop-chat-chip:disabled{opacity:.4;cursor:not-allowed}.shop-chat-messages{flex:1;overflow-y:auto;padding:14px 13px 8px;display:flex;flex-direction:column;gap:10px}.shop-chat-messages::-webkit-scrollbar{width:4px}.shop-chat-messages::-webkit-scrollbar-track{background:transparent}.shop-chat-messages::-webkit-scrollbar-thumb{background:#e0e0e0;border-radius:2px}.shop-msg-row{display:flex;gap:7px;align-items:flex-end;animation:msg-appear .18s ease}@keyframes msg-appear{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.shop-msg-row.user{flex-direction:row-reverse}.shop-msg-avatar{width:27px;height:27px;border-radius:50%;background:#f0faf0;color:#2e7d32;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-bottom:2px;border:1px solid #e0f0e0}.shop-msg-avatar.user-avatar{background:#f0f4ff;color:#3949ab;border-color:#dde4f8}.shop-msg-bubble{max-width:78%;padding:9px 12px;border-radius:16px;font-size:13px;line-height:1.56;white-space:pre-wrap;word-break:break-word;color:#1a1a1a}.shop-msg-row.assistant .shop-msg-bubble{background:#f5f5f5;border-bottom-left-radius:4px}.shop-msg-row.user .shop-msg-bubble{background:#1a1a1a;color:#fff;border-bottom-right-radius:4px}.msg-formatted-body{display:flex;flex-direction:column;gap:3px}.msg-header-row{display:flex;align-items:center;gap:6px;font-weight:600;color:#111;margin-top:6px;margin-bottom:2px}.msg-header-icon{flex-shrink:0}.msg-header-icon.tip{color:#d97706}.msg-header-icon.alert{color:#dc2626}.msg-header-icon.check{color:#16a34a}.msg-header-icon.trend{color:#2563eb}.msg-header-icon.package{color:#7c3aed}.msg-header-icon.users{color:#0891b2}.msg-header-icon.sparkle{color:#2e7d32}.msg-header-title{font-size:13px;font-weight:600}.msg-bullet-row{display:flex;gap:6px;align-items:flex-start;font-size:13px}.msg-bullet-symbol{color:#888;line-height:1.5}.msg-num-badge{font-weight:600;color:#2e7d32;min-width:15px}.msg-bullet-text{flex:1}.msg-line-spacer{height:4px}.msg-text-line{font-size:13px}.msg-code{background:#0000000d;padding:1px 4px;border-radius:3px;font-family:monospace;font-size:12px}.shop-msg-typing{display:flex;gap:4px;align-items:center;padding:11px 12px!important}.shop-msg-typing span{width:6px;height:6px;background:#bdbdbd;border-radius:50%;animation:typing 1.1s infinite}.shop-msg-typing span:nth-child(2){animation-delay:.18s}.shop-msg-typing span:nth-child(3){animation-delay:.36s}@keyframes typing{0%,80%,to{transform:translateY(0);opacity:.5}40%{transform:translateY(-5px);opacity:1}}.shop-chat-error{display:flex;align-items:center;gap:6px;padding:8px 11px;background:#fff5f5;border:1px solid #fde8e8;border-radius:10px;font-size:12px;color:#c62828;animation:msg-appear .18s ease}.shop-chat-error svg{flex-shrink:0}.shop-chat-error span{flex:1}.shop-chat-retry{display:flex;align-items:center;gap:4px;background:none;border:1px solid #c62828;border-radius:6px;color:#c62828;font-size:11px;padding:3px 7px;cursor:pointer;font-family:inherit;white-space:nowrap;transition:all .14s}.shop-chat-retry:hover{background:#c62828;color:#fff}.shop-chat-input-row{padding:10px 12px;border-top:1px solid #f0f0f0;display:flex;gap:8px;align-items:flex-end;background:#fff;flex-shrink:0}.shop-chat-input{flex:1;resize:none;border:1.5px solid #e8e8e8;border-radius:10px;padding:8px 11px;font-size:13px;font-family:inherit;outline:none;background:#fafafa;color:#1a1a1a;line-height:1.45;transition:border-color .15s;max-height:96px;overflow-y:auto}.shop-chat-input:focus{border-color:#9e9e9e;background:#fff}.shop-chat-input::-moz-placeholder{color:#c5c5c5}.shop-chat-input::placeholder{color:#c5c5c5}.shop-chat-send{width:35px;height:35px;border-radius:10px;background:#1a1a1a;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff;transition:background .15s,transform .12s}.shop-chat-send:hover:not(:disabled){background:#2e7d32;transform:scale(1.05)}.shop-chat-send:disabled{opacity:.3;cursor:not-allowed}@media(max-width:480px){.shop-chat-panel{bottom:0;right:0;width:100%;height:72vh;border-radius:16px 16px 0 0}.shop-chat-toggle{bottom:18px;right:18px}}.layout-container{display:flex;height:100vh;width:100%;overflow:hidden;background:#f7faf7}.layout-container>:first-child{width:260px;height:100vh;flex-shrink:0;border-right:1px solid rgba(0,0,0,.05)}.layout-main{flex:1;height:100vh;overflow:hidden;display:flex;flex-direction:column}.layout-content{flex:1;overflow-y:auto;overflow-x:hidden;height:100%}.layout-content{scroll-behavior:smooth}.layout-content::-webkit-scrollbar{width:8px}.layout-content::-webkit-scrollbar-track{background:transparent}.layout-content::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.layout-content::-webkit-scrollbar-thumb:hover{background:#94a3b8}.login-page{width:100%;height:100vh;display:flex;align-items:center;justify-content:center;background:#f8fafc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;padding:20px}.login-container{width:100%;max-width:420px;padding:40px;background:#fff;border-radius:14px;box-shadow:0 2px 8px #0000000d;border:1px solid #e2e8f0}.login-header{margin-bottom:32px;text-align:center}.login-logo{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:16px}.login-header h1{margin:0;font-size:24px;font-weight:600;color:#0f172a;letter-spacing:-.2px}.login-subtitle{margin:8px 0 0;color:#64748b;font-size:14px;font-weight:500}.login-form{display:flex;flex-direction:column;gap:20px}.login-button{padding:10px 14px;background:#2e7d32;color:#fff;border:none;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 8px #2e7d3233;letter-spacing:-.2px;margin-top:8px;height:36px}.login-button:hover:not(:disabled){background:#1b5e28;box-shadow:0 4px 12px #2e7d324d}.login-button:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 4px #2e7d3233}.login-button:disabled{opacity:.7;cursor:not-allowed}.login-footer{margin-top:24px;text-align:center;padding-top:24px;border-top:1px solid #e2e8f0}.login-footer p{margin:0;color:#64748b;font-size:14px;font-weight:500}.signup-link{color:#2e7d32;text-decoration:none;font-weight:700;transition:color .2s ease;letter-spacing:-.2px}.signup-link:hover{color:#1b5e28;text-decoration:underline}@media(max-width:480px){.login-container{margin:20px;padding:32px 24px;max-width:none}.login-header h1{font-size:20px}.login-subtitle{font-size:13px}.form-input{font-size:16px}.login-button{font-size:13px}}html,body{height:100%;overflow:hidden}.signup-page{width:100%;min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f8fafc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;padding:20px}.signup-container{width:100%;max-width:420px;padding:40px;background:#fff;border-radius:14px;box-shadow:0 2px 8px #0000000d;border:1px solid #e2e8f0}.signup-header{margin-bottom:32px;text-align:center}.signup-logo{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:16px}.logo-icon{color:#2e7d32}.signup-header h1{margin:0;font-size:24px;font-weight:600;color:#0f172a;letter-spacing:-.2px}.signup-subtitle{margin:8px 0 0;color:#64748b;font-size:14px;font-weight:500}.signup-form{display:flex;flex-direction:column;gap:20px}.form-group label{font-size:14px;font-weight:600;color:#0f172a;letter-spacing:-.2px}.form-input{padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:13px;font-weight:500;color:#0f172a;background:#fff;transition:all .2s ease;font-family:inherit;line-height:1.5;height:36px;box-sizing:border-box}.form-input::-moz-placeholder{color:#cbd5e1}.form-input::placeholder{color:#cbd5e1}.form-input:hover{border-color:#2e7d32;box-shadow:0 2px 8px #2e7d321a}.form-input:focus{outline:none;border-color:#2e7d32;box-shadow:0 0 0 3px #2e7d321a}.password-wrapper{position:relative;display:flex;align-items:center}.password-input{width:100%}.password-toggle{position:absolute;right:12px;background:none;border:none;cursor:pointer;color:#94a3b8;display:flex;align-items:center;justify-content:center;padding:4px;transition:color .2s ease}.password-toggle:hover{color:#2e7d32}.error-message{padding:12px 14px;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;color:#dc2626;font-size:13px;font-weight:500;text-align:center;animation:slideDown .3s ease}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.signup-button{padding:10px 14px;background:#2e7d32;color:#fff;border:none;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 8px #2e7d3233;letter-spacing:-.2px;margin-top:8px;height:36px}.signup-button:hover:not(:disabled){background:#1b5e28;box-shadow:0 4px 12px #2e7d324d}.signup-button:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 4px #2e7d3233}.signup-button:disabled{opacity:.7;cursor:not-allowed}.signup-footer{margin-top:24px;text-align:center;padding-top:24px;border-top:1px solid #e2e8f0}.signup-footer p{margin:0;color:#64748b;font-size:14px;font-weight:500}.login-link{color:#2e7d32;text-decoration:none;font-weight:700;transition:color .2s ease;letter-spacing:-.2px}.login-link:hover{color:#1b5e28;text-decoration:underline}@media(max-width:480px){.signup-container{margin:20px;padding:32px 24px;max-width:none}.signup-header h1{font-size:20px}.signup-subtitle{font-size:13px}.signup-form{gap:16px}.form-input{font-size:14px}}.skeleton-pulse{background:linear-gradient(90deg,#f1f5f9,#e2e8f0,#f1f5f9);background-size:200% 100%;animation:skeleton-shimmer 1.6s ease-in-out infinite;border-radius:8px}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-text-group{display:flex;flex-direction:column;gap:8px;width:100%}.skeleton-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:12px;box-shadow:0 1px 3px #0000000a}.skeleton-card-top{display:flex;justify-content:space-between;align-items:center}.skeleton-card-icon{width:42px;height:42px;border-radius:10px}.skeleton-table-row{display:flex;align-items:center;gap:16px;padding:14px 16px;border-bottom:1px solid #f1f5f9}.skeleton-table-cell{height:16px;border-radius:4px}.skeleton-chart-box{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:16px}.dashboard-page{width:100%;height:100%;min-height:0;padding:16px 20px;box-sizing:border-box;background:#f7faf7;color:#0f172a;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;display:grid;grid-template-rows:auto auto minmax(0,1fr) minmax(0,1fr);gap:10px;overflow:hidden}.dashboard-loading{margin:0;color:#475569;font-size:15px;font-weight:500}.dashboard-header{margin-bottom:0}.dashboard-header h1{margin:0 0 4px;font-size:24px;font-weight:600;letter-spacing:.3px;line-height:1.4}.dashboard-header h1:after{content:"";display:block;width:76px;height:4px;margin-top:8px;border-radius:999px;background:linear-gradient(90deg,#2e7d32,#81c784)}.dashboard-header p{margin:0;color:#475569;font-size:13px;letter-spacing:.2px;line-height:1.6;font-weight:500}.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(190px,1fr));gap:10px}.metric-card{border-radius:14px;border:1px solid #e5e7eb;background:#fff;padding:12px;box-shadow:0 2px 8px #0000000d}.metric-top-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.metric-title{margin:0;color:#64748b;font-size:13px;font-weight:600}.metric-value{margin:4px 0 0;font-size:24px;line-height:1.1;color:#0f172a;letter-spacing:-.01em}.metric-icon{width:34px;height:34px;border-radius:999px;display:grid;place-items:center}.metric-icon.mint{color:#1b5e28;background:#e8f5e9}.metric-icon.blue{color:#2e7d32;background:#f0fdf4}.metric-icon.violet{color:#166534;background:#dcfce7}.metric-icon.amber{color:#b45309;background:#fef3c7}.metric-subtext{margin:8px 0 0;font-size:11px;font-weight:600;display:inline-flex;align-items:center;gap:6px}.metric-subtext.positive{color:#16a34a}.metric-subtext.negative{color:#dc2626}.metric-subtext.neutral{color:#64748b}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:10px;min-height:0}.dashboard-grid-top,.dashboard-grid-bottom{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}.panel{background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 2px 8px #0000000d;padding:12px;min-width:0;min-height:0}.chart-panel{display:flex;flex-direction:column;min-height:0}.chart-panel .panel-header{margin-bottom:4px}.panel-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.panel-header h3{margin:0;color:#0f172a;font-size:16px;font-weight:700;letter-spacing:-.01em}.panel-link-btn{border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#334155;font-size:12px;font-weight:700;line-height:1;padding:8px 11px;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,color .2s ease}.panel-link-btn:hover{background:#f8fafc;border-color:#cbd5e1;color:#0f172a}.chart-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.trend-toggle{display:inline-flex;align-items:center;padding:3px;border-radius:999px;background:#f1f5f9;border:1px solid #e2e8f0}.trend-toggle-btn{border:none;background:transparent;color:#64748b;font-size:12px;font-weight:700;line-height:1;border-radius:999px;padding:7px 12px;cursor:pointer;transition:background-color .2s ease,color .2s ease}.trend-toggle-btn:hover{color:#334155}.trend-toggle-btn.active{background:#2e7d32;color:#fff}.pill{border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700;background:#e8f5e9;color:#1b5e28}.pill.muted{background:#f1f5f9;color:#475569}.pill.danger{background:#fee2e2;color:#b91c1c}.chart-wrap{width:100%;height:auto;flex:1;min-height:0;padding-right:6px}.list-panel{display:flex;flex-direction:column;min-height:0}.list-items,.alert-list{display:flex;flex-direction:column;gap:6px;overflow:hidden}.list-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px;border-bottom:1px solid #f1f5f9}.list-row:last-child{border-bottom:none}.list-row-left{display:flex;align-items:center;gap:10px}.list-icon{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;color:#2e7d32;background:#e8f5e9}.list-title{margin:0;color:#0f172a;font-size:14px;font-weight:700}.list-subtitle{margin:2px 0 0;color:#64748b;font-size:12px}.list-amount{margin:0;color:#0f172a;font-size:14px;font-weight:700}.tx-right{text-align:right}.status-chip{margin-top:6px;display:inline-block;font-size:11px;border-radius:999px;padding:4px 8px;font-weight:700}.status-chip.complete{color:#166534;background:#dcfce7}.status-chip.pending{color:#b45309;background:#fef3c7}.alert-row{border-radius:12px;padding:10px;display:flex;align-items:center;justify-content:space-between;gap:10px}.alert-row.critical{background:#fff1f2;border:1px solid #fecdd3}.alert-row.low{background:#fffbeb;border:1px solid #fde68a}.reorder-btn{border:none;border-radius:10px;padding:7px 10px;font-size:12px;font-weight:700;cursor:pointer;transition:background-color .2s ease;color:#fff;background:#2e7d32}.alert-row.critical .reorder-btn{background:#dc2626}.reorder-btn:hover{background:#1b5e28}.alert-row.critical .reorder-btn:hover{background:#b91c1c}.empty-state{color:#64748b;font-size:14px;margin:8px 0 0}@media(max-width:1200px){.dashboard-page{overflow:auto;height:auto;min-height:100%;display:flex;flex-direction:column;padding:20px 16px;gap:12px}.dashboard-metrics{grid-template-columns:repeat(2,minmax(170px,1fr))}.dashboard-grid{grid-template-columns:1fr}}@media(max-width:760px){.dashboard-page{padding:20px 14px;gap:12px;overflow:auto}.dashboard-metrics{grid-template-columns:1fr}.panel{padding:14px}.metric-value{font-size:26px}}.products-page{width:100%;height:100%;min-height:0;padding:32px 36px;box-sizing:border-box;background:#f7faf7;color:#0f172a;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;display:flex;flex-direction:column;overflow:hidden}.products-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.products-title{margin:0 0 6px;font-size:28px;font-weight:600;letter-spacing:.3px;line-height:1.4}.products-title:after{content:"";display:block;width:80px;height:4px;margin-top:10px;border-radius:999px;background:linear-gradient(90deg,#2e7d32,#81c784)}.products-description{margin:0;color:#475569;font-size:15px;font-weight:400;line-height:1.65;max-width:640px}.products-header-actions{display:flex;align-items:center;gap:10px}.products-export-btn,.products-primary-btn,.products-secondary-btn,.products-edit-btn,.products-delete-btn{border:none;border-radius:12px;font-size:14px;font-weight:600;cursor:pointer;transition:background-color .2s ease,transform .15s ease,box-shadow .2s ease}.products-export-btn,.products-secondary-btn,.products-edit-btn{background:#fff;color:#0f172a;border:1px solid #e2e8f0;padding:10px 14px}.products-export-btn:hover,.products-secondary-btn:hover,.products-edit-btn:hover{background:#f8fafc}.products-primary-btn{background:#2e7d32;color:#fff;padding:10px 18px;box-shadow:0 10px 20px #2e7d322e}.products-primary-btn:hover{background:#1b5e28}.products-delete-btn{background:#ef4444;color:#fff;padding:8px 12px}.products-delete-btn:hover{background:#dc2626}.products-export-btn:disabled,.products-primary-btn:disabled,.products-secondary-btn:disabled,.products-edit-btn:disabled,.products-delete-btn:disabled{opacity:.6;cursor:not-allowed}.products-feedback{margin:0 0 10px;padding:10px 12px;border-radius:10px;font-size:13px;font-weight:600}.products-feedback-error{border:1px solid #fecaca;background:#fff1f2;color:#b91c1c}.products-feedback-loading{border:1px solid #bbf7d0;background:#f0fdf4;color:#166534}.products-section{flex:1;min-height:0;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 2px 8px #0000000d;min-width:0;display:flex;flex-direction:column;overflow:hidden}.products-section-title{margin:0;padding:16px 18px 14px;font-size:18px;font-weight:700;color:#0f172a;letter-spacing:-.01em;border-bottom:1px solid #e5e7eb}.products-list-toolbar{padding:18px 18px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:transparent;border-bottom:0}.products-category-chips{display:flex;gap:8px;flex-wrap:wrap;flex:1;padding:4px;border:1px solid #e2e8f0;border-radius:12px;background:#f7faf7}.products-category-chip{border:1px solid transparent;background:#fff;color:#475569;border-radius:12px;font-size:12px;font-weight:700;padding:7px 13px;line-height:1;letter-spacing:.01em;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease,transform .15s ease}.products-category-chip:hover{background:#fff;border-color:#cbd5e1;color:#0f172a;transform:translateY(-1px)}.products-category-chip:focus-visible{outline:none;border-color:#2e7d32;box-shadow:0 0 0 3px #2e7d3229}.products-category-chip.active{background:#e8f5e9;border-color:#81c784;color:#1b5e28;box-shadow:0 4px 10px #2e7d3229}.products-search-input{width:min(420px,100%);min-height:40px;margin-bottom:0;padding:9px 12px;border:1px solid #d1d5db;border-radius:12px;background:#f7faf7;color:#0f172a;font-size:13px;box-sizing:border-box}.products-search-input:focus{outline:none;border-color:#2e7d32;box-shadow:0 0 0 4px #2e7d321f;background:#fff}.products-table-wrap{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.products-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 120px 12px 18px;border-top:1px solid #e5e7eb;background:#fff}.products-pagination-summary{margin:0;font-size:13px;font-weight:600;color:#475569}.products-pagination-actions{display:flex;align-items:center;gap:8px}.products-table-head,.products-table-row{display:flex;align-items:center;gap:8px;padding:12px 16px;min-width:880px}.products-table-head{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#64748b;background:#f7faf7;border-bottom:1px solid #e5e7eb}.products-table-body{flex:1;min-height:0;overflow:auto}.products-table-row{font-size:14px;font-weight:500;color:#1e293b;border-bottom:1px solid #e5e7eb}.products-table-row:hover{background:#f7faf7}.products-table-head>span,.products-table-row>span{min-width:0}.products-table-head>span:nth-child(1),.products-table-row>span:nth-child(1){flex:1.6}.products-table-head>span:nth-child(2),.products-table-row>span:nth-child(2){flex:1.1}.products-table-head>span:nth-child(3),.products-table-row>span:nth-child(3),.products-table-head>span:nth-child(4),.products-table-row>span:nth-child(4){flex:1}.products-table-head>span:nth-child(5),.products-table-row>span:nth-child(5){flex:1}.products-table-head>span:nth-child(6),.products-table-row>span:nth-child(6){flex:1.2}.products-cell-name{font-weight:700;color:#0f172a}.products-row-actions{display:flex;align-items:center;gap:8px}.products-stock-badge{display:inline-flex;align-items:center;justify-content:center;width:96px;height:32px;box-sizing:border-box;border-radius:10px;padding:0 8px;font-size:12px;font-weight:700;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.products-stock-good{color:#166534;background:#dcfce7;border:1px solid #86efac}.products-stock-low{color:#92400e;background:#fef3c7;border:1px solid #fcd34d}.products-stock-critical{color:#991b1b;background:#fee2e2;border:1px solid #fca5a5}.products-empty-state{margin:16px;padding:16px;border-radius:10px;border:1px dashed #d1d5db;background:#f8fafc;color:#475569;font-size:13px;font-weight:600}.products-modal-overlay{position:fixed;inset:0;background:#0f172a66;display:flex;align-items:center;justify-content:center;padding:20px;z-index:40}.products-modal{width:min(560px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:16px;border:1px solid #dbe7f2;box-shadow:0 30px 70px #0f172a3d;padding:18px;animation:productsModalIn .18s ease}.products-modal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.products-modal-header h3{margin:0;font-size:21px;line-height:1.2;color:#0f172a}.products-modal-header p{margin:6px 0 0;font-size:13px;line-height:1.5;color:#64748b}.products-modal-close{width:32px;height:32px;border-radius:999px;border:1px solid #dbe4ee;background:#fff;color:#334155;cursor:pointer;font-size:16px;line-height:1}.products-modal-form{display:grid;gap:12px}.products-modal-form label{display:grid;gap:6px;font-size:13px;font-weight:600;color:#334155}.products-modal-form input,.products-modal-form select{width:100%;min-height:42px;padding:9px 12px;border-radius:12px;border:1px solid #d1d5db;background:#f8fafc;color:#0f172a;font-size:14px;box-sizing:border-box;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}.products-modal-form input:focus,.products-modal-form select:focus{outline:none;border-color:#2e7d32;box-shadow:0 0 0 4px #2e7d321f;background:#fff}.products-modal-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.products-modal-actions{display:flex;gap:10px;padding-top:4px}@keyframes productsModalIn{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:1024px){.products-page{padding:20px;overflow:auto}.products-list-toolbar{display:grid;gap:10px}.products-search-input{width:100%;max-width:100%;margin-bottom:8px}}@media(max-width:640px){.products-page{padding:14px}.products-title{font-size:24px}.products-description{font-size:14px}.products-header-actions{width:100%}.products-export-btn,.products-primary-btn{flex:1}.products-list-toolbar{padding:10px 12px 12px}.products-search-input{max-width:100%;margin-bottom:8px}.products-table-head{display:none}.products-table-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0;padding:12px}.products-pagination{flex-direction:column;align-items:flex-start;padding-bottom:72px}.products-table-row>span{flex:unset!important}.products-row-actions{grid-column:1 / -1}.products-modal{padding:14px}.products-modal-grid-2{grid-template-columns:1fr}.products-modal-actions{flex-direction:column}.products-primary-btn,.products-secondary-btn,.products-export-btn,.products-edit-btn,.products-delete-btn{width:100%}}.billing-page{width:100%;height:100%;min-height:0;padding:32px 36px;box-sizing:border-box;background:#f7faf7;color:#0f172a;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;display:flex;flex-direction:column;overflow:hidden}.billing-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:28px}.billing-title{margin:0 0 6px;font-size:28px;font-weight:600;letter-spacing:.3px;line-height:1.4}.billing-title:after{content:"";display:block;width:74px;height:4px;margin-top:10px;border-radius:999px;background:linear-gradient(90deg,#2e7d32,#81c784)}.billing-description{margin:0;color:#475569;font-size:15px;font-weight:400;line-height:1.7;max-width:600px}.billing-panels{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:26px;align-items:stretch}.billing-section{background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 2px 8px #0000000d;padding:0;min-width:0;height:100%;min-height:0;max-height:100%;display:flex;flex-direction:column;overflow:hidden}.billing-section-title{margin:0;padding:18px 18px 14px;font-size:18px;font-weight:700;color:#0f172a;letter-spacing:-.01em;border-bottom:1px solid #e5e7eb}.billing-form-section .billing-section-title,.billing-list-section .billing-section-title{padding:14px 18px 10px}.billing-form{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0;padding:14px 12px 14px 14px;background:transparent;border:0;box-shadow:none;flex:1;min-height:0;overflow-y:auto}.billing-form-section .billing-section-title{padding:14px 18px 10px;font-size:16px}.billing-page select,.billing-page input,.billing-page button{width:100%;min-height:40px;padding:9px 12px;border-radius:10px;border:1px solid #d1d5db;background:#f7faf7;color:#0f172a;font-size:13px;transition:border-color .2s ease,box-shadow .2s ease,transform .15s ease,background-color .2s ease}.billing-form-section select,.billing-form-section input,.billing-form-section button{min-height:36px;padding:7px 10px;font-size:13px}.billing-form>select:first-of-type{height:38px;min-height:38px;max-height:38px;padding:4px 10px;border-radius:8px;font-size:13px;align-self:stretch}.billing-form>select:first-of-type.billing-customer-select-selected{border-color:#facc15;background:#fefce8;box-shadow:0 0 0 3px #facc1538;font-weight:600}.billing-customer-search-input.billing-customer-select-selected{border-color:#facc15;background:#fefce8;box-shadow:0 0 0 3px #facc1538;font-weight:600}.billing-customer-search-input.billing-customer-search-warning{border-color:#ef4444;background:#fff1f2;box-shadow:0 0 0 3px #ef444438}.billing-customer-search{position:relative;width:100%}.billing-filter-customer-search{width:100%;min-width:0}.billing-customer-search-input{width:96%;max-width:100%;height:40px;min-height:40px;max-height:40px;padding:8px 12px;border-radius:10px;font-size:13px;line-height:1.25;box-sizing:border-box;display:block;margin:0 auto}.billing-customer-results{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:20;max-height:220px;overflow-y:auto;border:1px solid #d1d5db;border-radius:10px;background:#fff;box-shadow:0 12px 24px #0f172a1f}.billing-customer-result-item{width:100%;min-height:0!important;border:0!important;border-bottom:1px solid #f1f5f9!important;border-radius:0!important;background:#fff!important;color:#0f172a!important;padding:8px 10px!important;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;text-align:left;cursor:pointer;transform:none!important}.billing-customer-result-item:last-child{border-bottom:0!important}.billing-customer-result-item:hover{background:#f8fafc!important;transform:none!important}.billing-customer-result-name{font-size:13px;font-weight:600;color:#0f172a}.billing-customer-result-phone{font-size:12px;color:#64748b}.billing-customer-result-empty{margin:0;padding:10px;font-size:12px;color:#64748b}.billing-form>input[type=number]{width:180px;height:32px;min-height:32px;max-height:32px;padding:4px 10px;border-radius:8px;font-size:12px;align-self:flex-start}.billing-paid-amount-input{font-family:JetBrains Mono,SFMono-Regular,Menlo,Consolas,Liberation Mono,monospace;font-size:14px;font-weight:700;letter-spacing:.01em;font-variant-numeric:tabular-nums lining-nums;color:#0f172a}.billing-paid-amount-input::-moz-placeholder{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:12px;font-weight:500;letter-spacing:0;color:#64748b;font-variant-numeric:normal}.billing-paid-amount-input::placeholder{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:12px;font-weight:500;letter-spacing:0;color:#64748b;font-variant-numeric:normal}.billing-form>input[type=number].billing-paid-input-active{border-color:#81c784;background:#e8f5e9;box-shadow:0 0 0 3px #81c7842e}.billing-paid-amount-input.billing-paid-amount-warning{border-color:#ef4444;background:#fff1f2;box-shadow:0 0 0 3px #ef444438}.billing-form>input[type=number].billing-paid-amount-input.billing-paid-amount-warning{border-color:#ef4444;background:#fff1f2;box-shadow:0 0 0 3px #ef444438}.billing-paid-amount-input.billing-paid-amount-warning:focus{border-color:#ef4444;background:#fff1f2;box-shadow:0 0 0 3px #ef444438}.billing-page select:focus,.billing-page input:focus{outline:none;border-color:#2e7d32;box-shadow:0 0 0 4px #2e7d321f;background:#fff}.billing-page button{border:none;background:#2e7d32;color:#fff;font-weight:600;cursor:pointer}.billing-add-product-btn{min-height:48px!important;padding:12px 16px!important;font-size:15px!important;font-weight:700}.billing-add-product-btn:hover{transform:translateY(-1px)}.billing-add-product-btn-warning{border:2px solid #dc2626!important;background:#ef4444!important;box-shadow:0 0 0 4px #dc262633}.billing-form>button[type=submit]{width:100%;justify-self:stretch}.billing-create-btn{width:100%!important;max-width:none;display:block;justify-self:stretch;box-sizing:border-box}.billing-create-btn:disabled{opacity:.65;cursor:not-allowed;pointer-events:none;transform:none!important;background:#4b5563!important}.billing-page button:hover{background:#166534;transform:translateY(-1px)}.billing-item-row{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,82px) minmax(0,1fr) minmax(0,92px);gap:6px;align-items:center;padding:6px;min-height:44px;border:1px solid #e5e7eb;border-radius:10px;background:#f8fafc;overflow:hidden}.billing-item-row>select,.billing-item-row>input{min-width:0}.billing-item-row>input{text-align:center;padding-left:8px;padding-right:8px}.billing-item-row>input[type=number]{height:24px;min-height:24px;max-height:24px;width:100%;min-width:0;justify-self:center;padding:1px 6px;line-height:1.1;border-radius:8px;font-size:12px;box-sizing:border-box}.billing-products-scroll{display:grid;gap:8px;height:220px;min-height:220px;max-height:220px;overflow-y:auto;overscroll-behavior:contain;align-content:start;padding:8px;border:1px dashed #dbe3ea;border-radius:10px;background:#f8fafc}.billing-products-scroll-warning{border:2px solid #ef4444;background:#fff1f2;box-shadow:0 0 0 4px #ef444438}.billing-products-scroll-warning .billing-products-empty{border-color:#ef4444;background:#ffe4e6}.billing-item-row select.billing-product-select-warning{border-color:#ef4444;background:#fff1f2;box-shadow:0 0 0 2px #ef44442e}.billing-products-empty{margin:0;padding:10px 12px;border:1px dashed #cbd5e1;border-radius:10px;background:#fff;color:#475569;font-size:13px;font-weight:600;line-height:1.4;display:flex;align-items:center;gap:10px}.billing-products-empty-icon{width:24px;height:24px;border-radius:999px;border:1px solid #86efac;background:#dcfce7;color:#166534;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.billing-subtotal{justify-self:stretch;min-width:0;padding:6px 8px;border-radius:8px;border:1px solid #bbf7d0;background:#ecfdf5;text-align:center;color:#2e7d32;font-size:13px;font-weight:700;overflow-wrap:anywhere;word-break:break-word;line-height:1.15}.billing-remove-btn{width:100%;min-width:0;height:32px;min-height:28px;max-height:32px;padding:2px 6px;line-height:1.1;font-size:12px;border:1px solid #fecaca!important;background:#fff1f2!important;color:#b91c1c!important;box-sizing:border-box;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.billing-remove-btn:hover{background:#fee2e2!important}.billing-form>button[type=button]{width:128px;height:30px;min-height:30px;max-height:30px;padding:4px 8px;font-size:12px;border-radius:8px;align-self:flex-start;margin-bottom:-4px}.billing-add-product-btn+input[type=number]{margin-top:-4px}.billing-form>button[type=submit]{width:160px;height:38px;min-height:38px;max-height:38px;padding:6px 12px;font-size:13px;border-radius:10px;align-self:flex-start;margin-top:2px}.billing-form>p{margin:0;padding:10px 12px;border-radius:10px;background:#f8fafc;color:#334155;display:flex;justify-content:space-between;gap:12px;font-size:13px}.billing-form>p strong{color:#0f172a}.billing-form>p:last-of-type{background:#ecfdf5;border:1px solid #bbf7d0}.billing-summary-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch;width:100%;min-width:0}.billing-summary-item{margin:0;min-width:0;width:100%;height:auto;min-height:64px;max-height:none;padding:10px 12px;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;border-radius:12px;border:1px solid #dbe3ea;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 2px 8px #0f172a0f;color:#1e293b;font-size:15px;font-weight:600;white-space:normal;overflow:hidden;line-height:1.25;text-align:left;transition:transform .15s ease,box-shadow .2s ease}.billing-summary-item:hover{transform:translateY(-1px);box-shadow:0 8px 18px #0f172a1a}.billing-summary-item-pending-active{border-color:#fecaca;background:linear-gradient(180deg,#fff7f7,#ffe4e6)}.billing-summary-item-paid-active{border-color:#bbf7d0;background:linear-gradient(180deg,#f7fff8,#dcfce7)}.billing-summary-item strong{color:#0f172a;font-size:14px;margin-right:6px}.billing-summary-label{font-size:13px;font-weight:700;letter-spacing:.01em;color:#475569;margin-bottom:4px}.billing-summary-value{width:100%;font-size:16px;font-weight:700;color:inherit;overflow-wrap:anywhere;word-break:break-word;line-height:1.2}.billing-value-badge{display:inline-flex;align-items:center;margin-left:8px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.01em;vertical-align:middle}.billing-value-badge-pending{color:#b91c1c;background:#fee2e2;border:1px solid #fecaca}.billing-value-badge-paid{color:#166534;background:#dcfce7;border:1px solid #bbf7d0}.billing-summary-remaining{border:1px solid #86efac;background:linear-gradient(180deg,#f0fdf4,#dcfce7);color:inherit}.billing-summary-remaining .billing-summary-value{color:#dc2626}.billing-remaining-value{color:#dc2626;font-weight:700}.billing-filter-bar{display:grid;grid-template-columns:minmax(220px,1.3fr) minmax(160px,1fr) auto auto;gap:6px;align-items:stretch;margin:14px 18px 0;padding:6px 10px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;box-shadow:inset 0 1px #ffffffd9}.billing-filter-bar>.billing-filter-customer-search,.billing-filter-bar>select,.billing-filter-bar>input{width:100%;min-width:0}.billing-filter-bar>input[type=date]{height:38px;min-height:38px;padding:0 10px;box-sizing:border-box}.billing-filter-bar>button{width:100%;min-width:96px;height:38px;min-height:38px;padding:0 14px}.billing-list-title{margin:0;padding:18px 18px 0;font-size:20px;font-weight:700;letter-spacing:-.01em}.billing-list{display:grid;gap:14px;grid-auto-rows:max-content;align-content:start;align-items:start;flex:1;min-height:0;max-height:none;overflow-y:auto;padding:18px}.billing-card{padding:0;border:1px solid #e5e7eb;border-radius:14px;background:#fff;box-shadow:0 2px 8px #0000000a;transition:all .2s ease;overflow:hidden}.billing-card:hover{box-shadow:0 12px 24px #00000014;border-color:#d1d5db;transform:translateY(-2px)}.billing-card-top{border-bottom:2px solid #f3f4f6;padding:18px}.billing-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}.billing-card-invoice-id{font-size:11px;font-weight:800;letter-spacing:.05em;color:#6b7280;text-transform:uppercase;margin-bottom:6px}.billing-card-customer-name{margin:0;font-size:17px;font-weight:800;color:#1f2937;letter-spacing:-.01em;line-height:1.2}.billing-card-meta{margin:4px 0 0;font-size:13px;color:#6b7280;line-height:1.4}.billing-card-status-section{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.billing-status-badge{display:inline-flex;align-items:center;padding:6px 12px;border-radius:6px;font-size:12px;font-weight:800;letter-spacing:.01em;white-space:nowrap}.billing-status-paid{background:#d1fae5;color:#047857;border:1px solid #6ee7b7}.billing-status-pending{background:#fed7aa;color:#92400e;border:1px solid #fbbf24}.billing-card-date{font-size:12px;font-weight:700;color:#6b7280;text-align:right}.billing-card-items{background:#fafbfc;padding:12px 0;margin:0}.billing-card-item-row{display:grid;grid-template-columns:1.5fr 1fr .8fr;gap:8px;padding:8px 0;font-size:13px;color:#374151;border-bottom:1px solid #e5e7eb;align-items:center}.billing-card-item-row:last-child{border-bottom:0}.billing-item-name{font-weight:600;color:#1f2937;min-width:0;padding:0 12px;word-break:break-word}.billing-item-detail{color:#6b7280;font-size:12px}.billing-item-total{font-weight:700;color:#2e7d32;padding:0 12px;text-align:right}.billing-card-summary{padding:16px 18px;background:linear-gradient(180deg,#fff,#f8fafc)}.billing-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.billing-summary-cell{display:flex;flex-direction:column;padding:12px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;gap:4px;transition:all .2s ease}.billing-summary-cell:hover{border-color:#d1d5db;box-shadow:0 2px 6px #0000000d}.billing-summary-cell-highlight{border-color:#86efac;background:linear-gradient(135deg,#f0fdf4,#dcfce7);border-width:2px;font-weight:600}.billing-summary-cell-complete{border-color:#bbf7d0;background:linear-gradient(135deg,#ecfdf5,#d1f4d1);border-width:2px;font-weight:600}.billing-cell-label{font-size:11px;font-weight:800;color:#6b7280;letter-spacing:.01em;text-transform:uppercase}.billing-cell-value{font-size:16px;font-weight:800;color:#1f2937;line-height:1.2;word-break:break-word}.billing-summary-cell-highlight .billing-cell-value,.billing-summary-cell-complete .billing-cell-value{font-size:18px}.billing-value-pending{color:#dc2626}.billing-value-paid{color:#2e7d32}.billing-remaining-value{color:#dc2626;font-weight:800}.billing-invoice-btn{width:calc(100% - 36px)!important;min-width:auto!important;min-height:42px!important;margin:0 18px 18px!important;padding:12px 16px!important;border-radius:10px!important;background:#2e7d32!important;font-size:14px!important;font-weight:700!important;border:0!important;cursor:pointer;transition:all .2s ease}.billing-invoice-btn:hover{background:#166534!important;transform:translateY(-1px);box-shadow:0 4px 12px #15803d40!important}@media(max-width:900px){.billing-page{padding:20px;overflow:auto}.billing-header{margin-bottom:22px}.billing-panels{grid-template-columns:1fr}.billing-section{height:auto;max-height:none}.billing-item-row{grid-template-columns:1fr}.billing-products-scroll{height:200px;min-height:200px;max-height:200px}.billing-subtotal{justify-self:start}.billing-filter-bar{grid-template-columns:1fr}.billing-filter-bar>button{width:100%}.billing-list{max-height:none}}@media(max-width:640px){.billing-page{padding:14px}.billing-header{margin-bottom:18px}.billing-title{font-size:24px}.billing-description{font-size:14px}.billing-section{padding:0}.billing-list{padding:14px}.billing-filter-bar{margin:14px 14px 0;padding:6px 10px}.billing-card-customer-row{flex-wrap:wrap}.billing-card-customer-phone{width:100%;text-align:left}.billing-summary-row{grid-template-columns:1fr}.billing-summary-item{min-height:56px}.billing-form{padding:12px 8px 12px 12px}}html,body,#root{margin:0!important;padding:0!important;height:100vh;width:100vw}.dashboard-container{display:flex;height:100vh;width:100vw;overflow:hidden}.sidebar{height:100vh;flex:0 0 240px;min-width:200px;max-width:320px;background:#f1f5f9;overflow:hidden}.main-content{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.scrollable-section{flex:1;min-height:0;overflow-y:auto}.customers-container{width:100%;height:100%;box-sizing:border-box;padding:32px 36px;display:flex;flex-direction:column;background:#f7faf7;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:#0f172a;overflow:hidden}.customers-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:28px}.customers-header h2{margin:0 0 6px;font-size:28px;font-weight:600;letter-spacing:.3px;line-height:1.4}.customers-header h2:after{content:"";display:block;width:80px;height:4px;margin-top:10px;border-radius:999px;background:linear-gradient(90deg,#2e7d32,#81c784)}.customers-header p{margin:0;color:#475569;font-size:15px;font-weight:400;letter-spacing:.2px;line-height:1.6;max-width:600px}.customers-actions{display:flex;gap:12px;flex-wrap:wrap}.btn-add-customer,.btn-export,.btn-delete,.btn-add{border:none;padding:10px 16px;border-radius:10px;cursor:pointer;font-weight:600;font-size:14px;transition:background-color .2s ease,transform .15s ease}.btn-add-customer{background:#2e7d32;color:#fff}.btn-add-customer:hover{background:#1b5e28}.btn-export{background:#fff;color:#0f172a;border:1px solid #e2e8f0}.btn-export:hover{background:#f8fafc}.btn-add{background:#2e7d32;color:#fff}.btn-add:hover{background:#1b5e28}.btn-delete{width:100%;background:#ef4444;color:#fff;border-radius:10px;padding:12px 16px;font-weight:600;font-size:15px;margin-top:auto;margin-bottom:0;align-self:flex-end}.btn-delete:hover{background:#dc2626}.modal-overlay{position:fixed;inset:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:16px;max-width:460px;width:100%;padding:28px;box-shadow:0 18px 40px #0f172a1f}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.modal-header h3{margin:0;font-size:20px;font-weight:700}.modal-description{color:#64748b;font-size:14px;margin:0 0 22px}.modal-form{display:grid;gap:16px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:14px;font-weight:600;color:#334155}.form-group input{padding:14px 16px;border:1px solid #cbd5e1;border-radius:12px;font-size:15px;color:#0f172a;background:#f8fafc}.form-group input:focus{outline:none;border-color:#2e7d32;box-shadow:0 0 0 4px #2e7d321f}.customer-layout{display:flex;gap:26px;flex:1;align-items:stretch;min-height:0;overflow:hidden}.customer-list,.customer-profile{background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 2px 8px #0000000d;display:flex;flex-direction:column}.customer-list{flex:1.75;min-height:0}.customer-profile{flex:1;min-height:0;padding:28px;display:flex;flex-direction:column}.profile-main{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.customer-search{padding:18px 24px;border-bottom:1px solid #e5e7eb;background:#f7faf7}.customer-search input{width:100%;max-width:500px;padding:12px 16px;border-radius:12px;border:1px solid #d1d5db;font-size:15px;color:#0f172a;background:#fff}.customer-list-header{display:grid;grid-template-columns:2fr 1.4fr 1fr .9fr;gap:16px;padding:18px 24px;border-bottom:1px solid #e5e7eb;font-size:13px;color:#64748b;font-weight:700;text-transform:uppercase;letter-spacing:.05em}.customer-list-body{flex:1;min-height:0;max-height:620px;overflow-y:auto}.customer-row{display:grid;grid-template-columns:2fr 1.4fr 1fr .9fr;gap:16px;align-items:center;padding:18px 24px;border-bottom:1px solid #f1f5f9;transition:background-color .2s ease,transform .15s ease}.customer-row:hover{background:#f7faf7;transform:translateY(-.5px)}.customer-row.active{background:#dcfce7;border-left:4px solid #2E7D32;padding-left:20px}.customer-row p{margin:0;font-size:15px;font-weight:400;color:#0f172a;line-height:1.6}.customer-row-main{display:contents;cursor:pointer}.view-button{justify-self:end;background:#2e7d32;color:#fff;border-radius:10px;padding:8px 14px;border:1px solid transparent;font-size:13px;font-weight:600}.view-button:hover{background:#166534}.customer-profile h2{margin:0 0 8px;font-size:20px;font-weight:700;color:#2e7d32}.customer-profile h3{margin:0 0 10px;font-size:28px;font-weight:700;color:#0f172a}.profile-phone,.profile-address{margin:0 0 10px;color:#475569;font-size:15px;line-height:1.75}.profile-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}.stat-card{padding:20px;border-radius:14px;background:#f8fafc}.stat-card h4{margin:0 0 10px;font-size:13px;color:#64748b;font-weight:600}.stat-value{margin:0 0 8px;font-size:22px;font-weight:700;color:#0f172a}.stat-value.pending{color:#dc2626}.stat-label{margin:0;font-size:13px;color:#64748b}.purchase-history{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}.purchase-history-header{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:16px}.purchase-history-header h4{margin:0;font-size:18px;font-weight:700;color:#0f172a}.purchase-history-header p{margin:0;color:#64748b;font-size:14px}.history-table{border:1px solid #e5e7eb;border-radius:14px;overflow:hidden;flex:1 1 auto;max-height:220px;min-height:120px;overflow-y:auto;background:#fff}.history-table.empty-state{display:flex;align-items:center;justify-content:center;padding:24px}.history-row{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:16px;padding:14px 18px;align-items:center}.history-title-row{background:#f8fafc;font-size:13px;font-weight:700;color:#64748b}.history-row:not(.history-title-row){border-top:1px solid #e5e7eb}.history-bill-group{border-top:1px solid #e5e7eb}.history-bill-group .history-row{border-top:none;transition:background .15s ease}.history-bill-group .history-row:hover{background:#f8fafc}.history-bill-items-drawer{background:#f1f5f9;padding:10px 18px;border-top:1px dashed #cbd5e1;display:flex;flex-direction:column;gap:6px}.history-bill-item-row{display:flex;justify-content:space-between;font-size:13px;color:#334155}.history-row span{font-size:14px;color:#0f172a}.no-results,.no-selection{margin:0;color:#64748b;text-align:center;padding:40px 0;font-size:15px}.purchase-history p{margin:0;color:#64748b;font-size:15px;line-height:1.8}@media(max-width:1024px){.customers-container{padding:24px 20px}.customer-layout{gap:20px}.customer-list{flex:2}.customer-profile{flex:1.2}}@media(max-width:768px){.customers-container{padding:16px 12px}.customers-header{flex-direction:column;align-items:stretch;gap:16px}.customers-header h2{font-size:24px}.customers-actions{justify-content:center}.customer-layout{flex-direction:column;gap:16px}.customer-list,.customer-profile{min-height:400px}.customer-list,.customer-profile{flex:none}.customer-list-header,.customer-row{grid-template-columns:1.5fr 1fr 1fr .8fr;gap:12px;padding:12px 16px}.customer-search{padding:12px 16px}.customer-profile{padding:20px}.profile-stats{grid-template-columns:1fr;gap:12px}.stat-card{padding:16px}.history-table{max-height:200px}.modal-content{max-width:90vw;padding:20px}}.reports-page{width:100%;height:auto;min-height:100%;padding:32px 36px;box-sizing:border-box;background:#f7faf7;color:#0f172a;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;display:flex;flex-direction:column;gap:14px;overflow:auto}.reports-loading,.reports-error{margin:0;padding:24px;color:#475569;font-size:15px}.reports-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap;padding:0 0 16px;background:#f7faf7;border-bottom:none;margin-bottom:0}.reports-header h2{margin:0 0 4px;font-size:24px;font-weight:600;letter-spacing:.3px;color:#0f172a;line-height:1.4}.reports-header h2:after{content:"";display:block;width:76px;height:4px;margin-top:8px;border-radius:999px;background:linear-gradient(90deg,#2e7d32,#81c784)}.reports-header p{margin:0;color:#64748b;font-size:13px;max-width:620px;font-weight:500;letter-spacing:.2px;line-height:1.6}.reports-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.reports-controls select,.reports-controls input,.reports-btn{box-sizing:border-box;height:36px;padding:8px 12px;border-radius:8px;border:1px solid #d1d5db;background:#fff;color:#0f172a;font-weight:500;font-size:13px;transition:all .2s ease;line-height:20px}.reports-controls select:hover,.reports-controls input:hover{border-color:#2e7d32;box-shadow:0 2px 6px #2e7d321a}.reports-controls select:focus,.reports-controls input:focus{outline:none;border-color:#2e7d32;box-shadow:0 0 0 3px #2e7d321a}.reports-controls select{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:32px;background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7D32' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 8px center;background-size:16px}.reports-btn{border:none;background:#2e7d32;color:#fff;font-weight:700;cursor:pointer;box-shadow:0 4px 12px #2e7d3233}.reports-btn:hover{background:#1b5e28;box-shadow:0 6px 16px #2e7d324d}.reports-btn:active{transform:translateY(1px)}.reports-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.reports-card,.reports-panel{background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 2px 8px #0000000d}.reports-card{padding:12px}.reports-card p{margin:0;color:#64748b;font-size:12px;font-weight:600}.reports-card h3{margin:4px 0 0;font-size:20px;color:#0f172a}.reports-grid{display:grid;gap:12px;min-height:0}.reports-grid-top{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);min-height:280px}.reports-grid-bottom{grid-template-columns:repeat(2,minmax(0,1fr));min-height:0;align-items:stretch}.reports-grid-single{display:grid;grid-template-columns:1fr;min-height:170px;margin-top:2px}.reports-panel{padding:14px;min-height:0;display:flex;flex-direction:column;border:1px solid #e5e7eb;border-radius:14px;background:#fff;box-shadow:0 2px 8px #0000000d}.reports-grid-bottom .reports-panel{min-height:220px;padding:16px;border:1px solid #e5e7eb;border-top:3px solid #2E7D32}.reports-grid-single .reports-panel{min-height:240px}.reports-panel-header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #f1f5f9}.reports-panel-header h3{margin:0;font-size:16px;font-weight:700;color:#0f172a;letter-spacing:-.01em}.reports-pill{border-radius:999px;padding:4px 8px;font-size:11px;font-weight:700;background:#e8f5e9;color:#1b5e28}.reports-chart-wrap{flex:1;min-height:0;padding-top:4px}.reports-grid-single .reports-chart-wrap{min-height:170px}.reports-list{display:flex;flex-direction:column;gap:10px;overflow:auto;padding-right:2px}.reports-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #f1f5f9}.reports-title{margin:0;font-size:14px;font-weight:700;color:#0f172a}.reports-subtitle{margin:3px 0 0;font-size:12px;color:#64748b;font-weight:500}.reports-amount{margin:0;font-size:14px;font-weight:700;color:#2e7d32;white-space:nowrap}@media(max-width:1280px){.reports-page{height:auto;min-height:100%;padding:24px 20px}.reports-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-grid-top{grid-template-columns:1fr;min-height:420px}.reports-grid-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-grid-bottom .reports-panel{min-height:210px}.reports-grid-single .reports-panel{min-height:160px;max-height:170px}.reports-grid-single{margin-top:0}}@media(max-width:760px){.reports-page{padding:18px 14px}.reports-controls,.reports-controls select,.reports-controls input,.reports-btn{width:100%}.reports-cards,.reports-grid-bottom{grid-template-columns:1fr}.reports-grid-bottom .reports-panel,.reports-grid-single .reports-panel{min-height:unset;max-height:none}.reports-grid-single{margin-top:0}}
