@media(max-width:520px){.employee-row{flex-wrap:wrap;align-items:flex-start}.employee-main{flex:1 1 100%}.employee-actions{width:100%;display:flex;flex-wrap:wrap}.employee-actions button{flex:1 1 28%;white-space:normal}.request-row{align-items:flex-start;flex-wrap:wrap}.request-row .employee-main{flex:1 1 100%}.request-row .employee-actions{width:100%}.product-info{overflow:hidden}}

/* iOS Safari zooms the page when a focused form control uses text smaller than 16px. */
@media(max-width:767px){input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),select,textarea{font-size:16px!important}}

.photo-open{display:block;width:100%;padding:0;border:0;background:transparent;text-align:center;color:var(--muted);cursor:zoom-in}
.photo-open .detail-photo{display:block;cursor:zoom-in}
.photo-open span{display:block;padding:8px;font-size:12px;color:var(--red);font-weight:700}
.photo-backdrop{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));background:#08090de8}
.photo-viewer{position:relative;width:min(100%,1200px);height:min(90dvh,920px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
.photo-viewer img{max-width:100%;max-height:calc(100% - 42px);width:auto;height:auto;object-fit:contain;border-radius:12px;touch-action:pinch-zoom}
.photo-viewer p{margin:0;color:#fff;text-align:center;font-size:13px}
.photo-close{position:absolute;z-index:1;top:8px;right:8px;width:44px;height:44px;border:1px solid #ffffff60;border-radius:50%;background:#10121acc;color:#fff;font-size:28px;line-height:1}
.tile-icon .ui-icon{width:22px;height:22px}
.stat-online{width:100%;text-align:left;color:inherit;font:inherit;cursor:pointer;transition:border-color .15s,transform .15s}
.stat-online:hover{border-color:#e32636;transform:translateY(-1px)}
.stat-online small{display:block;margin-top:4px;color:var(--red);font-size:10px;font-weight:700}
.online-list{display:flex;flex-direction:column;gap:8px;max-height:55dvh;overflow:auto}
.online-user{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}
.online-dot{width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#22a06b;box-shadow:0 0 0 4px #22a06b20}
.online-user>span:last-child{display:flex;min-width:0;flex-direction:column;gap:3px}
.online-user b{font-size:13px;overflow-wrap:anywhere}
.online-user small{color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.settings-option select{width:auto;min-width:145px;max-width:52%;min-height:40px;padding:8px 10px;font-size:12px}
.sync-status{display:flex;align-items:center;gap:10px}
.sync-indicator{width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#a1a5ad}
.sync-indicator.connected{background:#22a06b;box-shadow:0 0 0 4px #22a06b20}
.sync-indicator.disconnected{background:#d34444;box-shadow:0 0 0 4px #d3444420}
.sync-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.sync-copy b{font-size:13px}
.sync-copy small{font-size:11px;line-height:1.35;color:var(--muted)}
.sync-status .small-btn{flex:0 0 auto}
.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px}
.topbar .top-actions{justify-self:end}
.location-lockup{display:flex;align-items:center;justify-self:center;gap:5px;white-space:nowrap;color:#343741}
.location-lockup b{font-size:12px;letter-spacing:.08em}
.location-icon{width:17px;height:17px;color:var(--red);stroke-width:2.2}
.notification-icon{width:19px;height:19px;display:block}
.bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
.nav-item .nav-icon{width:21px;height:21px;display:block}
@media(max-width:380px){.nav-item{font-size:9px;gap:2px}}
.theme-dark .location-lockup{color:#f0f0f2}
@media(max-width:360px){.topbar{gap:6px;padding-left:11px;padding-right:11px}.brand-lockup{gap:6px}.brand-title b{font-size:12px}.brand-title small{font-size:10px}.location-lockup{gap:3px}.location-lockup b{font-size:10px}.top-actions{gap:5px}.icon-btn{width:36px;height:36px}}
.nav-item .nav-icon{width:20px;height:20px;display:block}
.language-toggle{display:block;min-height:36px;margin:0 0 12px auto;padding:7px 12px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--red);font-size:12px;font-weight:800}
.language-option select{width:auto;min-width:145px;max-width:52%;min-height:40px;padding:8px 10px;font-size:12px}
.language-toggle-header{width:36px;min-width:36px;height:36px;min-height:36px;margin:0;padding:0;border-radius:12px;font-size:12px;line-height:1}
.android-native-shell .topbar{padding-top:calc(env(safe-area-inset-top) + 20px)}
.android-native-shell .bottom-nav{bottom:8px;padding-bottom:calc(9px + env(safe-area-inset-bottom));box-shadow:0 -4px 20px #14162112}
.android-native-shell main{padding-bottom:112px}
.product-photo-empty{width:100%;height:100%;display:grid;place-items:center;color:#9a9da7}
.product-photo-empty .ui-icon{width:32px;height:32px}
.product-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}.price-chip{min-width:0;padding:7px 8px;border:1px solid var(--line);border-radius:10px;background:color-mix(in srgb,var(--surface) 92%,#f1f2f5)}.price-chip small{display:block;color:var(--muted);font-size:9px;line-height:1.2;white-space:nowrap}.price-chip strong{display:block;margin-top:3px;font-size:11px;line-height:1.25;overflow-wrap:anywhere}.price-chip.sale strong{color:var(--red)}.theme-dark .price-chip{background:#2a2d35}
.inline-price-entry{margin-top:8px}.inline-price-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.inline-price-fields label{display:block;min-width:0;color:var(--muted);font-size:10px;font-weight:700;line-height:1.25}.inline-price-fields input{display:block;width:100%;min-width:0;min-height:38px;margin-top:4px;padding:7px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:inherit;font-size:12px}.inline-price-actions{display:flex;gap:7px;margin-top:7px}.inline-price-actions>*{flex:1;min-width:0}.stock-line{font-size:11px!important}

.settings-profile{display:flex;align-items:center;gap:13px}.settings-avatar{width:48px;height:48px;flex:0 0 48px;border-radius:16px;display:grid;place-items:center;background:#fff0f1;color:var(--red);font-size:20px;font-weight:900}.settings-profile-copy{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}.settings-profile-copy b{font-size:15px;overflow-wrap:anywhere}.settings-profile-copy small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.settings-options{display:flex;flex-direction:column;gap:0}.settings-option{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;cursor:pointer}.settings-option+.settings-option{border-top:1px solid var(--line)}.settings-option span{display:flex;flex-direction:column;gap:4px}.settings-option b{font-size:13px}.settings-option small{font-size:11px;line-height:1.4;color:var(--muted)}.settings-option input{width:21px;height:21px;flex:0 0 21px;accent-color:var(--red)}.settings-reset{margin-top:8px}.compact-cards .product-list{gap:7px}.compact-cards .product-card{grid-template-columns:60px minmax(0,1fr);gap:9px;padding:8px;border-radius:14px}.compact-cards .product-photo{width:60px;height:60px}.compact-cards .product-actions{padding-top:7px}
.install-card{display:flex;align-items:center;gap:11px}.install-mark{width:40px;height:40px;flex:0 0 40px;border-radius:13px;display:grid;place-items:center;background:#fff0f1;color:var(--red);font-size:19px;font-weight:900}.install-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.install-copy b{font-size:13px}.install-copy small{font-size:11px;line-height:1.4;color:var(--muted)}.install-card button{flex:0 0 auto}.install-steps{list-style:none;display:flex;flex-direction:column;gap:13px;margin:18px 0;padding:0}.install-steps li{display:flex;align-items:flex-start;gap:11px}.install-steps li>span{width:28px;height:28px;flex:0 0 28px;border-radius:50%;display:grid;place-items:center;background:#fff0f1;color:var(--red);font-size:12px;font-weight:900}.install-steps li div{display:flex;flex-direction:column;gap:3px;padding-top:2px}.install-steps b{font-size:13px}.install-steps small{font-size:12px;line-height:1.4;color:var(--muted)}.theme-dark .install-mark,.theme-dark .install-steps li>span{background:#3a252a;color:#ffb3bc}@media(max-width:420px){.install-card{flex-wrap:wrap}.install-copy{flex:1 1 calc(100% - 54px)}.install-card button{width:100%}}
