[hidden] { display: none !important; }

body[data-nav="transactions"] #naverMap {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  visibility: visible !important;
}

body[data-nav="transactions"] .transaction-map-tools {
  position:absolute;
  z-index:22;
  top:calc(104px + env(safe-area-inset-top));
  right:14px;
  display:flex;
  width:40px;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(29,58,44,.1);
  border-radius:12px;
  background:rgba(255,255,255,.96);
  box-shadow:0 5px 18px rgba(22,40,32,.14);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
body[data-nav="transactions"] .transaction-map-tool {
  display:grid;
  width:40px;
  height:40px;
  padding:0;
  place-items:center;
  border:0;
  background:transparent;
  color:#39463f;
}
body[data-nav="transactions"] .transaction-map-tool + .transaction-map-tool { border-top:1px solid rgba(29,58,44,.1); }
body[data-nav="transactions"] .transaction-map-tool svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
body[data-nav="transactions"] .transaction-map-tool svg .fill { fill:currentColor;stroke:none; }
body[data-nav="transactions"] .transaction-map-tool.active { color:#fff;background:var(--green); }
body[data-nav="transactions"] .transaction-map-tool:disabled { opacity:.42;cursor:not-allowed; }
body[data-nav="transactions"] .transaction-map.roadview-mode #naverMap { cursor:crosshair !important; }
body[data-nav="transactions"] .transaction-roadview-panel {
  position:absolute;
  z-index:70;
  inset:calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom));
  display:none;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(29,58,44,.13);
  border-radius:18px;
  background:#dce5e1;
  box-shadow:0 12px 34px rgba(16,38,28,.22);
}
body[data-nav="transactions"] .transaction-roadview-panel.show { display:flex; }
body[data-nav="transactions"] .transaction-roadview-panel header { display:flex;min-height:38px;align-items:center;justify-content:space-between;padding:0 8px 0 12px;background:rgba(255,255,255,.96);color:#315044;font-size:12px;font-weight:850; }
body[data-nav="transactions"] .transaction-roadview-panel header button { width:30px;height:30px;border:0;border-radius:9px;background:#eef4f0;color:#315044;font-size:21px;line-height:1; }
body[data-nav="transactions"] .transaction-roadview-panorama { min-height:0;flex:1;background:#cbd7d1; }
body[data-nav="transactions"] .transaction-roadview-mini-wrap { position:absolute;z-index:2;right:10px;bottom:10px;width:min(calc(100% - 20px),clamp(237px,54vw,408px));aspect-ratio:3/2;overflow:hidden;padding-top:18px;border:2px solid #fff;border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(19,41,31,.25); }
body[data-nav="transactions"] .transaction-roadview-mini-label { position:absolute;z-index:3;inset:0 0 auto;height:18px;padding:2px 6px;background:rgba(20,122,80,.92);color:#fff;font-size:9px;font-weight:800;line-height:14px; }
body[data-nav="transactions"] .transaction-roadview-mini-map { width:100%;height:100%; }
body[data-nav="transactions"] .transaction-roadview-mini-marker { display:grid;width:27px;height:27px;place-items:center;border:2px solid #fff;border-radius:50%;background:#747d79;color:#fff;box-shadow:0 2px 7px rgba(14,30,23,.32);font-size:10px;font-weight:900; }
body[data-nav="transactions"] .transaction-roadview-mini-marker.case.focused { border-color:#ffbf3f;background:var(--green);box-shadow:0 0 0 2px rgba(255,255,255,.92),0 2px 8px rgba(10,92,59,.42);transform:scale(1.08); }
body[data-nav="transactions"] .transaction-roadview-mini-marker.position { border:0;background:#fff;color:var(--green-dark);box-shadow:0 2px 9px rgba(10,92,59,.34);font-size:19px;transform:rotate(var(--heading));transform-origin:center;cursor:grab; }
body[data-nav="transactions"] .transaction-roadview-mini-marker.position:active { cursor:grabbing; }
body[data-nav="transactions"] .transaction-location-dot { width:16px;height:16px;border:3px solid #fff;border-radius:50%;background:#e5484d;box-shadow:0 0 0 2px rgba(229,72,77,.35),0 2px 6px rgba(16,24,20,.35); }

.deal-cluster-marker {
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(8, 118, 83, .94);
  color: #fff;
  box-shadow: 0 5px 16px rgba(7, 72, 48, .3);
  white-space: nowrap;
}
.deal-cluster-marker b { font-size: 16px; }
.deal-cluster-marker small { margin: 3px 0 0 2px; font-size: 8px; font-weight: 850; }

.region-bubble {
  display: flex;
  width: 76px;
  min-height: 51px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  filter: drop-shadow(0 5px 9px rgba(11, 76, 51, .2));
  white-space: nowrap;
}
.region-bubble b {
  display: grid;
  min-width: 52px;
  height: 39px;
  padding: 0 9px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 22px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.region-bubble span {
  max-width: 84px;
  margin-top: -2px;
  padding: 2px 7px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
}

body[data-nav="transactions"] .global-bottom-nav { touch-action: pan-y; }
body[data-nav="transactions"] .global-bottom-nav a {
  pointer-events: auto;
  touch-action: manipulation;
}
/* 딜체커와 동일한 레이어 관계: 지도 < 바텀시트 < 메인메뉴 */
body[data-nav="transactions"] .global-bottom-nav,
body[data-nav="transactions"] .global-nav-reveal { display:none !important; }
body[data-nav="transactions"].sheet-menu-visible .global-bottom-nav {
  display:grid !important;
  z-index:100 !important;
}
body[data-nav="transactions"].sheet-menu-visible .transaction-sheet {
  bottom:0 !important;
  z-index:40 !important;
  overflow:hidden !important;
}
body[data-nav="transactions"].sheet-menu-visible.nav-hidden .transaction-sheet { bottom:0 !important; }
body[data-nav="transactions"] .sheet-handle,
body[data-nav="transactions"] .sheet-handle:focus,
body[data-nav="transactions"] .sheet-handle:active {
  outline:none !important;
  background:transparent !important;
  box-shadow:none !important;
  -webkit-tap-highlight-color:transparent;
}

/* 딜체커의 사례 카드와 같은 정보 구조와 간격을 사용한다. */
body[data-nav="transactions"] .deal-card.case-card {
  position:relative;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 3px 12px rgba(25,58,43,.04);
  scroll-margin-top:12px;
  font-family:"Noto Sans KR","Apple SD Gothic Neo",sans-serif;
}
body[data-nav="transactions"] .deal-card.case-card.selected {
  border-color:#6eb696;
  background:#eaf7f0;
  box-shadow:0 0 0 2px rgba(20,122,80,.11);
}
body[data-nav="transactions"] .case-card-head {
  display:grid;
  grid-template-columns:20px 25px minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
}
body[data-nav="transactions"] .case-card input {
  width:20px;
  height:20px;
  margin:0;
  accent-color:var(--green);
  pointer-events:none;
}
body[data-nav="transactions"] .case-number {
  display:grid;
  width:25px;
  height:25px;
  place-items:center;
  border-radius:50%;
  color:#fff;
  background:#747d79;
  font-size:12px;
  font-weight:900;
  font-family:"Manrope","Noto Sans KR",sans-serif;
}
body[data-nav="transactions"] .case-card.selected .case-number { background:var(--green); }
body[data-nav="transactions"] .case-card.unmapped { opacity:.68; }
body[data-nav="transactions"] .case-card.unmapped .case-number { background:#929c97; }
body[data-nav="transactions"] .case-card.unmapped input { cursor:not-allowed; }
body[data-nav="transactions"] .case-address { min-width:0;cursor:pointer; }
body[data-nav="transactions"] .case-address h3 {
  display:flex;
  align-items:center;
  gap:5px;
  margin:0;
  overflow-wrap:anywhere;
  color:var(--ink);
  font-size:14px;
  font-weight:700;
  line-height:1.35;
}
body[data-nav="transactions"] .case-address h3 > span { min-width:0; }
body[data-nav="transactions"] .address-dealcheck {
  display:inline-flex;
  min-width:max-content;
  height:20px;
  padding:0 6px;
  flex:none;
  align-items:center;
  justify-content:center;
  border:1px solid #acd6c3;
  border-radius:6px;
  color:var(--green-dark);
  background:#edf8f3;
  font-size:9px;
  font-weight:850;
  line-height:1;
  text-decoration:none;
}
body[data-nav="transactions"] .case-distance { min-width:0;color:var(--muted);font-size:9px;white-space:nowrap; }
body[data-nav="transactions"] .case-card-body {
  display:block;
  margin:8px 0 0 59px;
}
body[data-nav="transactions"] .case-deal {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px;
  margin-bottom:6px;
}
body[data-nav="transactions"] .case-deal b {
  color:var(--green-dark);
  font-size:17px;
  font-family:"Manrope","Noto Sans KR",sans-serif;
  font-weight:800;
  letter-spacing:-.03em;
}
body[data-nav="transactions"] .case-deal span,
body[data-nav="transactions"] .case-deal small {
  color:var(--muted);
  font-size:11.5px;
  font-weight:600;
}
body[data-nav="transactions"] .case-deal small { margin-left:auto; }
body[data-nav="transactions"] .case-kv {
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:3px 7px;
  color:#4a5650;
  font-size:11.5px;
  line-height:1.55;
}
body[data-nav="transactions"] .case-kv > b {
  color:#6f7b76;
  font-size:11.5px;
  font-weight:600;
}
body[data-nav="transactions"] .case-kv > span {
  min-width:0;
  overflow-wrap:anywhere;
  font-weight:500;
}
body[data-nav="transactions"] .case-tag {
  display:inline-block;
  margin-right:5px;
  padding:2px 5px;
  border-radius:5px;
  font-size:10px;
  font-style:normal;
  line-height:1.25;
  white-space:nowrap;
}
body[data-nav="transactions"] .case-tag.category {
  color:#28705a;
  background:#e3f4ec;
}
body[data-nav="transactions"] .case-tag.dealing {
  color:#386baa;
  background:#e7f0ff;
}
body[data-nav="transactions"] .date-range {
  grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);
  align-items:end;
  gap:4px;
}
body[data-nav="transactions"] .date-range label {
  display:grid;
  grid-template-rows:18px 44px;
  min-width:0;
  align-items:center;
}
body[data-nav="transactions"] .date-range label > span {
  display:block;
  line-height:18px;
}
body[data-nav="transactions"] .date-range input {
  display:block;
  height:44px;
  min-height:44px;
  margin-top:0;
  padding:0 8px;
  text-align:center;
  font-size:12px;
  line-height:44px;
}
body[data-nav="transactions"] .date-range input::-webkit-date-and-time-value {
  min-height:0;
  margin:0;
  padding:0;
  text-align:center;
  line-height:44px;
}
body[data-nav="transactions"] .date-range input::-webkit-calendar-picker-indicator {
  flex:none;
  margin:0;
  padding:3px;
}
body[data-nav="transactions"] .date-range i {
  display:grid;
  height:44px;
  padding:0;
  place-items:center;
  color:#8c9993;
  font-size:20px;
}

body[data-nav="transactions"] .region-row { min-height:56px;padding:0 16px; }
body[data-nav="transactions"] .region-row b { font-size:16px;letter-spacing:-.02em; }
body[data-nav="transactions"] .region-row strong { font-size:14px; }
body[data-nav="transactions"] .region-row i { font-size:23px; }
body[data-nav="transactions"] .period-dialog form > .period-error {
  margin-top:-5px;
  color:#bd3f4c;
  font-weight:800;
}

body[data-nav="transactions"] .transaction-controls {
  align-items:center;
  gap:6px;
  margin-bottom:7px;
}
body[data-nav="transactions"] .transaction-sticky-controls {
  position:sticky;
  z-index:12;
  top:0;
  margin:0 -14px 9px;
  padding:0 14px;
  background:#fff;
  box-shadow:0 1px 0 rgba(22,82,62,.08);
}
body[data-nav="transactions"] .transaction-sticky-controls .transaction-notice {
  margin:0 -14px;
}
body[data-nav="transactions"] .control-button,
body[data-nav="transactions"] .sort-control,
body[data-nav="transactions"] .today-button {
  display:inline-flex;
  width:auto;
  min-width:0;
  height:38px;
  padding:0 10px;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid var(--line);
  border-radius:10px;
  color:var(--green-dark);
  background:#fff;
  font-size:11.5px;
  font-weight:900;
  white-space:nowrap;
}
body[data-nav="transactions"] .control-button b {
  margin:0;
  font-size:inherit;
  line-height:1;
}
body[data-nav="transactions"] .control-button svg,
body[data-nav="transactions"] .sort-control > svg,
body[data-nav="transactions"] .today-button svg {
  flex:none;
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body[data-nav="transactions"] .sort-control select {
  width:auto;
  max-width:88px;
  margin:0;
  padding:0 15px 0 0;
  color:var(--ink);
  font-size:11.5px;
  line-height:1;
}
body[data-nav="transactions"] .control-button.active,
body[data-nav="transactions"] .today-button.active {
  border-color:var(--green);
  color:#fff;
  background:var(--green);
  box-shadow:0 5px 13px rgba(8,118,83,.18);
}
@media(max-width:380px) {
  body[data-nav="transactions"] .transaction-controls { gap:5px; }
  body[data-nav="transactions"] .control-button,
  body[data-nav="transactions"] .sort-control,
  body[data-nav="transactions"] .today-button {
    padding:0 8px;
    gap:5px;
    font-size:11px;
  }
  body[data-nav="transactions"] .control-button svg,
  body[data-nav="transactions"] .sort-control > svg,
  body[data-nav="transactions"] .today-button svg {
    width:16px;
    height:16px;
  }
}
body[data-nav="transactions"] .empty-card-action {
  display:inline-flex;
  min-height:38px;
  margin-top:13px;
  padding:0 15px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(8,118,83,.24);
  border-radius:10px;
  color:var(--green-dark);
  background:var(--green-soft);
  font-size:11px;
  font-weight:900;
}

/* 지도 위에서도 상위 지역 이동임을 바로 알아볼 수 있는 뒤로가기 버튼 */
body[data-nav="transactions"] .region-back {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:0 13px 0 6px;
  border:1px solid rgba(8,118,83,.2);
  border-radius:15px;
  color:var(--green-dark);
  background:rgba(255,255,255,.98);
  box-shadow:0 8px 22px rgba(17,62,43,.2);
  font-size:13px;
  font-weight:900;
  line-height:1;
  letter-spacing:-.02em;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  transition:transform .16s ease,box-shadow .16s ease;
}
body[data-nav="transactions"] .region-back-icon {
  display:grid;
  width:25px;
  height:25px;
  flex:0 0 25px;
  place-items:center;
  border-radius:8px;
  color:#fff;
  background:var(--green);
  box-shadow:0 3px 8px rgba(8,118,83,.25);
}
body[data-nav="transactions"] .region-back-icon svg {
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
@media (hover:hover) and (pointer:fine) {
  body[data-nav="transactions"] .region-back:hover {
    transform:translateY(-1px);
    box-shadow:0 10px 25px rgba(17,62,43,.24);
  }
}
body[data-nav="transactions"] .region-back:active {
  transform:scale(.98);
}
body[data-nav="transactions"] .region-back:focus-visible {
  outline:3px solid rgba(8,118,83,.28);
  outline-offset:2px;
}

body[data-nav="transactions"] .transaction-notice {
  font-size:clamp(8.5px,2.45vw,10px);
  letter-spacing:-.03em;
  white-space:nowrap;
}
.location-display-note{margin:16px 0 4px;padding:0 2px;color:#78847f;font-size:11px;line-height:1.45;text-align:center;word-break:keep-all}
