/* Scoped personal iPhone workspace; the employee application and login remain unchanged. */
body.fac-owner-mobile{background:#f5f6f8!important;overflow-x:hidden}
body.fac-owner-mobile:not(.fac-owner-legacy) #appView{display:none!important}
body.fac-redesign.fac-owner-mobile:not(.fac-owner-legacy) #appView:not(.employee-mode):not(.hidden){display:none!important}
#facOwnerMobile{--om-wine:#a80d36;--om-ink:#20242d;--om-line:#e1e4e9;color:var(--om-ink);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px;line-height:1.45;max-width:640px;margin:0 auto;min-height:100dvh;background:#fff;padding-bottom:calc(90px + env(safe-area-inset-bottom));position:relative;isolation:isolate}
#facOwnerMobile *,#omReturn{box-sizing:border-box}
#facOwnerMobile [hidden]{display:none!important}
#facOwnerMobile :is(button,input,select,textarea,a){font-family:inherit;font-size:16px;touch-action:manipulation}
#facOwnerMobile button,#facOwnerMobile a{cursor:pointer;-webkit-tap-highlight-color:transparent}
#facOwnerMobile :is(button,a,input,select,textarea):focus-visible{outline:3px solid #a80d36;outline-offset:3px}
#facOwnerMobile button:disabled{opacity:.55;cursor:wait}
#facOwnerMobile svg{width:24px;height:24px;flex-shrink:0}
#facOwnerMobile h1{font-size:27px;line-height:1.2;margin:12px 0 18px;letter-spacing:-.7px;font-weight:750}
#facOwnerMobile h2{font-size:20px;line-height:1.3;letter-spacing:-.3px;margin:22px 0 12px}
#facOwnerMobile p{margin:10px 0;color:#5d6674;overflow-wrap:anywhere}
#facOwnerMobile .om-header{position:sticky;top:0;z-index:5;background:#fffffff5;backdrop-filter:blur(14px);padding:calc(12px + env(safe-area-inset-top)) 18px 12px;display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--om-line)}
#facOwnerMobile .om-header b{flex:1;font-size:17px}
#facOwnerMobile .om-header img{object-fit:contain}
#facOwnerMobile .om-content{padding:14px 20px 28px}
#facOwnerMobile .om-greeting{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#facOwnerMobile .om-greeting h1{margin:8px 0}
#facOwnerMobile .om-greeting small{font-size:12px;color:#5d6674}
#facOwnerMobile :is(.om-primary,.om-outline,.om-tile,.om-link){min-height:50px;border-radius:11px;padding:13px 16px;display:flex;align-items:center;justify-content:center;gap:10px;text-align:center;text-decoration:none;border:1px solid var(--om-line);font-weight:600;width:100%;line-height:1.35}
#facOwnerMobile .om-primary{background:var(--om-wine);color:#fff;border-color:var(--om-wine);margin:12px 0}
#facOwnerMobile .om-outline{background:#fff;color:var(--om-wine);border-color:#dcb3c1;margin:10px 0}
#facOwnerMobile .om-link{background:transparent;border:0;color:var(--om-wine);font-weight:500}
#facOwnerMobile .om-icon{width:44px;min-width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:9px;background:#fff;color:var(--om-wine);padding:8px}
#facOwnerMobile .om-two,#facOwnerMobile .om-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#facOwnerMobile .om-grid{margin:16px 0}
#facOwnerMobile .om-tile{background:#f8f9fb;min-height:102px;flex-direction:column;color:#20242d;font-weight:550;padding:14px 8px}
#facOwnerMobile .om-tile svg{color:var(--om-wine);width:29px;height:29px}
#facOwnerMobile .om-metrics{margin:18px 0}
#facOwnerMobile .om-metrics>div{border:1px solid var(--om-line);border-radius:12px;padding:15px;background:#f7f8fa;font-size:15px}
#facOwnerMobile .om-metrics strong{display:block;font-size:31px;font-weight:750}
#facOwnerMobile .om-card{padding:17px;border:1px solid var(--om-line);border-radius:13px;background:#fff;margin:14px 0;overflow-wrap:anywhere}
#facOwnerMobile .om-card h2{margin:6px 0 10px}
#facOwnerMobile .om-card>strong{display:block;font-size:23px}
#facOwnerMobile .om-warning{border-color:#edc98e;background:#fff9ee;color:#725013}
#facOwnerMobile .om-warning small{font-weight:700;color:#9b6000}
#facOwnerMobile label{display:block;font-size:15px;font-weight:600;margin:14px 0}
#facOwnerMobile :is(input,select,textarea){display:block;width:100%;min-width:0;min-height:48px;border:1px solid #d9dee5;border-radius:10px;background:#f7f8fa;color:#20242d;padding:12px;margin-top:7px;box-shadow:none}
#facOwnerMobile textarea{min-height:100px;resize:vertical}
#facOwnerMobile input[type=date]{min-height:48px;width:100%;-webkit-appearance:none}
#facOwnerMobile .om-date{display:flex;align-items:center;gap:12px;font-size:14px}
#facOwnerMobile .om-date input{width:auto;flex:1;margin:0;min-width:0}
#facOwnerMobile .om-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:640px;z-index:10;display:grid;grid-template-columns:repeat(4,1fr);background:#fffffff5;backdrop-filter:blur(15px);border-top:1px solid var(--om-line);padding:8px 8px calc(8px + env(safe-area-inset-bottom))}
#facOwnerMobile .om-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#697381;border:0;background:transparent;min-height:53px;border-radius:9px;padding:5px;font-size:12px}
#facOwnerMobile .om-nav .active{color:var(--om-wine);background:#faf0f3;font-weight:700}
#facOwnerMobile .om-stack{display:grid;gap:6px;margin-top:13px}
#facOwnerMobile .om-chips{display:flex;gap:7px;margin:16px 0;overflow-x:auto}
#facOwnerMobile .om-chips button{flex-shrink:0;border:0;border-radius:22px;min-height:44px;padding:9px 14px;font-size:14px;background:#f0f2f5;color:#424b58}
#facOwnerMobile .om-chips .active{background:var(--om-wine);color:#fff}
#facOwnerMobile .om-person{display:flex;width:100%;gap:12px;align-items:center;border:0;border-bottom:1px solid var(--om-line);background:#fff;padding:17px 0;text-align:left}
#facOwnerMobile .om-person>i{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#f5e4eb;color:var(--om-wine);font-style:normal;flex-shrink:0}
#facOwnerMobile .om-person>span:nth-child(2){flex:1;min-width:0}
#facOwnerMobile .om-person small,#facOwnerMobile .om-person em{display:block;font-size:13px;font-style:normal;color:#646e7d;margin-top:4px}
#facOwnerMobile .om-person em{color:#7c591d}
#facOwnerMobile .om-pill{display:inline-block;padding:5px 10px;border-radius:20px;background:#fff1d9;color:#7b5311;font-size:13px}
#facOwnerMobile .om-muted{font-size:13px;color:#667182}
#facOwnerMobile .om-item{display:grid;grid-template-columns:minmax(0,1fr) 72px 38px;align-items:center;gap:7px;margin-bottom:8px}
#facOwnerMobile .om-item input{margin:0}
#facOwnerMobile .om-camera{border:1px dashed #bbc2cd;border-radius:12px;padding:15px;background:#f8f9fb}
#facOwnerMobile .om-camera svg{display:block;margin-bottom:8px}
#facOwnerMobile .om-camera input{font-size:14px;background:transparent;border:0;padding:0;min-height:40px}
#facOwnerMobile .om-camera{position:relative;cursor:pointer}
#facOwnerMobile .om-camera span{display:block;margin-top:12px;border:1px solid #dcb3c1;background:#fff;padding:12px;border-radius:9px;color:#a80d36;text-align:center}
#facOwnerMobile .om-camera input{position:absolute;width:1px!important;height:1px!important;min-height:0!important;opacity:0;overflow:hidden;padding:0;bottom:0}
#facOwnerMobile .om-photo{display:block;max-width:100%;max-height:300px;object-fit:contain;border-radius:10px;margin:12px auto}
#facOwnerMobile .om-status{padding:14px;background:#f5e7ed;border:1px solid #d8aabd;border-radius:10px;margin:16px 0;color:#69233b}
/* Existing dialogs retain their validations and write paths, presented as mobile sheets. */
body.fac-owner-mobile :is(#absenceModuleModal,#serviceDetailModal,#facPunctualRemitoModal){z-index:2147483400!important;padding:12px!important;align-items:start!important;overflow:auto!important}
body.fac-owner-mobile :is(.abs215-modal-card,.service-detail-card){width:100%!important;max-width:640px!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;border-radius:16px!important;padding:20px!important}
body.fac-owner-mobile .abs215-form-grid{grid-template-columns:1fr!important}
body.fac-owner-mobile .abs215-span2{grid-column:auto!important}
body.fac-owner-mobile :is(#absenceModuleModal,#serviceDetailModal) :is(button,input,select,textarea){font-size:16px!important;min-height:48px!important;max-width:100%!important}
body.fac-owner-mobile .abs215-modal-actions{display:flex!important;flex-direction:column;gap:8px}
body.fac-owner-mobile .abs215-modal-actions button{width:100%!important}
body.fac-owner-mobile .abs219-main-service{display:flex!important;flex-direction:column!important}
#omReturn{position:fixed;top:env(safe-area-inset-top);left:0;right:0;width:100%;min-height:48px;z-index:2147482200;background:#a80d36;color:#fff;border:0;font:600 16px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;padding:12px}
body.fac-owner-legacy #appView>.main{padding-top:calc(60px + env(safe-area-inset-top))!important}
body.fac-owner-legacy #appView :is(input,select,textarea,button){font-size:16px!important;min-height:44px}
body.fac-owner-legacy #appView .panel{overflow-x:auto!important}
@media(min-width:821px){body.fac-owner-mobile:not(.fac-owner-legacy){padding:18px 0}#facOwnerMobile{border:1px solid #e1e4e9;border-radius:20px;overflow:clip}}
@media(prefers-reduced-motion:reduce){#facOwnerMobile *{scroll-behavior:auto!important}}
