/* Admin · Products & packages — page-specific only; shell, cards and pills come from
   /shared/admin.css. No tables on this page: the design uses a card grid for products and two
   panelled columns for the package builder. */

.pd-caveat { line-height: 1.6; max-width: 900px; }

/* ------------------------------- Products: card grid ------------------------------- */
.pd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.pd-card {
  background: #fff; border: 1px solid var(--adm-line); border-radius: 16px; padding: 20px;
  box-shadow: 0 2px 10px rgba(18, 38, 63, 0.04);
  display: flex; flex-direction: column; gap: 13px;
}
.pd-card-top { display: flex; align-items: flex-start; gap: 13px; }
.pd-card-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.pd-card-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pd-card-name { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 16px; color: var(--adm-ink); }
.pd-card-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--adm-muted); }
.pd-card-desc { font-size: 13.5px; line-height: 1.55; color: var(--adm-muted); margin: 0; flex: 1; }
.pd-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 13px; border-top: 1px solid #F1F4F8;
}
.pd-card-orgs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--adm-muted); }
.pd-card-orgs strong { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--adm-ink); }
.pd-card-packs { font-size: 12.5px; color: var(--adm-muted); }

/* ------------------------------- Packages ------------------------------- */
.pd-pack-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.pd-pack-side { display: flex; flex-direction: column; gap: 14px; }
.pd-pack-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.pd-pack-card { overflow: hidden; }
.pd-pack-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 18px; background: #F7F9FC; border-bottom: 1px solid var(--adm-line);
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--adm-muted);
}
.pd-pack-count { font-size: 11.5px; letter-spacing: 0; text-transform: none; }
.pd-pack-row {
  display: flex; align-items: center; gap: 13px; width: 100%;
  background: #fff; border: none; border-bottom: 1px solid var(--adm-line-soft);
  padding: 14px 18px; cursor: pointer; text-align: left; font: inherit;
}
.pd-pack-row:last-child { border-bottom: none; }
.pd-pack-row:hover { background: #FBFCFE; }
.pd-pack-row--on { background: #F1F4FA; }
.pd-pack-bar { flex: 0 0 auto; width: 4px; height: 34px; border-radius: 3px; }
.pd-pack-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pd-pack-name { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 14.5px; color: var(--adm-ink); }
.pd-pack-meta { font-size: 12px; color: var(--adm-muted); }
.pd-pack-empty { padding: 26px 18px; text-align: center; font-size: 13.5px; color: var(--adm-muted); }

/* Header panel above the builder. */
.pd-head-card { padding: 26px; }
.pd-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.pd-head-copy { min-width: 0; flex: 1; }
.pd-head-title { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-bottom: 8px; }
.pd-head-name { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.4px; color: var(--adm-ink); margin: 0; }
.pd-head-desc { font-size: 14.5px; line-height: 1.6; color: var(--adm-muted); margin: 0; max-width: 620px; }
.pd-actions { display: flex; gap: 9px; flex-wrap: wrap; }
/* "Saved" is a state, not a button — it must not look pressable. */
.pd-saved {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 13px; color: var(--adm-ok-fg);
  background: var(--adm-ok-bg); border: 1px solid var(--adm-ok-bd); border-radius: 11px; padding: 10px 15px;
}
.pd-head-stats { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--adm-line-soft); }
.pd-stat { display: flex; flex-direction: column; gap: 3px; }
.pd-stat-value { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 24px; line-height: 1; color: var(--adm-ink); }
.pd-stat-label { font-size: 12px; font-weight: 600; color: var(--adm-muted); }
.pd-standard-note {
  display: flex; align-items: flex-start; gap: 11px; margin-top: 18px;
  background: var(--adm-info-bg); border: 1px solid #D6E4FB; border-radius: 13px; padding: 14px 16px;
  font-size: 13.5px; line-height: 1.55; color: var(--adm-body);
}
.pd-standard-note svg { flex: 0 0 auto; margin-top: 1px; }

/* Two builder columns, each its own card with a tinted header. */
.pd-builder { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.pd-col { overflow: hidden; }
.pd-col-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; background: #F7F9FC; border-bottom: 1px solid var(--adm-line);
}
.pd-col-head--in { background: #F2FBF7; border-bottom-color: #CFEDE0; }
.pd-col-title { display: flex; align-items: center; gap: 9px; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 14.5px; color: var(--adm-ink); }
.pd-col-title svg { color: var(--adm-label); }
.pd-col-count { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 12.5px; color: var(--adm-muted); }
.pd-col-count--in { color: var(--adm-ok-fg); }
.pd-col-body { padding: 14px; display: flex; flex-direction: column; gap: 9px; max-height: 520px; overflow-y: auto; }

.pd-item {
  display: flex; align-items: center; gap: 12px;
  background: #FBFCFE; border: 1px solid var(--adm-line-soft); border-radius: 12px; padding: 12px 14px;
}
.pd-item-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.pd-item-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-item-name { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 14px; color: var(--adm-ink); }
.pd-item-cat { font-size: 11.5px; color: var(--adm-muted); }
.pd-item-btn {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  background: #fff; border: 1px solid var(--adm-field); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--adm-muted);
}
.pd-item-btn:hover { border-color: var(--adm-info-dot); color: var(--adm-info-fg); }
.pd-item-btn--remove:hover { border-color: #C0392B; color: #C0392B; }

.pd-col-empty { padding: 34px 12px; text-align: center; }
.pd-col-empty-title { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 15px; color: var(--adm-ink); margin-bottom: 4px; }
.pd-col-empty-sub { font-size: 13px; color: var(--adm-muted); }

.pd-modal-note { line-height: 1.55; margin: 14px 0 0; }
.pd-modal-actions { display: flex; gap: 12px; margin-top: 22px; }

@media (max-width: 1100px) {
  .pd-pack-layout { grid-template-columns: minmax(0, 1fr); }
}
