[hidden] { display: none !important; }
body:has(#converter.map-open) { align-items: flex-start; height: auto; min-height: 100vh; box-sizing: border-box; }
#converter.map-open { max-width: 1100px; overflow: visible; }
#converter.map-open > #memo, #converter.map-open > #button { max-width: 340px; margin-left: auto; margin-right: auto; }
.attendance-map-panel { margin-top: 24px; border-top: 1px solid #dde4ec; padding-top: 24px; text-align: left; }
.map-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.map-heading-row h3 { margin: 0; font-size: 1.35rem; color: #1e293b; }
.map-subtitle { color: #64748b; font-size: .9rem; margin: 6px 0 16px; }
.map-filter { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr auto; gap: 12px; align-items: end; padding: 16px; background: #f4f7fb; border-radius: 12px; }
.map-filter label { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: .8rem; font-weight: bold; color: #475569; }
.map-filter input, .map-filter select { width: 100%; min-width: 0; box-sizing: border-box; padding: 10px 8px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #1e293b; font: inherit; font-weight: normal; }
.map-filter button { margin: 0; white-space: nowrap; min-height: 40px; }
.map-status { min-height: 1.5em; font-size: .9rem; color: #334155; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .8rem; margin-bottom: 12px; }
.map-checkin { color: #15803d; }.map-checkout { color: #c2413b; }.map-break { color: #a16207; }.map-resume { color: #2563eb; }
#attendance-map { height: 440px; width: 100%; border-radius: 10px; border: 1px solid #d6dee8; background: #e8edf2; z-index: 0; }
.map-note { color: #64748b; font-size: .75rem; line-height: 1.7; }
.map-results-wrapper { overflow: auto; max-height: 330px; border: 1px solid #e2e8f0; border-radius: 8px; }
#map-results { border-collapse: collapse; width: 100%; font-size: .8rem; white-space: nowrap; }
#map-results caption { text-align: left; font-weight: bold; padding: 12px; }
#map-results th, #map-results td { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; text-align: left; }
#map-results th { background: #f4f7fb; position: sticky; top: 0; }
.map-location-button { color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 5px; padding: 6px 10px; cursor: pointer; }
.map-location-button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.map-popup { max-height: 260px; overflow-y: auto; overflow-wrap: anywhere; }
.map-popup ul { padding-left: 16px; }.map-popup li { margin: 8px 0; }
.map-point-icon { background: transparent; border: 0; }
.map-point { position: relative; width: 36px; height: 44px; }
.map-point-shape { position: absolute; left: 3px; top: 3px; width: 28px; height: 28px; border: 3px solid white; border-radius: 50% 50% 50% 0; background: var(--pin-color, #475569); transform: rotate(-45deg); box-shadow: -2px 3px 7px #0005; }
.map-point-shape::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: white; left: 9px; top: 9px; }
.map-point-count { position: absolute; right: -8px; top: -7px; min-width: 20px; height: 20px; padding: 0 3px; box-sizing: border-box; background: #0f172a; color: white; border: 2px solid white; border-radius: 12px; font: bold 11px/16px sans-serif; text-align: center; }
.map-person-label { width: max-content; max-width: 220px; white-space: normal; text-align: center; font-weight: bold; color: #1e293b; border-color: #cbd5e1; box-shadow: 0 2px 5px #0002; }
.map-point-icon:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; border-radius: 6px; }
@media (max-width: 760px) {
  #converter.map-open { padding: 16px; }
  .map-filter { grid-template-columns: 1fr 1fr; padding: 12px; }
  .map-filter label:first-child { grid-column: 1 / -1; }
  .map-filter button { grid-column: 1 / -1; }
  #attendance-map { height: 360px; }
}
@media (max-width: 420px) { .map-filter { grid-template-columns: 1fr; } }
