/* Saha görünümü: sabit araçlar, kaydırılabilir klasör ağacı ve harita üzerinde kayıt işlemleri. */
:root{--gw:450px;--field-width:min(var(--gw),calc(100vw - 14px));--ink:#2c4051;--field-edge:#bad0df;--field-bg:#f2f6f9;--field-gap:6px}
#grpPanel{width:var(--field-width);left:6px;top:6px;bottom:6px;background:white;color:#163145;border:1px solid #abbcc6;border-radius:10px;box-shadow:0 4px 16px #142b413b;color-scheme:light}
#grpPanel .gh{background:var(--ink);gap:8px;min-height:70px;border-radius:9px 9px 0 0;padding:10px 43px 10px 14px}
.panelLogo{width:30px;height:30px;border-radius:7px}
#grpPanel .gh strong{font:700 17px/1.2 system-ui;white-space:nowrap}
#grpPanel .gh small{color:#d3e0e8;font-size:11px;white-space:nowrap}
#grpClose{margin-left:auto;font:300 30px/1 system-ui;padding:0;flex:none}
#grpPanel .gtab{top:50%;width:12px;height:34px;right:-9px;margin:0;background:#e3ebf2;border:1px solid #9db4c7;color:#44637d;line-height:1;padding:0;font-size:14px}
.fieldTools{background:#f7f9fb;padding:10px;display:grid;gap:7px;border-bottom:1px solid #b9ccda}
.fieldPrimary,.fieldSecondary{display:grid;gap:6px}
.fieldPrimary{grid-template-columns:repeat(5,minmax(0,1fr))}
.fieldSecondary{grid-template-columns:repeat(2,minmax(0,.65fr)) repeat(3,minmax(0,1fr))}
.fieldTools button,.fieldTools button.tb{padding:0;min-width:0;min-height:42px;background:var(--ink);color:white;border:0;border-radius:8px;display:grid;place-items:center;box-shadow:0 2px 4px #162b4533;font-size:19px}
.fieldTools button:disabled{opacity:.52;cursor:default}
.fieldTools button:enabled:hover,.fieldTools button[aria-expanded="true"]{background:#405e76}
.fieldStat{min-width:0;display:grid;align-content:center;justify-items:center;background:#edf3f6;border:1px solid #d1dfe8;border-radius:7px;color:#19384b;font:650 11px/1.25 system-ui}
.fieldStat b{font-size:16px;font-variant-numeric:tabular-nums}
#grpBody{padding:0;min-height:0;overflow:auto;scrollbar-gutter:stable;background:white;border-radius:0 0 10px 10px}
.fieldLayer{margin:0}
.layerHead{display:flex;align-items:center;gap:4px;padding:0 9px 0 0;color:white;border-bottom:1px solid #b8cad4}
.layerHead.teal{background:#1e8978}.layerHead.purple{background:#8745a8}.layerHead.blue{background:#36556f}
#grpPanel .layerHead .sec{flex:1;min-width:0;background:none;margin:0;padding:10px 6px 10px 12px;min-height:51px;gap:8px;color:inherit;font:650 14px/1.2 system-ui}
.disclosure{font-size:10px;width:9px;text-align:center}
#grpPanel .sec .bd{white-space:nowrap;color:#29475d;padding:4px 8px;font:650 11px/1.2 system-ui}
.layerQuick,.actionTrigger{border:1px solid #c4d4df;border-radius:6px;background:#f7fafc;color:#24465d;min-width:34px;min-height:29px;line-height:1}
.layerQuick:disabled{opacity:.56}
.secb{padding:6px 8px 7px 10px;background:var(--field-bg);border-left:2px solid #cadbe6}
.layerActions{padding:0 0 3px;justify-content:flex-end;gap:4px}
.layerActions button{padding:3px 8px;font-size:11px;border-color:#c4d2dc;background:#fff;color:#6b3b39}
#grpPanel .gi{margin:3px 0;background:#dceaf5;border:1px solid #abc4d8;border-radius:6px}
#grpPanel .gr{gap:5px;padding:4px}
#grpPanel .gr input,#grpPanel .pxr input{width:17px;height:17px;margin:0 2px;accent-color:#285571;flex:none}
.gi .gn{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.gi .gb{font-size:10px;padding:3px 6px;color:#314d61;background:#f4f9fc}
.gi .gc{border-left:1px dashed #91b3ce;margin:0 7px 5px 15px;padding-left:10px}
.gi .gc .pr{background:white;border-bottom:1px solid #d5e2ea;padding:4px 6px}
#grpPanel .note{color:#536a79}
#grpPanel .pxbar button{color:#284859;background:#fff;border-color:#becfdb}
#grpPanel .pxr{background:#e1edf6;border-radius:6px;border:1px solid #b1c8d8;margin-top:3px;padding:4px}
#grpPanel .pxr.chosen{background:#fff1c5}
#grpPanel .pxn{color:#264254;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#grpPanel .actionTrigger{font:bold 18px/1 system-ui;min-width:30px;min-height:27px}
#grpPanel .actionTrigger[aria-expanded=true]{background:#355773;color:white}
#grpSearch select,#grpSearch input{background:white;color:#223e50}
#grpSearch{max-height:40%;overflow:auto}
#recordTools{position:fixed;z-index:2620;max-width:calc(100vw - 12px);background:#f7fafc;color:#172e40;border:1px solid #8fa7bb;border-radius:9px;padding:5px;box-shadow:0 4px 16px #142b4150}
#recordToolsTitle{background:#344e63;color:white;border-radius:5px;padding:4px 8px;font:650 13px/1.4 system-ui;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recordToolsRow{display:flex;gap:5px;padding-top:6px;overflow:auto}
.recordAction{flex:0 0 39px;min-height:38px;padding:0;border:0;border-radius:8px;color:#fff;font:bold 19px/1 system-ui;box-shadow:0 2px 4px #29445c32}
.recordAction:disabled{opacity:.42}
.recordAction.map{background:#1874b6}.recordAction.photos{background:#b95707}.recordAction.detail{background:#237344}.recordAction.edit{background:#8549a3}.recordAction.scene{background:#11746d}.recordAction.delete{background:#b93339}.recordAction.close{background:#566e80}
body:not(:has(#main.scene3d)) #top{position:absolute;top:17px;left:12px;right:auto;max-width:calc(100vw - 20px);padding:0;background:none;border:none;pointer-events:none}
body:not(:has(#main.scene3d)) #top .brand,body:not(:has(#main.scene3d)) #top .fmMark{display:none}
body:has(#main.panelOpen):not(:has(#main.scene3d)) #top{left:calc(var(--field-width) - 24px);max-width:calc(100vw - var(--field-width) + 20px)}
#top .menus{pointer-events:auto;padding:2px;justify-content:flex-start;align-items:center;gap:5px;overscroll-behavior-x:contain}
#top .menus .tb{min-width:40px;min-height:42px;flex:none;display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:8px;border:1px solid #b9c9d3;background:#fff;color:#244255;box-shadow:0 2px 6px #21384935;font-size:12px}
#top .menus #mGroups{background:var(--ink);color:white;font-size:20px;border-color:#435d70;min-width:42px}
#top .menus .methodGroup{padding:0}
body:not(:has(#main.scene3d)) #main .leaflet-top{top:64px}
body:not(:has(#main.scene3d)) #main.panelOpen .leaflet-top.leaflet-left{transform:translateX(calc(var(--field-width) + 5px))}
@media(max-width:680px){
 #top .menus>.tb:not(#mGroups)>span,#top #mMethodTxt{display:none}
 #top .menus>.tb:not(#mGroups),#top #mMethod{min-width:39px}
 #top .menus svg.i{width:19px;height:19px}
}
@media(max-width:535px){
 body:has(#main.panelOpen):not(:has(#main.scene3d)) #top{left:auto;right:6px;max-width:52px}
 body:has(#main.panelOpen) #top .menus>:not(#mGroups){display:none}
 #grpPanel .gh{padding-right:49px}
 .fieldStat{font-size:10px}
}
@media(max-width:350px){
 #grpPanel .gh small{display:none}
 #grpPanel .layerHead .sec{gap:4px;font-size:12px}
 .fieldTools{padding:7px}
}

#grpDeletion{padding:5px 9px 7px;overflow:auto;max-height:36%;border-bottom:1px solid #c5d5df;background:#edf3f7}
#grpDeletion>div{display:flex;align-items:center;justify-content:space-between;gap:3px;flex-wrap:wrap;padding:3px 0}
#grpDeletion strong{font-size:12px}
#grpDeletion .layerActions{padding:0}
@media(max-width:680px){#top #grpClean .cleanIcon{display:inline}}
.treeFolderHead{display:flex;align-items:center;gap:4px;padding:3px 5px;background:#d9e8f3;border:1px solid #aec6d9;border-radius:6px;margin:3px 0}
.folderName{flex:1;min-width:0;border:0;background:none;padding:4px;color:#183b55;text-align:left;font-weight:650;overflow-wrap:anywhere}
.treeBranch{margin-left:7px;padding-left:7px;border-left:1px dashed #9db6c8}
.treeBranch .treeBranch .treeBranch .treeBranch{margin-left:0;padding-left:2px}
.recordAction.folder{background:#6c552a}
#folderPicker{width:min(330px,94vw);padding:16px;border:1px solid #9bb1c2;border-radius:10px;color:#213a4c;background:#fff}
#folderPicker::backdrop{background:#10203055}
#folderPicker form,#folderPicker label{display:grid;gap:8px}
#folderPicker select{width:100%;min-height:36px;background:white;color:#213a4c}
#folderPicker form>div{display:flex;justify-content:flex-end;gap:6px}
#folderPicker button{border:1px solid #bdcfdb;border-radius:6px;background:white;color:#254158;padding:5px 10px}
#folderPicker button[type=submit]{background:#35546d;color:white}

.fieldTools .fieldStat{background:#edf3f6;color:#19384b;border:1px solid #beccd8;font:650 11px/1.25 system-ui;align-content:center;box-shadow:none}
.fieldTools .fieldStat:enabled:hover,.fieldTools .fieldStat[aria-pressed=true]{background:#2f627a;color:white}
.ruler svg{display:block;width:20px;height:20px;margin:auto}
.ruler[aria-pressed=false]{opacity:.7}
.filterResultHead,.filterRecord{display:flex;align-items:center;gap:6px;padding:6px;border-bottom:1px solid #cddae2}
.filterResultHead{background:#e3edf2;flex-wrap:wrap;position:sticky;top:0}
.filterResultHead button,.filterRecord button{background:white;color:#244255;border:1px solid #bbcbd5;border-radius:5px;padding:5px 7px}
.filterRecord button{flex:1;text-align:left;overflow-wrap:anywhere}

#captureStudio{width:min(560px,94vw);max-height:88vh;overflow:auto;border:0;border-radius:14px;padding:1rem;color:#173d39}
#captureStudio::backdrop{background:#18332f88}#captureStudio header{display:flex;justify-content:space-between;align-items:center}
#captureStudio fieldset{border:0;margin:0;padding:0}#captureStudio label{display:block;margin:.55rem 0}
#captureStudio p{line-height:1.45}#capEdit,#capPreview{display:block;max-width:100%;max-height:44vh;margin:.5rem auto;background:#e9eee9}#capEdit{cursor:crosshair}#captureStudio [hidden]{display:none}

#top .methodGroup [hidden],#captureStudio [hidden]{display:none!important}
#captureStudio button{min-height:36px}#captureStudio header{position:sticky;top:-1rem;z-index:1;background:white;padding:.5rem 0}
#capMsg{overflow-wrap:anywhere}#captureStudio:modal{max-height:90dvh;overflow-y:auto;overscroll-behavior:contain}

.fieldPrimary{grid-template-columns:repeat(4,minmax(0,1fr))}
.field3d{display:none}
@media(max-width:980px){
  .field3d{display:grid;grid-template-columns:1fr 1fr;gap:6px}
  .field3d button{font:600 13px/1.25 system-ui;min-height:38px}
}
#captureStudio:modal{box-sizing:border-box;width:min(600px,96vw);max-height:92dvh;padding:0;color:var(--fg);background:var(--panel);border:1px solid var(--line)}
#captureStudio header{top:0;padding:12px 16px;gap:10px;background:var(--panel);border-bottom:1px solid var(--line)}
#captureStudio #capForm{min-width:0;padding:0 16px 12px}
.capSteps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:12px 0}
.capSteps button{background:transparent;color:var(--fg);border:0;border-bottom:3px solid var(--line);cursor:pointer}
.capSteps button[aria-current=step]{border-color:var(--ok);font-weight:700}
#captureStudio button:disabled{opacity:.48;cursor:default}
.capPage{display:grid;gap:10px}
#captureStudio .capPage h3,#captureStudio .capPage p{margin:0}
#captureStudio label{display:grid;gap:4px;font-size:13px;margin:0}
#captureStudio details label{margin:8px 0}
#captureStudio label:has(>input[type=checkbox]){display:flex;align-items:center}
#captureStudio input:not([type=checkbox]),#captureStudio select{box-sizing:border-box;width:100%;min-width:0;min-height:38px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--fg);padding:5px;font:inherit}
#captureStudio .capFile{padding:14px;background:var(--bg);border:1px dashed var(--ok);border-radius:8px;font-weight:650}
#captureStudio .capFile input{border:0}
.capGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr));gap:9px}
#capSizes{display:contents}
.capRow{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.capSection,.capPage details{border-top:1px solid var(--line);padding-top:10px}
.capSection h3{padding-bottom:7px;font-size:14px}
#captureStudio summary{cursor:pointer;padding:5px 0;font-weight:650}
#captureStudio .capPrimary{background:#14675f;border:1px solid #14675f;color:white}
#captureStudio .capRotate{display:flex;align-items:center;gap:8px;white-space:nowrap}
#captureStudio #capEdit,#captureStudio #capPreview{max-width:100%;max-height:30dvh;width:auto;justify-self:center;margin:0}
#captureStudio #capPreview{width:min(100%,400px);height:auto;max-height:none;border-radius:8px}
#captureStudio #capEdit[data-auto=true]{cursor:default}
#captureStudio #capProgress{width:100%;margin-top:10px}
#capMsg{line-height:1.35;font-size:13px;margin:10px 0 0}
#capMsg:empty{display:none}
#captureStudio :focus-visible{outline:2px solid #c77d23;outline-offset:2px}
#sceneMenu .sceneQuick{display:flex;align-items:center;gap:8px;padding:6px 8px}
.sceneQuick label{flex:1;min-width:0}
.sceneQuick .sceneFieldName{display:none}
.sceneQuick select{width:100%;min-height:34px;padding:3px;color:var(--fg);background:var(--bg);border:1px solid var(--line);border-radius:6px}
#sceneMenu .sceneQuick [data-tool=play]{min-height:34px;padding-inline:10px;color:white;background:#14675f}
.sceneCategories{display:flex;gap:4px;padding:7px 0}
#sceneSettings .sceneCategories button{flex:1}
#sceneSettings .sceneCategories [aria-pressed=true]{background:#14675f;color:white}
#sceneSettings [hidden]{display:none!important}
#capCloud{margin-top:12px}
#sceneMenu .sceneQuick label .sceneFieldName{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:680px){#top .menus>#mDrone>span{display:inline}#top .menus>#mDrone svg{display:none}}

#capPickNotice{position:absolute;z-index:2700;bottom:24px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:max-content;max-width:95%;border:1px solid var(--line);padding:8px 12px;background:var(--panel);color:var(--fg);border-radius:8px;box-shadow:0 2px 8px #0003}
