/* =====================================================================
   Clinic Management — design system
   Section accents, gradient sidebar, colourful tables, soft badges,
   icon buttons, body map and dental chart. Works in RTL and LTR
   (logical properties are used throughout).
   ===================================================================== */
:root {
    --ink: #1e293b; --muted: #64748b; --line: #e6ecf3; --bg: #f2f6fb; --card: #fff;
    --radius: 16px; --radius-sm: 10px;
    --shadow: 0 8px 28px rgba(30, 41, 59, .07); --shadow-sm: 0 2px 10px rgba(30, 41, 59, .06);
    --accent: #0d9488; --accent-2: #2dd4bf; --accent-soft: #ccfbf1;
    --side-1: #0b1f3a; --side-2: #123d5a;
}
[data-section=medical]   { --accent: #e11d48; --accent-2: #fb7185; --accent-soft: #ffe4e9; }
[data-section=dental]    { --accent: #7c3aed; --accent-2: #a78bfa; --accent-soft: #ede9fe; }
[data-section=finance]   { --accent: #d97706; --accent-2: #fbbf24; --accent-soft: #fef3c7; }
[data-section=inventory] { --accent: #2563eb; --accent-2: #60a5fa; --accent-soft: #dbeafe; }
[data-section=reports]   { --accent: #4f46e5; --accent-2: #818cf8; --accent-soft: #e0e7ff; }
[data-section=admin]     { --accent: #475569; --accent-2: #94a3b8; --accent-soft: #e2e8f0; }

body { font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif; background: var(--bg); color: var(--ink); font-size: .95rem; }
a { color: var(--accent); text-decoration: none; } a:hover { color: color-mix(in srgb, var(--accent) 75%, #000); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; }
.text-rose { color: #e11d48 !important; }
.fw-semibold { font-weight: 600 !important; }

/* ---------- shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 1.25rem 1.5rem 2.5rem; max-width: 1500px; width: 100%; margin-inline: auto; }
@media (max-width: 575.98px) { .content { padding: 1rem .75rem 2rem; } }

/* ---------- sidebar ---------- */
.sidebar { width: 268px; flex-shrink: 0; color: #fff; background: linear-gradient(180deg, var(--side-1), var(--side-2)); display: flex; flex-direction: column; min-height: 100vh; }
.sidebar-desktop { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
@media (max-width: 991.98px) { .sidebar-desktop { display: none; } }
.offcanvas-nav { width: 280px !important; background: linear-gradient(180deg, var(--side-1), var(--side-2)); }
.sidebar .brand { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1.25rem; font-weight: 700; font-size: 1.05rem; letter-spacing: .2px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.brand-logo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #2dd4bf, #0d9488); box-shadow: 0 6px 16px rgba(13, 148, 136, .45); font-size: 1.2rem; flex-shrink: 0; }
.brand-logo.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 2rem; margin-bottom: .75rem; color: #fff; }
.sidebar-nav { padding: .5rem .65rem 1.5rem; overflow-y: auto; }
.nav-group-title { margin: 1rem .75rem .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.nav-link-item { display: flex; align-items: center; gap: .75rem; padding: .55rem .8rem; margin: 2px 0; border-radius: 12px; color: rgba(255, 255, 255, .78); font-weight: 500; transition: background .15s, color .15s, transform .15s; }
.nav-link-item i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .07); font-size: 1rem; transition: background .15s; }
.nav-link-item:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.nav-link-item.active { background: linear-gradient(90deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06)); color: #fff; box-shadow: inset 3px 0 0 var(--ic, #2dd4bf); }
[dir=rtl] .nav-link-item.active { box-shadow: inset -3px 0 0 var(--ic, #2dd4bf); }
.nav-link-item i { color: var(--ic, #2dd4bf); }
.nav-link-item.active i { background: var(--ic, #2dd4bf); color: #0b1f3a; }
.grp-main { --ic: #5eead4; } .grp-clinic { --ic: #2dd4bf; } .grp-medical { --ic: #fb7185; } .grp-dental { --ic: #a78bfa; }
.grp-finance { --ic: #fbbf24; } .grp-inventory { --ic: #60a5fa; } .grp-reports { --ic: #818cf8; } .grp-admin { --ic: #94a3b8; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .75rem; padding: .6rem 1.25rem; background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.btn-icon { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; padding: 0; font-size: 1.3rem; }
.topbar-search { position: relative; flex: 1; max-width: 420px; align-items: center; }
.topbar-search i { position: absolute; inset-inline-start: 14px; color: var(--muted); }
.topbar-search .form-control { padding-inline-start: 40px; border-radius: 999px; background: #f1f5f9; border-color: transparent; }
.topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .6rem; }
.user-chip { display: flex; align-items: center; gap: .55rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .25rem .75rem .25rem .3rem; font-weight: 600; }
[dir=rtl] .user-chip { padding: .25rem .3rem .25rem .75rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* ---------- page header ---------- */
.page-header { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.35rem; margin-bottom: 1.25rem; border-radius: var(--radius); color: #fff; background: linear-gradient(120deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 35%, transparent); position: relative; overflow: hidden; }
.page-header::after { content: ""; position: absolute; inset-inline-end: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.ph-icon { width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 1.6rem; flex-shrink: 0; z-index: 1; }
.ph-text { z-index: 1; min-width: 0; } .page-header h1 { font-size: 1.35rem; margin: 0; } .ph-sub { opacity: .88; font-size: .88rem; margin-top: .1rem; }
.ph-actions { margin-inline-start: auto; z-index: 1; display: flex; gap: .5rem; }
.section-title { font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.section-title i { color: var(--accent); }

/* ---------- cards ---------- */
.card { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--card); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); font-weight: 600; }
.card-footer { border-top: 1px solid var(--line); }
.stat-card { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); height: 100%; transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
a.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.stat-card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--t1), var(--t2)); }
.stat-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-size: 1.5rem; flex-shrink: 0; background: linear-gradient(135deg, var(--t1), var(--t2)); box-shadow: 0 8px 18px color-mix(in srgb, var(--t1) 35%, transparent); }
.stat-label { color: var(--muted); font-size: .8rem; font-weight: 600; } .stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1.15; } .stat-sub { color: var(--muted); font-size: .78rem; }
.tone-teal { --t1: #0d9488; --t2: #2dd4bf; } .tone-rose { --t1: #e11d48; --t2: #fb7185; } .tone-violet { --t1: #7c3aed; --t2: #a78bfa; }
.tone-amber { --t1: #d97706; --t2: #fbbf24; } .tone-blue { --t1: #2563eb; --t2: #60a5fa; } .tone-green { --t1: #16a34a; --t2: #4ade80; }
.tone-slate { --t1: #475569; --t2: #94a3b8; } .tone-indigo { --t1: #4f46e5; --t2: #818cf8; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .85rem; }
.quick-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1.1rem .5rem; border-radius: var(--radius); color: #fff; font-weight: 700; text-align: center; background: linear-gradient(135deg, var(--t1), var(--t2)); box-shadow: 0 10px 22px color-mix(in srgb, var(--t1) 30%, transparent); transition: transform .15s; }
.quick-tile:hover { transform: translateY(-4px); color: #fff; } .quick-tile i { font-size: 1.8rem; }
.upcoming-row { display: flex; align-items: center; gap: .8rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); } .upcoming-row .time { font-weight: 800; color: var(--accent); min-width: 54px; }
.feature-list { list-style: none; padding: 0; margin: 0; } .feature-list li { display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); } .feature-list i { color: var(--accent); font-size: 1.2rem; }
.empty-row { text-align: center; color: var(--muted); padding: 2rem !important; } .empty-row i { font-size: 1.4rem; display: block; margin-bottom: .25rem; opacity: .6; }

/* ---------- tables ---------- */
.table { --bs-table-bg: transparent; margin-bottom: 0; color: var(--ink); }
.card > .table-responsive, .card > .table { border-radius: var(--radius); overflow: hidden; }
.table > thead > tr > th { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 600; font-size: .82rem; letter-spacing: .02em; border: 0; padding: .8rem .9rem; white-space: nowrap; }
.table > tbody > tr > td { padding: .75rem .9rem; border-color: var(--line); vertical-align: middle; }
.table > tbody > tr:nth-child(even) { background: color-mix(in srgb, var(--accent) 3%, #fff); }
.table-hover > tbody > tr:hover { background: color-mix(in srgb, var(--accent) 9%, #fff); }
.table > tfoot > tr > th, .table > tfoot > tr > td { background: color-mix(in srgb, var(--accent) 8%, #fff); border-top: 2px solid var(--accent); font-weight: 700; }
.table-sm > thead > tr > th, .table-sm > tbody > tr > td { padding: .5rem .7rem; }
.table-borderless > :not(caption) > * > * { border: 0; }
.table-modern .small { line-height: 1.25; }
.vital-flag { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-weight: 700; color: #b91c1c; background: #fee2e2; }

/* ---------- badges (soft pills) ---------- */
.badge { border-radius: 999px; font-weight: 600; padding: .38em .75em; letter-spacing: .01em; }
.badge.text-bg-success, .badge.soft-green { background: #dcfce7 !important; color: #166534 !important; }
.badge.text-bg-danger, .badge.soft-rose { background: #ffe4e6 !important; color: #be123c !important; }
.badge.text-bg-warning, .badge.soft-amber { background: #fef3c7 !important; color: #92400e !important; }
.badge.text-bg-primary, .badge.soft-blue { background: #dbeafe !important; color: #1d4ed8 !important; }
.badge.text-bg-info { background: #cffafe !important; color: #0e7490 !important; }
.badge.text-bg-secondary, .badge.soft-slate { background: #e2e8f0 !important; color: #475569 !important; }
.badge.text-bg-light { background: #f1f5f9 !important; color: #475569 !important; border: 1px solid var(--line) !important; }
.badge.soft-violet { background: #ede9fe !important; color: #6d28d9 !important; }

/* ---------- buttons ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; transition: transform .12s, box-shadow .12s; }
.btn:active { transform: translateY(1px); } .btn-sm { border-radius: 9px; gap: .3rem; } .btn-lg { border-radius: 14px; }
.btn .bi { font-size: 1.02em; line-height: 1; }
.btn-primary { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: color-mix(in srgb, var(--accent) 85%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--accent) 85%, #000); --bs-btn-active-bg: color-mix(in srgb, var(--accent) 75%, #000); --bs-btn-active-border-color: var(--accent); --bs-btn-disabled-bg: var(--accent); --bs-btn-disabled-border-color: var(--accent); background-image: linear-gradient(135deg, var(--accent), var(--accent-2)); border: 0; box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-primary:hover { box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn-success { --bs-btn-bg: #16a34a; --bs-btn-border-color: #16a34a; --bs-btn-hover-bg: #15803d; --bs-btn-hover-border-color: #15803d; background-image: linear-gradient(135deg, #16a34a, #4ade80); border: 0; box-shadow: 0 6px 14px rgba(22, 163, 74, .28); }
.btn-danger { background-image: linear-gradient(135deg, #e11d48, #fb7185); border: 0; box-shadow: 0 6px 14px rgba(225, 29, 72, .28); }
.btn-warning { background-image: linear-gradient(135deg, #f59e0b, #fcd34d); border: 0; color: #422006; }
.btn-outline-primary { --bs-btn-color: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: var(--accent); --bs-btn-hover-border-color: var(--accent); --bs-btn-active-bg: var(--accent); --bs-btn-active-border-color: var(--accent); }
.btn-outline-success { --bs-btn-color: #15803d; --bs-btn-border-color: #86efac; --bs-btn-hover-bg: #16a34a; --bs-btn-hover-border-color: #16a34a; }
.btn-outline-danger { --bs-btn-color: #be123c; --bs-btn-border-color: #fda4af; --bs-btn-hover-bg: #e11d48; --bs-btn-hover-border-color: #e11d48; }
.btn-outline-warning { --bs-btn-color: #b45309; --bs-btn-border-color: #fcd34d; --bs-btn-hover-bg: #f59e0b; --bs-btn-hover-border-color: #f59e0b; --bs-btn-hover-color: #fff; }
.btn-outline-secondary { --bs-btn-color: #475569; --bs-btn-border-color: #cbd5e1; --bs-btn-hover-bg: #475569; --bs-btn-hover-border-color: #475569; }
.btn-link { text-decoration: none; color: var(--muted); } .btn-link:hover { color: var(--accent); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* ---------- forms ---------- */
.form-control, .form-select { border-radius: var(--radius-sm); border-color: #d6dee8; padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--accent) 18%, transparent); }
.form-label { font-weight: 600; color: #334155; margin-bottom: .3rem; font-size: .88rem; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-text { color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; background: #fff; border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.filter-bar > div { min-width: 140px; } .filter-bar > .grow { flex: 1; min-width: 220px; } .filter-bar label { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; display: block; }
.input-icon { position: relative; } .input-icon > i { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .form-control { padding-inline-start: 40px; }

/* ---------- tabs, alerts, pagination, misc ---------- */
.tabs-modern { gap: .4rem; background: #fff; padding: .4rem; border-radius: 14px; box-shadow: var(--shadow-sm); overflow-x: auto; flex-wrap: nowrap; }
.tabs-modern .nav-link { color: #475569; font-weight: 600; border-radius: 10px; white-space: nowrap; display: flex; gap: .4rem; align-items: center; }
.tabs-modern .nav-link.active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.alert { border: 0; border-radius: 14px; border-inline-start: 5px solid; display: flex; align-items: center; gap: .6rem; }
.alert-success { background: #ecfdf5; color: #065f46; border-color: #10b981; } .alert-danger { background: #fff1f2; color: #9f1239; border-color: #f43f5e; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #f59e0b; } .alert-info { background: #eff6ff; color: #1e40af; border-color: #3b82f6; }
.alert .btn-close { margin-inline-start: auto; }
.pagination .page-link { border: 0; margin: 0 2px; border-radius: 10px !important; color: #475569; font-weight: 600; }
.pagination .page-item.active .page-link { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.dropdown-menu { border: 0; border-radius: 14px; box-shadow: var(--shadow); padding: .4rem; } .dropdown-item { border-radius: 9px; display: flex; gap: .5rem; align-items: center; }
.progress-soft { height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; } .progress-soft > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.dx-card { border-top: 4px solid var(--accent); transition: transform .15s, box-shadow .15s; } .dx-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dx-count { min-width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.dx-bar { height: 6px; border-radius: 99px; background: #eef2f7; margin-top: .75rem; } .dx-bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.perm-group { border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; background: #fff; }
.clinic-logo { max-height: 72px; max-width: 200px; object-fit: contain; }
.thumb { max-height: 90px; max-width: 140px; object-fit: cover; border-radius: .5rem; }

/* ---------- body map ---------- */
.bodymap { background: linear-gradient(180deg, #f8fbff, #eef4fb); border: 1px solid var(--line); border-radius: 18px; padding: .75rem; }
.bodymap svg { width: 100%; height: auto; display: block; max-height: 460px; }
.bm-part { fill: #dbe7f3; stroke: #8aa6c0; stroke-width: 1.4; stroke-linejoin: round; transition: fill .15s, filter .15s; cursor: pointer; }
.bm-part:hover { fill: #b9dcff; } .bm-part.sel { fill: #fb7185; stroke: #be123c; filter: drop-shadow(0 0 6px rgba(225, 29, 72, .55)); }
.bm-readonly .bm-part { cursor: default; } .bm-readonly .bm-part:not(.sel):hover { fill: #dbe7f3; }
.bm-cap { fill: #64748b; font-size: 13px; font-weight: 700; text-anchor: middle; font-family: inherit; }
.bm-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.bm-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 999px; background: #ffe4e6; color: #be123c; font-weight: 600; font-size: .8rem; }
.bm-chip-sm { padding: .12rem .5rem; font-size: .72rem; }

/* ---------- dental chart ---------- */
.dentition { overflow-x: auto; padding-bottom: .5rem; }
.arch { display: flex; gap: 3px; justify-content: center; min-width: max-content; margin-bottom: 6px; }
.arch .gap { width: 14px; border-inline-start: 2px dashed #b8c2cc; margin: 0 4px; }
.tooth { border: 2px solid transparent; background: #fff; border-radius: .7rem; padding: 3px; width: 48px; cursor: pointer; line-height: 1; box-shadow: var(--shadow-sm); transition: transform .12s, border-color .12s; }
.tooth:hover { border-color: var(--accent-2); transform: translateY(-2px); } .tooth.selected { border-color: var(--accent); background: var(--accent-soft); }
.tooth .tooth-no { display: block; font-size: .7rem; color: #6c757d; text-align: center; font-weight: 600; }
.tooth .tooth-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; grid-template-rows: 1fr 1.2fr 1fr; width: 36px; height: 36px; margin: 2px auto 0; gap: 1px; }
.tooth .s { background: #fff; border: 1px solid #b6c2cf; display: block; border-radius: 3px; }
.tooth .s-b { grid-area: 1 / 2; } .tooth .s-l { grid-area: 3 / 2; } .tooth .s-o { grid-area: 2 / 2; }
.tooth.right .s-m { grid-area: 2 / 3; } .tooth.right .s-d { grid-area: 2 / 1; } .tooth.left .s-m { grid-area: 2 / 1; } .tooth.left .s-d { grid-area: 2 / 3; }
.cond-Caries { background: #dc3545 !important; } .cond-Filling { background: #0d6efd !important; } .cond-Sealant { background: #20c997 !important; } .cond-Fracture { background: #fd7e14 !important; }
.tooth .whole { display: block; font-size: .6rem; text-align: center; font-weight: 700; min-height: .8rem; }
.tooth.whole-Missing { opacity: .45; background: #f1f3f5; } .tooth.whole-Missing .tooth-grid { background: repeating-linear-gradient(45deg, #ced4da, #ced4da 3px, #fff 3px, #fff 6px); }
.tooth.whole-Crown { border-color: #ffc107; } .tooth.whole-RootCanal { border-color: #6f42c1; } .tooth.whole-Implant { border-color: #198754; }
.tooth.whole-Bridge { border-color: #0dcaf0; } .tooth.whole-Impacted { border-color: #6c757d; } .tooth.whole-Veneer { border-color: #d63384; }
.legend span { display: inline-flex; align-items: center; gap: .3rem; margin-inline-end: .9rem; font-size: .8rem; } .legend i { width: 12px; height: 12px; display: inline-block; border: 1px solid #adb5bd; border-radius: 3px; }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; position: relative; overflow: hidden; background: linear-gradient(135deg, #0b1f3a 0%, #0d9488 100%); }
.auth-wrap::before, .auth-wrap::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.auth-wrap::before { width: 520px; height: 520px; inset-inline-start: -160px; top: -160px; } .auth-wrap::after { width: 420px; height: 420px; inset-inline-end: -120px; bottom: -140px; }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 440px; background: rgba(255, 255, 255, .97); border-radius: 24px; padding: 2rem 2rem 1.75rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.auth-lang { position: absolute; top: 1rem; inset-inline-end: 1rem; z-index: 2; } .auth-brand { text-align: center; margin-bottom: 1.5rem; } .auth-brand h1 { font-size: 1.4rem; margin: 0; } .auth-brand p { color: var(--muted); margin: .2rem 0 0; }

/* ---------- print ---------- */
@media print {
    .sidebar, .topbar, .no-print, .offcanvas, .alert, .page-header, .tabs-modern, .filter-bar { display: none !important; }
    body { background: #fff; } .content { padding: 0; max-width: none; } .card { box-shadow: none; border: 1px solid #ddd; }
    .table > thead > tr > th { background: #e5e7eb !important; color: #111 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .bm-part.sel { -webkit-print-color-adjust: exact; print-color-adjust: exact; filter: none; }
}

/* Brief highlight of the section a list screen's Edit button jumps to */
.focus-flash { animation: focusFlash 2.2s ease-out 1; }
@keyframes focusFlash { 0% { box-shadow: 0 0 0 4px rgba(13,148,136,.55); } 100% { box-shadow: 0 0 0 0 rgba(13,148,136,0); } }
.new-for-patient .card-body { overflow: visible; }

/* Demo sign-ins on the login page (Development only) */
.demo-accounts { border-top: 1px dashed var(--bs-border-color, #dee2e6); padding-top: 1rem; }
.demo-accounts .demo-title { font-weight: 600; margin-bottom: .6rem; font-size: .9rem; }
.demo-accounts .demo-fill { padding: .45rem .75rem; }
