/* ── Brand palette ──────────────────────────────────────── */
/*
  Active theme: Deep Slate
  --navbar-bg: #1e293b;
  --navbar-text: #f1f5f9;
  --navbar-hover: #94a3b8;

  Backup themes (swap the variables above to switch):

  Dark Teal (medical/healthcare feel)
  --navbar-bg: #134e4a;
  --navbar-text: #ccfbf1;
  --navbar-hover: #5eead4;

  Indigo (modern SaaS, Stripe-like)
  --navbar-bg: #312e81;
  --navbar-text: #e0e7ff;
  --navbar-hover: #a5b4fc;

  Charcoal (minimal, content-first)
  --navbar-bg: #1f2937;
  --navbar-text: #f9fafb;
  --navbar-hover: #9ca3af;
*/
:root {
    --navbar-bg:    #1e293b;
    --navbar-text:  #f1f5f9;
    --navbar-hover: #94a3b8;
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar.navbar-app {
    background-color: var(--navbar-bg) !important;
}
.navbar.navbar-app .navbar-brand,
.navbar.navbar-app .nav-link {
    color: var(--navbar-text) !important;
    opacity: 1;
}
.navbar.navbar-app .nav-link:hover,
.navbar.navbar-app .nav-link:focus {
    color: var(--navbar-hover) !important;
}
.navbar.navbar-app .nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}
.navbar.navbar-app .navbar-toggler {
    border-color: rgba(241,245,249,.3);
}

/* ── Sidebar layout ──────────────────────────────────────── */
:root {
    --sidebar-width:           220px;
    --sidebar-collapsed-width: 62px;
    --topbar-height:           52px;
}

body {
    background-color: #f1f5f9;
    font-size: 0.9rem;
    margin: 0;
}

/* Desktop: sidebar fixed, main content offset */
@media (min-width: 992px) {
    .app-main {
        margin-left: var(--sidebar-width);
        transition: margin-left .2s ease;
    }
    .sidebar-collapsed .app-main {
        margin-left: var(--sidebar-collapsed-width);
    }
}

/* Mobile: no offset, sidebar is off-canvas */
@media (max-width: 991.98px) {
    .app-main { margin-left: 0 !important; }
}

/* ── Sidebar shell ───────────────────────────────────────── */
.app-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--navbar-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 1040;
    transition: width .2s ease;
}

.sidebar-collapsed .app-sidebar {
    width: var(--sidebar-collapsed-width);
}

/* Off-canvas on mobile */
@media (max-width: 991.98px) {
    .app-sidebar {
        left: calc(-1 * var(--sidebar-width));
        width: var(--sidebar-width) !important;
        transition: left .25s ease;
    }
    body.sidebar-mobile-open .app-sidebar { left: 0; }
}

/* Overlay behind sidebar on mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1039;
}
body.sidebar-mobile-open .sidebar-overlay { display: block; }

/* ── Sidebar header / brand ──────────────────────────────── */
.sidebar-header {
    display: flex;
    align-items: center;
    padding: 10px 8px 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    overflow: hidden;
}

.sidebar-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(255,255,255,.08);
    border: none;
    color: rgba(241,245,249,.7);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.sidebar-collapse-btn:hover { background: rgba(255,255,255,.15); color: #f1f5f9; }

.sidebar-brand-icon {
    width: 36px; height: 36px;
    padding: 3px;
    background: #fff;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.sidebar-brand-icon img,
.topbar-brand-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
}

.sidebar-brand-text {
    color: #f1f5f9;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.sidebar-brand-subtitle {
    font-size: 11px;
    color: var(--navbar-hover);
    white-space: nowrap;
    display: block;
    margin-top: 2px;
}

/* ── Nav items ───────────────────────────────────────────── */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
}

.sidebar-section-label {
    padding: 14px 16px 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--navbar-hover);
    white-space: nowrap;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    margin: 1px 8px;
    border-radius: 7px;
    color: rgba(241,245,249,.7);
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-item-impersonation { color: #fbbf24; margin-bottom: 4px; }

.sidebar-item:hover  { background: rgba(255,255,255,.07); color: #f1f5f9; }
.sidebar-item.active { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }

.sidebar-item .si-icon {
    width: 18px; text-align: center;
    flex-shrink: 0; font-size: 15px;
}

.sidebar-item .si-label { font-size: 13.5px; }

/* ── Collapsed state: hide all text ─────────────────────── */
.sidebar-collapsed .sidebar-brand-text,
.sidebar-collapsed .sidebar-brand-subtitle,
.sidebar-collapsed .sidebar-section-label,
.sidebar-collapsed .si-label {
    opacity: 0; width: 0; overflow: hidden; display: inline-block;
}

.sidebar-collapsed .sf-label {
    display: none;
}

.sidebar-collapsed .sidebar-item {
    justify-content: center;
    gap: 0;
    margin: 1px 4px;
}

.sidebar-collapsed .sidebar-header { justify-content: center; gap: 0; }
.sidebar-collapsed .sidebar-brand-link { flex: 0; min-width: 0; }
.sidebar-collapsed .sidebar-collapse-btn { margin: 0; }

/* ── Sidebar footer ──────────────────────────────────────── */
.sidebar-footer {
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}

.sf-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 7px;
    color: rgba(241,245,249,.75);
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
    transition: background .15s;
}

.sf-user-btn:hover { background: rgba(255,255,255,.07); color: #f1f5f9; }

.sidebar-collapsed .sf-user-btn { justify-content: center; }

.sf-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff;
    flex-shrink: 0;
}

.sf-name  { font-size: 13px; font-weight: 600; color: #f1f5f9; line-height: 1.3; }
.sf-email { font-size: 11px; color: var(--navbar-hover); }

.sf-toggle-icon { transition: transform .2s; flex-shrink: 0; font-size: 12px; }
.sidebar-collapsed .sf-toggle-icon { transform: rotate(180deg); }

/* ── Mobile top bar ──────────────────────────────────────── */
.app-topbar-mobile {
    position: sticky;
    top: 0;
    z-index: 1038;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    height: var(--topbar-height);
    background: var(--navbar-bg);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar-hamburger {
    background: none;
    border: none;
    color: #f1f5f9;
    font-size: 18px;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
}
.topbar-hamburger:hover { background: rgba(255,255,255,.1); }

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f1f5f9;
    font-weight: 700;
    font-size: 16px;
    flex: 1;
    text-decoration: none;
}

.topbar-brand-icon {
    width: 28px; height: 28px;
    padding: 2px;
    background: #fff;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ── Global patient search bar ───────────────────────────── */
.app-searchbar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 10px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.global-search {
    position: relative;
    max-width: 560px;
}

.global-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.global-search-input {
    padding-left: 36px;
    padding-right: 72px;
    min-height: 40px;
    background: #f8fafc;
}
.global-search-input:focus { background: #ffffff; }
.global-search-input::-webkit-search-cancel-button { display: none; }

.global-search-kbd {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    color: #64748b;
    font-size: 11px;
    pointer-events: none;
}
.global-search-input:focus ~ .global-search-kbd { display: none !important; }
.global-search-spinner {
    position: absolute;
    right: 10px;
    top: calc(50% - 8px);
}

.global-search-close {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    color: #64748b;
}

.global-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
    z-index: 1031;
}

.global-search-item {
    display: block;
    padding: 10px 14px;
    min-height: 44px;
    color: #0f172a;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}
.global-search-item:last-child { border-bottom: none; }
.global-search-item:hover,
.global-search-item.is-highlighted {
    background: #eff6ff;
    color: #0f172a;
}
.global-search-item.is-inactive .global-search-name { color: #6c757d; }

.global-search-name { font-weight: 600; }

.global-search-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 12px;
    color: #64748b;
}
.global-search-meta i { margin-right: 4px; font-size: 11px; }

.global-search-footer {
    color: #0d6efd;
    font-weight: 500;
    background: #f8fafc;
}

.global-search-empty {
    padding: 14px;
    color: #6c757d;
}

@media (max-width: 991.98px) {
    /* Mobile: bar hidden until opened from the top-bar search button */
    .app-searchbar {
        display: none;
        top: var(--topbar-height);
        padding: 8px 16px;
    }
    .global-search-open .app-searchbar { display: block; }
    .global-search { max-width: none; }
    .global-search-input { padding-right: 48px; font-size: 16px; } /* 16px prevents iOS zoom */
    .global-search-spinner { right: 48px; }
}

/* ── Main content area ───────────────────────────────────── */
.app-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-content {
    padding: 24px;
    flex: 1;
}

@media (max-width: 767.98px) {
    .app-content { padding: 16px; }
}

/* ── Flash alerts (floating bottom-left) ────────────────── */
.floating-alert {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 9999;
    width: 320px;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
    border-radius: 0.5rem;
}

/* ── Tables ─────────────────────────────────────────────── */
.table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}
tr.clickable-row { cursor: pointer; }

/* ── Patient detail tabs ─────────────────────────────────── */
.patient-tab-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
}

/* ── Calendar (templates/scheduling/calendar.html.twig + assets/js/calendar.js) ── */
/* Vertical scale: --cal-hour-h = 60 × CalendarGridBuilder::PX_PER_MINUTE (96px → 48px per 30-min row) */

/* Toolbar */
.cal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    margin-bottom: .75rem;
}
.cal-toolbar-nav,
.cal-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}
.cal-toolbar-actions { margin-left: auto; }
.cal-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cal-date-btn {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    border: 1px solid transparent;
    min-height: 40px;
}
.cal-date-btn:hover,
.cal-date-btn[aria-expanded="true"] { background: #f1f5f9; border-color: #e2e8f0; }

/* Month picker dropdown */
.cal-month-menu { min-width: 300px; }
.cal-month-table { width: 100%; border-collapse: separate; border-spacing: 2px; text-align: center; }
.cal-month-table th { font-size: .72rem; font-weight: 600; color: #94a3b8; text-transform: capitalize; padding-bottom: 2px; }
.cal-month-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 8px;
    color: #1e293b;
    font-size: .9rem;
    line-height: 1.1;
    text-decoration: none;
}
.cal-month-day:hover { background: #f1f5f9; color: #0f172a; }
.cal-month-day--out { color: #cbd5e1; }
.cal-month-day--today { color: #0d6efd; font-weight: 700; box-shadow: inset 0 0 0 1px #0d6efd; }
.cal-month-day--selected,
.cal-month-day--selected:hover { background: #0d6efd; color: #fff; }
.cal-month-count { font-size: .62rem; min-height: .62rem; color: #64748b; font-weight: 600; }
.cal-month-day--selected .cal-month-count { color: #dbeafe; }

/* Filter chips + summary */
.cal-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin-bottom: .75rem;
}
.cal-filter-label { font-size: .85rem; color: #64748b; }
.cal-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 4px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #1e293b;
    font-size: .85rem;
    text-decoration: none;
    cursor: pointer;
}
.cal-chip:hover { background: #f8fafc; color: #0f172a; }
.cal-chip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--chip-color, #94a3b8);
    border: 2px solid var(--chip-color, #94a3b8);
    flex-shrink: 0;
}
.cal-chip[aria-pressed="false"] { color: #94a3b8; background: #f8fafc; border-style: dashed; }
.cal-chip[aria-pressed="false"] .cal-chip-dot { background: transparent; }
.cal-chip.active {
    border-color: var(--chip-color);
    background: color-mix(in srgb, var(--chip-color) 12%, #fff);
    font-weight: 600;
}
.cal-chip-count {
    background: #e2e8f0;
    border-radius: 999px;
    padding: 0 7px;
    font-size: .75rem;
    font-weight: 600;
}
.cal-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    margin-left: auto;
    font-size: .9rem;
    color: #475569;
}

/* Status icons — UX_RULES palette (pending=warning, confirmed=primary, completed=success, no-show=secondary, cancelled=danger) */
.cal-status-icon.is-pending   { color: #997404; }
.cal-status-icon.is-confirmed { color: #0d6efd; }
.cal-status-icon.is-completed { color: #198754; }
.cal-status-icon.is-no_show   { color: #6c757d; }
.cal-status-icon.is-cancelled { color: #dc3545; }

/* Grid */
.cal-wrapper {
    overflow: auto;
    max-height: calc(100vh - 250px);
    min-height: 380px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
}
.cal-grid-row {
    display: grid;
    grid-template-columns: 56px repeat(var(--cal-cols, 1), minmax(150px, 1fr));
}
.cal-header-row {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
.cal-time-cell,
.cal-time-col {
    position: sticky;
    left: 0;
    z-index: 15;
    background: #fff;
    border-right: 1px solid #dee2e6;
}
.cal-header-row .cal-time-cell { z-index: 21; }
.cal-header-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 10px 6px 8px;
    border-left: 1px solid #dee2e6;
    border-top: 4px solid var(--col-color, #dee2e6);
    font-weight: 600;
    font-size: .9rem;
    text-align: center;
}
.cal-header-cell > span:first-child,
.cal-header-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-header-link { color: #1e293b; text-decoration: none; text-transform: capitalize; }
.cal-header-link:hover { color: #0d6efd; text-decoration: underline; }
.cal-header-cell--today .cal-header-link { color: #0d6efd; }
.cal-header-count {
    background: #e2e8f0;
    color: #334155;
    border-radius: 999px;
    padding: 0 7px;
    font-size: .72rem;
    flex-shrink: 0;
}

.cal-hour-label,
.cal-half-label {
    position: absolute;
    right: 8px;
    transform: translateY(-50%);
    white-space: nowrap;
}
.cal-hour-label { font-size: .8rem; font-weight: 600; color: #475569; }
.cal-half-label { font-size: .68rem; color: #a0aec0; }
.cal-time-col > .cal-hour-label:first-child { transform: none; top: 2px !important; }

/* Columns: hour line solid, half-hour line lighter — drawn as backgrounds instead of one div per slot */
.cal-col {
    position: relative;
    min-width: 0;
    border-left: 1px solid #dee2e6;
    background-color: #fff;
    background-image:
        linear-gradient(to bottom, #e2e8f0 1px, transparent 1px),
        linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
    background-size: 100% var(--cal-hour-h), 100% calc(var(--cal-hour-h) / 2);
    cursor: pointer;
}
.cal-col--today { background-color: #f8fbff; }

/* Hover / drop preview */
.cal-ghost {
    position: absolute;
    left: 3px;
    right: 3px;
    z-index: 4;
    padding: 2px 8px;
    border: 2px dashed #0d6efd;
    border-radius: 6px;
    background: rgba(13, 110, 253, .06);
    color: #0d6efd;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
}
.cal-ghost--drop { z-index: 9; border-style: solid; background: rgba(13, 110, 253, .14); }

/* Appointment cards: tinted with the doctor (or cabinet) colour, status as icon + style */
.cal-event {
    position: absolute;
    box-sizing: border-box;
    padding: 3px 6px 3px 8px;
    border: 1px solid color-mix(in srgb, var(--ev-color) 40%, #fff);
    border-left: 5px solid var(--ev-color);
    border-radius: 6px;
    background: color-mix(in srgb, var(--ev-color) 15%, #fff);
    color: #1e293b;
    font-size: .8rem;
    line-height: 1.3;
    overflow: hidden;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
    transition: box-shadow .1s;
    user-select: none;
}
.cal-event:hover { z-index: 7; box-shadow: 0 4px 12px rgba(15, 23, 42, .2); }
.cal-ev-status { float: right; margin-left: 4px; }
.cal-ev-time { font-size: .72rem; font-weight: 600; color: #475569; }
.cal-ev-name,
.cal-ev-sub {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cal-ev-name { font-weight: 700; }
.cal-ev-sub { font-size: .72rem; color: #64748b; }

.cal-event--compact { padding-top: 0; padding-bottom: 0; }
.cal-event--compact .cal-ev-body {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    white-space: nowrap;
}
.cal-event--compact .cal-ev-name { flex: 1; min-width: 0; }
.cal-event--compact .cal-ev-status { order: 3; float: none; }
.cal-event--compact .cal-ev-time-end,
.cal-event--compact .cal-ev-sub { display: none; }

.cal-event--completed { opacity: .8; }
.cal-event--no_show {
    background: repeating-linear-gradient(-45deg, #f1f5f9 0 6px, #e2e8f0 6px 12px);
    color: #64748b;
}
.cal-event--cancelled {
    background: #fff;
    border-style: dashed;
    opacity: .6;
}
.cal-event--cancelled .cal-ev-name { text-decoration: line-through; }
.cal-event--dragging { opacity: .4; }
.cal-event--resizing { opacity: .8; z-index: 10; }
body.cal-resizing { cursor: ns-resize; user-select: none; }

.cal-ev-resize-handle-top,
.cal-ev-resize-handle-bot {
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    z-index: 10;
    cursor: ns-resize;
}
.cal-ev-resize-handle-top { top: 0; }
.cal-ev-resize-handle-bot { bottom: 0; }
.cal-ev-resize-handle-top:hover,
.cal-ev-resize-handle-bot:hover { background: color-mix(in srgb, var(--ev-color) 35%, transparent); }

/* Current-time red line */
.cal-now-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #ef4444;
    pointer-events: none;
    z-index: 8;
}
.cal-now-line::before {
    content: '';
    position: absolute;
    left: -1px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}

/* Day list (agenda) */
.cal-list { display: flex; flex-direction: column; gap: 8px; }
.cal-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-left: 6px solid var(--ev-color);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}
.cal-list-item:hover,
.cal-list-item:focus-visible { box-shadow: 0 3px 10px rgba(15, 23, 42, .1); outline: none; }
.cal-list-item--now { border-color: #0d6efd; border-left-color: var(--ev-color); box-shadow: 0 0 0 2px rgba(13, 110, 253, .2); }
.cal-list-item--cancelled { opacity: .6; }
.cal-list-item--cancelled .cal-list-name { text-decoration: line-through; }
.cal-list-time { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.cal-list-start { font-size: 1.1rem; font-weight: 700; color: #1e293b; }
.cal-list-end { font-size: .8rem; color: #94a3b8; }
.cal-list-main { flex: 1; min-width: 0; }
.cal-list-name { font-size: 1rem; font-weight: 600; color: #1e293b; }
.cal-list-meta { display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-size: .85rem; color: #64748b; }
.cal-list-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; cursor: default; }
.cal-list-status { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; }
.cal-status-btn:not(.dropdown-item),
.cal-status-more { min-height: 44px; }
.cal-status-more { min-width: 44px; }
.cal-list-empty { padding: 3rem 1rem; text-align: center; color: #64748b; }

/* Layout: grid or list (day mode); "auto" = grid on desktop, list on phones */
.cal-layout-grid .cal-list-pane,
.cal-layout-list .cal-grid-pane,
.cal-layout-list .cal-grid-only { display: none !important; }

/* Legend */
.cal-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem 1.1rem;
    margin-top: .75rem;
    font-size: .82rem;
    color: #64748b;
}
.cal-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border-left: 4px solid #0d6efd;
    background: rgba(13, 110, 253, .15);
}
.cal-legend-hint { color: #94a3b8; }

/* Tooltip (desktop hover) */
#cal-tooltip {
    position: fixed;
    z-index: 1080;
    min-width: 170px;
    max-width: 260px;
    padding: 10px 13px;
    border-radius: 8px;
    background: #1e293b;
    color: #f1f5f9;
    font-size: .8rem;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
    pointer-events: none;
    opacity: 0;
    transition: opacity .1s;
}
#cal-tooltip.cal-tip-visible { opacity: 1; }
.cal-tip-title { font-weight: 700; font-size: .88rem; margin-bottom: 4px; }
.cal-tip-row { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
.cal-tip-icon { width: 14px; text-align: center; flex-shrink: 0; color: #94a3b8; font-size: .72rem; }
.cal-tip-icon.is-pending   { color: #ffc107; }
.cal-tip-icon.is-confirmed { color: #6ea8fe; }
.cal-tip-icon.is-completed { color: #75b798; }
.cal-tip-icon.is-cancelled { color: #ea868f; }
.cal-tip-notes {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #cbd5e1;
    font-style: italic;
    font-size: .75rem;
}

@media (min-width: 768px) {
    .cal-layout-auto .cal-list-pane { display: none; }
    .cal-col-hidden { display: none !important; }
}

/* Phones: single grid column picked with ◀ select ▶, list by default, 44px touch targets */
@media (max-width: 767.98px) {
    .cal-layout-auto .cal-grid-pane,
    .cal-layout-auto .cal-grid-only { display: none !important; }
    .cal-btn, .cal-date-btn, .cal-chip { min-height: 44px; }
    .cal-toolbar-actions { margin-left: 0; width: 100%; }
    .cal-toolbar-actions .btn-group { flex: 1 1 auto; }
    .cal-date-btn { font-size: 1rem; }
    .cal-hide-mobile { display: none; }
    .cal-summary { margin-left: 0; width: 100%; }
    .cal-wrapper { max-height: calc(100vh - 200px); }
    .cal-grid-row { grid-template-columns: 48px 1fr !important; }
    .cal-header-cell,
    .cal-col { display: none; }
    .cal-header-cell.cal-col-active { display: flex; }
    .cal-col.cal-col-active { display: block; }
    .cal-list-item { flex-wrap: wrap; }
    .cal-list-actions { width: 100%; justify-content: flex-start; }
    .cal-list-actions .cal-status-btn { flex: 1 1 auto; }
}

/* ── Odontogram chart ────────────────────────────────────── */
.odo-chart { overflow-x: auto; padding-bottom: 4px; }

.odo-row {
    display: flex;
    align-items: flex-end;
    min-width: 640px;
    margin-bottom: 1px;
}
.odo-row--dec { align-items: flex-end; }

.odo-half { display: flex; flex: 1; gap: 2px; }
.odo-half--right { justify-content: flex-end; }
.odo-half--left  { justify-content: flex-start; }

.odo-midline {
    width: 10px;
    flex-shrink: 0;
    background: repeating-linear-gradient(to bottom,#adb5bd 0,#adb5bd 4px,transparent 4px,transparent 8px);
    margin: 0 2px;
    border-radius: 2px;
    align-self: stretch;
}
.odo-midline--dec { opacity: .5; }

.odo-jaw-sep {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    margin: 3px 0;
    border-top: 2px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
    min-width: 640px;
}
.odo-jaw-label {
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #adb5bd;
    padding: 0 4px;
}

/* ── Tooth button ── */
.odo-tooth {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    width: 40px;
    padding: 2px 1px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: transform .12s, filter .12s;
}
.odo-tooth:hover  { transform: scale(1.12); filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); z-index: 2; }
.odo-tooth--active { transform: scale(1.14); filter: drop-shadow(0 0 4px #0d6efd) drop-shadow(0 2px 6px rgba(13,110,253,.4)); z-index: 3; }
.odo-tooth--lower { flex-direction: column-reverse; }
.odo-tooth--dec   { width: 30px; }

/* Tooth number label */
.odo-tooth__num {
    font-size: .58rem;
    font-weight: 700;
    color: #6c757d;
    line-height: 1;
}
.odo-tooth--active .odo-tooth__num { color: #0d6efd; }

/* SVG tooth graphic */
.odo-svg {
    width: 36px;
    height: 68px;
    display: block;
    flex-shrink: 0;
}
.odo-tooth--dec .odo-svg { width: 26px; height: 50px; }

/* Endodontic dot */
.odo-tooth__endo {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.endo-none              { background: transparent; }
.endo-treated           { background: #198754; }
.endo-needs_treatment   { background: #fd7e14; }
.endo-periapical_lesion { background: #dc3545; }
.odo-tooth--dec .odo-tooth__endo { width: 5px; height: 5px; }

/* Crown fill per status (CSS var inherited into SVG shadow tree) */
.odo-tooth                                      { --crown-fill: #f2f0ec; }
.odo-tooth[data-status="caries"]               { --crown-fill: #e07070; }
.odo-tooth[data-status="filled"]               { --crown-fill: #7aabdf; }
.odo-tooth[data-status="crown"]                { --crown-fill: #e8c84a; }
.odo-tooth[data-status="missing"]              { --crown-fill: transparent; opacity: .4; }
.odo-tooth[data-status="implant"]              { --crown-fill: #6ecfe8; }
.odo-tooth[data-status="bridge_abutment"]      { --crown-fill: #e8a84a; }
.odo-tooth[data-status="extraction_indicated"] { --crown-fill: #b07de0; }
.odo-tooth[data-status="veneer"]               { --crown-fill: #e87ac8; }
.odo-tooth[data-status="fracture"]             { --crown-fill: #e89060; }

/* Deciduous spacer */
.odo-dec-spacer {
    width: calc(3 * 40px + 3 * 2px);
    flex-shrink: 0;
}

/* Legend */
.odo-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.odo-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .7rem;
    color: #495057;
}
.odo-legend-item::before {
    content: '';
    width: 11px;
    height: 14px;
    border-radius: 2px 2px 4px 4px;
    flex-shrink: 0;
}
.odo-legend-item[data-status="healthy"]::before              { background:#f2f0ec; border:1px solid #ced4da; }
.odo-legend-item[data-status="caries"]::before               { background:#e07070; }
.odo-legend-item[data-status="filled"]::before               { background:#7aabdf; }
.odo-legend-item[data-status="crown"]::before                { background:#e8c84a; }
.odo-legend-item[data-status="missing"]::before              { background:#dee2e6; border:1px dashed #adb5bd; }
.odo-legend-item[data-status="implant"]::before              { background:#6ecfe8; }
.odo-legend-item[data-status="bridge_abutment"]::before      { background:#e8a84a; }
.odo-legend-item[data-status="extraction_indicated"]::before { background:#b07de0; }
.odo-legend-item[data-status="veneer"]::before               { background:#e87ac8; }
.odo-legend-item[data-status="fracture"]::before             { background:#e89060; }

/* ── Periodontal chart ─────────────────────────────────────── */
.perio-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.perio-arch-label {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6c757d;
    margin-bottom: 4px;
}

.perio-arch-sep {
    height: 12px;
}

.perio-table {
    border-collapse: collapse;
    font-size: .72rem;
    white-space: nowrap;
    min-width: 100%;
}

.perio-col-label { width: 72px; min-width: 72px; }
.perio-col-mid   { width: 10px; background: #e9ecef; }

.perio-label {
    font-size: .65rem;
    color: #6c757d;
    padding: 2px 4px;
    text-align: right;
    vertical-align: middle;
    line-height: 1.2;
    border-right: 1px solid #dee2e6;
    min-width: 72px;
}

.perio-cell {
    border: 1px solid #e9ecef;
    text-align: center;
    vertical-align: middle;
    padding: 0;
    min-width: 16px;
    height: 20px;
    cursor: default;
}

.perio-cell--toggle {
    cursor: pointer;
    background: #f8f9fa;
    user-select: none;
}
.perio-cell--toggle:hover { background: #e9ecef; }

.perio-on--bleed  { background: #e07070 !important; }
.perio-on--plaque { background: #7aabdf !important; }

.perio-cell--num   { padding: 0; }
.perio-cell--single { cursor: pointer; }
.perio-cell--implant { cursor: pointer; font-size: .85rem; line-height: 1; }

.perio-input {
    width: 100%;
    border: 0;
    text-align: center;
    background: transparent;
    font-size: .72rem;
    color: inherit;
    padding: 0;
    height: 20px;
    outline: none;
    -moz-appearance: textfield;
}
.perio-input::-webkit-outer-spin-button,
.perio-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.perio-input:focus { background: #fff3cd; }

.perio-pd--deep { color: #c0392b; font-weight: 600; }

.perio-row--teeth td { background: #e9ecef; }
.perio-tooth-num {
    font-size: .68rem;
    font-weight: 600;
    text-align: center;
    padding: 2px 0;
    border: 1px solid #dee2e6;
}

.perio-row--pd .perio-cell--num { background: #fafafa; }

.perio-mid { background: #e9ecef; width: 10px; }

/* group separation between teeth — every 3rd col inside a half */
.perio-table col:nth-child(3n+2) { border-right: 1px solid #adb5bd; }

.perio-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 2px;
    vertical-align: middle;
}
.perio-dot--bleed  { background: #e07070; }
.perio-dot--plaque { background: #7aabdf; }

.perio-save-status {
    position: fixed;
    bottom: 16px;
    right: 16px;
    font-size: .75rem;
    padding: 4px 10px;
    border-radius: 4px;
    pointer-events: none;
    transition: opacity .3s;
}
.perio-save-status--saving { background: #fff3cd; color: #856404; }
.perio-save-status--saved  { background: #d1e7dd; color: #0f5132; }
.perio-save-status--error  { background: #f8d7da; color: #842029; }

/* Visualization rows — image + canvas overlay */
.perio-row--viz-img td { padding: 0 !important; }
.perio-viz-img-cell    { padding: 0 !important; }
.pvz-label             { font-size: .6rem !important; color: #94a3b8 !important; vertical-align: middle !important; }
.perio-viz-imgwrap {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #fff;
}
.perio-viz-img {
    display: block;
    width: 100%;
    height: 120px;
    /* stretch image to fill — preserves tooth column alignment with table */
}
.perio-viz-img--flip { transform: scaleY(-1); }
.perio-viz-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
}

/* ── Select2 → Bootstrap 5 theme ────────────────────────── */
.select2-container { width: 100% !important; }

.select2-container--default .select2-selection--single {
    position: relative;
    display: flex;
    align-items: center;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Rendered value text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: inherit;
    color: inherit;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

/* Hide the default b-tag chevron; draw Bootstrap's SVG arrow via ::after */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}
.select2-container--default .select2-selection--single::after {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 16px 12px;
    pointer-events: none;
}

/* Focus ring */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open  .select2-selection--single {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Rounded corners when open */
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Dropdown panel */
.select2-dropdown {
    font-size: 0.9rem;
    border: 1px solid #86b7fe;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.1);
}
.select2-container--default.select2-container--open.select2-container--below .select2-dropdown {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top-color: #ced4da;
}
.select2-container--default.select2-container--open.select2-container--above .select2-dropdown {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: #ced4da;
}

/* Search field inside dropdown */
.select2-search--dropdown .select2-search__field {
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    outline: none;
}
.select2-search--dropdown .select2-search__field:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Options */
.select2-results__option {
    padding: 0.375rem 0.75rem;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0d6efd;
    color: #fff;
}
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #e9ecef;
    color: #212529;
}

/* ── Percentage-width modal sizes ────────────────────────── */
/* Apply to .modal-dialog alongside modal-dialog-centered.   */
/* e.g. {% block modal_size %}modal-w-70{% endblock %}       */
.modal-w-20 { max-width: 20vw; }
.modal-w-30 { max-width: 30vw; }
.modal-w-40 { max-width: 40vw; }
.modal-w-50 { max-width: 50vw; }
.modal-w-60 { max-width: 60vw; }
.modal-w-70 { max-width: 70vw; }
.modal-w-80 { max-width: 80vw; }
.modal-w-90 { max-width: 90vw; }

/* On small screens all percentage modals expand to near full width */
@media (max-width: 767.98px) {
    .modal-w-20, .modal-w-30, .modal-w-40, .modal-w-50,
    .modal-w-60, .modal-w-70, .modal-w-80, .modal-w-90 {
        max-width: 95vw;
    }
}

/* ── Doctor working hours (informational, never blocks booking) ── */
/* Calendar doctor view: off-hours slightly grey, working hours tinted green */
.cal-col.cal-col-has-schedule {
    background-color: #f6f7f9;
}
.cal-work-block {
    position: absolute;
    left: 0;
    right: 0;
    background: rgba(25, 135, 84, .08);
    border-left: 3px solid rgba(25, 135, 84, .45);
    pointer-events: none;
}
.cal-work-legend {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(25, 135, 84, .15);
    border-left: 3px solid rgba(25, 135, 84, .45);
    vertical-align: middle;
}

/* Appointment form: day schedule mini-grid */
.day-sched-work-block {
    position: absolute;
    left: 28px;
    right: 0;
    background: rgba(25, 135, 84, .10);
    border-left: 3px solid rgba(25, 135, 84, .5);
    pointer-events: none;
    z-index: 0;
}
.day-sched-work-badge {
    display: inline-block;
    padding: 0 .4rem;
    border-radius: .25rem;
    background: rgba(25, 135, 84, .12);
    color: #146c43;
    font-weight: 600;
}

/* Doctor schedule form */
.working-time-input {
    max-width: 8rem;
}

/* Patient page: SMS history */
.sms-message-cell {
    min-width: 16rem;
}

/* ── Calendar blocks (vacation, meetings, holidays…) ─────── */
.cal-block {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    cursor: pointer;
    background: repeating-linear-gradient(
        -45deg,
        color-mix(in srgb, var(--block-color) 22%, transparent) 0 6px,
        color-mix(in srgb, var(--block-color) 8%, transparent) 6px 12px
    );
    border-left: 3px solid var(--block-color);
    overflow: hidden;
}
.cal-block-label {
    display: inline-block;
    margin: 2px 4px;
    padding: 0 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .85);
    color: #334155;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.cal-block-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--block-color);
    border-left-width: 4px;
    background: color-mix(in srgb, var(--block-color) 10%, #fff);
    color: #334155;
    font-size: 12px;
    text-decoration: none;
}
.cal-block-chip:hover { background: color-mix(in srgb, var(--block-color) 20%, #fff); color: #0f172a; }
.cal-block-chip i { color: var(--block-color); }
.day-sched-block {
    position: absolute;
    left: 28px;
    right: 0;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        -45deg,
        color-mix(in srgb, var(--block-color) 25%, transparent) 0 5px,
        transparent 5px 10px
    );
    border-left: 3px solid var(--block-color);
}
.day-sched-block span {
    font-size: 9px;
    font-weight: 700;
    color: #334155;
    padding: 0 3px;
    background: rgba(255, 255, 255, .8);
}

/* ── Section tabs (grouped pages) / settings menu ─────────── */
.section-tabs { flex-wrap: wrap; }
.section-tabs .nav-link { min-height: 44px; display: flex; align-items: center; }
.settings-groups { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.settings-groups .btn { min-height: 44px; display: inline-flex; align-items: center; }

/* ── Patient page ─────────────────────────────────────────── */
.patient-header { position: sticky; top: 0; z-index: 1020; }
@media (min-width: 992px) { .patient-header { top: 59px; } }
@media (max-width: 991.98px) { .patient-header { top: var(--topbar-height); } }
.patient-touch { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.patient-inactive-badge { font-size: .6em; vertical-align: middle; }
.patient-segmented .btn { min-height: 44px; }
.patient-offcanvas { width: min(720px, 100vw); }

/* Patient tabs: 2 rows of 3 on phones, never a horizontal scroll */
.patient-tabs { flex-wrap: wrap; }
.patient-tabs .nav-link { min-height: 44px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 575.98px) {
    .patient-tabs .nav-item { flex: 1 1 33.333%; }
    .patient-tabs .nav-link { padding: .5rem .25rem; font-size: .85rem; white-space: nowrap; }
}

/* ── First-steps checklist ────────────────────────────────── */
.setup-progress { width: 100%; height: 8px; accent-color: var(--bs-primary); }

/* ── Quick add "+" ────────────────────────────────────────── */
.quick-add-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.quick-add-item { min-height: 44px; display: flex; align-items: center; }

/* ── Bottom navigation (phones / tablets) ─────────────────── */
.app-bottom-nav { display: none; }
@media (max-width: 991.98px) {
    .app-bottom-nav {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 1035;
        background: var(--navbar-bg);
        border-top: 1px solid rgba(255,255,255,.08);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .app-bottom-nav a,
    .app-bottom-nav button {
        flex: 1 1 0;
        min-height: 56px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 4px 2px;
        color: rgba(241,245,249,.7);
        font-size: 11px;
        background: none;
        border: 0;
        text-decoration: none;
    }
    .app-bottom-nav a.active { color: #fff; font-weight: 600; }
    .app-bottom-nav i { font-size: 18px; }
    .app-main { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
.global-search-section { padding: 6px 14px 2px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; }

/* Proposed appointment in the mini day schedule: drag the top / bottom edge to change the start / end */
.day-sched-handle {
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    cursor: ns-resize;
    pointer-events: auto;
    touch-action: none;
    z-index: 4;
}
.day-sched-handle-top { top: -5px; }
.day-sched-handle-bot { bottom: -5px; }
.day-sched-handle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 4px;
    margin: -2px 0 0 -11px;
    border-radius: 2px;
    background: rgb(13, 110, 253);
    opacity: .75;
}
.day-sched-handle:hover::after { opacity: 1; }
.day-sched-ghost.is-resizing { box-shadow: 0 0 0 3px rgba(13, 110, 253, .25); }
body.day-sched-resizing { cursor: ns-resize; user-select: none; }
