/* ============================================================
   Veto Monitoring Portal – Stylesheet
   ============================================================ */

/* Reset inside portal */
#vm-portal *, #vm-portal *::before, #vm-portal *::after {
  box-sizing: border-box;
}

/* ─── Dashicons sizing inside portal ────────────────────── */
#vm-portal .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  line-height: 1;
  position: relative;
  top: -1px;
}
#vm-portal .vm-logo-icon .dashicons {
  font-size: 52px;
  width: 52px;
  height: 52px;
  color: #2d5a3d;
}
#vm-portal .vm-topbar .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
  color: #a8d5a2;
}
#vm-portal .vm-nav-tab .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
}
#vm-portal h2 .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
  color: #2d5a3d;
}
#vm-portal .vm-btn .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  top: 0;
}
#vm-portal .vm-status-badge .dashicons,
#vm-portal .vm-report-sig .dashicons {
  font-size: 13px;
  width: 13px;
  height: 13px;
}
#vm-portal {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: #1a1a2e;
  line-height: 1.5;
  min-height: 100vh;
  background: #f0f4f8;
}

/* ─── Login ─────────────────────────────────────────────── */
#vm-screen-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  padding: 24px;
  background: linear-gradient(135deg, #1a3c2e 0%, #2d5a3d 60%, #1a4a8a 100%);
}
.vm-login-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.vm-logo {
  text-align: center;
  margin-bottom: 28px;
}
.vm-logo-icon {
  line-height: 1;
  margin-bottom: 8px;
}
.vm-logo h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #1a3c2e;
}
.vm-logo p {
  font-size: 13px;
  color: #666;
  margin: 0;
}
/* .vm-login-footer defined in About / contact section below */

/* ─── Top Bar ───────────────────────────────────────────── */
.vm-topbar {
  background: #1a3c2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.vm-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vm-topbar-paw {
  font-size: 28px !important;
  width: 28px !important;
  height: 28px !important;
  color: #7ecfa0;
  flex-shrink: 0;
}
.vm-topbar-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.vm-topbar-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: .2px;
}
.vm-topbar-meta {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  letter-spacing: .1px;
}
.vm-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vm-user-name {
  font-weight: 600;
  font-size: 13px;
}
.vm-role-badge {
  background: rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ─── Nav ───────────────────────────────────────────────── */
.vm-nav {
  background: #2d5a3d;
  display: flex;
  gap: 4px;
  padding: 0 20px;
  overflow-x: auto;
}
.vm-nav-tab {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all .2s;
}
.vm-nav-tab:hover  { color: #fff; background: rgba(255,255,255,.08); }
.vm-nav-tab.active { color: #fff; border-bottom-color: #a8d5a2; font-weight: 700; }

/* ─── Content / Panels ──────────────────────────────────── */
.vm-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}
.vm-panel {
  display: none;
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.vm-panel.vm-active { display: block; }
.vm-panel-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #1a3c2e;
}
.vm-panel-header p {
  color: #666;
  margin: 0 0 20px;
}

/* ─── Forms ─────────────────────────────────────────────── */
.vm-form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.vm-form-row .vm-field { flex: 1; min-width: 180px; }
.vm-form-row .vm-field.vm-field-sm { flex: 0 0 100px; }
.vm-form-row .vm-field.vm-field-date { flex: 0 0 220px; }
.vm-field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}
.vm-field label {
  font-size: 12px;
  font-weight: 600;
  color: #444;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.vm-field .req { color: #e53e3e; }
.vm-field input,
.vm-field select,
.vm-field textarea {
  border: 1.5px solid #d1d9e0;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 13px;
  color: #1a1a2e;
  background: #fff;
  width: 100%;
  transition: border-color .2s;
  font-family: inherit;
}
.vm-field input:focus,
.vm-field select:focus,
.vm-field textarea:focus {
  outline: none;
  border-color: #2d5a3d;
  box-shadow: 0 0 0 3px rgba(45,90,61,.12);
}
.vm-field input:disabled,
.vm-field select:disabled { background: #f5f5f5; color: #999; cursor: not-allowed; }
.vm-field textarea { resize: vertical; }

/* ─── Buttons ───────────────────────────────────────────── */
.vm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all .18s;
  font-family: inherit;
  white-space: nowrap;
}
.vm-btn-primary   { background: #2d5a3d; color: #fff; }
.vm-btn-primary:hover { background: #1a3c2e; }
.vm-btn-success   { background: #0f5132; color: #fff; }
.vm-btn-success:hover { background: #0a3d24; }
.vm-btn-danger    { background: #c53030; color: #fff; }
.vm-btn-danger:hover { background: #9b2c2c; }
.vm-btn-outline   { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.vm-btn-outline:hover { background: rgba(255,255,255,.12); }
.vm-btn-ghost     { background: #f0f4f8; color: #555; border-color: #d1d9e0; }
.vm-btn-ghost:hover { background: #e2e8f0; }
.vm-btn-full      { width: 100%; justify-content: center; }
.vm-btn-sm        { padding: 7px 14px; font-size: 12px; }

/* ─── Alerts ────────────────────────────────────────────── */
.vm-alert {
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 13px;
  margin-bottom: 14px;
}
.vm-alert-error   { background: #fff5f5; border: 1px solid #fed7d7; color: #c53030; }
.vm-alert-success { background: #f0fff4; border: 1px solid #c6f6d5; color: #276749; }
.vm-alert-info    { background: #ebf8ff; border: 1px solid #bee3f8; color: #2c5282; }

/* ─── Report cards ──────────────────────────────────────── */
.vm-reports-list { margin-top: 12px; }
.vm-report-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: #fff;
  transition: box-shadow .2s;
}
.vm-report-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.vm-report-card.acknowledged { border-left: 4px solid #38a169; }
.vm-report-card.pending      { border-left: 4px solid #d69e2e; }
.vm-report-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.vm-report-head-left { flex: 1; }
.vm-report-head-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vm-report-title {
  font-weight: 700;
  font-size: 15px;
  color: #1a3c2e;
  margin-bottom: 2px;
}
.vm-report-path {
  font-size: 14px;
  font-weight: 600;
  color: #2d5a3d;
  margin: 3px 0 2px;
}
.vm-report-path strong {
  color: #1a3c2e;
}
.vm-report-meta {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}
.vm-event-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.vm-event-death         { background: #fff5f5; color: #c53030; }
.vm-event-birth         { background: #f0fff4; color: #276749; }
.vm-event-transfer      { background: #ebf8ff; color: #2c5282; }
.vm-event-movement      { background: #fffbeb; color: #92400e; }
.vm-event-enrichment    { background: #f5f0ff; color: #553c9a; }
.vm-event-pest_sighting { background: #fff0f0; color: #9b2335; }
.vm-event-remark        { background: #f7f9fb; color: #4a5568; }

.vm-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.vm-status-pending      { background: #fffbeb; color: #92400e; }
.vm-status-acknowledged { background: #f0fff4; color: #276749; }

.vm-report-body {
  font-size: 13px;
  color: #444;
  margin-bottom: 8px;
}
.vm-report-body strong { color: #1a1a2e; }
.vm-report-info-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  background: #f7f9fb;
  border-radius: 6px;
  padding: 7px 12px;
  margin-bottom: 8px;
  font-size: 13px;
}
.vm-meta-sep { color: #ccc; }
.vm-report-body p { margin: 4px 0; }
.vm-report-sig {
  font-size: 12px;
  color: #276749;
  font-style: italic;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #c6f6d5;
}

/* ─── Filters bar ───────────────────────────────────────── */
.vm-filters {
  background: #f7f9fb;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 16px;
}
.vm-filters .vm-field { margin-bottom: 0; flex: 1; min-width: 130px; }
.vm-filter-actions { display: flex; gap: 8px; padding-bottom: 0; align-items: flex-end; }

/* ─── Tables ────────────────────────────────────────────── */
.vm-table-wrap { overflow-x: auto; }
.vm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.vm-table th {
  background: #1a3c2e;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.vm-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}
.vm-table tr:last-child td { border-bottom: none; }
.vm-table tr:hover td { background: #f7f9fb; }
.vm-table .vm-actions { display: flex; gap: 6px; }

/* ─── Staff zone assignment ─────────────────────────────── */
.vm-staff-zones-wrap { margin-top: 8px; margin-bottom: 16px; }
.vm-staff-zones-label { font-size: 12px; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: .4px; display: block; margin-bottom: 8px; }
.vm-staff-zones-grid { display: flex; flex-wrap: wrap; gap: 12px; border: 1.5px solid #e2e8f0; border-radius: 7px; padding: 12px; background: #f7f9fb; max-height: 220px; overflow-y: auto; }
.vm-zones-group { min-width: 140px; }
.vm-zones-group-title { font-size: 11px; font-weight: 700; color: #2d5a3d; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.vm-zone-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #333; cursor: pointer; padding: 2px 0; }
.vm-zone-check input[type="checkbox"] { cursor: pointer; accent-color: #2d5a3d; }
.vm-zone-tag { background: #ebf8ff; color: #2c5282; font-size: 11px; font-weight: 600; border-radius: 8px; padding: 1px 7px; }

/* ─── Settings sub-tabs ─────────────────────────────────── */
.vm-settings-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
}
.vm-stab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: inherit;
  transition: color .2s;
}
.vm-stab:hover { color: #2d5a3d; }
.vm-stab.vm-stab-active { color: #2d5a3d; border-bottom-color: #2d5a3d; }
.vm-stab-panel { display: none; }
.vm-stab-panel.vm-stab-panel-active { display: block; }

/* ─── Modal ─────────────────────────────────────────────── */
/* Always display:flex so jQuery .hide() (display:none) cannot block it.
   Visibility is toggled by the .vm-modal-open class on #vm-portal instead. */
.vm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  visibility: hidden;
  pointer-events: none;
}
#vm-portal.vm-modal-open .vm-modal-overlay {
  visibility: visible;
  pointer-events: auto;
}
.vm-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.vm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: #fff;
}
.vm-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a3c2e;
}
.vm-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #888;
  padding: 0;
  line-height: 1;
}
.vm-modal-close:hover { color: #333; }
.vm-modal-body {
  padding: 20px 24px;
}
.vm-modal-footer {
  padding: 14px 24px 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid #e2e8f0;
}

/* ─── Misc ──────────────────────────────────────────────── */
.vm-loading {
  text-align: center;
  padding: 32px;
  color: #888;
  font-size: 14px;
}
.vm-empty {
  text-align: center;
  padding: 32px;
  color: #aaa;
  font-size: 14px;
}
.vm-screen { width: 100%; }

/* ─── Login contact footer ──────────────────────────────── */
.vm-login-footer {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  margin-top: 20px;
  line-height: 1.8;
}
.vm-login-contact { display: block; margin-top: 6px; font-size: 11px; color: #bbb; }
.vm-login-contact strong { color: #888; }
.vm-login-contact a { color: #2d5a3d; text-decoration: none; }
.vm-login-contact a:hover { text-decoration: underline; }

/* ─── About panel ───────────────────────────────────────── */
#vm-portal .vm-about-wrap { display: flex; flex-direction: column; gap: 24px; }

#vm-portal .vm-about-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}
#vm-portal .vm-about-card {
  border-radius: 10px;
  padding: 24px 28px;
  flex: 1;
  min-width: 260px;
  box-sizing: border-box;
}
/* reset WP theme typography inside cards */
#vm-portal .vm-about-card p,
#vm-portal .vm-about-card h3,
#vm-portal .vm-about-card ul,
#vm-portal .vm-about-card li,
#vm-portal .vm-about-card table,
#vm-portal .vm-about-card tr,
#vm-portal .vm-about-card td,
#vm-portal .vm-about-card th {
  margin-block-start: 0;
  margin-block-end: 0;
  line-height: inherit;
}
#vm-portal .vm-about-plugin {
  background: #f7f9fb;
  border: 1.5px solid #e2e8f0;
}
#vm-portal .vm-about-contact {
  background: #1a3c2e;
  color: #fff;
}
#vm-portal .vm-about-plugin-logo .dashicons {
  font-size: 52px !important;
  width: 52px !important;
  height: 52px !important;
  color: #2d5a3d;
  margin-bottom: 10px;
  display: block;
}
#vm-portal .vm-about-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #1a3c2e;
  line-height: 1.3;
}
#vm-portal .vm-about-contact h3 { color: #a8d5a2; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
#vm-portal .vm-about-tagline { color: #666; font-size: 12px; margin: 0 0 10px !important; line-height: 1.4; }
#vm-portal .vm-about-version {
  display: inline-block;
  background: #2d5a3d;
  color: #fff;
  border-radius: 10px;
  padding: 2px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.6;
}
#vm-portal .vm-about-desc { color: #555; font-size: 13px; line-height: 1.6; margin: 0 0 16px !important; }
#vm-portal .vm-about-table { width: 100%; border-collapse: collapse; font-size: 13px; }
#vm-portal .vm-about-table th { color: #555; font-weight: 600; padding: 5px 8px 5px 0; width: 90px; white-space: nowrap; vertical-align: middle; }
#vm-portal .vm-about-table td { color: #333; padding: 5px 0; vertical-align: middle; }
#vm-portal .vm-about-table code { background: #e8eff4; padding: 2px 6px; border-radius: 4px; font-size: 12px; }

#vm-portal .vm-about-devname  { font-size: 20px; font-weight: 700; margin: 4px 0 !important; color: #fff; line-height: 1.3; }
#vm-portal .vm-about-devtitle { font-size: 12px; opacity: .75; margin: 0 0 20px !important; line-height: 1.4; }
#vm-portal .vm-about-links { display: flex; flex-direction: column; gap: 12px; }
#vm-portal .vm-about-link {
  color: #a8d5a2;
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
#vm-portal .vm-about-link:hover { color: #fff; }
#vm-portal .vm-about-link .dashicons { font-size: 15px !important; width: 15px !important; height: 15px !important; }
#vm-portal .vm-about-support-note {
  margin-top: 20px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 11px;
  opacity: .6;
  line-height: 1.6;
}

/* ─── Changelog ─────────────────────────────────────────── */
#vm-portal .vm-about-changelog {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px 28px;
}
#vm-portal .vm-about-changelog h3 {
  margin: 0 0 20px !important;
  font-size: 16px;
  color: #1a3c2e;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}
#vm-portal .vm-cl-entry {
  padding-bottom: 18px;
  margin-bottom: 18px !important;
  border-bottom: 1px solid #e8eff4;
}
#vm-portal .vm-cl-entry:last-child { border-bottom: none; margin-bottom: 0 !important; padding-bottom: 0; }
#vm-portal .vm-cl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px !important; }
#vm-portal .vm-cl-ver {
  background: #2d5a3d;
  color: #fff;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
#vm-portal .vm-cl-date { color: #999; font-size: 12px; }
#vm-portal .vm-cl-entry ul { margin: 0 !important; padding-left: 20px; }
#vm-portal .vm-cl-entry li { font-size: 13px; color: #444; line-height: 1.7; margin: 0 !important; }

/* ─── Audit Log ─────────────────────────────────────────── */
.vm-audit-table { font-size: 12px; }
.vm-audit-table th { font-size: 11px; }
.vm-audit-table td { vertical-align: middle; padding: 8px 12px; }

.vm-audit-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.vm-audit-success { background: #f0fff4; color: #276749; }
.vm-audit-danger  { background: #fff5f5; color: #c53030; }
.vm-audit-warning { background: #fffbeb; color: #92400e; }
.vm-audit-info    { background: #ebf8ff; color: #2c5282; }
.vm-audit-neutral { background: #f7f9fb; color: #4a5568; }

.vm-audit-obj-type {
  display: inline-block;
  background: #e8eff4;
  color: #555;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-right: 4px;
}
.vm-audit-role {
  display: inline-block;
  background: rgba(45,90,61,.1);
  color: #2d5a3d;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 4px;
}

/* ─── QR Code Panel ─────────────────────────────────────── */

/* Template editor card */
.vm-qr-tpl-editor {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}
.vm-qr-tpl-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f7f9fb;
  font-size: 13px;
  font-weight: 600;
  color: #1a3c2e;
  cursor: pointer;
  user-select: none;
}
.vm-qr-tpl-toggle:hover { background: #edf2f7; }
.vm-qr-tpl-chevron { margin-left: auto; font-size: 11px; color: #888; }
.vm-qr-tpl-body {
  padding: 16px 18px 18px;
  border-top: 1px solid #e2e8f0;
}

/* Kingdom section heading */
.vm-qr-kingdom-section { margin-bottom: 28px; }
.vm-qr-kingdom-heading {
  font-size: 14px;
  font-weight: 700;
  color: #1a3c2e;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e2e8f0;
}

/* QR grid */
.vm-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* Individual QR card */
.vm-qr-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}
.vm-qr-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }

/* Printable label preview */
.vm-qr-label-preview {
  width: 100%;
  background: #fff;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
}

/* Label header lines */
.vm-qr-header1 {
  font-size: 11px;
  font-weight: 700;
  color: #1a3c2e;
  margin-bottom: 2px;
}
.vm-qr-header2 {
  font-size: 10px;
  color: #666;
  margin-bottom: 6px;
}

/* QR canvas wrapper */
.vm-qr-canvas-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0;
}
.vm-qr-canvas-wrap canvas,
.vm-qr-canvas-wrap img { display: block; }
.vm-qr-no-token {
  width: 128px;
  height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f7f9fb;
  border: 1.5px dashed #d1d9e0;
  border-radius: 6px;
  color: #bbb;
  font-size: 12px;
}
.vm-qr-no-token .dashicons { font-size: 36px !important; width: 36px !important; height: 36px !important; color: #ccc; }

/* Label text lines */
.vm-qr-kingdom-name {
  font-size: 10px;
  font-weight: 700;
  color: #2d5a3d;
  margin-top: 4px;
}
.vm-qr-zone-name {
  font-size: 10px;
  color: #555;
}
.vm-qr-shelter-name {
  font-size: 11px;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 2px;
}
.vm-qr-data-text {
  font-size: 8px;
  color: #aaa;
  font-family: monospace;
  margin-top: 4px;
  word-break: break-all;
}

/* Card action buttons row */
.vm-qr-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  width: 100%;
}

/* ─── Print styles ──────────────────────────────────────── */
@media print {
  #vm-portal .vm-topbar,
  #vm-portal .vm-nav,
  #vm-portal .vm-filters,
  #vm-portal .vm-panel-header p,
  #vm-portal .vm-btn { display: none !important; }

  /* Hide non-printable parts of the QR panel */
  #stab-qrcodes .vm-qr-tpl-editor,
  #stab-qrcodes .vm-qr-card-actions { display: none !important; }

  .vm-qr-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
  }
  .vm-qr-card {
    width: 180px;
    break-inside: avoid;
    border: 1.5px solid #333;
    box-shadow: none;
  }
}
