/* MediVisit look: small changes on top of the Vuexy theme, loaded on every page after demo.css.
   Note: the template customizer script puts core.css at the end of <head> again, so a rule here that
   has the same weight as a core.css rule would lose. Start selectors with "body" to win. */

/* Cards: corner radius 1rem (Vuexy default is 0.375rem) */
body .card {
  --bs-card-border-radius: 1rem;
  --bs-card-inner-border-radius: 1rem;
}

/* A table that ends a card: no line under the last row (it showed as a stray line at the card's bottom edge) */
body .card > .table-responsive > .table > tbody:last-child > tr:last-child > *,
body .card > .table > tbody:last-child > tr:last-child > * {
  border-bottom-width: 0;
}
/* ...and the table follows the rounded bottom corners of the card */
body .card > .table-responsive:last-child {
  border-bottom-left-radius: var(--bs-card-inner-border-radius);
  border-bottom-right-radius: var(--bs-card-inner-border-radius);
}

/* ---------------------------------------------------------------------------------------------
   Tables (DataTables lists): same look on every list. Use class "mv-table-card" on the card and
   "mv-table" on the table. One outline around the whole table, a divider between columns,
   a tinted header, a hover row, and the same colours in dark mode.
   --------------------------------------------------------------------------------------------- */
body .mv-table-card .dt-container .dt-scroll,
body .mv-table-card .dt-container > .dt-layout-row > .dt-layout-cell > .dt-layout-table,
body .mv-table-card .table-responsive { border-radius: .5rem; }
/* overflow: clip (not hidden) rounds the corners without making a scroll box, so the header below can stick to the page */
body .mv-table-card .dt-scroll { border: 1px solid #e4e6da; overflow: clip; margin-bottom: 1rem; }
/* Fixed header on every list: while the page scrolls, the header row stays just under the top bar (which ends 78px from the top) */
body .mv-table-card .dt-scroll-head { position: sticky !important; top: 78px; z-index: 5; }   /* !important: DataTables writes position: relative on it */
body .mv-table-card .dt-scroll-head { background: #f3f4f9; }
body .mv-table-card table.mv-table { border-collapse: separate; border-spacing: 0; margin-bottom: 0 !important; }
body .mv-table-card table.mv-table thead th { background: #f3f4f9; padding: .85rem 1rem; border-top: 0; border-left: 0; border-bottom: 1px solid #e4e6da; vertical-align: middle; }
body .mv-table-card table.mv-table thead th,
body .mv-table-card table.mv-table tbody td { border-right: 1px solid #e4e6da; }
body .mv-table-card table.mv-table thead th:last-child,
body .mv-table-card table.mv-table tbody td:last-child { border-right: 0; }
body .mv-table-card table.mv-table tbody td { padding: .8rem 1rem; border-top: 0; border-left: 0; border-bottom: 1px solid #eef0f6; background: #fff; vertical-align: middle; }
body .mv-table-card table.mv-table tbody tr:hover td { background: #f8f8fc; }
body .mv-table-card table.mv-table tbody tr:last-child td { border-bottom: 0; }
body .mv-table-card .dt-search input,
body .mv-table-card .dt-length select { background-color: #f3f4f9; border-radius: .4rem; }
body .mv-table-card .dt-layout-row { margin-bottom: .75rem; }
body .mv-table-card .dt-layout-row:last-child { margin-top: .75rem; margin-bottom: 0; }

/* Dark mode */
html.dark-style body .mv-table-card .dt-scroll { border-color: #444564; }
html.dark-style body .mv-table-card .dt-scroll-head,
html.dark-style body .mv-table-card table.mv-table thead th { background: #34344f; border-color: #444564; }
html.dark-style body .mv-table-card table.mv-table tbody td { background: #2f3349; border-color: #444564; }
html.dark-style body .mv-table-card table.mv-table tbody tr:hover td { background: #373b53; }
html.dark-style body .mv-table-card .dt-search input,
html.dark-style body .mv-table-card .dt-length select { background-color: #34344f; }
/* Frozen (fixed) columns keep the cell colour instead of turning transparent or black */
body .mv-table-card table.mv-table td.dtfc-fixed-start,
body .mv-table-card table.mv-table th.dtfc-fixed-start,
body .mv-table-card table.mv-table td.dtfc-fixed-left,
body .mv-table-card table.mv-table th.dtfc-fixed-left { position: sticky; }
/* With scrollX DataTables keeps a second (hidden) header inside the scroll body so the columns line up:
   it must stay collapsed, so the header rules above do not apply to it. */
body .mv-table-card .dt-scroll-body table.mv-table thead th,
body .mv-table-card .dt-scroll-body table.mv-table thead td {
  padding-top: 0 !important; padding-bottom: 0 !important; border-top: 0 !important; border-bottom: 0 !important; height: 0 !important; line-height: 0 !important; background: transparent !important;
}
/* Only the height collapses: the titles keep their width (hidden, not removed), so a column is never narrower than its title.
   (With the titles removed, a column with short values like "-" was narrower than the title on top and the header slid out of line.) */
body .mv-table-card .dt-scroll-body table.mv-table thead .dt-column-title,
body .mv-table-card .dt-scroll-body table.mv-table thead .dt-column-order { visibility: hidden !important; }

/* ---------------------------------------------------------------------------------------------
   Date fields (Flatpickr) and dropdowns (Bootstrap-select): see public/assets/js/mv-ui.js
   --------------------------------------------------------------------------------------------- */
body .flatpickr-wrapper { display: block; }
body input.mv-date { cursor: pointer; padding-right: 2.4rem; background-repeat: no-repeat; background-position: right .8rem center; background-size: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a5a3ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M4 11h16'/%3E%3C/svg%3E"); }
body .bootstrap-select { width: 100% !important; }
body .bootstrap-select > .dropdown-toggle { background: var(--bs-body-bg, #fff); border: 1px solid #dbdade; font-weight: 400; min-height: 2.5rem; text-align: left; color: inherit; }
body .bootstrap-select > .dropdown-toggle.btn-sm { min-height: 2rem; }
body .bootstrap-select > .dropdown-toggle:focus, body .bootstrap-select.show > .dropdown-toggle { border-color: #7367f0; box-shadow: none; }
body .bootstrap-select.is-invalid > .dropdown-toggle, body .bootstrap-select > select.is-invalid ~ .dropdown-toggle { border-color: #ea5455; }
body .bootstrap-select.disabled > .dropdown-toggle { background: #f1f0f2; opacity: 1; }
body .bootstrap-select .dropdown-menu { min-width: 100%; }
body .bootstrap-select .dropdown-menu .bs-searchbox .form-control { min-height: 2.2rem; }
html.dark-style body .bootstrap-select > .dropdown-toggle { background: #2f3349; border-color: #444564; }
html.dark-style body .bootstrap-select.disabled > .dropdown-toggle { background: #34344f; }
body .flatpickr-calendar { z-index: 2000; }

/* DataTables toolbar buttons: separate and fully rounded. Primary by default (Filter); .mv-btn-neutral ones (Export) stay neutral with a thin outline */
body .dt-buttons { display: inline-flex; gap: .5rem; }
body .dt-buttons .btn, body .dt-buttons .dt-button {
  border: 1px solid var(--bs-primary) !important; border-radius: .375rem !important; margin: 0 !important;
  background: var(--bs-primary) !important; color: #fff !important; box-shadow: none !important; outline: 0 !important;
}
body .dt-buttons .btn:hover, body .dt-buttons .btn:focus { filter: brightness(.92); }
body .dt-buttons .btn { position: relative; }
/* the number of filters in use sits on the top right corner of the Filter button */
body .dt-buttons .btn .badge { position: absolute; top: -7px; right: -7px; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; font-size: .68rem; font-weight: 700; line-height: 1; background: var(--bs-danger) !important; color: #fff !important; border: 2px solid var(--bs-paper-bg, #fff); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
body .dt-buttons .btn.mv-btn-neutral {
  border-color: var(--bs-border-color, #dbdade) !important; background: var(--bs-paper-bg, #fff) !important; color: var(--bs-body-color, #5d596c) !important;
}
body .dt-buttons .btn.mv-btn-neutral:hover, body .dt-buttons .btn.mv-btn-neutral:focus { filter: none; border-color: var(--bs-primary) !important; background: rgba(var(--bs-primary-rgb), .08) !important; }

/* Other toolbar button colours: soft (tinted background, coloured text, thin outline) for actions that are not the main one */
body .dt-buttons .btn.mv-btn-soft-primary { border-color: rgba(var(--bs-primary-rgb), .4) !important; background: rgba(var(--bs-primary-rgb), .12) !important; color: var(--bs-primary) !important; }
body .dt-buttons .btn.mv-btn-soft-danger { border-color: rgba(var(--bs-danger-rgb), .4) !important; background: rgba(var(--bs-danger-rgb), .12) !important; color: var(--bs-danger) !important; }
body .dt-buttons .btn.mv-btn-soft-success { border-color: rgba(var(--bs-success-rgb), .4) !important; background: rgba(var(--bs-success-rgb), .12) !important; color: var(--bs-success) !important; }
body .dt-buttons .btn.mv-btn-soft-warning { border-color: rgba(var(--bs-warning-rgb), .4) !important; background: rgba(var(--bs-warning-rgb), .14) !important; color: #c76d12 !important; }
body .dt-buttons .btn.mv-btn-soft-primary:hover, body .dt-buttons .btn.mv-btn-soft-danger:hover, body .dt-buttons .btn.mv-btn-soft-success:hover, body .dt-buttons .btn.mv-btn-soft-warning:hover { filter: none; background-image: linear-gradient(rgba(0, 0, 0, .04), rgba(0, 0, 0, .04)); }

/* Audit: the new / old values of one line, shown like a code dump */
.mv-diff-by { font-size: .95rem; margin-bottom: .75rem; }
.mv-diff-title { font-weight: 700; margin: 1rem 0 .4rem; }
.mv-dump { background: #18171b; color: #d4d4d8; border-radius: .5rem; padding: .85rem 1rem; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.mv-dump-type { color: #1299da; }
.mv-dump-key, .mv-dump-str { color: #56db3a; }
.mv-dump-num { color: #1299da; font-weight: 700; }
.mv-dump-bool { color: #ff8400; font-weight: 700; }

/* A column that is not sortable (Changes, Actions) has no sort arrow, so its header text is centred like the cells below it */
body table.dataTable thead th.dt-orderable-none .dt-column-order { display: none; }
body table.dataTable thead th.text-center .dt-column-header { justify-content: center; }

/* The table body still scrolls (mouse wheel / touch, the header stays fixed), but the vertical scrollbar is not drawn; the horizontal one stays */
body .mv-table-card .dt-scroll-body::-webkit-scrollbar { width: 0; height: 10px; }
body .mv-table-card .dt-scroll-body::-webkit-scrollbar-thumb { background: rgba(var(--bs-secondary-rgb, 168, 170, 174), .45); border-radius: 10px; }
body .mv-table-card .dt-scroll-body::-webkit-scrollbar-track { background: transparent; }
body .mv-table-card .dt-scroll-headInner { padding-right: 0 !important; }

/* Toast messages (success, error, warning, info): wide enough to read on one line, a coloured edge, soft shadow */
body .swal2-container.swal2-top-end { padding-top: 1.25rem; padding-right: 1.25rem; }
body .swal2-popup.swal2-toast.mv-toast {
  width: auto; min-width: 280px; max-width: 420px; padding: .8rem 2.2rem .8rem 1rem; align-items: center; grid-template-columns: auto 1fr;
  border-radius: .6rem; border-left: 4px solid var(--mv-toast-color, #28c76f); box-shadow: 0 .5rem 1.5rem rgba(34, 41, 47, .18);
}
body .swal2-popup.swal2-toast.mv-toast .swal2-title { margin: 0 0 0 .25rem; padding: 0; font-size: .9375rem; font-weight: 500; line-height: 1.4; text-align: left; white-space: normal; }
body .swal2-popup.swal2-toast.mv-toast .swal2-icon { width: 2rem; height: 2rem; min-width: 2rem; margin: 0 .5rem 0 0; transform: scale(.85); }
body .swal2-popup.swal2-toast.mv-toast .swal2-icon .swal2-icon-content { font-size: 1.4rem; }
body .swal2-popup.swal2-toast.mv-toast .swal2-close { position: absolute; top: .35rem; right: .35rem; width: 1.5rem; height: 1.5rem; font-size: 1.3rem; }
body .swal2-popup.swal2-toast.mv-toast .swal2-timer-progress-bar { background: var(--mv-toast-color, #28c76f); opacity: .5; }
body .swal2-popup.mv-toast-success { --mv-toast-color: #28c76f; }
body .swal2-popup.mv-toast-error { --mv-toast-color: #ea5455; }
body .swal2-popup.mv-toast-warning { --mv-toast-color: #ff9f43; }
body .swal2-popup.mv-toast-info { --mv-toast-color: #00bad1; }

/* A plain (not DataTables) table in a table card: the same outline */
body .mv-table-card .mv-table-wrap { border: 1px solid #e4e6da; border-radius: .5rem; overflow: hidden; }
html.dark-style body .mv-table-card .mv-table-wrap { border-color: #444564; }
body .mv-table-card .mv-table-wrap table.mv-table thead th { text-transform: uppercase; font-size: .8rem; letter-spacing: .5px; }

/* Price Master tabs: more space above the tabs */
body .price-tabs { padding-top: 1rem; }
/* a tab bar wider than its card scrolls inside it (it must not spill out) */
body .price-tabs { overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; }
/* a slim scrollbar under the tabs (the second rule is for Firefox only) */
body .price-tabs::-webkit-scrollbar { height: 4px; }
body .price-tabs::-webkit-scrollbar-thumb { background: rgba(115, 103, 240, .35); border-radius: 4px; }
body .price-tabs::-webkit-scrollbar-track { background: transparent; }
@supports not selector(::-webkit-scrollbar) { body .price-tabs { scrollbar-width: thin; } }
body .mv-tabscroll { position: relative; }
body .mv-tabscroll-btn { position: absolute; z-index: 5; top: 1rem; bottom: .5rem; width: 2.25rem; display: flex; align-items: center; justify-content: center; border: 0; border-radius: .4rem;
  background: var(--bs-card-bg, #fff); color: #7367f0; font-size: 1.2rem; box-shadow: 0 0 .75rem rgba(75, 70, 92, .18); }
body .mv-tabscroll-btn[hidden] { display: none; }
body .mv-tabscroll-btn.is-left { left: .5rem; }
body .mv-tabscroll-btn.is-right { right: .5rem; }
body .price-tabs .nav-item { flex: 0 0 auto; }

/* Tabs page (tabs on top of one card): the forms inside get a plain outline instead of their own shadow */
body .tab-card .tab-content .card { box-shadow: none; border: 1px solid #e4e6da; }
html.dark-style body .tab-card .tab-content .card { border-color: #444564; }

/* Roles & permissions: compact role list and permission table */
body .role-list .list-group-item { border-left: 3px solid transparent; }
body .role-list .list-group-item:hover { background: #f8f8fc; }
body .role-list .list-group-item.active-role { background: #f1effd; border-left-color: #7367f0; }
html.dark-style body .role-list .list-group-item:hover { background: #373b53; }
html.dark-style body .role-list .list-group-item.active-role { background: #3a3857; }
body .perm-scroll { max-height: 68vh; overflow: auto; }
body .perm-table thead th { position: sticky; top: 0; z-index: 2; background: #f3f4f9; font-size: .72rem; text-transform: uppercase; letter-spacing: .4px; padding: .5rem .4rem; white-space: nowrap; border-bottom: 1px solid #e4e6da; }
html.dark-style body .perm-table thead th { background: #34344f; }
body .perm-table thead th .select-col { display: block; margin: 0 auto; font-size: .68rem; text-transform: none; letter-spacing: 0; line-height: 1.1; }
body .perm-table tbody td { padding: .3rem .4rem; white-space: nowrap; }
body .perm-table tbody tr:hover td { background: #f8f8fc; }
html.dark-style body .perm-table tbody tr:hover td { background: #373b53; }
body .perm-table .form-check-input { margin: 0; vertical-align: middle; }
body .perm-table .perm-lock { font-size: .7rem; margin-left: 2px; vertical-align: middle; }
body .perm-table .select-row { font-size: .7rem; }
body .perm-table thead th .select-col, body .perm-table .select-row { display: block; background: none !important; box-shadow: none !important; margin: 0 auto; }
body .role-side { max-height: 78vh; overflow-y: auto; }
/* Vertical tabs (vt-side: Settings, patient profile, slip upload): show every tab, no inner scroll box (only the long role list scrolls) */
body .role-side.vt-side { max-height: none; overflow-y: visible; }
@media (max-width: 991.98px) { body .role-side { border-right: 0 !important; border-bottom: 1px solid #e4e6da; max-height: none; } }

/* Mobile fields with the flag (intl-tel-input): as wide as the other fields */
body .iti { display: block; width: 100%; }

/* ---------------------------------------------------------------------------------------------
   Files: upload box (mv-upload.js) and file rows (component mv.file-row). --mv-accent is the tone;
   put class mv-tone-blue / mv-tone-indigo on a parent to change it.
   --------------------------------------------------------------------------------------------- */
body { --mv-accent: 79, 70, 229; }
body .mv-tone-blue { --mv-accent: 31, 116, 224; }
body .mv-tone-indigo { --mv-accent: 79, 70, 229; }
body .mv-file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Heading pill with a line after it */
body .mv-file-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
body .mv-file-heading > span { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 1rem; border-radius: 2rem; background: rgba(var(--mv-accent), .09); color: rgb(var(--mv-accent)); font-weight: 500; white-space: nowrap; }
body .mv-file-heading::after { content: ""; flex: 1; border-top: 1px solid rgba(var(--bs-secondary-rgb, 168, 170, 174), .35); }

/* Upload box */
body .mv-dropzone.dropzone { min-height: 0; padding: .75rem; border: 1px dashed rgba(var(--mv-accent), .45); border-radius: .75rem; background: rgba(var(--mv-accent), .05); }
body .mv-dropzone.dropzone.dz-drag-hover { border-style: solid; background: rgba(var(--mv-accent), .1); }
body .mv-dropzone .dz-message, body .mv-dropzone.dz-started .dz-message { display: block; margin: .75rem 0; font-size: 1rem; }
body .mv-dropzone .dz-message::before { display: none; }
body .mv-drop-icon { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; margin-bottom: .6rem; border-radius: 50%; background: rgba(var(--mv-accent), .09); color: rgb(var(--mv-accent)); }
body .mv-drop-icon i { font-size: 2.2rem; }
body .mv-drop-title { display: block; font-weight: 600; color: var(--bs-heading-color); }
body .mv-dropzone .dz-message .note { display: block; font-size: .8125rem; margin-top: .25rem; opacity: .75; }
body .mv-dropzone.is-invalid { border-color: #ea5455; }

/* File row */
body .mv-file { position: relative; display: flex; align-items: center; gap: .75rem; width: 100%; margin-top: .75rem; padding: .7rem 1rem; border: 1px solid rgba(var(--mv-accent), .22); border-radius: .75rem; background: var(--bs-paper-bg, #fff); box-shadow: 0 4px 14px rgba(var(--mv-accent), .08); color: var(--bs-heading-color); text-align: left; cursor: default; overflow: hidden; }
body .mv-file-thumb { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: .6rem; background: rgba(var(--mv-accent), .09); color: rgb(var(--mv-accent)); overflow: hidden; }
body .mv-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
body .mv-file-thumb-dark { background: #25293c; padding: .2rem; }
/* a chosen file shows its picture when it has one, otherwise the icon */
body .mv-dropzone .mv-file-thumb img { display: none; }
body .mv-dropzone .mv-file.dz-image-preview .mv-file-thumb img { display: block; }
body .mv-dropzone .mv-file.dz-image-preview .mv-file-thumb i { display: none; }
body .mv-file-name { min-width: 4rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; font-size: .9375rem; }
body .mv-file-info { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .8125rem; color: var(--bs-body-color); opacity: .8; }
body .mv-file-info strong { font-weight: 400; }
body .mv-file-actions { display: flex; flex-shrink: 0; gap: .5rem; margin-left: auto; }
body .mv-file-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 50%; background: rgba(var(--mv-accent), .09); color: var(--bs-heading-color); cursor: pointer; }
body .mv-file-btn:hover { background: rgba(var(--mv-accent), .2); color: rgb(var(--mv-accent)); }
body .mv-file-btn-danger, body .mv-file-btn-danger:hover { background: rgba(234, 84, 85, .12); color: #ea5455; }
body .mv-file-btn-danger:hover { background: rgba(234, 84, 85, .24); }
/* upload progress as a thin line at the bottom of the row, gone when the upload is done */
body .mv-file .mv-file-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; }
body .mv-file .mv-file-progress span { display: block; height: 100%; width: 0; background: rgb(var(--mv-accent)); transition: width .2s; }
body .mv-file.dz-complete .mv-file-progress { display: none; }
html.dark-style body { --mv-accent: 139, 130, 250; }
html.dark-style body .mv-tone-blue { --mv-accent: 96, 165, 250; }
html.dark-style body .mv-tone-indigo { --mv-accent: 139, 130, 250; }
html.dark-style body .mv-file { background: #2f3349; }

/* File preview window (mv-upload.js) */
body .mv-preview { width: min(960px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 1rem; background: var(--bs-paper-bg, #fff); color: var(--bs-body-color); box-shadow: 0 1rem 3rem rgba(0, 0, 0, .35); overflow: hidden; }
body .mv-preview::backdrop { background: rgba(37, 41, 60, .65); }
body .mv-preview-head { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid rgba(var(--bs-secondary-rgb, 168, 170, 174), .25); }
body .mv-preview-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; color: var(--bs-heading-color); }
body .mv-preview-body { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 1rem; }
body .mv-preview-body img { max-width: 100%; max-height: 70vh; object-fit: contain; }
body .mv-preview-body iframe { width: 100%; height: 70vh; border: 0; background: #fff; }
body .mv-preview-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .75rem 1rem; border-top: 1px solid rgba(var(--bs-secondary-rgb, 168, 170, 174), .25); }
html.dark-style body .mv-preview { background: #2f3349; }

/* Loader: brand logo that breathes inside a turning ring. Component x-mv.loader; DataTables uses the same look. */
body .mv-loader { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 2.5rem 1rem; color: var(--bs-body-color); }
body .mv-loader-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 4.5rem; height: 4.5rem; }
body .mv-loader-mark::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(115, 103, 240, .18); border-top-color: #7367f0; animation: mv-turn 1s linear infinite; }
body .mv-loader-mark img { width: 2.75rem; height: 2.75rem; animation: mv-breathe 1.4s ease-in-out infinite; }

/* While a list is loading: the same logo and ring in the middle of the table */
body div.dt-processing { display: block; position: absolute; top: 50%; left: 50%; width: 5.5rem; height: 5.5rem; margin: -2.75rem 0 0 -2.75rem; padding: 0; border: 0; border-radius: 50%; background: var(--bs-paper-bg, #fff); box-shadow: 0 .5rem 1.5rem rgba(34, 41, 47, .18); font-size: 0; z-index: 10; }
body div.dt-processing > div { display: none; }
body div.dt-processing::before { content: ""; position: absolute; inset: .5rem; border-radius: 50%; border: 3px solid rgba(115, 103, 240, .18); border-top-color: #7367f0; animation: mv-turn 1s linear infinite; }
body div.dt-processing::after { content: ""; position: absolute; inset: 1.4rem; background: url("../img/branding/medivisit-icon-128.png") center / contain no-repeat; animation: mv-breathe 1.4s ease-in-out infinite; }
html.dark-style body div.dt-processing { background: #2f3349; }

@keyframes mv-turn { to { transform: rotate(360deg); } }
@keyframes mv-breathe { 50% { transform: scale(.85); opacity: .75; } }
/* people who ask for less movement get a still logo */
@media (prefers-reduced-motion: reduce) { body .mv-loader-mark img, body div.dt-processing::after { animation: none; } }

/* Breadcrumb of every page (component mv.page-header) */
body .breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 0; font-size: 14px; }
body .breadcrumb-item { color: #64748b; font-weight: 400; }
body .breadcrumb-item.active { color: #4f46e5; font-weight: 600; }
body .breadcrumb-item.active > span { background: #edeffd; padding: 5px 10px; border-radius: 5px; }
body .breadcrumb-item + .breadcrumb-item { padding-left: 0; display: flex; align-items: center; }
/* chevron between the items (drawn here: the Bootstrap Icons font is not part of the project) */
body .breadcrumb-item + .breadcrumb-item::before {
  content: ""; float: none; width: 12px; height: 12px; margin-right: 10px; padding: 0; background-color: #cbd5e1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 2l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 2l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
html.dark-style body .breadcrumb-item { color: #a5a8c2; }
html.dark-style body .breadcrumb-item.active { color: #a5b4fc; }
html.dark-style body .breadcrumb-item.active > span { background: rgba(99, 102, 241, .18); }

/* Star of a required field (added by mv-forms.js) */
body .mv-req { color: #ea5455; font-weight: 600; }

/* Button text and modal / panel headers: first letter of every word is a capital ("Add User", "Save User") */
body .btn, body .modal-title, body .offcanvas-title, body .swal2-title,
body .nav-tabs .nav-link, body .nav-pills .nav-link, body .role-list .vt-label, body .mv-form-head h6, body .card-header h5, body .card-header h6, body .card-title { text-transform: capitalize; }

/* Doctor calendar (Schedules & Leaves): soft cards, tinted event chips, rounded grid */
body .mv-cal { --cal-line: #ececf1; }
html.dark-style body .mv-cal { --cal-line: #3b3d56; }
body .mv-cal .fc-toolbar { margin-bottom: 1rem; }
body .mv-cal .fc-toolbar-title { font-size: 1.25rem; font-weight: 600; }
body .mv-cal .fc-button { border-radius: .5rem; box-shadow: none; text-transform: none; padding: .35rem .75rem; }
body .mv-cal .fc-button-group > .fc-button { margin-left: .35rem; border-radius: .5rem; }
body .mv-cal .fc-theme-standard td, body .mv-cal .fc-theme-standard th, body .mv-cal .fc-theme-standard .fc-scrollgrid { border-color: var(--cal-line); }
body .mv-cal .fc-scrollgrid { border-radius: .75rem; overflow: hidden; border: 1px solid var(--cal-line); }
body .mv-cal .fc-col-header-cell { padding: .6rem 0; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8e8da4; background: rgba(115, 103, 240, .04); }
body .mv-cal .fc-daygrid-day-number { padding: .4rem .6rem; font-size: .8125rem; font-weight: 500; color: var(--bs-heading-color); }
body .mv-cal .fc-day-other .fc-daygrid-day-number { color: #b8b7c8; }
body .mv-cal .fc-daygrid-day { min-height: 6.5rem; }
body .mv-cal .fc-day-today { background: rgba(115, 103, 240, .07) !important; }
body .mv-cal .fc-day-today .fc-daygrid-day-number { margin: .3rem; padding: 0; width: 1.7rem; height: 1.7rem; line-height: 1.7rem; text-align: center; border-radius: 50%; background: #7367f0; color: #fff; }
body .mv-cal .fc-daygrid-day-events { margin: 0 .35rem .35rem; }
body .mv-cal .fc-event { border: 0; border-left: 3px solid var(--ev); border-radius: .4rem; background: var(--ev-bg); color: var(--ev); padding: .15rem .45rem; margin-top: .2rem; font-size: .75rem; font-weight: 600; }
body .mv-cal .fc-event .fc-event-title, body .mv-cal .fc-event .fc-event-time { color: inherit; }
body .mv-cal .fc-more-link { font-size: .75rem; font-weight: 600; color: #7367f0; }
body .mv-cal .ev-working, body .mv-cal-legend .ev-working { --ev: #1a9e57; --ev-bg: rgba(40, 199, 111, .14); }
body .mv-cal .ev-leave, body .mv-cal-legend .ev-leave { --ev: #d63b3c; --ev-bg: rgba(234, 84, 85, .14); }
body .mv-cal .ev-changed, body .mv-cal-legend .ev-changed { --ev: #c76d12; --ev-bg: rgba(255, 159, 67, .18); }
body .mv-cal .ev-holiday, body .mv-cal-legend .ev-holiday { --ev: #6e6b7b; --ev-bg: rgba(130, 134, 139, .16); }
html.dark-style body .mv-cal .ev-working, html.dark-style body .mv-cal-legend .ev-working { --ev: #4be08e; }
html.dark-style body .mv-cal .ev-leave, html.dark-style body .mv-cal-legend .ev-leave { --ev: #ff7b7c; }
html.dark-style body .mv-cal .ev-changed, html.dark-style body .mv-cal-legend .ev-changed { --ev: #ffb673; }
html.dark-style body .mv-cal .ev-holiday, html.dark-style body .mv-cal-legend .ev-holiday { --ev: #b4b7bd; }
body .mv-cal-legend span { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 2rem; background: var(--ev-bg); color: var(--ev); font-size: .75rem; font-weight: 600; }
body .mv-cal-legend span i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--ev); }
body .mv-cal td.fc-day-today, body .mv-cal .fc-daygrid-day.fc-day-today { background-color: rgba(115, 103, 240, .08) !important; }
body .mv-cal .fc-day-other .fc-event { opacity: .45; }
body .mv-cal .fc-daygrid-day-frame { min-height: 5rem; }

/* Form on one card (Add / Edit doctor): sections with an icon heading, a footer with the buttons */
body .mv-form-card .mv-form-section { padding: 1.5rem 1.75rem; border-bottom: 1px solid #ececf1; }
html.dark-style body .mv-form-card .mv-form-section { border-bottom-color: #3b3d56; }
body .mv-form-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
body .mv-form-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: .6rem; background: rgba(115, 103, 240, .12); color: #7367f0; font-size: 1.25rem; }
body .mv-form-footer { display: flex; justify-content: flex-end; gap: .75rem; padding: 1rem 1.75rem; background: rgba(115, 103, 240, .04); border-radius: 0 0 .75rem .75rem; }
body .mv-form-card .tab-content > .mv-form-section { border-bottom: 0; min-height: 22rem; }
body .mv-form-card .mv-form-footer { border-top: 1px solid #ececf1; border-radius: 0 0 .75rem .75rem; }
html.dark-style body .mv-form-card .mv-form-footer { border-top-color: #3b3d56; }

/* Vertical tabs (list on the left, content on the right): the same list as the roles page. Works for links and for Bootstrap list tabs. */
body .role-list .list-group-item.active { background: #f1effd; border-color: transparent; border-left-color: #7367f0; color: inherit; }
html.dark-style body .role-list .list-group-item.active { background: #3a3857; }
body .role-list .list-group-item { display: flex; align-items: center; gap: .75rem; text-align: left; }
body .role-list .vt-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: .5rem; background: rgba(115, 103, 240, .12); color: #7367f0; font-size: 1.1rem; }
body .role-list .vt-label { font-weight: 600; line-height: 1.2; }
body .role-list .vt-hint { display: block; font-size: .75rem; color: #8e8da4; font-weight: 400; }
body .vt-side { padding-top: .5rem; }

/* Page loader of the Administration pages (public/assets/js/mv-loader.js): a veil with the same logo and ring as every loader */
body .mv-page-loader { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(248, 247, 250, .78); backdrop-filter: blur(2px); transition: opacity .2s ease; }
html.dark-style body .mv-page-loader { background: rgba(37, 41, 60, .78); }
body .mv-page-loader .mv-loader { padding: 0; }
body .mv-page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
/* if the script never runs, the veil still goes away by itself */
body .mv-page-loader:not(.is-hidden) { animation: mv-veil-away 0s 12s forwards; }
@keyframes mv-veil-away { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Appointment calendar: doctor chips, soft event cards, time grid */
body .doctor-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .85rem; border: 1px solid rgba(var(--bs-secondary-rgb, 168, 170, 174), .35); border-radius: 2rem; background: transparent; color: var(--bs-body-color); font-size: .8125rem; font-weight: 600; transition: all .15s ease; }
body .doctor-chip i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--dc); }
body .doctor-chip:hover { border-color: var(--dc); }
body .doctor-chip { background: color-mix(in srgb, var(--dc) 12%, transparent); border-color: var(--dc); }
body .doctor-chip.is-off { opacity: .55; }
body .mv-cal .fc-timegrid-slot { height: 2.6rem; }
body .mv-cal .fc-timegrid-slot-label-cushion { font-size: .75rem; color: #8e8da4; }
body .mv-cal .fc-timegrid-axis-cushion { font-size: .75rem; }
body .mv-cal .fc-timegrid-slot-minor { border-top-style: dashed; }
body .mv-cal .fc-timegrid-now-indicator-line { border-color: #ea5455; border-width: 2px 0 0; }
body .mv-cal .fc-timegrid-now-indicator-arrow { border-color: #ea5455; }
body .mv-cal .fc-timegrid-event, body .mv-cal .fc-daygrid-event { background-color: color-mix(in srgb, var(--ev, #7367f0) 14%, var(--bs-paper-bg, #fff)) !important; border: 0 !important; border-left: 3px solid var(--ev, #7367f0) !important; color: var(--bs-heading-color) !important; box-shadow: none; padding: .2rem .5rem; overflow: hidden; }
body .mv-cal .fc-event:hover { filter: brightness(.97); box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .1); cursor: pointer; }
body .mv-cal .fc-event .ev-time { font-size: .6875rem; font-weight: 700; color: var(--ev, #7367f0); line-height: 1.2; }
body .mv-cal .fc-event .ev-title { font-size: .8125rem; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .mv-cal .fc-event .ev-sub { font-size: .6875rem; color: #8e8da4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .mv-cal .fc-event.st-pending-confirmation { border-left-style: dashed !important; }
body .mv-cal .fc-event.st-cancelled, body .mv-cal .fc-event.st-no-show { opacity: .5; }
body .mv-cal .fc-event.st-cancelled .ev-title, body .mv-cal .fc-event.st-no-show .ev-title { text-decoration: line-through; }
body .mv-cal .fc-event.st-completed { opacity: .75; }
body .mv-cal .fc-bg-event { opacity: 1; background: repeating-linear-gradient(45deg, rgba(234, 84, 85, .08), rgba(234, 84, 85, .08) 8px, rgba(234, 84, 85, .14) 8px, rgba(234, 84, 85, .14) 16px); }
body .mv-cal .fc-view-harness { border-radius: .75rem; }
body .mv-cal .fc-button-primary:not(:disabled).fc-button-active, body .mv-cal .fc-button-primary:not(:disabled):active { background: #7367f0; border-color: #7367f0; color: #fff; }
body .mv-cal .fc-timegrid-col.fc-day-today, body .mv-cal .fc-timegrid-col.fc-day-today .fc-timegrid-col-frame { background-color: rgba(115, 103, 240, .04) !important; }
body .mv-cal .fc-timegrid-body, body .mv-cal .fc-timegrid-slots td { background: transparent; }
body .mv-cal .fc-bg-event { background-color: transparent !important; }
body .mv-cal .fc-col-header-cell.fc-day-today { background: rgba(115, 103, 240, .12); color: #7367f0; }
body .mv-cal .fc-header-toolbar { flex-wrap: wrap; gap: .75rem 1rem; }
body .mv-cal .fc-header-toolbar .mv-cal-filter { flex: 1 1 auto; justify-content: center; }
@media (max-width: 991.98px) { body .mv-cal .fc-header-toolbar .mv-cal-filter { order: 3; flex-basis: 100%; justify-content: flex-start; } }
body .mv-cal .fc-header-toolbar .mv-cal-filter #doctorChips { flex-wrap: nowrap !important; white-space: nowrap; }
body .mv-cal .fc-header-toolbar .mv-cal-filter { flex-wrap: nowrap !important; }

/* Booking wizard (bs-stepper, vertical with icons) */
body .mv-wizard.bs-stepper { box-shadow: none; background: transparent; }
body .mv-wizard .bs-stepper-header { min-width: 15rem; border-right: 1px solid #ececf1; padding: 1.5rem 1rem; }
html.dark-style body .mv-wizard .bs-stepper-header { border-right-color: #3b3d56; }
body .mv-wizard.vertical.wizard-icons .step { text-align: left; padding: .25rem 0; }
body .mv-wizard .bs-stepper-header .step-trigger { flex-direction: row; align-items: center; gap: .85rem; padding: .5rem .75rem; border-radius: .6rem; }
body .mv-wizard .bs-stepper-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: .6rem; background: rgba(115, 103, 240, .1); color: #7367f0; }
body .mv-wizard .bs-stepper-icon i { font-size: 1.4rem; }
body .mv-wizard .step.active .bs-stepper-icon { background: #7367f0; color: #fff; box-shadow: 0 .25rem .75rem rgba(115, 103, 240, .4); }
body .mv-wizard .step.crossed .bs-stepper-icon { background: rgba(40, 199, 111, .14); color: #28c76f; }
body .mv-wizard .bs-stepper-title { font-weight: 600; text-transform: capitalize; }
body .mv-wizard .bs-stepper-subtitle { display: block; font-size: .75rem; color: #8e8da4; margin-top: .15rem; }
body .mv-wizard .bs-stepper-header .line { display: none; }
body .mv-wizard .bs-stepper-content { flex: 1; padding: 2rem; min-width: 0; }
@media (max-width: 991.98px) { body .mv-wizard.vertical { flex-direction: column; } body .mv-wizard .bs-stepper-header { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #ececf1; } body .mv-wizard .bs-stepper-subtitle { display: none; } }
body .mv-pick { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1px solid #e4e6da; border-radius: .6rem; cursor: pointer; transition: all .15s ease; }
html.dark-style body .mv-pick { border-color: #444564; }
body .mv-pick:hover { border-color: #7367f0; background: rgba(115, 103, 240, .05); }
body .mv-pick .mv-pick-tick { display: none; font-size: 1.4rem; color: #7367f0; }
body .mv-pick.is-picked { border-color: #7367f0; background: rgba(115, 103, 240, .08); box-shadow: 0 0 0 1px #7367f0 inset; }
body .mv-pick.is-picked .mv-pick-tick { display: block; }
body .mv-chosen { display: flex; align-items: center; padding: .75rem 1rem; border-radius: .6rem; background: rgba(40, 199, 111, .12); color: #1a9e57; font-weight: 600; }
body .mv-summary { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1px solid #ececf1; border-radius: .6rem; height: 100%; }
html.dark-style body .mv-summary { border-color: #3b3d56; }
body .mv-wizard .bs-stepper-header { justify-content: flex-start !important; align-self: flex-start; }
body .mv-wizard .bs-stepper-header .step-trigger { color: var(--bs-body-color); }
body .mv-wizard .step.active .bs-stepper-icon i { color: #fff !important; }
body .mv-wizard .step.active .bs-stepper-title { color: #7367f0; }
body .mv-wizard .step.crossed .bs-stepper-icon i { color: #28c76f !important; }
body .mv-wizard .bs-stepper-header .step { opacity: 1; }
body .mv-wizard.wizard-icons .bs-stepper-header .step-trigger { flex-direction: row !important; text-align: left; }

/* Doctor slider of the booking wizard: 6 cards at a time with arrows and dots */
body .mv-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
body .mv-dots { display: flex; justify-content: center; gap: .4rem; margin-bottom: .25rem; }
body .mv-dot { width: .55rem; height: .55rem; padding: 0; border: 0; border-radius: 1rem; background: rgba(115, 103, 240, .25); transition: all .2s ease; }
body .mv-dot.is-on { width: 1.5rem; background: #7367f0; }
body #doctorList.slide-next, body #patientResults.slide-next { animation: mv-slide-next .3s ease; }
body #doctorList.slide-prev { animation: mv-slide-prev .3s ease; }
body #patientResults.slide-prev { animation: mv-slide-prev .3s ease; }
@keyframes mv-slide-next { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes mv-slide-prev { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body #doctorList.slide-next, body #doctorList.slide-prev, body #patientResults.slide-next, body #patientResults.slide-prev { animation: none; } }

/* Booking wizard, date and time step */
body .mv-panel { border: 1px solid #ececf1; border-radius: .75rem; padding: 1rem; background: var(--bs-paper-bg, #fff); }
html.dark-style body .mv-panel { border-color: #3b3d56; }
body .mv-wizard .flatpickr-calendar.inline { width: 100%; max-width: none; box-shadow: none; background: transparent; border: 0; }
body .mv-wizard .flatpickr-calendar.inline .flatpickr-innerContainer, body .mv-wizard .flatpickr-calendar.inline .flatpickr-rContainer, body .mv-wizard .flatpickr-calendar.inline .flatpickr-days,
body .mv-wizard .flatpickr-calendar.inline .dayContainer { width: 100% !important; min-width: 100% !important; max-width: 100% !important; }
body .mv-wizard .flatpickr-calendar.inline .flatpickr-day { max-width: none; height: 2.6rem; line-height: 2.6rem; margin: 2px 0; border-radius: .6rem; font-weight: 500; }
body .mv-wizard .flatpickr-calendar.inline .flatpickr-day.selected { background: #7367f0; border-color: #7367f0; box-shadow: 0 .25rem .75rem rgba(115, 103, 240, .4); color: #fff; }
body .mv-wizard .flatpickr-calendar.inline .flatpickr-day:not(.flatpickr-disabled):not(.selected):hover { background: rgba(115, 103, 240, .12); border-color: transparent; }
body .mv-wizard .flatpickr-calendar.inline .flatpickr-day.today:not(.selected) { border-color: #7367f0; }
body .mv-wizard .flatpickr-calendar.inline .flatpickr-weekday { font-weight: 700; color: #8e8da4; }
body .mv-slot-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; padding-bottom: .85rem; border-bottom: 1px solid #ececf1; font-weight: 600; }
html.dark-style body .mv-slot-head { border-bottom-color: #3b3d56; }
body .mv-slot-head > i { font-size: 1.3rem; color: #7367f0; }
body .mv-slot-count { margin-left: auto; padding: .2rem .7rem; border-radius: 2rem; background: rgba(40, 199, 111, .14); color: #1a9e57; font-size: .75rem; }
body .mv-slot-group + .mv-slot-group { margin-top: 1.1rem; }
body .mv-slot-title { display: flex; align-items: center; gap: .4rem; margin-bottom: .55rem; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #8e8da4; }
body .mv-slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.6rem, 1fr)); gap: .5rem; }
body .mv-slot { padding: .5rem .25rem; border: 1px solid rgba(115, 103, 240, .35); border-radius: .6rem; background: transparent; color: #7367f0; font-size: .8125rem; font-weight: 600; transition: all .15s ease; }
body .mv-slot.is-free:hover { background: rgba(115, 103, 240, .1); border-color: #7367f0; transform: translateY(-1px); }
body .mv-slot.is-taken { border-color: transparent; background: rgba(130, 134, 139, .12); color: #a5a3ae; text-decoration: line-through; cursor: not-allowed; }
body .mv-slot.is-picked { background: #7367f0; border-color: #7367f0; color: #fff; box-shadow: 0 .25rem .75rem rgba(115, 103, 240, .4); }
body .mv-slot-legend { display: flex; gap: 1.25rem; margin-top: 1.25rem; padding-top: .85rem; border-top: 1px dashed #dcdce4; font-size: .75rem; color: #8e8da4; }
body .mv-slot-legend span { display: inline-flex; align-items: center; gap: .4rem; }
body .mv-sw { width: .8rem; height: .8rem; border-radius: .25rem; display: inline-block; }
body .mv-sw.free { border: 1px solid rgba(115, 103, 240, .6); } body .mv-sw.taken { background: rgba(130, 134, 139, .25); } body .mv-sw.picked { background: #7367f0; }
body .mv-wizard .flatpickr-calendar.inline, body .mv-wizard .flatpickr-calendar.inline .flatpickr-months, body .mv-wizard .flatpickr-calendar.inline .flatpickr-weekdays, body .mv-wizard .flatpickr-calendar.inline .flatpickr-weekdaycontainer { width: 100% !important; max-width: 100% !important; }
body .mv-wizard .flatpickr-calendar.inline .flatpickr-weekdaycontainer { display: flex; }
body .mv-wizard .flatpickr-calendar.inline .flatpickr-weekday { flex: 1; }
body .mv-wizard .flatpickr-calendar.inline .dayContainer { justify-content: space-between; }
body .mv-wizard .flatpickr-calendar.inline .flatpickr-day { flex-basis: 14.2%; width: 14.2%; }

/* Appointment card details (calendar) */
body .mv-cal .fc-event .ev-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
body .mv-cal .fc-event .ev-time i, body .mv-cal .fc-event .ev-title i, body .mv-cal .fc-event .ev-sub i { margin-right: .3rem; font-size: .8rem; vertical-align: -1px; }
body .mv-cal .fc-event .ev-status { padding: .05rem .5rem; border-radius: 2rem; font-size: .625rem; font-weight: 700; white-space: nowrap; }
body .mv-cal .fc-event .ev-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .75rem; }
body .mv-cal .fc-event .ev-line b { color: var(--ev, #7367f0); }
body .mv-cal .fc-timegrid-event.fc-timegrid-event-short .ev-sub, body .mv-cal .fc-timegrid-event.fc-timegrid-event-short .ev-status { display: none; }
body .mv-cal .fc-event .ev-status { background: color-mix(in srgb, currentColor 16%, transparent); }
body .mv-cal .fc-event .ev-sub, body .mv-cal .fc-event .ev-title { line-height: 1.3; }
body .mv-token { display: inline-block; min-width: 4.5rem; padding: .35rem 1rem; border-radius: .75rem; background: rgba(115, 103, 240, .12); color: #7367f0; font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: .03em; }

/* Fee box and success screen of reception check-in / walk-in */
body .mv-fee { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border: 1px dashed rgba(115, 103, 240, .45); border-radius: .75rem; background: rgba(115, 103, 240, .05); }
body .mv-fee-amount { font-size: 1.75rem; font-weight: 700; color: #7367f0; white-space: nowrap; }
body .mv-success-icon { display: inline-flex; align-items: center; justify-content: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: rgba(40, 199, 111, .14); color: #28c76f; font-size: 2.5rem; }

/* Queue board: stat strip and kanban */
body .kb-stats { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
body .kb-stat { display: flex; align-items: center; gap: .85rem; padding: .9rem 1.1rem; border: 1px solid #ececf1; border-radius: .75rem; background: var(--bs-paper-bg, #fff); }
html.dark-style body .kb-stat { border-color: #3b3d56; }
body .kb-stat small { display: block; font-size: .75rem; color: #8e8da4; }
body .kb-stat strong { font-size: 1.15rem; }
body .kb-stat-hero { background: linear-gradient(135deg, rgba(115, 103, 240, .14), rgba(115, 103, 240, .04)); border-color: rgba(115, 103, 240, .35); }
body .kb-stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: .65rem; font-size: 1.4rem; background: rgba(115, 103, 240, .16); color: #7367f0; }
body .kb-stat-icon.warn { background: rgba(255, 159, 67, .16); color: #ff9f43; } body .kb-stat-icon.info { background: rgba(0, 207, 232, .16); color: #00cfe8; } body .kb-stat-icon.ok { background: rgba(40, 199, 111, .16); color: #28c76f; }
@media (max-width: 991.98px) { body .kb-stats { grid-template-columns: 1fr 1fr; } body .kb-stat-hero { grid-column: 1 / -1; } }

body .kb-board { display: grid; grid-template-columns: repeat(5, minmax(250px, 1fr)); gap: 1rem; overflow-x: auto; padding-bottom: .5rem; align-items: start; }
body .kb-col { --kb: #7367f0; display: flex; flex-direction: column; border-radius: .85rem; background: rgba(var(--bs-secondary-rgb, 168, 170, 174), .08); min-height: 14rem; }
body .kb-col.kb-warning { --kb: #ff9f43; } body .kb-col.kb-info { --kb: #00cfe8; } body .kb-col.kb-primary { --kb: #7367f0; } body .kb-col.kb-success { --kb: #28c76f; } body .kb-col.kb-danger { --kb: #ea5455; }
body .kb-col-head { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; font-weight: 700; border-top: 3px solid var(--kb); border-radius: .85rem .85rem 0 0; color: var(--kb); }
body .kb-col-head b { min-width: 1.6rem; padding: .1rem .5rem; border-radius: 2rem; text-align: center; font-size: .75rem; background: var(--kb); color: #fff; }
body .kb-list { flex: 1; display: flex; flex-direction: column; gap: .65rem; padding: .25rem .75rem .75rem; min-height: 6rem; }
body .kb-empty { padding: 1.25rem; text-align: center; font-size: .8125rem; color: #a5a3ae; position: absolute; }
body .kb-col { position: relative; } body .kb-empty { inset: 4rem 0 auto 0; pointer-events: none; }
body .kb-card { padding: .8rem .9rem; border: 1px solid #ececf1; border-left: 3px solid var(--kb); border-radius: .7rem; background: var(--bs-paper-bg, #fff); box-shadow: 0 .125rem .5rem rgba(75, 70, 92, .06); cursor: grab; transition: box-shadow .15s ease, transform .15s ease; }
html.dark-style body .kb-card { border-color: #3b3d56; border-left-color: var(--kb); }
body .kb-card:hover { box-shadow: 0 .35rem 1rem rgba(75, 70, 92, .14); }
body .kb-card.is-urgent { background: rgba(234, 84, 85, .05); }
body .kb-top { display: flex; align-items: center; gap: .5rem; }
body .kb-token { padding: .15rem .65rem; border-radius: .5rem; background: rgba(var(--bs-primary-rgb, 115, 103, 240), .12); color: #7367f0; font-size: 1.1rem; font-weight: 700; }
body .kb-grip { color: #c3c2cf; cursor: grab; }
body .kb-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-top: .6rem; font-size: .75rem; color: #8e8da4; }
body .kb-meta span { display: inline-flex; align-items: center; gap: .25rem; } body .kb-meta i { font-size: .9rem; }
body .kb-note { margin-top: .5rem; padding: .35rem .6rem; border-radius: .4rem; background: rgba(234, 84, 85, .08); color: #d63b3c; font-size: .75rem; }
body .kb-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
body .kb-actions form { margin: 0; }
body .kb-ghost { opacity: .35; border-style: dashed; }
body .kb-chosen { box-shadow: 0 .5rem 1.5rem rgba(115, 103, 240, .3); }
body .kb-drag { transform: rotate(2deg); }
body .min-w-0 { min-width: 0; }

/* "How This Page Works" panel and its activity diagram (components/mv/page-help.blade.php) */
body .offcanvas.mv-help { width: 440px; max-width: 100%; }
body .mv-flow { display: flex; flex-direction: column; align-items: center; text-align: center; }
body .mv-flow-end { padding: .3rem 1.4rem; border-radius: 2rem; background: #7367f0; color: #fff; font-weight: 600; font-size: .8rem; }
body .mv-flow-arrow { position: relative; width: 2px; height: 1.4rem; background: #b9b3f7; }
body .mv-flow-arrow::after { content: ""; position: absolute; bottom: 0; left: -4px; border: 5px solid transparent; border-top-color: #7367f0; border-bottom: 0; }
body .mv-flow-step { width: 85%; padding: .55rem .8rem; border: 1px solid #b9b3f7; border-radius: .5rem; background: rgba(115, 103, 240, .07); }
body .mv-flow-decision { width: 100%; border: 1px dashed #ff9f43; border-radius: .6rem; padding: .55rem .8rem; background: rgba(255, 159, 67, .07); }
body .mv-flow-ask { font-weight: 600; }
body .mv-flow-side { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .4rem; font-size: .85rem; text-align: left; }
body .mv-flow-otherwise { margin-top: .25rem; font-size: .75rem; font-weight: 600; color: #28c76f; }


/* ----------------------------------------------------------------
   Reports (.mv-report-page): coloured number cards and tables
   ---------------------------------------------------------------- */
.mv-c-primary { --c: 115, 103, 240; }
.mv-c-success { --c: 40, 199, 111; }
.mv-c-warning { --c: 255, 159, 67; }
.mv-c-info    { --c: 0, 186, 209; }
.mv-c-danger  { --c: 234, 84, 85; }

/* number cards: soft colour wash, solid icon, a big faded icon behind */
.mv-report-page .mv-rs { position: relative; overflow: hidden; border: 1px solid rgba(var(--c), .22);
  background: linear-gradient(135deg, rgba(var(--c), .16), rgba(var(--c), .03) 70%); transition: transform .15s, box-shadow .15s; }
.mv-report-page .mv-rs:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.25rem rgba(var(--c), .25); }
.mv-report-page .mv-rs .card-body { display: flex; align-items: center; gap: 1rem; position: relative; z-index: 1; }
.mv-report-page .mv-rs-icon { width: 3rem; height: 3rem; flex: 0 0 3rem; border-radius: .75rem; display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, rgb(var(--c)), rgba(var(--c), .7)); box-shadow: 0 .25rem .75rem rgba(var(--c), .4); }
.mv-report-page .mv-rs-value { font-weight: 700; color: rgb(var(--c)); margin: 0; word-break: break-word; }
.mv-report-page .mv-rs-mark { position: absolute; right: -.75rem; bottom: -1.25rem; font-size: 5.5rem; color: rgba(var(--c), .13); }

/* table */
body .mv-report-page .mv-table-card .dt-scroll { border-color: rgba(115, 103, 240, .28); }
body .mv-report-page .mv-table-card .dt-scroll-head,
body .mv-report-page .mv-table-card table.mv-table thead th { background: #efedfd; color: #5d52d1; font-weight: 700; border-color: rgba(115, 103, 240, .2); }
body .mv-report-page .mv-table-card table.mv-table tbody tr:nth-child(even) td { background: #fafaff; }
body .mv-report-page .mv-table-card table.mv-table tbody tr:hover td { background: #f1effe; }
body .mv-report-page .mv-table-card .dt-scroll-foot td { background: #e6e3fc !important; color: #4b41b8; font-weight: 700; border-top: 2px solid rgba(115, 103, 240, .45); }

.mv-report-page .mv-v-zero { color: #b5b7c8; }
.mv-report-page .mv-v-green { color: #1f9d57; font-weight: 600; }
.mv-report-page .mv-v-red { color: #d63f40; font-weight: 600; }
.mv-report-page .mv-v-money { font-weight: 600; }
.mv-report-page .mv-v-first { font-weight: 600; color: #444157; }
.mv-report-page .mv-count { display: inline-block; min-width: 2rem; padding: .1rem .5rem; border-radius: 1rem; text-align: center; font-weight: 600; background: rgba(115, 103, 240, .12); color: #5d52d1; }
.mv-report-page .mv-share { display: inline-flex; align-items: center; gap: .5rem; }
.mv-report-page .mv-share .progress { width: 5rem; height: 6px; }

html.dark-style body .mv-report-page .mv-table-card .dt-scroll { border-color: #444564; }
html.dark-style body .mv-report-page .mv-table-card .dt-scroll-head,
html.dark-style body .mv-report-page .mv-table-card table.mv-table thead th { background: #3a3763; color: #c9c4ff; border-color: #4a4780; }
html.dark-style body .mv-report-page .mv-table-card table.mv-table tbody tr:nth-child(even) td { background: #32354d; }
html.dark-style body .mv-report-page .mv-table-card table.mv-table tbody tr:hover td { background: #3a3d5a; }
html.dark-style body .mv-report-page .mv-table-card .dt-scroll-foot td { background: #3d3a68 !important; color: #d4d0ff; }
html.dark-style .mv-report-page .mv-v-first { color: #cfd0e8; }
html.dark-style .mv-report-page .mv-v-zero { color: #6d6f8f; }
.mv-report-page .mv-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .35rem; }
.mv-report-page .mv-chart-body { display: flex; flex-direction: column; justify-content: center; }
