/*
 * Qardora's WhatsApp action is a single table-control primitive. Individual
 * modules render their rows independently, so this file is deliberately
 * loaded after page CSS and owns the action's footprint, baseline and states.
 */
.data-table-wrap [data-whatsapp-share],
.data-table-wrap .qardora-table-whatsapp,
.data-table-wrap .qardora-whatsapp-share,
.data-panel [data-whatsapp-share] {
  box-sizing: border-box !important;
  display: inline-grid !important;
  flex: 0 0 36px !important;
  align-self: center !important;
  place-items: center !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #25d366 !important;
  border-radius: 9px !important;
  appearance: none !important;
  background: #25d366 !important;
  color: #fff !important;
  cursor: pointer !important;
  font-size: 0 !important;
  line-height: 0 !important;
  vertical-align: middle !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease !important;
}

.data-table-wrap [data-whatsapp-share] svg,
.data-table-wrap .qardora-table-whatsapp svg,
.data-table-wrap .qardora-whatsapp-share svg,
.data-panel [data-whatsapp-share] svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
.data-table-wrap [data-whatsapp-share] .qardora-whatsapp-mark,
.data-table-wrap .qardora-table-whatsapp .qardora-whatsapp-mark,
.data-table-wrap .qardora-whatsapp-share .qardora-whatsapp-mark,
.data-panel [data-whatsapp-share] .qardora-whatsapp-mark {
  fill: currentColor !important;
  stroke: none !important;
}

.data-table-wrap [data-whatsapp-share]:hover,
.data-table-wrap .qardora-table-whatsapp:hover,
.data-table-wrap .qardora-whatsapp-share:hover,
.data-panel [data-whatsapp-share]:hover {
  border-color: #128c7e !important;
  background: #128c7e !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}
.data-table-wrap [data-whatsapp-share]:focus-visible,
.data-table-wrap .qardora-table-whatsapp:focus-visible,
.data-table-wrap .qardora-whatsapp-share:focus-visible,
.data-panel [data-whatsapp-share]:focus-visible {
  outline: 2px solid #087a3d !important;
  outline-offset: 2px !important;
}

/* Action containers keep every control discoverable without ever invading an
 * adjacent data cell.  A table reserves a real action column; if a route adds
 * more controls than that column can show, the controls wrap inside it rather
 * than overflowing over status, dates, or identity data. */
.data-table-wrap .table-actions,
.data-table-wrap div.row-actions,
.data-table-wrap .event-row-actions,
.data-table-wrap .survey-row-actions,
.data-table-wrap .card-table-icons {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  min-height: 36px !important;
  min-width: 0 !important;
  white-space: normal !important;
}

.data-table-wrap .table-actions > *,
.data-table-wrap div.row-actions > *,
.data-table-wrap .event-row-actions > *,
.data-table-wrap .survey-row-actions > *,
.data-table-wrap .card-table-icons > * { flex: 0 0 auto; }

.data-table-wrap td.row-actions,
.data-table-wrap td:has(> .table-actions),
.data-table-wrap td:has(> .event-row-actions),
.data-table-wrap td:has(> .survey-row-actions),
.data-table-wrap td:has(> .card-table-icons) {
  vertical-align: middle !important;
  overflow: visible !important;
  white-space: normal !important;
}

/* Some legacy tables place their controls directly in the action <td>.
 * Keep that element a table cell; changing it to flex corrupts the column
 * geometry and is the direct cause of cells overlapping each other. */
.data-table-wrap td.row-actions {
  display: table-cell !important;
  min-width: 0 !important;
}
.data-table-wrap td.row-actions > .icon-action,
.data-table-wrap td.row-actions > .calendar-action,
.data-table-wrap td.row-actions > .qardora-whatsapp-share {
  display: inline-grid;
  margin: 3px 2px;
  vertical-align: middle;
}

/* Public sharing is not a table action: it is a compact utility in the
 * public page header, with the same recognisable mark but its own scale. */
.qardora-public-share {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid #25d366;
  background: #25d366;
  color: #fff;
  cursor: pointer;
  line-height: 0;
  box-shadow: 0 8px 22px rgba(11, 37, 26, .10);
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.qardora-public-share svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qardora-public-share .qardora-whatsapp-mark { fill: currentColor; stroke: none; }
.qardora-public-share:hover,
.qardora-public-share:focus-visible {
  border-color: #128c7e;
  background: #128c7e;
  color: #fff;
  transform: translateY(-1px);
}
.qardora-public-share:focus-visible { outline: 2px solid #087a3d; outline-offset: 2px; }
.directory-actions .qardora-public-share, .catalogue-actions .qardora-public-share, .catalogue-topbar > .qardora-public-share { width: 40px; height: 40px; border-radius: 12px; }
.catalogue-topbar > .qardora-public-share { margin-left: auto; }
body.public-event > .qardora-public-share, body.public-survey > .qardora-public-share, body:has(#public-booking-form) > .qardora-public-share { position: fixed; z-index: 5; top: 18px; right: 84px; width: 48px; height: 48px; border-radius: 13px; }
.redirect-progress ~ .qardora-public-share { margin-top: 14px; }
@media (max-width: 620px) { body.public-event > .qardora-public-share, body.public-survey > .qardora-public-share, body:has(#public-booking-form) > .qardora-public-share { top: 12px; right: 72px; width: 42px; height: 42px; } .catalogue-topbar > .qardora-public-share { margin-left: 0; } }
