/*
 * The CURE platform's palette (Brand.mode = 'cure').
 *
 * Loaded after everything else, and only in CURE mode - BrandMiddleware adds
 * the link. NAT mode never sees this file.
 *
 *   deep blue   #1F5FAE   titles, primary actions      (was orange #f1702b)
 *   blue        #2E86DE   menu bar, action buttons     (was green  #63B143)
 *   navy        #0F2F57   pressed, strong text
 *   tint        #EAF2FB   panels, hovers
 *
 * Red stays red: a required-field star and a Remove button say "careful", and
 * that is not a brand colour.
 */
:root, body.brand-cure {
    --cure-primary: #1F5FAE;
    --cure-primary-dark: #174A8A;
    --cure-accent: #2E86DE;
    --cure-accent-dark: #1B6BB8;
    --cure-navy: #0F2F57;
    --cure-tint: #EAF2FB;
    --vz-primary: #1F5FAE;
    --vz-primary-rgb: 31, 95, 174;
    --vz-success: #2E86DE;
    --vz-success-rgb: 46, 134, 222;
    --vz-info: #2E86DE;
    --vz-info-rgb: 46, 134, 222;
    --vz-link-color: #1F5FAE;
    --vz-link-hover-color: #174A8A;
}

/* A column or block the CURE platform does not have. */
.brand-cure [data-brand-hide] { display: none !important; }

/* ---- buttons: every "go" button is one of the two blues */
.brand-cure .btn-primary,
.brand-cure .btn-secondary {
    --vz-btn-bg: #1F5FAE; --vz-btn-border-color: #1F5FAE;
    --vz-btn-hover-bg: #174A8A; --vz-btn-hover-border-color: #174A8A;
    --vz-btn-active-bg: #0F2F57; --vz-btn-active-border-color: #0F2F57;
    --vz-btn-disabled-bg: #1F5FAE; --vz-btn-disabled-border-color: #1F5FAE;
    background-color: #1F5FAE !important; border-color: #1F5FAE !important; color: #fff !important;
}
.brand-cure .btn-primary:hover, .brand-cure .btn-primary:focus,
.brand-cure .btn-secondary:hover, .brand-cure .btn-secondary:focus {
    background-color: #174A8A !important; border-color: #174A8A !important; color: #fff !important;
}
.brand-cure .btn-success,
.brand-cure .btn-info {
    --vz-btn-bg: #2E86DE; --vz-btn-border-color: #2E86DE;
    --vz-btn-hover-bg: #1B6BB8; --vz-btn-hover-border-color: #1B6BB8;
    --vz-btn-active-bg: #174A8A; --vz-btn-active-border-color: #174A8A;
    --vz-btn-disabled-bg: #2E86DE; --vz-btn-disabled-border-color: #2E86DE;
    background-color: #2E86DE !important; border-color: #2E86DE !important; color: #fff !important;
}
.brand-cure .btn-success:hover, .brand-cure .btn-success:focus,
.brand-cure .btn-info:hover, .brand-cure .btn-info:focus {
    background-color: #1B6BB8 !important; border-color: #1B6BB8 !important; color: #fff !important;
}
.brand-cure .btn-warning {
    background-color: #5B8FD1 !important; border-color: #5B8FD1 !important; color: #fff !important;
}
.brand-cure .btn-outline-primary, .brand-cure .btn-outline-success, .brand-cure .btn-outline-info {
    color: #1F5FAE !important; border-color: #1F5FAE !important; background-color: transparent !important;
}
.brand-cure .btn-outline-primary:hover, .brand-cure .btn-outline-success:hover, .brand-cure .btn-outline-info:hover {
    background-color: #1F5FAE !important; color: #fff !important;
}
.brand-cure .btn-soft-primary, .brand-cure .btn-soft-success, .brand-cure .btn-soft-info {
    background-color: #EAF2FB !important; color: #1F5FAE !important; border-color: transparent !important;
}

/* ---- the menu bar, links, paging, form focus */
.brand-cure[data-layout=horizontal] .navbar-menu,
.brand-cure .navbar-menu,
[data-layout=horizontal] .brand-cure .navbar-menu { background: #1F5FAE !important; }
/* Links - but never a link drawn as a button: its caption is white on blue.
   ("Clear" was blue on blue and read as an empty button.) */
.brand-cure a:not(.btn) { color: #1F5FAE; }
.brand-cure a:not(.btn):hover { color: #174A8A; }
.brand-cure .btn-danger, .brand-cure a.btn-danger,
.brand-cure a.btn-primary, .brand-cure a.btn-success, .brand-cure a.btn-info, .brand-cure a.btn-secondary {
    color: #fff !important;
}
.brand-cure .navbar-menu a, .brand-cure .navbar-menu .nav-link { color: #fff; }
.brand-cure .page-link { color: #1F5FAE !important; }
.brand-cure .active > .page-link, .brand-cure .page-link.active,
.brand-cure .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #1F5FAE !important; border-color: #1F5FAE !important; color: #fff !important;
}
.brand-cure .form-control:focus, .brand-cure .form-select:focus {
    border-color: #2E86DE !important; box-shadow: 0 0 0 .15rem rgba(46, 134, 222, .2) !important;
}
.brand-cure .form-check-input:checked { background-color: #1F5FAE !important; border-color: #1F5FAE !important; }
.brand-cure .bg-primary, .brand-cure .badge.bg-primary { background-color: #1F5FAE !important; }
.brand-cure .bg-success, .brand-cure .badge.bg-success { background-color: #2E86DE !important; }
.brand-cure .text-primary { color: #1F5FAE !important; }
.brand-cure .text-success { color: #1B6BB8 !important; }
.brand-cure .nav-tabs .nav-link.active, .brand-cure .nav-pills .nav-link.active {
    color: #fff !important; background-color: #1F5FAE !important; border-color: #1F5FAE !important;
}
.brand-cure .modal-header[style] { background: #1F5FAE !important; }

/* ---- every rule in custom.css that named a NAT colour, in CURE's */
.brand-cure .form-check-input:checked { background-color: #2E86DE!important; border-color: #2E86DE!important; }
.brand-cure [data-layout=horizontal] .navbar-menu { background:#2E86DE !important; }
.brand-cure .card-title { color:#1F5FAE !important; }
.brand-cure .btn-primary { --vz-btn-bg: #2E86DE !important; --vz-btn-border-color: #2E86DE !important; --vz-btn-disabled-bg: #2E86DE !important; --vz-btn-disabled-border-color: #2E86DE !important; }
.brand-cure .btn-success { --vz-btn-bg: #2E86DE !important; --vz-btn-border-color: #2E86DE !important; --vz-btn-disabled-bg: #2E86DE !important; --vz-btn-disabled-border-color: #2E86DE !important; }
.brand-cure .btn-danger { --vz-btn-bg: #1F5FAE !important; --vz-btn-border-color: #1F5FAE !important; --vz-btn-hover-bg: #174A8A !important; --vz-btn-hover-border-color: #174A8A !important; --vz-btn-active-bg: #174A8A !important; --vz-btn-active-border-color: #174A8A !important; --vz-btn-disabled-bg: #1F5FAE !important; --vz-btn-disabled-border-color: #1F5FAE !important; }
.brand-cure .page-link { color:#2E86DE !important; }
.brand-cure [data-layout=horizontal] .navbar-nav .nav-item:hover>.menu-dropdown a:hover { color:#1F5FAE!important; }
.brand-cure .login-rgth .user-ico { color:#2E86DE !important; }
.brand-cure .multi-wrapper .item-group .group-label { color: #1F5FAE !important; }
.brand-cure .ri-edit-orange-ralign { color: #1F5FAE !important; }
.brand-cure .map-fld-title { color: #1F5FAE !important; }
.brand-cure .title-bar { background:#8DBBEA !important; }
.brand-cure .table>thead tr { background:#8DBBEA !important; }
.brand-cure .select2-container--default .select2-results__option--selected { background-color:#8DBBEA!important; }
.brand-cure .successhearder h5 { color: #1B6BB8 !important; }
.brand-cure table > tbody > tr:hover > *, .brand-cure table > tbody > tr:hover { background-color: #8DBBEA !important; }
.brand-cure .panel-heading { color: #1F5FAE !important; }
.brand-cure .dash-container:hover { background-color:#2E86DE!important; }
.brand-cure .btn-info { background-color:#2E86DE !important; border-color:#2E86DE !important; }
.brand-cure div.dt-buttons button { background: #2E86DE!important; border-color: #2E86DE!important; }
.brand-cure .topbar-user { background-color: #1F5FAE !important; }
.brand-cure .topbar-user { background-color: #1F5FAE !important; }
.brand-cure table.dataTable.display>tbody>tr.even>.sorting_1, .brand-cure table.dataTable.order-column.stripe>tbody>tr.even>.sorting_1 { background-color: #8DBBEA !important; }
.brand-cure table.dataTable.hover > tbody > tr:hover > *, .brand-cure table.dataTable.display > tbody > tr:hover > * { background-color: #8DBBEA !important; }
.brand-cure table.dataTable.hover > tbody > tr.selected:hover > *, .brand-cure table.dataTable.display > tbody > tr.selected:hover > * { background-color: #8DBBEA !important; }
.brand-cure .dataTables_wrapper .dataTables_paginate .paginate_button.current, .brand-cure .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { border: 1px solid #2E86DE !important; background: #2E86DE !important; }
.brand-cure .dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: #8DBBEA !important; border: 1px solid #8DBBEA !important; }
.brand-cure .page-link:hover { background: #8DBBEA !important; }
.brand-cure table.table-bordered.dataTable .sfColor td { color: #1F5FAE!important; }

/* ---- masthead and footer: navy, and compact (operator, 7 Oct 2026)
   The bar was 70px tall around a 60px logo. There is no logo here, so it is
   44px: the name in the middle, the signed-in user on one line at the right. */
.brand-cure #page-topbar { height: 44px !important; min-height: 0 !important; border: 0 !important; }
.brand-cure #page-topbar .navbar-header {
    height: 44px !important; min-height: 0 !important;
    background: #0F2F57 !important; padding: 0 16px 0 8px !important;
}
.brand-cure #page-topbar .navbar-brand-box { display: none !important; }
.brand-cure #page-topbar .head-bottom { top: 0 !important; height: 44px; display: flex !important; align-items: center; }
.brand-cure #page-topbar .head-bottom h3 {
    margin: 0 !important; font-size: 19px !important; line-height: 44px !important;
    letter-spacing: .14em; font-weight: 600; color: #fff !important;
}
.brand-cure #page-topbar .header-item { height: 44px !important; }
.brand-cure #page-topbar .topbar-user { height: 44px !important; background: transparent !important; }
.brand-cure #page-header-user-dropdown {
    height: 44px !important; padding: 0 6px !important; display: flex; align-items: center; color: #fff !important;
}
.brand-cure #page-topbar .welcome-msg { display: inline-flex !important; align-items: center; margin: 0 !important; }
.brand-cure #page-topbar .welcome-msg i { font-size: 20px !important; line-height: 1; margin-right: 6px; color: #fff; }
.brand-cure #page-topbar .welcome-user { display: inline-flex !important; align-items: baseline; white-space: nowrap; }
.brand-cure #page-topbar .user-name-text,
.brand-cure #page-topbar .user-name-sub-text {
    display: inline !important; margin: 0 !important; font-size: 12.5px !important; line-height: 1.2 !important;
    color: #fff !important; font-weight: 500 !important;
}
.brand-cure #page-topbar .user-name-sub-text { margin-left: 4px !important; font-weight: 600 !important; }
.brand-cure #footer, .brand-cure .footer, .brand-cure footer {
    background: #0F2F57 !important; color: #fff !important;
}
.brand-cure #footer a, .brand-cure .footer a { color: #cfe1f7 !important; }
/* The name stays in the middle of the bar; the menu and the page move up by
   the 26px the bar gave back. */
.brand-cure #page-topbar .head-bottom {
    left: 0 !important; right: 0 !important; width: 100% !important;
    justify-content: center; text-align: center; pointer-events: none;
}
.brand-cure .app-menu, .brand-cure .navbar-menu,
[data-layout=horizontal] .brand-cure .app-menu, [data-layout=horizontal] .brand-cure .navbar-menu { margin-top: 44px !important; }
[data-layout=horizontal] .brand-cure .page-content, .brand-cure .page-content { padding-top: 43px !important; }
.brand-cure #page-topbar .user-name-sub-text,
.brand-cure #page-topbar .user-name-text { max-width: none !important; overflow: visible !important; text-overflow: clip !important; }

/* ---- the exam receipt's own styles, set from exam_receipt_layout.js (a file,
   so the page filter never sees its colours) */
.brand-cure .nat-add-custom { border: 1px dashed #1F5FAE !important; color: #1F5FAE !important; background: #fff !important; }
.brand-cure .nat-add-custom:hover { background: #1F5FAE !important; color: #fff !important; }
.brand-cure .nat-custom-box { border: 1px dashed #1F5FAE !important; background: #F3F8FD !important; }
.brand-cure .nat-custom-bar, .brand-cure .nat-custom-tools a { color: #174A8A !important; }

/* ---- the row icons (Edit, Notes, Delete) and every other coloured link.
   They were the theme's green and soft red; all three are in the blue family
   now, told apart by shade: Edit deep blue, Notes blue, Delete navy
   (operator, 7 Oct 2026). */
.brand-cure .link-success, .brand-cure .link-success i,
.brand-cure .link-primary, .brand-cure .link-primary i { color: #1F5FAE !important; }
.brand-cure .link-success:hover, .brand-cure .link-primary:hover { color: #174A8A !important; }
.brand-cure a.link-success[title="Notes"], .brand-cure a.link-success[title="Notes"] i,
.brand-cure a.link-success[data-bs-original-title="Notes"], .brand-cure a.link-success[data-bs-original-title="Notes"] i,
.brand-cure .link-info, .brand-cure .link-info i, .brand-cure .link-secondary, .brand-cure .link-secondary i { color: #2E86DE !important; }
.brand-cure .link-danger, .brand-cure .link-danger i,
.brand-cure .link-warning, .brand-cure .link-warning i { color: #0F2F57 !important; }
.brand-cure .link-danger:hover, .brand-cure .link-warning:hover { color: #1F5FAE !important; }
.brand-cure .text-success i, .brand-cure i.text-success, .brand-cure i.text-primary { color: #1F5FAE !important; }
.brand-cure i.text-danger, .brand-cure .text-danger i { color: #0F2F57 !important; }
.brand-cure .ri-edit-orange-ralign { color: #1F5FAE !important; }

/* ---- the menu's current and hovered entries */
.brand-cure .navbar-menu .menu-link, .brand-cure .navbar-menu .menu-link.active,
.brand-cure .navbar-menu .menu-link:hover { color: #fff !important; }
.brand-cure .navbar-menu .menu-dropdown .nav-link { color: #334155 !important; }
.brand-cure .navbar-menu .menu-dropdown .nav-link.active,
.brand-cure .navbar-menu .menu-dropdown .nav-link:hover { color: #1F5FAE !important; background: transparent; }
/* The drop-down panels and the hovered top entry were the old dark grey. */
.brand-cure .navbar-menu .menu-dropdown,
.brand-cure .navbar-menu .nav-item:hover > .menu-link,
.brand-cure .navbar-menu .nav-item .menu-link[aria-expanded="true"] { background: #0F2F57 !important; }
.brand-cure .navbar-menu .menu-dropdown .nav-link { color: #fff !important; }
.brand-cure .navbar-menu .menu-dropdown .nav-link.active,
.brand-cure .navbar-menu .menu-dropdown .nav-link:hover { color: #8DBBEA !important; background: transparent !important; }

/* ---- the CURE platform does not offer "Restart" on the exam list (client,
   7 Oct 2026). Hidden, not removed: the button and what it does are still
   there in NAT mode. */
.brand-cure .cure-restart-btn { display: none !important; }
/* History, filled - the third blue of the set (CURE light, Callback deep, History navy). */
.brand-cure .cure-actions a.cure-chip.btn-outline-secondary {
    background: #0F2F57 !important; border-color: #0F2F57 !important; color: #fff !important;
}
.brand-cure .cure-actions a.cure-chip.btn-outline-secondary:hover {
    background: #174A8A !important; border-color: #174A8A !important; color: #fff !important;
}
.brand-cure .cure-actions .cure-chip { border-color: transparent; }
.brand-cure .cure-actions .cure-status-badge { border: 0 !important; }

/* ---- the exam list's buttons: one colour, the Search button's (client,
   7 Oct 2026). CURE, Stop, Retry, Callback to MIS and History all look the
   same; what each does is its caption. */
.brand-cure .cure-actions .cure-chip,
.brand-cure .cure-actions .cure-status-badge,
.brand-cure .cure-actions a.cure-chip.btn-outline-secondary {
    /* Exactly the btn-primary Search button: #1F5FAE, #174A8A when hovered. */
    background: #1F5FAE !important; border: 1px solid #1F5FAE !important; color: #fff !important;
}
.brand-cure .cure-actions .cure-chip:hover,
.brand-cure .cure-actions a.cure-chip.btn-outline-secondary:hover {
    background: #174A8A !important; border-color: #174A8A !important; color: #fff !important;
}

/* The name in the masthead: a little bigger, and bold (client, 7 Oct 2026). */
.brand-cure #page-topbar .head-bottom h3 {
    font-size: 24px !important; font-weight: 800 !important; letter-spacing: .16em;
}

/* The signed-in user: the icon and "Welcome <name>" on one centre line. The
   name sat on its own baseline, below the middle of the icon. */
.brand-cure #page-header-user-dropdown > span,
.brand-cure #page-topbar .welcome-msg,
.brand-cure #page-topbar .welcome-user { display: inline-flex !important; align-items: center !important; height: 44px; }
.brand-cure #page-topbar .welcome-msg i {
    display: inline-flex !important; align-items: center; justify-content: center;
    position: static !important; float: none !important; top: auto !important;
    height: 22px; width: 22px; font-size: 22px !important; line-height: 22px !important;
    margin: 0 6px 0 0 !important; padding: 0 !important; vertical-align: middle;
}
.brand-cure #page-topbar .user-name-text,
.brand-cure #page-topbar .user-name-sub-text {
    line-height: 22px !important; height: 22px; padding: 0 !important; vertical-align: middle;
}
/* custom.css pushes the name down 10px to sit under a taller icon. */
.brand-cure #page-topbar .welcome-user { margin: 0 !important; float: none !important; }
