/* ========================================================================== */
/* HealthCheck - Shared stylesheet                                            */
/*                                                                            */
/* Put ALL shared page styling in this file.                                  */
/* Avoid <style> blocks in .aspx and .master pages.                           */
/* ========================================================================== */

:root {
    --hc-sidebar-width: 270px;
    --hc-sidebar-bg: #111827;
    --hc-sidebar-bg-deep: #0f172a;
    --hc-sidebar-text: #cbd5e1;
    --hc-sidebar-muted: #7f8da3;
    --hc-sidebar-hover: rgba(255, 255, 255, 0.08);

    --hc-accent: #2563eb;
    --hc-accent-hover: #1d4ed8;
    --hc-accent-soft: #eff6ff;
    --hc-accent-border: #bfdbfe;

    --hc-success: #15803d;
    --hc-success-soft: #f0fdf4;
    --hc-success-border: #bbf7d0;

    --hc-warning: #a16207;
    --hc-warning-soft: #fffbeb;
    --hc-warning-border: #fde68a;

    --hc-danger: #b91c1c;
    --hc-danger-soft: #fef2f2;
    --hc-danger-border: #fecaca;

    --hc-info: #0369a1;
    --hc-info-soft: #f0f9ff;
    --hc-info-border: #bae6fd;

    --hc-page-bg: #f4f7fb;
    --hc-card-bg: #ffffff;
    --hc-text: #172033;
    --hc-muted: #64748b;
    --hc-border: #e3e9f1;
    --hc-border-strong: #cbd5e1;
    --hc-input-bg: #ffffff;

    --hc-radius-sm: 8px;
    --hc-radius: 12px;
    --hc-radius-lg: 16px;

    --hc-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --hc-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    --hc-shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* -------------------------------------------------------------------------- */
/* Reset and base                                                             */
/* -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--hc-page-bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--hc-text);
    background: var(--hc-page-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    max-width: 100%;
}

a {
    color: var(--hc-accent);
}

a:hover,
a:focus {
    color: var(--hc-accent-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--hc-text);
    line-height: 1.25;
}

hr {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--hc-border);
}

.hc-form,
.hc-layout {
    min-height: 100vh;
}

/* -------------------------------------------------------------------------- */
/* Sidebar                                                                    */
/* -------------------------------------------------------------------------- */

.hc-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    width: var(--hc-sidebar-width);
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--hc-sidebar-bg) 0%, var(--hc-sidebar-bg-deep) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 12px 0 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease;
}

.hc-brand {
    display: flex;
    min-height: 88px;
    align-items: center;
    gap: 13px;
    padding: 20px 22px;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hc-brand:hover,
.hc-brand:focus {
    color: #ffffff;
    text-decoration: none;
}

.hc-brand-mark {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(145deg, #3b82f6, var(--hc-accent));
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
}

.hc-brand-mark svg {
    width: 24px;
    height: 24px;
}

.hc-brand-copy {
    min-width: 0;
}

.hc-brand-name {
    display: block;
    overflow: hidden;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hc-brand-subtitle {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #8ea0bb;
    font-size: 0.76rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hc-nav {
    flex: 1 1 auto;
    padding: 20px 14px;
}

.hc-nav-section + .hc-nav-section {
    margin-top: 23px;
}

.hc-nav-caption {
    padding: 0 12px 9px;
    color: var(--hc-sidebar-muted);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hc-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hc-nav-item {
    margin: 3px 0;
}

.hc-nav-link {
    position: relative;
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    color: var(--hc-sidebar-text);
    font-size: 0.93rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.hc-nav-link:hover,
.hc-nav-link:focus {
    color: #ffffff;
    background: var(--hc-sidebar-hover);
    text-decoration: none;
}

.hc-nav-link.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.72));
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.19);
}

.hc-nav-link.active::before {
    position: absolute;
    top: 11px;
    bottom: 11px;
    left: -14px;
    width: 3px;
    background: #93c5fd;
    border-radius: 0 4px 4px 0;
    content: "";
}

.hc-nav-icon {
    display: inline-flex;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}

.hc-nav-icon svg {
    width: 20px;
    height: 20px;
}

.hc-sidebar-footer {
    padding: 17px 21px 20px;
    color: #7f8da3;
    font-size: 0.76rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.hc-sidebar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b7c3d4;
    font-weight: 600;
}

.hc-sidebar-version {
    margin-top: 4px;
}

.hc-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
}

.hc-status-dot-online {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.13);
}

/* -------------------------------------------------------------------------- */
/* Main layout                                                                */
/* -------------------------------------------------------------------------- */

.hc-main {
    display: flex;
    min-height: 100vh;
    margin-left: var(--hc-sidebar-width);
    flex-direction: column;
}

.hc-mobile-header {
    display: none;
}

.hc-content-shell {
    width: 100%;
    flex: 1 1 auto;
    padding: 32px 38px 28px;
}

.hc-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.hc-page-title {
    margin: 0;
    color: var(--hc-text);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
}

.hc-page-subtitle {
    margin-top: 5px;
    color: var(--hc-muted);
    font-size: 0.9rem;
}

.hc-content {
    width: 100%;
    min-width: 0;
}

.hc-footer {
    padding: 18px 38px 24px;
    color: #8591a4;
    font-size: 0.79rem;
}

.hc-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 17px;
    border-top: 1px solid var(--hc-border);
}

/* -------------------------------------------------------------------------- */
/* Cards and page sections                                                    */
/* -------------------------------------------------------------------------- */

.hc-card,
.page-card,
.section-card,
.card,
.panel,
.well,
.jumbotron {
    background: var(--hc-card-bg);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow);
}

.hc-card,
.page-card,
.section-card {
    padding: 22px;
}

.hc-card + .hc-card,
.page-card + .page-card,
.section-card + .section-card {
    margin-top: 20px;
}

.hc-card-header,
.page-header,
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -2px 0 18px;
}

.hc-card-title,
.section-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.hc-card-subtitle,
.section-subtitle {
    margin-top: 4px;
    color: var(--hc-muted);
    font-size: 0.86rem;
}

.hc-grid-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

.hc-col-12 { grid-column: span 12; }
.hc-col-9  { grid-column: span 9; }
.hc-col-8  { grid-column: span 8; }
.hc-col-6  { grid-column: span 6; }
.hc-col-4  { grid-column: span 4; }
.hc-col-3  { grid-column: span 3; }

/* -------------------------------------------------------------------------- */
/* Forms                                                                      */
/* -------------------------------------------------------------------------- */

.hc-form-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.hc-field {
    grid-column: span 12;
}

.hc-field-6 {
    grid-column: span 6;
}

.hc-field-4 {
    grid-column: span 4;
}

.hc-field-3 {
    grid-column: span 3;
}

.hc-label,
.hc-content label {
    display: inline-block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 650;
}

.hc-content input[type="text"],
.hc-content input[type="password"],
.hc-content input[type="email"],
.hc-content input[type="number"],
.hc-content input[type="date"],
.hc-content input[type="datetime-local"],
.hc-content input[type="time"],
.hc-content input[type="search"],
.hc-content input[type="url"],
.hc-content select,
.hc-content textarea,
.hc-input,
.form-control {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--hc-text);
    background: var(--hc-input-bg);
    border: 1px solid var(--hc-border-strong);
    border-radius: var(--hc-radius-sm);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hc-content textarea,
textarea.hc-input {
    min-height: 100px;
    resize: vertical;
}

.hc-content input:focus,
.hc-content select:focus,
.hc-content textarea:focus,
.hc-input:focus,
.form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hc-help-text,
.form-text {
    display: block;
    margin-top: 5px;
    color: var(--hc-muted);
    font-size: 0.78rem;
}

.hc-validation,
.field-validation-error,
.validation-summary-errors {
    color: var(--hc-danger);
    font-size: 0.8rem;
    font-weight: 600;
}

.hc-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.hc-btn,
.btn,
.hc-content input[type="submit"],
.hc-content input[type="button"],
.hc-content button:not(.hc-menu-button) {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    color: #334155;
    background: #ffffff;
    border: 1px solid var(--hc-border-strong);
    border-radius: var(--hc-radius-sm);
    font: inherit;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.hc-btn:hover,
.btn:hover,
.hc-content input[type="submit"]:hover,
.hc-content input[type="button"]:hover,
.hc-content button:not(.hc-menu-button):hover {
    background: #f8fafc;
    border-color: #94a3b8;
    text-decoration: none;
}

.hc-btn:active,
.btn:active,
.hc-content input[type="submit"]:active,
.hc-content input[type="button"]:active,
.hc-content button:not(.hc-menu-button):active {
    transform: translateY(1px);
}

.hc-btn-primary,
.btn-primary {
    color: #ffffff !important;
    background: var(--hc-accent) !important;
    border-color: var(--hc-accent) !important;
}

.hc-btn-primary:hover,
.btn-primary:hover {
    background: var(--hc-accent-hover) !important;
    border-color: var(--hc-accent-hover) !important;
}

.hc-btn-danger,
.btn-danger {
    color: #ffffff !important;
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

.hc-btn-danger:hover,
.btn-danger:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

.hc-btn-success,
.btn-success {
    color: #ffffff !important;
    background: #16a34a !important;
    border-color: #16a34a !important;
}

.hc-btn-sm,
.btn-sm {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.82rem;
}

/* -------------------------------------------------------------------------- */
/* Tables / ASP.NET GridView                                                  */
/* -------------------------------------------------------------------------- */

.hc-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
}

.hc-table,
.hc-grid,
.doit-grid,
.hc-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.hc-table th,
.hc-grid th,
.doit-grid th,
.hc-content table th {
    padding: 11px 13px;
    color: #475569;
    background: #f8fafc;
    border-bottom: 1px solid var(--hc-border);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.035em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.hc-table td,
.hc-grid td,
.doit-grid td,
.hc-content table td {
    padding: 11px 13px;
    color: #334155;
    background: #ffffff;
    border-bottom: 1px solid #edf1f5;
    vertical-align: middle;
}

.hc-table tr:last-child td,
.hc-grid tr:last-child td,
.doit-grid tr:last-child td,
.hc-content table tr:last-child td {
    border-bottom: 0;
}

.hc-table tbody tr:hover td,
.hc-grid tr:hover td,
.doit-grid tr:hover td {
    background: #f8fbff;
}

.hc-grid a,
.doit-grid a {
    font-weight: 600;
    text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* Status badges                                                              */
/* -------------------------------------------------------------------------- */

.hc-badge,
.badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border: 1px solid var(--hc-border);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.hc-badge-success {
    color: var(--hc-success);
    background: var(--hc-success-soft);
    border-color: var(--hc-success-border);
}

.hc-badge-warning {
    color: var(--hc-warning);
    background: var(--hc-warning-soft);
    border-color: var(--hc-warning-border);
}

.hc-badge-danger {
    color: var(--hc-danger);
    background: var(--hc-danger-soft);
    border-color: var(--hc-danger-border);
}

.hc-badge-info {
    color: var(--hc-info);
    background: var(--hc-info-soft);
    border-color: var(--hc-info-border);
}

.hc-badge-neutral {
    color: #475569;
    background: #f8fafc;
    border-color: var(--hc-border);
}

/* -------------------------------------------------------------------------- */
/* Alerts                                                                     */
/* -------------------------------------------------------------------------- */

.hc-alert,
.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    color: #334155;
    background: #ffffff;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
}

.hc-alert-success,
.alert-success {
    color: var(--hc-success);
    background: var(--hc-success-soft);
    border-color: var(--hc-success-border);
}

.hc-alert-warning,
.alert-warning {
    color: var(--hc-warning);
    background: var(--hc-warning-soft);
    border-color: var(--hc-warning-border);
}

.hc-alert-danger,
.alert-danger {
    color: var(--hc-danger);
    background: var(--hc-danger-soft);
    border-color: var(--hc-danger-border);
}

.hc-alert-info,
.alert-info {
    color: var(--hc-info);
    background: var(--hc-info-soft);
    border-color: var(--hc-info-border);
}

/* -------------------------------------------------------------------------- */
/* KPI cards                                                                  */
/* -------------------------------------------------------------------------- */

.hc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.hc-kpi {
    min-width: 0;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow-sm);
}

.hc-kpi-label {
    color: var(--hc-muted);
    font-size: 0.78rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hc-kpi-value {
    margin-top: 7px;
    color: var(--hc-text);
    font-size: 1.65rem;
    font-weight: 750;
    line-height: 1.1;
}

.hc-kpi-meta {
    margin-top: 6px;
    color: var(--hc-muted);
    font-size: 0.8rem;
}

/* -------------------------------------------------------------------------- */
/* Login / centered forms                                                     */
/* -------------------------------------------------------------------------- */

.hc-login-wrap {
    display: flex;
    min-height: calc(100vh - 220px);
    align-items: center;
    justify-content: center;
    padding: 25px 0;
}

.hc-login-card {
    width: 100%;
    max-width: 440px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--hc-border);
    border-radius: 18px;
    box-shadow: var(--hc-shadow-lg);
}

/* -------------------------------------------------------------------------- */
/* Utility classes                                                            */
/* -------------------------------------------------------------------------- */

.hc-muted { color: var(--hc-muted) !important; }
.hc-text-success { color: var(--hc-success) !important; }
.hc-text-warning { color: var(--hc-warning) !important; }
.hc-text-danger { color: var(--hc-danger) !important; }
.hc-text-info { color: var(--hc-info) !important; }

.hc-mt-0 { margin-top: 0 !important; }
.hc-mt-1 { margin-top: 8px !important; }
.hc-mt-2 { margin-top: 16px !important; }
.hc-mt-3 { margin-top: 24px !important; }
.hc-mb-0 { margin-bottom: 0 !important; }
.hc-mb-1 { margin-bottom: 8px !important; }
.hc-mb-2 { margin-bottom: 16px !important; }
.hc-mb-3 { margin-bottom: 24px !important; }

.hc-flex {
    display: flex;
}

.hc-flex-wrap {
    flex-wrap: wrap;
}

.hc-items-center {
    align-items: center;
}

.hc-justify-between {
    justify-content: space-between;
}

.hc-gap-1 { gap: 8px; }
.hc-gap-2 { gap: 16px; }
.hc-gap-3 { gap: 24px; }

.hc-hidden {
    display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Mobile navigation                                                          */
/* -------------------------------------------------------------------------- */

.hc-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1035;
    display: none;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(15, 23, 42, 0.55);
    border: 0;
    cursor: default;
    backdrop-filter: blur(2px);
}

.hc-mobile-brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hc-mobile-brand-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--hc-accent);
    border-radius: 9px;
}

.hc-mobile-brand-mark svg {
    width: 19px;
    height: 19px;
}

.hc-mobile-brand {
    color: var(--hc-text);
    font-size: 1rem;
    font-weight: 700;
}

.hc-menu-button {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #334155;
    background: #ffffff;
    border: 1px solid var(--hc-border);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
    cursor: pointer;
}

.hc-menu-button svg {
    width: 22px;
    height: 22px;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .hc-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .hc-sidebar {
        transform: translateX(-100%);
    }

    body.hc-sidebar-open .hc-sidebar {
        transform: translateX(0);
    }

    body.hc-sidebar-open .hc-sidebar-overlay {
        display: block;
    }

    body.hc-sidebar-open {
        overflow: hidden;
    }

    .hc-main {
        margin-left: 0;
    }

    .hc-mobile-header {
        position: sticky;
        top: 0;
        z-index: 1025;
        display: flex;
        min-height: 68px;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        background: rgba(244, 247, 251, 0.94);
        border-bottom: 1px solid var(--hc-border);
        backdrop-filter: blur(8px);
    }

    .hc-content-shell {
        padding: 25px 20px 22px;
    }

    .hc-footer {
        padding: 14px 20px 20px;
    }

    .hc-col-9,
    .hc-col-8,
    .hc-col-6,
    .hc-col-4,
    .hc-col-3 {
        grid-column: span 12;
    }
}

@media (max-width: 767.98px) {
    .hc-page-header,
    .hc-card-header,
    .page-header,
    .section-header {
        display: block;
    }

    .hc-field-6,
    .hc-field-4,
    .hc-field-3 {
        grid-column: span 12;
    }

    .hc-kpi-grid {
        grid-template-columns: 1fr;
    }

    .hc-table-wrap {
        overflow-x: auto;
    }
}

@media (max-width: 575.98px) {
    .hc-sidebar {
        width: min(86vw, 290px);
    }

    .hc-content-shell {
        padding: 20px 14px 18px;
    }

    .hc-footer {
        padding-right: 14px;
        padding-left: 14px;
    }

    .hc-footer-inner {
        display: block;
    }

    .hc-footer-inner > div + div {
        margin-top: 5px;
    }

    .hc-card,
    .page-card,
    .section-card {
        padding: 17px;
        border-radius: 13px;
    }
}

/* -------------------------------------------------------------------------- */
/* Print                                                                      */
/* -------------------------------------------------------------------------- */

@media print {
    .hc-sidebar,
    .hc-mobile-header,
    .hc-footer,
    .hc-sidebar-overlay {
        display: none !important;
    }

    .hc-main {
        margin-left: 0 !important;
    }

    .hc-content-shell {
        padding: 0 !important;
    }

    .hc-card,
    .page-card,
    .section-card {
        box-shadow: none !important;
    }
}

/* -------------------------------------------------------------------------- */
/* Compatibility helpers for default Visual Studio WebForms markup            */
/* -------------------------------------------------------------------------- */

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.row > [class*="col-"] {
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
}

.col-md-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-9  { flex: 0 0 75%; max-width: 75%; }
.col-md-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-md-6  { flex: 0 0 50%; max-width: 50%; }
.col-md-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-3  { flex: 0 0 25%; max-width: 25%; }

.lead {
    color: #475569;
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.65;
}

.form-group {
    margin-bottom: 16px;
}

.control-label {
    display: inline-block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 650;
}

.text-danger {
    color: var(--hc-danger) !important;
}

.text-success {
    color: var(--hc-success) !important;
}

.text-muted {
    color: var(--hc-muted) !important;
}

.btn-default {
    color: #334155 !important;
    background: #ffffff !important;
    border-color: var(--hc-border-strong) !important;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    padding: 11px 13px;
    border-top: 1px solid #edf1f5;
}

.table > thead > tr > th {
    border-top: 0;
    border-bottom: 1px solid var(--hc-border);
}

@media (max-width: 767.98px) {
    .col-md-12,
    .col-md-9,
    .col-md-8,
    .col-md-6,
    .col-md-4,
    .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* -------------------------------------------------------------------------- */
/* WAN IP / access denied                                                     */
/* -------------------------------------------------------------------------- */

.hc-sidebar-ip {
    margin-top: 9px;
    color: #8ea0bb;
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

.hc-sidebar-ip span {
    color: #c7d2e1;
    font-weight: 600;
}

.hc-access-denied-body {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--hc-page-bg);
}

.hc-access-denied-shell {
    width: 100%;
    max-width: 560px;
}

.hc-access-denied-card {
    padding: 42px;
    text-align: center;
    background: var(--hc-card-bg);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow-lg);
}

.hc-access-denied-icon {
    display: inline-flex;
    width: 74px;
    height: 74px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--hc-danger);
    background: var(--hc-danger-soft);
    border: 1px solid var(--hc-danger-border);
    border-radius: 22px;
}

.hc-access-denied-icon svg {
    width: 38px;
    height: 38px;
}

.hc-access-denied-code {
    margin-bottom: 6px;
    color: var(--hc-danger);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hc-access-denied-card h1 {
    margin: 0 0 12px;
    font-size: 2rem;
}

.hc-access-denied-card > p {
    margin: 0 auto;
    max-width: 430px;
    color: var(--hc-muted);
}

.hc-access-denied-ip {
    margin: 26px 0 20px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
}

.hc-access-denied-ip span,
.hc-access-denied-ip strong {
    display: block;
}

.hc-access-denied-ip span {
    margin-bottom: 4px;
    color: var(--hc-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hc-access-denied-ip strong {
    color: var(--hc-text);
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.hc-access-denied-card .hc-access-denied-help {
    font-size: 0.88rem;
}

@media (max-width: 600px) {
    .hc-access-denied-body {
        padding: 16px;
    }

    .hc-access-denied-card {
        padding: 30px 22px;
    }

    .hc-access-denied-card h1 {
        font-size: 1.7rem;
    }
}

/* ========================================================================== */
/* HealthCheck authentication / OTP                                           */
/* ========================================================================== */

.hc-auth-card,
.hc-setup-card {
    max-width: 520px;
}

.hc-auth-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.hc-auth-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(145deg, #3b82f6, var(--hc-accent));
    border-radius: 15px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.hc-auth-icon svg {
    width: 27px;
    height: 27px;
}

.hc-auth-title {
    margin: 0;
    font-size: 1.35rem;
}

.hc-auth-subtitle {
    margin: 5px 0 0;
    color: var(--hc-muted);
    font-size: 0.86rem;
}

.hc-auth-hint {
    margin-top: 4px;
    padding: 10px 12px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-sm);
    font-size: 0.8rem;
}

.hc-auth-message,
.LoginMessage {
    display: block;
    margin-bottom: 18px;
}

.LoginMessage:empty {
    display: none;
}

.LoginMessage.LoginError {
    padding: 12px 14px;
    color: var(--hc-danger);
    background: var(--hc-danger-soft);
    border: 1px solid var(--hc-danger-border);
    border-radius: var(--hc-radius);
}

.LoginMessage.LoginOK {
    padding: 12px 14px;
    color: var(--hc-success);
    background: var(--hc-success-soft);
    border: 1px solid var(--hc-success-border);
    border-radius: var(--hc-radius);
}

.hc-btn-block {
    width: 100%;
}

.hc-otp-heading {
    margin-bottom: 20px;
}

.hc-otp-heading h3 {
    margin: 12px 0 6px;
}

.hc-otp-heading p {
    margin: 0;
    color: var(--hc-muted);
}

.hc-otp-input {
    max-width: 220px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: 0.2em;
    text-align: center;
}

.hc-auth-success {
    text-align: center;
}

.hc-auth-success h3 {
    margin: 10px 0 5px;
}

.hc-auth-success p {
    margin: 0 0 18px;
    color: var(--hc-muted);
}

.hc-auth-success-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #16a34a;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.22);
}

.hc-account-details {
    margin: 22px 0 0;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    overflow: hidden;
}

.hc-account-details > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 13px;
    border-bottom: 1px solid var(--hc-border);
}

.hc-account-details > div:last-child {
    border-bottom: 0;
}

.hc-account-details dt {
    color: var(--hc-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.hc-account-details dd {
    margin: 0;
    color: var(--hc-text);
    font-weight: 650;
}

.hc-setup-steps {
    margin: 12px 0 20px 20px;
    padding: 0;
    color: #475569;
    line-height: 1.75;
}

.hc-qr-wrap {
    display: flex;
    justify-content: center;
    margin: 18px 0;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
}

.hc-qr-image {
    width: 230px;
    height: 230px;
    image-rendering: auto;
}

.hc-manual-key {
    padding: 12px;
    overflow-wrap: anywhere;
    color: #172033;
    background: #f8fafc;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-sm);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-align: center;
}

.hc-sidebar-user {
    margin-bottom: 14px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
}

.hc-sidebar-user-name {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hc-sidebar-user-meta {
    margin-top: 3px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 650px) {
    .hc-login-card,
    .hc-auth-card,
    .hc-setup-card {
        padding: 22px 18px;
    }

    .hc-auth-header {
        align-items: flex-start;
    }

    .hc-account-details > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .hc-qr-image {
        width: 200px;
        height: 200px;
    }
}

/* -------------------------------------------------------------------------- */
/* User administration                                                        */
/* -------------------------------------------------------------------------- */
.hc-form-actions-compact {
    margin-top: 0;
}

.hc-checkbox-field {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding-top: 22px;
}

.hc-checkbox-field label {
    margin-bottom: 0;
}

.hc-table-wrap-spaced {
    margin-top: 18px;
}

.hc-user-message {
    display: block;
}

.hc-mono-input {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.82rem;
}

.hc-user-otp-details {
    margin-bottom: 18px;
}

.hc-user-otp-link-field {
    margin-top: 8px;
}

@media (max-width: 760px) {
    .hc-checkbox-field {
        padding-top: 0;
    }
}
.hc-field-2 {
    grid-column: span 2;
}


/* -------------------------------------------------------------------------- */
/* Version Info - DoITnet compatible rich release history                    */
/* -------------------------------------------------------------------------- */
.version-message {
            display: block;
            margin-bottom: 18px;
            padding: 12px 15px;
            border-radius: 8px;
            font-weight: 600;
        }

        .version-message.success {
            color: #155724;
            background-color: #d4edda;
            border: 1px solid #c3e6cb;
        }

        .version-message.error {
            color: #721c24;
            background-color: #f8d7da;
            border: 1px solid #f5c6cb;
        }

        .version-message.info {
            color: #0c5460;
            background-color: #d1ecf1;
            border: 1px solid #bee5eb;
        }

        .version-admin-banner {
            margin-bottom: 20px;
            padding: 14px 16px;
            color: #17384f;
            background: #eef7fc;
            border: 1px solid #c7e3f1;
            border-radius: 9px;
        }

        .version-form-grid {
            display: grid;
            grid-template-columns: minmax(180px, 0.35fr) minmax(260px, 0.65fr);
            gap: 16px;
            margin-bottom: 18px;
        }

        .version-field {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .version-field label,
        .version-enabled-label {
            font-weight: 700;
            color: #243847;
        }

        .version-input {
            width: 100%;
            min-height: 40px;
            padding: 9px 11px;
            border: 1px solid #cbd5df;
            border-radius: 7px;
            background: #ffffff;
        }

        .version-enabled-row {
            display: flex;
            align-items: center;
            gap: 9px;
            margin: 0 0 18px 0;
        }

        .version-editor-toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            margin-bottom: 8px;
            padding: 10px;
            background: #f4f7fa;
            border: 1px solid #d8e0e7;
            border-radius: 8px 8px 0 0;
        }

        .version-editor-toolbar button,
        .version-editor-toolbar select,
        .version-editor-toolbar input[type="color"] {
            min-height: 34px;
            padding: 5px 9px;
            color: #243847;
            background: #ffffff;
            border: 1px solid #c5d0d9;
            border-radius: 6px;
            cursor: pointer;
        }

        .version-editor-toolbar button:hover {
            background: #edf3f7;
        }

        .version-html-editor,
        .version-source-editor {
            box-sizing: border-box;
            width: 100%;
            min-height: 300px;
            padding: 16px;
            color: #202b33;
            background: #ffffff;
            border: 1px solid #cbd5df;
            border-radius: 0 0 8px 8px;
            overflow: auto;
        }

        .version-html-editor:focus,
        .version-source-editor:focus {
            outline: 2px solid rgba(31, 111, 159, 0.18);
            border-color: #1f6f9f;
        }

        .version-source-editor {
            display: none;
            resize: vertical;
            font-family: Consolas, "Courier New", monospace;
            white-space: pre;
        }

        .version-editor-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 14px;
        }

        .version-admin-list {
            margin-top: 22px;
        }

        .version-history {
            display: grid;
            gap: 18px;
        }

        .version-entry {
            overflow: hidden;
            background: #ffffff;
            border: 1px solid #dbe3e9;
            border-radius: 11px;
            box-shadow: 0 5px 16px rgba(25, 52, 70, 0.06);
        }

        .version-entry-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            padding: 18px 20px;
            background: linear-gradient(135deg, #f5f9fc, #edf5f9);
            border-bottom: 1px solid #dbe3e9;
        }

        .version-entry-header h2 {
            margin: 4px 0 0 0;
            font-size: 22px;
            color: #17384f;
        }

        .version-number {
            display: inline-block;
            padding: 4px 9px;
            color: #ffffff;
            background: #1f6f9f;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.02em;
        }

        .version-meta {
            color: #60717d;
            font-size: 13px;
            text-align: right;
            white-space: nowrap;
        }

        .version-entry-body {
            padding: 20px;
            line-height: 1.65;
            overflow-wrap: anywhere;
        }

        .version-entry-body img {
            max-width: 100%;
            height: auto;
        }

        .version-entry-body table {
            max-width: 100%;
            border-collapse: collapse;
        }

        .version-entry-body th,
        .version-entry-body td {
            padding: 7px 9px;
            border: 1px solid #cfd8df;
        }

        .version-empty {
            padding: 24px;
            color: #60717d;
            background: #f8fafb;
            border: 1px dashed #cbd5df;
            border-radius: 9px;
            text-align: center;
        }

        .version-grid {
            width: 100%;
            border-collapse: collapse;
        }

        .version-grid th,
        .version-grid td {
            padding: 10px 11px;
            border-bottom: 1px solid #e0e6eb;
            text-align: left;
            vertical-align: middle;
        }

        .version-grid th {
            background: #f4f7fa;
            color: #314755;
            font-weight: 800;
        }

        .version-grid-action {
            font-weight: 700;
            text-decoration: none;
        }

        @media (max-width: 760px) {
            .version-form-grid {
                grid-template-columns: 1fr;
            }

            .version-entry-header {
                flex-direction: column;
            }

            .version-meta {
                text-align: left;
                white-space: normal;
            }
        }

.field-help {
    display: block;
    margin-top: 4px;
    color: var(--hc-muted);
    font-size: 0.84rem;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.version-image-upload {
    max-width: 180px;
}

.version-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}


/* -------------------------------------------------------------------------- */
/* HealthCheck v13 - Admin submenu                                            */
/* -------------------------------------------------------------------------- */

.hc-nav-parent {
    cursor: default;
}

.hc-nav-parent.has-active-child {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.hc-nav-sublist {
    margin: 3px 0 5px 0;
    padding: 0 0 0 43px;
    list-style: none;
}

.hc-nav-subitem {
    margin: 2px 0;
}

.hc-nav-sublink {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    color: #aebbd0;
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.hc-nav-sublink:hover,
.hc-nav-sublink:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    text-decoration: none;
}

.hc-nav-sublink.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.55);
}

.hc-nav-subdot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    background: #64748b;
    border-radius: 50%;
}

.hc-nav-sublink.active .hc-nav-subdot {
    background: #bfdbfe;
}

/* -------------------------------------------------------------------------- */
/* HealthCheck v13 - Customer administration                                  */
/* -------------------------------------------------------------------------- */

.hc-form-row-compact {
    margin-top: 14px;
}

.hc-field-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-bottom: 1px;
}

.hc-readonly {
    background: #f8fafc !important;
    color: #64748b !important;
}

/* -------------------------------------------------------------------------- */
/* HealthCheck v13 - WebLog                                                   */
/* -------------------------------------------------------------------------- */

.hc-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.hc-stat-card {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
}

.hc-stat-label {
    color: var(--hc-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hc-stat-value {
    display: block;
    margin-top: 6px;
    color: var(--hc-text);
    font-size: 1.65rem;
    font-weight: 750;
    line-height: 1.1;
}

.hc-stat-value-small {
    font-size: 1rem;
    line-height: 1.3;
}

.hc-weblog-grid {
    min-width: 1500px;
}

.hc-weblog-grid td {
    vertical-align: top;
}

.hc-weblog-useragent {
    display: block;
    max-width: 360px;
    overflow: hidden;
    color: var(--hc-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hc-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.hc-pager-text {
    min-width: 110px;
    color: var(--hc-muted);
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 1050px) {
    .hc-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .hc-stat-grid {
        grid-template-columns: 1fr;
    }

    .hc-field-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hc-pager {
        justify-content: center;
    }
}

/* v13 form widths and messages */
.hc-field-12 { grid-column: span 12; }
.hc-field-8  { grid-column: span 8; }
.hc-field-5  { grid-column: span 5; }

.hc-message {
    display: block;
    margin-bottom: 16px;
    padding: 11px 14px;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-sm);
    font-weight: 650;
}

.hc-message-success {
    color: var(--hc-success);
    background: var(--hc-success-soft);
    border-color: var(--hc-success-border);
}

.hc-message-error {
    color: var(--hc-danger);
    background: var(--hc-danger-soft);
    border-color: var(--hc-danger-border);
}

.hc-message-info {
    color: var(--hc-info);
    background: var(--hc-info-soft);
    border-color: var(--hc-info-border);
}

@media (max-width: 760px) {
    .hc-field-12,
    .hc-field-8,
    .hc-field-6,
    .hc-field-5,
    .hc-field-4,
    .hc-field-3,
    .hc-field-2 {
        grid-column: span 12;
    }
}

/* -------------------------------------------------------------------------- */
/* Contact page                                                               */
/* -------------------------------------------------------------------------- */

.hc-contact-hero {
    overflow: hidden;
}

.hc-contact-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.hc-contact-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 82px;
    padding: 16px 18px;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    background: var(--hc-page-bg);
}

.hc-contact-summary-label,
.hc-location-type {
    color: var(--hc-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hc-contact-summary-item > a,
.hc-contact-summary-item > span:not(.hc-contact-summary-label) {
    color: var(--hc-text);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.hc-contact-summary-item > a:hover,
.hc-contact-summary-item > a:focus {
    color: var(--hc-accent);
}

.hc-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hc-contact-grid-warehouses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hc-location-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 20px;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    background: var(--hc-card-bg);
    box-shadow: var(--hc-shadow-sm);
}

.hc-location-card h3 {
    margin: 6px 0 12px;
    font-size: 18px;
}

.hc-location-card address {
    flex: 1 1 auto;
    margin: 0;
    color: var(--hc-text);
    font-style: normal;
    line-height: 1.65;
}

.hc-location-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--hc-border);
}

.hc-location-phone {
    font-weight: 700;
    text-decoration: none;
}

.hc-contact-footer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hc-contact-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 1100px) {
    .hc-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .hc-contact-summary,
    .hc-contact-grid,
    .hc-contact-grid-warehouses {
        grid-template-columns: 1fr;
    }

    .hc-contact-footer-card {
        align-items: stretch;
        flex-direction: column;
    }

    .hc-contact-footer-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hc-contact-footer-actions .hc-btn {
        width: 100%;
        text-align: center;
    }
}

/* -------------------------------------------------------------------------- */
/* Contact page office pictures                                               */
/* -------------------------------------------------------------------------- */

.hc-office-photo-grid {
    align-items: stretch;
}

.hc-location-card-photo {
    overflow: hidden;
    padding: 0;
}

.hc-location-image-wrap {
    overflow: hidden;
    background: #e2e8f0;
    border-bottom: 1px solid var(--hc-border);
}

.hc-location-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.hc-location-card-body {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.hc-location-card-body .hc-location-actions {
    margin-top: auto;
}


/* -------------------------------------------------------------------------- */
/* HealthCheck v17 - Collapsible sidebar submenus                             */
/* -------------------------------------------------------------------------- */

.hc-nav-parent {
    width: 100%;
    border: 0;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.hc-nav-parent-text {
    flex: 1 1 auto;
    min-width: 0;
}

.hc-nav-chevron {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    color: #8ea0bb;
    transition: transform 0.18s ease, color 0.18s ease;
}

.hc-nav-chevron svg {
    width: 16px;
    height: 16px;
}

.hc-nav-parent[aria-expanded="true"] .hc-nav-chevron {
    color: #ffffff;
    transform: rotate(90deg);
}

.hc-nav-sublist[hidden] {
    display: none !important;
}

.hc-nav-sublist {
    animation: hcSubmenuOpen 0.14s ease-out;
}

@keyframes hcSubmenuOpen {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------------------- */
/* HealthCheck v18 - Admin parent button visual reset                         */
/* -------------------------------------------------------------------------- */

/* Admin is rendered as a BUTTON so explicitly remove browser button styling. */
.hc-nav-parent {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: var(--hc-sidebar-text);
    border: 0;
    box-shadow: none;
    outline: none;
}

/* Normal collapsed state should look exactly like the other sidebar links. */
.hc-nav-parent[aria-expanded="false"]:not(.has-active-child) {
    background: transparent;
    color: var(--hc-sidebar-text);
    box-shadow: none;
}

/* Hover/focus uses the same subtle sidebar highlight as normal menu links. */
.hc-nav-parent:hover,
.hc-nav-parent:focus,
.hc-nav-parent:focus-visible {
    background: var(--hc-sidebar-hover);
    color: #ffffff;
    box-shadow: none;
    outline: none;
}

/* Keep the parent visibly selected while its submenu is open. */
.hc-nav-parent[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Also highlight Admin when Customer or WebLog is the current page. */
.hc-nav-parent.has-active-child {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/* HealthCheck v19 - About page (ported from DoITnet About design)             */
/* -------------------------------------------------------------------------- */

.about-message {
    display: block;
    margin-bottom: 18px;
    padding: 12px 15px;
    border-radius: 7px;
    font-weight: 600;
}

.about-message.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 24px;
    padding: 32px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 18%, rgba(83, 177, 253, 0.28), transparent 32%),
        linear-gradient(135deg, #102b46 0%, #174c70 58%, #1c678a 100%);
    border-radius: 14px;
    box-shadow: 0 16px 42px rgba(16, 43, 70, 0.20);
}

.about-portrait-frame {
    position: relative;
    width: min(100%, 340px);
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.about-portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-photo-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 65% 24%, rgba(255, 255, 255, 0.18), transparent 25%),
        linear-gradient(145deg, #1a5f83, #102b46);
    text-align: center;
}

.about-photo-initials {
    display: flex;
    width: 112px;
    height: 112px;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.13);
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    font-size: 40px;
    font-weight: 800;
}

.about-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 11px;
    color: #d9efff;
    background-color: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-hero h1 {
    margin: 0 0 12px 0;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
}

.about-role {
    margin: 0 0 16px 0;
    color: #d8eefb;
    font-size: 18px;
    font-weight: 650;
}

.about-hero-lead {
    max-width: 800px;
    margin: 0;
    color: #edf7fc;
    font-size: 17px;
    line-height: 1.7;
}

.about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.about-hero .hc-btn.about-primary {
    color: #102b46;
    background-color: #ffffff;
    border-color: #ffffff;
}

.about-hero .hc-btn.about-primary:hover,
.about-hero .hc-btn.about-primary:focus {
    color: #102b46;
    background-color: #f0f8fd;
    border-color: #f0f8fd;
}

.about-hero .hc-btn.about-secondary {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
}

.about-hero .hc-btn.about-secondary:hover,
.about-hero .hc-btn.about-secondary:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.65);
}

.about-customer-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background-color: #f8fafc;
}

.about-customer-main {
    display: flex;
    flex: 1 1 280px;
    flex-direction: column;
    gap: 3px;
}

.about-customer-label {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-customer-name {
    color: #101828;
    font-size: 19px;
    font-weight: 700;
}

.about-customer-tma {
    color: #475467;
    font-size: 13px;
}

.about-customer-status {
    display: inline-block;
    padding: 6px 11px;
    color: #067647;
    background-color: #ecfdf3;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.about-grid.three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-card {
    padding: 22px;
    background-color: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 11px;
    box-shadow: 0 3px 14px rgba(16, 24, 40, 0.04);
}

.about-card h2,
.about-card h3 {
    margin-top: 0;
    color: #101828;
}

.about-card p {
    color: #475467;
    line-height: 1.68;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.about-feature-number {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #175cd3;
    background-color: #eff8ff;
    border-radius: 10px;
    font-weight: 800;
}

.about-skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.about-skill {
    padding: 6px 10px;
    color: #344054;
    background-color: #f2f4f7;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
}

.about-picture-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.about-picture-card {
    overflow: hidden;
    margin: 0;
    background-color: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.05);
}

.about-picture {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #eaf2f8;
}

.about-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-picture-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    color: #d9efff;
    background:
        radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(135deg, #102b46, #1d6689);
    text-align: center;
}

.about-picture-fallback strong {
    color: #ffffff;
    font-size: 18px;
}

.about-picture-caption {
    padding: 18px;
}

.about-picture-caption h3 {
    margin: 0 0 7px 0;
    color: #101828;
}

.about-picture-caption p {
    margin: 0;
    color: #667085;
    line-height: 1.55;
}

.about-healthcheck-visual {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 82% 14%, rgba(59, 130, 246, 0.20), transparent 28%),
        linear-gradient(135deg, #eef6ff, #f8fafc);
}

.about-healthcheck-module {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 11px;
    padding: 13px;
    color: #1e3a5f;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid #cbdff2;
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06);
}

.about-healthcheck-module-number {
    display: flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #2563eb;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
}

.about-healthcheck-module strong {
    display: block;
    font-size: 13px;
}

.about-healthcheck-module span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
}

.about-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.about-flow-step {
    position: relative;
    padding: 18px;
    color: #344054;
    background-color: #f9fafb;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    line-height: 1.5;
}

.about-flow-step strong {
    display: block;
    margin-bottom: 6px;
    color: #101828;
}

.about-principle {
    padding-left: 15px;
    border-left: 4px solid #2e90fa;
}

.about-footer-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 24px;
    align-items: center;
    padding: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, #102b46, #1b5d80);
    border-radius: 12px;
}

.about-footer-card h2 {
    margin: 0 0 9px 0;
    color: #ffffff;
}

.about-footer-card p {
    margin: 0;
    color: #e3f2fa;
    line-height: 1.65;
}

.about-footer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.about-footer-actions .hc-btn {
    color: #102b46;
    background-color: #ffffff;
    border-color: #ffffff;
}

.about-footer-actions .hc-btn:hover,
.about-footer-actions .hc-btn:focus {
    color: #102b46;
    background-color: #f0f8fd;
    border-color: #f0f8fd;
}

@media (max-width: 1000px) {
    .about-hero {
        grid-template-columns: 1fr;
    }

    .about-portrait-frame {
        max-width: 300px;
    }

    .about-grid.three-columns,
    .about-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .about-hero {
        padding: 22px;
    }

    .about-grid,
    .about-grid.three-columns,
    .about-picture-grid,
    .about-flow,
    .about-footer-card {
        grid-template-columns: 1fr;
    }

    .about-healthcheck-visual {
        grid-template-columns: 1fr;
    }

    .about-footer-actions {
        justify-content: stretch;
        flex-direction: column;
    }

    .about-footer-actions .hc-btn,
    .about-hero-actions .hc-btn {
        width: 100%;
    }
}

/* -------------------------------------------------------------------------- */
/* HealthCheck v20 - Default / portal presentation                            */
/* -------------------------------------------------------------------------- */

.hc-home {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hc-home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 30px;
    align-items: center;
    overflow: hidden;
    padding: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 86% 12%, rgba(96, 165, 250, 0.30), transparent 30%),
        radial-gradient(circle at 12% 80%, rgba(14, 165, 233, 0.16), transparent 32%),
        linear-gradient(135deg, #0f2742 0%, #164e70 60%, #176789 100%);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(15, 39, 66, 0.18);
}

.hc-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 11px;
    color: #d9efff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hc-home-eyebrow-dot {
    width: 8px;
    height: 8px;
    background: #67e8f9;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.14);
}

.hc-home-hero h1 {
    max-width: 850px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.15rem, 4vw, 3.65rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hc-home-hero-lead {
    max-width: 850px;
    margin: 18px 0 0 0;
    color: #e7f5fc;
    font-size: 1.05rem;
    line-height: 1.72;
}

.hc-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hc-home-hero .hc-btn.hc-home-primary {
    color: #102b46;
    background: #ffffff;
    border-color: #ffffff;
}

.hc-home-hero .hc-btn.hc-home-primary:hover,
.hc-home-hero .hc-btn.hc-home-primary:focus {
    color: #102b46;
    background: #eef8ff;
    border-color: #eef8ff;
}

.hc-home-hero .hc-btn.hc-home-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
}

.hc-home-visual {
    position: relative;
    min-height: 330px;
}

.hc-home-system-card {
    position: absolute;
    width: 235px;
    min-height: 112px;
    padding: 18px;
    color: #102b46;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 15px;
    box-shadow: 0 18px 38px rgba(3, 24, 43, 0.22);
}

.hc-home-system-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.05rem;
}

.hc-home-system-card span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
}

.hc-home-system-card.citrix {
    top: 18px;
    left: 2px;
    transform: rotate(-3deg);
}

.hc-home-system-card.netscaler {
    top: 110px;
    right: 2px;
    transform: rotate(3deg);
}

.hc-home-system-card.action {
    bottom: 8px;
    left: 42px;
    width: 255px;
    transform: rotate(-1deg);
}

.hc-home-system-icon {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #2563eb;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hc-home-system-card.netscaler .hc-home-system-icon {
    background: #0891b2;
}

.hc-home-system-card.action .hc-home-system-icon {
    background: #16a34a;
}

.hc-home-session {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
}

.hc-home-session-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hc-home-session-label {
    color: var(--hc-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hc-home-session-name {
    color: var(--hc-text);
    font-size: 1.08rem;
    font-weight: 800;
}

.hc-home-session-meta {
    color: var(--hc-muted);
    font-size: 0.84rem;
}

.hc-home-session-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    color: #067647;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.hc-home-session-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #12b76a;
    border-radius: 50%;
}

.hc-home-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.hc-home-section-heading h2 {
    margin: 0;
    color: var(--hc-text);
    font-size: 1.45rem;
}

.hc-home-section-heading p {
    max-width: 780px;
    margin: 5px 0 0 0;
    color: var(--hc-muted);
    line-height: 1.6;
}

.hc-home-audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hc-home-audience-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--hc-border);
    border-radius: 13px;
}

.hc-home-audience-card::after {
    content: "";
    position: absolute;
    top: -34px;
    right: -34px;
    width: 110px;
    height: 110px;
    background: #eff8ff;
    border-radius: 50%;
}

.hc-home-audience-card.consultant::after {
    background: #eefcf6;
}

.hc-home-audience-icon {
    position: relative;
    z-index: 1;
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    color: #175cd3;
    background: #eff8ff;
    border-radius: 12px;
    font-weight: 900;
}

.hc-home-audience-card.consultant .hc-home-audience-icon {
    color: #067647;
    background: #ecfdf3;
}

.hc-home-audience-card h3 {
    position: relative;
    z-index: 1;
    margin: 15px 0 8px 0;
    color: var(--hc-text);
}

.hc-home-audience-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--hc-muted);
    line-height: 1.65;
}

.hc-home-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.hc-home-flow-step {
    position: relative;
    min-height: 150px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid var(--hc-border);
    border-radius: 11px;
}

.hc-home-flow-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -13px;
    z-index: 2;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    color: #2563eb;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 50%;
    text-align: center;
    line-height: 23px;
    font-weight: 900;
}

.hc-home-flow-number {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #ffffff;
    background: #2563eb;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 900;
}

.hc-home-flow-step h3 {
    margin: 0 0 7px 0;
    color: var(--hc-text);
    font-size: 1rem;
}

.hc-home-flow-step p {
    margin: 0;
    color: var(--hc-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.hc-checkpoint-demo {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--hc-border);
    border-radius: 14px;
}

.hc-checkpoint-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--hc-border);
}

.hc-checkpoint-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hc-checkpoint-severity {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 10px;
    font-weight: 900;
}

.hc-checkpoint-title {
    margin: 0;
    color: var(--hc-text);
    font-size: 1rem;
    font-weight: 800;
}

.hc-checkpoint-subtitle {
    margin-top: 3px;
    color: var(--hc-muted);
    font-size: 0.82rem;
}

.hc-checkpoint-status {
    padding: 6px 10px;
    color: #b54708;
    background: #fffaeb;
    border: 1px solid #fedf89;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.hc-checkpoint-body {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 18px;
    padding: 20px;
}

.hc-checkpoint-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hc-checkpoint-panel {
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--hc-border);
    border-radius: 10px;
}

.hc-checkpoint-panel h4 {
    margin: 0 0 7px 0;
    color: var(--hc-text);
    font-size: 0.88rem;
}

.hc-checkpoint-panel p {
    margin: 0;
    color: var(--hc-muted);
    line-height: 1.6;
}

.hc-checkpoint-panel.internal {
    background: #fffcf5;
    border-color: #fedf89;
}

.hc-checkpoint-panel.internal h4 {
    color: #b54708;
}

.hc-checkpoint-panel.meeting {
    background: #f5faff;
    border-color: #b2ddff;
}

.hc-checkpoint-panel.meeting h4 {
    color: #175cd3;
}

.hc-checkpoint-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hc-checkpoint-meta-card {
    padding: 14px 15px;
    background: #f8fafc;
    border: 1px solid var(--hc-border);
    border-radius: 10px;
}

.hc-checkpoint-meta-label {
    display: block;
    margin-bottom: 5px;
    color: var(--hc-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hc-checkpoint-meta-value {
    color: var(--hc-text);
    font-weight: 800;
}

.hc-owner-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hc-owner-badge {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.hc-owner-badge.customer {
    color: #175cd3;
    background: #eff8ff;
    border: 1px solid #b2ddff;
}

.hc-owner-badge.danoffice {
    color: #067647;
    background: #ecfdf3;
    border: 1px solid #abefc6;
}

.hc-owner-badge.both {
    color: #6941c6;
    background: #f4f3ff;
    border: 1px solid #d9d6fe;
}

.hc-home-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hc-home-feature {
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--hc-border);
    border-radius: 11px;
}

.hc-home-feature-icon {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #175cd3;
    background: #eff8ff;
    border-radius: 10px;
    font-weight: 900;
}

.hc-home-feature h3 {
    margin: 0 0 7px 0;
    color: var(--hc-text);
    font-size: 0.96rem;
}

.hc-home-feature p {
    margin: 0;
    color: var(--hc-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.hc-home-future-note {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 16px 18px;
    color: #344054;
    background: #f9fafb;
    border: 1px dashed #cbd5e1;
    border-radius: 11px;
}

.hc-home-future-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--hc-text);
}

.hc-home-future-note p {
    margin: 0;
    color: var(--hc-muted);
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .hc-home-hero,
    .hc-checkpoint-body {
        grid-template-columns: 1fr;
    }

    .hc-home-visual {
        min-height: 310px;
        max-width: 620px;
        width: 100%;
        margin: 0 auto;
    }

    .hc-home-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hc-home-flow-step:not(:last-child)::after {
        display: none;
    }

    .hc-home-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .hc-home-hero {
        padding: 24px;
    }

    .hc-home-audience-grid,
    .hc-home-flow,
    .hc-home-feature-grid {
        grid-template-columns: 1fr;
    }

    .hc-home-visual {
        min-height: 420px;
    }

    .hc-home-system-card {
        width: calc(100% - 36px);
        left: 18px !important;
        right: auto !important;
        transform: none !important;
    }

    .hc-home-system-card.citrix {
        top: 0;
    }

    .hc-home-system-card.netscaler {
        top: 135px;
    }

    .hc-home-system-card.action {
        top: 270px;
        bottom: auto;
    }

    .hc-checkpoint-top {
        align-items: flex-start;
    }

    .hc-home-hero-actions {
        flex-direction: column;
    }

    .hc-home-hero-actions .hc-btn {
        width: 100%;
    }
}

/* HealthCheck v24 - clickable batch grid */
.hc-selectable-grid .hc-clickable-row {
    cursor: pointer;
}

.hc-selectable-grid .hc-clickable-row:hover td {
    background: #eff6ff;
}

.hc-selectable-grid tr.hc-grid-selected-row td,
.hc-selectable-grid .hc-grid-selected-row td {
    background: #dbeafe !important;
    color: #1e3a5f;
    font-weight: 600;
}

/* HealthCheck v25 - event-validation-safe row selection */
.hc-row-select-cell {
    width: 1%;
    white-space: nowrap;
}

.hc-row-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    color: #175cd3;
    background: #eff8ff;
    border: 1px solid #b2ddff;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.hc-row-select:hover,
.hc-row-select:focus {
    color: #1849a9;
    background: #dbeafe;
    border-color: #84caff;
    text-decoration: none;
}


/* ========================================================================== */
/* HealthCheck v27 - Chapter / Section / Checkpoint hierarchy                  */
/* ========================================================================== */

.hc-healthcheck-page {
    overflow: visible;
}

.hc-healthcheck-list-help {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 12px;
    color: var(--hc-muted);
    font-size: 0.84rem;
}

.hc-healthcheck-detail-panel {
    position: relative;
    overflow: visible;
}

.hc-healthcheck-detail-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--hc-border);
}

.hc-healthcheck-detail-title {
    margin: 0 0 5px;
    font-size: 1.35rem;
}

.hc-healthcheck-detail-count {
    margin-top: 7px;
    color: var(--hc-muted);
    font-size: 0.82rem;
}

.hc-healthcheck-detail-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hc-hierarchy-key {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 9px;
    color: #1e3a5f;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
}

.hc-hierarchy-key-section {
    color: #075985;
    background: #ecfeff;
    border-color: #a5f3fc;
}

.hc-hierarchy-key-record {
    color: #475569;
    background: #f8fafc;
    border-color: var(--hc-border);
}

.hc-healthcheck-hierarchy-scroll {
    width: 100%;
    overflow: visible;
}

.hc-healthcheck-chapter {
    margin: 0 0 26px;
    overflow: visible;
    background: #ffffff;
    border: 1px solid #d8e2ef;
    border-radius: 15px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.hc-healthcheck-chapter:last-child {
    margin-bottom: 0;
}

.hc-healthcheck-chapter-header {
    position: sticky;
    top: 10px;
    z-index: 8;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    padding: 17px 19px;
    color: #ffffff;
    background: linear-gradient(135deg, #173d65 0%, #1c5d84 100%);
    border-radius: 14px 14px 0 0;
    box-shadow: 0 8px 18px rgba(15, 39, 66, 0.12);
}

.hc-healthcheck-chapter-number {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: #173d65;
    background: #ffffff;
    border-radius: 11px;
    font-size: 1rem;
    font-weight: 850;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.13);
}

.hc-healthcheck-chapter-copy {
    min-width: 0;
}

.hc-healthcheck-eyebrow {
    margin-bottom: 3px;
    color: inherit;
    opacity: 0.72;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hc-healthcheck-chapter-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.17rem;
    font-weight: 750;
}

.hc-healthcheck-chapter-header .hc-healthcheck-description {
    margin-top: 4px;
    color: #dbeafe;
    font-size: 0.8rem;
}

.hc-healthcheck-chapter-count {
    padding: 5px 9px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.hc-healthcheck-chapter-body {
    padding: 17px;
}

.hc-healthcheck-section {
    margin-bottom: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfe8f2;
    border-radius: 12px;
}

.hc-healthcheck-section:last-child {
    margin-bottom: 0;
}

.hc-healthcheck-section-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px 15px;
    background: #f0f9ff;
    border-bottom: 1px solid #dbeafe;
}

.hc-healthcheck-section-index {
    min-width: 48px;
    padding: 5px 8px;
    color: #075985;
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.hc-healthcheck-section-copy {
    min-width: 0;
}

.hc-healthcheck-section-title {
    margin: 0;
    color: #17324d;
    font-size: 1rem;
    font-weight: 750;
}

.hc-healthcheck-section-header .hc-healthcheck-description {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.78rem;
}

.hc-healthcheck-section-count {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.hc-healthcheck-record-list {
    display: flex;
    flex-direction: column;
}

.hc-healthcheck-record {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: stretch;
    padding: 14px 15px;
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
}

.hc-healthcheck-record:last-child {
    border-bottom: 0;
}

.hc-healthcheck-record:hover {
    background: #fbfdff;
}

.hc-healthcheck-record-disabled {
    opacity: 0.64;
    background: #fafafa;
}

.hc-healthcheck-record-index {
    display: flex;
    align-items: flex-start;
}

.hc-healthcheck-record-index span {
    display: inline-flex;
    min-width: 61px;
    min-height: 31px;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #dbe3ed;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
}

.hc-healthcheck-record-main {
    min-width: 0;
}

.hc-healthcheck-record-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.hc-healthcheck-record-label {
    color: #94a3b8;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hc-healthcheck-record-title {
    margin: 2px 0 0;
    color: var(--hc-text);
    font-size: 0.95rem;
    font-weight: 720;
}

.hc-healthcheck-record-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.hc-healthcheck-record-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.hc-healthcheck-edit-button {
    white-space: nowrap;
}

.hc-healthcheck-note {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 9px;
}

.hc-healthcheck-note-label {
    margin-bottom: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.hc-healthcheck-note-text {
    color: #334155;
    font-size: 0.84rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.hc-healthcheck-note-external {
    background: #f8fbff;
    border: 1px solid #dbeafe;
}

.hc-healthcheck-note-external .hc-healthcheck-note-label {
    color: #1d4ed8;
}

.hc-healthcheck-note-internal {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.hc-healthcheck-note-internal .hc-healthcheck-note-label {
    color: #a16207;
}

.hc-empty-state {
    margin: 10px 0;
    padding: 25px;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
}

.hc-empty-state strong,
.hc-empty-state span {
    display: block;
}

.hc-empty-state strong {
    margin-bottom: 5px;
    color: var(--hc-text);
}

/* Future HTML5 note editor */

.hc-healthcheck-note-dialog {
    width: min(980px, calc(100vw - 36px));
    max-height: calc(100vh - 42px);
    padding: 0;
    overflow: hidden;
    color: var(--hc-text);
    background: #ffffff;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.30);
}

.hc-healthcheck-note-dialog::backdrop {
    background: rgba(15, 23, 42, 0.60);
    backdrop-filter: blur(3px);
}

.hc-healthcheck-note-dialog-shell {
    display: flex;
    max-height: calc(100vh - 42px);
    flex-direction: column;
}

.hc-healthcheck-note-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    background: #f8fafc;
    border-bottom: 1px solid var(--hc-border);
}

.hc-healthcheck-note-dialog-header h2 {
    margin: 0 0 4px;
    font-size: 1.18rem;
}

.hc-healthcheck-dialog-close {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #dbe3ed;
    border-radius: 9px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.hc-healthcheck-note-dialog-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 20px 22px;
    overflow-y: auto;
}

.hc-healthcheck-editor-field label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 750;
}

.hc-healthcheck-html-editor {
    min-height: 260px;
    max-height: 46vh;
    padding: 13px;
    overflow-y: auto;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    line-height: 1.55;
}

.hc-healthcheck-html-editor:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hc-healthcheck-html-editor-internal {
    background: #fffdf5;
    border-color: #f6d86b;
}

.hc-healthcheck-note-dialog-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 22px;
    background: #f8fafc;
    border-top: 1px solid var(--hc-border);
}

.hc-healthcheck-note-dialog-footer > div {
    display: flex;
    gap: 8px;
}

@media (max-width: 900px) {

    .hc-healthcheck-chapter-header {
        position: static;
    }

    .hc-healthcheck-record {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .hc-healthcheck-record-actions {
        grid-column: 2;
        justify-content: flex-start;
    }

    .hc-healthcheck-note-dialog-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {

    .hc-healthcheck-chapter-header,
    .hc-healthcheck-section-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .hc-healthcheck-chapter-count,
    .hc-healthcheck-section-count {
        grid-column: 2;
        justify-self: start;
    }

    .hc-healthcheck-record {
        grid-template-columns: 1fr;
    }

    .hc-healthcheck-record-index,
    .hc-healthcheck-record-actions {
        grid-column: 1;
    }

    .hc-healthcheck-record-actions {
        justify-content: flex-start;
    }

    .hc-healthcheck-detail-toolbar {
        display: block;
    }

    .hc-healthcheck-detail-legend {
        margin-top: 12px;
    }
}


/* ========================================================================== */
/* HealthCheck v28 - Section tables and SectionRate colors                    */
/* ========================================================================== */

.hc-healthcheck-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
}

.hc-healthcheck-detail-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.hc-healthcheck-detail-table th {
    padding: 10px 12px;
    color: #475569;
    background: #f8fafc;
    border-bottom: 1px solid var(--hc-border);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.hc-healthcheck-detail-table td {
    padding: 11px 12px;
    color: #334155;
    background: #ffffff;
    border-bottom: 1px solid #edf1f5;
    vertical-align: top;
}

.hc-healthcheck-detail-table tbody tr:last-child td {
    border-bottom: 0;
}

.hc-healthcheck-detail-table tbody tr:hover td {
    background: #fbfdff;
}

.hc-healthcheck-row-disabled td {
    opacity: 0.64;
    background: #fafafa;
}

.hc-col-checkpoint {
    width: 115px;
    white-space: nowrap;
}

.hc-col-rate {
    width: 150px;
}

.hc-col-enabled {
    width: 96px;
    white-space: nowrap;
}

.hc-col-action {
    width: 80px;
    white-space: nowrap;
}

.hc-checkpoint-number {
    color: #1e3a5f;
    font-size: 0.84rem;
    font-weight: 800;
}

.hc-checkpoint-caption {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 0.70rem;
}

.hc-healthcheck-table-note {
    min-width: 220px;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.hc-healthcheck-table-note-internal {
    min-width: 220px;
    padding: 7px 9px;
    color: #854d0e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 7px;
}

.hc-customer-view .hc-internal-column {
    display: none;
}

.hc-rate-badge {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.hc-rate-green {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
}

.hc-rate-yellow {
    color: #854d0e;
    background: #fef9c3;
    border-color: #fde047;
}

.hc-rate-red {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fca5a5;
}

.hc-rate-orange {
    color: #9a3412;
    background: #ffedd5;
    border-color: #fdba74;
}

.hc-rate-info {
    color: #075985;
    background: #e0f2fe;
    border-color: #7dd3fc;
}

.hc-rate-neutral {
    color: #475569;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.hc-rate-code {
    margin-top: 5px;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 650;
}

.hc-admin-detail-label {
    display: inline-flex;
    margin-top: 5px;
    padding: 3px 6px;
    color: #6b21a8;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 6px;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 767.98px) {
    .hc-healthcheck-detail-table {
        min-width: 850px;
    }
}


/* ========================================================================== */
/* HealthCheck v29 - clean table display                                      */
/* ========================================================================== */

/* Zebra striping: two subtle grey tones across the complete detail row. */
.hc-healthcheck-detail-table tbody tr:nth-child(odd) td {
    background: #f8f9fb;
}

.hc-healthcheck-detail-table tbody tr:nth-child(even) td {
    background: #f1f3f6;
}

.hc-healthcheck-detail-table tbody tr:nth-child(odd):hover td {
    background: #eef2f6;
}

.hc-healthcheck-detail-table tbody tr:nth-child(even):hover td {
    background: #e9edf2;
}

/* Result now only shows the resolved name/color badge. */
.hc-col-rate {
    width: 130px;
}

.hc-rate-badge {
    min-width: 78px;
}

/* Checkpoint now shows only the hierarchical numeric key. */
.hc-col-checkpoint {
    width: 105px;
}

.hc-checkpoint-number {
    font-size: 0.86rem;
}

/* Obsolete helper text is intentionally hidden if older cached markup appears. */
.hc-checkpoint-caption,
.hc-rate-code,
.hc-admin-detail-label,
.hc-col-enabled {
    display: none !important;
}


/* ========================================================================== */
/* HealthCheck v30 - DB-driven Result cell colors                             */
/* ========================================================================== */

/* SectionDetail / Checkpoint is intentionally no longer displayed. */
.hc-col-checkpoint,
.hc-checkpoint-number,
.hc-checkpoint-caption {
    display: none !important;
}

/*
 * The Result background is supplied inline from
 * HealthCheckSectionRate.BackGroundColor after strict server-side validation.
 * This rule controls only sizing/typography and does not override the DB color.
 */
.hc-result-cell {
    width: 145px;
    min-width: 145px;
    vertical-align: middle !important;
    text-align: center;
}

.hc-result-name {
    display: inline-block;
    font-size: 0.80rem;
    font-weight: 850;
    line-height: 1.2;
}

/*
 * Zebra striping remains on the rest of each row.
 * The Result cell intentionally keeps its database-defined background.
 */
.hc-healthcheck-detail-table tbody tr:nth-child(odd) td:not(.hc-result-cell) {
    background: #F8F9FB;
}

.hc-healthcheck-detail-table tbody tr:nth-child(even) td:not(.hc-result-cell) {
    background: #F1F3F6;
}

.hc-healthcheck-detail-table tbody tr:nth-child(odd):hover td:not(.hc-result-cell) {
    background: #EEF2F6;
}

.hc-healthcheck-detail-table tbody tr:nth-child(even):hover td:not(.hc-result-cell) {
    background: #E9EDF2;
}


/* ========================================================================== */
/* HealthCheck v31 - Chapter/Section column + centered black Result            */
/* ========================================================================== */

/* Chapter / Section is visible again, but SectionDetail remains future-only. */
.hc-col-chapter-section {
    width: 132px;
    min-width: 132px;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap;
}

.hc-chapter-section-number {
    display: inline-flex;
    min-width: 50px;
    min-height: 29px;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    color: #334155;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid #d7dde5;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 800;
}

/*
 * Result heading and all Result cells are centered.
 * Text is always black even when BackGroundColor is dark.
 */
.hc-healthcheck-detail-table th.hc-col-rate,
.hc-healthcheck-detail-table td.hc-col-rate,
.hc-result-cell {
    text-align: center !important;
}

.hc-result-cell,
.hc-result-cell *,
.hc-result-name {
    color: #000000 !important;
}

.hc-result-name {
    width: 100%;
    text-align: center;
}

/* Preserve zebra striping outside the database-colored Result cell. */
.hc-healthcheck-detail-table tbody tr:nth-child(odd) td.hc-col-chapter-section {
    background: #F8F9FB;
}

.hc-healthcheck-detail-table tbody tr:nth-child(even) td.hc-col-chapter-section {
    background: #F1F3F6;
}


/* ========================================================================== */
/* HealthCheck v32 - fixed columns + reliable alternating row backgrounds     */
/* ========================================================================== */

/*
 * Every section contains its own table. table-layout:fixed plus identical
 * explicit widths guarantees that Chapter/Section and Result stay aligned
 * and have exactly the same width in every section.
 */
.hc-healthcheck-detail-table {
    width: 100% !important;
    table-layout: fixed !important;
}

.hc-healthcheck-detail-table th.hc-col-chapter-section,
.hc-healthcheck-detail-table td.hc-col-chapter-section,
.hc-healthcheck-detail-table th.hc-col-rate,
.hc-healthcheck-detail-table td.hc-col-rate {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    box-sizing: border-box;
}

.hc-healthcheck-detail-table th.hc-col-action,
.hc-healthcheck-detail-table td.hc-col-action {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    box-sizing: border-box;
}

/*
 * Do not depend on nth-child for zebra striping. Each Repeater item receives
 * hc-row-grey-a or hc-row-grey-b explicitly from Container.ItemIndex.
 *
 * Result is intentionally excluded because its background is controlled by
 * HealthCheckSectionRate.BackGroundColor.
 */
.hc-healthcheck-detail-table tbody tr.hc-row-grey-a > td:not(.hc-result-cell) {
    background-color: #F7F8FA !important;
}

.hc-healthcheck-detail-table tbody tr.hc-row-grey-b > td:not(.hc-result-cell) {
    background-color: #ECEFF3 !important;
}

.hc-healthcheck-detail-table tbody tr.hc-row-grey-a:hover > td:not(.hc-result-cell) {
    background-color: #EEF1F5 !important;
}

.hc-healthcheck-detail-table tbody tr.hc-row-grey-b:hover > td:not(.hc-result-cell) {
    background-color: #E3E7EC !important;
}

/*
 * Previous internal-note styling used its own yellow background, which hid
 * much of the alternating row background. Keep the text distinction but make
 * the content area transparent so the whole cell visibly follows the row.
 */
.hc-healthcheck-detail-table .hc-healthcheck-table-note,
.hc-healthcheck-detail-table .hc-healthcheck-table-note-internal {
    background: transparent !important;
}

.hc-healthcheck-detail-table .hc-healthcheck-table-note-internal {
    border-color: transparent !important;
}

/* Chapter / Section remains centered in its fixed column. */
.hc-healthcheck-detail-table th.hc-col-chapter-section,
.hc-healthcheck-detail-table td.hc-col-chapter-section {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Result stays centered with black text and DB-controlled background. */
.hc-healthcheck-detail-table th.hc-col-rate,
.hc-healthcheck-detail-table td.hc-col-rate,
.hc-healthcheck-detail-table td.hc-result-cell {
    text-align: center !important;
    vertical-align: middle !important;
}

.hc-healthcheck-detail-table td.hc-result-cell,
.hc-healthcheck-detail-table td.hc-result-cell *,
.hc-result-name {
    color: #000000 !important;
}

/*
 * Disable older nth-child background rules by giving explicit-row rules
 * stronger specificity. These declarations also protect against cached
 * inherited td backgrounds elsewhere in the shared stylesheet.
 */
.hc-healthcheck-detail-table tbody tr.hc-row-grey-a > td.hc-col-chapter-section {
    background-color: #F7F8FA !important;
}

.hc-healthcheck-detail-table tbody tr.hc-row-grey-b > td.hc-col-chapter-section {
    background-color: #ECEFF3 !important;
}


/* ========================================================================== */
/* HealthCheck v33 - forced table alignment and visible zebra rows             */
/* ========================================================================== */

/*
 * Critical widths are also present inline in HealthCheck.aspx so these remain
 * correct even if older bundled CSS is cached.
 */
.hc-healthcheck-detail-table {
    width: 100% !important;
    min-width: 1100px !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}

.hc-healthcheck-detail-table th.hc-col-chapter-section,
.hc-healthcheck-detail-table td.hc-col-chapter-section,
.hc-healthcheck-detail-table th.hc-col-rate,
.hc-healthcheck-detail-table td.hc-col-rate {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    box-sizing: border-box !important;
}

.hc-healthcheck-detail-table th.hc-col-chapter-section,
.hc-healthcheck-detail-table td.hc-col-chapter-section {
    text-align: center !important;
    vertical-align: middle !important;
}

.hc-healthcheck-detail-table th.hc-col-rate,
.hc-healthcheck-detail-table td.hc-col-rate,
.hc-healthcheck-detail-table td.hc-result-cell,
.hc-result-name {
    text-align: center !important;
}

.hc-healthcheck-detail-table td.hc-result-cell,
.hc-healthcheck-detail-table td.hc-result-cell *,
.hc-result-name {
    color: #000000 !important;
}

/* More visible alternating greys. Result cell keeps DB BackGroundColor. */
.hc-healthcheck-detail-table tbody tr.hc-row-grey-a > td:not(.hc-result-cell) {
    background-color: #D5DAE0 !important;
}

.hc-healthcheck-detail-table tbody tr.hc-row-grey-b > td:not(.hc-result-cell) {
    background-color: #E5E8EC !important;
}

.hc-healthcheck-detail-table .hc-healthcheck-table-note,
.hc-healthcheck-detail-table .hc-healthcheck-table-note-internal {
    background: transparent !important;
}

.hc-healthcheck-detail-table .hc-healthcheck-table-note-internal {
    border-color: transparent !important;
}


/* ========================================================================== */
/* HealthCheck v34 - presentation polish                                      */
/* Keeps v33 alignment, Result colors and zebra logic unchanged               */
/* ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Section cards                                                              */
/* -------------------------------------------------------------------------- */

.hc-healthcheck-section {
    margin-bottom: 24px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #d7dee8 !important;
    border-radius: 15px !important;
    box-shadow:
        0 3px 8px rgba(15, 23, 42, 0.04),
        0 10px 24px rgba(15, 23, 42, 0.05) !important;
}

.hc-healthcheck-section:last-child {
    margin-bottom: 0 !important;
}

.hc-healthcheck-section-header {
    position: relative;
    padding: 15px 17px !important;
    background:
        linear-gradient(180deg, #f8fbff 0%, #eef6fd 100%) !important;
    border-bottom: 1px solid #d7e4f0 !important;
}

.hc-healthcheck-section-header::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: #3b82f6;
    content: "";
}

.hc-healthcheck-section-index {
    min-width: 58px !important;
    padding: 6px 10px !important;
    color: #1e3a5f !important;
    background: #ffffff !important;
    border: 1px solid #cbdceb !important;
    border-radius: 9px !important;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.05);
    font-size: 0.79rem !important;
    font-weight: 850 !important;
}

.hc-healthcheck-section-title {
    color: #162a43 !important;
    font-size: 1.03rem !important;
    font-weight: 760 !important;
    letter-spacing: 0.005em;
}

.hc-healthcheck-section-count {
    padding: 4px 9px;
    color: #475569 !important;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #d7e1eb;
    border-radius: 999px;
    font-size: 0.72rem !important;
}

/* -------------------------------------------------------------------------- */
/* Table container                                                            */
/* -------------------------------------------------------------------------- */

.hc-healthcheck-table-wrap {
    width: calc(100% - 22px) !important;
    margin: 11px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: #ffffff !important;
    border: 1px solid #d8dee7 !important;
    border-radius: 13px !important;
    box-shadow:
        0 2px 5px rgba(15, 23, 42, 0.035),
        0 8px 18px rgba(15, 23, 42, 0.045) !important;
}

/*
 * The wrapper owns the rounded edge and clips the table/header into it.
 * This gives reliable rounded corners even though the table itself uses
 * border-collapse:collapse from the working v33 markup.
 */
.hc-healthcheck-detail-table {
    margin: 0 !important;
    background: #ffffff !important;
}

/* -------------------------------------------------------------------------- */
/* Table header                                                               */
/* -------------------------------------------------------------------------- */

.hc-healthcheck-detail-table thead th {
    height: 45px;
    padding: 11px 13px !important;
    color: #334155 !important;
    background:
        linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%) !important;
    border-right: 1px solid #e1e6ed !important;
    border-bottom: 1px solid #cfd8e3 !important;
    font-size: 0.73rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.055em !important;
    vertical-align: middle !important;
}

.hc-healthcheck-detail-table thead th:last-child {
    border-right: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* Table rows                                                                 */
/* -------------------------------------------------------------------------- */

.hc-healthcheck-detail-table tbody td {
    padding: 13px 14px !important;
    border-right: 1px solid rgba(203, 213, 225, 0.55) !important;
    border-bottom: 1px solid rgba(203, 213, 225, 0.75) !important;
    vertical-align: middle !important;
    transition:
        background-color 0.12s ease,
        box-shadow 0.12s ease;
}

.hc-healthcheck-detail-table tbody td:last-child {
    border-right: 0 !important;
}

.hc-healthcheck-detail-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

/* Keep the working v33 alternating colors, with a slightly nicer hover. */
.hc-healthcheck-detail-table tbody tr.hc-row-grey-a:hover > td:not(.hc-result-cell) {
    background-color: #cbd2da !important;
}

.hc-healthcheck-detail-table tbody tr.hc-row-grey-b:hover > td:not(.hc-result-cell) {
    background-color: #d9dee4 !important;
}

/* -------------------------------------------------------------------------- */
/* Section number column                                                      */
/* -------------------------------------------------------------------------- */

.hc-chapter-section-number {
    display: inline-flex !important;
    min-width: 64px !important;
    min-height: 31px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 9px !important;
    color: #24364b !important;
    background: rgba(255, 255, 255, 0.74) !important;
    border: 1px solid rgba(148, 163, 184, 0.55) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    font-size: 0.82rem !important;
    font-weight: 850 !important;
}

/* -------------------------------------------------------------------------- */
/* Result column                                                              */
/* -------------------------------------------------------------------------- */

.hc-result-cell {
    position: relative;
    font-weight: 850 !important;
    letter-spacing: 0.01em;
    border-right: 1px solid rgba(15, 23, 42, 0.16) !important;
    border-left: 1px solid rgba(15, 23, 42, 0.10) !important;
}

.hc-result-name {
    font-size: 0.80rem !important;
    font-weight: 850 !important;
}

/* -------------------------------------------------------------------------- */
/* Notes                                                                      */
/* -------------------------------------------------------------------------- */

.hc-healthcheck-table-note {
    color: #26374a !important;
    font-size: 0.84rem !important;
    line-height: 1.55 !important;
}

.hc-healthcheck-table-note-internal {
    color: #6b4d12 !important;
    font-style: normal;
}

/* -------------------------------------------------------------------------- */
/* Edit button                                                                */
/* -------------------------------------------------------------------------- */

.hc-healthcheck-detail-table .hc-healthcheck-edit-button {
    min-width: 58px;
    min-height: 34px;
    padding: 6px 11px !important;
    color: #1e3a5f !important;
    background:
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%) !important;
    border: 1px solid #bfcddd !important;
    border-radius: 9px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    font-size: 0.78rem !important;
    font-weight: 750 !important;
}

.hc-healthcheck-detail-table .hc-healthcheck-edit-button:hover {
    color: #ffffff !important;
    background:
        linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.18);
}

/* -------------------------------------------------------------------------- */
/* Chapter card refinement                                                    */
/* -------------------------------------------------------------------------- */

.hc-healthcheck-chapter {
    border-radius: 17px !important;
    box-shadow:
        0 5px 14px rgba(15, 23, 42, 0.055),
        0 16px 34px rgba(15, 23, 42, 0.055) !important;
}

.hc-healthcheck-chapter-header {
    border-radius: 16px 16px 0 0 !important;
}

.hc-healthcheck-chapter-body {
    padding: 19px !important;
    background:
        linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {

    .hc-healthcheck-table-wrap {
        width: calc(100% - 12px) !important;
        margin: 6px !important;
        border-radius: 10px !important;
    }

    .hc-healthcheck-section {
        border-radius: 12px !important;
    }

    .hc-healthcheck-chapter-body {
        padding: 11px !important;
    }
}


/* ========================================================================== */
/* HealthCheck v35 - table filters + customer-note alignment                  */
/* ========================================================================== */

.hc-customer-note-column {
    text-align: left !important;
}

.hc-healthcheck-detail-table tbody td.hc-customer-note-column {
    vertical-align: top !important;
}

.hc-customer-note-column .hc-healthcheck-table-note,
.hc-customer-note-column .hc-note-external-text {
    width: 100%;
    text-align: left !important;
}

/* -------------------------------------------------------------------------- */
/* Filter bar                                                                 */
/* -------------------------------------------------------------------------- */

.hc-healthcheck-filter-bar {
    display: grid;
    grid-template-columns:
        minmax(180px, 0.8fr)
        minmax(180px, 0.8fr)
        minmax(260px, 1.6fr)
        auto;
    gap: 13px;
    align-items: end;
    margin: 0 0 22px;
    padding: 16px 17px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid #d7dee8;
    border-radius: 14px;
    box-shadow:
        0 2px 5px rgba(15, 23, 42, 0.035),
        0 8px 20px rgba(15, 23, 42, 0.045);
}

.hc-healthcheck-filter-field {
    min-width: 0;
}

.hc-healthcheck-filter-field label {
    display: block;
    margin: 0 0 6px;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.hc-healthcheck-filter-control {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #bdc9d8;
    border-radius: 9px;
    outline: none;
    font: inherit;
    font-size: 0.84rem;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.025);
}

.hc-healthcheck-filter-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hc-healthcheck-filter-actions {
    display: flex;
    align-items: flex-end;
}

.hc-healthcheck-filter-actions .hc-btn {
    min-height: 40px;
    white-space: nowrap;
}

.hc-healthcheck-filter-summary {
    grid-column: 1 / -1;
    min-height: 18px;
    margin-top: -2px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 650;
}

.hc-healthcheck-filter-empty {
    margin-bottom: 20px !important;
}

@media (max-width: 1050px) {
    .hc-healthcheck-filter-bar {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hc-healthcheck-filter-field-search {
        grid-column: 1 / -1;
    }

    .hc-healthcheck-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .hc-healthcheck-filter-bar {
        grid-template-columns: 1fr;
        padding: 13px;
    }

    .hc-healthcheck-filter-field-search,
    .hc-healthcheck-filter-actions,
    .hc-healthcheck-filter-summary {
        grid-column: 1;
    }

    .hc-healthcheck-filter-actions .hc-btn {
        width: 100%;
    }
}


/* ========================================================================== */
/* HealthCheck v36 - Result multi-select                                      */
/* ========================================================================== */

.hc-healthcheck-result-multiselect {
    position: relative;
    width: 100%;
}

.hc-healthcheck-result-multiselect > summary {
    position: relative;
    display: flex;
    min-height: 40px;
    align-items: center;
    padding-right: 34px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.hc-healthcheck-result-multiselect > summary::-webkit-details-marker {
    display: none;
}

.hc-healthcheck-result-multiselect > summary::after {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    content: "";
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.15s ease;
}

.hc-healthcheck-result-multiselect[open] > summary::after {
    transform: translateY(-25%) rotate(225deg);
}

.hc-healthcheck-result-summary {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hc-healthcheck-result-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 1060;
    min-width: 230px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.14),
        0 3px 8px rgba(15, 23, 42, 0.07);
}

.hc-healthcheck-result-options {
    max-height: 260px;
    overflow-y: auto;
    padding: 3px;
}

.hc-healthcheck-result-option {
    display: flex !important;
    min-height: 35px;
    align-items: center;
    gap: 9px;
    margin: 0 !important;
    padding: 7px 8px;
    color: #334155 !important;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.hc-healthcheck-result-option:hover {
    background: #f1f5f9;
}

.hc-healthcheck-result-option input[type="checkbox"] {
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
}

.hc-healthcheck-result-actions {
    display: flex;
    gap: 7px;
    justify-content: flex-end;
    margin-top: 7px;
    padding: 8px 3px 2px;
    border-top: 1px solid #e2e8f0;
}

.hc-healthcheck-result-actions .hc-btn {
    min-height: 32px;
    padding: 5px 9px !important;
    font-size: 0.75rem !important;
}

@media (max-width: 650px) {
    .hc-healthcheck-result-panel {
        min-width: 100%;
    }
}


/* ========================================================================== */
/* HealthCheck v37 - hard Customer / meeting note alignment fix               */
/* ========================================================================== */

/*
 * This selector is intentionally more specific than the general table rule:
 *
 * .hc-healthcheck-detail-table tbody td {
 *     vertical-align: middle !important;
 * }
 *
 * Customer note cells must always be top/left aligned.
 */
.hc-healthcheck-detail-table tbody tr > td.hc-customer-note-column {
    text-align: left !important;
    vertical-align: top !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.hc-healthcheck-detail-table tbody tr > td.hc-customer-note-column > .hc-healthcheck-table-note,
.hc-healthcheck-detail-table tbody tr > td.hc-customer-note-column > .hc-note-external-text {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    vertical-align: top !important;
    align-self: flex-start !important;
}


/* ========================================================================== */
/* HealthCheck v38 - flexible rows + true top/left customer note              */
/* ========================================================================== */

/*
 * HealthCheckData rows are content-height rows. No equal/fixed heights.
 */
.hc-healthcheck-detail-table tbody tr.hc-healthcheck-data-row {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.hc-healthcheck-detail-table tbody tr.hc-healthcheck-data-row > td {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/*
 * Customer / meeting note:
 * - top aligned
 * - left aligned
 * - pre-line preserves meaningful line breaks but collapses runs of spaces
 *   that can come from imported diagnostic text.
 */
.hc-healthcheck-detail-table tbody tr.hc-healthcheck-data-row >
td.hc-customer-note-column {
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 14px !important;
    text-align: left !important;
    vertical-align: top !important;
}

.hc-healthcheck-detail-table tbody tr.hc-healthcheck-data-row >
td.hc-customer-note-column > .hc-note-external-text {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    vertical-align: top !important;
    white-space: pre-line !important;
    text-indent: 0 !important;
}

/*
 * Keep the small controls compact so they establish only a natural minimum
 * row height, not an equal row height.
 */
.hc-healthcheck-detail-table tbody .hc-chapter-section-number {
    height: auto !important;
}

.hc-healthcheck-detail-table tbody .hc-result-name {
    height: auto !important;
    min-height: 0 !important;
}

/* Result dropdown Done button. */
.hc-healthcheck-result-actions .hc-btn-primary {
    color: #ffffff !important;
    background: #2563eb !important;
    border-color: #2563eb !important;
}

.hc-healthcheck-result-actions .hc-btn-primary:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}


/* ========================================================================== */
/* HealthCheck v41 - customer-visible Result pie chart                        */
/* ========================================================================== */

.hc-healthcheck-pie-card {
    max-width: 860px;
    margin: 4px auto 22px !important;
    padding: 18px 20px 20px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #d7e0ea;
    border-radius: 16px;
    box-shadow:
        0 3px 8px rgba(15, 23, 42, 0.035),
        0 12px 26px rgba(15, 23, 42, 0.05);
}

.hc-healthcheck-pie-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.hc-healthcheck-pie-kicker {
    margin-bottom: 3px;
    color: #64748b;
    font-size: 0.69rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hc-healthcheck-pie-title {
    margin: 0;
    color: #17243a;
    font-size: 1.02rem;
    font-weight: 800;
}

.hc-healthcheck-pie-note {
    padding: 5px 9px;
    color: #526175;
    background: #f1f5f9;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 650;
    white-space: nowrap;
}

.hc-healthcheck-pie-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
}

.hc-healthcheck-pie-visual-wrap {
    flex: 0 0 auto;
    text-align: center;
}

.hc-healthcheck-pie {
    width: 230px;
    height: 230px;
    margin: 0 auto;
    border: 8px solid #ffffff;
    border-radius: 50%;
    box-shadow:
        0 0 0 1px #cfd8e3,
        0 8px 22px rgba(15, 23, 42, 0.10);
}

.hc-healthcheck-pie-total {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-top: 11px;
    color: #64748b;
    font-size: 0.76rem;
}

.hc-healthcheck-pie-total strong {
    color: #17243a;
    font-size: 1rem;
    font-weight: 850;
}

.hc-healthcheck-pie-legend-list {
    display: grid;
    min-width: 300px;
    gap: 8px;
}

.hc-healthcheck-pie-legend-item {
    display: grid;
    grid-template-columns: 16px minmax(120px, 1fr) 68px 82px;
    gap: 9px;
    align-items: center;
    min-height: 36px;
    padding: 7px 9px;
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid #e0e6ed;
    border-radius: 9px;
}

.hc-healthcheck-pie-swatch {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 4px;
}

.hc-healthcheck-pie-legend-name {
    overflow: hidden;
    color: #26374a;
    font-size: 0.79rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hc-healthcheck-pie-legend-percent {
    color: #111827;
    font-size: 0.84rem;
    font-weight: 850;
    text-align: right;
}

.hc-healthcheck-pie-legend-count {
    color: #64748b;
    font-size: 0.72rem;
    text-align: right;
}

.hc-healthcheck-pie-empty {
    padding: 22px;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    text-align: center;
}

@media (max-width: 820px) {

    .hc-healthcheck-pie-content {
        flex-direction: column;
        gap: 22px;
    }

    .hc-healthcheck-pie-legend-list {
        width: 100%;
        min-width: 0;
    }

    .hc-healthcheck-pie-heading {
        flex-direction: column;
        gap: 8px;
    }

    .hc-healthcheck-pie-note {
        white-space: normal;
    }
}

@media (max-width: 520px) {

    .hc-healthcheck-pie-card {
        padding: 14px;
    }

    .hc-healthcheck-pie {
        width: 190px;
        height: 190px;
    }

    .hc-healthcheck-pie-legend-item {
        grid-template-columns: 14px minmax(90px, 1fr) 56px;
    }

    .hc-healthcheck-pie-legend-count {
        grid-column: 2 / 4;
        text-align: left;
    }
}


/* ========================================================================== */
/* HealthCheck v43 - smooth 3D pie polish                                     */
/* ========================================================================== */

.hc-healthcheck-pie-3d-stage {
    transform-style: preserve-3d;
}

.hc-healthcheck-pie-3d-stage .hc-healthcheck-pie {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.hc-healthcheck-pie-3d-stage:hover .hc-healthcheck-pie {
    transform: translateZ(0) translateY(-2px) scale(1.008);
    box-shadow:
        0 0 0 1px rgba(148, 163, 184, 0.62),
        0 14px 25px rgba(15, 23, 42, 0.17),
        inset -16px -18px 26px rgba(15, 23, 42, 0.13),
        inset 12px 10px 20px rgba(255, 255, 255, 0.16);
}

.hc-healthcheck-pie-3d-stage .hc-healthcheck-pie-3d-base {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.hc-healthcheck-pie-3d-stage:hover .hc-healthcheck-pie-3d-base {
    transform: translateY(13px) scaleY(0.965);
    box-shadow: 0 19px 28px rgba(15, 23, 42, 0.28);
}


/* ========================================================================== */
/* HealthCheck v61 - Result editor in checkpoint popup                        */
/* ========================================================================== */

.hc-healthcheck-result-editor-field {
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.hc-healthcheck-result-editor-row {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(220px, 0.72fr);
    gap: 12px;
    align-items: center;
}

.hc-healthcheck-result-edit-select {
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    color: #172033;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 650;
    outline: none;
}

.hc-healthcheck-result-edit-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hc-healthcheck-result-preview {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 650;
}

.hc-healthcheck-result-preview-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background: #e5e7eb;
    border: 1px solid rgba(15, 23, 42, 0.22);
    border-radius: 5px;
}

.hc-healthcheck-result-preview[data-admin-visibility="true"] {
    color: #7c2d12;
    background: #fff7ed;
    border-color: #fed7aa;
}

@media (max-width: 720px) {
    .hc-healthcheck-result-editor-row {
        grid-template-columns: 1fr;
    }
}


/* ========================================================================== */
/* HealthCheck v62 - Result dropdown with database color swatches              */
/* ========================================================================== */

.hc-healthcheck-result-edit-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hc-healthcheck-result-dropdown {
    position: relative;
    width: 100%;
}

.hc-healthcheck-result-dropdown-button {
    display: grid !important;
    width: 100% !important;
    min-height: 42px !important;
    grid-template-columns: 18px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    padding: 8px 11px !important;
    color: #172033 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    font-size: 0.9rem !important;
    font-weight: 650 !important;
    text-align: left !important;
}

.hc-healthcheck-result-dropdown-button:hover,
.hc-healthcheck-result-dropdown-button:focus {
    background: #ffffff !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.hc-healthcheck-result-selected-swatch,
.hc-healthcheck-result-dropdown-item-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: #e5e7eb;
    border: 1px solid rgba(15, 23, 42, 0.24);
    border-radius: 5px;
}

.hc-healthcheck-result-selected-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hc-healthcheck-result-dropdown-arrow {
    color: #64748b;
    font-size: 14px;
    text-align: right;
}

.hc-healthcheck-result-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 12050;
    max-height: 320px;
    padding: 5px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.hc-healthcheck-result-dropdown-menu[hidden] {
    display: none !important;
}

.hc-healthcheck-result-dropdown-item {
    display: grid !important;
    width: 100% !important;
    min-height: 40px !important;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin: 0 !important;
    padding: 8px 9px !important;
    color: #243247 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    font-size: 0.86rem !important;
    font-weight: 650 !important;
    text-align: left !important;
}

.hc-healthcheck-result-dropdown-item + .hc-healthcheck-result-dropdown-item {
    margin-top: 2px !important;
}

.hc-healthcheck-result-dropdown-item:hover,
.hc-healthcheck-result-dropdown-item:focus,
.hc-healthcheck-result-dropdown-item.is-selected {
    background: #eff6ff !important;
}

.hc-healthcheck-result-dropdown-item.is-selected {
    box-shadow: inset 0 0 0 1px #bfdbfe !important;
}

.hc-healthcheck-result-dropdown-item-text {
    min-width: 0;
}

.hc-healthcheck-result-dropdown-item-visibility {
    padding: 3px 7px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.hc-healthcheck-result-dropdown-item-visibility.is-admin {
    color: #9a3412;
    background: #fff7ed;
    border-color: #fed7aa;
}


/* ========================================================================== */
/* HealthCheck v63 - CSI Meeting editor section                               */
/* ========================================================================== */

.hc-healthcheck-csi-section {
    margin: 2px 0 4px;
    padding: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #f4f8fc 100%);
    border: 1px solid #cdddeb;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.035);
}

.hc-healthcheck-csi-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 11px;
    border-bottom: 1px solid #dce7f1;
}

.hc-healthcheck-csi-section-header h3 {
    margin: 2px 0 0;
    color: #173e6c;
    font-size: 1.02rem;
    font-weight: 800;
}

.hc-healthcheck-csi-badge {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 4px 9px;
    color: #1e4f78;
    background: #eaf4ff;
    border: 1px solid #c5dcf1;
    border-radius: 999px;
    font-size: 0.69rem;
    font-weight: 800;
    white-space: nowrap;
}

.hc-healthcheck-csi-grid {
    display: grid;
    grid-template-columns: minmax(210px, 0.34fr) minmax(320px, 0.66fr);
    gap: 14px;
    align-items: start;
}

.hc-healthcheck-csi-grid .hc-healthcheck-editor-field {
    gap: 7px;
}

.hc-healthcheck-csi-select {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    color: #172033;
    background: #ffffff;
    border: 1px solid #bdcbd9;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 650;
    outline: none;
}

.hc-healthcheck-csi-select:focus,
.hc-healthcheck-csi-description:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.hc-healthcheck-csi-description {
    display: block;
    width: 100% !important;
    min-height: 112px !important;
    padding: 10px 11px !important;
    color: #172033 !important;
    background: #ffffff !important;
    border: 1px solid #bdcbd9 !important;
    border-radius: 9px !important;
    font-family: inherit !important;
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
    resize: vertical;
}

.hc-csi-description-source {
    display: none !important;
}

@media (max-width: 760px) {
    .hc-healthcheck-csi-grid {
        grid-template-columns: 1fr;
    }

    .hc-healthcheck-csi-section-header {
        display: block;
    }

    .hc-healthcheck-csi-badge {
        margin-top: 8px;
    }
}


/* ========================================================================== */
/* HealthCheck v64 - polished checkpoint editor + reliable Result metadata    */
/* ========================================================================== */

/*
 * The popup is a presentation editor. Keep all content inside the dialog and
 * remove the horizontal scroll introduced by the previous two-column body.
 */
.hc-healthcheck-note-dialog {
    width: min(1120px, calc(100vw - 44px)) !important;
    max-width: 1120px !important;
}

.hc-healthcheck-note-dialog-shell {
    width: 100% !important;
    min-width: 0 !important;
}

.hc-healthcheck-note-dialog-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 18px 22px 20px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.hc-healthcheck-note-dialog-body > * {
    min-width: 0 !important;
    max-width: 100% !important;
}

/* Shared presentation card for Result, CSI Meeting and Notes. */
.hc-healthcheck-editor-section {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 16px !important;
    background: linear-gradient(180deg, #fbfdff 0%, #f7fafe 100%) !important;
    border: 1px solid #d8e4ef !important;
    border-radius: 13px !important;
    box-shadow: 0 4px 13px rgba(15, 23, 42, 0.04) !important;
}

.hc-healthcheck-editor-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e9f1;
}

.hc-healthcheck-editor-section-header h3 {
    margin: 2px 0 0 !important;
    color: #173e6c !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
}

.hc-healthcheck-editor-section-badge {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 4px 9px;
    color: #1e4f78;
    background: #eaf4ff;
    border: 1px solid #c5dcf1;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

/* Result: selector and visibility preview stay on one clean row. */
.hc-healthcheck-result-editor-field {
    padding-bottom: 16px !important;
    border-bottom: 1px solid #d8e4ef !important;
}

.hc-healthcheck-result-editor-row {
    display: grid !important;
    grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.72fr) !important;
    gap: 14px !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
}

.hc-healthcheck-result-dropdown,
.hc-healthcheck-result-preview {
    min-width: 0 !important;
    max-width: 100% !important;
}

.hc-healthcheck-result-dropdown-button {
    min-height: 46px !important;
    border-radius: 10px !important;
}

.hc-healthcheck-result-preview {
    min-height: 46px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Strong visible database color swatches. */
.hc-healthcheck-result-selected-swatch,
.hc-healthcheck-result-preview-swatch,
.hc-healthcheck-result-dropdown-item-swatch {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex: 0 0 20px !important;
    border: 1px solid rgba(15, 23, 42, 0.30) !important;
    border-radius: 5px !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.40),
        0 1px 2px rgba(15, 23, 42, 0.08) !important;
}

.hc-healthcheck-result-dropdown-menu {
    z-index: 30000 !important;
    max-height: 300px !important;
}

.hc-healthcheck-result-dropdown-item {
    grid-template-columns: 20px minmax(0, 1fr) auto !important;
    min-height: 42px !important;
    gap: 10px !important;
}

.hc-healthcheck-result-dropdown-item-visibility.is-admin {
    color: #9a3412 !important;
    background: #fff1e8 !important;
    border-color: #fdba74 !important;
}

.hc-healthcheck-result-preview[data-admin-visibility="true"] {
    color: #9a3412 !important;
    background: #fff7ed !important;
    border-color: #fdba74 !important;
}

/* CSI Meeting is now full-width; fields fit inside without overflowing. */
.hc-healthcheck-csi-section {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.hc-healthcheck-csi-grid {
    display: grid !important;
    grid-template-columns: minmax(250px, 0.36fr) minmax(0, 0.64fr) !important;
    gap: 16px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.hc-healthcheck-csi-option-field,
.hc-healthcheck-csi-description-field {
    min-width: 0 !important;
}

.hc-healthcheck-csi-select,
.hc-healthcheck-csi-description {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.hc-healthcheck-csi-description {
    min-height: 102px !important;
    max-height: 220px !important;
}

/* Notes get their own full-width presentation section. */
.hc-healthcheck-notes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.hc-healthcheck-notes-grid .hc-healthcheck-editor-field {
    min-width: 0 !important;
}

.hc-healthcheck-notes-grid .hc-healthcheck-html-editor {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 210px !important;
    max-height: 34vh !important;
    box-sizing: border-box !important;
}

/* Footer remains fixed-looking and tidy without causing horizontal overflow. */
.hc-healthcheck-note-dialog-footer {
    flex: 0 0 auto !important;
}

@media (max-width: 860px) {

    .hc-healthcheck-note-dialog {
        width: min(96vw, 900px) !important;
    }

    .hc-healthcheck-result-editor-row,
    .hc-healthcheck-csi-grid,
    .hc-healthcheck-notes-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 560px) {

    .hc-healthcheck-note-dialog {
        width: calc(100vw - 18px) !important;
    }

    .hc-healthcheck-note-dialog-header,
    .hc-healthcheck-note-dialog-body,
    .hc-healthcheck-note-dialog-footer {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    .hc-healthcheck-editor-section {
        padding: 13px !important;
    }

    .hc-healthcheck-editor-section-header {
        display: block;
    }

    .hc-healthcheck-editor-section-badge,
    .hc-healthcheck-csi-badge {
        margin-top: 7px;
    }
}


/* ========================================================================== */
/* HealthCheck v65 - AJAX save + CSI Option table column                      */
/* ========================================================================== */

.hc-healthcheck-detail-table th.hc-col-csi-option,
.hc-healthcheck-detail-table td.hc-col-csi-option {
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    box-sizing: border-box !important;
    text-align: left !important;
    vertical-align: middle !important;
}

.hc-csi-option-table-text {
    display: inline-block;
    max-width: 100%;
    padding: 4px 8px;
    color: #26415f;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(100, 116, 139, 0.20);
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.hc-healthcheck-data-row.hc-healthcheck-row-saved > td:not(.hc-result-cell) {
    animation: hcHealthCheckSavedRow 2.1s ease-out;
}

.hc-healthcheck-data-row.hc-healthcheck-row-saved > td.hc-result-cell {
    outline: 3px solid rgba(37, 99, 235, 0.36);
    outline-offset: -3px;
}

@keyframes hcHealthCheckSavedRow {
    0% {
        box-shadow: inset 0 0 0 9999px rgba(191, 219, 254, 0.58);
    }

    55% {
        box-shadow: inset 0 0 0 9999px rgba(219, 234, 254, 0.30);
    }

    100% {
        box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0);
    }
}

@media print {

    .hc-healthcheck-detail-table th.hc-col-csi-option,
    .hc-healthcheck-detail-table td.hc-col-csi-option {
        width: 38mm !important;
        min-width: 38mm !important;
        max-width: 38mm !important;
    }

    .hc-csi-option-table-text {
        padding: 0 !important;
        color: #1f2937 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        font-size: inherit !important;
        font-weight: 650 !important;
    }
}


/* ========================================================================== */
/* HealthCheck v66 - Chapter / Section context in checkpoint editor header    */
/* ========================================================================== */

.hc-healthcheck-editor-hierarchy {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 10px;
}

.hc-healthcheck-editor-context-card {
    display: grid;
    min-width: 260px;
    max-width: 520px;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 7px 10px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #d5e1ec;
    border-radius: 9px;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.035);
}

.hc-healthcheck-editor-context-label {
    color: #64748b;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hc-healthcheck-editor-context-number {
    display: inline-flex;
    min-width: 34px;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    color: #174a75;
    background: #eaf4ff;
    border: 1px solid #c4dcf2;
    border-radius: 7px;
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.hc-healthcheck-editor-context-text {
    min-width: 0;
    overflow: hidden;
    color: #172033;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 700px) {

    .hc-healthcheck-editor-hierarchy {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hc-healthcheck-editor-context-card {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .hc-healthcheck-editor-context-text {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}


/* ========================================================================== */
/* HealthCheck v68 - CSI Option filter + CSI Meeting PDF                      */
/* ========================================================================== */

/* Five filter controls on wide screens: Section / Result / CSI / Search / Clear */
.hc-healthcheck-filter-bar {
    grid-template-columns:
        minmax(155px, 0.72fr)
        minmax(170px, 0.76fr)
        minmax(175px, 0.78fr)
        minmax(245px, 1.42fr)
        auto;
}

.hc-csi-pdf-export-button {
    background: #0f766e !important;
    border-color: #0f766e !important;
}

.hc-csi-pdf-export-button:hover,
.hc-csi-pdf-export-button:focus {
    background: #0d655f !important;
    border-color: #0d655f !important;
}

.hc-csi-pdf-report-heading {
    display: none;
}

/*
 * CSI Description is intentionally hidden in the normal screen table.
 * It becomes a dedicated column only in the CSI PDF export.
 */
.hc-csi-description-pdf-col,
.hc-csi-description-pdf-column {
    display: none;
}

.hc-csi-description-pdf-text {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {

    .hc-healthcheck-filter-bar {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hc-healthcheck-filter-field-search,
    .hc-healthcheck-filter-actions {
        grid-column: auto;
    }
}

@media (max-width: 650px) {

    .hc-healthcheck-filter-bar {
        grid-template-columns: 1fr;
    }

    .hc-healthcheck-filter-field-search,
    .hc-healthcheck-filter-actions,
    .hc-healthcheck-filter-summary {
        grid-column: 1;
    }
}


/* ========================================================================== */
/* HealthCheck v69 - report tab / Report Created Date                        */
/* ========================================================================== */

.hc-report-created-date {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin: 10px 0 16px;
    padding: 8px 12px;
    color: #526175;
    background: #f8fafc;
    border: 1px solid #d9e3ec;
    border-radius: 9px;
    font-size: 0.76rem;
    font-weight: 750;
}

.hc-report-created-date strong {
    color: #334155;
    font-weight: 850;
}

@media print {

    .hc-report-created-date {
        margin: 2mm 0 4mm 0 !important;
        padding: 2mm 3mm !important;
        color: #475569 !important;
        background: #f8fafc !important;
        border: 1px solid #d9e3ec !important;
        border-radius: 2mm !important;
        font-size: 8pt !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
}


/* ========================================================================== */
/* HealthCheck v76 - report cleanup + one-page Result distribution            */
/* ========================================================================== */

/*
 * Report-only controls are never presentation content.
 * The JavaScript report generator removes these from the cloned report DOM;
 * these rules are a second line of defense for print/report rendering.
 */
.hc-report-tab .hc-healthcheck-filter-bar,
.hc-report-tab .hc-healthcheck-filter-empty,
.hc-report-tab .hc-healthcheck-result-panel {
    display: none !important;
}

/*
 * Keep the Result distribution as one report unit.
 * The new-tab report adds stronger dimensions after the copied styles because
 * the generated 3D pie contains inline dimensions.
 */
.hc-report-tab:not(.hc-csi-pdf-export-active) .hc-healthcheck-pie-card {
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
}

@media print {

    /*
     * A4 landscape has limited printable height. Keep the complete Result
     * distribution card together and compact enough that Chrome/Edge can move
     * it intact to the next page instead of splitting the chart/legend.
     */
    .hc-report-tab:not(.hc-csi-pdf-export-active) .hc-healthcheck-pie-card {
        width: 100% !important;
        max-width: 245mm !important;
        max-height: 165mm !important;
        margin: 4mm auto 6mm auto !important;
        padding: 4mm 5mm !important;
        overflow: hidden !important;
        break-inside: avoid-page !important;
        page-break-inside: avoid !important;
        box-shadow: none !important;
    }

    .hc-report-tab:not(.hc-csi-pdf-export-active) .hc-healthcheck-pie-content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8mm !important;
    }

    .hc-report-tab:not(.hc-csi-pdf-export-active) .hc-healthcheck-pie-legend-list {
        width: auto !important;
        min-width: 96mm !important;
        max-width: 135mm !important;
        gap: 1.5mm !important;
    }

    .hc-report-tab:not(.hc-csi-pdf-export-active) .hc-healthcheck-pie-legend-item {
        min-height: 8mm !important;
        padding: 1.5mm 2mm !important;
    }
}


/* ========================================================================== */
/* HealthCheck v77 - DoITWeb-style mobile navigation                          */
/* ========================================================================== */

/*
 * Desktop remains the existing HealthCheck left-sidebar layout.
 * Mobile follows the DoITWeb interaction:
 *   fixed top banner
 *   hamburger button
 *   navigation expands downward
 *   no backdrop overlay
 *   no body scroll lock
 */
@media (max-width: 991.98px) {

    html {
        scroll-padding-top: 76px;
    }

    body {
        padding-top: 64px !important;
    }

    body.hc-sidebar-open {
        overflow: auto !important;
    }

    .hc-main {
        margin-left: 0 !important;
    }

    /*
     * DoITWeb has no master-page breadcrumb/title row on mobile.
     * Individual pages already provide their own presentation heading.
     */
    .hc-page-header {
        display: none !important;
    }

    .hc-mobile-header {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 1060 !important;
        display: flex !important;
        min-height: 64px !important;
        height: 64px !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 7px 14px !important;
        color: #ffffff !important;
        background:
            linear-gradient(
                135deg,
                #0b1f33,
                #173b5f
            ) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
        box-shadow: 0 6px 22px rgba(7, 25, 42, 0.22) !important;
        backdrop-filter: none !important;
    }

    .hc-mobile-brand-wrap {
        display: flex !important;
        min-width: 0 !important;
        align-items: center !important;
        gap: 10px !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .hc-mobile-brand-wrap:hover,
    .hc-mobile-brand-wrap:focus {
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .hc-mobile-brand-logo {
        display: block !important;
        width: auto !important;
        max-width: 145px !important;
        height: 38px !important;
        object-fit: contain !important;
    }

    .hc-mobile-brand {
        overflow: hidden !important;
        color: #ffffff !important;
        font-size: 0.96rem !important;
        font-weight: 750 !important;
        line-height: 1 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /*
     * DoITWeb hamburger appearance and state.
     */
    .hc-menu-button {
        display: inline-flex !important;
        width: 43px !important;
        height: 43px !important;
        min-height: 43px !important;
        flex: 0 0 43px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.28) !important;
        border-radius: 7px !important;
        box-shadow: none !important;
    }

    .hc-menu-button:hover,
    .hc-menu-button:focus {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.16) !important;
        border-color: rgba(255, 255, 255, 0.44) !important;
    }

    .hc-menu-button-bars {
        display: grid !important;
        width: 20px !important;
        gap: 4px !important;
    }

    .hc-menu-button-bars span {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        background: #ffffff !important;
        border-radius: 2px !important;
        transform-origin: center !important;
        transition:
            transform 0.16s ease,
            opacity 0.16s ease !important;
    }

    .hc-menu-button.is-open .hc-menu-button-bars span:nth-child(1) {
        transform: translateY(6px) rotate(45deg) !important;
    }

    .hc-menu-button.is-open .hc-menu-button-bars span:nth-child(2) {
        opacity: 0 !important;
    }

    .hc-menu-button.is-open .hc-menu-button-bars span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg) !important;
    }

    /*
     * Turn the existing sidebar into the DoITWeb-style dropdown area.
     * It is not an off-canvas drawer on mobile.
     */
    .hc-sidebar {
        position: fixed !important;
        top: 64px !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        z-index: 1055 !important;
        display: none !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        max-height: calc(100vh - 64px) !important;
        flex-direction: column !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 0 !important;
        background:
            linear-gradient(
                180deg,
                #102b46 0%,
                #0b1f33 100%
            ) !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
        box-shadow: 0 12px 26px rgba(7, 25, 42, 0.25) !important;
        transform: none !important;
        transition: none !important;
    }

    body.hc-sidebar-open .hc-sidebar {
        display: flex !important;
        transform: none !important;
    }

    /*
     * Desktop sidebar brand is redundant because the top mobile banner
     * already shows Danoffice IT / HealthCheck.
     */
    .hc-sidebar > .hc-brand {
        display: none !important;
    }

    .hc-nav {
        flex: 0 0 auto !important;
        padding: 9px 10px 12px !important;
    }

    .hc-nav-section + .hc-nav-section {
        margin-top: 7px !important;
        padding-top: 7px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.075) !important;
    }

    .hc-nav-caption {
        padding: 6px 10px 5px !important;
        color: #8496ae !important;
        font-size: 0.65rem !important;
    }

    .hc-nav-item {
        margin: 1px 0 !important;
    }

    .hc-nav-link {
        min-height: 43px !important;
        padding: 10px 12px !important;
        border-radius: 7px !important;
        font-size: 0.9rem !important;
    }

    .hc-nav-link.active {
        background: rgba(40, 121, 184, 0.36) !important;
        box-shadow: none !important;
        border-left: 3px solid #66c4ef !important;
    }

    .hc-nav-link.active::before {
        display: none !important;
    }

    .hc-nav-sublist {
        margin: 2px 0 5px !important;
        padding: 0 0 0 36px !important;
    }

    .hc-nav-sublink {
        min-height: 36px !important;
        padding: 7px 9px !important;
        border-radius: 6px !important;
    }

    /*
     * Customer / user / version / WAN information remains part of the
     * expanded menu, like the information area in DoITWeb.
     */
    .hc-sidebar-footer {
        flex: 0 0 auto !important;
        padding: 12px 20px 15px !important;
        background: rgba(0, 0, 0, 0.10) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
    }

    .hc-sidebar-user {
        margin-bottom: 10px !important;
        padding: 9px 10px !important;
    }

    /*
     * DoITWeb mobile menu has no page-dimming overlay.
     */
    .hc-sidebar-overlay,
    body.hc-sidebar-open .hc-sidebar-overlay {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .hc-content-shell {
        width: min(100% - 18px, 1540px) !important;
        margin: 14px auto 0 !important;
        padding: 0 0 22px !important;
    }

    .hc-footer {
        padding-right: 9px !important;
        padding-left: 9px !important;
    }

    .hc-footer-inner {
        width: min(100% - 18px, 1540px) !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    /*
     * Keep wide data tables usable on a phone rather than compressing
     * columns until the content becomes unreadable.
     */
    .hc-table-wrap,
    .table-scroll,
    .hc-healthcheck-table-wrap {
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .page-card,
    .section-card,
    .hc-card {
        padding: 16px !important;
        border-radius: 12px !important;
    }

    .page-actions {
        justify-content: flex-start !important;
    }
}

/*
 * Very narrow phones: preserve the DoITWeb-style full-width content and
 * reduce only spacing, not table column definitions.
 */
@media (max-width: 575.98px) {

    .hc-mobile-header {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .hc-mobile-brand-logo {
        max-width: 115px !important;
        height: 34px !important;
    }

    .hc-mobile-brand {
        font-size: 0.88rem !important;
    }

    .hc-content-shell {
        width: calc(100% - 12px) !important;
        margin-top: 8px !important;
    }

    .hc-nav {
        padding-right: 7px !important;
        padding-left: 7px !important;
    }

    .page-card,
    .section-card,
    .hc-card {
        padding: 13px !important;
    }
}


/* ========================================================================== */
/* HealthCheck v20260817-3 - page colour fallback                              */
/* ========================================================================== */

/*
 * Fallback only. HealthCheckPage.css is still the normal page stylesheet.
 * These rules ensure the core HealthCheck palette remains visible if a stale
 * deployment temporarily omits the page-specific stylesheet.
 */
.hc-healthcheck-modern .hc-healthcheck-hero {
    color: #ffffff !important;
    background: linear-gradient(120deg, #173f67 0%, #1f5f8b 58%, #2876a2 100%) !important;
}

.hc-healthcheck-modern .hc-healthcheck-hero h1,
.hc-healthcheck-modern .hc-healthcheck-hero strong {
    color: #ffffff !important;
}

.hc-healthcheck-modern .hc-healthcheck-hero-intro,
.hc-healthcheck-modern .hc-healthcheck-hero-kicker {
    color: rgba(255, 255, 255, 0.82) !important;
}

.hc-healthcheck-modern .hc-healthcheck-hero-button-primary {
    color: #173f67 !important;
    background: #ffffff !important;
}

.hc-healthcheck-modern .hc-healthcheck-hero-button-glass {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.10) !important;
}

.hc-healthcheck-modern .hc-healthcheck-detail-table td.hc-result-cell,
.hc-healthcheck-modern .hc-healthcheck-detail-table td.hc-result-cell .hc-result-name {
    color: #000000 !important;
    forced-color-adjust: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}


/* ========================================================================== */
/* HealthCheck v101 - Result colour only inside rounded result badge          */
/* ========================================================================== */
/*
 * The database BackGroundColor belongs only to .hc-result-rounded.
 * The Result table cell itself follows the normal zebra row background.
 */
.hc-healthcheck-modern .hc-healthcheck-detail-table tbody tr.hc-row-grey-a > td.hc-result-cell {
    background-color: #D5DAE0 !important;
}

.hc-healthcheck-modern .hc-healthcheck-detail-table tbody tr.hc-row-grey-b > td.hc-result-cell {
    background-color: #E5E8EC !important;
}

.hc-healthcheck-modern .hc-healthcheck-detail-table td.hc-result-cell > .hc-result-rounded {
    display: flex !important;
    width: 100% !important;
    min-height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
