@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root{--forest:#153e31;--forest-deep:#103327;--green:#276849;--lime:#dfebad;--bg:#f5f6f2;--paper:#fff;--ink:#243d32;--muted:#7a857d;--border:#e5e9e1;--orange:#be743b;--red:#b54f4d;--shadow:0 5px 24px #203e3105}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 'DM Sans',system-ui,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #96b85b;outline-offset:3px}.skip{position:fixed;top:-80px;left:12px;z-index:20;background:#fff;padding:12px}.skip:focus{top:12px}h1,h2,h3,h4,p{margin:0}h1,h2,h3,.brand{font-family:Manrope,system-ui,sans-serif}h1{font-size:30px;letter-spacing:-1.1px;font-weight:800;line-height:1.25}h2{font-size:17px;letter-spacing:-.4px;font-weight:750}h3{font-size:15px}small,.muted{color:var(--muted)}small{font-size:12px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;text-transform:uppercase;color:var(--muted)}
.shell{display:grid;grid-template-columns:242px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--forest);color:#b9ccc0;display:flex;flex-direction:column;padding:30px 18px 18px}.brand{font-size:23px;font-weight:800;letter-spacing:-1px;display:flex;align-items:center;gap:10px;color:#fff;padding:0 12px}.brand svg{height:31px;width:31px;color:var(--lime)}.brand span span{color:var(--lime);font-weight:500}.brand-sub{font-size:10px;letter-spacing:1.9px;padding:7px 12px 0 54px;color:#9bb5a5}.nav-label{font-size:9px;letter-spacing:1.8px;color:#8eaa99;padding:0 14px;margin:38px 0 12px}.nav{display:flex;flex-direction:column;gap:5px}.nav a{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 14px;font-size:12px;font-weight:500;border-radius:7px}.nav a:hover{background:#ffffff0b;color:#fff}.nav a.active{background:var(--lime);color:var(--forest-deep);font-weight:700}.nav a svg{width:18px;height:18px}.nav .nav-dot{margin-left:auto;width:6px;height:6px;background:var(--forest);border-radius:50%}.sidebar-bottom{margin-top:auto;padding-top:24px}.season-card{background:#ffffff08;border:1px solid #ffffff13;border-radius:9px;padding:15px;margin-bottom:17px}.season-card .eyebrow{color:#9ab4a3}.season-card strong{display:block;color:#edf4e6;font-size:14px;margin:5px 0}.season-card small{color:#aac2af}.status-dot{display:inline-block;width:6px;height:6px;background:#9dbb6d;border-radius:50%;margin-right:6px}.side-foot{display:flex;justify-content:space-between;align-items:center;padding:0 12px;font-size:10px;color:#8ea998}.side-foot button{background:none;border:0;color:inherit;padding:8px;min-height:40px}
.workspace{min-width:0}.topbar{height:84px;border-bottom:1px solid var(--border);background:#ffffffb0;display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:20px}.breadcrumb{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px}.breadcrumb span:last-child{color:var(--ink)}.topbar-right{display:flex;align-items:center;gap:17px}.demo-pill{color:var(--orange);border:1px solid #e9d7b9;background:#fcf8ef;padding:4px 9px;border-radius:5px;font-size:10px;white-space:nowrap}.profile{display:flex;align-items:center;gap:10px;border-left:1px solid var(--border);padding-left:20px}.avatar{height:37px;width:37px;background:#e9eedf;display:grid;place-items:center;border-radius:50%;font-size:11px;font-weight:700;flex-shrink:0}.profile label{font-size:10px;color:var(--muted);display:block;line-height:1.1}.profile select{border:0;background:transparent;color:var(--ink);font-weight:600;padding:2px 20px 2px 0;font-size:12px;min-height:30px;max-width:190px}.mobile-menu{display:none}.main{max-width:1530px;margin:0 auto;padding:32px 38px 24px}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:26px}.page-head .eyebrow{color:var(--green);margin-bottom:8px}.page-head p{margin-top:8px;font-size:12px;color:var(--muted)}.head-actions,.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;border-radius:7px;border:1px solid var(--border);background:#fff;color:var(--ink);padding:11px 17px;font-weight:600;font-size:12px;white-space:nowrap}.btn svg{width:16px;height:16px}.btn.primary{background:var(--forest);color:#fff;border-color:var(--forest)}.btn.primary:hover{background:#246044}.btn.danger{color:var(--red);border-color:#ecd3ce}.btn.subtle{background:var(--bg);border-color:transparent}.btn.small{padding:9px 12px}.icon-btn{border:1px solid var(--border);background:#fff;border-radius:7px;min-height:48px;min-width:48px;display:inline-grid;place-items:center;color:var(--ink)}
.context{display:flex;justify-content:space-between;align-items:center;gap:15px;background:#edf1e7;border:1px solid #dfe6d6;border-radius:8px;padding:11px 16px;margin-bottom:24px;font-size:11px}.context-left{display:flex;gap:10px;align-items:center}.context svg{color:var(--green);width:17px;height:17px}.context strong{font-weight:600}.context .divider{height:14px;width:1px;background:#cbd4c2}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:4px;padding:4px 8px;font-size:10px;font-weight:600;white-space:nowrap;background:#edf4e9;color:#4e7548}.badge.amber{background:#faf1df;color:#a77a32}.badge.red{background:#f9ece9;color:#a8524e}.badge.gray{background:#eff1ef;color:#7a837c}.badge.blue{background:#eaf0f6;color:#547594}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:20px;box-shadow:var(--shadow)}.stat.featured{background:var(--forest);color:#fff;border-color:var(--forest)}.stat-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);gap:8px}.stat-top svg{width:17px;height:17px;color:#79947b}.stat.featured .stat-top{color:#bbd0be}.stat.featured .stat-top svg{color:var(--lime)}.stat-value{font:800 30px/1.4 Manrope,system-ui,sans-serif;letter-spacing:-1.3px;margin-top:8px}.stat-value span{font-size:13px;letter-spacing:0;font-weight:500;margin-left:5px;color:var(--muted)}.stat.featured .stat-value span{color:#bbd0be}.stat-note{font-size:10px;color:var(--muted);margin-top:8px;display:flex;align-items:center;gap:5px}.stat-note strong{color:var(--green);font-weight:600}.stat.featured .stat-note{color:#b5c9b4}.stat.featured .stat-note strong{color:var(--lime)}.stat-note svg{width:12px;height:12px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:22px;margin-bottom:22px}.panel{background:var(--paper);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow);min-width:0;overflow:hidden}.panel-head{padding:21px 23px;display:flex;justify-content:space-between;align-items:center;gap:15px}.panel-head p{font-size:11px;color:var(--muted);margin-top:4px}.panel-head h2{font-size:15px}.panel-body{padding:0 23px 23px}.legend{display:flex;gap:14px;font-size:10px;color:var(--muted);flex-wrap:wrap}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:7px;height:7px;border-radius:2px;background:var(--green)}.legend i.light{background:#dfe8ce}.chart{height:220px;display:flex;position:relative;gap:13px;padding-top:12px}.y-axis{width:31px;display:flex;flex-direction:column;justify-content:space-between;font-size:9px;color:#9aa397;padding-bottom:31px}.plot{flex:1;display:flex;justify-content:space-around;gap:10px;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#edf0e9 calc(25% - 1px),#edf0e9 25%);background-size:100% calc(100% - 30px);background-repeat:no-repeat;min-width:0}.bar-group{flex:1;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;min-width:0;max-width:62px}.bars{height:calc(100% - 30px);width:100%;display:flex;align-items:flex-end;justify-content:center;gap:5px}.bar{width:30%;background:#dfe8ce;border-radius:3px 3px 0 0;min-height:2px}.bar.current{background:var(--green)}.bar-group:last-child .bar.current{background:#93af6b}.bar-label{font-size:10px;color:var(--muted);height:30px;display:flex;align-items:center}.chart-summary{display:flex;justify-content:space-between;margin-top:14px;border-top:1px solid var(--border);padding-top:15px;font-size:10px;color:var(--muted)}.chart-summary strong{color:var(--ink);font-size:12px}.ranking{display:flex;flex-direction:column;gap:19px}.rank-row{display:grid;grid-template-columns:28px 1fr auto;align-items:center;column-gap:10px}.rank-number{font-size:11px;color:#9ba58f}.rank-number.first{background:#f3f0d7;border-radius:6px;height:28px;display:grid;place-items:center;color:#9c873e}.rank-name{font-size:12px;font-weight:600}.rank-sub{font-size:10px;color:var(--muted)}.rank-total{font-size:12px;font-weight:700}.rank-total small{font-size:9px;font-weight:400}.progress{height:4px;background:#eff2e9;border-radius:20px;overflow:hidden;margin-top:7px}.progress span{display:block;height:100%;background:#a7bc83;border-radius:20px}.panel-foot{border-top:1px solid var(--border);padding:13px 23px;font-size:11px;color:var(--green);display:flex;justify-content:center;align-items:center;gap:8px;min-height:48px}.panel-foot svg{width:13px;height:13px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px}th{font-size:9px;letter-spacing:1px;font-weight:600;text-transform:uppercase;color:var(--muted);background:#fafbf8;padding:12px 23px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);white-space:nowrap}td{padding:15px 23px;border-bottom:1px solid #edf0e9;vertical-align:middle}tr:last-child td{border-bottom:0}.cell-title{display:flex;align-items:center;gap:10px;font-weight:600}.cell-symbol{width:31px;height:31px;border:1px solid var(--border);background:#f7f8f2;border-radius:7px;display:grid;place-items:center;color:var(--green);flex-shrink:0}.cell-symbol svg{width:15px;height:15px}.cell-sub{display:block;font-size:10px;font-weight:400;color:var(--muted)}.table-caption{font-size:10px;color:var(--muted);padding:12px 23px;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:12px}.activity-list{display:flex;flex-direction:column;gap:15px}.activity{display:flex;gap:11px;align-items:flex-start;font-size:11px}.activity-mark{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#edf3e6;color:var(--green);flex-shrink:0}.activity-mark svg{width:13px;height:13px}.activity p{margin-top:2px;color:var(--muted);font-size:10px}.footer{font-size:10px;display:flex;justify-content:space-between;color:#929b90;margin-top:25px;padding-top:18px;border-top:1px solid var(--border);gap:10px}.footer span:first-child{display:flex;align-items:center;gap:6px}.footer svg{width:12px;height:12px}.two-col{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:22px}.stack{display:grid;gap:22px}.empty{padding:32px;text-align:center;color:var(--muted);font-size:13px}.empty svg{width:35px;height:35px;color:#b8c5a8;margin-bottom:10px}.toolbar{display:flex;align-items:end;gap:14px;flex-wrap:wrap;padding:18px 23px;border-bottom:1px solid var(--border)}.toolbar .field{min-width:135px;flex:1}.toolbar .field.search{flex:2}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label{font-size:11px;font-weight:600}.field input,.field select,.field textarea{width:100%;min-width:0;min-height:48px;background:#fff;border:1px solid #dce2d7;border-radius:6px;padding:11px 12px;color:var(--ink);outline-offset:2px}.field textarea{min-height:90px;resize:vertical}.field small{font-size:10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.form-note{font-size:11px;padding:13px;border-radius:6px;background:#f1f5eb;color:#64804f}.form-error{color:var(--red);font-size:12px;margin-top:15px;min-height:18px}.help-card{background:#edf1e7;border:1px solid #dfe6d6;border-radius:10px;padding:24px}.help-card>svg{color:var(--green);width:24px;height:24px;margin-bottom:10px}.help-card h3{margin-bottom:9px}.help-card p{font-size:12px;color:#71836a;line-height:1.8}.steps{display:flex;gap:10px;margin:22px 0}.step{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.step span{display:grid;place-items:center;height:25px;width:25px;border-radius:50%;background:#e9eee1;color:#65804d;font-size:10px}.step.active{color:var(--green);font-weight:600}.step.active span{background:var(--forest);color:#fff}.tree-predio{border-bottom:1px solid var(--border)}.tree-predio:last-child{border:0}.tree-predio>summary{list-style:none;padding:21px 23px;display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer}.tree-predio>summary::-webkit-details-marker{display:none}.tree-predio>summary:after{content:'+';font-size:20px;color:#7a906c}.tree-predio[open]>summary:after{content:'−'}.tree-content{padding:0 23px 23px 42px}.orchard{border-left:1px solid #dfe6d6;padding:0 0 5px 22px;margin:10px 0 18px}.orchard-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.orchard-head strong{font-size:12px}.orchard-head .actions{gap:4px}.plot-card{border:1px solid var(--border);border-radius:7px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;margin-top:8px;background:#fafbf8}.plot-card p{font-size:11px;color:var(--muted);margin-top:3px}.plot-card strong{font-size:12px}.season-row{padding:17px 23px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--border)}.season-row p{font-size:10px;color:var(--muted);margin-top:3px}.notice{padding:15px 18px;border:1px solid #e9ddbf;border-radius:7px;background:#fffbef;font-size:12px;color:#94743f;margin-bottom:22px;display:flex;align-items:center;gap:11px}.notice.success{color:#476c43;background:#f0f5e9;border-color:#dce6d1}.close-card{padding:24px}.close-card .check-row{display:flex;align-items:center;gap:10px;margin:15px 0;color:#687e5d;font-size:12px}.close-card .check-row svg{width:17px;height:17px}.close-card .check-row.warning{color:var(--orange)}.team-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.team-card{border:1px solid var(--border);border-radius:8px;padding:18px}.team-card>p{font-size:11px;color:var(--muted);margin:5px 0 18px}.people{display:flex;align-items:center;gap:8px;font-size:11px;margin:10px 0}.people .avatar{width:29px;height:29px;font-size:9px}.login-screen{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.login-art{background:var(--forest);color:#fff;display:flex;flex-direction:column;padding:50px 10%;position:relative;overflow:hidden;justify-content:space-between}.login-art .brand{padding:0}.login-art h1{font-size:52px;letter-spacing:-2px;max-width:460px;line-height:1.14;z-index:1;position:relative}.login-art h1 em{font-style:normal;color:var(--lime)}.login-art p{font-size:14px;line-height:1.9;color:#bbd1bf;max-width:340px;margin-top:25px;position:relative;z-index:1}.field-graphic{position:absolute;width:700px;height:700px;border:1px solid #67866b40;border-radius:50%;right:-330px;bottom:-200px;transform:rotate(-30deg);box-shadow:0 0 0 38px #67866b10,0 0 0 76px #67866b10,0 0 0 114px #67866b10,0 0 0 152px #67866b10}.login-bottom{font-size:10px;color:#96b29e;z-index:1;padding-top:40px}.login-content{display:flex;justify-content:center;align-items:center;padding:40px}.login-box{width:100%;max-width:370px}.login-box h2{font-size:29px;margin:13px 0 8px;letter-spacing:-1px}.login-box>p{font-size:12px;color:var(--muted);margin-bottom:30px}.login-box .role-choice{display:flex;gap:13px;align-items:center;text-align:left;padding:17px;border:1px solid var(--border);background:#fff;min-height:76px;border-radius:9px;width:100%;margin-bottom:12px;color:var(--ink)}.role-choice:hover{border-color:#8da375;background:#f6f8f0}.role-choice .role-icon{height:39px;width:39px;display:grid;place-items:center;background:#edf2e6;border-radius:9px;color:var(--green)}.role-choice .role-icon svg{width:20px;height:20px}.role-choice strong{font-size:13px;display:block}.role-choice small{font-size:10px}.role-choice>svg{margin-left:auto;width:16px}.login-hint{margin-top:25px;font-size:11px;color:var(--muted);line-height:1.8}.login-hint strong{color:var(--green)}
dialog{border:1px solid var(--border);border-radius:12px;padding:0;width:560px;max-width:calc(100% - 30px);max-height:90dvh;color:var(--ink);box-shadow:0 25px 100px #12342130}dialog::backdrop{background:#0c281b66;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--border)}.modal-head h2{font-size:19px}.modal-body{padding:24px}.modal-body>p{font-size:12px;color:var(--muted);margin-bottom:20px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);z-index:50;max-width:calc(100% - 32px);padding:13px 22px;border-radius:8px;background:var(--forest);color:#fff;box-shadow:0 6px 20px #14392426;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;font-size:12px}#toast.show{opacity:1;transform:translate(-50%,0)}.check-label{display:flex;gap:10px;align-items:flex-start;font-size:12px;cursor:pointer;padding:10px 0}.check-label input{width:18px;height:18px;accent-color:var(--green);flex-shrink:0}.mobile-overlay{display:none}.inline-result{padding:15px;background:#f3f6ed;border-radius:7px;margin-top:20px;font-size:12px}.inline-result strong{display:block;font-size:24px;font-family:Manrope;margin-top:3px}.attendance-actions{display:flex;gap:5px;flex-wrap:wrap}.date-tag{font-size:11px;display:flex;align-items:center;gap:7px;color:var(--muted)}.date-tag svg{width:15px}.summary-list{display:grid;gap:12px;margin:20px 0}.summary-list>div{display:flex;justify-content:space-between;border-bottom:1px solid var(--border);padding-bottom:12px;font-size:12px}.summary-list span{color:var(--muted)}.tabs{display:flex;gap:20px;border-bottom:1px solid var(--border);margin-bottom:22px}.tabs a{padding:11px 1px;min-height:48px;font-size:12px;color:var(--muted);border-bottom:2px solid transparent}.tabs a.active{border-color:var(--green);color:var(--green);font-weight:700}.tagline{color:var(--green);font-size:11px;display:flex;align-items:center;gap:7px}.tagline svg{width:13px}
@media(min-width:1550px){.main{padding-top:42px}.stats{gap:22px}.stat{padding:24px}.dashboard-grid{gap:25px}.chart{height:255px}}
@media(max-width:1200px){.shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.brand{font-size:21px}.main{padding:26px 25px}.topbar{padding:0 25px}.stats{gap:11px}.stat{padding:16px}.stat-value{font-size:26px}.dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:17px}td,th{padding-left:18px;padding-right:18px}.demo-pill{display:none}.head-actions .date-tag{display:none}}
@media(max-width:1000px){.dashboard-grid,.two-col{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.chart{height:240px}.team-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.page-head{align-items:flex-start}h1{font-size:27px}.context{align-items:flex-start}.context-left{flex-wrap:wrap;gap:7px}.topbar-right{gap:10px}.breadcrumb{font-size:11px;gap:7px}.profile{padding-left:12px}.login-art h1{font-size:40px}.login-art{padding:40px 9%}}
@media(max-width:760px){.shell{grid-template-columns:1fr}.sidebar{position:fixed;left:-260px;top:0;z-index:30;width:242px;transition:left .2s;height:100dvh}.sidebar.open{left:0}.mobile-overlay.visible{display:block;position:fixed;inset:0;background:#0b281c80;z-index:25}.mobile-menu{display:grid}.topbar{height:72px;padding:0 18px;gap:8px}.breadcrumb{display:none}.profile{border:0;padding-left:0}.profile select{max-width:174px;font-size:11px}.topbar-right{margin-left:auto}.avatar{height:33px;width:33px}.main{padding:25px 18px}.page-head{flex-direction:column;gap:18px;margin-bottom:22px}.page-head h1{font-size:28px}.head-actions{width:100%;justify-content:flex-start}.context{padding:11px 13px;font-size:10px}.context>.badge{display:none}.context .divider{display:none}.context-left{gap:6px 10px}.stat{padding:15px}.stats{gap:11px;margin-bottom:18px}.stat-top{font-size:10px}.stat-top svg{width:15px}.stat-value{font-size:27px}.stat-note{font-size:9px}.stat-value span{font-size:11px}.dashboard-grid{gap:18px;margin-bottom:18px}.panel-head{padding:18px}.panel-head h2{font-size:15px}.panel-body{padding:0 18px 18px}.legend{font-size:9px;gap:8px}.chart{height:210px;gap:6px}.plot{gap:4px}.bar-label{font-size:9px}.chart-summary{font-size:9px}.chart-summary strong{font-size:11px}td,th{padding:13px 16px}.table-caption{padding:12px 16px}.footer{font-size:9px;flex-wrap:wrap}.form-grid{gap:15px}.team-cards{grid-template-columns:1fr}.toolbar{padding:16px;gap:12px}.toolbar .field{min-width:120px}.tree-content{padding:0 16px 16px 24px}.tree-predio>summary{padding:18px 16px}.orchard{padding-left:13px}.orchard-head{flex-wrap:wrap}.plot-card{padding:10px;flex-wrap:wrap}.plot-card>.actions{width:100%;justify-content:space-between}.login-screen{grid-template-columns:1fr}.login-art{padding:25px 25px 35px;min-height:320px;gap:35px}.login-art h1{font-size:34px;max-width:350px}.login-art p{font-size:12px;margin-top:15px}.login-art .brand{font-size:22px}.login-bottom{display:none}.login-content{padding:30px 24px}.field-graphic{width:400px;height:400px;right:-250px;bottom:-150px}.login-box{max-width:440px}.login-box h2{font-size:25px}.form-grid .field{grid-column:1/-1}.notice{font-size:11px}.close-card{padding:19px}.modal-head,.modal-body{padding:19px}.panel .btn.small{font-size:10px;padding:9px}.steps{flex-wrap:wrap}.attendance-actions .btn{min-width:48px}.table-wrap table{min-width:560px}.personal-table table{min-width:450px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.sidebar{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#648170 var(--forest)}
@media print{.sidebar,.topbar,.head-actions,.toolbar,.footer,.demo-pill,#toast,.btn,.tabs{display:none!important}.shell{display:block}.main{padding:0}.panel,.stat{break-inside:avoid;box-shadow:none}.stats{grid-template-columns:repeat(4,1fr)}body{background:#fff}.table-wrap{overflow:visible}.dashboard-grid{grid-template-columns:1fr}.workspace{width:100%}}
/* Integración con formularios y navegación de Django. */
.form-fieldset{border:0;padding:0;margin:0;min-width:0}.filter-panel{margin-bottom:22px}.profile strong{font-size:12px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.card{display:flex;flex-direction:column;gap:10px;background:#fff;padding:21px;border:1px solid var(--border);border-radius:9px}.card>svg{color:var(--green)}.card>svg:last-child{width:16px;height:16px;margin-left:auto}.card>span{color:var(--muted);font-size:12px}.card:hover{border-color:#9bad87}.chart-data{margin-top:15px;font-size:10px;color:var(--muted)}.chart-data summary{cursor:pointer;min-height:40px;padding-top:10px}.errorlist{padding-left:17px;color:var(--red);font-size:12px}.field input[type=checkbox]{width:18px;min-height:18px}.side-foot form{margin:0}.mobile-overlay{border:0}.page-head .head-actions{justify-content:flex-end}.team-card form{margin-top:17px}.notice{line-height:1.7}.form-note svg{vertical-align:middle}.stack{align-content:start}.form-error:empty{display:none}
@media(max-width:760px){.topbar-right>.tagline{display:none}.page-head .head-actions{justify-content:flex-start}.profile strong{font-size:11px}.toolbar .field{min-width:0;flex-basis:calc(50% - 12px)}.filter-panel .toolbar button{flex-basis:100%}.grid{grid-template-columns:1fr}.profile{max-width:240px}.season-row{flex-wrap:wrap}.panel-head{flex-wrap:wrap}}
@media print{.chart-data{display:none}.filter-panel{display:none}}
.comparison-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.field input[type=checkbox]{accent-color:var(--green);width:20px;height:20px;align-self:start}.field:has(input[type=checkbox]){justify-content:center}.field label{cursor:pointer}.actions form{margin:0}.plot-card .actions{justify-content:flex-end}.comparative-note{font-size:11px;color:var(--muted)}
@media(max-width:760px){.comparison-cards{grid-template-columns:1fr}.context{flex-wrap:wrap}.tree-content>.actions{margin-bottom:15px}.plot-card .actions{justify-content:flex-start}.comparison-cards .stat-value{font-size:28px}}

.journal-notes{background:#f5f7ef;border:1px solid var(--border);border-radius:8px;padding:20px;margin-bottom:20px}.journal-notes p{font-size:12px;white-space:normal;overflow-wrap:anywhere;color:var(--muted);margin:10px 0 15px}.ranking-description{font-size:12px;color:var(--muted);margin-bottom:18px;max-width:90ch}.ranking-name{font-weight:650}.ranking-note{font-size:11px;color:var(--muted)}
/* La salida de sesión queda accesible sin abrir el menú lateral. */
.logout-form{margin:0;flex-shrink:0}.logout-button{border-color:#cdd8c6;background:#f1f5e9;color:var(--forest)}.logout-button:hover{background:#e3ecd7}.topbar-right{min-width:0}.profile{min-width:0}.profile>div:last-child{min-width:0}.profile strong{display:block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.breadcrumb{min-width:0}.breadcrumb span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1250px){.topbar-right>.tagline{display:none}}
@media(max-width:760px){.topbar-right{gap:10px;max-width:calc(100% - 56px)}.profile{max-width:150px}.profile strong,.profile .cell-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logout-button{padding:10px;font-size:11px;gap:5px}}
@media(max-width:480px){.topbar-right .profile>.avatar{display:none}.profile{max-width:calc(100vw - 225px)}}

/* ==========================================================================
   REVAMP ACTIVE GLASSMORPHISM + COLORES DE LA TIERRA (AgroKODIT 2026)
   ========================================================================== */
:root {
  --forest: #0d3325;
  --forest-deep: #09251b;
  --green: #1e563f;
  --lime: #c8ee67;
  --orange: #c86d44;
  --red: #b84a45;

  --glass-shell: rgba(250, 248, 242, 0.72);
  --glass-card: rgba(255, 253, 248, 0.76);
  --glass-card-strong: rgba(255, 253, 248, 0.90);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-border-soft: rgba(25, 58, 42, 0.10);
  --glass-shadow: 0 20px 50px rgba(14, 38, 26, 0.14);
  --card-shadow: 0 10px 28px rgba(18, 44, 31, 0.06);
  --ink: #1a241e;
  --muted: #5a6b60;
  --border: rgba(26, 46, 35, 0.11);
  --surface-cutout: #f5f3ec;
}

[data-theme="dark"] {
  --glass-shell: rgba(18, 30, 23, 0.74);
  --glass-card: rgba(26, 41, 32, 0.72);
  --glass-card-strong: rgba(31, 49, 38, 0.88);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-soft: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --card-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  --ink: #eef2ea;
  --muted: #9eb0a3;
  --border: rgba(255, 255, 255, 0.10);
  --surface-cutout: #17251d;
}

/* Fondo atmosférico del valle */
body {
  background: transparent;
  min-height: 100vh;
}
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(200, 238, 103, 0.34) 0%, transparent 45%),
    radial-gradient(circle at 86% 14%, rgba(212, 148, 58, 0.26) 0%, transparent 46%),
    radial-gradient(circle at 75% 88%, rgba(200, 109, 68, 0.24) 0%, transparent 48%),
    linear-gradient(155deg, #dce5d1 0%, #e9e4d3 45%, #d6cbb3 100%);
  transition: background 0.35s ease;
}
[data-theme="dark"] .ambient-bg {
  background:
    radial-gradient(circle at 18% 18%, rgba(35, 104, 72, 0.42) 0%, transparent 46%),
    radial-gradient(circle at 85% 20%, rgba(184, 93, 56, 0.28) 0%, transparent 46%),
    radial-gradient(circle at 50% 92%, rgba(200, 238, 103, 0.12) 0%, transparent 42%),
    linear-gradient(160deg, #0b1812 0%, #14221a 52%, #1d1a14 100%);
}
.ambient-hills {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55vh;
  filter: blur(2px);
}

/* Contenedor flotante Glass */
.shell {
  max-width: 1480px;
  margin: 18px auto;
  min-height: calc(100vh - 36px);
  border-radius: 26px;
  background: var(--glass-shell);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: clip;
}

/* Sidebar orgánica verde bosque con recorte curvo activo */
.sidebar {
  height: auto;
  min-height: calc(100vh - 36px);
  background: linear-gradient(175deg, rgba(16, 61, 44, 0.92) 0%, rgba(9, 37, 27, 0.96) 100%);
  padding: 26px 0 18px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.brand, .brand-sub, .nav-label, .sidebar-bottom {
  padding-right: 16px;
}
.nav {
  gap: 6px;
}
.nav a {
  border-radius: 999px 0 0 999px;
  padding: 12px 18px 12px 14px;
  color: rgba(226, 238, 229, 0.82);
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.nav a.active {
  background: var(--surface-cutout);
  color: var(--ink);
  font-weight: 700;
  box-shadow: -6px 6px 18px rgba(0, 0, 0, 0.10);
}
.nav a.active svg {
  background: var(--lime);
  color: var(--forest-deep);
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
}
.nav a.active::before,
.nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.nav a.active::before {
  top: -18px;
  background: radial-gradient(circle at 0 0, transparent 18px, var(--surface-cutout) 18.5px);
}
.nav a.active::after {
  bottom: -18px;
  background: radial-gradient(circle at 0 18px, transparent 18px, var(--surface-cutout) 18.5px);
}
.nav .nav-dot {
  background: var(--green);
}

/* Topbar flotante */
.topbar {
  background: var(--glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 76px;
}
.theme-toggle {
  border-radius: 999px;
  background: var(--glass-card-strong);
  border-color: var(--border);
  color: var(--ink);
  min-height: 40px;
}

/* Tarjetas Bento Glass + Hero Verde Bosque */
.stat, .panel, .card, .team-card, .plot-card, .journal-notes {
  background: var(--glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover, .stat:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 86, 63, 0.35);
}
.stat.featured {
  background: linear-gradient(135deg, #134a35 0%, #0b2d20 100%);
  border: 1px solid rgba(200, 238, 103, 0.25);
  box-shadow: 0 14px 32px rgba(13, 51, 37, 0.26);
}
.stat:nth-child(2) .stat-top svg {
  color: var(--orange);
}

/* Gráfico de barras redondeadas con textura rayada */
.plot {
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent calc(25% - 1px),
    var(--border) calc(25% - 1px),
    var(--border) 25%
  );
  background-size: 100% calc(100% - 30px);
  background-repeat: no-repeat;
}
.bar {
  width: 58%;
  max-width: 42px;
  border-radius: 14px 14px 6px 6px;
}
.bar.current {
  background: repeating-linear-gradient(
    -45deg,
    rgba(30, 86, 63, 0.26),
    rgba(30, 86, 63, 0.26) 5px,
    rgba(30, 86, 63, 0.14) 5px,
    rgba(30, 86, 63, 0.14) 10px
  );
  border: 1px solid rgba(30, 86, 63, 0.22);
}
.bar-group:last-child .bar.current {
  background: linear-gradient(180deg, #1c6b4b 0%, #0d3325 100%);
  border-color: rgba(200, 238, 103, 0.45);
  box-shadow: 0 8px 20px rgba(13, 51, 37, 0.25);
}

/* Botones, Inputs y Tablas Glass */
.btn {
  border-radius: 999px;
  background: var(--glass-card-strong);
  border-color: var(--border);
  color: var(--ink);
}
.btn.primary {
  background: linear-gradient(135deg, #164f39, #0d3325);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(13, 51, 37, 0.24);
}
.btn.primary:hover {
  background: linear-gradient(135deg, #1e6549, #124230);
}
.field input, .field select, .field textarea {
  background: var(--glass-card-strong);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
}
th {
  background: rgba(30, 86, 63, 0.06);
}
[data-theme="dark"] th {
  background: rgba(255, 255, 255, 0.04);
}
[data-theme="dark"] .avatar {
  background: rgba(200, 238, 103, 0.18);
  color: var(--lime);
}
[data-theme="dark"] .logout-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
  color: var(--ink);
}
[data-theme="dark"] .context,
[data-theme="dark"] .help-card,
[data-theme="dark"] .form-note,
[data-theme="dark"] .inline-result {
  background: rgba(30, 86, 63, 0.22);
  border-color: var(--border);
  color: var(--ink);
}

/* Login Glass Split flotante sobre el paisaje */
.login-screen {
  min-height: 100vh;
  padding: 28px;
  place-items: center;
  grid-template-columns: minmax(0, 560px) minmax(0, 480px);
  justify-content: center;
  gap: 0;
}
.login-art {
  height: 100%;
  min-height: 600px;
  border-radius: 28px 0 0 28px;
  background: linear-gradient(160deg, rgba(16, 61, 44, 0.90) 0%, rgba(9, 34, 24, 0.95) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-right: 0;
  box-shadow: var(--glass-shadow);
}
.login-content {
  height: 100%;
  min-height: 600px;
  border-radius: 0 28px 28px 0;
  background: var(--glass-card-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-left: 0;
  box-shadow: var(--glass-shadow);
}

/* Ajuste móvil (mantiene 0 scroll horizontal desde 360px) */
@media (max-width: 960px) {
  .shell {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    border: 0;
  }
  .sidebar {
    min-height: 100dvh;
  }
  .nav a.active::before,
  .nav a.active::after {
    display: none;
  }
  .nav a {
    border-radius: 12px;
    margin-right: 12px;
  }
  .login-screen {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .login-art {
    min-height: 280px;
    border-radius: 24px 24px 0 0;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
  }
  .login-content {
    min-height: auto;
    border-radius: 0 0 24px 24px;
    border-left: 1px solid var(--glass-border);
  }
}

/* Expansión horizontal + corrección de botón móvil y fondo base */
html {
  background: #d6cbb3;
}
html[data-theme="dark"] {
  background: #14221a;
}

.shell {
  width: calc(100% - 24px);
  max-width: none;
  margin: 12px auto;
  min-height: calc(100vh - 24px);
}

.main {
  max-width: none;
  width: 100%;
  padding: 28px 34px 24px;
}

@media (min-width: 761px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 960px) {
  .shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }
}