/* Shared application UI: forms, lists, reports, accounts, restaurant and POS. */
.erp-modern{--erp-blue:#2563eb;--erp-purple:#7c3aed;--erp-border:#e2e8f0;--erp-muted:#64748b;font-size:13px;line-height:1.5}
.erp-modern .nav-side-menu{background:#252733!important;border-color:#313442!important;color:#dbe3f0}
.erp-modern .nav-side-menu .brand{background:#fff!important}
.erp-modern .nav-side-menu .menu-list>span,.erp-modern .nav-side-menu .menu-list>span a{color:#cbd5e1!important}
.erp-modern .nav-side-menu li,.erp-modern .nav-side-menu li a,.erp-modern .nav-side-menu .menu-content>a{color:#cbd5e1!important}
.erp-modern .nav-side-menu .erp-menu-group{border-color:#ffffff0b}
.erp-modern .nav-side-menu .erp-menu-group summary{color:#e2e8f0}
.erp-modern .nav-side-menu .erp-menu-group summary i{color:#94a3b8}
.erp-modern .nav-side-menu .erp-menu-group summary:hover,.erp-modern .nav-side-menu li:hover{background:#323544!important}
.erp-modern .nav-side-menu li.active{background:#059fc5!important;border-left-color:#67e8f9!important}
.erp-modern .nav-side-menu .erp-menu-search{background:#303340;border-color:#414554;color:#f1f5f9}
.erp-modern .nav-side-menu .erp-menu-search::placeholder{color:#aab5c7}
.erp-modern .nav-side-menu .erp-search-empty{color:#cbd5e1}
.erp-modern .erp-page-content{padding-top:22px;padding-bottom:28px;min-width:0}
.erp-modern .erp-page-content>h2,.erp-modern .erp-page-content>h3,.erp-modern #home>h2{font-family:inherit;font-size:25px;font-weight:600;text-align:left;margin:12px 0 22px;color:#172b4d}
.erp-modern .erp-page-content>h2 i,.erp-modern #home>h2 i{color:#06a6c8;margin-right:7px}
.erp-modern .erp-toolbar h2{font-size:18px}
.erp-modern .panel{border:1px solid #e2e8f0!important;border-radius:12px!important;background:#fff;box-shadow:0 3px 12px #18315305}
.erp-modern .panel-heading{border-radius:11px 11px 0 0;background:#edf5ff!important;color:#1e4d8a!important;border-bottom:1px solid #dbeafe!important;font-size:14px;font-weight:600;padding:14px 18px}
.erp-modern .panel-body{padding:20px}
.erp-modern .panel-footer{background:#f8fafc;border-top:1px solid #e2e8f0;padding:14px 18px;border-radius:0 0 11px 11px}
.erp-modern .form-group{margin-bottom:16px}
.erp-modern .form-group label,.erp-modern label.control-label{font-family:inherit;font-size:12px;font-weight:500;color:#475569}
.erp-modern .form-control{font-size:13px;min-height:36px;border-radius:8px!important;border:1px solid #d7e0ed!important;background:#fff;color:#24374f;box-shadow:none}
.erp-modern .form-control:focus{border-color:#60a5fa!important;box-shadow:0 0 0 3px #3b82f615!important}
.erp-modern .form-control[readonly],.erp-modern .form-control:disabled{background:#f1f5f9;color:#64748b}
.erp-modern textarea.form-control{min-height:88px}
.erp-modern input[type=checkbox],.erp-modern input[type=radio]{accent-color:#2563eb}
.erp-modern .btn{font-family:inherit;font-size:12px;font-weight:500;padding:8px 14px;border-radius:8px!important;transition:background .15s,box-shadow .15s}
.erp-modern .btn-sm{padding:6px 10px;font-size:11px}
.erp-modern .btn-xs{padding:3px 7px;font-size:11px}
.erp-modern .btn-primary{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important}
.erp-modern .btn-success{background:#0f9b72!important;border-color:#0f9b72!important;color:#fff!important}
.erp-modern .btn-danger{background:#e54866!important;border-color:#e54866!important;color:#fff!important}
.erp-modern .btn-warning{background:#fff0ce!important;border-color:#f5d48e!important;color:#8a5600!important}
.erp-modern .btn-info{background:#e5f7fc!important;border-color:#a5e3f3!important;color:#087f9c!important}
.erp-modern .btn-default{background:#fff!important;border-color:#d7e0ed!important;color:#334155!important}
.erp-modern .btn:hover{box-shadow:0 3px 8px #18315312}
.erp-modern .erp-table-scroll{max-width:100%;overflow:auto;border:1px solid #e2e8f0;border-radius:10px;background:#fff;margin-bottom:16px}
.erp-modern .erp-table-scroll>table{margin-bottom:0;min-width:580px}
.erp-modern .table{background:white;color:#334155}
.erp-modern .table th{white-space:nowrap}
.erp-modern table td{vertical-align:middle!important}
.erp-modern table.table-bordered{border-color:#e2e8f0}
.erp-modern .table-striped>tbody>tr:nth-of-type(odd){background:#f8faff}
.erp-modern .table-striped>tbody>tr:nth-of-type(even){background:#fff}
.erp-modern .table a{color:#2563eb}
.erp-modern .label,.erp-modern .badge{font-family:inherit;font-size:10px;font-weight:500;border-radius:20px;padding:5px 9px}
.erp-modern .label-success{background:#d9faeb;color:#047857}
.erp-modern .label-info{background:#dff5fd;color:#087d9c}
.erp-modern .label-warning{background:#fff1c9;color:#986400}
.erp-modern .label-danger{background:#ffe3e9;color:#b42345}
.erp-modern .alert{border-radius:10px;font-size:13px}
.erp-modern .alert-success{background:#ecfdf5;border-color:#b4ebd4;color:#047857}
.erp-modern .alert-danger{background:#fff1f2;border-color:#fecdd3;color:#be123c}
.erp-modern .alert-info{background:#eef8ff;border-color:#c7e7fe;color:#075985}
.erp-modern .nav-tabs{border-bottom:1px solid #e2e8f0;margin-bottom:18px}
.erp-modern .nav-tabs>li>a{border-radius:9px 9px 0 0;color:#64748b;font-weight:500}
.erp-modern .nav-tabs>li.active>a{color:#2563eb;background:#fff;border-color:#e2e8f0;border-bottom-color:white}
.erp-modern .pagination>li>a,.erp-modern .pagination>li>span{border-color:#e2e8f0;color:#475569}
.erp-modern .pagination>.active>a,.erp-modern .pagination>.active>span{background:#2563eb;border-color:#2563eb;color:#fff}
.erp-modern .dataTables_wrapper{background:#fff;padding:16px;border:1px solid #e2e8f0;border-radius:12px;max-width:100%}
.erp-modern .dataTables_filter input,.erp-modern .dataTables_length select{border:1px solid #d7e0ed;border-radius:7px;padding:6px 9px;background:white;margin-left:6px}
.erp-modern .dataTables_filter,.erp-modern .dataTables_length{font-size:12px;color:#64748b;margin-bottom:14px}
.erp-modern .dataTables_info,.erp-modern .dataTables_paginate{font-size:12px;margin-top:12px}
.erp-modern .modal-dialog{max-width:calc(100vw - 24px)}
.erp-modern .modal-content{box-shadow:0 20px 60px #172b4d30}
.erp-modern .modal-header{padding:16px 20px;background:#eef5ff}
.erp-modern .modal-title{font-family:inherit;font-weight:600;font-size:18px;color:#172b4d}
.erp-modern .modal-body{padding:20px}
.erp-modern .modal-footer{padding:14px 20px;background:#f8fafc;border-radius:0 0 14px 14px}
.erp-modern .dropdown-menu{border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 12px 30px #172b4d12}
.erp-modern .bootstrap-select>.dropdown-toggle{border-radius:8px!important;font-size:13px}
.erp-modern .well{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:none}
.erp-modern footer{background:#f1f5f9;color:#64748b;font-size:11px;border-top:1px solid #e2e8f0}
.erp-standalone>form,.erp-standalone>.container{max-width:1200px;margin:24px auto}
.erp-modern.erp-pos .erp-toolbar{padding:12px;margin:8px 0 14px;border:1px solid #e2e8f0;border-radius:10px;background:white}
.erp-modern.erp-pos .erp-toolbar>div{display:none}
.erp-modern.erp-pos .erp-quick-links a{font-size:11px;padding:7px 10px}
.erp-modern.erp-pos #itemsTable1 thead th{background:#dff5fc!important;color:#126581!important;border-color:#c2eaf7!important}
.erp-modern.erp-pos #itemsTable1 tbody td{padding:6px!important}
.erp-modern.erp-pos .pos-panel{border-color:#e2e8f0!important;background:#fff!important;border-radius:14px!important}
.erp-modern.erp-pos .action-btn{border:1px solid #e2e8f0!important;border-radius:10px!important;background:#f0f6ff!important;color:#285699!important;font-family:inherit!important}
.erp-modern.erp-pos .action-btn:nth-child(3n+2){background:#f1e9ff!important;color:#7042a4!important}
.erp-modern.erp-pos .action-btn:nth-child(3n){background:#e4faf0!important;color:#147859!important}
.erp-modern.erp-pos .pay-btn{font-family:inherit!important;border-radius:9px!important}
.erp-modern.erp-pos #Cash{background:#0f9b72!important;border-color:#0f9b72!important}
.erp-modern.erp-pos #UPI{background:#7c3aed!important;border-color:#7c3aed!important}
.erp-modern.erp-pos #Card{background:#2563eb!important;border-color:#2563eb!important}
.erp-modern.erp-pos #Wallet{background:#e98520!important;border-color:#e98520!important}
@media(min-width:992px){.erp-modern.erp-pos .row.content>.col-sm-7{margin-left:230px!important;width:calc(100% - 520px)!important;padding:12px!important}.erp-modern.erp-pos .row.content>.col-sm-3:not(.nav-side-menu){width:290px!important;margin-left:0!important;padding:12px!important}.erp-modern.erp-pos .total-fixed-row,.erp-modern.erp-pos .payment-fixed-inner{left:242px!important;right:302px!important}.erp-modern.erp-pos .erp-page-content{padding-bottom:180px!important}}
@media(min-width:768px) and (max-width:991px){.erp-modern.erp-pos .row.content>.col-sm-7{margin-left:230px!important;width:calc(100% - 230px)!important}.erp-modern.erp-pos .row.content>.col-sm-3:not(.nav-side-menu){margin-left:230px!important;width:calc(100% - 230px)!important}.erp-modern.erp-pos .total-fixed-row,.erp-modern.erp-pos .payment-fixed-inner{position:relative!important;left:0!important;right:0!important;bottom:auto!important}}
@media(max-width:767px){.erp-modern .nav-side-menu .toggle-btn{color:white!important}.erp-modern .erp-page-content{width:100%!important;margin-left:0!important;padding:16px 12px!important}.erp-modern .erp-toolbar{gap:10px}.erp-modern .erp-quick-links{gap:6px}.erp-modern .erp-quick-links a{font-size:11px;padding:8px 10px}.erp-modern .form-group{margin-bottom:14px}.erp-modern .panel-body{padding:14px}.erp-modern .dataTables_filter,.erp-modern .dataTables_length{float:none!important;text-align:left!important}.erp-modern .dataTables_wrapper{padding:10px}.erp-modern .erp-table-scroll{overflow-x:auto}.erp-modern.erp-pos .row.content>.col-sm-3:not(.nav-side-menu){width:100%!important;padding:12px!important}.erp-modern.erp-pos .total-fixed-row,.erp-modern.erp-pos .payment-fixed-inner{position:relative!important;left:0!important;right:0!important;bottom:auto!important}}
@media(prefers-reduced-motion:reduce){.erp-modern *{transition:none!important;scroll-behavior:auto!important}}.erp-modern:not(.erp-pos):not(.erp-reference) .erp-page-content>form{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:22px 18px;margin:0 0 20px;box-shadow:0 3px 12px #18315304}.erp-modern .erp-page-content>hr{border-color:#e2e8f0}@media(max-width:767px){.erp-modern:not(.erp-pos):not(.erp-reference) .erp-page-content>form{padding:16px 10px}}
.erp-modern:not(.erp-pos) .erp-form-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px 16px;margin-bottom:20px;box-shadow:0 3px 12px #18315304}.erp-modern .erp-form-card .row{margin-right:0;margin-left:0}.erp-modern .erp-form-card .btn{margin-top:4px}.erp-modern .erp-page-content .erp-table-scroll .dataTables_wrapper{border:0}.erp-modern .erp-page-content table:not(#itemsTable1) .label{white-space:nowrap}@media(max-width:767px){.erp-modern:not(.erp-pos) .erp-form-card{padding:16px 10px}}
.erp-modern .nav-side-menu li.active,.erp-modern .nav-side-menu li.active a,.erp-modern .nav-side-menu li.active i{color:#fff!important}.erp-modern .nav-side-menu .menu-content>a:has(li.active){color:#fff!important}.erp-modern .nav-side-menu .erp-menu-group summary:focus-visible{outline:2px solid #67e8f9;outline-offset:2px}
.erp-modern.erp-restaurant .pos-chip{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:18px!important;padding:7px 12px!important;font-family:inherit!important;color:#64748b!important;font-size:11px!important}.erp-modern.erp-restaurant .pos-chip.active{background:#f97316!important;border-color:#f97316!important;color:#fff!important;box-shadow:0 3px 8px #f9731620!important}.erp-modern.erp-restaurant .product-item{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:7px;min-width:102px;box-shadow:0 3px 10px #18315304}.erp-modern.erp-restaurant .product-thumb{border:0!important;border-radius:8px!important;overflow:hidden}.erp-modern.erp-restaurant .thumb-title{font-family:inherit!important;font-size:12px!important;color:#334155!important;font-weight:500!important;margin-top:8px!important}.erp-modern.erp-restaurant .thumb-price{color:#0f9b72!important;font-weight:600!important;margin-top:3px!important}.erp-modern.erp-restaurant .totals-box{background:#fff7ed!important;border:1px solid #fed7aa!important;border-radius:12px!important;padding:18px!important}.erp-modern.erp-restaurant .totals-row label{font-family:inherit;color:#7c5633}.erp-modern.erp-restaurant .totals-row input{border:1px solid #fed7aa!important;border-radius:8px!important}.erp-modern.erp-restaurant .product-gallery{background:#fff;gap:12px!important;padding:12px!important;border-radius:12px;border:1px solid #e2e8f0}
@media(max-width:767px){.erp-modern .nav-side-menu .toggle-btn{display:block!important;position:absolute!important;top:22px!important;right:16px!important;color:#334155!important;padding:4px;z-index:70;cursor:pointer}.erp-modern .nav-side-menu .brand{padding-right:52px!important}}@media(min-width:768px){.erp-modern .nav-side-menu .toggle-btn{display:none!important}}
@media(max-width:767px){.erp-modern .nav-side-menu #menu-content.in{display:block!important}.erp-modern .nav-side-menu #menu-content.collapsing{display:block!important}.erp-modern.erp-pos #page-wrap{margin-left:0!important;margin-right:0!important}.erp-modern.erp-pos #frm2>.form-group.d-flex{flex-wrap:wrap!important;gap:12px!important;justify-content:flex-start!important;width:100%!important;margin-left:0!important;margin-right:0!important}.erp-modern.erp-pos #frm2>.form-group.d-flex>.d-flex{width:100%!important;min-width:0!important;flex-wrap:wrap!important}.erp-modern.erp-pos #frm2>.form-group.d-flex>.col-md-6,.erp-modern.erp-pos #frm2>.form-group.d-flex>.col-md-6>.col-md-9{width:100%!important;padding:0!important;min-width:0}.erp-modern.erp-pos #frm2 .row{margin-left:0!important;margin-right:0!important}.erp-modern.erp-pos #frm2 .col-md-12{max-width:100%;padding-left:0;padding-right:0}.erp-modern.erp-pos .bootstrap-select{max-width:100%!important}.erp-modern.erp-pos #salesmanSelect{width:100%!important}.erp-modern.erp-pos #invoice_search{width:100%!important}}

/* Readability pass: larger text and explicit foreground/background pairs. */
body.erp-modern{font-size:15px!important;color:#182c46!important;line-height:1.6;--erp-muted:#40516a}
body.erp-modern .erp-page-content{color:#182c46}
body.erp-modern .erp-toolbar p,body.erp-modern .workspace-heading p{font-size:14px!important;color:#40516a!important;font-weight:500}
body.erp-modern .erp-toolbar h2{font-size:21px;font-weight:600}
body.erp-modern .erp-page-content>h2,body.erp-modern #home>h2{font-size:29px;font-weight:600;color:#142b49}
body.erp-modern .erp-form-card{border-color:#cad7e9!important;box-shadow:0 4px 14px #19365a08!important}
body.erp-modern .form-group label,body.erp-modern label.control-label,body.erp-modern .erp-form-card label{font-size:15px!important;font-weight:600!important;color:#243b58!important}
body.erp-modern .form-control,body.erp-modern .bootstrap-select>.dropdown-toggle{font-family:"IBM Plex Sans","Segoe UI",sans-serif!important;font-size:15px!important;font-weight:500!important;color:#182f4d!important;border-color:#bdcde1!important;min-height:42px;background:#fff}
body.erp-modern .form-control::placeholder{color:#526783!important;opacity:1}
body.erp-modern .form-control[readonly],body.erp-modern .form-control:disabled{background:#edf2f8!important;color:#465b74!important}
body.erp-modern .btn{font-size:14px!important;font-weight:600!important;padding:10px 16px;letter-spacing:.1px}
body.erp-modern .btn-sm{font-size:13px!important;padding:7px 11px}
body.erp-modern .btn-xs{font-size:12px!important;padding:4px 8px}
body.erp-modern .btn-success{background:#087f5b!important;border-color:#087f5b!important;color:white!important}
body.erp-modern .btn-primary{background:#215ad9!important;border-color:#215ad9!important;color:white!important}
body.erp-modern .erp-quick-links a{font-size:14px!important;font-weight:600!important;color:#243b58;padding:10px 14px}
body.erp-modern .erp-quick-links a:first-child{color:#fff;background:#215ad9}
body.erp-modern .dataTables_filter,body.erp-modern .dataTables_length,body.erp-modern .dataTables_info,body.erp-modern .dataTables_paginate{font-size:14px!important;color:#304763!important;font-weight:500}
body.erp-modern .dataTables_filter input,body.erp-modern .dataTables_length select{min-height:40px;font-size:15px;color:#182f4d;border-color:#bdcde1}
body.erp-modern .erp-page-content table td,body.erp-modern #myTable td{font-family:"IBM Plex Sans","Segoe UI",sans-serif!important;font-size:15px!important;font-weight:500!important;line-height:1.6!important;color:#182f4d!important;padding:13px 14px!important;border-bottom:1px solid #dce5f1!important}
body.erp-modern .erp-page-content table th,body.erp-modern #myTable thead th{font-family:"IBM Plex Sans","Segoe UI",sans-serif!important;background:#e7effa!important;color:#17365d!important;font-size:14px!important;font-weight:600!important;text-transform:none!important;letter-spacing:0!important;padding:14px!important;border-color:#c8d7ec!important}
body.erp-modern table.dataTable tbody tr:nth-child(odd),body.erp-modern table.dataTable tbody tr:nth-child(odd)>td,body.erp-modern .table-striped>tbody>tr:nth-child(odd)>td{background:#fff!important}
body.erp-modern table.dataTable tbody tr:nth-child(even),body.erp-modern table.dataTable tbody tr:nth-child(even)>td,body.erp-modern .table-striped>tbody>tr:nth-child(even)>td{background:#f0f5fd!important}
body.erp-modern table.dataTable tbody tr:hover>td,body.erp-modern .table tbody tr:hover>td{background:#e3efff!important}
body.erp-modern .erp-page-content table td a{color:#164dc2!important;font-weight:600}
body.erp-modern .erp-page-content table td a.btn-primary,body.erp-modern .erp-page-content table td a.btn-success,body.erp-modern .erp-page-content table td a.btn-danger{color:#fff!important}
body.erp-modern .label,body.erp-modern .badge{font-size:12px!important;font-weight:600;padding:5px 10px}
body.erp-modern .label-success{background:#d4f5e5!important;color:#07583f!important}
body.erp-modern .label-info{background:#d9f1fc!important;color:#09536b!important}
body.erp-modern .label-warning{background:#ffedc0!important;color:#744500!important}
body.erp-modern .label-danger{background:#ffe0e7!important;color:#9f1738!important}
body.erp-modern .nav-side-menu .erp-menu-group summary{font-size:15px!important;font-weight:600;padding:12px 8px}
body.erp-modern .nav-side-menu li,body.erp-modern .nav-side-menu li a{font-size:14px!important;font-weight:500!important;color:#edf2fa!important;line-height:40px}
body.erp-modern .nav-side-menu li.active{background:#087b99!important}
body.erp-modern .nav-side-menu li.active,body.erp-modern .nav-side-menu li.active a,body.erp-modern .nav-side-menu li.active i{color:white!important}
body.erp-modern .nav-side-menu .erp-menu-search{font-size:14px;height:42px;color:white}
body.erp-modern .nav-side-menu .menu-list>span{font-size:13px!important;color:#e1e8f4!important}
body.erp-modern .erp-view-tabs button{font-size:14px!important;font-weight:600;color:#324964;padding:8px 15px}
body.erp-modern .erp-view-tabs button[aria-pressed=true]{color:#fff}
body.erp-modern.erp-reference .erp-metric-grid .erp-kpi h4{font-size:14px!important;color:#304763!important;font-weight:500!important;line-height:1.5!important;min-height:42px}
body.erp-modern.erp-reference .erp-metric-grid .erp-kpi h2{font-size:27px!important;font-weight:600!important;min-height:64px}
body.erp-modern.erp-pos #frm2 label,body.erp-modern.erp-pos .form-label{font-size:14px!important;color:#243b58!important;font-weight:600!important}
body.erp-modern.erp-pos #itemsTable1 thead th{font-size:13px!important;color:#16425a!important;background:#d8edf6!important}
body.erp-modern.erp-pos #itemsTable1 td{font-size:14px!important;padding:7px!important}
body.erp-modern.erp-pos #itemsTable1 input{font-size:14px!important;color:#18314e!important;font-weight:500!important}
body.erp-modern.erp-pos .action-btn,body.erp-modern.erp-pos .pay-btn{font-size:14px!important;font-weight:600!important}
body.erp-modern.erp-pos .total-fixed-row label{font-size:13px!important;color:#273d57!important}
body.erp-modern.erp-pos .total-fixed-row .form-control{font-size:14px!important}
body.erp-modern.erp-restaurant .thumb-title,body.erp-modern.erp-restaurant .thumb-price{font-size:14px!important}
body.erp-modern.erp-restaurant .pos-chip{font-size:13px!important;color:#304763!important}
body.erp-modern.erp-restaurant .pos-chip.active{color:#fff!important;background:#c64a08!important;border-color:#c64a08!important}
body.erp-modern .modal-title{font-size:21px}
body.erp-modern .panel-heading{font-size:16px}
@media(max-width:767px){body.erp-modern .erp-page-content table td,body.erp-modern #myTable td{font-size:14px!important;padding:11px 12px!important}body.erp-modern .erp-quick-links a{font-size:13px!important;padding:9px 11px}body.erp-modern .erp-page-content>h2{font-size:26px}body.erp-modern.erp-reference .erp-metric-grid .erp-kpi h2{font-size:25px!important}}body.erp-modern.erp-pos .pay-btn{min-width:95px!important;max-width:145px!important;white-space:normal!important;line-height:1.3!important;height:auto!important;min-height:50px!important;padding:8px 10px!important;flex:1 1 95px}body.erp-modern .nav-side-menu ul[id^="products"] a>li{line-height:1.6!important;padding-top:8px;padding-bottom:8px;overflow-wrap:break-word}@media(max-width:767px){body.erp-modern.erp-pos .pay-btn{max-width:none!important;min-width:0!important;width:100%!important}}

/* User-supplied design tokens. */
body.erp-modern{--navy:#0f172a;--primary:#2563eb;--primary-deep:#1e3a8a;--page:#f8fafc;--card:#fff;--border:#e2e8f0;--muted:#64748b;--module:#2563eb;background:var(--page)!important;color:var(--navy)!important}
body.erp-modern[data-erp-module=inventory]{--module:#0d9488}
body.erp-modern[data-erp-module=sales]{--module:#7c3aed}
body.erp-modern[data-erp-module=pos]{--module:#ea580c}
body.erp-modern[data-erp-module=restaurant]{--module:#e11d48}
body.erp-modern[data-erp-module=service]{--module:#0891b2}
body.erp-modern[data-erp-module=accounts]{--module:#059669}
body.erp-modern[data-erp-module=hr]{--module:#db2777}
body.erp-modern .row.content>.erp-page-content{background:var(--page)!important}
body.erp-modern .nav-side-menu{background:var(--navy)!important;border-color:#1e293b!important}
body.erp-modern .nav-side-menu li.active{background:var(--primary-deep)!important;border-left-color:#60a5fa!important}
body.erp-modern .nav-side-menu li:hover,body.erp-modern .nav-side-menu .erp-menu-group summary:hover{background:#1e293b!important}
body.erp-modern .nav-side-menu .erp-menu-search{background:#1e293b;border-color:#334155}
body.erp-modern .nav-side-menu .erp-menu-group[data-group="Inventory & stock"] summary i{color:#2dd4bf}
body.erp-modern .nav-side-menu .erp-menu-group[data-group="Sales & customers"] summary i{color:#c4b5fd}
body.erp-modern .nav-side-menu .erp-menu-group[data-group="Finance & accounts"] summary i{color:#34d399}
body.erp-modern .nav-side-menu .erp-menu-group[data-group="Team & HR"] summary i{color:#f9a8d4}
body.erp-modern .nav-side-menu .erp-menu-group[data-group="Restaurant"] summary i{color:#fda4af}
body.erp-modern .erp-toolbar{border-left:4px solid var(--module);padding-left:14px}
body.erp-modern .erp-page-content>h2 i,body.erp-modern #home>h2 i{color:var(--module)!important}
body.erp-modern .erp-form-card,body.erp-modern .dataTables_wrapper,body.erp-modern .panel,body.erp-modern .erp-table-scroll{border-color:var(--border)!important;background:var(--card);box-shadow:0 4px 16px #0f172a06}
body.erp-modern .erp-form-card{border-top:3px solid var(--module)!important}
body.erp-modern .btn-primary,body.erp-modern .erp-quick-links a:first-child{background:var(--primary)!important;border-color:var(--primary)!important;color:#fff!important}
body.erp-modern .btn-primary:hover,body.erp-modern .erp-quick-links a:first-child:hover{background:var(--primary-deep)!important}
body.erp-modern .btn-success{background:#166534!important;border-color:#166534!important;color:white!important}
body.erp-modern .btn-danger{background:#991b1b!important;border-color:#991b1b!important}
body.erp-modern .btn-info{background:#e0f2fe!important;border-color:#bae6fd!important;color:#075985!important}
body.erp-modern .btn-warning{background:#fef3c7!important;border-color:#fde68a!important;color:#92400e!important}
body.erp-modern .label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;line-height:1.4}
body.erp-modern .label::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--dot,#94a3b8);flex-shrink:0}
body.erp-modern .label-success{--dot:#16a34a;background:#dcfce7!important;color:#166534!important}
body.erp-modern .label-warning{--dot:#f59e0b;background:#fef3c7!important;color:#92400e!important}
body.erp-modern .label-danger{--dot:#dc2626;background:#fee2e2!important;color:#991b1b!important}
body.erp-modern .label-info{--dot:#0ea5e9;background:#e0f2fe!important;color:#075985!important}
body.erp-modern .label-neutral,body.erp-modern .label-default{--dot:#94a3b8;background:#f1f5f9!important;color:#475569!important}
body.erp-modern .erp-page-content table th,body.erp-modern #myTable thead th{background:#eff6ff!important;color:#1e3a8a!important;border-color:#e2e8f0!important}
body.erp-modern .erp-page-content table td,body.erp-modern #myTable td{color:#0f172a!important}
body.erp-modern .erp-page-content table td a{color:#2563eb!important}
body.erp-modern table.dataTable tbody tr:nth-child(even)>td{background:#f8fafc!important}
body.erp-modern.erp-reference .erp-kpi[data-band="0"] h2{background:#dbeafe!important;color:#1e3a8a!important;border-color:#bfdbfe!important}
body.erp-modern.erp-reference .erp-kpi[data-band="1"] h2{background:#ccfbf1!important;color:#115e59!important;border-color:#99f6e4!important}
body.erp-modern.erp-reference .erp-kpi[data-band="2"] h2{background:#ede9fe!important;color:#5b21b6!important;border-color:#ddd6fe!important}
body.erp-modern.erp-reference .erp-kpi[data-band="3"] h2{background:#ffe4e6!important;color:#9f1239!important;border-color:#fecdd3!important}
body.erp-modern.erp-reference .erp-kpi[data-band="4"] h2{background:#fef3c7!important;color:#92400e!important;border-color:#fde68a!important}
body.erp-modern.erp-restaurant .erp-toolbar{border-left-color:#e11d48;background:#fff1f2}
body.erp-modern.erp-restaurant .pos-chip.active{background:#be123c!important;border-color:#be123c!important;color:#fff!important}
body.erp-modern.erp-pos .erp-toolbar{border-left:4px solid #ea580c}
body.erp-modern .erp-page-content :is(h1,h2,h3,h4,h5){font-family:"IBM Plex Sans","Segoe UI",sans-serif}
@media(max-width:767px){
body.erp-modern .form-control,body.erp-modern .bootstrap-select>.dropdown-toggle{font-size:16px!important;min-height:44px}
body.erp-modern .form-horizontal .control-label{text-align:left;padding:0 0 6px}
body.erp-modern .erp-page-content .form-group{margin-left:0;margin-right:0}
body.erp-modern .erp-form-card [class*="col-sm-"]{float:none;width:100%;max-width:100%}
body.erp-modern .btn{min-height:42px}
body.erp-modern .btn-xs{min-height:36px;min-width:36px}
body.erp-modern .erp-view-tabs{gap:7px}
body.erp-modern .erp-view-tabs button{min-height:42px}
body.erp-modern .dataTables_wrapper{overflow:hidden}
body.erp-modern .dataTables_wrapper .erp-table-scroll{overflow-x:auto}
body.erp-modern .erp-toolbar h2{font-size:20px}
}body.erp-modern.erp-reference .nav-side-menu{background:#0f172a!important;border-color:#1e293b!important}body.erp-modern.erp-reference .nav-side-menu li.active{background:#1e3a8a!important;border-left-color:#60a5fa!important}body.erp-modern.erp-reference .nav-side-menu li:hover,body.erp-modern.erp-reference .nav-side-menu .erp-menu-group summary:hover{background:#1e293b!important}body.erp-modern.erp-reference .nav-side-menu .erp-menu-search{background:#1e293b!important;border-color:#334155!important}
body.erp-modern .erp-table-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0}body.erp-modern .erp-table-grid>.erp-table-card{width:auto!important;float:none!important;padding:0!important;min-width:0}body.erp-modern .erp-table-grid .table-box{margin-bottom:0;height:100%}body.erp-modern .erp-table-grid .table-box h4{font-size:13px;font-weight:600}@media(max-width:767px){body.erp-modern .erp-table-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}

/* Bootstrap clearfix pseudo-elements must not occupy grid cells. */
body.erp-modern .erp-table-grid::before, body.erp-modern .erp-table-grid::after { display: none !important; }

/* Daily actions stay within reach while the user works. */
body.erp-modern .erp-daily-toolbar {position:sticky;top:0;z-index:90;background:#fff!important;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px!important;margin:0 0 18px!important;box-shadow:0 3px 12px #0f172a0b;display:block!important}
body.erp-modern .erp-daily-toolbar h2{font-size:16px!important;margin:0 0 8px!important}
body.erp-modern .erp-daily-toolbar p{display:none}
body.erp-modern .erp-daily-toolbar .erp-quick-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start}
body.erp-modern .erp-daily-toolbar .erp-quick-links a{min-height:42px;padding:10px 13px!important;font-size:14px!important;white-space:nowrap;background:#eff6ff!important;color:#1e3a8a!important;border:1px solid #bfdbfe!important;box-shadow:none!important}
body.erp-modern .erp-daily-toolbar a[data-accent=pos]{background:#ea580c!important;color:#fff!important;border-color:#ea580c!important}
body.erp-modern .erp-daily-toolbar a[data-accent=sales]{background:#f3e8ff!important;color:#6b21a8!important;border-color:#e9d5ff!important}
body.erp-modern .erp-daily-toolbar a[data-accent=accounts]{background:#dcfce7!important;color:#166534!important;border-color:#bbf7d0!important}
body.erp-modern .erp-daily-toolbar a[data-accent=inventory]{background:#ccfbf1!important;color:#115e59!important;border-color:#99f6e4!important}
body.erp-modern .erp-daily-toolbar a[data-accent=restaurant]{background:#ffe4e6!important;color:#9f1239!important;border-color:#fecdd3!important}
body.erp-modern .erp-daily-toolbar a:hover{filter:brightness(.96)}
body.erp-modern .erp-daily-toolbar a:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
@media(max-width:767px){body.erp-modern .erp-daily-toolbar{top:0;padding:10px!important}body.erp-modern .erp-daily-toolbar .erp-quick-links{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;justify-content:flex-start}body.erp-modern .erp-daily-toolbar .erp-quick-links a{flex-shrink:0}}

.stock-shortage-warning{display:block;color:#92400e;background:#fef3c7;padding:5px 7px;border-radius:5px;font-size:12px;min-width:150px;line-height:1.4}.stock-shortage{border-color:#f59e0b!important}

body.erp-modern .erp-menu-unavailable{opacity:.5;pointer-events:none;cursor:default}body.erp-modern .erp-menu-unavailable::after{content:" — unavailable";font-size:11px}
/* Phone readability and POS cards: keep original inputs and save fields. */
@media(max-width:767px){
html body.erp-modern{font-size:16px!important;line-height:1.5!important}
body.erp-modern #frm2 label,body.erp-modern .form-label,body.erp-modern .control-label,body.erp-modern .customer-info p,body.erp-modern .scanner-title strong,body.erp-modern .scanner-status{font-size:15px!important;line-height:1.5!important}
body.erp-modern .scanner-title small{font-size:13px!important;line-height:1.4!important}
body.erp-modern .form-control,body.erp-modern input.form-control,body.erp-modern select.form-control,body.erp-modern textarea.form-control,body.erp-modern .bootstrap-select>.dropdown-toggle{font-size:16px!important;min-height:46px!important;line-height:1.4!important}
body.erp-modern .btn,body.erp-modern .pay-btn,body.erp-modern .action-btn{font-size:15px!important;min-height:46px!important;white-space:normal!important}
body.erp-modern .erp-daily-toolbar{position:relative!important;top:auto!important;padding:12px!important}
body.erp-modern .erp-daily-toolbar .erp-quick-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible!important;white-space:normal!important}
body.erp-modern .erp-daily-toolbar .erp-quick-links a{min-width:0!important;font-size:14px!important;padding:10px!important;white-space:normal!important}
body.erp-modern .dataTables_wrapper .row{margin:0!important}
body.erp-modern .dataTables_length,body.erp-modern .dataTables_filter{text-align:left!important;float:none!important;width:100%!important;margin:8px 0!important}
body.erp-modern .dataTables_filter label{display:flex!important;align-items:center;gap:8px}
body.erp-modern .dataTables_filter input{min-width:0!important;width:100%!important;margin:0!important}
body.erp-modern table th,body.erp-modern table td{font-size:15px!important;line-height:1.5!important;padding:12px!important}
body.erp-modern .erp-page-content>h2,body.erp-modern #home>h2{font-size:24px!important;line-height:1.25!important}
body.erp-modern #itemsTable1{display:block!important;width:100%!important;overflow:visible!important;white-space:normal!important;border:0!important}
body.erp-modern #itemsTable1 thead{display:none!important}
body.erp-modern #itemsTable1 tbody{display:block!important;min-width:0!important;width:100%!important}
body.erp-modern #itemsTable1 tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px!important;margin:0 0 14px!important;border:1px solid #cbd5e1!important;border-left:4px solid #0d9488!important;border-radius:12px;background:white!important}
body.erp-modern #itemsTable1 tbody td{display:block!important;width:auto!important;min-width:0!important;border:0!important;padding:0!important;background:transparent!important;text-align:left!important}
body.erp-modern #itemsTable1 tbody td:nth-child(1),body.erp-modern #itemsTable1 tbody td:nth-child(2){grid-column:1/-1}
body.erp-modern #itemsTable1 tbody td[data-mobile-label]::before{content:attr(data-mobile-label);display:block;color:#334155;font-size:14px;font-weight:600;margin-bottom:5px}
body.erp-modern #itemsTable1 tbody input{font-size:16px!important;min-height:46px!important;max-width:100%!important;width:100%!important;padding:9px!important}
body.erp-modern #itemsTable1 tbody td[colspan]{grid-column:1/-1}
body.erp-modern #itemsTable1 tbody td[colspan]::before{display:none}
body.erp-modern #itemsTable1 tfoot{display:block!important;min-width:0!important;width:100%!important}
body.erp-modern .total-fixed-row,body.erp-modern .payment-fixed-inner{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;width:100%!important}
body.erp-modern .total-fixed-row .inline-box{min-width:0!important}
body.erp-modern .section-title{font-size:16px!important}
}
@media(max-width:767px){
body.erp-modern.erp-pos #itemsTable1 tbody input.form-control,body.erp-modern.erp-pos .total-fixed-row input.form-control{font-size:16px!important;min-height:46px!important}
body.erp-modern.erp-pos .pay-btn,body.erp-modern.erp-pos .action-btn{font-size:15px!important}
body.erp-modern.erp-pos .customer-info p{font-size:15px!important}
body.erp-modern #itemsTable1 .select2-container{width:100%!important;max-width:100%!important;min-width:0!important}
body.erp-modern #itemsTable1 .select2-selection{height:auto!important;min-height:46px!important}
body.erp-modern #itemsTable1 .select2-selection__rendered{font-size:16px!important;line-height:44px!important}
body.erp-modern #itemsTable1 tbody td input[name^="descrip"]{white-space:normal!important}
}
@media(max-width:767px){
body.erp-modern .erp-purchase-actions{display:grid;grid-template-columns:1fr;gap:8px;margin:12px 0}
body.erp-modern .erp-purchase-actions .btn{float:none!important;margin:0!important;width:100%!important}
body.erp-modern #myTable.erp-mobile-list{display:block!important;width:100%!important;min-width:0!important;border:0!important}
body.erp-modern #myTable.erp-mobile-list thead{display:none!important}
body.erp-modern #myTable.erp-mobile-list tbody{display:block!important;width:100%!important}
body.erp-modern #myTable.erp-mobile-list tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px!important;margin-bottom:14px;border:1px solid #cbd5e1!important;border-top:3px solid #0d9488!important;border-radius:12px;background:#fff!important}
body.erp-modern #myTable.erp-mobile-list tbody td{display:block!important;min-width:0!important;width:auto!important;border:0!important;padding:0!important;white-space:normal!important;overflow-wrap:anywhere;background:transparent!important;font-size:16px!important}
body.erp-modern #myTable.erp-mobile-list td[data-mobile-label]::before{content:attr(data-mobile-label);display:block;font-size:14px;font-weight:600;color:#475569;margin-bottom:4px}
body.erp-modern #myTable.erp-mobile-list td:nth-child(2),body.erp-modern #myTable.erp-mobile-list td:nth-child(4){grid-column:1/-1}
body.erp-modern #myTable.erp-mobile-list td a{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:46px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px}
}
