/* Global font: change family/size here. All rem-based sizes (Bootstrap and ours) scale from the html font-size. */
:root {
    --ladent-font-family: Tahoma, Verdana, 'Segoe UI', sans-serif;
    --ladent-font-size: 14px;
}

html {
    font-size: var(--ladent-font-size);
}

html, body {
    font-family: var(--ladent-font-family);
}

body {
    --bs-body-font-family: var(--ladent-font-family);
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* Ladent */
body { background: #f5f7fa; }
.btn-primary { background-color: #0d6e94; border-color: #0d6e94; }
.btn-primary:hover, .btn-primary:focus { background-color: #0b5c7c; border-color: #0b5c7c; }
.tile { border: 1px solid #dde6ec; transition: box-shadow .15s, border-color .15s; color: #1d2b33; }
.tile:hover { border-color: #0d6e94; box-shadow: 0 2px 8px rgba(13,110,148,.15); }
.table-ladent { background: #fff; }
.table-ladent th { font-weight: 600; font-size: .85rem; color: #4a5a64; white-space: nowrap; }
.perm-matrix th.role-col { min-width: 110px; text-align: center; }
.perm-matrix td.cell { text-align: center; }
.badge-role { background: #e8f3f8; color: #0d4f6c; font-weight: 500; margin-right: 4px; }
.tile-done { border-left: 4px solid #2e9d5b; }
.tile-todo { border-style: dashed; background: #fafbfc; color: #7d8a92; font-style: italic; }
.tile .card-body { padding: .7rem; font-size: .9rem; }
.tile-section { font-size: .95rem; font-weight: 600; color: #4a5a64; margin: 1.5rem 0 .5rem; }
.tile-subsection { font-size: .85rem; font-weight: 600; color: #6b7a84; margin: 1rem 0 .25rem; }
.tile-todo .fw-semibold { font-weight: 500 !important; }
.todo-pill { background: #eef1f3; color: #6c7a83; font-style: normal; font-weight: 500; }
.pwd-toggle .eye-closed { display: none; }
.pwd-toggle[aria-pressed="true"] .eye-open { display: none; }
.pwd-toggle[aria-pressed="true"] .eye-closed { display: inline; }

/* Patients */
.patient-list tr.clickable { cursor: pointer; }
.sort-link { color: inherit; text-decoration: none; white-space: nowrap; }
.sort-link.active, .sort-link:hover { color: var(--bs-primary); }
.patient-header .fw-semibold { font-size: 1.05rem; }
.medical-alert { white-space: pre-wrap; }
.nav-link.tab-todo { font-style: italic; }
.sticky-actions { position: sticky; bottom: 0; background: var(--bs-body-bg, #f6f8fb); padding: .75rem 0; border-top: 1px solid var(--bs-border-color); }
fieldset[disabled] .form-control, fieldset[disabled] .form-select { background-color: #f3f5f8; }

/* Agenda */
.agenda-list .agenda-done .agenda-text { text-decoration: line-through; color: var(--bs-secondary-color, #6c757d); }
.picker-results { z-index: 20; max-height: 18rem; overflow-y: auto; }
@media print {
    .no-print, nav, header, .top-menu, .btn, .form-check-input { display: none !important; }
    .agenda-list .list-group-item { break-inside: avoid; }
    body { background: #fff; }
}

/* Clinic logo */
.logo-preview { width: 180px; height: 120px; display: flex; align-items: center; justify-content: center; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Dental chart */
.odontogram { overflow-x: auto; padding-bottom: .25rem; }
.tooth-row { display: grid; grid-template-columns: repeat(var(--teeth), minmax(2.6rem, 1fr)); gap: 3px; min-width: calc(var(--teeth) * 2.75rem); }
.tooth-row.primary { max-width: 70%; margin: 0 auto; min-width: calc(var(--teeth) * 2.75rem); }
.tooth-row.upper { padding-bottom: 4px; border-bottom: 2px solid #c9d4db; }
.tooth-row.lower { padding-top: 4px; }
.tooth-row.primary.upper { margin-top: .75rem; }
.tooth { --tooth-bg: #fff; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    min-height: 4.2rem; padding: 3px 2px; border: 1px solid #c9d4db; background: var(--tooth-bg); color: #1d2b33; font-size: .8rem; line-height: 1.1; }
.tooth-row.upper .tooth { border-radius: 6px 6px 14px 14px; }
.tooth-row.lower .tooth { border-radius: 14px 14px 6px 6px; }
.tooth.mid { margin-left: 6px; }
.tooth:hover { border-color: #0d6e94; }
.tooth.selected { outline: 3px solid #0d6e94; outline-offset: 1px; z-index: 1; }
.tooth .tooth-no { font-weight: 600; }
.tooth .tooth-codes { font-size: .68rem; color: #0d4f6c; word-break: break-word; text-align: center; }
.tooth .tooth-count { position: absolute; top: 1px; right: 3px; font-size: .6rem; color: #6c7a83; }
.tooth-row.lower .tooth .tooth-count { top: auto; bottom: 1px; }
.tooth.whole { flex-direction: row; gap: .5rem; min-height: 0; padding: .3rem .75rem; border-radius: 6px; }
.tooth.st-done { --tooth-bg: #e3f1ff; border-color: #8db8dc; }
.tooth.st-progress { --tooth-bg: #fff3cd; border-color: #e0b84a; }
.tooth.st-planned { --tooth-bg: #fff; border: 2px dashed #d9534f; }
.tooth-legend { border: 1px solid #c9d4db; }
.tooth-legend.st-done { background: #e3f1ff; border-color: #8db8dc; }
.tooth-legend.st-progress { background: #fff3cd; border-color: #e0b84a; }
.tooth-legend.st-planned { background: #fff; border: 2px dashed #d9534f; }
.code-badge { background: #e8f3f8; color: #0d4f6c; font-weight: 600; }
.status-pill { display: inline-block; padding: 0 .45rem; border-radius: 1rem; font-size: .78rem; }
.status-pill.st-done { background: #e3f1ff; color: #0d4f6c; }
.status-pill.st-progress { background: #fff3cd; color: #7a5a00; }
.status-pill.st-planned { background: #fbe4e4; color: #9b2c2c; }
.chart-notes { white-space: pre-wrap; max-width: 40rem; }
.print-only { display: none; }
@media print {
    .print-only { display: block; }
    .odontogram { overflow: visible; }
    .tooth { min-height: 3.4rem; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .chart-table tr { break-inside: avoid; }
    .card { border: 0; }
}

/* Programări */
.cal-scroll { overflow-x: auto; background: #fff; border: 1px solid #dde6ec; border-radius: 6px; }
.cal { display: grid; grid-template-columns: 3.4rem repeat(var(--cols), minmax(8.5rem, 1fr)); min-width: calc(3.4rem + var(--cols) * 8.5rem); }
.cal-corner, .cal-colhead { position: sticky; top: 0; z-index: 3; background: #f3f6f9; border-bottom: 1px solid #c9d4db; }
.cal-colhead { padding: .3rem .4rem; border-left: 1px solid #dde6ec; border-top: 3px solid var(--col-color, transparent); line-height: 1.2; }
.cal-colhead.today { background: #e3f1ff; }
.cal-times { position: relative; }
.cal-time { position: absolute; right: .3rem; height: var(--slot-h); font-size: .72rem; color: #6c7a83; transform: translateY(-.45em); }
.cal-time:first-child { transform: none; }
.cal-col { position: relative; border-left: 1px solid #dde6ec;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--slot-h) - 1px), #eef1f3 calc(var(--slot-h) - 1px), #eef1f3 var(--slot-h)); }
.cal-col.today { background-color: #f7fbff; }
.cal-work { position: absolute; left: 0; right: 0; background: #eaf6ee; pointer-events: none; }
.cal-legend-work { background: #eaf6ee; border: 1px solid #b9dfc6; }
.cal-slot { position: absolute; left: 0; right: 0; height: var(--slot-h); border: 0; background: transparent; padding: 0; }
button.cal-slot:hover { background: rgba(13, 110, 148, .08); cursor: pointer; }
button.cal-slot:hover::after { content: "+"; position: absolute; right: .4rem; top: .1rem; color: #0d6e94; font-weight: 600; }
.cal-ap { --ap-color: #0d6e94; position: absolute; z-index: 2; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
    padding: 1px 4px; border: 1px solid color-mix(in srgb, var(--ap-color) 45%, white); border-left: 4px solid var(--ap-color); border-radius: 4px;
    background: color-mix(in srgb, var(--ap-color) 16%, white); color: #1d2b33; font-size: .75rem; line-height: 1.15; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.cal-ap:not(:disabled):hover { z-index: 4; box-shadow: 0 2px 8px rgba(0,0,0,.18); min-height: fit-content; }
.cal-ap:disabled { opacity: 1; color: #1d2b33; }
.cal-ap-time { font-size: .68rem; color: #4a5a64; }
.cal-ap-who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cal-ap-what { color: #4a5a64; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cal-ap.highlight { outline: 3px solid #f0ad4e; outline-offset: 1px; z-index: 4; }
.cal-ap.ap-blocked { background: repeating-linear-gradient(135deg, #f1f3f5 0, #f1f3f5 6px, #e2e6ea 6px, #e2e6ea 12px); border-color: #adb5bd; border-left-color: #6c757d; }
.cal-ap.ap-booking { background: #fff3cd; border-color: #ffc107; border-left-color: #fd7e14; border-style: dashed; }
.cal-ap.ap-cancelled, .cal-ap.ap-noshow { background: #fafafa; border-style: dashed; border-left-style: solid; color: #6c757d; }
.cal-ap.ap-cancelled .cal-ap-who { text-decoration: line-through; }
.cal-ap.ap-noshow { border-left-color: #d9534f; }
.ap-list tr.clickable { cursor: pointer; }
.ap-list tr.ap-cancelled td { text-decoration: line-through; color: #6c757d; }
.ap-list tr.ap-noshow td { color: #9b2c2c; }
.ap-modal { background: transparent; overflow-y: auto; z-index: 1055; }
.doctor-hours summary { cursor: pointer; }
@media print {
    .cal-scroll, .ap-modal, .modal-backdrop { display: none !important; }
    .ap-list tr { break-inside: avoid; }
}
.cal-ap-who .cal-ap-time { font-weight: 400; margin-right: .15rem; }

/* Sterilizare */
.steril-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.steril-filters .steril-clear { flex: 0 0 auto; }
.status-pill.st-sterile { background: #e6f4ea; color: #1e6b35; }
.status-pill.st-new { background: #f1f3f5; color: #495057; }
.status-pill.st-used { background: #e3f1ff; color: #0d4f6c; }
.status-pill.st-discarded { background: #fbe4e4; color: #9b2c2c; }
.steril-types { max-height: 22rem; overflow-y: auto; }
.steril-list select { min-width: 10rem; max-width: 16rem; }
.steril-scan { max-width: 52rem; }
/* Label sheet: A4, 6 × 20 labels of 35 × 14.85 mm. On screen it is shown at the same size. */
.label-sheet { width: 210mm; height: 297mm; display: grid; grid-template-columns: repeat(6, 35mm); grid-auto-rows: 14.85mm;
    align-content: start; background: #fff; margin-bottom: 1rem; box-shadow: 0 0 0 1px #dde6ec; }
.label-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1mm 2mm; overflow: hidden;
    outline: 1px dashed #e3e8ec; }
.label-bars { width: 31mm; height: 8mm; line-height: 0; }
.label-bars svg { width: 100%; height: 100%; display: block; }
.label-code { font: 600 9pt/1.1 ui-monospace, Consolas, monospace; letter-spacing: .08em; margin-top: .4mm; }
@media print {
    body:has(.label-sheet) .app-content { padding: 0 !important; margin: 0 !important; max-width: none; }
    body:has(.label-sheet) .app-shell { background: #fff; }
    body:has(.label-sheet) .app-content > :not(.label-sheet) { display: none !important; }
    .label-sheet { box-shadow: none; margin: 0; break-after: page; }
    .label-sheet:last-child { break-after: auto; }
    .label-cell { outline: 0; }
}

/* A confirm button and its cancel button, boxed together so they read as one choice. */
.confirm-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem; padding: .3rem .4rem; border: 1px solid var(--bs-warning-border-subtle); border-radius: var(--bs-border-radius); background-color: var(--bs-warning-bg-subtle); }

/* Hints in empty fields: faint and italic so they never read as real values; gone once the field has focus. */
.form-control::placeholder { color: var(--bs-secondary-color); opacity: .45; font-style: italic; }
.form-control:focus::placeholder { color: transparent; }
/* The buttons down the right of the patient list share one width (that of "Număr pacienți ?"). */
.side-btn { width: 9.5rem; text-align: center; white-space: nowrap; }
/* The patient count button keeps its look once it shows the number. */
.count-btn:disabled { opacity: 1; }

/* The printed chitanță (LaDent7 ch_FBS_Receipt_ld): grey unit panel on the left, dotted lines to write on. */
.receipt { display: flex; max-width: 760px; border: 1px solid #666; box-shadow: 4px 4px 0 #888; background: #fff; font-size: .9rem; }
.receipt-unit { width: 34%; background: #d9d9d9; border-right: 3px solid #888; padding: .5rem .75rem; }
.receipt-unit dl { display: grid; grid-template-columns: 4.5rem 1fr; margin: 0; row-gap: 0; }
.receipt-unit dt { font-weight: 600; }
.receipt-unit dd { margin: 0; }
.receipt-body { flex: 1; padding: .5rem .75rem; }
.receipt-title { font-size: 1.15rem; font-weight: 700; }
.receipt-row { display: flex; align-items: baseline; }
.receipt-label { width: 7.5rem; flex: none; font-weight: 600; }
.receipt-label.narrow { width: 2.5rem; }
.receipt-value { flex: 1; border-bottom: 1px dotted #333; min-height: 1.35em; }
.receipt-value.short { flex: none; width: 9rem; }
.receipt-logo { max-height: 80px; max-width: 160px; object-fit: contain; }
@media print {
    .receipt { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.receipt-sign { text-align: right; margin-top: .25rem; margin-right: .5rem; }
.receipt-stamp { max-height: 30mm; max-width: 45mm; object-fit: contain; }
.clinic-data > summary { cursor: pointer; font-weight: 500; }
.clinic-data:not([open]) > summary { border-bottom: 0; }
/* Row actions: icon only, the name is the tooltip (RowAction.razor). */
.row-action { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; padding: 0;
  border: 0; border-radius: .25rem; background: transparent; color: var(--bs-primary); vertical-align: middle; }
.row-action:hover { background: rgba(13, 110, 253, .1); }
.row-action.text-danger:hover { background: rgba(220, 53, 69, .1); }
.row-action:disabled { opacity: .4; }
/* FilterButton.razor: the look of .btn-outline-secondary, which the .row-action rules above would otherwise override. */
.row-action.filter-btn { flex: none; width: auto; height: auto; padding: 0 .6rem; color: var(--bs-btn-color); background: var(--bs-btn-bg);
  border: var(--bs-btn-border-width) solid var(--bs-btn-border-color); border-radius: var(--bs-btn-border-radius); }
.row-action.filter-btn:hover { color: var(--bs-btn-hover-color); background: var(--bs-btn-hover-bg); border-color: var(--bs-btn-hover-border-color); }
/* Tipărire bon fiscal in Facturi: its own column, bigger and green, away from Încasări and Șterge. */
.row-action.row-action-fiscal { width: 2.25rem; height: 2.25rem; color: #fff; background: var(--bs-success); }
.row-action.row-action-fiscal:hover { background: #146c43; }
.row-action.row-action-fiscal svg { width: 18px; height: 18px; }
/* A row confirmation floats next to the row (placed by App.razor), so it is never cut off by the table. */
.confirm-pop { position: fixed; left: 0; top: 0; width: max-content; z-index: 1080; visibility: hidden; max-width: min(380px, calc(100vw - 16px)); white-space: normal;
  text-align: left; box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15); }
/* Încasări header (PaymentsList.razor): label, filter, checkbox, gap, right column of equal width. */
.docs-head { display: grid; grid-template-columns: 10rem minmax(0, 34rem) 9rem 1fr 9rem; align-items: center; gap: .4rem .5rem; }
@media (max-width: 767.98px) {
  .docs-head { grid-template-columns: 1fr; }
  .docs-head > span:empty { display: none; }
  .docs-head > .docs-rest { order: -1; text-align: left !important; }
}
/* The question takes the first line; Da / Nu stay together on the second. */
.confirm-pop .confirm-text { flex-basis: 100%; }
/* Configurare › Meniu: LaDent7 toggle buttons, filled in columns of nine like the Întreținere window. */
/* Pressed = visible: filled, bold, with a tick. Not pressed = hidden: white, normal text. */
.menu-toggle { --bs-btn-border-color: #b8c2c8; --bs-btn-bg: #fff; --bs-btn-color: #5a6870; --bs-btn-hover-border-color: #6c8ea4;
  --bs-btn-disabled-bg: #fff; --bs-btn-disabled-border-color: #d3d9dd; --bs-btn-disabled-color: #8a969d; }
.menu-toggle.active { --bs-btn-bg: #1d6a8c; --bs-btn-border-color: #1d6a8c; --bs-btn-color: #fff; --bs-btn-active-bg: #1d6a8c;
  --bs-btn-active-border-color: #1d6a8c; --bs-btn-active-color: #fff; --bs-btn-hover-bg: #17587a; --bs-btn-hover-color: #fff;
  --bs-btn-disabled-bg: #7fa7ba; --bs-btn-disabled-border-color: #7fa7ba; --bs-btn-disabled-color: #fff; font-weight: 700; }
.menu-toggle.active::before { content: "✓ "; }
.menu-toggle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: .3rem; padding-right: .3rem; }
.menu-toggle .todo-pill { font-size: .65rem; font-weight: 500; }
.menu-toggles { display: grid; grid-auto-flow: column; grid-template-rows: repeat(9, auto); grid-auto-columns: 1fr; gap: .4rem .6rem; }
@media (max-width: 575.98px) {
  .menu-toggles { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
.cash-report { max-width: 190mm; background: #fff; }

/* Ripple on the top menu buttons (added by the script in App.razor). */
.menubar .menu-link { position: relative; overflow: hidden; }
.menu-ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .25; transform: scale(0); pointer-events: none; animation: menu-ripple .5s ease-out forwards; }
@keyframes menu-ripple { to { transform: scale(2.6); opacity: 0; } }
/* Toast.razor: a notice that slides in at the bottom right, shows the time left as a shrinking bar and fades out by itself. */
.ladent-toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 2000; width: min(26rem, calc(100vw - 2rem)); padding: .75rem .9rem .9rem;
  border-radius: .5rem; background: #198754; color: #fff; box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .25); overflow: hidden;
  animation: toast-in .3s ease-out; }
.ladent-toast.leaving { animation: toast-out .3s ease-in forwards; }
.ladent-toast-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: rgba(255, 255, 255, .7);
  transform-origin: left; animation: toast-bar var(--toast-seconds, 5s) linear forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(1rem); } }
@keyframes toast-bar { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .ladent-toast, .ladent-toast.leaving { animation-duration: .01s; } }
.live-notices { position: fixed; right: 1rem; bottom: 1rem; z-index: 2000; display: flex; flex-direction: column; gap: .5rem; width: min(26rem, calc(100vw - 2rem)); }
.live-notices .ladent-toast { position: relative; right: auto; bottom: auto; width: auto; }
/* Test environment (App.razor, Stage:Name set on the server): a banner always on top and an orange theme. */
.stage-banner { position: sticky; top: 0; z-index: 1900; padding: .3rem 1rem; text-align: center; font-weight: 700; font-size: .9rem;
  color: #212529; background: repeating-linear-gradient(45deg, #ffc107, #ffc107 14px, #ffcd39 14px, #ffcd39 28px); }
body.stage-env .menubar { background: #c2410c; }
body.stage-env .btn-primary { --bs-btn-bg: #ea580c; --bs-btn-border-color: #ea580c; --bs-btn-hover-bg: #c2410c; --bs-btn-hover-border-color: #c2410c;
  --bs-btn-active-bg: #9a3412; --bs-btn-active-border-color: #9a3412; --bs-btn-disabled-bg: #ea580c; --bs-btn-disabled-border-color: #ea580c; }
/* Public booking page (/booking/...): ONE layout for every screen, made for a phone: a centred column, large touch targets,
   the total and the button in a bar fixed at the bottom. */
.booking-shell { min-height: 100vh; background: #f3f5f8; padding-bottom: 2rem; font-size: 1rem; }
.booking-container { max-width: 640px; }
.booking-head { background: linear-gradient(90deg, var(--auth-panel-start, #0d4f6c), var(--auth-panel-end, #1b7fa6)); color: #fff; padding: 1rem 0 3rem; }
.booking-back { color: #fff !important; text-decoration: none; font-size: .9rem; opacity: .9; min-height: 44px; display: inline-flex !important; align-items: center; }
.booking-clinic { flex: 0 1 auto; min-width: 0; max-width: 9.5rem; }
.booking-logo { height: 56px; max-width: 100%; object-fit: contain; background: #fff; border-radius: 6px; padding: 4px 8px; }
/* The step sits beside the logo, after a thin light line with room on both sides. */
.booking-step { border-left: 1px solid rgba(255, 255, 255, .35); margin-left: 1.25rem; padding-left: 1.25rem; min-width: 0; flex: 1 1 0; }
.booking-title { font-size: 1.25rem; font-weight: 600; margin: 0; line-height: 1.2; }
.booking-step-no { font-size: .85rem; opacity: .85; margin-top: .15rem; }
.booking-body { margin-top: -2rem; }
.booking-body.with-bar { padding-bottom: 6.5rem; }
.booking-card { border: 0; border-radius: .6rem; box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .08); }
.booking-check { width: 1.75rem; height: 1.75rem; flex: 0 0 1.75rem; border-radius: 50%; border: 2px solid #ced4da; display: grid; place-items: center;
  color: #fff; font-size: 1rem; }
.booking-on .booking-check { background: var(--bs-success); border-color: var(--bs-success); }
.booking-card .list-group-item { padding: 1rem; min-height: 56px; }
/* Touch targets: at least 44 px, and 16 px text in fields (a smaller one makes phones zoom the page in). */
.booking-shell .btn { min-height: 44px; }
.booking-shell .form-control { min-height: 44px; font-size: 1rem; }
.booking-shell .form-check-input { width: 1.5rem; height: 1.5rem; margin-top: .1rem; }
.booking-shell .form-check-label { padding-left: .35rem; }
/* Step 3: as many days as fit the width (the page counts them, see FitDaysAsync: arrows 40 px, gaps 5 px, a day at least 52 px),
   no sideways scrolling; times in a grid. */
.booking-strip { display: flex; align-items: stretch; gap: 5px; }
.booking-arrow { flex: 0 0 40px; min-width: 40px; font-size: 1.4rem; line-height: 1; padding: 0; }
.booking-days { display: flex; gap: 5px; flex: 1 1 0; min-width: 0; overflow: hidden; }
.booking-day { flex: 1 1 0; min-width: 0; min-height: 3.5rem; line-height: 1.15; padding-left: 0; padding-right: 0; }
.booking-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: .5rem; }
.booking-time { min-height: 46px; }
.booking-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: #fff; box-shadow: 0 -.25rem 1rem rgba(0, 0, 0, .12);
  padding: .6rem 0 calc(.6rem + env(safe-area-inset-bottom)); }
.booking-total { flex: 0 0 auto; max-width: 45%; }
/* TimeField.razor: a 24-hour time box with its list of times. */
.time-field { position: relative; min-width: 7.5rem; }
.time-field-list { position: absolute; z-index: 1060; top: 100%; left: 0; min-width: 100%; max-height: 14rem; overflow-y: auto; margin: 2px 0 0;
  padding: 4px 0; list-style: none; background: #fff; border: 1px solid #ced4da; border-radius: .375rem; box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15); }
.time-field-list li { padding: 3px 12px; cursor: pointer; font-variant-numeric: tabular-nums; }
.time-field-list li:hover { background: #e8f3f8; }
.time-field-list li.selected { background: var(--bs-primary); color: #fff; }
/* Two buttons on one page that must look the same size (Modificare doctor / personal: Înapoi la listă and Renunță). */
.btn-equal { min-width: 9.5rem; }
/* Booking step 4: the field robots fill and people never see (anti-spam). */
/* The anti-robot widget (Cloudflare Turnstile): centred, as wide as the form allows. */
.js-turnstile { display: flex; justify-content: center; }
.booking-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
