@font-face{font-family:Cairo;src:url('/fonts/Cairo.ttf') format('truetype');font-weight:200 1000;font-display:swap}
:root{color-scheme:dark;--bg:#10141b;--bg2:#181e28;--bg3:#202835;--border:#2b3545;--text:#edf1f7;--text2:#b4bfce;--text3:#95a3b5;--accent:#f49b55}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);font-family:Cairo,sans-serif;margin:0}button,input,select{font:inherit}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:var(--accent)}[hidden]{display:none!important}
.app-header{height:80px;padding:0 32px;border-bottom:1px solid var(--border);background:var(--bg);position:sticky;top:0;z-index:120}.header-inner{height:80px;max-width:none}.brand{gap:12px}.brand-icon{background:#f49b5518;border:1px solid #f49b5533;color:var(--accent);width:44px;height:44px;border-radius:14px}.brand-name{font-family:Tajawal,sans-serif;font-size:24px;letter-spacing:1px;color:var(--text);direction:ltr}.brand-stack{display:flex;flex-direction:column;gap:2px}.brand-stack #sync-status{font-size:10px;color:var(--text3);direction:rtl;max-width:260px}.header-date{color:var(--text3);font-size:12px}.sync-tools{padding:20px;display:flex;flex-direction:column;gap:12px}.sync-tools a{text-decoration:none;font-size:13px}.account-toggle{border:1px solid var(--border);background:var(--bg2);color:var(--text2);width:42px;height:42px;border-radius:12px;font-size:20px}.account-panel{position:fixed;top:72px;left:24px;width:280px;z-index:240;background:var(--bg2);border:1px solid var(--border);border-radius:18px;box-shadow:0 20px 60px #0008}
.tab-nav{position:fixed;right:0;top:80px;bottom:0;width:230px;display:flex;flex-direction:column;gap:5px;padding:24px 16px;background:var(--bg);border-left:1px solid var(--border);overflow:auto;z-index:110}.tab-btn{width:100%;display:flex;gap:12px;align-items:center;text-align:right;border:0;border-radius:12px;min-height:48px;padding:12px 14px;color:var(--text2);font-size:13px;background:transparent;flex-shrink:0}.tab-btn.active{background:#f49b5514;color:var(--accent);border:0}.tab-icon{display:inline-flex;font-size:20px;width:24px}.tab-icon svg,.brand-icon svg{width:22px;height:22px}.content{max-width:1500px;margin:0 230px 0 0;padding:30px 36px 60px;min-width:0}.page-heading{margin-bottom:24px}.page-heading h1{font:800 28px Tajawal,sans-serif;margin:0 0 6px}.page-heading p{margin:0;color:var(--text3);font-size:13px}.dash-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:22px}.dash-card{min-height:118px;padding:18px 20px;border:1px solid var(--border);border-radius:16px;background:var(--bg2);box-shadow:none}.dash-val{font-size:30px;font-family:Tajawal,sans-serif;line-height:1.25}.dash-label{font-size:13px;color:var(--text2)}.dash-sub{font-size:11px;color:var(--text3)}.card{border:1px solid var(--border);border-radius:16px;background:var(--bg2);margin-bottom:20px;box-shadow:none;min-width:0;overflow:hidden}.card-head{padding:16px 20px;font-size:14px;border-bottom:1px solid var(--border);background:transparent}.card-body{padding:20px;overflow-x:auto;min-width:0}.grid2>*{min-width:0}.tbl{font-size:13px;width:100%;white-space:nowrap}.tbl th{font-size:11px;padding:13px 12px;background:var(--bg3);color:var(--text3)}.tbl td{padding:15px 12px;border-color:var(--border)}.info-table{font-size:13px}.info-table td{padding:12px 8px}.field label{font-size:12px;color:var(--text2);margin-bottom:8px}.field input,.field select,input[type=email]{min-height:48px;border:1px solid var(--border2);border-radius:10px;padding:10px 12px;background:var(--bg3);color:var(--text);font-size:15px;width:100%;max-width:100%}.field{min-width:0}.form-grid{gap:18px}.btn,.save-btn,.add-cattle-btn{min-height:44px;padding:10px 16px;border-radius:10px;font-size:13px}.btn-primary{background:var(--accent);color:#1b1713;border-color:var(--accent);font-weight:800}.metrics{gap:10px}.metric{padding:16px;border-radius:12px}.metric-label{font-size:12px}.metric-value{font-size:24px}.cattle-pill,.sub-btn,.pnb,.phase-btn{min-height:42px;font-size:12px;border-radius:10px}.alert{font-size:13px;line-height:1.9;padding:13px 16px;border-radius:10px}.chart-wrap{min-height:220px}.more-toggle{display:none}
.entry-page{min-height:100svh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 80% 0%,#f49b5510,transparent 50%),var(--bg)}.entry-card{width:100%;max-width:440px;padding:36px;border:1px solid var(--border);border-radius:24px;background:var(--bg2)}.wordmark{font:800 27px Tajawal,sans-serif;letter-spacing:2px;margin:0;color:var(--text)}.eyebrow{color:var(--accent);font-size:12px;margin:28px 0 8px}.entry-card h2{font:800 28px Tajawal,sans-serif;margin:0 0 14px}.entry-card p,.admin-page p{font-size:13px;line-height:1.9;color:var(--text2)}.entry-action{display:block;text-align:center;background:var(--accent);color:#21180f;padding:14px;border-radius:12px;text-decoration:none;font-weight:800;margin:28px 0}.install-note{border-top:1px solid var(--border);padding-top:20px}.admin-page{max-width:880px;margin:auto;padding:32px 24px}.admin-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:48px}.admin-page h1{font:800 30px Tajawal,sans-serif}.admin-page h2{font:700 18px Tajawal,sans-serif;margin:0 0 12px}.admin-page .card{padding:24px}.admin-page form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.admin-page form label{display:block;font-size:12px;color:var(--text2);margin-bottom:8px}.admin-page .email-field{flex:1;min-width:200px}.admin-page button{border:1px solid var(--border);background:var(--bg3);color:var(--text);padding:10px 16px;border-radius:10px;min-height:48px}.admin-page button[type=submit]{background:var(--accent);color:#21180f;font-weight:800}.admin-page .row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--border);flex-wrap:wrap}.admin-page .row span{overflow-wrap:anywhere;font-size:14px}.admin-page #status{font-size:13px;min-height:24px;color:var(--accent)}
@media(max-width:1050px){.tab-nav{width:205px}.content{margin-right:205px;padding:24px}.dash-grid{gap:10px}.dash-card{padding:16px}}
@media(max-width:700px){.app-header{height:72px;padding:0 16px}.header-inner{height:72px;gap:10px}.brand{gap:10px}.brand-name{font-size:21px}.brand-icon{width:40px;height:40px}.brand-stack #sync-status{font-size:9px;max-width:220px}.header-date{display:none}.account-toggle{width:40px;height:40px}.account-panel{left:16px;top:66px}.tab-nav{top:auto;bottom:0;right:0;left:0;width:100%;height:80px;padding:6px 6px max(10px,env(safe-area-inset-bottom));border:0;border-top:1px solid var(--border);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;overflow:visible;background:#161c26;z-index:200}.tab-btn{padding:6px 2px;min-height:56px;border-radius:10px;flex-direction:column;gap:4px;justify-content:center;font-size:10px;width:100%;line-height:1.2}.tab-icon{justify-content:center}.tab-nav .secondary-tab{display:none}.tab-nav.more-open .secondary-tab{display:flex;position:relative;font-size:12px;min-height:76px;background:var(--bg3)}.tab-nav.more-open{height:auto;grid-template-columns:repeat(2,minmax(0,1fr));padding:20px 16px 32px;gap:10px;border-radius:24px 24px 0 0;box-shadow:0 -40px 100px #0008}.tab-nav.more-open .primary-tab{display:none}.more-toggle{display:flex;border:0;background:transparent;color:var(--text2);align-items:center;justify-content:center;flex-direction:column;gap:3px;font-size:10px;font-family:inherit;border-radius:10px}.more-toggle svg{width:24px;height:24px}.tab-nav.more-open .more-toggle{grid-column:1/-1;min-height:44px;color:var(--accent);font-size:13px;flex-direction:row;gap:8px}.content{margin:0;padding:24px 16px 104px}.page-heading{margin-bottom:20px}.page-heading h1{font-size:26px}.page-heading p{font-size:12px}.dash-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.dash-card{min-height:112px;padding:14px;border-radius:14px}.dash-val{font-size:27px}.dash-label{font-size:12px}.dash-sub{font-size:10px}.card{border-radius:14px;margin-bottom:16px}.card-head{padding:14px 16px;font-size:13px}.card-body{padding:16px}.grid2,.form-grid{grid-template-columns:1fr!important}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:12px}.metric-value{font-size:23px}.content [style*="grid-template-columns:1fr 1fr"],.content [style*="grid-template-columns:repeat(4"]{grid-template-columns:1fr!important}.tbl{font-size:12px}.tbl td,.tbl th{padding:12px 10px}.btn{min-height:46px}.entry-card{padding:28px}.admin-page{padding:24px 16px}.admin-top{margin-bottom:32px}.admin-page .card{padding:20px}.admin-page form button{width:100%}.admin-page .row button{font-size:12px;min-height:42px}.admin-page h1{font-size:27px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(max-width:700px){.content [style*="grid-template-columns:290px 1fr"]{grid-template-columns:minmax(0,1fr)!important}.content [style*="display:grid"]>*{min-width:0}}
:root{color-scheme:light;--bg:#FAF7F0;--bg2:#FFFFFF;--bg3:#EDF1E7;--bg4:#E2E6DC;--border:#E2E6DC;--border2:#D0D9CB;--text:#1D493D;--text2:#526C5D;--text3:#718073;--accent:#1D493D;--accent2:#CDA967;--green:#1D493D;--gbg:#EDF1E7;--gborder:#D0DCCB;--red:#AC4D41;--rbg:#F8E9E4;--rborder:#E8C7BF;--amber:#92713A;--abg:#F5ECD9;--aborder:#DECCAA;--blue:#1D493D;--bbg:#EDF1E7;--bborder:#D0DCCB;--r:24px;--r2:18px;--r3:12px}
body{font-family:Cairo,sans-serif}.app-header{height:112px;padding:24px;background:var(--bg);border:0;position:relative}.header-inner{height:64px}.brand-name,.wordmark{font-family:Cairo,sans-serif;font-weight:800;color:var(--text)}.brand-icon{width:44px;height:44px;background:transparent;border:0}.brand-icon img{width:44px;height:44px}.brand-icon svg{width:30px;height:30px}.account-panel{top:90px;background:#fff;border-radius:24px;box-shadow:0 16px 60px #1d493d20}.tab-nav{top:112px;background:var(--bg)}.tab-btn.active{background:var(--bg3);color:var(--text)}.page-heading h1{font:800 27px/1.5 Cairo,sans-serif}.page-heading p{font-size:12px}.content{padding-top:24px}.card,.cat-card,.dash-card{border-radius:24px;box-shadow:none}.card-head{background:transparent;padding:18px 22px}.card-title::before{display:none}.card-body{padding:22px}.dash-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dash-card{min-height:106px;padding:16px 18px}.dash-val{font:800 29px/1.6 Cairo,sans-serif}.dash-label{font-size:12px}.dash-sub{font-size:10px}.herd-hero .dash-card{background:var(--text);border-color:var(--text);min-height:132px}.herd-hero .dash-card .dash-val{color:#fff!important;font-size:35px}.herd-hero .dash-card .dash-label,.herd-hero .dash-card .dash-sub{color:#D2DDCF}.metric{border-radius:18px;background:#fff}.alert{border-radius:18px;padding:16px;font-size:13px;line-height:1.9}.btn,.entry-action{border-radius:16px;min-height:48px;font-size:13px;font-weight:700}.btn-primary,.entry-action{background:var(--text);color:#fff;border-color:var(--text)}.btn-ghost{background:#fff;color:var(--text)}input:not([type=range]):not([type=checkbox]),select,textarea{background:#fff;color:var(--text);border:1px solid var(--border);border-radius:18px;padding:12px 14px;min-height:52px;font-size:14px;max-width:100%}select option{background:#fff}.field label{font-size:12px}.form-grid{gap:18px;margin-bottom:18px}.sub-btn,.pnb,.cattle-pill,.recipe-chip{min-height:42px;border-radius:14px;background:#fff;padding:9px 14px}.sub-btn.active,.ph1-a,.ph2-a,.ph3-a,.ph4-a{background:var(--text);color:#fff;border-color:var(--text)}.ph-header{background:var(--bg3);border-color:var(--border);border-radius:20px}.ph1h .ph-title,.ph2h .ph-title,.ph3h .ph-title,.ph4h .ph-title{color:var(--text)}.table-scroll{overflow:auto}.vax-content{background:var(--bg3);border-radius:18px;padding:15px}.ing-chip{padding:11px;border-radius:12px}.entry-card{background:var(--bg);box-shadow:none;border:0}.entry-hero{background:var(--text);color:#fff;border-radius:30px;min-height:292px;display:flex;align-items:center;justify-content:center;flex-direction:column;margin-bottom:26px;padding:28px;text-align:center}.entry-hero img{width:88px;height:88px;margin-bottom:18px}.entry-hero .wordmark{color:#fff;font-size:31px}.entry-hero p{color:#e6ebdc;font-size:20px;font-weight:700}.entry-card form{display:grid;gap:18px}.entry-card form label{display:block;margin-bottom:8px}.entry-card .entry-action{width:100%;min-height:52px}.entry-note{text-align:center;color:var(--text3);font-size:11px}.admin-page{max-width:1440px}.admin-top img{width:44px;height:44px}.admin-page .card{padding:24px}.admin-page form{display:grid;gap:18px}.admin-page .row{flex-wrap:wrap;gap:16px;padding:18px 0}.admin-page button{border:1px solid var(--border);border-radius:14px;background:var(--text);color:#fff;min-height:48px;padding:10px 18px}.admin-page .row button{background:#fff;color:var(--text)}.platform-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.platform-summary strong{display:block;font-size:32px}.platform-record{white-space:pre-wrap;overflow-wrap:anywhere;max-height:60vh;overflow:auto;padding:16px;background:var(--bg3);border-radius:18px;font-size:13px}.empty-state{text-align:center;padding:40px 24px;color:var(--text3)}dialog{border:1px solid var(--border);border-radius:24px;padding:28px;max-width:calc(100vw - 32px);width:420px;color:var(--text);background:var(--bg)}dialog::backdrop{background:#153b3170}dialog input{width:100%}dialog form{display:grid;gap:16px}dialog .dialog-actions{display:flex;gap:12px}dialog .btn{flex:1}.sync-message{border-radius:18px;background:var(--abg);padding:18px;font-size:13px;line-height:1.8}
@media(max-width:760px){.app-header{height:112px;padding:24px}.content{margin:0;padding:12px 24px 120px}.tab-nav{top:auto;bottom:0;height:88px;background:#fff;border-top:1px solid var(--border);padding-bottom:max(16px,env(safe-area-inset-bottom))}.tab-btn{min-height:60px;border-radius:18px}.tab-nav.more-open .secondary-tab{background:var(--bg);min-height:84px}.tab-nav.more-open{box-shadow:0 -30px 100px #153b3120}.page-heading{margin-bottom:24px}.page-heading h1{font-size:25px}.dash-grid{gap:12px}.dash-card{padding:14px;min-height:96px;border-radius:20px}.herd-hero .dash-card .dash-val{font-size:30px}.card-body{padding:18px}.entry-page{display:block;padding:24px 16px}.entry-card{padding:0;margin:auto;max-width:440px}.entry-hero{margin-top:34px}.admin-page{padding:24px}.platform-summary{grid-template-columns:1fr}.admin-page .row{align-items:stretch;flex-direction:column}.admin-page .row button{width:100%}}

.entry-page{background:var(--bg)}
.herd-hero{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;background:var(--text);border-radius:24px;overflow:hidden;min-height:132px}.herd-hero .dash-card{background:transparent;border:0;border-radius:0;min-height:132px}.herd-hero .dash-val{white-space:nowrap}.herd-hero .dash-label{font-size:11px}.card-body{overflow-x:auto}#notif-bell{display:flex;align-items:center;gap:4px;position:relative;min-width:28px;min-height:44px}#notif-bell svg{width:22px;height:22px;stroke:var(--text)}.dash-card .dash-val{font-family:Cairo,sans-serif}.entry-hero p{margin:10px 0}.entry-card h2{font-family:Cairo,sans-serif;font-size:21px;line-height:1.7}.entry-hero .wordmark{line-height:1.5}
@media(max-width:760px){.dash-card{min-height:89px}.dash-val{font-size:24px}.herd-hero .dash-val{font-size:34px!important}.herd-hero .dash-card{min-height:132px}.header-inner{gap:12px}.brand-name{font-size:18px}.brand-stack #sync-status{font-size:9px;max-width:175px}.brand{gap:10px}.brand-icon,.brand-icon img{width:40px;height:40px}.header-inner #notif-bell .notif-count{position:absolute;top:0;right:-7px}.page-heading h1{font-size:25px}.account-toggle{width:40px;height:40px;flex-shrink:0}}

.account-toggle svg{width:22px;height:22px;vertical-align:middle}@media(min-width:1100px){.dash-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

.admin-page .row span{overflow-wrap:anywhere;max-width:100%}.admin-page button[type=button]{font-family:inherit}

@media(max-width:760px){.admin-top{flex-wrap:wrap;gap:12px}.admin-top .wordmark{font-size:20px}.admin-top a{font-size:12px}}
/* Platform owner workspace: the existing forest/cream design, with scoped styles. */
.owner-shell{min-height:100vh;background:var(--bg);font:14px/1.7 Cairo,sans-serif;color:var(--text)}
.owner-sidebar{position:fixed;inset:0 0 0 auto;width:246px;padding:32px 22px;background:#173E33;color:#fff;display:flex;flex-direction:column;z-index:10}
.owner-brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-size:22px;letter-spacing:1px}.owner-brand img{width:42px;height:48px}.owner-caption{font-size:11px;color:#D2DECE;margin:12px 55px 34px 0}
.owner-sidebar nav{display:grid;gap:9px}.owner-sidebar nav a{padding:13px 16px;border-radius:13px;color:#DDE7D8;text-decoration:none;font-size:13px}.owner-sidebar nav a:hover{background:#ffffff10}.owner-sidebar nav .is-current{background:#E9EEDB;color:#173E33;font-weight:800}.owner-identity{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:24px;border-top:1px solid #ffffff26}.owner-avatar{background:#D0AC6B;color:#173E33;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;font-weight:800}.owner-identity strong,.owner-identity small{display:block;font-size:11px}.owner-identity small{color:#D0DDCB;font-size:10px}
.owner-main{margin-right:246px;max-width:1600px;padding:38px 42px 48px}.owner-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}.owner-heading h1{font-size:30px;letter-spacing:-.7px;line-height:1.6;margin:5px 0}.owner-heading p,.owner-section-heading p{font-size:13px;color:#657568;margin:4px 0}.owner-eyebrow{font-size:10px!important;letter-spacing:.6px;font-weight:700;color:#748271!important}.owner-shell button{font-family:inherit;cursor:pointer}.owner-shell button:disabled{opacity:.5;cursor:wait}
.owner-primary,.owner-secondary,.owner-row-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 19px;border-radius:13px;border:1px solid #DDE4D8;text-decoration:none;font-weight:700;font-size:12px;white-space:nowrap}.owner-primary{background:#1D493D;color:#fff;border-color:#1D493D}.owner-secondary{background:#fff;color:#1D493D}.owner-row-action{background:#EFF3E9;color:#1D493D;border:0;min-height:38px;padding:7px 13px}
.owner-status:empty{display:none}.owner-status{padding:12px 16px;background:#F4ECD9;border-radius:12px;line-height:1.8;color:#4B4935}.owner-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:26px 0}.owner-metric{position:relative;background:#fff;border:1px solid #E0E6DB;border-radius:20px;padding:23px}.owner-metric:first-child{background:#1D493D;color:#fff;border-color:#1D493D}.owner-metric span{font-size:12px}.owner-metric strong{display:block;font-size:36px;line-height:1.5;margin:7px 0}.owner-metric small{color:#758172;font-size:10px}.owner-metric:first-child small{color:#D7E1CF}
.owner-card{background:#fff;border:1px solid #E0E6DB;border-radius:22px;margin:22px 0;padding:24px;scroll-margin-top:24px;min-width:0}.owner-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.owner-section-heading h2,.owner-test-card h2{margin:0;font-size:18px}.owner-count{display:inline-flex;align-items:center;justify-content:center;font-size:11px;background:#EDF1E7;border-radius:9px;min-width:25px;height:25px;margin-inline-start:5px}.owner-search{width:240px;max-width:100%}.owner-search label{font-size:10px;color:#6A7869;display:block;margin-bottom:5px}.owner-search input{width:100%;min-height:44px!important;font-size:12px!important;border-radius:12px!important}
.owner-table-wrap{overflow:auto;max-width:100%;border:1px solid #E4E9DF;border-radius:14px}.owner-table{width:100%;border-collapse:collapse;text-align:right;font-size:12px;white-space:nowrap}.owner-table th{background:#F2F5EE;font-weight:700;color:#61705E;font-size:11px;padding:14px 16px;border-bottom:1px solid #E1E7DC}.owner-table td{padding:17px 16px;border-bottom:1px solid #EDF0E9;max-width:340px;white-space:normal;overflow-wrap:anywhere;min-width:90px}.owner-table tr:last-child td{border-bottom:0}.owner-table tbody tr:hover{background:#FAFBF7}.owner-farm-name strong,.owner-farm-name small{display:block}.owner-farm-name small{font-size:10px;color:#778471;margin-top:4px}.owner-farm-name{min-width:140px}.owner-badge{display:inline-flex;white-space:nowrap;padding:7px 13px;border-radius:10px;background:#F4ECD9;color:#75602F;font-size:10px;font-weight:700}
.owner-record-nav{display:flex;gap:7px;flex-wrap:wrap;padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid #E4E9DF}.owner-record-nav button{border:1px solid #E2E7DC;border-radius:11px;background:#fff;color:#61705E;padding:9px 13px;min-height:42px;font-size:11px}.owner-record-nav .is-current{background:#1D493D;border-color:#1D493D;color:#fff}.owner-record-section+.owner-record-section{margin-top:28px}.owner-record-section h3{font-size:14px;margin:0 0 14px}.owner-empty{padding:44px 20px;text-align:center;color:#71806A;background:#F8FAF5;border-radius:14px}.owner-empty strong{display:block;font-size:15px}.owner-empty p{font-size:12px}.owner-create{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.owner-create .field label{display:block;margin-bottom:8px;font-size:12px}.owner-create input{width:100%;font-size:13px!important}.owner-create button{align-self:end;min-height:52px}.owner-test-card{background:#ECEFDF;border:1px solid #DCE3D1;border-radius:20px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px;margin-top:30px}.owner-test-card p{font-size:12px;color:#657461;margin:6px 0 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.test-banner{background:#F4ECD9;color:#594A2F;padding:12px 24px;font:700 12px/1.9 Cairo,sans-serif;text-align:center;border-bottom:1px solid #E6D4AC}.test-banner a{color:inherit}.test-banner strong{display:inline-block;margin-inline-end:10px}

@media(max-width:1100px){.owner-sidebar{width:210px;padding:26px 17px}.owner-main{margin-right:210px;padding:28px 24px}.owner-brand{font-size:18px}.owner-heading h1{font-size:26px}.owner-table{min-width:650px}}
@media(max-width:760px){.owner-sidebar{position:relative;width:auto;padding:18px 20px;display:block}.owner-brand{font-size:20px}.owner-brand img{width:32px;height:36px}.owner-caption,.owner-identity{display:none}.owner-sidebar nav{display:flex;overflow:auto;gap:5px;margin-top:16px;padding-bottom:2px}.owner-sidebar nav a{flex-shrink:0;padding:9px 12px;font-size:11px}.owner-main{margin:0;padding:24px 16px 36px}.owner-heading{align-items:flex-start;flex-direction:column;gap:12px}.owner-heading h1{font-size:26px}.owner-heading p{font-size:12px}.owner-heading>.owner-primary{width:100%}.owner-metrics{gap:8px;margin:22px 0}.owner-metric{padding:14px 10px;border-radius:16px}.owner-metric span{font-size:9px}.owner-metric strong{font-size:28px}.owner-metric small{display:none}.owner-card{padding:18px 14px;border-radius:18px}.owner-section-heading{align-items:flex-start;flex-direction:column}.owner-section-heading h2{font-size:17px}.owner-section-heading p{font-size:11px}.owner-search{width:100%}.owner-record-nav{flex-wrap:nowrap;overflow:auto;padding-bottom:14px}.owner-record-nav button{white-space:nowrap;flex-shrink:0}.owner-create{grid-template-columns:1fr}.owner-test-card{flex-direction:column;align-items:stretch;padding:22px}.owner-test-card h2{font-size:17px}.owner-table th,.owner-table td{padding:12px}.owner-table td{min-width:95px}.test-banner{padding:10px 16px;font-size:10px}}
@media(max-width:760px){.owner-sidebar nav{scrollbar-width:none}.owner-sidebar nav::-webkit-scrollbar{display:none}#farms .owner-table-wrap{border:0;overflow:visible}#farms .owner-table{min-width:0;display:block;white-space:normal}#farms .owner-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#farms .owner-table tbody{display:grid;gap:14px}#farms .owner-table tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #E1E7DC;border-radius:15px;padding:14px;gap:10px}#farms .owner-table td{display:block;border:0;padding:0;min-width:0}#farms .owner-table td::before{content:attr(data-label);display:block;font-size:10px;color:#75836E;margin-bottom:4px}#farms .owner-table td:first-child{grid-column:1/-1;padding-bottom:8px;border-bottom:1px solid #E9EDE3}#farms .owner-table td:first-child::before,#farms .owner-table td:last-child::before{display:none}#farms .owner-table td:nth-child(4),#farms .owner-table td:last-child{grid-column:1/-1}#farms .owner-row-action{width:100%;margin-top:4px}}
.staff-members{display:grid;gap:0}.staff-member{display:flex;align-items:center;gap:22px;padding:20px 0;border-bottom:1px solid #E5EADF}.staff-member:first-child{padding-top:0}.staff-member:last-child{border-bottom:0;padding-bottom:0}.staff-identity{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.staff-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#EDF2E7;color:#1D493D;font-size:19px;font-weight:800;flex-shrink:0}.staff-identity strong{display:block;font-size:13px;overflow-wrap:anywhere}.staff-identity small{display:block;font-size:11px;color:#71816B;margin-top:4px}.staff-state{background:#EDF4E6;color:#416337;border-radius:8px;padding:5px 9px;font-size:10px;white-space:nowrap}.staff-state.is-disabled{background:#F6EBE6;color:#944B40}.staff-actions{display:flex;gap:8px;align-items:center}.staff-actions button{font-size:11px;padding:9px 13px}.owner-field-help{display:block;font-size:10px;color:#6A7965;margin-top:8px}.owner-create select{width:100%}.entry-card #status:not(:empty){padding:13px 16px;border-radius:14px;background:#F4ECD9;color:#614A25;font-size:13px}.entry-card .entry-action{border:1px solid var(--text);cursor:pointer;margin:8px 0 12px}.entry-card button:disabled{opacity:.65;cursor:wait}.notice-page{min-height:100vh;display:grid;place-items:center;padding:24px}.notice-card{width:min(100%,480px);padding:40px 28px;background:#fff;border:1px solid #E0E6DB;border-radius:26px;text-align:center}.notice-card img{width:60px;height:68px}.notice-card h1{font-size:25px;margin:22px 0 12px}.notice-card p{color:#6B7967;line-height:2;font-size:14px}.notice-card a{margin:10px 4px}.notice-code{font-size:12px;letter-spacing:3px;color:#9C8050;margin-top:24px}
@media(min-width:761px){.test-mode .tab-nav{top:160px;height:calc(100vh - 160px)}}
@media(max-width:760px){.staff-member{align-items:flex-start;flex-wrap:wrap;gap:12px;padding:18px 0}.staff-identity{flex-basis:calc(100% - 90px)}.staff-actions{width:100%;justify-content:flex-end}.staff-actions button{flex:1}.staff-identity strong{font-size:12px}.entry-card .admin-top{margin-top:10px}.entry-card h2{font-size:24px}.notice-card{padding:32px 22px}.notice-card h1{font-size:23px}}
@media(max-width:760px){#feed-phase-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#feed-phase-nav .pnb{width:100%;margin:0;min-height:72px;justify-content:center}.tab-nav .tab-btn.secondary-tab.active~.more-toggle{color:var(--text);background:var(--bg3)}}
.owner-heading-actions{display:flex;gap:10px;flex-wrap:wrap}.owner-heading-actions .owner-secondary{background:transparent}@media(max-width:760px){.owner-heading-actions{width:100%}.owner-heading-actions .owner-primary{flex:1}.owner-heading-actions .owner-secondary{font-size:10px}}
/* FARMARAH workspace composition: one navigation and one set of original records. */
.farmarah-product{--bg:#F5F6F0;--border:#E0E5D9;--text:#173E32;--text2:#586B58;--text3:#7B8876;--bg3:#EDF1E5;background:var(--bg)}
.farmarah-product .content{max-width:1560px;padding:30px 34px 56px}.farmarah-product .page-heading{margin-bottom:26px}.farmarah-product .page-heading h1{font-size:31px;letter-spacing:-.9px;line-height:1.55}.farmarah-product .page-heading p{font-size:12px;line-height:1.9;margin-top:7px}.workspace-identity{display:flex;flex-direction:column;gap:3px}.workspace-identity>span{font-size:10px;color:#7B8876}.workspace-identity>strong{font-size:13px;font-weight:700}.workspace-tools{display:flex;align-items:center;gap:20px}.farmarah-product .account-toggle{border-radius:50%;background:#fff;width:42px;height:42px}.farmarah-product .account-panel{border-radius:18px;box-shadow:0 12px 45px #153B311A}.farmarah-product .card{border-radius:18px;border-color:#E1E6DA;box-shadow:0 2px 4px #183E3103}.farmarah-product .card-head{padding:18px 22px;min-height:60px}.farmarah-product .card-body{padding:20px 22px}.farmarah-product .card-title{font-size:13px;font-weight:800}.farmarah-product .dash-grid{gap:14px;margin-bottom:22px}.farmarah-product .dash-grid>.dash-card{min-height:125px;padding:19px 22px;display:flex;flex-direction:column;border-radius:17px;position:relative}.farmarah-product .dash-grid>.dash-card::before{content:'';position:absolute;top:20px;left:20px;width:7px;height:7px;border-radius:50%;background:#C9B27A}.farmarah-product .dash-label{order:0;font-size:11px;color:#6B7A64;font-weight:600}.farmarah-product .dash-val{order:1;font-size:29px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.7;letter-spacing:-.8px;margin-top:6px}.farmarah-product .dash-sub{order:2;font-size:10px;color:#8A9481;margin-top:2px}.farmarah-product .herd-hero{display:grid;grid-template-columns:1.3fr 1fr 1fr;align-items:center;gap:10px;min-height:192px;background:#1B4435;border-radius:21px;padding:26px 32px;position:relative;isolation:isolate}.herd-hero::after{content:'';position:absolute;left:2%;top:0;bottom:0;width:240px;background:url('/logo.svg') center/185px no-repeat;opacity:.045;pointer-events:none;z-index:-1}.herd-intro{padding-left:20px}.section-kicker{font-size:10px;font-weight:700;letter-spacing:1.7px;color:#D6C58D}.herd-intro h2{font-size:24px;margin:12px 0 6px;line-height:1.6;color:#F5F5E8}.herd-intro p{font-size:11px;line-height:1.9;color:#AFC3AB;margin:0}.farmarah-product .herd-hero .dash-card{display:flex;flex-direction:column;border:0;border-right:1px solid #ffffff20;border-radius:0;padding:0 28px;min-height:100px;background:transparent}.farmarah-product .herd-hero .dash-label{font-size:11px;color:#C0D0B9}.farmarah-product .herd-hero .dash-val{font-size:46px;color:#F6F3DE!important;line-height:1.5;margin-top:8px}.farmarah-product .herd-hero .dash-sub{font-size:10px;color:#8FAB8E}.farmarah-product .dashboard-alert-card{background:#F8F1DF;border-color:#E8DCC0}.farmarah-product .dashboard-alert-card .card-head{border-bottom:0;min-height:45px;padding:14px 22px 0}.farmarah-product .dashboard-alert-card .card-body{padding:9px 22px 14px}.farmarah-product .dashboard-alert-card .alert{margin:0!important;border:0;background:transparent;padding:7px 0;border-radius:0;font-size:12px}.section-link{border:0;background:transparent;color:#866B32;font:700 11px Cairo,sans-serif;cursor:pointer;margin-right:auto;padding:4px}.farmarah-product #dash-content>.card .card-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.farmarah-product #dash-content .chart-wrap{min-height:190px}.farmarah-product .tbl th{background:#F0F3E8;font-size:10px;text-transform:none;letter-spacing:.1px;color:#6F7E65;padding:14px}.farmarah-product .tbl td{padding:16px 14px;font-size:12px}.farmarah-product .tbl tbody tr:last-child td{border-bottom:0}.farmarah-product .metric{border:1px solid #E4E8DD;border-radius:15px;background:#fff;padding:19px}.farmarah-product .metric-label{font-size:11px;color:#72816B}.farmarah-product .metric-value{font-size:26px;font-weight:800;line-height:1.8}.farmarah-product .field label{font-size:11px;font-weight:600}.farmarah-product .field input,.farmarah-product .field select,.farmarah-product .field textarea{border-radius:12px;background:#FFF;min-height:50px;border-color:#DDE4D5;font-size:13px}.farmarah-product .btn,.farmarah-product .pnb,.farmarah-product .sub-btn{border-radius:11px}.farmarah-product .alert{border-radius:13px}.farmarah-product .cattle-pill{border-radius:12px;border:1px solid #DCE4D3;background:#fff}.farmarah-product .cattle-pill.active{background:#1B4435;color:#fff}.farmarah-product .info-table td{font-size:12px;line-height:1.8}.farmarah-product .ph-header{border-radius:15px}.farmarah-product .badge{border-radius:7px}
@media(min-width:761px){.farmarah-product .app-header{height:83px;padding:0 34px;margin-right:246px;background:#FBFCF8;border-bottom:1px solid #E2E7DC;position:relative}.farmarah-product .header-inner{height:83px;gap:24px}.farmarah-product .brand{position:fixed;top:30px;right:24px;width:202px;z-index:300;gap:11px;align-items:center}.farmarah-product .brand-name{font-size:23px;color:#F5F5E7;letter-spacing:1px}.farmarah-product .brand-stack #sync-status{font-size:8px;line-height:1.8;color:#B1C2A7;max-width:145px}.farmarah-product .brand-icon{background:#F1F2DC;border-radius:13px;padding:6px;width:43px;height:43px;flex-shrink:0}.farmarah-product .brand-icon img{width:32px;height:32px}.farmarah-product .tab-nav,.test-mode.farmarah-product .tab-nav{top:0;bottom:0;right:0;width:246px;height:100vh;padding:137px 18px 26px;background:#183E31;border:0;gap:5px}.farmarah-product .tab-nav::before{content:'إدارة المزرعة';position:absolute;top:108px;right:32px;color:#8AA185;font-size:9px;letter-spacing:.5px}.farmarah-product .tab-btn{border-radius:11px;min-height:47px;padding:12px 15px;font-size:11px;color:#C3D0BC;gap:11px}.farmarah-product .tab-btn:hover{background:#ffffff09;color:#fff}.farmarah-product .tab-btn.active{background:#E5EAD1;color:#1B4435;font-weight:800}.farmarah-product .tab-icon svg{width:20px;height:20px;stroke-width:1.5}.farmarah-product .content{margin-right:246px}.farmarah-product .header-date{font-size:11px;color:#7F8C78}.farmarah-product .workspace-identity{margin-left:auto}.farmarah-product .test-banner{margin-right:246px;font-size:10px;padding:9px 24px}.farmarah-product .account-panel{top:74px}.test-mode.farmarah-product .account-panel{top:110px}}
@media(max-width:1100px) and (min-width:761px){.farmarah-product .herd-hero{grid-template-columns:1.1fr 1fr 1fr;padding:24px 20px}.herd-intro h2{font-size:20px}.farmarah-product .herd-hero .dash-card{padding:0 15px}.farmarah-product .herd-hero .dash-val{font-size:36px}.farmarah-product .content{padding:25px 24px}.farmarah-product .page-heading h1{font-size:27px}}
@media(max-width:760px){.farmarah-product .app-header{height:88px;padding:16px 20px}.farmarah-product .header-inner{height:56px;gap:10px}.farmarah-product .brand{margin-left:auto;gap:9px}.farmarah-product .brand-name{font-size:20px}.farmarah-product .brand-stack #sync-status{font-size:8px}.farmarah-product .brand-icon,.farmarah-product .brand-icon img{width:36px;height:36px}.farmarah-product .workspace-identity{display:none}.farmarah-product .workspace-tools{gap:10px}.farmarah-product .account-toggle{width:36px;height:36px}.farmarah-product .header-inner>div[style]{display:none}.farmarah-product .workspace-tools>div{gap:0!important}.farmarah-product .workspace-tools #notif-bell{min-width:24px}.farmarah-product .header-date{display:none}.farmarah-product .content{padding:16px 18px 112px;margin:0}.farmarah-product .page-heading{margin-bottom:20px}.farmarah-product .page-heading h1{font-size:27px;letter-spacing:-.7px}.farmarah-product .page-heading p{font-size:10px;margin-top:5px}.farmarah-product .dash-grid{gap:10px}.farmarah-product .herd-hero{grid-template-columns:1fr 1fr;gap:0;min-height:220px;border-radius:20px;padding:20px 22px}.herd-intro{grid-column:1/-1;padding:0 0 17px;margin-bottom:12px;border-bottom:1px solid #ffffff20}.section-kicker{font-size:8px;letter-spacing:1.5px}.herd-intro h2{font-size:20px;margin:6px 0 0}.herd-intro p{display:none}.farmarah-product .herd-hero .dash-card{padding:0;min-height:75px;border:0}.farmarah-product .herd-hero .dash-card:last-child{border-right:1px solid #ffffff20;padding-right:22px}.farmarah-product .herd-hero .dash-label{font-size:9px}.farmarah-product .herd-hero .dash-val{font-size:35px!important;line-height:1.5;margin-top:4px}.farmarah-product .herd-hero .dash-sub{font-size:8px}.farmarah-product .dash-grid>.dash-card{min-height:110px;padding:15px 16px;border-radius:15px}.farmarah-product .dash-grid>.dash-card::before{top:18px;left:16px;width:5px;height:5px}.farmarah-product .dash-label{font-size:10px}.farmarah-product .dash-val{font-size:26px;line-height:1.65;margin-top:6px}.farmarah-product .dash-sub{font-size:8px}.farmarah-product .card{border-radius:17px;margin-bottom:16px}.farmarah-product .card-head{padding:16px 18px;min-height:55px}.farmarah-product .card-body{padding:18px}.farmarah-product .tab-nav{height:82px;background:#FCFDF9;border-top:1px solid #DDE5D4;padding:6px 8px 12px;box-shadow:0 -8px 28px #183E3108}.farmarah-product .tab-btn{font-size:9px;min-height:58px;padding:7px 2px;border-radius:13px}.farmarah-product .tab-btn.active{background:#E9EEDA;color:#173E32}.farmarah-product .more-toggle{font-size:9px;min-height:58px;border-radius:13px}.farmarah-product .tab-nav.more-open{height:auto;background:#FCFDF9;padding:18px 16px 28px;border-radius:22px 22px 0 0}.farmarah-product .account-panel{top:76px;left:18px;width:calc(100vw - 36px);max-width:340px}.test-mode.farmarah-product .account-panel{top:132px}.farmarah-product .dashboard-alert-card .card-head{padding:12px 17px 0;min-height:36px}.farmarah-product .dashboard-alert-card .card-body{padding:7px 17px 12px}.farmarah-product .dashboard-alert-card .alert{font-size:10px}.farmarah-product .section-link{font-size:9px}.farmarah-product .metric{padding:15px;border-radius:14px}.farmarah-product .metric-value{font-size:23px}.farmarah-product .metric-label{font-size:10px}}
.farmarah-product .content [style*="font-family"]{font-family:Cairo,sans-serif!important}@media(min-width:761px){.farmarah-product .tab-btn{font-size:12px}}@media(max-width:760px){.farmarah-product .tab-btn,.farmarah-product .more-toggle{font-size:10px}}
