/* Shared server calendar: the same quiet Tiffany surfaces as the access screens. */
/* Payments share the existing glass dialog shell; only the surface content differs. */
.cal-finance { padding: 22px 0 4px; }
.cal-finance-heading,.cal-finance-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal-finance-heading { margin-bottom: 17px; font-size: 14px; }
.cal-payment-state { color: #5d8078; border-radius: 11px; background: #eaf4efd9; padding: 6px 9px; font-size: 10px; }
.cal-finance-row { margin-top: 11px; font-size: 13px; color: #5d7e75; }
.cal-finance-row strong { color: #285e5b; white-space: nowrap; }
.cal-finance-row.is-overpaid strong,.cal-payment-state.is-overpaid { color: #947447; }
.cal-finance-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 19px; }
.cal-money-note { color: #6c8279; font-size: 11px; line-height: 1.6; margin: 12px 0; }
.cal-money-balance { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px; margin-bottom: 22px; border-radius: 18px; background: #e4f5efad; }
.cal-money-balance span { color: #557b71; font-size: 13px; }
.cal-money-balance strong { color: #285e5b; font-size: 23px; white-space: nowrap; }
.cal-payment-methods-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; color: #55786e; font-size: 12px; }
.cal-split-toggle { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 11px; color: #6b8379; }
.cal-split-toggle input { width: 15px; height: 15px; accent-color: #218f87; }
.cal-payment-methods { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-bottom: 22px; }
.cal-payment-methods .auth-button { padding: 11px 8px; min-width: 0; font-size: 13px; background: #ffffffbb; border-radius: 15px; }
.cal-payment-methods .auth-button[aria-pressed=true] { color: #256f67; border-color: #8bcbbf; background: #dff3edd9; box-shadow: inset 0 1px #ffffffbb; }
.cal-split-fields { border: 1px solid #cee6dc; border-radius: 19px; background: #ffffff6b; padding: 4px 17px 3px; margin-bottom: 20px; }
.cal-split-fields .auth-field { display: grid; grid-template-columns: minmax(90px,1fr) minmax(0,1.1fr); align-items: center; gap: 13px; margin-bottom: 13px; }
.cal-split-fields .auth-field input { min-width: 0; text-align: right; }
.cal-money-preview { display: flex; flex-direction: column; gap: 12px; padding: 18px 0 5px; border-top: 1px solid #d3e8df; }
.cal-money-preview > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; font-size: 12px; color: #628074; }
.cal-money-preview strong { font-weight: 600; color: #2c645e; text-align: right; }
.cal-money-preview > div:first-child strong { font-size: 20px; }
.cal-money-edit.auth-button { margin-top: 20px; border-color: transparent; background: transparent; color: #5e8278; padding-left: 0; }
.cal-money-notice { padding: 14px 16px; border: 1px solid #e7dcc6; border-radius: 16px; background: #fff9ead4; color: #89714e; font-size: 12px; line-height: 1.6; margin-bottom: 20px; }
.cal-history-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 22px; padding: 16px; border-radius: 18px; background: #e9f6efb8; }
.cal-history-totals span { display: block; color: #688378; font-size: 11px; margin-bottom: 8px; }
.cal-history-totals strong { font-size: 15px; color: #2e645c; }
.cal-payment-group { border: 1px solid #d2e7de; border-radius: 20px; padding: 17px; background: #ffffffb2; margin-top: 14px; }
.cal-payment-group-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #446f65; margin-bottom: 13px; }
.cal-payment-group-heading > strong { font-size: 13px; }
.cal-payment-group-heading > small { color: #7b8e82; font-size: 10px; }
.cal-payment-entry + .cal-payment-entry { border-top: 1px solid #dfebe5; padding-top: 13px; margin-top: 13px; }
.cal-payment-entry > div:first-child { display: flex; justify-content: space-between; gap: 15px; font-size: 13px; }
.cal-payment-entry > small { display: block; color: #758a7f; font-size: 10px; line-height: 1.6; margin-top: 6px; }
.cal-payment-entry > p { font-size: 12px; margin-top: 10px; color: #677d73; white-space: pre-wrap; overflow-wrap: anywhere; }
.cal-payment-entry .is-refund { color: #9b7163; }
.cal-history-refund { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.cal-history-refund > small { font-size: 10px; color: #7c8c7e; }
.cal-history-refund .auth-button { color: #8a7462; padding: 7px 11px; min-height: 34px; font-size: 10px; border-color: #dedfd2; }
.cal-journal-finance { color: #477b6c !important; }
@media(max-width:460px) { .cal-money-balance { align-items: flex-start; flex-wrap: wrap; }.cal-money-balance strong { margin-left: auto; }.cal-payment-methods { gap: 7px; }.cal-payment-methods .auth-button { font-size: 12px; padding-inline: 5px; }.cal-history-totals { grid-template-columns: 1fr; gap: 12px; }.cal-history-totals > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }.cal-history-totals span { margin: 0; }.cal-payment-group { padding: 14px; }.cal-payment-group-heading { align-items: flex-start; flex-direction: column; gap: 5px; }.cal-split-fields { padding-inline: 13px; }.cal-split-fields .auth-field { grid-template-columns: minmax(70px,.8fr) minmax(0,1fr); gap: 10px; } }
.cal-workspace { min-width: 0; }
.cal-toolbar { display: grid; grid-template-columns: auto minmax(100px,1fr) auto; align-items: center; gap: 18px; border-block: 1px solid #c9e6df; padding: 18px 0; margin-bottom: 25px; }
.cal-date-controls { display: flex; align-items: center; gap: 7px; }
.cal-date input { min-width: 142px; min-height: 44px; padding: 9px 10px; border: 0; border-radius: 13px; background: #ffffff8a; color: #28575a; font-weight: 600; }
.cal-arrow.auth-button { padding: 8px; width: 38px; min-height: 42px; border-color: transparent; background: transparent; font-size: 24px; }
.cal-today.auth-button { border: 0; background: transparent; padding-inline: 9px; font-size: 12px; }
.cal-doctor-search { justify-self: end; width: min(100%,280px); margin: 0; }
.cal-search-placeholder { visibility: hidden; pointer-events: none; }
.cal-view-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 300px; padding: 5px; border: 1px solid #cbe6df; border-radius: 20px; background: #dff2ee7d; }
.cal-view-switch { grid-column: 3; justify-self: end; }
.cal-view-switch .auth-button { position: relative; z-index: 1; border: 0; background: transparent; min-height: 44px; font-size: 12px; padding: 10px 6px; color: #5b7c77; }
.cal-view-switch .auth-button[aria-pressed=true] { color: #256e6d; }
.cal-view-switch .auth-button:hover { background: transparent; }
.cal-view-indicator { position: absolute; left: 5px; top: 5px; bottom: 5px; width: calc((100% - 10px)/2); border-radius: 15px; background: #ffffffed; box-shadow: 0 3px 9px #316f6510; transition: transform 180ms ease; }
.cal-view-switch.is-journal .cal-view-indicator { transform: translateX(100%); }
.cal-calendar { padding: 0 14px 23px; overflow: hidden; }
.cal-calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 25px 14px 21px; }
.cal-calendar-heading h2 { font-size: 21px; letter-spacing: -.4px; }
.cal-calendar-heading p { margin-top: 7px; font-size: 12px; color: #617d79; }
.cal-table-scroll { overflow: auto; scrollbar-width: thin; scrollbar-color: #afd6cb transparent; padding: 3px 3px 13px; }
.cal-table { border-collapse: separate; border-spacing: 7px; width: 100%; min-width: 1340px; table-layout: fixed; }
.cal-table th,.cal-table td { padding: 0; border: 0; background: transparent; text-align: center; }
.cal-table .cal-doctor-column { width: 230px; text-align: left; padding-right: 16px; font-size: 13px; color: #567e78; }
.cal-date-tile { border-radius: 18px; padding: 13px 3px; min-height: 88px; display: flex; flex-direction: column; justify-content: center; gap: 6px; background: #eff9f6c7; font-weight: 500; }
.cal-date-tile small { font-size: 11px; color: #5c827b; }
.cal-date-tile strong { font-size: 18px; font-weight: 600; }
.cal-date-tile.is-today { background: #d8f2ebd4; box-shadow: inset 0 0 0 1px #a6dacf; }
.cal-doctor-name { display: flex; align-items: center; gap: 12px; padding: 10px 2px; }
.cal-doctor-name strong { font-weight: 600; font-size: 14px; color: #315e61; display: block; overflow-wrap: anywhere; }
.cal-doctor-name small { font-size: 11px; display: block; margin-top: 6px; line-height: 1.5; }
.cal-cell { width: 100%; min-height: 86px; border: 1px solid #cfe3df; border-radius: 18px; color: #426d70; background: #ffffffd9; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; transition: border-color 160ms,box-shadow 160ms; padding: 8px 3px; }
.cal-cell.occupied,.cal-slot.occupied { background: #e4ebec; border-color: #d1dfe1; }
.cal-cell:hover,.cal-slot:hover { border-color: #78bfb6; box-shadow: inset 0 0 0 1px #78bfb6; }
.cal-cell strong { font-size: 23px; font-weight: 650; }
.cal-cell small { font-size: 10px; color: #71857e; }
.cal-sync-note { padding: 15px 2px 2px; color: #6a847d; font-size: 11px; }
.cal-dialog { padding: 0; color: #234f50; border: 1px solid #fffffff5; border-radius: 28px; background: linear-gradient(145deg,#ffffffe5,#effaf6df); box-shadow: 0 22px 65px #173f4629,inset 0 1px #fff; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; backdrop-filter: blur(8px); }
.cal-dialog[open] { animation: none !important; opacity: 1 !important; transform: none !important; }
.cal-dialog::backdrop { background: #254d4c35; }
.cal-day-dialog { width: min(1120px,calc(100vw - 48px)); }
.cal-editor-dialog { width: min(620px,calc(100vw - 32px)); }
.cal-service-dialog { width: min(640px,calc(100vw - 32px)); }
.cal-dialog-heading { padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 17px; border-bottom: 1px solid #cde6de; }
.cal-dialog-heading h2 { font-size: 23px; letter-spacing: -.5px; }
.cal-dialog-heading .auth-eyebrow { margin-bottom: 10px; }
.cal-day-heading { text-align: center; }
.cal-day-heading h2 { font-size: 20px; }
.cal-day-heading p { font-size: 12px; color: #648077; margin-top: 7px; }
.cal-day-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 24px; padding: 26px; }
.cal-slots-panel h3 { font-size: 19px; margin-bottom: 7px; }
.cal-slots { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 22px 0 17px; }
.cal-slot { min-height: 77px; min-width: 0; padding: 11px 9px; border: 1px solid #bfded5; border-radius: 17px; background: #ffffffcc; color: #416a6b; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; transition: border-color 160ms,box-shadow 160ms; }
.cal-slot strong { font-size: 18px; font-weight: 600; }
.cal-slot small { font-size: 10px; text-align: left; }
.cal-slot.selected { box-shadow: inset 0 0 0 2px #4aa9a3; border-color: #4aa9a3; }
.cal-legend { display: flex; gap: 16px; font-size: 11px; color: #6b857c; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 12px; height: 12px; border: 1px solid #badacf; background: #fff; border-radius: 4px; }
.cal-legend i.occupied { background: #e4ebec; }
.cal-visit-panel { border: 1px solid #ffffffee; border-radius: 23px; padding: 23px; background: #ffffff9e; min-width: 0; }
.cal-empty-visit { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 350px; text-align: center; color: #5c7d73; gap: 18px; }
.cal-empty-visit h3 { font-size: 20px; color: #335d5b; }
.cal-empty-visit p { font-size: 14px; max-width: 280px; }
.cal-empty-visit .auth-avatar { width: 64px; height: 64px; font-size: 32px; border-radius: 22px; }
.cal-visit-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 23px; }
.cal-visit-heading > strong { font-size: 20px; }
.cal-visit-panel h3 { font-size: 21px; line-height: 1.35; overflow-wrap: anywhere; }
.cal-patient-contact { margin: 12px 0 15px !important; color: #608075; font-size: 14px; }
.cal-visit-service { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; margin-top: 10px; border-block: 1px solid #d5e8e1; font-size: 15px; }
.cal-visit-service small,.cal-note small { font-size: 11px; color: #6a867d; }
.cal-note { padding: 17px 0; }
.cal-note p { font-size: 13px; margin-top: 7px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cal-visit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cal-visit-actions > .auth-button.primary { width: 100%; }
.cal-quiet-danger.auth-button { border: 0; background: transparent; color: #9b6761; font-size: 12px; }
.cal-cancelled { margin-top: 22px; font-size: 12px; }
.cal-cancelled summary { cursor: pointer; padding: 9px 0; }
.cal-cancelled .auth-button { display: flex; margin-top: 7px; }
.cal-editor-body { padding: 24px 26px; }
.cal-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.cal-editor-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 18px 26px; border-top: 1px solid #d5e8e1; background: #f3fbf8e8; }
.cal-fields textarea { font: inherit; width: 100%; resize: vertical; min-height: 80px; padding: 13px 15px; border: 1px solid #b9d8d1; border-radius: 15px; background: #ffffffda; color: #214b50; }
.cal-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cal-field-row input { min-width: 0; }
.cal-context { display: flex; flex-direction: column; gap: 7px; margin-bottom: 22px; padding: 14px 16px; background: #e4f5efad; border-radius: 16px; font-size: 14px; }
.cal-context span,.cal-context small { color: #648077; font-size: 12px; }
.cal-patient-picker { margin-bottom: 22px; }
.cal-patient-picker .auth-search { margin-bottom: 12px; }
.cal-patient-list-label { font-size: 11px; color: #68857d; display: block; margin-bottom: 7px; }
.cal-patient-option { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 0; text-align: left; background: transparent; color: #365e5d; font-size: 12px; }
.cal-patient-option:hover { background: #e1f3ed; }
.cal-patient-option small { color: #70877d; font-size: 11px; }
.cal-selected-patient { display: flex; justify-content: space-between; gap: 13px; align-items: center; border: 1px solid #b9ddd0; padding: 15px; border-radius: 17px; background: #ecf9f2bf; }
.cal-selected-patient strong { display: block; font-size: 15px; }
.cal-selected-patient small { display: block; color: #668276; margin-top: 6px; font-size: 12px; }
.cal-patient-hint { margin: 9px 0 19px !important; }
.cal-select-button { width: 100%; justify-content: flex-start; text-align: left; }
.cal-choice-field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.cal-choice-field legend { font-size: 13px; color: #52746c; margin-bottom: 10px; }
.cal-doctor-options { max-height: 190px; overflow-y: auto; display: grid; gap: 8px; scrollbar-width: thin; }
.cal-radio { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid #cde5dc; border-radius: 15px; cursor: pointer; background: #ffffff9a; }
.cal-radio:has(input:checked) { border-color: #8dcabe; background: #e4f6ee; }
.cal-radio input { width: 16px; height: 16px; accent-color: #208e88; flex: 0 0 auto; }
.cal-radio span { font-size: 13px; }
.cal-radio small { display: block; font-size: 11px; color: #688277; margin-top: 4px; }
.cal-service-group { margin-top: 22px; }
.cal-service-group h3 { font-size: 15px; margin-bottom: 10px; }
.cal-service-option { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px; border: 1px solid #d0e7dd; border-radius: 15px; background: #ffffffaa; color: #365f5d; font-size: 13px; margin-top: 8px; text-align: left; }
.cal-service-option:hover { border-color: #83c9b7; background: #e9f8f1; }
.cal-service-option span { white-space: nowrap; color: #648276; }
.cal-journal { padding: 0 25px 26px; }
.cal-journal .cal-calendar-heading { padding-inline: 0; }
.cal-patient-group { padding: 17px; margin-top: 13px; background: #ffffffaa; border: 1px solid #d3e7e0; border-radius: 20px; }
.cal-patient-group-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.cal-patient-group-heading strong { display: block; font-size: 15px; }
.cal-patient-group-heading small { display: block; font-size: 11px; color: #648277; margin-top: 6px; }
.cal-journal-row { display: grid; grid-template-columns: 55px minmax(140px,1fr) minmax(140px,1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 13px 10px; border: 0; border-radius: 13px; background: transparent; text-align: left; color: #496d66; font-size: 12px; }
.cal-journal-row:hover { background: #e6f6ef; }
.cal-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body:has(.cal-dialog[open])::before { animation-play-state: paused !important; }
.cal-services-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cal-services-heading > strong { font-size: 15px; }
.cal-visit-lines { list-style: none; padding: 0; margin: 5px 0 0; display: grid; gap: 14px; }
.cal-visit-lines li { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; font-size: 13px; }
.cal-visit-lines li > div { min-width: 0; }
.cal-visit-lines li > div > strong { display: block; font-weight: 550; line-height: 1.45; overflow-wrap: anywhere; }
.cal-visit-lines li > strong { white-space: nowrap; font-weight: 600; padding-top: 2px; }
.cal-visit-lines small { display: block; margin-top: 5px; line-height: 1.5; }
.cal-visit-service .cal-service-unavailable,.cal-draft-line .cal-service-unavailable { color: #8b6c56; }
.cal-visit-total { display: flex; justify-content: space-between; gap: 15px; padding-top: 14px; margin-top: 7px; border-top: 1px solid #d5e8e1; font-size: 14px; }
.cal-visit-total strong { white-space: nowrap; font-size: 18px; }
.cal-journal-services { overflow-wrap: anywhere; line-height: 1.5; }
.cal-journal-services small { display: block; margin-top: 4px; color: #486e67; font-weight: 600; }
.cal-draft-line { margin-top: 12px; padding: 17px; border: 1px solid #d4e8e1; border-radius: 20px; background: #ffffffb8; }
.cal-draft-line-name strong { display: block; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.cal-draft-line-name small { display: block; margin-top: 5px; font-size: 11px; color: #648077; line-height: 1.5; }
.cal-draft-line-controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-top: 13px; }
.cal-draft-line-controls > strong { text-align: right; font-size: 15px; white-space: nowrap; }
.cal-quantity { display: flex; align-items: center; border: 1px solid #bfded5; border-radius: 13px; overflow: hidden; background: #ffffffc7; }
.cal-quantity button { width: 36px; min-height: 39px; padding: 6px; border: 0; background: transparent; color: #386c66; font-size: 19px; transition: background 180ms; }
.cal-quantity button:hover:not(:disabled) { background: #dff3ed; }
.cal-quantity button:disabled { color: #a6bdb7; cursor: default; }
.cal-quantity input { width: 53px; min-height: 39px; padding: 7px 3px; border: 0; border-inline: 1px solid #d7e9e2; border-radius: 0; text-align: center; color: #285c56; background: transparent; font: inherit; font-size: 14px; -moz-appearance: textfield; appearance: textfield; }
.cal-quantity input::-webkit-inner-spin-button,.cal-quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cal-quantity input:invalid { background: #fff3edd9; }
.cal-remove-line.auth-link { padding: 7px 0; font-size: 11px; color: #956c63; white-space: nowrap; }
.cal-add-services.auth-button { margin-top: 17px; }
.cal-draft-empty { padding: 28px 18px; text-align: center; border: 1px dashed #badbd0; border-radius: 20px; color: #557b70; background: #ffffff66; }
.cal-draft-empty strong { font-size: 15px; }
.cal-draft-empty p { font-size: 12px; margin-top: 9px; }
.cal-draft-total { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 25px; padding-top: 20px; border-top: 1px solid #cce4da; }
.cal-draft-total span { display: block; font-size: 14px; font-weight: 600; }
.cal-draft-total small { display: block; max-width: 270px; margin-top: 6px; font-size: 11px; color: #6a8379; line-height: 1.5; }
.cal-draft-total > strong { font-size: 21px; text-align: right; }
.cal-removed-lines { margin-top: 20px; font-size: 12px; color: #688176; }
.cal-removed-lines summary { cursor: pointer; padding: 7px 0; }
.cal-removed-lines p { font-size: 11px; line-height: 1.5; margin: 7px 0; }
.cal-removed-lines > div { display: flex; gap: 13px; align-items: center; justify-content: space-between; padding: 8px 0; }
.cal-removed-lines > div > span { overflow-wrap: anywhere; }
.cal-removed-lines .auth-button { flex: 0 0 auto; }
.cal-price-review { margin-top: 19px; padding: 15px; border: 1px solid #e8dccc; border-radius: 17px; background: #fff9ecc7; }
.cal-price-review p { font-size: 12px; line-height: 1.6; margin-bottom: 10px; color: #786951; }
.cal-picker-hint { font-size: 12px; line-height: 1.6; color: #617f73; margin-bottom: 16px; }
.cal-service-categories { display: flex; gap: 7px; flex-wrap: wrap; margin: 18px 0; }
.cal-service-categories .auth-button { border-color: #d4e7df; background: #ffffff91; }
.cal-service-categories .auth-button[aria-pressed=true] { color: #216c64; border-color: #96cec1; background: #dff4ed; box-shadow: inset 0 1px #ffffffa8; }
.cal-multi-service { display: flex; gap: 12px; align-items: center; padding: 16px; margin-top: 9px; border: 1px solid #d0e7dd; border-radius: 17px; background: #ffffffa8; cursor: pointer; }
.cal-multi-service:has(input:checked) { border-color: #92cdbf; background: #e7f7f0c9; }
.cal-multi-service.is-retained { background: #f0f6f2a3; border-color: #d7e6dd; cursor: default; }
.cal-multi-service input { width: 18px; height: 18px; accent-color: #208e88; flex: 0 0 auto; }
.cal-multi-service > span:first-of-type { flex: 1; min-width: 0; }
.cal-multi-service strong { display: block; font-size: 13px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.cal-multi-service small { display: block; margin-top: 5px; font-size: 11px; color: #678376; }
.cal-multi-service > span:last-child { white-space: nowrap; color: #4a7165; font-size: 12px; }
.cal-picker-footer { align-items: center; flex-wrap: wrap; }
.cal-picker-footer > span { margin-right: auto; color: #648277; font-size: 12px; }
.cal-quantity button:focus-visible,.cal-quantity input:focus-visible,.cal-multi-service input:focus-visible,.cal-removed-lines summary:focus-visible { outline: 2px solid #399d92; outline-offset: 2px; }
@media (max-width: 460px) { .cal-draft-line { padding: 14px; }.cal-draft-line-controls { gap: 10px; grid-template-columns: auto 1fr; }.cal-remove-line.auth-link { grid-column: 2; justify-self: end; padding-top: 0; }.cal-draft-total { align-items: flex-start; flex-wrap: wrap; gap: 12px; }.cal-draft-total > strong { margin-left: auto; }.cal-picker-footer > span { flex-basis: 100%; }.cal-multi-service { gap: 10px; padding: 13px; }.cal-multi-service > span:last-child { white-space: normal; text-align: right; max-width: 90px; }.cal-services-heading { align-items: flex-start; }.cal-visit-lines li { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .cal-quantity button { transition: none; } }
@media (max-width: 1150px) { .cal-view-switch { grid-column: 2; } }
@media (max-width: 760px) { .cal-view-switch { grid-column: 1; } }
@media (max-width: 1150px) { .cal-toolbar { grid-template-columns: 1fr auto; }.cal-doctor-search { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; width: 100%; }.cal-search-placeholder { display: none; }.cal-slots { grid-template-columns: repeat(3,minmax(0,1fr)); }.cal-table { min-width: 1350px; } }
@media (max-width: 760px) { .cal-toolbar { grid-template-columns: 1fr; gap: 12px; }.cal-view-switch { width: 100%; grid-row: 2; }.cal-doctor-search { grid-row: 3; }.cal-date-controls { justify-content: space-between; }.cal-day-layout { grid-template-columns: 1fr; padding: 20px; }.cal-slots { grid-template-columns: repeat(4,minmax(0,1fr)); }.cal-day-dialog { width: calc(100vw - 24px); }.cal-day-heading h2 { font-size: 17px; }.cal-dialog-heading { padding: 18px; gap: 10px; }.cal-dialog-heading > .auth-button { padding: 10px 12px; }.cal-visit-panel { padding: 20px; }.cal-empty-visit { min-height: 180px; }.cal-journal-row { grid-template-columns: 45px 1fr; }.cal-journal-row > span:last-child { justify-self: start; }.cal-journal { padding-inline: 16px; }.cal-calendar-heading { padding: 22px 8px; }.cal-calendar-heading h2 { font-size: 18px; }.cal-calendar { padding-inline: 8px; }.cal-patient-group { padding: 13px; } }
@media (max-width: 460px) { .cal-slots { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }.cal-field-row { grid-template-columns: 1fr; gap: 0; }.cal-editor-body { padding: 22px 18px; }.cal-dialog { border-radius: 26px; }.cal-dialog-heading h2 { font-size: 21px; }.cal-day-heading h2 { font-size: 16px; }.cal-dialog-heading { align-items: flex-start; }.cal-day-heading p { font-size: 11px; }.cal-day-heading { padding-top: 7px; }.cal-editor-footer { padding: 16px 18px; }.cal-editor-footer .auth-button { flex: 1; padding-inline: 12px; }.cal-selected-patient { flex-direction: column; align-items: flex-start; } }
/* Referral sources share the existing payment glass and rounded controls. */
.cal-finance-source { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:10px 0 14px; font-size:12px; color:#5b7d77; }
.cal-finance-source > span { min-width:0; overflow-wrap:anywhere; }
.cal-finance-source .auth-button { flex:0 0 auto; padding:7px 11px; min-height:34px; font-size:11px; }
.cal-referral-field { margin:18px 0; padding:16px; border:1px solid #d2e8e3; border-radius:19px; background:#f0faf7a8; }
.cal-referral-field > label { display:flex; flex-wrap:wrap; align-items:baseline; gap:7px; margin-bottom:10px; color:#416d67; font-size:13px; font-weight:550; }
.cal-referral-field small { color:#6b8580; font-size:11px; font-weight:400; line-height:1.6; }
.cal-referral-field > small { display:block; margin-top:8px; }
.cal-referral-select { display:flex; justify-content:space-between; width:100%; text-align:left; font-weight:400; min-height:46px; background:#ffffffc7; }
.cal-referral-select > span:first-child { min-width:0; overflow-wrap:anywhere; }
.cal-referral-warning { color:#876437; margin:10px 0 0; }
.cal-referral-picker { width:min(480px,calc(100vw - 32px)); }
.cal-referral-picker .cal-dialog-heading p { font-size:12px; margin-top:7px; color:#627f78; }
.cal-referral-search { margin:0 0 15px; }
.cal-referral-options { display:grid; gap:9px; }
.cal-referral-options .auth-button { width:100%; justify-content:flex-start; text-align:left; overflow-wrap:anywhere; background:#ffffffb8; font-weight:450; }
.cal-referral-options .is-selected { background:#e0f5ef; border-color:#87c9bd; }
@media (max-width:560px) { .cal-referral-field { padding:13px; } .cal-referral-select { padding:11px 13px; } }
