/*!
 * Beham Clinic — front-end styles.
 * Brand color injected via inline style as --bc-brand. Default fallback: #445a46.
 */

.bc-app {
    --bc-brand: #445a46;
    --bc-brand-600: #364839;
    --bc-brand-700: #2a3a2c;
    --bc-brand-50: #eef2ee;
    --bc-brand-100: #dce6dc;
    --bc-surface: #f6f8f6;
    --bc-text: #1b231c;
    --bc-muted: #5c6b5e;
    --bc-bg: #ffffff;
    --bc-border: #e4ebe4;
    --bc-border-strong: #cfdacf;
    --bc-radius: 14px;
    --bc-radius-sm: 9px;
    --bc-radius-lg: 20px;
    --bc-shadow-xs: 0 1px 2px rgba(27, 49, 30, 0.05);
    --bc-shadow-sm: 0 1px 3px rgba(27, 49, 30, 0.06), 0 1px 2px rgba(27, 49, 30, 0.04);
    --bc-shadow: 0 2px 6px rgba(40, 60, 42, 0.06), 0 14px 30px -10px rgba(40, 60, 42, 0.14);
    --bc-shadow-lg: 0 10px 18px rgba(40, 60, 42, 0.08), 0 28px 52px -14px rgba(40, 60, 42, 0.2);
    --bc-ring: 0 0 0 3px rgba(68, 90, 70, 0.16);
    --bc-ease: cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--bc-text);
    font-family: inherit;
    box-sizing: border-box;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 64px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.bc-app *,
.bc-app *::before,
.bc-app *::after { box-sizing: inherit; }

/* ------- Hero (parent dashboard) ------- */
.bc-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bc-brand) 0%, var(--bc-brand-600) 100%);
    color: #fff;
    border-radius: var(--bc-radius);
    padding: 28px 28px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: var(--bc-shadow);
}
.bc-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(115% 130% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
        radial-gradient(90% 120% at 0% 100%, rgba(0, 0, 0, 0.12), transparent 60%);
    pointer-events: none;
}
.bc-hero > * { position: relative; z-index: 1; }
.bc-hero__title { margin: 0 0 6px; font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: #fff; }
.bc-hero__subtitle { margin: 0; opacity: 0.85; font-size: 15px; color: #fff; }
.bc-hero__logout { margin: 0; }
.bc-hero__tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.bc-lang-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ------- Language switcher (segmented pill toggle) ------- */
.bc-app .bc-hero .bc-lang-switcher {
    display: inline-flex;
    align-items: center;
}

.bc-app .bc-hero .bc-lang-switcher__track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.bc-app .bc-hero .bc-lang-switcher__form {
    margin: 0;
    display: inline-flex;
}

.bc-app .bc-hero .bc-lang-pill,
.bc-app .bc-hero button.bc-lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 34px;
    padding: 7px 15px;
    margin: 0;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.88) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.88) !important;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: none !important;
    outline: none;
    text-decoration: none !important;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.bc-app .bc-hero button.bc-lang-pill:hover,
.bc-app .bc-hero button.bc-lang-pill:focus-visible {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.bc-app .bc-hero .bc-lang-pill--active,
.bc-app .bc-hero span.bc-lang-pill--active {
    background: #fff !important;
    color: var(--bc-brand) !important;
    -webkit-text-fill-color: var(--bc-brand) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14) !important;
    cursor: default;
    font-weight: 700;
}

/* Legacy selector — keep for older cached markup */
.bc-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bc-lang-switcher__form {
    margin: 0;
    display: inline-flex;
}

.bc-lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.92) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.bc-lang-pill:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.bc-lang-pill--active,
.bc-lang-pill--active:hover {
    background: #fff !important;
    color: var(--bc-brand) !important;
    -webkit-text-fill-color: var(--bc-brand) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.bc-lang-form select {
    min-width: 105px;
    padding: 7px 28px 7px 10px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    background-color: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    font-size: 13px !important;
}
.bc-lang-form option { color: #1a1f36; }

/* Themes often set global h1/p colors that beat .bc-hero inheritance — force contrast on the gradient. */
.bc-app .bc-hero .bc-hero__inner,
.bc-app .bc-hero h1.bc-hero__title,
.bc-app .bc-hero .bc-hero__title,
.bc-app .bc-hero .bc-hero__subtitle {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}
.bc-app .bc-hero .bc-hero__subtitle {
    opacity: 0.92;
}

/* ------- Cards grid ------- */
.bc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.bc-card {
    background: var(--bc-bg);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: 20px;
    box-shadow: var(--bc-shadow-sm);
    transition: box-shadow .2s var(--bc-ease), transform .2s var(--bc-ease), border-color .2s var(--bc-ease);
}
.bc-card:hover {
    box-shadow: var(--bc-shadow);
    transform: translateY(-2px);
    border-color: var(--bc-border-strong);
}
.bc-card__title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--bc-brand);
}
.bc-card__list { list-style: none; margin: 0; padding: 0; }
.bc-card__list li { margin-bottom: 8px; }
.bc-card__list a {
    color: var(--bc-brand);
    text-decoration: none;
    font-weight: 500;
}
.bc-card__list a:hover { text-decoration: underline; }

/* ------- Auth forms ------- */
.bc-auth {
    max-width: 460px;
    margin: 0 auto;
    background: var(--bc-bg);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-lg);
    padding: 36px;
    box-shadow: var(--bc-shadow-lg);
}
.bc-auth__title {
    margin: 0 0 4px;
    font-size: 24px;
    letter-spacing: -0.01em;
    color: var(--bc-brand);
}
.bc-auth__subtitle {
    margin: 0 0 20px;
    color: var(--bc-muted);
    font-size: 14px;
}
.bc-auth__alt {
    margin-top: 20px;
    text-align: center;
    color: var(--bc-muted);
    font-size: 14px;
}
.bc-auth__alt a {
    color: var(--bc-brand);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}
.bc-auth__forgot {
    margin: -4px 0 12px;
    text-align: right;
    font-size: 14px;
}
.bc-auth__forgot a {
    color: var(--bc-brand);
    font-weight: 600;
    text-decoration: none;
}
.bc-auth__forgot a:hover {
    text-decoration: underline;
}

/* ------- Form primitives ------- */
.bc-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bc-grid { display: grid; gap: 14px; }
.bc-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 480px) { .bc-grid--2 { grid-template-columns: 1fr; } }

.bc-field { display: flex; flex-direction: column; gap: 6px; }
.bc-field__label { font-size: 13px; font-weight: 600; color: var(--bc-text); }
.bc-field input,
.bc-field textarea,
.bc-field select {
    border: 1px solid var(--bc-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--bc-text);
    width: 100%;
}
.bc-field input:focus,
.bc-field textarea:focus,
.bc-field select:focus {
    outline: none;
    border-color: var(--bc-brand);
    box-shadow: 0 0 0 3px rgba(68, 90, 70, 0.14);
}

.bc-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--bc-text); }

/* ------- Buttons ------- */
.bc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--bc-radius-sm);
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    transition: background .18s var(--bc-ease), color .18s var(--bc-ease), border-color .18s var(--bc-ease), box-shadow .18s var(--bc-ease), transform .08s var(--bc-ease);
    font-family: inherit;
}
.bc-btn:active { transform: translateY(1px); }
.bc-btn:focus-visible { outline: none; box-shadow: var(--bc-ring); }
.bc-btn:visited { color: inherit; }
.bc-btn--primary { background: var(--bc-brand); color: #fff !important; box-shadow: 0 1px 2px rgba(40, 60, 42, 0.18); }
.bc-btn--primary:visited,
.bc-btn--primary:hover,
.bc-btn--primary:focus,
.bc-btn--primary:active { color: #fff !important; }
.bc-btn--primary:hover { background: var(--bc-brand-600); box-shadow: 0 6px 16px -4px rgba(40, 60, 42, 0.32); }
.bc-btn--ghost {
    background: transparent;
    color: var(--bc-brand);
    border: 1px solid var(--bc-brand);
}
.bc-btn--ghost:hover { background: var(--bc-brand-50); }
.bc-btn--ghost-light {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}
.bc-btn--ghost-light:hover { background: rgba(255,255,255,0.25); }
.bc-btn--secondary {
    background: var(--bc-brand-600);
    color: #fff !important;
    border: 1px solid var(--bc-brand-600);
}
.bc-btn--secondary:visited,
.bc-btn--secondary:hover,
.bc-btn--secondary:focus,
.bc-btn--secondary:active {
    color: #fff !important;
    background: #2a3a2c;
    border-color: #2a3a2c;
}

/* Beat theme submit/button overrides inside the portal. */
.bc-app .bc-btn--primary,
.bc-app button.bc-btn--primary,
.bc-app input.bc-btn--primary {
    background: var(--bc-brand) !important;
    color: #fff !important;
    border: 1px solid var(--bc-brand) !important;
    -webkit-text-fill-color: #fff !important;
}
.bc-app .bc-btn--secondary,
.bc-app button.bc-btn--secondary,
.bc-app input.bc-btn--secondary {
    background: var(--bc-brand-600) !important;
    color: #fff !important;
    border: 1px solid var(--bc-brand-600) !important;
    -webkit-text-fill-color: #fff !important;
}
.bc-app .bc-btn--ghost,
.bc-app button.bc-btn--ghost {
    background: #fff !important;
    color: var(--bc-brand) !important;
    border: 1px solid var(--bc-brand) !important;
    -webkit-text-fill-color: var(--bc-brand) !important;
}
.bc-app .bc-btn--ghost:hover,
.bc-app button.bc-btn--ghost:hover {
    background: var(--bc-brand-50) !important;
    color: var(--bc-brand-600) !important;
    -webkit-text-fill-color: var(--bc-brand-600) !important;
}
.bc-app .bc-btn--danger,
.bc-app button.bc-btn--danger {
    background: #fdecec !important;
    color: #8a1f1f !important;
    border: 1px solid #f4c0c0 !important;
    -webkit-text-fill-color: #8a1f1f !important;
}
.bc-app .bc-btn--ghost-light,
.bc-app button.bc-btn--ghost-light,
.bc-app a.bc-btn--ghost-light {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: none;
}
.bc-app a.bc-btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

/* ------- Alerts ------- */
.bc-alert {
    border-radius: var(--bc-radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    box-shadow: var(--bc-shadow-xs);
}
.bc-alert--error { background: #fdecec; color: #8a1f1f; border: 1px solid #f4c0c0; }
.bc-alert--success { background: #ecf7ee; color: #1f5e2a; border: 1px solid #b9dec1; }
.bc-alert--info { background: #eef4ff; color: #1e4f8a; border: 1px solid #c6d9f3; }

/* Conversation header actions (inbox link + close/reopen). */
.bc-thread__head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bc-thread__toggle { margin: 0; }

.bc-muted { color: var(--bc-muted); }

/* ------- Page header ------- */
.bc-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.bc-page-head__title { margin: 0; font-size: 24px; color: var(--bc-brand); }

.bc-h2 { margin: 28px 0 12px; font-size: 18px; color: var(--bc-text); font-weight: 700; }
.bc-h3 { margin: 20px 0 10px; font-size: 16px; color: var(--bc-text); font-weight: 700; }

/* ------- Compact hero (doctor portal) ------- */
.bc-hero--compact { padding: 18px 20px; }
.bc-hero--compact .bc-hero__title { font-size: 22px; }

/* ------- Tabs ------- */
.bc-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--bc-border);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.bc-tab {
    padding: 10px 16px;
    color: var(--bc-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s var(--bc-ease), border-color .15s var(--bc-ease);
}
.bc-tab:hover { color: var(--bc-brand); }
.bc-tab--active {
    color: var(--bc-brand);
    border-bottom-color: var(--bc-brand);
}

/* ------- Card padding modifier ------- */
.bc-card--padded { padding: 24px; }

/* ------- List rows ------- */
.bc-list { display: flex; flex-direction: column; gap: 10px; }
.bc-list__row {
    background: var(--bc-bg);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: var(--bc-shadow-xs);
    transition: border-color .15s var(--bc-ease), box-shadow .15s var(--bc-ease);
}
.bc-list__title { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--bc-text); }
.bc-list__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bc-list__row p { margin: 4px 0; }

.bc-section-actions { margin: 16px 0 20px; }

.bc-empty { padding: 24px; text-align: center; color: var(--bc-muted); }
.bc-empty p { margin: 0; }

/* ------- Status badges ------- */
.bc-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.5;
    padding: 3px 10px;
    border-radius: 999px;
    margin-left: 6px;
    background: #eef2ee;
    color: var(--bc-brand);
}
.bc-badge--pending   { background: #fff3cd; color: #856404; }
.bc-badge--confirmed { background: #d1ecf1; color: #0c5460; }
.bc-badge--call { background: #fff3cd; color: #856404; border: 1px solid #f0d58c; }
.bc-fd-appt--needs-call { border-color: #e8c96a; box-shadow: inset 4px 0 0 #d4a017; }
.bc-availability--simple .bc-availability__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.bc-check--inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.bc-badge--completed { background: #d4edda; color: #155724; }
.bc-badge--cancelled { background: #f8d7da; color: #721c24; }
.bc-badge--no_show   { background: #e2e3e5; color: #383d41; }

/* ------- Booking steps ------- */
.bc-steps {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.bc-step {
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--bc-muted);
    font-weight: 600;
}
.bc-step--current { background: var(--bc-brand); color: #fff !important; border-color: var(--bc-brand); }
.bc-step--done    { background: var(--bc-brand-50); color: var(--bc-brand); border-color: var(--bc-brand-50); }

.bc-summary p { margin: 4px 0; }

.bc-radio-row { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.bc-radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.bc-radio input { accent-color: var(--bc-brand); }

.bc-book-months {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.bc-book-month {
    display: inline-block;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-sm);
    text-decoration: none;
    color: var(--bc-text);
    font-weight: 600;
    font-size: 14px;
    transition: background .15s var(--bc-ease), border-color .15s var(--bc-ease), box-shadow .15s var(--bc-ease);
}
.bc-book-month:hover { border-color: var(--bc-brand); background: var(--bc-brand-50); box-shadow: var(--bc-shadow-xs); }
.bc-book-month--active,
.bc-app a.bc-book-month--active,
.bc-app a.bc-book-month--active:hover,
.bc-app a.bc-book-month--active:focus,
.bc-app a.bc-book-month--active:visited {
    background: var(--bc-brand);
    color: #fff !important;
    border-color: var(--bc-brand);
}

/* ------- Date picker grid ------- */
.bc-date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}
.bc-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-sm);
    text-decoration: none;
    color: var(--bc-text);
    transition: background .15s var(--bc-ease), border-color .15s var(--bc-ease), box-shadow .15s var(--bc-ease), transform .15s var(--bc-ease);
}
.bc-date:hover { border-color: var(--bc-brand); background: var(--bc-brand-50); box-shadow: var(--bc-shadow-xs); transform: translateY(-1px); }
.bc-date--selected,
.bc-app a.bc-date--selected,
.bc-app a.bc-date--selected:hover,
.bc-app a.bc-date--selected:focus,
.bc-app a.bc-date--selected:visited {
    background: var(--bc-brand);
    color: #fff !important;
    border-color: var(--bc-brand);
}
.bc-app a.bc-date--selected .bc-date__dow,
.bc-app a.bc-date--selected .bc-date__num,
.bc-app a.bc-date--selected .bc-date__mon {
    color: #fff !important;
    opacity: 1;
}
.bc-date__dow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.85; }
.bc-date__num { font-size: 22px; font-weight: 700; line-height: 1.1; }
.bc-date__mon { font-size: 11px; opacity: 0.85; }

.bc-am-calendar .bc-date__dow {
	text-transform: none;
	letter-spacing: 0;
	font-size: 10px;
	line-height: 1.2;
}
.bc-am-calendar .bc-date__mon {
	font-size: 10px;
	line-height: 1.2;
}
.bc-am-calendar .bc-slot span {
	font-size: 13px;
	white-space: nowrap;
}
.bc-am-calendar .bc-availability thead th {
	text-transform: none;
	letter-spacing: 0;
	font-size: 13px;
}
.bc-time-hint {
	display: block;
	font-size: 11px;
	margin-top: 4px;
	line-height: 1.2;
}

/* ------- Time slots ------- */
.bc-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.bc-slot {
    position: relative;
    cursor: pointer;
}
.bc-slot input { position: absolute; opacity: 0; pointer-events: none; }
.bc-slot span {
    display: block;
    text-align: center;
    padding: 10px 8px;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--bc-text);
    background: #fff;
    transition: background .15s var(--bc-ease), border-color .15s var(--bc-ease), box-shadow .15s var(--bc-ease);
}
.bc-slot input:checked + span {
    background: var(--bc-brand);
    color: #fff !important;
    border-color: var(--bc-brand);
    box-shadow: 0 4px 12px -3px rgba(40, 60, 42, 0.35);
}
.bc-slot:hover span { border-color: var(--bc-brand); background: var(--bc-brand-50); }

/* ------- Availability table ------- */
.bc-availability {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    margin: 16px 0;
}
.bc-availability th, .bc-availability td {
    padding: 6px 8px;
    text-align: left;
    font-size: 14px;
}
.bc-availability thead th {
    color: var(--bc-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bc-availability tbody th { font-weight: 600; color: var(--bc-text); }
.bc-time-pair { display: flex; align-items: center; gap: 6px; }
.bc-time-pair input { width: 100%; min-width: 0; }
.bc-time-pair span { color: var(--bc-muted); }

/* ------- Button modifiers ------- */
.bc-btn--small { padding: 6px 12px; font-size: 13px; }
.bc-btn--danger {
    background: #fdecec;
    color: #8a1f1f;
    border: 1px solid #f4c0c0;
}
.bc-btn--danger:hover { background: #f9d6d6; }

/* ------- Pharmacy product grid ------- */
.bc-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.bc-product {
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.bc-product__image {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--bc-brand-50);
    overflow: hidden;
}
.bc-product__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bc-product__body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bc-product__title { margin: 0; font-size: 15px; line-height: 1.3; }
.bc-product__title a { color: var(--bc-text); text-decoration: none; }
.bc-product__title a:hover { color: var(--bc-brand); }
.bc-product__price { margin: 0; color: var(--bc-brand); font-weight: 600; }
.bc-product__price del { color: var(--bc-muted); font-weight: 400; margin-right: 6px; }
.bc-product__notes { font-size: 13px; line-height: 1.4; }

/* ------- Recommend form (doctor) ------- */
.bc-recommend {
    margin-top: 12px;
    padding: 10px;
    background: #fafcfb;
    border: 1px dashed var(--bc-border);
    border-radius: 8px;
}
.bc-recommend > summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--bc-brand);
    font-size: 13px;
}
.bc-recommend__list { list-style: disc; padding-left: 20px; margin: 6px 0 0; font-size: 13px; }
.bc-recommend__list li { margin-bottom: 4px; }

/* ------- Payment details (thank-you) ------- */
.bc-pay__details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 16px 0;
    padding: 12px 16px;
    background: var(--bc-brand-50);
    border-radius: 8px;
    font-size: 14px;
}
.bc-pay__details dt { color: var(--bc-muted); font-weight: 600; }
.bc-pay__details dd { margin: 0; color: var(--bc-text); }

/* Submitted/confirmed/rejected badges */
.bc-badge--submitted { background: #fff3cd; color: #856404; }
.bc-badge--rejected  { background: #f8d7da; color: #721c24; }

/* ------- Admin queue table ------- */
.bc-admin-table th, .bc-admin-table td { vertical-align: top; }
.bc-admin-table code { font-size: 13px; }

/* ------- Linked list rows (clickable cards) ------- */
.bc-list__row--linked {
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
    cursor: pointer;
}
.bc-list__row--linked:hover {
    border-color: var(--bc-brand);
    box-shadow: var(--bc-shadow);
}

/* ------- Chips (filters / type tags) ------- */
.bc-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef2ee;
    color: var(--bc-brand);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 4px;
}
.bc-chip--active { background: var(--bc-brand); color: #fff; }
.bc-chip--type   { background: var(--bc-brand-50); }
.bc-chip--file {
    background: #f3f4f6;
    color: var(--bc-text);
    border: 1px solid var(--bc-border);
    margin-top: 6px;
    margin-right: 6px;
}
.bc-chip--file:hover { border-color: var(--bc-brand); color: var(--bc-brand); }

/* ------- Attachments grid (record detail) ------- */
.bc-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.bc-attachment {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--bc-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--bc-text);
    font-size: 14px;
}
.bc-attachment:hover { border-color: var(--bc-brand); color: var(--bc-brand); }
.bc-attachment__icon { font-size: 18px; }

/* ------- Messaging thread ------- */
.bc-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 16px 0 24px;
    padding: 0;
}
.bc-msg {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}
.bc-msg--me    { align-self: flex-end;   align-items: flex-end; }
.bc-msg--other { align-self: flex-start; align-items: flex-start; }
.bc-msg__bubble {
    padding: 10px 14px;
    border-radius: 14px;
    background: #f3f4f6;
    color: var(--bc-text);
    font-size: 14px;
    line-height: 1.5;
}
.bc-msg--me .bc-msg__bubble {
    background: var(--bc-brand);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.bc-msg--other .bc-msg__bubble {
    border-bottom-left-radius: 4px;
}
.bc-msg__attachment {
    display: inline-block;
    margin-top: 8px;
    color: inherit;
    font-size: 13px;
    text-decoration: underline;
    opacity: 0.9;
}
.bc-msg__meta {
    font-size: 11px;
    color: var(--bc-muted);
    margin-top: 4px;
    padding: 0 4px;
}

.bc-badge--unread { background: var(--bc-brand); color: #fff; min-width: 20px; text-align: center; }
.bc-badge--draft     { background: #e2e3e5; color: #383d41; }
.bc-badge--published { background: #d4edda; color: #155724; }
.bc-badge--archived  { background: #f3f4f6; color: var(--bc-muted); }

/* ------- Billing status badges ------- */
.bc-badge--unpaid  { background: #f8d7da; color: #721c24; }
.bc-badge--pending { background: #fff3cd; color: #856404; }
.bc-badge--paid    { background: #d4edda; color: #155724; }
.bc-badge--void    { background: #f3f4f6; color: var(--bc-muted); }
.bc-badge--refunded { background: #e2e3ff; color: var(--bc-brand); }

/* ------- Summary stat cards ------- */
.bc-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 16px 0 20px;
}
.bc-stat {
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: 18px 20px;
    box-shadow: var(--bc-shadow-sm);
    transition: box-shadow .2s var(--bc-ease), transform .2s var(--bc-ease);
}
.bc-stat:hover { box-shadow: var(--bc-shadow); transform: translateY(-2px); }
.bc-stat--brand {
    background: linear-gradient(135deg, var(--bc-brand) 0%, var(--bc-brand-600) 100%);
    border-color: var(--bc-brand);
    color: #fff;
}
.bc-stat__label { font-size: 13px; opacity: .85; margin-bottom: 6px; }
.bc-stat__value { font-size: 28px; font-weight: 700; line-height: 1.1; }
.bc-stat__unit  { font-size: 14px; font-weight: 500; margin-left: 6px; opacity: .8; }
.bc-stat__sub   { font-size: 12px; margin-top: 6px; opacity: .8; }

/* ------- Payment method picker ------- */
.bc-method-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 10px;
}
.bc-method {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid var(--bc-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--bc-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bc-method:hover {
    border-color: var(--bc-brand);
    box-shadow: var(--bc-shadow);
    color: var(--bc-brand);
}
.bc-method__title { font-weight: 600; font-size: 15px; }
.bc-method__sub   { font-size: 13px; color: var(--bc-muted); }

/* ------- Receipt ------- */
.bc-receipt {
    max-width: 700px;
    background: #fff;
    padding: 32px;
    border: 1px solid var(--bc-border);
    border-radius: 12px;
    box-shadow: var(--bc-shadow);
}
.bc-receipt__header { text-align: center; margin-bottom: 20px; }
.bc-receipt__title  { margin: 0; font-size: 22px; color: var(--bc-brand); }
.bc-receipt__subtitle { margin: 4px 0 0; color: var(--bc-muted); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.bc-receipt__meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 20px;
    row-gap: 6px;
    margin: 16px 0 20px;
    font-size: 14px;
}
.bc-receipt__meta dt { color: var(--bc-muted); font-weight: 600; }
.bc-receipt__meta dd { margin: 0; }
.bc-receipt__items { width: 100%; border-collapse: collapse; margin-top: 10px; }
.bc-receipt__items th, .bc-receipt__items td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--bc-border);
    text-align: left;
    font-size: 14px;
}
.bc-receipt__items th.num, .bc-receipt__items td.num { text-align: right; }
.bc-receipt__items tfoot th { font-size: 15px; border-bottom: 0; border-top: 2px solid var(--bc-text); }
.bc-receipt__thanks { text-align: center; margin-top: 24px; color: var(--bc-muted); font-style: italic; }
.bc-receipt__actions { text-align: center; margin-top: 20px; }

@media print {
    .bc-hero, .bc-page-head, nav, .no-print, .bc-receipt__actions { display: none !important; }
    body { background: #fff !important; }
    .bc-receipt { border: 0; box-shadow: none; }
}

/* ------- Generic h3 in cards ------- */
.bc-h3 { margin: 18px 0 10px; font-size: 16px; }

/* -----------------------------------------------------------------------
 * Form input overrides.
 *
 * Many WP themes (Storefront, TwentyTwenty, etc.) aggressively restyle
 * native inputs — stripping borders, tinting backgrounds, changing focus
 * rings. We want the clinic portal to look identical everywhere, so we
 * re-assert our defaults with high specificity + `!important` on the
 * visual properties the theme is most likely to clobber.
 *
 * Scoped to `.bc-app` so we never leak into the theme's own forms.
 * ----------------------------------------------------------------------- */
.bc-app input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="file"]):not([type="image"]),
.bc-app textarea,
.bc-app select {
    border: 1px solid var(--bc-border) !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    background: #fff !important;
    color: var(--bc-text) !important;
    width: 100% !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

/* Re-enable the native dropdown caret on <select> (we killed `appearance`). */
.bc-app select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'><path fill='%235a6478' d='M1 1l5 5 5-5'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
}

.bc-app input:hover:not(:focus),
.bc-app textarea:hover:not(:focus),
.bc-app select:hover:not(:focus) {
    border-color: #c8d4c8 !important;
}

.bc-app input:focus,
.bc-app textarea:focus,
.bc-app select:focus {
    outline: none !important;
    border-color: var(--bc-brand) !important;
    box-shadow: var(--bc-ring) !important;
}

.bc-app textarea {
    min-height: 88px;
    resize: vertical;
}

.bc-app input::placeholder,
.bc-app textarea::placeholder {
    color: #9aa3b4 !important;
    opacity: 1;
}

/* File inputs: let native rendering through but add light border. */
.bc-app input[type="file"] {
    border: 1px dashed var(--bc-border);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fafbfd;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}
.bc-app input[type="file"]:focus {
    outline: none;
    border-color: var(--bc-brand);
    box-shadow: 0 0 0 3px rgba(68, 90, 70, 0.14);
}

/* ------- Front Desk portal ------- */
.bc-app--front-desk {
    max-width: 1180px;
}

.bc-app--front-desk .bc-hero {
    align-items: center;
    padding: 22px 28px;
    margin-bottom: 0;
    border-radius: var(--bc-radius) var(--bc-radius) 0 0;
}

.bc-app--front-desk .bc-hero__eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.bc-app--front-desk .bc-hero__title {
    font-size: 26px;
    margin-bottom: 4px;
}

.bc-app--front-desk .bc-hero__subtitle {
    font-size: 14px;
}

.bc-fd-shell {
    background: var(--bc-bg);
    border: 1px solid var(--bc-border);
    border-top: 0;
    border-radius: 0 0 var(--bc-radius) var(--bc-radius);
    box-shadow: var(--bc-shadow);
    overflow: hidden;
}

.bc-app--front-desk .bc-tabs {
    margin: 0;
    padding: 0 20px;
    background: var(--bc-surface);
    border-bottom: 1px solid var(--bc-border);
    gap: 0;
}

.bc-app--front-desk .bc-tab {
    padding: 14px 18px;
    margin-bottom: 0;
    border-bottom: 3px solid transparent;
}

.bc-app--front-desk .bc-tab--active {
    background: var(--bc-bg);
    border-bottom-color: var(--bc-brand);
    color: var(--bc-brand);
}

.bc-fd-body {
    padding: 24px 28px 32px;
    background: var(--bc-bg);
}

.bc-fd-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.bc-fd-head .bc-h2 {
    margin: 0;
    font-size: 20px;
    color: var(--bc-text);
}

.bc-fd-head__hint {
    margin: 0;
    font-size: 13px;
    color: var(--bc-muted);
    max-width: 420px;
}

.bc-fd-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.bc-fd-search {
    gap: 10px;
}

.bc-search {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 220px;
    min-width: min(100%, 220px);
    max-width: 420px;
}

.bc-search__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bc-text);
}

.bc-search__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    font-size: 15px;
    color: var(--bc-text);
    background: #fff;
    box-sizing: border-box;
}

.bc-search__input:focus {
    outline: none;
    border-color: var(--bc-brand);
    box-shadow: 0 0 0 2px rgba(68, 90, 70, 0.12);
}

.bc-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--bc-border);
    background: #fff;
    color: var(--bc-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.bc-filter-pill:hover {
    border-color: var(--bc-brand);
    color: var(--bc-brand);
    background: var(--bc-brand-50);
}

.bc-filter-pill--active,
.bc-app a.bc-filter-pill--active,
.bc-app a.bc-filter-pill--active:hover,
.bc-app a.bc-filter-pill--active:focus,
.bc-app a.bc-filter-pill--active:visited {
    background: var(--bc-brand);
    border-color: var(--bc-brand);
    color: #fff !important;
}

.bc-filter-pill--active:hover {
    background: var(--bc-brand-600);
    border-color: var(--bc-brand-600);
    color: #fff !important;
}

.bc-fd-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bc-fd-appt {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 168px;
    gap: 20px;
    align-items: start;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    box-shadow: 0 1px 0 rgba(68, 90, 70, 0.03);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.bc-fd-appt:hover {
    border-color: #c8d4c8;
    box-shadow: var(--bc-shadow);
}

.bc-fd-appt__when {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    color: var(--bc-text);
    line-height: 1.3;
}

.bc-fd-appt__patient {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bc-text);
}

.bc-fd-appt__patient .bc-muted {
    font-weight: 500;
}

.bc-fd-appt__contact {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--bc-muted);
}

.bc-fd-appt__contact a {
    color: var(--bc-brand);
    text-decoration: none;
    font-weight: 500;
}

.bc-fd-appt__contact a:hover {
    text-decoration: underline;
}

.bc-fd-appt__reason {
    margin: 0;
    padding: 10px 12px;
    background: var(--bc-surface);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--bc-text);
}

.bc-fd-appt__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.bc-fd-appt__tags .bc-badge {
    margin-left: 0;
}

.bc-fd-appt__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bc-fd-appt__actions form {
    margin: 0;
    width: 100%;
}

.bc-fd-appt__actions .bc-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.bc-btn--soft {
    background: #fff !important;
    color: var(--bc-brand) !important;
    border: 1px solid var(--bc-brand) !important;
    -webkit-text-fill-color: var(--bc-brand) !important;
}

.bc-btn--soft:hover {
    background: var(--bc-brand-50) !important;
    color: var(--bc-brand-600) !important;
    -webkit-text-fill-color: var(--bc-brand-600) !important;
}

.bc-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    background: #fff;
    box-shadow: 0 1px 0 rgba(68, 90, 70, 0.03);
}

.bc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bc-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--bc-muted);
    background: var(--bc-surface);
    border-bottom: 1px solid var(--bc-border);
}

.bc-table tbody td {
    padding: 14px 16px;
    border-top: 1px solid var(--bc-border);
    color: var(--bc-text);
    vertical-align: top;
}

.bc-table tbody tr:hover td {
    background: #fbfcfb;
}

.bc-table a {
    color: var(--bc-brand);
    text-decoration: none;
    font-weight: 500;
}

.bc-table a:hover {
    text-decoration: underline;
}

.bc-fd-shell .bc-alert {
    margin: 16px 28px 0;
    border-radius: 8px;
}

.bc-fd-shell .bc-alert:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 820px) {
    .bc-fd-appt {
        grid-template-columns: 1fr;
    }

    .bc-fd-appt__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .bc-fd-appt__actions form {
        flex: 1 1 calc(50% - 4px);
        min-width: 140px;
    }

    .bc-fd-body {
        padding: 20px 16px 28px;
    }

    .bc-app--front-desk .bc-tabs {
        padding: 0 12px;
    }
}

/* ------- Shared portal shell (parent, doctor, front desk) ------- */
.bc-portal-shell,
.bc-fd-shell {
    background: var(--bc-bg);
    border: 1px solid var(--bc-border);
    border-top: 0;
    border-radius: 0 0 var(--bc-radius) var(--bc-radius);
    box-shadow: var(--bc-shadow);
    overflow: hidden;
}

.bc-portal-body,
.bc-fd-body {
    padding: 24px 28px 32px;
    background: var(--bc-bg);
}

.bc-portal-shell .bc-alert,
.bc-fd-shell .bc-alert {
    margin: 16px 28px 0;
    border-radius: 8px;
}

.bc-app--parent .bc-hero,
.bc-app--doctor .bc-hero,
.bc-app--front-desk .bc-hero {
    align-items: center;
    margin-bottom: 0;
    border-radius: var(--bc-radius) var(--bc-radius) 0 0;
}

.bc-app--parent .bc-hero {
    padding: 28px 28px 24px;
}

.bc-app--doctor .bc-hero,
.bc-app--front-desk .bc-hero {
    padding: 22px 28px;
}

.bc-hero__eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.bc-app--doctor .bc-tabs,
.bc-app--parent .bc-tabs--portal {
    margin: 0;
    padding: 0 20px;
    background: var(--bc-surface);
    border-bottom: 1px solid var(--bc-border);
}

.bc-app--doctor .bc-tab,
.bc-app--parent .bc-tabs--portal .bc-tab {
    padding: 14px 18px;
    margin-bottom: 0;
    border-bottom: 3px solid transparent;
}

.bc-app--doctor .bc-tab--active,
.bc-app--parent .bc-tabs--portal .bc-tab--active {
    background: var(--bc-bg);
    border-bottom-color: var(--bc-brand);
    color: var(--bc-brand);
}

.bc-cards--portal {
    gap: 18px;
}

.bc-app--parent .bc-card {
    border-radius: var(--bc-radius);
    box-shadow: 0 1px 0 rgba(68, 90, 70, 0.04);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.bc-app--parent .bc-card:hover {
    border-color: #c8d4c8;
    box-shadow: var(--bc-shadow);
    transform: translateY(-1px);
}

.bc-app--parent .bc-card__title {
    font-size: 17px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bc-border);
    margin-bottom: 14px;
}

.bc-app--parent .bc-card__list a {
    display: block;
    padding: 8px 0;
    border-radius: 6px;
    transition: color .15s ease, padding-left .15s ease;
}

.bc-app--parent .bc-card__list a:hover {
    padding-left: 4px;
    text-decoration: none;
}

.bc-portal-subhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.bc-portal-subhead .bc-page-head__title {
    margin: 0;
}

.bc-schedule-grid,
.bc-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bc-schedule-slot {
    display: block;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    box-shadow: var(--bc-shadow-xs);
    transition: border-color .15s var(--bc-ease), box-shadow .15s var(--bc-ease);
}
.bc-schedule-slot:hover {
    border-color: var(--bc-border-strong);
    box-shadow: var(--bc-shadow-sm);
}

.bc-schedule-slot__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.bc-schedule-slot__patient {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--bc-text);
}

.bc-schedule-slot__meta { margin: 0 0 8px; }

.bc-schedule-slot__reason {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--bc-text);
}

.bc-badge--visit {
    background: var(--bc-brand-50);
    color: var(--bc-brand);
    border: 1px solid rgba(68, 90, 70, 0.15);
}

.bc-badge--visit-video {
    background: #eef4ff;
    color: #1e4f8a;
    border-color: rgba(30, 79, 138, 0.15);
}

.bc-schedule-slot__time {
    font-size: 16px;
    font-weight: 700;
    color: var(--bc-text);
}

.bc-schedule-slot__end {
    font-weight: 500;
    color: var(--bc-muted);
    font-size: 14px;
}

.bc-portal-appt {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    box-shadow: 0 1px 0 rgba(68, 90, 70, 0.03);
}

.bc-portal-appt__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.bc-portal-appt__meta {
    margin: 0;
    font-size: 14px;
    color: var(--bc-muted);
}

@media (max-width: 820px) {
    .bc-portal-body,
    .bc-fd-body {
        padding: 20px 16px 28px;
    }

    .bc-app--doctor .bc-tabs,
    .bc-app--parent .bc-tabs--portal {
        padding: 0 12px;
    }
}
