/* ============================================================
   pr227_gcal_zoom.css — TradeRail PR227
   Meeting cards, Lily post-call notes, clock-out reminder UI
   Tenant-neutral. No hardcoded company names or colors.
   ============================================================ */

/* ── Meeting card ─────────────────────────────────────────── */
.p227-meeting-card {
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
  margin: 4px 0;
  cursor: default;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: box-shadow .15s;
  position: relative;
}
.p227-meeting-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* ── Header row ───────────────────────────────────────────── */
.p227-mtg-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.p227-mtg-provider-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.p227-mtg-status {
  font-size: 10px;
  font-weight: 600;
  border-radius: 3px;
  padding: 1px 5px;
}
.p227-mtg-status.upcoming {
  background: #eff6ff;
  color: #1d4ed8;
}
.p227-mtg-status.ended {
  background: #f1f5f9;
  color: #64748b;
}

/* ── Lily badges ──────────────────────────────────────────── */
.p227-mtg-lily {
  font-size: 10px;
  font-weight: 600;
  border-radius: 3px;
  padding: 1px 5px;
  background: #ecfdf5;
  color: #059669;
}
.p227-mtg-lily.p227-mtg-lily-pending {
  background: #fefce8;
  color: #ca8a04;
}

/* ── Card title ───────────────────────────────────────────── */
.p227-meeting-card .p226-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #1e3a5f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

/* ── Meta row ─────────────────────────────────────────────── */
.p227-mtg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.p227-mtg-time {
  font-size: 11px;
  color: #475569;
  font-variant-numeric: tabular-nums;
}
.p227-mtg-tag {
  font-size: 10px;
  font-weight: 600;
  background: #fff7ed;
  color: #c2410c;
  border-radius: 3px;
  padding: 1px 5px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p227-mtg-tag.p227-mtg-tag-untagged {
  background: #f1f5f9;
  color: #94a3b8;
}

/* ── Attendees ────────────────────────────────────────────── */
.p227-mtg-attendees {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

/* ── Actions row ──────────────────────────────────────────── */
.p227-mtg-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.p227-join-btn {
  font-size: 11px;
  font-weight: 600;
  background: #2D8CFF;
  color: #fff;
  border-radius: 4px;
  padding: 3px 8px;
  text-decoration: none;
  display: inline-block;
  transition: background .15s;
}
.p227-join-btn:hover {
  background: #1a6fd8;
  color: #fff;
}

/* ── Lily summary panel ───────────────────────────────────── */
.p227-mtg-lily-summary {
  margin-top: 6px;
  padding: 6px 8px;
  background: #ecfdf5;
  border-radius: 4px;
  font-size: 11px;
  color: #064e3b;
  line-height: 1.45;
  border-left: 3px solid #10b981;
}
.p227-mtg-lily-summary b {
  font-weight: 700;
  color: #059669;
}

/* ── Clock-out reminder toast override ───────────────────── */
/* VillaToast 'warning' type — ensure visibility */
.villa-toast-warning {
  background: #fef3c7;
  color: #92400e;
  border-left: 4px solid #f59e0b;
}

/* ── GCal sync indicator ──────────────────────────────────── */
.p227-gcal-synced {
  display: inline-block;
  font-size: 10px;
  color: #16a34a;
  font-weight: 600;
  padding: 1px 4px;
  background: #f0fff4;
  border-radius: 3px;
  margin-left: 4px;
}

/* ── Lily inbox badge (untagged meetings) ─────────────────── */
.p227-lily-inbox-badge {
  display: inline-block;
  background: #fef9c3;
  color: #854d0e;
  font-size: 10px;
  font-weight: 700;
  border-radius: 3px;
  padding: 1px 5px;
}

/* ── Per-day record divider in drawer ─────────────────────── */
.p227-day-record-divider {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 0 2px;
  border-top: 1px solid #eef2f7;
  margin-top: 4px;
}

/* ── Redesigned card layout ───────────────────────────────── */
.p227-card-row1 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.p227-mtg-time-lg {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a5f;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.2px;
}
.p227-join-btn-sm {
  font-size: 10px;
  font-weight: 700;
  background: #2D8CFF;
  color: #fff;
  border-radius: 3px;
  padding: 2px 7px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s;
}
.p227-join-btn-sm:hover {
  background: #1a6fd8;
  color: #fff;
}
.p227-card-title-lg {
  font-size: 12px;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 4px;
  line-height: 1.3;
  /* allow wrap — title is primary info */
}
.p227-card-row3 {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.p227-mtg-attendees-sm {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.p227-card-row4 {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

/* ── Lily collapsed panel ─────────────────────────────────── */
.p227-lily-collapsed {
  display: none;
}
.p227-mtg-lily-summary:not(.p227-lily-collapsed) {
  display: block;
  margin-top: 6px;
  padding: 6px 8px;
  background: #ecfdf5;
  border-radius: 4px;
  font-size: 11px;
  color: #064e3b;
  line-height: 1.45;
  border-left: 3px solid #10b981;
}

/* ── Reminder chip ────────────────────────────────────────── */
.p227-mtg-reminder-chip {
  font-size: 10px;
  font-weight: 600;
  border-radius: 3px;
  padding: 1px 5px;
  background: #eff6ff;
  color: #1d4ed8;
}
.p227-reminder-unset {
  background: #f8fafc;
  color: #64748b;
  border: 1px dashed #cbd5e1;
}
.p227-reminder-unset:hover {
  background: #f1f5f9;
  color: #1e3a5f;
}

/* ── Reminder panel (inline) ──────────────────────────────── */
.p227-reminder-panel {
  margin-top: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 11px;
}
.p227-reminder-title {
  font-weight: 600;
  color: #059669;
  margin-bottom: 6px;
  font-size: 11px;
  line-height: 1.3;
}
.p227-reminder-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  cursor: pointer;
  color: #1e3a5f;
  font-size: 11px;
}
.p227-reminder-option input[type="checkbox"] {
  accent-color: #2D8CFF;
  width: 13px;
  height: 13px;
}
.p227-reminder-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.p227-reminder-save {
  font-size: 11px;
  font-weight: 700;
  background: #2D8CFF;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
}
.p227-reminder-save:hover { background: #1a6fd8; }
.p227-reminder-none {
  font-size: 11px;
  font-weight: 600;
  background: none;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
}
.p227-reminder-none:hover { background: #f1f5f9; }
