*{box-sizing:border-box;margin:0;padding:0}:root{color:#172033;background:#f5f7fb;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}body{background:#f5f7fb;min-width:320px;min-height:100vh}button,input{font:inherit}button{cursor:pointer}a{text-decoration:none}.app{min-height:100vh;display:flex}.sidebar{box-sizing:border-box;z-index:1000;background:#fff;border-right:1px solid #e7eaf0;flex-direction:column;width:260px;height:100vh;min-height:100vh;padding:24px 16px;display:flex;position:fixed;top:0;bottom:0;left:0;overflow:hidden}.sidebar-logo{border-bottom:1px solid #edf0f5;flex-shrink:0;align-items:center;gap:12px;padding:0 10px 25px;display:flex}.logo-icon{background:#2563eb;border-radius:12px;justify-content:center;align-items:center;width:42px;min-width:42px;height:42px;font-size:22px;display:flex}.sidebar-logo h2{color:#172033;margin:0 0 5px;font-size:18px}.sidebar-logo span{color:#8b93a7;font-size:11px}.sidebar-menu{flex:1;min-height:0;margin-top:25px;overflow:hidden auto}.menu-title{color:#9ba3b5;letter-spacing:1px;margin-bottom:10px;padding:0 12px;font-size:10px;font-weight:700}.menu-item{color:#687286;border-radius:9px;align-items:center;gap:12px;margin-bottom:4px;padding:11px 13px;font-size:14px;font-weight:500;text-decoration:none;transition:all .2s;display:flex}.menu-item:hover{color:#2563eb;background:#f3f6fb}.menu-item.active{color:#2563eb;background:#eaf1ff;font-weight:600}.menu-icon{text-align:center;width:22px;min-width:22px}.logout-button{color:#dc2626;cursor:pointer;background:#fff0f0;border:0;border-radius:9px;flex-shrink:0;width:100%;margin-top:15px;padding:12px;font-size:14px;font-weight:600}.logout-button:hover{background:#fee2e2}.mobile-menu-button,.sidebar-overlay{display:none}.content-area{box-sizing:border-box;min-width:0;margin-left:260px}@media (width<=768px){.sidebar{width:280px;max-width:85vw;height:100dvh;min-height:0;box-shadow:none;z-index:1002;padding:20px 14px;transition:transform .3s;top:0;bottom:0;left:0;transform:translate(-100%)}.sidebar.sidebar-open{transform:translate(0);box-shadow:8px 0 30px #0000001f}.sidebar-logo{padding-bottom:20px}.sidebar-menu{margin-top:20px}.menu-item{padding:13px 12px;font-size:15px}.logout-button{margin-top:12px;padding:14px 12px}.mobile-menu-button{color:#172033;cursor:pointer;z-index:1004;background:#fff;border:1px solid #e7eaf0;border-radius:10px;justify-content:center;align-items:center;width:44px;height:44px;font-size:23px;display:flex;position:fixed;top:14px;left:14px;box-shadow:0 2px 8px #00000014}.sidebar-overlay{z-index:1001;background:#0f172a73;display:block;position:fixed;inset:0}.content-area{width:100%;min-width:0;margin-left:0}}@media (width<=480px){.navbar{gap:10px;padding:12px 12px 12px 64px}.navbar h2{font-size:18px}.navbar p{font-size:12px}.navbar-right{gap:8px}.user-info span{display:none}}@media (width<=768px){.sidebar{box-sizing:border-box;height:100dvh;padding-bottom:calc(16px + env(safe-area-inset-bottom));flex-direction:column;display:flex;overflow:hidden}.sidebar-menu{flex:auto;min-height:0;padding-bottom:10px;overflow-y:auto}.logout-button{z-index:2;flex:none;width:100%;margin-top:auto;margin-bottom:0;display:block;position:relative}}.content-area{width:calc(100% - 260px);min-height:100vh;margin-left:260px}.main-content{width:100%}.navbar{background:#fff;border-bottom:1px solid #e7eaf0;justify-content:space-between;align-items:center;height:82px;padding:0 30px;display:flex}.navbar h2{font-size:20px}.navbar p{color:#8b93a7;margin-top:4px;font-size:12px}.navbar-right{align-items:center;gap:20px;display:flex}.notification-button{background:#fff;border:1px solid #e6e9ef;border-radius:10px;width:40px;height:40px}.user-info{align-items:center;gap:10px;display:flex}.user-info strong,.user-info span{display:block}.user-info strong{font-size:13px}.user-info span{color:#8b93a7;margin-top:3px;font-size:11px}.user-avatar{color:#fff;background:#2563eb;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-weight:700;display:flex}.dashboard-content{padding:30px}.page-heading{justify-content:space-between;align-items:center;margin-bottom:25px;display:flex}.page-heading h1{font-size:26px}.page-heading p{color:#8b93a7;margin-top:5px;font-size:13px}.primary-button{color:#fff;background:#2563eb;border:none;border-radius:8px;padding:11px 18px;font-weight:600}.stats-grid{grid-template-columns:repeat(4,1fr);gap:18px;display:grid}.stat-card{background:#fff;border:1px solid #e8ebf1;border-radius:12px;align-items:center;gap:15px;padding:20px;display:flex}.stat-icon{background:#f1f5ff;border-radius:10px;justify-content:center;align-items:center;width:48px;height:48px;font-size:22px;display:flex}.stat-card span{color:#8b93a7;font-size:12px}.stat-card h2{margin:4px 0;font-size:20px}.stat-card small{color:#a0a7b5;font-size:10px}.dashboard-grid{grid-template-columns:1fr 1fr;gap:18px;margin-top:20px;display:grid}.dashboard-panel{background:#fff;border:1px solid #e8ebf1;border-radius:12px;min-height:300px}.panel-header{border-bottom:1px solid #edf0f5;justify-content:space-between;align-items:center;padding:18px 20px;display:flex}.panel-header h3{font-size:15px}.panel-header button{color:#2563eb;background:0 0;border:none;font-size:12px}.empty-state{text-align:center;color:#9aa2b1;flex-direction:column;justify-content:center;align-items:center;min-height:230px;display:flex}.empty-state div{margin-bottom:10px;font-size:35px}.empty-state h3{color:#596276;font-size:14px}.empty-state p{margin-top:5px;font-size:12px}.login-page{background:#f5f7fb;justify-content:center;align-items:center;min-height:100vh;padding:20px;display:flex}.login-card{background:#fff;border:1px solid #e7eaf0;border-radius:16px;width:100%;max-width:420px;padding:40px;box-shadow:0 15px 40px #141e3214}.login-logo{background:#2563eb;border-radius:15px;justify-content:center;align-items:center;width:60px;height:60px;margin:0 auto 18px;font-size:30px;display:flex}.login-card h1{text-align:center;font-size:25px}.login-subtitle{text-align:center;color:#8b93a7;margin:8px 0 30px;font-size:13px}.form-group{margin-bottom:18px}.form-group label{margin-bottom:7px;font-size:13px;font-weight:600;display:block}.form-group input{border:1px solid #dfe3ea;border-radius:8px;outline:none;width:100%;padding:12px}.form-group input:focus{border-color:#2563eb}.login-button{color:#fff;background:#2563eb;border:none;border-radius:8px;width:100%;margin-top:5px;padding:13px;font-weight:600}.error-message{color:#dc2626;background:#fff0f0;border-radius:7px;margin-bottom:15px;padding:10px;font-size:12px}.placeholder-page{padding:40px}.placeholder-page h1{font-size:25px}.placeholder-page p{color:#8b93a7;margin-top:8px}.loading-screen{justify-content:center;align-items:center;min-height:100vh;display:flex}@media (width<=1100px){.stats-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}}@media (width<=800px){.sidebar{box-sizing:border-box;flex-direction:column;width:280px;max-width:85vw;height:100dvh;min-height:0;padding:20px 14px;transition:transform .3s;display:flex;overflow:hidden;transform:translate(-100%)}.sidebar.sidebar-open{transform:translate(0)}.sidebar-logo h2,.sidebar-logo span,.menu-item span:not(.menu-icon),.menu-title{display:initial}.sidebar-logo{flex-shrink:0;justify-content:flex-start;padding:0 10px 20px}.sidebar-menu{flex:auto;min-height:0;overflow:hidden auto}.menu-item{justify-content:flex-start}.logout-button{flex-shrink:0;width:100%;margin-top:12px;margin-bottom:0;display:block!important}.content-area{width:100%;margin-left:0}.navbar{padding:0 15px 0 70px}.navbar p,.user-info>div:last-child{display:none}}@media (width<=550px){.stats-grid{grid-template-columns:1fr}.dashboard-content{padding:20px}.page-heading{flex-direction:column;align-items:flex-start;gap:15px}.navbar{height:70px;padding-left:64px}.navbar h2{font-size:17px}}@media (width<=800px){.navbar{z-index:1000;background:#fff;position:sticky;top:0}.mobile-menu-button{z-index:1004!important;position:fixed!important;top:13px!important;left:14px!important}.sidebar{z-index:1002}.sidebar-overlay{z-index:1001}}@media (width<=550px){.mobile-menu-button{top:13px!important;left:10px!important}}.page-container{padding:30px}.page-top{justify-content:space-between;align-items:center;margin-bottom:22px;display:flex}.page-top h1{font-size:26px}.page-top p{color:#8b93a7;margin-top:5px;font-size:13px}.content-card{background:#fff;border:1px solid #e8ebf1;border-radius:12px;margin-bottom:20px;padding:22px}.content-card h2{font-size:17px}.card-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.card-header p{color:#8b93a7;margin-top:4px;font-size:12px}.count-badge{color:#2563eb;background:#eaf1ff;border-radius:20px;padding:5px 10px;font-size:12px;font-weight:700}.crm-form{margin-top:20px}.form-grid{grid-template-columns:repeat(2,1fr);gap:18px;display:grid}.crm-form textarea{resize:vertical;border:1px solid #dfe3ea;border-radius:8px;outline:none;width:100%;min-height:100px;padding:12px}.crm-form select{background:#fff;border:1px solid #dfe3ea;border-radius:8px;outline:none;width:100%;padding:12px}.crm-form input:focus,.crm-form select:focus,.crm-form textarea:focus{border-color:#2563eb}.form-actions{justify-content:flex-end;gap:10px;margin-top:20px;display:flex}.secondary-button{color:#596276;background:#fff;border:1px solid #dfe3ea;border-radius:8px;padding:11px 18px;font-weight:600}.field-note{color:#9aa2b1;margin-top:5px;font-size:10px;display:block}.filter-row{gap:12px;margin-bottom:20px;display:flex}.search-input{border:1px solid #dfe3ea;border-radius:8px;outline:none;flex:1;padding:12px}.filter-select{background:#fff;border:1px solid #dfe3ea;border-radius:8px;width:220px;padding:12px}.table-wrapper{width:100%;overflow-x:auto}.crm-table{border-collapse:collapse;width:100%;min-width:850px}.crm-table th{text-align:left;color:#7d8699;white-space:nowrap;background:#f8f9fc;padding:13px;font-size:11px;font-weight:700}.crm-table td{color:#596276;border-bottom:1px solid #edf0f5;padding:15px 13px;font-size:13px}.crm-table td strong{color:#252d3d}.crm-table td small{color:#9aa2b1;margin-top:3px;font-size:10px;display:block}.stock-badge{border-radius:20px;padding:5px 9px;font-size:10px;font-weight:700;display:inline-block}.action-buttons{gap:6px;display:flex}.edit-button,.delete-button,.stock-in-button,.stock-out-button{border:none;border-radius:6px;padding:7px 10px;font-size:11px;font-weight:600}.edit-button{color:#2563eb;background:#eaf1ff}.delete-button{color:#dc2626;background:#fff0f0}.stock-in-button{color:#16803a;background:#e9f9ef}.stock-out-button{color:#dc2626;background:#fff0f0}.category-layout{grid-template-columns:380px 1fr;gap:20px;display:grid}.category-list{flex-direction:column;display:flex}.category-item{border-bottom:1px solid #edf0f5;justify-content:space-between;align-items:center;gap:15px;padding:15px 0;display:flex}.category-item:last-child{border-bottom:none}.category-item strong{color:#252d3d;font-size:14px}.category-item p{color:#9aa2b1;margin-top:4px;font-size:11px}.empty-box,.loading-box{text-align:center;color:#9aa2b1;flex-direction:column;justify-content:center;align-items:center;min-height:220px;display:flex}.empty-box div{margin-bottom:10px;font-size:35px}.empty-box h3{color:#596276;font-size:14px}.empty-box p{margin-top:5px;font-size:12px}.modal-header{justify-content:space-between;align-items:flex-start;display:flex}.modal-header h2{font-size:19px}.modal-header p{color:#8b93a7;margin-top:4px;font-size:12px}.close-button{color:#667085;background:#f3f5f8;border:none;border-radius:8px;width:34px;height:34px;font-size:22px}.current-stock-box{color:#7d8699;background:#f6f8fc;border-radius:10px;margin-top:20px;padding:14px;font-size:12px}.current-stock-box strong{color:#252d3d;margin-top:4px;font-size:20px;display:block}.history-section h3{margin-bottom:12px;font-size:14px}.history-item{border-bottom:1px solid #f0f2f5;justify-content:space-between;padding:10px 0;display:flex}.history-item strong,.history-item span{display:block}.history-item strong{font-size:12px}.history-item span{color:#9aa2b1;margin-top:3px;font-size:10px}.muted-text{color:#9aa2b1;font-size:12px}.inventory-stat{background:#fff;border:1px solid #e8ebf1;border-radius:12px;padding:18px}.inventory-stat span{color:#8b93a7;font-size:11px;display:block}.inventory-stat strong{color:#252d3d;margin-top:6px;font-size:22px;display:block}@media (width<=1000px){.category-layout{grid-template-columns:1fr}.inventory-stats{grid-template-columns:repeat(2,1fr)}}@media (width<=650px){.page-container{padding:20px}.page-top{flex-direction:column;align-items:flex-start;gap:15px}.form-grid{grid-template-columns:1fr}.filter-row{flex-direction:column}.filter-select{width:100%}.inventory-stats{grid-template-columns:1fr}.category-item{flex-direction:column;align-items:flex-start}}@media print{body *{visibility:hidden!important}.invoice-sheet,.invoice-sheet *{visibility:visible!important}.invoice-sheet{width:100%!important;box-shadow:none!important;background:#fff!important;border:none!important;margin:0!important;padding:10px!important;position:absolute!important;top:0!important;left:0!important}}.login-page{box-sizing:border-box;background:linear-gradient(135deg,#090d16 0%,#1e1b4b 50%,#312e81 100%);justify-content:center;align-items:center;width:100vw;min-height:100vh;padding:20px;font-family:inherit;display:flex}.login-card{box-sizing:border-box;text-align:center;background:#fff;border-radius:20px;width:100%;max-width:420px;padding:40px 32px;animation:.4s ease-out fadeIn;box-shadow:0 25px 50px -12px #00000059}@keyframes fadeIn{0%{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}.login-logo{background:#eff6ff;border-radius:50%;justify-content:center;align-items:center;width:72px;height:72px;margin:0 auto 16px;font-size:40px;display:flex;box-shadow:0 4px 6px -1px #2563eb26}.login-card h1{color:#0f172a;letter-spacing:-.5px;margin:0;font-size:26px;font-weight:800}.login-subtitle{color:#64748b;margin:6px 0 28px;font-size:14px}.login-card form{text-align:left;flex-direction:column;gap:18px;display:flex}.form-group{flex-direction:column;gap:6px;display:flex}.form-group input{color:#1e293b;box-sizing:border-box;background:#f8fafc;border:1px solid #cbd5e1;border-radius:10px;outline:none;width:100%;height:46px;padding:0 14px;font-size:14px;transition:all .2s}.form-group input:focus{background:#fff;border-color:#2563eb;box-shadow:0 0 0 4px #2563eb1f}.form-group input::placeholder{color:#94a3b8}.error-message{color:#b91c1c;text-align:center;background:#fee2e2;border:1px solid #fecaca;border-radius:8px;padding:11px 14px;font-size:13px;font-weight:600}.login-button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:10px;width:100%;height:48px;margin-top:6px;font-size:15px;font-weight:700;transition:background .2s,transform .1s;box-shadow:0 4px 12px #2563eb4d}.login-button:hover:not(:disabled){background:#1d4ed8}.login-button:active:not(:disabled){transform:scale(.99)}.login-button:disabled{opacity:.7;cursor:not-allowed}@media (width<=480px){.login-card{border-radius:16px;padding:30px 20px}}.products-page{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:24px;overflow-x:hidden}.products-page *,.products-page :before,.products-page :after{box-sizing:border-box}.products-page .page-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;display:flex}.products-page .page-top h1{overflow-wrap:anywhere;margin:0 0 8px;font-size:clamp(24px,2.5vw,32px);line-height:1.25}.products-page .page-top p{color:#64748b;margin:0;font-size:14px;line-height:1.6}.products-page .primary-button,.products-page .secondary-button{cursor:pointer;white-space:normal;border-radius:8px;min-height:42px;padding:11px 18px;font-size:14px;font-weight:600;transition:all .2s}.products-page .primary-button{flex-shrink:0}.products-page .content-card{border-radius:12px;width:100%;min-width:0;margin-bottom:24px;padding:24px;overflow:hidden}.products-page .product-form-card{margin-bottom:24px}.products-page .card-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px;display:flex}.products-page .card-header h2{margin:0 0 6px;font-size:20px;line-height:1.4}.products-page .card-header p{color:#64748b;margin:0;font-size:14px;line-height:1.5}.products-page .close-button{cursor:pointer;border:none;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:26px;line-height:1;display:flex}.products-page .crm-form{width:100%;min-width:0}.products-page .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;width:100%;margin-bottom:20px;display:grid}.products-page .form-group{flex-direction:column;gap:8px;min-width:0;margin-bottom:18px;display:flex}.products-page .form-grid .form-group{margin-bottom:0}.products-page .form-group label{overflow-wrap:anywhere;font-size:14px;font-weight:600;line-height:1.4}.products-page .form-group input,.products-page .form-group select,.products-page .form-group textarea{color:#1e293b;width:100%;min-width:0;max-width:100%;min-height:44px;font:inherit;background:#fff;border:1px solid #dbe1e8;border-radius:8px;padding:11px 12px;font-size:14px}.products-page .form-group input:focus,.products-page .form-group select:focus,.products-page .form-group textarea:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb1a}.products-page .form-group input:disabled{color:#64748b;cursor:not-allowed;background:#f1f5f9}.products-page .form-group textarea{resize:vertical;min-height:110px}.products-page .field-note{color:#64748b;font-size:12px;line-height:1.5}.products-page .form-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;padding-top:8px;display:flex}.products-page .form-actions button{min-width:130px}.products-page .filter-row{grid-template-columns:minmax(0,2fr) minmax(200px,1fr);gap:16px;margin-bottom:24px;display:grid}.products-page .search-input,.products-page .filter-select{color:#1e293b;background:#fff;border:1px solid #dbe1e8;border-radius:8px;width:100%;min-width:0;min-height:46px;padding:12px 14px;font-size:14px}.products-page .search-input:focus,.products-page .filter-select:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb1a}.products-page .table-wrapper{-webkit-overflow-scrolling:touch;border:1px solid #e2e8f0;border-radius:8px;width:100%;min-width:0;max-width:100%;overflow:auto hidden}.products-page .crm-table{border-collapse:collapse;border-spacing:0;text-align:left;width:100%;min-width:900px}.products-page .crm-table th,.products-page .crm-table td{vertical-align:middle;border-bottom:1px solid #e2e8f0;padding:15px 14px;font-size:13px}.products-page .crm-table th{color:#475569;white-space:nowrap;background:#f8fafc;font-size:12px;font-weight:700}.products-page .crm-table tbody tr:last-child td{border-bottom:none}.products-page .crm-table tbody tr:hover{background:#f8fafc}.products-page .crm-table td:first-child{overflow-wrap:anywhere;min-width:160px}.products-page .crm-table td:first-child strong{line-height:1.5;display:block}.products-page .crm-table td:first-child small{color:#64748b;margin-top:4px;font-size:12px;display:block}.products-page .stock-badge{white-space:nowrap;border-radius:20px;justify-content:center;align-items:center;padding:6px 10px;font-size:12px;font-weight:600;display:inline-flex}.products-page .stock-out{color:#b91c1c;background:#fee2e2}.products-page .stock-low{color:#92400e;background:#fef3c7}.products-page .stock-good{color:#166534;background:#dcfce7}.products-page .action-buttons{white-space:nowrap;align-items:center;gap:8px;display:flex}.products-page .edit-button,.products-page .delete-button{cursor:pointer;border:none;border-radius:6px;min-height:34px;padding:7px 12px;font-size:12px;font-weight:600}.products-page .edit-button{color:#1d4ed8;background:#dbeafe}.products-page .delete-button{color:#b91c1c;background:#fee2e2}.products-page .edit-button:hover{background:#bfdbfe}.products-page .delete-button:hover{background:#fecaca}.products-page .loading-box,.products-page .empty-box{text-align:center;overflow-wrap:anywhere;width:100%;padding:48px 20px}.products-page .empty-box>div{margin-bottom:12px;font-size:40px}.products-page .empty-box h3{margin:0 0 8px;font-size:18px}.products-page .empty-box p{color:#64748b;margin:0;font-size:14px;line-height:1.6}@media (width<=1200px){.products-page,.products-page .content-card{padding:20px}.products-page .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.products-page .crm-table{min-width:850px}}@media (width<=800px){.products-page{padding:16px}.products-page .page-top{align-items:flex-start;gap:14px}.products-page .page-top>div{flex:1;min-width:0}.products-page .page-top .primary-button{width:auto}.products-page .content-card{border-radius:10px;padding:18px}.products-page .filter-row{grid-template-columns:1fr;gap:12px;margin-bottom:18px}.products-page .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.products-page .crm-table{min-width:820px}}@media (width<=560px){.products-page{padding:12px}.products-page .page-top{flex-direction:column;align-items:stretch;gap:16px;margin-bottom:18px}.products-page .page-top h1{font-size:25px}.products-page .page-top p{font-size:13px}.products-page .page-top .primary-button{width:100%;min-height:46px}.products-page .content-card{margin-bottom:16px;padding:14px}.products-page .card-header{gap:10px;margin-bottom:20px}.products-page .card-header h2{font-size:18px}.products-page .card-header p{font-size:13px}.products-page .form-grid{grid-template-columns:minmax(0,1fr);gap:18px}.products-page .form-group{margin-bottom:0}.products-page .form-group input,.products-page .form-group select,.products-page .form-group textarea{font-size:16px}.products-page .form-actions{flex-direction:column-reverse;align-items:stretch;gap:10px}.products-page .form-actions button{width:100%;min-height:46px}.products-page .search-input,.products-page .filter-select{min-height:46px;font-size:16px}.products-page .crm-table{min-width:780px}.products-page .crm-table th,.products-page .crm-table td{padding:12px 10px}.products-page .loading-box,.products-page .empty-box{padding:36px 12px}}@media (width<=360px){.products-page{padding:10px}.products-page .content-card{padding:12px}.products-page .page-top h1{font-size:23px}.products-page .card-header h2{font-size:17px}.products-page .close-button{width:32px;height:32px}}.customers-page{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:24px;overflow-x:hidden}.customers-page *,.customers-page :before,.customers-page :after{box-sizing:border-box}.customers-page .page-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;display:flex}.customers-page .page-top h1{margin:0 0 8px;font-size:clamp(24px,2.5vw,32px);line-height:1.25}.customers-page .page-top p{color:#64748b;margin:0;font-size:14px;line-height:1.6}.customer-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:24px;display:grid}.customer-stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;flex-direction:column;gap:8px;padding:20px;display:flex;box-shadow:0 4px 6px -1px #0000000d}.customer-stat-card span{color:#64748b;text-transform:uppercase;letter-spacing:.5px;font-size:13px;font-weight:600}.customer-stat-card strong{color:#1e293b;font-size:24px;font-weight:700}.customers-page .content-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;width:100%;min-width:0;margin-bottom:24px;padding:24px;box-shadow:0 4px 6px -1px #0000000d}.customers-page h2{color:#1e293b;margin-top:0;margin-bottom:20px;font-size:18px;font-weight:600}.customer-form-grid{grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:16px;display:grid}.customer-form-group{flex-direction:column;gap:6px;display:flex}.customer-form-group label{color:#475569;font-size:13px;font-weight:600}.customer-form-group input{width:100%;font-size:14px;font:inherit;color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;padding:10px 14px}.customer-form-group input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.customer-form-actions{gap:8px;display:flex}@media (width<=1200px){.customer-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=900px){.customer-form-grid{grid-template-columns:1fr}}@media (width<=600px){.customer-stats{grid-template-columns:1fr}.customers-page{padding:12px}}.sales-page{width:100%;min-width:0}.sales-page *,.sales-page :before,.sales-page :after{box-sizing:border-box}.sales-content{width:100%;min-width:0;max-width:1600px;margin:0 auto;padding:28px}.sales-page-header{justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px;display:flex}.sales-page-header h1{color:#1e293b;margin:0;font-size:27px;font-weight:750;line-height:1.3}.sales-page-header p{color:#64748b;margin:7px 0 0;font-size:14px;line-height:1.6}.sales-stock-badge{color:#2563eb;background:#eff6ff;border:1px solid #dbeafe;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;gap:7px;padding:10px 14px;font-size:13px;font-weight:600;display:inline-flex}.sales-layout{grid-template-columns:minmax(0,1.35fr) minmax(320px,.85fr);align-items:start;gap:24px;min-width:0;display:grid}.sales-left-column{flex-direction:column;gap:22px;min-width:0;display:flex}.sales-card,.sales-summary-card{background:#fff;border:1px solid #edf0f5;border-radius:16px;min-width:0;box-shadow:0 4px 16px #0f172a0a}.sales-card{padding:22px}.sales-card-heading,.sales-summary-heading{align-items:center;gap:12px;min-width:0;margin-bottom:20px;display:flex}.sales-heading-icon{background:#eff6ff;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:42px;font-size:20px;display:flex}.sales-card-heading h3,.sales-summary-heading h3{color:#1e293b;margin:0;font-size:16px;font-weight:700}.sales-card-heading p,.sales-summary-heading p{color:#94a3b8;margin:4px 0 0;font-size:12px;line-height:1.5}.sales-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.sales-field{flex-direction:column;gap:8px;min-width:0;display:flex}.sales-field label,.sales-paid-field label{color:#475569;font-size:13px;font-weight:600}.sales-field input,.sales-field select,.sales-paid-field input{color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:9px;outline:none;width:100%;min-width:0;min-height:44px;padding:11px 13px;font-family:inherit;font-size:14px;transition:border-color .2s,box-shadow .2s}.sales-field input:focus,.sales-field select:focus,.sales-paid-field input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.sales-product-form{grid-template-columns:minmax(0,1fr) 100px auto;align-items:end;gap:12px;display:grid}.sales-add-button{color:#fff;white-space:nowrap;cursor:pointer;background:#2563eb;border:none;border-radius:9px;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:0 20px;font-size:14px;font-weight:650;transition:background .2s,transform .2s;display:inline-flex}.sales-add-button:hover{background:#1d4ed8}.sales-add-button:active{transform:scale(.98)}.sales-add-button span{font-size:19px;line-height:1}.sales-cart-card{min-height:250px}.sales-cart-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.sales-cart-heading .sales-card-heading{margin-bottom:18px}.sales-cart-count{color:#2563eb;background:#eff6ff;border-radius:20px;justify-content:center;align-items:center;min-width:28px;height:28px;padding:0 8px;font-size:12px;font-weight:700;display:flex}.sales-empty-cart{text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:30px 12px;display:flex}.sales-empty-icon{opacity:.8;margin-bottom:10px;font-size:36px}.sales-empty-cart h4{color:#475569;margin:0 0 6px;font-size:15px}.sales-empty-cart p{color:#94a3b8;margin:0;font-size:13px;line-height:1.6}.sales-cart-list{flex-direction:column;gap:10px;max-height:420px;padding-right:2px;display:flex;overflow-y:auto}.sales-cart-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:11px;justify-content:space-between;align-items:center;gap:14px;min-width:0;padding:14px;display:flex}.sales-cart-item-info{flex-direction:column;gap:5px;min-width:0;display:flex}.sales-cart-item-info strong{color:#1e293b;overflow-wrap:anywhere;font-size:14px;font-weight:650}.sales-cart-item-info span{color:#64748b;font-size:12px}.sales-cart-item-actions{flex-shrink:0;justify-content:flex-end;align-items:center;gap:12px;display:flex}.sales-item-total{color:#0f172a;white-space:nowrap;font-size:14px}.sales-remove-button{color:#e11d48;cursor:pointer;background:#fff1f2;border:none;border-radius:7px;flex-shrink:0;justify-content:center;align-items:center;width:30px;height:30px;font-size:13px;display:flex}.sales-remove-button:hover{background:#ffe4e6}.sales-summary-card{padding:24px;position:sticky;top:90px}.sales-summary-heading{border-bottom:1px solid #edf0f5;margin-bottom:20px;padding-bottom:20px}.sales-summary-body{flex-direction:column;gap:18px;min-width:0;display:flex}.sales-summary-row{color:#64748b;justify-content:space-between;align-items:center;gap:12px;font-size:14px;display:flex}.sales-summary-row strong{color:#1e293b;text-align:right;font-size:14px}.sales-discount-row label{font-size:14px;font-weight:500}.sales-money-input{background:#fff;border:1px solid #cbd5e1;border-radius:8px;align-items:center;gap:7px;width:145px;min-width:0;padding:0 10px;display:flex}.sales-money-input span{color:#94a3b8;flex-shrink:0;font-size:12px}.sales-money-input input{color:#1e293b;text-align:right;background:0 0;border:none;outline:none;width:100%;min-width:0;height:38px;padding:0;font-size:14px}.sales-money-input:focus-within{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb14}.sales-summary-divider{background:#e2e8f0;height:1px}.sales-grand-total{justify-content:space-between;align-items:center;gap:12px;display:flex}.sales-grand-total span{color:#0f172a;font-size:16px;font-weight:700}.sales-grand-total strong{color:#2563eb;text-align:right;overflow-wrap:anywhere;font-size:20px}.sales-paid-field{flex-direction:column;gap:8px;display:flex}.sales-paid-input{width:100%;padding:0 12px}.sales-paid-input input{height:44px;font-size:16px;font-weight:650}.sales-remaining-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:14px;display:flex}.sales-remaining-box>div{flex-direction:column;gap:4px;display:flex}.sales-remaining-box span{color:#475569;font-size:13px;font-weight:650}.sales-remaining-box small{color:#94a3b8;font-size:11px}.sales-remaining-box strong{text-align:right;overflow-wrap:anywhere;font-size:15px}.sales-due{color:#dc2626}.sales-paid{color:#16a34a}.sales-complete-button{color:#fff;cursor:pointer;background:#16a34a;border:none;border-radius:10px;width:100%;min-height:48px;padding:13px 16px;font-family:inherit;font-size:14px;font-weight:700;transition:background .2s,transform .2s}.sales-complete-button:hover:not(:disabled){background:#15803d}.sales-complete-button:active:not(:disabled){transform:scale(.99)}.sales-complete-button:disabled{cursor:not-allowed;background:#94a3b8}.sales-summary-note{color:#94a3b8;text-align:center;margin:-4px 0 0;font-size:11px;line-height:1.6}.sales-loading{color:#64748b;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:280px;font-size:14px;display:flex}.sales-spinner{border:3px solid #dbeafe;border-top-color:#2563eb;border-radius:50%;width:34px;height:34px;animation:.8s linear infinite sales-spin}@keyframes sales-spin{to{transform:rotate(360deg)}}@media (width<=1100px){.sales-content{padding:24px}.sales-layout{grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:18px}.sales-card{padding:18px}.sales-summary-card{padding:20px}.sales-product-form{grid-template-columns:minmax(0,1fr) 85px}.sales-product-select{grid-column:1/-1}.sales-add-button{min-height:44px}}@media (width<=800px){.sales-content{padding:22px 18px}.sales-page-header{flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:20px}.sales-page-header h1{font-size:24px}.sales-stock-badge{padding:8px 12px}.sales-layout{grid-template-columns:minmax(0,1fr);gap:18px}.sales-left-column{gap:18px}.sales-summary-card{width:100%;position:static}.sales-form-grid{grid-template-columns:minmax(0,1fr);gap:14px}.sales-product-form{grid-template-columns:minmax(0,1fr) 90px;gap:12px}.sales-product-select{grid-column:1/-1}.sales-add-button{grid-column:1/-1;width:100%}.sales-cart-list{max-height:none;overflow:visible}}@media (width<=480px){.sales-content{padding:18px 12px}.sales-page-header h1{font-size:22px}.sales-page-header p{font-size:13px}.sales-card{border-radius:13px;padding:16px 13px}.sales-summary-card{border-radius:13px;padding:18px 14px}.sales-card-heading,.sales-summary-heading{gap:10px;margin-bottom:16px}.sales-heading-icon{border-radius:10px;width:38px;height:38px;font-size:18px}.sales-card-heading h3,.sales-summary-heading h3{font-size:15px}.sales-field input,.sales-field select{padding:11px 10px;font-size:14px}.sales-product-form{grid-template-columns:minmax(0,1fr) 76px;gap:10px}.sales-cart-item{align-items:flex-start;gap:8px;padding:12px 10px}.sales-cart-item-actions{gap:7px}.sales-item-total{white-space:normal;overflow-wrap:anywhere;text-align:right;font-size:12px}.sales-remove-button{width:28px;height:28px}.sales-summary-body{gap:16px}.sales-grand-total span{font-size:15px}.sales-grand-total strong{font-size:18px}.sales-remaining-box{padding:12px 10px}.sales-remaining-box span{font-size:12px}.sales-remaining-box strong{font-size:13px}.sales-complete-button{min-height:48px}}@media (width<=360px){.sales-content{padding:14px 9px}.sales-card{padding:14px 10px}.sales-summary-card{padding:15px 11px}.sales-product-form{grid-template-columns:minmax(0,1fr) 68px;gap:8px}.sales-cart-item{flex-wrap:wrap}.sales-cart-item-actions{justify-content:flex-end;width:100%}.sales-money-input{width:125px}}.suppliers-page{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:24px;overflow-x:hidden}.suppliers-page *,.suppliers-page :before,.suppliers-page :after{box-sizing:border-box}.suppliers-page .page-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;display:flex}.suppliers-page .page-top h1{margin:0 0 8px;font-size:clamp(24px,2.5vw,32px);line-height:1.25}.suppliers-page .page-top p{color:#64748b;margin:0;font-size:14px;line-height:1.6}.supplier-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:24px;display:grid}.supplier-stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;align-items:center;gap:14px;padding:20px;display:flex;box-shadow:0 4px 6px -1px #0000000d}.supplier-stat-icon{background:#eff6ff;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;font-size:22px;display:flex}.supplier-stat-info span{color:#64748b;text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px;font-size:13px;font-weight:600;display:block}.supplier-stat-info strong{color:#1e293b;font-size:20px;font-weight:700}.supplier-toolbar{background:#fff;border:1px solid #e2e8f0;border-radius:14px;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px;padding:16px;display:flex;box-shadow:0 4px 6px -1px #0000000d}.supplier-search-wrapper{flex:1;position:relative}.supplier-search-icon{font-size:15px;position:absolute;top:50%;left:14px;transform:translateY(-50%)}.supplier-search-input{color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;width:100%;height:44px;padding:0 14px 0 42px;font-size:14px}.supplier-search-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.suppliers-page .content-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;box-shadow:0 4px 6px -1px #0000000d}.supplier-table-header{border-bottom:1px solid #e2e8f0;padding:20px}.supplier-table-header h2{color:#1e293b;margin:0;font-size:18px;font-weight:700}.supplier-table-header p{color:#64748b;margin:4px 0 0;font-size:13px}.modal-card{background:#fff;border-radius:16px;width:100%;max-width:700px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 25px -5px #0000001a}.modal-header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:flex-start;padding:22px;display:flex}.supplier-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:22px;display:grid}.supplier-form-group{flex-direction:column;gap:6px;display:flex}.supplier-form-group.full-width{grid-column:1/-1}.supplier-form-group label{color:#334155;font-size:13px;font-weight:600}.supplier-form-group input,.supplier-form-group textarea{width:100%;font-size:14px;font:inherit;color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;padding:10px 14px}.supplier-form-group input:focus,.supplier-form-group textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.supplier-form-group textarea{resize:vertical;min-height:90px}.modal-actions{background:#f8fafc;border-top:1px solid #e2e8f0;justify-content:flex-end;gap:10px;padding:18px 22px;display:flex}@media (width<=1200px){.supplier-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=768px){.supplier-stats,.supplier-form-grid{grid-template-columns:1fr}.supplier-toolbar{flex-direction:column;align-items:stretch}}.purchases-page{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:24px;overflow-x:hidden}.purchases-page *,.purchases-page :before,.purchases-page :after{box-sizing:border-box}.purchases-page .page-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;display:flex}.purchases-page .page-top h1{margin:0 0 8px;font-size:clamp(24px,2.5vw,32px);line-height:1.25}.purchases-page .page-top p{color:#64748b;margin:0;font-size:14px;line-height:1.6}.purchase-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:24px;display:grid}.purchase-stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;flex-direction:column;gap:8px;padding:20px;display:flex;box-shadow:0 4px 6px -1px #0000000d}.purchase-stat-card span{color:#64748b;text-transform:uppercase;letter-spacing:.5px;font-size:13px;font-weight:600}.purchase-stat-card strong{color:#1e293b;font-size:22px;font-weight:700}.purchase-toolbar{background:#fff;border:1px solid #e2e8f0;border-radius:14px;margin-bottom:24px;padding:16px;box-shadow:0 4px 6px -1px #0000000d}.purchase-search-input{color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;width:100%;height:44px;padding:0 14px;font-size:14px}.purchase-search-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.purchases-page .content-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;box-shadow:0 4px 6px -1px #0000000d}.modal-card-small{background:#fff;border-radius:16px;width:100%;max-width:500px;max-height:90vh;padding:24px;overflow-y:auto;box-shadow:0 20px 25px -5px #0000001a}.modal-header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:flex-start;margin-bottom:20px;padding-bottom:12px;display:flex}.modal-header h2{color:#1e293b;margin:0;font-size:20px;font-weight:750}.primary-btn{color:#fff;cursor:pointer;white-space:nowrap;background:#2563eb;border:none;border-radius:8px;padding:10px 18px;font-weight:600;box-shadow:0 2px 4px #2563eb33}.success-btn{color:#fff;cursor:pointer;white-space:nowrap;background:#16a34a;border:none;border-radius:8px;padding:10px 18px;font-weight:600}.danger-btn{color:#fff;cursor:pointer;background:#dc2626;border:none;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:600}.edit-action-btn{color:#2563eb;cursor:pointer;background:#eff6ff;border:none;border-radius:6px;margin-right:6px;padding:6px 12px;font-size:12px;font-weight:600}@media (width<=1200px){.purchase-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=768px){.purchase-stats{grid-template-columns:1fr}}.payments-page{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:24px;overflow-x:hidden}.payments-page *,.payments-page :before,.payments-page :after{box-sizing:border-box}.payments-page .page-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;display:flex}.payments-page .page-top h1{margin:0 0 8px;font-size:clamp(24px,2.5vw,32px);line-height:1.25}.payments-page .page-top p{color:#64748b;margin:0;font-size:14px;line-height:1.6}.payment-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:24px;display:grid}.payment-stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;justify-content:space-between;align-items:center;padding:20px;display:flex;box-shadow:0 4px 6px -1px #0000000d}.payment-stat-info p{color:#64748b;text-transform:uppercase;letter-spacing:.5px;margin:0;font-size:13px;font-weight:600}.payment-stat-info h2{color:#1e293b;margin:6px 0 0;font-size:22px;font-weight:700}.payment-stat-icon{background:#f1f5f9;border-radius:12px;justify-content:center;align-items:center;width:44px;height:44px;font-size:20px;display:flex}.payments-page .content-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:24px;overflow:hidden;box-shadow:0 4px 6px -1px #0000000d}.payment-list-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px;display:flex}.payment-search-wrapper{width:320px;max-width:100%;position:relative}.payment-search-icon{font-size:14px;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.payment-search-input{color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;width:100%;height:42px;padding:0 12px 0 38px;font-size:14px}.payment-search-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.modal-overlay{z-index:1000;background:#0f172a99;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal-close-btn{cursor:pointer;color:#475569;background:#f1f5f9;border:none;border-radius:50%;width:34px;height:34px;font-size:20px;line-height:1}.customer-info-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px;padding:14px;font-size:13px;display:grid}.amount-summary-box{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:10px;gap:8px;margin-bottom:20px;padding:14px;font-size:13px;display:grid}.amount-summary-box div{justify-content:space-between;display:flex}.form-group{flex-direction:column;gap:6px;margin-bottom:16px;display:flex}.form-group label{color:#334155;font-size:13px;font-weight:600}.form-group input,.form-group select,.form-group textarea{width:100%;font-size:14px;font:inherit;color:#1e293b;box-sizing:border-box;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;padding:10px 14px}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.modal-actions{justify-content:flex-end;gap:10px;margin-top:20px;display:flex}.receive-action-btn{color:#166534;cursor:pointer;background:#dcfce7;border:none;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:600}@media (width<=1200px){.payment-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=768px){.payment-stats{grid-template-columns:1fr}.payment-search-wrapper{width:100%}}.invoices-page{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:24px;overflow-x:hidden}.invoices-page *,.invoices-page :before,.invoices-page :after{box-sizing:border-box}.invoices-page .page-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;display:flex}.invoices-page .page-top h1{margin:0 0 8px;font-size:clamp(24px,2.5vw,32px);line-height:1.25}.invoices-page .page-top p{color:#64748b;margin:0;font-size:14px;line-height:1.6}.invoices-page .content-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:24px;overflow:hidden;box-shadow:0 4px 6px -1px #0000000d}.invoice-actions-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px;display:flex}.invoice-sheet{background:#fff;border:1px solid #e2e8f0;border-radius:14px;max-width:850px;margin:0 auto;padding:40px;box-shadow:0 4px 20px #00000014}.invoice-header-flex{border-bottom:2px solid #f1f5f9;flex-wrap:wrap;justify-content:space-between;gap:20px;margin-bottom:25px;padding-bottom:20px;display:flex}.invoice-grid-info{grid-template-columns:1fr 1fr;gap:20px;margin-bottom:30px;display:grid}.invoice-totals-wrapper{justify-content:flex-end;margin-top:20px;display:flex}.invoice-totals-box{width:320px;max-width:100%}.invoice-total-row{color:#475569;justify-content:space-between;padding:8px 0;font-size:14px;display:flex}.primary-btn{color:#fff;cursor:pointer;white-space:nowrap;background:#2563eb;border:none;border-radius:8px;padding:10px 18px;font-weight:600;text-decoration:none;display:inline-block;box-shadow:0 2px 4px #2563eb33}.secondary-btn{color:#334155;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:10px 18px;font-weight:600}@media print{body{background:#fff!important}nav,aside,header,.invoice-actions-bar{display:none!important}.app-layout,.main-content,.invoices-page{margin:0!important;padding:0!important}.invoice-sheet{box-shadow:none!important;border:none!important;width:100%!important;max-width:none!important;padding:0!important}}@media (width<=768px){.invoice-grid-info{grid-template-columns:1fr}.invoice-sheet{padding:20px}}.expenses-page{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:24px;overflow-x:hidden}.expenses-page *,.expenses-page :before,.expenses-page :after{box-sizing:border-box}.expenses-page .page-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;display:flex}.expenses-page .page-top h1{margin:0 0 8px;font-size:clamp(24px,2.5vw,32px);line-height:1.25}.expenses-page .page-top p{color:#64748b;margin:0;font-size:14px;line-height:1.6}.expense-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:24px;display:grid}.expense-stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;justify-content:space-between;align-items:center;padding:20px;display:flex;box-shadow:0 4px 6px -1px #0000000d}.expense-stat-info p{color:#64748b;text-transform:uppercase;letter-spacing:.5px;margin:0;font-size:13px;font-weight:600}.expense-stat-info h2{color:#1e293b;margin:6px 0 0;font-size:22px;font-weight:700}.expense-stat-icon{background:#f1f5f9;border-radius:12px;justify-content:center;align-items:center;width:44px;height:44px;font-size:20px;display:flex}.expenses-page .content-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;margin-bottom:24px;padding:24px;overflow:hidden;box-shadow:0 4px 6px -1px #0000000d}.expense-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.expense-form-group{flex-direction:column;gap:6px;display:flex}.expense-form-group.full-width{grid-column:span 3}.expense-form-group label{color:#334155;font-size:13px;font-weight:600}.expense-form-group input,.expense-form-group select{width:100%;height:42px;font-size:14px;font:inherit;color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;padding:0 14px}.expense-form-group input:focus,.expense-form-group select:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.expense-list-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px;display:flex}.expense-search-wrapper{width:300px;max-width:100%;position:relative}.expense-search-icon{font-size:14px;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.expense-search-input{color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;width:100%;height:42px;padding:0 12px 0 38px;font-size:14px}.expense-search-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.edit-action-btn{color:#b45309;cursor:pointer;background:#fef3c7;border:none;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:600}.delete-action-btn{color:#dc2626;cursor:pointer;background:#fee2e2;border:none;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:600}@media (width<=1200px){.expense-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=900px){.expense-form-grid{grid-template-columns:1fr}.expense-form-group.full-width{grid-column:span 1}}@media (width<=768px){.expense-stats{grid-template-columns:1fr}.expense-search-wrapper{width:100%}}.reports-page{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:24px;overflow-x:hidden}.reports-page *,.reports-page :before,.reports-page :after{box-sizing:border-box}.reports-page .page-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;display:flex}.reports-page .page-top h1{margin:0 0 8px;font-size:clamp(24px,2.5vw,32px);line-height:1.25}.reports-page .page-top p{color:#64748b;margin:0;font-size:14px;line-height:1.6}.report-filter-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;margin-bottom:20px;padding:20px;box-shadow:0 4px 6px -1px #0000000d}.report-filter-title{color:#1e293b;margin-bottom:14px;font-size:16px;font-weight:700}.report-filter-row{flex-wrap:wrap;align-items:flex-end;gap:14px;display:flex}.report-field{flex-direction:column;gap:6px;display:flex}.report-field label{color:#475569;font-size:13px;font-weight:600}.report-field input{color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;min-width:180px;height:42px;padding:0 12px;font-size:14px}.report-field input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.report-tabs{flex-wrap:wrap;gap:8px;margin-bottom:20px;display:flex}.report-tab-btn{color:#475569;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:10px 18px;font-size:14px;font-weight:600}.report-tab-btn.active{color:#fff;background:#2563eb;border-color:#2563eb;box-shadow:0 2px 4px #2563eb33}.report-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px;display:grid}.report-stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;align-items:center;gap:14px;padding:20px;display:flex;box-shadow:0 4px 6px -1px #0000000d}.report-stat-icon{background:#eff6ff;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;font-size:22px;display:flex}.report-stat-info span{color:#64748b;text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px;font-size:13px;font-weight:600;display:block}.report-stat-info strong{color:#1e293b;font-size:20px;font-weight:800}.report-section-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;margin-bottom:20px;padding:20px;box-shadow:0 4px 6px -1px #0000000d}.report-section-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px;display:flex}.report-section-header h2{color:#1e293b;margin:0;font-size:19px;font-weight:750}.report-status-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;display:grid}.report-status-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;align-items:center;gap:14px;padding:18px;display:flex}.crm-table th{color:#475569;text-transform:uppercase;letter-spacing:.4px;white-space:nowrap;background:#f8fafc;font-size:12px;font-weight:700}.primary-btn{color:#fff;cursor:pointer;white-space:nowrap;background:#2563eb;border:none;border-radius:8px;height:42px;padding:0 18px;font-weight:600;box-shadow:0 2px 4px #2563eb33}.secondary-btn{color:#334155;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #cbd5e1;border-radius:8px;height:42px;padding:0 18px;font-weight:600}.small-btn{color:#2563eb;cursor:pointer;background:#eff6ff;border:none;border-radius:7px;padding:8px 14px;font-size:13px;font-weight:600}@media (width<=1200px){.report-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=900px){.report-status-grid{grid-template-columns:1fr}}@media (width<=600px){.report-stats-grid{grid-template-columns:1fr}.reports-page{padding:12px}}.settings-page{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:24px;overflow-x:hidden}.settings-page *,.settings-page :before,.settings-page :after{box-sizing:border-box}.settings-page .page-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;display:flex}.settings-page .page-top h1{margin:0 0 8px;font-size:clamp(24px,2.5vw,32px);line-height:1.25}.settings-page .page-top p{color:#64748b;margin:0;font-size:14px;line-height:1.6}.settings-page .content-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;margin-bottom:20px;padding:24px;box-shadow:0 4px 6px -1px #0000000d}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.settings-group{flex-direction:column;gap:6px;display:flex}.settings-group.full-width{grid-column:span 2}.settings-group label{color:#334155;font-size:13px;font-weight:600}.settings-group input,.settings-group select,.settings-group textarea{width:100%;height:42px;font-size:14px;font:inherit;color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;padding:0 14px}.settings-group textarea{resize:vertical;height:auto;padding:10px 14px}.settings-group input:focus,.settings-group select:focus,.settings-group textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.theme-toggle-row{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.theme-switch{width:52px;height:28px;display:inline-block;position:relative}.theme-switch input{opacity:0;width:0;height:0}.theme-slider{cursor:pointer;background-color:#cbd5e1;border-radius:34px;transition:all .3s;position:absolute;inset:0}.theme-slider:before{content:"";background-color:#fff;border-radius:50%;width:20px;height:20px;transition:all .3s;position:absolute;bottom:4px;left:4px}.theme-switch input:checked+.theme-slider{background-color:#2563eb}.theme-switch input:checked+.theme-slider:before{transform:translate(24px)}.primary-btn{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;padding:11px 20px;font-weight:600;box-shadow:0 2px 4px #2563eb33}.secondary-btn{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:11px 20px;font-weight:600}@media (width<=768px){.settings-grid{grid-template-columns:1fr}.settings-group.full-width{grid-column:span 1}}.categories-page{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:24px;overflow-x:hidden}.categories-page *,.categories-page :before,.categories-page :after{box-sizing:border-box}.categories-page .page-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;display:flex}.categories-page .page-top h1{margin:0 0 8px;font-size:clamp(24px,2.5vw,32px);line-height:1.25}.categories-page .page-top p{color:#64748b;margin:0;font-size:14px;line-height:1.6}.categories-layout{grid-template-columns:1fr 1.5fr;align-items:start;gap:24px;display:grid}.categories-page .content-card{background:#fff;border-radius:14px;width:100%;min-width:0;padding:24px;box-shadow:0 4px 6px -1px #0000000d}.categories-page h3{color:#1e293b;border-bottom:2px solid #f1f5f9;margin-top:0;margin-bottom:20px;padding-bottom:10px;font-size:18px;font-weight:600}.categories-page .form-group{flex-direction:column;gap:6px;margin-bottom:16px;display:flex}.categories-page label{color:#475569;font-size:13px;font-weight:600}.categories-page input,.categories-page textarea{width:100%;font-size:14px;font:inherit;color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;padding:10px 14px}.categories-page input:focus,.categories-page textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.categories-page textarea{resize:vertical;min-height:100px}.categories-page .form-actions{gap:10px;margin-top:10px;display:flex}.categories-page .primary-button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;flex:2;padding:11px;font-weight:600;box-shadow:0 2px 4px #2563eb33}.categories-page .secondary-button{color:#475569;cursor:pointer;background:#e2e8f0;border:none;border-radius:8px;flex:1;padding:11px;font-weight:600}.categories-list{flex-direction:column;gap:12px;max-height:450px;display:flex;overflow-y:auto}.category-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.category-item-info{flex:1;min-width:150px}.category-item-info strong{color:#1e293b;font-size:15px;display:block}.category-item-info p{color:#64748b;word-break:break-word;margin:4px 0 0;font-size:13px}.action-buttons{flex-shrink:0;gap:8px;display:flex}.edit-btn{color:#1d4ed8;cursor:pointer;background:#dbeafe;border:none;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:600}.delete-btn{color:#b91c1c;cursor:pointer;background:#fee2e2;border:none;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:600}@media (width<=900px){.categories-layout{grid-template-columns:1fr}.categories-page{padding:16px}}@media (width<=480px){.categories-page{padding:12px}.category-item{flex-direction:column;align-items:flex-start}.action-buttons{justify-content:flex-end;width:100%}}.inventory-page{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:24px;overflow-x:hidden}.inventory-page *,.inventory-page :before,.inventory-page :after{box-sizing:border-box}.inventory-page .page-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;display:flex}.inventory-page .page-top h1{margin:0 0 8px;font-size:clamp(24px,2.5vw,32px);line-height:1.25}.inventory-page .page-top p{color:#64748b;margin:0;font-size:14px;line-height:1.6}.inventory-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:24px;display:grid}.inventory-stat{background:#fff;border:1px solid #e2e8f0;border-radius:14px;flex-direction:column;gap:8px;padding:20px;display:flex;box-shadow:0 4px 6px -1px #0000000d}.inventory-stat span{color:#64748b;text-transform:uppercase;letter-spacing:.5px;font-size:13px;font-weight:600}.inventory-stat strong{color:#1e293b;font-size:24px;font-weight:700}.inventory-page .content-card{background:#fff;border-radius:14px;width:100%;min-width:0;padding:24px;box-shadow:0 4px 6px -1px #0000000d}.table-wrapper{-webkit-overflow-scrolling:touch;width:100%;overflow-x:auto}.crm-table{border-collapse:collapse;text-align:left;width:100%;min-width:750px}.crm-table th,.crm-table td{vertical-align:middle;border-bottom:1px solid #e2e8f0;padding:15px 14px;font-size:13px}.crm-table th{color:#475569;white-space:nowrap;background:#f8fafc;font-size:12px;font-weight:700}.crm-table tbody tr:hover{background:#f8fafc}.stock-badge{white-space:nowrap;border-radius:20px;justify-content:center;align-items:center;padding:6px 10px;font-size:12px;font-weight:600;display:inline-flex}.stock-out{color:#b91c1c;background:#fee2e2}.stock-low{color:#92400e;background:#fef3c7}.stock-good{color:#166534;background:#dcfce7}.action-buttons{white-space:nowrap;align-items:center;gap:8px;display:flex}.stock-in-button{color:#166534;cursor:pointer;background:#dcfce7;border:none;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:600}.stock-out-button{color:#b91c1c;cursor:pointer;background:#fee2e2;border:none;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:600}.stock-in-button:hover{background:#bbf7d0}.stock-out-button:hover{background:#fecaca}.modal-overlay{z-index:1000;background:#0f172a99;justify-content:center;align-items:center;width:100%;height:100%;padding:16px;display:flex;position:fixed;top:0;left:0}.modal-card{background:#fff;border-radius:16px;width:100%;max-width:500px;max-height:90vh;padding:24px;overflow-y:auto;box-shadow:0 20px 25px -5px #0000001a}.modal-header{justify-content:space-between;align-items:flex-start;margin-bottom:20px;display:flex}.modal-header h2{color:#1e293b;margin:0 0 4px;font-size:20px}.modal-header p{color:#64748b;margin:0;font-size:14px}.close-button{color:#64748b;cursor:pointer;background:0 0;border:none;font-size:24px;line-height:1}.current-stock-box{color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;justify-content:space-between;align-items:center;margin-bottom:20px;padding:14px 16px;font-size:14px;display:flex}.current-stock-box strong{color:#0f172a;font-size:16px}.crm-form .form-group{flex-direction:column;gap:6px;margin-bottom:16px;display:flex}.crm-form label{color:#475569;font-size:13px;font-weight:600}.crm-form input{width:100%;font-size:14px;font:inherit;border:1px solid #cbd5e1;border-radius:8px;outline:none;padding:10px 14px}.crm-form input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.form-actions{gap:10px;margin-top:20px;display:flex}.form-actions .secondary-button{color:#475569;cursor:pointer;background:#e2e8f0;border:none;border-radius:8px;flex:1;padding:11px;font-weight:600}.form-actions button[type=submit]{color:#fff;cursor:pointer;border:none;border-radius:8px;flex:2;padding:11px;font-weight:600}.history-section{border-top:1px solid #e2e8f0;margin-top:24px;padding-top:20px}.history-section h3{color:#1e293b;margin-bottom:12px;font-size:16px;font-weight:600}.muted-text{color:#94a3b8;margin:0;font-size:13px}.history-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;justify-content:space-between;align-items:center;margin-bottom:8px;padding:10px 12px;font-size:13px;display:flex}.history-item div{flex-direction:column;gap:2px;display:flex}.history-item span{color:#64748b;font-size:12px}@media (width<=1024px){.inventory-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.inventory-stats{grid-template-columns:1fr}.inventory-page{padding:12px}}.users-page{box-sizing:border-box;width:100%}.user-form-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;display:grid}.alert{border-radius:8px;margin-bottom:20px;padding:12px 16px;font-size:14px;font-weight:600}.alert.error{color:#991b1b;background:#fee2e2;border:1px solid #fecaca}.alert.success{color:#166534;background:#dcfce7;border:1px solid #bbf7d0}
