:root{--bg:#f4f7f5;--shell:#eef4f1;--surface:#ffffff;--surface-soft:#f8faf8;--surface-strong:#10231e;--text:#16231f;--muted:#68766f;--muted-strong:#3e4d46;--line:#dde7e2;--line-strong:#cbd8d2;--accent:#18725d;--accent-dark:#105341;--accent-soft:#e7f4ef;--amber:#b7791f;--danger:#b42318;--ok:#0f766e;--shadow:0 18px 50px rgba(16,35,30,0.08);--shadow-soft:0 10px 28px rgba(16,35,30,0.06)}*{box-sizing:border-box}body,html{min-height:100%}body{margin:0;background:linear-gradient(135deg,rgba(24,114,93,.08),transparent 34%),linear-gradient(315deg,rgba(183,121,31,.08),transparent 28%),var(--bg);color:var(--text);font-family:Tajawal,Arial,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button{min-height:34px;height:34px;min-width:88px;max-width:100%;display:inline-flex;align-items:center;justify-content:center;border:2px solid #111;border-radius:20px;background-color:#fff;color:#000;fill:#000;padding:0 10px;outline:0;cursor:pointer;font-weight:600;font-size:13px;line-height:24px;letter-spacing:0;text-align:center;text-decoration:none;touch-action:manipulation;-moz-user-select:none;user-select:none;-webkit-user-select:none;box-shadow:none;transition:border-color .3s ease,color .3s ease,fill .3s ease,background-color .3s ease}button:active,button:focus,button:hover{border-color:#06f;color:#06f;fill:#06f;outline:0}button:disabled{cursor:not-allowed;opacity:.62}@media (min-width:768px){button{min-width:104px}}input,select,textarea{width:100%;min-height:48px;border:1px solid #d8e4ee;border-radius:12px;background:linear-gradient(#ffffff,#ffffff) padding-box,linear-gradient(180deg,rgba(223,232,244,.86),rgba(205,219,232,.62)) border-box;color:var(--text);padding:11px 14px;outline:none;box-shadow:0 1px 2px rgba(16,35,30,.03),inset 0 1px 0 rgba(255,255,255,.8);font-weight:700;transition:border-color .14s ease,box-shadow .14s ease,background .14s ease,transform .14s ease}input:hover,textarea:hover{border-color:#c7d7e7;background:linear-gradient(#fbfdff,#fbfdff) padding-box,linear-gradient(180deg,rgba(202,218,236,.92),rgba(190,207,225,.72)) border-box}select{-moz-appearance:none;appearance:none;-webkit-appearance:none;height:52px;border-color:#d8e4ee;border-radius:14px;background:linear-gradient(#ffffff,#ffffff) padding-box,linear-gradient(180deg,rgba(219,231,244,.92),rgba(203,216,229,.72)) border-box;background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 11.5L10 8L13.5 11.5' stroke='%2316231F' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),linear-gradient(#ffffff,#ffffff),linear-gradient(180deg,rgba(219,231,244,.92),rgba(203,216,229,.72));background-origin:padding-box,padding-box,border-box;background-position:left 18px center,50%,50%;background-size:20px 20px,100% 100%,100% 100%;background-repeat:no-repeat;cursor:pointer;font-weight:700;line-height:1.35;padding-block:0;padding-inline:18px 52px;text-align:right;box-shadow:0 1px 2px rgba(16,35,30,.04),0 0 0 4px rgba(223,232,244,.48)}select:hover{border-color:#c7d7e7;background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 11.5L10 8L13.5 11.5' stroke='%2316231F' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),linear-gradient(#fbfdff,#fbfdff),linear-gradient(180deg,rgba(202,218,236,.98),rgba(190,207,225,.82))}select:dir(ltr){background-position:right 18px center,50%,50%;padding-inline:18px 52px;text-align:left}select option{min-height:44px;background:#f8fbff;color:var(--text);font-weight:700}select option:checked{background:#eef4ff;color:#0f172a}select:disabled{cursor:not-allowed;opacity:.68;box-shadow:0 0 0 4px rgba(223,232,244,.24)}textarea{resize:vertical;min-height:132px;direction:rtl;text-align:right;font-family:Tajawal,Arial,Segoe UI,sans-serif;line-height:1.75;padding:14px}.highlighted-textarea-wrap{position:relative;width:100%;min-width:0}.highlighted-textarea-backdrop{position:absolute;inset:0;min-height:132px;overflow:hidden;border:1px solid transparent;border-radius:8px;background:#fff;color:transparent;direction:inherit;font-family:Tajawal,Arial,Segoe UI,sans-serif;font-size:inherit;font-weight:inherit;line-height:1.6;overflow-wrap:anywhere;padding:14px;pointer-events:none;text-align:inherit;white-space:pre-wrap}.highlighted-textarea{position:relative;z-index:1;background:transparent;caret-color:var(--text);min-height:132px}.highlighted-textarea::selection{background:rgba(24,114,93,.22)}.textarea-variable-token{display:inline;border:1px solid rgba(183,121,31,.28);border-radius:5px;background:rgba(255,224,130,.62);box-shadow:0 0 0 2px rgba(255,224,130,.26);color:transparent;padding:0 2px}input:focus,select:focus,textarea:focus{border-color:var(--accent);background:linear-gradient(#ffffff,#ffffff) padding-box,linear-gradient(180deg,rgba(24,114,93,.48),rgba(169,195,229,.66)) border-box;box-shadow:0 1px 2px rgba(16,35,30,.04),0 0 0 4px rgba(24,114,93,.1)}input:disabled,input[readonly],textarea:disabled,textarea[readonly]{background:#f5f8f6;color:var(--muted);cursor:not-allowed}input::placeholder,textarea::placeholder{color:#9aa8a2;font-weight:600}input[type=color]{height:52px;padding:5px;cursor:pointer}input[type=date],input[type=datetime-local],input[type=number]{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}input[type=checkbox],input[type=radio]{width:18px;min-height:18px;height:18px;flex:0 0 auto;border-radius:5px;padding:0;accent-color:var(--accent);box-shadow:none}input[type=radio]{border-radius:50%}select:focus{border-color:#a9c3e5;box-shadow:0 1px 2px rgba(16,35,30,.04),0 0 0 4px rgba(191,213,242,.7)}.select-field-control{position:relative;z-index:1}.select-field-control.open{z-index:120}.select-trigger{width:100%;min-width:0;min-height:52px;height:52px;justify-content:space-between;gap:12px;border:1px solid #d8e4ee;border-radius:14px;background:linear-gradient(#ffffff,#ffffff) padding-box,linear-gradient(180deg,rgba(219,231,244,.92),rgba(203,216,229,.72)) border-box;color:var(--text);padding:0 18px;box-shadow:0 1px 2px rgba(16,35,30,.04),0 0 0 4px rgba(223,232,244,.48);font-size:14px;font-weight:800;line-height:1.35;text-align:right}.select-trigger:focus-visible,.select-trigger:hover{border-color:#a9c3e5;background:linear-gradient(#fbfdff,#fbfdff) padding-box,linear-gradient(180deg,rgba(202,218,236,.98),rgba(190,207,225,.82)) border-box;color:var(--text);box-shadow:0 1px 2px rgba(16,35,30,.04),0 0 0 4px rgba(191,213,242,.7)}.select-trigger span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-trigger i{width:20px;height:20px;flex:0 0 auto;background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 8.5L10 12L13.5 8.5' stroke='%2316231F' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:20px 20px;transition:transform .15s ease}.select-trigger[aria-expanded=true] i{transform:rotate(180deg)}.select-menu{position:absolute;inset-inline:0;top:calc(100% + 8px);z-index:121;max-height:240px;overflow:hidden auto;border:1px solid #d8e4ee;border-radius:16px;background:#f8fbff;box-shadow:0 18px 36px rgba(20,35,55,.12),inset 0 0 0 1px rgba(255,255,255,.82);padding:0;animation:select-menu-in .14s ease both}.select-menu button{width:100%;min-width:0;min-height:48px;height:auto;justify-content:flex-start;border:0;border-bottom:1px solid #d8e4ee;border-radius:0;background:transparent;color:#0f172a;padding:12px 18px;box-shadow:none;font-size:14px;font-weight:700;line-height:1.35;text-align:right}.select-menu button:last-child{border-bottom:0}.select-menu button.selected,.select-menu button:focus-visible,.select-menu button:hover{background:#eef4ff;color:#071224;border-color:#d8e4ee;box-shadow:none}.image-upload-field{min-width:0}.image-upload-field .field-label:empty,.image-upload-field~.sub-cell{display:none}.image-upload-input{position:absolute;width:1px;min-height:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}.image-upload-box{min-height:52px;height:52px;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;grid-gap:10px;gap:10px;border:1px solid #d8e4ee;border-radius:14px;background:linear-gradient(#ffffff,#ffffff) padding-box,linear-gradient(180deg,rgba(219,231,244,.92),rgba(203,216,229,.72)) border-box;padding:5px 10px;box-shadow:0 1px 2px rgba(16,35,30,.04),0 0 0 4px rgba(223,232,244,.34)}.dashboard .image-upload-box{min-height:52px;height:52px;border-color:#d9e5df;border-radius:14px;background:linear-gradient(135deg,#ffffff,#fbfdfc) padding-box,linear-gradient(180deg,rgba(231,239,235,.95),rgba(205,222,214,.72)) border-box;box-shadow:0 1px 2px rgba(16,35,30,.035),0 0 0 4px rgba(232,240,236,.5);transition:border-color .14s ease,box-shadow .14s ease,background .14s ease}.dashboard .image-upload-box:hover,.dashboard .image-upload-field:focus-within .image-upload-box{border-color:#abcfc2;background:linear-gradient(135deg,#ffffff,#f5fbf8) padding-box,linear-gradient(180deg,rgba(178,211,200,.95),rgba(205,222,214,.76)) border-box;box-shadow:0 1px 2px rgba(16,35,30,.035),0 0 0 4px rgba(24,114,93,.1)}.image-upload-box.has-image{background:linear-gradient(#fbfdfc,#fbfdfc) padding-box,linear-gradient(180deg,rgba(187,220,207,.92),rgba(203,216,229,.72)) border-box}.image-upload-thumb{width:40px;height:40px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#f3f7f5;color:var(--muted);font-size:18px;font-weight:800}.dashboard .image-upload-thumb{width:40px;height:40px;border-color:#dce8e2;border-radius:10px;background:#f4f8f6}.image-upload-thumb img{width:100%;height:100%;display:block;object-fit:cover}.image-upload-copy{min-width:0;display:grid;grid-gap:1px;gap:1px;text-align:right}.image-upload-copy strong{color:var(--text);font-size:13px}.image-upload-copy small,.image-upload-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-upload-copy small{color:var(--muted);direction:ltr;font-size:11px;font-weight:700;text-align:right}.dashboard .image-upload-copy strong{font-size:12px}.dashboard .image-upload-copy small{color:#66756e;font-size:10px;font-weight:700}.image-upload-actions{display:flex;align-items:center;gap:6px}.image-preview-button,.image-remove-button,.image-upload-button{min-width:38px;height:38px;min-height:38px;border-radius:20px;border-color:#d8e4ee;box-shadow:none}.dashboard .image-preview-button,.dashboard .image-remove-button,.dashboard .image-upload-button{border-radius:20px}.image-preview-button{width:38px;padding:0;background:#f4f8fb}.image-preview-button span{width:20px;height:20px;display:block;background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 10S5 5.5 10 5.5S17.5 10 17.5 10S15 14.5 10 14.5S2.5 10 2.5 10Z' stroke='%2316231F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='10' r='2.2' stroke='%2316231F' stroke-width='1.6'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:20px 20px}.image-upload-button{background:#10231e;color:#fff;padding-inline:13px}.image-remove-button{border:1px solid rgba(180,35,24,.22);background:#fff1f2;color:#b42318;padding-inline:12px;font-weight:900}.dashboard .image-upload-button{border-color:var(--accent-dark);background:var(--accent-dark);font-weight:800}.image-preview-button:focus-visible,.image-preview-button:hover{border-color:#a9c3e5;background:#eef4ff;color:var(--text)}.image-upload-button:focus-visible,.image-upload-button:hover{border-color:#10231e;background:var(--accent-dark);color:#fff}.image-remove-button:focus-visible,.image-remove-button:hover{border-color:rgba(180,35,24,.38);background:#ffe4e6;color:#9f1d15}.image-preview-overlay{position:fixed;inset:0;z-index:220;display:grid;place-items:center;padding:24px;background:rgba(9,20,17,.58);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:fade-in .16s ease both}.image-preview-panel{position:relative;width:min(760px,100%);max-height:min(82vh,720px);display:grid;place-items:center;overflow:hidden;border:1px solid rgba(255,255,255,.68);border-radius:14px;background:#fff;box-shadow:0 30px 90px rgba(9,20,17,.34);padding:14px;animation:modal-in .19s ease both}.image-preview-panel img{max-width:100%;max-height:calc(82vh - 52px);display:block;border-radius:10px;object-fit:contain}.image-preview-close{position:absolute;inset-block-start:12px;inset-inline-start:12px;z-index:1;width:38px;min-width:38px;height:38px;min-height:38px;border:1px solid rgba(255,255,255,.7);border-radius:10px;background:rgba(255,255,255,.92);color:var(--text);padding:0;font-size:22px;line-height:1;box-shadow:0 8px 20px rgba(16,35,30,.16)}label{min-width:0}pre{margin:0;white-space:pre-wrap;word-break:break-word;direction:ltr;text-align:left}.eyebrow{margin:0;color:var(--accent);font-size:12px;font-weight:800;letter-spacing:0;text-transform:uppercase}.login-page,.widget-demo{min-height:100vh;display:grid;place-items:center;padding:24px}.widget-demo section{width:min(760px,100%);display:grid;grid-gap:14px;gap:14px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.92);box-shadow:var(--shadow);padding:28px}.widget-demo h1,.widget-demo p{margin:0}.widget-demo h1{font-size:clamp(28px,5vw,54px);line-height:1.1}.widget-demo p{color:var(--muted);line-height:1.8}.widget-demo code{display:block;overflow:auto;border:1px solid var(--line);border-radius:8px;background:#10231e;color:#e7efe9;direction:ltr;text-align:left;padding:14px}.login-shell{width:min(980px,100%);display:grid;grid-template-columns:minmax(0,1fr) 390px;grid-gap:24px;gap:24px;align-items:stretch}.login-card,.login-copy,.panel{background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.login-card,.login-copy{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.login-copy{display:grid;align-content:center;grid-gap:14px;gap:14px;padding:42px}.login-card h2,.login-copy h1,.panel h2,.sidebar h1,.topbar h2{margin:0;letter-spacing:0}.login-copy h1{font-size:clamp(34px,6vw,64px);line-height:1}.login-card p,.login-copy p:not(.eyebrow),.muted{margin:0;color:var(--muted);line-height:1.8}.login-card{display:grid;grid-gap:18px;gap:18px;padding:28px}.password-field{position:relative;display:block}.password-field input{-webkit-padding-end:48px;padding-inline-end:48px}.password-toggle{position:absolute;inset-block-start:50%;inset-inline-end:8px;width:34px;min-width:34px;height:34px;min-height:34px;border:0;border-radius:6px;background:transparent;color:var(--muted-strong);padding:0;transform:translateY(-50%);box-shadow:none}.password-toggle:focus,.password-toggle:hover{background:var(--accent-soft);color:var(--accent);border-color:transparent;box-shadow:none}.password-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.form-error{margin:0;color:var(--danger);font-weight:800}.dashboard{min-height:100vh;display:grid;grid-template-columns:minmax(260px,300px) minmax(0,1fr);background:rgba(255,255,255,.28);transition:grid-template-columns .18s ease}.dashboard:has(.sidebar.collapsed){grid-template-columns:112px minmax(0,1fr)}.sidebar{position:-webkit-sticky;position:sticky;top:0;height:100vh;display:grid;grid-template-rows:auto 1fr auto;grid-gap:22px;gap:22px;border-left:1px solid rgba(221,231,226,.85);background:linear-gradient(180deg,#ffffff,#f7fbf8);padding:22px;box-shadow:-12px 0 30px rgba(16,35,30,.04);overflow:hidden}.brand-block{display:flex;align-items:flex-start;justify-content:space-between;gap:4px;padding:4px 2px 14px;border-bottom:1px solid var(--line)}.brand-block>div{display:grid;grid-gap:4px;gap:4px;min-width:0}.brand-block h1{font-size:28px;line-height:1.1}.brand-block span,.panel-heading p,.topbar p{margin:0;color:var(--muted);line-height:1.6}.sidebar-toggle{width:34px;min-width:34px;height:34px;min-height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--accent-dark);padding:0;font-size:23px;line-height:1;box-shadow:none}.sidebar nav{display:grid;align-content:start;grid-gap:8px;gap:8px;overflow:auto;-webkit-padding-end:2px;padding-inline-end:2px;scrollbar-width:thin}.sidebar nav button{width:100%;min-height:56px;height:auto;display:grid;grid-template-columns:38px minmax(0,1fr);grid-gap:10px;gap:10px;align-items:center;justify-items:stretch;background:transparent;color:var(--text);border:1px solid transparent;border-radius:0;text-align:right;padding:8px 10px;box-shadow:none;position:static}.action-card:after,.icon-button:after,.sidebar nav button:after,.sidebar-toggle:after,.variable-chip:after{display:none}.nav-icon{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--accent-dark)}.nav-icon-svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.nav-copy{display:grid;grid-gap:3px;gap:3px;min-width:0}.nav-copy span{font-size:14px;font-weight:800}.nav-copy small{max-width:100%;color:var(--muted);font-size:11px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar nav button.active,.sidebar nav button:hover{background:var(--accent-soft);border-color:rgba(24,114,93,.18);color:var(--accent-dark);transform:none}.sidebar nav button.active .nav-icon,.sidebar nav button:hover .nav-icon{border-color:rgba(24,114,93,.22);background:var(--accent);color:#fff}.sidebar nav button.active{box-shadow:inset -3px 0 0 var(--accent)}.sidebar.collapsed{gap:16px;padding:18px 14px}.sidebar.collapsed .brand-block{justify-content:center;min-height:48px;padding:0 0 12px}.sidebar.collapsed .sidebar-toggle{width:42px;min-width:42px;height:42px;min-height:42px;font-size:24px}.sidebar.collapsed .account-box span,.sidebar.collapsed .brand-block>div,.sidebar.collapsed .nav-copy{display:none}.sidebar.collapsed nav{gap:10px;overflow-x:hidden;padding:0}.sidebar.collapsed nav button{width:58px;min-width:58px;min-height:58px;height:58px;grid-template-columns:1fr;justify-self:center;justify-items:center;border-color:var(--line);border-radius:999px;background:#fff;padding:0}.sidebar.collapsed .account-box{justify-self:center;width:64px;display:grid;place-items:center;border:0;background:transparent;padding:0}.sidebar.collapsed .account-box strong{display:none}.sidebar.collapsed .account-box button{width:58px;min-width:58px;height:42px;min-height:42px;overflow:hidden;padding:0;white-space:nowrap}.account-box{display:grid;grid-gap:8px;gap:8px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft)}.account-box strong{font-size:15px}.account-box span{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.account-box button{margin-top:4px;border-radius:0;background-color:#fff;color:#000}.account-box button:hover{background-color:#fff;color:#06f}.workspace{display:grid;align-content:start;grid-gap:18px;gap:18px;padding:22px}.topbar{display:flex;justify-content:space-between;gap:18px;align-items:center;min-height:86px;padding:18px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.86);box-shadow:var(--shadow-soft);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.topbar>div:first-child{min-width:0}.topbar h2{font-size:26px}.topbar-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto;justify-content:flex-end;min-width:min(100%,460px)}.topbar-actions select{width:clamp(170px,22vw,240px);min-width:0}.refresh-data-button{flex:0 0 auto;white-space:nowrap}.status-pill{min-width:76px;display:inline-flex;justify-content:center;align-items:center;min-height:34px;border:1px solid rgba(15,118,110,.22);border-radius:999px;background:#ecfdf5;color:var(--ok);font-size:12px;font-weight:800}.status-pill.loading{border-color:rgba(183,121,31,.26);background:#fffbeb;color:var(--amber)}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px;gap:16px;animation:page-in .22s ease both}.grid>.panel:only-child,.orders-grid>.panel:first-child,.points-grid>.panel{grid-column:1/-1}.rewards-grid{grid-template-columns:1fr}.rewards-grid>.panel{grid-column:1/-1}.tiers-grid{grid-template-columns:1fr}.segments-grid>.panel,.tiers-grid>.panel{grid-column:1/-1}.notifications-grid{grid-template-columns:1fr}.employees-grid>.panel,.notifications-grid>.panel{grid-column:1/-1}.panel{display:grid;align-content:start;grid-gap:16px;gap:16px;padding:18px;box-shadow:var(--shadow-soft)}.panel-heading{display:grid;grid-gap:5px;gap:5px;padding-bottom:12px;border-bottom:1px solid var(--line)}.panel h2{color:var(--text);font-size:19px}.panel-heading p{font-size:13px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:10px;gap:10px}.stat-card,.stats-grid div{display:grid;grid-gap:6px;gap:6px;min-height:94px;padding:15px;border:1px solid var(--line);border-radius:8px;background:linear-gradient(180deg,#ffffff 0,var(--surface-soft) 100%)}.stats-grid span{color:var(--muted);font-size:12px;font-weight:800}.stats-grid strong{color:var(--accent-dark);font-size:30px;line-height:1}.chart-bars{display:grid;grid-gap:14px;gap:14px}.chart-bar-row{display:grid;grid-gap:7px;gap:7px}.chart-bar-label{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted-strong);font-size:13px;font-weight:800}.chart-bar-label strong{color:var(--accent-dark);font-size:16px}.chart-bar-label span{display:grid;grid-gap:2px;gap:2px}.chart-bar-label span small{color:var(--muted);font-size:10px;font-weight:700}.chart-tooltip-anchor{position:relative;outline:none}.chart-tooltip-anchor:focus-visible{outline:2px solid color-mix(in srgb,var(--accent) 60%,white);outline-offset:4px}.chart-tooltip{position:absolute;inset-inline-start:50%;bottom:calc(100% + 8px);z-index:20;width:max-content;max-width:min(260px,75vw);translate:50% 4px;border:1px solid rgba(255,255,255,.14);border-radius:6px;background:#123d33;box-shadow:0 10px 24px rgba(16,35,30,.2);color:#fff;padding:7px 9px;font-size:11px;font-style:normal;font-weight:700;line-height:1.5;opacity:0;pointer-events:none;text-align:right;transition:opacity .14s ease,translate .14s ease}.chart-tooltip-anchor:focus-within>.chart-tooltip,.chart-tooltip-anchor:focus>.chart-tooltip,.chart-tooltip-anchor:hover>.chart-tooltip{opacity:1;translate:50% 0}.chart-bar-track{height:12px;overflow:hidden;border-radius:999px;background:#e7efe9}.chart-bar-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),#35a987);transition:inline-size .22s ease}.donut-chart-wrap{display:grid;grid-template-columns:156px minmax(0,1fr);grid-gap:20px;gap:20px;align-items:center}.donut-chart{width:156px;aspect-ratio:1;display:grid;place-items:center;border-radius:50%;position:relative}.donut-chart:after{content:"";position:absolute;inset:30px;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}.donut-chart span{position:relative;z-index:1;display:grid;grid-gap:3px;gap:3px;place-items:center;color:var(--accent-dark);text-align:center}.donut-chart span strong{font-size:25px;font-weight:900;line-height:1}.donut-chart span small{color:var(--muted);font-size:9px;font-weight:800}.donut-legend{display:grid;grid-gap:4px;gap:4px}.donut-legend div{display:grid;grid-template-columns:9px minmax(0,1fr) auto;grid-gap:9px;gap:9px;align-items:center;min-height:38px;border-bottom:1px solid color-mix(in srgb,var(--line) 72%,transparent);color:var(--muted-strong);padding:5px 2px;font-size:12px;transition:background-color .14s ease,padding-inline .14s ease}.donut-legend div:last-child{border-bottom:0}.donut-legend div:focus-visible,.donut-legend div:hover{border-radius:5px;background:var(--surface-soft);padding-inline:7px}.donut-legend i{width:9px;height:24px;border-radius:3px}.donut-legend span{display:grid;grid-gap:1px;gap:1px;min-width:0}.donut-legend span b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:800}.donut-legend span small{color:var(--muted);font-size:9px;font-weight:700}.donut-legend strong{color:var(--text);font-size:12px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.overview-dashboard{display:grid;grid-template-columns:1.35fr 1fr;grid-gap:16px;gap:16px;margin-bottom:16px;animation:page-in .22s ease both}.analytics-card,.metric-card{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:linear-gradient(180deg,#ffffff 0,var(--surface-soft) 100%);box-shadow:var(--shadow-soft);color:var(--text)}.analytics-card{display:grid;grid-gap:14px;gap:14px;align-content:start;min-height:220px;padding:18px}.analytics-card-large{grid-row:span 2;min-height:430px}.analytics-card-wide{grid-column:span 1}.analytics-heading,.metric-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.analytics-heading div,.metric-card-heading{min-width:0}.analytics-heading span,.metric-card small,.metric-card-heading span{color:var(--muted);font-size:12px;font-weight:800}.analytics-heading h3,.metric-card-heading strong{margin:2px 0 0;color:var(--accent-dark);font-size:30px;line-height:1}.analytics-heading small{color:var(--muted);font-size:11px;font-weight:800;text-align:left}.area-chart{display:grid;grid-gap:7px;gap:7px;min-height:0}.area-chart-plot{position:relative;block-size:clamp(190px,22vw,220px)}.area-chart svg{display:block;width:100%;height:100%}.area-hotspot{position:absolute;z-index:2;width:24px;height:24px;translate:-50% -50%;border:0;border-radius:50%;background:transparent;padding:0}.area-hotspot:focus-visible,.area-hotspot:hover{background:color-mix(in srgb,var(--accent) 10%,transparent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 7%,transparent)}.area-hotspot-dot{position:absolute;inset:50% auto auto 50%;width:9px;height:9px;translate:-50% -50%;scale:.72;border:2px solid var(--surface);border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--accent);opacity:0;transition:opacity .14s ease,scale .14s ease}.area-hotspot.is-latest .area-hotspot-dot,.area-hotspot:focus-visible .area-hotspot-dot,.area-hotspot:hover .area-hotspot-dot{scale:1;opacity:1}.area-hotspot .chart-tooltip{right:auto;left:50%;translate:-50% 4px}.area-hotspot:focus-within>.chart-tooltip,.area-hotspot:focus>.chart-tooltip,.area-hotspot:hover>.chart-tooltip{translate:-50% 0}.area-grid-line{stroke:color-mix(in srgb,var(--line) 78%,transparent);stroke-width:1;stroke-dasharray:3 4}.area-scale-label{fill:var(--muted);direction:ltr;font-family:inherit;font-size:9px;font-weight:700;unicode-bidi:-webkit-isolate;unicode-bidi:isolate}.area-fill{fill:color-mix(in srgb,var(--accent) 12%,transparent)}.area-stroke{stroke:var(--accent);stroke-linecap:round;stroke-linejoin:round;stroke-width:3}.area-secondary-stroke,.area-stroke{fill:none;vector-effect:non-scaling-stroke}.area-secondary-stroke{stroke:var(--amber);stroke-dasharray:7 6;stroke-linecap:round;stroke-linejoin:round;stroke-width:2;opacity:.78}.area-chart-labels{height:18px;position:relative;color:var(--muted);direction:ltr;font-size:10px;font-weight:800}.area-chart-labels span{position:absolute;top:0;translate:-50% 0;white-space:nowrap}.area-chart-labels span:first-child{translate:0 0}.area-chart-labels span:last-child{translate:-100% 0}@media (prefers-reduced-motion:reduce){.area-hotspot-dot,.donut-legend div{transition:none}}.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important}.dashboard .field-label{min-height:24px;justify-content:flex-start;gap:7px;color:#33443d;font-size:13px}.field-label-copy{display:inline-flex;min-width:0;align-items:center;flex-wrap:wrap;gap:6px;overflow-wrap:anywhere}.field-info{position:relative;display:inline-flex;flex:0 0 auto}.dashboard .field-info-button,.field-info-button{width:22px;min-width:22px;height:22px;min-height:22px;display:inline-grid;place-items:center;border:1px solid #bfd2ca;border-radius:50%;background:#fff;color:var(--accent);padding:0;box-shadow:none;font-family:Georgia,Times New Roman,serif;font-size:13px;font-weight:800;line-height:1;cursor:help}.dashboard .field-info-button:focus-visible,.dashboard .field-info-button:hover,.dashboard .field-info-button[aria-expanded=true],.field-info-button:focus-visible,.field-info-button:hover,.field-info-button[aria-expanded=true]{border-color:var(--accent);background:var(--accent);color:#fff;outline:none;box-shadow:0 0 0 3px rgba(24,114,93,.12)}.field-info-popover{position:fixed;z-index:10000;top:var(--field-info-top);left:var(--field-info-left);width:min(280px,calc(100vw - 24px));display:grid;grid-gap:5px;gap:5px;border:1px solid #bad1c8;border-radius:12px;background:#fff;color:#34483f;padding:13px 14px;box-shadow:0 16px 42px rgba(13,57,45,.17);direction:rtl;text-align:right;animation:field-info-enter .14s ease-out both}.field-info-popover.pinned{-webkit-padding-start:40px;padding-inline-start:40px}.field-info-popover strong{color:var(--accent-dark);font-size:12px;line-height:1.4}.field-info-popover>span{color:#52635b;font-family:Tajawal,Arial,Segoe UI,sans-serif;font-size:12px;font-weight:600;line-height:1.75}.field-info-close{position:absolute;top:8px;left:8px;width:24px;min-width:24px;height:24px;min-height:24px;border:0;border-radius:50%;background:#edf4f1;color:var(--muted-strong);padding:0;font-size:17px;line-height:1}.field-info-close:focus-visible,.field-info-close:hover{border:0;background:#e1eee8;color:var(--accent-dark);outline:none}@keyframes field-info-enter{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.dashboard .field :is(input,select,textarea)[aria-invalid=true]{border-color:rgba(180,35,24,.62);box-shadow:0 0 0 4px rgba(180,35,24,.08)}.field-error-message{display:block;color:var(--danger);font-size:11px;font-weight:700;line-height:1.5}.workspace .form-grid>button:not([type]),.workspace .form-grid>button[type=submit],.workspace .modal-body form>button:not([type]),.workspace .modal-body form>button[type=submit]{border-radius:20px}.workspace .form-grid>button:not([type]):hover:not(:disabled),.workspace .form-grid>button[type=submit]:hover:not(:disabled),.workspace .modal-body form>button:not([type]):hover:not(:disabled),.workspace .modal-body form>button[type=submit]:hover:not(:disabled),.workspace .secondary-button:hover:not(:disabled){border-color:var(--accent);background:var(--accent-soft);color:var(--accent-dark)}.loyalty-settings-form{gap:0}.loyalty-form-section{min-width:0;grid-column:1/-1;margin:0;border:0;padding:26px 0 28px}.loyalty-form-section:first-of-type{padding-top:4px}.loyalty-form-section+.loyalty-form-section{border-top:1px solid var(--line)}.loyalty-section-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:22px}.loyalty-section-number{width:36px;height:28px;display:grid;flex:0 0 auto;place-items:center;border-radius:8px;background:var(--accent-soft);color:var(--accent-dark);font-size:11px;font-weight:900;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.loyalty-section-heading h3{margin:0;color:var(--text);font-size:17px;line-height:1.4}.loyalty-section-heading p{margin:4px 0 0;color:var(--muted);font-size:12px;font-weight:600;line-height:1.65}.loyalty-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:18px 16px;gap:18px 16px;align-items:start}.loyalty-section-grid>.wide-field{grid-column:1/-1}.loyalty-form-actions{position:-webkit-sticky;position:sticky;z-index:15;bottom:-18px;min-height:72px;grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 -2px -2px;border-top:1px solid var(--line);background:rgba(255,255,255,.96);padding:12px 2px;box-shadow:0 -12px 26px rgba(16,83,65,.06);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.loyalty-form-actions>span{color:var(--muted);font-size:11px;font-weight:700}.workspace .loyalty-form-actions>button[type=submit]{min-width:min(320px,100%);min-height:44px;height:44px;border:1px solid var(--accent);border-radius:20px;background:var(--accent);color:#fff;box-shadow:0 8px 18px rgba(24,114,93,.18);font-size:13px;font-weight:800}.workspace .loyalty-form-actions>button[type=submit]:focus-visible,.workspace .loyalty-form-actions>button[type=submit]:hover:not(:disabled){border-color:var(--accent-dark);background:var(--accent-dark);color:#fff;outline:none;box-shadow:0 10px 22px rgba(16,83,65,.22)}@media (max-width:680px){.field-info-popover{top:auto;right:12px;bottom:max(14px,env(safe-area-inset-bottom));left:12px;width:auto}.loyalty-form-section{padding:22px 0 24px}.loyalty-section-heading{margin-bottom:18px}.loyalty-section-heading h3{font-size:16px}.loyalty-section-grid{grid-template-columns:minmax(0,1fr);gap:17px}.loyalty-section-grid>.wide-field{grid-column:auto}.loyalty-form-actions{bottom:-14px;flex-direction:column;align-items:stretch;gap:8px;padding:10px 0 max(10px,env(safe-area-inset-bottom))}.loyalty-form-actions>span{text-align:center}.workspace .loyalty-form-actions>button[type=submit]{width:100%;min-width:0}}@media (prefers-reduced-motion:reduce){.field-info-popover{animation:none}}.vertical-chart{min-height:180px;display:grid;align-items:flex-end}.vertical-chart-grid{min-height:170px;display:grid;grid-template-columns:repeat(auto-fit,minmax(46px,1fr));grid-gap:14px;gap:14px;align-items:flex-end;-webkit-border-before:1px solid rgba(16,35,30,.08);border-block-start:1px solid rgba(16,35,30,.08);background:linear-gradient(180deg,rgba(16,35,30,.08) 1px,transparent 0) 0 32px /100% 42px;padding-top:16px}.vertical-bar{min-height:160px;display:grid;grid-template-rows:1fr auto;grid-gap:8px;gap:8px;align-items:flex-end;color:var(--muted);font-size:11px;font-weight:800;text-align:center}.vertical-bar span{width:100%;min-height:4px;border-radius:4px 4px 0 0;background:linear-gradient(180deg,var(--accent) 0,#35a987 100%);box-shadow:0 0 16px rgba(24,114,93,.12)}.status-progress-chart{display:grid;grid-gap:14px;gap:14px}.status-progress-row{display:grid;grid-gap:7px;gap:7px}.status-progress-row div{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted-strong);font-size:12px;font-weight:800}.status-progress-row strong{color:var(--text)}.status-progress-row i{height:8px;overflow:hidden;border-radius:999px;background:#e7efe9}.status-progress-row b{display:block;height:100%;border-radius:inherit}.metric-card-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:14px;gap:14px}.metric-card{min-height:168px;display:grid;grid-gap:12px;gap:12px;padding:16px}.metric-card.green .metric-card-heading strong,.metric-card.green .mini-bars i{color:var(--ok);background:var(--ok)}.metric-card.amber .metric-card-heading strong,.metric-card.amber .mini-bars i{color:var(--amber);background:var(--amber)}.metric-card.blue .metric-card-heading strong,.metric-card.blue .mini-bars i{color:#2563eb;background:#2563eb}.mini-bars{min-height:74px;gap:5px;direction:ltr}.mini-bar-item,.mini-bars{display:flex;align-items:flex-end}.mini-bar-item{flex:1 1;min-width:5px;height:100%}.mini-bar-item>i{display:block;width:100%;border-radius:3px 3px 0 0;background:var(--accent);box-shadow:0 0 12px rgba(24,114,93,.12)}.analytics-card .chart-bars{gap:12px}.analytics-card .chart-bar-label{color:var(--muted-strong)}.analytics-card .chart-bar-label strong{color:var(--accent-dark)}.analytics-card .chart-bar-track{background:#e7efe9}.analytics-card .donut-chart:after{background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}.analytics-card .donut-chart span{color:var(--accent-dark)}.analytics-card .donut-legend div,.analytics-card .donut-legend strong{color:var(--text)}.analytics-card .donut-legend span{color:var(--muted)}.overview-details-grid{margin-top:0}.overview-command-center{display:grid;grid-gap:16px;gap:16px;animation:page-in .22s ease both}.overview-live-strip{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #cee2d9;-webkit-border-start:4px solid var(--accent);border-inline-start:4px solid var(--accent);border-radius:8px;background:linear-gradient(90deg,#f2faf6,#fffdf8);padding:11px 16px}.overview-live-strip>div{display:grid;grid-template-columns:auto auto;align-items:center;justify-content:start;grid-gap:2px 8px;gap:2px 8px}.overview-live-strip p{grid-column:2;color:var(--muted);font-size:12px}.overview-live-strip strong{color:var(--accent-dark);font-size:13px}.overview-live-strip small{color:var(--muted-strong);font-size:11px;font-weight:700;white-space:nowrap}.live-dot{width:8px;height:8px;grid-row:1/span 2;border-radius:50%;background:var(--ok);box-shadow:0 0 0 5px rgba(24,114,93,.1)}.store-pulse{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid var(--line);border-radius:9px;background:var(--surface);box-shadow:var(--shadow-soft)}.pulse-card{min-width:0;min-height:176px;display:grid;align-content:start;grid-gap:10px;gap:10px;position:relative;padding:17px 18px}.pulse-card+.pulse-card{-webkit-border-start:1px solid var(--line);border-inline-start:1px solid var(--line)}.pulse-card:after{content:"";position:absolute;inset-inline:18px;bottom:0;height:3px;background:var(--pulse-color)}.pulse-card-customers{--pulse-color:var(--accent)}.pulse-card-orders{--pulse-color:#2d8290}.pulse-card-rewards{--pulse-color:var(--amber)}.pulse-card-redemptions{--pulse-color:#8b6f9e}.pulse-card-kicker{display:flex;align-items:center;gap:7px;color:var(--muted-strong);font-size:12px;font-weight:800}.pulse-card-kicker i{width:7px;height:7px;border-radius:2px;background:var(--pulse-color)}.pulse-card-value strong{color:var(--text);font-size:clamp(32px,3vw,42px);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;line-height:.95;letter-spacing:-.03em}.pulse-cue{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;grid-gap:4px 8px;gap:4px 8px;border-radius:5px}.pulse-cue>span:first-child{height:5px;grid-column:1/-1;overflow:hidden;border-radius:2px;background:#e8efec}.pulse-cue>span:first-child i{height:100%;display:block;border-radius:inherit;background:var(--pulse-color);transition:inline-size .22s ease}.pulse-cue>small{overflow:hidden;color:var(--muted);font-size:9px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.pulse-cue>strong{color:var(--pulse-color);font-size:10px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.pulse-card dl{display:grid;grid-gap:7px;gap:7px}.pulse-card dl div{display:flex;align-items:center;justify-content:space-between;gap:8px}.pulse-card dt{color:var(--muted);font-size:11px;font-weight:700}.pulse-card dd{color:var(--muted-strong);font-size:12px;font-weight:800;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.currency-note,.overview-error{margin:-5px 0 0;border-radius:6px;padding:8px 11px;font-size:11px;font-weight:700}.currency-note{background:#fff8e9;color:#835b16}.overview-error{background:#fff1f1;color:var(--danger)}.overview-analytics-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);grid-auto-rows:max-content;align-items:start;grid-gap:16px;gap:16px}.command-card{min-width:0;display:grid;align-content:start;grid-gap:16px;gap:16px;overflow:visible;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:none;padding:18px}.command-card>header{min-height:47px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:11px}.command-card>header small,.command-card>header span{color:var(--muted);font-size:10px;font-weight:800}.command-card>header h3{margin-top:2px;color:var(--text);font-size:17px}.command-card>header>strong{display:grid;color:var(--accent-dark);font-size:25px;line-height:1;text-align:left}.command-card>header>strong small{margin-top:4px}.command-card-orders{min-height:0;border-top:3px solid var(--accent);background:#fbfdfc;box-shadow:0 10px 24px rgba(16,61,50,.08);padding:18px 20px 16px}.command-card-orders>header h3{font-size:21px}.chart-series-legend{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;margin-bottom:-4px;color:var(--muted-strong);font-size:10px;font-weight:800}.chart-series-legend>span{display:flex;align-items:center;gap:6px}.chart-series-legend i{width:18px;height:3px;border-radius:2px;background:var(--accent)}.chart-series-legend i.revenue-series{height:2px;background:repeating-linear-gradient(90deg,var(--amber) 0 5px,transparent 5px 8px)}.chart-series-legend small{color:var(--muted);font-size:9px;font-weight:700}.command-card-customers,.command-card-rewards{min-height:310px}.command-card-customers{grid-column:1}.command-card-rewards{grid-column:2}.command-card .area-chart,.command-card .area-chart svg,.command-card .area-chart-plot{min-height:0}.command-card-status .donut-chart-wrap{grid-template-columns:156px minmax(0,1fr)}.command-card-status .donut-chart{width:156px}.command-card-status .donut-chart:after{inset:30px}.recent-activity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px;gap:16px}.activity-panel{min-height:330px}.activity-list{display:grid}.activity-row{width:100%;min-height:58px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;grid-gap:10px;gap:10px;border:0;border-bottom:1px solid #edf2ef;border-radius:0;background:transparent;color:var(--text);padding:8px 2px;text-align:right}button.activity-row:focus-visible,button.activity-row:hover{background:var(--surface-soft);box-shadow:8px 0 0 var(--surface-soft),-8px 0 0 var(--surface-soft)}.activity-row:last-child{border-bottom:0}.activity-avatar,.activity-order-mark{width:32px;height:32px;display:grid;place-items:center;border-radius:6px;background:var(--accent-soft);color:var(--accent-dark);font-size:13px;font-weight:800}.activity-order-mark{background:#fff5df;color:#946214}.activity-copy,.activity-value{min-width:0;display:grid;grid-gap:2px;gap:2px}.activity-copy strong{overflow:hidden;color:var(--text);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.activity-copy small,.activity-value small{color:var(--muted);font-size:10px}.activity-value{text-align:left}.activity-value strong{color:var(--accent-dark);font-size:12px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.overview-empty,.overview-state{color:var(--muted);text-align:center}.overview-state{min-height:260px;display:grid;place-content:center;grid-gap:7px;gap:7px;border:1px dashed #cddbd4;border-radius:8px;background:var(--surface-soft);padding:24px}.overview-state strong{color:var(--accent-dark);font-size:18px}.overview-state p{font-size:12px}.overview-loading span{width:28px;height:28px;justify-self:center;border:3px solid #dbe9e2;border-top:3px solid var(--accent);border-radius:50%;animation:spin .7s linear infinite}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:18px 16px;gap:18px 16px;align-items:start}.field{min-width:0;display:grid;align-content:start;grid-gap:8px;gap:8px;color:var(--muted-strong);font-size:12px;font-weight:800}.field-label{display:flex;min-height:20px;align-items:center;justify-content:space-between;gap:8px;color:#415149;line-height:1.4;letter-spacing:0}.field-label small{border-radius:999px;background:#edf7f3;color:var(--accent-dark);padding:3px 8px;font-size:10px;font-weight:800;line-height:1.1}.field:focus-within .field-label{color:var(--accent-dark)}.checkbox-field{gap:10px}.switch-control{position:relative;display:flex;min-height:52px;min-width:0;align-items:center;justify-content:flex-start;gap:12px;border:1px solid #d9e5df;border-radius:14px;background:linear-gradient(#ffffff,#ffffff) padding-box,linear-gradient(180deg,rgba(231,239,235,.92),rgba(211,225,218,.72)) border-box;padding:10px 14px;color:#14241f;cursor:pointer;transition:border-color .14s ease,box-shadow .14s ease,background .14s ease}.switch-control:hover{border-color:#c6d9d0;background:linear-gradient(#fbfdfc,#fbfdfc) padding-box,linear-gradient(180deg,rgba(216,232,224,.98),rgba(197,216,207,.82)) border-box}.switch-control.checked{border-color:rgba(24,114,93,.26);background:linear-gradient(#fbfdfc,#fbfdfc) padding-box,linear-gradient(180deg,rgba(183,218,206,.88),rgba(214,234,227,.82)) border-box}.dashboard .segment-active-toggle input[type=checkbox],.dashboard .switch-control input[type=checkbox]{position:absolute;width:1px;min-width:1px;height:1px;min-height:1px;margin:0;padding:0;border:0;opacity:0;overflow:hidden;pointer-events:none}.switch-track{position:relative;direction:ltr;width:44px;min-width:44px;height:24px;min-height:24px;border:1px solid #c9d6d0;border-radius:999px;background:#dfe8e4;box-shadow:none;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.switch-thumb{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#ffffff;box-shadow:0 1px 3px rgba(16,35,30,.24);transform:translateX(0);transition:transform .16s ease}.segment-active-toggle input:checked+.switch-track,.switch-control.checked .switch-track{border-color:var(--accent);background:var(--accent)}.segment-active-toggle input:checked+.switch-track .switch-thumb,.switch-control.checked .switch-thumb{transform:translateX(20px)}.segment-active-toggle input:focus-visible+.switch-track,.switch-control input:focus-visible+.switch-track{box-shadow:0 0 0 3px #ffffff,0 0 0 6px rgba(24,114,93,.26)}.switch-control.disabled{cursor:not-allowed;opacity:.62}.switch-copy{display:grid;align-content:center;min-width:0;grid-gap:2px;gap:2px}.switch-state{min-width:82px;color:var(--text);font-size:13px;font-weight:900;line-height:1.35}.switch-copy small{color:var(--muted);font-size:11px;font-weight:700;line-height:1.4;white-space:normal}.dashboard .field input,.dashboard .field select,.dashboard .field textarea{min-width:0;border-color:#d9e5df;border-radius:14px;background:linear-gradient(#ffffff,#ffffff) padding-box,linear-gradient(180deg,rgba(231,239,235,.92),rgba(211,225,218,.72)) border-box;color:#14241f;font-size:14px;font-weight:800;box-shadow:0 1px 2px rgba(16,35,30,.035),inset 0 1px 0 rgba(255,255,255,.86)}.dashboard .field input:not([type=checkbox]):not([type=radio]),.dashboard .field select{min-height:52px;height:52px}.dashboard .field input:hover,.dashboard .field select:hover,.dashboard .field textarea:hover{border-color:#c6d9d0;background:linear-gradient(#fbfdfc,#fbfdfc) padding-box,linear-gradient(180deg,rgba(216,232,224,.98),rgba(197,216,207,.82)) border-box}.dashboard .field input:focus,.dashboard .field select:focus,.dashboard .field textarea:focus,.dashboard .highlighted-textarea-wrap:focus-within .highlighted-textarea{border-color:#89b8aa;background:linear-gradient(#ffffff,#ffffff) padding-box,linear-gradient(180deg,rgba(157,194,182,.92),rgba(201,221,214,.78)) border-box;box-shadow:0 1px 2px rgba(16,35,30,.04),0 0 0 4px rgba(24,114,93,.11)}.dashboard .field input::placeholder,.dashboard .field textarea::placeholder{color:#9aa8a1;font-weight:600}.dashboard .field input:disabled,.dashboard .field input[readonly],.dashboard .field select:disabled,.dashboard .field textarea:disabled{background:linear-gradient(#f5f8f6,#f5f8f6) padding-box,linear-gradient(180deg,rgba(223,233,228,.76),rgba(210,222,216,.62)) border-box;color:#5d6c65;cursor:not-allowed}.dashboard .field textarea,.dashboard .highlighted-textarea-backdrop{min-height:132px;border-radius:14px;padding:13px 14px}.dashboard .highlighted-textarea-backdrop{background:#fff}.dashboard .textarea-variable-token{border-color:rgba(24,114,93,.18);border-radius:7px;background:rgba(231,244,239,.9);box-shadow:0 0 0 2px rgba(231,244,239,.55)}.dashboard .select-field-control{isolation:isolate}.dashboard .select-trigger{min-height:52px;height:52px;border-color:#d9e5df;border-radius:14px;background:linear-gradient(#ffffff,#ffffff) padding-box,linear-gradient(180deg,rgba(231,239,235,.92),rgba(211,225,218,.72)) border-box;box-shadow:0 1px 2px rgba(16,35,30,.035),0 0 0 4px rgba(232,240,236,.55)}.dashboard .select-trigger:focus-visible,.dashboard .select-trigger:hover{border-color:#abcfc2;background:linear-gradient(#fbfdfc,#fbfdfc) padding-box,linear-gradient(180deg,rgba(216,232,224,.98),rgba(197,216,207,.82)) border-box;box-shadow:0 1px 2px rgba(16,35,30,.035),0 0 0 4px rgba(24,114,93,.11)}.dashboard .select-menu{border-color:#d9e5df;border-radius:16px;background:#fbfdfc;box-shadow:0 18px 36px rgba(16,35,30,.12),inset 0 0 0 1px rgba(255,255,255,.86)}.dashboard .select-menu button{grid-column:auto;min-height:46px;justify-content:flex-start;border-bottom-color:#e5eee9;color:#14241f;padding:12px 16px}.dashboard .select-menu button.selected,.dashboard .select-menu button:focus-visible,.dashboard .select-menu button:hover{background:#eef8f4;color:var(--accent-dark)}.permission-checkbox-group{display:grid;grid-gap:10px;gap:10px;min-width:0;margin:0;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,#fbfdfc,#f6faf8);padding:14px}.permission-checkbox-group legend{padding:0 4px;color:var(--muted-strong);font-size:13px;font-weight:800}.permission-checkbox-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:10px;gap:10px}.permission-checkbox{display:flex;min-width:0;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:12px;cursor:pointer;transition:border-color .14s ease,background .14s ease,box-shadow .14s ease}.permission-checkbox:focus-within,.permission-checkbox:hover{border-color:rgba(24,114,93,.22);background:#fbfdfc;box-shadow:0 0 0 4px rgba(24,114,93,.07)}.permission-checkbox input{width:18px;min-width:18px;height:18px;min-height:18px;margin:2px 0 0;padding:0;accent-color:var(--accent);box-shadow:none;cursor:pointer}.permission-checkbox span{display:grid;min-width:0;grid-gap:4px;gap:4px}.permission-checkbox strong{color:var(--text);font-size:13px;line-height:1.35}.permission-checkbox small{color:var(--muted);direction:ltr;font-size:11px;font-weight:700;line-height:1.3;text-align:left;overflow-wrap:anywhere}.json-field textarea{background:linear-gradient(#fbfdfc,#fbfdfc) padding-box,linear-gradient(180deg,rgba(231,239,235,.92),rgba(211,225,218,.72)) border-box}.button-row,.inline-form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}.sync-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid rgba(24,114,93,.18);border-radius:8px;background:#ecfdf5;padding:14px}.sync-banner div{display:grid;grid-gap:4px;gap:4px}.sync-banner strong{color:var(--accent-dark);font-size:15px}.sync-banner span{color:var(--muted-strong);font-size:13px;line-height:1.6}.order-sync-progress{display:grid;grid-gap:10px;gap:10px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:12px 14px}.order-sync-progress-header,.order-sync-progress-stats{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.order-sync-progress-header strong{color:var(--ink);font-size:14px}.order-sync-progress-header span,.order-sync-progress-stats span{color:var(--muted-strong);font-size:12px}.order-sync-progress-track{height:10px;overflow:hidden;border-radius:999px;background:#dce8e3}.order-sync-progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:var(--accent);transition:width .25s ease}.integration-summary{display:grid;grid-gap:14px;gap:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);padding:14px}.integration-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.integration-summary-heading>div:first-child{display:flex;align-items:center;gap:10px}.integration-summary-heading strong{color:var(--text);font-size:15px;text-transform:uppercase}.integration-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:10px;gap:10px;margin:0}.integration-fields div{display:grid;grid-gap:4px;gap:4px;min-width:0;border:1px solid var(--line);border-radius:8px;background:#fff;padding:10px}.integration-fields dt{color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase}.integration-fields dd{min-width:0;margin:0;color:var(--text);font-size:13px;font-weight:800;overflow-wrap:anywhere}.integration-result{display:grid;grid-gap:8px;gap:8px}.integration-result strong{color:var(--muted-strong);font-size:12px}.integration-result pre{max-height:180px;overflow:auto;margin:0;border:1px solid var(--line);border-radius:8px;background:#fff;padding:10px;direction:ltr;text-align:left;font-size:12px}.bulk-target-note{display:grid;grid-gap:6px;gap:6px;border:1px solid rgba(24,114,93,.18);border-radius:8px;background:var(--surface-soft);padding:12px;color:var(--muted-strong);font-size:12px;line-height:1.6}.bulk-target-note strong{color:var(--text);font-size:13px}.bulk-customer-picker{display:grid;grid-gap:12px;gap:12px;border:1px solid var(--line);border-radius:8px;background:#fbfcfb;padding:12px}.bulk-picker-header{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:12px;gap:12px;align-items:end}.bulk-picker-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}.bulk-picker-actions strong{color:var(--muted-strong);font-size:12px}.bulk-customer-list{display:grid;max-height:320px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:#fff}.bulk-customer-option{display:grid;grid-template-columns:18px minmax(0,1fr);grid-gap:10px;gap:10px;align-items:center;min-width:0;padding:10px 12px;border-bottom:1px solid var(--line)}.bulk-customer-option:last-child{border-bottom:0}.bulk-customer-option input{width:18px;min-height:18px;padding:0}.bulk-customer-option span{display:grid;min-width:0;grid-gap:3px;gap:3px}.bulk-customer-option small,.bulk-customer-option strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bulk-customer-option strong{color:var(--text);font-size:13px}.bulk-customer-option small{color:var(--muted);font-family:Consolas,Courier New,monospace;font-size:11px}.sms-campaign-progress{display:grid;grid-gap:12px;gap:12px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:14px}.sms-campaign-heading{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}.sms-campaign-heading>div{display:grid;grid-gap:3px;gap:3px;min-width:0}.sms-campaign-heading strong{color:var(--text)}.sms-campaign-heading span{color:var(--muted);font-family:Consolas,Courier New,monospace;font-size:12px}.sms-progress-track{height:10px;overflow:hidden;border-radius:999px;background:var(--surface-soft)}.sms-progress-track span{display:block;height:100%;border-radius:inherit;background:var(--accent);transition:width .25s ease}.sms-campaign-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));grid-gap:8px;gap:8px}.sms-campaign-stats span{display:grid;grid-gap:2px;gap:2px;border:1px solid var(--line);border-radius:8px;padding:8px 10px;color:var(--muted);font-size:12px}.sms-campaign-stats strong{color:var(--text);font-size:15px}.sms-campaign-recipient-list{display:grid;max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:8px}.sms-campaign-recipient-header,.sms-campaign-recipient-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:10px;gap:10px;align-items:center;padding:9px 10px;border-bottom:1px solid var(--line)}.sms-campaign-recipient-header{position:-webkit-sticky;position:sticky;top:0;z-index:1;background:var(--surface-soft);color:var(--muted-strong);font-size:12px;font-weight:700}.sms-campaign-recipient-row:last-child{border-bottom:0}.sms-campaign-recipient-row>span:first-child{display:grid;grid-gap:2px;gap:2px;min-width:0}.sms-campaign-recipient-row small,.sms-campaign-recipient-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sms-campaign-recipient-row small{color:var(--muted);font-size:11px}.sms-campaign-recipient-row>small{grid-column:1/-1;color:#9a3412}.sync-banner button{white-space:nowrap}.button-row button,.form-grid button,.inline-form button,.pagination-bar button,.sync-banner button,.toolbar-actions button,.topbar button{min-width:88px}.danger-button{border-color:rgba(180,35,24,.24);background:#fff7f5;color:var(--danger)}.danger-button:hover:not(:disabled){border-color:var(--danger);color:var(--danger)}.customer-table-panel{display:grid;grid-gap:14px;gap:14px}.customer-toolbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));grid-gap:12px;gap:12px;align-items:flex-end;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft)}.customer-toolbar .field{min-width:0}.customer-search{grid-column:span 2}.customer-search input{min-width:0}.compact-field{min-width:130px}.toolbar-actions{grid-column:span 2;display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));grid-gap:8px;gap:8px;align-items:center;justify-content:stretch;white-space:nowrap}.toolbar-actions button{width:100%}.secondary-button{background-color:#fff;color:#000}.secondary-button:hover{background-color:#fff;color:#06f}.pagination-bar,.table-summary{display:flex;align-items:center;justify-content:space-between;gap:12px}.table-summary{color:var(--muted);font-size:13px;font-weight:800}.table-summary div{display:inline-flex;gap:8px;align-items:baseline}.table-summary strong{color:var(--accent-dark);font-size:22px;line-height:1}.pagination-bar{justify-content:center;padding-top:2px}.pagination-bar span{min-width:92px;color:var(--muted-strong);font-size:13px;font-weight:800;text-align:center}.variable-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:10px;gap:10px}.variable-chip{min-height:68px;height:auto;display:grid;align-content:center;justify-items:start;grid-gap:5px;gap:5px;border:1px solid var(--line);border-radius:20px;background:#fff;color:var(--text);box-shadow:none;text-align:right;position:static}.variable-chip:hover{border-color:rgba(24,114,93,.24);background:var(--accent-soft);color:var(--accent-dark)}.variable-chip code{direction:ltr;color:var(--accent-dark);font-family:Consolas,Courier New,monospace;font-size:13px;font-weight:800}.variable-chip span{color:var(--muted);font-size:12px}.notification-variable-row .variable-grid{display:flex;flex-wrap:wrap;gap:8px}.notification-variable-row .variable-chip{min-height:50px;flex:1 1 160px;padding:10px 12px}.notification-variable-row .variable-chip code,.notification-variable-row .variable-chip span{overflow-wrap:anywhere}.notification-message-textarea{direction:rtl;unicode-bidi:plaintext;text-align:right;font-family:Tajawal,Arial,Segoe UI,sans-serif}.inline-form{align-items:center;padding:14px;border:1px solid #dbe7e1;border-radius:14px;background:linear-gradient(180deg,#fbfdfc,#f5f9f7);box-shadow:inset 0 1px 0 rgba(255,255,255,.72)}.inline-form+.inline-form{margin-top:12px}.inline-form label{min-width:min(220px,100%);flex:1 1}.button-row button,.inline-form button{min-width:104px;border-radius:20px}.dashboard .button-row button,.dashboard .inline-form button{min-height:42px;border:1px solid #cfded7;background:#fff;color:var(--text);box-shadow:0 1px 2px rgba(16,35,30,.04);font-weight:800}.dashboard .button-row button:focus-visible,.dashboard .button-row button:hover,.dashboard .inline-form button:focus-visible,.dashboard .inline-form button:hover{border-color:rgba(24,114,93,.28);background:var(--accent-soft);color:var(--accent-dark)}.action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}.action-card{min-height:34px;height:34px;min-width:88px;display:inline-flex;align-items:center;justify-content:center;gap:0;border:2px solid #000;border-radius:20px;background:#fff;color:#000;fill:#000;padding:0 10px;text-align:center;box-shadow:none;position:static;transition:border-color .3s ease,color .3s ease,fill .3s ease,background-color .3s ease}.action-card:hover{border-color:#06f;background:#fff;color:#06f;fill:#06f}.action-card span{font-size:13px;font-weight:600}.action-card small{display:none}.form-grid button,.json-preview,.wide-field{grid-column:1/-1}.form-grid>button:not([type]),.form-grid>button[type=submit],.modal-body form>button:not([type]),.modal-body form>button[type=submit]{min-height:34px;height:34px;width:auto;border:2px solid #111;border-radius:20px;background:#fff;color:#000;box-shadow:none;font-size:13px;font-weight:600}.form-grid>button:not([type]):hover:not(:disabled),.form-grid>button[type=submit]:hover:not(:disabled),.modal-body form>button:not([type]):hover:not(:disabled),.modal-body form>button[type=submit]:hover:not(:disabled){border-color:#06f;background:#fff;color:#06f;box-shadow:none}.json-preview{max-height:420px;overflow:auto;padding:14px;border:1px solid rgba(231,244,239,.18);border-radius:8px;background:var(--surface-strong);color:#e7efe9;font-size:12px;line-height:1.55}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:8px;background:white;box-shadow:inset 0 1px 0 rgba(16,35,30,.02)}table{width:100%;min-width:720px;border-collapse:collapse;direction:ltr;text-align:left}td,th{padding:12px;border-bottom:1px solid var(--line);font-size:13px;text-align:inherit;vertical-align:middle;white-space:nowrap}th{background:#edf7f3;color:var(--muted-strong);font-weight:800}td{color:var(--text);max-width:280px;overflow:hidden;text-overflow:ellipsis}tr:last-child td{border-bottom:0}.customers-table table{min-width:1180px;direction:rtl;text-align:right}.orders-table table{min-width:1580px;direction:rtl;text-align:right;border-collapse:separate;border-spacing:0}.orders-table th{position:-webkit-sticky;position:sticky;top:0;z-index:3;height:44px;border-bottom-color:#c6d7cf;background:linear-gradient(180deg,#f8fbfa,#edf5f1);color:#334942;font-size:12px;letter-spacing:0}.orders-table td{height:84px;border-bottom-color:#e4eee9;background:rgba(255,255,255,.96);color:#17261f}.orders-table tbody tr{transition:background-color .14s ease,box-shadow .14s ease,transform .14s ease}.orders-table tbody tr:hover td{background:#fbfdfc}.orders-table tbody tr:hover td:first-child{box-shadow:inset -4px 0 0 #18725d}.orders-table td:first-child,.orders-table th:first-child{position:-webkit-sticky;position:sticky;inset-inline-start:0;z-index:2;-webkit-border-start:1px solid #e2ece7;border-inline-start:1px solid #e2ece7}.orders-table th:first-child{z-index:5}.orders-table td:last-child,.orders-table th:last-child{position:-webkit-sticky;position:sticky;inset-inline-end:0;z-index:2;-webkit-border-end:1px solid #d9e5df;border-inline-end:1px solid #d9e5df;box-shadow:-10px 0 18px rgba(16,35,30,.055)}.orders-table th:last-child{z-index:5}.order-table-row.needs-points-release td{background:#fffdf7}.order-table-row.needs-points-release td:first-child{box-shadow:inset -4px 0 0 #b7791f}.order-table-row.points-reversed td{background:#fff8f8}.order-table-row.missing-customer td{color:#5f6d66}.order-primary-cell{min-width:172px}.order-customer-cell strong,.order-points-summary>strong,.order-primary-cell strong,.order-total-cell{color:#10231e;font-weight:900}.order-primary-cell strong{display:block;font-size:14px}.order-customer-cell small,.order-payment-cell small,.order-points-cell small,.order-points-date,.order-primary-cell small,.order-status-cell small{display:block;margin-top:6px;color:#66756e;font-size:11px;font-weight:800;line-height:1.45}.order-customer-cell{min-width:190px}.order-payment-cell,.order-status-cell{min-width:144px}.order-payment-cell .table-badge,.order-points-cell .table-badge,.order-status-cell .table-badge{min-height:26px;border-radius:8px;padding-inline:9px}.order-status-badge,.payment-status-badge{gap:7px}.order-status-badge:before,.payment-status-badge:before{content:"";width:7px;height:7px;flex:0 0 auto;border-radius:999px;background:currentColor;box-shadow:0 0 0 3px color-mix(in srgb,currentColor 12%,transparent)}.order-points-cell{min-width:176px}.order-points-addition-cell{min-width:120px}.orders-table .order-discount-cell,.orders-table .order-points-addition-cell{overflow:visible}.order-points-summary{display:inline-flex;align-items:center;gap:8px;min-width:0}.order-points-summary>strong{min-width:48px;justify-content:flex-start;color:#173f8f;font-size:16px}.order-points-date{margin-top:7px}.order-points-cell .sub-cell{border-radius:8px;background:#f8fbfa;padding:4px 7px}.order-discount-cell{min-width:164px}.order-discount-cell .strong-cell{min-width:0}.table-info-cell{position:relative;display:inline-flex;align-items:center;gap:7px;max-width:100%;overflow:visible;vertical-align:middle}.table-info-cell .strong-cell{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-info-button{width:24px;min-width:24px;height:24px;min-height:24px;border:1px solid #d6e4df;border-radius:999px;background:#f7fbf9;color:#18725d;padding:0;box-shadow:none;font-size:12px;font-weight:900;line-height:1}.table-info-button:focus-visible,.table-info-button:hover{border-color:rgba(24,114,93,.28);background:#edf8f3;color:#0f513f}.table-info-popover{position:fixed;inset:auto;z-index:90;min-width:170px;max-width:240px;display:none;gap:5px;border:1px solid #d8e6e0;border-radius:12px;background:#fff;color:#17261f;padding:10px 12px;box-shadow:0 16px 32px rgba(16,35,30,.14);pointer-events:none;text-align:right;white-space:normal}.table-info-popover[data-placement=top]{transform:translateY(-100%)}.table-info-popover strong{display:block;color:#10231e;font-size:12px;font-weight:900}.table-info-popover span{display:block;color:#5d6c65;font-size:11px;font-weight:800;line-height:1.55}.table-info-cell.is-open .table-info-popover{display:grid}.table-icon-check,.table-icon-muted,.table-icon-pending{width:28px;height:28px;display:inline-grid;place-items:center;border-radius:999px;font-size:15px;font-weight:900;line-height:1}.table-icon-check{border:1px solid rgba(24,114,93,.18);background:#eaf8f1;color:#18725d}.table-icon-pending{border:1px solid rgba(183,121,31,.2);background:#fff8e8;color:#9a650f}.table-icon-muted{border:1px solid #dfe9e4;background:#f6faf8;color:#7a8982}.order-total-cell{width:150px;min-width:130px;color:#0f513f;white-space:nowrap}.order-date-cell{width:190px;min-width:190px;max-width:220px;overflow:visible;text-overflow:clip;color:#384a42;font-size:12px;font-weight:800;line-height:2;white-space:nowrap}.order-date-value{display:inline-flex;align-items:center;min-height:28px;padding-block:2px;overflow:visible;line-height:2;direction:rtl;unicode-bidi:-webkit-isolate;unicode-bidi:isolate}.order-actions-cell{min-width:180px}.order-table-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:6px;gap:6px;justify-content:stretch}.order-table-actions .table-action{min-width:0;width:100%;border-color:#c8d7d0;background:#fff;color:#14241f;font-weight:900}.order-table-actions .table-action.details-action{border-color:#0f7a5f;background:#0f7a5f;color:#fff}.order-table-actions .table-action.details-action:focus-visible,.order-table-actions .table-action.details-action:hover{border-color:#0a5f49;background:#0a5f49;color:#fff}.order-table-actions .table-action:disabled{border-color:#d9e5df;background:#f5f8f6;color:#8b9992;opacity:1}.points-customers-table table{min-width:1180px;direction:rtl;text-align:right}.point-transactions-table table{min-width:980px;direction:rtl;text-align:right}.rewards-table table{min-width:1180px;direction:rtl;text-align:right}.product-cashback-table table{min-width:1080px;direction:rtl;text-align:right}.redemptions-table table{min-width:1320px;direction:rtl;text-align:right}.segments-table table,.tiers-table table{min-width:1240px;direction:rtl;text-align:right}.segment-details-panel{grid-gap:12px;gap:12px;padding:12px}.order-details-panel,.segment-details-panel{display:grid;border:1px solid var(--line);border-radius:8px;background:#f8faf8}.order-details-panel{grid-gap:14px;gap:14px;padding:14px}.order-details-modal-card{width:min(920px,100%)}.order-details-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.order-details-header div{display:grid;grid-gap:4px;gap:4px}.order-details-header strong{color:var(--text);font-size:15px}.order-details-header span{color:var(--muted-strong);font-size:13px}.order-details-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:10px;gap:10px;margin:0}.order-details-grid div{border:1px solid var(--line);border-radius:8px;background:white;padding:10px}.order-details-grid dt{color:var(--muted-strong);font-size:11px;font-weight:700}.order-details-grid dd{margin:4px 0 0;color:var(--text);font-size:13px;font-weight:700}.employees-table table,.notifications-table table{min-width:1180px;direction:rtl;text-align:right}.customers-table td,.customers-table th,.employees-table td,.employees-table th,.notifications-table td,.notifications-table th,.orders-table td,.orders-table th,.point-transactions-table td,.point-transactions-table th,.points-customers-table td,.points-customers-table th,.product-cashback-table td,.product-cashback-table th,.redemptions-table td,.redemptions-table th,.rewards-table td,.rewards-table th,.segments-table td,.segments-table th{vertical-align:middle}.mono-cell,.number-cell{direction:ltr;text-align:inherit;unicode-bidi:plaintext;font-family:Consolas,Courier New,monospace}.number-cell,.strong-cell{font-weight:800}.strong-cell{min-width:170px;color:var(--text)}.sub-cell{display:block;width:-moz-fit-content;width:fit-content;max-width:100%;margin-top:6px;border:1px solid #e1ebe6;border-radius:999px;background:#f6faf8;color:var(--muted-strong);padding:5px 9px;font-size:11px;font-weight:700;line-height:1.45;overflow-wrap:anywhere}.table-text-preview{max-width:360px;display:-webkit-box;overflow:hidden;color:var(--muted-strong);line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}.table-actions-row{display:inline-flex;flex-wrap:wrap;gap:6px;justify-content:flex-start}.table-badge{display:inline-flex;align-items:center;justify-content:center;min-height:28px;border:1px solid var(--line);border-radius:999px;padding:3px 10px;font-size:12px;font-weight:800;white-space:nowrap}.table-badge.ok{border-color:rgba(15,118,110,.2);background:#ecfdf5;color:var(--ok)}.table-badge.amber{border-color:rgba(183,121,31,.24);background:#fffbeb;color:var(--amber)}.table-badge.muted{background:#f3f6f4;color:var(--muted-strong)}.table-badge.danger-soft{border-color:rgba(180,35,24,.2);background:#fff1f2;color:var(--danger)}.orders-toolbar{grid-template-columns:minmax(260px,1.7fr) repeat(3,minmax(150px,1fr));border-color:#dce8e2;background:linear-gradient(180deg,#ffffff,#f8fbfa);box-shadow:inset 0 1px 0 rgba(255,255,255,.82)}.orders-toolbar .toolbar-actions{grid-column:auto}.orders-table{position:relative;isolation:isolate;border-color:#d8e5df;background:linear-gradient(180deg,#ffffff,#fbfdfc);box-shadow:0 12px 30px rgba(16,35,30,.055),inset 0 1px 0 rgba(255,255,255,.82);scrollbar-color:#b8c9c1 #f4f8f6;scrollbar-width:thin}.orders-table::-webkit-scrollbar{width:10px;height:10px}.orders-table::-webkit-scrollbar-track{background:#f4f8f6}.orders-table::-webkit-scrollbar-thumb{border:2px solid #f4f8f6;border-radius:999px;background:#b8c9c1}.tier-inline,.tier-title{display:inline-flex;align-items:center;gap:8px;min-width:0}.tier-inline img,.tier-title img{object-fit:cover;flex:0 0 auto}.tier-icon,.tier-inline img,.tier-inline>span,.tier-title img{width:32px;height:32px;border:1px solid var(--line);border-radius:8px}.tier-icon,.tier-inline>span{display:inline-flex;align-items:center;justify-content:center;background:#f7f8f7;color:var(--text);font-size:11px;font-weight:800;overflow:hidden}.table-action{min-height:30px;height:30px;min-width:66px;background-color:#fff;color:#000;padding:0 9px;font-size:11px}.table-action:hover{background-color:#fff;color:#06f}.table-action.danger{border-color:rgba(180,35,24,.5);color:var(--danger)}.table-action.danger:hover{border-color:var(--danger);background:#fff5f5;color:var(--danger)}.points-delta-positive{color:var(--ok)}.points-delta-negative{color:var(--danger)}.empty-table-note{padding:18px;border:1px dashed var(--line-strong);border-radius:8px;background:var(--surface-soft);text-align:center}.dashboard-toast-wrap{position:fixed;inset:0;z-index:120;display:grid;place-items:center;width:100vw;min-height:100vh;padding:18px;pointer-events:none}.dashboard-toast{position:relative;display:grid;grid-template-columns:52px minmax(0,1fr);grid-gap:14px;gap:14px;align-items:center;width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 36px);overflow:auto;border:1px solid rgba(180,35,24,.2);border-radius:22px;background:radial-gradient(circle at 100% 0,rgba(255,241,242,.9),transparent 36%),linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,247,247,.96));padding:22px 22px 20px;box-shadow:0 34px 90px rgba(16,35,30,.28),0 0 0 9999px rgba(11,18,16,.18);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);direction:rtl;text-align:right;pointer-events:auto;animation:toast-in .22s cubic-bezier(.2,.82,.2,1) both}.dashboard-toast.error{border-color:rgba(180,35,24,.24);background:radial-gradient(circle at 100% 0,rgba(255,228,230,.95),transparent 38%),linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,247,247,.96))}.dashboard-toast.success{border-color:rgba(15,118,110,.24);background:radial-gradient(circle at 100% 0,rgba(209,250,229,.95),transparent 38%),linear-gradient(180deg,rgba(255,255,255,.98),rgba(240,253,244,.96))}.toast-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:#fff1f2;color:var(--danger);font-size:24px;font-weight:900;box-shadow:inset 0 0 0 1px rgba(180,35,24,.1),0 12px 28px rgba(180,35,24,.14)}.dashboard-toast.success .toast-icon{background:#ecfdf5;color:var(--ok);box-shadow:inset 0 0 0 1px rgba(15,118,110,.1),0 12px 28px rgba(15,118,110,.14)}.toast-copy{min-width:0;display:grid;grid-gap:6px;gap:6px;-webkit-padding-end:34px;padding-inline-end:34px}.toast-copy strong{color:var(--danger);font-size:17px;line-height:1.35}.dashboard-toast.success .toast-copy strong{color:var(--ok)}.toast-copy span{color:var(--text);font-size:14px;font-weight:700;line-height:1.6;overflow-wrap:anywhere}.toast-copy small{color:var(--muted);direction:ltr;font-size:12px;font-weight:800;text-align:left;overflow-wrap:anywhere}.toast-close{position:absolute;inset-block-start:14px;inset-inline-start:14px;width:36px;min-width:36px;height:36px;min-height:36px;border:1px solid rgba(18,33,28,.12);border-radius:999px;background:rgba(255,255,255,.82);color:var(--muted-strong);padding:0;font-size:20px;line-height:1;box-shadow:0 8px 18px rgba(16,35,30,.08);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.toast-close:hover{border-color:rgba(180,35,24,.24);background:#fff5f5;color:var(--danger)}.modal-backdrop{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:24px;background:rgba(9,20,17,.46);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);animation:fade-in .16s ease both}.modal-card{width:min(920px,100%);max-height:min(86vh,860px);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid rgba(255,255,255,.68);border-radius:8px;background:var(--surface);box-shadow:0 30px 90px rgba(9,20,17,.32);animation:modal-in .19s ease both}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#ffffff,#f8fbf9)}.modal-header h3{margin:3px 0 0;font-size:22px;line-height:1.2}.icon-button{width:40px;min-width:40px;height:40px;min-height:40px;display:inline-grid;place-items:center;border:1px solid var(--line);background:#fff;color:var(--muted-strong);padding:0;font-size:24px;line-height:1;box-shadow:none}.icon-button:hover{border-color:rgba(180,35,24,.24);background:#fff5f5;color:var(--danger)}.modal-body{min-height:0;overflow:auto;padding:20px}.modal-body .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-body form{margin:0}.modal-body label:not(.field){display:flex;align-items:center;gap:7px;color:var(--muted-strong);font-size:13px;font-weight:800}.points-modal-card{width:min(1080px,100%)}.reward-modal-card{width:min(980px,100%)}.product-picker-legacy-hidden{display:none!important}.product-picker-field{align-content:start}.product-scope-field,.product-scope-selected{display:grid;grid-gap:10px;gap:10px}.product-scope-options{display:flex;gap:10px}.product-scope-option{flex:1 1;min-height:76px;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:12px;color:var(--text)}.product-scope-option:has(input:checked){border-color:rgba(20,124,92,.42);background:var(--accent-soft);box-shadow:0 0 0 3px rgba(20,124,92,.08)}.product-scope-option span{min-width:0;display:grid;grid-gap:3px;gap:3px}.product-scope-option strong{color:var(--text);font-size:13px}.product-scope-option small{color:var(--muted);font-size:11px;line-height:1.6}.product-scope-chip-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));grid-gap:8px;gap:8px}.product-scope-chip{min-width:0;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;grid-gap:8px;gap:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);padding:8px}.product-scope-chip img,.product-scope-chip>span{width:42px;height:42px;border-radius:8px;object-fit:cover;background:#eef4f1}.product-scope-chip strong{min-width:0;overflow:hidden;color:var(--text);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.product-scope-chip button{min-height:34px;border-radius:20px;background:#fff;color:#b42318;box-shadow:none}.product-picker-button{width:100%;min-height:48px;justify-content:flex-start;border:1px solid var(--line);background:#fff;color:var(--text);box-shadow:none;text-align:start}.product-picker-selected{display:grid;grid-gap:4px;gap:4px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);padding:10px 12px;color:var(--muted);font-size:12px;font-weight:700}.product-picker-selected-main{display:grid;grid-template-columns:52px minmax(0,1fr);grid-gap:10px;gap:10px;align-items:center}.product-picker-result-thumb,.product-picker-selected-thumb{width:52px;height:52px;border-radius:8px;object-fit:cover;background:#eef4f1;flex:none}.product-picker-selected-copy{display:grid;grid-gap:4px;gap:4px;min-width:0}.product-picker-selected strong{color:var(--text);font-size:13px}.product-picker-overlay{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:24px;background:rgba(9,20,17,.52);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.product-picker-panel{width:min(760px,100%);max-height:min(84vh,720px);border:1px solid rgba(255,255,255,.68);border-radius:8px;background:var(--surface);box-shadow:0 30px 90px rgba(9,20,17,.34)}.product-picker-body,.product-picker-panel{display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}.product-picker-body{min-height:0;grid-gap:14px;gap:14px;padding:18px}.product-picker-results{min-height:220px;display:grid;align-content:start;grid-gap:8px;gap:8px;overflow:auto;-webkit-padding-end:4px;padding-inline-end:4px}.product-picker-result{width:100%;min-height:64px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;grid-gap:12px;gap:12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);padding:10px 12px;box-shadow:none;text-align:start}.product-picker-result:hover{border-color:rgba(20,124,92,.28);background:var(--accent-soft)}.product-picker-result.selected{border-color:rgba(20,124,92,.48);background:var(--accent-soft)}.product-picker-result span{min-width:0;display:grid;grid-gap:3px;gap:3px}.product-picker-result small,.product-picker-result strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-picker-result small{color:var(--muted);font-size:11px}.product-picker-result-thumb.placeholder{border:1px dashed var(--line)}.product-picker-result em{color:var(--accent-dark);font-style:normal;font-weight:900}.product-picker-empty{border:1px dashed var(--line);border-radius:8px;background:var(--surface-soft);padding:18px;color:var(--muted);font-weight:800;text-align:center}.product-picker-footer{justify-content:flex-start}.segment-modal-card{width:min(1040px,100%)}.segment-builder-modal{width:min(760px,100%)}.segment-builder-form,.segment-builder-section{display:grid;grid-gap:16px;gap:16px}.segment-basic-fields{grid-template-columns:1fr}.segment-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}.segment-type-card{min-height:74px;display:grid;grid-template-columns:1fr auto;align-items:center;grid-gap:5px 12px;gap:5px 12px;border:1px solid #d9e5df;border-radius:20px;background:#fff;color:#14241f;padding:14px 16px;text-align:start}.segment-type-card span,.segment-type-card strong{min-width:0}.segment-type-card span{color:var(--muted);font-size:12px;font-weight:700}.segment-type-card i{width:15px;height:15px;grid-row:1/span 2;border:1px solid #b9c9c2;border-radius:999px}.segment-type-card.active{border-color:#7fa7d8;background:#f8fbff;box-shadow:0 0 0 4px rgba(44,104,180,.08)}.segment-type-card.active i{border:4px solid #1f4f9a}.segment-builder-section{border:1px solid #dbe6e1;border-radius:20px;background:linear-gradient(180deg,#ffffff,#fbfdfc);padding:14px}.segment-section-header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.segment-section-header>div{display:grid;grid-gap:4px;gap:4px}.segment-section-header strong{color:#14241f;font-size:15px}.segment-section-header span{color:var(--muted);font-size:12px;font-weight:700}.segment-builder-actions button,.segment-section-header>button{min-height:40px;border:1px solid #cddbd4;border-radius:20px;background:#fff;color:#14241f;padding:0 18px;font-weight:900}.segment-builder-actions button[type=submit],.segment-section-header>button:last-child{border-color:#0b3f8a;background:#173f8f;color:#fff}.segment-match-field{min-width:180px}.segment-rule-card,.segment-rule-list{display:grid;grid-gap:12px;gap:12px}.segment-rule-card{border:1px solid #e1ebe6;border-radius:18px;background:#fff;padding:12px}.segment-rule-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.segment-rule-top strong{color:#14241f;font-size:14px}.segment-rule-top button{min-height:30px;border:1px solid #ffd5d5;border-radius:20px;background:#fff7f7;color:#b82020;padding:0 12px;font-size:12px;font-weight:900}.manual-customer-grid,.segment-rule-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}.manual-customer-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:12px;gap:12px;align-items:end}.manual-customer-search-row button{min-height:48px;border:1px solid #d5e4de;border-radius:14px;background:#ffffff;color:#14241f;padding:0 18px;font-size:13px;font-weight:900}.manual-customer-grid{max-height:260px;overflow:auto;grid-template-columns:repeat(2,minmax(0,1fr));padding:2px}.manual-customer-option{display:flex;align-items:center;gap:10px;border:1px solid #e1ebe6;border-radius:16px;background:#fff;padding:10px;cursor:pointer}.manual-customer-option span{min-width:0;display:grid;grid-gap:2px;gap:2px}.manual-customer-option small,.manual-customer-option strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manual-customer-option small{color:var(--muted)}.segment-empty-state{grid-column:1/-1;border:1px dashed #d5e2dc;border-radius:16px;background:#f8fbfa;padding:14px;color:var(--muted);font-size:12px;font-weight:800;text-align:center}.segment-active-toggle{position:relative;width:min(100%,220px);min-height:52px;display:inline-flex;align-items:center;gap:12px;border:1px solid #d9e5df;border-radius:14px;background:#ffffff;padding:10px 14px;color:#14241f;font-weight:900;cursor:pointer;transition:border-color .14s ease,box-shadow .14s ease,background .14s ease}.segment-active-toggle:focus-within,.segment-active-toggle:hover{border-color:#c6d9d0;background:#fbfdfc}@media (prefers-reduced-motion:reduce){.segment-active-toggle,.switch-control,.switch-thumb,.switch-track{transition:none}}.segment-builder-actions{display:flex;justify-content:flex-end;gap:10px}.notification-modal-card{width:min(980px,100%)}.employee-modal-card{width:min(940px,100%)}.points-modal-body{display:grid;grid-gap:16px;gap:16px}.points-wallet-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:10px;gap:10px}.points-wallet-summary div{display:grid;grid-gap:5px;gap:5px;min-height:82px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);padding:12px}.points-wallet-summary span{color:var(--muted);font-size:12px;font-weight:800}.points-wallet-summary strong{color:var(--accent-dark);font-size:24px;line-height:1}.points-modal-tabs{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--line);padding-bottom:10px}.points-modal-tabs button{min-width:120px}.points-modal-tabs button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-dark)}.points-adjust-form,.points-history-panel{animation:page-in .16s ease both}.rewards-summary{align-items:center}.rewards-summary .button-row{justify-content:flex-end}.reward-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:12px;gap:12px}.reward-stat-card{min-height:116px;display:grid;align-content:space-between;grid-gap:8px;gap:8px;border:1px solid #dbe6e1;border-radius:20px;background:linear-gradient(180deg,#ffffff,#f8fbfa);padding:16px;box-shadow:0 10px 24px rgba(16,35,30,.045)}.reward-stat-card small,.reward-stat-card span{color:var(--muted);font-size:12px;font-weight:800}.reward-stat-card strong{overflow:hidden;color:#14241f;font-size:22px;font-weight:900;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.reward-usage-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px;margin-top:14px}.reward-usage-panel{display:grid;grid-gap:10px;gap:10px;border:1px solid #e1ebe6;border-radius:20px;background:#fff;padding:14px}.reward-usage-heading,.reward-usage-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.reward-usage-heading strong,.reward-usage-row strong{color:#14241f;font-weight:900}.reward-usage-empty,.reward-usage-heading span,.reward-usage-row span{min-width:0;overflow:hidden;color:var(--muted);font-size:12px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.reward-usage-row{min-height:42px;border:1px solid #eef4f1;border-radius:14px;background:#fbfdfc;padding:9px 11px}.reward-usage-empty{border:1px dashed #d5e2dc;border-radius:14px;background:#f8fbfa;padding:12px;text-align:center}.coupon-usage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:12px;gap:12px}.coupon-stat-card{border-color:#ffd6d6;background:linear-gradient(180deg,#fff,#fff7f7)}.coupon-stat-card strong{color:#d92727}.coupon-usage-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px;margin-top:14px}.coupon-detection-row,.coupon-usage-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;grid-gap:10px;gap:10px;min-height:48px;border:1px solid #eef4f1;border-radius:14px;background:#fbfdfc;padding:10px 12px}.coupon-usage-row span{min-width:0;display:grid;grid-gap:2px;gap:2px}.coupon-detection-row small,.coupon-detection-row span,.coupon-detection-row strong,.coupon-usage-row small,.coupon-usage-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.coupon-detection-row strong,.coupon-usage-row strong{color:#14241f;font-weight:900}.coupon-detection-row small,.coupon-detection-row span,.coupon-usage-row small{color:var(--muted);font-size:12px;font-weight:800}.coupon-usage-row em{border-radius:999px;background:#fff0f0;color:#d92727;padding:6px 10px;font-size:12px;font-style:normal;font-weight:900}.coupon-detection-panel{display:grid;grid-gap:10px;gap:10px;margin-top:14px;border:1px solid #e1ebe6;border-radius:20px;background:#fff;padding:14px}.coupon-detection-row{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto}.redemptions-history-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);padding:10px 12px;color:var(--muted-strong);font-size:13px;font-weight:800}.redemptions-history-placeholder{display:grid;grid-gap:6px;gap:6px;border:1px dashed rgba(24,114,93,.28);border-radius:8px;background:#f7fbf9;padding:16px}.redemptions-history-placeholder strong{color:var(--accent-dark);font-size:15px}.redemptions-history-placeholder span{color:var(--muted-strong);font-size:13px;line-height:1.6}.reward-redeem-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:10px;gap:10px}.reward-redeem-summary div{display:grid;grid-gap:5px;gap:5px;min-height:74px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);padding:12px}.reward-redeem-summary span{color:var(--muted);font-size:12px;font-weight:800}.reward-redeem-summary strong{color:var(--accent-dark);font-size:18px}.permissions-reference{display:grid;grid-gap:6px;gap:6px;border:1px dashed var(--line-strong);border-radius:8px;background:var(--surface-soft);padding:12px}.permissions-reference strong{color:var(--accent-dark);font-size:13px}.permissions-reference span{color:var(--muted-strong);direction:ltr;font-size:12px;line-height:1.7;text-align:left;overflow-wrap:anywhere}@keyframes page-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-in{0%{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes select-menu-in{0%{opacity:0;transform:translateY(-4px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes toast-in{0%{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width:1180px){.store-pulse{grid-template-columns:repeat(2,minmax(0,1fr))}.pulse-card:nth-child(3){-webkit-border-start:0;border-inline-start:0}.pulse-card:nth-child(3),.pulse-card:nth-child(4){border-top:1px solid var(--line)}.overview-analytics-grid{grid-template-columns:1fr}.command-card-customers,.command-card-rewards{grid-column:auto}.overview-dashboard{grid-template-columns:1fr}.analytics-card-large,.analytics-card-wide{grid-column:auto;grid-row:auto}.metric-card-grid,.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.donut-chart-wrap{grid-template-columns:1fr;justify-items:center}.donut-legend{width:100%}.customer-search,.toolbar-actions{grid-column:1/-1}}@media (max-width:1020px){.dashboard,.dashboard:has(.sidebar.collapsed){grid-template-columns:1fr}.sidebar{position:-webkit-sticky;position:sticky;top:0;z-index:30;height:auto;grid-template-rows:auto auto auto;gap:12px;border-left:0;border-bottom:1px solid rgba(221,231,226,.95);box-shadow:0 12px 28px rgba(16,35,30,.08)}.sidebar,.sidebar.collapsed{padding:16px}.sidebar.collapsed .account-box span,.sidebar.collapsed .account-box strong,.sidebar.collapsed .brand-block>div,.sidebar.collapsed .nav-copy{display:grid}.sidebar.collapsed .account-box span{display:block}.sidebar.collapsed .brand-block{justify-content:space-between;min-height:auto}.sidebar.collapsed .sidebar-toggle{width:34px;min-width:34px;height:34px;min-height:34px;font-size:23px}.brand-block{align-items:center;padding-bottom:10px}.brand-block h1{font-size:22px}.brand-block span{font-size:12px}.sidebar-toggle{display:none}.sidebar nav{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:0 0 4px;scroll-snap-type:x proximity}.sidebar nav button,.sidebar.collapsed nav button{width:210px;min-width:210px;min-height:52px;grid-template-columns:36px minmax(0,1fr);padding:8px 10px;scroll-snap-align:start}.nav-icon{width:36px;height:36px}.nav-copy small{display:none}.account-box,.sidebar.collapsed .account-box{width:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;grid-gap:4px 12px;gap:4px 12px;border:1px solid var(--line);background:var(--surface-soft);padding:10px 12px}.account-box button,.sidebar.collapsed .account-box button{grid-row:1/span 2;grid-column:2;min-height:36px;margin:0;padding:0 18px}.grid,.login-shell{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.topbar-actions{width:100%;min-width:0;justify-content:flex-start}.topbar-actions select{flex:1 1 220px;width:auto}}@media (max-width:680px){.overview-live-strip{align-items:flex-start;flex-direction:column;gap:8px}.recent-activity-grid,.store-pulse{grid-template-columns:1fr}.pulse-card+.pulse-card,.pulse-card:nth-child(3){-webkit-border-start:0;border-inline-start:0;border-top:1px solid var(--line)}.pulse-card{min-height:154px}.command-card{padding:14px}.command-card-status .donut-chart-wrap{grid-template-columns:126px minmax(0,1fr);gap:14px;justify-items:stretch}.command-card-status .donut-chart{width:126px}.command-card-status .donut-chart:after{inset:25px}.command-card-status .donut-chart span strong{font-size:21px}.command-card-status .donut-legend div{min-height:34px}.activity-row{grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto;min-height:78px;align-items:start}.activity-avatar,.activity-order-mark{grid-column:1;grid-row:1/span 2}.activity-copy{grid-column:2;grid-row:1}.activity-value{grid-column:2;grid-row:2;text-align:right}.area-tick-mobile-hidden{display:none}.area-chart-labels span{font-size:9px}.login-page,.sidebar,.workspace{padding:14px}.login-card,.login-copy,.panel,.topbar{padding:16px}.action-grid,.coupon-detection-row,.coupon-usage-grid,.coupon-usage-panels,.form-grid,.manual-customer-grid,.manual-customer-search-row,.metric-card-grid,.permission-checkbox-grid,.points-wallet-summary,.reward-redeem-summary,.reward-stats-grid,.reward-usage-lists,.segment-rule-input-grid,.segment-type-grid,.stats-grid,.variable-grid{grid-template-columns:1fr}.segment-builder-actions,.segment-section-header{align-items:stretch;flex-direction:column}.image-upload-box{grid-template-columns:40px minmax(0,1fr) auto}.image-upload-thumb{width:40px;height:40px}.image-upload-actions{grid-column:auto;justify-content:flex-end}.image-remove-button,.image-upload-button{flex:0 0 auto}.image-preview-panel{padding:10px}.overview-dashboard{gap:12px}.analytics-card{min-height:0;padding:14px}.analytics-card-large{min-height:0}.analytics-heading h3,.metric-card-heading strong{font-size:24px}.command-card .area-chart,.command-card .area-chart svg,.command-card .area-chart-plot{min-height:0}.command-card .area-chart-plot{block-size:176px}.vertical-chart-grid{min-height:140px}.sidebar{position:static;gap:10px}.brand-block{align-items:flex-start}.brand-block h1{font-size:20px}.sidebar nav{margin-inline:-4px;padding-inline:4px}.sidebar nav button,.sidebar.collapsed nav button{width:156px;min-width:156px;min-height:48px;grid-template-columns:32px minmax(0,1fr);gap:8px}.nav-icon{width:32px;height:32px}.nav-icon-svg{width:17px;height:17px}.nav-copy span{font-size:13px}.integration-summary-heading,.sync-banner{align-items:stretch;flex-direction:column}.integration-summary-heading .button-row,.integration-summary-heading .button-row button{width:100%}.customer-toolbar,.integration-fields{grid-template-columns:1fr}.customer-search,.toolbar-actions{grid-column:auto}.pagination-bar,.table-summary,.toolbar-actions{align-items:stretch;flex-direction:column;display:flex}.pagination-bar button,.toolbar-actions button{width:100%}.order-details-header{align-items:stretch;flex-direction:column}.order-details-grid{grid-template-columns:1fr}.account-box,.sidebar.collapsed .account-box{width:auto;grid-template-columns:1fr}.account-box button,.sidebar.collapsed .account-box button{grid-row:auto;grid-column:auto;width:100%}.modal-backdrop,.product-picker-overlay{padding:12px}.product-picker-result{grid-template-columns:42px minmax(0,1fr);align-items:center}.product-picker-result em{grid-column:2/-1}.product-picker-result-thumb{width:42px;height:42px}.product-scope-options{display:grid}.product-scope-chip-grid{grid-template-columns:1fr}.dashboard-toast-wrap{padding:12px}.dashboard-toast{grid-template-columns:44px minmax(0,1fr);width:calc(100vw - 24px);border-radius:18px;padding:18px 16px 16px}.toast-icon{width:44px;height:44px;border-radius:14px;font-size:21px}.toast-copy{-webkit-padding-end:30px;padding-inline-end:30px}.toast-copy strong{font-size:15px}.toast-copy span{font-size:13px}.toast-close{inset-block-start:10px;inset-inline-start:10px;width:32px;min-width:32px;height:32px;min-height:32px}.modal-body .form-grid{grid-template-columns:1fr}.topbar-actions{display:grid;grid-template-columns:1fr auto;align-items:stretch;grid-gap:8px;gap:8px}.topbar-actions select{width:100%}.topbar-actions .status-pill{width:auto}.topbar-actions .refresh-data-button{grid-column:1/-1;width:100%}.donut-chart{width:150px}}@media (max-width:1180px){.orders-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:680px){.orders-toolbar{grid-template-columns:1fr}.orders-table table{min-width:1480px}.orders-table td,.orders-table th{padding:9px}.order-actions-cell{min-width:166px}}