
/* Toolbar pengukuran V2: peta tetap terlihat dan tombol proporsional */
#ef-survey-stage{overflow:hidden}
#ef-survey-stage .measure-tools{
  position:relative!important;inset:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  transform:none!important;width:100%!important;max-width:none!important;margin:0!important;
  padding:12px 14px 14px!important;display:flex!important;flex-direction:column;gap:10px;
  background:linear-gradient(145deg,#ffffff,#f3faf8);border:1px solid #dcebe8;
  border-top:0;border-radius:0 0 16px 16px;box-shadow:none;backdrop-filter:none;z-index:751
}
#ef-survey-stage .measure-tools-title{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#274c48;font-size:12px;font-weight:800;letter-spacing:.01em}
#ef-survey-stage .measure-tools-title>span:first-child{display:flex;align-items:center;gap:7px}
#ef-survey-stage .measure-tools-title>span:first-child>span{color:#078c78;font-size:15px}
#ef-survey-stage .measure-tools-subtitle{color:#71938c;font-size:10px;font-weight:600}
#ef-survey-stage .measure-tools-primary{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:9px;min-width:0}
#ef-survey-stage .measure-tools-primary button{width:100%;min-width:0;min-height:46px!important;padding:10px 12px!important;border-radius:12px!important;font-size:13px!important;font-weight:750!important;line-height:1.25!important;white-space:normal;flex:none!important;box-shadow:none!important}
#ef-survey-stage .measure-tools-primary [data-action="measure-center"]{background:#078f7e;color:#fff;border-color:#078f7e}
#ef-survey-stage .measure-tools-primary [data-action="measure-gps"]{background:#e6f7f0;color:#057964!important;border:1px solid #a9dbcb!important}
#ef-survey-stage .measure-tools-secondary{display:flex;flex-wrap:wrap;gap:7px;align-items:stretch}
#ef-survey-stage .measure-tools-secondary button{min-height:36px!important;margin:0!important;padding:7px 11px!important;background:#fff!important;border:1px solid #d3e4df!important;color:#496a63!important;border-radius:10px!important;font-size:11px!important;line-height:1.25!important;font-weight:650!important;white-space:nowrap;box-shadow:none!important;flex:0 0 auto!important}
#ef-survey-stage .measure-tools-secondary button.measure-toggle-active{background:#e7f6f1!important;border-color:#aadbd0!important;color:#087f70!important}
#ef-survey-stage .measure-tools-secondary [data-action="measure-clear"]{margin-left:auto!important;color:#b24a4a!important;background:#fff9f8!important;border-color:#f2d7d3!important}
#ef-survey-stage .measure-tools button[hidden]{display:none!important}
#ef-survey-stage #survey-map{border-radius:16px 16px 0 0!important}
#ef-survey-stage .measure-tools button:focus-visible{outline:3px solid #38b6a2!important;outline-offset:2px}
/* Fullscreen: transparan melayang ringkas dengan area peta tetap dominan */
#ef-survey-stage.ef-survey-expanded #survey-map{border-radius:0!important;min-height:130px}
#ef-survey-stage.ef-survey-expanded .measure-tools{
  position:absolute!important;left:50%!important;right:auto!important;bottom:max(10px,env(safe-area-inset-bottom))!important;
  transform:translateX(-50%)!important;width:min(600px,calc(100% - 20px))!important;
  padding:10px!important;gap:7px;max-height:min(45vh,230px);border:1px solid #ffffffbb!important;
  background:#ffffffed!important;backdrop-filter:blur(14px);border-radius:16px!important;
  box-shadow:0 8px 26px #103b3352!important
}
#ef-survey-stage.ef-survey-expanded .measure-tools-title{font-size:11px}
#ef-survey-stage.ef-survey-expanded .measure-tools-primary button{min-height:42px!important;padding:8px!important;font-size:12px!important}
#ef-survey-stage.ef-survey-expanded .measure-tools-secondary{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;padding:0 0 2px;scrollbar-width:thin}
#ef-survey-stage.ef-survey-expanded .measure-tools-secondary button{min-height:34px!important;padding:7px 9px!important;font-size:10.5px!important}
#ef-survey-stage.ef-survey-expanded .measure-tools-secondary [data-action="measure-clear"]{margin-left:0!important}
@media(max-width:470px){
  #ef-survey-stage .measure-tools{padding:10px 10px 12px!important;gap:8px}
  #ef-survey-stage .measure-tools-primary{gap:7px}
  #ef-survey-stage .measure-tools-primary button{min-height:44px!important;font-size:11.5px!important;padding:8px 7px!important}
  #ef-survey-stage .measure-tools-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  #ef-survey-stage .measure-tools-secondary button{min-width:0;white-space:normal;font-size:10.5px!important;padding:7px 6px!important;min-height:36px!important}
  #ef-survey-stage .measure-tools-secondary [data-action="measure-clear"]{margin-left:0!important}
  #ef-survey-stage.ef-survey-expanded .measure-tools-secondary{display:flex;flex-wrap:nowrap;gap:6px}
  #ef-survey-stage.ef-survey-expanded .measure-tools-secondary button{min-width:max-content;white-space:nowrap}
}
@media(max-height:550px){
  #ef-survey-stage.ef-survey-expanded .measure-tools{max-height:180px;gap:5px;padding:7px!important}
  #ef-survey-stage.ef-survey-expanded .measure-tools-title{display:none}
  #ef-survey-stage.ef-survey-expanded .measure-tools-primary button{min-height:36px!important}
}
