/* Module-specific compact layout, never alters the full POS layout by default. */
#spyroModuleChooser{width:min(560px,calc(100vw - 28px));max-width:100%;max-height:calc(100dvh - 28px);overflow:auto;box-sizing:border-box;border:1px solid #c9dac8;border-radius:20px;padding:clamp(14px,3vw,26px);background:#f9fbf7;color:#253e32;box-shadow:0 16px 60px #182f3050;text-align:center}
#spyroModuleChooser::backdrop{background:#172c2599}
#spyroModuleChooser h2{font-size:clamp(17px,4vw,23px);margin:0 0 6px}
#spyroModuleChooser p{margin:0 0 16px;color:#56705d;font-size:13px}
#spyroModuleGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#spyroModuleGrid .spyro-module-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:110px;padding:12px 6px;box-sizing:border-box;background:#e1ebdd;color:#254832;border:1px solid #bed4bd;border-radius:13px;text-align:center;font-size:clamp(11px,2.8vw,15px);line-height:1.25;white-space:normal;overflow-wrap:anywhere}
#spyroModuleGrid .spyro-module-card:hover,#spyroModuleGrid .spyro-module-card:focus-visible{background:#c9ddc6;outline:2px solid #315b40;outline-offset:1px}
.spyro-module-card .spyro-module-symbol{font-size:25px;line-height:1}
.spyro-module-card small{font-size:11px;line-height:1.3;color:#526750}
#spyroModuleActions{display:flex;gap:5px;align-items:center;justify-content:flex-end;flex-wrap:wrap;min-width:0}
#spyroModuleActions[hidden],#spyroModuleActions [hidden]{display:none!important}
#spyroModuleActions button{white-space:nowrap;flex:0 1 auto;min-width:0;padding:6px 9px;min-height:32px;border-radius:7px;border:1px solid #bdd3bd;background:#e3eee0;color:#315b40;font-size:12px;font-weight:700;line-height:1.2}
#appView.spyro-module-focused:not(.hidden){display:block!important;width:100%!important;max-width:100%!important}
#appView.spyro-module-focused .sidebar,#appView.spyro-module-focused #menuToggle,#appView.spyro-module-focused #menuBackdrop,#appView.spyro-module-focused .instagram-follow{display:none!important}
#appView.spyro-module-focused .main{margin:0!important;padding-left:0!important;width:100%!important;max-width:100%!important;min-width:0!important}
#appView.spyro-module-focused .topbar{flex-wrap:wrap!important;gap:6px!important;max-width:100%;box-sizing:border-box}
#appView.spyro-module-focused .topbar-right{display:flex;align-items:center;justify-content:flex-end;flex:1 1 auto;gap:6px;flex-wrap:wrap;min-width:0}
#appView[data-module="web"] #content .toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#appView[data-module="web"] #content .toolbar :is(button,a){min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;padding:7px 10px;font-size:12px}
#content .pos .cart .cart-title .cart-tools:has(>.spyro-my-sales){display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:4px!important;min-width:0!important;width:100%!important}
#content .pos .cart .cart-title .cart-tools:has(>.spyro-my-sales) > :is(.contact-square,.drawer-square){flex:0 1 34px!important;width:34px!important;min-width:26px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}
#content .pos .cart .cart-title .cart-tools:has(>.spyro-my-sales)>.contact-square>span{display:none!important}
#content .pos .cart .cart-title .cart-tools>.spyro-my-sales svg{width:18px;height:18px;flex-shrink:0}
#content .pos .cart .cart-title .cart-tools:has(>.spyro-my-sales)>.spyro-service-choice{flex:1 1 0!important;min-width:0!important;gap:3px!important}
#content .pos .cart .cart-title .cart-tools:has(>.spyro-my-sales)>.spyro-service-choice button{min-width:0!important;padding:0 2px!important;font-size:10px!important;gap:2px!important;overflow:hidden!important;text-overflow:ellipsis}
#content .pos .cart .cart-title .cart-tools:has(>.spyro-my-sales)>.spyro-service-choice button .spyro-service-check{display:none!important}
.spyro-own-sales-modal .modal-card{width:min(620px,calc(100vw - 20px));max-width:100%;max-height:90dvh;overflow:auto;box-sizing:border-box}
.spyro-own-sales-filter,.spyro-own-summary,.spyro-own-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.spyro-own-sales-filter input{flex:1;min-width:110px;width:auto}
.spyro-own-summary{margin:12px 0}
.spyro-own-summary>div{background:#e1ebdd;border-radius:10px;padding:10px;flex:1;min-width:0}
.spyro-own-summary small,.spyro-own-sale small{display:block;font-size:12px;color:#56705d}
.spyro-own-summary b{font-size:18px}
.spyro-own-sale{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;padding:10px 0;border-top:1px solid #d9e5d6}
.spyro-own-actions{grid-column:1/-1;justify-content:flex-end}
.spyro-own-actions button{font-size:12px;padding:5px 8px;min-height:30px}
@media(max-width:600px){
 #spyroModuleGrid{gap:7px}
 #spyroModuleGrid .spyro-module-card{min-height:95px;padding:9px 4px}
 #spyroModuleActions button{font-size:11px;padding:5px 6px}
 #appView.spyro-module-focused #clock{font-size:11px}
 #content .pos .cart .cart-title .cart-tools:has(>.spyro-my-sales){gap:3px!important}
 #content .pos .cart .cart-title .cart-tools:has(>.spyro-my-sales)>:is(.contact-square,.drawer-square){flex-basis:29px!important;width:29px!important;height:32px!important;min-height:32px!important;max-height:32px!important}
 #content .pos .cart .cart-title .cart-tools:has(>.spyro-my-sales)>.spyro-service-choice button{font-size:10px!important;min-height:32px!important;height:32px!important;max-height:32px!important}
}
