/**
 * Modern dashboard UI overlay.
 * Loaded after main.css. Brand colors: navy #041d49, cyan #1c9dcc.
 */

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/noto-sans/noto-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/noto-sans/noto-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/noto-sans/noto-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/noto-sans/noto-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/noto-sans/noto-sans-latin-800-normal.woff2") format("woff2");
}



body.app-dashboard .page {
    background: transparent;
}

body.app-dashboard .main-content {
    position: relative;
    z-index: 1;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    body.app-dashboard .main-content.app-content {
        margin-inline-start: var(--dashboard-sidebar-width, 20rem);
        width: calc(100% - var(--dashboard-sidebar-width, 20rem));
        max-width: calc(100% - var(--dashboard-sidebar-width, 20rem));
        margin-block-start: 4.25rem;
        min-height: calc(100vh - 4.25rem);
        padding: 1.35rem 1.5rem 2rem;
    }
}

@media (max-width: 991.98px) {
    body.app-dashboard .main-content.app-content {
        margin-inline-start: 0;
        width: 100%;
        max-width: 100%;
        margin-block-start: 4.25rem;
        padding: 1.25rem 1rem 2rem;
    }
}

body.app-dashboard .container-fluid {
    max-width: 1480px;
}

/* Header */
.app-header.db-app-header {
    height: 4.65rem;
    background: rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(16px) saturate(160%);
    border-block-end: 1px solid var(--db-line);
    box-shadow: 0 8px 24px rgba(4, 29, 73, 0.05);
}
.db-app-header::after {
    height: 2px;
    background: linear-gradient(90deg, var(--db-navy) 0%, var(--db-cyan) 70%, transparent 100%);
}
.db-app-header__sidebar-toggle {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 12px;
    border-color: var(--db-line);
    box-shadow: none;
}

.app-sidebar.dashboard-sidebar-menu .main-sidebar,
.app-sidebar.dashboard-sidebar-menu .dashboard-sidebar-menu__scroll,
.app-sidebar.dashboard-sidebar-menu .dashboard-sidebar-menu__logo {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    padding: 0.85rem 0.9rem;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.05);
    text-decoration: none;
}
.app-sidebar.dashboard-sidebar-menu .main-sidebar-header .header-logo img,
.app-sidebar.dashboard-sidebar-menu .dashboard-sidebar-menu__logo .desktop-logo {
    max-height: 64px;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__scroll::-webkit-scrollbar-track {
    background-color: transparent;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__label {
    color: inherit !important;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__chevron {
    margin-left: auto;
    color: #8a8a8a;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__link:hover .dashboard-sidebar-menu__chevron,
.dashboard-sidebar-menu .dashboard-sidebar-menu__link.active .dashboard-sidebar-menu__chevron {
    opacity: 1;
    transform: translateX(0);
    color: #fff;
}

/* Page header — light title bar (not the navy banner) */
body.app-dashboard .main-content .db-page-header-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    margin: 0 0 1.35rem !important;
    padding: 0.1rem 0 1.05rem !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #e6eaf0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    position: relative;
}
body.app-dashboard .main-content .db-page-header-hero::after {
    display: none !important;
}
body.app-dashboard .main-content .db-page-header-hero :is(.db-page-header-hero__main, .db-page-header-hero__content) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}
body.app-dashboard .main-content .db-page-header-hero :is(.db-page-header-hero__nav, .db-page-header-hero__trail-wrap) {
    order: 1;
}
body.app-dashboard .main-content .db-page-header-hero .db-page-header-hero__title-icon .login-icon {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
}
[data-theme-mode=light] body.app-dashboard .db-page-header-hero :is(h4, .db-page-header-hero__title) {
    color: #122033 !important;
}
body.app-dashboard .db-page-header-hero__description {
    order: 3;
    margin: 0.1rem 0 0;
    color: #64748b !important;
    font-size: 0.95rem;
    max-width: 40rem;
    font-weight: 500;
}
body.app-dashboard .main-content .db-page-header-hero .db-page-header-hero__trail {
    gap: 0;
}
body.app-dashboard .main-content .db-page-header-hero .db-page-header-hero__trail-item {
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
    font-weight: 600;
}
body.app-dashboard .main-content .db-page-header-hero .db-page-header-hero__trail-item + .db-page-header-hero__trail-item::before {
    color: #cbd5e1 !important;
    content: "/" !important;
    font-family: inherit !important;
    padding-inline: 0.4rem;
    font-size: 0.8rem;
}
body.app-dashboard .main-content .db-page-header-hero .db-page-header-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #64748b !important;
    font-weight: 600;
}
body.app-dashboard .main-content .db-page-header-hero .db-page-header-hero__trail-item:first-child .db-page-header-hero__link::before {
    display: none !important;
    content: none !important;
}
body.app-dashboard .main-content .db-page-header-hero .db-page-header-hero__actions {
    margin-bottom: 0.15rem;
}

/* Cards, forms, tables */
.custom-card,
.card.custom-card,
.custom-card .card-header,
.custom-card .card-body,
.card .card-body {
    padding: 1.2rem;
}
.custom-card .card-footer,
.btn-primary {
    background: linear-gradient(180deg, #1c9dcc 0%, #1689b4 100%);
    border-color: #1689b4;
    /* Box shadow removed per owner request (2026-11-18). */
}
.btn-primary:hover,
.btn-primary:focus {
    background: #147aa1;
    border-color: #147aa1;
}
.form-control,
.form-select,
.form-control:focus,
.form-select:focus {
    border-color: var(--db-cyan);
    box-shadow: 0 0 0 0.2rem rgba(28, 157, 204, 0.16);
    background: #fff;
}
.table {
    --bs-table-bg: transparent;
}
.table thead th {
    font-size: 0.78rem;
    color: var(--db-muted);
    font-weight: 700;
    border-bottom-width: 1px;
}
.table tbody tr:hover {
    background: rgba(28, 157, 204, 0.05);
}
.table-responsive {
    border-radius: var(--db-radius);
    background: #fff;
}
.alert {
    border-radius: var(--db-radius-sm);
    border: 0;
}


/* Footer */
.footer {
    background: transparent !important;
    border-top: 0;
    color: var(--db-muted);
}
.footer .text-muted {
    color: var(--db-muted) !important;
    font-size: 0.82rem;
}

/* Empty states */
.empty-state,
.no-data,
.data-empty,
.empty-item1,
.alert-light.border {
    border-radius: 16px;
    background: #fff;
    border: 1px dashed rgba(28, 157, 204, 0.35) !important;
    color: var(--db-muted);
    padding: 1.4rem;
}

.db-modern-empty i,
.db-modern-empty .login-icon {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1.8rem;
    color: var(--db-cyan);
}
.db-dashboard-stat-card__icon .login-icon {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
    color: inherit;
}

.db-app-search-form-wrapper {
    border-radius: 14px;
    overflow: hidden;
}
.db-app-search-form-wrapper .db-app-form-content {
    border-radius: 12px;
}
.db-app-form-search-btn {
    border-radius: 10px !important;
}

/* My Profile — modern field boxes (scoped under .db-page-k8m3q7xp) */
.db-page-k8m3q7xp form .form-group-container {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 1.05rem !important;
    box-shadow: none !important;
}
.db-page-k8m3q7xp form .form-group-container .heading-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 0.15rem 0.45rem !important;
    margin: 0 !important;
}
.db-page-k8m3q7xp form .form-group-container .heading-wrapper .heading-text {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: normal;
    text-transform: none;
    color: #475569 !important;
}
.db-page-k8m3q7xp form .form-group-container .asterisk {
    font-size: 0.68rem !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #f4ecff !important;
    color: #5b24a4 !important;
    border: 1px solid #e4d7fb;
    border-radius: 999px !important;
    padding: 0.12rem 0.5rem !important;
    margin-left: 0 !important;
}
.db-page-k8m3q7xp form .form-group-container .form-group-content {
    padding: 0 !important;
}
.db-page-k8m3q7xp form .form-group-container .form-control,
.db-page-k8m3q7xp form .form-group-container textarea,
.db-page-k8m3q7xp form .form-group-container select {
    min-height: 48px;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 0.7rem 0.95rem;
    font-size: 0.95rem;
    color: #122033;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.db-page-k8m3q7xp form .form-group-container textarea {
    min-height: 120px;
}
.db-page-k8m3q7xp form .form-group-container .form-control::placeholder {
    color: #94a3b8;
}
.db-page-k8m3q7xp form .form-group-container .form-control:hover,
.db-page-k8m3q7xp form .form-group-container textarea:hover,
.db-page-k8m3q7xp form .form-group-container select:hover {
    border-color: #c9b6ee !important;
}
.db-page-k8m3q7xp form .form-group-container .form-control:focus,
.db-page-k8m3q7xp form .form-group-container textarea:focus,
.db-page-k8m3q7xp form .form-group-container select:focus {
    border-color: #5b24a4 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(91, 36, 164, 0.12) !important;
}
.db-page-k8m3q7xp .field-wrapper.input-box {
    display: block;
    width: 100%;
    position: relative;
}
.db-page-k8m3q7xp .field-wrapper .password-toggler {
    width: 38px;
    height: 38px;
    right: 8px;
    border-radius: 10px;
    color: #64748b;
}
.db-page-k8m3q7xp .field-wrapper .password-toggler:hover {
    color: #5b24a4;
    background: #f4ecff;
}
.db-page-k8m3q7xp form .form-group-container .field-wrapper .form-control {
    padding-right: 2.8rem;
}
.db-page-k8m3q7xp form .form-group-container .choices__inner {
    min-height: 48px !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.db-page-k8m3q7xp form .form-group-item {
    margin: 0 0 0.65rem;
}
.db-page-k8m3q7xp form .form-group-item:last-child {
    margin-bottom: 0;
}
.db-page-k8m3q7xp form .form-group-item > label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 0.35rem;
}
.db-page-k8m3q7xp form .form-group-field-wrapper {
    align-items: center;
}
.db-page-k8m3q7xp form .form-group-field-wrapper > label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-weight: 500;
    color: #334155;
}

@media (max-width: 991.98px) {
    .main-content .db-page-header-hero :is(.db-page-header-hero__title, h1.db-page-header-hero__title) {
        font-size: 1.35rem !important;
    }
    .dashboard-sidebar-menu .dashboard-sidebar-menu__link:hover {
        transform: none;
    }
}

/* Login — split-screen portal (scoped so main.css / Bootstrap cannot clip it) */
/* Reserve the scrollbar gutter permanently: with Windows' "auto-hide scroll
   bars" the scrollbar collapses to ~2px when the pointer is idle and expands
   on activity, changing the layout width by ~15px — the right-anchored
   profile toggle visibly "moves" on hover and the whole page oscillates
   between two widths (captured in a verification screenshot). A stable
   gutter keeps the layout width constant no matter what the scrollbar does. */
html {
    scrollbar-gutter: stable;
}

html:has(body.login-screen) {
    overflow: auto !important;
    height: auto !important;
    max-width: none;
}
body.login-screen {
    --login-accent: #3ec8f0;
    --login-accent-2: #9ae7fb;
    --login-glow: rgba(28, 157, 204, 0.4);
    --login-submit: linear-gradient(135deg, #1c9dcc 0%, #0e6f96 100%);
    --default-font-family: var(--db-font);
    min-height: 100vh;
    min-height: 100dvh;
    height: auto !important;
    margin: 0;
    padding: 0;
    overflow: auto !important;
    font-family: var(--db-font);
    font-size: 1.0625rem;
    color: #122033;
    background: #071428;
}
body.login-screen *,
body.login-screen *::before,
body.login-screen *::after {
    box-sizing: border-box;
}
body.login-screen.login-screen--admin {
    --login-accent: #3ec8f0;
    --login-accent-2: #9ae7fb;
    --login-glow: rgba(28, 157, 204, 0.4);
    --login-submit: linear-gradient(135deg, #1c9dcc 0%, #0e6f96 100%);
}
body.login-screen.login-screen--practitioner {
    --login-accent: #3ec8f0;
    --login-accent-2: #9ae7fb;
    --login-glow: rgba(28, 157, 204, 0.4);
    --login-submit: linear-gradient(135deg, #1c9dcc 0%, #0e6f96 100%);
}
body.login-screen .login-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1.15fr);
}
body.login-screen .login-brand {
    position: relative;
    overflow: hidden;
    padding: 3.25rem 3.5rem;
    color: #eef6fb;
    background:
        radial-gradient(900px 520px at 12% 18%, var(--login-glow), transparent 58%),
        radial-gradient(700px 480px at 90% 88%, rgba(4, 29, 73, 0.9), transparent 52%),
        linear-gradient(160deg, #041d49 0%, #06284f 48%, #081a33 100%);
    display: flex;
    align-items: flex-start;
}
body.login-screen .login-brand__aurora {
    position: absolute;
    top: -8rem;
    right: -8rem;
    width: 17rem;
    height: 17rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--login-accent) 0%, transparent 68%);
    opacity: 0.22;
    filter: blur(8px);
    animation: login-drift 14s ease-in-out infinite;
    pointer-events: none;
}
body.login-screen .login-brand__field {
    position: absolute;
    left: auto;
    right: -3.5rem;
    top: -3.5rem;
    width: min(16rem, 55%);
    aspect-ratio: 1;
    pointer-events: none;
}
body.login-screen .login-brand__orbit {
    position: absolute;
    inset: 0;
    margin: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}
body.login-screen .login-brand__orbit--outer {
    width: 100%;
    height: 100%;
    animation: login-spin 36s linear infinite;
}
body.login-screen .login-brand__orbit--mid {
    width: 68%;
    height: 68%;
    border-color: rgba(255, 255, 255, 0.22);
    animation: login-spin 22s linear infinite reverse;
}
body.login-screen .login-brand__orbit--inner {
    width: 38%;
    height: 38%;
    background: radial-gradient(circle at 40% 40%, var(--login-accent-2), transparent 62%);
    border-color: var(--login-accent);
    opacity: 0.55;
}
body.login-screen .login-brand__pole {
    position: absolute;
    left: 50%;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}
body.login-screen .login-brand__pole--n {
    top: 0;
    transform: translate(-50%, -50%);
    color: #9ae7fb;
}
body.login-screen .login-brand__pole--s {
    bottom: 0;
    transform: translate(-50%, 50%);
    color: #f3c96b;
}
body.login-screen .login-brand__copy {
    position: relative;
    z-index: 1;
    max-width: 34rem;
}
body.login-screen .login-brand__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 240px;
    max-height: 88px;
    margin: 0 0 1.85rem;
    padding: 0.55rem 0.7rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    filter: none;
}
body.login-screen .login-brand__eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    background: rgba(28, 157, 204, 0.12);
    border: 1px solid rgba(28, 157, 204, 0.35);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--login-accent-2);
}
body.login-screen .login-brand__title {
    margin: 0 0 0.9rem;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1.15;
    letter-spacing: 1px;
    font-weight: 600;
    color: #fff;
}
body.login-screen .login-brand__text {
    margin: 0 0 1.6rem;
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(238, 246, 251, 0.78);
    max-width: 30rem;
}
body.login-screen .login-brand__points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}
body.login-screen .login-brand__points li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.94rem;
    font-weight: 600;
    color: #fff;
}
body.login-screen .login-brand__point-icon {
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--login-accent-2);
}
body.login-screen .login-brand__point-icon .login-icon {
    width: 1.05rem;
    height: 1.05rem;
}
body.login-screen .login-panel {
    display: grid;
    place-items: center;
    padding: 2.5rem 2rem;
    background:
        radial-gradient(500px 280px at 80% 0%, rgba(28, 157, 204, 0.12), transparent 60%),
        #f4f7fb;
}
body.login-screen .login-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: #fff;
    border: 1px solid rgba(4, 29, 73, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(4, 29, 73, 0.12);
    padding: 2.15rem 2.15rem 1.85rem;
}
body.login-screen .login-form-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 8;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    place-items: center;
    text-align: center;
    padding: 1.5rem;
}
body.login-screen .login-card.is-loading .login-form-overlay {
    display: grid;
}
body.login-screen .login-form-overlay__box {
    display: grid;
    justify-items: center;
    gap: 0.85rem;
}
body.login-screen .login-form-overlay__spinner {
    width: 2.35rem;
    height: 2.35rem;
    border: 3px solid rgba(4, 29, 73, 0.12);
    border-top-color: var(--login-accent, #1c9dcc);
    border-radius: 50%;
    animation: login-spin 0.7s linear infinite;
}
body.login-screen .login-form-overlay__label {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #041d49;
}
body.login-screen .login-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
}
body.login-screen .login-card__mark {
    display: none;
    width: auto;
    height: auto;
    max-width: 148px;
    max-height: 48px;
    filter: none;
}
body.login-screen .login-card__badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #041d49;
    background: #eef6fb;
    border: 1px solid #d7eaf3;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    white-space: nowrap;
}
body.login-screen .login-card__heading {
    margin: 0 0 0.4rem;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #041d49;
}
body.login-screen .login-card__lead {
    margin: 0 0 1.4rem;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
}
body.login-screen .login-alert {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin: 0 0 1.1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    background: #fdecec;
    color: #9f1239;
    font-size: 0.9rem;
    font-weight: 600;
}
body.login-screen .login-alert .login-icon {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}
body.login-screen .login-form {
    display: grid;
    gap: 0.95rem;
    margin: 0;
}
body.login-screen .login-forgot {
    display: flex;
    justify-content: flex-end;
    margin: -0.55rem 0 0;
}
body.login-screen .login-shell--center {
    grid-template-columns: 1fr;
    place-items: center;
    padding: 3rem 1.5rem;
    background: #ffffff;
}
body.login-screen .login-panel--center {
    width: 100%;
    padding: 0;
    background: none;
}
body.login-screen .login-forgot a {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0e6f96;
    text-decoration: none;
    transition: color 0.15s ease;
}
body.login-screen .login-forgot a:hover {
    color: #1c9dcc;
    text-decoration: underline;
}
body.login-screen .login-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 575.98px) {
    body.login-screen .login-field-row {
        grid-template-columns: 1fr;
    }
}
body.login-screen .login-field {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    width: 100%;
}
body.login-screen .login-field__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}
body.login-screen .login-field__control {
    position: relative;
    display: block;
    width: 100%;
}
body.login-screen .login-icon {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}
body.login-screen .login-icon[hidden],
body.login-screen .login-icon--off {
    display: none !important;
}
body.login-screen .login-field__toggle.is-visible .login-icon--on {
    display: none !important;
}
body.login-screen .login-field__toggle.is-visible .login-icon--off {
    display: block !important;
}
body.login-screen .login-field__control > .login-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7b8aa0;
    pointer-events: none;
    z-index: 1;
}
body.login-screen .login-field__control input::-ms-reveal,
body.login-screen .login-field__control input::-ms-clear,
body.login-screen .login-field__control input::-webkit-credentials-auto-fill-button {
    display: none !important;
}
body.login-screen .login-field__control input {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 52px;
    margin: 0;
    border: 1px solid #d7e2ee;
    border-radius: 16px;
    background: #f8fbff;
    padding: 0 3rem 0 2.6rem;
    font-family: inherit;
    font-size: 0.98rem;
    line-height: 1.2;
    color: #122033;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
body.login-screen .login-field__control input[readonly] {
    background: #f8fbff;
    color: #122033;
    opacity: 1;
    cursor: text;
}
body.login-screen .login-field__control input::placeholder {
    color: #94a3b8;
    opacity: 1;
}
body.login-screen .login-field__control input:focus {
    background: #fff;
    border-color: var(--login-accent);
    box-shadow: 0 0 0 4px var(--login-glow);
}
body.login-screen .login-field.is-invalid .login-field__control input {
    border-color: #e11d48;
    background: #fff8f8;
}
body.login-screen .login-field.is-invalid .login-field__control input:focus {
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.16);
}
body.login-screen .login-field.is-invalid .login-field__control > .login-icon {
    color: #e11d48;
}
body.login-screen .login-field__error {
    min-height: 1em;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e11d48;
}
body.login-screen .login-field__toggle {
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #64748b;
    display: grid;
    place-items: center;
    cursor: pointer;
}
body.login-screen .login-field__toggle .login-icon {
    grid-area: 1 / 1;
}
body.login-screen .login-field__toggle:hover {
    background: #eef6fb;
    color: #041d49;
}
body.login-screen .login-submit {
    display: inline-flex;
    width: 100%;
    margin-top: 0.35rem;
    height: 52px;
    padding: 0 1rem;
    border: 0;
    border-radius: 16px;
    background: var(--login-submit);
    color: #fff !important;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}
body.login-screen .login-submit:hover,
body.login-screen .login-submit:focus {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #fff !important;
}
body.login-screen .login-switch {
    margin: 1.5rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 1rem;
    color: #64748b;
}
body.login-screen .login-switch a {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    color: #0e6f96;
    text-decoration: none;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: rgba(28, 157, 204, 0.1);
    border: 1px solid rgba(28, 157, 204, 0.28);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
body.login-screen .login-switch a:hover {
    color: #fff;
    background: linear-gradient(135deg, #1c9dcc 0%, #0e6f96 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(28, 157, 204, 0.35);
}
body.login-screen .login-switch a:focus-visible {
    outline: 2px solid #1c9dcc;
    outline-offset: 2px;
}
@keyframes login-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes login-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-24px, 18px) scale(1.08); }
}
@media (max-width: 991.98px) {
    body.login-screen .login-shell {
        grid-template-columns: 1fr;
    }
    body.login-screen .login-brand {
        display: none;
    }
    body.login-screen .login-panel {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 1.5rem 1rem 2rem;
        align-items: start;
        padding-top: 2.4rem;
    }
    body.login-screen .login-card__mark {
        display: block;
    }
}

/* =====================================================================
   SaaS redesign layer — appended 2026-11-17
   Re-skins the existing hooks (same selectors, later in the cascade).
   Palette: canvas #F8FAFC · surface #FFFFFF · text #0F172A · muted #64748B
            accent #6366F1 · border #E2E8F0 · success #16A34A · warning #F59E0B
            danger #EF4444 — Linear/Stripe-style flat, white shell.
   ===================================================================== */


/* Flat canvas — replaces the gradient wash */
body.app-dashboard {
    font-family: var(--db-font);
    font-size: 1.0625rem;
    color: var(--db-text);
    --default-font-family: var(--db-font);
    background: var(--db-canvas);
}

/* ---------- Header: solid white, hairline border ---------- */
.app-header.db-app-header,
.app-header.dashboard-app-header {
    height: 4rem;
    background: #ffffff !important;
    backdrop-filter: none;
    border-block-end: 1px solid var(--db-line) !important;
    box-shadow: none !important;
}
.app-header.db-app-header::after,
.app-header.dashboard-app-header::after {
    display: none !important;
}
.db-app-header .header-content-left,
.dashboard-app-header .header-content-right {
    gap: 0.75rem;
}
.db-app-header__sidebar-toggle,
.sidemenu-toggle.db-app-header__sidebar-toggle {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--db-line);
    background: #fff;
    color: #475569;
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.db-app-header__sidebar-toggle:hover,
.sidemenu-toggle.db-app-header__sidebar-toggle:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}
.db-app-header__sidebar-toggle .login-icon,
.sidemenu-toggle .login-icon {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}
/* BUG FIX: `.db-app-header__profile-toggle:hover` was accidentally merged into
   this selector list in an earlier round, forcing the toggle to width/height
   2rem on hover. The header pins the button's right edge, so the 76px→32px
   width collapse made the button visibly slide ~44px to the right whenever
   the pointer approached — the reported "moving to right" flicker. The toggle
   keeps its own size at all times; only the standalone avatar icon is 2rem. */
.db-app-header__profile-avatar-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--db-accent-soft);
    color: var(--db-accent-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}
.db-app-header__element--profile .db-app-header__dropdown-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

/* ---------- Sidebar: white rail, light borders, indigo active ---------- */
.dashboard-sidebar-menu.app-sidebar,
.app-sidebar.dashboard-sidebar-menu .main-sidebar,
.app-sidebar.dashboard-sidebar-menu .dashboard-sidebar-menu__scroll,
.app-sidebar.dashboard-sidebar-menu #sidebar-scroll {
    background: #ffffff !important;
    margin: 0 !important;
    margin-block-start: 0 !important;
    border-color: var(--db-line) !important;
}
.dashboard-sidebar-menu.app-sidebar {
    background: #1f1f1f !important;
    border-inline-end: 1px solid var(--db-line) !important;
    box-shadow: none !important;
    padding-top: 0 !important;
}
.app-sidebar.dashboard-sidebar-menu .main-sidebar-header {
    background: #ffffff !important;
    border-block-end: 1px solid var(--db-line) !important;
    padding: 1.05rem 1rem 0.85rem;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0.25rem 0.2rem;
    box-shadow: none;
}
.dashboard-sidebar-menu .main-sidebar-header .header-logo img,
.dashboard-sidebar-menu .dashboard-sidebar-menu__logo .desktop-logo {
    max-height: 40px;
    width: auto;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__brand-name {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__brand-sub {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__scroll {
    padding: 0.75rem 0.7rem 1.25rem;
    scrollbar-color: #cbd5e1 transparent;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__scroll::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-color: #ffffff;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__list {
    padding: 0.4rem 0.35rem 1rem;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__section {
    margin: 1rem 0.55rem 0.45rem;
    padding: 0;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__section:first-child {
    margin-top: 0.35rem;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__item {
    margin: 0 0 0.2rem;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__link {
    border-radius: 10px;
    padding: 0.55rem 0.6rem;
    font-weight: 500;
    letter-spacing: 0;
    color: #64748b !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__icon {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    color: #64748b !important;
    border: 0;
    box-shadow: none;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__icon .login-icon {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__link:hover {
    background: #f1f5f9 !important;
    border-color: transparent !important;
    color: #0f172a !important;
    transform: none;
    box-shadow: none !important;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__link:hover .dashboard-sidebar-menu__icon {
    background: transparent !important;
    color: #0f172a !important;
    border-color: #444;
    border: 0;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__link.active {
    background: var(--db-accent-soft) !important;
    border-color: transparent !important;
    color: var(--db-accent-strong) !important;
    box-shadow: none !important;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__link.active .dashboard-sidebar-menu__icon {
    background: transparent !important;
    color: var(--db-accent-strong) !important;
    border-color: rgba(28, 157, 204, 0.35);
    box-shadow: none;
    border: 0;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__link.active .dashboard-sidebar-menu__label {
    font-weight: 600;
}

/* Sidebar user block (bottom) */
.dashboard-sidebar-menu .dashboard-sidebar-menu__user {
    margin: 0.75rem 0.35rem 0;
    padding: 0.75rem 0.6rem;
    border-top: 1px solid var(--db-line);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: var(--db-accent-soft);
    color: var(--db-accent-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
    text-decoration: none;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__user-meta {
    min-width: 0;
    flex: 1;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__user-role {
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__user-logout {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__user-logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}
.dashboard-sidebar-menu .dashboard-sidebar-menu__user-logout .login-icon {
    width: 1rem;
    height: 1rem;
    display: block;
}

/* ---------- Page header ---------- */
body.app-dashboard .main-content .db-page-header-hero .db-page-header-hero__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 12px;
    background: var(--db-accent-soft);
    color: var(--db-accent);
    border: 1px solid #e0e7ff;
}
body.app-dashboard .main-content .db-page-header-hero .db-page-header-hero__title,
body.app-dashboard .main-content .db-page-header-hero :is(.db-page-header-hero__title, h1.db-page-header-hero__title, h4) {
    order: 2;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
}
body.app-dashboard .main-content .db-page-header-hero .db-page-header-hero__link:hover {
    color: var(--db-accent-strong) !important;
}
body.app-dashboard .main-content .db-page-header-hero .db-page-header-hero__crumb-icon {
    width: 0.9rem;
    height: 0.9rem;
    display: block;
    color: var(--db-accent);
}
body.app-dashboard .main-content .db-page-header-hero .db-page-header-hero__trail-item--current {
    color: var(--db-accent-strong) !important;
    background: var(--db-accent-soft);
    border-radius: 999px;
    padding: 0.12rem 0.6rem;
    font-weight: 700;
}
body.app-dashboard .main-content .db-page-header-hero .db-page-header-hero__btn {
    border-radius: 10px;
    border: 1px solid var(--db-accent);
    background: var(--db-accent);
    color: #fff;
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.35);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
body.app-dashboard .main-content .db-page-header-hero .db-page-header-hero__btn:hover {
    background: var(--db-accent-strong);
    border-color: var(--db-accent-strong);
    color: #fff;
}

/* ---------- Cards ---------- */
.custom-card,
.card.custom-card,
.card {
    border-radius: var(--db-radius) !important;
    border: 1px solid var(--db-line) !important;
    box-shadow: var(--db-shadow) !important;
    background: var(--db-surface) !important;
}
.custom-card .card-header,
.card .card-header {
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #0f172a;
}
.custom-card .card-footer,
.card .card-footer {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 0.95rem 1.2rem;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
body.app-dashboard .btn-primary {
    background: var(--db-accent);
    border-color: var(--db-accent);
    /* Box shadow removed per owner request (2026-11-18) — third .btn-primary
       shadow site, same request. */
}
body.app-dashboard .btn-primary:hover,
body.app-dashboard .btn-primary:focus,
body.app-dashboard .btn-primary:focus-visible {
    background: var(--db-accent-strong);
    border-color: var(--db-accent-strong);
    box-shadow: none;
}
body.app-dashboard .btn-outline-primary {
    color: var(--db-accent-strong);
    border-color: #c7d2fe;
    background: #fff;
}
body.app-dashboard .btn-outline-primary:hover,
body.app-dashboard .btn-outline-primary:focus {
    background: var(--db-accent-soft);
    border-color: var(--db-accent);
    color: var(--db-accent-strong);
}
body.app-dashboard .btn-primary-light {
    background: var(--db-accent-soft);
    border-color: transparent;
    color: var(--db-accent-strong);
}
body.app-dashboard .btn-primary-light:hover,
body.app-dashboard .btn-primary-light:focus {
    background: #e0e7ff;
    border-color: transparent;
    color: #3730a3;
}
body.app-dashboard .btn-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}
body.app-dashboard .btn-warning:hover,
body.app-dashboard .btn-warning:focus {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #78350f;
}
body.app-dashboard .btn-danger {
    background: #fff;
    border-color: #fecaca;
    color: #b91c1c;
}
body.app-dashboard .btn-danger:hover,
body.app-dashboard .btn-danger:focus {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* ---------- Forms ---------- */
.form-control,
.form-select,
.choices__inner {
    border-radius: var(--db-radius-sm) !important;
    min-height: 42px;
    border-color: #cbd5e1 !important;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.9rem;
}
.form-control::placeholder {
    color: #94a3b8;
}
.form-control:focus,
.form-select:focus,
.choices__inner:focus {
    border-color: #a5b4fc !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
    background: #fff;
}
.form-label {
    font-size: 0.83rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}
.form-text,
.invalid-feedback,
small.text-muted {
    color: #94a3b8;
}

/* ---------- Tables ---------- */
body.app-dashboard .table {
    --bs-table-striped-bg: transparent;
    font-size: 0.885rem;
}
body.app-dashboard .table :is(td, th) {
    border-color: #cbd5e1 !important;
}
body.app-dashboard .table thead th {
    font-size: 0.9rem;
    color: #000;
    font-weight: 700;
    background: #f8fafc;
    border-bottom: 1px solid var(--db-line) !important;
}
body.app-dashboard .table tbody tr {
    transition: background-color 0.12s ease;
}
body.app-dashboard .table tbody tr:hover {
    background: #f8fafc;
}
body.app-dashboard .table td {
    vertical-align: middle;
}
body.app-dashboard .table-responsive {
    border-radius: var(--db-radius-sm);
    background: #fff;
}

/* ---------- Status badges (soft) ---------- */
body.app-dashboard .badge {
    border-radius: 999px;
    padding: 0.35em 0.75em;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
}
body.app-dashboard .badge.bg-success {
    background: #dcfce7 !important;
    color: #166534 !important;
}
body.app-dashboard .badge.bg-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
}
body.app-dashboard .badge.bg-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
}
body.app-dashboard .badge.bg-warning {
    background: #fef3c7 !important;
    color: #92400e !important;
}
body.app-dashboard .badge.bg-primary {
    background: var(--db-accent-soft) !important;
    color: #4338ca !important;
}
body.app-dashboard .badge.bg-info {
    background: #e0f2fe !important;
    color: #075985 !important;
}

/* ---------- Alerts, pagination, empty states ---------- */
/* Alert text at 20px (1.25rem) for success and error alerts */
body.app-dashboard .alert-success,
body.app-dashboard .alert-danger,
body.app-dashboard .alert-error {
    font-size: 1.25rem; /* 20px at the default 16px root size */
}
body.app-dashboard .alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
body.app-dashboard .alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
body.app-dashboard .alert a {
    font-weight: 600;
    text-decoration: underline;
}
.pagination .page-link {
    border-radius: 8px;
    margin: 0 0.15rem;
    border-color: var(--db-line);
    color: #475569;
    font-weight: 500;
}
.pagination .page-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.pagination .page-item.active .page-link {
    background: var(--db-accent);
    border-color: var(--db-accent);
    color: #fff;
}
.empty-state,
.no-data,
.data-empty,
.empty-item1,
.alert-light.border,
.db-modern-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 160px;
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 16px;
    color: #64748b;
    padding: 1.5rem;
}
.db-modern-empty .login-icon,
.db-modern-empty i {
    color: #94a3b8;
}

/* ---------- Stat cards ---------- */
.db-dashboard-stat-card {
    border-radius: var(--db-radius);
    border: 1px solid var(--db-line);
    box-shadow: var(--db-shadow);
    background: #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.db-dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--db-shadow-hover);
}
.db-dashboard-stat-card__accent {
    background: var(--db-accent);
}
.db-dashboard-stat-card__icon {
    background: var(--db-accent-soft);
    color: var(--db-accent-strong);
    border: 1px solid #e0e7ff;
}
.db-dashboard-stat-card__value {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.db-dashboard-stat-card__label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.85rem;
}

/* ---------- Footer ---------- */
body.app-dashboard .footer {
    color: #94a3b8;
}

/* ---------- Focus visibility + motion ---------- */
body.app-dashboard :focus-visible {
    outline: 2px solid #a5b4fc;
    outline-offset: 2px;
    border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
    body.app-dashboard *,
    body.app-dashboard *::before,
    body.app-dashboard *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* =====================================================================
   Header profile dropdown — modern refinement, appended 2026-11-17
   ===================================================================== */

.db-app-header__profile-toggle {
    border-radius: 12px;
    padding: 0.28rem 0.6rem 0.28rem 0.28rem;
    background: transparent;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}
/* No :hover rule for the toggle by explicit request: the pointer entering it
   causes no visual change. Keyboard focus and the open menu keep their
   highlight via :focus-visible and .show. */
.db-app-header__profile-toggle:focus-visible,
.db-app-header__profile-toggle.show {
    background: #f8fafc;
    border-color: var(--db-line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.db-app-header__profile-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}
.db-app-header__profile-meta {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    min-width: 0;
}
.db-app-header__profile-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    max-width: 12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.db-app-header__profile-role {
    font-size: 0.7rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.db-app-header__profile-caret {
    display: inline-flex;
    color: #94a3b8;
    transition: transform 0.15s ease, color 0.15s ease;
}
.db-app-header__profile-caret .login-icon {
    width: 0.95rem;
    height: 0.95rem;
    display: block;
}
.db-app-header__profile-toggle.show .db-app-header__profile-caret {
    transform: rotate(180deg);
    color: #475569;
}

/* Dropdown card */
.db-app-header__element--profile .db-app-header__dropdown--profile {
    border-radius: 14px;
    min-width: 250px;
    padding: 0.25rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--db-line);
    overflow: hidden;
}
.db-app-header__dropdown-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.7rem 0.65rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
    margin: 0 0 0.25rem -0.25rem;
    width: calc(100% + 0.5rem);
    padding-inline: 0.7rem;
}
.db-app-header__dropdown-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.82rem;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}
.db-app-header__dropdown-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.db-app-header__dropdown-user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.db-app-header__dropdown-user-email {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.db-app-header__element--profile .dropdown-divider {
    margin: 0.25rem 0.35rem;
    border-color: #f1f5f9;
    opacity: 1;
}
.db-app-header__element--profile .db-app-header__dropdown-item {
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    font-weight: 500;
    color: #334155;
    transition: background-color 0.15s ease, color 0.15s ease;
    width: 100%;
    margin: 0.1rem 0;
    font-size: 0.875rem;
    text-align: start;
    background: transparent;
    border: 0;
}
.db-app-header__element--profile .db-app-header__dropdown-item .login-icon {
    width: 1rem;
    height: 1rem;
    color: #64748b;
    flex-shrink: 0;
    transition: color 0.15s ease;
}
.db-app-header__element--profile .db-app-header__dropdown-item:hover,
.db-app-header__element--profile .db-app-header__dropdown-item:focus-visible {
    background: #f8fafc;
    color: #0f172a;
}
.db-app-header__element--profile .db-app-header__dropdown-item:hover .login-icon,
.db-app-header__element--profile .db-app-header__dropdown-item:focus-visible .login-icon {
    color: var(--db-accent);
}
.db-app-header__element--profile .db-app-header__dropdown-item--danger,
.db-app-header__element--profile .db-app-header__dropdown-item--danger:hover,
.db-app-header__element--profile .db-app-header__dropdown-item--danger .login-icon,
.db-app-header__element--profile .db-app-header__dropdown-item--danger:hover .login-icon,
.db-app-header__element--profile .db-app-header__dropdown-item--danger:focus-visible .login-icon {
    color: #dc2626;
}
.db-app-header__element--profile .db-app-header__dropdown-item--danger:hover,
.db-app-header__element--profile .db-app-header__dropdown-item--danger:focus-visible {
    color: #b91c1c;
    background: #fef2f2;
}

/* =====================================================================
   Profile control hardening — appended 2026-11-17
   Beats the template theme's `align-items: stretch` header rules and any
   unconstrained icon sizing; explicit dimensions everywhere.
   ===================================================================== */

.app-header .db-app-header__element--profile {
    align-self: center;
    margin-inline-start: auto;
}
.app-header .db-app-header__element--profile .db-app-header__profile-toggle {
    display: inline-flex !important;
    align-items: center !important;
    align-self: center !important;
    gap: 0.6rem;
    height: auto !important;
    padding: 0.28rem 0.6rem 0.28rem 0.28rem !important;
    border-radius: 12px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    /* Override the template's `transition: border-color, box-shadow, background`
       entirely: no animation runs on this trigger at all. Hover feedback was
       reported to flicker on the user's display, so the hover state is now
       visually IDENTICAL to the rest state — nothing repaints when the pointer
       enters or leaves, which removes every repaint-based flicker path. The
       button still signals interactivity via the pointer cursor, and the open
       menu keeps its (.show) highlight. */
    transition: none !important;
    text-align: start;
    line-height: 1.2;
}
/* Open-state highlight only: there is deliberately NO :hover rule for the
   trigger — a hover-driven repaint was reported to flicker on the user's
   display, so the pointer entering/leaving causes no visual change whatsoever. */
.app-header .db-app-header__element--profile .db-app-header__profile-toggle.show {
    background: #f8fafc !important;
    border-color: var(--db-line) !important;
    /* Explicit: the template's :hover box-shadow must never reappear through a
       cascade re-order; the base `none` above stays in force while open. */
    box-shadow: none !important;
}
/* Kill Bootstrap's default caret and any oversized icon inside the trigger. */
.app-header .db-app-header__element--profile .db-app-header__profile-toggle::after {
    content: none !important;
    display: none !important;
}
.app-header .db-app-header__element--profile .db-app-header__profile-toggle svg,
.app-header .db-app-header__element--profile .db-app-header__profile-caret .login-icon {
    width: 0.95rem !important;
    height: 0.95rem !important;
    flex: 0 0 auto !important;
    display: block !important;
}
.app-header .db-app-header__element--profile .db-app-header__profile-avatar {
    width: 2.25rem !important;
    height: 2.25rem !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35) !important;
    letter-spacing: 0.02em;
}
.app-header .db-app-header__element--profile .db-app-header__profile-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    min-width: 0 !important;
    gap: 0 !important;
    line-height: 1.2 !important;
}
.app-header .db-app-header__element--profile .db-app-header__profile-name {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    max-width: 11rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.app-header .db-app-header__element--profile .db-app-header__profile-role {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    max-width: 11rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
/* Custom profile menu: visibility is owned by main.js via the `.is-open` class —
   no Bootstrap dropdown, no Popper, no inline transform writes. The template's
   main.css provides the absolute positioning (inset-block-start/right); this
   block provides the anchor, the hidden-by-default state and the surfaces
   Bootstrap's .dropdown-menu used to supply (background, divider). */
.app-header .db-app-header__element--profile {
    position: relative;
}
.db-app-header__element--profile .db-app-header__dropdown--profile {
    display: none;
    background: #ffffff;
}
.app-header .db-app-header__element--profile .db-app-header__dropdown--profile.is-open {
    display: block;
}
/* The dropdown divider element was removed per owner request (2026-11-18);
   no divider rule remains. */
/* Kill the template's slideIn animation: with `animation-fill-mode: both` its
   keyframe transform/opacity state overrides static positioning while the menu
   is displayed, and every re-show replays an opacity blink (perceived flicker
   while hovering the trigger). */
.app-header .db-app-header__element--profile .db-app-header__dropdown--profile {
    animation: none !important;
    border-radius: 14px !important;
    min-width: 250px !important;
    padding: 0.25rem !important;
    border: 1px solid var(--db-line) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.06) !important;
    overflow: hidden;
}
.app-header .db-app-header__element--profile .db-app-header__dropdown-avatar {
    width: 2.5rem !important;
    height: 2.5rem !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35) !important;
}
.app-header .db-app-header__element--profile .db-app-header__dropdown-item svg,
.app-header .db-app-header__element--profile .db-app-header__dropdown-item .login-icon {
    width: 1rem !important;
    height: 1rem !important;
    flex: 0 0 auto !important;
    display: block !important;
}

/* =====================================================================
   Dashboard home — quick actions panel, appended 2026-11-17
   ===================================================================== */

.db-quick-actions__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}
.db-quick-actions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}
.db-quick-actions__tile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--db-line);
    border-radius: 12px;
    background: #f8fafc;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.db-quick-actions__tile:hover,
.db-quick-actions__tile:focus-visible {
    border-color: #c7d2fe;
    background: #eef2ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}
.db-quick-actions__tile-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e0e7ff;
    color: var(--db-accent);
    transition: background-color 0.15s ease, color 0.15s ease;
}
.db-quick-actions__tile-icon .login-icon {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}
.db-quick-actions__tile:hover .db-quick-actions__tile-icon,
.db-quick-actions__tile:focus-visible .db-quick-actions__tile-icon {
    background: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
}
.db-quick-actions__tile-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.1rem;
}
.db-quick-actions__tile-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}
.db-quick-actions__tile:hover .db-quick-actions__tile-label,
.db-quick-actions__tile:focus-visible .db-quick-actions__tile-label {
    color: #4f46e5;
}
.db-quick-actions__tile-hint {
    font-size: 0.76rem;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.db-quick-actions__tile-arrow {
    margin-left: auto;
    display: inline-flex;
    color: #cbd5e1;
    transition: transform 0.15s ease, color 0.15s ease;
}
.db-quick-actions__tile-arrow .login-icon {
    width: 1rem;
    height: 1rem;
    display: block;
}
.db-quick-actions__tile:hover .db-quick-actions__tile-arrow,
.db-quick-actions__tile:focus-visible .db-quick-actions__tile-arrow {
    transform: translateX(3px);
    color: var(--db-accent);
}

/* =====================================================================
   Portal differentiation — appended 2026-11-17
   Admin console: dark sidebar rail + cyan-teal accent.
   Practitioner portal: unchanged (white rail + indigo accent).
   Both stay visually distinct so neither is mistaken for the other.
   ===================================================================== */

:root {
    --db-navy: #0f172a;
    --db-navy-2: #1e293b;
    --db-cyan: #6366f1;
    --db-cyan-soft: #eef2ff;
    --db-canvas: #f8fafc;
    --db-surface: #ffffff;
    --db-text: #0f172a;
    --db-muted: #64748b;
    --db-line: #e2e8f0;
    --db-radius: 14px;
    --db-radius-sm: 10px;
    --db-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.06);
    --db-shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.08);
    --db-font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --db-accent: #6366f1;
    --db-accent-strong: #4f46e5;
    --db-accent-soft: #eef2ff;
    --db-success: #16a34a;
    --db-warning: #f59e0b;
    --db-danger: #ef4444;
    --db-admin-accent: #22d3ee;
    --db-admin-accent-soft: rgba(34, 211, 238, 0.14);
}

/* ---- Admin portal: dark sidebar rail ---- */
body:is(.portal-admin, .portal-practitioner) .dashboard-sidebar-menu.app-sidebar,
body:is(.portal-admin, .portal-practitioner) .app-sidebar.dashboard-sidebar-menu .main-sidebar,
body:is(.portal-admin, .portal-practitioner) .app-sidebar.dashboard-sidebar-menu .dashboard-sidebar-menu__scroll,
body:is(.portal-admin, .portal-practitioner) .app-sidebar.dashboard-sidebar-menu #sidebar-scroll {
    background: #0f172a !important;
    border-color: #1e293b !important;
}
body:is(.portal-admin, .portal-practitioner) .dashboard-sidebar-menu.app-sidebar {
    border-inline-end: 1px solid #1e293b !important;
    box-shadow: none !important;
}
body:is(.portal-admin, .portal-practitioner) .app-sidebar.dashboard-sidebar-menu .main-sidebar-header {
    background: #0f172a !important;
    border-block-end: 1px solid #1e293b !important;
}
body:is(.portal-admin, .portal-practitioner) .dashboard-sidebar-menu .dashboard-sidebar-menu__scroll {
    scrollbar-color: #334155 transparent;
}
body:is(.portal-admin, .portal-practitioner) .dashboard-sidebar-menu .dashboard-sidebar-menu__scroll::-webkit-scrollbar-thumb {
    background-color: #334155;
    border-color: #0f172a;
}
body:is(.portal-admin, .portal-practitioner) .dashboard-sidebar-menu .dashboard-sidebar-menu__section {
    color: #64748b;
}
body:is(.portal-admin, .portal-practitioner) .dashboard-sidebar-menu .dashboard-sidebar-menu__item {
    /* Owner request: more breathing room between the menu items. */
    margin: 0 0 0.45rem;
}
body:is(.portal-admin, .portal-practitioner) .dashboard-sidebar-menu .dashboard-sidebar-menu__link {
    color: #94a3b8 !important;
    /* Owner request: the base background equals the hover background
       (rgba(148,163,184,0.1)), so links read as filled chips and the pointer
       entering/leaving causes no background change. */
    background: rgba(148, 163, 184, 0.1) !important;
    border-color: transparent !important;
}
body:is(.portal-admin, .portal-practitioner) .dashboard-sidebar-menu .dashboard-sidebar-menu__icon {
    color: #94a3b8 !important;
}
body:is(.portal-admin, .portal-practitioner) .dashboard-sidebar-menu .dashboard-sidebar-menu__link:hover {
    background: rgba(148, 163, 184, 0.1) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}
body:is(.portal-admin, .portal-practitioner) .dashboard-sidebar-menu .dashboard-sidebar-menu__link:hover .dashboard-sidebar-menu__icon {
    color: #ffffff !important;
}
body:is(.portal-admin, .portal-practitioner) .dashboard-sidebar-menu .dashboard-sidebar-menu__link.active {
    background: var(--db-admin-accent-soft) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: inset 3px 0 0 var(--db-admin-accent) !important;
}
body:is(.portal-admin, .portal-practitioner) .dashboard-sidebar-menu .dashboard-sidebar-menu__link.active .dashboard-sidebar-menu__icon {
    color: var(--db-admin-accent) !important;
}
body:is(.portal-admin, .portal-practitioner) .dashboard-sidebar-menu .dashboard-sidebar-menu__link.active .dashboard-sidebar-menu__label {
    color: #ffffff !important;
}

/* ---- Admin portal: portal badge under the logo ---- */
body:is(.portal-admin, .portal-practitioner) .dashboard-sidebar-menu__portal-tag {
    display: inline-block;
    margin: 0.55rem 0.55rem 0;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    background: var(--db-admin-accent-soft);
    color: var(--db-admin-accent);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
/* The practitioner portal badge uses the same rule as the admin one (see the
   body.portal-admin, body.portal-practitioner selector above) — the portals
   share one UI per the owner's request; only the badge TEXT differs. */

/* ---- Admin portal: cyan accents on management surfaces ---- */
body:is(.portal-admin, .portal-practitioner) .db-page-header-hero .db-page-header-hero__title-icon {
    background: var(--db-admin-accent-soft);
    color: #0891b2;
    border-color: rgba(34, 211, 238, 0.3);
}
body:is(.portal-admin, .portal-practitioner) .db-page-header-hero .db-page-header-hero__trail-item--current {
    color: #0e7490 !important;
    background: var(--db-admin-accent-soft);
}
body:is(.portal-admin, .portal-practitioner) .btn-primary {
    background: #0891b2;
    border-color: #0891b2;
    /* Box shadow removed per owner request (2026-11-18) — same request as the
       base `.btn-primary` rule above. */
}
body:is(.portal-admin, .portal-practitioner) .btn-primary:hover,
body:is(.portal-admin, .portal-practitioner) .btn-primary:focus,
body:is(.portal-admin, .portal-practitioner) .btn-primary:focus-visible {
    background: #0e7490;
    border-color: #0e7490;
}
body:is(.portal-admin, .portal-practitioner) .db-dashboard-stat-card__accent {
    background: #0891b2;
}
body:is(.portal-admin, .portal-practitioner) .db-dashboard-stat-card__icon {
    background: rgba(8, 145, 178, 0.1);
    color: #0e7490;
    border-color: rgba(8, 145, 178, 0.25);
}
body:is(.portal-admin, .portal-practitioner) .db-quick-actions__tile:hover,
body:is(.portal-admin, .portal-practitioner) .db-quick-actions__tile:focus-visible {
    border-color: rgba(8, 145, 178, 0.35);
    background: rgba(8, 145, 178, 0.06);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.12);
}
body:is(.portal-admin, .portal-practitioner) .db-quick-actions__tile:hover .db-quick-actions__tile-icon,
body:is(.portal-admin, .portal-practitioner) .db-quick-actions__tile:focus-visible .db-quick-actions__tile-icon {
    background: #0891b2;
    border-color: #0891b2;
    color: #ffffff;
}
body:is(.portal-admin, .portal-practitioner) .db-quick-actions__tile:hover .db-quick-actions__tile-label,
body:is(.portal-admin, .portal-practitioner) .db-quick-actions__tile:focus-visible .db-quick-actions__tile-label {
    color: #0e7490;
}
body:is(.portal-admin, .portal-practitioner) .db-quick-actions__tile:hover .db-quick-actions__tile-arrow,
body:is(.portal-admin, .portal-practitioner) .db-quick-actions__tile:focus-visible .db-quick-actions__tile-arrow {
    color: #0891b2;
}
body:is(.portal-admin, .portal-practitioner) .pagination .page-item.active .page-link {
    background: #0891b2;
    border-color: #0891b2;
}

/* =====================================================================
   Profile page — modern form styling, appended 2026-11-17
   ===================================================================== */

.db-form-section__hint {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}
.db-required {
    color: #ef4444;
    font-weight: 700;
}
.db-optional {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.14rem 0.5rem;
    vertical-align: middle;
    margin-inline-start: 0.25rem;
}
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #fca5a5 !important;
    background-image: none;
}
.db-password-field {
    position: relative;
}
.db-password-field .form-control {
    padding-inline-end: 2.6rem;
}
.db-password-field__toggle {
    position: absolute;
    inset-inline-end: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.db-password-field__toggle:hover,
.db-password-field__toggle--active {
    color: var(--db-accent);
    background: var(--db-accent-soft);
}
.db-password-field__toggle .login-icon {
    width: 1rem;
    height: 1rem;
    display: block;
}

/* Summary side card */
.db-profile-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.9rem;
}
.db-profile-summary__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}
.db-profile-summary__meta {
    min-width: 0;
}
.db-profile-summary__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.db-profile-summary__type {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
}
.db-profile-summary__list {
    list-style: none;
    margin: 0 0 0.9rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.db-profile-summary__list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.83rem;
}
.db-profile-summary__list li span {
    color: #94a3b8;
    font-weight: 500;
    flex-shrink: 0;
}
.db-profile-summary__list li strong {
    color: #0f172a;
    font-weight: 600;
    text-align: end;
    overflow-wrap: anywhere;
}
.db-profile-summary__email {
    font-size: 0.8rem;
}
.db-profile-summary__note {
    font-size: 0.75rem;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
}

/* Admin portal (cyan) tinting for the profile page */
body:is(.portal-admin, .portal-practitioner) .db-profile-summary__avatar {
    background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
    box-shadow: 0 2px 6px rgba(8, 145, 178, 0.35);
}
body:is(.portal-admin, .portal-practitioner) .db-password-field__toggle:hover,
body:is(.portal-admin, .portal-practitioner) .db-password-field__toggle--active {
    color: #0e7490;
    background: rgba(8, 145, 178, 0.1);
}
/* Row actions — quiet, neutral buttons (admin therapists list) */
.db-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}
/* Row actions — brighter light-purple tint (View / Edit), red kept for Delete */
.db-row-actions__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border: 1px solid var(--db-border);
    border-radius: 0.5rem;
    background: #EDE9FE;
    color: #6D28D9;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}
.db-row-actions__btn:hover {
    background: #DDD6FE;
    border-color: #C4B5FD;
    color: #5B21B6;
}
.db-row-actions__btn:focus-visible {
    outline: 2px solid var(--db-accent, #6366F1);
    outline-offset: 1px;
    outline-color: #8B5CF6;
}
.db-row-actions__btn--danger {
    color: #B91C1C;
    background: #FEE2E2;
}
.db-row-actions__btn--danger:hover {
    background: #FECACA;
    border-color: #FECACA;
    color: #991B1B;
}
/* Therapists list — table head text in black */
.adtherapists-list-page table thead th {
    color: #000;
}
/* Therapists list — Search By filter cards + result count */
.db-filter-card {
    height: 100%;
    padding: 0.625rem 0.75rem;
    background: #FFFFFF;
    border: 1px solid var(--db-line);
    border-radius: 0.75rem;
}
.db-filter-card__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #334155;
}
.db-filter-card .form-select,
.db-filter-card .form-control {
    height: 2.4rem;
}
.db-search-count {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.9rem;
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    color: #3730A3;
}
.db-search-count__clear {
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}
.db-search-count__clear:hover {
    text-decoration: underline;
}

/* Site filter response — modern status pill above the table */
.db-site-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.35rem;
    padding: 0.45rem 0.95rem;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #065F46;
}
.db-site-status strong {
    font-weight: 700;
}
.db-site-status__dot {
    width: 0.55rem;
    height: 0.55rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.db-site-status__dot--prod {
    background: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.db-site-status:has(.db-site-status__dot--prod) {
    background: #FFFBEB;
    border-color: #FDE68A;
    color: #92400E;
}

/* Search By dropdown — wider */
.adtherapists-list-page #searchBy {
    min-width: 240px;
}
/* Add Therapist — form sections, image upload widget, field tags */
.db-therapist-form .db-form-section {
    margin-bottom: 1.25rem;
}
.db-form-section__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0F172A;
}
.db-form-section__tag,
.db-field-tag {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #F1F5F9;
    color: #64748B;
}
.db-field-tag--required {
    background: #FEE2E2 !important;
    color: #DC2626 !important;
}
.db-field-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}
/* Location card — soft tiles so each field reads as its own block.
   CSS Grid layout: equal heights per row are guaranteed by the grid, and
   the wide Location field spans all columns on the row below. */
.db-location-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .db-location-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1200px) {
    .db-location-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.db-location-grid > .db-field-tile--wide {
    grid-column: 1 / -1;
}
.db-field-tile {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}
.db-therapist-form .db-field-tile .db-field-hint {
    margin-bottom: 0;
}
/* Breathing room below every input/select inside the therapist form tiles */
.db-therapist-form .form-control,
.db-therapist-form .form-select:not(.db-csel__native),
.db-therapist-form .db-csel {
    margin-bottom: 0.5rem;
}
.db-therapist-form .db-selected-pills {
    margin-bottom: 0.5rem;
}
.db-location-grid + .db-location-grid {
    margin-top: 1.25rem;
}
/* Selected country/state pills under the Location card dropdowns */
.db-selected-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}
.db-selected-pills:empty {
    display: none;
}
.db-selected-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.35rem 0.18rem 0.65rem;
    border-radius: 999px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0F172A;
}
.db-selected-pill__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748B;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
}
.db-selected-pill__remove:hover,
.db-selected-pill__remove:focus-visible {
    color: #DC2626;
    background: #FEE2E2;
}
/* Pill delete confirmation dialog — closes only via its own buttons */
.db-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    animation: dbConfirmFade 0.16s ease-out;
}
.db-confirm-box {
    width: 100%;
    max-width: 360px;
    padding: 1.5rem 1.5rem 1.25rem;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
    text-align: center;
    animation: dbConfirmPop 0.18s ease-out;
}
.db-confirm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    background: #FEE2E2;
    color: #DC2626;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}
.db-confirm-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
}
.db-confirm-text {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #64748B;
}
.db-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
}
.db-confirm-btn {
    min-width: 6.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.db-confirm-btn--cancel {
    background: #F1F5F9;
    border-color: #E2E8F0;
    color: #334155;
}
.db-confirm-btn--cancel:hover,
.db-confirm-btn--cancel:focus-visible {
    background: #E2E8F0;
}
.db-confirm-btn--danger {
    background: #DC2626;
    color: #FFFFFF;
}
.db-confirm-btn--danger:hover,
.db-confirm-btn--danger:focus-visible {
    background: #B91C1C;
}
.db-confirm-btn:focus-visible {
    outline: 2px solid #DC2626;
    outline-offset: 2px;
}
@keyframes dbConfirmFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes dbConfirmPop {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.db-field-hint {
    font-size: 0.75rem;
    color: #94A3B8;
    margin-top: 0.3rem;
}
/* Prominent but soft helper note (e.g. the target-site note on the create form) */
.db-field-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5;
    color: #0C4A6E;
}
.db-field-error {
    font-size: 0.78rem;
    font-weight: 600;
    color: #B91C1C;
    margin-top: 0.3rem;
}
.db-image-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.db-therapist-form .db-image-upload__preview-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 230px;
    height: 303px;
    border: 1px dashed var(--db-line);
    border-radius: 0.75rem;
    background: #F8FAFC;
    overflow: hidden;
}
.db-image-upload__preview {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show the full image — never cropped */
    object-position: center top;
    background: #F8FAFC;
}
.db-image-upload__placeholder {
    font-size: 0.7rem;
    color: #94A3B8;
    text-align: center;
    padding: 0.25rem;
}
/* Image upload hint styled as a soft "Note" callout (warm cream/amber),
   label bar on top, message below */
.db-image-upload__hint {
    flex-basis: 100%;
    display: block;
    margin-top: 0.25rem;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    background: #FEFCE8;
    color: #854D0E;
    font-size: 1rem; /* 16px at the default 16px root size */
    line-height: 1.45;
    overflow: hidden;
}
.db-image-upload__hint__tag {
    display: block;
    padding: 0.45rem 0.85rem;
    border-radius: 10px 10px 0 0;
    background: #f3e7b9;
    color: #78350F;
    font-size: 1rem; /* matches the message font */
    font-weight: 700;
    letter-spacing: 0.04em;
}
.db-image-upload__hint__text {
    display: block;
    padding: 0.5rem 0.85rem 0.6rem;
}
.db-radio-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.db-radio-group__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
}
.db-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #334155;
}
.db-radio input {
    accent-color: #6366F1;
}
/* db-custom-select — custom dropdowns for native selects */
.db-csel {
    position: relative;
}
.db-csel__native {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
}
.db-csel__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 0.6rem;
    color: #0F172A;
    font-size: 0.875rem;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.db-csel__btn:hover {
    border-color: #94A3B8;
}
.db-csel__btn:focus-visible {
    outline: 2px solid #6366F1;
    outline-offset: 1px;
}
.db-csel.is-open .db-csel__btn,
.db-csel__btn[aria-expanded="true"] {
    border-color: #818CF8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.db-csel.is-invalid .db-csel__btn {
    border-color: #FCA5A5;
}
.db-csel__chevron {
    flex-shrink: 0;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #64748B;
    transition: transform 0.15s ease;
}
.db-csel.is-open .db-csel__chevron {
    transform: rotate(180deg);
}
.db-csel__pop {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 260px;
    overflow-y: auto;
    background: #FFFFFF;
    border: 1px solid var(--db-line);
    border-radius: 0.6rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    padding: 0.25rem;
}
.db-csel__option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    color: #1E293B;
    cursor: pointer;
}
.db-csel__option:hover {
    background: #F1F5F9;
}
.db-csel__option.is-selected {
    background: #EEF2FF;
    color: #4338CA;
    font-weight: 600;
}
.db-csel__check {
    accent-color: #6366F1;
}

/* Add Therapist form — labels and input text at 17px (1.0625rem) */
.db-therapist-form .db-field-label,
.db-therapist-form .form-control,
.db-therapist-form .form-select,
.db-therapist-form .db-csel__btn,
.db-therapist-form .db-csel__label,
.db-therapist-form .db-csel__option,
.db-therapist-form .db-radio,
.db-therapist-form .db-radio-group__label {
    font-size: 1.0625rem; /* 17px */
}
.db-therapist-form .db-field-label {
    font-weight: 600;
}

/* Add Therapist — image upload controls stacked beneath the preview */
.db-therapist-form .db-image-upload {
    flex-direction: column;
    align-items: flex-start;
}
.db-therapist-form .db-image-upload__controls {
    margin-top: 0.75rem;
}

/* Therapist form — Company Info and Profile Content editors full width */
.db-therapist-form .tox.tox-container,
.db-therapist-form .tox-tinymce {
    max-width: 100% !important;
    width: 100% !important;
}

/* Search By dropdown — disable text selection */
.adtherapists-list-page .db-csel__btn {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ===== Admin login: distinct white console layout (practitioner login keeps the split-panel light UI) ===== */
body.login-screen.login-screen--admin .login-shell {
    position: relative;
    overflow: hidden;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 3rem 1.5rem;
    background:
        radial-gradient(760px 460px at 85% 8%, rgba(28, 157, 204, 0.1), transparent 60%),
        radial-gradient(560px 380px at 8% 92%, rgba(28, 157, 204, 0.05), transparent 55%),
        #ffffff;
}
body.login-screen.login-screen--admin .login-brand {
    display: none;
}
body.login-screen.login-screen--admin .login-brand__aurora {
    top: -10rem;
    right: -10rem;
    opacity: 0.14;
}
body.login-screen.login-screen--admin .login-panel {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 1.35rem;
    width: 100%;
    padding: 0;
    background: none;
}
body.login-screen.login-screen--admin .login-admin-header {
    display: grid;
    justify-items: center;
    gap: 0.8rem;
    text-align: center;
}
body.login-screen.login-screen--admin .login-admin-header__logo {
    max-width: 220px;
    max-height: 64px;
}
body.login-screen.login-screen--admin .login-brand__eyebrow {
    color: #111111;
    background: rgba(28, 157, 204, 0.12);
    border-color: rgba(28, 157, 204, 0.35);
}
body.login-screen.login-screen--admin .login-card {
    max-width: 430px;
    background: #fff;
    border: 1px solid rgba(4, 29, 73, 0.08);
    box-shadow: 0 24px 60px rgba(4, 29, 73, 0.12);
}
body.login-screen.login-screen--admin .login-card__heading {
    color: #041d49;
}
body.login-screen.login-screen--admin .login-card__lead {
    color: #64748b;
}
body.login-screen.login-screen--admin .login-field__label {
    color: #334155;
}
body.login-screen.login-screen--admin .login-field__control input {
    background: #f8fbff;
    border-color: #d7e2ee;
    color: #122033;
}
body.login-screen.login-screen--admin .login-field__control input[readonly] {
    background: #f8fbff;
    color: #122033;
}
body.login-screen.login-screen--admin .login-field__control input::placeholder {
    color: #94a3b8;
}
body.login-screen.login-screen--admin .login-field__control input:focus {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(28, 157, 204, 0.16);
}
body.login-screen.login-screen--admin .login-field__control > .login-icon {
    color: #7b8aa0;
}
body.login-screen.login-screen--admin .login-field__toggle {
    color: #64748b;
}
body.login-screen.login-screen--admin .login-field__toggle:hover {
    background: #eef6fb;
    color: #041d49;
}
body.login-screen.login-screen--admin .login-form-overlay {
    background: rgba(255, 255, 255, 0.82);
}
body.login-screen.login-screen--admin .login-form-overlay__spinner {
    border-color: rgba(28, 157, 204, 0.25);
    border-top-color: #1c9dcc;
}
body.login-screen.login-screen--admin .login-form-overlay__label {
    color: #041d49;
}
body.login-screen.login-screen--admin .login-admin-footer {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

/* ---------- Therapist delete confirmation modal (therapists-list) ---------- */
/* Custom popup, no Bootstrap modal dependency. Opens/closes via the .is-open
   class owned by main.js. It intentionally has NO outside-click or Escape
   dismissal: the owner asked for a popup that only closes when one of its
   buttons is clicked. */
.db-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}
.db-modal.is-open {
    display: flex;
}
.db-modal__dialog {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 32rem;
    padding: 1.75rem 1.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
    animation: dbModalIn 0.18s ease both;
}
@keyframes dbModalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: none; }
}
.db-modal__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b91c1c;
    background: #fee2e2;
}
.db-modal__title {
    font-size: 1.5rem; /* 24px — larger than the 20px body, per owner request */
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem;
}
.db-modal__text {
    font-size: 1.25rem; /* 20px at the 16px root */
    line-height: 1.5;
    color: #64748b;
    margin: 0 0 1.25rem;
}
.db-modal__text strong {
    color: #0f172a;
    font-weight: 600;
}
/* Second line of the delete copy: "This action cannot be undone." — moved to
   its own line per the owner, in a red tone to carry the warning weight. */
.db-modal__text--warning {
    color: #b91c1c;
    font-weight: 600;
    margin: 0.35rem 0 1.25rem;
}
.db-modal__actions {
    display: flex;
    gap: 0.625rem;
    justify-content: center;
}
.db-modal__btn {
    flex: 1 1 0;
    max-width: 11rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 1.25rem; /* 20px at the 16px root */
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.db-modal__btn--cancel {
    /* Light purple surface with dark purple text (owner request), matching the
       app's indigo accent family. */
    color: #4338ca;
    background: #e0e7ff;
    border-color: #c7d2fe;
}
.db-modal__btn--cancel:hover {
    background: #c7d2fe;
    border-color: #a5b4fc;
}
.db-modal__btn--danger {
    /* Light red surface with dark-red text: readable contrast while keeping the
       destructive intent of the button. */
    color: #b91c1c;
    background: #fee2e2;
    border-color: #fecaca;
    box-shadow: none;
}
.db-modal__btn--danger:hover {
    background: #fecaca;
    border-color: #fca5a5;
}
.db-modal__btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* The TinyMCE placeholder is styled via the editor's content_style (main.js) —
   the pseudo element lives inside the editor iframe, which parent-document
   stylesheets cannot reach. */
