#clinicCancellationHistory>summary{cursor:pointer;color:var(--ink);font-size:.88rem;line-height:1.4}
#clinicCancellationHistory>summary>strong{font-size:1.08rem}
#clinicCancellationHistory .history-cancel-author{color:var(--muted);font-size:.74rem}
#clinicCancellationHistory .history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 14px}
#clinicCancellationHistory .history-toolbar p{margin:0;color:var(--muted);font-size:.74rem;line-height:1.5}
#clinicCancellationHistory .history-toolbar button{flex-shrink:0;min-height:30px;height:auto;padding:5px 10px;font-size:.72rem;font-weight:600;color:var(--accent-deep);background:#f4f8f8;border-color:#cddfe1;border-radius:7px}
#clinicCancellationHistory .team-history{display:grid;gap:9px;font-size:.76rem;color:var(--muted)}
#clinicCancellationHistory .history-card{padding:12px 14px;border:1px solid #cddfe1;border-left:3px solid #85a6ac;border-radius:9px;background:#fff;color:var(--ink);font-size:.78rem;line-height:1.5;min-width:0;overflow-wrap:anywhere}
#clinicCancellationHistory .history-card-heading{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:4px}
#clinicCancellationHistory .history-card-heading strong{color:#3d626c;font-size:.82rem;font-weight:650}
#clinicCancellationHistory .history-payment-status{display:inline-block;padding:2px 8px;border-radius:999px;font-size:.68rem;font-weight:700;background:#fff0b3;color:#755600}
#clinicCancellationHistory .history-payment-status[data-status=confirmed]{background:#dff1e6;color:#286040}
#clinicCancellationHistory .history-payment-status[data-status=rejected]{background:#f9e2df;color:#8c3932}
#clinicCancellationHistory .history-payment-status[data-status=none]{background:#edf1f2;color:#59676e}
#clinicCancellationHistory .history-card p{margin:3px 0 0}
#clinicCancellationHistory .history-service-tag{display:inline-block;padding:1px 6px;border-radius:5px;background:#e7f1f2;color:#315d63;font-size:.72rem;font-weight:600}
#clinicCancellationHistory .history-card-reference{color:var(--muted);font-size:.72rem}
@media(max-width:600px){#clinicCancellationHistory .history-toolbar{align-items:flex-start;flex-direction:column}#clinicCancellationHistory .history-card{padding:10px}}
.team-toolbar,.team-actions{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.team-toolbar{justify-content:space-between;margin-bottom:.8rem}
.team-member,.team-payment{display:flex;justify-content:space-between;gap:1rem;padding:1.1rem 0;border-bottom:1px solid var(--line,#dfe4e0)}
.team-member p,.team-payment p,.team-appointment p{margin:.35rem 0;overflow-wrap:anywhere}
.team-member .team-actions,.team-payment .team-actions{align-content:center;justify-content:flex-end}
.team-management .team-member{flex-direction:column}
.team-management .team-member .team-actions{justify-content:flex-start}
.team-management form,.team-onboarding form{display:grid;gap:1rem;margin:1rem 0}
.team-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.team-permissions label{display:flex;gap:.65rem;align-items:center;font-size:.9rem}
.team-permissions input{width:auto}
.team-permission-group{min-width:0;margin:0;padding:1rem;border:1px solid var(--line,#dfe4e0);border-radius:12px;display:flex;flex-direction:column;gap:1rem}
.team-permission-group legend{padding:0 .3rem;font-size:.85rem;font-weight:700;color:var(--accent-deep)}
.team-permission-group label{align-items:flex-start;line-height:1.4}
.team-permission-group input,.team-select-all input{flex:none;width:16px;height:16px;margin:.2rem 0 0;accent-color:var(--accent-deep)}
.team-management .team-select-all{display:flex;align-items:center;gap:.65rem;font-size:.9rem}
#teamMembers{display:grid;gap:1rem;margin-top:1.5rem}
.team-management .team-member-card{padding:1.2rem;border:1px solid var(--line,#dfe4e0);border-radius:14px;background:var(--white,#fff);box-shadow:0 4px 16px rgba(30,50,50,.04)}
.team-member-heading{min-width:0}
.team-member-heading>strong{display:block;overflow-wrap:anywhere}
.team-member-heading .eyebrow{margin-bottom:.5rem;font-size:.7rem}
.team-member-status{display:inline-block;padding:.3rem .65rem;border-radius:20px;background:var(--accent-soft,#edf3f3);font-size:.78rem;font-weight:600}
.team-member-grants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}
.team-grant-heading{font-size:.8rem;font-weight:700;color:var(--accent-deep)}
.team-member-grants ul{margin:.5rem 0 0;padding-left:1rem;font-size:.8rem;line-height:1.5}
.team-member-grants li+li{margin-top:.35rem}
.team-member-card small{font-size:.75rem;color:var(--muted)}
.team-member-card .team-actions{padding-top:.9rem;border-top:1px solid var(--line,#dfe4e0)}
.team-member-card .team-actions button{font-size:.8rem;padding:.5rem .75rem}
.team-context-link{display:grid;justify-items:start;gap:.5rem;margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--line,#dfe4e0)}
.team-context-link small{font-size:.78rem;color:var(--muted);line-height:1.5}
#clinicCancellationHistory{margin-top:1.5rem}
#clinicTeamContent{padding:1rem}
#clinicTeamContent>p{font-size:.82rem;line-height:1.45;margin:0 0 .75rem}
#teamInviteForm{gap:.6rem;margin:.65rem 0}
#teamInviteForm>label{font-size:.78rem;gap:.3rem;margin:0}
#teamInviteForm input:not([type=checkbox]){font-size:.85rem;padding:.5rem .65rem;min-height:0}
#teamInviteForm .team-permission-group{gap:.55rem;padding:.65rem;justify-content:flex-start}
#teamInviteForm .team-permission-group label{font-size:.76rem;gap:.45rem;margin:0;min-height:0;font-weight:500}
#teamInviteForm .team-permission-group legend{font-size:.76rem}
#teamInviteForm .team-actions{gap:.5rem}
#clinicTeamContent .team-actions button,#clinicTeamContent .team-context-link button{font-size:.76rem;padding:.45rem .7rem;min-height:0;flex:0 1 auto;width:auto}
#teamInviteForm [role=status]:empty{display:none}
#teamMembers{margin-top:.85rem;gap:.55rem}
.team-management details.team-member-card{padding:0;box-shadow:none;border-radius:10px}
.team-member-card summary{display:flex;align-items:center;gap:.6rem;padding:.7rem;cursor:pointer;list-style:none}
.team-member-card summary::-webkit-details-marker{display:none}
.team-member-card summary>strong{font-size:.82rem;overflow-wrap:anywhere;min-width:0;flex:1}
.team-member-card summary .team-member-status{font-size:.65rem;padding:.2rem .4rem;margin:0;max-width:40%}
.team-member-toggle{font-size:1rem;color:var(--accent-deep);flex:none}
.team-member-toggle::before{content:'+'}
.team-member-card[open] .team-member-toggle::before{content:'−'}
.team-member-details{padding:0 .7rem .7rem;border-top:1px solid var(--line)}
.team-member-email{font-size:.76rem;overflow-wrap:anywhere}
.team-member-grants{margin:.65rem 0;gap:.7rem}
.team-member-grants ul{font-size:.74rem;margin-top:.25rem}
.team-member-card .team-actions{padding-top:.6rem;margin-top:.6rem}
.team-context-link[hidden]{display:none}
.team-agenda{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(280px,1.1fr);gap:1.5rem}
.team-month-grid,.team-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.team-weekdays{font-size:.8rem;text-align:center;margin:.8rem 0}
.team-month-grid .date-button{min-width:0;min-height:54px;padding:.4rem}
.team-appointment{border-bottom:1px solid var(--line,#dfe4e0);padding:1rem 0}
.team-onboarding{max-width:580px;margin:0 auto}
.team-proof-retry{flex-basis:100%;border-top:1px solid var(--line,#dfe4e0);padding-top:.8rem}
.cancel-item:has(.team-proof-retry){flex-wrap:wrap}
#assistantView .panel{margin-bottom:1rem}
#assistantView .team-actions button{font-size:.82rem}
#assistantView{--team-teal:#46787f;--team-soft:#edf7f8;--team-line:#c9dfe1;font-size:.82rem}
#assistantView>.panel{padding:1rem;border-color:var(--team-line);background:linear-gradient(135deg,#f2f8f8,#fff 65%)}
#assistantView>.panel:has(>.team-agenda){background:#fff}

#assistantView h3{font-size:1rem;color:#315d63;margin:0 0 .7rem}
#assistantView h4{font-size:.82rem;color:#315d63;margin:.7rem 0}
#assistantView .team-day-heading{margin:0 0 .8rem;text-align:right}
#assistantView .team-day-heading .eyebrow,#assistantView .team-calendar-heading .eyebrow{font-size:.7rem;margin:0 0 .3rem;color:#46787f}
#assistantView .team-day-heading h4{font-size:1rem;margin:0}
#assistantView .team-day-actions{margin-top:.6rem}
.team-availability-dialog{max-width:min(580px,calc(100vw - 24px))}
.team-availability-dialog .dialog-card{padding:1.2rem;font-size:.85rem}
.team-availability-dialog h3{font-size:1.05rem;margin:0}
.team-availability-dialog button{font-size:.8rem;padding:.4rem .65rem}
.team-availability-dialog .muted{font-size:.75rem}
.team-availability-results section{padding:.6rem 0;border-bottom:1px solid var(--line)}
.team-availability-results h4{font-size:.85rem;margin:.3rem 0 .6rem}
.team-available-times{display:flex;flex-wrap:wrap;gap:.4rem}
.team-available-times span{padding:.3rem .6rem;background:#e7f1f2;color:#315d63;border-radius:6px;font-weight:600}
.team-available-times button{background:#e7f1f2;color:#315d63;border:1px solid #bfd4d7}
.team-booking-form{display:grid;gap:.7rem}
.team-booking-form label{font-size:.8rem;margin:0;gap:.3rem}
.team-booking-form input,.team-booking-form select{font-size:.85rem;padding:.45rem .6rem}
.team-booking-form .team-booking-check{display:flex;align-items:center;gap:.5rem}
.team-booking-check input{width:16px;height:16px}
.team-booking-form fieldset{margin:0;padding:.7rem;background:#edf7f8;border-radius:8px}
.team-booking-form fieldset label+label{margin-top:.6rem}
.team-booking-form [role=status]:empty{display:none}
.team-booking-form .team-actions button{width:auto;flex:0 1 auto;font-size:.8rem;padding:.45rem .7rem}
#assistantView .team-calendar-heading h3{margin:0 0 .8rem}
#assistantView .team-month-nav{display:flex;justify-content:center;align-items:center;gap:.6rem;margin:0 0 .6rem}
#assistantView .team-month-nav h3{font-size:.95rem;margin:0}
#assistantView .team-month-nav button{background:transparent;border-color:transparent;padding:.25rem .5rem;font-size:1.1rem}
#assistantView .team-toolbar{gap:.5rem;margin-bottom:.6rem}
#assistantView .team-toolbar h3{margin:0;font-size:.95rem}
#assistantView .team-toolbar>strong{font-size:.85rem}
#assistantView .muted{font-size:.72rem;margin:.3rem 0 0}
#assistantView button.ghost-button{font-size:.74rem;padding:.4rem .65rem;min-height:32px;line-height:1.25;border-color:#bfd4d7;color:#315d63;background:#f6fbfb}
#assistantView button.ghost-button:hover{background:#dcecee;border-color:var(--team-teal)}
#assistantView button[data-team-action=confirm],#assistantView button[data-team-action=reschedule]{background:var(--team-teal);border-color:var(--team-teal);color:#fff}
#assistantView .team-agenda{gap:1rem}
#assistantView .team-weekdays{font-size:.7rem;color:#315d63;margin:.5rem 0}
#assistantView .team-month-grid .date-button{font-size:.74rem;min-height:44px;background:#fff;border-color:var(--team-line);color:#293538}
#assistantView .team-month-grid .date-button.has-availability{background:#e7f1f2}
#assistantView .team-month-grid .date-button.selected{outline:2px solid var(--team-teal);outline-offset:-2px}
#assistantView .team-month-grid .date-button.selected.has-availability{background:var(--team-teal);color:#fff}
#assistantView .team-month-grid .date-button.outside{background:#fff}
#assistantView .team-payment-heading{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-bottom:.3rem}
#assistantView .team-payment-status{display:inline-block;border-radius:20px;padding:.15rem .5rem;font-size:.7rem;font-weight:700;background:#fff0b3;color:#755600;white-space:nowrap}
#assistantView .team-payment-status[data-status=confirmed]{background:#dff1e6;color:#286040}
#assistantView .team-payment-status[data-status=rejected]{background:#f9e2df;color:#8c3932}
#assistantView .team-service-tag{display:inline-block;padding:.1rem .4rem;border-radius:5px;background:#e7f1f2;color:#315d63;font-size:.74rem;font-weight:600}
#assistantView .team-appointment,#assistantView .team-payment{font-size:.79rem;line-height:1.45;padding:.75rem;margin:.5rem 0;background:#fff;border:1px solid var(--team-line);border-left:3px solid #78a6ac;border-radius:9px;gap:.75rem}
#assistantView .team-appointment>strong,#assistantView .team-payment strong{font-size:.82rem;color:#315d63}
#assistantView .team-appointment p,#assistantView .team-payment p{margin:.2rem 0}
#assistantView .team-actions{gap:.4rem;margin-top:.5rem}
#assistantView .team-payment>div:first-child{min-width:0}
#assistantView .team-payment .team-actions{flex-shrink:0}
.team-contexts>button{margin:.5rem 0}
@media(max-width:760px){.team-agenda,.team-permissions{grid-template-columns:1fr}.team-member,.team-payment{flex-direction:column}.team-member .team-actions,.team-payment .team-actions{justify-content:flex-start}}
@media(max-width:480px){.team-member-grants{grid-template-columns:1fr}}

#assistantView .team-availability-results section{padding:.7rem;border:1px solid var(--team-line);border-radius:9px;background:#fff;margin-bottom:.6rem}
#assistantView .team-availability-results h4{margin:0 0 .3rem}
#assistantView .team-available-times{margin-top:.6rem}
#assistantView .team-available-times button{background:#e7f1f2}

#assistantView .team-payment-data{flex:1;min-width:0;max-width:100%}
#assistantView .team-payment-heading{flex-wrap:nowrap;gap:.35rem}
#assistantView .team-payment-heading strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#assistantView .team-payment-status{flex-shrink:0}
#assistantView .team-payment-status[data-status=cancelled]{background:#f3e5df;color:#814936}
#assistantView .team-payment-data>p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.topbar-copy.team-header{display:grid;grid-template-columns:minmax(0,max-content) auto;align-items:center;column-gap:1rem;row-gap:.35rem;width:100%;min-width:0}
.topbar-copy.team-header>.eyebrow{grid-column:1;grid-row:1;margin:0}
.topbar-copy.team-header>h2{grid-column:1;grid-row:2;margin:0;min-width:0;overflow-wrap:anywhere}
.team-agenda-prefix{color:#315d63}
.team-header-controls{display:flex;align-items:center;gap:.4rem}
.team-header-actions{grid-column:2;grid-row:1;justify-self:end}
.team-header-agenda{grid-column:2;grid-row:2}
.team-header-controls .ghost-button{font-size:.72rem;padding:.3rem .55rem;min-height:28px;line-height:1.2;border-color:#bfd4d7;background:#f6fbfb;color:#315d63;white-space:nowrap}
.team-header-controls .ghost-button:hover{background:#dcecee}
@media(max-width:600px){.topbar-copy.team-header{column-gap:.5rem}.topbar-copy.team-header>.eyebrow{font-size:.62rem;letter-spacing:.08em}.topbar-copy.team-header>h2{font-size:1.6rem}.team-header-controls{gap:.25rem}.team-header-controls .ghost-button{font-size:.65rem;padding:.3rem .4rem}}

#assistantView .team-booked-appointment{width:100%;max-width:360px;padding:8px 10px;margin:.5rem 0 .5rem auto;font-size:.68rem;line-height:1.3;border-width:1px;border-radius:7px}
#assistantView .team-appointment-topline{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;margin-bottom:4px}
#assistantView .team-appointment-topline>strong{font-size:.76rem;line-height:1.18;color:#315d63;white-space:nowrap}
#assistantView .team-appointment-topline .team-actions{margin:0 0 0 auto;gap:5px;justify-content:flex-end}
#assistantView .team-appointment-topline .team-actions button{min-height:24px;padding:0 7px;font-size:.6rem;line-height:1.2;border-radius:6px}
#assistantView .team-booked-appointment .team-service-tag{font-size:.65rem;padding:.05rem .3rem}
#assistantView .team-booked-appointment p{margin:2px 0}
#assistantView .team-booked-appointment .team-appointment-contact{font-size:.65rem;color:var(--muted)}
