:root{--toastify-color-light:#fff;--toastify-color-dark:#121212;--toastify-color-info:#3498db;--toastify-color-success:#07bc0c;--toastify-color-warning:#f1c40f;--toastify-color-error:#e74c3c;--toastify-color-transparent:#ffffffb3;--toastify-icon-color-info:var(--toastify-color-info);--toastify-icon-color-success:var(--toastify-color-success);--toastify-icon-color-warning:var(--toastify-color-warning);--toastify-icon-color-error:var(--toastify-color-error);--toastify-toast-width:320px;--toastify-toast-offset:16px;--toastify-toast-top:max(var(--toastify-toast-offset),env(safe-area-inset-top));--toastify-toast-right:max(var(--toastify-toast-offset),env(safe-area-inset-right));--toastify-toast-left:max(var(--toastify-toast-offset),env(safe-area-inset-left));--toastify-toast-bottom:max(var(--toastify-toast-offset),env(safe-area-inset-bottom));--toastify-toast-background:#fff;--toastify-toast-min-height:64px;--toastify-toast-max-height:800px;--toastify-toast-bd-radius:6px;--toastify-font-family:sans-serif;--toastify-z-index:9999;--toastify-text-color-light:#757575;--toastify-text-color-dark:#fff;--toastify-text-color-info:#fff;--toastify-text-color-success:#fff;--toastify-text-color-warning:#fff;--toastify-text-color-error:#fff;--toastify-spinner-color:#616161;--toastify-spinner-color-empty-area:#e0e0e0;--toastify-color-progress-light:linear-gradient(90deg,#4cd964,#5ac8fa,#007aff,#34aadc,#5856d6,#ff2d55);--toastify-color-progress-dark:#bb86fc;--toastify-color-progress-info:var(--toastify-color-info);--toastify-color-progress-success:var(--toastify-color-success);--toastify-color-progress-warning:var(--toastify-color-warning);--toastify-color-progress-error:var(--toastify-color-error);--toastify-color-progress-bgo:0.2}.Toastify__toast-container{box-sizing:border-box;color:#fff;padding:4px;position:fixed;-webkit-transform:translateZ(9999);-webkit-transform:translateZ(var(--toastify-z-index));width:320px;width:var(--toastify-toast-width);z-index:9999;z-index:var(--toastify-z-index)}.Toastify__toast-container--top-left{left:max(16px,env(safe-area-inset-left));left:var(--toastify-toast-left);top:max(16px,env(safe-area-inset-top));top:var(--toastify-toast-top)}.Toastify__toast-container--top-center{left:50%;top:max(16px,env(safe-area-inset-top));top:var(--toastify-toast-top);transform:translateX(-50%)}.Toastify__toast-container--top-right{right:max(16px,env(safe-area-inset-right));right:var(--toastify-toast-right);top:max(16px,env(safe-area-inset-top));top:var(--toastify-toast-top)}.Toastify__toast-container--bottom-left{bottom:max(16px,env(safe-area-inset-bottom));bottom:var(--toastify-toast-bottom);left:max(16px,env(safe-area-inset-left));left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:max(16px,env(safe-area-inset-bottom));bottom:var(--toastify-toast-bottom);left:50%;transform:translateX(-50%)}.Toastify__toast-container--bottom-right{bottom:max(16px,env(safe-area-inset-bottom));bottom:var(--toastify-toast-bottom);right:max(16px,env(safe-area-inset-right));right:var(--toastify-toast-right)}@media only screen and (max-width:480px){.Toastify__toast-container{left:env(safe-area-inset-left);margin:0;padding:0;width:100vw}.Toastify__toast-container--top-center,.Toastify__toast-container--top-left,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translateX(0)}.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translateX(0)}.Toastify__toast-container--rtl{left:auto;right:env(safe-area-inset-right)}}.Toastify__toast{--y:0;border-radius:6px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;box-sizing:border-box;cursor:default;direction:ltr;display:flex;font-family:sans-serif;font-family:var(--toastify-font-family);justify-content:space-between;margin-bottom:1rem;max-height:800px;max-height:var(--toastify-toast-max-height);min-height:64px;min-height:var(--toastify-toast-min-height);overflow:hidden;padding:8px;position:relative;touch-action:none;z-index:0}.Toastify__toast--stacked{position:absolute;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s;width:100%}.Toastify__toast--stacked[data-collapsed] .Toastify__close-button,.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{bottom:100%;content:"";height:calc(var(--g)*1px);left:0;position:absolute;right:0}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{bottom:0;content:"";height:100%;left:0;position:absolute;right:0;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{align-items:center;display:flex;flex:1 1 auto;margin:auto 0;padding:6px}.Toastify__toast-body>div:last-child{flex:1 1;word-break:break-word}.Toastify__toast-icon{-webkit-margin-end:10px;display:flex;flex-shrink:0;margin-inline-end:10px;width:20px}.Toastify--animate{animation-duration:.5s;animation-fill-mode:both}.Toastify--animate-icon{animation-duration:.3s;animation-fill-mode:both}@media only screen and (max-width:480px){.Toastify__toast{border-radius:0;margin-bottom:0}}.Toastify__toast-theme--dark{background:#121212;background:var(--toastify-color-dark);color:#fff;color:var(--toastify-text-color-dark)}.Toastify__toast-theme--colored.Toastify__toast--default,.Toastify__toast-theme--light{background:#fff;background:var(--toastify-color-light);color:#757575;color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{background:#3498db;background:var(--toastify-color-info);color:#fff;color:var(--toastify-text-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{background:#07bc0c;background:var(--toastify-color-success);color:#fff;color:var(--toastify-text-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{background:#f1c40f;background:var(--toastify-color-warning);color:#fff;color:var(--toastify-text-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{background:#e74c3c;background:var(--toastify-color-error);color:#fff;color:var(--toastify-text-color-error)}.Toastify__progress-bar-theme--light{background:linear-gradient(90deg,#4cd964,#5ac8fa,#007aff,#34aadc,#5856d6,#ff2d55);background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:#bb86fc;background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:#3498db;background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:#07bc0c;background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:#f1c40f;background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:#e74c3c;background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning{background:#ffffffb3;background:var(--toastify-color-transparent)}.Toastify__close-button{align-self:flex-start;background:#0000;border:none;color:#fff;cursor:pointer;opacity:.7;outline:none;padding:0;transition:.3s ease;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:focus,.Toastify__close-button:hover{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{border-bottom-left-radius:6px;border-bottom-left-radius:var(--toastify-toast-bd-radius);bottom:0;height:100%;left:0;opacity:.7;position:absolute;transform-origin:left;width:100%;z-index:9999;z-index:var(--toastify-z-index)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{border-bottom-left-radius:0;border-bottom-right-radius:6px;border-bottom-right-radius:var(--toastify-toast-bd-radius);left:auto;right:0;transform-origin:right}.Toastify__progress-bar--wrp{border-bottom-left-radius:6px;border-bottom-left-radius:var(--toastify-toast-bd-radius);bottom:0;height:5px;left:0;position:absolute;width:100%}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{height:100%;opacity:.2;opacity:var(--toastify-color-progress-bgo);width:100%}.Toastify__spinner{animation:Toastify__spin .65s linear infinite;border:2px solid #e0e0e0;border-color:var(--toastify-spinner-color-empty-area);border-radius:100%;border-right-color:#616161;border-right-color:var(--toastify-spinner-color);box-sizing:border-box;height:20px;width:20px}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--bottom-left,.Toastify__bounce-enter--top-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--bottom-right,.Toastify__bounce-enter--top-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--bottom-left,.Toastify__bounce-exit--top-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--bottom-right,.Toastify__bounce-exit--top-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{animation-timing-function:ease-in;opacity:0;transform:perspective(400px) rotateX(90deg)}40%{animation-timing-function:ease-in;transform:perspective(400px) rotateX(-20deg)}60%{opacity:1;transform:perspective(400px) rotateX(10deg)}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{opacity:1;transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg)}to{opacity:0;transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg)}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{transform:translate3d(110%,var(--y),0);visibility:hidden}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{transform:translate3d(-110%,var(--y),0);visibility:hidden}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{transform:translate3d(0,500px,0);visibility:hidden}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{transform:translate3d(0,-500px,0);visibility:hidden}}.Toastify__slide-enter--bottom-left,.Toastify__slide-enter--top-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--bottom-right,.Toastify__slide-enter--top-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--bottom-left,.Toastify__slide-exit--top-left{animation-duration:.3s;animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in}.Toastify__slide-exit--bottom-right,.Toastify__slide-exit--top-right{animation-duration:.3s;animation-name:Toastify__slideOutRight;animation-timing-function:ease-in}.Toastify__slide-exit--top-center{animation-duration:.3s;animation-name:Toastify__slideOutUp;animation-timing-function:ease-in}.Toastify__slide-exit--bottom-center{animation-duration:.3s;animation-name:Toastify__slideOutDown;animation-timing-function:ease-in}@keyframes Toastify__spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f5f5f5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}*{box-sizing:border-box}.App{min-height:100vh}.loading{align-items:center;color:#333;display:flex;font-size:1.5rem;height:100vh;justify-content:center}[dir=rtl],[dir=rtl] input,[dir=rtl] select,[dir=rtl] textarea{text-align:right}.auth-container{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;justify-content:center;min-height:100vh;padding:20px}.auth-card{background:#fff;border-radius:10px;box-shadow:0 10px 40px #0000001a;max-width:450px;padding:40px;width:100%}.auth-title{color:#333;font-size:2rem;margin-bottom:30px;text-align:center}.auth-form{display:flex;flex-direction:column;gap:20px}.form-control{padding:12px;transition:border-color .3s}.btn{padding:12px 24px}.btn-primary:hover:not(:disabled){background:#5568d3;box-shadow:0 5px 15px #667eea66;transform:translateY(-2px)}.btn-primary:disabled{cursor:not-allowed;opacity:.6}.auth-footer{color:#666;margin-top:20px;text-align:center}.auth-footer a{color:#667eea;font-weight:500;text-decoration:none}.auth-footer a:hover{text-decoration:underline}[dir=rtl] .auth-form{text-align:right}.navbar{background:linear-gradient(135deg,#667eea,#764ba2);box-shadow:0 2px 10px #0000001a;position:-webkit-sticky;position:sticky;top:0;z-index:1000}.navbar-container{align-items:center;display:flex;height:70px;justify-content:space-between;margin:0 auto;max-width:1400px;padding:0 20px}.navbar-brand h2{color:#fff;font-size:24px;font-weight:700;margin:0;text-shadow:0 2px 4px #0003}.navbar-menu{display:flex;gap:5px;list-style:none;margin:0;padding:0}.navbar-menu li a{border-radius:6px;color:#ffffffe6;display:block;font-weight:500;padding:10px 20px;text-decoration:none;transition:all .3s}.navbar-menu li a:hover{background:#ffffff26;color:#fff}.navbar-menu li a.active{background:#ffffff40;color:#fff;font-weight:600}.navbar-user{align-items:center;display:flex;gap:15px}.user-name{color:#fff;font-size:14px;font-weight:500}.logout-btn{background:#fff3;border:1px solid #ffffff4d;border-radius:6px;color:#fff;cursor:pointer;font-weight:600;padding:8px 20px;transition:all .3s}.logout-btn:hover{background:#ffffff4d;transform:translateY(-1px)}@media (max-width:768px){.navbar-container{flex-wrap:wrap;height:auto;padding:15px 20px}.navbar-brand{margin-bottom:10px;text-align:center;width:100%}.navbar-menu{flex-wrap:wrap;justify-content:center;width:100%}.navbar-menu li a{font-size:14px;padding:8px 15px}.navbar-user{justify-content:center;margin-top:10px;width:100%}.user-name{font-size:12px}.logout-btn{font-size:14px;padding:6px 15px}}.dashboard{margin:0 auto;max-width:1400px;padding:20px}.dashboard-header{align-items:center;border-bottom:2px solid #eee;display:flex;justify-content:space-between;margin-bottom:30px;padding-bottom:20px}.dashboard-header h1{color:#333;font-size:2rem;margin:0}.dashboard-header p{color:#666;margin:5px 0 0}.header-actions{display:flex;gap:10px}.btn{border-radius:5px;font-size:1rem;font-weight:500;transition:all .3s}.btn-primary{background:#667eea}.btn-primary:hover{background:#5568d3;transform:translateY(-2px)}.btn-secondary{background:#6c757d}.btn-secondary:hover{background:#5a6268}.stats-grid{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));margin-bottom:40px}.stat-card{align-items:center;background:#fff;border-radius:10px;box-shadow:0 2px 10px #0000001a;display:flex;gap:20px;padding:25px;transition:transform .3s}.stat-card:hover{box-shadow:0 5px 20px #00000026;transform:translateY(-5px)}.stat-card.warning{border-left:4px solid #ffc107}.stat-card.success{border-left:4px solid #28a745}.stat-icon{font-size:3rem}.stat-content h3{color:#333;font-size:2rem;margin:0}.stat-content p{color:#666;font-size:.9rem;margin:5px 0 0}.recent-items h2{color:#333;margin-bottom:20px}.items-table{background:#fff;border-radius:10px;box-shadow:0 2px 10px #0000001a;overflow:hidden}table{border-collapse:collapse;width:100%}thead{background:#667eea;color:#fff}th{font-weight:500;padding:15px;text-align:left}[dir=rtl] table{direction:rtl;width:100%}[dir=rtl] table,[dir=rtl] thead{display:flex;flex-direction:column}[dir=rtl] thead{background:#667eea;color:#fff}[dir=rtl] tbody{display:flex;flex-direction:column}[dir=rtl] tr{border-bottom:1px solid #eee;direction:rtl;display:flex;flex-direction:row-reverse}[dir=rtl] td,[dir=rtl] th{direction:rtl;flex:1 1;padding:15px}[dir=rtl] td:first-child,[dir=rtl] th:first-child{order:4}[dir=rtl] td:nth-child(2),[dir=rtl] th:nth-child(2){order:3}[dir=rtl] td:nth-child(3),[dir=rtl] th:nth-child(3){order:2}[dir=rtl] td:nth-child(4),[dir=rtl] th:nth-child(4){order:1}[dir=rtl] th{font-weight:500}[dir=rtl] tbody tr:hover{background:#f8f9fa}td{border-bottom:1px solid #eee;padding:15px}tbody tr:hover{background:#f8f9fa}.low-stock{color:#dc3545;font-weight:700}.alert-batches-section{background-color:#fff5f5;border:2px solid #f39c12;border-radius:8px;margin:30px 0;padding:20px}.section-header{margin-bottom:20px}.section-header h2{color:#2c3e50;font-size:1.3rem;margin:0}.batches-grid{grid-gap:15px;display:grid;gap:15px;grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}.batch-alert-card{background-color:#fff;border-left:5px solid #3498db;border-radius:8px;box-shadow:0 2px 8px #0000001a;padding:15px;transition:transform .3s,box-shadow .3s}.batch-alert-card:hover{box-shadow:0 4px 12px #00000026;transform:translateY(-3px)}.batch-alert-card.alert{border-left-color:#f39c12}.batch-alert-card.expired{background-color:#ffe6e6;border-left-color:#e74c3c}.batch-alert-header{align-items:center;border-bottom:1px solid #ecf0f1;display:flex;justify-content:space-between;margin-bottom:12px;padding-bottom:10px}.batch-code{flex:1 1;font-size:1rem;font-weight:700}.batch-status-badge{border-radius:20px;font-size:.8rem;font-weight:600;margin-right:10px;padding:4px 10px;white-space:nowrap}.batch-alert-content{color:#555;font-size:.95rem}.batch-alert-content p{align-items:center;direction:ltr;display:flex;flex-wrap:nowrap;justify-content:space-between;margin:8px 0;text-align:left;white-space:nowrap}.batch-alert-content strong{color:#2c3e50;direction:ltr;flex-shrink:0;margin-right:10px;text-align:left}.days-left{border-top:1px solid #ecf0f1;font-weight:600;margin-top:10px!important;padding-top:10px}[dir=rtl] td,[dir=rtl] th{text-align:right}[dir=rtl] .stat-card{border-left:none;border-right:4px solid}[dir=rtl] .stat-card.warning{border-right-color:#ffc107}[dir=rtl] .stat-card.success{border-right-color:#28a745}[dir=rtl] .batch-alert-card{border-left:none;border-right:5px solid #3498db}[dir=rtl] .batch-alert-card.alert{border-right-color:#f39c12}[dir=rtl] .batch-alert-card.expired{border-right-color:#e74c3c}[dir=rtl] .batch-alert-header{flex-direction:row-reverse;justify-content:flex-start}[dir=rtl] .batch-code{direction:rtl;text-align:right}[dir=rtl] .batch-status-badge{margin-left:10px;margin-right:0;order:1}[dir=rtl] .batch-alert-content{direction:rtl;text-align:right}[dir=rtl] .batch-alert-content p{align-items:center;direction:rtl;display:flex;flex-direction:row-reverse;flex-wrap:nowrap;justify-content:space-between;margin:8px 0;text-align:right;white-space:nowrap}[dir=rtl] .batch-alert-content strong{direction:rtl;flex-shrink:0;margin-right:10px;order:1;text-align:right}[dir=rtl] .batch-alert-content p>:not(strong){order:2}[dir=rtl] .batch-alert-content .days-left{align-items:center!important;border-top:1px solid #ecf0f1!important;direction:rtl!important;display:flex!important;flex-direction:row-reverse!important;flex-wrap:nowrap!important;justify-content:space-between!important;margin:10px 0 8px!important;text-align:right!important;white-space:nowrap!important}[dir=rtl] .batch-alert-content .days-left strong{direction:rtl!important;flex-shrink:0!important;margin-right:10px!important;order:1!important;text-align:right!important}[dir=rtl] .batch-alert-content .days-left span{order:2!important;text-align:left!important}.items-page{margin:0 auto;max-width:1400px;padding:20px}.items-header{align-items:center;border-bottom:2px solid #eee;display:flex;justify-content:space-between;margin-bottom:30px;padding-bottom:20px}.items-header h1{color:#333;font-size:2rem;margin:0}.items-header p{color:#666;margin:5px 0 0}.items-controls{align-items:center;display:flex;gap:15px;justify-content:space-between;margin-bottom:30px}.search-input{border-radius:5px;font-size:1rem;max-width:400px}.items-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}.item-card{border-radius:10px;box-shadow:0 2px 10px #0000001a;transition:transform .3s}.item-card:hover{box-shadow:0 5px 20px #00000026}.item-header{align-items:start}.item-header h3{color:#333;font-size:1.2rem}.badge-warning{background:#ffc107;border-radius:4px;color:#000;font-size:.75rem;font-weight:700;padding:4px 8px}.item-details{color:#666;margin-bottom:15px}.item-details p{font-size:.9rem;margin:8px 0}.btn-delete,.btn-edit{border:none;border-radius:5px;cursor:pointer;flex:1 1;font-size:.9rem;padding:8px;transition:all .3s}.btn-edit{background:#667eea;color:#fff}.btn-edit:hover{background:#5568d3}.btn-delete{background:#dc3545;color:#fff}.btn-delete:hover{background:#c82333}.modal-overlay{padding:20px}.modal-content{background:#fff;border-radius:10px;box-sizing:border-box;max-height:90vh;max-width:1200px;overflow-y:auto;padding:30px;width:95%}.modal-content h2{color:#333;margin:0 0 25px}.item-form{display:flex;flex-direction:column;gap:20px}.form-row{grid-gap:15px;display:grid;gap:15px;grid-template-columns:1fr 1fr}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{color:#555;font-weight:500}.form-control{border:1px solid #ddd;border-radius:5px;box-sizing:border-box;font-size:1rem;padding:10px;width:100%}.form-control:focus{border-color:#667eea;outline:none}textarea.form-control{font-family:inherit;resize:vertical}.modal-actions{gap:10px;margin-top:10px}.btn-batch{background-color:#9b59b6;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:.9rem;font-weight:600;padding:8px 12px;transition:all .3s}.btn-batch:hover{background-color:#8e44ad}.batches-section{background-color:#f9f9f9;border-left:4px solid #9b59b6;border-radius:6px;margin-top:15px;padding:15px}.batches-section h4{color:#2c3e50;font-size:1rem;margin:0 0 12px}.item-batches-display{background-color:#f0f4f8;border-left:5px solid #3498db;border-radius:8px;grid-column:1/-1;margin-bottom:20px;margin-left:20px;margin-right:20px;padding:15px}.batches-display-header{margin-bottom:12px}.batches-display-header h4{color:#2c3e50;font-size:1.1rem;font-weight:600;margin:0}.batches-display-list{grid-gap:12px;display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}.batch-display-item{background-color:#fff;border-left:4px solid #3498db;border-radius:6px;box-shadow:0 2px 4px #0000000d;padding:12px}.batch-display-item.alert{background-color:#fff9e6;border-left-color:#f39c12}.batch-display-item.expired{background-color:#ffe6e6;border-left-color:#e74c3c}.batch-display-item.ok{background-color:#e8f8f5;border-left-color:#27ae60}.batch-display-info{margin-bottom:10px}.batch-display-code{color:#2c3e50;font-size:.95rem;font-weight:600;margin-bottom:8px}.batch-display-details{color:#555;display:flex;flex-direction:column;font-size:.85rem;gap:6px}.batch-display-details span{align-items:center;display:flex;gap:4px;word-break:break-word}.batch-display-item .batch-badge{display:inline-block;margin-top:8px}.batch-display-item .batch-btn-delete{margin-top:8px;width:100%}.batches-list{display:flex;flex-direction:column;gap:10px}.batch-item{align-items:center;background-color:#fff;border-left:4px solid #3498db;border-radius:4px;box-shadow:0 2px 4px #0000000d;display:flex;font-size:.9rem;justify-content:space-between;padding:12px}.batch-item.alert{background-color:#fff9e6;border-left-color:#f39c12}.batch-item.expired{background-color:#ffe6e6;border-left-color:#e74c3c}.batch-info{flex:1 1;min-width:0}.batch-code{color:#2c3e50;font-size:.95rem;font-weight:600;margin-bottom:5px;word-break:break-word}.batch-details{grid-gap:12px;color:#7f8c8d;display:grid;font-size:.85rem;gap:12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));width:100%}.batch-details span{align-items:center;display:flex;gap:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-word}.batch-badge{border-radius:12px;display:inline-block;font-size:.8rem;font-weight:600;padding:3px 8px;white-space:nowrap}.badge-ok{background-color:#d4edda;color:#155724}.badge-alert{background-color:#fff3cd;color:#856404}.badge-expired{background-color:#f8d7da;color:#721c24}.batch-btn-delete{background-color:#e74c3c;border:none;border-radius:3px;color:#fff;cursor:pointer;flex-shrink:0;font-size:.8rem;font-weight:600;margin-left:10px;padding:6px 10px;transition:all .3s;white-space:nowrap}.batch-btn-delete:hover:not(:disabled){background-color:#c0392b}.batch-btn-delete:disabled{background-color:#95a5a6;cursor:not-allowed;opacity:.6}.form-section{background-color:#f8f9fa;border:2px solid #e0e0e0;border-radius:8px;margin:25px 0;padding:20px}.section-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:15px}.section-header h3{color:#2c3e50;font-size:1.1rem;margin:0}.btn-small{font-size:.9rem;padding:6px 12px}.batches-form-list{display:flex;flex-direction:column;gap:15px}.batch-form-item{background-color:#fff;border:1px solid #ddd;border-radius:6px;padding:15px;position:relative}.batch-form-header{align-items:center;border-bottom:2px solid #e0e0e0;display:flex;justify-content:space-between;margin-bottom:12px;padding-bottom:10px}.batch-form-header span{color:#2c3e50;font-size:.95rem;font-weight:600}.btn-remove-batch{align-items:center;background-color:#e74c3c;border:none;border-radius:50%;color:#fff;cursor:pointer;display:flex;font-size:14px;height:24px;justify-content:center;transition:all .3s;width:24px}.btn-remove-batch:hover{background-color:#c0392b;transform:scale(1.1)}.batch-form-fields{grid-gap:15px;display:grid;gap:15px;grid-template-columns:repeat(4,1fr)}.batch-form-fields .form-group{margin-bottom:0}.no-batches-message{color:#7f8c8d;font-style:italic;padding:20px;text-align:center}.total-quantity-display{background-color:#e8f5e9;border-radius:6px;color:#27ae60;font-size:1.1rem;margin-top:15px;padding:12px;text-align:center}.batch-quantity-display{grid-column:span 4}.batch-quantity-display .calculated-value{background-color:#fff3cd;border:1px solid #ffc107;border-radius:4px;color:#856404;font-size:1.1rem;font-weight:700;margin-top:5px;padding:10px;text-align:center}.added-batches-summary{background-color:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;box-sizing:border-box;padding:15px}.added-batches-summary h4{color:#2c3e50;font-size:1.1rem;margin-bottom:15px}.batches-summary-list{display:flex;flex-direction:column;gap:10px}.batch-summary-item{background-color:#fff;border:1px solid #e0e0e0;border-radius:6px;box-shadow:0 2px 4px #0000000d;box-sizing:border-box;padding:12px}.batch-summary-header{align-items:center;border-bottom:1px solid #f0f0f0;display:flex;justify-content:space-between;margin-bottom:8px;padding-bottom:8px}.batch-summary-header strong{color:#2c3e50;font-size:.95rem}.batch-summary-quantity{background-color:#27ae60;border-radius:12px;color:#fff;font-size:.9rem;font-weight:700;padding:4px 10px}.batch-summary-details{color:#666;display:flex;flex-wrap:wrap;font-size:.9rem;gap:15px}.batch-summary-details span{align-items:center;display:inline-flex;gap:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width:768px){.items-grid{grid-template-columns:1fr}.item-batches-display{grid-column:1/-1;margin-left:0;margin-right:0}.batches-display-list{grid-template-columns:1fr}.modal-overlay{padding:10px}.modal-content{max-height:95vh;padding:20px;width:100%}.form-row{grid-template-columns:1fr}.items-controls{flex-direction:column}.search-input{max-width:100%}.batch-item{align-items:flex-start;flex-direction:column}.batch-details{gap:8px;grid-template-columns:1fr;margin-top:8px}.batch-btn-delete{margin-left:0;margin-top:8px;width:100%}.batch-form-fields{grid-template-columns:1fr}.batch-quantity-display{grid-column:span 1}.section-header{align-items:flex-start;flex-direction:column;gap:10px}.section-header .btn-small{width:100%}.modal-actions{flex-direction:column}.modal-actions .btn{width:100%}.batch-summary-header{align-items:flex-start}.batch-summary-details,.batch-summary-header{flex-direction:column;gap:8px}.batch-summary-details span{font-size:.85rem}}@media (min-width:769px) and (max-width:1024px){.modal-content{padding:25px;width:90%}.batch-form-fields{grid-template-columns:repeat(2,1fr)}.batch-quantity-display{grid-column:span 2}}.cat-brands-page{background-color:#f5f7fa;display:flex;flex-direction:column;min-height:100vh}.cat-brands-content{flex:1 1;margin:0 auto;max-width:1200px;padding:20px;width:100%}.cat-brands-header{align-items:center;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;display:flex;justify-content:space-between;margin-bottom:25px;padding:20px}.cat-brands-header .header-left{align-items:center;display:flex;gap:20px}.cat-brands-header h1{color:#2c3e50;font-size:28px;margin:0}.cat-brands-header p{color:#95a5a6;font-size:14px;margin:5px 0 0}.cat-brands-header .header-actions{display:flex;gap:15px}.back-btn{padding:8px 15px}.language-selector{background:#fff;border:1px solid #ddd;border-radius:6px;cursor:pointer;font-size:14px;padding:8px 12px}.tabs{border-bottom:2px solid #ecf0f1;display:flex;gap:10px;margin-bottom:25px}.tab-btn{background:#0000;border:none;border-bottom:3px solid #0000;color:#95a5a6;cursor:pointer;font-size:16px;font-weight:600;padding:12px 25px;transition:all .2s}.tab-btn:hover{color:#3498db}.tab-btn.active{border-bottom-color:#3498db;color:#3498db}.controls{display:flex;flex-wrap:wrap;gap:15px;margin-bottom:25px}.search-input{flex:1 1;font-size:14px;min-width:250px;padding:12px 15px}.btn{border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:600;padding:10px 20px;transition:all .2s}.btn-primary{background:#27ae60;color:#fff}.btn-primary:hover{background:#229954}.btn-secondary{background:#3498db;color:#fff}.btn-secondary:hover{background:#2980b9}.btn-danger{background:#e74c3c;color:#fff}.btn-danger:hover{background:#c0392b}.items-grid{grid-gap:20px;gap:20px;grid-template-columns:repeat(auto-fill,minmax(350px,1fr))}.item-card{background:#fff;box-shadow:0 2px 8px #0000001a;padding:20px;transition:transform .2s,box-shadow .2s}.item-card:hover{box-shadow:0 4px 12px #00000026;transform:translateY(-5px)}.item-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:15px}.item-header h3{color:#2c3e50;font-size:18px;margin:0;overflow-wrap:anywhere;word-break:break-word}.badge-inactive{background:#95a5a6;border-radius:20px;color:#fff;font-size:12px;font-weight:600;padding:4px 10px}.item-details{background:#f8f9fa;border-radius:6px;margin-bottom:20px;padding:15px}.detail-item{display:flex;flex-wrap:wrap;font-size:13px;gap:10px;margin-bottom:10px}.detail-item:last-child{margin-bottom:0}.detail-item .label{color:#7f8c8d;font-weight:600;min-width:100px}.detail-item .value{color:#2c3e50;flex:1 1;-webkit-hyphens:none;hyphens:none;max-width:100%;min-width:0;overflow-wrap:normal;white-space:normal;word-break:keep-all}.detail-item .alt-names{color:#7f8c8d;display:block;font-size:11px;margin-top:4px}.item-actions{display:flex;gap:10px}.item-actions .btn{flex:1 1;font-size:13px;padding:8px 12px}.modal-overlay{align-items:center;background:#00000080;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1000}.modal{background:#fff;border-radius:8px;max-height:90vh;max-width:500px;overflow-y:auto;width:90%}.modal-header{align-items:center;border-bottom:1px solid #ecf0f1;display:flex;justify-content:space-between;padding:20px}.modal-header h2{color:#2c3e50;font-size:20px;margin:0}.close-btn{align-items:center;background:none;border:none;color:#95a5a6;cursor:pointer;display:flex;font-size:28px;height:30px;justify-content:center;padding:0;width:30px}.close-btn:hover{color:#2c3e50}.form{padding:25px}.form-group{margin-bottom:20px}.form-group label{font-size:14px}.form-input{border:1px solid #ddd;border-radius:6px;padding:10px 12px}.form-input:focus{box-shadow:0 0 0 3px #3498db1a}.checkbox-label{align-items:center;cursor:pointer;display:flex;font-weight:400;gap:10px}.checkbox-label input{cursor:pointer;height:18px;width:18px}.modal-actions{display:flex;gap:12px;margin-top:25px}.modal-actions .btn{flex:1 1}.no-data{background:#fff;border-radius:8px;font-size:16px}.loading,.no-data{color:#95a5a6;padding:60px 20px;text-align:center}.loading{font-size:18px}[dir=rtl] .cat-brands-header,[dir=rtl] .cat-brands-header .header-left{flex-direction:row-reverse}[dir=rtl] .item-details{direction:rtl}[dir=rtl] .detail-item,[dir=rtl] .item-actions,[dir=rtl] .modal-actions,[dir=rtl] .modal-header{flex-direction:row-reverse}@media (max-width:768px){.cat-brands-content{padding:15px}.cat-brands-header{align-items:flex-start;flex-direction:column;gap:15px}.cat-brands-header .header-actions{width:100%}.items-grid{grid-template-columns:1fr}.controls{flex-direction:column}.btn,.search-input{width:100%}.modal{max-height:95vh;width:95%}.detail-item{flex-direction:column!important}.detail-item .label{min-width:0;min-width:auto}}@media (max-width:480px){.tabs{justify-content:space-between}.tab-btn{font-size:14px;padding:10px 15px}.item-header h3{font-size:16px}.modal-header h2{font-size:18px}}.pos-container{margin:0 auto;max-width:1400px;padding:20px}.pos-header{align-items:center;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;display:flex;gap:15px;margin-bottom:20px;padding:15px 20px}.pos-header h1{color:#2c3e50;flex:1 1;margin:0}.pos-content{grid-gap:20px;display:grid;gap:20px;grid-template-columns:2fr 1fr;min-height:calc(100vh - 150px)}.pos-items-section{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;padding:20px}.pos-items-section h2{color:#2c3e50;margin-bottom:15px}.pos-items-section h3{color:#34495e;font-size:16px;margin-bottom:15px;margin-top:20px}.search-input{border:1px solid #ddd;border-radius:6px;font-size:16px;margin-bottom:20px;padding:12px;width:100%}.popular-items-section{background:#fff3cd;border-left:4px solid #ffc107;border-radius:8px;margin-bottom:20px;padding:15px}.popular-items-section h3{color:#856404;font-size:14px;margin:0 0 12px}.popular-items-grid{grid-gap:10px;display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}.popular-item-btn{background:#fff;border:2px solid #ffc107;border-radius:6px;cursor:pointer;font-size:13px;padding:12px;text-align:center;transition:all .2s}.popular-item-btn:hover{background:#ffc107;color:#fff;transform:translateY(-2px)}.popular-item-name{color:#333;font-weight:700;margin-bottom:5px}.popular-item-price{color:#27ae60;font-weight:700;margin-bottom:5px}.popular-item-sold{color:#7f8c8d;font-size:12px}.items-grid{grid-gap:15px;display:grid;gap:15px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));max-height:calc(100vh - 400px);overflow-y:auto}.item-card{background:#f8f9fa;border:2px solid #0000;border-radius:8px;cursor:pointer;padding:15px;text-align:center;transition:all .2s}.item-card:hover{border-color:#3498db;box-shadow:0 4px 8px #00000026;transform:translateY(-2px)}.item-name{color:#2c3e50;font-size:14px;font-weight:600;margin-bottom:8px}.item-price{color:#27ae60;font-size:16px;font-weight:700;margin-bottom:5px}.item-stock{color:#7f8c8d;font-size:12px}.pos-cart-section{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;display:flex;flex-direction:column;padding:20px}.pos-cart-section h2{color:#2c3e50;margin-bottom:15px}.empty-cart,.no-items{color:#95a5a6;font-size:16px;padding:40px 20px;text-align:center}.no-items{grid-column:1/-1}.cart-items{flex:1 1;margin-bottom:20px;max-height:400px;overflow-y:auto}.cart-item{align-items:center;background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;display:flex;justify-content:space-between;margin-bottom:10px;padding:12px}.cart-item-info{flex:1 1}.cart-item-name{color:#2c3e50;font-weight:600;margin-bottom:4px}.cart-item-price{color:#27ae60;font-size:14px}.cart-item-controls{align-items:center;display:flex;gap:10px}.quantity-input{border:1px solid #ddd;border-radius:4px;font-size:14px;padding:6px;text-align:center;width:60px}.remove-btn{align-items:center;background:#e74c3c;border:none;border-radius:50%;color:#fff;cursor:pointer;display:flex;font-size:20px;height:28px;justify-content:center;transition:background .2s;width:28px}.remove-btn:hover{background:#c0392b}.cart-totals{border-top:2px solid #e9ecef;margin-bottom:20px;padding-top:15px}.total-row{padding:8px 0}.total-row:last-child{border-top:1px solid #e9ecef;margin-top:8px;padding-top:12px}.total-amount{color:#27ae60;font-weight:700;overflow-wrap:break-word;word-break:break-word}.payment-method{margin-bottom:15px}.payment-method label{color:#2c3e50;display:block;font-weight:600;margin-bottom:8px}.payment-select{border:1px solid #ddd;border-radius:6px;cursor:pointer;font-size:16px;padding:10px;width:100%}.checkout-btn{background:#27ae60;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:18px;font-weight:700;padding:15px;transition:background .2s;width:100%}.checkout-btn:hover{background:#229954}.receipt-container{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin:0 auto;max-width:800px;padding:20px}.receipt,.receipt-header-section{margin-bottom:20px}.receipt{background:#fff;border:2px solid #2c3e50;border-radius:8px;padding:30px}.receipt-header{border-bottom:2px dashed #95a5a6;margin-bottom:20px;padding-bottom:15px;text-align:center}.receipt-header h2{color:#2c3e50;margin:0 0 10px}.receipt-header p{color:#7f8c8d;margin:5px 0}.receipt-items table{margin-bottom:20px}.receipt-items th{background:#f8f9fa;border-bottom:2px solid #dee2e6;padding:10px;text-align:left}.receipt-items td{border-bottom:1px solid #e9ecef;padding:10px}.receipt-totals{border-top:2px solid #2c3e50;padding-top:15px}.receipt-total-row{border-bottom:1px solid #e0e0e0;display:flex;font-size:16px;justify-content:space-between;margin:10px 0;padding:8px 0}.receipt-total-row strong{color:#27ae60}.receipt-total-row.grand{background-color:#fff3cd;border:2px solid #ffc107;border-radius:3px;font-size:18px;font-weight:700;padding:10px}.receipt-total-row.grand strong{color:#333}.divider{background:#333;height:2px;margin:10px 0}.receipt-footer{border-top:2px dashed #95a5a6;color:#7f8c8d;margin-top:20px;padding-top:15px;text-align:center}.receipt-actions{gap:15px;justify-content:center}.new-sale-btn,.print-btn{border:none;border-radius:6px;cursor:pointer;font-size:16px;font-weight:600;padding:12px 30px;transition:all .2s}.print-btn{background:#3498db}.print-btn:hover{background:#2980b9}.new-sale-btn{background:#27ae60;color:#fff}.new-sale-btn:hover{background:#229954}@media print{body *{visibility:hidden}.receipt,.receipt *{visibility:visible}.receipt{border:none;font-size:12px;left:0;padding:10px;position:absolute;top:0;width:58mm}.receipt-header h2{font-size:16px}.receipt-items table{font-size:10px}.receipt-totals{font-size:12px}@page{size:58mm auto;margin:0}}.refresh-btn{align-items:center;background:#3498db;border:none;border-radius:6px;color:#fff;cursor:pointer;display:flex;font-size:13px;font-weight:600;gap:4px;padding:6px 12px;transition:background .2s}.refresh-btn:hover:not(:disabled){background:#2980b9}.refresh-btn:disabled{background:#95a5a6;cursor:not-allowed}.form-group{margin-bottom:12px}.form-group label{font-size:13px;margin-bottom:6px}.notes-textarea{font-color:#34495e;border:1px solid #e9ecef;border-radius:6px;font-family:inherit;font-size:13px;padding:10px;resize:vertical;width:100%}.notes-textarea:focus{border-color:#3498db;box-shadow:0 0 5px #3498db4d;outline:none}.cart-badge{animation:pulse .5s ease-in}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}[dir=rtl] .pos-content{direction:rtl}@media (max-width:992px){.pos-content{grid-template-columns:1fr}.items-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}}@media (max-width:600px){.pos-container{padding:10px}.pos-header{margin-bottom:10px;padding:10px 15px}.pos-header h1{font-size:20px}.pos-content{gap:10px}.pos-cart-section,.pos-items-section{padding:15px}.items-grid{gap:10px;grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}.cart-item{padding:10px}}.reports-container{margin:0 auto;max-width:1400px;padding:20px}.reports-header{align-items:center;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;display:flex;gap:15px;margin-bottom:30px;padding:15px 20px}.reports-header h1{color:#2c3e50;margin:0}.back-btn{border-radius:6px;font-weight:700;padding:8px 12px;transition:background .2s}.date-filter{align-items:flex-end;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;display:flex;flex-wrap:wrap;gap:15px;margin-bottom:30px;padding:20px}.date-input-group{display:flex;flex-direction:column;gap:5px}.date-input-group label{color:#2c3e50;font-size:14px;font-weight:600}.date-input{border:1px solid #ddd;border-radius:6px;font-size:14px;min-width:150px;padding:10px}.export-btn,.filter-btn{border:none;border-radius:6px;cursor:pointer;font-size:16px;font-weight:600;padding:10px 25px;transition:all .2s}.filter-btn{background:#3498db;color:#fff}.filter-btn:hover{background:#2980b9}.export-btn{background:#27ae60;color:#fff}.export-btn:hover{background:#229954}.summary-cards{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));margin-bottom:30px}.summary-card{background:#fff;border-left:4px solid;border-radius:8px;box-shadow:0 2px 4px #0000001a;padding:25px}.summary-card.profit-usd{border-left-color:#27ae60}.summary-card.profit-lbp{border-left-color:#3498db}.summary-card.items-sold{border-left-color:#e74c3c}.summary-card h3{color:#7f8c8d;font-size:14px;font-weight:600;margin:0 0 15px;text-transform:uppercase}.summary-value{color:#2c3e50;font-size:28px;font-weight:700;overflow-wrap:break-word;word-break:break-word}.chart-section{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:30px;padding:25px}.chart-section h2{margin:0 0 20px}.chart-container{margin-bottom:30px}.profit-table-section{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;padding:25px}.profit-table-section h2{color:#2c3e50;margin:0 0 20px}.profit-table{background:#fff;border-collapse:collapse;width:100%}.profit-table th{background:#f8f9fa;border-bottom:2px solid #dee2e6;color:#2c3e50;font-weight:600;padding:12px;text-align:left}.profit-table td{border-bottom:1px solid #e9ecef;padding:12px}.profit-table tbody tr:hover{background:#f8f9fa}.profit-value{color:#27ae60;font-weight:600;overflow-wrap:break-word;word-break:break-word}.profit-table tfoot tr{background:#f8f9fa;border-top:2px solid #2c3e50}.profit-table tfoot td{font-size:16px;padding:15px 12px}.loading,.no-data{color:#95a5a6;font-size:18px;padding:60px 20px;text-align:center}.charts-grid{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(500px,1fr));margin-bottom:30px}.chart-card{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;padding:20px}.chart-card h3{color:#2c3e50;font-size:16px;font-weight:600;margin:0 0 15px}.chart-section h2{color:#2c3e50;font-size:20px;margin-bottom:20px}.chart-section h3{color:#34495e;font-size:16px;margin-bottom:15px}.chart-container{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;margin-bottom:20px;padding:20px}.chart-container:last-child{margin-bottom:0}[dir=rtl] .date-filter{direction:rtl}[dir=rtl] .summary-card{border-left:none;border-right:4px solid}[dir=rtl] .summary-card.profit-usd{border-right-color:#27ae60}[dir=rtl] .summary-card.profit-lbp{border-right-color:#3498db}[dir=rtl] .summary-card.items-sold{border-right-color:#e74c3c}[dir=rtl] .profit-table td,[dir=rtl] .profit-table th{text-align:right}.recharts-default-tooltip{white-space:nowrap}.recharts-bar-label,.recharts-label{overflow:visible!important;white-space:nowrap}@media (max-width:768px){.date-filter{align-items:stretch;flex-direction:column}.date-input{width:100%}.summary-value{font-size:24px}.profit-table{font-size:14px}.profit-table td,.profit-table th{padding:8px}.chart-container{overflow-x:auto}.charts-grid{grid-template-columns:1fr}.chart-card{padding:15px}.recharts-surface,.recharts-wrapper{overflow:visible!important}}.grand-total-section{border-top:2px solid #ecf0f1;margin-top:40px;padding:20px 0}.grand-total-section h3{color:#2c3e50;font-size:20px;margin-bottom:20px;text-align:center}.grand-total-card{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:10px;box-shadow:0 4px 15px #0003;color:#fff;padding:25px}.grand-total-card .total-row{align-items:center;border-bottom:1px solid #fff3;display:flex;font-size:16px;justify-content:space-between;padding:12px 0}[dir=rtl] .grand-total-card .total-row{flex-direction:row-reverse}.grand-total-card .total-row:last-child{border-bottom:none}.grand-total-card .total-label{color:#ecf0f1;font-weight:600}.grand-total-card .total-value{color:#fff;font-size:18px;font-weight:700}.grand-total-card .total-value.converted{color:gold;font-style:italic}.conversion-divider{background:#ffffff4d}.grand-total-row{align-items:center;background:#0003;border:2px solid gold;border-radius:8px;display:flex;justify-content:space-between;margin-top:15px;padding:15px}[dir=rtl] .grand-total-row{flex-direction:row-reverse}.grand-label{font-size:18px}.grand-label,.grand-value{color:gold;font-weight:700}.grand-value{font-size:24px}@media (max-width:480px){.charts-grid{gap:10px}.chart-card{padding:10px}.chart-card h3{font-size:14px;margin-bottom:10px}.grand-total-card{padding:15px}.grand-label,.grand-total-card .total-label{font-size:14px}.grand-total-card .total-value,.grand-value{font-size:16px}}.receipts-container{background:linear-gradient(135deg,#667eea,#764ba2);font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;min-height:100vh;padding:20px}.receipts-header{align-items:center;background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;display:flex;gap:20px;margin-bottom:30px;padding:20px}.receipts-header h1{color:#2c3e50;flex:1 1;margin:0}.back-btn{background:#3498db;border:none;border-radius:5px;color:#fff;cursor:pointer;font-size:14px;font-weight:600;padding:10px 20px;transition:background .3s ease}.back-btn:hover{background:#2980b9}.receipts-content{background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;margin:0 auto;max-width:1000px;padding:30px}.search-section h2{color:#2c3e50;margin-bottom:20px;margin-top:0}.search-form{display:flex;flex-wrap:wrap;gap:15px;margin-bottom:30px}.form-group{flex:1 1;min-width:200px}.form-group label{color:#2c3e50;display:block;font-weight:600;margin-bottom:8px}.form-input{border:2px solid #ecf0f1;border-radius:5px;font-family:inherit;font-size:14px;padding:12px;transition:border-color .3s ease;width:100%}.form-input:focus{background:#f8fafb;border-color:#3498db;outline:none}.search-btn{align-self:flex-end;background:#27ae60;border:none;border-radius:5px;color:#fff;cursor:pointer;font-size:14px;font-weight:600;padding:12px 30px;transition:background .3s ease}.search-btn:hover{background:#229954}.search-btn:disabled{background:#95a5a6;cursor:not-allowed}.recent-receipts{border-top:2px solid #ecf0f1;margin-top:30px;padding-top:30px}.recent-receipts h3{color:#2c3e50;margin-bottom:15px}.receipts-list{grid-gap:15px;display:grid;gap:15px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));max-height:500px;overflow-y:auto;padding:10px}.receipt-item{background:#f8fafb;border:2px solid #ecf0f1;border-radius:8px;cursor:pointer;padding:15px;text-align:left;transition:all .3s ease}[dir=rtl] .receipt-item{text-align:right}.receipt-item:hover{background:#e8f4f8;border-color:#3498db;box-shadow:0 2px 8px #3498db33;transform:translateY(-2px)}.receipt-info{display:flex;flex-direction:column;gap:8px}.receipt-num{color:#2c3e50;font-size:16px;font-weight:700}.receipt-date{color:#7f8c8d;font-size:12px}.receipt-amount{color:#27ae60;font-size:14px;font-weight:600}.receipt-detail{animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.receipt-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.back-to-search-btn,.delete-btn,.edit-btn,.print-btn{border:none;border-radius:5px;cursor:pointer;font-size:14px;font-weight:600;padding:10px 20px;transition:all .3s ease}.back-to-search-btn{background:#95a5a6;color:#fff}.back-to-search-btn:hover{background:#7f8c8d}.edit-btn{background:#3498db;color:#fff}.edit-btn:hover{background:#2980b9}.print-btn{background:#27ae60;color:#fff}.print-btn:hover{background:#229954}.delete-btn{background:#e74c3c;color:#fff}.delete-btn:hover{background:#c0392b}.delete-btn:disabled{background:#95a5a6;cursor:not-allowed}.receipt-viewer{background:#f8fafb;border:2px solid #ecf0f1;border-radius:8px;padding:20px}.receipt-header-info{border-bottom:2px solid #ecf0f1;margin-bottom:30px;padding-bottom:20px}.receipt-header-info h2{color:#2c3e50;margin:0 0 10px}.receipt-header-info p{color:#7f8c8d;font-size:14px;margin:5px 0}.receipt-items{margin-bottom:20px}.receipt-items h3{color:#2c3e50;margin-bottom:15px}.receipt-items table{background:#fff;border-collapse:collapse;border-radius:5px;overflow:hidden;width:100%}.receipt-items thead{background:#ecf0f1}.receipt-items td,.receipt-items th{border-bottom:1px solid #bdc3c7;padding:12px;text-align:left}[dir=rtl] .receipt-items td,[dir=rtl] .receipt-items th{text-align:right}.receipt-items th{color:#2c3e50;font-weight:600}.receipt-items td{color:#34495e}.receipt-items tbody tr:hover{background:#f5f7f9}.receipt-totals{background:#fff;border:2px solid #ecf0f1;border-radius:8px;margin-bottom:20px;padding:15px}.total-row{align-items:center;border-bottom:1px solid #ecf0f1;display:flex;font-size:16px;justify-content:space-between;padding:10px 0}[dir=rtl] .total-row{direction:rtl}[dir=rtl] .total-row strong:first-child{margin-left:auto;order:2}[dir=rtl] .total-row strong:last-child{margin-right:auto;order:1}.total-row.primary{background:#ecf0f1;border-bottom:2px solid #27ae60;border-radius:5px;font-size:18px;font-weight:700;margin:-5px -5px 5px;padding:12px}.total-row.secondary{color:#7f8c8d;font-size:14px;font-style:italic}.total-row.grand{background:#fff3cd;border:2px solid #ffc107;border-radius:5px;font-size:16px;font-weight:700;margin:5px -5px;padding:12px}.conversion-divider{background:linear-gradient(90deg,#ecf0f1,#27ae60 50%,#ecf0f1);border-radius:1px;height:2px;margin:15px 0}.total-row:last-child{border-bottom:none}[dir=rtl] .total-row{flex-direction:row-reverse;text-align:right}.total-row strong{color:#2c3e50}.edit-form{background:#fff;border:2px solid #3498db;border-radius:8px;margin-top:20px;padding:20px}.edit-form .form-group{flex:none;margin-bottom:15px}.form-actions{display:flex;gap:10px;margin-top:20px}.cancel-btn,.save-btn{border:none;border-radius:5px;cursor:pointer;flex:1 1;font-size:14px;font-weight:600;padding:12px;transition:all .3s ease}.save-btn{background:#27ae60;color:#fff}.save-btn:hover{background:#229954}.save-btn:disabled{background:#95a5a6;cursor:not-allowed}.cancel-btn{background:#95a5a6;color:#fff}.cancel-btn:hover{background:#7f8c8d}.receipt-details{background:#fff;border-radius:8px;margin-top:20px;padding:15px}.detail-row{border-bottom:1px solid #ecf0f1;display:flex;justify-content:space-between;padding:10px 0}.detail-row:last-child{border-bottom:none}[dir=rtl] .detail-row{flex-direction:row-reverse}.detail-row span{color:#7f8c8d;font-weight:500}.detail-row strong{color:#2c3e50;text-transform:capitalize}.edit-price-input,.edit-quantity-input{border:2px solid #3498db;border-radius:4px;font-family:inherit;font-size:14px;padding:8px;text-align:center;width:100%}.edit-price-input:focus,.edit-quantity-input:focus{background:#ecf9ff;border-color:#2980b9;outline:none}.edit-quantity-input{max-width:80px}@media (max-width:768px){.receipts-header{align-items:flex-start;flex-direction:column}.receipts-header h1{font-size:24px}.search-form{flex-direction:column}.search-btn{align-self:stretch}.receipts-list{grid-template-columns:1fr}.receipt-items table{font-size:12px}.receipt-items td,.receipt-items th{padding:8px}}.offline-indicator{word-wrap:break-word;animation:slideIn .3s ease-out;border-radius:8px;bottom:20px;box-shadow:0 4px 12px #00000026;max-width:300px;padding:12px 16px;position:fixed;right:20px;z-index:100}@keyframes slideIn{0%{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}.offline-indicator.offline{background-color:#e74c3c;color:#fff}.offline-indicator.online{background-color:#27ae60;color:#fff}.offline-indicator-content{align-items:center;display:flex;font-size:14px;font-weight:500;gap:10px}.offline-indicator-icon{font-size:18px;font-weight:700}.offline-indicator-text{white-space:nowrap}[dir=rtl] .offline-indicator{left:20px;right:auto}[dir=rtl] .offline-indicator-content{flex-direction:row-reverse}
/*# sourceMappingURL=main.cde70c57.css.map*/