/* =============================================================
   CCC — Patient Custom Styles
   Covers: booking popup, doctor profile page, patient appointments
   ============================================================= */

/* ── Global thin scrollbar (site-wide) ─────────────────────── */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-default, #c1c1c1) var(--bg-surface, #f1f1f1);
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-surface, #f1f1f1);
}
::-webkit-scrollbar-thumb {
    background: var(--border-default, #c1c1c1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong, #a8a8a8);
}

/* Dark-theme override (set via [data-theme="dark"] on <html>, e.g. by the
   admin panel's theme toggle) so the scrollbar stays visible/legible against
   a dark page instead of keeping the light-theme track/thumb colors above. */
[data-theme="dark"] * {
    scrollbar-color: #4a4a4a #1e1e1e;
}
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1e1e1e;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #4a4a4a;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #6b6b6b;
}


/* ── Doctor Profile Page ────────────────────────────────────── */
.slot-availability { flex: 1; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 0; padding: 16px; margin: 20px 0; transition: var(--tr-base); }
.slot-availability-header h4 { margin: 0 0 16px 0; color: var(--text-primary-cst); font-size: var(--font-size-base); font-weight: var(--font-weight-med); font-family: inherit; }
.slots-list { max-height: 300px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-subtle) var(--bg-surface); }
.slots-list::-webkit-scrollbar { width: 8px; }
.slots-list::-webkit-scrollbar-track { background: var(--bg-surface); }
.slots-list::-webkit-scrollbar-thumb { background: var(--border-subtle); }
.slot-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.slot-row:last-child { border-bottom: none; }
.time-range { font-weight: var(--font-weight-med); font-size: var(--font-size-sm); color: var(--text-primary-cst); }
.slot-location { font-size: 11px; color: var(--text-muted-cst); margin-top: 3px; }
.slots-loading, .no-slots-msg { text-align: center; padding: 20px 0; color: var(--text-muted-cst); font-size: 13px; }

.custom-date-picker-wrapper { position: relative; }
.custom-date-picker { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: 6px; padding: 8px; width: 100%; box-sizing: border-box; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border-subtle); }
.calendar-nav { background: none; border: none; font-size: 14px; padding: 2px 4px; cursor: pointer; color: var(--text-primary-cst); border-radius: 3px; transition: var(--tr-base); min-width: 24px; }
.calendar-nav:hover { background: var(--bg-elevated); }
#calendar-month-year { color: var(--text-primary-cst); font-size: 12px; text-align: center; flex: 1; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; margin-bottom: 4px; }
.weekday { text-align: center; font-size: 9px; font-weight: 600; color: var(--text-muted-cst); padding: 1px; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.calendar-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-subtle); border-radius: 3px; cursor: pointer; font-size: 10px; font-weight: 500; transition: var(--tr-base); background: var(--bg-surface); color: var(--text-primary-cst); min-height: 26px; position: relative; }
.calendar-day:hover { background: var(--bg-elevated); border-color: var(--border-default); }
.calendar-day.other-month { color: var(--text-muted-cst); opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.calendar-day.past { color: var(--text-muted-cst); opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.calendar-day.available { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: #22c55e; font-weight: 600; }
.calendar-day.available:hover { background: rgba(34,197,94,0.2); border-color: rgba(34,197,94,0.5); }
.calendar-day.available::before { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 2px; background: #22c55e; border-radius: 50%; }
.calendar-day.selected { background: var(--bg-elevated); border-color: var(--text-primary-cst); font-weight: 600; }
.calendar-day.available.selected { background: rgba(34,197,94,0.3); border-color: #22c55e; color: #16a34a; }
.calendar-day.available.selected::before { display: none; }
.calendar-day.unavailable { color: var(--text-muted-cst); opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.calendar-day.half-full { background: rgba(249,115,22,0.12); border-color: rgba(249,115,22,0.4); color: #fb923c; font-weight: 600; }
.calendar-day.half-full:hover { background: rgba(249,115,22,0.22); border-color: rgba(249,115,22,0.6); }
.calendar-day.half-full::before { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 2px; background: #fb923c; border-radius: 50%; }
.calendar-day.half-full.selected { background: rgba(249,115,22,0.28); border-color: #fb923c; color: #c2410c; }
.calendar-day.half-full.selected::before { display: none; }
.calendar-day.fully-booked { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.3); color: #ef4444; font-weight: 600; cursor: not-allowed; pointer-events: none; }
.calendar-legend { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--border-subtle); }
.legend-item { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--text-muted-cst); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.plx-schedule-list { display: flex; flex-direction: column; gap: 10px; }
.plx-schedule-day { border: 1px solid var(--border-subtle); background: var(--bg-surface); }
.plx-schedule-date { padding: 8px 14px; font-size: 11px; font-weight: 700; color: var(--text-muted-cst); text-transform: uppercase; letter-spacing: 0.06em; background: var(--bg-elevated); border-bottom: 1px solid var(--border-subtle); }
.plx-schedule-slot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); gap: 12px; }
.plx-schedule-slot:last-child { border-bottom: none; }
.plx-schedule-time { font-size: 13px; font-weight: 600; color: var(--text-primary-cst); white-space: nowrap; }
.plx-schedule-loc { font-size: 12px; color: var(--text-muted-cst); display: flex; align-items: center; gap: 4px; text-align: right; }




/* ── File upload previews (onboarding & doctor profile) ─────── */
.plx-file-preview-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.plx-file-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 76px;
    cursor: pointer;
    text-decoration: none;
}
.plx-file-preview-item:hover .plx-file-preview-img,
.plx-file-preview-item:hover .plx-file-preview-pdf {
    border-color: var(--border-default, rgba(255,255,255,0.4));
    opacity: 0.85;
}
.plx-file-preview-img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 7px;
    border: 1.5px solid var(--border-subtle, rgba(255,255,255,0.14));
    display: block;
    background: var(--bg-elevated, rgba(255,255,255,0.04));
}
.plx-file-preview-pdf {
    width: 76px;
    height: 76px;
    border-radius: 7px;
    border: 1.5px solid rgba(239,68,68,0.35);
    background: rgba(239,68,68,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #f87171;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.plx-file-preview-name {
    font-size: 0.63rem;
    color: var(--text-muted-cst, #9ca3af);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 76px;
    display: block;
    line-height: 1.3;
}

/* ── Reusable Profile / Form Components ─────────────────────────
   Extracted from doctor/profile — safe to use in any profile or
   onboarding page. Classes use generic plx- prefix (no -dp-).
   ─────────────────────────────────────────────────────────────── */

/* Narrow sidebar layout: sets left col to 280px */
@media (min-width: 769px) {
    .plx-narrow-sidebar-grid { grid-template-columns: 280px 1fr; }
}

/* Avatar overrides */
.avatar-circle { overflow: hidden; }
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.plx-avatar-initials { font-size: 28px; font-weight: 700; }

/* Status badges — add .approved / .pending / .rejected modifier */
.plx-status-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.plx-status-badge.approved { background: rgba(34,197,94,0.12); color: #16a34a; }
.plx-status-badge.pending  { background: rgba(234,179,8,0.12);  color: #a16207; }
.plx-status-badge.rejected { background: rgba(239,68,68,0.10);  color: #dc2626; }

/* Tabs */
.plx-tab-nav { display: flex; border-bottom: 1px solid var(--border-subtle); overflow-x: auto; }
.plx-tab-btn { flex-shrink: 0; padding: 14px 20px; font-size: 13px; font-weight: 600; color: var(--text-muted-cst); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: var(--tr-base); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.plx-tab-btn:hover { color: var(--text-primary-cst); background: var(--bg-elevated); }
.plx-tab-btn.active { color: var(--text-primary-cst); border-bottom-color: var(--text-primary-cst); }
.plx-tab-pane { display: none; padding: 28px; }
.plx-tab-pane.active { display: block; }
.plx-tab-heading { font-size: 14px; font-weight: 700; color: var(--text-primary-cst); margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 8px; }

/* 2-column form grid */
.plx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.plx-form-row.full { grid-template-columns: 1fr; }
@media (max-width: 600px) { .plx-form-row { grid-template-columns: 1fr; } }
.plx-form-field { display: flex; flex-direction: column; gap: 5px; }
.plx-field-hint { font-size: 11px; color: var(--text-muted-cst); }

/* Photo upload preview */
.plx-photo-wrap { display: flex; align-items: center; gap: 16px; }
.plx-photo-preview { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 2px solid var(--border-subtle); flex-shrink: 0; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; }
.plx-photo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Document rows */
.plx-doc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; }
.plx-doc-row:last-child { border-bottom: none; }
.plx-doc-label { font-size: 13px; font-weight: 600; color: var(--text-primary-cst); }
.plx-doc-hint { font-size: 11px; color: var(--text-muted-cst); margin-top: 2px; }
.plx-doc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plx-doc-link { font-size: 12px; color: var(--text-muted-cst); text-decoration: none; border: 1px solid var(--border-subtle); padding: 4px 10px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.plx-doc-link:hover { color: var(--text-primary-cst); border-color: var(--border-default); }
.plx-doc-preview-wrap { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.plx-doc-preview-wrap:empty { display: none; }

/* Input states */
.pf-input:disabled { opacity: 0.5; cursor: not-allowed; }
.pf-input.plx-textarea { resize: vertical; min-height: 110px; }

/* Inline field validation */
.plx-field-error { font-size: 11px; color: #f87171; margin-top: 4px; display: block; }
.pf-input.plx-input-error, select.plx-input-error, textarea.plx-input-error { border-color: #ef4444 !important; }
.plx-doc-row .plx-field-error { width: 100%; margin-top: 6px; }

/* =============================================================
   Auth — Intent Selection Screen
   ============================================================= */
.plx-intent-wrap.default-show.space { padding-top: 28px; padding-bottom: 28px; }
.plx-intent-modal { max-width: 525px; padding: 0; }
.plx-intent-modal-header { padding: 18px 24px 12px; margin-bottom: 0 !important; }
.plx-intent-modal-body { padding: 8px 20px 18px; }
.plx-intent-heading { font-size: 1.2rem; font-weight: 700; }
.plx-intent-subheading { font-size: 0.85rem; }
.plx-intent-cards { gap: 14px; }

.plx-intent-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    background: #fff;
    margin-top: 0;
}
.plx-intent-card:hover {
    border-color: #ff6b35;
    box-shadow: 0 2px 12px rgba(255,107,53,0.13);
    background: #fff8f5;
}
.plx-intent-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.plx-intent-icon--vendor  { background: #fff3e0; color: #e65100; }
.plx-intent-icon--doctor  { background: #e3f2fd; color: #1565c0; }
.plx-intent-icon--patient { background: #e8f5e9; color: #2e7d32; }
.plx-intent-body { flex: 1; min-width: 0; }
.plx-intent-title {
    font-size: 0.97rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}
.plx-intent-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.35;
}
.plx-intent-arrow { flex-shrink: 0; color: #9ca3af; }
.plx-intent-card:hover .plx-intent-arrow { color: #ff6b35; }

/* =============================================================
   Auth — Registration Form Role Badge & OTP UI
   ============================================================= */
.plx-role-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    margin-top: 4px;
}
.plx-role-badge--vendor  { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.plx-role-badge--doctor  { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.plx-role-badge--patient { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

.plx-role-desc { font-size: 0.85rem; }

.otp-info-box,
.otp-timer-content { width: 100%; box-sizing: border-box; }

.otp-info-box {
    background: #eafaf1;
    border: 1px solid #b7ebc6;
    color: #1e7e34;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.5;
    text-align: left;
    margin-top: 10px;
}
.otp-timer-content {
    background: #fff4ef;
    border: 1px dashed #ffb199;
    color: #ff6b35;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12.5px;
    text-align: center;
    line-height: 1.4;
    display: inline-block;
    width: 100%;
}
.otp-resend-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-bottom: 6px;
}
.otp-resend-btn:hover { color: #ff6b35; }

/* Rating Display Styles */
.booking-rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.booking-rating-display .stars {
    display: flex;
    gap: 2px;
}

.booking-rating-display .star {
    font-size: 14px;
    color: #ddd;
}

.booking-rating-display .star.filled {
    color: #ffc107;
}

.booking-rating-display .star.half-filled {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-rating-display .rating-value {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* Rating Button */
.booking-rate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: #fff;
    color: #121212;
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 8px;
    border-radius: 2px;
}

.booking-rate-btn:hover {
    background-color: #f8f9fa;
}

/* Rating Modal */
.rating-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.rating-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.rating-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.rating-modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-modal-close:hover {
    color: white;
}

.rating-modal-body {
    padding: 20px;
}

.rating-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px;
    border-top: 1px solid #333;
}

/* Star Rating System */
.star-rating-container {
    margin: 12px 0;
}

.star-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.star-rating .star {
    font-size: 32px;
    color: #444;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
    user-select: none;
}

.star-rating .star:hover {
    transform: scale(1.1);
}

.star-rating .star.active {
    color: #ffc107;
}

.star-rating .star.half {
    position: relative;
}

.star-rating .star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted-cst);
    font-weight: 500;
    font-size: 14px;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.char-count {
    text-align: right;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

.btn-cancel, .btn-submit {
}

.btn-cancel {
    background: #444;
    color: white;
}

.btn-cancel:hover {
    background: #555;
    color: #fff;
}

.btn-submit {
}

.btn-submit:hover {
}

.btn-submit:disabled {
    background: #444;
    cursor: not-allowed;
}

/* KYC Dashboard Alert Banner */
.vv-kyc-alert-dashboard {
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.vv-kyc-alert-dashboard-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.vv-kyc-alert-dashboard-icon {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #d97706;
    padding: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vv-kyc-alert-dashboard-title {
    margin: 0 0 0.25rem 0;
    color: #78350f;
    font-size: 1.1rem;
    font-weight: 600;
}

.vv-kyc-alert-dashboard-desc {
    margin: 0;
    color: #92400e;
    font-size: 0.9rem;
}

/* Completed Status Badge */
.dpb-status-completed {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

/* Plx prescription action buttons */
.plx-rx-btn {
    text-decoration: none;
    display: inline-block;
}
.plx-rx-download {
    margin-top: 4px;
    display: block;
}

/* Prescription alerts styling */
.rx-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    border-width: 1px;
    border-style: solid;
}
.rx-alert-success {
    background: rgba(16, 185, 129, 0.08);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.2);
}
.rx-alert-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.2);
}
.rx-alert-icon {
    font-weight: 700;
    font-size: 16px;
}
.rx-alert-msg {
    flex: 1;
}
.rx-error-list {
    margin: 0;
    padding-left: 20px;
}

/* Prescription Grid Layout */
.rx-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.rx-main-card {
    flex: 1 1 600px;
}
.rx-sidebar {
    flex: 1 1 300px;
    max-width: 400px;
}

/* Header badge components */
.rx-pad-icon {
    background: #4f46e5;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    margin-right: 12px;
}
.rx-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: auto;
    border-width: 1px;
    border-style: solid;
    text-transform: uppercase;
}
.rx-badge-locked {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}
.rx-badge-amendment {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

/* Form layouts */
.rx-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}
.rx-col {
    flex: 1;
}
.rx-form-group {
    margin-bottom: 20px;
}
.rx-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.rx-input, .rx-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: #1f2937;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.rx-input:focus, .rx-textarea:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.rx-input:disabled, .rx-textarea:disabled {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

/* Medications section */
.rx-meds-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.rx-section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #111827;
}
.rx-table-wrap {
    overflow-x: auto;
}
.rx-meds-table {
    width: 100%;
    border-collapse: collapse;
}
.rx-meds-table th {
    background: #f3f4f6;
    color: #374151;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
}
.rx-meds-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f3f4f6;
}
.rx-table-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    box-sizing: border-box;
    background: #ffffff;
}
.rx-table-input:focus {
    border-color: #4f46e5;
    outline: none;
}
.rx-table-input:disabled {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}
.rx-remove-row-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.rx-remove-row-btn:hover {
    background: rgba(239, 68, 68, 0.08);
}
.rx-add-med-wrap {
    margin-top: 12px;
}
.rx-add-med-btn {
    background: transparent;
    border: 1px dashed #4f46e5;
    color: #4f46e5;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.rx-add-med-btn:hover {
    background: rgba(79, 70, 229, 0.05);
}
.rx-no-meds {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 20px;
}

/* Submit and auxiliary buttons */
.rx-submit-wrap {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
}
.rx-amend-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
.rx-amend-btn:hover {
    background-color: #f9fafb;
    border-color: #c5c9d1;
}

/* Sidebar summary information */
.rx-patient-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rx-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
.rx-summary-label {
    font-weight: 600;
    color: #4b5563;
}
.rx-summary-val {
    color: #111827;
}
.rx-summary-history-link {
    margin-top: 8px;
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
    text-align: center;
}

/* Timeline/audit log styling */
.rx-timeline {
    position: relative;
    padding-left: 20px;
    margin-top: 10px;
}
.rx-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #e5e7eb;
}
.rx-timeline-item {
    position: relative;
    margin-bottom: 24px;
}
.rx-timeline-item:last-child {
    margin-bottom: 0;
}
.rx-timeline-dot {
    position: absolute;
    left: -20px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #e5e7eb;
}
.rx-timeline-dot.active {
    background: #4f46e5;
    box-shadow: 0 0 0 1px #4f46e5;
}
.rx-timeline-content {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    padding: 12px;
}
.rx-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.rx-version-label {
    font-weight: 600;
    font-size: 12px;
    color: #111827;
}
.rx-pdf-link {
    font-size: 11px;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}
.rx-pdf-link:hover {
    text-decoration: underline;
}
.rx-timeline-meta {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}
.rx-timeline-diag {
    margin-top: 8px;
    font-size: 12px;
    color: #374151;
    background: #f9fafb;
    padding: 4px 8px;
    border-radius: 4px;
}
.rx-empty-sidebar {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    padding: 20px 10px;
}
.rx-modal-actions {
    margin-top: 10px;
}
.plx-btn-pay-now {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.3);
}

.recent-activity-status-completed {
    background: rgba(37, 99, 235, 0.15) !important;
    color: #2563eb !important;
}

/* Plx prescription action column container and buttons */
.plx-rx-btn-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
.plx-rx-download-btn-original {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background: rgba(75, 85, 99, 0.1);
    color: #4b5563;
    border: 1px solid rgba(75, 85, 99, 0.3);
}
.plx-rx-download-btn-original:hover {
    background: rgba(75, 85, 99, 0.2);
    color: #374151;
}
.plx-rx-download-btn-amendment {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.plx-rx-download-btn-amendment:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #b45309;
}

/* Site logo (ccc-logo.svg for light backgrounds, ccc-logo-on-dark.svg for dark backgrounds — swap the file, not a filter, so the red mark keeps its brand color on both) */
.site-logo { height: 75px; width: auto; display: block; }

/* Date range input layout fixes */
.filter-group-date-range {
    flex: 1;
    max-width: 300px;
}

/* Card badges for search results */
.lcard-badge-instant {
    background: #e11d48 !important;
    color: white !important;
    border: none !important;
    right: 10px;
    left: auto;
    top: 10px;
    font-size: 10px !important;
    padding: 4px 8px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center;
}

.lcard-badge-request {
    background: #eab308 !important;
    color: white !important;
    border: none !important;
    right: 10px;
    left: auto;
    top: 10px;
    font-size: 10px !important;
    padding: 4px 8px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center;
}




