/* /Components/Shared/PatientPicker.razor.rz.scp.css */
.picker-item[b-x8g286j262] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 2px 0;
}

.picker-text[b-x8g286j262] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.picker-name[b-x8g286j262] {
    font-weight: 600;
}

.picker-details[b-x8g286j262] {
    color: var(--app-text-muted);
    font-size: 12px;
}

.picker-empty[b-x8g286j262] {
    display: block;
    padding: 8px 4px;
    color: var(--app-text-muted);
    font-size: 12.5px;
}
/* /Features/Analytics/DashboardView.razor.rz.scp.css */
.dashboard[b-96rpsmsy7z] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
}

.dashboard-filter[b-96rpsmsy7z] {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 10px 14px;
}

.period[b-96rpsmsy7z] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 170px;
    flex-shrink: 0;
}

.range[b-96rpsmsy7z] {
    flex: 1;
    min-width: 0;
}

.kpis[b-96rpsmsy7z] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.kpi[b-96rpsmsy7z] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
}

.kpi strong[b-96rpsmsy7z] {
    font-size: 26px;
    font-weight: 600;
    color: var(--app-accent);
}

.kpi strong.danger[b-96rpsmsy7z] { color: var(--app-danger); }
.kpi strong.success[b-96rpsmsy7z] { color: var(--app-success); }

.charts[b-96rpsmsy7z] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-auto-rows: 320px;
    gap: 10px;
}

.chart[b-96rpsmsy7z] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 10px 14px;
}

.chart h2[b-96rpsmsy7z] {
    margin-bottom: 6px;
    font-size: 14px;
}

.chart[b-96rpsmsy7z]  > div:last-child {
    flex: 1;
    min-height: 0;
}
/* /Features/Calendar/CalendarPage.razor.rz.scp.css */
/* Laid out like the desktop calendar: toolbar, doctor tabs, scheduler, category strip; the found patient on the right. */
.calendar-page[b-kj45dkat6j] {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toolbar: Today, back / next, the shown dates and their drop-down calendar, then the patient finder on the right. */
.calendar-toolbar[b-kj45dkat6j] {
    display: flex;
    align-items: center;
    gap: 4px;
}

[b-kj45dkat6j] .today-button {
    min-width: 76px;
    margin-right: 6px;
}

.calendar-range[b-kj45dkat6j] {
    margin: 0 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.calendar-finder[b-kj45dkat6j] {
    width: 300px;
    margin-left: auto;
}

.calendar-body[b-kj45dkat6j] {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 12px;
}

.calendar-main[b-kj45dkat6j] {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* The doctor tabs are a tab strip: the scheduler sits right under them. */
[b-kj45dkat6j] .doctor-tabs {
    flex-shrink: 0;
}

[b-kj45dkat6j] .doctor-tabs > .dxbl-tabs-content-panel {
    display: none;
}

.calendar-scheduler-host[b-kj45dkat6j] {
    flex: 1;
    min-height: 0;
    display: flex;
    border: 1px solid var(--app-border);
    border-top: 0;
    background: var(--app-surface);
}

[b-kj45dkat6j] .calendar-scheduler {
    flex: 1;
    min-height: 0;
}

/* Procedure categories: filled with the category's color when shown, faded when hidden (desktop: same toggles). */
.category-strip[b-kj45dkat6j] {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr)) auto;
    gap: 6px;
    margin-top: 10px;
}

.category-strip[b-kj45dkat6j]  .category-toggle {
    min-width: 0;
    height: 32px;
    border-left: 4px solid var(--category-accent);
    background: var(--category-background);
    color: var(--app-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-strip[b-kj45dkat6j]  .category-toggle.hidden-category {
    border-left-color: color-mix(in srgb, var(--category-accent) 30%, transparent);
    background: var(--app-surface);
    color: var(--app-text-muted);
}

.category-strip[b-kj45dkat6j]  .show-all-button {
    min-width: 76px;
    height: 32px;
}

.category-strip[b-kj45dkat6j]  .category-diagnosis { --category-accent: var(--group-diagnosis); --category-background: var(--group-diagnosis-bg); }
.category-strip[b-kj45dkat6j]  .category-restoration { --category-accent: var(--group-restoration); --category-background: var(--group-restoration-bg); }
.category-strip[b-kj45dkat6j]  .category-rootcanal { --category-accent: var(--group-rootcanal); --category-background: var(--group-rootcanal-bg); }
.category-strip[b-kj45dkat6j]  .category-hygiene { --category-accent: var(--group-hygiene); --category-background: var(--group-hygiene-bg); }
.category-strip[b-kj45dkat6j]  .category-whitening { --category-accent: var(--group-whitening); --category-background: var(--group-whitening-bg); }
.category-strip[b-kj45dkat6j]  .category-prosthetics { --category-accent: var(--group-prosthetics); --category-background: var(--group-prosthetics-bg); }
.category-strip[b-kj45dkat6j]  .category-implantation { --category-accent: var(--group-implantation); --category-background: var(--group-implantation-bg); }
.category-strip[b-kj45dkat6j]  .category-orthodontics { --category-accent: var(--group-orthodontics); --category-background: var(--group-orthodontics-bg); }
.category-strip[b-kj45dkat6j]  .category-surgery { --category-accent: var(--group-surgery); --category-background: var(--group-surgery-bg); }

/* The found patient: a panel right of the calendar (desktop: same panel). */
.found-patient[b-kj45dkat6j] {
    width: 290px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 10px 12px;
    border: 1px solid var(--app-separator);
    border-radius: var(--app-radius);
    background: var(--app-surface);
}

.found-header[b-kj45dkat6j] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.found-identity[b-kj45dkat6j] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.found-actions[b-kj45dkat6j] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0;
}

/* The found patient's visits: a DevExpress list box (items are li[role="option"]); a click goes to the visit. */
.found-patient[b-kj45dkat6j]  .agenda {
    flex: 1;
    min-height: 0;
    height: auto;
    border: 0;
}

.found-patient[b-kj45dkat6j]  .agenda li[role="option"] {
    padding: 2px 0;
    cursor: pointer;
}

.agenda-item[b-kj45dkat6j] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    width: 100%;
    padding: 2px 8px;
    border-left: 3px solid var(--app-accent);
}

.agenda-item.past[b-kj45dkat6j] {
    opacity: .75;
}

.agenda-item small[b-kj45dkat6j] {
    font-size: 11.5px;
    color: var(--app-text-muted);
}

.agenda-heading[b-kj45dkat6j] {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

.agenda-date[b-kj45dkat6j] {
    font-weight: 600;
}

.agenda-status[b-kj45dkat6j] {
    font-size: 11px;
    color: var(--app-text-muted);
}

.agenda-procedures[b-kj45dkat6j] {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.category-strip-diagnosis[b-kj45dkat6j] { border-left-color: var(--group-diagnosis); }
.category-strip-restoration[b-kj45dkat6j] { border-left-color: var(--group-restoration); }
.category-strip-rootcanal[b-kj45dkat6j] { border-left-color: var(--group-rootcanal); }
.category-strip-hygiene[b-kj45dkat6j] { border-left-color: var(--group-hygiene); }
.category-strip-whitening[b-kj45dkat6j] { border-left-color: var(--group-whitening); }
.category-strip-prosthetics[b-kj45dkat6j] { border-left-color: var(--group-prosthetics); }
.category-strip-implantation[b-kj45dkat6j] { border-left-color: var(--group-implantation); }
.category-strip-orthodontics[b-kj45dkat6j] { border-left-color: var(--group-orthodontics); }
.category-strip-surgery[b-kj45dkat6j] { border-left-color: var(--group-surgery); }
/* /Features/Employees/EmployeeEditor.razor.rz.scp.css */
.employee-page[b-phbcuy3bbs] {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 16px 24px 20px;
}

[b-phbcuy3bbs] .employee-form {
    display: flex;
    gap: 24px;
    max-width: 1100px;
}

.employee-header[b-phbcuy3bbs] {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    text-align: center;
}

[b-phbcuy3bbs] .employee-photo {
    object-fit: cover;
}

.photo-actions[b-phbcuy3bbs] {
    display: flex;
    gap: 10px;
    font-size: 12px;
}

.employee-name[b-phbcuy3bbs] {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

[b-phbcuy3bbs] .employee-fields {
    flex: 1;
    min-width: 0;
}

.form-actions[b-phbcuy3bbs] {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

@media (max-width: 760px) {
    [b-phbcuy3bbs] .employee-form {
        flex-direction: column;
        align-items: stretch;
    }

    .employee-header[b-phbcuy3bbs] {
        width: auto;
    }

}
/* /Features/Patients/Card/InvoicesTab.razor.rz.scp.css */
.invoices-tab[b-6ngegectcn] {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
}

[b-6ngegectcn] .invoice-grid {
    flex: 1;
    border: 0;
}

.invoice-group[b-6ngegectcn] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
}

.invoice-group-bill[b-6ngegectcn] {
    margin-left: auto;
}
/* /Features/Patients/Card/PatientDocuments.razor.rz.scp.css */
.documents[b-oqw0xa4htc] {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding-top: 6px;
}

.documents-toolbar[b-oqw0xa4htc] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}

/* DxFileInput only shows the upload progress; "Add Document" opens its file dialog. */
[b-oqw0xa4htc] .document-upload {
    flex: 1;
    min-width: 200px;
}

[b-oqw0xa4htc] .document-grid {
    flex: 1;
    min-height: 120px;
}

.document-cell[b-oqw0xa4htc] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.document-icon[b-oqw0xa4htc] {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 22px;
    border-radius: 4px;
    background: var(--app-accent-subdued);
    color: var(--app-accent);
    font-size: 10px;
    font-weight: 700;
}

[b-oqw0xa4htc] .document-open {
    padding: 0;
}
/* /Features/Patients/Card/PersonalInformationTab.razor.rz.scp.css */
/* Left pane: the form on top, the health notes taking the rest of the height. Sized by its pane (container query). */
.personal-main[b-31x4fso3jk] {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 12px 16px 16px;
    overflow: auto;
}

[b-31x4fso3jk] .patient-form {
    display: flex;
    gap: 20px;
}

.photo-column[b-31x4fso3jk] {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
}

.patient-photo[b-31x4fso3jk] {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--app-surface-subdued);
}

.photo-actions[b-31x4fso3jk] {
    display: flex;
    gap: 10px;
    font-size: 12px;
}

[b-31x4fso3jk] .patient-fields {
    flex: 1;
    min-width: 0;
}

/* The red asterisk of the required fields of a new patient. */
[b-31x4fso3jk] .required-caption::after {
    content: " *";
    color: var(--app-danger);
}

.form-actions[b-31x4fso3jk] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

/* Health notes / documents: the tabs and their content stretch to the bottom of the pane. */
[b-31x4fso3jk] .notes-tabs {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 280px;
    margin-top: 12px;
}

[b-31x4fso3jk] .notes-tabs > .dxbl-tabs-content-panel {
    display: flex;
    flex: 1;
    min-height: 0;
}

[b-31x4fso3jk] .notes-tabs .dxbl-tabs-content.dxbl-active {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.health-notes[b-31x4fso3jk] {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-height: 0;
    padding-top: 6px;
}

.health-note[b-31x4fso3jk] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

[b-31x4fso3jk] .health-note-memo {
    flex: 1;
    min-height: 140px;
}

[b-31x4fso3jk] .health-note-memo textarea {
    height: 100%;
    resize: none;
}

/* Narrow pane: the photo above the fields, the notes one under the other. */
@container (max-width: 720px) {
    [b-31x4fso3jk] .patient-form {
        flex-direction: column;
        gap: 8px;
    }

    .photo-column[b-31x4fso3jk] {
        flex-direction: row;
        gap: 16px;
        padding-top: 0;
    }

    .patient-photo[b-31x4fso3jk] {
        width: 72px;
        height: 72px;
    }

    .health-notes[b-31x4fso3jk] {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: minmax(160px, 1fr);
    }
}

/* Right pane: the "Latest Procedures" timeline, scrolling under its header. */
.latest-procedures[b-31x4fso3jk] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 12px 6px 12px 16px;
}

.latest-header[b-31x4fso3jk] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-right: 10px;
    margin-bottom: 4px;
}

.latest-header h2[b-31x4fso3jk] {
    font-size: 15px;
}

.latest-body[b-31x4fso3jk] {
    flex: 1;
    min-height: 0;
    padding-right: 10px;
    overflow-y: auto;
}
/* /Features/Patients/Card/ProceduresTab.razor.rz.scp.css */
/* Three columns: categories | procedures of the category and picked procedures | dental chart (the widest). */
.procedures-tab[b-qr97grjwi3] {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 188px minmax(300px, 1fr) minmax(0, 1.7fr);
    overflow: hidden;
    border: 1px solid var(--app-separator);
    border-radius: var(--app-radius);
    background: var(--app-surface);
}

/* Categories: a DevExpress list box whose items look like the demo's category buttons. */

.group-column[b-qr97grjwi3] {
    display: flex;
    min-height: 0;
    padding: 12px;
    border-right: 1px solid var(--app-separator);
    background: var(--app-surface-subdued);
}

/* The list box has a fixed default height (200px); it takes the column's height instead. */
[b-qr97grjwi3] .group-list {
    flex: 1;
    height: auto;
    border: 0;
    background: transparent;
}

/*
    The items are the list box's <li role="option"> elements (they carry no item class). DevExpress paints the selected
    item with the accent fill through very specific selectors, hence the !important on the tile colors.
*/
[b-qr97grjwi3] .group-list li[role="option"] {
    display: flex;
    align-items: center;
    min-height: 58px;
    margin-bottom: 12px;
    padding: 0 14px;
    border: 1px solid var(--app-border);
    border-radius: 2px;
    background: var(--app-surface) !important;
    color: var(--app-text) !important;
}

[b-qr97grjwi3] .group-list li[role="option"]:hover {
    border-color: var(--app-accent);
}

[b-qr97grjwi3] .group-list li[role="option"][aria-selected="true"] {
    border-color: var(--app-accent);
    box-shadow: inset 0 0 0 1px var(--app-accent);
}

/* Tooth categories while no tooth is selected: dimmed as in the demo. */
[b-qr97grjwi3] .group-list li[role="option"][aria-disabled="true"] {
    border-color: var(--app-border);
    opacity: .45;
}

.group-item[b-qr97grjwi3] {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.group-item .app-icon[b-qr97grjwi3] {
    width: 30px;
    height: 30px;
}

/*
    Procedures of the category: type tabs over a grid; a click on a row picks the procedure. Below them, the picked
    procedures with their total and "Add Procedures", so the dental chart can have the whole right column.
*/

.catalog-column[b-qr97grjwi3] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    border-right: 1px solid var(--app-separator);
}

[b-qr97grjwi3] .type-tabs {
    flex-shrink: 0;
    align-self: center;
}

[b-qr97grjwi3] .procedure-grid {
    flex: 1 1 0;
    min-height: 120px;
    border: 0;
}

[b-qr97grjwi3] .procedure-grid .dxbl-grid-table > tbody > tr {
    cursor: pointer;
}

[b-qr97grjwi3] .picked-grid {
    flex: 1 1 0;
    min-height: 140px;
    border: 0;
    border-top: 1px solid var(--app-separator);
    border-radius: 0;
}

.picked-placeholder[b-qr97grjwi3] {
    margin: 16px auto;
    font-size: 12.5px;
    text-align: center;
    white-space: pre-line;
}

.picked-total[b-qr97grjwi3] {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 16px;
    border-top: 1px solid var(--app-separator);
    border-bottom: 1px solid var(--app-separator);
    font-weight: 600;
}

.picked-footer[b-qr97grjwi3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
}

/*
    Dental chart: the column's whole height. The drawing scales to fit in both directions (the SVG keeps its aspect
    ratio): on wide windows the height limits it, on narrow ones the width, so the tooth numbers are never cut off.
*/

.chart-column[b-qr97grjwi3] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 12px 16px 10px;
    overflow: hidden;
}

.chart-column[b-qr97grjwi3]  .tooth-chart {
    flex: 1 1 0;
    min-height: 0;
    max-width: none;
    width: 100%;
}

.chart-column[b-qr97grjwi3]  .tooth-chart svg {
    width: 100%;
    height: 100%;
}

.chart-legend[b-qr97grjwi3] {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin-top: 8px;
    font-size: 13px;
}

.legend-item[b-qr97grjwi3] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot[b-qr97grjwi3] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.completed[b-qr97grjwi3] { background: var(--app-tooth-completed); }
.legend-dot.planned[b-qr97grjwi3] { background: var(--app-tooth-planned); }

/* Narrow windows: the categories and procedures on top, the chart below at full width; the tab scrolls. */
@media (max-width: 1000px) {
    .procedures-tab[b-qr97grjwi3] {
        grid-template-columns: 170px minmax(0, 1fr);
        overflow-y: auto;
    }

    .group-column[b-qr97grjwi3] {
        max-height: 640px;
    }

    .catalog-column[b-qr97grjwi3] {
        height: 640px;
        border-right: 0;
    }

    .chart-column[b-qr97grjwi3] {
        grid-column: 1 / -1;
        border-top: 1px solid var(--app-separator);
    }

    .chart-column[b-qr97grjwi3]  .tooth-chart {
        flex: none;
    }

    .chart-column[b-qr97grjwi3]  .tooth-chart svg {
        height: auto;
    }
}
/* /Features/Patients/Card/TreatmentPlanTab.razor.rz.scp.css */
.plan-tab[b-761gheyihs] {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 12px;
}

.plan-list[b-761gheyihs] {
    width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
    min-height: 0;
}

.plan-list h2[b-761gheyihs] {
    font-size: 15px;
}

.plan-actions[b-761gheyihs] {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

[b-761gheyihs] .plan-grid {
    flex: 1;
    min-height: 0;
}

.plan-text[b-761gheyihs] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.plan-empty[b-761gheyihs] {
    margin: 16px 8px;
    white-space: normal;
    text-align: center;
}

.plan-hint[b-761gheyihs] {
    margin: 8px 0 0;
}

.plan-calendar[b-761gheyihs] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 8px;
    min-height: 0;
}

[b-761gheyihs] .doctor-tabs {
    flex-shrink: 0;
    margin-bottom: 6px;
}

[b-761gheyihs] .plan-scheduler {
    flex: 1;
    min-height: 0;
}

.tooltip-actions[b-761gheyihs] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
/* /Features/Patients/Card/VisitTimelineView.razor.rz.scp.css */
.timeline-empty[b-h6etal2l0e] {
    margin: 24px 0;
    text-align: center;
}

.visit-timeline[b-h6etal2l0e],
.timeline-items[b-h6etal2l0e] {
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-day + .timeline-day[b-h6etal2l0e] {
    margin-top: 6px;
}

/* The day stays visible while its procedures scroll. */
.timeline-day-header[b-h6etal2l0e] {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 2px 6px;
    background: var(--app-surface);
}

.timeline-day-caption[b-h6etal2l0e] {
    font-size: 13px;
    font-weight: 600;
}

.timeline-day-relative[b-h6etal2l0e] {
    color: var(--app-text-muted);
    font-size: 12px;
}

/* The vertical line runs through the markers of a day. */
.timeline-items[b-h6etal2l0e] {
    position: relative;
    padding-left: 30px;
}

.timeline-items[b-h6etal2l0e]::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 10px;
    width: 2px;
    border-radius: 1px;
    background: var(--app-separator);
}

.timeline-item[b-h6etal2l0e] {
    position: relative;
    padding: 3px 0;
}

.timeline-marker[b-h6etal2l0e] {
    position: absolute;
    top: 13px;
    left: -30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid var(--app-accent);
    border-radius: 50%;
    background: var(--app-surface);
    color: var(--app-on-accent);
}

.timeline-marker .app-icon[b-h6etal2l0e] {
    width: 12px;
    height: 12px;
}

.completed .timeline-marker[b-h6etal2l0e] {
    border-color: var(--app-success);
    background: var(--app-success);
}

.missed .timeline-marker[b-h6etal2l0e] {
    border-color: var(--app-danger);
    background: var(--app-danger);
}

/* The card is a DxButton with custom content; DevExpress's own button padding and centering are replaced. */
[b-h6etal2l0e] .timeline-card.dxbl-btn {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--app-separator);
    border-radius: var(--app-radius);
    background: var(--app-surface);
    color: var(--app-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .12s ease, box-shadow .12s ease;
}

[b-h6etal2l0e] .timeline-card.dxbl-btn:hover {
    border-color: var(--app-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

[b-h6etal2l0e] .timeline-card.dxbl-btn:focus-visible {
    outline: 2px solid var(--app-accent);
    outline-offset: 1px;
}

.timeline-card-title[b-h6etal2l0e] {
    font-weight: 600;
    line-height: 1.3;
}

.timeline-card-meta[b-h6etal2l0e] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 8px;
    color: var(--app-text-muted);
    font-size: 12px;
}
/* /Features/Patients/PatientPreviewPane.razor.rz.scp.css */
/* Fills the splitter pane next to the list; its width is set with the divider. */
.preview-pane[b-n2vtcjrgqk] {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 14px 16px;
    overflow: auto;
}

.preview-placeholder[b-n2vtcjrgqk] {
    margin: auto;
    max-width: 240px;
    text-align: center;
}

.preview-header[b-n2vtcjrgqk] {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.preview-identity[b-n2vtcjrgqk] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.preview-identity h2[b-n2vtcjrgqk] {
    font-size: 17px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.preview-email[b-n2vtcjrgqk] {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.preview-allergies[b-n2vtcjrgqk] {
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--app-danger) 14%, transparent);
}

.preview-allergies strong[b-n2vtcjrgqk] {
    color: var(--app-danger);
}

.preview-facts[b-n2vtcjrgqk] {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 12px;
    margin: 0 0 14px;
}

.preview-facts dt[b-n2vtcjrgqk] {
    padding-top: 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--app-text-muted);
}

.preview-facts dd[b-n2vtcjrgqk] {
    margin: 0;
}

.preview-actions[b-n2vtcjrgqk] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.preview-procedures-header[b-n2vtcjrgqk] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

[b-n2vtcjrgqk] .preview-procedures {
    min-height: 120px;
}

.two-line[b-n2vtcjrgqk] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.two-line span[b-n2vtcjrgqk], .two-line small[b-n2vtcjrgqk] {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.two-line small[b-n2vtcjrgqk] {
    font-size: 11px;
    color: var(--app-text-muted);
}
/* /Features/Patients/ToothChart/ToothChart.razor.rz.scp.css */
/*
    Paints of teeth.svg by role (desktop: TeethChart.Palette). The tooth markup is a MarkupString, so its elements
    are reached with ::deep from the chart container.
*/
.tooth-chart[b-22tb0567dk] {
    --tc-shade: #505050;
    --tc-solid: #7a7a7a;
    --tc-accent: #e8a8a8;
    --tc-info: #3a74c2;
    --tc-text: #272525;
    --tc-completed: #3c925c;
    --tc-planned: #e23642;
    --tc-selection: #176bd1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--app-radius);
    outline: none;
}

[data-theme="dark"] .tooth-chart[b-22tb0567dk] {
    --tc-shade: #e5e5e5;
    --tc-solid: #e5e5e5;
    --tc-accent: #aa6066;
    --tc-info: #71a8f3;
    --tc-text: #f0f0f0;
    --tc-completed: #53ba7a;
    --tc-planned: #fc6d77;
    --tc-selection: #4e97fc;
}

.tooth-chart:focus-visible[b-22tb0567dk] {
    box-shadow: 0 0 0 2px var(--app-accent);
}

.tooth-chart svg[b-22tb0567dk] {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
}

.tooth[b-22tb0567dk] {
    cursor: pointer;
}

/* Paint roles */
.tooth-chart[b-22tb0567dk]  .tc-shade { fill: var(--tc-shade); opacity: .4; }
.tooth-chart[b-22tb0567dk]  .tc-solid { fill: var(--tc-solid); }
.tooth-chart[b-22tb0567dk]  .tc-accent { fill: var(--tc-accent); }
.tooth-chart[b-22tb0567dk]  .tc-info { fill: var(--tc-info); }
.tooth-chart[b-22tb0567dk]  .tc-faded { opacity: .3; }
.tooth-chart[b-22tb0567dk]  .tc-text { fill: var(--tc-text); font: 600 11px "Segoe UI", system-ui, sans-serif; }
.tooth-chart[b-22tb0567dk]  .tc-text-hover { fill: #fff; font: 600 11px "Segoe UI", system-ui, sans-serif; }

/* Initial state (the demo's SvgImageBox customization): overlays and highlight hidden. */
.tooth-chart[b-22tb0567dk]  .tc-implantation,
.tooth-chart[b-22tb0567dk]  .tc-rootcanal,
.tooth-chart[b-22tb0567dk]  .tc-whitening,
.tooth-chart[b-22tb0567dk]  .tc-surgery,
.tooth-chart[b-22tb0567dk]  .tc-badgebackground {
    display: none;
}

/* The silhouette stays hit-testable while transparent. */
.tooth-chart[b-22tb0567dk]  .tc-hoverbackground { opacity: 0; }

/* Hover and keyboard focus look the same; selection keeps the silhouette tinted. */
.tooth:hover[b-22tb0567dk]  .tc-hoverbackground,
.tooth.focused[b-22tb0567dk]  .tc-hoverbackground { opacity: 1; }
.tooth.selected[b-22tb0567dk]  .tc-hoverbackground { opacity: .8; }
.tooth.selected:hover[b-22tb0567dk]  .tc-hoverbackground { opacity: 1; }
.tooth.selected[b-22tb0567dk]  .tc-hoverbackground :is(path, polygon, rect, circle) { fill: var(--tc-selection); }

.tooth:hover[b-22tb0567dk]  .tc-badgebackground,
.tooth.focused[b-22tb0567dk]  .tc-badgebackground,
.tooth.selected[b-22tb0567dk]  .tc-badgebackground { display: inline; }

/* Procedure overlays (ToothChartRules): shown and painted green (completed) or red (planned). */
.tooth.rootcanal-completed[b-22tb0567dk]  .tc-rootcanal,
.tooth.rootcanal-planned[b-22tb0567dk]  .tc-rootcanal,
.tooth.implantation-completed[b-22tb0567dk]  .tc-implantation,
.tooth.implantation-planned[b-22tb0567dk]  .tc-implantation,
.tooth.whitening-completed[b-22tb0567dk]  .tc-whitening,
.tooth.whitening-planned[b-22tb0567dk]  .tc-whitening,
.tooth.surgery-completed[b-22tb0567dk]  .tc-surgery,
.tooth.surgery-planned[b-22tb0567dk]  .tc-surgery {
    display: inline;
}

.tooth.rootcanal-completed[b-22tb0567dk]  .tc-rootcanal :is(path, polygon, rect, circle),
.tooth.implantation-completed[b-22tb0567dk]  .tc-implantation :is(path, polygon, rect, circle),
.tooth.whitening-completed[b-22tb0567dk]  .tc-whitening :is(path, polygon, rect, circle),
.tooth.surgery-completed[b-22tb0567dk]  .tc-surgery :is(path, polygon, rect, circle),
.tooth.prosthetics-completed[b-22tb0567dk]  .tc-prosthetics :is(path, polygon, rect, circle) {
    fill: var(--tc-completed);
}

.tooth.rootcanal-planned[b-22tb0567dk]  .tc-rootcanal :is(path, polygon, rect, circle),
.tooth.implantation-planned[b-22tb0567dk]  .tc-implantation :is(path, polygon, rect, circle),
.tooth.whitening-planned[b-22tb0567dk]  .tc-whitening :is(path, polygon, rect, circle),
.tooth.surgery-planned[b-22tb0567dk]  .tc-surgery :is(path, polygon, rect, circle),
.tooth.prosthetics-planned[b-22tb0567dk]  .tc-prosthetics :is(path, polygon, rect, circle) {
    fill: var(--tc-planned);
}

/* Implants replace the root. */
.tooth.root-hidden[b-22tb0567dk]  .tc-root { display: none; }
/* /Features/Scheduling/AppointmentCard.razor.rz.scp.css */
.apt-card[b-zw35o0dmp9] {
    --apt-accent: var(--app-accent);
    --apt-background: var(--app-surface);
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 3px;
    background: var(--apt-background);
    color: var(--app-text);
    font-size: 11.5px;
    line-height: 1.3;
}

.category-diagnosis[b-zw35o0dmp9] { --apt-accent: var(--group-diagnosis); --apt-background: var(--group-diagnosis-bg); }
.category-restoration[b-zw35o0dmp9] { --apt-accent: var(--group-restoration); --apt-background: var(--group-restoration-bg); }
.category-rootcanal[b-zw35o0dmp9] { --apt-accent: var(--group-rootcanal); --apt-background: var(--group-rootcanal-bg); }
.category-hygiene[b-zw35o0dmp9] { --apt-accent: var(--group-hygiene); --apt-background: var(--group-hygiene-bg); }
.category-whitening[b-zw35o0dmp9] { --apt-accent: var(--group-whitening); --apt-background: var(--group-whitening-bg); }
.category-prosthetics[b-zw35o0dmp9] { --apt-accent: var(--group-prosthetics); --apt-background: var(--group-prosthetics-bg); }
.category-implantation[b-zw35o0dmp9] { --apt-accent: var(--group-implantation); --apt-background: var(--group-implantation-bg); }
.category-orthodontics[b-zw35o0dmp9] { --apt-accent: var(--group-orthodontics); --apt-background: var(--group-orthodontics-bg); }
.category-surgery[b-zw35o0dmp9] { --apt-accent: var(--group-surgery); --apt-background: var(--group-surgery-bg); }

.apt-strip[b-zw35o0dmp9] {
    flex-shrink: 0;
    width: 5px;
    background: var(--apt-accent);
}

.apt-body[b-zw35o0dmp9] {
    min-width: 0;
    padding: 3px 6px;
}

.apt-time[b-zw35o0dmp9] {
    font-weight: 600;
    white-space: nowrap;
}

.apt-patient[b-zw35o0dmp9] {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.apt-procedures[b-zw35o0dmp9] {
    margin: 2px 0 0;
    padding-left: 12px;
    font-weight: 600;
}

.compact .apt-body[b-zw35o0dmp9] {
    display: flex;
    gap: 6px;
}

.dimmed[b-zw35o0dmp9] {
    opacity: .45;
}
/* /Features/Scheduling/AppointmentTooltip.razor.rz.scp.css */
.apt-tooltip[b-tu6qnby44k] {
    min-width: 260px;
    max-width: 340px;
}

.apt-tooltip-header[b-tu6qnby44k] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.apt-tooltip dl[b-tu6qnby44k] {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    margin: 0 0 6px;
}

.apt-tooltip dt[b-tu6qnby44k] {
    color: var(--app-text-muted);
}

.apt-tooltip dd[b-tu6qnby44k] {
    margin: 0;
}

.apt-tooltip-procedures[b-tu6qnby44k] {
    margin: 0;
    padding-left: 16px;
}

.apt-tooltip-comment[b-tu6qnby44k] {
    margin: 6px 0 0;
    font-style: italic;
}
