*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f5f7f3;color:#172018}button,input,select,textarea{font:inherit}button{cursor:pointer}.shell{display:flex;min-height:100vh}.sidebar{width:260px;background:#123b22;color:#fff;padding:22px 16px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:30}.brand{display:flex;align-items:center;gap:11px;padding:4px 8px 24px}.brand img{width:42px;height:42px}.brand strong,.brand span{display:block}.brand strong{font-size:20px}.brand span{font-size:13px;opacity:.75}.mobile-close{display:none;margin-left:auto;background:transparent;border:0;color:#fff;font-size:28px}.farm-box{background:rgba(255,255,255,.09);border-radius:12px;padding:12px;margin-bottom:18px}.farm-box small{display:block;opacity:.7;margin-bottom:7px}.farm-box select{width:100%;background:#fff;color:#172018;border:0;border-radius:8px;padding:9px}.sidebar nav{display:grid;gap:5px;flex:1;min-height:0;overflow-y:auto;align-content:start;padding-bottom:8px;overscroll-behavior:contain;scrollbar-width:thin}.nav-item{border:0;background:transparent;color:#eaf4ed;text-align:left;padding:11px 12px;border-radius:9px;display:flex;gap:12px;align-items:center}.nav-item:hover,.nav-item.active{background:rgba(255,255,255,.13)}.sidebar-bottom{margin-top:auto;padding:10px 12px}.main{margin-left:260px;width:calc(100% - 260px)}.topbar{height:68px;background:#fff;border-bottom:1px solid #e3e8e1;padding:0 30px;display:flex;align-items:center;justify-content:space-between}.top-left{display:flex;align-items:center;gap:10px}.breadcrumb{font-size:13px;color:#6d766e}.mobile-brand{display:none;align-items:center;gap:7px}.mobile-brand img{width:25px;height:25px;border-radius:7px}.menu-btn{display:none;border:1px solid #dce3da;background:#fff;border-radius:9px;padding:7px 10px;font-size:20px}.top-actions{display:flex;align-items:center;gap:14px}.status{font-size:12px;font-weight:700}.online{color:#18753c}.offline{color:#a45313}.icon-btn{border:1px solid #dce3da;background:#fff;border-radius:9px;padding:7px 10px}.content{max-width:1250px;margin:auto;padding:28px}.page-title{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.page-title h1{margin:0 0 5px;font-size:28px}.page-title p{margin:0;color:#6c756d}.primary,.secondary,.link{border:0;border-radius:9px;padding:10px 15px;font-weight:700}.primary{background:#166534;color:#fff}.primary:hover{background:#115329}.secondary{background:#edf1ec;color:#253329}.link{background:transparent;color:#166534;padding:5px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:18px}.card{background:#fff;border:1px solid #e2e8e0;border-radius:14px;padding:18px;box-shadow:0 2px 8px rgba(25,50,30,.035)}.metric span{display:block;color:#69736b;font-size:13px}.metric strong{display:block;font-size:27px;margin:9px 0 4px}.metric small{color:#8a938c}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-head h2{font-size:17px;margin:0}.stock-row,.history-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-top:1px solid #edf0eb}.history-row small{display:block;color:#8a938c;margin-top:3px}.empty{padding:28px 10px;text-align:center;color:#7b847d}.info{margin-top:18px;display:flex;gap:10px;align-items:flex-start;background:#eef7f0}.info span{color:#657168}.form{max-width:900px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:18px 0}.form label{display:grid;gap:6px;font-size:13px;font-weight:700;color:#4d584f}.form input,.form select,.form textarea,.modal input,.filter-bar select{border:1px solid #d7dfd5;border-radius:9px;padding:11px 12px;background:#fff;color:#172018}.form textarea{min-height:90px;resize:vertical}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.photo-box{border:1.5px dashed #b9c7ba;background:#f8faf7;border-radius:12px;padding:17px;display:flex;align-items:center;justify-content:space-between;gap:20px}.photo-box strong,.photo-box small{display:block}.photo-box small{color:#7c857e;margin-top:4px}.camera-icon{font-size:28px;margin-bottom:5px}.photo-box input{max-width:250px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px 12px;border-bottom:1px solid #e8ede7;font-size:14px}th{font-size:12px;color:#68736b;text-transform:uppercase}.actions{white-space:nowrap}.small-btn{border:1px solid #d7dfd5;background:#fff;border-radius:7px;padding:6px 9px;font-size:12px;font-weight:700;margin-right:5px}.small-btn:hover{background:#f2f5f1}.small-btn.danger{color:#a02e20;border-color:#efc8c2}.tag{display:inline-block;background:#e8f4eb;color:#166534;border-radius:999px;padding:3px 7px;font-size:11px}.context-line{background:#eef7f0;border-radius:9px;padding:10px 12px;margin-bottom:14px}.filter-bar{display:flex;gap:14px;margin-bottom:14px}.filter-bar label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#4d584f}.modal-backdrop{position:fixed;inset:0;background:rgba(10,20,12,.42);display:grid;place-items:center;padding:20px;z-index:60}.modal{background:#fff;border-radius:15px;width:min(520px,100%);padding:22px}.modal h2{margin-top:0}.modal form{display:grid;gap:13px}.modal label{display:grid;gap:6px;font-size:13px;font-weight:700}.empty-page{min-height:60vh;display:grid;place-items:center;text-align:center;align-content:center;gap:9px}.empty-page h1{margin:0}.big-icon{font-size:52px}.setup{min-height:100vh;display:grid;place-items:center;padding:20px}.setup .card{max-width:650px}.toast{position:fixed;right:18px;bottom:18px;z-index:80;background:#173b22;color:#fff;padding:12px 16px;border-radius:10px;box-shadow:0 8px 25px rgba(0,0,0,.18);font-weight:600}.toast.error{background:#8b2d20}.mobile-overlay{display:none}
@media(max-width:900px){.sidebar{width:220px}.main{margin-left:220px;width:calc(100% - 220px)}.cards{grid-template-columns:1fr 1fr}.grid-2{grid-template-columns:1fr}}
@media(max-width:700px){.sidebar{width:min(300px,88vw);height:100vh;padding:18px 14px;transform:translateX(-105%);transition:transform .22s ease;box-shadow:8px 0 30px rgba(0,0,0,.18)}.sidebar.open{transform:translateX(0)}.brand{padding-bottom:18px}.mobile-close{display:block}.mobile-overlay{position:fixed;inset:0;background:rgba(0,0,0,.38);z-index:25}.mobile-overlay.show{display:block}.main{margin-left:0;width:100%;padding-bottom:0}.topbar{padding:0 14px;height:62px}.menu-btn{display:block}.mobile-brand{display:flex;font-weight:800}.breadcrumb{display:none}.top-actions .status{display:none}.content{padding:18px 14px}.page-title{align-items:center}.page-title h1{font-size:23px}.page-title p{font-size:13px}.cards{grid-template-columns:1fr 1fr;gap:10px}.card{padding:14px}.metric strong{font-size:22px}.form-grid{grid-template-columns:1fr}.photo-box{align-items:flex-start;flex-direction:column}.photo-box input{max-width:none;width:100%}.table-wrap{margin:0 -2px}.form-actions{flex-wrap:wrap}.form-actions button{flex:1}.filter-bar{display:grid;grid-template-columns:1fr}.toast{left:14px;right:14px;bottom:18px;text-align:center}.actions{min-width:150px}}

.auth-card{max-width:460px;margin:6vh auto;text-align:left}.auth-logo{text-align:center;margin-bottom:8px}.auth-logo img{width:76px;height:76px;border-radius:18px;display:block;margin:0 auto}.auth-card h1{text-align:center;margin-bottom:6px}.auth-card>p:first-of-type{text-align:center;color:#68736b}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.auth-tabs button{border:1px solid #dfe6df;background:#f6f8f6;border-radius:10px;padding:11px;font-weight:700;cursor:pointer}.auth-tabs button.active{background:#1f7a45;color:#fff;border-color:#1f7a45}.auth-help{font-size:12px!important;color:#6c756d!important;line-height:1.5;margin-top:14px}.user-chip{font-size:12px;background:#f1f5f2;border:1px solid #dfe6df;border-radius:999px;padding:7px 10px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:700px){.user-chip{display:none}.top-actions{gap:5px}.top-actions .small-btn{padding:7px 9px}}

.stock-alert{display:flex;align-items:center;gap:14px;padding:16px 18px;margin:0 0 18px;background:#fff7e8;border:1px solid #f0c36d;border-left:5px solid #d97706;border-radius:12px;color:#78350f}.stock-alert-icon{font-size:27px}.stock-alert-content{flex:1}.stock-alert-content>strong{font-size:16px}.stock-alert-content p{margin:5px 0 8px;color:#854d0e;font-size:13px}.stock-alert-items{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:13px}.stock-alert .secondary{white-space:nowrap;background:#ffedd5;color:#7c2d12}@media(max-width:700px){.stock-alert{align-items:flex-start;flex-wrap:wrap}.stock-alert-content{min-width:calc(100% - 50px)}.stock-alert .secondary{width:100%}}

/* Relatórios: impressão em PDF e estrutura reutilizável para futuros módulos */
.report-filters{align-items:end;flex-wrap:wrap}.report-filters label{min-width:170px;flex:1}.report-sheet{padding:24px}.report-heading{border-bottom:1px solid #dce5dc;margin-bottom:18px;padding-bottom:12px}.report-heading h2{margin:0 0 8px}.report-heading p,.report-footnote{color:#64748b;font-size:13px}.report-sheet h3{margin:24px 0 8px}.report-sheet table{width:100%;border-collapse:collapse;margin-bottom:18px}.report-sheet th,.report-sheet td{padding:9px 10px;text-align:left;border-bottom:1px solid #e5e7eb}.report-sheet th{background:#f8fafc}.report-metrics{margin-bottom:20px}
@media print{body{background:#fff!important}.sidebar,.topbar,.page-title,.report-filters,.info.card,#printReport,.toast{display:none!important}.main,.content,.report-sheet{width:100%!important;margin:0!important;padding:0!important;box-shadow:none!important;border:0!important;background:#fff!important}.report-sheet{display:block!important}.report-sheet .cards{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:8px!important}.report-sheet .card{break-inside:avoid;box-shadow:none!important}.report-sheet table{font-size:10pt;break-inside:auto}.report-sheet tr{break-inside:avoid;break-after:auto}.report-sheet h2,.report-sheet h3{break-after:avoid}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* v27: módulo de químicos */
.muted{color:#6d766e;font-size:13px}.report-sheet{margin-top:14px}.report-sheet h2{margin-top:0}.form h2{font-size:19px;margin:0 0 12px}.form button:disabled{opacity:.55;cursor:not-allowed}

/* v30: atalhos de uso frequente no Dashboard */
.dashboard-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 18px}
.shortcut-card{display:flex;align-items:center;gap:14px;text-align:left;width:100%;padding:18px 20px;border:1px solid #dbe7dd;border-radius:16px;background:#fff;cursor:pointer;color:#153c27;box-shadow:0 3px 12px rgba(20,50,30,.05);transition:transform .15s,box-shadow .15s}
.shortcut-card:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(20,50,30,.09)}
.shortcut-fuel{border-left:5px solid #176b3a}.shortcut-chemical{border-left:5px solid #5b8b42}
.shortcut-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:13px;background:#edf7ef;font-size:25px}
.shortcut-copy{display:flex;flex-direction:column;gap:5px;flex:1}.shortcut-copy strong{font-size:16px}.shortcut-copy small{font-size:13px;color:#69766d;line-height:1.4}.shortcut-arrow{font-size:27px;color:#176b3a}
.chemical-application-form{scroll-margin-top:22px}
@media(max-width:760px){.dashboard-shortcuts{grid-template-columns:1fr}.shortcut-card{padding:15px}}

/* v32: controles de nota fiscal acessíveis e acionáveis por label */
.file-action{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:10px 14px;border-radius:10px;font-weight:600;min-height:40px;}
.file-input-accessible{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
.file-input-accessible:focus + .muted{outline:2px solid #176b3a;}

/* v37: acesso fácil ao módulo de produção */
.shortcut-production{border-color:#d4e4bc;background:linear-gradient(135deg,#fff 0%,#f5faed 100%)}
.shortcut-production .shortcut-icon{background:#e5f0d6}
.production-intro{padding:26px;max-width:1000px}
.production-hero-icon{font-size:42px;margin-bottom:8px}
.production-intro>p{color:#52645a;max-width:760px;line-height:1.6}
.production-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}
.production-steps>div{border:1px solid #dce7dc;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:8px}
.production-steps small{color:#66756b;line-height:1.45}
@media(max-width:760px){.production-steps{grid-template-columns:1fr}.production-intro{padding:18px}}

/* v38 - upload e prévia de romaneios */
.production-upload-actions{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0 16px;align-items:center}
.production-file-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 18px;border-radius:10px;font-weight:700;cursor:pointer;text-align:center}
.production-file-preview{display:flex;align-items:center;gap:16px;flex-wrap:wrap;border:1px dashed #b9cdbd;background:#f8fbf8;border-radius:12px;padding:16px;margin:12px 0 22px;min-height:58px}
.production-image-preview{max-width:180px;max-height:230px;object-fit:contain;border-radius:8px;border:1px solid #dbe5dc;background:white}
.production-pdf-icon{font-size:42px;padding:8px}
.production-file-details{display:flex;flex-direction:column;gap:7px;overflow-wrap:anywhere;min-width:180px}
.production-file-details span,.production-file-details small{color:#617367}
@media(max-width:600px){.production-upload-actions{flex-direction:column;align-items:stretch}.production-file-button{width:100%;box-sizing:border-box}.production-image-preview{max-width:100%;max-height:260px}}


/* v40: relatório de produção com filtros e impressão focada no relatório */
.production-report-filters{margin:18px 0;padding:22px}
.production-report-filters>.section-head p{margin:5px 0 0;color:#64748b;font-size:13px}
.production-report-filters>.form-grid{margin:18px 0 12px}
.production-report-sheet{margin-top:18px}
.production-report-sheet .report-metrics .metric{break-inside:avoid}
.production-report-sheet .table-wrap{overflow:visible}
@media print{
 @page{size:landscape;margin:10mm}
 body.print-production-report{background:#fff!important}
 body.print-production-report .sidebar,
 body.print-production-report .topbar,
 body.print-production-report .page-title,
 body.print-production-report .production-intro,
 body.print-production-report #productionReviewForm,
 body.print-production-report .production-history,
 body.print-production-report .production-report-filters>.section-head,
 body.print-production-report .production-report-filters>.form-grid,
 body.print-production-report .production-report-filters>.form-actions,
 body.print-production-report .production-report-filters>.info{display:none!important}
 body.print-production-report .main,
 body.print-production-report .content,
 body.print-production-report .production-report-filters,
 body.print-production-report #productionReportOutput,
 body.print-production-report .production-report-sheet{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;box-shadow:none!important;border:0!important;background:#fff!important}
 body.print-production-report #productionReportOutput{display:block!important}
 body.print-production-report .production-report-sheet{display:block!important}
 body.print-production-report .production-report-sheet .report-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
 body.print-production-report .production-report-sheet .metric{padding:8px!important}
 body.print-production-report .production-report-sheet .metric strong{font-size:16px!important}
 body.print-production-report .production-report-sheet table{width:100%!important;font-size:7.5pt!important;break-inside:auto}
 body.print-production-report .production-report-sheet th,
 body.print-production-report .production-report-sheet td{padding:4px 5px!important;font-size:7.5pt!important}
 body.print-production-report .production-report-sheet h2{font-size:18pt!important}
 body.print-production-report .production-report-sheet h3{margin:10px 0 5px!important}
 body.print-production-report .production-report-sheet tr{break-inside:avoid}
}
@media print{body.print-production-report .content>.cards{display:none!important}}

/* v64 — estoque inteligente */
.stock-min-input{width:112px;max-width:100%;padding:8px 9px;border:1px solid #d7dfd5;border-radius:8px;background:#fff;color:#172018}
.stock-status{display:inline-block;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.stock-status.ok{background:#e8f4eb;color:#166534}
.stock-status.low{background:#fff1d6;color:#8a4b08}
.stock-status.critical{background:#fde8e7;color:#a1261b}
.stock-status.neutral{background:#eef1ef;color:#66736a}
@media(max-width:700px){.stock-min-input{width:88px}.stock-page .table-wrap table{min-width:680px}}

/* v65 — histórico inteligente de estoque */
.stock-test-row{opacity:.68;background:#f7f8f6}.stock-test-row td{text-decoration-color:#9ca3af}.stock-test-row .stock-status{opacity:1}

/* v67 - atalhos da página inicial com ilustrações agrícolas */
.dashboard-shortcuts{gap:16px;margin-bottom:20px}
.shortcut-card{min-height:108px;padding:19px 22px;border-radius:18px;gap:17px;box-shadow:0 5px 16px rgba(20,50,30,.055)}
.shortcut-card:hover{transform:translateY(-2px);box-shadow:0 9px 22px rgba(20,50,30,.10)}
.shortcut-icon{flex-basis:72px;width:72px;height:72px;border-radius:17px;font-size:26px;overflow:hidden}
.shortcut-fuel .shortcut-icon{background:linear-gradient(145deg,#e7f5e9,#f4faf3);color:#176b3a}
.shortcut-icon-sprayer{background:linear-gradient(145deg,#e9f4df,#f6faef);color:#386d36}
.shortcut-icon-crops{background:linear-gradient(145deg,#fff3cf,#fbf8e9);color:#668b35}
.shortcut-art{display:block;width:88%;height:88%}
.shortcut-copy strong{font-size:16px;letter-spacing:.05px}
.shortcut-copy small{font-size:13px;line-height:1.45}
.shortcut-production{border:1px solid #e7dfbd;border-left:5px solid #c69b2d;background:linear-gradient(115deg,#fff 0%,#fffdf5 100%)}
.shortcut-production .shortcut-arrow{color:#a47b19}
@media(max-width:760px){.shortcut-card{min-height:92px;padding:14px 16px}.shortcut-icon{flex-basis:62px;width:62px;height:62px}}




/* v71 — identidade visual completa aprovada para o dashboard Agro Gestão */
.page-title{
  position:relative;isolation:isolate;overflow:hidden;
  min-height:145px;margin:-8px -8px 18px;padding:28px 30px;
  border-radius:0 0 18px 18px;
  background:
    linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.91) 36%,rgba(255,255,255,.18) 74%,rgba(255,255,255,.04) 100%),
    url('/field-banner.jpg') center 53% / cover no-repeat;
}
.page-title h1{font-size:30px;color:#103d23;letter-spacing:-.5px}
.page-title p{color:#294b35;font-size:15px}
.dashboard-shortcuts{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.22fr);
  grid-template-rows:repeat(2,minmax(150px,auto));
  gap:14px;margin:0 0 18px;align-items:stretch;
}
.shortcut-card{
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;align-items:center;gap:14px;
  min-height:150px;padding:18px 20px;
  border:1px solid #d7e6d9;border-radius:20px;
  background:#fff;color:#123e25;
  box-shadow:0 6px 18px rgba(17,55,31,.10);
}
.shortcut-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(17,55,31,.16)}
.shortcut-fuel{grid-column:1;grid-row:1;border-left:6px solid #2a8a35}
.shortcut-production{grid-column:1;grid-row:2;border-left:6px solid #d9a51b}
.shortcut-chemical{
  grid-column:2;grid-row:1 / span 2;min-height:314px;
  justify-content:flex-end;padding:24px;
  border:1px solid #1b6533;border-left:7px solid #4e9d32;
  color:#fff;
  background:#073c20 url('/sprayer-card.jpg') center center / cover no-repeat;
}
.shortcut-chemical::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(90deg,rgba(4,44,21,0) 0%,rgba(4,44,21,.08) 46%,rgba(4,44,21,.87) 70%,rgba(4,44,21,.98) 100%);
}
.shortcut-photo{
  display:block;flex:0 0 40%;align-self:stretch;min-height:112px;
  border-radius:14px;background-position:center;background-size:cover;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.28);
}
.shortcut-photo-fuel{background-image:url('/fuel-card.jpg')}
.shortcut-photo-production{background-image:url('/production-card.jpg')}
.shortcut-fuel .shortcut-copy,.shortcut-production .shortcut-copy{
  position:relative;z-index:1;flex:1;gap:8px
}
.shortcut-fuel .shortcut-copy strong,.shortcut-production .shortcut-copy strong{
  font-size:19px;line-height:1.2;color:#123e25
}
.shortcut-fuel .shortcut-copy small,.shortcut-production .shortcut-copy small{
  color:#53665a;font-size:13px;line-height:1.45
}
.shortcut-chemical .shortcut-copy{
  flex:0 0 39%;max-width:39%;position:relative;z-index:1;
  margin-left:auto;gap:10px;color:#fff
}
.shortcut-chemical .shortcut-copy strong{
  font-size:clamp(20px,1.55vw,27px);line-height:1.13;color:#fff
}
.shortcut-chemical .shortcut-copy small{font-size:14px;line-height:1.45;color:#eaf5eb}
.shortcut-arrow{
  position:relative;z-index:2;display:grid;place-items:center;
  flex:0 0 40px;width:40px;height:40px;border-radius:50%;
  background:#168b31;color:#fff;font-size:29px;line-height:1;
  box-shadow:0 3px 10px rgba(0,0,0,.15)
}
.shortcut-chemical .shortcut-arrow{
  background:#fff;color:#15562b;align-self:flex-end
}
.stock-alert{
  border-radius:18px;border-left-width:7px;
  box-shadow:0 5px 16px rgba(120,75,12,.07)
}
.cards .card{border-radius:18px;box-shadow:0 5px 16px rgba(17,55,31,.07)}
@media(max-width:900px){
  .dashboard-shortcuts{grid-template-columns:1fr 1fr;grid-template-rows:auto auto}
  .shortcut-chemical{grid-column:1 / -1;grid-row:2;min-height:245px}
  .shortcut-fuel{grid-column:1;grid-row:1}
  .shortcut-production{grid-column:2;grid-row:1}
}
@media(max-width:620px){
  .page-title{margin:-8px -8px 16px;padding:22px 18px;min-height:120px;background-position:65% center}
  .page-title h1{font-size:23px}
  .dashboard-shortcuts{grid-template-columns:1fr;grid-template-rows:auto}
  .shortcut-fuel,.shortcut-production,.shortcut-chemical{grid-column:1;grid-row:auto;min-height:132px}
  .shortcut-chemical{min-height:210px}
  .shortcut-photo{flex-basis:36%;min-height:96px}
  .shortcut-chemical .shortcut-copy{flex-basis:46%;max-width:46%}
}

/* v72 — administração de usuários e permissões, mantendo a identidade visual v71 */
.access-card{margin:0 0 18px;padding:22px;border:1px solid #dce8de;border-radius:18px;box-shadow:0 5px 16px rgba(17,55,31,.06)}
.access-card h2{margin:0 0 8px;color:#17472a}.access-card h3{margin:18px 0 10px;color:#245535;font-size:15px}
.access-card .section-heading p,.access-card .muted{color:#647568;font-size:13px}
.access-farms{display:flex;flex-wrap:wrap;gap:10px}
.access-check{display:flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid #d8e5da;border-radius:12px;background:#f8fbf8;font-weight:600}
.access-check input,.permission-table input{width:17px;height:17px;accent-color:#168b31}
.permission-table{min-width:620px}.permission-table th,.permission-table td{text-align:center}.permission-table th:first-child,.permission-table td:first-child{text-align:left}.permission-table td{padding:10px 8px}
.access-card .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.access-card .form-actions{justify-content:flex-start;margin-top:18px}
@media(max-width:620px){.access-card{padding:16px}.access-card .form-grid{grid-template-columns:1fr}.access-farms{display:grid;grid-template-columns:1fr}}
.access-active{margin-top:14px;max-width:max-content}
.farm-permission-panel{margin:12px 0;padding:14px;border:1px solid #dce8de;border-radius:14px;background:#fbfdfb}
.farm-permission-panel h4{margin:0 0 10px;color:#17472a;font-size:15px}
.access-active{margin-top:14px;max-width:max-content}
.farm-permission-panel{margin:12px 0;padding:14px;border:1px solid #dce8de;border-radius:14px;background:#fbfdfb}
.farm-permission-panel h4{margin:0 0 10px;color:#17472a;font-size:15px}

/* v74 — painel administrativo global */
.global-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}
.global-stats .card{padding:18px 20px;border:1px solid #dce8de;border-radius:16px;box-shadow:0 5px 16px rgba(17,55,31,.06)}
.global-stats small{display:block;color:#647568;font-size:13px;margin-bottom:8px}
.global-stats strong{font-size:28px;color:#17472a}
.global-table-card{padding:20px;border:1px solid #dce8de;border-radius:18px;overflow:hidden}
.global-table-card .section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.global-table-card h2{margin:0 0 6px;color:#17472a}
.global-table-card p{margin:0;color:#647568;font-size:13px}
.global-table{width:100%;border-collapse:collapse;min-width:940px;font-size:13px}
.global-table th,.global-table td{padding:12px 10px;border-bottom:1px solid #e6eee7;text-align:left;vertical-align:top}
.global-table th{color:#526858;background:#f6faf6;font-weight:700;white-space:nowrap}
.global-table td strong,.global-table td small{display:block}
.global-table td small{margin-top:4px;color:#718174;font-size:11px}
.global-actions{display:flex;flex-direction:column;gap:8px;min-width:130px}
.global-edit summary{cursor:pointer;color:#176b32;font-weight:700;padding:7px 0}
.global-edit-form{display:grid;gap:9px;min-width:210px;padding:10px;border:1px solid #dce8de;border-radius:12px;background:#fbfdfb}
.global-edit-form label{display:grid;gap:4px;font-size:12px;color:#526858}
.global-edit-form input,.global-edit-form select{width:100%;min-width:0;padding:8px;border:1px solid #d3dfd5;border-radius:8px;background:#fff;color:#183c25}
.global-edit-form .primary{white-space:normal}
@media(max-width:850px){.global-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.global-table-card{padding:14px}.global-table-card .section-heading{display:block}.global-table-card .section-heading p{margin-top:6px}}
@media(max-width:480px){.global-stats{gap:8px}.global-stats .card{padding:14px}.global-stats strong{font-size:23px}}
