/* AI Clinic Suite v20.26 — patient messaging, booking workflows */
.pc25-profile-messaging{margin-top:16px;padding-top:12px;border-top:1px solid #e2e8f0}
.pc25-profile-messaging-title{color:#0f766e;font-weight:800;font-size:12px;margin-bottom:9px;display:flex;align-items:center;gap:7px}
.pc25-profile-messaging-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pc25-message-choice{min-height:38px;border:1px solid transparent;border-radius:10px;padding:7px 10px;font-family:inherit;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;transition:.18s}
.pc25-message-choice.whatsapp{background:rgba(37,211,102,.12);color:#128c4b;border-color:rgba(37,211,102,.28)}
.pc25-message-choice.direct{background:rgba(59,130,246,.1);color:#1d4ed8;border-color:rgba(59,130,246,.24)}
.pc25-message-choice:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(15,23,42,.08)}
.pc25-message-choice:disabled{opacity:.48;cursor:not-allowed;transform:none!important;box-shadow:none!important;filter:saturate(.65)}
body.dark-mode .pc25-profile-messaging{border-top-color:#334155}
body.dark-mode .pc25-profile-messaging-title{color:#99f6e4}
body.dark-mode .pc25-message-choice.whatsapp{background:rgba(34,197,94,.16);color:#86efac;border-color:rgba(34,197,94,.28)}
body.dark-mode .pc25-message-choice.direct{background:rgba(59,130,246,.18);color:#93c5fd;border-color:rgba(96,165,250,.28)}

/* Booking summary: one visual language, one row on desktop. */
#tab-bookings .bookings-summary-cards-row.pc25-summary-ready{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:12px!important}
.bookings-summary-cards-row .summary-stat-card.pc25-booking-action-card{appearance:none;-webkit-appearance:none;width:100%;font-family:inherit;text-align:center;cursor:pointer;color:inherit;background:inherit}
.bookings-summary-cards-row .summary-stat-card.pc25-booking-action-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(15,23,42,.10)}
.bookings-summary-cards-row .summary-stat-card.pc25-booking-action-card .card-label{font-size:11px;color:#64748b;font-weight:700}
.bookings-summary-cards-row .summary-stat-card.pc25-booking-action-card .card-value{font-size:12px!important;white-space:normal;line-height:1.4}
@media(max-width:1180px) and (min-width:901px){#tab-bookings .bookings-summary-cards-row.pc25-summary-ready{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:7px!important}#tab-bookings .bookings-summary-cards-row.pc25-summary-ready .summary-stat-card{padding-inline:5px!important}#tab-bookings .bookings-summary-cards-row.pc25-summary-ready .card-label{font-size:9px!important}#tab-bookings .bookings-summary-cards-row.pc25-summary-ready .card-value{font-size:10px!important}}
@media(max-width:900px){#tab-bookings .bookings-summary-cards-row.pc25-summary-ready{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:700px){#tab-bookings .bookings-summary-cards-row.pc25-summary-ready{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}}

.pc25-overlay{position:fixed;inset:0;background:rgba(2,6,23,.58);backdrop-filter:blur(5px);z-index:2147483630;display:none;align-items:center;justify-content:center;padding:18px;direction:rtl}
.pc25-overlay.show{display:flex}
.pc25-dialog{width:min(720px,96vw);max-height:88dvh;overflow:hidden;background:#fff;border:1px solid #dbe3ee;border-radius:20px;box-shadow:0 24px 70px rgba(2,6,23,.34);display:flex;flex-direction:column;color:#0f172a}
.pc25-dialog.wide{width:min(860px,96vw)}
.pc25-dialog-head{padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#eff6ff,#f8fafc)}
.pc25-dialog-head h3{margin:0;font-size:17px;font-weight:900;display:flex;align-items:center;gap:8px}
.pc25-close{width:34px;height:34px;border:0;border-radius:10px;background:#e2e8f0;color:#334155;cursor:pointer;font-size:18px}
.pc25-dialog-body{padding:17px 18px;overflow:auto}
.pc25-dialog-foot{padding:12px 18px;border-top:1px solid #e2e8f0;display:flex;gap:8px;justify-content:flex-start;background:#f8fafc}
.pc25-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pc25-form-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.pc25-form-field.full{grid-column:1/-1}
.pc25-form-field label{font-size:12px;font-weight:800;color:#475569}
.pc25-form-field input,.pc25-form-field select,.pc25-form-field textarea{width:100%;min-height:42px;padding:8px 11px;border-radius:10px;border:1px solid #cbd5e1;background:#fff;color:#0f172a;font-family:inherit;font-size:13px;outline:0}
.pc25-form-field textarea{min-height:74px;resize:vertical}
.pc25-form-field input:focus,.pc25-form-field select:focus,.pc25-form-field textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.1)}
.pc25-booking-preview{margin-top:12px;padding:12px 13px;border-radius:13px;background:#f8fafc;border:1px solid #e2e8f0;font-size:12px;line-height:1.8;color:#475569}
.pc25-empty{padding:28px;text-align:center;color:#64748b;font-size:13px}
.pc25-patient-list{display:grid;gap:8px;margin-top:12px;max-height:54dvh;overflow:auto}
.pc25-patient-row{width:100%;border:1px solid #e2e8f0;background:#fff;border-radius:13px;padding:10px 12px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:right;cursor:pointer;color:#0f172a;font-family:inherit}
.pc25-patient-row:hover{border-color:#60a5fa;background:#eff6ff}
.pc25-patient-avatar{width:42px;height:42px;border-radius:12px;object-fit:cover;background:#eff6ff;border:1px solid #dbeafe}
.pc25-patient-name{font-weight:900;font-size:13px}.pc25-patient-meta{font-size:10.5px;color:#64748b;margin-top:2px}
.pc25-patient-row .icofont-rounded-left{color:#3b82f6}
body.dark-mode .pc25-dialog{background:#101827;border-color:#334155;color:#e5edf8}
body.dark-mode .pc25-dialog-head{background:linear-gradient(135deg,#172033,#0f172a);border-color:#334155}
body.dark-mode .pc25-close{background:#1e293b;color:#e2e8f0}
body.dark-mode .pc25-dialog-foot{background:#0f172a;border-color:#334155}
body.dark-mode .pc25-form-field label{color:#cbd5e1}
body.dark-mode .pc25-form-field input,body.dark-mode .pc25-form-field select,body.dark-mode .pc25-form-field textarea{background:#0b1425;border-color:#334155;color:#e2e8f0}
body.dark-mode .pc25-booking-preview{background:#0b1425;border-color:#334155;color:#cbd5e1}
body.dark-mode .pc25-patient-row{background:#0f172a;border-color:#334155;color:#e2e8f0}
body.dark-mode .pc25-patient-row:hover{background:#172554;border-color:#3b82f6}
body.dark-mode .pc25-patient-meta{color:#94a3b8}

/* Clinic chat */
#pc25-chat-popover{position:fixed;left:72px;bottom:66px;width:min(390px,calc(100vw - 24px));height:min(570px,72dvh);z-index:2147483610;background:#fff;border:1px solid #dbe3ee;border-radius:20px;box-shadow:0 24px 70px rgba(2,6,23,.3);display:none;flex-direction:column;overflow:hidden;direction:rtl}
#pc25-chat-popover.show{display:flex}
.pc25-chat-head{display:flex;align-items:center;gap:10px;padding:11px 12px;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff}
.pc24-chat-photo{width:38px;height:38px;border-radius:12px;object-fit:contain;background:#fff;padding:4px;flex:0 0 auto;border:1px solid rgba(255,255,255,.5)}
.pc25-chat-head-copy{min-width:0;flex:1}.pc25-chat-head-name{font-weight:900;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pc25-chat-head-sub{font-size:9.5px;opacity:.82}
.pc25-chat-head button{width:30px;height:30px;border:0;border-radius:9px;background:rgba(255,255,255,.14);color:#fff;cursor:pointer}
.pc25-chat-messages{flex:1;overflow:auto;padding:13px;background:linear-gradient(180deg,#f8fafc,#eef5ff);display:flex;flex-direction:column;gap:8px}
.pc25-msg{max-width:82%;padding:8px 10px;border-radius:13px;font-size:12px;line-height:1.65;box-shadow:0 2px 7px rgba(15,23,42,.05)}
.pc25-msg.clinic{align-self:flex-end;background:#dbeafe;border-bottom-right-radius:4px;color:#172554}.pc25-msg.patient{align-self:flex-start;background:#fff;border:1px solid #e2e8f0;border-bottom-left-radius:4px;color:#0f172a}
.pc25-msg-time{font-size:8.5px;opacity:.55;margin-top:3px}.pc25-msg-media{max-width:100%;border-radius:9px;margin-top:4px}.pc25-msg audio,.pc25-msg video{width:100%;max-width:250px}
.pc25-chat-compose{display:flex;align-items:center;gap:6px;padding:9px;border-top:1px solid #e2e8f0;background:#fff}
.pc25-chat-compose-tool{width:38px;height:38px;min-width:38px;border:1px solid #dbe3ee;border-radius:11px;background:#f8fafc;color:#2563eb;display:grid;place-items:center;cursor:pointer;font-size:16px}
.pc24-chat-text{height:38px!important;min-height:38px!important;max-height:38px!important;width:100%;flex:1 1 auto;padding:7px 11px!important;border:1px solid #cbd5e1;border-radius:11px;font-family:inherit;font-size:12px;resize:none;line-height:22px;overflow:hidden;outline:0}
.pc25-chat-send{width:38px;height:38px;min-width:38px;border:0;border-radius:11px;background:#2563eb;color:#fff;display:grid;place-items:center;cursor:pointer}
#pc25-chat-bubble{position:fixed;left:94px;bottom:10px;z-index:2200;display:none;align-items:center;gap:7px;height:36px;max-width:155px;padding:3px 8px 3px 4px;border:0;border-radius:12px 12px 5px 12px;background:linear-gradient(135deg,#7c3aed,#4f46e5);color:#fff;box-shadow:0 6px 17px rgba(79,70,229,.36);font-family:inherit;cursor:pointer}
#pc25-chat-bubble.show{display:flex}.pc25-chat-bubble-photo{width:28px;height:28px;border-radius:9px;object-fit:cover;background:#fff}.pc25-chat-bubble-name{font-size:9.5px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.dark-mode #pc25-chat-popover{background:#0f172a;border-color:#334155}body.dark-mode .pc25-chat-messages{background:linear-gradient(180deg,#0b1425,#111c30)}body.dark-mode .pc25-msg.patient{background:#172033;border-color:#334155;color:#e2e8f0}body.dark-mode .pc25-msg.clinic{background:#1e3a8a;color:#dbeafe}body.dark-mode .pc25-chat-compose{background:#0f172a;border-color:#334155}body.dark-mode .pc25-chat-compose-tool,body.dark-mode .pc24-chat-text{background:#0b1425;border-color:#334155;color:#e2e8f0}
@media(max-width:700px){.pc25-form-grid{grid-template-columns:1fr}.pc25-form-field.full{grid-column:auto}.pc25-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:16px}#pc25-chat-popover{inset:6px;width:auto;height:auto;max-height:none;border-radius:16px}.pc25-profile-messaging-actions{grid-template-columns:1fr 1fr}#pc25-chat-bubble{left:58px;bottom:9px;max-width:130px}}

/* v20.26 refinements */
.bookings-summary-cards-row .pc25-booking-action-card .card-label{display:none!important}.bookings-summary-cards-row .pc25-booking-action-card .card-value{font-size:13px!important;font-weight:800!important;margin-top:7px!important}.pc26-notify-options{display:flex;align-items:stretch;gap:8px;flex-wrap:nowrap;width:100%}.pc26-notify-option{flex:1 1 0;min-height:42px;border:1px solid #dbe3ee;border-radius:11px;padding:6px 9px;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;background:#fff;color:#334155;font-size:11px;font-weight:800;white-space:nowrap}.pc26-notify-option input{width:15px!important;height:15px!important;min-height:0!important;accent-color:#2563eb}.pc26-notify-option i{font-size:17px}.pc26-notify-option.whatsapp i{color:#16a34a}.pc26-notify-option.portal img{width:22px;height:22px;object-fit:contain;border-radius:6px}.pc26-notify-option.none i{color:#dc2626}body.dark-mode .pc26-notify-option{background:#0b1425;border-color:#334155;color:#e2e8f0}.pc26-chat-bubbles{position:fixed;left:94px;bottom:9px;z-index:2147483615;display:flex;align-items:center;gap:6px;max-width:min(480px,calc(100vw - 180px));overflow:visible}.pc26-chat-bubble{height:36px;max-width:128px;padding:3px 7px 3px 4px;border:0;border-radius:12px 12px 5px 12px;background:linear-gradient(135deg,#7c3aed,#4f46e5);color:#fff;box-shadow:0 6px 17px rgba(79,70,229,.32);display:flex;align-items:center;gap:6px;font-family:inherit;cursor:pointer}.pc26-chat-bubble img{width:28px;height:28px;border-radius:9px;object-fit:cover;background:#fff}.pc26-chat-bubble span{font-size:9px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:700px){.pc26-chat-bubbles{left:56px;bottom:8px;gap:4px;max-width:calc(100vw - 112px)}.pc26-chat-bubble{width:36px;max-width:36px;padding:4px}.pc26-chat-bubble span{display:none}.pc26-notify-options{gap:5px}.pc26-notify-option{padding:5px 4px;font-size:9px}}

/* Staff messaging v20.26 */
.pc26-staff-launch{appearance:none;border:0;font-family:inherit;text-align:right;cursor:pointer}.pc26-staff-list-icon{width:42px;height:42px;border-radius:12px;background:#ede9fe;color:#7c3aed;display:grid;place-items:center;font-size:19px}.pc26-staff-chat{position:fixed;left:72px;bottom:66px;width:min(390px,calc(100vw - 24px));height:min(570px,72dvh);z-index:2147483611;background:#fff;border:1px solid #dbe3ee;border-radius:20px;box-shadow:0 24px 70px rgba(2,6,23,.3);display:none;flex-direction:column;overflow:hidden;direction:rtl}.pc26-staff-chat.show{display:flex}.pc26-staff-avatar{width:38px;height:38px;border-radius:12px;background:#fff;color:#7c3aed;display:grid;place-items:center;font-size:20px}.pc26-staff-sender{display:block;font-size:9.5px;margin-bottom:2px;opacity:.72}.pc26-staff-bubble{position:fixed;left:56px;bottom:9px;z-index:2147483616;display:none;align-items:center;gap:6px;height:36px;max-width:125px;padding:3px 8px;border:0;border-radius:12px 12px 5px 12px;background:linear-gradient(135deg,#0f766e,#0d9488);color:#fff;box-shadow:0 6px 17px rgba(13,148,136,.3);font-family:inherit;cursor:pointer}.pc26-staff-bubble.show{display:flex}.pc26-staff-bubble span{font-size:9px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.dark-mode .pc26-staff-chat{background:#0f172a;border-color:#334155}@media(max-width:700px){.pc26-staff-chat{inset:6px;width:auto;height:auto;max-height:none;border-radius:16px}.pc26-staff-bubble{left:10px;max-width:98px}}

/* v20.26: booking actions visually match the call-screen tool card. */
#tab-bookings .bookings-summary-cards-row .pc25-booking-action-card{flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:6px!important;min-height:96px!important;padding:12px 10px!important}
#tab-bookings .bookings-summary-cards-row .pc25-booking-action-card .card-icon{width:46px!important;height:46px!important;margin:0 auto!important;flex:0 0 46px!important}
#tab-bookings .bookings-summary-cards-row .pc25-booking-action-card .card-value{width:100%!important;text-align:center!important;font-size:1rem!important;line-height:1.35!important;margin:0!important;flex:0 0 auto!important}


/* v20.42 — patient messaging FAB companion bubbles + live portal presence */
.pc26-chat-bubbles{left:138px!important;bottom:9px!important;gap:7px!important;max-width:min(480px,calc(100vw - 225px))!important}
.pc26-chat-bubble{position:relative!important;background:linear-gradient(135deg,#172554 0%,#3455b1 62%,#214859 100%)!important;box-shadow:0 8px 22px rgba(23,37,84,.34)!important}
.pc26-presence-dot{position:absolute;top:-3px;right:-3px;width:10px;height:10px;border-radius:50%;border:2px solid #fff;background:#94a3b8;box-shadow:0 2px 6px rgba(15,23,42,.22);z-index:3}
.pc26-presence-dot.online,.pc26-presence-inline.online{background:#22c55e}.pc26-presence-dot.offline,.pc26-presence-inline.offline{background:#94a3b8}
.pc26-presence-inline{display:inline-block;width:8px;height:8px;border-radius:50%;margin-inline-end:6px;vertical-align:middle;box-shadow:0 0 0 2px rgba(255,255,255,.25)}
@media(max-width:700px){.pc26-chat-bubbles{left:8px!important;bottom:8px!important;max-width:calc(100vw - 70px)!important}}

/* v20.43 booking grid */
@media(max-width:700px){#tab-bookings .bookings-summary-cards-row.pc25-summary-ready{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}}
