.hfm-app{max-width:860px;margin:20px auto;background:#f3f6f8;min-height:80vh;border-radius:22px;overflow:hidden;font-family:Arial,"Noto Sans Arabic",sans-serif;color:#15232f;box-shadow:0 14px 50px rgba(0,0,0,.1)}.hfm-app *{box-sizing:border-box}.hfm-app-header{background:#173d34;color:#fff;padding:20px;display:flex;justify-content:space-between;align-items:center}.hfm-app-header h1{font-size:24px;margin:0}.hfm-app-header small{opacity:.75}.hfm-app-header select{min-height:40px;border-radius:9px}.hfm-app-nav{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-bottom:1px solid #dde4e9;position:sticky;top:0;z-index:2}.hfm-app-nav button{border:0;background:#fff;padding:14px 8px;font-weight:700;cursor:pointer}.hfm-app-nav button.active{color:#14624e;border-bottom:3px solid #14624e}.hfm-app main{padding:16px}.hfm-app-tab{display:none}.hfm-app-tab.active{display:block}.hfm-app-tab h2{font-size:21px;margin:4px 0 14px}.hfm-app-msg{margin:12px;padding:12px;border-radius:10px}.hfm-app-msg.ok{background:#dff5e8;color:#145b39}.hfm-app-msg.bad{background:#fde4e4;color:#8c2424}.hfm-worker-task{background:#fff;border-radius:14px;padding:15px;margin-bottom:11px;display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #e0e6eb}.hfm-worker-task strong{font-size:16px}.hfm-worker-task p{margin:7px 0;font-size:14px}.hfm-worker-task time{white-space:nowrap;color:#687681}.hfm-worker-task button,.hfm-action-form button,.hfm-worker-search button{background:#17634f;color:#fff;border:0;border-radius:10px;padding:12px 16px;font-weight:700}.hfm-worker-tag{border:2px solid #277e68}.hfm-worker-pens{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.hfm-worker-pen{background:#fff;border-radius:14px;padding:16px;display:grid;grid-template-columns:1fr auto;gap:7px;border:1px solid #e0e6eb}.hfm-worker-pen strong{font-size:17px}.hfm-worker-pen span{font-size:26px;font-weight:800;color:#17634f}.hfm-worker-pen small{grid-column:1/-1;color:#73808a}.hfm-action-chooser{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:14px}.hfm-action-chooser button{border:1px solid #cbd6dc;background:#fff;border-radius:12px;padding:16px;font-weight:800;cursor:pointer}.hfm-action-chooser button.active{background:#173d34;color:#fff}.hfm-action-form{background:#fff;border:1px solid #dde4e9;border-radius:15px;padding:16px}.hfm-action-form label{display:block;font-weight:700;margin-bottom:12px}.hfm-action-form input,.hfm-action-form select,.hfm-action-form textarea{width:100%;min-height:46px;margin-top:7px;border:1px solid #cdd7de;border-radius:10px;padding:8px}.hfm-action-form textarea{min-height:80px}.hfm-scan-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:12px}.hfm-scan-options label{margin:0}.hfm-scan-options input{display:none}.hfm-scan-options span{display:block;padding:14px;border:2px solid #d7e0e6;border-radius:12px;text-align:center}.hfm-scan-options input:checked+span{border-color:#17634f;background:#e7f5f0;color:#104c3d}.hfm-action-form fieldset{border:1px solid #dae3e8;border-radius:12px;margin:12px 0;padding:12px}.hfm-worker-search{display:flex;gap:8px}.hfm-worker-search input{flex:1;min-height:48px;border-radius:10px;border:1px solid #cbd5dc;padding:8px}.hfm-animal-card{background:#fff;border-radius:15px;padding:18px;margin-top:15px}.hfm-animal-card>strong{font-size:34px;color:#17634f}.hfm-animal-card img{max-width:100%;height:auto;border-radius:12px}.hfm-empty{background:#fff;border-radius:12px;padding:22px;text-align:center;color:#6c7882}.hfm-app-footer{padding:18px;text-align:center}.hfm-app-footer a{color:#8c2f2f}.hfm-login{max-width:480px;margin:30px auto;background:#fff;padding:25px;border-radius:15px}.hfm-login input{width:100%}@media(max-width:620px){.hfm-app{margin:0;border-radius:0;min-height:100vh}.hfm-app-header h1{font-size:18px}.hfm-app-nav button{font-size:12px;padding:12px 3px}.hfm-worker-pens{grid-template-columns:1fr 1fr}.hfm-worker-task{align-items:flex-start;flex-direction:column}.hfm-scan-options{grid-template-columns:1fr}.hfm-action-chooser{grid-template-columns:1fr 1fr}}
.hfm-scan-session{background:#fff7e8;border:2px solid #e6ad45;margin:14px;padding:16px;border-radius:16px}.hfm-session-head{display:flex;justify-content:space-between;align-items:center}.hfm-session-head h2{margin:3px 0 0}.hfm-session-head a{color:#8b3a2d;font-weight:700}.hfm-session-progress{display:flex;align-items:baseline;gap:7px;margin:14px 0}.hfm-session-progress strong{font-size:30px}.hfm-scan-animal-number{font-size:56px;font-weight:900;text-align:center;color:#173d34;padding:16px;background:#fff;border-radius:15px;margin-bottom:14px}.hfm-scan-session label{display:block;font-weight:700;margin:12px 0}.hfm-scan-session select,.hfm-scan-session textarea{width:100%;min-height:46px;margin-top:7px;border:1px solid #cdd7de;border-radius:10px}.hfm-scan-session button,.hfm-session-done{display:block;width:100%;background:#17634f;color:#fff;border:0;border-radius:10px;padding:14px;text-align:center;font-weight:800;text-decoration:none}.hfm-start-session{margin-bottom:14px}.hfm-start-session button{width:100%;background:#173d34;color:#fff;border:0;border-radius:10px;padding:13px;font-weight:800}.hfm-action-form hr{border:0;border-top:1px solid #e4e8eb;margin:18px 0}
.hfm-retag-colors{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hfm-animal-candidates{display:grid;gap:12px}.hfm-animal-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.hfm-animal-card-head code{direction:ltr;background:#edf2f4;padding:5px 8px;border-radius:7px}.hfm-tag-color-text.red{color:#b4232d}.hfm-tag-color-text.green{color:#147447}.hfm-tag-color-text.yellow{color:#9a6b00}.hfm-tag-color-text.white{color:#54616b;background:#fff;border:1px solid #cdd6db;border-radius:4px;padding:1px 5px}@media(max-width:620px){.hfm-retag-colors{grid-template-columns:1fr}}
.hfm-candidate-retag{display:inline-block;background:#173d34;color:#fff;text-decoration:none;font-weight:800;border-radius:9px;padding:9px 12px;margin:6px 0 10px}

/* v0.3 offline sync, encrypted device storage and daily tasks */
.hfm-sync-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#eef7f4;border-bottom:1px solid #cadfd8;padding:9px 14px;font-size:13px}.hfm-sync-bar button{border:0;border-radius:8px;padding:8px 11px;background:#17634f;color:#fff;font-weight:700;cursor:pointer}.hfm-sync-bar button[data-hfm-enable-offline]{background:#fff;color:#174d40;border:1px solid #77a99b}.hfm-network-state{display:inline-flex;align-items:center;gap:6px;font-weight:700}.hfm-network-state i{width:10px;height:10px;border-radius:50%;background:#21a25f;box-shadow:0 0 0 3px rgba(33,162,95,.12)}.hfm-network-state.offline i,.hfm-offline .hfm-network-state i{background:#c74343;box-shadow:0 0 0 3px rgba(199,67,67,.12)}.hfm-pending-state strong,[data-hfm-pending-count]{display:inline-block;min-width:21px;text-align:center;background:#fff;border-radius:20px;padding:2px 6px;color:#8c4d00}.hfm-has-pending .hfm-sync-bar{background:#fff4d9;border-color:#edcf85}.hfm-app-nav em{font-style:normal;background:#b4242d;color:#fff;border-radius:20px;padding:1px 6px;margin-inline-start:5px;font-size:11px}.hfm-runtime-message{position:fixed;z-index:999999;left:50%;bottom:22px;transform:translate(-50%,25px);opacity:0;max-width:min(92vw,620px);background:#26323a;color:#fff;border-radius:12px;padding:13px 17px;box-shadow:0 12px 35px rgba(0,0,0,.25);transition:.2s;pointer-events:none;text-align:center}.hfm-runtime-message.show{opacity:1;transform:translate(-50%,0)}.hfm-runtime-message.ok{background:#17634f}.hfm-runtime-message.bad{background:#9e2929}.hfm-runtime-message.warn{background:#926000}.hfm-worker-task.priority-urgent{border-inline-start:6px solid #c5262e}.hfm-worker-task.priority-high{border-inline-start:6px solid #dc7d16}.hfm-worker-task.priority-normal{border-inline-start:6px solid #237e69}.hfm-worker-task form{margin:0}.hfm-worker-task small{color:#687681}.hfm-dam-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;background:#edf7f3;border:1px solid #bdddd3;border-radius:10px;padding:10px;margin:-4px 0 12px}.hfm-dam-summary b{grid-column:1/-1;font-size:22px;color:#17634f}.hfm-dam-summary span{font-size:12px}.hfm-queued-session{opacity:.7;pointer-events:none}.hfm-queued-session::after{content:'تم حفظ نتيجة هذه الحالة على الجهاز';display:block;background:#fff1bd;color:#775400;padding:10px;border-radius:9px;text-align:center;margin-top:10px}.hfm-offline-shell{margin:0 auto;min-height:100vh;border-radius:0}.hfm-offline-loading,.hfm-offline-lock{max-width:550px;margin:12vh auto;background:#fff;border-radius:18px;padding:28px;text-align:center;box-shadow:0 12px 45px rgba(0,0,0,.12)}.hfm-offline-lock button{background:#17634f;color:#fff;border:0;border-radius:9px;padding:11px 16px}.hfm-offline-task-list,.hfm-offline-actions{margin-bottom:20px}.hfm-offline-actions details{background:#fff;border:1px solid #dbe4e7;border-radius:13px;margin:10px 0;overflow:hidden}.hfm-offline-actions summary{padding:15px;font-weight:800;cursor:pointer;background:#f8fafb}.hfm-offline-actions form{padding:14px;display:grid;gap:10px}.hfm-offline-actions label{font-weight:700}.hfm-offline-actions input,.hfm-offline-actions select,.hfm-offline-actions textarea{width:100%;min-height:44px;border:1px solid #cad6dc;border-radius:9px;padding:8px;margin-top:5px}.hfm-offline-actions textarea{min-height:70px}.hfm-offline-actions button{background:#17634f;color:#fff;border:0;border-radius:9px;padding:12px;font-weight:800}.hfm-offline-actions fieldset{border:1px solid #dbe4e7;border-radius:10px;padding:10px;display:grid;gap:8px}.is-syncing{position:relative;color:transparent!important}.is-syncing::after{content:'';position:absolute;inset:50% auto auto 50%;width:15px;height:15px;margin:-8px;border:2px solid rgba(255,255,255,.5);border-top-color:#fff;border-radius:50%;animation:hfm-spin .7s linear infinite}@keyframes hfm-spin{to{transform:rotate(360deg)}}
@media(max-width:620px){.hfm-sync-bar{font-size:11px;gap:7px}.hfm-sync-bar button{padding:7px 9px}.hfm-dam-summary{grid-template-columns:1fr}.hfm-worker-task form{width:100%}.hfm-worker-task form button{width:100%}}

/* v0.4 integrated daily modules and veterinary requests */
.hfm-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hfm-check{display:flex!important;align-items:center;gap:9px;background:#eef7f4;border:1px solid #c5ddd5;padding:11px;border-radius:10px}.hfm-check input{width:auto!important;min-height:auto!important;margin:0!important}.hfm-worker-pen a{grid-column:1/-1;display:inline-block;text-align:center;text-decoration:none;background:#edf7f3;color:#155746;border-radius:8px;padding:8px;font-weight:800}.hfm-action-chooser button:nth-child(1),.hfm-action-chooser button:nth-child(2){border-color:#67a394;background:#edf7f3}.hfm-offline-actions .hfm-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:8px}@media(max-width:620px){.hfm-two-cols,.hfm-offline-actions .hfm-two-cols{grid-template-columns:1fr}.hfm-action-chooser{grid-template-columns:1fr 1fr}.hfm-action-chooser button{min-height:65px}}

/* v0.5 TRUE / ترو brand, semantic SVG icons and verified app navigation */
:root{--hfm-green:#0b6f63;--hfm-green-dark:#075349;--hfm-green-soft:#dcece7;--hfm-beige:#f3f0df;--hfm-card:#fff;--hfm-slate:#91a0a3;--hfm-text:#192321;--hfm-muted:#6f7d79;--hfm-danger:#b72832;--hfm-shadow:0 12px 32px rgba(19,54,49,.10)}
.hfm-app{max-width:940px;background:var(--hfm-beige);color:var(--hfm-text);border-radius:24px;position:relative;overflow:clip}.hfm-app-main{padding:18px 18px 120px!important;min-height:720px}.hfm-icon{display:block;width:24px;height:24px;flex:0 0 auto}.hfm-true-header{background:#eeecdf;color:var(--hfm-text);padding:13px 17px;border-bottom:1px solid rgba(11,111,99,.13);position:sticky;top:0;z-index:30;display:grid;grid-template-columns:46px 1fr 46px;gap:12px}.hfm-header-icon{position:relative;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:14px;background:transparent;color:var(--hfm-text);cursor:pointer}.hfm-header-icon:hover{background:rgba(11,111,99,.08)}.hfm-header-icon .hfm-icon{width:30px;height:30px}.hfm-notification-button em{position:absolute;inset-block-start:1px;inset-inline-end:0;background:var(--hfm-danger);color:#fff;min-width:18px;height:18px;padding:0 4px;border-radius:12px;font:700 10px/18px Arial;text-align:center}.hfm-brand-lockup{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0}.hfm-brand-lockup>div{min-width:0}.hfm-brand-lockup h1,.hfm-brand-lockup strong{display:block;margin:0;font-size:20px;font-weight:900;color:var(--hfm-green-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hfm-brand-lockup small{display:block;color:var(--hfm-muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hfm-brand-mark{display:grid;place-items:center;width:48px;height:48px;border:2px solid var(--hfm-green);border-radius:50%;color:var(--hfm-green);background:#f8f6e9}.hfm-brand-mark .hfm-icon{width:34px;height:34px}.hfm-sync-bar{position:relative;z-index:25;background:#e4eee9;border-color:#c6dcd5;padding:8px 16px}.hfm-sync-bar button{display:inline-flex;align-items:center;gap:5px;background:var(--hfm-green);border-radius:9px}.hfm-sync-bar button .hfm-icon{width:16px;height:16px}.hfm-bottom-nav{position:fixed;inset:auto 0 0;max-width:940px;margin:auto;grid-template-columns:repeat(5,1fr);border:0;border-top:1px solid #d8dfda;box-shadow:0 -7px 25px rgba(31,50,46,.08);z-index:80;padding:5px max(5px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left));border-radius:24px 24px 0 0}.hfm-bottom-nav button{min-height:70px;padding:8px 4px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#a3aaa7;border:0!important;background:#fff!important}.hfm-bottom-nav button .hfm-icon{width:27px;height:27px}.hfm-bottom-nav button span{font-size:11px}.hfm-bottom-nav button.active{color:var(--hfm-green)!important}.hfm-bottom-nav button.is-primary{width:76px;height:76px;min-height:76px;justify-self:center;align-self:end;margin-top:-28px;border:8px solid var(--hfm-beige)!important;border-radius:50%!important;background:var(--hfm-green)!important;color:#fff!important;box-shadow:0 8px 18px rgba(11,111,99,.24)}.hfm-bottom-nav button.is-primary .hfm-icon{width:38px;height:38px}.hfm-bottom-nav button.is-primary span{display:none}.hfm-bottom-nav em{position:absolute;margin:-39px 25px 0 0}.hfm-panel-title{display:flex;align-items:center;gap:10px;margin:3px 0 17px}.hfm-panel-title>.hfm-icon{width:30px;height:30px;color:var(--hfm-green)}.hfm-panel-title h2{margin:0!important;font-size:25px!important}.hfm-welcome-card{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:23px;border-radius:22px;background:linear-gradient(135deg,var(--hfm-green-dark),var(--hfm-green));color:#fff;box-shadow:var(--hfm-shadow);overflow:hidden}.hfm-welcome-card small{opacity:.82}.hfm-welcome-card h2{font-size:27px!important;margin:5px 0!important}.hfm-welcome-card p{margin:0;opacity:.86}.hfm-welcome-card>span{display:grid;place-items:center;width:110px;height:110px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;margin:-24px}.hfm-welcome-card>span .hfm-icon{width:78px;height:78px;opacity:.8}.hfm-section-heading{display:flex;justify-content:space-between;align-items:center;margin:24px 2px 12px}.hfm-section-heading h2{font-size:20px!important;margin:0!important}.hfm-section-heading button{border:0;background:transparent;color:var(--hfm-green);font-weight:800;cursor:pointer}.hfm-mobile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.hfm-mobile-stat{position:relative;background:#fff;border:1px solid rgba(11,111,99,.12);border-radius:17px;padding:15px 12px;min-height:108px;box-shadow:0 5px 16px rgba(38,65,59,.05)}.hfm-mobile-stat>.hfm-icon{position:absolute;inset-block-start:12px;inset-inline-end:12px;width:26px;height:26px;color:var(--hfm-green);opacity:.76}.hfm-mobile-stat strong{display:block;font-size:27px;color:var(--hfm-green-dark);margin-top:19px}.hfm-mobile-stat span{display:block;font-size:12px;color:var(--hfm-muted);margin-top:3px}.hfm-home-task-summary{display:grid;gap:8px}.hfm-home-task-summary>button{display:grid;grid-template-columns:10px 1fr auto 20px;align-items:center;gap:9px;text-align:start;background:#fff;border:1px solid #dfe6e1;border-radius:14px;padding:12px 14px;color:var(--hfm-text);cursor:pointer}.hfm-home-task-summary b{font-size:14px}.hfm-home-task-summary small{color:var(--hfm-muted);max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hfm-home-task-summary .hfm-icon{width:17px;height:17px;color:var(--hfm-green)}.hfm-task-dot{width:9px;height:9px;border-radius:50%;background:var(--hfm-green)}.hfm-task-dot.priority-urgent{background:#c82d35}.hfm-task-dot.priority-high{background:#d9861e}.hfm-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hfm-service-card{position:relative;display:flex;align-items:center;gap:12px;min-height:104px;padding:16px;text-decoration:none;text-align:start;color:#fff;background:#91a0a3;border:0;border-radius:16px;box-shadow:0 6px 15px rgba(43,57,56,.11);cursor:pointer}.hfm-service-card:hover{background:#849699;color:#fff}.hfm-service-card .hfm-service-icon{display:grid;place-items:center;min-width:54px;height:54px;border-inline-start:1px solid rgba(255,255,255,.65);padding-inline-start:13px;order:2}.hfm-service-card .hfm-service-icon .hfm-icon{width:42px;height:42px}.hfm-service-card strong{flex:1;font-size:16px;line-height:1.5;order:1}.hfm-service-card>.hfm-service-arrow{position:absolute;inset-block-end:8px;inset-inline-start:8px;width:14px;height:14px;opacity:.45}.hfm-dashboard-hero{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:18px;padding:18px;border:1px solid #dce4df;margin-bottom:15px}.hfm-dashboard-hero strong{display:block;font-size:20px;color:var(--hfm-green)}.hfm-dashboard-hero span{display:block;color:var(--hfm-muted);margin-top:4px}.hfm-dashboard-hero>.hfm-icon{width:50px;height:50px;color:var(--hfm-green)}.hfm-action-icon-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.hfm-action-icon-card{min-height:104px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px!important;background:#fff!important;color:var(--hfm-text)!important;border:1px solid #d7e1dc!important}.hfm-action-icon-card>span{display:grid;place-items:center;width:47px;height:47px;border-radius:14px;background:#e5f0ec;color:var(--hfm-green)}.hfm-action-icon-card .hfm-icon{width:31px;height:31px}.hfm-action-icon-card strong{font-size:12px}.hfm-action-icon-card.active{border-color:var(--hfm-green)!important;box-shadow:inset 0 0 0 1px var(--hfm-green);background:#eef6f3!important}.hfm-action-form{border:0;border-radius:18px;box-shadow:0 5px 20px rgba(39,62,57,.06)}.hfm-routine-preset-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:16px}.hfm-routine-preset-grid button{min-height:72px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:#eff4f2!important;color:var(--hfm-text)!important;border:1px solid #d9e3df!important;padding:7px!important;font-size:10px}.hfm-routine-preset-grid button .hfm-icon{width:25px;height:25px;color:var(--hfm-green)}.hfm-routine-preset-grid button.active{background:var(--hfm-green)!important;color:#fff!important}.hfm-routine-preset-grid button.active .hfm-icon{color:#fff}.hfm-side-drawer{position:fixed;z-index:1002;inset-block:0;inset-inline-start:0;width:min(88vw,380px);background:#fff;box-shadow:12px 0 45px rgba(20,40,36,.22);padding:18px;transform:translateX(-110%);transition:transform .25s ease;overflow:auto}.hfm-app[dir=rtl] .hfm-side-drawer{transform:translateX(110%)}.hfm-side-drawer.open{transform:translateX(0)!important}.hfm-drawer-backdrop{position:fixed;z-index:1001;inset:0;background:rgba(12,27,24,.46);backdrop-filter:blur(2px)}.hfm-drawer-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:15px;border-bottom:1px solid #e4e8e5}.hfm-drawer-head .hfm-brand-lockup{justify-content:flex-start}.hfm-drawer-head button{border:0;background:#eff3f1;border-radius:12px;width:40px;height:40px;display:grid;place-items:center}.hfm-drawer-nav{display:grid;gap:5px;padding:15px 0}.hfm-drawer-link{display:flex;align-items:center;gap:12px;width:100%;padding:11px 10px;border:0;border-radius:11px;background:transparent;color:var(--hfm-text);text-decoration:none;text-align:start;cursor:pointer}.hfm-drawer-link:hover{background:#edf5f2;color:var(--hfm-green)}.hfm-drawer-link .hfm-service-icon{color:var(--hfm-green)}.hfm-drawer-link strong{font-size:14px}.hfm-drawer-logout,.hfm-profile-logout{display:flex;align-items:center;justify-content:center;gap:8px;background:#fff0f0;color:#982630;border-radius:12px;padding:13px;text-decoration:none;font-weight:800}.hfm-drawer-open{overflow:hidden}.hfm-profile-card{text-align:center;background:#fff;padding:24px;border-radius:20px;border:1px solid #dfe5e1}.hfm-profile-avatar{display:grid;place-items:center;width:92px;height:92px;margin:auto;border:3px solid var(--hfm-green);border-radius:50%;color:var(--hfm-green);background:#f1f6f3}.hfm-profile-avatar .hfm-icon{width:59px;height:59px}.hfm-profile-card h2{margin:12px 0 4px!important}.hfm-profile-card p{color:var(--hfm-muted);margin:0}.hfm-profile-section{background:#fff;border-radius:16px;padding:15px;margin-top:12px}.hfm-profile-section h3{margin:0 0 10px}.hfm-profile-section select{width:100%;min-height:48px;border:1px solid #d3ddd8;border-radius:11px;padding:8px}.hfm-profile-action{display:flex;align-items:center;gap:10px;width:100%;border:0;background:#eef5f2;color:var(--hfm-green-dark);border-radius:11px;padding:12px;margin-top:7px;font-weight:800}.hfm-profile-action b{margin-inline-start:auto}.hfm-profile-action .hfm-icon{width:23px;height:23px}.hfm-version{text-align:center;color:var(--hfm-muted);font-size:11px;margin:18px 0 9px}.hfm-login{background:var(--hfm-beige);border:1px solid #d7dfdb;box-shadow:var(--hfm-shadow)}.hfm-login-brand{display:flex;align-items:center;justify-content:center;gap:8px;font-size:29px;color:var(--hfm-green);font-weight:900}.hfm-login-brand .hfm-icon{width:48px;height:48px}.hfm-worker-pens,.hfm-worker-task,.hfm-animal-card,.hfm-empty{box-shadow:0 4px 14px rgba(31,53,49,.04)}
@media(max-width:620px){.hfm-app{max-width:none;margin:0}.hfm-app-main{padding:14px 12px 115px!important}.hfm-true-header{grid-template-columns:42px 1fr 42px;padding:9px 10px}.hfm-brand-lockup h1{font-size:17px}.hfm-brand-lockup small{font-size:9px}.hfm-brand-mark{width:42px;height:42px}.hfm-brand-mark .hfm-icon{width:29px;height:29px}.hfm-sync-bar{padding:6px 10px;overflow-x:auto;flex-wrap:nowrap}.hfm-sync-bar button span{display:none}.hfm-sync-bar button{min-width:35px}.hfm-bottom-nav{border-radius:18px 18px 0 0}.hfm-bottom-nav button{min-height:67px}.hfm-bottom-nav button.is-primary{width:72px;height:72px;min-height:72px}.hfm-welcome-card{padding:18px}.hfm-welcome-card h2{font-size:23px!important}.hfm-welcome-card p{font-size:12px}.hfm-welcome-card>span{width:86px;height:86px}.hfm-welcome-card>span .hfm-icon{width:60px;height:60px}.hfm-mobile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hfm-service-card{min-height:112px;padding:13px;flex-direction:column-reverse;text-align:center;justify-content:center}.hfm-service-card .hfm-service-icon{height:45px;min-width:45px;border:0;padding:0;order:1}.hfm-service-card .hfm-service-icon .hfm-icon{width:39px;height:39px}.hfm-service-card strong{flex:0;font-size:14px;order:2}.hfm-action-icon-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hfm-action-icon-card{min-height:96px!important}.hfm-routine-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hfm-home-task-summary>button{grid-template-columns:10px 1fr 16px}.hfm-home-task-summary small{display:none}.hfm-side-drawer{width:min(91vw,360px)}}
@media(min-width:941px){.hfm-bottom-nav{left:50%;right:auto;transform:translateX(-50%);width:940px}}
.hfm-offline-brand{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--hfm-green);color:#fff;font:900 10px Arial}.hfm-offline-header>div{text-align:center}


/* v0.5.1 full-screen app shell + reports center */
.hfm-app-page .site-footer,
.hfm-app-page footer,
.hfm-app-page #colophon,
.hfm-app-page .footer,
.hfm-app-page .elementor-location-footer{display:none !important}
.hfm-app-page .site-content,
.hfm-app-page .content-area,
.hfm-app-page .entry-content,
.hfm-app-page .site-main > article,
.hfm-app-page .elementor-widget-container{max-width:none !important;width:100% !important;margin:0 !important;padding:0 !important}
.hfm-app-page .entry-content > .hfm-app,
.hfm-app-page .entry-content > .hfm-login{margin:0 auto}
.hfm-app{min-height:100vh}
.hfm-report-panel-card{background:#fff;border:1px solid #d9e3df;border-radius:18px;padding:16px 18px;box-shadow:0 4px 14px rgba(31,53,49,.04);margin-bottom:14px}
.hfm-report-panel-card strong{display:block;font-size:18px;color:var(--hfm-green-dark);margin-bottom:6px}
.hfm-report-panel-card p{margin:0;color:var(--hfm-muted);line-height:1.7}
.hfm-report-builder{background:#fff;border:1px solid #d9e3df;border-radius:18px;padding:16px;box-shadow:0 4px 14px rgba(31,53,49,.04)}
.hfm-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hfm-report-builder label{display:block;font-weight:700}
.hfm-report-builder input,.hfm-report-builder select{width:100%;min-height:48px;margin-top:7px;border:1px solid #cfdad5;border-radius:12px;padding:9px}
.hfm-report-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}
.hfm-report-action{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 16px;border-radius:12px;text-decoration:none;font-weight:800;background:#eef5f2;color:var(--hfm-green-dark);border:1px solid #d5e2dd}
.hfm-report-action.primary{background:var(--hfm-green);color:#fff;border-color:var(--hfm-green)}
.hfm-report-note{display:block;margin-top:10px;color:var(--hfm-muted)}
@media(max-width:620px){.hfm-report-grid{grid-template-columns:1fr}.hfm-report-actions{flex-direction:column}.hfm-report-action{width:100%}}


/* v0.6 finance, mating and bulk pregnancy scan */
.hfm-bulk-scan-session{margin:12px auto;max-width:930px}
.hfm-scan-search{display:flex!important;align-items:center;gap:8px;background:#fff;border:1px solid #ccd9d4;border-radius:13px;padding:7px 11px;margin:12px 0!important}
.hfm-scan-search .hfm-icon{width:24px;height:24px;color:var(--hfm-green)}
.hfm-scan-search input{border:0!important;margin:0!important;outline:0;min-height:42px!important}
.hfm-scan-list{display:grid;gap:9px;max-height:56vh;overflow:auto;padding:3px;margin:12px 0}
.hfm-scan-row{display:grid;grid-template-columns:34px minmax(70px,auto) 1fr minmax(210px,1.4fr);align-items:center;gap:10px;background:#fff;border:1px solid #d8e2dd;border-radius:14px;padding:11px}
.hfm-scan-row.is-selected{border-color:var(--hfm-green);box-shadow:inset 0 0 0 1px var(--hfm-green);background:#eff7f4}
.hfm-scan-row>strong{font-size:20px;color:var(--hfm-green-dark)}
.hfm-scan-row>small{color:var(--hfm-muted)}
.hfm-scan-check{margin:0!important}.hfm-scan-check input{width:22px!important;height:22px!important;margin:0!important}
.hfm-scan-result-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.hfm-scan-result-buttons label{margin:0!important}.hfm-scan-result-buttons input{display:none}
.hfm-scan-result-buttons span{display:block;border:1px solid #ccd8d3;border-radius:10px;padding:9px 7px;text-align:center;font-size:12px;background:#fff}
.hfm-scan-result-buttons input:checked+span{background:var(--hfm-green);border-color:var(--hfm-green);color:#fff}
.hfm-pen-admin-grid,.hfm-grid.hfm-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hfm-wallet-list{display:grid;gap:8px}.hfm-wallet-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #dce5e1;border-radius:13px;padding:12px 14px}.hfm-wallet-list strong,.hfm-wallet-list small{display:block}.hfm-wallet-list small{color:var(--hfm-muted);margin-top:4px}.hfm-wallet-list b.in{color:#16704e}.hfm-wallet-list b.out{color:#b72b35}
@media(max-width:620px){.hfm-scan-row{grid-template-columns:30px 1fr auto}.hfm-scan-row>small{display:none}.hfm-scan-result-buttons{grid-column:1/-1}.hfm-pen-admin-grid,.hfm-grid.hfm-grid-2{grid-template-columns:1fr}}

/* v0.7.0 Saudi decision dashboard, exception center and operational curves */
.hfm-dual-date{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;font-size:11px}.hfm-dual-date span{background:rgba(255,255,255,.12);padding:5px 8px;border-radius:9px}
.hfm-attention-list{display:grid;gap:8px}.hfm-attention-item{display:grid;grid-template-columns:10px minmax(0,1fr) auto 18px;align-items:center;gap:10px;width:100%;text-align:start;border:1px solid #dde5e1;border-radius:14px;background:#fff;color:var(--hfm-text);padding:12px 13px;cursor:pointer;box-shadow:0 4px 13px rgba(31,53,49,.04)}.hfm-attention-item:hover{border-color:#a9c9c0}.hfm-attention-item .hfm-attention-dot{width:9px;height:9px;border-radius:50%;background:#d39527}.hfm-attention-item.priority-urgent .hfm-attention-dot{background:#c32934;box-shadow:0 0 0 4px rgba(195,41,52,.10)}.hfm-attention-item.priority-high .hfm-attention-dot{background:#e08b20}.hfm-attention-item.priority-normal .hfm-attention-dot{background:var(--hfm-green)}.hfm-attention-item strong{display:block;font-size:13px;line-height:1.5}.hfm-attention-item small{display:block;color:var(--hfm-muted);margin-top:3px;font-size:11px}.hfm-attention-item time{font-size:10px;color:var(--hfm-muted);white-space:nowrap}.hfm-attention-item>.hfm-icon{width:16px;height:16px;color:var(--hfm-green)}.hfm-attention-clear{display:flex;align-items:center;gap:10px;background:#e8f5ef;color:#17634f;border:1px solid #c9e5d9;border-radius:14px;padding:16px}.hfm-attention-clear .hfm-icon{width:30px;height:30px}
.hfm-pen-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hfm-pen-status-card{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:10px;text-align:start;border:1px solid #dfe6e2;background:#fff;border-radius:15px;padding:13px;cursor:pointer;color:var(--hfm-text)}.hfm-pen-status-card .hfm-status-light{width:11px;height:11px;border-radius:50%}.hfm-pen-status-card.status-green .hfm-status-light{background:#2e9c66;box-shadow:0 0 0 4px rgba(46,156,102,.10)}.hfm-pen-status-card.status-yellow .hfm-status-light{background:#e0a12b;box-shadow:0 0 0 4px rgba(224,161,43,.11)}.hfm-pen-status-card.status-red .hfm-status-light{background:#c72b36;box-shadow:0 0 0 4px rgba(199,43,54,.11)}.hfm-pen-status-card strong{display:block;font-size:13px}.hfm-pen-status-card small{display:block;color:var(--hfm-muted);font-size:10px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hfm-pen-status-card b{font-size:22px;color:var(--hfm-green-dark)}
.hfm-insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.hfm-insight-card{background:#fff;border:1px solid #dce5e0;border-radius:18px;padding:15px;box-shadow:0 5px 16px rgba(31,53,49,.045);min-width:0}.hfm-insight-title{display:flex;align-items:center;gap:8px;margin-bottom:13px}.hfm-insight-title .hfm-icon{width:25px;height:25px;color:var(--hfm-green)}.hfm-insight-title h3{margin:0!important;font-size:16px!important}
.hfm-mini-bars{height:190px;display:flex;align-items:stretch;gap:7px;padding-top:25px}.hfm-mini-bar{flex:1;min-width:0;display:grid;grid-template-rows:18px 1fr 32px;text-align:center;align-items:end}.hfm-mini-bar>b{font-size:10px;color:var(--hfm-green-dark)}.hfm-mini-bar>span{display:flex;align-items:flex-end;height:100%;background:#f0f4f2;border-radius:8px 8px 3px 3px;overflow:hidden}.hfm-mini-bar>span i{display:block;width:100%;background:linear-gradient(180deg,#36a886,var(--hfm-green));border-radius:8px 8px 3px 3px;min-height:4px}.hfm-mini-bar small{font-size:9px;color:var(--hfm-muted);line-height:1.2;padding-top:5px}
.hfm-funnel{display:grid;gap:9px}.hfm-funnel-row{display:grid;grid-template-columns:92px minmax(0,1fr) 35px;gap:8px;align-items:center}.hfm-funnel-row>span{font-size:11px}.hfm-funnel-row>div{height:13px;background:#edf2ef;border-radius:20px;overflow:hidden}.hfm-funnel-row i{display:block;height:100%;background:linear-gradient(90deg,var(--hfm-green),#57b39a);border-radius:20px}.hfm-funnel-row b{font-size:12px;text-align:end}
.hfm-finance-bars{height:190px;display:flex;gap:8px;align-items:stretch;padding-top:15px}.hfm-finance-month{flex:1;display:grid;grid-template-rows:1fr 24px;text-align:center}.hfm-finance-columns{display:flex;gap:3px;align-items:flex-end;justify-content:center;background:#f1f4f2;border-radius:8px 8px 3px 3px;overflow:hidden;padding:0 4px}.hfm-finance-columns i{display:block;width:42%;border-radius:5px 5px 0 0;min-height:2px}.hfm-finance-columns i.income{background:#2b9c68}.hfm-finance-columns i.expense{background:#c95159}.hfm-finance-month small{font-size:10px;color:var(--hfm-muted);padding-top:5px}.hfm-chart-legend{display:flex;justify-content:center;gap:14px;margin-top:8px;font-size:10px}.hfm-chart-legend span:before{content:'';display:inline-block;width:8px;height:8px;border-radius:2px;margin-inline-end:4px}.hfm-chart-legend .income:before{background:#2b9c68}.hfm-chart-legend .expense:before{background:#c95159}
.hfm-performance-list{display:grid;gap:7px}.hfm-performance-list>div{display:grid;grid-template-columns:70px minmax(0,1fr) auto;align-items:center;gap:8px;background:#f6f8f7;border-radius:11px;padding:9px}.hfm-performance-list strong{font-size:13px;color:var(--hfm-green-dark)}.hfm-performance-list span{font-size:10px;color:var(--hfm-muted)}.hfm-performance-list b{font-size:11px;white-space:nowrap}
.hfm-weekly-card{margin-top:18px;background:linear-gradient(135deg,#075349,#0b7567);color:#fff;border-radius:19px;padding:16px;box-shadow:0 8px 22px rgba(7,83,73,.17)}.hfm-weekly-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.hfm-weekly-head>div{display:flex;align-items:center;gap:9px}.hfm-weekly-head .hfm-icon{width:30px;height:30px}.hfm-weekly-head strong,.hfm-weekly-head small{display:block}.hfm-weekly-head small{opacity:.75;font-size:10px;margin-top:2px}.hfm-weekly-head button{border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:#fff;border-radius:10px;padding:8px 10px;font-weight:800;cursor:pointer}.hfm-weekly-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}.hfm-weekly-stats>div{background:rgba(255,255,255,.10);border-radius:12px;padding:10px}.hfm-weekly-stats strong{display:block;font-size:16px}.hfm-weekly-stats small{display:block;font-size:9px;opacity:.78;margin-top:3px}
.hfm-report-shortcuts{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.hfm-report-shortcuts button{border:1px solid #cbdcd5;background:#eef5f2;color:var(--hfm-green-dark);border-radius:10px;padding:8px 10px;font-weight:800;cursor:pointer}.hfm-report-shortcuts button:last-child{background:var(--hfm-green);color:#fff;border-color:var(--hfm-green)}
@media(max-width:620px){.hfm-attention-item{grid-template-columns:10px minmax(0,1fr) 16px}.hfm-attention-item time{display:none}.hfm-pen-status-grid{grid-template-columns:1fr}.hfm-insight-grid{grid-template-columns:1fr}.hfm-weekly-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hfm-mini-bars,.hfm-finance-bars{height:165px}.hfm-funnel-row{grid-template-columns:82px minmax(0,1fr) 30px}}


/* v0.7.1 mobile usability, clear labels and icon descriptions */
.hfm-app{min-height:100dvh;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-tap-highlight-color:transparent}
.hfm-app button,.hfm-app a,.hfm-app input,.hfm-app select,.hfm-app textarea{font:inherit}
.hfm-app button,.hfm-app a{touch-action:manipulation}
.hfm-module-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px;order:1}
.hfm-module-copy strong{display:block}
.hfm-module-copy small{display:block;font-size:11px;line-height:1.45;color:rgba(255,255,255,.83);font-weight:500}
.hfm-drawer-link .hfm-module-copy small{color:var(--hfm-muted);font-size:10px}
.hfm-action-icon-card small{display:block;font-size:10px;line-height:1.35;color:var(--hfm-muted);font-weight:500;text-align:center}
.hfm-action-icon-card.active small{color:var(--hfm-green-dark)}
.hfm-action-icon-wrap{display:grid;place-items:center;width:47px;height:47px;border-radius:14px;background:#e5f0ec;color:var(--hfm-green)}
.hfm-routine-preset-grid button small{display:none;font-size:9px;line-height:1.3;color:inherit;opacity:.82;text-align:center}
[data-hfm-tooltip]{position:relative}
@media(hover:hover) and (pointer:fine){
  [data-hfm-tooltip]:not([data-hfm-tooltip=""]):hover::after,[data-hfm-tooltip]:not([data-hfm-tooltip=""]):focus-visible::after{content:attr(data-hfm-tooltip);position:absolute;z-index:10000;inset-inline-start:50%;inset-block-end:calc(100% + 10px);transform:translateX(-50%);width:max-content;max-width:260px;background:#142721;color:#fff;padding:8px 10px;border-radius:9px;font-size:11px;line-height:1.5;font-weight:600;white-space:normal;box-shadow:0 8px 24px rgba(0,0,0,.22);pointer-events:none}
  [data-hfm-tooltip]:not([data-hfm-tooltip=""]):hover::before,[data-hfm-tooltip]:not([data-hfm-tooltip=""]):focus-visible::before{content:'';position:absolute;z-index:10001;inset-inline-start:50%;inset-block-end:calc(100% + 4px);transform:translateX(-50%);border:6px solid transparent;border-top-color:#142721;pointer-events:none}
  .hfm-bottom-nav [data-hfm-tooltip]::after{inset-block-end:calc(100% + 13px)}
}
.hfm-service-card{align-items:center}
.hfm-service-card:focus-visible,.hfm-action-icon-card:focus-visible,.hfm-bottom-nav button:focus-visible,.hfm-routine-preset-grid button:focus-visible{outline:3px solid rgba(11,111,99,.28);outline-offset:2px}
.hfm-bottom-nav{padding-bottom:max(0px,env(safe-area-inset-bottom));min-height:76px}
.hfm-bottom-nav button{min-width:0;min-height:64px}
.hfm-bottom-nav button .hfm-icon{width:25px;height:25px}
.hfm-bottom-nav button span{font-size:10px;line-height:1.25;text-align:center;white-space:normal}
.hfm-app-main{padding-bottom:calc(105px + env(safe-area-inset-bottom))!important}
@media(max-width:760px){
  .hfm-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hfm-service-card{min-height:150px;padding:14px 12px;flex-direction:column;text-align:center;justify-content:flex-start;gap:8px}
  .hfm-service-card .hfm-service-icon{order:1;border:0;padding:0;min-width:48px;height:48px}
  .hfm-service-card .hfm-module-copy{order:2;align-items:center;flex:0}
  .hfm-service-card .hfm-module-copy strong{font-size:14px;line-height:1.35}
  .hfm-service-card .hfm-module-copy small{font-size:10px;line-height:1.4;color:rgba(255,255,255,.88);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .hfm-service-card>.hfm-service-arrow{display:none}
  .hfm-action-icon-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .hfm-action-icon-card{min-height:152px!important;padding:13px 10px!important;justify-content:flex-start!important}
  .hfm-action-icon-card strong{font-size:13px;line-height:1.35}
  .hfm-action-icon-card small{font-size:10px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .hfm-routine-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hfm-routine-preset-grid button{min-height:116px!important;padding:10px!important}
  .hfm-routine-preset-grid button span{font-size:12px;font-weight:800}
  .hfm-routine-preset-grid button small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .hfm-true-header{position:sticky;top:0;z-index:50}
  .hfm-sync-bar{position:sticky;top:61px;z-index:49}
  .hfm-side-drawer{padding-bottom:calc(22px + env(safe-area-inset-bottom))}
}
@media(max-width:390px){
  .hfm-app-main{padding-inline:9px!important}
  .hfm-service-grid,.hfm-action-icon-grid{gap:8px}
  .hfm-service-card{min-height:158px;padding-inline:8px}
  .hfm-bottom-nav button span{font-size:9px}
  .hfm-bottom-nav button .hfm-icon{width:23px;height:23px}
}
@media(min-width:761px){.hfm-routine-preset-grid button:hover small,.hfm-routine-preset-grid button:focus-visible small{display:block}}


/* v0.7.3 clickable statistics and animal-card report scope */
.hfm-stat-link{text-decoration:none;color:inherit;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}
.hfm-stat-link:hover,.hfm-stat-link:focus-visible{transform:translateY(-2px);box-shadow:0 10px 24px rgba(16,75,64,.13);outline:2px solid rgba(11,111,99,.28);outline-offset:2px}
.hfm-stat-link small{display:block;margin-top:6px;color:var(--hfm-green);font-size:10px;font-weight:800}
.hfm-stat-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #d9e3df;border-radius:17px;padding:15px;margin-bottom:12px}
.hfm-stat-detail-head>div:first-child strong{display:block;font-size:32px;color:var(--hfm-green-dark)}
.hfm-stat-detail-head>div:first-child span{color:var(--hfm-muted);font-size:12px}
.hfm-stat-animal-list{display:grid;gap:9px;margin-top:12px}
.hfm-stat-animal-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #dce5e1;border-radius:15px;padding:13px 14px}
.hfm-stat-animal-row>div{min-width:0}
.hfm-stat-animal-row strong{display:block;font-size:19px;color:var(--hfm-green-dark)}
.hfm-stat-animal-row span,.hfm-stat-animal-row small{display:block;color:var(--hfm-muted);margin-top:3px;line-height:1.5}
.hfm-stat-animal-row a,.hfm-back-summary{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;padding:9px 12px;background:#e8f2ee;color:var(--hfm-green-dark);font-weight:800;text-decoration:none;white-space:nowrap}
.hfm-back-summary{margin-top:14px;background:var(--hfm-green);color:#fff}
@media(max-width:620px){.hfm-stat-detail-head{align-items:stretch;flex-direction:column}.hfm-stat-detail-head .hfm-report-actions{display:grid;grid-template-columns:1fr 1fr}.hfm-stat-animal-row{align-items:flex-start;flex-direction:column}.hfm-stat-animal-row a{width:100%}.hfm-mobile-stat small{font-size:9px}}


/* v0.7.4 inline report preview */
.hfm-report-view{appearance:none;cursor:pointer;font-family:inherit}
.hfm-report-view .hfm-icon{width:20px;height:20px;margin-inline-end:7px}
.hfm-report-preview{margin-top:16px;background:#fff;border:1px solid #d5e0db;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(31,53,49,.08)}
.hfm-report-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;background:#edf5f2;border-bottom:1px solid #d7e2dd}
.hfm-report-preview-head>div:first-child{display:grid;gap:3px}
.hfm-report-preview-head strong{font-size:16px;color:var(--hfm-green-dark)}
.hfm-report-preview-head small{color:var(--hfm-muted);font-size:12px}
.hfm-report-preview-head>div:last-child{display:flex;align-items:center;gap:8px}
.hfm-report-preview-head a{color:var(--hfm-green);font-weight:800;text-decoration:none;font-size:12px}
.hfm-report-preview-head button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:10px;background:#fff;color:var(--hfm-green-dark);cursor:pointer}
.hfm-report-preview-head button .hfm-icon{width:21px;height:21px}
.hfm-report-preview-loading{padding:28px;text-align:center;color:var(--hfm-muted);font-weight:700}
.hfm-report-preview iframe{display:block;width:100%;height:min(74vh,900px);min-height:620px;border:0;background:#fff}
@media(max-width:620px){.hfm-report-preview-head{align-items:flex-start;flex-direction:column}.hfm-report-preview-head>div:last-child{width:100%;justify-content:space-between}.hfm-report-preview iframe{height:72vh;min-height:540px}}

/* v0.7.7 interactive, full-screen application login */
.hfm-app-page .site-header,
.hfm-app-page #masthead,
.hfm-app-page .header-area,
.hfm-app-page .elementor-location-header,
.hfm-app-page .page-header,
.hfm-app-page .entry-header,
.hfm-app-page .entry-title{display:none!important}
.hfm-app-page{background:#edf3f0!important}
.hfm-app-page .site,
.hfm-app-page #page,
.hfm-app-page .site-content,
.hfm-app-page .content-area,
.hfm-app-page .site-main,
.hfm-app-page article,
.hfm-app-page .entry-content{min-height:100vh!important;background:transparent!important}
.hfm-login-shell{width:100%;min-height:100vh;display:grid;grid-template-columns:minmax(340px,1.05fr) minmax(390px,.95fr);font-family:Arial,"Noto Sans Arabic",Tahoma,sans-serif;color:var(--hfm-text);background:#edf3f0;overflow:hidden}
.hfm-login-shell *{box-sizing:border-box}
.hfm-login-visual{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;padding:42px clamp(32px,6vw,82px);color:#fff;background:linear-gradient(145deg,#064c43 0%,#0b6f63 58%,#268e7d 100%);overflow:hidden}
.hfm-login-visual:before,.hfm-login-visual:after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.hfm-login-visual:before{width:420px;height:420px;inset:-160px auto auto -130px;background:rgba(255,255,255,.08)}
.hfm-login-visual:after{width:520px;height:520px;inset:auto -230px -240px auto;border:80px solid rgba(255,255,255,.055)}
.hfm-login-logo,.hfm-login-copy,.hfm-login-features{position:relative;z-index:1}
.hfm-login-logo{display:flex;align-items:center;gap:13px}.hfm-login-logo>.hfm-icon{width:58px;height:58px;padding:9px;border:2px solid rgba(255,255,255,.8);border-radius:50%;background:rgba(255,255,255,.08)}
.hfm-login-logo strong{display:block;font-size:31px;line-height:1;font-weight:900}.hfm-login-logo span{display:block;font-size:12px;opacity:.78;margin-top:7px}
.hfm-login-copy{max-width:610px;margin:60px 0 38px}.hfm-login-kicker{display:inline-flex;align-items:center;padding:7px 12px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(255,255,255,.09);font-size:12px;font-weight:800}.hfm-login-copy h1{font-size:clamp(34px,4.2vw,58px)!important;line-height:1.25!important;margin:20px 0 16px!important;color:#fff!important;font-weight:900!important}.hfm-login-copy p{font-size:16px;line-height:1.9;margin:0;max-width:560px;opacity:.84}
.hfm-login-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hfm-login-features article{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:rgba(255,255,255,.08);backdrop-filter:blur(8px)}.hfm-login-features article>span{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:11px;background:rgba(255,255,255,.12)}.hfm-login-features .hfm-icon{width:23px;height:23px}.hfm-login-features strong,.hfm-login-features small{display:block}.hfm-login-features strong{font-size:12px;margin-bottom:5px}.hfm-login-features small{font-size:10px;line-height:1.55;opacity:.72}
.hfm-login-panel{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:30px clamp(20px,5vw,70px);background:radial-gradient(circle at 85% 10%,#fff 0,#f7faf8 42%,#edf3f0 100%)}
.hfm-login-card{width:min(100%,500px);padding:34px clamp(22px,4vw,40px);border:1px solid #dce6e2;border-radius:26px;background:rgba(255,255,255,.96);box-shadow:0 24px 70px rgba(19,54,49,.13)}
.hfm-login-card-head{display:flex;align-items:center;gap:13px;margin-bottom:25px}.hfm-login-card-head>span{display:grid;place-items:center;width:54px;height:54px;border-radius:17px;background:#e6f1ed;color:var(--hfm-green)}.hfm-login-card-head .hfm-icon{width:31px;height:31px}.hfm-login-card-head h2{margin:0 0 5px!important;font-size:27px!important;color:var(--hfm-green-dark)!important}.hfm-login-card-head p{margin:0;color:var(--hfm-muted);font-size:13px}
.hfm-login-alert{display:flex;align-items:flex-start;gap:9px;margin-bottom:18px;padding:12px 13px;border:1px solid #f2c9cc;border-radius:13px;background:#fff2f3;color:#8c2630;font-size:12px;line-height:1.7}.hfm-login-alert .hfm-icon{width:20px;height:20px;flex:0 0 auto;margin-top:1px}
.hfm-current-account{margin-bottom:18px;padding:13px 14px;border:1px solid #d6e2de;border-radius:13px;background:#f5f8f7}.hfm-current-account span,.hfm-current-account strong,.hfm-current-account small{display:block}.hfm-current-account span{font-size:11px;color:var(--hfm-muted)}.hfm-current-account strong{font-size:15px;color:var(--hfm-green-dark);margin:4px 0}.hfm-current-account small{font-size:10px;color:var(--hfm-muted);line-height:1.5}
.hfm-interactive-login{display:grid;gap:16px}.hfm-login-field{display:block;margin:0!important;font-weight:800;font-size:12px;color:#33423e}.hfm-login-field>span{display:block;margin-bottom:7px}.hfm-login-field>div{position:relative;display:flex;align-items:center;border:1px solid #ccd9d4;border-radius:14px;background:#fff;transition:border-color .18s,box-shadow .18s,background .18s}.hfm-login-field>div:focus-within{border-color:var(--hfm-green);box-shadow:0 0 0 4px rgba(11,111,99,.11);background:#fdfffe}.hfm-login-field>div>.hfm-icon{width:21px;height:21px;margin-inline:13px 8px;color:#71817c}.hfm-login-field input{width:100%!important;min-width:0!important;height:52px!important;margin:0!important;padding:0 5px!important;border:0!important;outline:0!important;background:transparent!important;color:var(--hfm-text)!important;font-size:14px!important;box-shadow:none!important}.hfm-login-field input::placeholder{color:#9aa7a3}.hfm-password-toggle{height:38px;margin-inline-end:7px;padding:0 10px;border:0;border-radius:9px;background:#edf4f1;color:var(--hfm-green-dark);font-size:11px;font-weight:800;cursor:pointer}.hfm-password-toggle:hover{background:#deece7}.hfm-caps-warning{display:block;margin-top:6px;color:#a26311;font-size:10px;font-weight:700}
.hfm-login-options{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:var(--hfm-muted)}.hfm-login-options label{display:flex;align-items:center;gap:6px;margin:0!important;cursor:pointer;font-weight:700}.hfm-login-options input{width:17px!important;height:17px!important;margin:0!important;accent-color:var(--hfm-green)}
.hfm-login-inline-error{padding:10px 12px;border-radius:11px;background:#fff1f2;color:#922b34;font-size:11px;line-height:1.6}
.hfm-login-submit{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:54px;padding:12px 16px;border:0;border-radius:14px;background:linear-gradient(135deg,var(--hfm-green-dark),var(--hfm-green));color:#fff;font-size:14px;font-weight:900;cursor:pointer;box-shadow:0 9px 22px rgba(11,111,99,.22);transition:transform .15s,box-shadow .15s,opacity .15s}.hfm-login-submit:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(11,111,99,.28)}.hfm-login-submit:disabled{cursor:wait;opacity:.78;transform:none}.hfm-login-submit>.hfm-icon{position:absolute;inset-inline-end:15px;width:21px;height:21px}.hfm-login-submit i{display:none;width:19px;height:19px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:hfm-login-spin .75s linear infinite}.hfm-login-submit.is-loading i{display:block}.hfm-login-submit.is-loading>.hfm-icon{display:none}@keyframes hfm-login-spin{to{transform:rotate(360deg)}}
.hfm-login-security{display:flex;align-items:flex-start;justify-content:center;gap:7px;margin-top:19px;padding-top:17px;border-top:1px solid #e5ebe8;color:var(--hfm-muted);font-size:10px;line-height:1.55;text-align:center}.hfm-login-security .hfm-icon{width:17px;height:17px;flex:0 0 auto;color:var(--hfm-green)}
@media(max-width:980px){.hfm-login-shell{grid-template-columns:1fr}.hfm-login-visual{min-height:auto;padding:27px 25px 32px}.hfm-login-copy{margin:38px 0 27px}.hfm-login-copy h1{font-size:36px!important}.hfm-login-panel{min-height:auto;padding:30px 18px 42px}.hfm-login-features{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.hfm-login-visual{padding:22px 18px 27px}.hfm-login-logo>.hfm-icon{width:49px;height:49px}.hfm-login-logo strong{font-size:27px}.hfm-login-copy{margin:29px 0 23px}.hfm-login-copy h1{font-size:29px!important;line-height:1.35!important;margin:14px 0 10px!important}.hfm-login-copy p{font-size:13px;line-height:1.75}.hfm-login-features{grid-template-columns:1fr;gap:8px}.hfm-login-features article{padding:11px}.hfm-login-panel{padding:18px 12px 34px}.hfm-login-card{padding:25px 18px;border-radius:21px}.hfm-login-card-head h2{font-size:23px!important}.hfm-login-options{align-items:flex-start;flex-direction:column}.hfm-login-submit{min-height:52px}.hfm-app-page .entry-content>.hfm-login-shell{margin:0!important}}

/* Operations calendar planner */
.hfm-calendar-card{margin:18px 0;background:linear-gradient(145deg,#ffffff,#f4faf8);border:1px solid #d8e8e3;border-radius:22px;padding:18px;box-shadow:0 10px 28px rgba(24,72,62,.08)}
.hfm-calendar-card-head{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.hfm-calendar-card-head strong{display:block;font-size:1.15rem;color:#0a6e63}
.hfm-calendar-card-head p{margin:4px 0 0;color:#65756f;font-size:.9rem}
.hfm-calendar-icon{width:50px;height:50px;border-radius:16px;background:#e3f4ef;color:#08766b;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.hfm-calendar-icon svg{width:27px;height:27px}
.hfm-calendar-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}
.hfm-calendar-presets button{border:1px solid #cfe1dc;background:#fff;color:#36544d;border-radius:12px;min-height:44px;font-weight:700;cursor:pointer}
.hfm-calendar-presets button.active{background:#08766b;color:#fff;border-color:#08766b;box-shadow:0 6px 14px rgba(8,118,107,.18)}
.hfm-calendar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hfm-calendar-grid label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;font-weight:700;color:#35524b}
.hfm-calendar-grid input,.hfm-calendar-grid select,.hfm-calendar-grid textarea{width:100%;min-height:46px;border:1px solid #cddfd9;border-radius:12px;background:#fff;padding:10px 12px;font:inherit;color:#17211f;box-sizing:border-box}
.hfm-calendar-grid textarea{min-height:90px;resize:vertical}
.hfm-calendar-grid input[readonly]{background:#f0f6f4;color:#4f625d}
.hfm-calendar-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.hfm-calendar-actions button,.hfm-calendar-actions a{min-height:44px;border-radius:12px;padding:10px 15px;border:1px solid #bfd7d1;background:#fff;color:#0b665d;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:700;cursor:pointer}
.hfm-calendar-actions .primary{background:#08766b;color:#fff;border-color:#08766b}
.hfm-calendar-actions svg{width:19px;height:19px}
.hfm-calendar-preview{margin-top:18px;border:1px solid #d5e4df;border-radius:18px;overflow:hidden;background:#fff}
.hfm-calendar-preview-head{display:flex;align-items:center;justify-content:space-between;padding:12px 15px;background:#edf6f3;border-bottom:1px solid #d5e4df}
.hfm-calendar-preview-head button{border:0;background:transparent;color:#315a51;cursor:pointer}
.hfm-calendar-preview-head svg{width:22px;height:22px}
.hfm-calendar-preview>[data-hfm-calendar-loading]{padding:30px;text-align:center;color:#60716b}
.hfm-calendar-preview iframe{display:block;width:100%;height:72vh;min-height:650px;border:0;background:#fff}
@media(max-width:850px){.hfm-calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.hfm-calendar-card{padding:14px;border-radius:18px}.hfm-calendar-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.hfm-calendar-grid{grid-template-columns:1fr}.hfm-calendar-actions{display:grid;grid-template-columns:1fr}.hfm-calendar-preview iframe{height:70vh;min-height:520px}}

/* Audited interactive states: visible feedback without dead links. */
.hfm-report-actions a.is-disabled,
.hfm-calendar-actions a.is-disabled {
  opacity: .48;
  cursor: not-allowed;
  filter: grayscale(.35);
}

/* v0.8.1: restore full vertical scrolling and keep the farm app distraction-free. */
html.hfm-scroll-enabled:not(.hfm-drawer-open),
body.hfm-app-page {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y !important;
}
html.hfm-scroll-enabled.hfm-drawer-open {
  overflow: hidden !important;
}
body.hfm-app-page .site,
body.hfm-app-page #page,
body.hfm-app-page .site-content,
body.hfm-app-page .content-area,
body.hfm-app-page .site-main,
body.hfm-app-page article,
body.hfm-app-page .entry-content,
body.hfm-app-page .elementor,
body.hfm-app-page .elementor-section-wrap,
body.hfm-app-page .elementor-widget-wrap,
body.hfm-app-page .elementor-widget-container {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}
body.hfm-app-page .hfm-app {
  height: auto !important;
  min-height: 100dvh !important;
  max-height: none !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
  overscroll-behavior-y: auto !important;
}
body.hfm-app-page .hfm-app-main {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Hide only the Hostinger assistant widget itself. Never target generic wrappers or the app page. */
body.hfm-app-page #wpadminbar,
body.hfm-app-page #kodee,
body.hfm-app-page [id^="kodee-"],
body.hfm-app-page [id*="hostinger-kodee"],
body.hfm-app-page [data-testid*="kodee" i],
body.hfm-app-page [aria-label*="kodee" i],
body.hfm-app-page [title*="kodee" i],
body.hfm-app-page [id*="hostinger-ai-assistant" i],
body.hfm-app-page [id*="hostinger_assistant" i],
body.hfm-app-page [id*="hpanel-assistant" i],
body.hfm-app-page iframe[src*="hostinger"][src*="assistant" i],
body.hfm-app-page iframe[src*="hostinger"][src*="kodee" i] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
html.hfm-scroll-enabled:not(.hfm-drawer-open),
body.hfm-app-page {
  position: static !important;
  width: 100% !important;
}


/* Abu Faisal personalized greeting and clean joke library. */
html.hfm-joke-open,
html.hfm-joke-open body {
  overflow: hidden !important;
}

.hfm-joke-modal[hidden] {
  display: none !important;
}

.hfm-joke-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.hfm-joke-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .62);
  backdrop-filter: blur(5px);
}

.hfm-joke-dialog {
  position: relative;
  width: min(100%, 470px);
  max-height: min(88dvh, 720px);
  overflow: auto;
  padding: 30px 24px 24px;
  border: 1px solid rgba(14, 122, 109, .16);
  border-radius: 28px;
  background: #fffef8;
  box-shadow: 0 24px 70px rgba(17, 24, 39, .28);
  text-align: center;
  color: #17201d;
  animation: hfmJokeIn .24s ease-out both;
}

@keyframes hfmJokeIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hfm-joke-close {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #edf2ef;
  color: #17201d;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hfm-joke-close svg { width: 20px; height: 20px; }
.hfm-joke-emoji { font-size: 50px; line-height: 1; margin-bottom: 10px; }
.hfm-joke-dialog > small { display: block; color: #0e7a6d; font-weight: 800; margin-bottom: 6px; }
.hfm-joke-dialog h2 { margin: 0 0 8px; color: #111827; font-size: clamp(25px, 6vw, 34px); }
.hfm-joke-dialog p { margin: 0 auto 18px; color: #4b5752; line-height: 1.85; font-size: 16px; }

.hfm-joke-text {
  margin: 16px 0 18px;
  padding: 18px;
  border-radius: 20px;
  background: #eef7f3;
  border: 1px solid #cfe8df;
  color: #14211d;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.9;
}

.hfm-joke-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hfm-joke-actions button {
  min-height: 48px;
  border-radius: 15px;
  border: 1px solid #cfd8d3;
  background: #f3f5f3;
  color: #17201d;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hfm-joke-actions button.primary {
  background: #0e7a6d;
  border-color: #0e7a6d;
  color: #fff;
}

.hfm-joke-count { display: block; margin-top: 14px; color: #6b756f; font-size: 12px; }

.hfm-welcome-joke {
  margin-top: 12px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(14, 122, 109, .24);
  border-radius: 999px;
  background: #fffef8;
  color: #0a6258;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hfm-joke-library-card p { color: #4f5d57; line-height: 1.7; }
.hfm-open-joke-library { justify-content: center; background: #eef7f3 !important; color: #123a33 !important; }
.hfm-open-joke-library > span { font-size: 24px; }

@media (max-width: 520px) {
  .hfm-joke-modal { padding: 12px; align-items: end; }
  .hfm-joke-dialog { width: 100%; border-radius: 26px 26px 18px 18px; padding: 28px 18px 20px; }
  .hfm-joke-actions { grid-template-columns: 1fr; }
  .hfm-joke-actions button.primary { order: -1; }
}


/* v0.8.5 — hard contrast fix for the Last 7 Days summary.
 * Keep these rules at the end of the stylesheet so WordPress themes and
 * optimisation plugins cannot leave white text on a light/grey card. */
body .hfm-app article.hfm-weekly-card,
body.hfm-app-page .hfm-app article.hfm-weekly-card {
  color-scheme: light !important;
  background: #e9eeeb !important;
  background-image: none !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  border: 1px solid #cbd5d0 !important;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .08) !important;
}

body .hfm-app article.hfm-weekly-card .hfm-weekly-head,
body .hfm-app article.hfm-weekly-card .hfm-weekly-head > div,
body .hfm-app article.hfm-weekly-card .hfm-weekly-head span {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

body .hfm-app article.hfm-weekly-card .hfm-weekly-head strong {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body .hfm-app article.hfm-weekly-card .hfm-weekly-head small {
  color: #4b5a54 !important;
  -webkit-text-fill-color: #4b5a54 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body .hfm-app article.hfm-weekly-card .hfm-weekly-head .hfm-icon,
body .hfm-app article.hfm-weekly-card .hfm-weekly-head svg {
  color: #0b6f63 !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}

body .hfm-app article.hfm-weekly-card .hfm-weekly-stats > div {
  background: #ffffff !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  border: 1px solid #d3ddd8 !important;
  box-shadow: none !important;
}

body .hfm-app article.hfm-weekly-card .hfm-weekly-stats strong {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body .hfm-app article.hfm-weekly-card .hfm-weekly-stats small {
  color: #4b5a54 !important;
  -webkit-text-fill-color: #4b5a54 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body .hfm-app article.hfm-weekly-card .hfm-weekly-head button {
  background: #0b6f63 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid #07594f !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body .hfm-app article.hfm-weekly-card .hfm-weekly-head button:hover,
body .hfm-app article.hfm-weekly-card .hfm-weekly-head button:focus-visible {
  background: #07594f !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

@media print {
  body .hfm-app article.hfm-weekly-card {
    background: #f1f3f2 !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    border-color: #8d9893 !important;
    box-shadow: none !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  body .hfm-app article.hfm-weekly-card .hfm-weekly-stats > div {
    background: #ffffff !important;
    border-color: #aab3af !important;
  }
}


/* v0.8.6: direct animal entry for the farm manager */
.hfm-add-animal-cta {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: right;
  border: 1px solid #96cfc4 !important; border-radius: 18px !important;
  background: linear-gradient(135deg,#e9f7f3,#ffffff) !important; color: #12352f !important;
  padding: 16px !important; margin: 0 0 16px; box-shadow: 0 8px 24px rgba(11,111,99,.09);
}
.hfm-add-animal-cta .hfm-icon,.hfm-add-animal-cta svg { width: 30px; height: 30px; color: #0b6f63 !important; flex: 0 0 auto; }
.hfm-add-animal-cta span { display: grid; gap: 3px; }
.hfm-add-animal-cta strong { color: #102a25 !important; font-size: 1rem; }
.hfm-add-animal-cta small { color: #526b65 !important; line-height: 1.55; }
.hfm-form-intro { display:flex; align-items:flex-start; gap:12px; padding:14px; margin-bottom:14px; border-radius:16px; background:#eef8f5; color:#173c35; }
.hfm-form-intro .hfm-icon,.hfm-form-intro svg { width:30px; height:30px; color:#0b6f63; flex:0 0 auto; }
.hfm-form-intro h3 { margin:0 0 4px; color:#102a25; }
.hfm-form-intro p { margin:0; color:#526b65; }
.hfm-tag-rule-note { display:grid; gap:4px; padding:12px 14px; border:1px dashed #91bcb3; border-radius:14px; background:#fafdfc; color:#314e48; }
.hfm-tag-rule-note strong { color:#0b6f63; }
.hfm-offline-add-animal { border:2px solid #0b6f63 !important; background:#f3fbf8 !important; }
.hfm-offline-add-animal > summary { color:#0b6f63 !important; font-weight:800; }
.hfm-offline-form-help { color:#526b65; margin:0 0 10px; }
@media (max-width: 640px) {
  .hfm-add-animal-cta { border-radius:16px !important; padding:14px !important; }
}


/* v0.8.7 — quick add, duplicate-number warning, and final contrast pass */
.hfm-quick-add-sheet[hidden],.hfm-duplicate-modal[hidden]{display:none!important}
.hfm-quick-add-sheet{position:fixed;z-index:10020;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:16px max(12px,env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
.hfm-quick-add-backdrop,.hfm-duplicate-backdrop{position:absolute;inset:0;border:0!important;background:rgba(12,27,24,.52)!important;backdrop-filter:blur(3px);padding:0!important;border-radius:0!important}
.hfm-quick-add-dialog{position:relative;width:min(100%,620px);max-height:min(78vh,720px);overflow:auto;background:#fff;border:1px solid #d7e2dd;border-radius:26px 26px 18px 18px;padding:12px 16px 20px;box-shadow:0 24px 70px rgba(15,32,28,.28)}
.hfm-quick-add-handle{width:54px;height:5px;border-radius:8px;background:#c9d3cf;margin:0 auto 12px}
.hfm-quick-add-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.hfm-quick-add-dialog header h2{margin:0!important;color:#12241f!important;font-size:22px!important}
.hfm-quick-add-dialog header p{margin:5px 0 0;color:#536660!important}
.hfm-quick-add-dialog header>button{display:grid;place-items:center;width:42px;height:42px;border:0!important;border-radius:13px!important;background:#edf3f0!important;color:#173d34!important;padding:0!important}
.hfm-quick-add-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.hfm-quick-add-grid>button{display:grid;grid-template-columns:50px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:11px;text-align:start;min-height:96px;border:1px solid #d7e2dd!important;border-radius:17px!important;background:#f8fbf9!important;color:#17231f!important;padding:13px!important;box-shadow:none!important}
.hfm-quick-add-grid>button:hover,.hfm-quick-add-grid>button:focus-visible{background:#edf7f3!important;border-color:#7bb9ab!important}
.hfm-quick-add-grid>button>span{grid-row:1/3;display:grid;place-items:center;width:50px;height:50px;border-radius:15px;background:#e3f1ec;color:#0b6f63}
.hfm-quick-add-grid>button .hfm-icon{width:30px;height:30px}
.hfm-quick-add-grid>button strong{color:#142721!important;font-size:14px}
.hfm-quick-add-grid>button small{color:#586b65!important;line-height:1.45;margin-top:3px}
.hfm-quick-add-open,.hfm-modal-open{overflow:hidden!important}

.hfm-duplicate-modal{position:fixed;z-index:10040;inset:0;display:grid;place-items:center;padding:18px}
.hfm-duplicate-modal>section{position:relative;width:min(100%,480px);background:#fff;border:1px solid #e0d7bd;border-radius:24px;padding:26px 22px 20px;text-align:center;box-shadow:0 25px 80px rgba(31,38,33,.28)}
.hfm-duplicate-warning{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 13px;border-radius:50%;background:#fff4d6;color:#9b6400;font-size:34px;font-weight:900}
.hfm-duplicate-modal h2{margin:0 0 9px!important;color:#211f18!important;font-size:22px!important}
.hfm-duplicate-modal p{margin:0;color:#4e4c43!important;line-height:1.8;font-size:15px}
.hfm-duplicate-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.hfm-duplicate-actions a,.hfm-duplicate-actions button{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:13px!important;font-weight:900;text-decoration:none;padding:10px 12px!important}
.hfm-duplicate-actions a{background:#0b6f63!important;color:#fff!important;border:1px solid #07594f!important}
.hfm-duplicate-actions button{background:#edf2ef!important;color:#243630!important;border:1px solid #d5dfda!important}

/* Light dashboard cards must never inherit white text from a theme. */
body .hfm-app .hfm-service-card,
body.hfm-app-page .hfm-app .hfm-service-card{background:#f7f9f8!important;color:#17231f!important;border:1px solid #d4ded9!important;box-shadow:0 6px 16px rgba(33,54,48,.07)!important}
body .hfm-app .hfm-service-card:hover,
body.hfm-app-page .hfm-app .hfm-service-card:hover{background:#edf5f2!important;color:#0c574d!important;border-color:#9fc9bf!important}
body .hfm-app .hfm-service-card strong,
body .hfm-app .hfm-service-card .hfm-module-copy strong{color:#17231f!important;-webkit-text-fill-color:#17231f!important;text-shadow:none!important}
body .hfm-app .hfm-service-card small,
body .hfm-app .hfm-service-card .hfm-module-copy small{color:#52645e!important;-webkit-text-fill-color:#52645e!important;opacity:1!important;text-shadow:none!important}
body .hfm-app .hfm-service-card .hfm-service-icon{color:#0b6f63!important;border-color:#c6d7d1!important}
body .hfm-app .hfm-service-card .hfm-service-arrow{color:#47635b!important;opacity:.7!important}

/* The 7-day summary and all chart labels stay readable on every theme/cache state. */
body .hfm-app article.hfm-weekly-card,
body.hfm-app-page .hfm-app article.hfm-weekly-card{background:#eef1ef!important;color:#111827!important;-webkit-text-fill-color:#111827!important}
body .hfm-app article.hfm-weekly-card *{color:#111827!important;-webkit-text-fill-color:#111827!important;opacity:1!important;text-shadow:none!important}
body .hfm-app article.hfm-weekly-card .hfm-weekly-head small,
body .hfm-app article.hfm-weekly-card .hfm-weekly-stats small{color:#465750!important;-webkit-text-fill-color:#465750!important}
body .hfm-app article.hfm-weekly-card button,
body .hfm-app article.hfm-weekly-card button *{color:#fff!important;-webkit-text-fill-color:#fff!important}
body .hfm-app .hfm-insight-card,
body .hfm-app .hfm-mini-bars,
body .hfm-app .hfm-mini-bar{color:#17231f!important}
body .hfm-app .hfm-insight-card h3,
body .hfm-app .hfm-mini-bar>b{color:#173d34!important;-webkit-text-fill-color:#173d34!important;opacity:1!important}
body .hfm-app .hfm-mini-bar small{color:#4d625b!important;-webkit-text-fill-color:#4d625b!important;opacity:1!important}

@media(max-width:520px){
  .hfm-quick-add-grid{grid-template-columns:1fr}
  .hfm-quick-add-dialog{border-radius:24px 24px 14px 14px;padding-inline:13px}
  .hfm-duplicate-actions{grid-template-columns:1fr}
}


/* v0.8.9 — four independent tag identities and lamb-to-dam confirmation */
.hfm-tag-identity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px}
.hfm-tag-identity-grid>label{margin:0!important;cursor:pointer}
.hfm-tag-identity-grid input{position:absolute;opacity:0;pointer-events:none}
.hfm-tag-identity-grid span{display:flex;align-items:center;gap:10px;min-height:54px;padding:11px 12px;border:1px solid #d8ded9;border-radius:14px;background:#fff;color:#202722!important;transition:.18s ease}
.hfm-tag-identity-grid input:checked+span{border-color:#0b6f63;box-shadow:0 0 0 3px rgba(11,111,99,.12);background:#f6fbf9}
.hfm-tag-identity-grid b{font-size:14px;color:#18201c!important}
.hfm-tag-dot{display:inline-block;flex:0 0 18px;width:18px;height:18px;border-radius:50%;border:1px solid rgba(0,0,0,.22);box-shadow:inset 0 0 0 2px rgba(255,255,255,.65)}
.hfm-tag-dot.is-white{background:#fff}.hfm-tag-dot.is-yellow{background:#f4d63d}.hfm-tag-dot.is-red{background:#d83c3c}.hfm-tag-dot.is-green{background:#20925b}
.hfm-parent-selection{display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid #9ccbc0;border-radius:13px;background:#f0faf7;color:#1e3d35!important}
.hfm-parent-selection span{flex:1;color:#1e3d35!important}.hfm-parent-selection button{border:0;background:transparent;color:#0b6f63!important;font-weight:800;padding:5px}
.hfm-parent-modal[hidden]{display:none!important}.hfm-parent-modal{position:fixed;z-index:10045;inset:0;display:grid;place-items:center;padding:18px}
.hfm-parent-modal>section{position:relative;width:min(100%,520px);max-height:min(85vh,700px);overflow:auto;background:#fff;border:1px solid #e0d7bd;border-radius:24px;padding:25px 21px 20px;text-align:center;box-shadow:0 25px 80px rgba(31,38,33,.28)}
.hfm-parent-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 10px;border-radius:50%;background:#eef8f5;font-size:27px}
.hfm-parent-modal h2{margin:0 0 8px!important;color:#171c19!important;font-size:22px!important}.hfm-parent-modal p{margin:0 0 16px;color:#414a45!important;line-height:1.8}
.hfm-parent-options{display:grid;gap:10px;text-align:start}.hfm-parent-option{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;border:1px solid #dde4df;border-radius:15px;padding:7px;background:#fafcfa}
.hfm-parent-option>button{display:flex;align-items:center;gap:11px;border:0;background:transparent;text-align:start;padding:8px;width:100%;color:#1c2520!important}.hfm-parent-option>button span{display:grid;gap:3px}.hfm-parent-option b{color:#17201b!important}.hfm-parent-option small{color:#59655f!important}.hfm-parent-option>a{font-size:12px;font-weight:800;color:#0b6f63!important;padding:7px;text-decoration:none}
.hfm-parent-missing{padding:14px;border:1px solid #e2c98f;border-radius:14px;background:#fff8e8;color:#654b16!important}.hfm-parent-cancel{margin-top:14px;border:1px solid #ccd6d0!important;background:#fff!important;color:#28332d!important}
@media(max-width:520px){.hfm-tag-identity-grid{grid-template-columns:1fr}.hfm-parent-option{grid-template-columns:1fr}.hfm-parent-option>a{padding-inline:36px}}


/* v0.9.0 — reliable connectivity and offline queue diagnostics */
.hfm-network-state[data-state="checking"] i{background:#d48a18!important;box-shadow:0 0 0 3px rgba(212,138,24,.14)!important;animation:hfm-network-pulse 1s ease-in-out infinite}
.hfm-network-state[data-state="session"] i{background:#b4242d!important;box-shadow:0 0 0 3px rgba(180,36,45,.14)!important}
@keyframes hfm-network-pulse{50%{opacity:.35;transform:scale(.75)}}
.hfm-sync-bar .hfm-sync-details{background:#fff!important;color:#174d40!important;border:1px solid #77a99b!important}
[data-hfm-sync-failed-count]{font-style:normal;display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;margin-inline-start:4px;border-radius:20px;background:#b4242d!important;color:#fff!important;font-size:11px;font-weight:900}
.hfm-has-sync-errors .hfm-sync-bar{background:#fff0ef!important;border-color:#e5aaa7!important}
.hfm-queue-modal[hidden]{display:none!important}.hfm-queue-modal{position:fixed;z-index:1000002;inset:0;display:grid;place-items:center;padding:16px}.hfm-queue-backdrop{position:absolute;inset:0;border:0;background:rgba(12,27,24,.62);backdrop-filter:blur(3px)}
.hfm-queue-modal>section{position:relative;width:min(94vw,720px);max-height:min(88vh,850px);overflow:auto;background:#f7f8f6;border-radius:20px;box-shadow:0 24px 80px rgba(0,0,0,.3);direction:rtl;color:#18201e}
.hfm-queue-modal header{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:18px 20px;background:#fff;border-bottom:1px solid #dfe6e1}.hfm-queue-modal header h2{margin:0!important;color:#14211e!important;font-size:22px!important}.hfm-queue-modal header p{margin:4px 0 0;color:#52625e!important;font-size:13px}.hfm-queue-modal header>button{border:0;background:#edf2ef;color:#173f35;width:38px;height:38px;border-radius:10px;font-size:25px;line-height:1}
.hfm-queue-list{display:grid;gap:10px;padding:14px}.hfm-queue-item{background:#fff;border:1px solid #dce5e0;border-inline-start:5px solid #d58a16;border-radius:14px;padding:14px}.hfm-queue-item.is-failed{border-inline-start-color:#b4242d}.hfm-queue-item.is-needs_action{border-inline-start-color:#8e4ea0}.hfm-queue-item.is-syncing{border-inline-start-color:#0b6f63}
.hfm-queue-item-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.hfm-queue-item-head strong{display:block;color:#111827!important;font-size:15px}.hfm-queue-item-head span{display:block;color:#52625e!important;font-size:12px;margin-top:3px}.hfm-queue-item-head>b{white-space:nowrap;border-radius:20px;padding:5px 9px;background:#fff1cf;color:#775000!important;font-size:11px}.hfm-queue-item.is-failed .hfm-queue-item-head>b{background:#ffe5e3;color:#9e2929!important}.hfm-queue-item.is-needs_action .hfm-queue-item-head>b{background:#f3e5f5;color:#6d2c7c!important}
.hfm-queue-error{margin:10px 0!important;padding:9px 11px;border-radius:9px;background:#fff0ef;color:#8d2727!important;font-size:13px;line-height:1.7}.hfm-queue-item>small{display:block;color:#66756f!important;margin-top:8px}.hfm-queue-item-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}.hfm-queue-item-actions button,.hfm-queue-modal footer button{border:0;border-radius:9px;padding:9px 12px;background:#0b6f63;color:#fff;font-weight:800}.hfm-queue-item-actions button.danger{background:#fff0ef;color:#9e2929;border:1px solid #e5aaa7}.hfm-queue-modal footer{position:sticky;bottom:0;padding:13px 18px;background:#fff;border-top:1px solid #dfe6e1}.hfm-queue-modal footer button{width:100%;min-height:46px}.hfm-queue-empty{padding:32px 18px;text-align:center;background:#fff;border-radius:14px;color:#35524a}
@media(max-width:620px){.hfm-queue-modal{padding:8px}.hfm-queue-modal>section{width:100%;max-height:92vh;border-radius:17px}.hfm-queue-item-head{flex-direction:column}.hfm-queue-item-actions button{flex:1}.hfm-sync-bar .hfm-sync-details span{display:none}}

.hfm-animal-choice-modal[hidden]{display:none!important}.hfm-animal-choice-modal{position:fixed;z-index:1000003;inset:0;display:grid;place-items:center;padding:16px}.hfm-animal-choice-modal>section{position:relative;width:min(94vw,600px);max-height:88vh;overflow:auto;background:#fff;border-radius:20px;padding:22px;box-shadow:0 24px 80px rgba(0,0,0,.32);direction:rtl;text-align:center;color:#17221f}.hfm-animal-choice-modal h2{color:#111827!important;margin:8px 0!important}.hfm-animal-choice-modal p{color:#4f625c!important;line-height:1.8}.hfm-animal-choice-options{display:grid;gap:9px;margin:16px 0}.hfm-animal-choice-options>button{display:flex;align-items:center;gap:12px;width:100%;text-align:start;border:1px solid #d8e2dd;border-radius:13px;padding:12px;background:#f7faf8;color:#17221f}.hfm-animal-choice-options>button:hover,.hfm-animal-choice-options>button:focus{border-color:#0b6f63;background:#edf7f3}.hfm-animal-choice-options span{display:block}.hfm-animal-choice-options b{display:block;color:#111827!important}.hfm-animal-choice-options small{display:block;color:#586a65!important;margin-top:4px}

/* v0.9.1 — sale integrity and next-number suggestions */
.hfm-next-number-panel{display:grid;gap:10px;margin:12px 0 14px;padding:13px;border:1px solid #c9dbd5;border-radius:16px;background:#f4faf7;color:#17231f!important}
.hfm-next-number-panel>div:first-child{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;flex-wrap:wrap}
.hfm-next-number-panel strong{color:#14372f!important;font-size:15px}
.hfm-next-number-panel small{color:#536b64!important}
.hfm-next-number-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.hfm-next-number-grid>button{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:7px;min-height:45px;padding:8px 10px!important;border:1px solid #d3dfda!important;border-radius:12px!important;background:#fff!important;color:#1a2722!important;box-shadow:none!important;text-align:start}
.hfm-next-number-grid>button:hover,.hfm-next-number-grid>button:focus-visible{border-color:#0b6f63!important;background:#edf7f3!important}
.hfm-next-number-grid span{color:#4d625b!important;font-size:12px}
.hfm-next-number-grid b{color:#102a25!important;font-size:17px;direction:ltr}
[data-hfm-sale-animal] select[name="animal_color"]{background-color:#fff!important;color:#17231f!important}
[data-hfm-sale-animal] input[name="animal_number"]{direction:ltr;text-align:start}
@media(max-width:680px){.hfm-next-number-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
