/* TaTasque - the Map's Plans card host (overlay-plancard.js). Copyright Rapid Surveys Pty Ltd. The card itself is the plan-viewer module's (.tpv-); this only places it over the map. Own prefix .tpc-. */
.tpc-panel { position:absolute; left:56px; top:56px; z-index:1100; width:min(380px, calc(100% - 72px)); max-height:calc(100% - 140px); overflow:auto; box-sizing:border-box; }
.tpc-panel[hidden] { display:none; }
.tpc-panel .tpc-card { margin:0; box-shadow:0 4px 16px rgba(20,28,40,.18); }
.tpc-panel .tpv-head { flex-wrap:nowrap; } .tpc-panel .tpv-head { gap:8px; }
.tpc-x { margin-left:auto; flex:none; width:44px; min-width:44px; height:44px; padding:0; border:1px solid var(--line, #d1d5db); border-radius:10px; background:var(--card, #fff); color:var(--ink, #111); font:inherit; cursor:pointer; }
.tpc-note:empty { display:none; } .tpc-note { margin:6px 0 0; flex:1 0 100%; }
.tpc-panel .tpv-tools .tpv-btn { flex:1 1 200px; text-align:left; }
@media (max-width: 767px) {
  /* a floating sheet that stops ABOVE the round + (fixed, bottom right): nothing in it can sit under that button */
  .tpc-panel { left:8px; right:8px; top:auto; bottom:84px; width:auto; max-height:min(66%, 520px); border-radius:14px; z-index:1300; background:var(--card, #fff); box-shadow:0 4px 16px rgba(20,28,40,.25); }
  .tpc-panel .tpc-card { border-radius:14px; box-shadow:none; }
  .tpc-panel { transition:transform .25s ease; }
  .tpc-panel.tpc-away { transform:translateY(100vh); pointer-events:none; }   /* slid down out of the way for a moment (Plan view / Sheet borders) */
  @media (prefers-reduced-motion: reduce) { .tpc-panel { transition:none; } .tpc-panel.tpc-away { visibility:hidden; } }
}
