/* Base typography class override */
.mud-typography {
    font-family: 'Inter',  'Roboto', sans-serif; /* Change to your desired font family */
    overflow-wrap: anywhere !important;
    line-break: auto;
}

/* H5 override with responsive font sizes */
.mud-typography-h5 {
    font-family: 'Inter',  'Roboto',  sans-serif;
    font-weight: 500; /* Example font weight, adjust as needed */
    color: #333; /* Example color, adjust as needed */
}

.mud-button
{
    min-width: max-content;
    white-space: nowrap;
}
   
.base-font {
    font-family: 'Inter'; 
    font-size: 16px;
    font-weight: 500;
    /*line-height: 1.5;*/
    color: black;
    margin: 0px;
}

.heading-emphasis {
    font-size: 2.0rem;
    font-weight: 600;
}

.heading-3 { 
    font-family: 'Inter',  'Roboto', sans-serif;
    font-size: 26px;
    font-weight: bold; 
    color: black;
    margin: 0px;
}

.heading-primary {
    font-size: 2rem;
    font-weight: bold;
}

.heading-secondary {
    font-family: 'Inter',  'Roboto', sans-serif;
    font-size: 30px;
    font-weight: bold;
    color: black;
    margin: 0px;
}

.heading-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
}

.heading-subtitle-emphasis {
    font-size: 1.2rem;
    font-weight: 600;
}

.subtitle1 {
    font-weight: 600;
}

.body-text {
    font-size: 1rem;
    line-height: 1.6;
    color: black;
}

.caption-text {
    font-size: 0.8rem;
    color: #777;
}

.table-modern .mud-table-root .mud-table-head .mud-table-cell
{
    color: #A8A1AD;
    font-family: 'Inter',  'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.tabs-modern .mud-tabs-toolbar
{
    background-color: transparent;
}

.button-action
{
    background-color: #027AFF !important;
    border-radius: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}


/*.scheduler-modern .rz-view-header*/
/*{*/
/*    padding: 0px;*/
/*    height: 0;*/
/*    visibility: hidden;*/
/*}*/

.scheduler-modern .rz-scheduler-nav
{
    padding: 0px;
    height: 0;
    visibility: hidden;
}

.scheduler-modern .rz-view-header .rz-slot-header
{
    padding: 10px;
    background-color: #FAFAFA;
    color: black;
    text-transform: none; 
    font-weight: bold;
}

.scheduler-modern .rz-week-view .rz-view-header {
    padding-right: 0px;
}

.mud-paper.modern-list-1
{
    border-radius:0px 0px 4px 4px; 
    border: none; 
    background-color: white;
    cursor: pointer;
    /*overflow: hidden;*/
    transition: background-color 0.3s ease; /* Smooth transition */
}

.mud-paper.modern-list-1:hover {
    background-color: #dfe2f5 !important; /* This is a light gray color */
}

/*html {*/
/*    overscroll-behavior: none;*/
/*}*/

/*body {*/
/*    overflow: hidden;*/
/*}*/

/*main {*/
/*       position: fixed;*/
/*       left: 0;*/
/*       right: 0;*/
/*       top: 0;*/
/*       bottom: 0;*/
/*       overflow-y: scroll;*/
/*   }*/

.mud-icon-button.nopadding{
    padding:0px;
}




.ehr-header1 {
    font-family: 'Inter',  'Roboto', sans-serif; 
    font-size: 28px;
    font-weight: 1000;
    /*line-height: 1.5;*/
    color: #1A237E;
    margin: 0px;
    line-break: anywhere;
}

.pseudo-underline {
    display: inline-block; /* Aligns the pseudo-element correctly */
    position: relative;
}

.pseudo-underline::after {
    content: "";
    position: absolute;
    bottom: -5px; /* Distance from the bottom of the text */
    left: 0; /* Starting point of the underline (relative to text width) */
    width: 60px; /*60%,  Width of the underline */
    height: 5px; /* Thickness of the underline */
    background-color: #1A237E; /* Color of the underline */
}

.ehr-header2 {
    font-family: 'Inter',  'Roboto', sans-serif; 
    font-size: 22px;
    font-weight: 1000;
    /*line-height: 1.5;*/
    color: #211F3B;
    margin: 0px;
    line-break: anywhere;
}


.ehr-header3 {
    font-family: 'Inter',  'Roboto', sans-serif; 
    font-size: 16px;
    font-weight: 600;
    /*line-height: 1.5;*/
    color: #211F3B;
    margin: 0px;
    line-break: anywhere;
} 

.ehr-header4 {
    font-family: 'Inter',  'Roboto', sans-serif; 
    font-size: 16px;
    font-weight: 400;
    /*line-height: 1.5;*/
    color: black;
    margin: 0px;
    line-break: anywhere;
}


.ehr-header5 {
    font-family: 'Inter',  'Roboto', sans-serif; 
    font-size: 14px;
    font-weight: 800;
    /*line-height: 1.5;*/
    color: black;
    margin: 0px;
    line-break: anywhere;
}


.ehr-p1 {
    font-family: 'Inter',  'Roboto', sans-serif; 
    font-size: 14px;
    font-weight: 400; 
    color: black;
    margin: 0px;
    line-break: anywhere;
}


.table-headless .mud-table-root .mud-table-head{
    display: none;
}

.table-headless .mud-table-root .mud-table-head tr th:first-child {
    display: none;
}

.table-headless .mud-table-root .mud-table-row tr td:first-child {
    display: none;
}


.customdialogbox {
    display: flex;
    box-shadow: none;
    height: 98vh;
    align-self: end;
    max-height:none !important;
    border-radius: 20px 20px 0px 0px !important;
    /*height: 600px;*/
    border-radius: 15px;

    -webkit-backdrop-filter: blur(10px) saturate(180%);
    backdrop-filter: blur(10px) saturate(180%);
    background-color: rgba(255,255,255,.8);
}

.atd-paper-border
{
    border: 1px solid rgba(169, 169, 169, 0.6);
    border-radius: 10px;
    overflow: hidden;
}

.atd-muddialog .mud-dialog .mud-dialog-content:focus-visible
{
    outline: none;
}

.mud-icon-button.custom1
{
    color: black;
    border-radius: 0px;
    padding:8px;
}
.mud-icon-button.custom2
{
    color: white;
    border-radius: 5px;
    background-color: #007c91;
    padding:8px;
}


.atd-button-modern1-square
{
    border-radius: 4px;
    width: 40px;
    height: 40px;
    border: none;
    background-color: white;
    color: #3E5985 !important;
} 

.atd-button-modern1
{
    border-radius: 4px;
    height: 40px;
    border: none; 
    background-color: white;
    color: #3E5985 !important;
    text-transform: none !important;
}


.atd-button-modern1-square-emphasis
{
    border-radius: 4px;
    width: 40px;
    height: 40px;
    border: none;
    background-color: #b0456c;
    color: white !important;
    text-transform: none !important;
}


.atd-button-modern1-square-emphasis:hover
{
    background-color: #642e67;
    color: white !important;
}

.atd-button-modern1-emphasis
{
    border-radius: 4px;
    height: 40px;
    border: none;
    background-color: #b0456c;
    color: white !important;
    text-transform: none !important;
}

.atd-button-modern1-emphasis:hover
{
    background-color: #642e67;
    color: white !important;
}





.atd-card-2 {
    border: 1px solid #e5e2db !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(44,40,37,0.06);
    background: #ffffff;
    /*margin-bottom: 20px;*/
    overflow: hidden;
}







/* ── Anchor ────────────────────────────────────── */
.overflow-anchor {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* ── Trigger ───────────────────────────────────── */
.overflow-trigger.mud-icon-button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid #E4E6EF;
    background: #FFFFFF;
    color: #6B7084;
    transition: all 0.18s ease;
}

.overflow-trigger.mud-icon-button:hover {
    background: #F2F3F8;
    color: #1C1E2E;
    border-color: #D0D3E0;
}

.overflow-trigger--open.mud-icon-button,
.overflow-trigger--open.mud-icon-button:hover {
    background: #2D3372;
    color: #FFFFFF;
    border-color: #2D3372;
}

/* ── Backdrop ──────────────────────────────────── */
.overflow-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
}

/* ── Popover container override ────────────────── */
.overflow-popover.mud-popover {
    z-index: 100 !important;
    margin-top: 6px;
}

/* ── Sheet (the actual card) ───────────────────── */
.overflow-sheet {
    width: 272px;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E8EAF0;
    box-shadow:
            0 4px 6px -1px rgba(0, 0, 0, 0.04),
            0 12px 40px -4px rgba(45, 51, 114, 0.13),
            0 0 0 0.5px rgba(0, 0, 0, 0.03);
    padding: 6px 0;
    overflow: hidden;
    animation: overflow-enter 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes overflow-enter {
    from { opacity: 0; transform: translateY(-6px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Section label ─────────────────────────────── */
.overflow-section-label {
    padding: 12px 16px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9096AB;
    user-select: none;
}

/* ── Menu item (MudButton override) ────────────── */
.overflow-item.mud-button-root {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px;
    width: 100%;
    padding: 9px 14px !important;
    min-height: unset !important;
    text-transform: none !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    border-radius: 0 !important;
    transition: background 0.12s ease !important;
    background: transparent !important;
}

.overflow-item.mud-button-root:hover {
    background: #F5F6FA !important;
}

.overflow-item.mud-button-root:active {
    background: #ECEDF5 !important;
}

/* ── Icon container ────────────────────────────── */
.overflow-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-bg-blue   { background: #EDF0FF; color: #4361EE; }
.icon-bg-purple { background: #F1EAFF; color: #7C3AED; }
.icon-bg-green  { background: #E8FAF1; color: #10B981; }
.icon-bg-amber  { background: #FFF7E6; color: #F59E0B; }
.icon-bg-rose   { background: #FFF1F3; color: #F43F5E; }
.icon-bg-slate  { background: #F0F1F6; color: #64748B; }
.icon-bg-teal   { background: #E8FAF8; color: #14B8A6; }

/* ── Text ──────────────────────────────────────── */
.overflow-item-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
    text-align: left;
}

.overflow-item-label {
    font-size: 14px;
    font-weight: 500;
    color: #1C1E2E;
    line-height: 1.35;
}

.overflow-item-desc {
    font-size: 11.5px;
    font-weight: 400;
    color: #9096AB;
    line-height: 1.3;
}

/* ── Badges ────────────────────────────────────── */
.overflow-item-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.badge-rose { background: #FFF1F3; color: #F43F5E; }
.badge-blue { background: #EDF0FF; color: #4361EE; }

/* ── Separator ─────────────────────────────────── */
.overflow-sep {
    height: 1px;
    background: #ECEDF5;
    margin: 5px 14px;
}








/* ═══════════════════════════════════════════════
   elythos-forms.css — Shared form component styles
   ───────────────────────────────────────────────
   Place in wwwroot/css/ alongside elythos-tokens.css.
   Used by PatientEditPage, TaskEditPage, and any
   future Elythos form pages.

   Requires elythos-tokens.css CSS custom properties.
   ═══════════════════════════════════════════════ */

/* ════════════════════════════════════════════════
   Section Labels
   ════════════════════════════════════════════════ */
.ely-section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary, #94A3B8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ely-section-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ely-section-label-row .ely-section-label {
    margin-bottom: 0;
}

.ely-section-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary, #94A3B8);
    background: var(--surface-hover, #F1F5F9);
    padding: 2px 7px;
    border-radius: 6px;
}

/* ════════════════════════════════════════════════
   Card Section (white panel with border)
   ════════════════════════════════════════════════ */
.ely-card {
    background: var(--surface-card, #fff);
    border: 1.5px solid var(--border-light, #F1F5F9);
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.15s ease;
}

.ely-card:hover {
    border-color: var(--border, #E2E8F0);
}

.ely-card + .ely-card {
    margin-top: 12px;
}

.ely-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.ely-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #1E293B);
}

.ely-card-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.ely-card-title-icon .mud-icon-root { font-size: 18px !important; }

.ely-card-title-icon.blue    { background: #3B82F6; }
.ely-card-title-icon.purple  { background: #8B5CF6; }
.ely-card-title-icon.green   { background: #10B981; }
.ely-card-title-icon.amber   { background: #F59E0B; }
.ely-card-title-icon.rose    { background: #F43F5E; }
.ely-card-title-icon.navy    { background: #1B2A4A; }
.ely-card-title-icon.slate   { background: #4A5B7A; }
.ely-card-title-icon.teal    { background: #14B8A6; }

/* ════════════════════════════════════════════════
   Add Button (dashed outline)
   ════════════════════════════════════════════════ */
.ely-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1.5px dashed var(--border, #E2E8F0);
    background: none;
    color: var(--text-secondary, #64748B);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.ely-add-btn:hover {
    border-color: #3B82F6;
    color: #3B82F6;
    background: #EFF6FF;
}

.ely-add-btn .mud-icon-root { font-size: 16px !important; }

/* ════════════════════════════════════════════════
   Repeatable Item Row (phone, email, address, etc.)
   ════════════════════════════════════════════════ */
.ely-item-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid var(--border-light, #F1F5F9);
    border-radius: 10px;
    background: var(--surface, #F8FAFB);
    transition: border-color 0.15s ease;
}

.ely-item-row:hover {
    border-color: var(--border, #E2E8F0);
}

.ely-item-row + .ely-item-row {
    margin-top: 8px;
}

.ely-item-fields {
    flex: 1;
    display: grid;
    gap: 12px;
    min-width: 0;
    grid-template-columns: 1fr;
}

.ely-item-fields.cols-2 { grid-template-columns: 1fr 1fr; }
.ely-item-fields.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.ely-item-fields.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

@media (max-width: 768px) {
    .ely-item-fields.cols-2,
    .ely-item-fields.cols-3,
    .ely-item-fields.cols-4 {
        grid-template-columns: 1fr;
    }
}

.ely-item-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-top: 6px;
}

/* ════════════════════════════════════════════════
   Star / Primary Toggle Button
   ════════════════════════════════════════════════ */
.ely-star-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 8px;
    border: 1.5px solid var(--border, #E2E8F0);
    background: none;
    color: var(--text-tertiary, #94A3B8);
    cursor: pointer;
    transition: all 0.15s ease;
}

.ely-star-btn:hover,
.ely-star-btn.active {
    border-color: #F59E0B;
    color: #F59E0B;
    background: #FFFBEB;
}

.ely-star-btn .mud-icon-root { font-size: 18px !important; }

/* ════════════════════════════════════════════════
   Delete Button (inline)
   ════════════════════════════════════════════════ */
.ely-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    background: none;
    color: var(--text-tertiary, #94A3B8);
    cursor: pointer;
    transition: all 0.15s ease;
}

.ely-delete-btn:hover {
    border-color: #FECACA;
    color: #EF4444;
    background: #FEF2F2;
}

.ely-delete-btn .mud-icon-root { font-size: 18px !important; }

/* ════════════════════════════════════════════════
   Empty State (inside cards)
   ════════════════════════════════════════════════ */
.ely-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 10px;
    border: 1.5px dashed var(--border, #E2E8F0);
    color: var(--text-tertiary, #94A3B8);
    font-size: 13px;
    font-weight: 500;
}

.ely-empty .mud-icon-root {
    font-size: 18px !important;
    opacity: 0.6;
}

/* ════════════════════════════════════════════════
   Chip Rows
   ════════════════════════════════════════════════ */
.ely-chip-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Gender chips */
.ely-gender-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1.5px solid var(--border, #E2E8F0);
    background: var(--surface-card, #fff);
    color: var(--text-secondary, #64748B);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ely-gender-chip:hover {
    border-color: var(--navy-muted, #4A5B7A);
    color: var(--text-primary, #1E293B);
}

.ely-gender-chip .mud-icon-root { font-size: 18px !important; }

.ely-gender-chip.active.male {
    border-color: #3B82F6; border-width: 2px;
    background: #EFF6FF; color: #1D4ED8; font-weight: 600;
}

.ely-gender-chip.active.female {
    border-color: #EC4899; border-width: 2px;
    background: #FDF2F8; color: #BE185D; font-weight: 600;
}

/* ════════════════════════════════════════════════
   Grid Helpers
   ════════════════════════════════════════════════ */
.ely-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ely-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.ely-grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; }

@media (max-width: 900px) {
    .ely-grid-3, .ely-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .ely-grid-2, .ely-grid-3, .ely-grid-4 { grid-template-columns: 1fr; }
}

.ely-full-width { grid-column: 1 / -1; }

/* ════════════════════════════════════════════════
   Divider
   ════════════════════════════════════════════════ */
.ely-divider {
    height: 1px;
    background: var(--border-light, #F1F5F9);
    margin: 16px 0;
    grid-column: 1 / -1;
}

/* ════════════════════════════════════════════════
   Form-Level MudBlazor Overrides
   Apply .ely-form to a parent to style all
   MudBlazor Outlined fields within.
   ════════════════════════════════════════════════ */
/*.ely-form .mud-input-outlined .mud-input-outlined-border {*/
/*    border-width: 1.5px !important;*/
/*    border-color: var(--border, #E2E8F0) !important;*/
/*    border-radius: 10px !important;*/
/*    transition: all 0.2s ease !important;*/
/*}*/

/*.ely-form .mud-input-outlined:hover .mud-input-outlined-border {*/
/*    border-color: var(--navy-muted, #4A5B7A) !important;*/
/*}*/

/*.ely-form .mud-input-outlined.mud-focused .mud-input-outlined-border {*/
/*    border-color: #3B82F6 !important;*/
/*    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;*/
/*}*/

/*.ely-form .mud-input { font-size: 14px !important; }*/
/*.ely-form .mud-input-label { font-size: 13px !important; }*/


/* Remove border, add gray background fill */
.ely-form .mud-input-outlined .mud-input-outlined-border {
    border: none !important;
    border-radius: 10px !important;
}

/* Background on the container so it covers input + adornment together */
.ely-form .mud-input.mud-input-outlined {
    background-color: #f3f4f6 !important;
    border-radius: 10px !important;
}

.ely-form .mud-input.mud-input-outlined:hover {
    background-color: #e5e7eb !important;
}

.ely-form .mud-input.mud-input-outlined.mud-focused {
    background-color: #e5e7eb !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Remove background from the slot itself */
.ely-form .mud-input-outlined .mud-input-slot {
    background-color: transparent !important;
} 

.ely-form .mud-input { font-size: 14px !important; }
.ely-form .mud-input-label { font-size: 13px !important; }

.ely-form .mud-input-outlined textarea.mud-input-slot {
    padding: 14px 16px !important;
}

.ely-form .mud-input > textarea.mud-input-root-outlined {
    margin-top: 0 !important;
}

.ely-form .mud-input-slot {
    font-weight: 600 !important;
}

/* ════════════════════════════════════════════════
   Animation
   ════════════════════════════════════════════════ */
.ely-fade-in {
    animation: elyFadeIn 0.25s ease;
}

@keyframes elyFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}





/* ════════════════════════════════════════════════
   Syncfusion Calendar — Elythos Theme
   Global CSS (e.g. elythos-forms.css)
   ════════════════════════════════════════════════ */

/* ── Container ── */
.toolbar-datepicker {
    width: 340px;
    max-width: 90vw;
    background: var(--ely-surface-card, #fff);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0, 33, 72, 0.12), 0 2px 8px rgba(0, 33, 72, 0.06);
    border: 1.5px solid var(--ely-border-light, #EEEDF2);
    overflow: hidden;
}

.toolbar-datepicker .e-calendar {
    border: none !important;
    background: transparent !important;
    font-family: var(--ely-font, 'DM Sans', sans-serif) !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* ── Header (month/year nav) ── */
.toolbar-datepicker .e-calendar .e-header {
    padding: 0 0 12px 0 !important;
}

.toolbar-datepicker .e-calendar .e-header .e-title {
    font-family: var(--ely-font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--ely-text-primary, #1a1a2e) !important;
    text-transform: capitalize !important;
}

.toolbar-datepicker .e-calendar .e-header button.e-title:hover {
    background: var(--ely-surface-hover, #EEEDF2) !important;
    border-radius: 8px !important;
}

/* Nav arrows */
.toolbar-datepicker .e-calendar .e-header .e-prev,
.toolbar-datepicker .e-calendar .e-header .e-next {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: none !important;
    color: var(--ely-text-secondary, #5c5a6e) !important;
    border: none !important;
    transition: all 0.15s ease !important;
}

.toolbar-datepicker .e-calendar .e-header .e-prev:hover,
.toolbar-datepicker .e-calendar .e-header .e-next:hover {
    background: var(--ely-surface-hover, #EEEDF2) !important;
    color: var(--ely-text-primary, #1a1a2e) !important;
}

.toolbar-datepicker .e-calendar .e-header .e-prev span,
.toolbar-datepicker .e-calendar .e-header .e-next span {
    font-size: 14px !important;
}

/* ── Day-of-week headers ── */
.toolbar-datepicker .e-calendar .e-content thead th,
.toolbar-datepicker .e-calendar .e-content .e-week-header th {
    font-family: var(--ely-font) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    color: var(--ely-text-tertiary, #94899e) !important;
    padding: 8px 0 !important;
    border: none !important;
}

/* ── Day cells ── */
.toolbar-datepicker .e-calendar .e-content td {
    padding: 2px !important;
}

.toolbar-datepicker .e-calendar .e-content td span.e-day,
.toolbar-datepicker .e-calendar .e-content td.e-cell span {
    font-family: var(--ely-font) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--ely-text-primary, #1a1a2e) !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    border-radius: 10px !important;
    border: none !important;
    transition: all 0.15s ease !important;
}

/* Hover */
.toolbar-datepicker .e-calendar .e-content td span.e-day:hover,
.toolbar-datepicker .e-calendar .e-content td.e-cell:hover span {
    background: var(--ely-surface-hover, #EEEDF2) !important;
    color: var(--ely-text-primary, #1a1a2e) !important;
}

/* ── Selected day ── */
.toolbar-datepicker .e-calendar .e-content td.e-selected span.e-day,
.toolbar-datepicker .e-calendar .e-content td.e-selected:hover span.e-day {
    background: var(--ely-primary, #002148) !important;
    color: white !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(0, 33, 72, 0.2) !important;
}

/* ── Today (not selected) ── */
.toolbar-datepicker .e-calendar .e-content td.e-today span.e-day {
    color: var(--ely-tertiary, #2a7ab5) !important;
    font-weight: 800 !important;
    border: 2px solid var(--ely-tertiary, #2a7ab5) !important;
    background: transparent !important;
}

/* Today + selected */
.toolbar-datepicker .e-calendar .e-content td.e-today.e-selected span.e-day {
    background: var(--ely-primary, #002148) !important;
    color: white !important;
    border-color: var(--ely-primary, #002148) !important;
}

/* ── Other month days ── */
.toolbar-datepicker .e-calendar .e-content td.e-other-month span.e-day {
    color: var(--ely-text-tertiary, #94899e) !important;
    opacity: 0.4 !important;
}

/* ── Disabled ── */
.toolbar-datepicker .e-calendar .e-content td.e-disabled span.e-day {
    color: var(--ely-border, #ddd8db) !important;
    opacity: 0.3 !important;
}

/* ── Week numbers (if shown) ── */
.toolbar-datepicker .e-calendar .e-content td.e-week-number span {
    font-size: 10px !important;
    color: var(--ely-text-tertiary) !important;
    opacity: 0.5 !important;
}

/* ── Year/decade view cells ── */
.toolbar-datepicker .e-calendar .e-content.e-year td span,
.toolbar-datepicker .e-calendar .e-content.e-decade td span {
    font-family: var(--ely-font) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    color: var(--ely-text-primary) !important;
    transition: all 0.15s ease !important;
}

.toolbar-datepicker .e-calendar .e-content.e-year td span:hover,
.toolbar-datepicker .e-calendar .e-content.e-decade td span:hover {
    background: var(--ely-surface-hover) !important;
}

.toolbar-datepicker .e-calendar .e-content.e-year td.e-selected span,
.toolbar-datepicker .e-calendar .e-content.e-decade td.e-selected span {
    background: var(--ely-primary) !important;
    color: white !important;
}

/* ── Kill Syncfusion focus outlines ── */
.toolbar-datepicker .e-calendar *:focus,
.toolbar-datepicker .e-calendar *:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ── Kill any remaining Syncfusion borders ── */
.toolbar-datepicker .e-calendar .e-content table,
.toolbar-datepicker .e-calendar .e-content table td,
.toolbar-datepicker .e-calendar .e-content table th {
    border: none !important;
}