/* Pastos: consulta e edição mantêm desenho, ficha e ações à vista. */
html.pasture-screen,html.pasture-screen body{height:100%;overflow:hidden}
.pasture-screen #toast{pointer-events:none}
.pasture-screen .shell{height:100dvh;min-height:0;overflow:hidden}.pasture-screen .workspace{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}.pasture-screen .topbar{flex-shrink:0;min-height:68px;padding-block:12px}.pasture-screen .main{flex:1;min-height:0;overflow:hidden;padding:20px 26px}.pasture-screen .app-footer{display:none}
.pasture-screen-area{display:flex;flex-direction:column;gap:16px;height:100%;min-height:0}.pasture-screen-area .page-title{margin:0;gap:12px;flex-shrink:0}.pasture-screen-area h1{font-size:26px}.pasture-screen-area .page-title p{font-size:12px;margin-top:6px}.pasture-screen-area .page-title .btn{min-height:36px;padding:8px 14px;font-size:12px}
.pasture-workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.8fr) minmax(320px,1fr);gap:18px}.pasture-workspace .pasture-map-card{height:100%;display:flex;flex-direction:column;min-height:0}.pasture-workspace #sketch-map{flex:1;height:auto!important;min-height:0;cursor:grab}.pasture-workspace #sketch-map.can-pan{cursor:grab}.pasture-workspace .sketch-map-toolbar{padding:10px 12px;flex-shrink:0;flex-wrap:wrap;gap:8px}.sketch-map-toolbar strong{font-size:12px;font-weight:600;color:#44785a}.sketch-map-toolbar .row{gap:5px}.pasture-workspace .sketch-map-toolbar .btn{min-height:30px;padding:5px 8px;font-size:11px}.pasture-workspace .btn[aria-pressed=true]{background:#e5fff0;color:#22be63;border-color:#b9f2d1}
.pasture-map-foot{flex-shrink:0;min-height:40px;padding:7px 11px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #e3f2e9;font-size:10px;color:#7aa18a}.pasture-map-foot .btn{min-height:28px;padding:4px 8px;font-size:10px}.pasture-detail-column{height:100%;min-height:0;display:flex;flex-direction:column;gap:12px}.pasture-picker{flex-shrink:0;background:#fff;border:1px solid var(--line);border-radius:10px;padding:11px 13px}.pasture-picker label{font-size:11px;font-weight:600;color:#538267;display:block;margin-bottom:7px}.pasture-picker>div{display:grid;grid-template-columns:1fr 1.3fr;gap:7px}.pasture-picker input,.pasture-picker select{width:100%;min-width:0;border:1px solid #dcefe4;border-radius:6px;background:#fafdfb;padding:8px;font-size:11px;color:#34694a}.pasture-picker [role=status]:not(:empty){display:block;font-size:11px;color:#8c6044;margin-top:6px}
#pasture-panel{flex:1;min-height:0}.pasture-workspace .pasture-profile{height:100%;padding:0;display:flex;flex-direction:column;overflow:hidden}.pasture-profile-header{padding:20px 20px 14px;flex-shrink:0}.pasture-profile-header h2{font-size:24px;line-height:1.2;margin:7px 0 10px}.pasture-profile-header .eyebrow{font-size:9px;letter-spacing:1.5px}.pasture-occupancy{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#6c957d}.pasture-occupancy:before{content:"";width:6px;height:6px;border-radius:50%;background:#b4cebf}.pasture-occupancy.occupied:before{background:#176b43}.pasture-profile-tabs{display:flex;gap:18px;padding:0 20px;border-bottom:1px solid #e4f1e9;flex-shrink:0}.pasture-profile-tabs button{background:transparent;border:0;padding:9px 0;color:#81a38f;font-size:12px;border-bottom:2px solid transparent}.pasture-profile-tabs button[aria-selected=true]{border-bottom-color:#176b43;color:#23ac5c;font-weight:600}
.pasture-profile-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px 20px}.pasture-profile-stats{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 0 22px}.pasture-profile-stats dt{font-size:10px;color:#82a28f;margin-bottom:4px}.pasture-profile-stats dd{margin:0;font-size:25px;letter-spacing:-.5px;font-weight:600;color:#235839}.pasture-profile-stats dd small{font-size:12px;letter-spacing:0;font-weight:400;color:#7ea08c}.pasture-profile-stats dd.text{font-size:15px;letter-spacing:0;line-height:1.5}.pasture-profile-body h3{font-size:12px;margin:0 0 10px}.pasture-lot-card{width:100%;border:1px solid #e3f3ea;border-radius:8px;padding:12px;margin-bottom:10px;text-align:left;background:#f9fefb;color:#306a48}.pasture-lot-card strong{display:block;font-size:13px}.pasture-lot-card div>span{display:block;font-size:10px;margin-top:3px;color:#719d83}.pasture-lot-card>p{font-size:10px;color:#85a793;margin-top:8px}.pasture-lot-weight{border-top:1px solid #e1f1e8;margin-top:9px;padding-top:7px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px}.pasture-lot-weight span{font-size:10px}.pasture-lot-weight b{font-size:15px}.pasture-lot-weight small{grid-column:1/-1;font-size:10px;color:#86a493}.pasture-profile-note{margin-top:20px}.pasture-profile-note p{font-size:12px;line-height:1.6;white-space:pre-wrap;color:#759a84}.pasture-empty-copy{font-size:12px;line-height:1.6;color:#8aaa97}.pasture-profile-actions{flex-shrink:0;border-top:1px solid #e5f2ea;padding:12px 16px;display:grid;grid-template-columns:1fr 1fr;gap:7px}.pasture-profile-actions .btn{min-height:34px;padding:7px 9px;font-size:11px}.pasture-profile-actions [data-action=record-delete]{color:#9c6262;background:transparent}.pasture-history-item{border-left:2px solid #daf5e5;padding:0 0 17px 14px;margin:0 0 2px}.pasture-history-item time{font-size:10px;color:#8bad99;display:block;margin-bottom:4px}.pasture-history-item strong{font-size:12px;display:block}.pasture-history-item p,.pasture-history-item small{font-size:11px;display:block;color:#739f85;margin-top:3px}.pasture-profile-empty{height:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:25px;border:1px solid var(--line);border-radius:10px;background:#fff}.pasture-profile-empty h2{font-size:21px;margin-top:10px}.pasture-profile-empty p{font-size:12px;color:#86aa95;line-height:1.6;margin:12px 0 20px}.sketch-start-note{inset:35% 12% auto}.sketch-start-note strong,.sketch-start-note span{display:block}.sketch-start-note span{font-size:12px;margin-top:9px}
/* Editor: o rodapé não sai da tela; somente os dados do pasto rolam. */
.sketch-modal.modal.wide{width:min(1500px,calc(100vw - 32px));height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;background:#fff}.sketch-modal .modal-header{padding:14px 20px;flex-shrink:0}.sketch-modal .modal-header h2{font-size:18px}.sketch-modal .modal-content{flex:1;min-height:0;overflow:hidden;padding:12px 18px}.sketch-modal .modal-footer{flex-shrink:0;padding:10px 18px;min-height:56px}.sketch-modal .modal-footer .btn{font-size:12px;min-height:36px}#sketch-editor{height:100%;min-height:0;display:flex;flex-direction:column;gap:9px}#sketch-editor>.form-help:first-child{display:none}.sketch-import-tools{flex-shrink:0;gap:6px}.sketch-import-tools .btn{min-height:32px;padding:5px 9px;font-size:11px}.sketch-editor-navigation{display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex-shrink:0}.sketch-editor-navigation .btn{font-size:11px;padding:5px 9px;min-height:30px}.sketch-editor-navigation .btn[aria-pressed=true]{background:#e5fff0;color:#22be63}.sketch-editor-navigation span{margin-left:auto;font-size:11px;font-weight:600;color:#176b43}#sketch-status{margin:0;font-size:11px;min-height:16px;flex-shrink:0}.sketch-point-tools{margin:0;padding:8px 11px;flex-shrink:0}.sketch-point-tools .btn{min-height:29px;padding:4px 8px;font-size:10px}.sketch-point-tools p{font-size:10px;margin-top:5px}.sketch-review-layout{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) 280px;margin:0;gap:16px}#sketch-preview{height:100%;min-height:0;border-radius:8px}.sketch-review-side{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;display:block;padding-right:5px}.sketch-region-list{max-height:130px}.sketch-modal #sketch-fields{gap:11px}.sketch-modal #sketch-fields input,.sketch-modal #sketch-fields select{padding:8px}.sketch-review-layout+.form-help{display:none}.sketch-confirm{flex-shrink:0;font-size:11px;gap:7px}.sketch-confirm input{width:15px;height:15px}.sketch-modal #sketch-error{flex-shrink:0;font-size:11px;margin:0}.sketch-modal #sketch-error:empty{display:none}.sketch-drawing-note{display:none;color:#7ca78e;font-size:12px;line-height:1.7;margin:14px 0}.is-drawing #sketch-fields{display:none}.is-drawing .sketch-drawing-note{display:block}.is-drawing #sketch-preview{cursor:crosshair}.sketch-editor-mobile-tabs{display:none}.sketch-editor-navigation [aria-pressed=true]{border-color:#b9f2d1}
@media(max-width:1100px){.pasture-screen .main{padding:16px}.pasture-workspace{grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr);gap:12px}.pasture-profile-header{padding:16px 16px 12px}.pasture-profile-body{padding:15px 16px}.pasture-workspace .sketch-map-toolbar strong{display:none}.pasture-profile-header h2{font-size:22px}.pasture-picker>div{grid-template-columns:1fr}.pasture-picker{padding:9px 11px}.pasture-picker label{margin-bottom:5px}.pasture-picker input,.pasture-picker select{padding:6px 8px}.sketch-review-layout{grid-template-columns:minmax(0,1fr) 245px;gap:12px}}
@media(max-width:680px){.pasture-screen .main{padding:12px}.pasture-screen .topbar{min-height:60px;padding-block:10px}.pasture-screen-area{gap:10px}.pasture-screen-area .page-title{gap:8px}.pasture-screen-area h1{font-size:22px}.pasture-screen-area .page-title p{display:none}.pasture-screen-area .page-title .row{gap:5px}.pasture-screen-area .page-title .btn{font-size:10px;padding:6px 9px;min-height:32px}.pasture-workspace{grid-template-columns:1fr;grid-template-rows:minmax(170px,.46fr) minmax(250px,.54fr);gap:10px}.pasture-workspace .sketch-map-toolbar{padding:6px 8px}.pasture-workspace .sketch-map-toolbar .btn{font-size:10px;min-height:26px;padding:3px 6px}.pasture-map-foot{min-height:28px;padding:4px 7px;font-size:9px}.pasture-map-foot .btn{min-height:23px;font-size:9px}.pasture-detail-column{gap:7px}.pasture-picker{padding:7px 9px}.pasture-picker label{display:none}.pasture-picker>div{grid-template-columns:1fr 1.3fr}.pasture-profile-header{padding:10px 12px 7px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}.pasture-profile-header .eyebrow{display:none}.pasture-profile-header h2{font-size:19px;margin:0}.pasture-profile-tabs{padding:0 12px;gap:15px}.pasture-profile-tabs button{font-size:11px;padding:6px 0}.pasture-profile-body{padding:12px}.pasture-profile-stats{gap:10px;margin-bottom:14px}.pasture-profile-stats dd{font-size:21px}.pasture-profile-stats dd.text{font-size:13px}.pasture-profile-actions{padding:7px 10px;gap:5px}.pasture-profile-actions .btn{font-size:10px;min-height:28px;padding:4px 7px}.sketch-modal.modal.wide{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}.sketch-modal .modal-header{padding:10px 12px}.sketch-modal .modal-header h2{font-size:15px}.sketch-modal .modal-content{padding:8px 10px}.sketch-modal .modal-footer{padding:8px 10px;min-height:49px}#sketch-editor{gap:7px}.sketch-import-tools .btn,.sketch-editor-navigation .btn{font-size:10px;padding:4px 7px;min-height:28px}.sketch-editor-navigation span{font-size:10px}.sketch-gap{font-size:10px}.sketch-gap input{padding:5px;width:40px}.sketch-editor-mobile-tabs{display:flex;gap:5px;flex-shrink:0}.sketch-editor-mobile-tabs .btn{flex:1;font-size:11px;min-height:29px;padding:4px 8px}.sketch-editor-mobile-tabs [aria-pressed=true]{background:#e5fff0;color:#22be63;border-color:#b9f2d1}.sketch-review-layout{display:block;position:relative;min-height:140px}.sketch-review-side{display:block;width:100%}#sketch-editor[data-pane=map] .sketch-review-side{display:none}#sketch-editor[data-pane=fields] #sketch-preview{display:none}#sketch-editor[data-pane=fields] .sketch-point-tools{display:none}.sketch-point-tools{padding:7px}.sketch-point-toolbar{gap:6px}.sketch-point-toolbar strong{font-size:10px}.sketch-point-toolbar [role=group]{gap:4px}.sketch-point-tools .btn{font-size:9px;padding:3px 5px;min-height:26px}.sketch-point-tools p{font-size:9px;line-height:1.4}.sketch-confirm{font-size:10px}.sketch-region-list{max-height:100px}#sketch-status{font-size:10px}.sketch-review-side>div>strong{font-size:12px}}
@media(max-height:650px) and (min-width:681px){.pasture-screen .topbar{min-height:54px;padding-block:8px}.pasture-screen .main{padding:10px 14px}.pasture-screen-area{gap:9px}.pasture-screen-area .page-title h1{font-size:22px}.pasture-screen-area .page-title p{display:none}.pasture-picker{padding:7px 9px}.pasture-picker label{display:none}.pasture-picker>div{grid-template-columns:1fr 1fr}.pasture-profile-header{padding:10px 13px}.pasture-profile-header h2{font-size:19px;margin:5px 0}.pasture-profile-tabs button{padding:6px 0;font-size:11px}.pasture-profile-actions{padding:7px 10px}.pasture-profile-actions .btn{font-size:10px;min-height:27px;padding:4px 6px}.sketch-modal .modal-header{padding:8px 15px}.sketch-point-tools p{display:none}.sketch-modal .modal-content{padding:8px 12px}.sketch-modal .modal-footer{padding:7px 12px;min-height:46px}}
