/* ARFM v0.14.1 — ARFC Operations Command Center layout */
#arfm-root{--arfm-bg:#f4f6f3;--arfm-text:#18241e;--arfm-muted:#68756e;--arfm-line:#dce3de;--arfm-accent:#176b45;position:fixed;inset:0;z-index:10000;width:100%;max-width:none;margin:0;border-radius:0;height:100dvh;min-height:0;overflow:hidden;font-size:14px;line-height:1.5;text-align:left}
html.arfm-portal-active,body.arfm-portal-active{margin:0!important;padding:0!important;overflow:hidden!important}
#arfm-root button,#arfm-root input,#arfm-root select,#arfm-root textarea{font-family:inherit;font-size:inherit;line-height:1.4;text-transform:none;letter-spacing:normal;box-shadow:none;min-width:0}
#arfm-root button{cursor:pointer}#arfm-root h1,#arfm-root h2,#arfm-root h3{font-family:inherit;font-weight:750;letter-spacing:-.02em;color:inherit;line-height:1.25}
#arfm-root .arfm-shell{display:grid;grid-template-columns:264px minmax(0,1fr);height:100%;min-height:0;overflow:hidden}
#arfm-root .arfm-sidebar{position:relative;top:0;height:100%;max-height:100dvh;overflow:hidden;background:#102e22;color:#dde9e2;display:flex;flex-direction:column;min-width:0;z-index:30;border-right:1px solid #183d2d}
.arfm-side-brand{flex-shrink:0;display:flex;align-items:center;gap:12px;padding:25px 22px 20px;color:#fff!important;text-decoration:none!important}.arfm-side-brand img{width:52px;height:52px;object-fit:contain;border-radius:12px;background:#fff;padding:4px}.arfm-side-brand b{display:block;font-size:19px;line-height:1.3}.arfm-side-brand small{display:block;color:#a5bcaf;font-size:11px;margin-top:3px}
.arfm-role-pill{flex-shrink:0;margin:0 20px 18px;border:1px solid #31523f;background:#1b3c2c;padding:7px 12px;border-radius:8px;font-size:10px;font-weight:750;letter-spacing:.06em;color:#c6dfce}
#arfm-root .arfm-nav{display:flex;flex-direction:column;flex:1;min-height:0;gap:16px;padding:0 12px 16px;overflow-y:auto;overflow-x:hidden;background:transparent;border:0;flex-wrap:nowrap;scrollbar-width:thin;scrollbar-color:#446453 transparent}
.arfm-nav-group{display:flex;flex-direction:column;gap:3px}.arfm-nav-label{margin:4px 12px 6px;color:#8fa99a;font-size:9px;font-weight:750;letter-spacing:.12em}
#arfm-root .arfm-nav button{display:flex;align-items:center;gap:11px;width:100%;border:0;border-radius:9px;padding:9px 12px;min-height:39px;text-align:left;white-space:normal;color:#c9dace;background:transparent;font-size:12px;font-weight:550}
#arfm-root .arfm-nav button:hover{background:#1b3d2c;color:#fff}#arfm-root .arfm-nav button.active{background:#276045;color:#fff;font-weight:750;box-shadow:inset 3px 0 0 #8bd5a8}
.arfm-nav-icon{width:18px;height:18px;flex:none;opacity:.85}.arfm-nav button.active .arfm-nav-icon{opacity:1}
.arfm-sidebar-foot{flex-shrink:0;padding:16px 24px;border-top:1px solid #264637;font-size:10px;color:#c3d4ca}.arfm-sidebar-foot small{display:block;font-size:10px;color:#8fa99a;margin:4px 0 0 14px}.arfm-foot-dot{display:inline-block;background:#8bbd9a;width:6px;height:6px;border-radius:50%;margin-right:8px}
#arfm-root .arfm-workspace{min-width:0;min-height:0;height:100%;overflow:hidden;display:flex;flex-direction:column}
#arfm-root .arfm-topbar{position:sticky;top:0;z-index:20;flex-shrink:0;min-height:82px;padding:16px 30px;background:#fff;color:#18241e;border-bottom:1px solid #dce3de;gap:14px}
#arfm-root .arfm-topbar .arfm-top-left{display:flex;align-items:center;gap:16px}#arfm-root .arfm-heading h1{font-size:21px;margin:0 0 3px}#arfm-root .arfm-heading>span{font-size:11px;color:#68756e;opacity:1}
#arfm-root .arfm-menu-toggle{display:grid;place-items:center;border:1px solid #dce3de;background:#fff;color:#176b45;width:36px;height:36px;border-radius:9px;padding:0;font-size:18px}
#arfm-root .arfm-userbox{gap:10px;color:#18241e;font-size:12px}#arfm-root .arfm-userbox span{opacity:1}#arfm-root .arfm-userbox a{color:#176b45;text-decoration:none;font-weight:650}.arfm-user-avatar{display:grid!important;place-items:center;width:34px;height:34px;border-radius:50%;background:#eaf4ee;color:#176b45;font-weight:800}
#arfm-root .arfm-userbox .arfm-btn{padding:7px 10px;font-size:11px;border-color:#dce3de;color:#176b45}
#arfm-root .arfm-view{padding:28px 30px;width:100%;max-width:none;margin:0;min-width:0;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
#arfm-root .arfm-panel,#arfm-root .arfm-kpi{border-color:#dce3de;border-radius:14px;box-shadow:0 1px 2px rgba(12,33,24,.04),0 8px 24px rgba(12,33,24,.035)}
#arfm-root .arfm-page-head h2{font-size:23px}.arfm-dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#eaf1e9;border:1px solid #d4e1d3;border-radius:17px;padding:28px 30px;margin-bottom:22px}.arfm-eyebrow{font-size:10px;letter-spacing:.12em;color:#176b45;font-weight:800}.arfm-dashboard-hero h2{font-size:28px;margin:10px 0}.arfm-dashboard-hero p{color:#68756e;margin:0;font-size:13px}.arfm-hero-metric{min-width:155px;border-left:1px solid #c9d9cb;padding-left:30px}.arfm-hero-metric span,.arfm-hero-metric small{display:block;font-size:11px;color:#68756e}.arfm-hero-metric strong{display:block;font-size:44px;line-height:1.25;letter-spacing:-.04em;color:#176b45}
#arfm-root .arfm-kpis{gap:16px;margin-bottom:22px}#arfm-root .arfm-kpi{border-top:3px solid #a4c4ae;padding:20px}#arfm-root .arfm-kpi strong{font-size:29px}
#arfm-root .arfm-login-card{max-width:460px;margin:7vh auto;padding:35px;border-radius:20px}#arfm-root .arfm-login-logo{width:86px;height:86px;object-fit:contain;margin-bottom:20px}
#arfm-root .arfm-shell.arfm-side-collapsed{grid-template-columns:minmax(0,1fr)}#arfm-root .arfm-side-collapsed .arfm-sidebar{display:none}
#arfm-root .arfm-menu-backdrop{position:fixed;inset:0;z-index:25;background:rgba(9,25,17,.5);border:0;border-radius:0;padding:0}#arfm-root .arfm-menu-backdrop[hidden]{display:none}
#arfm-root :focus-visible{outline:3px solid #7abe95;outline-offset:3px}
@media(max-width:1050px){#arfm-root .arfm-shell{grid-template-columns:235px minmax(0,1fr)}#arfm-root .arfm-view{padding:22px}#arfm-root .arfm-topbar{padding:14px 22px}#arfm-root .arfm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.arfm-side-brand{padding-left:16px}}
@media(max-width:800px){#arfm-root .arfm-shell{grid-template-columns:minmax(0,1fr)}#arfm-root .arfm-sidebar{position:fixed;left:0;top:0;bottom:0;width:264px;max-width:85vw;transform:translateX(-100%);visibility:hidden;transition:transform .18s ease,visibility .18s}#arfm-root .arfm-menu-open .arfm-sidebar{transform:translateX(0);visibility:visible}#arfm-root .arfm-side-collapsed .arfm-sidebar{display:flex}#arfm-root .arfm-topbar{padding:12px 16px;min-height:72px;align-items:center}#arfm-root .arfm-topbar .arfm-top-left{gap:10px}#arfm-root .arfm-heading h1{font-size:18px}#arfm-root .arfm-heading>span{font-size:10px}#arfm-root .arfm-userbox .arfm-user-name{display:none}#arfm-root .arfm-userbox .arfm-user-avatar{display:grid}#arfm-root .arfm-view{padding:18px 14px}.arfm-dashboard-hero{padding:22px;align-items:flex-start;flex-direction:column;gap:18px}.arfm-dashboard-hero h2{font-size:23px}.arfm-hero-metric{border-left:0;border-top:1px solid #c9d9cb;padding:14px 0 0;width:100%}.arfm-hero-metric strong{font-size:34px}#arfm-root .arfm-kpi{padding:14px}#arfm-root .arfm-kpi strong{font-size:25px}#arfm-root .arfm-kpis{gap:10px}#arfm-root .arfm-login-card{width:calc(100% - 28px);margin:25px auto;padding:25px;min-height:0;border-radius:18px}}
@media(prefers-reduced-motion:reduce){#arfm-root *{transition:none!important}}
@media print{html.arfm-portal-active,body.arfm-portal-active{overflow:visible!important}#arfm-root{position:static;overflow:visible;height:auto;min-height:0}#arfm-root .arfm-shell,#arfm-root .arfm-workspace{display:block;height:auto;min-height:0}#arfm-root .arfm-sidebar,#arfm-root .arfm-topbar,#arfm-root .arfm-menu-backdrop{display:none!important}#arfm-root .arfm-view{padding:0}#arfm-root .arfm-panel{box-shadow:none}}

/* v0.14.2 local account access */
#arfm-root button.arfm-user-avatar{border:0;padding:0;cursor:pointer;color:#176b45;background:#eaf4ee}
#arfm-root button.arfm-user-name{border:0;padding:4px;background:transparent;color:#18241e;cursor:pointer;font-size:12px}
#arfm-root .arfm-loading small{display:block;margin-top:8px;font-size:12px}
#arfm-root .arfm-dl dd{overflow-wrap:anywhere}

#arfm-root .arfm-admin-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}#arfm-root .arfm-admin-form label{display:flex;flex-direction:column;gap:6px}#arfm-root .arfm-admin-form .arfm-full{grid-column:1/-1}#arfm-root .arfm-admin-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}@media(max-width:800px){#arfm-root .arfm-admin-form{grid-template-columns:1fr}}
@media print{#arfm-root .arfm-view{overflow:visible;height:auto}#arfm-root .arfm-shell{overflow:visible}}
#arfm-root:not(:has(.arfm-shell)){overflow:auto}
#arfm-root .arfm-admin-form .arfm-admin-field,#arfm-root .arfm-admin-form #arfm-module-addons,#arfm-root .arfm-admin-form #arfm-job-module-preview{grid-column:1/-1}
#arfm-root .arfm-admin-field{display:flex;flex-direction:column;gap:7px}
#arfm-root .arfm-admin-field>small,#arfm-root .arfm-admin-form label>small{font-size:12px;color:#617267;line-height:1.5}
#arfm-root #arfm-farm-picker{border:1px solid #cad6cf;border-radius:10px;background:#fff;padding:10px 12px}
#arfm-root #arfm-farm-picker summary{cursor:pointer;font-weight:650;color:#176b45}
#arfm-root .arfm-farm-search{display:flex;flex-direction:column;gap:5px;margin:10px 0}
#arfm-root .arfm-farm-search input{width:100%;padding:9px 10px;border:1px solid #cad6cf;border-radius:8px;font:inherit}
#arfm-root .arfm-farm-list{max-height:220px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px 2px}
#arfm-root .arfm-farm-list .arfm-check{padding:6px 8px;border-radius:7px;background:#f4f8f5;align-items:flex-start}
#arfm-root #arfm-module-addons{border:1px solid #cad6cf;border-radius:12px;padding:12px 16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#arfm-root #arfm-module-addons[hidden]{display:none!important}
#arfm-root #arfm-module-addons legend{padding:0 6px;font-weight:700}
@media(max-width:800px){#arfm-root .arfm-farm-list,#arfm-root #arfm-module-addons{grid-template-columns:1fr}}

/* v0.23.0 — Kulit telefon ARFM Teras (≤800px). Desktop tidak berubah. */
.arfm-mobile-home,.arfm-mobile-bottom,.arfm-m-back{display:none}
#arfm-root .arfm-mobile-sheet{box-sizing:border-box;position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:600px;max-height:84dvh;overflow:auto;border:0;border-radius:26px 26px 0 0;padding:10px 18px calc(22px + env(safe-area-inset-bottom));background:#fff;color:#16231c;font-size:16px;box-shadow:0 -8px 30px rgba(10,30,20,.18)}
#arfm-root .arfm-mobile-sheet::backdrop{background:rgba(10,20,15,.45)}
#arfm-root .arfm-m-grab{width:44px;height:5px;border-radius:3px;background:#d9e2dc;margin:0 auto 10px}
#arfm-root .arfm-mobile-sheet header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#arfm-root .arfm-mobile-sheet header h2{margin:0;font-size:19px}
#arfm-root .arfm-mobile-sheet header button{width:44px;height:44px;border-radius:50%;border:1px solid #d9e2dc;background:#fff;color:#16231c;font-size:16px}
#arfm-root .arfm-mobile-sheet h3{font-size:14px;color:#5c6b62;margin:18px 0 10px;font-weight:650}
#arfm-root .arfm-m-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 6px}
#arfm-root .arfm-m-tile{display:flex;flex-direction:column;align-items:center;gap:7px;background:transparent;border:0;color:#16231c;text-align:center;min-width:0;padding:0;font-size:13px;line-height:1.25;min-height:84px}
#arfm-root .arfm-m-tile>span{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:#e2f0e7;color:#0f5232}
#arfm-root .arfm-m-tile svg{width:28px;height:28px}
#arfm-root .arfm-m-desk{display:block;font-size:10.5px;color:#7a6a3a;line-height:1.2}
#arfm-root .arfm-m-list{border:1px solid #d9e2dc;border-radius:18px;overflow:hidden;background:#fff}
#arfm-root .arfm-m-list>button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;min-height:58px;background:#fff;color:#16231c;border:0;border-bottom:1px solid #e3e9e5;text-align:left;font-size:15.5px}
#arfm-root .arfm-m-list>button:last-child{border-bottom:0}
#arfm-root .arfm-m-list>button>svg{width:20px;height:20px;color:#8a978f;flex:none}
#arfm-root .arfm-m-rec>button>span:nth-child(2){flex:1}
#arfm-root .arfm-m-ic{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e2f0e7;color:#0f5232;flex:none}
#arfm-root .arfm-m-ic svg{width:23px;height:23px}
#arfm-root .arfm-m-badge{min-width:34px;text-align:center;padding:4px 10px;border-radius:999px;font-size:13px;font-weight:700}
#arfm-root .arfm-m-badge.warn{background:#fbefd6;color:#6f4700}#arfm-root .arfm-m-badge.danger{background:#fbe3e0;color:#8f2a22}
#arfm-root .arfm-m-clear{display:flex;gap:14px;align-items:center;border:1px solid #cfe3d6;background:#f1f8f3;border-radius:18px;padding:16px}
#arfm-root .arfm-m-clear>span{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#176b45;color:#fff;flex:none}
#arfm-root .arfm-m-clear svg{width:24px;height:24px}#arfm-root .arfm-m-clear b{display:block;font-size:16px}#arfm-root .arfm-m-clear small{color:#5c6b62;font-size:13.5px}
#arfm-root .arfm-m-search{display:flex;align-items:center;gap:10px;border:1px solid #d9e2dc;border-radius:14px;padding:0 14px;min-height:50px;margin-bottom:6px}
#arfm-root .arfm-m-search svg{width:20px;height:20px;color:#5c6b62;flex:none}
#arfm-root .arfm-m-search input{border:0;outline:0;flex:1;font-size:16px;min-height:48px;background:transparent;padding:0}
#arfm-root .arfm-m-logout{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin-top:22px;min-height:52px;border-radius:14px;border:1px solid #f0c9c4;background:#fff;color:#8f2a22;font-weight:650;font-size:15px}
#arfm-root .arfm-m-logout svg{width:20px;height:20px}
#arfm-root .arfm-m-empty,#arfm-root .arfm-m-note{color:#5c6b62;font-size:14px;margin:12px 2px}
@media screen and (max-width:800px){
 #arfm-root{font-size:16px}
 #arfm-root .arfm-view,#arfm-root .arfm-mobile-home,#arfm-root .arfm-mobile-home *,#arfm-root .arfm-mobile-bottom,#arfm-root .arfm-mobile-sheet *{box-sizing:border-box}
 #arfm-root .arfm-workspace{background:#fff}
 #arfm-root .arfm-topbar{min-height:60px;background:#fff;color:#16231c;border-bottom:1px solid #e3e9e5;padding-left:10px;padding-right:12px;padding-bottom:8px;align-items:center}
 #arfm-root .arfm-menu-toggle{display:none}
 #arfm-root .arfm-top-left{gap:4px}
 #arfm-root .arfm-m-back:not([hidden]){display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:#16231c;padding:0}
 #arfm-root .arfm-m-back svg{width:24px;height:24px}
 #arfm-root .arfm-heading h1{font-size:18px;margin:0}
 #arfm-root .arfm-heading>span,#arfm-root .arfm-userbox .arfm-user-name,#arfm-root .arfm-userbox #arfm-native-logout,#arfm-root .arfm-userbox>a{display:none}
 #arfm-root.arfm-m-on-home .arfm-topbar{display:none}
 #arfm-root .arfm-view{background:#fff;padding:16px 16px 28px;font-size:16px}
 #arfm-root .arfm-view input:not([type=checkbox]):not([type=radio]),#arfm-root .arfm-view select,#arfm-root .arfm-view textarea{font-size:16px;min-height:48px}
 #arfm-root .arfm-view textarea{min-height:96px}
 #arfm-root .arfm-view .arfm-btn{min-height:48px;font-size:15px}
 #arfm-root .arfm-view table{font-size:14.5px}
 #arfm-root .arfm-view label{font-size:15px}
 #arfm-root:not(.arfm-m-fulldash) .arfm-view:has(.arfm-mobile-home)>.arfm-dashboard-hero,#arfm-root:not(.arfm-m-fulldash) .arfm-view:has(.arfm-mobile-home)>.arfm-kpis{display:none}
 #arfm-root:not(.arfm-m-admin) .arfm-view:has(.arfm-mobile-home)>.arfm-panel{display:none}
 #arfm-root .arfm-view:has(.arfm-mobile-home)>.arfm-panel{margin-top:18px}
 #arfm-root .arfm-mobile-home{display:block;padding-top:calc(4px + env(safe-area-inset-top,0px))}
 #arfm-root .arfm-m-greet{font-size:23px;font-weight:750;letter-spacing:-.01em;margin:0;color:#16231c;line-height:1.25}
 #arfm-root .arfm-m-date{margin:2px 0 14px;color:#5c6b62;font-size:14.5px}
 #arfm-root .arfm-m-context{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
 #arfm-root .arfm-m-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #d9e2dc;border-radius:999px;padding:7px 13px;font-size:13.5px;font-weight:600;color:#16231c;max-width:100%;overflow-wrap:anywhere}
 #arfm-root .arfm-m-chip svg{width:16px;height:16px;color:#176b45;flex:none}
 #arfm-root .arfm-m-role{border-style:dashed;color:#5c6b62;font-weight:500}
 #arfm-root .arfm-m-sync{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid #f0d9a8;background:#fbefd6;color:#6f4700;border-radius:16px;padding:12px 14px;margin-bottom:14px;min-height:56px}
 #arfm-root .arfm-m-sync svg{width:26px;height:26px;flex:none}#arfm-root .arfm-m-sync b{display:block;font-size:15px}#arfm-root .arfm-m-sync small{font-size:13px}
 #arfm-root .arfm-m-hero{position:relative;display:block;width:100%;background:#102e22;color:#fff;border:0;border-radius:22px;text-align:left;padding:16px 18px;margin-bottom:14px}
 #arfm-root .arfm-m-hero small{display:block;font-size:14px;color:#cfe3d6}
 #arfm-root .arfm-m-hero strong{display:block;font-size:42px;font-weight:750;line-height:1.1;margin:2px 0;letter-spacing:-.02em}
 #arfm-root .arfm-m-hero>span{font-size:14px;color:#cfe3d6}
 #arfm-root .arfm-m-hero>svg{position:absolute;right:14px;top:16px;width:22px;height:22px;opacity:.7}
 #arfm-root .arfm-m-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;border:1px solid #d9e2dc;border-radius:20px;padding:14px 6px 6px;margin-bottom:16px}
 #arfm-root .arfm-m-today{margin-top:20px}
 #arfm-root .arfm-m-today h3{font-size:16px;margin:0 0 10px;color:#16231c;font-weight:700}
 #arfm-root .arfm-m-more{margin-top:16px;color:#5c6b62;font-size:14.5px}
 #arfm-root .arfm-m-more summary{cursor:pointer;padding:12px 0;min-height:44px}
 #arfm-root .arfm-m-more p{display:flex;justify-content:space-between;margin:0;padding:10px 0;border-bottom:1px solid #eef2ef}
 #arfm-root .arfm-m-more b{color:#16231c}
 #arfm-root .arfm-mobile-bottom{display:flex;justify-content:space-around;align-items:flex-end;flex-shrink:0;gap:2px;background:#fff;border-top:1px solid #e3e9e5;padding:8px 6px 8px;z-index:21;min-height:68px}
 #arfm-root .arfm-mobile-bottom button{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;padding:0;background:transparent;color:#5c6b62;font-size:12px;min-height:50px}
 #arfm-root .arfm-mobile-bottom svg{width:25px;height:25px}
 #arfm-root .arfm-mobile-bottom button.active{color:#176b45;font-weight:700}
 #arfm-root .arfm-mobile-bottom .arfm-mobile-record{color:#5c6b62;font-weight:500}
 #arfm-root .arfm-mobile-record svg{box-sizing:border-box;width:54px;height:54px;padding:12px;border-radius:50%;background:#176b45;color:#fff;margin-top:-28px;box-shadow:0 0 0 5px #fff}
 #arfm-root .arfm-m-dot{position:absolute;top:0;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#b3261e;color:#fff;font-size:10.5px;font-style:normal;font-weight:700;line-height:18px;text-align:center}
 #arfm-root .arfm-m-dot[hidden]{display:none}
 #arfm-root .arfm-toast{bottom:calc(86px + env(safe-area-inset-bottom));max-width:calc(100% - 24px);font-size:15px;border-radius:14px;padding:13px 16px}
 #arfm-root .arfm-toast.success::before{content:"✓";display:inline-grid;place-items:center;width:22px;height:22px;margin-right:10px;border-radius:50%;background:#fff;color:#176b45;font-weight:800;vertical-align:-3px}
 #arfm-root .arfm-loading{border:1px solid #e3e9e5;border-radius:18px;padding:22px 18px;color:#5c6b62;background:#f7faf8}
}
@media screen and (max-width:350px){#arfm-root .arfm-m-grid,#arfm-root .arfm-m-quick{gap:12px 4px}#arfm-root .arfm-m-tile{font-size:11.5px}#arfm-root .arfm-m-tile>span{width:48px;height:48px;border-radius:15px}#arfm-root .arfm-m-hero strong{font-size:36px}}
@media (prefers-reduced-motion:no-preference){#arfm-root .arfm-mobile-sheet[open]{animation:arfmSheetUp .22s ease-out}@keyframes arfmSheetUp{from{transform:translateY(40px);opacity:.5}to{transform:none;opacity:1}}}
@media print{.arfm-mobile-home,.arfm-mobile-bottom,.arfm-mobile-sheet,.arfm-m-back{display:none!important}}

/* Jadual klinikal: patuhi hidden walaupun borang menggunakan grid. */
#hw-plan[hidden] { display: none !important; }
#hc-tag-form input { width: 100%; box-sizing: border-box; }

/* v0.23.1 — Kad Kemas Kini Sistem: gaya dalam ARFM supaya nota kekal dalam kotak walaupun CSS Updater tidak dimuatkan. */
#arfm-root [data-arfm-updater]{overflow:hidden;min-width:0}
#arfm-root [data-arfm-updater] [data-update-body]{min-width:0;max-width:100%}
#arfm-root [data-arfm-updater] .arfm-updater-notes{display:block;box-sizing:border-box;width:100%;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-height:260px;overflow:auto;margin:12px 0;padding:12px 14px;border-radius:10px;background:#f4f6f3;border:1px solid #e3e9e5;color:#18241e;font-family:inherit;font-size:14px;line-height:1.55}
#arfm-root [data-arfm-updater] .arfm-updater-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
#arfm-root [data-arfm-updater] button{border:1px solid #b9c8bf;border-radius:10px;background:#fff;color:#176b45;font-weight:650;font-size:14px;min-height:44px;padding:8px 14px}
#arfm-root [data-arfm-updater] button:disabled{opacity:.5;cursor:not-allowed}
#arfm-root [data-arfm-updater] [data-update-install]{background:#176b45;border-color:#176b45;color:#fff}
#arfm-root [data-arfm-updater] select{max-width:100%;padding:9px;border:1px solid #b9c8bf;border-radius:8px}
#arfm-root [data-arfm-updater] .arfm-updater-badge{display:inline-block;font-size:12px;color:#176b45;background:#e0f1e8;padding:4px 8px;border-radius:6px}

/* v0.24.0 — Carian Pintar ternakan, imbas QR, pemilih ladang */
#arfm-root .arfm-smart{display:flex;flex-direction:column;gap:10px}
#arfm-root .arfm-smart-bar{display:flex;gap:8px;align-items:stretch}
#arfm-root .arfm-smart-input{flex:1;display:flex;align-items:center;gap:8px;min-width:0;border:1.5px solid #cad6cf;border-radius:14px;background:#fff;padding:0 6px 0 12px;min-height:50px;cursor:text}
#arfm-root .arfm-smart-input:focus-within{border-color:#176b45;box-shadow:0 0 0 3px #e2f0e7}
#arfm-root .arfm-smart-input>svg{width:20px;height:20px;flex:none;fill:none;stroke:#5c6b62;stroke-width:1.9;stroke-linecap:round}
#arfm-root .arfm-smart-input input{flex:1;min-width:0;border:0!important;outline:0;background:transparent;font-size:16px;min-height:46px;padding:0;box-shadow:none}
#arfm-root .arfm-smart-scan{display:grid;place-items:center;width:40px;height:40px;flex:none;border:0;border-radius:11px;background:#e2f0e7;color:#0f5232;padding:0}
#arfm-root .arfm-smart-scan svg,#arfm-root .arfm-smart-filter svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#arfm-root .arfm-smart-filter{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:50px;border-radius:14px;padding:0 14px}
#arfm-root .arfm-smart-filter b{min-width:20px;height:20px;line-height:20px;border-radius:10px;background:#176b45;color:#fff;font-size:12px;text-align:center;padding:0 5px}
#arfm-root .arfm-smart-filter b[hidden]{display:none}
#arfm-root .arfm-smart-filters[hidden]{display:none!important}
#arfm-root .arfm-smart-chips{display:flex;flex-wrap:wrap;gap:6px}
#arfm-root .arfm-smart-chips:empty{display:none}
#arfm-root .arfm-smart-chip{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:999px;background:#e2f0e7;color:#0f5232;font-size:13.5px;font-weight:600;padding:7px 10px 7px 13px;min-height:36px}
#arfm-root .arfm-smart-chip span{font-size:12px;opacity:.75}
#arfm-root .arfm-smart-clear{background:transparent;color:#5c6b62;text-decoration:underline}
#arfm-root .arfm-smart-count{margin:2px 0 10px;color:#5c6b62;font-size:14px}
#arfm-root .arfm-smart-note{border:1px solid #e3e9e5;background:#f7faf8;border-radius:14px;padding:14px 16px}
#arfm-root .arfm-smart-note b{display:block;font-size:15.5px;color:#16231c}#arfm-root .arfm-smart-note p{margin:4px 0 0;color:#5c6b62;font-size:14px}
#arfm-root .arfm-smart-sk{display:grid;gap:8px}#arfm-root .arfm-smart-sk i{display:block;height:64px;border-radius:14px;background:#eef2ef}
@media (prefers-reduced-motion:no-preference){#arfm-root .arfm-smart-sk i{animation:arfmSk 1s ease-in-out infinite alternate}@keyframes arfmSk{from{opacity:.55}to{opacity:1}}}
#arfm-root .arfm-animal-cards{display:none;gap:8px}
#arfm-root .arfm-animal-card{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid #e3e9e5;border-radius:16px;background:#fff;color:#16231c;padding:10px 12px;min-height:68px;margin-bottom:8px;flex-wrap:wrap}
#arfm-root .arfm-animal-card.big{border:2px solid #176b45;background:#f7fbf8}
#arfm-root .arfm-animal-av{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#e2f0e7;color:#0f5232;flex:none}
#arfm-root .arfm-animal-av svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#arfm-root .arfm-animal-txt{flex:1;min-width:0}#arfm-root .arfm-animal-txt b{display:block;font-size:16.5px}
#arfm-root .arfm-animal-txt small{display:block;font-size:13.5px;color:#5c6b62;overflow-wrap:anywhere}
#arfm-root .arfm-animal-st{font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;background:#eef2ef;color:#3d4b43;white-space:nowrap}
#arfm-root .arfm-animal-open{width:100%;text-align:center;margin-top:8px;padding:10px;border-radius:12px;background:#176b45;color:#fff;font-weight:650}
#arfm-root .arfm-animal-card.big .arfm-animal-txt b{font-size:20px}
#arfm-root > .arfm-scan,#arfm-root .arfm-scan{box-sizing:border-box;width:min(560px,100%);max-height:94dvh;overflow:auto;border:0;border-radius:22px;padding:16px;background:#fff;color:#16231c;font-size:16px}
#arfm-root .arfm-scan::backdrop{background:rgba(10,20,15,.6)}
#arfm-root .arfm-scan header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
#arfm-root .arfm-scan header h2{margin:0;font-size:19px}
#arfm-root .arfm-scan header button{width:44px;height:44px;border-radius:50%;border:1px solid #d9e2dc;background:#fff;font-size:16px}
#arfm-root .arfm-scan-cam{position:relative;border-radius:18px;overflow:hidden;background:#0b130f;aspect-ratio:4/3;margin-bottom:14px}
#arfm-root .arfm-scan-cam video{width:100%;height:100%;object-fit:cover;display:block}
#arfm-root .arfm-scan-cam i{position:absolute;inset:18% 22%;border:3px solid #6fd39e;border-radius:18px;box-shadow:0 0 0 999px rgba(0,0,0,.25)}
#arfm-root .arfm-scan-cam p{position:absolute;left:0;right:0;bottom:8px;margin:0;text-align:center;color:#e6f3ea;font-size:13.5px;padding:0 12px}
#arfm-root .arfm-scan-tip{background:#fbefd6;color:#6f4700;border-radius:14px;padding:12px 14px;font-size:14px}
#arfm-root .arfm-scan-manual{display:flex;gap:8px;align-items:flex-end}
#arfm-root .arfm-scan-manual label{flex:1;display:flex;flex-direction:column;gap:6px;font-size:14px;color:#5c6b62}
#arfm-root .arfm-scan-manual input{font-size:16px;min-height:48px;border:1px solid #cad6cf;border-radius:12px;padding:0 12px}
#arfm-root .arfm-scan-manual .arfm-btn{min-height:48px}
#arfm-root .arfm-m-chip{background:#fff}
#arfm-root button.arfm-m-chip:not(:disabled){cursor:pointer}
#arfm-root .arfm-m-caret{font-style:normal;color:#5c6b62;margin-left:2px}
#arfm-root .arfm-m-scope{margin:-4px 0 10px;color:#5c6b62;font-size:13px}
#arfm-root .arfm-m-scope[hidden]{display:none}
@media screen and (max-width:800px){
 #arfm-root .arfm-animal-cards{display:block}
 #arfm-root .arfm-animal-table{display:none}
 #arfm-root .arfm-smart-filter span{display:none}
 #arfm-root .arfm-smart-filter{padding:0 12px}
 #arfm-root .arfm-smart.arfm-panel{padding:12px}
 #arfm-root .arfm-scan{width:100%;max-width:100%;margin:auto 0 0;border-radius:24px 24px 0 0;padding:14px 16px calc(18px + env(safe-area-inset-bottom))}
}

/* v0.25.0 — aliran berlangkah */
#arfm-root .arfm-step-off{display:none!important}
#arfm-root .arfm-stepper-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0 0 4px}
#arfm-root .arfm-stepper-head span{font-size:13px;color:#5c6b62;font-weight:600}
#arfm-root .arfm-stepper-head b{font-size:16.5px;color:#16231c}
#arfm-root .arfm-progress{flex-basis:100%;height:6px;border-radius:3px;background:#e3e9e5;overflow:hidden;margin-top:6px}
#arfm-root .arfm-progress i{display:block;height:100%;background:#176b45;border-radius:3px;transition:width .3s}
#arfm-root .arfm-stepper-nav{display:flex;gap:10px;justify-content:space-between;margin-top:6px}
#arfm-root .arfm-stepper-nav [data-step-next]{flex:1}
#arfm-root .arfm-stepper-nav [hidden]{display:none}
#arfm-root .arfm-id-row{display:flex;gap:8px;align-items:flex-end}
#arfm-root .arfm-id-row>label{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
#arfm-root .arfm-id-scan{flex:none;min-height:48px;background:#e2f0e7;border-color:#cfe3d6;color:#0f5232}
#arfm-root .arfm-ws-auto{margin:6px 0 2px;font-size:14px}
#arfm-root .arfm-att-summary .arfm-progress{margin:8px 0 2px}
#arfm-root .arfm-quick-start{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-color:#cfe3d6;background:#f4faf6}
#arfm-root .arfm-quick-start p{margin:2px 0 0}
#arfm-root .arfm-quick-start.done{background:#f7faf8;color:#3d4b43}
#arfm-root .arfm-done-card{text-align:center;padding:28px 18px}
#arfm-root .arfm-done-check{width:72px;height:72px;margin:0 auto 10px;border-radius:50%;display:grid;place-items:center;background:#176b45;color:#fff;font-size:36px;font-weight:800}
#arfm-root .arfm-kid-quick h3{font-size:22px;margin:10px 0 2px}
@media (prefers-reduced-motion:no-preference){#arfm-root .arfm-done-check{animation:arfmPop .35s ease-out}@keyframes arfmPop{from{transform:scale(.5);opacity:0}to{transform:none;opacity:1}}}
@media screen and (max-width:800px){
 #arfm-root .arfm-stepped .arfm-actions,#arfm-root .arfm-stepper-nav{position:sticky;bottom:0;z-index:2;background:#fff;padding:10px 0 4px;box-shadow:0 -8px 12px -10px rgba(10,30,20,.25)}
 #arfm-root .arfm-att-actions{position:sticky;bottom:0;z-index:3;background:#fff;padding:10px 0 6px;display:flex;gap:8px;flex-wrap:wrap;box-shadow:0 -8px 12px -10px rgba(10,30,20,.25)}
 #arfm-root .arfm-att-actions .arfm-btn{flex:1}
 #arfm-root .arfm-att-btns button,#arfm-root .arfm-kid-form .arfm-att-btns button{min-height:48px;font-size:15px}
 #arfm-root .arfm-kid-form .arfm-att-btns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 #arfm-root .arfm-ws-entry input#ws-kg{font-size:28px;font-weight:700;min-height:60px;text-align:center}
 #arfm-root .arfm-ws-entry .arfm-actions{position:sticky;bottom:0;background:#fff;padding:10px 0 4px;z-index:2}
 #arfm-root .arfm-ws-entry #ws-save{flex:1}
 #arfm-root .arfm-gt-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
 #arfm-root .arfm-gt-item{min-height:52px;align-items:center}
}
@media screen and (max-width:800px){
 #arfm-root .arfm-ws-inputs>label,#arfm-root .arfm-ws-inputs input,#arfm-root .arfm-ws-inputs select{min-width:0;width:100%;box-sizing:border-box}
 #arfm-root .arfm-ws-inputs>label:first-child{grid-column:1/-1}
}


/* v0.26.0 — Statistik ladang (Superadmin/Admin/Pengarah) dan kad tema */
#arfm-root .arfm-m-stats{margin-top:20px}
#arfm-root .arfm-m-sec{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
#arfm-root .arfm-m-sec h3{margin:0;font-size:16px;color:#16231c}
#arfm-root .arfm-m-sec button{border:0;background:transparent;color:#176b45;font-weight:650;font-size:14px;min-height:40px;padding:0 4px}
#arfm-root .arfm-m-statgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#arfm-root .arfm-m-stat{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;border:1px solid #e3e9e5;border-radius:14px;background:#fff;color:#16231c;padding:11px 12px;min-height:70px}
#arfm-root .arfm-m-stat b{font-size:22px;font-weight:750;line-height:1.1}
#arfm-root .arfm-m-stat span{font-size:12.5px;color:#5c6b62;line-height:1.25}
#arfm-root .arfm-m-stat.warn{border-color:#f0d9a8;background:#fdf6e7}#arfm-root .arfm-m-stat.warn b{color:#6f4700}
#arfm-root .arfm-m-stat.danger{border-color:#f0c9c4;background:#fdf0ee}#arfm-root .arfm-m-stat.danger b{color:#8f2a22}
#arfm-root .arfm-m-fullbtn{width:100%;margin-top:10px;min-height:46px;border-radius:12px;border:1px dashed #b9c8bf;background:transparent;color:#3d4b43;font-weight:600;font-size:14px}
#arfm-root .arfm-m-more[hidden]{display:none}
#arfm-root .arfm-theme-card{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
#arfm-root .arfm-theme-card h3{margin:0}
#arfm-root .arfm-theme-card p{margin:2px 0 0}
#arfm-root .arfm-theme-seg{display:inline-flex;border:1px solid #cad6cf;border-radius:12px;overflow:hidden;background:#fff}
#arfm-root .arfm-theme-seg button{border:0;border-right:1px solid #cad6cf;background:transparent;color:#16231c;font-weight:600;font-size:14px;min-height:44px;padding:0 14px}
#arfm-root .arfm-theme-seg button:last-child{border-right:0}
#arfm-root .arfm-theme-seg button.on{background:#176b45;color:#fff}
@media screen and (max-width:800px){#arfm-root .arfm-theme-seg{display:grid;grid-template-columns:repeat(3,1fr);width:100%}}

/* v0.27.0 — Import pukal dan kes ladang lain */
#arfm-root .arfm-other-farms{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
#arfm-root .arfm-other-farms p{flex-basis:100%;margin:0;color:#5c6b62}
#arfm-root .arfm-other-farms b{margin-left:6px;background:#fbe3e0;color:#8f2a22;border-radius:999px;padding:1px 8px}
#arfm-root .arfm-imp-step{display:flex;gap:14px;align-items:flex-start}
#arfm-root .arfm-imp-n{flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#176b45;color:#fff;font-weight:750}
#arfm-root .arfm-imp-main{flex:1;min-width:0}
#arfm-root .arfm-imp-main h3{margin:4px 0 8px}
#arfm-root .arfm-imp-drop{display:flex;align-items:center;justify-content:center;min-height:110px;border:2px dashed #b9c8bf;border-radius:16px;background:#f7faf8;text-align:center;cursor:pointer;padding:14px;position:relative}
#arfm-root .arfm-imp-drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
#arfm-root .arfm-imp-drop b{display:block;font-size:16px;color:#176b45}#arfm-root .arfm-imp-drop small{color:#5c6b62}
#arfm-root .arfm-imp-maps{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:8px;margin:10px 0}
#arfm-root .arfm-imp-map{display:grid;grid-template-columns:1fr;gap:4px;border:1px solid #e3e9e5;border-radius:12px;padding:8px 10px;background:#fff}
#arfm-root .arfm-imp-map span{font-weight:600;font-size:14px}
#arfm-root .arfm-imp-map.req span{color:#16231c}
#arfm-root .arfm-imp-map.on{border-color:#a9d3bc;background:#f4faf6}
#arfm-root .arfm-imp-map.req:not(.on){border-color:#f0d9a8}
#arfm-root .arfm-imp-map select{width:100%;min-width:0}
#arfm-root .arfm-imp-sum{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 10px}
#arfm-root .arfm-imp-sum span{border-radius:999px;padding:6px 12px;font-size:14px;background:#eef2ef}
#arfm-root .arfm-imp-sum .ok{background:#e2f0e7;color:#0f5232}#arfm-root .arfm-imp-sum .bad{background:#fbe3e0;color:#8f2a22}#arfm-root .arfm-imp-sum .fix{background:#e6eefc;color:#1f4f9a}
#arfm-root .arfm-imp-sugg{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border:1px solid #f0d9a8;background:#fdf6e7;border-radius:12px;padding:10px 12px;margin-bottom:10px}
#arfm-root .arfm-imp-sugg b{flex-basis:100%}
#arfm-root .arfm-imp-rows{display:grid;gap:8px;margin:10px 0}
#arfm-root .arfm-imp-row{border:1px solid #e3e9e5;border-left:4px solid #b9c8bf;border-radius:12px;padding:10px 12px;background:#fff}
#arfm-root .arfm-imp-row.s-Sedia{border-left-color:#176b45}#arfm-root .arfm-imp-row.s-Ralat{border-left-color:#b3261e;background:#fffafa}#arfm-root .arfm-imp-row.s-Berjaya{border-left-color:#6b7d73;opacity:.75}
#arfm-root .arfm-imp-rhead{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#arfm-root .arfm-imp-rn{font-size:12.5px;color:#5c6b62}
#arfm-root .arfm-imp-st{margin-left:auto;font-size:12.5px;font-weight:650}
#arfm-root .s-Sedia .arfm-imp-st{color:#0f5232}#arfm-root .s-Ralat .arfm-imp-st{color:#8f2a22}
#arfm-root .arfm-imp-cells{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
#arfm-root .arfm-imp-cells span{font-size:13px;padding:3px 9px;border-radius:8px;background:#f1f4f2}
#arfm-root .arfm-imp-cells .bad{background:#fbe3e0;color:#8f2a22}#arfm-root .arfm-imp-cells .fix{background:#e6eefc;color:#1f4f9a}
#arfm-root .arfm-imp-note{margin:6px 0 0;color:#8f2a22;font-size:13.5px}
#arfm-root .arfm-imp-warn{margin:6px 0 0;color:#6f4700;font-size:13.5px}
#arfm-root .arfm-imp-edit:not(:empty){margin-top:10px;padding-top:10px;border-top:1px dashed #d9e2dc}
#arfm-root .arfm-imp-edit .bad{border-color:#b3261e}
@media screen and (max-width:800px){#arfm-root .arfm-imp-step{flex-direction:column;gap:8px}#arfm-root .arfm-imp-maps{grid-template-columns:1fr}#arfm-root .arfm-imp-actions{position:sticky;bottom:0;background:#fff;padding:10px 0 4px;z-index:2}}
#arfm-root .arfm-imp-maps:not(.all) .arfm-imp-map:not(.req):not(.on){display:none}
#arfm-root .arfm-actions:has(#existing-tab){flex-wrap:nowrap;overflow-x:auto;gap:8px;padding-bottom:4px;scrollbar-width:none}
#arfm-root .arfm-actions:has(#existing-tab) .arfm-btn{white-space:nowrap;flex:none}
@media screen and (max-width:800px){
 #arfm-root .arfm-reg-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #arfm-root .arfm-reg-tabs .arfm-btn{width:100%;min-height:48px;font-size:13.5px;line-height:1.2;white-space:normal!important;overflow-wrap:anywhere;padding:8px 10px}
 #arfm-root #imp-sheet label{display:flex;flex-direction:column;gap:6px;margin-top:10px}
 #arfm-root #imp-sheet select{width:100%}
}
/* v0.28.0 — import: mod, kemas kini, gambar pukal, sejarah batch */
#arfm-root .arfm-imp-seg{display:flex;gap:4px;padding:4px;margin:0 0 12px;border-radius:14px;background:rgba(23,107,69,.08);overflow-x:auto;scrollbar-width:none}
#arfm-root .arfm-imp-seg button{flex:1 0 auto;min-height:42px;border:0;border-radius:10px;background:transparent;color:var(--arfm-text);font:inherit;font-weight:600;padding:8px 12px;cursor:pointer;white-space:nowrap}
#arfm-root .arfm-imp-seg button.on{background:var(--arfm-card,#fff);color:var(--arfm-accent);box-shadow:0 1px 3px rgba(0,0,0,.12)}
#arfm-root .arfm-imp-export{border:1px solid var(--arfm-line);border-radius:12px;padding:10px 12px;margin-bottom:10px;background:rgba(23,107,69,.05)}
#arfm-root .arfm-imp-export p{margin:0 0 8px}
#arfm-root .arfm-imp-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#arfm-root .arfm-imp-inline select,#arfm-root .arfm-imp-inline input{flex:1 1 140px;min-width:0}
#arfm-root .arfm-imp-upd{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;margin:8px 0 12px;padding:10px 12px;border:1px solid var(--arfm-line);border-radius:12px}
#arfm-root .arfm-imp-upd label{display:flex;flex-direction:column;gap:4px;font-weight:600}
#arfm-root .arfm-imp-upd .arfm-span-2{grid-column:1/-1;margin:0}
#arfm-root .arfm-imp-map em{font-style:normal;font-weight:500;color:var(--arfm-accent)}
#arfm-root .arfm-imp-row.s-Sama{border-left-color:#9aa8a0;opacity:.8}#arfm-root .s-Sama .arfm-imp-st{color:var(--arfm-muted)}
#arfm-root .arfm-imp-chgs{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
#arfm-root .arfm-imp-chg{font-size:13px;padding:4px 9px;border-radius:8px;background:rgba(31,79,154,.09)}
#arfm-root .arfm-imp-chg small{color:var(--arfm-muted)}#arfm-root .arfm-imp-chg s{color:var(--arfm-muted)}
#arfm-root .arfm-imp-batch{margin:4px 0 10px;padding:8px 12px;border-radius:10px;background:rgba(23,107,69,.08)}
#arfm-root .arfm-imp-help{margin-top:10px;font-size:13.5px}#arfm-root .arfm-imp-help ul{margin:6px 0;padding-left:18px}#arfm-root .arfm-imp-help code{font-size:12.5px}
#arfm-root .arfm-ph-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;margin:10px 0}
#arfm-root .arfm-ph-card{border:1px solid var(--arfm-line);border-radius:12px;overflow:hidden;background:var(--arfm-card,#fff);display:flex;flex-direction:column}
#arfm-root .arfm-ph-card.s-Ralat,#arfm-root .arfm-ph-card.s-Gagal{border-color:#e2a49e}#arfm-root .arfm-ph-card.s-Berjaya{opacity:.7}
#arfm-root .arfm-ph-card img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:rgba(0,0,0,.05)}
#arfm-root .arfm-ph-info{padding:8px 10px;display:flex;flex-direction:column;gap:5px;min-width:0}
#arfm-root .arfm-ph-info small{color:var(--arfm-muted);overflow-wrap:anywhere}#arfm-root .arfm-ph-name{font-size:11.5px}
#arfm-root .arfm-ph-ok{color:var(--arfm-accent);font-weight:650;font-size:13px}
#arfm-root .arfm-imp-batches{display:grid;gap:10px}
#arfm-root .arfm-imp-bcard{border-left:4px solid var(--arfm-accent)}
#arfm-root .arfm-imp-bcard.st-UNDONE{border-left-color:#9aa8a0;opacity:.85}#arfm-root .arfm-imp-bcard.st-PARTIAL_UNDO,#arfm-root .arfm-imp-bcard.st-UNDOING,#arfm-root .arfm-imp-bcard.st-OPEN{border-left-color:#c98a12}
#arfm-root .arfm-imp-bhead{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
#arfm-root .arfm-imp-bhead b{display:block;font-size:15px}#arfm-root .arfm-imp-bhead small{color:var(--arfm-muted);font-size:12px}
#arfm-root .arfm-imp-bst{font-size:12.5px;font-weight:650;padding:3px 10px;border-radius:999px;background:rgba(23,107,69,.1);white-space:nowrap}
#arfm-root .arfm-imp-bmeta{margin:8px 0 4px;overflow-wrap:anywhere}#arfm-root .arfm-imp-bmeta small{color:var(--arfm-muted)}
#arfm-root .arfm-imp-bcount{margin:0 0 6px;font-weight:600}
#arfm-root .arfm-imp-bbody:not(:empty){margin-top:10px;padding-top:10px;border-top:1px dashed var(--arfm-line)}
#arfm-root .arfm-imp-undo label{display:flex;flex-direction:column;gap:4px;font-weight:600;margin:6px 0}
#arfm-root .arfm-btn.arfm-btn-danger{background:#b3261e;border-color:#b3261e;color:#fff}
html[data-arfm-theme="dark"] #arfm-root .arfm-btn.arfm-btn-danger{background:#8f2a22;border-color:#8f2a22;color:#fff}
html[data-arfm-theme="dark"] #arfm-root .arfm-imp-seg{background:rgba(143,210,174,.08)}
html[data-arfm-theme="dark"] #arfm-root .arfm-imp-chg{background:rgba(160,184,222,.12)}
@media screen and (max-width:800px){#arfm-root .arfm-imp-seg button{flex:1 0 auto;font-size:13.5px;padding:8px 10px}#arfm-root .arfm-ph-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#arfm-root .arfm-imp-upd{grid-template-columns:1fr}}
#arfm-root .arfm-imp-pairs{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
#arfm-root .arfm-imp-pairs span{font-size:13px;padding:4px 9px;border-radius:8px;background:rgba(23,107,69,.08)}#arfm-root .arfm-imp-pairs small{color:var(--arfm-muted)}
#arfm-root .arfm-ph-links{display:flex;gap:12px;flex-wrap:wrap}
@media screen and (max-width:800px){#arfm-root .arfm-imp-seg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#arfm-root .arfm-imp-seg button{white-space:normal;line-height:1.2}}
/* v0.29.0 — profil ternakan untuk telefon */
#arfm-root .arfm-pm-sections,#arfm-root .arfm-pm-bar{display:none}
#arfm-root .arfm-pm-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
#arfm-root .arfm-pm-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:76px;padding:10px 6px;border:1px solid var(--arfm-line);border-radius:14px;background:var(--arfm-card,#fff);color:var(--arfm-text);font:inherit;font-size:13px;font-weight:600;line-height:1.2;text-align:center;cursor:pointer}
#arfm-root .arfm-pm-tile svg{width:26px;height:26px;color:var(--arfm-accent)}
#arfm-root .arfm-pm-tile:active{transform:scale(.97)}
#arfm-root .arfm-pm-moretile{display:none}
@media screen and (max-width:800px){
 #arfm-root .arfm-pm .arfm-profile-tabs{display:none!important}
 #arfm-root .arfm-pm-sections{display:flex;flex-direction:column;margin:0 0 14px;border:1px solid var(--arfm-line);border-radius:16px;overflow:hidden;background:var(--arfm-card,#fff)}
 #arfm-root .arfm-pm-sec{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:10px 14px;border:0;border-bottom:1px solid var(--arfm-line);background:transparent;color:var(--arfm-text);font:inherit;text-align:left;cursor:pointer}
 #arfm-root .arfm-pm-sec:last-child{border-bottom:0}
 #arfm-root .arfm-pm-sec:active{background:rgba(23,107,69,.06)}
 #arfm-root .arfm-pm-ico{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:rgba(23,107,69,.09);color:var(--arfm-accent)}
 #arfm-root .arfm-pm-ico svg{width:21px;height:21px}
 #arfm-root .arfm-pm-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
 #arfm-root .arfm-pm-txt b{font-size:15px}
 #arfm-root .arfm-pm-txt small{color:var(--arfm-muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #arfm-root .arfm-pm-sec.warn .arfm-pm-txt small{color:#a52b2b;font-weight:600}
 #arfm-root .arfm-pm-sec>svg{flex:none;width:18px;height:18px;color:var(--arfm-muted)}
 #arfm-root .arfm-pm-tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 #arfm-root .arfm-pm-tile{min-height:72px;padding:8px 4px;font-size:12px;border-radius:12px}
 #arfm-root .arfm-pm-tile svg{width:24px;height:24px}
 #arfm-root .arfm-pm-moretile{display:flex}
 #arfm-root .arfm-pm-tiles:not(.open) .more{display:none}
 #arfm-root .arfm-pm .arfm-profile-role-actions{padding:12px}
 #arfm-root .arfm-pm .arfm-profile-role-actions h3{font-size:14px;margin:0 0 8px;color:var(--arfm-muted);font-weight:600}
 /* kepala profil padat */
 #arfm-root .arfm-pm .arfm-profile-hero{grid-template-columns:96px minmax(0,1fr);gap:12px;padding:12px;align-items:start}
 #arfm-root .arfm-pm .arfm-profile-photo{width:96px;aspect-ratio:1;border-radius:14px;overflow:hidden}
 #arfm-root .arfm-pm .arfm-profile-photo img{width:100%;height:100%;object-fit:cover}
 #arfm-root .arfm-pm .arfm-photo-placeholder{font-size:11px;padding:6px;text-align:center}
 #arfm-root .arfm-pm .arfm-photo-placeholder .arfm-btn{font-size:11px;padding:4px 6px;min-height:32px}
 #arfm-root .arfm-pm .arfm-profile-title h2{font-size:22px;margin:0}
 #arfm-root .arfm-pm .arfm-profile-title p{margin:2px 0 6px;font-size:14px}
 #arfm-root .arfm-pm .arfm-profile-meta{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}
 #arfm-root .arfm-pm .arfm-profile-meta span{font-size:12px;padding:4px 9px;border-radius:999px;background:rgba(23,107,69,.07)}
 #arfm-root .arfm-pm .arfm-profile-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
 #arfm-root .arfm-pm .arfm-mini-kpi{padding:10px 12px}
 /* mod bahagian */
 #arfm-root .arfm-pm[data-pm="home"] .arfm-tab-panel{display:none!important}
 #arfm-root .arfm-pm[data-pm="section"]>*:not(.arfm-pm-bar):not(.arfm-tab-panel){display:none!important}
 #arfm-root .arfm-pm[data-pm="section"] .arfm-pm-bar{display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:5;margin:-4px -4px 10px;padding:8px 6px;background:var(--arfm-bg,#f4f6f3);border-bottom:1px solid var(--arfm-line)}
 #arfm-root .arfm-pm-bar button{display:flex;align-items:center;gap:4px;min-height:44px;padding:0 10px 0 4px;border:0;background:transparent;color:var(--arfm-accent);font:inherit;font-weight:650;cursor:pointer}
 #arfm-root .arfm-pm-bar button svg{width:22px;height:22px}
 #arfm-root .arfm-pm-bar b{font-size:16px;margin-left:auto;margin-right:6px;text-align:right}
}
html[data-arfm-theme="dark"] #arfm-root .arfm-pm-tile,html[data-arfm-theme="dark"] #arfm-root .arfm-pm-sections{background:#16211b;border-color:#2a3a31}
html[data-arfm-theme="dark"] #arfm-root .arfm-pm-tile svg,html[data-arfm-theme="dark"] #arfm-root .arfm-pm-ico{color:#8fd2ae}
html[data-arfm-theme="dark"] #arfm-root .arfm-pm-ico{background:rgba(143,210,174,.1)}
html[data-arfm-theme="dark"] #arfm-root .arfm-pm-sec.warn .arfm-pm-txt small{color:#f2a59c}
html[data-arfm-theme="dark"] #arfm-root .arfm-pm[data-pm="section"] .arfm-pm-bar{background:#0e1612}
@media screen and (max-width:800px){#arfm-root .arfm-pm .arfm-pm-quiet{display:none}}
