*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f5f7f8;color:#17231c}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.shell{display:flex;min-height:100vh}.sidebar{width:270px;background:#0e2419;color:#dce9e1;padding:22px 14px;position:fixed;inset:0 auto 0 0;overflow:auto;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 22px}.brandmark{width:42px;height:42px;border-radius:13px;background:#52b788;display:grid;place-items:center;color:#082417;font-size:20px}.brand b{display:block;font-size:19px;color:#fff}.brand small{display:block;color:#8fa99a;font-size:11px;margin-top:2px}.scope{display:flex;gap:10px;background:#173629;border:1px solid #244b39;border-radius:14px;padding:12px;margin:0 5px 18px}.scope .dot{width:8px;height:8px;background:#68d391;border-radius:50%;margin-top:5px}.scope small,.scope em{display:block;color:#8fa99a;font-size:10px;font-style:normal}.scope strong{font-size:12px;display:block;margin:2px 0}nav a{display:flex;gap:12px;align-items:center;padding:11px 13px;margin:3px 0;border-radius:10px;color:#aec1b5;font-size:13px;font-weight:500}nav a i{width:18px;text-align:center}nav a:hover,nav a.active{background:#1d4935;color:#fff}.nav-label{font-size:9px;letter-spacing:1.4px;color:#668474;padding:18px 13px 6px;text-transform:uppercase;font-weight:800}.main{margin-left:270px;min-width:0;width:calc(100% - 270px)}.topbar{height:72px;background:#fff;border-bottom:1px solid #e5e9e7;display:flex;align-items:center;padding:0 28px;position:sticky;top:0;z-index:15}.icon-btn{width:40px;height:40px;border:1px solid #e3e8e5;background:#fff;border-radius:10px;display:grid;place-items:center;cursor:pointer}.top-title{margin-left:14px}.top-title b{display:block;font-size:14px}.top-title span{font-size:11px;color:#849189}.top-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.user-chip{display:flex;align-items:center;gap:8px;border-left:1px solid #e6e9e7;padding-left:14px}.user-chip>span{width:34px;height:34px;border-radius:50%;background:#dff3e8;color:#217a4d;display:grid;place-items:center;font-weight:800}.user-chip b,.user-chip small{display:block;font-size:11px}.user-chip small{color:#8b9690}.logout{color:#7e8a83;padding:8px}.content{padding:30px;max-width:1500px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px}.page-head h1{font-size:28px;margin:5px 0}.page-head p{margin:0;color:#718078;font-size:13px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.5px}.eyebrow.green{color:#27865a}.head-actions{display:flex;gap:9px}.primary,.btn{border:0;border-radius:10px;padding:11px 15px;font-weight:700;font-size:12px;cursor:pointer;display:inline-flex;gap:8px;align-items:center;justify-content:center}.primary{background:#198754;color:white;box-shadow:0 5px 15px #19875425}.btn{background:#fff;color:#35463c;border:1px solid #dce3df}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:18px}.kpi,.panel{background:#fff;border:1px solid #e3e8e5;border-radius:16px;box-shadow:0 4px 18px rgba(25,60,40,.035)}.kpi{padding:18px;display:flex;gap:14px;align-items:center}.kicon{width:45px;height:45px;border-radius:12px;display:grid;place-items:center}.kicon.pig{background:#fff0e8;color:#db713d}.kicon.bird,.kicon.egg{background:#fff7dc;color:#c38c16}.kicon.money{background:#e8f7ee;color:#238b57}.kpi small,.kpi em{display:block;color:#829087;font-size:10px;font-style:normal}.kpi strong{font-size:20px;display:block;margin:3px 0}.grid-2{display:grid;grid-template-columns:1.7fr 1fr;gap:18px}.grid-2.lower{grid-template-columns:1fr 1fr;margin-top:18px}.panel{padding:20px}.panel-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:18px}.panel-head h3{margin:0;font-size:15px}.panel-head p{font-size:11px;color:#8b9790;margin:4px 0}.panel-head a,.text-link{font-size:11px;color:#208455;font-weight:700}.pill{font-size:10px;background:#e8f7ee;color:#27865a;padding:6px 9px;border-radius:99px}.panel-icon{color:#36a56f}.chart-panel{min-height:310px}.chart-panel canvas{max-height:220px}.finance-big{padding:18px;background:#113a29;color:#fff;border-radius:13px;margin-bottom:12px}.finance-big span{font-size:10px;color:#a9c7b7;display:block}.finance-big b{font-size:22px}.finance-row{display:flex;justify-content:space-between;padding:12px 3px;border-bottom:1px solid #edf0ee;font-size:12px}.positive{color:#198754}.text-link{display:block;margin-top:15px}.alert-item{display:flex;gap:12px;padding:12px;border-radius:11px;margin-bottom:9px;background:#f7f9f8}.alert-item>span{width:34px;height:34px;border-radius:9px;display:grid;place-items:center}.alert-item.warning>span{background:#fff2ce;color:#bb8211}.alert-item.danger>span{background:#ffe4e4;color:#c83e3e}.alert-item.info>span{background:#e4f0ff;color:#3c78bd}.alert-item b{font-size:12px}.alert-item p{font-size:11px;color:#75827b;margin:3px 0}.alert-item small{font-size:9px;color:#97a29c}.alert-item.read{opacity:.55}.task{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid #edf0ee}.task-check{width:30px;height:30px;border-radius:8px;background:#eaf6ef;color:#27925c;display:grid;place-items:center}.task div{flex:1}.task b,.task small{display:block;font-size:11px}.task small{color:#8b9790;margin-top:3px}.status{font-size:9px;padding:5px 8px;border-radius:99px;background:#edf4f0;color:#397258;font-weight:700}.status.pending{background:#fff2d8;color:#a77312}.activity-panel{margin-top:18px}.activity-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 30px}.activity{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #eef1ef}.activity-icon{width:34px;height:34px;background:#eef7f2;color:#27865a;border-radius:9px;display:grid;place-items:center}.activity div{flex:1}.activity b{font-size:11px}.activity p{font-size:9px;color:#8a958f;margin:3px 0}.activity>strong{font-size:9px;color:#698077}.flash{padding:12px 14px;border-radius:10px;margin-bottom:15px;font-size:12px;display:flex;justify-content:space-between}.flash.success{background:#e3f5e9;color:#207344}.flash.danger{background:#ffe6e6;color:#a93636}.table-panel{padding:0;overflow:hidden}.table-tools{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid #e8ecea}.search{border:1px solid #dde4e0;border-radius:9px;padding:9px 12px;min-width:280px;outline:none}.table-tools span{font-size:11px;color:#829087}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:11px}th{text-align:left;background:#f8faf9;color:#718078;padding:12px 15px;font-size:9px;text-transform:uppercase;letter-spacing:.5px}td{padding:13px 15px;border-top:1px solid #edf0ee;white-space:nowrap}.cell-note{display:block;color:#98a29d;margin-top:3px}.enterprise{font-size:9px;font-weight:800;padding:5px 8px;border-radius:7px;background:#edf3f0}.enterprise.piggery{background:#fff0e8;color:#b95f34}.enterprise.poultry{background:#fff6d8;color:#a8780c}.enterprise.admin{background:#e5efff;color:#3269aa}.danger-icon{border:0;background:#fff0f0;color:#c44;border-radius:8px;padding:7px;cursor:pointer}.modal{position:fixed;inset:0;background:#0b1e16aa;z-index:100;display:none;place-items:center;padding:20px}.modal.open{display:grid}.modal-card{background:#fff;border-radius:18px;width:min(700px,96vw);padding:25px;position:relative;max-height:90vh;overflow:auto}.modal-card h2{margin:0}.modal-card>p{color:#7d8a82;font-size:12px}.modal-x{position:absolute;right:18px;top:15px;border:0;background:none;font-size:24px;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}.form-grid label{font-size:10px;font-weight:700;color:#536159}.form-grid input,.form-grid select,.form-grid textarea{width:100%;margin-top:6px;padding:11px;border:1px solid #dce3df;border-radius:9px;outline:none;background:#fff}.form-grid .wide,.form-actions{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:5px}.role-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:18px}.role-cards>div{background:#fff;border:1px solid #e2e8e4;border-radius:14px;padding:18px}.role-cards i{color:#258659;margin-right:8px}.role-cards b{font-size:12px}.role-cards span{display:block;color:#7e8a83;font-size:10px;margin-top:8px;line-height:1.5}.small{padding:6px 9px}.settings-form{max-width:900px}.deployment{margin-top:18px;max-width:900px}.deployment p{font-size:12px;line-height:1.7;color:#6f7e76}.empty{text-align:center;padding:25px;color:#8b9790}.login-page{min-height:100vh;display:grid;grid-template-columns:1.15fr .85fr;background:#fff}.login-visual{background:linear-gradient(135deg,#092d1e,#155f3d);position:relative;overflow:hidden;color:#fff}.login-visual:before{content:"";position:absolute;width:500px;height:500px;border:1px solid #ffffff15;border-radius:50%;right:-100px;top:-140px}.visual-overlay{height:100%;position:relative;padding:38px 48px;display:flex;flex-direction:column}.public-brand{padding:0}.hero-copy{margin:auto 0;position:relative;z-index:3;max-width:600px}.hero-copy .eyebrow{color:#87d9ac}.hero-copy h1{font-size:48px;line-height:1.08;margin:15px 0}.hero-copy h1 span{color:#8ee0b3}.hero-copy p{max-width:520px;color:#b8d2c4;line-height:1.7;font-size:14px}.hero-stats{display:flex;gap:45px;margin-top:35px}.hero-stats b,.hero-stats span{display:block}.hero-stats b{font-size:22px}.hero-stats span{font-size:9px;color:#9ab9a8;margin-top:4px}.layer-art{position:absolute;right:-70px;bottom:-5px;width:55%;opacity:.32;filter:drop-shadow(0 15px 30px #0005)}.login-side{display:grid;place-items:center;padding:40px;background:#fbfcfb}.login-card{width:min(420px,100%)}.mobile-logo{display:none}.login-card h2{font-size:32px;margin:10px 0 5px}.muted{color:#7d8982;font-size:13px;margin-bottom:28px}.login-form>label{display:block;font-size:11px;font-weight:700;margin:15px 0}.input-wrap{display:flex;align-items:center;border:1px solid #dce3df;border-radius:11px;margin-top:7px;padding:0 12px;background:#fff}.input-wrap:focus-within{border-color:#3fa875;box-shadow:0 0 0 3px #3fa87515}.input-wrap i{color:#92a098}.input-wrap input{border:0;outline:0;padding:13px 10px;width:100%}.eye{border:0;background:none;cursor:pointer}.login-meta{display:flex;justify-content:space-between;color:#839088;font-size:10px}.check{display:flex;align-items:center;gap:5px}.login-btn{width:100%;margin-top:20px;padding:13px}.demo{margin-top:24px;background:#f3f7f5;border:1px solid #e2e9e5;border-radius:12px;padding:13px}.demo b,.demo span{display:block;font-size:9px;margin:4px 0}.demo code{font-size:9px}.secure{display:block;text-align:center;color:#8d9892;margin-top:18px;font-size:9px}.secure i{color:#2d9a61}.mobile-logo{color:#176f47;font-weight:800;margin-bottom:30px}@media(max-width:1100px){.kpis{grid-template-columns:repeat(2,1fr)}.grid-2{grid-template-columns:1fr}.login-page{grid-template-columns:1fr 1fr}.hero-copy h1{font-size:38px}}@media(max-width:780px){.sidebar{transform:translateX(-100%);transition:.25s}.sidebar.open{transform:none}.main{margin-left:0;width:100%}.content{padding:20px 14px}.user-chip div{display:none}.page-head{align-items:flex-start;flex-direction:column}.kpis,.role-cards,.activity-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .wide,.form-actions{grid-column:1}.login-page{display:block}.login-visual{display:none}.login-side{min-height:100vh;padding:25px}.mobile-logo{display:block}.search{min-width:180px}.topbar{padding:0 14px}}
/* Reference login screen */
.reference-login{min-height:100vh;position:relative;overflow:hidden;background:#f4fbf7;color:#15221d;display:flex}.reference-farm-photo{position:absolute;inset:0 47% 0 0;background-image:linear-gradient(90deg,rgba(255,255,255,0) 72%,rgba(247,255,250,.72)),url('/static/img/farm-login-bg.png');background-size:cover;background-position:center}.reference-wash{position:absolute;inset:0 0 0 47%;background:radial-gradient(circle at 78% 45%,#fff 0,#f5fbf7 54%,#e5f5eb 100%)}.reference-green-curve{position:absolute;z-index:2;top:-8%;bottom:-8%;left:45.5%;width:110px;background:#08733d;clip-path:polygon(58% 0,88% 0,52% 26%,30% 50%,48% 74%,100% 100%,70% 100%,9% 76%,0 50%,20% 25%);filter:drop-shadow(7px 0 0 #70b91a)}.reference-login-panel{position:relative;z-index:3;margin-left:auto;width:53%;display:grid;place-items:center;padding:5.5vh 4vw 5.5vh 2vw}.reference-card{width:min(625px,100%);padding:42px 44px 48px;background:rgba(255,255,255,.94);border-radius:26px;box-shadow:0 18px 55px rgba(37,93,62,.08);text-align:center}.reference-brand-mark{height:105px;position:relative;width:260px;margin:0 auto 4px;color:#07563b}.reference-brand-mark i{position:absolute}.brand-house{font-size:58px;left:93px;top:1px}.brand-house i{transform:rotate(-6deg)}.brand-leaf{color:#259c49;font-size:38px;left:40px;top:22px}.brand-chicken{color:#9b4d0d;font-size:31px;left:8px;top:61px}.brand-pig{color:#8a4508;font-size:34px;left:91px;top:65px}.brand-cow{color:#075b43;font-size:58px;right:12px;top:38px}.reference-card h1{font-size:34px;line-height:1.1;margin:2px 0 10px;color:#064d38;letter-spacing:-1px}.reference-enterprises{margin:0;color:#76808c;font-size:22px}.reference-card h2{font-size:31px;line-height:1.1;margin:31px 0 8px}.reference-intro{margin:0 0 27px;color:#7e8792;font-size:18px}.reference-form{text-align:left}.reference-input{height:60px;display:flex;align-items:center;gap:14px;border:1px solid #d8dee3;border-radius:14px;background:#fff;margin:0 0 20px;padding:0 20px;color:#7b8792;box-shadow:0 1px 2px #1e3b2a08}.reference-input>i{font-size:21px}.reference-input input{border:0;outline:0;width:100%;font-size:18px;color:#26332d}.reference-input input::placeholder{color:#9aa3ae}.reference-eye{border:0;background:none;color:#72808d;cursor:pointer;font-size:18px}.reference-options{display:flex;justify-content:space-between;align-items:center;color:#77828e;font-size:16px;margin:3px 0 27px}.reference-options label{display:flex;align-items:center;gap:8px}.reference-options input{appearance:none;width:19px;height:19px;border:1px solid #84909a;border-radius:4px;background:#fff}.reference-options input:checked{background:#078d48;box-shadow:inset 0 0 0 4px #fff}.reference-options a{color:#078d48;font-weight:600}.reference-submit{width:100%;height:61px;border:0;border-radius:14px;background:#079448;color:#fff;font-size:21px;font-weight:700;cursor:pointer;box-shadow:0 7px 15px rgba(0,143,67,.18)}.reference-submit i{margin-left:12px;font-size:20px}.reference-or{display:flex;align-items:center;gap:12px;color:#aab2ba;font-size:16px;margin:28px 0}.reference-or span{height:1px;background:#e3e6e8;flex:1}.reference-or b{font-weight:500}.reference-enterprise-logins{display:grid;grid-template-columns:repeat(3,1fr);gap:21px}.enterprise-login{height:82px;background:#fff;border:1px solid #dce1e5;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:15px;color:#142820;font-size:16px;font-weight:600;line-height:1.35;cursor:pointer}.enterprise-login i{font-size:30px}.poultry-login i{color:#079443}.piggery-login i{color:#854207}.cattle-login i{color:#075bb1}
@media(max-width:900px){.reference-farm-photo{inset:0 0 55%}.reference-wash{inset:45% 0 0}.reference-green-curve{display:none}.reference-login{display:block}.reference-login-panel{width:100%;padding:42vh 16px 30px}.reference-card{padding:30px 22px 34px}.reference-card h1{font-size:27px}.reference-card h2{font-size:26px}.reference-enterprises{font-size:18px}.reference-intro{font-size:15px}.reference-enterprise-logins{gap:8px}.enterprise-login{gap:5px;font-size:12px}.enterprise-login i{font-size:22px}}
/* Compact login card sizing */
.reference-card{width:min(540px,100%);padding:32px 34px 36px;border-radius:24px}
/* Reduce card height */
.reference-card{padding-top:22px;padding-bottom:26px}
.reference-brand-mark{height:78px;margin-bottom:0}
.brand-house{top:-4px}.brand-leaf{top:12px}.brand-chicken{top:48px}.brand-pig{top:51px}.brand-cow{top:27px}
.reference-card h1{margin-top:0;margin-bottom:6px}
.reference-card h2{margin-top:20px;margin-bottom:5px}
.reference-intro{margin-bottom:18px}
.reference-input{height:52px;margin-bottom:14px}
.reference-options{margin-bottom:18px}
.reference-submit{height:52px}
.reference-or{margin:18px 0}
.enterprise-login{height:68px}
/* Keep the desktop login screen inside one viewport */
html:has(.reference-login),body:has(.reference-login){height:100%;overflow:hidden}
.reference-login{height:100vh;min-height:0}
.reference-login-panel{height:100vh;padding:2vh 4vw 2vh 2vw}
.reference-card{width:min(480px,100%);padding:16px 28px 20px}
.reference-brand-mark{height:62px;transform:scale(.78);transform-origin:top center;margin-bottom:-12px}
.reference-card h1{font-size:27px;margin-bottom:4px}
.reference-enterprises{font-size:17px}
.reference-card h2{font-size:24px;margin-top:14px;margin-bottom:3px}
.reference-intro{font-size:14px;margin-bottom:13px}
.reference-input{height:45px;margin-bottom:10px;padding:0 15px}.reference-input>i{font-size:17px}.reference-input input{font-size:14px}
.reference-options{font-size:13px;margin-bottom:13px}.reference-options input{width:16px;height:16px}
.reference-submit{height:46px;font-size:17px}
.reference-or{font-size:13px;margin:13px 0}
.enterprise-login{height:57px;gap:8px;font-size:13px}.enterprise-login i{font-size:23px}
@media(max-width:900px){html:has(.reference-login),body:has(.reference-login){overflow:auto}.reference-login{height:auto;min-height:100vh}.reference-login-panel{height:auto}}
.reference-farm-photo{inset:0 53% 0 0;background-image:url('/static/img/login.png');background-size:contain;background-position:center;background-repeat:no-repeat;background-color:#f4fbf7}
.reference-green-curve{display:none}
@media(max-width:900px){.reference-farm-photo{inset:0 0 55%}}
