/* Bridge legacy MediCubes panel markup with CORK / Bootstrap 4 */

:root {
    --panel-sidebar-width: 255px;
    --panel-sidebar-collapsed: 54px;
    --panel-content-gutter: 16px;
    --panel-header-offset: 66px;
    --panel-text-primary: #0f172a;
    --panel-text-secondary: #334155;
    --panel-text-muted: #475569;
    --panel-text-label: #1e293b;
    --panel-border: #cbd5e1;
    --panel-border-strong: #94a3b8;
    --panel-bg-subtle: #f1f5f9;
    --panel-bg-header: #e2e8f0;
    --panel-brand: #1549c7;
    --panel-brand-hover: #123da8;
    --panel-sidebar-logo-max-height: 56px;
    --panel-sidebar-logo-max-height-collapsed: 42px;
}

.widget {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    padding: 20px;
}

.widget-title {
    border-bottom: 1px solid #e0e6ed;
    color: #3b3f5c;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
}

.wpb_alert {
    border-radius: 4px;
    margin-bottom: 16px;
    padding: 12px 16px;
}

.wpb_alert_alt_error {
    background-color: #fff5f5;
    border: 1px solid #ffe0e0;
}

.table-condensed > tbody > tr > td,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > td,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > thead > tr > th {
    padding: 0.3rem;
}

.font-bold {
    font-weight: 600;
}

.align-right {
    text-align: right;
}

.panel-sidebar-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: var(--panel-sidebar-logo-max-height, 56px);
    object-fit: contain;
    object-position: center center;
}

/* Sidebar brand — org logo only (auto aspect ratio: wide / tall / square) */
#sidebar .theme-brand,
#sidebar .panel-sidebar-brand.theme-brand,
#sidebar .panel-sidebar-brand.panel-sidebar-brand-logo-only {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 0 !important;
    height: auto !important;
    padding: 10px 14px !important;
    background: #fff !important;
    background-color: #fff !important;
    border-bottom: 1px solid #e8eef8;
    border-radius: 0;
}

#sidebar .panel-sidebar-brand.theme-brand > li {
    height: auto !important;
    min-height: 0 !important;
    width: 100%;
}

#sidebar .panel-sidebar-brand .theme-logo {
    flex: 0 1 auto;
    width: 100%;
    max-width: calc(var(--panel-sidebar-width) - 28px);
    margin: 0 auto;
    align-self: center;
}

#sidebar .panel-sidebar-brand .theme-logo a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    max-height: var(--panel-sidebar-logo-max-height, 56px);
    padding: 0 !important;
    line-height: 1 !important;
    background: transparent;
}

#sidebar .theme-brand li.theme-logo img,
#sidebar .panel-sidebar-brand .theme-logo img.panel-sidebar-logo,
#sidebar .panel-sidebar-brand li.theme-logo img.panel-sidebar-logo {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: var(--panel-sidebar-logo-max-height, 56px) !important;
    object-fit: contain;
    object-position: center center;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin: 0 auto;
    box-shadow: none;
}

#sidebar .panel-sidebar-brand .theme-text,
#sidebar .panel-sidebar-brand li.theme-text {
    display: none !important;
}

/* Collapsed sidebar: logo only, centered in rail */
.sidebar-closed #sidebar .panel-sidebar-brand.theme-brand,
.sidebar-closed #sidebar .panel-sidebar-brand.panel-sidebar-brand-logo-only,
.sidebar-closed #sidebar .theme-brand {
    justify-content: center;
    align-items: center;
    gap: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 8px 4px !important;
    overflow: hidden;
    background: #fff !important;
}

.sidebar-closed #sidebar .panel-sidebar-brand .theme-logo {
    flex: 0 1 auto;
    width: 100%;
    max-width: var(--panel-sidebar-collapsed);
    margin: 0 auto;
}

.sidebar-closed #sidebar .panel-sidebar-brand .theme-logo a {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    max-height: var(--panel-sidebar-logo-max-height-collapsed, 42px);
    height: auto;
}

.sidebar-closed #sidebar .panel-sidebar-brand .theme-logo img.panel-sidebar-logo,
.sidebar-closed #sidebar .panel-sidebar-brand li.theme-logo img.panel-sidebar-logo {
    width: auto !important;
    height: auto !important;
    max-width: calc(var(--panel-sidebar-collapsed) - 8px) !important;
    max-height: var(--panel-sidebar-logo-max-height-collapsed, 42px) !important;
    padding: 0;
    margin: 0 auto;
    background: transparent;
}

.sidebar-closed > .sidebar-wrapper:hover #sidebar .panel-sidebar-brand.theme-brand,
.sidebar-closed > .sidebar-wrapper:hover #sidebar .panel-sidebar-brand.panel-sidebar-brand-logo-only {
    justify-content: center;
    align-items: center;
    gap: 0 !important;
    min-height: 0 !important;
    padding: 10px 14px !important;
    overflow: visible;
    background: #fff !important;
}

.sidebar-closed > .sidebar-wrapper:hover #sidebar .panel-sidebar-brand .theme-logo {
    flex: 0 1 auto;
    width: 100%;
    max-width: calc(var(--panel-sidebar-width) - 28px);
    margin: 0 auto;
}

.sidebar-closed > .sidebar-wrapper:hover #sidebar .panel-sidebar-brand .theme-logo a {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: var(--panel-sidebar-logo-max-height, 56px);
}

.sidebar-closed > .sidebar-wrapper:hover #sidebar .panel-sidebar-brand .theme-logo img.panel-sidebar-logo,
.sidebar-closed > .sidebar-wrapper:hover #sidebar .panel-sidebar-brand li.theme-logo img.panel-sidebar-logo {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: var(--panel-sidebar-logo-max-height, 56px) !important;
    padding: 0;
    background: transparent;
}

/* Desktop layout: sidebar full height, above header in left column only */
@media (min-width: 992px) {
    .main-container .sidebar-wrapper {
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1040;
    }

    .main-container .sidebar-wrapper #sidebar {
        height: 100vh !important;
    }

    /* Navbar lives only in content column — never covers sidebar logo/name */
    .header-container.panel-header-top {
        left: var(--panel-sidebar-width);
        right: 0;
        width: auto;
        padding-top: 10px;
        padding-right: var(--panel-content-gutter);
        padding-left: var(--panel-content-gutter) !important;
    }

    body.alt-menu.sidebar-noneoverflow .header-container.panel-header-top {
        left: var(--panel-sidebar-collapsed);
        padding-left: var(--panel-content-gutter) !important;
    }

    .panel-header-top header.navbar,
    .panel-header-top .panel-top-navbar {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.header-container {
    z-index: 1030;
}

/* Top navbar + page title (CORK style) */
.panel-header-top {
    padding-top: 10px;
    padding-right: var(--panel-content-gutter);
    padding-left: var(--panel-content-gutter);
    background: #f1f2f3;
}

@media (max-width: 991px) {
    .header-container.panel-header-top {
        left: 0;
        right: 0;
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }
}

.panel-top-navbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-height: 56px;
    padding: 0;
    background: #fff;
    border-bottom: 0.01rem solid #e0e6ed;
    border-radius: 8px;
    box-shadow: 0 4px 6px 0 rgba(85, 85, 85, 0.08), 0 1px 20px 0 rgba(0, 0, 0, 0.07), 0 1px 11px 0 rgba(0, 0, 0, 0.07);
    overflow: visible;
}

.panel-top-navbar .panel-sidebar-toggle,
.panel-top-navbar .navbar .sidebarCollapse {
    margin-left: 16px;
    margin-right: 0;
    flex-shrink: 0;
    float: none;
}

.panel-navbar-page-title {
    display: flex;
    align-items: center;
    align-self: center;
    min-width: 0;
    flex: 1 1 auto;
    margin: 0 16px;
    padding-left: 16px;
    border-left: 1px solid #e0e6ed;
}

.panel-navbar-page-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #3b3f5c;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(420px, 36vw);
}

.panel-navbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    flex-shrink: 0;
    margin-left: auto !important;
    padding-right: 8px;
    min-width: 0;
}

.panel-navbar-userinfo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 6px 12px;
    background: #f1f2f3;
    border-radius: 12px;
    max-width: min(420px, 42vw);
    min-width: 0;
    text-align: right;
}

.panel-navbar-username {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--panel-text-primary, #0f172a);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.panel-navbar-orgname {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--panel-text-muted, #64748b);
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.panel-user-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.panel-user-dropdown-toggle .panel-navbar-userinfo {
    margin: 0;
}

.panel-top-navbar .user-profile-dropdown .dropdown-menu {
    z-index: 1080;
}

#content.main-content .page-title {
    margin-top: 0;
    margin-bottom: 0;
    float: none;
}

.panel-sidebar-toggle,
.navbar .sidebarCollapse {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    float: left;
    width: 40px;
    height: 40px;
    margin-left: 16px;
    margin-right: 12px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #3b3f5c;
    cursor: pointer;
    z-index: 1040;
    position: relative;
    pointer-events: auto;
}

.panel-sidebar-toggle:hover,
.navbar .sidebarCollapse:hover {
    background: #f1f2f3;
    color: #1b55e2;
}

.panel-sidebar-toggle svg,
.navbar .sidebarCollapse svg {
    display: block;
    width: 24px;
    height: 24px;
    stroke: currentColor;
    pointer-events: none;
}

/* CORK alt-menu: desktop sidebar overlay behavior */
@media (min-width: 992px) {
    body.alt-menu .overlay.show {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Mobile sidebar open */
@media (max-width: 991px) {
    .main-container.sbar-open .sidebar-wrapper {
        width: 255px !important;
        left: 0 !important;
    }
}

.panel-org-logo-header {
    max-height: 45px;
    max-width: 180px;
    object-fit: contain;
}

/* Main content area — full width beside fixed sidebar, aligned to top */
.main-container {
    align-items: flex-start;
    align-content: flex-start;
    padding: 0;
}

#content.main-content {
    width: calc(100% - var(--panel-sidebar-width)) !important;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    align-self: flex-start;
    margin-left: var(--panel-sidebar-width);
    margin-top: var(--panel-header-offset);
    margin-bottom: 0;
    padding: 10px var(--panel-content-gutter) 24px;
    box-sizing: border-box;
}

.sidebar-closed > #content.main-content {
    width: calc(100% - var(--panel-sidebar-collapsed)) !important;
    margin-left: var(--panel-sidebar-collapsed);
}

#content.main-content .layout-px-spacing {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
}

@media (max-width: 767px) {
    .panel-navbar-page-title {
        margin: 0 8px;
        padding-left: 10px;
    }

    .panel-navbar-page-title h3 {
        font-size: 15px;
        max-width: 160px;
    }

    .panel-navbar-actions {
        padding-right: 4px;
    }
}

#content.main-content section {
    width: 100%;
    max-width: 100%;
}

/* Footer copyright — centered */
#content.main-content .footer-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--panel-border, #e0e6ed);
}

#content.main-content .footer-wrapper .footer-section,
#content.main-content .footer-wrapper .footer-section.f-section-1 {
    width: 100%;
    text-align: center;
}

#content.main-content .footer-wrapper .footer-section p {
    margin: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--panel-text-muted, #475569);
    line-height: 1.5;
}

#content.main-content .footer-wrapper .footer-section a {
    color: var(--panel-brand, #1549c7);
    font-weight: 700;
    text-decoration: none;
}

#content.main-content .footer-wrapper .footer-section a:hover {
    color: var(--panel-brand-hover, #123da8);
    text-decoration: underline;
}

@media (max-width: 991px) {
    #content.main-content {
        width: 100% !important;
        margin-left: 0;
        padding: 10px 12px 24px;
    }

    .sidebar-closed > #content.main-content {
        width: 100% !important;
        margin-left: 0;
    }
}

/* Bootstrap 3 input-group used across panel pages */
.input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group-addon {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
}

.input-group .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-addon:not(:first-child),
.input-group-append .input-group-text {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
}

.input-group-append {
    display: flex;
}

.input-group-addon.bg-custom {
    background-color: #f8f9fa;
    cursor: pointer;
}

.input-group-addon.btnsearch {
    cursor: pointer;
}

/* Filter toolbar (From / To / Panel / Search) */
.panel-filter-card {
    width: 100%;
    background: #fff;
    border: 1px solid var(--panel-border, #cbd5e1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.panel-filter-card label {
    color: var(--panel-text-label, #1e293b);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 6px;
    display: block;
}

.panel-filter-card .form-control,
.panel-filter-card select.form-control {
    min-height: 40px;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    color: var(--panel-text-primary, #0f172a);
    padding: 8px 12px;
    border: 1px solid var(--panel-border, #cbd5e1);
    border-radius: 4px;
    text-align: left;
    background-color: #fff;
}

.panel-filter-card .form-control::placeholder {
    color: var(--panel-text-muted, #475569);
    opacity: 1;
}

.panel-filter-card .input-group-text,
.panel-filter-card .input-group-addon {
    min-height: 40px;
    padding: 0 14px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--panel-bg-subtle, #f1f5f9) !important;
    border: 1px solid var(--panel-border, #cbd5e1);
    color: var(--panel-brand, #1549c7);
}

.panel-filter-card .input-group-text i,
.panel-filter-card .input-group-addon i {
    color: #1b55e2;
}

.panel-search-btn {
    min-height: 40px;
    height: 40px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0 20px;
    white-space: nowrap;
    background-color: var(--panel-brand, #1549c7);
    border-color: var(--panel-brand, #1549c7);
}

.panel-search-btn:hover,
.panel-search-btn:focus {
    background-color: var(--panel-brand-hover, #123da8);
    border-color: var(--panel-brand-hover, #123da8);
}

.panel-filter-card .panel-search-col {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 2px;
}

.bg-custom {
    background-color: #f5f5f5 !important;
}

/* Legacy fieldset pages without panel-filter-card */
section fieldset {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

section fieldset .form-group {
    display: inline-block;
    vertical-align: top;
    margin-right: 12px;
    margin-bottom: 12px;
    min-width: 180px;
}

section fieldset .form-control,
section fieldset select.form-control {
    min-height: 38px;
    font-size: 14px;
}

section fieldset .input-group-addon.btnsearch {
    min-height: 38px;
    padding: 8px 16px;
    background-color: #1b55e2 !important;
    color: #fff !important;
    border-color: #1b55e2 !important;
    font-weight: 600;
}

section fieldset .input-group-addon.btnsearch a,
section fieldset .input-group-addon.btnsearch i {
    color: #fff !important;
    text-decoration: none;
}

/* Flatpickr / datepicker above CORK overlays */
.flatpickr-calendar,
.datepicker,
.datepicker-dropdown,
.bootstrap-datetimepicker-widget {
    z-index: 10050 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #1b55e2 !important;
    border-color: #1b55e2 !important;
}

/* Bootstrap 3 modals upgraded for Bootstrap 4 / CORK */
.modal {
    z-index: 10060 !important;
}

.modal-backdrop {
    z-index: 10055 !important;
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.modal-dialog {
    margin: 0 auto;
    width: 100%;
}

.modal-dialog.modal-md,
.modal-dialog.modal-lg {
    max-width: 720px;
}

.modal-content {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #fff;
    border-bottom: 1px solid #e0e6ed;
}

.modal-header .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #3b3f5c;
    line-height: 1.4;
    flex: 1 1 auto;
    padding-right: 12px;
}

.modal-header .close {
    float: none;
    order: 2;
    margin: 0;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: #888ea8;
    opacity: 1;
    background: transparent;
    border: 0;
}

.modal-header .close:hover {
    color: #e7515a;
}

.modal-body {
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Patient Visit — results list + inline detail panel */
.visit-results-card {
    background: #fff;
    border: 1px solid var(--panel-border, #cbd5e1);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.visit-results-card-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--panel-border, #cbd5e1);
    background: linear-gradient(180deg, var(--panel-bg-subtle, #f1f5f9) 0%, #fff 100%);
}

.visit-results-card-header-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
}

.visit-list-search-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 280px;
    flex: 1 1 320px;
    max-width: 520px;
}

.patient-visit-table-search-label,
.service-price-filter-label,
.sale-report-results-filter .service-price-filter-label {
    color: var(--panel-text-secondary, #334155);
    font-weight: 700;
}

.patient-visit-table-search-label {
    display: block;
    width: 100%;
    text-align: right;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.patient-visit-table-search-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.patient-visit-table-search-row .visit-list-search-group {
    flex: 1 1 auto;
    min-width: 0;
}

.patient-visit-search-trigger {
    cursor: pointer;
    height: 40px;
    min-width: 44px;
    padding: 0 14px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.patient-visit-filter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Cork theme search / form loaders (spinner-border + loader-sm) */
.panel-search-loader {
    flex-shrink: 0;
    color: #1b55e2 !important;
    vertical-align: middle;
    margin-left: 4px;
}

.patient-visit-search-alert {
    font-size: 13px;
}

.visit-list-search-group .form-control {
    height: 40px;
    font-size: 14px;
}

.visit-list-search-group .input-group-text {
    background: #fff;
    border-color: #e0e6ed;
    color: #888ea8;
}

.visit-list-search-count {
    font-size: 12px;
    color: var(--panel-text-secondary, #334155);
    font-weight: 600;
    padding-right: 2px;
}

.visit-list-empty-row td {
    font-size: 14px;
}

.patient-visit-search-header {
    margin-bottom: 12px;
}

.patient-visit-search-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #3b3f5c;
}

.patient-visit-search-title i {
    color: #1b55e2;
    margin-right: 8px;
}

.patient-visit-search-desc {
    margin: 4px 0 0;
    font-size: 12px;
    color: #888ea8;
}

.patient-visit-search-alert {
    margin-bottom: 12px;
    font-size: 13px;
}

.patient-visit-quick-search-row {
    margin-bottom: 4px;
}

.patient-visit-filter-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 16px;
    color: #888ea8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.patient-visit-filter-divider::before,
.patient-visit-filter-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ebedf2;
}

/* Panel app — vivid typography, forms & tables (all master pages) */
.panel-app-page {
    color: var(--panel-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.panel-app-page .panel-filter-card {
    border-color: var(--panel-border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.panel-app-page .panel-filter-card label {
    color: var(--panel-text-label);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.panel-app-page .panel-filter-card .form-control,
.panel-app-page .panel-filter-card select.form-control {
    color: var(--panel-text-primary);
    font-weight: 500;
    border-color: var(--panel-border);
    background-color: #fff;
}

.panel-app-page .panel-filter-card .form-control::placeholder {
    color: var(--panel-text-muted);
    opacity: 1;
}

.panel-app-page .panel-filter-card .input-group-text,
.panel-app-page .panel-filter-card .input-group-addon {
    background-color: var(--panel-bg-subtle) !important;
    border-color: var(--panel-border);
    color: var(--panel-brand);
}

.panel-app-page .panel-filter-card .input-group-text i,
.panel-app-page .panel-filter-card .input-group-addon i {
    color: var(--panel-brand);
}

.panel-app-page .panel-search-btn {
    background-color: var(--panel-brand);
    border-color: var(--panel-brand);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.panel-app-page .panel-search-btn:hover,
.panel-app-page .panel-search-btn:focus {
    background-color: var(--panel-brand-hover);
    border-color: var(--panel-brand-hover);
}

.panel-app-page .alert-info {
    color: #0c4a6e;
    background-color: #e0f2fe;
    border-color: #7dd3fc;
    font-weight: 600;
}

.panel-app-page .patient-visit-search-alert {
    color: var(--panel-text-secondary);
    background: var(--panel-bg-subtle);
    border-color: var(--panel-border) !important;
    font-weight: 500;
}

.panel-app-page .patient-visit-search-alert .fa {
    color: var(--panel-brand) !important;
}

.panel-app-page .visit-results-card {
    border-color: var(--panel-border);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.panel-app-page .visit-results-card-header {
    background: linear-gradient(180deg, var(--panel-bg-subtle) 0%, #fff 100%);
    border-bottom-color: var(--panel-border);
}

.panel-app-page .visit-results-card-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--panel-text-primary);
}

.panel-app-page .visit-results-hint {
    color: var(--panel-text-muted);
    font-weight: 500;
}

.panel-app-page .visit-results-hint strong {
    color: var(--panel-text-secondary);
    font-weight: 700;
}

.panel-app-page .patient-visit-table-search-label {
    color: var(--panel-text-secondary);
    font-weight: 700;
}

.panel-app-page .visit-list-search-group .form-control {
    color: var(--panel-text-primary);
    font-weight: 500;
    border-color: var(--panel-border);
}

.panel-app-page .visit-list-search-group .input-group-text {
    border-color: var(--panel-border);
    color: var(--panel-text-muted);
}

.panel-app-page .patient-visit-search-trigger {
    background-color: var(--panel-brand);
    border-color: var(--panel-brand);
    font-weight: 700;
}

.panel-app-page .visit-list-search-count {
    color: var(--panel-text-secondary);
    font-weight: 600;
}

.panel-app-page .visit-list-table tbody td {
    color: var(--panel-text-primary);
    font-weight: 500;
    border-top-color: var(--panel-border);
}

.panel-app-page .visit-patient-name,
.panel-app-page .visit-date-line {
    font-weight: 700;
    color: var(--panel-text-primary);
}

.panel-app-page .visit-patient-mrno,
.panel-app-page .visit-time-line {
    color: var(--panel-text-muted);
    font-weight: 600;
}

.panel-app-page .visit-tests-list {
    color: var(--panel-text-secondary);
    font-weight: 500;
}

.panel-app-page .visit-result-value {
    color: var(--panel-text-primary);
    font-weight: 600;
}

.panel-app-page .visit-list-table .visit-view-link,
.panel-app-page .visit-list-table .visit-action-reports {
    font-weight: 700;
    background: rgba(21, 73, 199, 0.12);
}

.panel-app-page .visit-list-table .visit-action-summary {
    font-weight: 700;
    background: rgba(5, 150, 105, 0.14);
    color: #047857;
}

.panel-app-page .visit-list-table .visit-list-status {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.panel-app-page .visit-list-table .visit-list-status-ready {
    color: #065f46;
    background: #a7f3d0;
    border-color: #34d399;
}

.panel-app-page .visit-list-table .visit-list-status-partial {
    color: #92400e;
    background: #fde68a;
    border-color: #fbbf24;
}

.panel-app-page .visit-list-table .visit-list-status-pending {
    color: #991b1b;
    background: #fecaca;
    border-color: #f87171;
}

.panel-app-page .visit-detail-panel-title,
.panel-app-page .visit-section-title {
    color: var(--panel-text-primary);
    font-weight: 800;
}

.panel-app-page .visit-detail-panel-subtitle,
.panel-app-page .visit-section-desc,
.panel-app-page .visit-detail-label {
    color: var(--panel-text-muted);
    font-weight: 600;
}

.panel-app-page .visit-detail-value {
    color: var(--panel-text-primary);
    font-weight: 800;
}

.panel-app-page .visit-detail-label {
    font-weight: 800;
    color: var(--panel-text-secondary);
}

.panel-app-page .visit-info-card {
    background: var(--panel-bg-subtle);
    border-color: var(--panel-border);
}

.panel-app-page .visit-section-header {
    background: var(--panel-bg-subtle);
    border-bottom-color: var(--panel-border);
}

.panel-app-page .visit-tests-table thead th,
.panel-app-page .visit-results-table thead th {
    background: var(--panel-bg-header);
    color: var(--panel-text-primary);
    font-weight: 800;
}

.panel-app-page .visit-tests-table tbody td,
.panel-app-page .visit-results-table tbody td {
    color: var(--panel-text-primary);
    font-weight: 500;
}

.panel-app-page .visit-detail-close-btn {
    color: var(--panel-text-secondary);
    font-weight: 700;
    border-color: var(--panel-border);
}

.panel-app-page .visit-list-empty-row td {
    color: var(--panel-text-muted);
    font-weight: 600;
}

.panel-app-page .home-dash-panel {
    border-color: var(--panel-border);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.panel-app-page .home-dash-header {
    background: linear-gradient(180deg, var(--panel-bg-subtle) 0%, #fff 100%);
    border-bottom-color: var(--panel-border);
}

.panel-app-page .home-dash-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--panel-text-primary);
}

.panel-app-page .home-dash-period,
.panel-app-page .home-dash-metric-label,
.panel-app-page .home-dash-chart-note {
    color: var(--panel-text-muted);
    font-weight: 500;
}

.panel-app-page .home-dash-metric-value {
    color: var(--panel-brand);
    font-weight: 800;
}

.panel-app-page .home-dash-metric-value.home-dash-metric-text {
    color: var(--panel-text-primary);
    font-weight: 700;
}

.panel-app-page .home-recent-table th,
.panel-app-page .home-recent-table td {
    color: var(--panel-text-primary);
}

.panel-app-page .home-recent-table thead th {
    background: var(--panel-bg-header);
    color: var(--panel-text-primary);
    font-weight: 800;
    border-bottom: 2px solid var(--panel-border-strong);
}

.panel-app-page .change-password-card {
    border-color: var(--panel-border);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.panel-app-page .change-password-card-title,
.panel-app-page .change-password-card-subtitle {
    color: var(--panel-text-primary);
}

.panel-app-page .change-password-card-subtitle {
    color: var(--panel-text-muted);
    font-weight: 500;
}

.panel-app-page .change-password-card label {
    color: var(--panel-text-label);
    font-weight: 700;
}

.panel-app-page .change-password-card .form-control {
    color: var(--panel-text-primary);
    font-weight: 500;
    border-color: var(--panel-border);
}

.panel-app-page .search-patient-mrno,
.panel-app-page .search-patient-pin,
.panel-app-page .search-patient-name,
.panel-app-page .search-patient-date {
    color: var(--panel-text-primary);
    font-weight: 600;
}

.panel-app-page .sale-report-list-table tbody td,
.panel-app-page .panel-invoice-list-table tbody td,
.panel-app-page .referral-patient-list-table tbody td,
.panel-app-page .service-price-list-table tbody td,
.panel-app-page .covid-report-table tbody td {
    color: var(--panel-text-primary);
    font-weight: 500;
    border-top-color: var(--panel-border);
}

.panel-app-page .sale-report-amount,
.panel-app-page .service-price-amount {
    font-weight: 700;
    color: var(--panel-text-primary);
}

.panel-app-page .covid-report-filter-title,
.panel-app-page .sale-report-filter-title,
.panel-app-page .referral-patient-filter-title {
    color: var(--panel-text-primary);
    font-weight: 800;
}

.panel-app-page .covid-report-filter-desc,
.panel-app-page .sale-report-filter-desc {
    color: var(--panel-text-muted);
    font-weight: 500;
}

/* Home dashboard page */
.home-dash {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.home-dash-panel {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.home-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 20px;
    padding: 18px 22px;
    border-bottom: 1px solid #eef1f6;
    background: #fafbfc;
}

.home-dash-header-text {
    min-width: 0;
}

.home-dash-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.home-dash-period {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #64748b;
}

.home-dash-tabs {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.home-dash-tab,
.home-dash-tab.home-dashboard-range-btn {
    border: none;
    background: transparent;
    margin: 0;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1.3;
    box-shadow: none;
    transform: none;
    transition: background 0.15s ease, color 0.15s ease;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
}

.home-dash-tab:hover,
.home-dash-tab.home-dashboard-range-btn:hover {
    color: #1b55e2;
    background: #f8fafc;
    transform: none;
    box-shadow: none;
}

.home-dash-tab:focus {
    outline: none;
}

.home-dash-tab.active,
.home-dash-tab.home-dashboard-range-btn.active {
    background: #1b55e2 !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(27, 85, 226, 0.35) !important;
    transform: none !important;
}

.home-dash-tab.active:hover,
.home-dash-tab.home-dashboard-range-btn.active:hover {
    color: #fff !important;
    background: #1b55e2 !important;
}

.home-dash-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid #eef1f6;
}

.home-dash-metrics--visit {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-visit-panel-summary {
    margin: 0 22px 18px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid #d9e6ff;
    border-radius: 10px;
}

.home-visit-panel-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #1b55e2;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-visit-panel-summary-list {
    font-size: 14px;
    line-height: 1.7;
    color: #3b3f5c;
}

.home-visit-panel-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.home-visit-panel-summary-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.home-sale-panel-summary {
    margin: 0 22px 18px;
}

.home-sale-panel-summary .home-visit-panel-summary-header {
    color: #028286;
}

.home-dash-metrics--sale {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-dash-metric {
    padding: 18px 22px;
    border-right: 1px solid #eef1f6;
    min-width: 0;
}

.home-dash-metric:last-child {
    border-right: none;
}

.home-dash-metric-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 6px;
    line-height: 1.3;
}

.home-dash-metric-value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #1b55e2;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.home-dash-metric-value.home-dash-metric-text {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-dash-metric-value.is-discount {
    color: #e7515a;
}

.home-dash-metric-value.is-net {
    color: #028286;
}

.home-dash-metric-value.is-paid {
    color: #1b55e2;
}

.home-dash-metric-note {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.35;
}

.home-dash-chart-area {
    padding: 18px 22px 22px;
    background: #fff;
}

.home-dash-chart {
    width: 100%;
    min-height: 360px;
}

.home-dash-chart-note {
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.home-dash-chart--sale,
.home-dash-chart--visit {
    min-height: 360px;
}

.home-visit-chart-area,
.home-sale-chart-area {
    max-height: none;
    overflow: visible;
}

.home-dash-chart .apexcharts-canvas,
.home-dash-chart .apexcharts-svg {
    width: 100% !important;
}

.home-custom-bar-chart {
    padding: 4px 8px 0;
    min-height: 320px;
}

.home-custom-bar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 14px;
}

.home-custom-bar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.home-custom-bar-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.home-custom-bar-body {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.home-custom-bar-yaxis {
    width: 52px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 34px;
}

.home-custom-bar-yaxis-title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    align-self: center;
    min-height: 48px;
}

.home-custom-bar-yaxis-ticks {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-align: right;
    padding-right: 4px;
}

.home-custom-bar-columns-wrap {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
}

.home-custom-bar-columns {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-height: 280px;
    height: 280px;
    border-bottom: 1px solid #e0e6ed;
    padding: 0 6px 0 2px;
}

.home-custom-bar-col {
    flex: 1 1 0;
    min-width: 32px;
    max-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.home-custom-bar-stack {
    flex: 1;
    width: 100%;
    max-width: 48px;
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    gap: 2px;
    align-items: stretch;
}

.home-custom-bar-segment {
    width: 100%;
    min-height: 2px;
    border-radius: 4px 4px 0 0;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.28);
    cursor: default;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.home-custom-bar-segment:hover {
    opacity: 0.88;
    transform: scaleX(1.04);
}

.home-custom-bar-label {
    margin-top: 10px;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    word-break: break-word;
}

.home-custom-bar-chart--rotated .home-custom-bar-label {
    transform: rotate(-45deg);
    transform-origin: top center;
    white-space: nowrap;
    margin-top: 18px;
    max-width: none;
}

.home-custom-bar-chart--rotated .home-custom-bar-columns {
    padding-bottom: 18px;
}

.home-dash-tooltip {
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #334155;
}

.home-dash-tooltip strong {
    color: #1e293b;
}

.home-visit-breakdown {
    border: 1px solid #e8eef8;
    border-radius: 10px;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
    overflow: hidden;
}

.home-visit-breakdown-headrow {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 72px 56px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    background: #f1f5f9;
    border-bottom: 1px solid #e8eef8;
}

.home-visit-breakdown-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 72px 56px;
    column-gap: 10px;
    padding: 12px 14px 10px;
    border-bottom: 1px solid #eef2f7;
}

.home-visit-breakdown-item:last-child {
    border-bottom: none;
}

.home-visit-breakdown-item.is-top {
    background: linear-gradient(90deg, rgba(27, 85, 226, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
}

.home-visit-breakdown-item.is-others {
    background: #f8fafc;
}

.home-visit-breakdown-row {
    display: contents;
}

.home-visit-breakdown-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #e8eef8;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.home-visit-breakdown-item.is-top .home-visit-breakdown-rank {
    background: #1b55e2;
    color: #fff;
}

.home-visit-breakdown-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-visit-breakdown-count {
    font-size: 15px;
    font-weight: 700;
    color: #1b55e2;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.home-visit-breakdown-pct {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.home-visit-breakdown-track {
    grid-column: 1 / -1;
    height: 8px;
    margin-top: 8px;
    border-radius: 999px;
    background: #e8eef8;
    overflow: hidden;
}

.home-visit-breakdown-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1b55e2 0%, #5c8df6 100%);
    transition: width 0.35s ease;
}

.home-visit-breakdown-item.is-others .home-visit-breakdown-track span {
    background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 100%);
}

.home-visit-chart-area {
    min-height: 360px;
}

@media (max-width: 575px) {
    .home-visit-breakdown-headrow,
    .home-visit-breakdown-item {
        grid-template-columns: 28px minmax(0, 1fr) 58px 48px;
        column-gap: 8px;
    }

    .home-visit-breakdown-count {
        font-size: 14px;
    }
}

.home-dash-chart .home-chart-loading,
.home-dash-chart .home-chart-empty {
    min-height: 360px;
}

@media (max-width: 991px) {
    .home-dash-metrics,
    .home-dash-metrics--sale {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-dash-metric {
        border-bottom: 1px solid #eef1f6;
    }

    .home-dash-metric:nth-child(2n) {
        border-right: none;
    }

    .home-dash-metric:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 575px) {
    .home-dash-header {
        padding: 16px;
    }

    .home-visit-panel-summary {
        margin: 0 16px 16px;
    }

    .home-dash-metrics,
    .home-dash-metrics--sale {
        grid-template-columns: 1fr;
    }

    .home-dash-metric {
        border-right: none;
        padding: 14px 16px;
    }

    .home-dash-metric:last-child {
        border-bottom: none;
    }

    .home-dash-metric-value {
        font-size: 22px;
    }

    .home-dash-tabs {
        width: 100%;
        justify-content: stretch;
    }

    .home-dash-tab {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
    }
}

/* Shared stat cards (Search Patient, Service Price, etc.) */
.home-dashboard-section {
    margin-bottom: 20px;
}

.home-dashboard-card {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(27, 85, 226, 0.06);
    padding: 16px 18px;
}

.home-dashboard-card-wide {
    width: 100%;
}

.home-dashboard-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.home-dashboard-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #3b3f5c;
}

.home-dashboard-card-title i {
    color: #1b55e2;
    margin-right: 8px;
}

.home-dashboard-card-desc {
    margin: 4px 0 0;
    font-size: 12px;
    color: #888ea8;
}

.home-dashboard-period {
    color: #1b55e2;
    font-weight: 600;
}

.home-dashboard-range-pills {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
    border: 1px solid #ebedf2;
}

.home-dashboard-range-btn {
    border: none;
    background: transparent;
    box-shadow: none;
    margin: 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.4;
    padding: 6px 16px;
    cursor: pointer;
    color: #515365;
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.home-dashboard-range-btn:hover {
    color: #1b55e2;
    background: rgba(255, 255, 255, 0.55);
}

.home-dashboard-range-btn:focus {
    outline: none;
}

.home-dashboard-range-btn.active {
    background: #fff;
    color: #1b55e2;
    box-shadow: 0 1px 4px rgba(27, 85, 226, 0.18);
}

.home-dashboard-range-btn.active:hover {
    background: #fff;
    color: #1b55e2;
}

.home-dashboard-chart {
    width: 100%;
    min-height: 240px;
}

.home-recent-reports-card {
    margin-bottom: 0;
}

.home-recent-empty {
    padding: 28px 20px;
    text-align: center;
    color: #888ea8;
    font-size: 14px;
}

.home-recent-link {
    font-weight: 600;
    margin: 0 4px;
}

.home-recent-action-col {
    vertical-align: middle;
}

.home-recent-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.home-recent-action-row-secondary {
    margin-top: 4px;
}

.home-recent-table td,
.home-recent-table th {
    vertical-align: middle;
}

.home-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 14px 0 18px;
}

.home-dashboard-stat-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #ebedf2;
    border-radius: 10px;
    padding: 14px 16px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-dashboard-stat-card:hover {
    border-color: #d7e0f0;
    box-shadow: 0 4px 12px rgba(27, 85, 226, 0.08);
}

.home-dashboard-stat-card-primary {
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    border-color: #d9e6ff;
}

.home-dashboard-stat-card-accent {
    background: linear-gradient(135deg, #f8fffe 0%, #eefaf8 100%);
    border-color: #cce8e4;
}

.home-dashboard-stat-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #1b55e2;
    font-size: 16px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 2px 6px rgba(27, 85, 226, 0.08);
}

.home-dashboard-stat-card-accent .home-dashboard-stat-icon {
    color: #028286;
}

.home-dashboard-stat-body {
    min-width: 0;
    flex: 1;
}

.home-dashboard-stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888ea8;
    margin-bottom: 4px;
    font-weight: 600;
}

.home-dashboard-stat-value {
    display: block;
    font-size: 26px;
    line-height: 1.15;
    color: #1b55e2;
    font-weight: 700;
}

.home-dashboard-stat-value-sm {
    font-size: 15px;
    color: #3b3f5c;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-dashboard-stat-sub {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #888ea8;
}

.home-dashboard-stat-share {
    color: #028286;
    font-weight: 600;
}

.home-dashboard-chart-wrap {
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
    border: 1px solid #eef1f6;
    border-radius: 10px;
    padding: 12px 8px 4px;
}

.home-dashboard-chart-lg {
    height: auto;
    min-height: 280px;
}

.home-chart-loading,
.home-chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    color: #888ea8;
    font-size: 14px;
    gap: 10px;
}

.home-chart-empty i {
    font-size: 36px;
    color: #c9d5e8;
}

.home-chart-empty-error i {
    color: #e7515a;
}

.home-chart-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #ebedf2;
    border-top-color: #1b55e2;
    border-radius: 50%;
    animation: home-chart-spin 0.75s linear infinite;
}

@keyframes home-chart-spin {
    to { transform: rotate(360deg); }
}

.home-chart-tooltip-count {
    font-size: 18px;
    font-weight: 700;
    color: #1b55e2;
}

.home-chart-tooltip-share {
    color: #888ea8;
    font-size: 12px;
}

.visit-results-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--panel-text-primary, #0f172a);
}

.visit-results-card-title i {
    color: #1b55e2;
    margin-right: 8px;
}

.visit-results-card .table-responsive:not(.patient-visit-table-wrap):not(.search-patient-table-wrap) {
    overflow-x: visible;
}

.patient-visit-table-wrap,
.search-patient-table-wrap {
    max-height: calc(100vh - 380px);
    min-height: 280px;
    overflow: auto;
}

.panel-app-page .patient-visit-table-wrap {
    max-height: none;
    min-height: 200px;
    overflow-x: auto;
    overflow-y: visible;
}

.panel-app-page .patient-visit-table-wrap .visit-list-table thead th {
    position: static;
    top: auto;
    z-index: 1;
}

.panel-table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 12px 16px;
    border-top: 1px solid #e0e6ed;
    background: #fafbfc;
}

.panel-table-pagination-info {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.panel-table-pagination-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.panel-table-pagination-label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.panel-table-page-size {
    width: auto;
    min-width: 72px;
    height: 32px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    border-color: #cbd5e1;
}

.panel-table-pagination-status {
    min-width: 96px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.panel-table-page-btn {
    min-width: 88px;
    height: 32px;
    font-size: 13px;
    font-weight: 700;
    border-color: #cbd5e1;
    color: #1549c7;
}

.panel-table-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .panel-table-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .panel-table-pagination-controls {
        justify-content: space-between;
    }

    .panel-table-page-btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (max-width: 991px) {
    .visit-results-card .table-responsive:not(.patient-visit-table-wrap):not(.search-patient-table-wrap) {
        overflow-x: auto;
    }
}

.visit-results-hint {
    font-size: 12px;
    color: var(--panel-text-muted, #475569);
    font-weight: 500;
}

.visit-list-table {
    width: 100%;
    table-layout: fixed;
}

.visit-list-table th:nth-child(1),
.visit-list-table td:nth-child(1) {
    width: 14%;
}

.visit-list-table th:nth-child(2),
.visit-list-table td:nth-child(2) {
    width: 9%;
}

.visit-list-table th:nth-child(3),
.visit-list-table td:nth-child(3) {
    width: 23%;
}

.visit-list-table th:nth-child(4),
.visit-list-table td:nth-child(4) {
    width: 26%;
}

.visit-list-table th:nth-child(5),
.visit-list-table td:nth-child(5) {
    width: 10%;
}

.visit-list-table th:nth-child(6),
.visit-list-table td:nth-child(6) {
    width: 22%;
    min-width: 150px;
}

.visit-list-table thead th:nth-child(2) {
    white-space: normal;
}

.visit-list-table thead th,
.search-patient-list-table thead th,
.sale-report-list-table thead th,
.panel-invoice-list-table thead th,
.referral-patient-list-table thead th,
.service-price-list-table thead th,
.covid-report-table thead th,
.visit-tests-table thead th,
.visit-results-table thead th,
.home-recent-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8f9fb;
    color: var(--panel-text-primary, #0f172a);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--panel-border-strong, #94a3b8);
    padding: 12px 16px;
    white-space: nowrap;
    vertical-align: middle;
}

.visit-list-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    font-size: 14px;
    color: var(--panel-text-primary, #0f172a);
    font-weight: 500;
    border-top: 1px solid var(--panel-border, #cbd5e1);
}

.visit-list-table tbody td:not(.visit-action-col) {
    overflow: hidden;
}

.visit-list-table tbody td.visit-date-col {
    padding-right: 10px;
}

.visit-list-table tbody td.visit-tests-col {
    padding-left: 10px;
}

.visit-list-table tbody tr {
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.visit-list-table tbody tr:hover {
    background-color: #f8faff;
}

.visit-list-table tbody tr.visit-row-active {
    background-color: #eef4ff !important;
    box-shadow: inset 4px 0 0 #1b55e2;
}

.visit-list-table .visit-view-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    color: #1b55e2;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(27, 85, 226, 0.08);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.visit-list-table .visit-view-link:hover {
    color: #fff;
    background: #1b55e2;
    text-decoration: none;
}

.visit-list-table td.visit-action-col {
    padding-left: 8px;
    padding-right: 8px;
}

.visit-list-table .visit-action-col-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
}

.visit-list-table .visit-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.visit-list-table .visit-action-row-secondary {
    margin-top: 2px;
}

.visit-list-table .visit-action-certificate {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    color: #805dca;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(128, 93, 202, 0.1);
    border-radius: 20px;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.visit-list-table .visit-action-certificate:hover {
    color: #fff;
    background: #805dca;
    text-decoration: none;
}

.visit-list-table .visit-action-col .visit-action-link,
.visit-list-table .visit-action-col .visit-action-status {
    margin: 0;
    flex: 0 1 auto;
}

.visit-list-table .visit-action-col .visit-action-status {
    padding: 3px 8px;
    font-size: 11px;
}

.visit-list-table .visit-action-summary {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    color: #0e9f6e;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(14, 159, 110, 0.1);
    border-radius: 20px;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.visit-list-table .visit-action-summary:hover {
    color: #fff;
    background: #0e9f6e;
    text-decoration: none;
}

.visit-list-table .visit-action-reports {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    color: #1b55e2;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(27, 85, 226, 0.1);
    border-radius: 20px;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.visit-list-table .visit-action-reports:hover {
    color: #fff;
    background: #1b55e2;
    text-decoration: none;
}

.visit-list-table .visit-action-not-allowed {
    background: rgba(231, 81, 90, 0.1);
    color: #e7515a;
}

.visit-results-restricted {
    padding: 24px 20px;
    text-align: center;
    color: #888ea8;
    font-size: 14px;
}

.visit-detail-inline-dl-link {
    margin-left: 8px;
    font-weight: 600;
}

.visit-patient-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 160px;
}

.visit-patient-name {
    font-weight: 600;
    color: #3b3f5c;
    line-height: 1.35;
}

.visit-patient-mrno {
    font-size: 12px;
    color: #888ea8;
    font-weight: 500;
}

.visit-date-col {
    white-space: nowrap;
    vertical-align: middle;
}

.visit-tests-col {
    min-width: 0;
    word-break: break-word;
}

.visit-date-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.visit-date-line {
    font-weight: 600;
    color: #3b3f5c;
    line-height: 1.35;
}

.visit-time-line {
    font-size: 12px;
    color: #888ea8;
    font-weight: 500;
}

.visit-tests-list {
    display: inline-block;
    font-size: 13px;
    color: #515365;
    line-height: 1.45;
    word-break: break-word;
}

.visit-result-col {
    min-width: 0;
    word-break: break-word;
}

.visit-result-value {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #3b3f5c;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
}

.visit-result-value .visit-result-item {
    display: inline;
}

.visit-result-value .visit-result-sep {
    color: #bfc9d4;
    font-weight: 700;
    margin: 0 4px;
}

.visit-result-truncated {
    cursor: help;
}

.visit-list-table .visit-list-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.2;
    border: 1px solid transparent;
}

.visit-list-table .visit-list-status i {
    font-size: 13px;
}

.visit-list-table .visit-list-status-ready {
    color: #0f5132;
    background: #d1e7dd;
    border-color: #a3cfbb;
}

.visit-list-table .visit-list-status-partial {
    color: #997404;
    background: #fff3cd;
    border-color: #ffda6a;
}

.visit-list-table .visit-list-status-pending {
    color: #842029;
    background: #f8d7da;
    border-color: #f1aeb5;
}

.visit-list-table td.visit-status-col {
    min-width: 120px;
}

.visit-summary-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #17a2b8;
    text-decoration: none;
    background: rgba(23, 162, 184, 0.1);
    border-radius: 20px;
}

.visit-summary-link:hover {
    color: #fff;
    background: #17a2b8;
    text-decoration: none;
}

/* Inline visit detail row (expanded below clicked table row) */
.visit-detail-row > td {
    padding: 0 !important;
    border-top: none !important;
    background: #f9fafb;
    box-shadow: inset 4px 0 0 #1b55e2;
}

.visit-detail-inline {
    padding: 20px 24px 0;
    border-top: 3px solid #1b55e2;
    background: linear-gradient(180deg, #f4f7ff 0%, #f9fafb 100%);
    animation: visitDetailSlideIn 0.25s ease;
}

.visit-detail-inline::after {
    content: '';
    display: block;
    height: 4px;
    margin: 20px 0 0;
    background: linear-gradient(90deg, #1b55e2 0%, #4361ee 50%, #5c8df6 100%);
}

.visit-detail-row + .visit-list-row td {
    border-top: 2px solid #dbe4f0;
}

.visit-list-row.visit-row-expanded td {
    background-color: #eef4ff !important;
    border-bottom-color: #dbe4f0;
}

.visit-list-row.visit-row-expanded {
    box-shadow: inset 4px 0 0 #1b55e2;
}

.visit-detail-row .visit-detail-wrapper {
    gap: 16px;
}

.visit-detail-row .visit-section {
    margin-bottom: 0;
}

/* Legacy panel below table (kept for reference if reused elsewhere) */
.visit-detail-panel {
    position: relative;
    margin-top: 28px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(27, 85, 226, 0.1);
    animation: visitDetailSlideIn 0.35s ease;
}

@keyframes visitDetailSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visit-detail-panel-accent {
    height: 4px;
    background: linear-gradient(90deg, #1b55e2 0%, #4361ee 50%, #5c8df6 100%);
}

.visit-detail-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(180deg, #f4f7ff 0%, #fff 100%);
    border-bottom: 1px solid #ebedf2;
}

.visit-detail-panel-heading {
    flex: 1;
    min-width: 200px;
}

.visit-detail-panel-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #3b3f5c;
}

.visit-detail-panel-title i {
    color: #1b55e2;
    margin-right: 8px;
}

.visit-detail-panel-subtitle {
    margin: 0;
    font-size: 13px;
    color: #888ea8;
}

.visit-detail-close-btn {
    font-weight: 600;
    color: #515365;
    border: 1px solid #d3dae6;
    border-radius: 6px;
    padding: 6px 14px;
    white-space: nowrap;
}

.visit-detail-close-btn:hover {
    color: #1b55e2;
    border-color: #1b55e2;
    background: #f4f7ff;
}

.visit-detail-content {
    padding: 24px;
    background: #f9fafb;
}

.visit-detail-loading {
    text-align: center;
    padding: 48px 20px;
    color: #888ea8;
}

.visit-detail-loading-spinner {
    display: inline-block;
    margin-bottom: 12px;
    color: #1b55e2 !important;
}

.visit-detail-loading p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Detail sections */
.visit-detail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visit-detail-alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.visit-detail-alert i {
    margin-right: 8px;
}

.visit-section {
    background: #fff;
    border: 1px solid #ebedf2;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.visit-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #ebedf2;
    background: #fff;
}

.visit-section-header-split {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.visit-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(27, 85, 226, 0.1);
    color: #1b55e2;
    font-size: 18px;
    flex-shrink: 0;
}

.visit-section-icon-tests {
    background: rgba(23, 162, 184, 0.12);
    color: #17a2b8;
}

.visit-section-title {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    color: #3b3f5c;
}

.visit-section-desc {
    margin: 0;
    font-size: 12px;
    color: #888ea8;
}

.visit-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
}

.visit-info-card {
    position: relative;
    padding: 16px 16px 16px 52px;
    background: #f8f9fb;
    border: 1px solid #ebedf2;
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.visit-info-card:hover {
    border-color: #c9d8f5;
    box-shadow: 0 2px 8px rgba(27, 85, 226, 0.08);
}

.visit-info-card-action {
    background: linear-gradient(135deg, #f4f7ff 0%, #eef4ff 100%);
    border-color: #c9d8f5;
}

.visit-info-card-icon {
    position: absolute;
    left: 14px;
    top: 16px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #fff;
    color: #1549c7;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.visit-info-card-icon .fa {
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.visit-info-card-icon.visit-gender-icon {
    font-family: "Segoe UI Symbol", "Arial Unicode MS", "Nunito", sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.visit-gender-icon-male {
    color: #2563eb;
}

.visit-gender-icon-female {
    color: #c026d3;
}

.visit-gender-icon-other {
    color: #64748b;
    font-size: 18px;
}

.visit-gender-icon-unknown {
    color: #94a3b8;
    font-size: 16px;
    font-weight: 600;
}

.visit-section-icon .fa {
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

.visit-info-card-icon-success {
    color: #28a745;
}

.visit-detail-label {
    display: block;
    font-size: 11px;
    color: #888ea8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.visit-detail-value {
    font-size: 16px;
    font-weight: 700;
    color: #3b3f5c;
    line-height: 1.3;
    word-break: break-word;
}

.visit-dl-all-btn {
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
}

.visit-tests-table-wrap {
    border-top: none;
}

.visit-tests-table thead th {
    background: #f4f6f9;
    color: #515365;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 12px 20px;
    border: none;
    border-bottom: 2px solid #e0e6ed;
}

.visit-tests-table tbody td {
    padding: 14px 20px;
    vertical-align: middle;
    border-top: 1px solid #ebedf2;
    font-size: 14px;
}

.visit-tests-table tbody tr:hover {
    background: #fafbfc;
}

.visit-test-code {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
    font-family: Consolas, "Courier New", monospace;
    color: #515365;
    background: #eef1f6;
    border-radius: 4px;
}

.visit-test-name {
    font-weight: 500;
    color: #3b3f5c;
}

.visit-report-cell {
    white-space: nowrap;
}

.visit-dl-btn {
    font-weight: 600;
    border-radius: 6px;
    padding: 4px 12px;
}

.visit-dl-btn i {
    margin-right: 4px;
}

.visit-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

.visit-status-pending {
    color: #856404;
    background: #fff3cd;
}

.visit-status-info {
    color: #0c5460;
    background: #d1ecf1;
}

/* Visit detail — patient info + subsection result tabs */
.visit-patient-detail-cards {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.visit-detail-download-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.visit-detail-dl-btn {
    font-weight: 600;
    white-space: nowrap;
}

.visit-detail-dl-btn i {
    margin-right: 5px;
}

.visit-patient-section .visit-detail-alert {
    border-radius: 8px;
    margin-top: 12px !important;
}

.visit-results-section .visit-section-header {
    border-bottom: none;
    padding-bottom: 10px;
}

.visit-results-tabs {
    border-bottom: 2px solid #ebedf2;
    padding: 0 16px;
    margin: 0;
    flex-wrap: wrap;
}

.visit-results-tabs .nav-link {
    font-size: 13px;
    font-weight: 600;
    color: #515365;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 16px;
    margin-bottom: -2px;
    border-radius: 0;
}

.visit-results-tabs .nav-link:hover {
    color: #1b55e2;
    border-color: transparent;
    background: #f8faff;
}

.visit-results-tabs .nav-link.active {
    color: #1b55e2;
    background: transparent;
    border-color: #1b55e2;
}

.visit-results-tab-content {
    padding: 0;
}

.visit-results-empty {
    padding: 32px 20px;
    text-align: center;
    color: #888ea8;
    font-size: 14px;
}

.visit-report-summary-card {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #ebedf2;
    border-radius: 10px;
    background: #f8fafc;
}

.visit-report-summary-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.visit-report-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px 10px;
}

.visit-report-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 7px;
    padding: 6px 8px;
}

.visit-report-summary-label {
    font-size: 12px;
    color: #475569;
}

.visit-report-summary-value {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.visit-report-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.visit-report-summary-label.visit-report-summary-badge .fa {
    margin-right: 5px;
    font-size: 11px;
}

.visit-report-summary-item-normal {
    border-color: #b7dfc3;
    background: #f6fcf8;
    border-left: 3px solid #28a745;
}

.visit-report-summary-item-abnormal {
    border-color: #f1b0b7;
    background: #fff8f8;
    border-left: 3px solid #dc3545;
}

.visit-report-summary-item-panic {
    border-color: #fca5a5;
    background: #fff5f5;
    border-left: 3px solid #b42318;
}

.visit-report-summary-item-panic .visit-report-summary-badge.visit-result-flag-panic {
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15);
}

.visit-subsection-blocks {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.visit-subsection-block .visit-results-table-wrap {
    border-top: none;
}

.visit-subsection-block .visit-subsection-block-header-standalone {
    border-bottom: 1px solid #dbe4f0;
    border-radius: 0;
}

.visit-results-single-table {
    background: #fff;
    border: 1px solid #ebedf2;
    border-radius: 10px;
    overflow: hidden;
}

.visit-subsection-block-header-standalone {
    border-bottom: 1px solid #dbe4f0;
}

.visit-subsection-block {
    border: 1px solid #ebedf2;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.visit-subsection-block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #f8faff 0%, #f4f7ff 100%);
    border-bottom: 1px solid #dbe4f0;
}

.visit-subsection-block-title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.visit-subsection-block-header-in-table {
    border-bottom: 1px solid #dbe4f0;
    border-radius: 0;
}

.visit-subsection-table-header td {
    padding: 0 !important;
    border-top: 10px solid #f9fafb;
    background: #fff;
    vertical-align: middle;
}

.visit-subsection-table-header-first td {
    border-top: none;
}

.visit-drug-organism-group-header td {
    padding: 0 !important;
    background: #f8fafc;
    border-top: 1px solid #e8edf4;
    vertical-align: middle;
}

.visit-drug-organism-group-header-first td {
    border-top: none;
}

.visit-drug-organism-group-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem 0.45rem 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.visit-drug-organism-group-icon {
    color: #64748b;
    width: 1rem;
    text-align: center;
}

.visit-drug-antibiotic-row td {
    padding: 0.4rem 0.75rem !important;
    vertical-align: top;
}

.visit-drug-results-table col.visit-drug-col {
    width: 33.33%;
}

.visit-drug-antibiotic-cell {
    word-break: break-word;
}

.visit-drug-antibiotic-name {
    display: block;
    font-size: 0.875rem;
    line-height: 1.35;
}

.visit-imaging-reports {
    margin-top: 0.5rem;
}

.visit-imaging-report-group + .visit-imaging-report-group {
    margin-top: 1.25rem;
}

.visit-imaging-report-item {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 8px;
}

.visit-imaging-report-item:last-child {
    margin-bottom: 0;
}

.visit-imaging-report-title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.visit-imaging-report-body {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #334155;
    word-break: break-word;
}

.visit-imaging-report-body p {
    margin-bottom: 0.65rem;
}

.visit-imaging-report-body table {
    width: 100%;
    margin-bottom: 0.75rem;
    border-collapse: collapse;
}

.visit-imaging-report-body table td,
.visit-imaging-report-body table th {
    border: 1px solid #dbe4f0;
    padding: 0.35rem 0.5rem;
    vertical-align: top;
}

.visit-results-table.visit-results-table-no-status col.visit-col-test {
    width: 32%;
}

.visit-results-table.visit-results-table-no-status col.visit-col-result {
    width: 18%;
}

.visit-results-table.visit-results-table-no-status col.visit-col-unit {
    width: 12%;
}

.visit-results-table.visit-results-table-no-status col.visit-col-ref {
    width: 38%;
}

.visit-results-table {
    width: 100%;
    table-layout: fixed;
    margin-bottom: 0;
}

.visit-results-table col.visit-col-test {
    width: 30%;
}

.visit-results-table col.visit-col-result {
    width: 14%;
}

.visit-results-table col.visit-col-unit {
    width: 10%;
}

.visit-results-table col.visit-col-ref {
    width: 30%;
}

.visit-results-table col.visit-col-status {
    width: 16%;
}

.visit-results-table .visit-col-status-head,
.visit-results-table .visit-col-status-cell {
    text-align: center;
}

.visit-results-table .visit-col-test-cell {
    word-break: break-word;
}

.visit-results-empty-inline {
    padding: 24px 16px;
    font-size: 14px;
}

.visit-results-table-wrap {
    border-top: none;
    width: 100%;
}

.visit-results-table.visit-results-table-no-status thead th:nth-child(2),
.visit-results-table.visit-results-table-no-status thead th:nth-child(3),
.visit-results-table.visit-results-table-no-status tbody td:nth-child(2),
.visit-results-table.visit-results-table-no-status tbody td:nth-child(3) {
    text-align: center;
}

.visit-results-table thead th {
    background: #f4f6f9;
    color: #515365;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 12px 14px;
    border: none;
    border-bottom: 2px solid #e0e6ed;
    white-space: nowrap;
}

.visit-results-table tbody td {
    padding: 12px 14px;
    vertical-align: top;
    border-top: 1px solid #ebedf2;
    font-size: 13px;
    color: #3b3f5c;
}

.visit-results-table tbody tr.visit-result-data-row:hover td {
    background: #fafbfc;
}

.visit-result-group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 8px;
    font-size: 14px;
    flex-shrink: 0;
}

.visit-subsection-theme-chemistry {
    background: #e8f4fd;
    color: #1b55e2;
}

.visit-subsection-theme-serology {
    background: #ede7f6;
    color: #6f42c1;
}

.visit-subsection-theme-hematology {
    background: #fde8e8;
    color: #c0392b;
}

.visit-subsection-theme-microbiology {
    background: #e8f8ef;
    color: #198754;
}

.visit-subsection-theme-pathology {
    background: #fff4e5;
    color: #d97706;
}

.visit-subsection-theme-default {
    background: #eef1f6;
    color: #515365;
}

.visit-results-tabs .nav-link i {
    margin-right: 6px;
    opacity: 0.9;
}

.visit-result-data-row td {
    background: #fff;
}

.visit-result-param {
    display: block;
    font-weight: 600;
    color: #3b3f5c;
}

.visit-result-param-code {
    display: inline-block;
    margin-top: 3px;
    padding: 2px 6px;
    font-size: 11px;
    font-family: Consolas, "Courier New", monospace;
    color: #515365;
    background: #eef1f6;
    border-radius: 4px;
}

.visit-result-value-cell {
    font-weight: 700;
    color: #0f5132;
}

.visit-result-abnormal-value {
    font-weight: 700;
    color: #842029;
}

.visit-result-panic-value {
    font-weight: 700;
    color: #b42318;
}

.visit-result-panic-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    color: #dc2626;
    font-size: 14px;
    vertical-align: middle;
    animation: visitPanicPulse 1.2s ease-in-out infinite;
}

@keyframes visitPanicPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.08); }
}

.visit-result-ref {
    display: block;
    font-size: 12px;
    color: #515365;
    line-height: 1.45;
    word-break: break-word;
}

.visit-result-status-text {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #3b3f5c;
    background: #eef1f6;
    border-radius: 12px;
    white-space: nowrap;
}

.visit-result-flag-normal {
    color: #155724;
    background: #d4edda;
}

.visit-result-flag-abnormal {
    color: #842029;
    background: #f8d7da;
}

.visit-result-flag-panic {
    color: #fff;
    background: #dc2626;
    font-weight: 700;
}

.visit-result-flag-high {
    color: #842029;
    background: #f8d7da;
}

.visit-result-flag-low {
    color: #856404;
    background: #fff3cd;
}

/* Service Price List */
.service-price-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-price-stats {
    margin: 0;
}

.service-price-panel-summary {
    background: linear-gradient(135deg, #f8fffe 0%, #eefaf8 100%);
    border: 1px solid #cce8e4;
    border-radius: 10px;
    padding: 14px 16px;
}

.service-price-panel-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #028286;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.service-price-panel-summary-list {
    font-size: 14px;
    line-height: 1.7;
    color: #3b3f5c;
}

.service-price-panel-summary-item {
    font-weight: 600;
}

.service-price-panel-summary-sep {
    margin-right: 6px;
    color: #888ea8;
}

.service-price-panel-summary-empty {
    color: #888ea8;
    font-style: italic;
}

.service-price-card {
    margin-bottom: 0;
}

.service-price-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 12px 16px;
    flex: 1 1 360px;
}

.service-price-panel-filter {
    min-width: 180px;
    flex: 0 1 220px;
}

.service-price-search-wrap {
    min-width: 260px;
    flex: 1 1 280px;
    max-width: 420px;
}

.service-price-filter-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.service-price-panel-filter .form-control {
    height: 40px;
    font-size: 14px;
}

.service-price-table-wrap {
    max-height: calc(100vh - 340px);
    min-height: 280px;
    overflow-y: auto;
}

.service-price-list-table {
    table-layout: fixed;
}

.service-price-list-table th:nth-child(1),
.service-price-list-table td:nth-child(1) {
    width: 8%;
}

.service-price-list-table th:nth-child(2),
.service-price-list-table td:nth-child(2) {
    width: 22%;
}

.service-price-list-table th:nth-child(3),
.service-price-list-table td:nth-child(3) {
    width: 55%;
}

.service-price-list-table th:nth-child(4),
.service-price-list-table td:nth-child(4) {
    width: 15%;
}

.service-price-sr {
    color: #888ea8;
    font-weight: 600;
    font-size: 13px;
}

.service-price-panel-badge {
    display: inline-block;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 6px;
    background: #eef4ff;
    color: #1b55e2;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.service-price-name {
    font-weight: 500;
    color: #3b3f5c;
}

.service-price-amount {
    font-weight: 700;
    color: #028286;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Search Patient */
.search-patient-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-patient-search-card {
    margin-bottom: 0;
}

.search-patient-search-header {
    margin-bottom: 16px;
}

.search-patient-search-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #3b3f5c;
}

.search-patient-search-title i {
    color: #1b55e2;
    margin-right: 8px;
}

.search-patient-search-desc {
    margin: 0;
    font-size: 13px;
    color: #888ea8;
}

.search-patient-alert {
    font-size: 14px;
    margin-bottom: 16px;
    padding: 12px 16px;
}

.search-patient-alert i {
    margin-right: 8px;
}

.search-patient-loading {
    height: 32px;
    margin-left: 4px;
}

.search-patient-stats {
    margin: 0;
}

.search-patient-card {
    margin-bottom: 0;
}

.search-patient-results-filter {
    min-width: 260px;
}

.search-patient-list-table {
    min-width: 1120px;
    table-layout: fixed;
}

.search-patient-list-table th:nth-child(1),
.search-patient-list-table td:nth-child(1) {
    width: 8%;
}

.search-patient-list-table th:nth-child(2),
.search-patient-list-table td:nth-child(2) {
    width: 14%;
}

.search-patient-list-table th:nth-child(3),
.search-patient-list-table td:nth-child(3) {
    width: 8%;
}

.search-patient-list-table th:nth-child(4),
.search-patient-list-table td:nth-child(4) {
    width: 10%;
}

.search-patient-list-table th:nth-child(5),
.search-patient-list-table td:nth-child(5) {
    width: 12%;
}

.search-patient-list-table th:nth-child(6),
.search-patient-list-table td:nth-child(6) {
    width: 9%;
}

.search-patient-list-table th:nth-child(7),
.search-patient-list-table td:nth-child(7) {
    width: 9%;
}

.search-patient-list-table th:nth-child(8),
.search-patient-list-table td:nth-child(8) {
    width: 8%;
}

.search-patient-list-table th:nth-child(9),
.search-patient-list-table td:nth-child(9) {
    width: 7%;
}

.search-patient-list-table th:nth-child(10),
.search-patient-list-table td:nth-child(10) {
    width: 7%;
}

.search-patient-list-table th:nth-child(11),
.search-patient-list-table td:nth-child(11) {
    width: 9%;
    min-width: 108px;
}

.search-patient-list-table td.search-patient-actions {
    position: relative;
    overflow: visible;
}

.search-patient-action-dropdown .search-patient-action-toggle {
    font-size: 16px;
    font-weight: 600;
    padding: 2px 8px;
    border: none;
    border-radius: 6px;
    color: #515365;
    line-height: 1;
    box-shadow: none;
}

.search-patient-action-dropdown .search-patient-action-toggle:hover,
.search-patient-action-dropdown .search-patient-action-toggle:focus,
.search-patient-action-dropdown.open .search-patient-action-toggle {
    color: #1b55e2;
    background: rgba(27, 85, 226, 0.08);
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

.search-patient-action-dropdown .dropdown-toggle .caret {
    display: none;
}

.search-patient-action-menu {
    min-width: 150px;
    padding: 6px 0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.search-patient-action-menu > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: #3b3f5c;
}

.search-patient-action-menu > li > a .fa {
    width: 14px;
    text-align: center;
    color: #888ea8;
}

.search-patient-action-menu > li > a:hover,
.search-patient-action-menu > li > a:focus {
    background: #f1f5ff;
    color: #1b55e2;
}

.search-patient-action-menu > li > a:hover .fa,
.search-patient-action-menu > li > a:focus .fa {
    color: #1b55e2;
}

.search-patient-action-menu > li.disabled > a {
    pointer-events: none;
    color: #bfc9d4;
}

.search-patient-list-table .visit-detail-row > td {
    padding: 0;
    border-top: none;
    background: #f8f9fb;
}

.search-patient-list-table .visit-detail-inline {
    padding: 16px;
}

.search-patient-mrno,
.search-patient-pin {
    font-weight: 600;
    color: #515365;
    font-variant-numeric: tabular-nums;
}

.search-patient-name {
    font-weight: 600;
    color: #3b3f5c;
}

.search-patient-date {
    white-space: nowrap;
    color: #515365;
    font-size: 13px;
}

.search-patient-actions {
    white-space: nowrap;
}

.search-patient-actions .home-recent-link {
    margin: 0 4px;
}

.search-patient-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.search-patient-status-pending {
    color: #856404;
    background: #fff3cd;
}

.search-patient-status-disabled {
    color: #888ea8;
    background: #f1f2f3;
}

.search-patient-placeholder-row td,
.search-patient-empty-row td {
    padding: 0 !important;
    border: none !important;
}

.search-patient-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 20px;
    color: #888ea8;
    font-size: 14px;
    text-align: center;
}

.search-patient-placeholder i {
    font-size: 36px;
    color: #c9d5e8;
}

.search-patient-placeholder-empty i {
    color: #d7dde8;
}

/* Sale Report */
.sale-report-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sale-report-filter-card {
    margin-bottom: 0;
}

.sale-report-actions {
    justify-content: flex-start;
}

.sale-report-export-btn,
.sale-report-print-btn {
    min-height: 40px;
    height: 40px;
    font-size: 14px;
    font-weight: 600;
    padding: 0 16px;
    white-space: nowrap;
}

.sale-report-info-alert {
    margin-bottom: 0;
}

.sale-report-stats {
    margin: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sale-report-dashboard-card {
    margin-bottom: 0;
}

.sale-report-dashboard-header {
    margin-bottom: 0;
}

.sale-report-card {
    margin-bottom: 0;
    border: none;
    box-shadow: none;
    padding: 0;
}

.sale-report-table-header {
    padding-top: 4px;
    margin-bottom: 8px;
}

@media (max-width: 1199px) {
    .sale-report-stats {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

.sale-report-stat-amount {
    font-size: 22px !important;
}

.sale-report-stat-discount {
    color: #e7515a !important;
}

.sale-report-stat-net {
    color: #028286 !important;
}

.sale-report-stat-paid {
    color: #1b55e2 !important;
}

.sale-report-results-filter {
    min-width: 260px;
}

.sale-report-table-wrap {
    max-height: calc(100vh - 420px);
    min-height: 280px;
    overflow: auto;
}

.sale-report-list-table {
    table-layout: fixed;
    min-width: 860px;
}

.sale-report-list-table .sale-report-pin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1549c7;
    text-decoration: none;
    background: rgba(21, 73, 199, 0.12);
    border: 1px solid rgba(21, 73, 199, 0.22);
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sale-report-list-table .sale-report-pin-link:hover,
.sale-report-list-table .sale-report-pin-link:focus {
    color: #fff;
    background: #1549c7;
    border-color: #1549c7;
    text-decoration: none;
    outline: none;
    box-shadow: 0 2px 6px rgba(21, 73, 199, 0.25);
}

.sale-report-list-table .sale-report-pin-text {
    font-weight: 600;
    color: var(--panel-text-muted, #64748b);
    font-variant-numeric: tabular-nums;
}

.sale-report-list-table th:nth-child(1),
.sale-report-list-table td:nth-child(1) {
    width: 12%;
}

.sale-report-list-table th:nth-child(2),
.sale-report-list-table td:nth-child(2) {
    width: 24%;
}

.sale-report-list-table th:nth-child(3),
.sale-report-list-table td:nth-child(3) {
    width: 14%;
}

.sale-report-list-table th:nth-child(4),
.sale-report-list-table td:nth-child(4),
.sale-report-list-table th:nth-child(5),
.sale-report-list-table td:nth-child(5),
.sale-report-list-table th:nth-child(6),
.sale-report-list-table td:nth-child(6),
.sale-report-list-table th:nth-child(7),
.sale-report-list-table td:nth-child(7) {
    width: 12.5%;
}

.sale-report-amount {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}

.sale-report-discount {
    color: #e7515a;
}

.sale-report-net {
    color: #028286;
}

.sale-report-paid {
    color: #1b55e2;
}

.sale-report-panel-header td {
    background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
    border-top: 2px solid #c7d7fe;
    border-bottom: 1px solid #dbeafe;
    padding: 12px 16px !important;
}

.sale-report-panel-header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sale-report-panel-header-inner .fa {
    color: #1b55e2;
    font-size: 16px;
}

.sale-report-panel-name {
    color: #1b55e2;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sale-report-panel-count {
    margin-left: auto;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.sale-report-panel-total-row td {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.sale-report-panel-total-label {
    color: #475569;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sale-report-grand-total-row td {
    background: #f8faff;
    border-top: 2px solid #e0e6ed;
    font-weight: 700;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.sale-report-grand-label {
    color: #3b3f5c;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sale-report-placeholder-row td,
.sale-report-empty-row td {
    padding: 0 !important;
    border: none !important;
}

/* Panel Invoice */
.panel-invoice-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-invoice-filter-card {
    margin-bottom: 0;
}

.panel-invoice-actions {
    justify-content: flex-start;
}

.panel-invoice-card {
    margin-bottom: 0;
}

.panel-invoice-table-wrap {
    max-height: calc(100vh - 340px);
    min-height: 280px;
    overflow: auto;
}

.panel-invoice-list-table {
    min-width: 900px;
    table-layout: fixed;
}

.panel-invoice-list-table th:nth-child(1),
.panel-invoice-list-table td:nth-child(1) {
    width: 12%;
}

.panel-invoice-list-table th:nth-child(2),
.panel-invoice-list-table td:nth-child(2) {
    width: 22%;
}

.panel-invoice-list-table th:nth-child(3),
.panel-invoice-list-table td:nth-child(3),
.panel-invoice-list-table th:nth-child(4),
.panel-invoice-list-table td:nth-child(4) {
    width: 12%;
}

.panel-invoice-list-table th:nth-child(5),
.panel-invoice-list-table td:nth-child(5) {
    width: 14%;
}

.panel-invoice-list-table th:nth-child(6),
.panel-invoice-list-table td:nth-child(6) {
    width: 18%;
}

.panel-invoice-list-table th:nth-child(7),
.panel-invoice-list-table td:nth-child(7) {
    width: 10%;
}

.panel-invoice-refno {
    font-weight: 700;
    color: #1b55e2;
}

.panel-invoice-panel-name {
    font-weight: 600;
    color: #3b3f5c;
}

.panel-invoice-amount {
    font-weight: 700;
    color: #0f766e;
    font-variant-numeric: tabular-nums;
}

.panel-invoice-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.panel-invoice-status-paid {
    background: #ecfdf5;
    color: #047857;
}

.panel-invoice-status-pending {
    background: #fff7ed;
    color: #c2410c;
}

.panel-invoice-status-cancelled {
    background: #fef2f2;
    color: #b91c1c;
}

.panel-invoice-status-default {
    background: #eef4ff;
    color: #1b55e2;
}

.panel-invoice-print-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1b55e2 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.panel-invoice-print-link:hover,
.panel-invoice-print-link:focus {
    background: #1b55e2;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(27, 85, 226, 0.25);
}

.panel-invoice-placeholder-row td,
.panel-invoice-empty-row td {
    padding: 0 !important;
    border: none !important;
}

/* Referral Patient */
.referral-patient-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.referral-patient-filter-card,
.referral-patient-card {
    margin-bottom: 0;
}

.referral-patient-actions {
    justify-content: flex-start;
}

.referral-new-btn {
    min-height: 40px;
    height: 40px;
    font-size: 14px;
    font-weight: 600;
    padding: 0 16px;
    white-space: nowrap;
}

.referral-patient-loading {
    height: 32px;
    margin-left: 4px;
}

.referral-patient-table-wrap {
    max-height: calc(100vh - 340px);
    min-height: 280px;
    overflow: auto;
}

.referral-patient-list-table {
    min-width: 920px;
    table-layout: fixed;
}

.referral-patient-list-table th:nth-child(1),
.referral-patient-list-table td:nth-child(1) {
    width: 10%;
}

.referral-patient-list-table th:nth-child(2),
.referral-patient-list-table td:nth-child(2) {
    width: 18%;
}

.referral-patient-list-table th:nth-child(3),
.referral-patient-list-table td:nth-child(3) {
    width: 10%;
}

.referral-patient-list-table th:nth-child(4),
.referral-patient-list-table td:nth-child(4) {
    width: 10%;
}

.referral-patient-list-table th:nth-child(5),
.referral-patient-list-table td:nth-child(5) {
    width: 16%;
}

.referral-patient-list-table th:nth-child(6),
.referral-patient-list-table td:nth-child(6) {
    width: 12%;
}

.referral-patient-list-table th:nth-child(7),
.referral-patient-list-table td:nth-child(7),
.referral-patient-list-table th:nth-child(8),
.referral-patient-list-table td:nth-child(8) {
    width: 12%;
}

.referral-receipt-no {
    font-weight: 700;
    color: #1b55e2;
}

.referral-row-registered {
    background: #f0fdf8 !important;
    box-shadow: inset 4px 0 0 #028286;
}

.referral-row-registered:hover {
    background: #e8faf4 !important;
}

.referral-patient-placeholder-row td,
.referral-patient-empty-row td {
    padding: 0 !important;
    border: none !important;
}

.referral-modal-dialog {
    max-width: 920px;
}

.referral-modal-header {
    border-bottom: 1px solid #ebedf2;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.referral-modal-header .modal-title i {
    color: #1b55e2;
    margin-right: 8px;
}

.referral-modal-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: #888ea8;
}

.referral-modal-body {
    padding: 20px 24px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.referral-form-section {
    background: #f8fafc;
    border: 1px solid #ebedf2;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.referral-form-section-title {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: #3b3f5c;
}

.referral-form-section-title i {
    color: #1b55e2;
    margin-right: 8px;
}

.referral-checkbox-all {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: #eef4ff;
    border: 1px solid #d9e6ff;
    border-radius: 8px;
    font-weight: 600;
    color: #3b3f5c;
    cursor: pointer;
}

.referral-checkbox-all input {
    margin-top: 3px;
}

.referral-service-group {
    margin-bottom: 16px;
}

.referral-service-group:last-child {
    margin-bottom: 0;
}

.referral-service-group-title {
    display: block;
    margin-bottom: 10px;
    color: #3b3f5c;
    font-size: 13px;
}

.referral-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 12px;
    margin-bottom: 10px;
}

.referral-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #515365;
}

.referral-checkbox-item:hover {
    border-color: #c9d5e8;
    background: #f8faff;
}

.referral-checkbox-item input {
    margin: 0;
    flex-shrink: 0;
}

.referral-checkbox-item-wide {
    grid-column: 1 / -1;
    flex-wrap: wrap;
}

.referral-inline-input {
    flex: 1 1 220px;
    min-width: 180px;
    margin-left: 4px;
}

.referral-field-hint {
    margin: 0 0 8px;
    font-size: 12px;
    color: #888ea8;
}

.referral-amount-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.referral-amount-label {
    font-size: 13px;
    color: #515365;
    font-weight: 600;
}

.referral-amount-input {
    max-width: 160px;
}

.referral-remarks {
    resize: vertical;
    min-height: 96px;
}

.referral-form-error {
    margin-top: 8px;
    font-size: 13px;
}

.referral-form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

/* Change Password */
.change-password-section {
    display: flex;
    justify-content: center;
    padding: 8px 0 24px;
}

.change-password-card {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(27, 85, 226, 0.06);
    padding: 24px;
}

.change-password-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ebedf2;
}

.change-password-icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
    color: #1b55e2;
    font-size: 20px;
    border: 1px solid #d9e6ff;
}

.change-password-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #3b3f5c;
}

.change-password-subtitle {
    margin: 0;
    font-size: 13px;
    color: #888ea8;
    line-height: 1.5;
}

.change-password-alert {
    font-size: 14px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.change-password-alert i {
    margin-right: 8px;
}

.change-password-form .form-group {
    margin-bottom: 16px;
}

.change-password-form label {
    color: #3b3f5c;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.change-password-input-group .form-control {
    min-height: 42px;
    height: 42px;
    font-size: 14px;
}

.change-password-input-group .input-group-text {
    background: #fff;
    border-color: #ced4da;
    padding: 0;
}

.change-password-toggle {
    border: 0;
    background: transparent;
    min-width: 42px;
    height: 40px;
    color: #888ea8;
    cursor: pointer;
}

.change-password-toggle:hover {
    color: #1b55e2;
}

.change-password-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #ebedf2;
    font-size: 12px;
    color: #888ea8;
    line-height: 1.5;
}

.change-password-hint i {
    margin-top: 2px;
    color: #1b55e2;
}

.change-password-error {
    min-height: 20px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
}

.change-password-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

/* Feedback UI */
.feedback-ui-section {
    display: flex;
    justify-content: center;
    padding: 8px 0 24px;
}

.feedback-ui-card {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(27, 85, 226, 0.06);
    padding: 24px;
}

.feedback-ui-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ebedf2;
}

.feedback-ui-icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
    color: #1b55e2;
    font-size: 22px;
    border: 1px solid #d9e6ff;
}

.feedback-ui-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #3b3f5c;
}

.feedback-ui-subtitle {
    margin: 0;
    font-size: 13px;
    color: #888ea8;
    line-height: 1.5;
}

.feedback-ui-alert {
    font-size: 14px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.feedback-ui-alert i {
    margin-right: 8px;
}

.feedback-ui-form .form-group {
    margin-bottom: 16px;
}

.feedback-ui-form label {
    color: #3b3f5c;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feedback-ui-optional {
    color: #888ea8;
    font-weight: 500;
    font-size: 12px;
}

.feedback-ui-input-group .form-control {
    min-height: 42px;
    font-size: 14px;
}

.feedback-ui-input-group .input-group-text {
    background: #fff;
    border-color: #ced4da;
    color: #1b55e2;
    min-width: 42px;
    justify-content: center;
}

.feedback-ui-textarea {
    min-height: 140px;
    font-size: 14px;
    resize: vertical;
}

.feedback-ui-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #ebedf2;
    font-size: 12px;
    color: #888ea8;
    line-height: 1.5;
}

.feedback-ui-hint i {
    margin-top: 2px;
    color: #1b55e2;
}

.feedback-ui-actions,
.feedback-ui-success-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

.panel-app-page .feedback-ui-card {
    border-color: var(--panel-border);
    box-shadow: 0 2px 10px rgba(27, 85, 226, 0.08);
}

.panel-app-page .feedback-ui-title {
    color: var(--panel-text-primary);
}

.panel-app-page .feedback-ui-subtitle,
.panel-app-page .feedback-ui-hint {
    color: #64748b;
}

.panel-app-page .feedback-ui-form label {
    color: var(--panel-text-primary);
}

@media (max-width: 767px) {
    .header-container.panel-header-top {
        padding-top: 8px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .panel-top-navbar {
        min-height: 50px;
        border-radius: 6px;
    }

    .panel-top-navbar .panel-sidebar-toggle,
    .panel-top-navbar .navbar .sidebarCollapse {
        margin-left: 8px;
        margin-right: 4px;
        width: 36px;
        height: 36px;
    }

    .panel-navbar-page-title {
        margin: 0 6px;
        padding-left: 8px;
    }

    .panel-navbar-page-title h3 {
        max-width: min(240px, 34vw);
        font-size: 14px;
    }

    .panel-navbar-actions {
        padding-right: 4px;
        max-width: 52%;
    }

    .panel-navbar-userinfo {
        max-width: min(280px, 48vw);
        padding: 5px 10px;
    }

    .panel-navbar-username {
        font-size: 12px;
    }

    .panel-navbar-orgname {
        font-size: 9px;
        line-height: 1.35;
    }

    .visit-results-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .visit-list-search-wrap {
        width: 100%;
        max-width: none;
        align-items: stretch;
    }

    .patient-visit-table-search-label {
        text-align: left;
    }

    .patient-visit-table-search-row {
        flex-direction: row;
    }

    .service-price-filters {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .service-price-panel-filter,
    .service-price-search-wrap {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
    }

    .service-price-table-wrap {
        max-height: calc(100vh - 420px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .patient-visit-table-wrap,
    .search-patient-table-wrap {
        max-height: calc(100vh - 460px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .panel-app-page .patient-visit-table-wrap {
        max-height: none;
        overflow-y: visible;
    }

    .search-patient-results-filter {
        width: 100%;
        max-width: none;
        align-items: stretch;
    }

    .sale-report-table-wrap {
        max-height: calc(100vh - 520px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sale-report-results-filter {
        width: 100%;
        max-width: none;
        align-items: stretch;
    }

    .sale-report-actions {
        width: 100%;
    }

    .panel-invoice-actions {
        width: 100%;
    }

    .panel-invoice-table-wrap {
        max-height: calc(100vh - 520px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .referral-patient-table-wrap {
        max-height: calc(100vh - 420px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .referral-patient-actions {
        width: 100%;
    }

    .referral-patient-results-filter {
        width: 100%;
        max-width: none;
        align-items: stretch;
    }

    .referral-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .referral-form-footer {
        flex-direction: column;
    }

    .referral-form-footer .btn {
        width: 100%;
    }

    .change-password-card {
        padding: 18px 16px;
    }

    .change-password-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .change-password-actions {
        flex-direction: column;
    }

    .change-password-actions .btn {
        width: 100%;
    }

    .feedback-ui-card {
        padding: 18px 16px;
    }

    .feedback-ui-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .feedback-ui-actions,
    .feedback-ui-success-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .feedback-ui-actions .btn,
    .feedback-ui-success-actions .btn {
        width: 100%;
    }

    .visit-detail-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .visit-detail-close-btn {
        width: 100%;
    }

    .visit-info-cards {
        grid-template-columns: 1fr;
    }

    .visit-section-header-split .visit-dl-all-btn {
        width: 100%;
    }

    .visit-list-table thead th,
    .visit-list-table tbody td,
    .search-patient-list-table thead th,
    .search-patient-list-table tbody td,
    .sale-report-list-table thead th,
    .sale-report-list-table tbody td,
    .panel-invoice-list-table thead th,
    .panel-invoice-list-table tbody td,
    .referral-patient-list-table thead th,
    .referral-patient-list-table tbody td,
    .service-price-list-table thead th,
    .service-price-list-table tbody td {
        padding: 10px 8px;
        font-size: 12px;
        line-height: 1.35;
    }

    .visit-list-table thead th,
    .search-patient-list-table thead th,
    .sale-report-list-table thead th,
    .panel-invoice-list-table thead th,
    .referral-patient-list-table thead th,
    .service-price-list-table thead th,
    .covid-report-table thead th {
        position: static !important;
        top: auto !important;
        z-index: 1 !important;
        white-space: normal !important;
        word-break: break-word;
        vertical-align: middle;
    }

    .visit-list-table tbody td,
    .search-patient-list-table tbody td,
    .sale-report-list-table tbody td,
    .panel-invoice-list-table tbody td,
    .referral-patient-list-table tbody td,
    .service-price-list-table tbody td {
        white-space: normal;
        word-break: break-word;
    }

    .visit-list-table,
    .search-patient-list-table,
    .sale-report-list-table,
    .panel-invoice-list-table,
    .referral-patient-list-table,
    .service-price-list-table,
    .covid-report-table {
        table-layout: auto;
    }
}

@media (max-width: 575px) {
    .panel-navbar-page-title h3 {
        max-width: min(180px, 38vw);
        font-size: 13px;
    }

    .panel-navbar-username {
        display: none;
    }

    .panel-navbar-userinfo {
        max-width: min(200px, 52vw);
        padding: 4px 8px;
    }

    .panel-navbar-orgname {
        font-size: 9px;
        line-height: 1.35;
    }

    .panel-user-dropdown-toggle {
        gap: 0;
    }
}

/* COVID Report */
.covid-report-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.covid-report-filter-card {
    margin-bottom: 0;
}

.covid-report-filter-header {
    margin-bottom: 14px;
}

.covid-report-filter-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #3b3f5c;
}

.covid-report-filter-title i {
    color: #1b55e2;
    margin-right: 8px;
}

.covid-report-filter-desc {
    margin: 4px 0 0;
    font-size: 12px;
    color: #888ea8;
}

.covid-datetime-group .covid-datetime-input {
    height: 40px;
    font-size: 14px;
    background: #fff;
}

.covid-datetime-group .input-group-text {
    cursor: pointer;
    height: 40px;
    padding: 0 14px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.covid-report-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.covid-report-excel-btn {
    height: 40px;
    font-weight: 600;
}

.covid-report-loading {
    height: 32px;
    width: 32px;
}

.covid-report-info-alert {
    margin-bottom: 0;
}

.covid-report-card {
    margin-bottom: 0;
}

.covid-report-table-wrap {
    max-height: calc(100vh - 340px);
    overflow: auto;
}

.covid-report-table tbody td {
    font-size: 13px;
    color: var(--panel-text-primary, #0f172a);
    font-weight: 500;
    vertical-align: middle;
    white-space: nowrap;
    border-top-color: var(--panel-border, #cbd5e1);
}

.covid-report-table tbody tr:hover {
    background: #f8fbff;
}

.covid-result-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.covid-result-positive {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.covid-result-negative {
    background: #e8f8ef;
    color: #1e7e46;
    border: 1px solid #b8e6c8;
}

.covid-result-neutral {
    background: #eef4ff;
    color: #1b55e2;
    border: 1px solid #d9e6ff;
}

.covid-report-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.covid-report-status-pending {
    color: #888ea8;
}

.covid-report-status-due {
    color: #e7515a;
}

.covid-report-download-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #1b55e2;
    white-space: nowrap;
}

.covid-report-download-link:hover {
    color: #4361ee;
    text-decoration: none;
}

.covid-dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #eef1f6;
    background: #fafbfc;
}

.covid-dt-toolbar .dataTables_filter input {
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    min-width: 200px;
}

.covid-dt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px 14px;
    border-top: 1px solid #eef1f6;
    background: #fafbfc;
    font-size: 13px;
    color: #888ea8;
}

@media (max-width: 767px) {
    .covid-report-actions {
        width: 100%;
    }

    .covid-report-actions .btn {
        flex: 1 1 auto;
    }

    .covid-report-table-wrap {
        max-height: calc(100vh - 420px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Visit services modal (per-service report downloads) */
.visit-services-modal-dialog {
    max-width: 900px;
}

.visit-services-loading {
    text-align: center;
    padding: 2rem 1rem;
    color: #888ea8;
}

.visit-services-loading p {
    margin: 0.75rem 0 0;
    font-size: 13px;
}

.visit-services-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef1f6;
}

.visit-services-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
}

.visit-services-meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #888ea8;
    margin-bottom: 2px;
}

.visit-services-meta-value {
    font-size: 14px;
    color: #3b3f5c;
}

.visit-services-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: 0.75rem;
}

.visit-services-bulk-label {
    font-size: 13px;
    color: #3b3f5c;
}

.visit-services-table-wrap {
    border: 1px solid #eef1f6;
    border-radius: 6px;
}

.visit-services-table thead th {
    background: #f8f9fb;
    border-bottom: 1px solid #eef1f6;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #888ea8;
    white-space: nowrap;
}

.visit-services-table tbody td {
    vertical-align: middle;
    font-size: 13px;
    color: #3b3f5c;
}

.visit-services-report-col {
    min-width: 140px;
    white-space: nowrap;
}

.visit-services-dl-all {
    font-size: 11px;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
}

.visit-services-dl-link {
    font-size: 13px;
    font-weight: 500;
}

.visit-services-pending {
    font-size: 12px;
    color: #e2a03f;
}

.visit-services-unavailable {
    font-size: 12px;
}

.visit-services-alert {
    font-size: 13px;
}
