@font-face{font-family:Tajawal;src:url('/Content/fonts/tajawal/Tajawal-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Tajawal;src:url('/Content/fonts/tajawal/Tajawal-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
html[data-store-theme=true]{font-family:var(--theme-font);font-size:var(--theme-base);color:var(--theme-text);background:var(--theme-bg)}
[data-store-theme=true] body{font-family:var(--theme-font);color:var(--theme-text);background:var(--theme-bg);font-size:var(--theme-base)}
[data-store-theme=true] :is(.site-header,.sidebar,.dashboard-topbar,.section-card,.stat-card,.product,.product-card,.popular-product,.offer-card,.cart-panel,.pos-cart,.pos-product,.pos-ticket,.erp-service,dialog,.dialog-footer,.store-card,.store-tabs,.category-panel,.erp-tabs){background-color:var(--theme-surface);color:var(--theme-text)}
[data-store-theme=true] :is(h1,.store-heading h1){font-size:var(--theme-heading);color:var(--theme-text)}
[data-store-theme=true] :is(.product h3,.product-card h3,.popular-product h3,.pos-product strong,#item-name,.item-title){font-size:var(--theme-product);color:var(--theme-text)}
[data-store-theme=true] :is(button,input,select,textarea,.nav-link,td,th){font-family:var(--theme-font)}
[data-store-theme=true] :is(.nav-link,td,th,.primary,.secondary,.muted,.hint,.field-note){font-size:calc(14px * var(--type-scale))}
[data-store-theme=true] :is(.section-card,.stat-card,.erp-service,.pos-ticket,.product-card){border-radius:var(--radius)}
[data-store-theme=true] :is(button.primary,.primary,#save-item,.mobile-cart-button){background:var(--primary);color:var(--primary-contrast)}
[data-store-theme=true] :is(.nav-link[aria-current=page],.erp-tab[aria-pressed=true],.hw-tab[aria-selected=true]){background:var(--primary-soft);color:var(--primary-dark)}
.theme-editor{display:grid;gap:20px}.theme-controls{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,1fr);gap:22px;align-items:start}.theme-preview{border:1px solid var(--line);padding:22px;border-radius:14px;background:var(--theme-bg,#f8f9fb);color:var(--theme-text,#292723);font-family:var(--theme-font,Tajawal,sans-serif)}.theme-preview h3{font-size:var(--theme-heading,28px);margin:0 0 8px}.theme-preview p{font-size:var(--theme-base,15px)}.theme-preview .theme-product{padding:18px;background:var(--theme-surface,#fff);border-radius:var(--radius,14px);margin-top:16px}.theme-product strong{font-size:var(--theme-product,18px)}.theme-preview button{background:var(--primary,#c74500);color:var(--primary-contrast,#fff);margin-top:14px}.theme-controls input[type=color]{height:44px;min-width:100%;padding:4px;cursor:pointer}.theme-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:700px){.theme-controls{grid-template-columns:minmax(0,1fr)}}

[data-store-theme=true] :is(input,select,textarea,.erp-line,.dialog-fields,.dialog-head,.account-header,.account-card,.address-card,.order-card){background-color:var(--theme-surface);color:var(--theme-text)}
[data-store-theme=true] :is(.cell-title,.cell-title strong,.product-name,.product-title){color:var(--theme-text)}
[data-store-theme=true] :is(.nav-link:hover,tr:hover){background-color:var(--primary-soft)}
[data-store-theme=true] :is(.product-description,.product p,.cell-title small,.field>span){color:var(--muted)}

.menu-loading{width:100%;color:var(--muted);font-size:14px}.menu-skeleton{display:grid;gap:16px;margin-top:18px}.menu-skeleton>span{display:block;min-height:125px;border:1px solid var(--border,#e9e9e9);border-radius:12px;background:linear-gradient(90deg,#f0f1f3 20%,#fafafa 45%,#f0f1f3 70%);background-size:220% 100%;animation:menu-skeleton-wave 1.2s linear infinite}@keyframes menu-skeleton-wave{to{background-position:-220% 0}}@media(prefers-reduced-motion:reduce){.menu-skeleton>span{animation:none}}
