/* Makeen Teal — full ERP visual theme */
body.ui-v2[data-theme-preset="makeen-teal"]{--brand:#12877a;--brand-dark:#17516a;--brand-tint:#e1f4f2;--paper:#eaf1f5;--surface:#fff;--surface-raised:#fff;--surface-muted:#f4f8fa;--ink:#172b39;--ink-soft:#415865;--ink-faint:#6b7f89;--line:#d4e0e6;--r-sm:12px;--r-lg:22px;background:radial-gradient(circle at 15% 0%,#f8fcfe 0,#eaf1f5 44%,#e4edf2 100%);}
body.ui-v2[data-theme-preset="makeen-teal"] .app-header,body.ui-v2[data-theme-preset="makeen-teal"] .page-header,body.ui-v2[data-theme-preset="makeen-teal"] .settings-card-title{background:linear-gradient(135deg,#174f68 0%,#12877a 100%);color:#fff;border:0;box-shadow:0 12px 32px rgba(18,91,105,.18);}
body.ui-v2[data-theme-preset="makeen-teal"] .sidebar{background:linear-gradient(180deg,#123f55 0%,#0f605f 100%);border:0;box-shadow:10px 0 35px rgba(18,63,85,.2);}
body.ui-v2[data-theme-preset="makeen-teal"] .sidebar a,body.ui-v2[data-theme-preset="makeen-teal"] .sidebar button{border-radius:12px;transition:background-color .2s ease,color .2s ease,box-shadow .2s ease;}
body.ui-v2[data-theme-preset="makeen-teal"] .sidebar a.active,body.ui-v2[data-theme-preset="makeen-teal"] .sidebar button.active{background:rgba(255,255,255,.16);box-shadow:inset 3px 0 #7ee2d5;color:#fff;}
body.ui-v2[data-theme-preset="makeen-teal"] .card,body.ui-v2[data-theme-preset="makeen-teal"] .settings-card,body.ui-v2[data-theme-preset="makeen-teal"] .dashboard-card,body.ui-v2[data-theme-preset="makeen-teal"] .table-wrap{background:#fff;border:1px solid rgba(197,215,224,.8);border-radius:20px;box-shadow:0 12px 34px rgba(32,67,86,.09);}
body.ui-v2[data-theme-preset="makeen-teal"] .modal-overlay{background:rgba(23,39,52,.58);backdrop-filter:blur(5px);}
body.ui-v2[data-theme-preset="makeen-teal"] .modal-box{background:#f8fbfc;border:1px solid rgba(255,255,255,.85);border-radius:24px;box-shadow:0 28px 75px rgba(17,44,59,.28);}
body.ui-v2[data-theme-preset="makeen-teal"] .modal-box>h2{margin:-1px -1px 20px;padding:20px 24px;background:linear-gradient(135deg,#174f68,#12877a);color:#fff;border-radius:23px 23px 0 0;}
body.ui-v2[data-theme-preset="makeen-teal"] input,body.ui-v2[data-theme-preset="makeen-teal"] select,body.ui-v2[data-theme-preset="makeen-teal"] textarea{min-height:44px;background:#fff;border:1px solid #cbdbe2;border-radius:12px;color:#172b39;box-shadow:0 2px 7px rgba(23,57,75,.04);transition:border-color .18s ease,box-shadow .18s ease;}
body.ui-v2[data-theme-preset="makeen-teal"] input:focus,body.ui-v2[data-theme-preset="makeen-teal"] select:focus,body.ui-v2[data-theme-preset="makeen-teal"] textarea:focus{outline:3px solid rgba(18,135,122,.2);border-color:#12877a;box-shadow:0 0 0 1px #12877a;}
body.ui-v2[data-theme-preset="makeen-teal"] .btn-primary,body.ui-v2[data-theme-preset="makeen-teal"] button.btn-primary{min-height:44px;background:linear-gradient(135deg,#174f68,#12877a);border:0;border-radius:12px;color:#fff;box-shadow:0 8px 18px rgba(18,111,110,.2);transition:filter .18s ease,box-shadow .18s ease;}
body.ui-v2[data-theme-preset="makeen-teal"] .btn-primary:hover{filter:brightness(1.06);box-shadow:0 10px 23px rgba(18,111,110,.27);}
body.ui-v2[data-theme-preset="makeen-teal"] .btn-primary:focus-visible,body.ui-v2[data-theme-preset="makeen-teal"] button:focus-visible{outline:3px solid rgba(18,135,122,.28);outline-offset:2px;}
body.ui-v2[data-theme-preset="makeen-teal"] .btn-ghost{min-height:44px;background:#fff;border:1px solid #cbdbe2;border-radius:12px;color:#284653;}
body.ui-v2[data-theme-preset="makeen-teal"] table thead th{background:#f0f6f8;color:#274451;border-bottom:2px solid #cfdee5;}
body.ui-v2[data-theme-preset="makeen-teal"] table tbody tr:hover{background:#edf8f6;}
body.ui-v2[data-theme-preset="makeen-teal"] .badge,body.ui-v2[data-theme-preset="makeen-teal"] .status-badge{background:#e0f4f1;color:#08655c;border:1px solid #b9e0db;}
body.ui-v2.ui-dark[data-theme-preset="makeen-teal"]{--brand:#46c7b8;--brand-dark:#29998e;--brand-tint:#173d3d;--paper:#101a20;--surface:#17252d;--surface-raised:#1b2c35;--surface-muted:#20333c;--ink:#eff8fa;--ink-soft:#c0d0d5;--ink-faint:#8fa4ab;--line:#334a55;background:#101a20;}
body.ui-v2.ui-dark[data-theme-preset="makeen-teal"] .card,body.ui-v2.ui-dark[data-theme-preset="makeen-teal"] .settings-card,body.ui-v2.ui-dark[data-theme-preset="makeen-teal"] .modal-box{background:#17252d;border-color:#334a55;color:#eff8fa;}
body.ui-v2.ui-dark[data-theme-preset="makeen-teal"] input,body.ui-v2.ui-dark[data-theme-preset="makeen-teal"] select,body.ui-v2.ui-dark[data-theme-preset="makeen-teal"] textarea{background:#20333c;border-color:#405963;color:#eff8fa;}
@media(max-width:768px){body.ui-v2[data-theme-preset="makeen-teal"] .modal-box{width:calc(100vw - 24px);border-radius:18px}body.ui-v2[data-theme-preset="makeen-teal"] .modal-box>h2{border-radius:17px 17px 0 0}body.ui-v2[data-theme-preset="makeen-teal"] .card{border-radius:16px}}
@media(prefers-reduced-motion:reduce){body.ui-v2[data-theme-preset="makeen-teal"] *,body.ui-v2[data-theme-preset="makeen-teal"] *::before,body.ui-v2[data-theme-preset="makeen-teal"] *::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
/* Makeen Teal Sidebar V2 */
body.ui-v2[data-theme-preset="makeen-teal"]{--sidebar:#123f55;--sidebar-text:#dcecef;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar.sidebar{background:linear-gradient(180deg,#123f55 0%,#125c66 52%,#0e766f 100%)!important;border:0!important;border-inline-start:1px solid rgba(255,255,255,.09)!important;box-shadow:14px 0 42px rgba(15,58,73,.24)!important;color:#ecf8f8;overflow:hidden;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar.sidebar::before{height:250px!important;background:radial-gradient(circle at 72% -8%,rgba(72,214,193,.36),transparent 68%)!important;opacity:1!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .sidebar-head{padding:22px 20px 18px!important;background:linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.025));border-bottom:1px solid rgba(255,255,255,.11)!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #sidebarCompanyLogo{padding:5px;background:#fff;border:1px solid rgba(255,255,255,.55);border-radius:14px!important;box-shadow:0 8px 22px rgba(0,0,0,.16);}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .sidebar-head .company{color:#fff!important;font-size:17px!important;font-weight:800;line-height:1.5;text-shadow:0 1px 2px rgba(0,0,0,.14);}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .sidebar-head .company-en{color:#b8d7da!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #installAppBtn{min-height:44px;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.16)!important;color:#fff!important;border-radius:12px!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav{padding:12px 12px 20px!important;scrollbar-width:thin;scrollbar-color:rgba(151,232,220,.48) transparent;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav::-webkit-scrollbar{width:7px;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav::-webkit-scrollbar-thumb{background:rgba(151,232,220,.42);border-radius:99px;border:2px solid transparent;background-clip:padding-box;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-group-label{min-height:40px;margin:12px 4px 5px!important;padding:9px 10px!important;background:rgba(4,34,46,.18)!important;border:1px solid rgba(255,255,255,.075);border-radius:11px!important;color:#a9d7d6!important;font-size:11px!important;font-weight:800;letter-spacing:.02em!important;text-transform:none!important;transition:background-color .2s ease,border-color .2s ease,color .2s ease;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-group-label:hover,body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-group-label.open{background:rgba(255,255,255,.10)!important;border-color:rgba(126,226,213,.24);color:#fff!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-group-label .glabel-icon{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:rgba(255,255,255,.08);}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-group-label .chevron{color:#85d7ce;font-size:11px;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-item{position:relative;min-height:46px!important;max-height:58px!important;margin:2px 3px!important;padding:10px 12px!important;border:1px solid transparent!important;border-radius:12px!important;color:#d8e9ec!important;background:transparent!important;font-weight:650;gap:11px!important;transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-item:hover{background:rgba(255,255,255,.09)!important;border-color:rgba(255,255,255,.08)!important;color:#fff!important;transform:translateX(-2px)!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-item.active{background:linear-gradient(100deg,rgba(42,190,174,.92),rgba(23,111,117,.92))!important;border-color:rgba(170,244,234,.42)!important;color:#fff!important;box-shadow:0 9px 22px rgba(3,49,57,.27),inset 0 1px rgba(255,255,255,.15)!important;font-weight:800;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-item.active::after{inset-inline-end:6px!important;width:4px!important;height:22px!important;background:#d7fff9!important;box-shadow:0 0 12px rgba(215,255,249,.7);}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-item i,body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-icon{color:#9ed4d4!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-item:hover i,body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-item.active i,body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-item:hover .nav-icon,body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-item.active .nav-icon{color:#fff!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .notif-badge{background:#ffca5c!important;color:#433000!important;border:2px solid #155963;box-shadow:0 2px 8px rgba(0,0,0,.2);}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .sidebar-foot{padding:14px 15px 17px!important;background:rgba(5,37,47,.3)!important;border-top:1px solid rgba(255,255,255,.11)!important;backdrop-filter:blur(8px);}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .sidebar-foot .uname{color:#fff!important;font-weight:750;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .sidebar-foot .uemail{color:#acd0d2!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .sidebar-foot .btn-ghost,body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .ios-theme-toggle,body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .sidebar-logout-btn{min-height:44px!important;background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.12)!important;color:#e8f6f6!important;border-radius:11px!important;box-shadow:none!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .sidebar-foot .btn-ghost:hover,body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .ios-theme-toggle:hover{background:rgba(255,255,255,.14)!important;border-color:rgba(133,224,211,.3)!important;color:#fff!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #mobileSidebarClose{width:44px!important;height:44px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:12px!important;}
body.ui-v2.ui-dark[data-theme-preset="makeen-teal"] #mainSidebar.sidebar{background:linear-gradient(180deg,#0b2835,#0d4149 56%,#0b5854)!important;box-shadow:14px 0 42px rgba(0,0,0,.34)!important;}
@media(max-width:900px){body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar.sidebar{box-shadow:-10px 0 45px rgba(7,34,45,.38)!important}body.ui-v2[data-theme-preset="makeen-teal"] #sidebarBackdrop{background:rgba(13,29,38,.58)!important;backdrop-filter:blur(3px)}}
@media(prefers-reduced-motion:reduce){body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-item,body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-group-label{transition:none!important;transform:none!important}}
/* Makeen V5: login, readable sidebar, correct collapsed groups, unified return search */
body.ui-v2[data-theme-preset="makeen-teal"] #loginScreen .login-split{background:#eaf1f5;}
body.ui-v2[data-theme-preset="makeen-teal"] #loginScreen .login-brand-panel{background:linear-gradient(145deg,#174f68 0%,#12877a 72%,#0e6c68 100%)!important;box-shadow:inset -1px 0 rgba(255,255,255,.12);}
body.ui-v2[data-theme-preset="makeen-teal"] #loginScreen .login-brand-deco{background:radial-gradient(circle at 22% 18%,rgba(126,226,213,.28),transparent 34%),radial-gradient(circle at 82% 78%,rgba(255,255,255,.13),transparent 35%)!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #loginScreen .login-brand-content,body.ui-v2[data-theme-preset="makeen-teal"] #loginScreen .login-brand-content h1,body.ui-v2[data-theme-preset="makeen-teal"] #loginScreen .login-brand-content p{color:#fff!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #loginScreen .login-brand-content p{opacity:.94!important;font-weight:500;text-shadow:0 1px 2px rgba(0,0,0,.14);}
body.ui-v2[data-theme-preset="makeen-teal"] #loginScreen .login-brand-logo{background:rgba(255,255,255,.14)!important;border:1px solid rgba(255,255,255,.26)!important;box-shadow:0 16px 38px rgba(6,54,65,.25)!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #loginScreen .login-form-panel{background:linear-gradient(155deg,#f8fcfd,#eaf1f5)!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #loginScreen .login-card{background:#fff!important;border:1px solid #d5e2e7!important;border-radius:26px!important;box-shadow:0 22px 58px rgba(23,70,87,.14)!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #loginScreen .login-card h1{color:#173f52!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #loginScreen .login-card .sub,body.ui-v2[data-theme-preset="makeen-teal"] #loginScreen .setup-hint{color:#415f6b!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-group-label,body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-group-label .glabel-text,body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-item,body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-item span{color:#fff!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-group-label .chevron,body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-group-label .glabel-icon{color:#d9fffa!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-item.nav-hidden-collapsed{min-height:0!important;max-height:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;transform:none!important;}
body.ui-v2[data-theme-preset="makeen-teal"] #mainSidebar .nav-group-label:not(.open){margin-top:4px!important;margin-bottom:3px!important;}
body.ui-v2[data-theme-preset="makeen-teal"] .msr-global-search-wrap{margin:12px 0 14px;padding:14px;background:linear-gradient(135deg,#eef8f7,#f7fbfc);border:1px solid #cce2e1;border-radius:15px;}
body.ui-v2[data-theme-preset="makeen-teal"] .msr-global-search-wrap label{display:block;color:#234954;font-weight:800;margin-bottom:7px;}
body.ui-v2[data-theme-preset="makeen-teal"] #msrGlobalProductSearch{width:100%;min-height:48px;font-size:15px;}
body.ui-v2[data-theme-preset="makeen-teal"] #msrGlobalSearchCount{display:block;margin-top:6px;color:#53717a;font-size:12px;}
body.ui-v2[data-theme-preset="makeen-teal"] #manualSalesReturnModal .msr-product-search-v1,body.ui-v2[data-theme-preset="makeen-teal"] #manualSalesReturnModal .msr-search-count{display:none!important;}
body.ui-v2.ui-dark[data-theme-preset="makeen-teal"] #loginScreen .login-form-panel{background:#101a20!important;}
body.ui-v2.ui-dark[data-theme-preset="makeen-teal"] #loginScreen .login-card{background:#17252d!important;border-color:#334a55!important;}
body.ui-v2.ui-dark[data-theme-preset="makeen-teal"] #loginScreen .login-card h1{color:#eff8fa!important;}
@media(max-width:800px){body.ui-v2[data-theme-preset="makeen-teal"] #loginScreen .login-brand-panel{min-height:230px;padding:34px 24px!important}body.ui-v2[data-theme-preset="makeen-teal"] #loginScreen .login-form-panel{padding:18px!important}}