/* Dental Care Manager: own stylesheet (blue theme). Loaded after Bootstrap 5.3.
   Tamil text uses the bundled Noto Sans Tamil; Latin text uses the system UI font, so nothing is downloaded. */
@font-face { font-family: "Noto Sans Tamil"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/noto-sans-tamil-tamil-400-normal.woff2") format("woff2"); unicode-range: U+0B80-0BFF, U+200C-200D; }
@font-face { font-family: "Noto Sans Tamil"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/noto-sans-tamil-tamil-600-normal.woff2") format("woff2"); unicode-range: U+0B80-0BFF, U+200C-200D; }

:root {
    --blue-950: #07173d;
    --blue-900: #0a2a66;
    --blue-800: #0f3a8c;
    --blue-700: #1747b8;
    --blue-600: #1d5fe0;
    --blue-500: #3b82f6;
    --blue-100: #dbe8ff;
    --blue-50:  #eef4ff;
    --ink: #0f1b33;
    --muted: #5b6b88;
    --line: #dfe6f2;
    --page: #f2f5fb;
    --sidebar-w: 256px;

    --bs-primary: #1d5fe0;
    --bs-primary-rgb: 29, 95, 224;
    --bs-link-color: #1d5fe0;
    --bs-link-color-rgb: 29, 95, 224;
    --bs-link-hover-color: #0f3a8c;
    --bs-body-bg: #f2f5fb;
    --bs-body-color: #0f1b33;
    --bs-secondary-color: #5b6b88;
    --bs-border-color: #dfe6f2;
    --bs-body-font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Tamil", "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-size: .95rem;
    --bs-body-line-height: 1.5;
    --bs-border-radius: .6rem;
}
html { font-size: 15px; }
body { background: var(--page); color: var(--ink); }
.text-secondary { color: var(--muted) !important; }

/* ---------- Bootstrap restyle ---------- */
.btn { font-weight: 600; border-radius: .6rem; }
.btn-primary { --bs-btn-bg: #1d5fe0; --bs-btn-border-color: #1d5fe0; --bs-btn-hover-bg: #1747b8; --bs-btn-hover-border-color: #1747b8;
    --bs-btn-active-bg: #0f3a8c; --bs-btn-active-border-color: #0f3a8c; --bs-btn-disabled-bg: #1d5fe0; --bs-btn-disabled-border-color: #1d5fe0;
    --bs-btn-focus-shadow-rgb: 29, 95, 224; }
.btn-outline-primary { --bs-btn-color: #1d5fe0; --bs-btn-border-color: #1d5fe0; --bs-btn-hover-bg: #1d5fe0; --bs-btn-hover-border-color: #1d5fe0;
    --bs-btn-active-bg: #1747b8; --bs-btn-active-border-color: #1747b8; }
.form-control, .form-select { background-color: #fff; border-color: #cfd9ec; }
.form-control:focus, .form-select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 .22rem rgba(59, 130, 246, .25); }
.form-label { color: var(--ink); }
.form-check-input:checked { background-color: #1d5fe0; border-color: #1d5fe0; }
.card { border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15, 27, 51, .04); --bs-card-bg: #fff; }
.table { --bs-table-bg: transparent; --bs-table-hover-bg: var(--blue-50); }
.table > thead > tr > th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f7f9fd; border-bottom: 1px solid var(--line); font-weight: 600; white-space: nowrap; }
.table > :not(caption) > * > * { padding: .7rem .9rem; }
.badge { font-weight: 600; }
.alert { border-radius: 12px; border: 0; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px rgba(15, 27, 51, .12); padding: .4rem; }
.dropdown-item { border-radius: 8px; }
.dropdown-item.active, .dropdown-item:active { background: var(--blue-600); }
.list-group-item.active { background: var(--blue-600); border-color: var(--blue-600); }
h1.h3 { font-weight: 700; letter-spacing: -.01em; }

/* ---------- app shell: left menu + work area ---------- */
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); display: flex; flex-direction: column; z-index: 1040;
    background: linear-gradient(180deg, var(--blue-900) 0%, var(--blue-950) 100%); color: #cfdcf7; }
.sidebar-brand { display: flex; align-items: center; gap: .7rem; padding: 1.15rem 1.2rem 1rem; color: #fff; text-decoration: none; }
.sidebar-brand:hover { color: #fff; }
.logo-badge { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.logo-badge svg { width: 22px; height: 22px; }
.sidebar-brand .name { font-weight: 700; line-height: 1.2; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sidebar-brand .sub { display: block; font-size: .72rem; font-weight: 500; color: #8fa9de; letter-spacing: .04em; text-transform: uppercase; }
.sidebar-nav { flex: 1 1 auto; overflow-y: auto; padding: .4rem .8rem 1rem; }
.nav-label { margin: 1.1rem .6rem .35rem; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6f8ac4; }
.nav-link-item { display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; margin-bottom: 2px; border-radius: 10px; color: #cfdcf7; text-decoration: none; font-weight: 500; }
.nav-link-item i { font-size: 1.1rem; width: 1.25rem; text-align: center; color: #8fa9de; }
.nav-link-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-link-item:hover i { color: #fff; }
.nav-link-item.active { background: var(--blue-600); color: #fff; box-shadow: 0 4px 14px rgba(29, 95, 224, .45); }
.nav-link-item.active i { color: #fff; }
.sidebar-foot { padding: .8rem 1.2rem 1rem; font-size: .72rem; color: #6f8ac4; border-top: 1px solid rgba(255, 255, 255, .08); }
.sidebar-foot strong { color: #9fb6e8; }

.main-col { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: .8rem; padding: .6rem 1.5rem; background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar .spacer { flex: 1 1 auto; }
.menu-toggle { display: none; }
.branch-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; background: var(--blue-50); color: var(--blue-800); font-weight: 600; font-size: .85rem; }
.content { padding: 1.5rem; max-width: 1280px; width: 100%; }
.app-footer { margin-top: auto; padding: 1rem 1.5rem; font-size: .8rem; color: var(--muted); }
.sidebar-backdrop { display: none; }

@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
    body.sidebar-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(7, 23, 61, .5); z-index: 1035; }
    .main-col { margin-left: 0; }
    .menu-toggle { display: inline-flex; }
    .topbar { padding: .55rem 1rem; }
    .content { padding: 1rem; }
}

/* ---------- login ---------- */
body.auth { background: var(--blue-900); }
.login-bg { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; position: relative; overflow: hidden;
    background: radial-gradient(900px 520px at 85% -10%, #2f6fe8 0%, rgba(47, 111, 232, 0) 60%), radial-gradient(700px 500px at -10% 110%, #1747b8 0%, rgba(23, 71, 184, 0) 60%), linear-gradient(160deg, #0a2a66 0%, #0b3a94 55%, #0a2a66 100%); }
.login-bg::before, .login-bg::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); pointer-events: none; }
.login-bg::before { width: 620px; height: 620px; left: -200px; top: -220px; }
.login-bg::after { width: 760px; height: 760px; right: -280px; bottom: -340px; }
.login-card { position: relative; z-index: 1; width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 2.2rem 2rem 1.6rem; box-shadow: 0 30px 70px rgba(3, 12, 40, .45); }
.login-card .logo-badge { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 1rem; }
.login-card .logo-badge svg { width: 30px; height: 30px; }
.login-card h1 { font-size: 1.45rem; font-weight: 700; text-align: center; margin-bottom: .2rem; color: var(--blue-900); }
.login-card .tag { text-align: center; color: var(--muted); margin-bottom: 1.5rem; }
.login-vendor { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; font-size: .78rem; color: var(--muted); }
.login-vendor img { display: block; margin: .4rem auto .2rem; max-width: 170px; height: auto; }

.error-box { max-width: 520px; margin: 12vh auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 2rem; }

/* ---------- small helpers ---------- */
a.card { color: inherit; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
a.card:hover { border-color: var(--blue-500); box-shadow: 0 .5rem 1.2rem rgba(29, 95, 224, .14); transform: translateY(-1px); }
.tile-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); font-size: 1.25rem; margin-bottom: .7rem; }
.branch-checks { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.branch-checks input { margin-right: .35rem; }
.branch-checks label { margin-right: 1.25rem; }

/* Chair-side tablets: bigger touch targets */
@media (pointer: coarse) {
    .btn, .form-control, .form-select, .dropdown-item, .nav-link-item { min-height: 44px; }
    .btn-sm { min-height: 38px; }
}
@media print { .sidebar, .topbar, .app-footer, .no-print { display: none !important; } .main-col { margin: 0; } body { background: #fff; } }

/* ---------- collapsible parent menus ---------- */
.nav-group { margin-top: 2px; }
.nav-parent { width: 100%; display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border: 0; border-radius: 10px; background: transparent; color: #e3ecff; font-weight: 600; text-align: left; }
.nav-parent > i:first-child { font-size: 1.1rem; width: 1.25rem; text-align: center; color: #8fa9de; }
.nav-parent > span { flex: 1 1 auto; }
.nav-parent .chev { font-size: .8rem; color: #6f8ac4; transition: transform .2s ease; }
.nav-parent:not(.collapsed) .chev { transform: rotate(180deg); }
.nav-parent:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-parent:not(.collapsed) { color: #fff; }
.nav-children { padding: .1rem 0 .3rem 1.15rem; margin-left: 1.05rem; border-left: 1px solid rgba(255, 255, 255, .12); }
.nav-children .nav-link-item { padding: .5rem .7rem; font-size: .92rem; }
@media (pointer: coarse) { .nav-parent { min-height: 44px; } }

/* ---------- visit status ---------- */
.status-pill { display: inline-block; padding: .18rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.st-waiting { background: #fff4d6; color: #8a5a00; }
.st-inchair { background: #dbe8ff; color: #0f3a8c; }
.st-done { background: #dcf5e4; color: #14663a; }
.st-cancelled { background: #eceff5; color: #5b6b88; }
.token-badge { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .5rem; border-radius: 12px; background: var(--blue-50); color: var(--blue-800); font-weight: 700; font-size: 1.05rem; }
.alert-chips .badge { margin: 0 .3rem .3rem 0; }
.queue-summary { display: flex; flex-wrap: wrap; gap: .6rem; }
.queue-summary .chip { display: flex; align-items: baseline; gap: .45rem; padding: .5rem .9rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.queue-summary .chip b { font-size: 1.35rem; }

/* ---------- tooth chart ---------- */
.tooth-chart { overflow-x: auto; padding-bottom: .25rem; }
.tooth-row { display: flex; justify-content: center; gap: 4px; margin-bottom: 6px; min-width: max-content; }
.tooth-gap { width: 14px; border-left: 2px dashed #b9c6e2; margin: 0 4px; }
.tooth-label { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 2px 0 6px; }
.tooth { width: 44px; height: 54px; border: 2px solid #b9c6e2; border-radius: 14px 14px 20px 20px; background: #fff; color: var(--ink); font-weight: 700; font-size: .8rem; display: grid; place-items: end center; padding-bottom: 4px; cursor: pointer; transition: transform .1s ease, box-shadow .1s ease; }
.tooth:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(15, 27, 51, .15); }
.tooth.selected { outline: 3px solid var(--blue-500); outline-offset: 1px; }
.tooth-row.milk .tooth { width: 38px; height: 44px; font-size: .74rem; }
@media (pointer: coarse) { .tooth { width: 48px; height: 58px; } .tooth-row.milk .tooth { width: 42px; height: 48px; } }
.tooth.cond-0, .sw.cond-0 { background: #f8b4b4; border-color: #d64545; }
.tooth.cond-1, .sw.cond-1 { background: #e3e6ec; border-color: #8a93a6; color: #8a93a6; text-decoration: line-through; }
.tooth.cond-2, .sw.cond-2 { background: #b8d4ff; border-color: #2f6fe8; }
.tooth.cond-3, .sw.cond-3 { background: #ffe29a; border-color: #d19a00; }
.tooth.cond-4, .sw.cond-4 { background: #d8c6f5; border-color: #7b4fc9; }
.tooth.cond-5, .sw.cond-5 { background: #ffd0a3; border-color: #e07a1f; }
.tooth.cond-6, .sw.cond-6 { background: #f5c2dd; border-color: #c9358a; }
.tooth.cond-7, .sw.cond-7 { background: #fff3a8; border-color: #b8a400; }
.tooth.cond-8, .sw.cond-8 { background: #b7ecdf; border-color: #11a58a; }
.tooth.cond-9, .sw.cond-9 { background: #cdd9ff; border-color: #4b5fd1; }
.tooth.cond-10, .sw.cond-10 { background: #d9dde6; border-color: #6b7487; }
.tooth-legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .78rem; color: var(--muted); }
.tooth-legend .sw { display: inline-block; width: 12px; height: 12px; border: 2px solid; border-radius: 4px; margin-right: .3rem; vertical-align: -1px; }
.rx-grid td { padding: .35rem .4rem; }
.rx-grid .form-select-sm { min-width: 62px; }

/* Yes / No switch on the patient medical history */
.yn-switch { display: inline-flex; align-items: center; gap: .5rem; }
.yn-switch input[type=checkbox] {
  -webkit-appearance: none; appearance: none; margin: 0; cursor: pointer;
  width: 2.75rem; height: 1.5rem; border-radius: 1rem; background: #cbd5e1; position: relative; transition: background .15s;
}
.yn-switch input[type=checkbox]::after {
  content: ""; position: absolute; top: .15rem; left: .15rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; transition: left .15s;
}
.yn-switch input[type=checkbox]:checked { background: #dc3545; }
.yn-switch input[type=checkbox]:checked::after { left: 1.4rem; }
.yn-switch input[type=checkbox]:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.yn-text.is-yes { color: #dc3545 !important; }
.yn-name { width: 16rem; max-width: 100%; text-transform: uppercase; }
.yn-remark { min-width: 12rem; width: auto; }

/* Patient autocomplete dropdown */
.patient-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 1055; max-height: 340px; overflow-y: auto; margin-top: 2px; }
.patient-suggest .patient-suggest-row.active { background: #e8f0fe; }

/* Avatars and gender colours: blue for male, pink for female */
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; object-fit: cover; color: #fff; font-weight: 700; line-height: 1; }
.avatar.g-M { background: #2563eb; }
.avatar.g-F { background: #db2777; }
.avatar.g-O { background: #7c3aed; }
.avatar.g-U { background: #94a3b8; }
.gtext-M { color: #2563eb; }
.gtext-F { color: #db2777; }
.gtext-O { color: #7c3aed; }
.qrow.gender-M > td:first-child { box-shadow: inset 4px 0 0 #2563eb; }
.qrow.gender-F > td:first-child { box-shadow: inset 4px 0 0 #db2777; }
.qrow.gender-O > td:first-child { box-shadow: inset 4px 0 0 #7c3aed; }
.photo-frame .avatar { border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }

/* Multi-tooth picker on the treatment plan */
.tp-panel { border: 1px solid var(--line); border-radius: 12px; padding: .75rem; background: #fff; overflow-x: auto; }
.tp-row { display: flex; gap: 4px; margin-bottom: 4px; white-space: nowrap; }
.tp-gap { width: 14px; flex: 0 0 auto; }
.tp-btn { min-width: 38px; height: 38px; padding: 0 4px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; font-weight: 600; font-size: .85rem; }
.tp-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.tp-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; margin: .5rem 0 .25rem; }

/* Appointment chart */
.appt-chart { font-size: .85rem; }
.appt-chart th, .appt-chart td { vertical-align: top; }
.appt-chart thead th { background: #f8fafc; min-width: 150px; }
.appt-chart .appt-time { width: 64px; min-width: 64px !important; text-align: right; background: #f8fafc; font-weight: 600; color: #475569; position: sticky; left: 0; z-index: 1; }
.appt-cell { position: relative; min-height: 44px; height: 44px; padding: 3px !important; }
.appt-cell.past { background: #f1f5f9; }
.appt-cell.off { background: repeating-linear-gradient(45deg, #fff7e6, #fff7e6 6px, #fff 6px, #fff 12px); }
.appt-cell.past.off { background: #f1f5f9; }
.appt-off-head { background: #fff7e6 !important; }
.slot-add { display: block; width: 100%; height: 32px; border: 1px dashed #93c5fd; border-radius: 8px; background: transparent; color: #2563eb; font-weight: 700; line-height: 1; opacity: .55; }
.appt-cell.has .slot-add { height: 22px; font-size: .8rem; margin-top: 2px; }
.slot-add:hover, .slot-add:focus { opacity: 1; background: #eff6ff; border-style: solid; }
.appt-chip { display: block; width: 100%; margin-bottom: 2px; padding: 3px 8px; border: 0; border-radius: 8px; text-align: left; font-weight: 600; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-chip.booked { background: #dbeafe; color: #1e3a8a; }
.appt-chip.booked:hover { background: #bfdbfe; }
.appt-chip.arrived { background: #dcfce7; color: #166534; }
.appt-key { display: inline-block; margin-left: .6rem; padding: 0 .5rem; border-radius: 6px; font-size: .75rem; font-weight: 600; }
.appt-key.free { border: 1px dashed #93c5fd; color: #2563eb; }
.appt-key.booked { background: #dbeafe; color: #1e3a8a; }
.appt-key.arrived { background: #dcfce7; color: #166534; }
.appt-key.off { background: #fff7e6; color: #92400e; }
.appt-book-flash { box-shadow: 0 0 0 3px #93c5fd; transition: box-shadow .3s; }

/* Dashboards: coloured KPI cards, donut and bar insights */
.kpi { position: relative; border-radius: 14px; padding: 14px 16px; color: #fff; height: 100%; box-shadow: 0 2px 8px rgba(15, 23, 42, .12); overflow: hidden; }
.kpi .kpi-ic { position: absolute; right: 12px; top: 10px; font-size: 1.9rem; opacity: .28; }
.kpi .kpi-l { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; opacity: .92; }
.kpi .kpi-v { font-size: 1.55rem; font-weight: 700; line-height: 1.2; margin-top: 2px; }
.kpi .kpi-d { font-size: .78rem; margin-top: 2px; opacity: .95; }
.kpi-blue { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.kpi-green { background: linear-gradient(135deg, #15803d, #22c55e); }
.kpi-purple { background: linear-gradient(135deg, #6d28d9, #a78bfa); }
.kpi-orange { background: linear-gradient(135deg, #c2410c, #fb923c); }
.kpi-red { background: linear-gradient(135deg, #b91c1c, #f87171); }
.kpi-teal { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.kpi-pink { background: linear-gradient(135deg, #be185d, #f472b6); }
.kpi-slate { background: linear-gradient(135deg, #334155, #64748b); }
.insight { border-left: 4px solid #94a3b8; border-radius: 6px; padding: 8px 12px; margin-bottom: 8px; background: rgba(148, 163, 184, .10); }
.insight-good { border-left-color: #16a34a; background: rgba(22, 163, 74, .10); }
.insight-warn { border-left-color: #f59e0b; background: rgba(245, 158, 11, .12); }
.insight-bad { border-left-color: #dc2626; background: rgba(220, 38, 38, .10); }
.insight-info { border-left-color: #2563eb; background: rgba(37, 99, 235, .09); }
.donut { position: relative; width: 132px; height: 132px; border-radius: 50%; flex: 0 0 auto; }
.donut::after { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: var(--bs-body-bg, #fff); }
.hbar { height: 10px; border-radius: 6px; background: rgba(148, 163, 184, .25); overflow: hidden; }
.hbar > span { display: block; height: 100%; border-radius: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

/* ---------- product branding: dDental Soft ---------- */
.wm { font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.wm b { font-weight: 800; color: #7fb0ff; }
.sidebar-brand .wm { font-size: 1.15rem; }
.sidebar-brand .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 11.5rem; letter-spacing: .03em; }
.login-card h1 .wm b { color: var(--blue-600); }
.login-card h1 { font-size: 1.7rem; }
.login-card .tag { margin-bottom: .8rem; }
.login-clinic { text-align: center; margin: 0 auto 1.4rem; padding: .35rem .8rem; border-radius: 999px; background: var(--blue-50); color: var(--blue-800); font-size: .85rem; width: fit-content; max-width: 100%; }

/* ---------- licence: header chip (green / yellow / red) and the pulsing home widget ---------- */
.lic-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; font-weight: 600; font-size: .8rem; white-space: nowrap; border: 1px solid transparent; cursor: default; }
.lic-ok { background: #e3f6ea; color: #14683a; border-color: #b6e4c8; }
.lic-warn { background: #fff4cc; color: #7a5a00; border-color: #f2dc8a; }
.lic-bad { background: #fde4e4; color: #a01919; border-color: #f4b6b6; }
@media (max-width: 575.98px) { .lic-chip .lic-t { display: none; } .lic-chip { padding: .3rem .55rem; } }

.lic-alert { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; padding: .9rem 1.1rem; border-radius: 16px; color: #fff;
    background: linear-gradient(135deg, #c62828 0%, #e53935 60%, #ef6a4c 100%); box-shadow: 0 .5rem 1.4rem rgba(198, 40, 40, .3); animation: lic-pulse 1.8s ease-out infinite; }
.lic-alert-ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; background: rgba(255, 255, 255, .2); animation: lic-ring 1.8s ease-in-out infinite; transform-origin: 50% 20%; }
.lic-alert-body { flex: 1 1 auto; min-width: 0; }
.lic-alert-t { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.lic-alert-s { font-size: .88rem; opacity: .95; margin-top: .15rem; }
.lic-alert-n { flex: 0 0 auto; text-align: center; padding: .35rem .9rem; border-radius: 12px; background: rgba(255, 255, 255, .18); line-height: 1.1; }
.lic-alert-n span { display: block; font-size: 1.7rem; font-weight: 800; }
.lic-alert-n small { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; opacity: .95; }
@keyframes lic-pulse { 0% { box-shadow: 0 .5rem 1.4rem rgba(198, 40, 40, .3), 0 0 0 0 rgba(229, 57, 53, .55); } 70% { box-shadow: 0 .5rem 1.4rem rgba(198, 40, 40, .3), 0 0 0 16px rgba(229, 57, 53, 0); } 100% { box-shadow: 0 .5rem 1.4rem rgba(198, 40, 40, .3), 0 0 0 0 rgba(229, 57, 53, 0); } }
@keyframes lic-ring { 0%, 60%, 100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(8deg); } 40% { transform: rotate(-6deg); } 50% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .lic-alert, .lic-alert-ic { animation: none; } }
@media (max-width: 575.98px) { .lic-alert { flex-wrap: wrap; } .lic-alert-n { display: flex; align-items: baseline; gap: .4rem; } }

/* ---------- logo images (dDental) ---------- */
.sidebar-brand { flex-direction: column; align-items: flex-start; gap: .35rem; }
.brand-logo { display: block; width: 168px; max-width: 100%; height: auto; }
.brand-on-light { display: none; }
.login-logo { display: block; width: 230px; max-width: 80%; height: auto; margin: 0 auto .9rem; }
