/* ===========================================================================
   DATA-DROP · 60-pull.css  (OWNED BY THE PULL MODULE)
   Styles for PULL MODE: the running pull-list panel, pulled-drop highlight,
   the "what needs pulling" summary, and the temporary pull-label print sheet.
   Blueprint aesthetic: dark drawing area, crisp high-contrast UI, BIG touch
   targets for phones/tablets in the field. High-vis pull color = amber.
   =========================================================================== */

:root {
  --dd-pull: #ffb300;          /* high-vis amber = "in the pull list" */
  --dd-pull-dim: rgba(255, 179, 0, 0.18);
  --dd-pull-glow: rgba(255, 179, 0, 0.55);
}

/* --- Toolbar button active state (PULL MODE on) ---------------------------- */
.dd-tool--pull.is-active,
.dd-tool[data-tool="pull"].is-active {
  background: var(--dd-pull);
  color: #10151c;
  box-shadow: 0 0 0 2px var(--dd-pull-glow);
}

/* --- Pulled-drop highlight on the overlay --------------------------------- */
/* Applied by DDPull to the SVG group of any drop that's in the pull list.    */
.dd-pull-marked {
  filter: drop-shadow(0 0 6px var(--dd-pull-glow));
}
.dd-pull-marked .dd-drop-body,
.dd-pull-marked circle,
.dd-pull-marked rect {
  stroke: var(--dd-pull) !important;
  stroke-width: 3px !important;
}
/* A pulsing amber ring drawn behind a marked drop (DDPull adds this circle). */
.dd-pull-ring {
  fill: none;
  stroke: var(--dd-pull);
  stroke-width: 2.5;
  opacity: 0.9;
  animation: dd-pull-pulse 1.4s ease-in-out infinite;
}
@keyframes dd-pull-pulse {
  0%, 100% { opacity: 0.35; r: 16px; }
  50%      { opacity: 0.95; r: 22px; }
}

/* --- Pull-list side panel -------------------------------------------------- */
.dd-pull-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #e8eef5;
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-width: 260px;
  max-width: 420px;
}

.dd-pull-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 179, 0, 0.35);
}
.dd-pull-panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--dd-pull);
}
.dd-pull-panel__count {
  background: var(--dd-pull);
  color: #10151c;
  font-weight: 800;
  min-width: 30px;
  text-align: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 15px;
}

.dd-pull-hint {
  font-size: 13px;
  line-height: 1.4;
  color: #9fb0c0;
  background: var(--dd-pull-dim);
  border-left: 3px solid var(--dd-pull);
  padding: 8px 10px;
  border-radius: 0 6px 6px 0;
}

/* --- The running list ------------------------------------------------------ */
.dd-pull-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 42vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.dd-pull-list:empty::after {
  content: "No drops in the pull list yet — tap drops on the plan to add them.";
  display: block;
  color: #6f8091;
  font-style: italic;
  padding: 14px 4px;
  font-size: 13px;
}
.dd-pull-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  background: #182230;
  border: 1px solid #26333f;
  border-left: 4px solid var(--dd-pull);
  border-radius: 8px;
  min-height: 56px;          /* big touch target */
}
.dd-pull-item__num {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 18px;
  color: var(--dd-pull);
  min-width: 40px;
  text-align: center;
}
.dd-pull-item__body {
  flex: 1 1 auto;
  min-width: 0;
}
.dd-pull-item__label {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dd-pull-item__meta {
  font-size: 12px;
  color: #90a2b3;
  margin-top: 2px;
}
.dd-pull-item__state {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cfe0f0;
}
.dd-pull-item__remove {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: #26333f;
  color: #cbd7e2;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dd-pull-item__remove:active { background: #37475a; }

/* --- Summary: "what needs pulling" (counts by state) ---------------------- */
.dd-pull-summary {
  border-top: 1px dashed #2c3a49;
  padding-top: 12px;
}
.dd-pull-summary__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #90a2b3;
  margin-bottom: 8px;
}
.dd-pull-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 6px;
}
.dd-pull-stat {
  background: #141d29;
  border: 1px solid #26333f;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}
.dd-pull-stat__n {
  font-size: 22px;
  font-weight: 800;
  color: #e8eef5;
  line-height: 1;
}
.dd-pull-stat__k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #8598a9;
  margin-top: 4px;
}
.dd-pull-stat--needs .dd-pull-stat__n { color: #ff6b6b; }
.dd-pull-stat--ran   .dd-pull-stat__n { color: var(--dd-pull); }

/* --- Action buttons -------------------------------------------------------- */
.dd-pull-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dd-pull-btn {
  appearance: none;
  border: 1px solid #2c3a49;
  background: #1b2735;
  color: #e8eef5;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 12px;        /* big touch target */
  min-height: 52px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.dd-pull-btn:active { transform: translateY(1px); }
.dd-pull-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.dd-pull-btn--primary {
  background: var(--dd-pull);
  color: #10151c;
  border-color: var(--dd-pull);
}
.dd-pull-btn--wide { grid-column: 1 / -1; }
.dd-pull-btn--danger { color: #ffb4b4; border-color: #5a2b2b; }

/* ===========================================================================
   PRINTABLE TEMP-LABEL SHEET
   These rules are inlined into the popup print window (see 60-pull.js), so
   they are duplicated there and kept minimal. This block styles any in-app
   preview if one is ever shown inline.
   =========================================================================== */
.dd-labelsheet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.dd-templabel {
  border: 1px dashed #999;
  padding: 8px 10px;
  min-height: 0.9in;
  break-inside: avoid;
}
.dd-templabel__num {
  font-weight: 800;
  font-size: 15pt;
}
.dd-templabel__label {
  font-size: 11pt;
  font-weight: 600;
}
.dd-templabel__dest {
  font-size: 9pt;
  color: #444;
}
