/* Write your CSS code. */


/* Goal tab live-update indicator */
.goal-tabs li.has-live-update > a.goal-tab::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e74c3c;
    margin-left: 6px;
    vertical-align: middle;
    animation: pulse-dot 1.2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

:root {
    --theme-shell-bg: #25354b;
    --theme-shell-text: rgba(255, 255, 255, 0.82);
    --app-sidebar-width: 200px;
    --app-sidebar-width-collapsed: 80px;
    --app-sidebar-transition: width 0.3s ease-in-out, margin-left 0.3s ease-in-out;
    --theme-shell-text-muted: rgba(255, 255, 255, 0.54);
    --theme-shell-hover-bg: rgba(95, 159, 116, 0.10);
    --theme-shell-active-bg: rgba(95, 159, 116, 0.20);
    --theme-shell-accent: var(--theme-button-success-hover);
    --theme-header-bg: rgba(255, 255, 255, 0.80);
    --theme-header-border: rgba(232, 237, 243, 0.78);
    --theme-page-bg: #f3f6fa;
    --theme-card-bg: #ffffff;
    --theme-card-border: #edf1f6;
    --theme-table-border: #f2f4f7;
    --theme-table-header-border: #eaecf0;
    --theme-table-stripe: #f5fafc;
    --theme-table-hover: #eef7fb;
    --theme-text-strong: #1f2937;
    --theme-text-body: #475467;
    --theme-text-muted: #667085;
    --theme-text-subtle: #98a2b3;
    --theme-chip-bg: #f2f4f7;
    --theme-chip-text: #4b5565;
    --theme-success-bg: #e9f8ee;
    --theme-success-text: #2a9f5f;
    --theme-danger-bg: #fdecee;
    --theme-danger-text: #c84a56;
    --theme-button-success: #65a97a;
    --theme-button-success-border: #5c9d72;
    --theme-button-success-hover: #5f9f74;
    --theme-button-success-border-hover: #579269;
    --theme-pagination-active-bg: #25354b;
    --theme-pagination-active-border: #25354b;
    --theme-pagination-text: #475467;
    --theme-pagination-muted: #667085;
    --theme-pagination-border: #e4e7ec;
    --theme-pagination-hover-bg: #f8fafc;
    --theme-pagination-hover-border: #d0d5dd;
    --theme-pagination-disabled: #98a2b3;
    --app-search-accent: var(--theme-button-success);
    --app-search-focus-ring: 0 0 0 3px rgba(101, 169, 122, 0.14);
}

/* Shared search focus ring — matches schedule search */
.client-list-page__search-wrap:focus-within .client-list-page__control-icon,
.staff-list-page__search-wrap:focus-within .staff-list-page__control-icon,
.settings-goal-page__search-wrap:focus-within .settings-goal-page__control-icon,
.goals-search-group:focus-within .goals-search-icon,
.graph-target-selector-search-wrap:focus-within .graph-target-selector-search-icon,
.clinical-snapshot-search-wrap:focus-within .fa,
.clinical-mastered-search-wrap:focus-within .fa,
.quick-client-care-team__search:focus-within i,
input.form-control[id^="search_"]:focus ~ .input-group-btn .fa,
.input-group:has(input.form-control[id^="search_"]:focus) .fa {
    color: var(--app-search-accent);
}

.client-list-page__search:focus,
.staff-list-page__search:focus,
.settings-goal-page__search:focus,
.graph-target-selector-search:focus,
.goals-search-group:focus-within,
.clinical-snapshot-search-wrap:focus-within,
.clinical-mastered-search-wrap:focus-within,
.quick-client-care-team__search:focus-within,
input.form-control[id^="search_"]:focus,
input[type="search"].form-control:focus {
    border-color: var(--app-search-accent) !important;
    background: #fff !important;
    box-shadow: var(--app-search-focus-ring) !important;
    outline: none;
}

.goals-search-input:focus,
.quick-client-care-team__search .form-control:focus,
.clinical-snapshot-search-wrap input:focus,
.clinical-mastered-search-wrap input:focus {
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none;
}

@media print {
    ::-webkit-scrollbar {
        display: none;
    }
}

.table-ico {
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    vertical-align: middle;
    display: inline-block;
}

    .table-ico .fa {
        line-height: inherit;
    }

.timeline-item {
    list-style-type: none;
}

.btn-primary {
    background: #5f5977;
    border-color: #524d67;
}

    .btn-primary.active.focus,
    .btn-primary.active:focus,
    .btn-primary.active:hover,
    .btn-primary:active.focus,
    .btn-primary:active:focus,
    .btn-primary:active:hover,
    .open > .dropdown-toggle.btn-primary.focus,
    .open > .dropdown-toggle.btn-primary:focus,
    .open > .dropdown-toggle.btn-primary:hover {
        background: #524d67;
    }

    .btn-primary:hover,
    .btn-primary:active,
    .btn-primary.hover {
        background: #524d67;
    }

    .btn-primary.focus,
    .btn-primary:focus {
        background: #524d67;
    }

a {
    color: #8c81b9;
}

    a:hover,
    a:active,
    a:focus {
        color: #5f5977;
    }

body.skin-blue {
    background: var(--theme-page-bg);
}

.btn-link {
    color: #8c81b9;
}

    .btn-link:hover,
    .btn-link:active,
    .btn-link:focus {
        color: #5f5977;
    }

.skin-blue .sidebar-menu > li > a {
    border-left: 5px solid transparent;
}

.skin-blue .wrapper,
.skin-blue .main-sidebar,
.skin-blue .left-side {
    background-color: #243247;
}

.skin-blue .content-wrapper,
.skin-blue .main-footer {
    background: #f7f9fc;
}

.skin-blue .main-footer a {
    color: var(--theme-button-success);
}

.skin-blue .main-footer a:hover,
.skin-blue .main-footer a:focus {
    color: var(--theme-button-success-hover);
}

.skin-blue .main-header .navbar,
.skin-blue .main-header .logo {
    background: #ffffff;
    border-bottom: 1px solid #eaecf0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.skin-blue .main-header .navbar {
    margin-left: var(--app-sidebar-width);
    transition: var(--app-sidebar-transition);
}

.skin-blue.sidebar-collapse .main-header .navbar {
    margin-left: var(--app-sidebar-width-collapsed);
}

.main-header .sidebar-toggle {
    color: #667085;
    background: transparent;
}

    .main-header .sidebar-toggle:hover {
        background: #f8fafc;
        color: #344054;
    }

.app-shell-logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 14px !important;
    width: var(--app-sidebar-width) !important;
    height: 62px !important;
    overflow: hidden;
    background: #243247 !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--app-sidebar-transition);
}

.app-shell-logo__mini,
.app-shell-logo__full {
    align-items: center;
}

.app-shell-logo__mini {
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.app-shell-logo__full {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.app-shell-logo__image {
    display: block;
    width: min(100%, 172px);
    max-width: 100%;
    max-height: none;
    height: auto;
}

.app-shell-logo__image--mini {
    width: 42px;
    max-width: 42px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
    object-position: center center;
}

.sidebar {
    padding-top: 14px;
}

.app-shell-sidebar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-shell-sidebar__menu {
    padding: 0 10px 16px;
}

.skin-blue .sidebar-menu > li.header {
    padding: 8px 12px 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.skin-blue .sidebar-menu > li {
    margin-bottom: 6px;
}

    .skin-blue .sidebar-menu > li > a {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 40px;
        padding: 10px 12px;
        border-left: 0;
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.78);
        font-size: 15px;
        font-weight: 500;
    }

        .skin-blue .sidebar-menu > li > a > .fa {
            width: 18px;
            text-align: center;
            font-size: 17px;
            color: rgba(255, 255, 255, 0.68);
        }

        .skin-blue .sidebar-menu > li > a > span:not(.app-shell-sidebar__active-dot) {
            flex: 1 1 auto;
        }

        .skin-blue .sidebar-menu > li:hover > a,
        .skin-blue .sidebar-menu > li > a:focus {
            background: var(--theme-shell-hover-bg);
            color: #ffffff;
        }

            .skin-blue .sidebar-menu > li:hover > a > .fa,
            .skin-blue .sidebar-menu > li > a:focus > .fa {
                color: rgba(255, 255, 255, 0.9);
            }

    .skin-blue .sidebar-menu > li.active > a {
        background: var(--theme-shell-active-bg);
        color: #ffffff;
        font-weight: 600;
        box-shadow: inset 3px 0 0 var(--theme-shell-accent);
    }

        .skin-blue .sidebar-menu > li.active > a > .fa {
            color: #e8f7ee;
        }

.app-shell-sidebar__active-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e5b86f;
    opacity: 0;
    flex: 0 0 6px;
}

.skin-blue .sidebar-menu > li.active > a .app-shell-sidebar__active-dot {
    display: none;
}

textarea:hover,
input:not([type="checkbox"]):not([type="radio"]):hover,
textarea:active,
input:not([type="checkbox"]):not([type="radio"]):active,
textarea:focus,
input:not([type="checkbox"]):not([type="radio"]):focus,
button:focus,
button:active,
button:hover,
label:focus,
.btn:active,
.btn.active {
    outline: 0px !important;
    -webkit-appearance: none;
    box-shadow: none !important;
}

.box.box-primary {
    border-top-color: #5f5977;
}

.dataTables_wrapper .dataTables_info {
    float: left;
    color: var(--theme-text-muted);
    font-size: 13px;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 14px;
    float: right;
}

.dataTables_wrapper .pagination {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dataTables_wrapper .pagination > li > a,
.dataTables_wrapper .pagination > li > span {
    border: 1px solid transparent;
    background: transparent;
    color: var(--theme-pagination-text);
    border-radius: 10px;
    min-width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 0;
}

.dataTables_wrapper .pagination > li:first-child > a,
.dataTables_wrapper .pagination > li:last-child > a {
    border: 1px solid var(--theme-pagination-border);
    background: #fff;
    color: var(--theme-pagination-muted);
    min-width: auto;
    padding: 0 11px;
}

.dataTables_wrapper .pagination > li > a:hover,
.dataTables_wrapper .pagination > li > span:hover,
.dataTables_wrapper .pagination > li > a:focus,
.dataTables_wrapper .pagination > li > span:focus {
    border-color: var(--theme-pagination-hover-border);
    background: var(--theme-pagination-hover-bg);
    color: #344054;
    text-decoration: none;
}

.dataTables_wrapper .pagination > .active > a,
.dataTables_wrapper .pagination > .active > a:focus,
.dataTables_wrapper .pagination > .active > a:hover,
.dataTables_wrapper .pagination > .active > span,
.dataTables_wrapper .pagination > .active > span:focus,
.dataTables_wrapper .pagination > .active > span:hover {
    background: var(--theme-pagination-active-bg);
    border-color: var(--theme-pagination-active-border);
    color: #fff;
    border-radius: 10px;
}

.dataTables_wrapper .pagination > .disabled > a,
.dataTables_wrapper .pagination > .disabled > span {
    color: var(--theme-pagination-disabled);
    background: #fff;
    border-color: var(--theme-pagination-border);
    cursor: default;
    pointer-events: none;
}

.dataTables_wrapper .dataTables_paginate .ellipsis {
    border: 0 !important;
    background: transparent !important;
    color: var(--theme-pagination-disabled) !important;
}

.dataTables_wrapper::after {
    content: "";
    display: table;
    clear: both;
}

.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
    background-color: var(--theme-pagination-active-bg);
    border-color: var(--theme-pagination-active-border);
}

.dataTables_wrapper > .table > tbody > tr > td {
    padding: 2px 5px;
    line-height: 1;
    vertical-align: middle;
}

td.dataTables_empty {
    padding: 8px !important;
}

.panel-group .panel {
    border-radius: 0;
    box-shadow: none;
    border-color: #eeeeee;
}

.panel-default > .panel-heading {
    padding: 0;
    border-radius: 0;
    background-color: #fafafa;
    border-color: #eeeeee;
}

.panel-title {
    font-size: 14px;
}

    .panel-title > a {
        display: block;
        padding: 10px;
        color: #000;
        text-decoration: none;
    }

.panel-default > .panel-heading + .panel-collapse > .panel-body {
    border-top-color: #eeeeee;
}

div.panel-highlight {
    background-color: #5f5977 !important;
    border-color: #524d67 !important;
    color: #fff !important;
}

    div.panel-highlight a {
        color: #fff !important;
    }

.overlay {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
}

.overlay__inner {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
}

.overlay__content {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 75px;
    height: 75px;
    display: inline-block;
    border-width: 8px;
    border-color: rgba(0, 0, 0, 0.05);
    border-top-color: #fff;
    animation: spin 1s infinite linear;
    border-radius: 100%;
    border-style: solid;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.mr-5 {
    margin-right: 5px !important;
}

.mr-10 {
    margin-right: 10px !important;
}

.mt-5 {
    margin-top: 5px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.chat-without-image .right .direct-chat-text {
    margin-right: 0px;
    margin-left: 0;
}

#note-chat-container {
    max-height: 300px;
    overflow-y: auto;
}

#sign {
    display: block;
    border: 2px dotted #cccccc;
    border-radius: 12px;
    cursor: crosshair;
}

.btn-primary .badge {
    color: #524d67;
}

.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:focus,
.nav-tabs.nav-justified > .active > a:hover {
    background: #5f5977;
    color: #fff;
    border-radius: 0;
}

.login-logo img {
    max-width: 360px !important;
    margin-left: 30px;
}

.login-page .error-page {
    margin-top: 25vh;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
}

.custom-modal-width {
    max-width: 1000px;
}

#dataTable {
    width: 100% !important;
    table-layout: fixed;
}

#tablePopupContainer {
    max-height: 90vh;
    overflow-y: auto;
}

.direct-chat-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-note-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

    .edit-note-btn i {
        font-size: 16px;
        color: black;
    }

.note-text {
    flex-grow: 1;
}

.switch-tenant h5 {
    padding: 2px 10px;
}

/* Grey color for placeholder options (empty value) */
select option[value=""] {
    color: #999;
}

/*Normal text color for other options*/
select option:not([value=""]) {
    color: #000;
}

/*select {
    color: #000;*/ /* default color */
/*}*/

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical;
}

.floating-left-icon {
    float: left;
    position: relative;
    top: 4px;
}



.switch-tenant h5 {
    padding: 2px 10px;
}


/* Break out of table constraints */
.full-width-row {
    width: 100%;
}

/* Fix AdminLTE table width limitation */
.table > tbody > tr > td .live-stream-layout {
    width: 100%;
}

/* Ensure flex actually expands */
/* Shared live stream player */
.live-stream-container {
    width: 100%;
}

/* Legacy rule — kept for any accordion inline player rows */
.live-stream-layout {
    display: flex;
    width: 100%;
    gap: 16px;
}

/* ── Session Viewer: two-column layout ──────────────────────────────────── */
/* Left (60%): Video card + Graph card stacked vertically                    */
/* Right (40%): Tags card — stretches to full combined height, scrollable   */

.session-viewer-layout {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.session-viewer-left {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Video card — fills its column width */
.live-stream-video {
    width: 100%;
    position: relative;
}

/* HLS video element — black background so letterbox areas match the video */
video.hls-player {
    background-color: #000;
    display: block;
}

/* Tags card — fills full height of the row, scrolls when content overflows */
.live-stream-tags {
    flex: 0 0 40%;
    max-width: 40%;
    overflow-y: auto;
}

/* Utility — toggled by JS / Razor when cameraconfigid is null */
.live-stream-video-wrapper.hidden,
.live-stream-no-video.hidden {
    display: none !important;
}

/* No-video placeholder card */
.live-stream-no-video {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.live-stream-no-video-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #667085;
}

    .live-stream-no-video-body .fa {
        font-size: 36px;
        color: #c8d0da;
    }

    .live-stream-no-video-body p {
        margin: 0;
        font-size: 14px;
        font-weight: 500;
    }

.live-stream-tags-header {
    padding: 18px 26px 0;
}

.live-stream-tags-title {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Tags card — injected _SessionTags partial wraps content in a div; kill any default spacing */
.live-stream-tags > div {
    padding: 0 !important;
    margin: 0 !important;
}

/* Tags card — cover BOTH static placeholder table (session-date-table)
   AND dynamically injected table (table-bordered table-striped) */
.live-stream-tags table > thead > tr > th {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}


/* Videos tab table must use full width */
#divvideos table {
    width: 100% !important;
    table-layout: fixed;
}

/* Tag row — base */
.tag-row {
    transition: background-color 0.15s ease, border-left 0.15s ease;
    border-left: 4px solid transparent;
    cursor: pointer;
}

    .tag-row td {
        vertical-align: middle;
        transition: color 0.15s ease;
    }

        .tag-row td:last-child {
            cursor: default;
        }

    /* Hover state — full row subtle highlight */
    .tag-row:hover {
        background-color: #f5f7ff !important;
    }

    /* Selected state — soft indigo */
    .tag-row.active {
        background-color: #eef2ff !important;
        border-left: 4px solid #4f46e5 !important;
    }

        .tag-row.active td:not(:last-child) {
            color: #4f46e5;
            font-weight: 600;
        }

    /* Address column — never interactive */
    .tag-row td:last-child {
        cursor: default;
        color: inherit !important;
        font-weight: inherit !important;
    }

.video-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.video-toolbar-top {
    margin-bottom: 8px;
}

.video-toolbar-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 8px;
    margin-bottom: 0;
}

.toolbar-left {
    flex: 1;
}

.toolbar-center {
    flex: 1;
    text-align: center;
    font-weight: 600;
}

.toolbar-right {
    flex: 1;
    text-align: right;
}

.back-btn {
    background: #f4f4f4;
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: liveBlink 1s infinite;
}

@keyframes liveBlink {
    0% {
        opacity: 1
    }

    50% {
        opacity: 0.2
    }

    100% {
        opacity: 1
    }
}

.stream-mode.live {
    color: #2ecc71; /* green */
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stream-mode.delayed .live-dot {
    background: orange;
    animation: none;
}

.stream-mode.recorded {
    color: #666;
}

.go-live-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .go-live-btn:not(.hidden) {
        display: inline-flex;
    }

    .go-live-btn:hover {
        background: #2ecc71;
        color: #fff;
        border-color: #2ecc71;
    }

    .go-live-btn .live-dot {
        background-color: #2ecc71 !important;
        animation: liveBlink 1s infinite !important;
    }


.tagify.form-control {
    height: auto !important;
}

.goal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    color: #4c2fb3;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

    .goal-back-link:hover,
    .goal-back-link:focus {
        color: #3c2492;
        text-decoration: none;
    }

        .goal-back-link:hover .goal-back-link__icon,
        .goal-back-link:focus .goal-back-link__icon {
            transform: translateX(-3px);
            box-shadow: 0 10px 24px rgba(95, 61, 196, 0.28);
        }

.goal-back-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7d58ea 0%, #5f3dc4 100%);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(95, 61, 196, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.goal-back-link__label {
    letter-spacing: 0.01em;
}

.content-header__title-with-back {
    display: flex;
    align-items: center;
    gap: 12px;
}

.goal-back-link--title {
    margin-bottom: 0;
    gap: 0;
    flex-shrink: 0;
}

    .goal-back-link--title .goal-back-link__icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

.app-surface-card {
    border: 1px solid var(--theme-card-border);
    border-top: 1px solid var(--theme-card-border) !important;
    border-radius: 16px;
    background: var(--theme-card-bg);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.app-surface-card__body {
    padding: 16px 18px 18px;
}

.app-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.app-toolbar__search {
    width: 530px;
    max-width: 100%;
}

.app-toolbar__filter {
    width: 196px;
}

.app-data-table {
    width: 100% !important;
    margin-bottom: 0 !important;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
}

    .app-data-table > thead > tr > th {
        text-transform: uppercase;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.09em;
        color: var(--theme-text-muted);
        border-top: 1px solid var(--theme-table-header-border) !important;
        border-bottom: 1px solid var(--theme-table-header-border) !important;
        background: var(--theme-card-bg);
        padding: 16px 24px !important;
    }

    .app-data-table > tbody > tr > td {
        vertical-align: middle !important;
        border-top: 0 !important;
        border-bottom: 1px solid var(--theme-table-border) !important;
        padding: 18px 24px !important;
        font-size: 15px;
        color: var(--theme-text-body);
        background: var(--theme-card-bg);
    }

    .app-data-table > tbody > tr:last-child > td {
        border-bottom: 0 !important;
    }

.app-chip {
    display: inline-flex;
    align-items: center;
    margin: 0 8px 6px 0;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--theme-chip-bg);
    color: var(--theme-chip-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.app-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 78px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

    .app-status-pill::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        display: inline-block;
        flex: 0 0 7px;
    }

    .app-status-pill.is-active {
        background: var(--theme-success-bg);
        color: var(--theme-success-text);
    }

        .app-status-pill.is-active::before {
            background: var(--theme-success-text);
        }

    .app-status-pill.is-inactive {
        background: var(--theme-danger-bg);
        color: var(--theme-danger-text);
    }

        .app-status-pill.is-inactive::before {
            background: var(--theme-danger-text);
        }

.app-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    background: #fff;
    color: #4b5565;
}

    .app-role-pill .fa {
        width: 12px;
        text-align: center;
    }

    .app-role-pill.is-bcba {
        border: 1px solid #a8c0f0;
    }

        .app-role-pill.is-bcba .fa {
            color: #3b66d9;
        }

    .app-role-pill.is-rbt {
        border: 1px solid #b7d4c0;
    }

        .app-role-pill.is-rbt .fa {
            color: #5f9f74;
        }

    .app-role-pill.is-tenant-admin {
        border: 1px solid #d4b3e8;
    }

        .app-role-pill.is-tenant-admin .fa {
            color: #8c3ccf;
        }

    .app-role-pill.is-system-admin {
        border: 1px solid #b8c2ce;
    }

        .app-role-pill.is-system-admin .fa {
            color: #25354b;
        }

@media (max-width: 767px) {
    .goal-back-link {
        font-size: 15px;
        gap: 10px;
        margin-bottom: 14px;
    }

    .goal-back-link__icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .goal-back-link--title .goal-back-link__icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .app-surface-card__body {
        padding: 14px;
    }

    .app-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .app-toolbar__search,
    .app-toolbar__filter {
        width: 100%;
    }

    .app-data-table > thead > tr > th,
    .app-data-table > tbody > tr > td {
        padding: 14px 16px !important;
    }

    .staff-list-page__intro {
        flex-direction: column;
    }
}

.app-page-section__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-direction: row;
    margin-bottom: 18px;
}

.app-page-section__intro-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
}

.app-page-section__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--theme-text-strong, #24324a);
}

.app-page-section__subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--theme-text-muted);
}

.client-list-page__header {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.app-list-page {
    padding-top: 4px;
}

.app-list-page__control-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--theme-table-header-border);
    background: var(--theme-card-bg);
}

.app-list-page__control-left {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.app-list-page__control-right {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    justify-content: flex-end;
    min-width: 0;
}

.app-list-page__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.app-list-page__actions .client-list-page__new-btn {
    margin-left: 0;
    white-space: nowrap;
    width: 150px;
    box-sizing: border-box;
}

.app-list-page__table-section {
    padding: 0;
    background: var(--theme-card-bg);
}

.client-list-page__table-section:not(.is-ready),
.staff-list-page__table-section:not(.is-ready) {
    visibility: hidden;
}

.app-list-page__table-section .table-responsive {
    margin: 0;
    border: 0;
}

.client-list-page .dataTables_wrapper,
.staff-list-page .dataTables_wrapper {
    padding: 16px 24px;
    border-top: 1px solid var(--theme-table-header-border);
    background: var(--theme-card-bg);
}

.client-list-page .dataTables_wrapper > .row,
.staff-list-page .dataTables_wrapper > .row {
    margin-left: 0;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.client-list-page .dataTables_wrapper > .row > [class*="col-"],
.staff-list-page .dataTables_wrapper > .row > [class*="col-"] {
    float: none;
    width: auto;
    padding: 0;
}

.client-list-page__card,
.staff-list-page__card,
.schedule-list-page__card {
    overflow: hidden;
    border: 1px solid var(--theme-card-border);
    border-top: 1px solid var(--theme-card-border) !important;
    border-radius: 16px;
    background: var(--theme-card-bg);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.client-list-page__card.box,
.staff-list-page__card.box,
.schedule-list-page__card.box {
    margin-bottom: 0;
}

.client-list-page__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-direction: row;
    margin-bottom: 18px;
}

.client-list-page__intro-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
}

.client-list-page__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #24324a;
}

.client-list-page__subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--theme-text-muted);
}

.client-list-page__new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 11px 20px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    background: var(--theme-button-success);
    border: 1px solid var(--theme-button-success-border);
    color: #fff;
    box-shadow: 0 8px 18px rgba(72, 121, 89, 0.14);
    margin-left: auto;
    flex-shrink: 0;
}

    .client-list-page__new-btn:hover,
    .client-list-page__new-btn:focus,
    .client-list-page__new-btn:active {
        background: var(--theme-button-success-hover);
        border-color: var(--theme-button-success-border-hover);
        color: #fff;
    }

.client-list-page .table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

@media (min-width: 768px) {
    .client-list-page .table-responsive {
        overflow-x: auto;
    }
}

.client-list-page__search-wrap,
.client-list-page__status-wrap {
    position: relative;
}

.client-list-page__search-wrap {
    width: 530px;
    max-width: 100%;
}

.client-list-page__status-wrap {
    width: 158px;
}

.client-list-page__search,
.client-list-page__status {
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    height: 40px;
    padding-left: 40px;
    padding-right: 14px;
    font-size: 14px;
    color: #344054;
    background: #fff;
}

.client-list-page__status-wrap {
    display: flex;
    align-items: center;
}

.client-list-page__status-label {
    color: #475467;
    font-size: 14px;
    font-weight: 400;
    position: static !important;
    pointer-events: none;
}

.client-list-page__status-dropdown {
    position: relative;
    width: 100%;
}

.client-list-page__status-trigger {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px 0 40px;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    background: #fff;
    text-align: left;
}

    .client-list-page__status-trigger:hover,
    .client-list-page__status-trigger:focus {
        border-color: #d7dee8;
        box-shadow: 0 0 0 3px rgba(101, 169, 122, 0.08) !important;
    }

.client-list-page__status-value {
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.client-list-page__status-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    padding: 6px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    z-index: 20;
}

.client-list-page__status-option {
    width: 100%;
    display: block;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #344054;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

    .client-list-page__status-option:hover,
    .client-list-page__status-option:focus {
        background: #f8fafc;
    }

    .client-list-page__status-option.is-selected {
        background: #f2f4f7;
        font-weight: 700;
    }

.client-list-page__status-select {
    display: none !important;
}

.client-list-page__search::placeholder {
    color: #98a2b3;
}

.client-list-page__search:hover {
    border-color: #d7dee8;
}

.client-list-page__status-trigger:hover,
.client-list-page__status-trigger:focus {
    border-color: #d7dee8;
    box-shadow: 0 0 0 3px rgba(101, 169, 122, 0.08) !important;
}

.client-list-page__control-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #98a2b3;
    z-index: 2;
    font-size: 14px;
}

.client-list-table {
    width: 100% !important;
    margin-bottom: 0 !important;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
}

    .client-list-table > thead > tr > th {
        text-transform: uppercase;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.09em;
        color: var(--theme-text-muted);
        border-top: 1px solid var(--theme-table-header-border) !important;
        border-bottom: 1px solid var(--theme-table-header-border) !important;
        background: var(--theme-card-bg);
        padding: 16px 24px !important;
    }

    .client-list-table > tbody > tr > td {
        vertical-align: middle !important;
        border-top: 0 !important;
        border-bottom: 1px solid var(--theme-table-border) !important;
        padding: 18px 24px !important;
        font-size: 15px;
        color: var(--theme-text-body);
        background: var(--theme-card-bg);
    }

    .client-list-table > tbody > tr:last-child > td {
        border-bottom: 0 !important;
    }

    .client-list-table > thead > tr > th:first-child,
    .client-list-table > tbody > tr > td:first-child {
        padding-left: 24px !important;
    }

    .client-list-table > thead > tr > th:last-child,
    .client-list-table > tbody > tr > td:last-child {
        padding-right: 24px !important;
    }

.client-list-table__name {
    font-weight: 700;
    font-size: 16px;
    color: #1f2937;
}

.client-list-table__goals {
    min-width: 260px;
    white-space: nowrap;
}

.client-list-table__dob {
    width: 112px;
    min-width: 112px;
    white-space: nowrap;
}

.client-list-table > thead > tr > th.client-list-table__dob,
.client-list-table > tbody > tr > td.client-list-table__dob {
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.client-list-table__goal-pill {
    display: inline-flex;
    align-items: center;
    margin: 0 8px 6px 0;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--theme-chip-bg);
    color: var(--theme-chip-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.client-list-table__goals .goal-type-pill {
    margin: 0 4px 0 0;
    padding: 2px 7px;
    font-size: 11px;
    vertical-align: middle;
}

.client-list-table__goals .goal-type-pill .fa {
    display: none;
}

.client-list-table__status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    min-width: 78px;
    text-align: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

    .client-list-table__status-pill::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        display: inline-block;
        flex: 0 0 7px;
    }

    .client-list-table__status-pill.is-active {
        background: var(--theme-success-bg);
        color: var(--theme-success-text);
    }

        .client-list-table__status-pill.is-active::before {
            background: var(--theme-success-text);
        }

    .client-list-table__status-pill.is-inactive {
        background: var(--theme-danger-bg);
        color: var(--theme-danger-text);
    }

        .client-list-table__status-pill.is-inactive::before {
            background: var(--theme-danger-text);
        }

.client-list-table__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.client-list-table > tbody > tr:hover .client-list-table__actions,
.client-list-table > tbody > tr:focus-within .client-list-table__actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.client-list-table__actions-cell {
    width: 84px;
    text-align: center;
}

.client-list-table__actions-heading {
    text-align: center;
}

.client-list-table__action-btn.btn-link {
    color: #9ca3af;
}

.client-list-table__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.12s;
}

    .client-list-table__action-btn.btn-link:hover,
    .client-list-table__action-btn.btn-link:focus,
    .client-list-table__action-btn.btn-link:active {
        color: #4f46e5;
        text-decoration: none;
    }

.staff-list-page__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.staff-list-page__intro-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.staff-list-page__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--theme-text-strong);
}

.staff-list-page__subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--theme-text-muted);
}

.staff-list-page__search-wrap,
.staff-list-page__role-wrap {
    position: relative;
}

.staff-list-page__control-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #98a2b3;
    z-index: 2;
    font-size: 14px;
}

.staff-list-page__search,
.staff-list-page__role-trigger {
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    height: 40px;
    font-size: 14px;
    color: #344054;
    background: #fff;
}

.staff-list-page__search {
    padding-left: 40px;
    padding-right: 14px;
}

    .staff-list-page__search::placeholder {
        color: #98a2b3;
    }

.staff-list-page__role-dropdown {
    position: relative;
    width: 100%;
}

.staff-list-page__role-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px 0 40px;
    text-align: left;
}

    .staff-list-page__role-trigger:hover,
    .staff-list-page__role-trigger:focus {
        border-color: #d7dee8;
        box-shadow: 0 0 0 3px rgba(101, 169, 122, 0.08) !important;
    }

    .staff-list-page__search:hover {
        border-color: #d7dee8;
    }

.staff-list-page__role-label {
    color: #475467;
    font-size: 14px;
    font-weight: 400;
}

.staff-list-page__role-value {
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.staff-list-page__role-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    padding: 6px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    z-index: 20;
}

.staff-list-page__role-option {
    width: 100%;
    display: block;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #344054;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

    .staff-list-page__role-option:hover,
    .staff-list-page__role-option:focus {
        background: #f8fafc;
    }

    .staff-list-page__role-option.is-selected {
        background: #f2f4f7;
        font-weight: 700;
    }

.staff-list-page__role-select {
    display: none !important;
}

.staff-list-table__name {
    font-weight: 700;
    font-size: 16px;
    color: var(--theme-text-strong);
}

.staff-list-table__contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.staff-list-table__contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--theme-text-body);
}

    .staff-list-table__contact-line i {
        width: 14px;
        color: #98a2b3;
        text-align: center;
    }

.staff-list-table__dob {
    white-space: nowrap;
}

.staff-list-table__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.staff-list-table > tbody > tr:hover .staff-list-table__actions,
.staff-list-table > tbody > tr:focus-within .staff-list-table__actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.staff-list-table__actions-cell {
    width: 84px;
    text-align: center;
}

.staff-list-table__actions-heading {
    text-align: center;
}

.staff-list-table__action-btn.btn-link {
    color: #9ca3af;
}

.staff-list-table__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.12s;
}

    .staff-list-table__action-btn.btn-link:not(.staff-list-table__action-btn--danger):hover,
    .staff-list-table__action-btn.btn-link:not(.staff-list-table__action-btn--danger):focus,
    .staff-list-table__action-btn.btn-link:not(.staff-list-table__action-btn--danger):active {
        color: #4f46e5;
        text-decoration: none;
    }

.staff-list-table__action-btn--danger.btn-link:hover,
.staff-list-table__action-btn--danger.btn-link:focus,
.staff-list-table__action-btn--danger.btn-link:active {
    color: #dc2626;
}

.settings-goal-page__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.settings-goal-page__card {
    overflow: hidden;
    max-width: 100%;
    container-type: inline-size;
    container-name: goal-bank-card;
}

.settings-goal-page__card.box {
    margin-bottom: 0;
}

.settings-goal-page__control-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--theme-table-header-border);
    background: var(--theme-card-bg);
}

.settings-goal-page__control-left {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex-wrap: nowrap;
}

.settings-goal-page__control-right {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    row-gap: 12px;
}

.settings-goal-page__toolbar {
    justify-content: flex-end;
}

.settings-goal-page__toolbar .settings-goal-page__actions {
    margin-left: auto;
}

.settings-goal-page__intro-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-goal-page__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--theme-text-strong);
}

.settings-goal-page__subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--theme-text-muted);
}

.settings-goal-page__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: 4px;
}

.settings-goal-page__new-btn,
.settings-goal-page__delete-btn {
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.settings-goal-page__delete-btn {
    border: 1px solid #f1b7bd;
    background: #fff5f6;
    color: #b42318;
}

    .settings-goal-page__delete-btn:hover,
    .settings-goal-page__delete-btn:focus,
    .settings-goal-page__delete-btn:active {
        border-color: #eda4ac;
        background: #ffe8ea;
        color: #912018;
    }

.settings-goal-page__body {
    padding: 0;
}

.settings-goal-page__filters {
    display: contents;
}

.settings-goal-page__search-wrap,
.settings-goal-page__filter-wrap {
    position: relative;
}

.settings-goal-page__search-wrap {
    flex: 1 1 220px;
    width: auto;
    min-width: 160px;
    max-width: 320px;
}

.settings-goal-page__filter-wrap {
    flex: 1 1 110px;
    width: auto;
    min-width: 100px;
    max-width: 160px;
}

.settings-goal-page__filter-wrap--creator {
    flex-basis: 132px;
    min-width: 120px;
    max-width: 180px;
}

.settings-goal-page__filter-wrap--visibility {
    flex-basis: 118px;
    min-width: 110px;
    max-width: 160px;
}

    .settings-goal-page__filter-wrap label {
        display: block;
        margin: 0 0 4px 4px;
        color: var(--theme-text-muted);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.08em;
        line-height: 1.2;
        text-transform: uppercase;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.settings-goal-page__control-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #98a2b3;
    z-index: 2;
    font-size: 14px;
}

.settings-goal-page__search,
.settings-goal-page__select,
.settings-goal-page .select2-container--default .select2-selection--single {
    width: 100%;
    height: 36px;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    font-size: 14px;
    box-shadow: none;
}

.settings-goal-page__search {
    padding-left: 40px;
    padding-right: 14px;
}

    .settings-goal-page__search::placeholder {
        color: #98a2b3;
    }

.settings-goal-page__select {
    padding: 0 34px 0 12px;
}

.settings-goal-page .select2-container {
    width: 100% !important;
}

.settings-goal-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #344054;
    line-height: 34px;
    padding-left: 12px;
    padding-right: 34px;
}

.settings-goal-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px;
    right: 8px;
}

.settings-goal-page__search:hover {
    border-color: #d7dee8;
}

.settings-goal-page__select:hover,
.settings-goal-page__select:focus,
.settings-goal-page .select2-container--default .select2-selection--single:hover,
.settings-goal-page .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #d7dee8;
    box-shadow: 0 0 0 3px rgba(101, 169, 122, 0.08) !important;
}

.settings-goal-page__mine-filter {
    margin: 0;
    flex-shrink: 0;
}

.settings-goal-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding-left: 0 !important;
    color: var(--theme-text-body);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
}

    .settings-goal-filter-toggle input[type="checkbox"],
    .settings-goal-table input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin: 0;
    }

.settings-goal-table {
    width: 100% !important;
    margin-bottom: 0 !important;
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
}

    .settings-goal-table > thead > tr > th {
        text-transform: uppercase;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.09em;
        color: var(--theme-text-muted);
        border-top: 0 !important;
        border-bottom: 1px solid var(--theme-table-header-border) !important;
        border-left: 0 !important;
        border-right: 0 !important;
        background: var(--theme-card-bg) !important;
        padding: 16px !important;
        vertical-align: middle;
    }

    .settings-goal-table > tbody > tr > td {
        vertical-align: middle !important;
        border-top: 0 !important;
        border-bottom: 1px solid var(--theme-table-border) !important;
        border-left: 0 !important;
        border-right: 0 !important;
        padding: 16px !important;
        font-size: 14px;
        color: var(--theme-text-body);
        background: var(--theme-card-bg) !important;
    }

    .settings-goal-table > tbody > tr:last-child > td {
        border-bottom: 0 !important;
    }

    .settings-goal-table > thead > tr > th:first-child,
    .settings-goal-table > tbody > tr > td:first-child {
        padding-left: 24px !important;
    }

    .settings-goal-table > thead > tr > th:last-child,
    .settings-goal-table > tbody > tr > td:last-child {
        padding-right: 24px !important;
    }

.settings-goal-page__table-section {
    padding: 0;
    background: var(--theme-card-bg);
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.settings-goal-page__table-section .table-responsive {
    margin: 0;
    border: 0;
}

.settings-goal-page .dataTables_wrapper {
    padding: 16px 24px;
    border-top: 1px solid var(--theme-table-header-border);
    background: var(--theme-card-bg);
}

.settings-goal-page .dataTables_wrapper > .row {
    margin-left: 0;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.settings-goal-page .dataTables_wrapper > .row > [class*="col-"] {
    float: none;
    width: auto;
    padding: 0;
}

.settings-goal-table__title {
    color: var(--theme-text-strong) !important;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.25;
}

.settings-goal-table__chip {
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 600;
}

.settings-goal-table__tags {
    min-width: 170px;
}

.settings-goal-table__status {
    min-width: 86px;
    font-size: 12px;
}

.settings-goal-table__visibility {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

    .settings-goal-table__visibility.is-public {
        background: #eef5ff;
        color: #3b66d9;
    }

    .settings-goal-table__visibility.is-private {
        background: #f2f4f7;
        color: #4b5565;
    }

.settings-goal-table__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.settings-goal-table > tbody > tr:hover .settings-goal-table__actions,
.settings-goal-table > tbody > tr:focus-within .settings-goal-table__actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.settings-goal-table__actions-cell {
    width: 108px;
    text-align: center;
}

.settings-goal-table__actions-heading,
.settings-goal-table__select-heading,
.settings-goal-table__select-cell {
    text-align: center;
}

.settings-goal-table__action-btn.btn-link {
    color: #9ca3af;
}

.settings-goal-table__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #9ca3af;
    text-decoration: none !important;
    transition: color 0.12s;
}

    .settings-goal-table__action-btn.btn-link:not(.settings-goal-table__action-btn--danger):not(.is-disabled):hover,
    .settings-goal-table__action-btn.btn-link:not(.settings-goal-table__action-btn--danger):not(.is-disabled):focus,
    .settings-goal-table__action-btn.btn-link:not(.settings-goal-table__action-btn--danger):not(.is-disabled):active {
        color: #4f46e5;
        text-decoration: none !important;
    }

.settings-goal-table__action-btn--danger.btn-link:not(.is-disabled):hover,
.settings-goal-table__action-btn--danger.btn-link:not(.is-disabled):focus,
.settings-goal-table__action-btn--danger.btn-link:not(.is-disabled):active {
    color: #dc2626;
}

.settings-goal-table__action-btn.is-disabled,
.settings-goal-table__action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.settings-goal-page .dataTables_wrapper .dataTables_paginate,
.settings-goal-page .dataTables_wrapper .dataTables_info {
    margin-top: 0;
    padding-top: 0;
}

.configure-2fa-page__card {
    overflow: hidden;
}

.configure-2fa-page__header {
    padding: 22px 24px 0;
}

.configure-2fa-page__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--theme-text-strong);
}

.configure-2fa-page__subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--theme-text-muted);
}

.configure-2fa-page__body {
    padding-top: 18px;
}

.configure-2fa-table__actions-col {
    width: 240px;
    text-align: right;
}

.configure-2fa-table > thead > tr > th:last-child,
.configure-2fa-table > tbody > tr > td:last-child {
    text-align: right;
}

.configure-2fa-table__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.configure-2fa__default-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.configure-2fa__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.configure-2fa__btn--set-default {
    color: #344054;
    background: #fff;
    border: 1px solid #d0d5dd;
}

    .configure-2fa__btn--set-default:hover,
    .configure-2fa__btn--set-default:focus,
    .configure-2fa__btn--set-default:active {
        color: #1f2937;
        background: #f9fafb;
        border-color: #98a2b3;
    }

.configure-2fa__btn--default,
.configure-2fa__btn--default:hover,
.configure-2fa__btn--default:focus,
.configure-2fa__btn--default:active {
    color: #98a2b3;
    background: #f2f4f7;
    border: 1px solid #f2f4f7;
    cursor: default;
    opacity: 1;
}

.configure-2fa__btn--reset {
    color: #dc2626;
    background: #fff;
    border: 1px solid #fca5a5;
}

    .configure-2fa__btn--reset:hover,
    .configure-2fa__btn--reset:focus,
    .configure-2fa__btn--reset:active {
        color: #b91c1c;
        background: #fef2f2;
        border-color: #f87171;
    }

.configure-2fa__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #98a2b3;
    box-shadow: none;
}

    .configure-2fa__icon-btn:hover,
    .configure-2fa__icon-btn:focus,
    .configure-2fa__icon-btn:active {
        color: #4f46e5;
        background: transparent;
    }

.client-list-page .dataTables_wrapper .dataTables_info,
.staff-list-page .dataTables_wrapper .dataTables_info {
    margin-top: 0;
}

.header-breadcrumb-nav {
    float: left;
    display: flex;
    align-items: center;
    height: 62px;
    padding-left: 18px;
}

.navbar-custom-menu > .navbar-nav > li > a {
    color: #667085;
}

    .navbar-custom-menu > .navbar-nav > li > a:hover,
    .navbar-custom-menu > .navbar-nav > li > a:focus {
        background: transparent;
        color: #344054;
    }

.navbar-nav > .tasks-menu > .dropdown-toggle,
.navbar-nav > .user-menu > .dropdown-toggle {
    font-size: 14px;
    font-weight: 500;
}

.navbar-nav > .tasks-menu > .dropdown-toggle {
    color: #667085;
}

    .navbar-nav > .tasks-menu > .dropdown-toggle .mr-5 {
        margin-right: 6px !important;
    }

.main-header .navbar-custom-menu,
.main-header .navbar-right {
    margin-right: 14px;
}

.skin-blue .main-header .navbar .nav > li > a {
    height: 62px;
    display: flex;
    align-items: center;
}

.content-wrapper {
    min-height: calc(100vh - 50px);
}

.content-header {
    padding: 28px 28px 10px;
    background: transparent;
}

.content {
    padding: 0 20px 24px;
    background: transparent;
}

.content-header > h1 {
    font-size: 18px;
    font-weight: 500;
    color: #101828;
}

.header-breadcrumb > li {
    color: #667085;
    font-size: 14px;
    white-space: nowrap;
}

    .header-breadcrumb > li + li::before {
        content: ">";
        color: #98a2b3;
        padding: 0 10px 0 8px;
    }

    .header-breadcrumb > li > a {
        color: #667085;
    }

        .header-breadcrumb > li > a:hover {
            color: #344054;
        }

.header-breadcrumb > .active {
    color: #344054;
    font-weight: 500;
}

.navbar-nav > .tasks-menu {
    border-right: 1px solid #eaecf0;
    margin-right: 10px;
    padding-right: 8px;
}

    .navbar-nav > .tasks-menu > .dropdown-toggle .mr-5 {
        color: #667085;
    }

    .navbar-nav > .tasks-menu > .dropdown-toggle strong,
    .navbar-nav > .user-menu > .dropdown-toggle .hidden-xs {
        color: #344054;
    }

body.sidebar-collapse .app-shell-logo {
    width: var(--app-sidebar-width-collapsed) !important;
    padding: 0 !important;
    justify-content: center;
}

body.sidebar-collapse .app-shell-logo__full {
    display: none !important;
}

body.sidebar-collapse .app-shell-logo__mini {
    display: inline-flex !important;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .content-header > h1 {
        margin: 0;
    }

.header-breadcrumb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    line-height: 1;
}

    .header-breadcrumb > li {
        color: #c8ccda;
        font-size: 13px;
        white-space: nowrap;
    }

        .header-breadcrumb > li + li::before {
            content: ">";
            color: #b0b5c2;
            padding: 0 8px 0 6px;
        }

        .header-breadcrumb > li > a {
            color: #d6d9e5;
        }

            .header-breadcrumb > li > a:hover {
                color: #ffffff;
            }

    .header-breadcrumb > .active {
        color: #f2f3f8;
        font-weight: 500;
    }

@media (max-width: 991px) {
    .app-list-page__control-bar {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .app-list-page__control-left,
    .app-list-page__control-right {
        flex-wrap: wrap;
        width: 100%;
    }

    .app-list-page__control-right {
        justify-content: flex-start;
    }

    .app-list-page__actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 767px) {
    .client-list-page__header {
        flex-direction: column;
    }

    .app-list-page__actions .client-list-page__new-btn {
        width: 100%;
    }

    .client-list-page__intro {
        flex-direction: column;
    }

    .app-list-page__control-left {
        flex-direction: column;
        align-items: stretch;
    }

    .client-list-page__search-wrap,
    .client-list-page__status-wrap,
    .staff-list-page__search-wrap,
    .staff-list-page__role-wrap {
        width: 100%;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .client-list-table > thead > tr > th,
    .client-list-table > tbody > tr > td {
        padding: 14px 16px !important;
    }

    .header-breadcrumb-nav {
        display: none !important;
    }

    .main-header .sidebar-toggle.app-shell-sidebar-toggle {
        min-width: 56px !important;
        padding: 0 22px !important;
    }

    .main-header .sidebar-toggle.app-shell-sidebar-toggle:before {
        font-size: 24px;
    }
}

/* Client UI shell alignment */
.skin-blue .wrapper,
.skin-blue .main-sidebar,
.skin-blue .left-side {
    background: #25354b !important;
}

.skin-blue .main-sidebar,
.skin-blue .left-side,
.skin-blue .main-header .logo {
    width: var(--app-sidebar-width) !important;
    transition: var(--app-sidebar-transition);
}

.skin-blue .content-wrapper,
.skin-blue .main-footer,
.skin-blue .main-header .navbar {
    margin-left: var(--app-sidebar-width) !important;
    border-left: 0 !important;
    transition: var(--app-sidebar-transition);
}

.skin-blue.sidebar-collapse .main-sidebar,
.skin-blue.sidebar-collapse .left-side,
.skin-blue.sidebar-collapse .main-header .logo {
    width: var(--app-sidebar-width-collapsed) !important;
}

.skin-blue.sidebar-collapse .content-wrapper,
.skin-blue.sidebar-collapse .main-footer,
.skin-blue.sidebar-collapse .main-header .navbar {
    margin-left: var(--app-sidebar-width-collapsed) !important;
}

/* Keep collapsed width fixed — no AdminLTE hover flyout */
body.sidebar-expanded-on-hover.sidebar-collapse .main-sidebar,
body.sidebar-expanded-on-hover.sidebar-collapse .left-side,
body.sidebar-expanded-on-hover.sidebar-collapse .main-header .logo,
body.sidebar-mini.sidebar-collapse .main-sidebar {
    width: var(--app-sidebar-width-collapsed) !important;
}

body.sidebar-expanded-on-hover.sidebar-collapse .content-wrapper,
body.sidebar-expanded-on-hover.sidebar-collapse .main-footer,
body.sidebar-expanded-on-hover.sidebar-collapse .main-header .navbar {
    margin-left: var(--app-sidebar-width-collapsed) !important;
}

body.sidebar-expanded-on-hover.sidebar-collapse .sidebar-menu > li > a > span:not(.app-shell-sidebar__active-dot),
body.sidebar-expanded-on-hover.sidebar-collapse .sidebar-menu > li.header {
    display: none !important;
}

.skin-blue .main-header .logo {
    background: #25354b !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: 0 !important;
    box-shadow: none !important;
}

.skin-blue .main-header {
    background: transparent !important;
}

.skin-blue .main-header .navbar {
    background: var(--theme-header-bg) !important;
    border-bottom: 1px solid var(--theme-header-border) !important;
    border-left: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
}

.skin-blue .content-wrapper,
.skin-blue .main-footer,
body.skin-blue {
    background: var(--theme-page-bg) !important;
}

.app-shell-logo {
    width: var(--app-sidebar-width) !important;
    height: 62px !important;
    padding: 0 14px !important;
    gap: 0 !important;
}

body.sidebar-collapse .app-shell-logo {
    width: var(--app-sidebar-width-collapsed) !important;
    height: 62px !important;
    padding: 0 !important;
}

body.sidebar-collapse .app-shell-logo__image--mini {
    width: 42px !important;
    max-width: 42px !important;
    height: auto !important;
    max-height: 42px !important;
}

.skin-blue.sidebar-collapse .app-shell-sidebar {
    padding-top: 12px !important;
}

.skin-blue.sidebar-collapse .app-shell-sidebar__menu {
    padding: 0 8px 16px !important;
}

.skin-blue.sidebar-collapse .app-shell-sidebar__menu,
.skin-blue.sidebar-collapse .sidebar-menu,
.skin-blue.sidebar-collapse .sidebar-menu > li {
    overflow: visible !important;
}

.skin-blue.sidebar-collapse .app-shell-sidebar,
.skin-blue.sidebar-collapse .main-sidebar .sidebar {
    overflow: visible !important;
}

.skin-blue.sidebar-collapse .sidebar-menu > li.header {
    display: none !important;
}

.skin-blue.sidebar-collapse .sidebar-menu > li {
    margin-bottom: 10px !important;
}

    .skin-blue.sidebar-collapse .sidebar-menu > li > a {
        display: flex !important;
        width: 44px !important;
        min-height: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        margin: 0 auto !important;
        border-radius: 10px !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
        overflow: visible !important;
    }

        .skin-blue.sidebar-collapse .sidebar-menu > li > a > .fa,
        .skin-blue.sidebar-collapse .sidebar-menu > li > a > .glyphicon,
        .skin-blue.sidebar-collapse .sidebar-menu > li > a > .ion {
            display: inline-block !important;
            visibility: visible !important;
            opacity: 1 !important;
            width: auto !important;
            margin: 0 !important;
            font-size: 18px !important;
        }

        .skin-blue.sidebar-collapse .sidebar-menu > li > a > span:not(.app-shell-sidebar__active-dot),
        .skin-blue.sidebar-collapse .sidebar-menu > li > a > .pull-right-container {
            display: none !important;
        }

        .skin-blue.sidebar-collapse .sidebar-menu > li > a .app-shell-sidebar__active-dot {
            display: none !important;
        }

    .skin-blue.sidebar-collapse .sidebar-menu > li.active > a {
        background: var(--theme-shell-active-bg) !important;
        box-shadow: inset 3px 0 0 var(--theme-shell-accent);
        border-radius: 10px !important;
    }

.app-shell-sidebar {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 18px !important;
    height: auto !important;
    min-height: calc(100vh - 62px) !important;
    overflow: hidden !important;
}

.skin-blue .main-sidebar,
.skin-blue .main-sidebar .sidebar,
.skin-blue .main-sidebar .slimScrollDiv {
    overflow: hidden !important;
}

    .skin-blue .main-sidebar .slimScrollBar,
    .skin-blue .main-sidebar .slimScrollRail {
        display: none !important;
        opacity: 0 !important;
    }

.app-shell-sidebar__menu {
    padding: 0 10px 16px !important;
}

.skin-blue .sidebar-menu > li.header {
    padding: 8px 12px 10px !important;
    color: rgba(255, 255, 255, 0.54) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
}

.skin-blue .sidebar-menu > li {
    margin-bottom: 6px !important;
}

    .skin-blue .sidebar-menu > li > a {
        min-height: 40px !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
        color: rgba(255, 255, 255, 0.82) !important;
        font-size: 15px !important;
        font-weight: 500 !important;
    }

        .skin-blue .sidebar-menu > li > a > .fa {
            width: 22px !important;
            font-size: 18px !important;
            color: rgba(255, 255, 255, 0.72) !important;
        }

    .skin-blue .sidebar-menu > li.active > a {
        background: var(--theme-shell-active-bg) !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        box-shadow: inset 3px 0 0 var(--theme-shell-accent);
    }

        .skin-blue .sidebar-menu > li.active > a > .fa {
            color: #e8f7ee !important;
        }

/* Keep icon rail visible when collapsed (AdminLTE hides the whole sidebar without sidebar-mini) */
@media (min-width: 768px) {
    body.sidebar-collapse .main-sidebar {
        transform: translate(0, 0) !important;
        -webkit-transform: translate(0, 0) !important;
        -ms-transform: translate(0, 0) !important;
    }
}

.skin-blue .main-header .navbar {
    display: flex !important;
    align-items: center !important;
    min-height: 62px !important;
    height: 62px !important;
}

.main-header .sidebar-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: left;
    height: 62px !important;
    min-height: 62px !important;
    padding: 0 20px !important;
    line-height: 1 !important;
    color: #667085 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

    .main-header .sidebar-toggle:hover {
        background: #f8fafc !important;
        color: #344054 !important;
    }

    .main-header .sidebar-toggle:focus {
        background: transparent !important;
        color: #667085 !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .main-header .sidebar-toggle:focus-visible {
        background: #f8fafc !important;
        color: #344054 !important;
        box-shadow: inset 0 0 0 2px rgba(95, 159, 116, 0.35) !important;
    }

    .main-header .sidebar-toggle:active {
        background: #f1f5f9 !important;
        color: #344054 !important;
    }

    .main-header .sidebar-toggle:before {
        display: block;
        line-height: 1;
        color: #667085;
        font-size: 18px;
    }

    .main-header .sidebar-toggle:hover:before {
        color: #344054;
    }

    .main-header .sidebar-toggle:focus:before {
        color: #667085;
    }

    .main-header .sidebar-toggle:focus-visible:before {
        color: #344054;
    }

    .main-header .sidebar-toggle:active:before {
        color: #344054;
    }

    .main-header .sidebar-toggle .fa {
        display: none;
    }

    .main-header .sidebar-toggle .icon-bar {
        display: none !important;
    }

@media (min-width: 768px) {
    .main-header .sidebar-toggle.app-shell-sidebar-toggle {
        display: none !important;
    }

    .skin-blue.sidebar-collapse .main-sidebar,
    .skin-blue.sidebar-collapse .left-side,
    .skin-blue.sidebar-collapse .main-header .logo,
    body.sidebar-collapse .app-shell-logo {
        width: var(--app-sidebar-width) !important;
    }

    body.sidebar-collapse .app-shell-logo {
        padding: 0 14px !important;
    }

    .skin-blue.sidebar-collapse .content-wrapper,
    .skin-blue.sidebar-collapse .main-footer,
    .skin-blue.sidebar-collapse .main-header .navbar {
        margin-left: var(--app-sidebar-width) !important;
    }

    .skin-blue.sidebar-collapse .sidebar-menu > li.header {
        display: block !important;
    }

    .skin-blue.sidebar-collapse .sidebar-menu > li > a {
        display: flex !important;
        width: auto !important;
        height: auto !important;
        min-height: 40px !important;
        padding: 10px 12px !important;
        margin: 0 !important;
        justify-content: flex-start !important;
        gap: 10px !important;
    }

    .skin-blue.sidebar-collapse .sidebar-menu > li > a > span:not(.app-shell-sidebar__active-dot) {
        display: inline !important;
    }

    body.sidebar-collapse .app-shell-logo__full {
        display: inline-flex !important;
    }

    body.sidebar-collapse .app-shell-logo__mini {
        display: none !important;
    }
}

.header-breadcrumb-nav {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    height: 62px !important;
    padding-left: 24px !important;
    flex: 1 1 auto;
}

.header-breadcrumb {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    margin: 0 !important;
}

    .header-breadcrumb > li,
    .header-breadcrumb > li > a {
        color: #98a2b3 !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1 !important;
        opacity: 0.78;
    }

    .header-breadcrumb > li > a:hover {
        opacity: 1;
        color: #667085 !important;
    }

    .header-breadcrumb > .active,
    .header-breadcrumb > .active > a {
        color: #667085 !important;
        font-weight: 700 !important;
        opacity: 0.92;
    }

    .header-breadcrumb > li + li::before {
        color: #c2c8d0 !important;
        padding: 0 10px !important;
        opacity: 0.7;
    }

.main-header .navbar-custom-menu,
.main-header .navbar-right {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    height: 62px !important;
    margin-left: auto !important;
    margin-right: 16px !important;
}

.main-header .navbar-custom-menu > .navbar-nav {
    display: flex !important;
    align-items: center !important;
    float: none !important;
    margin: 0 !important;
}

.main-header .navbar-custom-menu > .navbar-nav > li {
    display: flex !important;
    align-items: center !important;
    float: none !important;
}

.main-header .navbar-custom-menu > .navbar-nav > li:not(:has(a)) {
    display: none !important;
}

.main-header .navbar-custom-menu > .navbar-nav > li + li::before {
    content: "";
    width: 1px;
    height: 16px;
    margin: 0 4px;
    background: rgba(232, 237, 243, 0.9);
    opacity: 0.7;
    flex: 0 0 1px;
}

.skin-blue .main-header .navbar .nav > li > a {
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 10px !important;
    display: flex !important;
    align-items: center !important;
    color: #667085 !important;
    opacity: 0.78;
    background: transparent !important;
}

.skin-blue .main-header .navbar .nav > li > a:hover,
.skin-blue .main-header .navbar .nav > li > a:focus,
.skin-blue .main-header .navbar .nav > li.open > a {
    opacity: 1;
    color: #344054 !important;
    background: rgba(248, 250, 252, 0.55) !important;
}

.navbar-nav > .tasks-menu {
    border-right: 0 !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
}

    .navbar-nav > .tasks-menu > .dropdown-toggle,
    .navbar-nav > .user-menu > .dropdown-toggle {
        font-size: 14px !important;
        font-weight: 500 !important;
    }

.app-shell-tenant-label {
    color: var(--theme-text-muted) !important;
    font-weight: 400 !important;
}

.app-shell-tenant-name {
    color: var(--theme-text-strong) !important;
    font-weight: 700 !important;
    margin-left: 4px;
}

.navbar-nav > .tasks-menu > .dropdown-toggle .fa-caret-down {
    margin-left: 6px;
}

.navbar-nav > .user-menu {
    border-right: 0 !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
}

.content-header {
    padding: 34px 34px 12px !important;
    background: transparent !important;
}

.content {
    padding: 0 22px 28px !important;
    background: transparent !important;
}

.content-header > h1 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--theme-text-strong) !important;
}

.content-header.content-header--with-back {
    padding-left: 22px !important;
    padding-right: 22px !important;
}

.content-header.content-header--empty {
    display: none !important;
}

    .content-header.content-header--empty + .content {
        padding-top: 28px !important;
    }

.home-module-page__subtitle {
    margin: -4px 0 30px;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.home-module-page__intro {
    margin-bottom: 24px;
}

.home-module-grid {
    display: flex;
    flex-wrap: wrap;
}

    .home-module-grid::before,
    .home-module-grid::after {
        display: none;
    }

.home-module-page__column {
    display: flex;
    float: none;
    margin-bottom: 20px;
}

.home-module-card {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 126px;
    height: 100%;
    width: 100%;
    padding: 26px;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    text-decoration: none !important;
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

    .home-module-card:hover,
    .home-module-card:focus {
        background: #ffffff;
        text-decoration: none !important;
        transform: translateY(-1px);
    }

.home-module-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    min-width: 66px;
    border-radius: 10px;
    font-size: 30px;
    transition: background 0.18s ease, color 0.18s ease;
}

.home-module-card__content {
    min-width: 0;
    flex: 1 1 auto;
}

    .home-module-card__content h2 {
        margin: 0 0 8px;
        color: #111827;
        font-size: 22px;
        font-weight: 800;
        line-height: 1.15;
        transition: color 0.18s ease;
    }

    .home-module-card__content p {
        margin: 0;
        max-width: 315px;
        color: #475569;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.4;
    }

.home-module-card__arrow {
    margin-left: auto;
    color: #cbd5e1;
    font-size: 30px;
    transition: color 0.18s ease, transform 0.18s ease;
}

.home-module-card--client .home-module-card__icon {
    background: #e6f6f9;
    color: #2aa6bd;
}

.home-module-card--client:hover,
.home-module-card--client:focus {
    border-color: #82cfff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.13);
}

    .home-module-card--client:hover .home-module-card__icon,
    .home-module-card--client:focus .home-module-card__icon {
        background: #2aa6bd;
        color: #ffffff;
    }

    .home-module-card--client:hover .home-module-card__content h2,
    .home-module-card--client:focus .home-module-card__content h2,
    .home-module-card--client:hover .home-module-card__arrow,
    .home-module-card--client:focus .home-module-card__arrow {
        color: #2563eb;
    }

.home-module-card--staff .home-module-card__icon {
    background: #fff0f3;
    color: #ef3f61;
}

.home-module-card--staff:hover,
.home-module-card--staff:focus {
    border-color: #f5a8b7;
    box-shadow: 0 10px 20px rgba(239, 63, 97, 0.14);
}

    .home-module-card--staff:hover .home-module-card__icon,
    .home-module-card--staff:focus .home-module-card__icon {
        background: #ef3f61;
        color: #ffffff;
    }

    .home-module-card--staff:hover .home-module-card__content h2,
    .home-module-card--staff:focus .home-module-card__content h2,
    .home-module-card--staff:hover .home-module-card__arrow,
    .home-module-card--staff:focus .home-module-card__arrow {
        color: #e11d48;
    }

.home-module-card--tenant .home-module-card__icon {
    background: #eef4ff;
    color: #4f6fd8;
}

.home-module-card--tenant:hover,
.home-module-card--tenant:focus {
    border-color: #aabcf7;
    box-shadow: 0 10px 20px rgba(79, 111, 216, 0.12);
}

    .home-module-card--tenant:hover .home-module-card__icon,
    .home-module-card--tenant:focus .home-module-card__icon {
        background: #4f6fd8;
        color: #ffffff;
    }

    .home-module-card--tenant:hover .home-module-card__content h2,
    .home-module-card--tenant:focus .home-module-card__content h2,
    .home-module-card--tenant:hover .home-module-card__arrow,
    .home-module-card--tenant:focus .home-module-card__arrow {
        color: #4f46e5;
    }

@media (max-width: 767px) {
    .skin-blue .main-sidebar,
    .skin-blue .left-side,
    .skin-blue .main-header .logo,
    .skin-blue .content-wrapper,
    .skin-blue .main-footer,
    .skin-blue .main-header .navbar {
        margin-left: 0 !important;
        width: auto !important;
    }

    .app-shell-logo {
        width: 230px !important;
        height: 56px !important;
        padding: 0 16px !important;
    }

    .app-shell-logo__image {
        max-width: 198px;
        max-height: 52px;
    }

    .content-header {
        padding: 20px 16px 8px !important;
    }

    .content {
        padding: 0 10px 16px !important;
    }

    .home-module-page__subtitle {
        margin-bottom: 18px;
    }

    .home-module-card {
        min-height: 112px;
        gap: 16px;
        padding: 20px;
    }

    .home-module-card__icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
        font-size: 25px;
    }

    .home-module-card__content h2 {
        font-size: 20px;
    }

    .home-module-card__content p {
        font-size: 14px;
    }
}

/* =============================================
   Goals Page — New UI (client redesign)
   ============================================= */

/* Outer wrapper replaces .box.box-primary */
.goals-page-wrapper {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.client-detail-page.goals-page .goals-page-wrapper {
    container-type: inline-size;
    container-name: client-goals-page;
}

/* Tab bar */
.goals-tab-bar {
    border-bottom: 1px solid #e5e7eb;
    padding: 0 24px;
    background: #fff;
}

.goals-nav-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}

.goals-nav-item {
    margin: 0;
}

.goals-nav-link {
    display: block;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

    .goals-nav-link:hover,
    .goals-nav-link:focus {
        color: #4f46e5;
        text-decoration: none !important;
    }

.goals-nav-item.active .goals-nav-link {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

/* Page body */
.goals-page-body {
    padding: 20px 24px 24px;
}

/* Toolbar row */
.goals-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.goals-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Goal Bank button */
.goals-btn-goalbank {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
}

    .goals-btn-goalbank:hover,
    .goals-btn-goalbank:focus {
        background: #4338ca;
        color: #fff;
    }

/* Progress button */
.goals-btn-progress {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
}

    .goals-btn-progress:hover,
    .goals-btn-progress:focus {
        background: #4338ca;
        color: #fff;
    }

/* Create button */
.goals-btn-create {
    background: #4f46e5;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
}

    .goals-btn-create:hover,
    .goals-btn-create:focus {
        background: #4338ca;
        color: #fff !important;
    }

/* Export / Delete bulk action buttons */
.goals-btn-export {
    background: #6b7280;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
}

.goals-btn-delete {
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
}

/* Search + Filter row */
.goals-search-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
}

.goals-search-group {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.goals-search-input {
    border: none;
    outline: none;
    padding: 8px 12px;
    font-size: 14px;
    width: 280px;
    background: transparent;
    color: #111827;
}

    .goals-search-input::placeholder {
        color: #9ca3af;
    }

.goals-search-btn {
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
}

    .goals-search-btn:hover {
        background: #4338ca;
    }

.goals-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.goals-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.goals-filter-select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 32px 8px 10px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    min-width: 140px;
    appearance: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .goals-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .goals-tab-bar {
        padding: 0 12px;
        overflow-x: auto;
    }

    .goals-nav-tabs {
        flex-wrap: nowrap;
        min-width: max-content;
    }
}

/* =============================================
   Goals Page — Table, Pagination & Button fixes
   ============================================= */

/* --- Table --- */
.goals-table {
    width: 100% !important;
    border-collapse: collapse;
    margin-top: 8px;
    background: #fff;
}

    .goals-table thead tr th {
        background: #fff;
        color: #6b7280;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        padding: 12px 14px;
        border-top: 1px solid #e5e7eb !important;
        border-bottom: 1px solid #e5e7eb !important;
        white-space: nowrap;
    }

    .goals-table tbody tr td {
        padding: 13px 14px;
        font-size: 14px;
        color: #111827;
        border-top: none !important;
        border-bottom: 1px solid #f3f4f6 !important;
        vertical-align: middle;
        background: #fff;
    }

    .goals-table tbody tr:last-child td {
        border-bottom: none !important;
    }

    /* Action icon buttons inside table */
    .goals-table .btn-link {
        color: #6b7280;
        padding: 3px 5px;
        font-size: 14px;
        line-height: 1;
    }

        .goals-table .btn-link:hover {
            color: #4f46e5;
        }

    /* Sorting icons in header */
    .goals-table thead th.sorting,
    .goals-table thead th.sorting_asc,
    .goals-table thead th.sorting_desc {
        cursor: pointer;
    }

/* --- DataTables info text --- */
.goals-page .dataTables_wrapper .dataTables_info {
    margin-top: 16px;
}

/* Pagination clearfix */
.goals-page .dataTables_wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* --- Button colour corrections --- */
/* Override any inherited lighter purple with the correct shade */
.goals-btn-goalbank,
.goals-btn-progress,
.goals-btn-create {
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #fff !important;
}

    .goals-btn-goalbank:hover,
    .goals-btn-goalbank:focus,
    .goals-btn-progress:hover,
    .goals-btn-progress:focus,
    .goals-btn-create:hover,
    .goals-btn-create:focus {
        background-color: #4338ca !important;
        border-color: #4338ca !important;
        color: #fff !important;
    }

/* =============================================
   Goals Page — Full UI Refresh (precise match)
   ============================================= */

/* --- Header: remove purple circle back arrow, plain style --- */
.goals-page .goal-back-link__icon {
    background: none !important;
    box-shadow: none !important;
    color: #4f46e5 !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
}

.goals-page .goal-back-link {
    color: #1f2937 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

/* --- Tabs: simple underline, no purple fill --- */
.goals-nav-item.active .goals-nav-link {
    color: #4f46e5 !important;
    border-bottom: 2px solid #4f46e5 !important;
    font-weight: 600 !important;
}

.goals-nav-link {
    color: #6b7280 !important;
    font-weight: 400 !important;
    border-bottom: 2px solid transparent !important;
}

/* --- Goal Bank button: white bg, grey border --- */
.goals-btn-goalbank {
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

    .goals-btn-goalbank:hover,
    .goals-btn-goalbank:focus,
    .goals-btn-goalbank:focus-visible {
        background: #fff !important;
        color: #374151 !important;
        border-color: var(--theme-button-success) !important;
        box-shadow: none !important;
        outline: none !important;
    }

/* --- Progress button: white bg, grey border --- */
.goals-btn-progress {
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

    .goals-btn-progress:hover,
    .goals-btn-progress:focus {
        background: #f9fafb !important;
        color: #111827 !important;
    }

/* --- Create Goal button: GREEN filled --- */
.goals-btn-create {
    background: #16a34a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

    .goals-btn-create:hover,
    .goals-btn-create:focus {
        background: #15803d !important;
        color: #fff !important;
        text-decoration: none !important;
    }

/* --- Search bar: icon inside, no attached button --- */
.goals-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.goals-search-group {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 240px;
    min-width: 0;
    max-width: 380px;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    padding: 0 !important;
    overflow: visible !important;
}

.goals-search-group:focus-within {
    border-color: var(--theme-button-success) !important;
    box-shadow: none !important;
}

.goals-search-group:focus-within .goals-search-icon {
    color: #9ca3af !important;
}

.goals-search-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.goals-search-input {
    border: none !important;
    outline: none !important;
    padding: 10px 12px 10px 36px !important;
    font-size: 14px !important;
    width: 100% !important;
    background: transparent !important;
    color: #111827 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

    .goals-search-input::placeholder {
        color: #9ca3af;
    }

/* Hidden search button (keeps JS working) */
.goals-search-btn-hidden {
    display: none !important;
}

/* --- Status filter: pill/chip style --- */
.goals-filter-chip-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.goals-filter-chip-icon {
    color: #6b7280;
    font-size: 13px;
}

.goals-filter-chip-label {
    font-size: 14px;
    color: #374151;
    font-weight: 400;
}

.goals-filter-chip-select {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    cursor: pointer;
    padding: 0 !important;
    -webkit-appearance: auto;
    appearance: auto;
}

/* --- Goal bank vs diverged source icons --- */
.goals-table .goal-source-col {
    width: 28px;
    max-width: 28px;
    padding-left: 0 !important;
    padding-right: 6px !important;
    text-align: center;
    vertical-align: middle;
}

.goals-table thead th.goal-source-col {
    cursor: default;
}

.goals-table > thead > tr > th:first-child,
.goals-table > tbody > tr > td:first-child {
    padding-right: 4px !important;
}

.goal-source-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 15px;
    line-height: 1;
}

.goal-source-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.goal-source-icon--bank {
    color: #25354b;
}

.goal-source-icon--diverged {
    color: #d4a017;
}

/* --- Goal Type pills --- */
.goal-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.goal-type-pill--behavior {
    background: #fff;
    color: #4b5565;
    border: 1px solid #e8b07a;
}

    .goal-type-pill--behavior .fa {
        color: #c2610a;
    }

.goal-type-pill--task {
    background: #fff;
    color: #4b5565;
    border: 1px solid #c4b5fd;
}

    .goal-type-pill--task .fa {
        color: #6d28d9;
    }

.goal-type-pill--skill {
    background: #fff;
    color: #4b5565;
    border: 1px solid #7eb8d4;
}

    .goal-type-pill--skill .fa {
        color: #0369a1;
    }

/* --- Status badges --- */
.goal-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
}

.goal-status-badge--active {
    background: #e6f2ea;
    color: #5f9f74;
    border-color: #c5ddcc;
}

.goal-status-badge--active .goal-status-dot {
    background: #65a97a;
}

.goal-status-badge--inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.goal-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    background: currentColor;
}

/* Tighter row padding to match mockup */
.goals-table thead tr th {
    padding: 10px 12px !important;
    font-size: 11px !important;
}

.goals-table tbody tr td {
    padding: 10px 12px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

/* =============================================
   Goals Page — Custom dropdown, hover actions, compact icons
   ============================================= */

/* --- Custom status filter dropdown --- */
.goals-filter-chip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    background: #fff !important;
    cursor: pointer;
    user-select: none;
}

.goals-filter-chip-caret {
    font-size: 10px;
    color: #6b7280;
    margin-left: 2px;
}

.goals-filter-chip-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.goals-filter-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 130px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    z-index: 999;
    overflow: hidden;
}

    .goals-filter-dropdown.open {
        display: block;
    }

.goals-filter-option {
    padding: 9px 14px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: background 0.1s;
}

    .goals-filter-option:hover {
        background: #f3f4f6;
    }

.goals-filter-option--selected {
    background: #e6f2ea;
    color: #5f9f74;
    font-weight: 600;
}

/* --- Row hover actions --- */
.goals-actions-cell {
    white-space: nowrap;
    width: 1%;
}

.goals-row-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.goals-table tbody tr:hover .goals-row-actions,
.goals-table tbody tr:focus-within .goals-row-actions {
    opacity: 1;
}

/* --- Compact action icon buttons --- */
.goals-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 12px;
    padding: 0;
    cursor: default;
    pointer-events: none;
    text-decoration: none !important;
    transition: color 0.12s;
}

.goals-table tbody tr:hover .goals-action-btn:not(.disabled),
.goals-table tbody tr:focus-within .goals-action-btn:not(.disabled) {
    pointer-events: auto;
    cursor: pointer;
}

    .goals-action-btn:hover {
        color: #4f46e5;
    }

.goals-action-btn--danger:hover {
    color: #dc2626;
}

.goals-action-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* =============================================
   Goals Page — green controls refresh
   ============================================= */
.goal-back-link {
    color: #4d8f62 !important;
}

    .goal-back-link:hover,
    .goal-back-link:focus {
        color: #3f7d52 !important;
    }

.goal-back-link__icon,
.goals-page .goal-back-link__icon {
    background: #e8f7ee !important;
    color: #5f9f74 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.goal-back-link:hover .goal-back-link__icon,
.goal-back-link:focus .goal-back-link__icon {
    box-shadow: 0 8px 18px rgba(95, 159, 116, 0.18) !important;
}

.goal-detail-back {
    color: #4d8f62 !important;
}

    .goal-detail-back i {
        color: #5f9f74 !important;
    }

    .goal-detail-back:hover,
    .goal-detail-back:focus {
        color: #3f7d52 !important;
        background: #e8f7ee !important;
    }

.monthlies-document .monthlies-back-btn,
.monthlies-document .monthlies-back-btn i {
    color: #6b7280 !important;
}

    .monthlies-document .monthlies-back-btn:hover,
    .monthlies-document .monthlies-back-btn:focus,
    .monthlies-document .monthlies-back-btn:active,
    .monthlies-document .monthlies-back-btn:focus-visible {
        color: #374151 !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
    }

.goals-search-row {
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.goals-search-group {
    flex: 1 1 240px;
    min-width: 0;
    max-width: 380px;
}

.goals-search-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex: 0 0 auto;
}

.goals-btn-goalbank {
    flex: 0 0 auto;
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.goals-btn-create {
    background: var(--theme-button-success) !important;
    border: 1px solid var(--theme-button-success-border) !important;
    border-radius: 8px !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 9px 16px !important;
    box-shadow: 0 8px 18px rgba(72, 121, 89, 0.14);
}

    .goals-btn-create:hover,
    .goals-btn-create:focus {
        background: var(--theme-button-success-hover) !important;
        border-color: var(--theme-button-success-border-hover) !important;
        color: #fff !important;
    }

.goal-type-pill {
    border-radius: 5px;
    gap: 6px;
}

    .goal-type-pill .fa {
        width: 12px;
        text-align: center;
    }

/* Client Goals tab: card-width responsive toolbar. */
@container client-goals-page (min-width: 1101px) {
    .client-detail-page .goals-search-row {
        flex-wrap: nowrap !important;
    }
}

@container client-goals-page (max-width: 1100px) {
    .client-detail-page .goals-search-row {
        row-gap: 12px;
    }

    .client-detail-page .goals-search-group {
        flex: 1 1 220px;
        max-width: none;
    }

    .client-detail-page .goals-search-actions {
        margin-left: 0;
        flex: 1 1 auto;
        justify-content: flex-end;
    }
}

@container client-goals-page (max-width: 720px) {
    .client-detail-page .goals-search-group {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }

    .client-detail-page .goals-filter-chip-wrap {
        flex: 0 0 auto;
    }

    .client-detail-page #clientsScheduleTableContainer {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .client-detail-page #clientsScheduleTableContainer .goals-table {
        min-width: 640px;
    }
}

@container client-goals-page (max-width: 480px) {
    .client-detail-page .goals-search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .client-detail-page .goals-search-group {
        flex: 0 0 auto;
        width: 100%;
    }

    .client-detail-page .goals-search-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .client-detail-page .goals-btn-goalbank,
    .client-detail-page .goals-btn-create,
    .client-detail-page .goals-btn-export,
    .client-detail-page .goals-btn-delete {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .client-detail-page #clientsScheduleTableContainer {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .app-shell-logo {
        width: 190px !important;
        height: 52px !important;
        padding: 0 12px !important;
    }

    .app-shell-logo__image {
        max-width: 166px;
        max-height: 48px;
    }
}

/* =============================================
   Goal Template import modal
   ============================================= */

.goal-template-modal-dialog {
    width: 90%;
    max-width: 1320px;
}

.app-form-modal-dialog {
    width: calc(100% - 32px);
    max-width: 920px;
}

.goal-template-modal,
.app-form-modal {
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.goal-template-modal__header,
.app-form-modal__header {
    min-height: 66px;
    padding: 20px 24px;
    border-bottom: 1px solid #edf1f5;
}

    .goal-template-modal__header .modal-title,
    .app-form-modal__header .modal-title {
        color: #202938;
        font-size: 20px;
        font-weight: 800;
        line-height: 1.2;
    }

    .goal-template-modal__header .close,
    .app-form-modal__header .close {
        margin-top: -2px;
        color: #98a2b3;
        font-size: 28px;
        opacity: 1;
    }

.goal-template-modal__body {
    max-height: 78vh;
    overflow-y: auto;
    padding: 22px 24px 24px;
}

.app-form-modal__body {
    padding: 22px 24px 8px;
}

.goal-template-modal__filters {
    margin-bottom: 18px;
}

.goal-template-modal__filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(150px, 1fr));
    gap: 14px;
    align-items: end;
}

.goal-template-modal__filter label {
    display: block;
    margin: 0 0 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.goal-template-modal__filter .form-control,
.goal-template-modal__filter .select2-container--default .select2-selection--single {
    height: 40px;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
}

    .goal-template-modal__filter .form-control:focus,
    .goal-template-modal__filter .select2-container--default.select2-container--focus .select2-selection--single {
        border-color: #9fc9ad;
        box-shadow: 0 0 0 3px rgba(95, 159, 116, 0.12) !important;
    }

    .goal-template-modal__filter .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 38px;
        color: #344054;
        padding-left: 12px;
    }

    .goal-template-modal__filter .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 38px;
    }

.goal-template-modal__search-group {
    width: 100%;
    min-width: 0;
    height: 40px;
}

.goal-template-modal__mine-filter {
    margin-top: 14px;
}

    .goal-template-modal__mine-filter label {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        margin: 0;
        color: #344054;
        font-size: 14px;
        font-weight: 700;
    }

    .goal-template-modal__mine-filter input {
        margin: 0;
    }

#goalTemplatesTableContainer {
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.goal-template-modal-table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
}

    .goal-template-modal-table > thead > tr > th {
        padding: 14px 16px !important;
        border: 0 !important;
        border-bottom: 1px solid #eef2f6 !important;
        background: #fff !important;
        color: #667085 !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        letter-spacing: 0.04em;
        line-height: 1.2;
        text-transform: uppercase;
        vertical-align: middle !important;
    }

    .goal-template-modal-table > tbody > tr > td {
        padding: 13px 16px !important;
        border: 0 !important;
        border-bottom: 1px solid #f1f4f7 !important;
        background: #fff !important;
        color: #344054;
        font-size: 14px !important;
        font-weight: 600;
        line-height: 1.35 !important;
        vertical-align: middle !important;
    }

    .goal-template-modal-table > tbody > tr:nth-child(even) > td {
        background: #fbfcfd !important;
    }

    .goal-template-modal-table > tbody > tr:hover > td {
        background: var(--theme-table-hover) !important;
    }

    .goal-template-modal-table > tbody > tr:last-child > td {
        border-bottom: 0 !important;
    }

    .goal-template-modal-table > thead > tr > th:first-child,
    .goal-template-modal-table > tbody > tr > td:first-child {
        width: 54px;
        text-align: center;
    }

    .goal-template-modal-table input[type="checkbox"] {
        width: 15px;
        height: 15px;
        margin: 0;
    }

.goal-template-modal-table__filter-value {
    display: none;
}

.goal-template-visibility-pill {
    display: inline-flex;
    align-items: center;
    min-width: 58px;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

    .goal-template-visibility-pill.is-public {
        background: #e8f7ee;
        color: #15803d;
    }

    .goal-template-visibility-pill.is-private {
        background: #f2f4f7;
        color: #667085;
    }

#goalTemplatesTableContainer .dataTables_info {
    padding: 16px 0 0;
}

#goalTemplatesTableContainer .dataTables_paginate {
    padding-top: 12px;
}

#goalTemplatesTableContainer .dataTables_wrapper {
    padding-bottom: 0;
}

    #goalTemplatesTableContainer .dataTables_wrapper > .row:last-child {
        margin: 0;
        padding: 12px 16px 14px;
        border-top: 1px solid #eef2f6;
    }

.goal-template-modal__footer,
.app-form-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #edf1f5;
    background: #fff;
}

.goal-template-modal__cancel,
.app-form-modal__cancel,
.goal-template-modal__primary,
.app-form-modal__primary {
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: none !important;
}

.goal-template-modal__cancel,
.app-form-modal__cancel {
    border: 1px solid #dfe5ec;
    background: #fff;
    color: #344054;
}

.goal-template-modal__primary,
.app-form-modal__primary {
    border: 1px solid #65a97a;
    background: #65a97a;
    color: #fff;
}

.goal-template-modal__cancel:hover,
.goal-template-modal__cancel:focus,
.app-form-modal__cancel:hover,
.app-form-modal__cancel:focus {
    background: #f8fafc;
    color: #202938;
}

.goal-template-modal__primary:hover,
.goal-template-modal__primary:focus,
.app-form-modal__primary:hover,
.app-form-modal__primary:focus {
    border-color: #558f68;
    background: #558f68;
    color: #fff;
}

.goal-template-stepper {
    margin: 4px 0 16px;
}

.goal-template-stepper__label {
    margin-bottom: 8px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.goal-template-stepper__track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf3;
}

.goal-template-stepper__fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: #65a97a;
}

@media (max-width: 991px) {
    .goal-template-modal__filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .goal-template-modal__search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .goal-template-modal-dialog {
        width: calc(100% - 20px);
        margin: 10px;
    }

    .goal-template-modal__body {
        padding: 16px;
    }

    .goal-template-modal__filter-grid {
        grid-template-columns: 1fr;
    }

    #goalTemplatesTableContainer {
        overflow-x: auto;
    }

    .goal-template-modal-table {
        min-width: 920px;
    }
}

.app-form-modal__grid {
    margin-left: -10px;
    margin-right: -10px;
}

    .app-form-modal__grid > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

.app-form-modal__field {
    margin-bottom: 16px;
}

    .app-form-modal__field > label:not(.app-form-modal__checkbox-label) {
        display: block;
        margin: 0 0 8px;
        color: #344054;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.2;
    }

    .app-form-modal__field .form-control {
        height: 40px;
        border: 1px solid #e3e8ef;
        border-radius: 8px;
        background: #fff;
        color: #344054;
        font-size: 14px;
        font-weight: 600;
        box-shadow: none;
    }

        .app-form-modal__field .form-control:focus {
            border-color: #9fc9ad;
            box-shadow: 0 0 0 3px rgba(95, 159, 116, 0.12) !important;
        }

    .app-form-modal__field .help-block,
    .app-form-modal__field .text-danger {
        margin-top: 6px;
        margin-bottom: 0;
        font-size: 12px;
    }

.app-form-modal__listbox {
    height: auto !important;
    min-height: 132px;
    padding: 8px 10px;
}

.app-form-modal__date-group {
    width: 100%;
}

    .app-form-modal__date-group .input-group-addon {
        border: 1px solid #e3e8ef;
        border-right: 0;
        border-radius: 12px 0 0 12px;
        background: #f8fafc;
        color: #98a2b3;
        padding: 0 14px;
    }

    .app-form-modal__date-group .form-control {
        border-left: 0;
        border-radius: 0 12px 12px 0;
    }

    .app-form-modal__date-group .input-group-addon + .form-control:focus {
        border-left: 0;
        box-shadow: none;
    }

    .app-form-modal__date-group:focus-within .input-group-addon,
    .app-form-modal__date-group:focus-within .form-control {
        border-color: #65a97a;
        background: #fff;
    }

    .app-form-modal__date-group:focus-within {
        border-radius: 12px;
        box-shadow: 0 0 0 3px rgba(101, 169, 122, 0.12);
    }

.app-form-modal__checkbox-row {
    margin-top: 4px;
}

.app-form-modal__checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

    .app-form-modal__checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: #2563eb;
    }

.app-form-modal__note {
    margin: 8px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .app-form-modal-dialog {
        width: calc(100% - 20px);
        margin: 10px;
    }

    .app-form-modal__body {
        padding: 16px;
    }
}

/* =============================================
   Client Details — Sessions tab redesign
   ============================================= */

.client-detail-page {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

    .client-detail-page .goals-tab-bar,
    .goal-detail-page .goals-tab-bar,
    .settings-goal-page.client-detail-page .goals-tab-bar {
        padding: 0;
        background: transparent;
        border-bottom: 1px solid #e6ebf1;
    }

    .client-detail-page .goals-nav-tabs,
    .goal-detail-page .goals-nav-tabs,
    .settings-goal-page.client-detail-page .goals-nav-tabs {
        gap: 26px;
    }

    .client-detail-page .goals-nav-link,
    .goal-detail-page .goals-nav-link,
    .settings-goal-page.client-detail-page .goals-nav-link {
        padding: 9px 0 14px !important;
        color: #667085 !important;
        font-size: 14px;
        font-weight: 600 !important;
        border-bottom-color: transparent !important;
    }

        .client-detail-page .goals-nav-link:hover,
        .client-detail-page .goals-nav-link:focus,
        .goal-detail-page .goals-nav-link:hover,
        .goal-detail-page .goals-nav-link:focus,
        .settings-goal-page.client-detail-page .goals-nav-link:hover,
        .settings-goal-page.client-detail-page .goals-nav-link:focus {
            color: #1f2937 !important;
            text-decoration: none !important;
        }

    .client-detail-page .goals-nav-item.active .goals-nav-link,
    .goal-detail-page .goals-nav-item.active .goals-nav-link,
    .settings-goal-page.client-detail-page .goals-nav-item.active .goals-nav-link {
        color: #1f2937 !important;
        border-bottom: 2px solid #63ad7d !important;
    }

    .client-detail-page .goals-page-body,
    .settings-goal-page.client-detail-page .goals-page-body {
        padding: 24px 0 0;
        max-width: 100%;
        overflow-x: hidden;
    }

/* Goal Bank: layout tiers based on card width (sidebar-aware). */
@container goal-bank-card (max-width: 1100px) {
    .settings-goal-page__control-bar {
        flex-wrap: wrap;
        align-items: stretch;
        row-gap: 12px;
    }

    .settings-goal-page__control-left,
    .settings-goal-page__control-right {
        flex: 1 1 100%;
        width: 100%;
    }

    .settings-goal-page__control-left {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .settings-goal-page__search-wrap {
        flex: 1 1 200px;
        max-width: none;
    }

    .settings-goal-page__control-right {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        align-items: end;
        justify-content: stretch;
    }

    .settings-goal-page__filter-wrap,
    .settings-goal-page__filter-wrap--creator,
    .settings-goal-page__filter-wrap--visibility {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .settings-goal-page__actions {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }
}

@container goal-bank-card (max-width: 720px) {
    .settings-goal-table > thead > tr > th:nth-child(6),
    .settings-goal-table > tbody > tr > td:nth-child(6),
    .settings-goal-table > thead > tr > th:nth-child(7),
    .settings-goal-table > tbody > tr > td:nth-child(7) {
        display: none;
    }

    .settings-goal-table {
        min-width: 640px;
    }
}

@container goal-bank-card (max-width: 480px) {
    .settings-goal-page__control-left {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .settings-goal-page__search-wrap {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .settings-goal-page__control-icon {
        top: 18px;
        transform: none;
    }

    .settings-goal-page__control-right {
        grid-template-columns: 1fr;
    }

    .settings-goal-page__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-goal-page__actions .client-list-page__new-btn,
    .settings-goal-page__delete-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .settings-goal-page__control-left {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .settings-goal-page__search-wrap {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
    }

    .settings-goal-page__control-icon {
        top: 18px;
        transform: none;
    }
}

#sessionAccordion.panel-group {
    margin-bottom: 0;
}

#sessionAccordion .session-date-panel,
#recordedSessionAccordion .session-date-panel {
    border: 1px solid #edf1f5;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    overflow: hidden;
    margin-bottom: 16px;
    background: #fff;
}

    #sessionAccordion .session-date-panel + .session-date-panel,
    #recordedSessionAccordion .session-date-panel + .session-date-panel {
        margin-top: 0;
    }

    #sessionAccordion .session-date-panel > .panel-heading,
    #sessionAccordion .session-date-panel > .panel-heading.panel-highlight,
    #recordedSessionAccordion .session-date-panel > .panel-heading,
    #recordedSessionAccordion .session-date-panel > .panel-heading.panel-highlight {
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: #f8fafc !important;
        color: #2b3a4d !important;
    }

    #sessionAccordion .session-date-panel .panel-title,
    #recordedSessionAccordion .session-date-panel .panel-title {
        margin: 0;
        font-size: 18px;
    }

    #sessionAccordion .session-date-panel .accprogram,
    #recordedSessionAccordion .session-date-panel .accprogram {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
        padding: 17px 18px;
        color: #2b3a4d !important;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
        text-decoration: none;
    }

        #sessionAccordion .session-date-panel .accprogram.session-list__toggle,
        #sessionAccordion .session-list__toggle {
            display: grid !important;
        }

        #sessionAccordion .session-date-panel .accprogram:hover,
        #sessionAccordion .session-date-panel .accprogram:focus,
        #recordedSessionAccordion .session-date-panel .accprogram:hover,
        #recordedSessionAccordion .session-date-panel .accprogram:focus {
            color: #2b3a4d !important;
            text-decoration: none;
        }

        #sessionAccordion .session-date-panel .accprogram .glyphicon,
        #recordedSessionAccordion .session-date-panel .accprogram .glyphicon {
            float: none !important;
            color: #667085;
            font-size: 12px;
            margin-left: 16px;
        }

    #sessionAccordion .session-date-panel > .panel-heading + .panel-collapse > .panel-body,
    #recordedSessionAccordion .session-date-panel > .panel-heading + .panel-collapse > .panel-body {
        border-top: 0;
    }

    #sessionAccordion .session-date-panel .panel-body,
    #recordedSessionAccordion .session-date-panel .panel-body {
        padding: 0;
        background: #fff;
    }

.session-date-table {
    width: 100%;
    table-layout: fixed;
    border: 0;
    border-collapse: collapse;
    margin-bottom: 0 !important;
    background: #fff;
}

    .session-date-table > thead > tr > th {
        padding: 18px 26px 16px !important;
        border: 0 !important;
        border-bottom: 1px solid #eef2f6 !important;
        background: #fff;
        color: #667085;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.08em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .session-date-table > tbody > tr > td {
        padding: 16px 26px !important;
        border: 0 !important;
        border-bottom: 1px solid #f1f4f7 !important;
        background: #fff;
        color: #4b5565;
        font-size: 15px;
        line-height: 1.25;
        vertical-align: middle !important;
    }

    .session-date-table > tbody > tr:nth-child(odd) > td {
        background: #fbfcfd;
    }

    .session-date-table > tbody > tr:last-child > td {
        border-bottom: 0 !important;
    }

    .session-date-table > tbody > tr > td:first-child {
        color: #202938;
        font-weight: 700;
    }

    .session-date-table > thead > tr > th:nth-child(1),
    .session-date-table > tbody > tr > td:nth-child(1) {
        width: 27%;
    }

    .session-date-table > thead > tr > th:nth-child(2),
    .session-date-table > tbody > tr > td:nth-child(2),
    .session-date-table > thead > tr > th:nth-child(3),
    .session-date-table > tbody > tr > td:nth-child(3) {
        width: 20%;
    }

    .session-date-table > thead > tr > th:nth-child(5),
    .session-date-table > tbody > tr > td:nth-child(5) {
        width: 64px;
        padding-left: 8px !important;
        padding-right: 20px !important;
        text-align: center;
    }

.session-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #e8f7ee;
    color: #4c9c67;
    font-size: 13px;
    text-decoration: none !important;
}

    .session-view-btn:hover,
    .session-view-btn:focus {
        background: #dcf2e5;
        color: #2f7f4a;
        text-decoration: none !important;
    }

@media (max-width: 767px) {
    .client-detail-page .goals-page-body {
        padding-top: 16px;
    }

    #sessionAccordion .session-date-panel,
    #recordedSessionAccordion .session-date-panel {
        border-radius: 8px;
    }

    .session-date-table {
        min-width: 720px;
    }

    #divsession,
    #divvideos {
        overflow-x: auto;
        padding-bottom: 4px;
    }
}

.session-list {
    color: #1f2937;
}

.session-list__header,
.session-list__toggle {
    display: grid !important;
    grid-template-columns: minmax(160px, 24%) minmax(260px, 32%) minmax(180px, 24%) minmax(136px, 1fr);
    align-items: center;
    column-gap: 16px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.session-list__header {
    min-height: 58px;
    padding: 0 38px 14px;
    border-bottom: 2px solid #dfe3ea;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

#sessionAccordion.panel-group {
    margin: 0;
}

#sessionAccordion .session-list__item {
    margin: 20px 0 0 !important;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
    overflow: hidden;
}

    #sessionAccordion .session-list__item > .panel-heading,
    #sessionAccordion .session-list__item > .panel-heading.panel-highlight {
        border-radius: 8px;
        background: #fff !important;
    }

    #sessionAccordion .session-list__item .panel-title {
        font-size: 16px;
    }

#sessionAccordion .session-list__toggle {
    min-height: 82px;
    padding: 20px 38px !important;
    color: #4b5565 !important;
    font-size: 16px;
    font-weight: 700;
}

.session-list__date {
    color: #1f2937;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
}

.session-list__time,
.session-list__clinician {
    color: #4b5565;
    font-size: 16px;
    font-weight: 700;
}

.session-list__summary {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.session-list__goal-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    min-height: 34px;
    padding: 8px 14px;
    border: 1px solid #e1e5eb;
    border-radius: 6px;
    background: #f4f6f9;
    color: #4b5565;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.session-list__goal-pill--legacy {
    border-color: #f0d6a5;
    background: #fff7e6;
    color: #9a6700;
}

#sessionAccordion .session-list__toggle .glyphicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 6px;
    color: #98a2b3;
    font-size: 12px;
}

#sessionAccordion .session-list__item > .panel-heading.panel-highlight .session-list__toggle .glyphicon {
    background: #e4e8ee;
    color: #1f2937 !important;
}

#sessionAccordion .session-list__item > .panel-heading + .panel-collapse > .panel-body {
    border-top: 1px solid #eef2f6;
}

#sessionAccordion .session-list__item .panel-body {
    padding: 28px 38px 36px;
    background: #fbfcfd;
}

.session-list__details-title {
    margin-bottom: 20px;
    color: #98a2b3;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.session-goals-table-wrap {
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.session-goals-table.session-date-table {
    table-layout: fixed;
}

    .session-goals-table.session-date-table > thead > tr > th {
        height: 58px;
        padding: 18px 28px !important;
        border-bottom: 1px solid #dfe5ec !important;
        background: #fff;
        color: #667085;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.12em;
    }

    .session-goals-table.session-date-table > tbody > tr > td {
        height: 86px;
        padding: 22px 28px !important;
        border-bottom: 1px solid #eef2f6 !important;
        background: #fff !important;
        color: #4b5565;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.5;
    }

        .session-goals-table.session-date-table > tbody > tr > td:first-child {
            color: #1f2937;
            font-weight: 900;
        }

    .session-goals-table.session-date-table > tbody > tr:last-child > td {
        border-bottom: 0 !important;
    }

    .session-goals-table.session-date-table > thead > tr > th:nth-child(1),
    .session-goals-table.session-date-table > tbody > tr > td:nth-child(1) {
        width: 24%;
    }

    .session-goals-table.session-date-table > thead > tr > th:nth-child(2),
    .session-goals-table.session-date-table > tbody > tr > td:nth-child(2),
    .session-goals-table.session-date-table > thead > tr > th:nth-child(3),
    .session-goals-table.session-date-table > tbody > tr > td:nth-child(3) {
        width: 15%;
    }

    .session-goals-table.session-date-table > thead > tr > th:nth-child(4),
    .session-goals-table.session-date-table > tbody > tr > td:nth-child(4) {
        width: auto;
    }

    .session-goals-table.session-date-table > thead > tr > th:nth-child(5),
    .session-goals-table.session-date-table > tbody > tr > td:nth-child(5) {
        width: 72px;
        padding-left: 10px !important;
        padding-right: 28px !important;
    }

.session-view-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #e8f7ee;
    color: #22c55e;
    font-size: 15px;
}

    .session-view-btn:hover,
    .session-view-btn:focus {
        background: #dcfce7;
        color: #16a34a;
    }

.session-list__empty {
    margin-top: 20px;
    padding: 28px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #fff;
    color: #667085;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 991px) {
    .session-list__header,
    .session-list__toggle {
        grid-template-columns: minmax(140px, 24%) minmax(230px, 32%) minmax(160px, 22%) minmax(128px, 1fr);
    }

    .session-list__header,
    #sessionAccordion .session-list__toggle {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    #sessionAccordion .session-list__item .panel-body {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 767px) {
    .session-list {
        min-width: 860px;
    }

    #divsession {
        overflow-x: auto;
    }
}

/* =============================================
   Client Details — Bulk Edit tab redesign
   ============================================= */

.bulk-edit-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.bulk-edit-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.bulk-edit-action-btn--export {
    background: #fff !important;
    border: 1px solid #e3e8ef !important;
    color: #3f4654 !important;
}

    .bulk-edit-action-btn--export:hover,
    .bulk-edit-action-btn--export:focus {
        background: #f8fafc !important;
        color: #202938 !important;
    }

.bulk-edit-action-btn--import {
    background: #243247 !important;
    border: 1px solid #243247 !important;
    color: #fff !important;
}

    .bulk-edit-action-btn--import:hover,
    .bulk-edit-action-btn--import:focus {
        background: #1f2b3d !important;
        border-color: #1f2b3d !important;
        color: #fff !important;
    }

.bulk-edit-accordion.panel-group {
    margin: 0;
}

.bulk-edit-session-panel {
    border: 1px solid #edf1f5;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    overflow: hidden;
    margin-bottom: 16px !important;
    background: #fff;
}

    .bulk-edit-session-panel > .panel-heading,
    .bulk-edit-session-panel > .panel-heading.panel-highlight {
        padding: 0;
        border: 0;
        background: #fff !important;
        color: #202938 !important;
    }

    .bulk-edit-session-panel .panel-title {
        margin: 0;
        font-size: 18px;
    }

        .bulk-edit-session-panel .panel-title > a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 58px;
            padding: 18px 18px;
            color: #202938 !important;
            font-size: 18px;
            font-weight: 700;
            line-height: 1.2;
            text-decoration: none !important;
        }

            .bulk-edit-session-panel .panel-title > a .glyphicon {
                float: none !important;
                color: #667085;
                font-size: 12px;
                margin-left: 16px;
            }

    .bulk-edit-session-panel > .panel-heading + .panel-collapse > .panel-body {
        border-top: 1px solid #edf1f5;
    }

    .bulk-edit-session-panel > .panel-collapse > .panel-body {
        padding: 16px 18px 18px;
        background: #fff;
    }

    .bulk-edit-session-panel > .panel-collapse:not(.in) + .panel-heading {
        border-radius: 10px;
    }

.bulk-edit-date-panel {
    border: 1px solid #edf1f5;
    border-radius: 8px;
    box-shadow: none;
    overflow: hidden;
    margin-bottom: 0 !important;
    background: #fff;
}

    .bulk-edit-date-panel + .bulk-edit-date-panel {
        margin-top: 12px;
    }

    .bulk-edit-date-panel > .panel-heading,
    .bulk-edit-date-panel > .panel-heading.panel-highlight {
        padding: 0;
        border: 0;
        background: #f8fafc !important;
        color: #364152 !important;
    }

    .bulk-edit-date-panel .panel-title {
        margin: 0;
        font-size: 15px;
    }

        .bulk-edit-date-panel .panel-title > a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 40px;
            padding: 12px 16px;
            color: #364152 !important;
            font-size: 15px;
            font-weight: 700;
            line-height: 1.2;
            text-decoration: none !important;
        }

            .bulk-edit-date-panel .panel-title > a .glyphicon {
                float: none !important;
                color: #8a94a6;
                font-size: 11px;
                margin-left: 12px;
            }

    .bulk-edit-date-panel > .panel-heading + .panel-collapse > .panel-body {
        border-top: 1px solid #edf1f5;
    }

    .bulk-edit-date-panel .panel-body {
        padding: 0;
    }

.bulk-edit-table {
    width: 100%;
    table-layout: fixed;
    border: 0;
    border-collapse: collapse;
    margin-bottom: 0 !important;
    background: #fff;
}

    .bulk-edit-table > thead > tr > th {
        padding: 14px 16px !important;
        border: 0 !important;
        border-bottom: 1px solid #eef2f6 !important;
        background: #fff;
        color: #667085;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.04em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .bulk-edit-table > tbody > tr > td {
        padding: 15px 16px !important;
        border: 0 !important;
        border-bottom: 1px solid #f1f4f7 !important;
        background: #fff;
        color: #4b5565;
        font-size: 15px;
        line-height: 1.25;
        vertical-align: middle !important;
    }

    .bulk-edit-table > tbody > tr:nth-child(even) > td {
        background: #fbfcfd;
    }

    .bulk-edit-table > tbody > tr:last-child > td {
        border-bottom: 0 !important;
    }

    .bulk-edit-table > tbody > tr > td:first-child {
        color: #202938;
        font-weight: 700;
    }

    .bulk-edit-table > thead > tr > th:last-child,
    .bulk-edit-table > tbody > tr > td:last-child {
        width: 64px;
        text-align: center;
    }

.bulk-edit-note-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f1f4f7;
    color: #697586;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

    .bulk-edit-note-btn:hover,
    .bulk-edit-note-btn:focus {
        background: #e6ebf1;
        color: #364152;
    }

@media (max-width: 767px) {
    .bulk-edit-toolbar {
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-edit-action-btn {
        width: 100%;
    }

    .bulk-edit-session-panel > .panel-collapse > .panel-body {
        padding: 12px;
    }

    .bulk-edit-date-panel {
        overflow-x: auto;
    }

    .bulk-edit-table {
        min-width: 820px;
    }
}

/* =============================================
   Client Details — Monthlies list redesign
   ============================================= */

.monthlies-page {
    color: #202938;
}

.monthlies-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.monthlies-list-header__copy h4 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.monthlies-list-header__copy p {
    margin: 0;
    color: #4b5565;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

.monthlies-generate-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.monthlies-generate-select {
    width: 126px;
    height: 40px;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    background: #fff;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
}

.monthlies-generate-select--year {
    width: 94px;
}

.monthlies-generate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 16px;
    border: 1px solid #243247;
    border-radius: 6px;
    background: #243247;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: none !important;
}

    .monthlies-generate-btn:hover,
    .monthlies-generate-btn:focus {
        background: #1f2b3d;
        border-color: #1f2b3d;
        color: #fff;
    }

.monthlies-list-card {
    overflow: hidden;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.monthlies-list-table {
    width: 100% !important;
    margin: 0 !important;
    border: 0;
    border-collapse: collapse;
    background: #fff;
}

    .monthlies-list-table > thead > tr > th {
        padding: 15px 18px !important;
        border: 0 !important;
        border-bottom: 1px solid #eef2f6 !important;
        background: #fff;
        color: #667085;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.04em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .monthlies-list-table > tbody > tr > td {
        padding: 15px 18px !important;
        border: 0 !important;
        border-bottom: 1px solid #f1f4f7 !important;
        background: #fff;
        color: #344054;
        font-size: 15px;
        line-height: 1.35;
        vertical-align: middle !important;
    }

    .monthlies-list-table > tbody > tr:nth-child(even) > td {
        background: #fbfcfd;
    }

    .monthlies-list-table > tbody > tr:last-child > td {
        border-bottom: 0 !important;
    }

.monthlies-list-table__month strong {
    color: #111827;
    font-weight: 800;
}

.monthlies-current-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #edf4ff;
    color: #2563c9;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.monthlies-list-table__actions {
    width: 220px;
    white-space: nowrap;
}

.monthlies-list-action-btn {
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: none !important;
}

    .monthlies-list-action-btn + .monthlies-list-action-btn {
        margin-left: 6px;
    }

.monthlies-list-action-btn--open {
    border: 1px solid #e3e8ef;
    background: #fff;
    color: #344054;
}

    .monthlies-list-action-btn--open:hover,
    .monthlies-list-action-btn--open:focus {
        background: #f8fafc;
        color: #202938;
    }

.monthlies-list-action-btn--delete {
    border: 1px solid #dc3f31;
    background: #dc3f31;
    color: #fff;
}

    .monthlies-list-action-btn--delete:hover,
    .monthlies-list-action-btn--delete:focus {
        background: #c83328;
        border-color: #c83328;
        color: #fff;
    }

.monthlies-list-empty,
.monthlies-list-alert {
    margin-bottom: 0;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #fff;
    color: #697586;
    font-size: 15px;
    font-weight: 600;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

@media (max-width: 767px) {
    .monthlies-list-header {
        flex-direction: column;
    }

    .monthlies-generate-toolbar {
        width: 100%;
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .monthlies-generate-select,
    .monthlies-generate-select--year,
    .monthlies-generate-btn {
        width: 100%;
    }

    .monthlies-list-table {
        min-width: 680px;
    }
}

/* =============================================
   Goal Details page redesign
   ============================================= */

.content-header > h1:empty {
    display: none;
}

.goal-detail-page {
    color: #202938;
}

.tooltip {
    z-index: 3000;
}

.goal-detail-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 28px 12px 28px;
}

.goal-detail-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 0;
    border-radius: 6px;
    background: #e8f7ee;
    color: #5f9f74;
    font-size: 18px;
    box-shadow: none;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .goal-detail-back:hover,
    .goal-detail-back:focus {
        background: #dcf2e5;
        color: #4d8f62;
        transform: translateX(-3px);
        box-shadow: 0 8px 18px rgba(95, 159, 116, 0.18);
    }

.goal-detail-hero h1 {
    margin: 0 0 4px;
    color: #243047;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
}

.goal-detail-hero p {
    margin: 0;
    color: #667085;
    font-size: 15px;
    font-weight: 600;
}

.goal-detail-layout {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    margin: 0 12px;
}

.goal-detail-config-card,
.goal-detail-card {
    border: 1px solid #ecf0f5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.goal-detail-card {
    overflow: hidden;
}

.goal-detail-config-card {
    position: sticky;
    top: 82px;
    overflow: visible;
}

.goal-detail-card + .goal-detail-card {
    margin-top: 26px;
}

.goal-detail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 18px 26px;
    border-bottom: 1px solid #f1f4f7;
}

.goal-detail-card-header--inline {
    align-items: flex-start;
}

.goal-detail-card-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #202938;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

    .goal-detail-card-header h2 .fa {
        color: #5c9d72;
        font-size: 17px;
    }

.goal-detail-card-header p {
    margin: 7px 0 0;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.goal-detail-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.goal-detail-icon-btn {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0 !important;
    border: 1px solid #e8edf3 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #98a2b3 !important;
    font-size: 15px;
    box-shadow: none !important;
    text-decoration: none !important;
    cursor: pointer;
}

    .goal-detail-icon-btn:hover,
    .goal-detail-icon-btn:focus {
        background: #f8fafc !important;
        color: #344054 !important;
    }

.goal-detail-icon-btn--danger:hover,
.goal-detail-icon-btn--danger:focus {
    background: #fff5f5 !important;
    border-color: #ffd5d5 !important;
    color: #c2413d !important;
}

.goal-detail-alert-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #d64a43;
    color: #fff;
    font-size: 9px;
}

.goal-detail-form-body {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding: 20px 18px 14px;
}

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

    .goal-detail-form-body label,
    .goal-detail-check label {
        display: block;
        margin: 0 0 8px;
        color: #697386;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.06em;
        line-height: 1.2;
        text-transform: uppercase;
    }

        .goal-detail-form-body label small {
            text-transform: none;
        }

    .goal-detail-form-body .form-control {
        height: 38px;
        border: 1px solid #dde3ea;
        border-radius: 8px;
        box-shadow: none;
        color: #202938;
        font-size: 13px;
        font-weight: 500;
    }

    .goal-detail-form-body textarea.form-control {
        min-height: 78px;
        height: auto;
        resize: vertical;
    }

    .goal-detail-form-body .form-control[readonly] {
        background: #fff;
        cursor: default;
    }

    .goal-detail-form-body .row {
        margin-left: -8px;
        margin-right: -8px;
    }

        .goal-detail-form-body .row > [class*="col-"] {
            padding-left: 8px;
            padding-right: 8px;
        }

.goal-detail-checks {
    display: grid;
    gap: 12px;
    margin: 4px 0 22px;
}

.goal-detail-check {
    display: flex;
    align-items: center;
    min-height: 26px;
}

    .goal-detail-check > .form-control,
    .goal-detail-check > .icheckbox_square-blue {
        margin: 0 12px 0 0 !important;
        flex: 0 0 auto;
    }

    .goal-detail-check > input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .goal-detail-check label {
        margin: 0;
        color: #3f4654;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0;
        line-height: 1.35;
        text-transform: none;
    }

.goal-detail-actions {
    display: flex;
    padding: 14px 18px 16px;
    border-top: 1px solid #eef2f6;
    background: #fff;
    box-shadow: none;
}

.goal-detail-save-btn,
.goal-detail-cancel-btn,
.goal-detail-settings-btn,
.goal-detail-audit-btn,
.goal-detail-update-status-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: none !important;
}

.goal-detail-save-btn {
    width: 100%;
    min-height: 44px;
    border: 1px solid #5d9d72 !important;
    background: #5f9f74 !important;
    color: #fff !important;
}

    .goal-detail-save-btn:hover,
    .goal-detail-save-btn:focus {
        background: #558f68 !important;
        color: #fff !important;
    }

.goal-detail-cancel-btn {
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid #dfe5ec !important;
    background: #fff !important;
    color: #344054 !important;
}

    .goal-detail-cancel-btn:hover,
    .goal-detail-cancel-btn:focus,
    .goal-detail-settings-btn:hover,
    .goal-detail-settings-btn:focus {
        background: #f8fafc !important;
        color: #202938 !important;
    }

.goal-detail-settings-btn {
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid #e5e9ef !important;
    background: #fff !important;
    color: #344054 !important;
}

.goal-detail-main {
    min-width: 0;
}

.goal-detail-card.goal-detail-graph-card {
    overflow: visible;
}

.goal-detail-graph-card {
    padding-bottom: 20px;
    overflow: visible;
}

.goal-detail-graph-controls {
    display: none;
    margin: 0 32px 20px;
    padding: 18px 20px;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    background: #f8fafc;
}

.graph-control-group {
    margin-bottom: 20px;
}

    .graph-control-group:last-child {
        margin-bottom: 0;
    }

.graph-control-label {
    display: block;
    margin-bottom: 10px;
    color: #4f5b6e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.graph-control-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.graph-view-mode-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

    .graph-view-mode-stack .btn-group,
    .graph-control-inline .btn-group {
        display: inline-flex;
        margin-right: 0;
    }

.goal-detail-graph-controls .btn-group > .btn {
    min-height: 38px;
    padding: 9px 14px;
    border-color: #d9e1ea;
    background: #fff;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
    box-shadow: none !important;
}

    .goal-detail-graph-controls .btn-group > .btn:hover,
    .goal-detail-graph-controls .btn-group > .btn:focus {
        border-color: #c9d3df;
        background: #f4f7fa;
        color: #202938;
    }

    .goal-detail-graph-controls .btn-group > .btn.active,
    .goal-detail-graph-controls .btn-group > .btn:active {
        border-color: #5d9d72 !important;
        background: #5f9f74 !important;
        color: #fff !important;
    }

.graph-target-selector-wrap {
    width: 100%;
    max-width: 430px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.graph-target-selector-search-wrap {
    position: relative;
    margin-bottom: 8px;
}

    .graph-target-selector-search-wrap[hidden] {
        display: none !important;
    }

.graph-target-selector-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 12px;
    pointer-events: none;
}

.graph-target-selector-search {
    width: 100%;
    height: 34px;
    padding: 0 10px 0 30px;
    border: 1px solid #d6dde7;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
}

    .graph-target-selector-search::placeholder {
        color: #98a2b3;
        font-weight: 500;
    }

.goals-search-icon,
.client-list-page__control-icon,
.staff-list-page__control-icon,
.settings-goal-page__control-icon,
.graph-target-selector-search-icon {
    transition: color 0.15s ease;
}

.graph-target-selector-list {
    width: 100%;
    min-height: 88px;
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid #d6dde7;
    border-radius: 8px;
    background: #fff;
}

.graph-target-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #344054;
    cursor: pointer;
    user-select: none;
}

    .graph-target-option:hover {
        background: #f9fafb;
    }

    .graph-target-option input[type="checkbox"] {
        margin: 0;
        flex-shrink: 0;
    }

.graph-target-selector-hint {
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #b54708;
}

    .graph-target-selector-hint[hidden],
    .graph-target-selector-empty[hidden] {
        display: none !important;
    }

.graph-target-selector-empty {
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #667085;
}

.graph-region-grid select,
.graph-region-grid input {
        width: 100%;
        height: 42px;
        border: 1px solid #d6dde7;
        border-radius: 8px;
        background: #fff;
        color: #344054;
        font-size: 14px;
        font-weight: 600;
        box-shadow: none;
    }

        .graph-region-grid select:focus,
        .graph-region-grid input:focus {
            border-color: #9fc9ad;
            box-shadow: 0 0 0 3px rgba(95, 159, 116, 0.12) !important;
        }

.graph-region-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    align-items: end;
}

.graph-region-field label {
    display: block;
    margin-bottom: 9px;
    color: #4f5b6e;
    font-size: 12px;
    font-weight: 900;
}

.graph-region-field:nth-child(3) {
    grid-column: 1 / -1;
}

.graph-region-actions {
    grid-column: 1 / -1;
}

.graph-region-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

    .graph-region-actions .btn {
        min-height: 40px;
        padding: 9px 16px;
        border: 1px solid #d6dde7;
        border-radius: 8px;
        background: #fff;
        color: #344054;
        font-size: 14px;
        font-weight: 800;
    }

        .graph-region-actions .btn:hover,
        .graph-region-actions .btn:focus {
            background: #f4f7fa;
        }

    .graph-region-actions #graph-add-region {
        border-color: #25354b;
        background: #25354b;
        color: #fff;
    }

        .graph-region-actions #graph-add-region:hover,
        .graph-region-actions #graph-add-region:focus {
            border-color: #1f2b3d;
            background: #1f2b3d;
            color: #fff;
        }

#graph-region-list {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e3e8ef;
    color: #667085;
    font-size: 14px;
}

    #graph-region-list ul {
        margin: 0;
    }

    #graph-region-list li {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
        color: #596273;
        font-size: 14px;
    }

        #graph-region-list li:last-child {
            margin-bottom: 0;
        }

        #graph-region-list li strong {
            color: #344054;
            font-weight: 900;
        }

    #graph-region-list .graph-remove-region {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 28px;
        padding: 5px 10px !important;
        border: 1px solid #f0b8b3 !important;
        border-radius: 6px;
        background: #fff5f5 !important;
        color: #b42318 !important;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
        text-decoration: none !important;
    }

        #graph-region-list .graph-remove-region:hover,
        #graph-region-list .graph-remove-region:focus {
            background: #ffe8e6 !important;
            border-color: #e49b94 !important;
            color: #912018 !important;
        }

.graph-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
    margin: 0 32px 18px;
    padding: 18px 0;
    border-bottom: 1px solid #f1f4f7;
}

.graph-months-hint {
    margin: -6px 32px 14px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.graph-months-hint-link {
    padding: 0;
    border: 0;
    font-size: 13px;
    font-weight: 800;
    vertical-align: baseline;
    color: #5f9f74 !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .graph-months-hint-link:hover,
    .graph-months-hint-link:focus {
        color: #4d865f !important;
    }

.graph-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #596273;
    font-size: 13px;
    font-weight: 800;
}

    .graph-legend-item input {
        margin: 0;
    }

.graph-legend-swatch {
    display: inline-block;
    width: 24px;
    height: 10px;
    border: 2px solid transparent;
    border-radius: 999px;
}

.graph-legend-item:not(.is-static) .graph-legend-swatch {
    display: none;
}

.graph-legend-item.is-static .graph-legend-swatch {
    width: 13px;
    height: 13px;
}

.goal-detail-chart-wrap {
    position: relative;
    height: 340px;
    margin: 0 26px 0 0;
    padding: 0 0 8px;
    overflow: visible;
}

    .goal-detail-chart-wrap canvas {
        width: 100% !important;
        height: 100% !important;
    }

.goal-detail-axis-title {
    display: none;
}

.goal-detail-audit-btn {
    min-height: 38px;
    padding: 10px 17px;
    border: 1px solid #25354b !important;
    border-radius: 6px !important;
    background: #25354b !important;
    color: #fff !important;
    font-size: 13px;
    white-space: nowrap;
}

    .goal-detail-audit-btn:hover,
    .goal-detail-audit-btn:focus {
        background: #1f2b3d !important;
        color: #fff !important;
    }

.goal-detail-session-list.panel-group {
    margin: 0;
}

.goal-detail-audit-card {
    border-radius: 8px;
}

.goal-detail-session-panel {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

    .goal-detail-session-panel + .goal-detail-session-panel {
        border-top: 1px solid #edf1f5 !important;
    }

    .goal-detail-session-panel > .panel-heading {
        padding: 0;
        border: 0;
        background: #fff !important;
        color: #202938 !important;
    }

        .goal-detail-session-panel > .panel-heading.panel-highlight {
            background: #27374c !important;
            color: #fff !important;
        }

    .goal-detail-session-panel .panel-title {
        margin: 0;
        font-size: 15px;
    }

    .goal-detail-session-panel .accprogram {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 46px;
        padding: 14px 26px;
        color: #667085 !important;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.35;
        text-decoration: none !important;
    }

        .goal-detail-session-panel .accprogram strong {
            margin-right: 8px;
            color: #344054;
            font-weight: 800;
        }

    .goal-detail-session-panel > .panel-heading.panel-highlight .accprogram,
    .goal-detail-session-panel > .panel-heading.panel-highlight .accprogram strong,
    .goal-detail-session-panel > .panel-heading.panel-highlight .accprogram .glyphicon {
        color: #fff !important;
    }

    .goal-detail-session-panel:nth-child(even) > .panel-heading.panel-highlight,
    .goal-detail-session-panel > .panel-heading.panel-highlight {
        background: #27374c !important;
    }

    .goal-detail-session-panel .accprogram .glyphicon {
        flex: 0 0 auto;
        margin-left: 16px;
        color: #4b5565;
        font-size: 11px;
    }

    .goal-detail-session-panel > .panel-heading + .panel-collapse > .panel-body {
        border-top: 0;
    }

    .goal-detail-session-panel .panel-body {
        padding: 0;
        background: #fff;
    }

.goal-detail-session-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 54px;
    margin: 0;
    padding: 12px 12px;
    border-bottom: 1px solid #eef2f6;
    background: #fff;
}

.goal-detail-toolbar-action--signature {
    display: none !important;
}

.goal-detail-toolbar-action--notes {
    order: 40;
}

.goal-detail-toolbar-action--add {
    order: 30;
}

.goal-detail-toolbar-action--delete {
    order: 20;
}

.goal-detail-toolbar-action--status {
    order: 10;
}

.goal-detail-session-toolbar > .form-group.has-feedback {
    display: none !important;
}

.goal-detail-session-toolbar .goal-detail-icon-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 6px !important;
    color: #667085 !important;
}

.goal-detail-update-status-btn {
    min-height: 30px;
    padding: 7px 12px;
    border: 1px solid #e3e8ef !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #344054 !important;
    font-size: 13px;
}

    .goal-detail-update-status-btn:hover,
    .goal-detail-update-status-btn:focus {
        background: #f8fafc !important;
    }

.goal-detail-empty {
    padding: 24px 26px;
    color: #697586;
    font-size: 15px;
    font-weight: 700;
}

.goal-detail-program-table.table,
.goal-detail-program-table.table-bordered,
.goal-detail-program-table.table-striped {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse;
    background: #fff;
}

.goal-detail-program-table > thead > tr > th {
    position: relative;
    height: 44px;
    padding: 12px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f5 !important;
    background: #fff !important;
    color: #596273 !important;
    font-size: 12px;
    font-weight: 900 !important;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    vertical-align: middle !important;
}

.goal-detail-program-table > tbody > tr > td {
    height: 43px;
    padding: 9px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid #f0f3f6 !important;
    background: #fff !important;
    color: #596273;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    vertical-align: middle !important;
}

.goal-detail-program-table.table-striped > tbody > tr:nth-of-type(odd) > td,
.goal-detail-program-table > tbody > tr:nth-child(even) > td {
    background: #f8fafc !important;
}

.goal-detail-program-table__select-heading,
.goal-detail-program-table__select-cell {
    width: 50px;
    text-align: center !important;
}

.goal-detail-program-table__primary-cell,
.goal-detail-program-table__time-cell {
    color: #202938;
    font-weight: 800;
}

.goal-detail-program-table__status-heading,
.goal-detail-program-table__status-cell {
    text-align: left !important;
}

.goal-detail-program-table__address-heading,
.goal-detail-program-table__address-cell {
    text-align: left !important;
}

.goal-detail-program-table > thead > tr > th:last-child,
.goal-detail-program-table__action-cell {
    text-align: right !important;
}

.goal-detail-program-table__action-cell {
    width: 34px;
    padding-left: 6px !important;
    padding-right: 8px !important;
    white-space: nowrap;
}

.goal-detail-program-table__action-cell--log {
    display: none;
}

.goal-detail-program-table__action-cell--delete {
    padding-right: 16px !important;
}

.goal-detail-program-table input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
}

.goal-detail-program-table .btn.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 6px;
    background: transparent !important;
    color: #98a2b3 !important;
    font-size: 14px;
    text-decoration: none !important;
    opacity: 1;
    transition: opacity 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.goal-detail-program-table > tbody > tr:hover .btn.btn-link,
.goal-detail-program-table > tbody > tr:focus-within .btn.btn-link {
    opacity: 1;
}

.goal-detail-program-table .btn.btn-link:hover,
.goal-detail-program-table .btn.btn-link:focus {
    background: #f1f4f7 !important;
    color: #344054 !important;
    opacity: 1;
}

.goal-detail-program-table__action-heading {
    width: 76px !important;
    font-size: 0 !important;
}

.goal-detail-program-table__action-heading--edit,
.goal-detail-program-table__action-heading--log {
    display: none;
}

    .goal-detail-program-table__action-heading--delete::before,
    .goal-detail-program-table__action-heading--edit:only-child::before {
        content: "Actions";
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #596273 !important;
        font-size: 12px;
        font-weight: 900 !important;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

.goal-detail-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
}

.goal-detail-status-pill--success {
    border-color: #c9f3d7;
    background: #eafbf0;
    color: #16853d;
}

.goal-detail-status-pill--warning {
    border-color: #f6d8b4;
    background: #fff5e9;
    color: #c14819;
}

.goal-detail-program-table__total-row > td {
    height: 46px;
    border-bottom: 0 !important;
    background: #f7f5f8 !important;
    color: #202938 !important;
    font-weight: 800;
}

    .goal-detail-program-table__total-row > td.text-bold {
        color: #202938 !important;
    }

.goal-detail-program-table__total-row--combined > td {
    padding-left: 26px !important;
    text-align: left !important;
}

.goal-detail-program-table__total-row--combined span {
    margin-right: 8px;
    font-weight: 900;
}

@media (max-width: 1199px) {
    .goal-detail-layout {
        grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
        gap: 20px;
    }

    .goal-detail-card-header,
    .goal-detail-form-body,
    .goal-detail-session-panel .accprogram {
        padding-left: 20px;
        padding-right: 20px;
    }

    .graph-legend,
    .goal-detail-graph-controls {
        margin-left: 20px;
        margin-right: 20px;
    }

    .goal-detail-chart-wrap {
        margin-left: 0;
        margin-right: 20px;
    }
}

@media (max-width: 991px) {
    .goal-detail-layout {
        grid-template-columns: 1fr;
    }

    .goal-detail-config-card {
        position: relative;
        top: auto;
    }

    .goal-detail-form-body {
        max-height: none;
    }

    .graph-region-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .graph-region-field:nth-child(3),
    .graph-region-actions {
        grid-column: 1 / span 2;
    }
}

@media (max-width: 767px) {
    .goal-detail-hero,
    .goal-detail-layout {
        margin-left: 0;
        margin-right: 0;
    }

    .goal-detail-hero {
        margin-top: 10px;
        margin-bottom: 20px;
    }

        .goal-detail-hero h1 {
            font-size: 20px;
        }

    .goal-detail-card-header,
    .goal-detail-card-header--inline {
        flex-direction: column;
        align-items: stretch;
    }

    .goal-detail-settings-btn,
    .goal-detail-audit-btn {
        width: 100%;
    }

    .goal-detail-actions {
        grid-template-columns: 1fr;
    }

    .goal-detail-cancel-btn {
        width: 100%;
    }

    .graph-control-inline,
    .graph-view-mode-stack,
    .graph-region-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .graph-region-grid {
        grid-template-columns: 1fr;
    }

    .graph-region-field:nth-child(3),
    .graph-region-actions {
        grid-column: auto;
    }

    .goal-detail-chart-wrap {
        height: 300px;
        margin-left: 0;
        margin-right: 0;
        padding-bottom: 8px;
    }

    .goal-detail-session-toolbar {
        flex-wrap: wrap;
    }

    .goal-detail-program-table {
        min-width: 720px;
    }

    .goal-detail-session-panel .fill-data {
        overflow-x: auto;
    }
}

/* Global zebra striping for all Bootstrap/DataTables tables. */
.table > tbody > tr:nth-child(odd):not(.goal-detail-program-table__total-row) > td,
.table > tbody > tr:nth-child(odd):not(.goal-detail-program-table__total-row) > th {
    background-color: #fff !important;
}

.table > tbody > tr:nth-child(even):not(.goal-detail-program-table__total-row) > td,
.table > tbody > tr:nth-child(even):not(.goal-detail-program-table__total-row) > th {
    background-color: var(--theme-table-stripe) !important;
}

table.settings-goal-table > tbody > tr > td,
table.settings-goal-table > tbody > tr > th {
    background-color: var(--theme-card-bg) !important;
}

.table > tbody > tr:hover:not(.goal-detail-program-table__total-row) > td,
.table > tbody > tr:hover:not(.goal-detail-program-table__total-row) > th {
    background-color: var(--theme-table-hover) !important;
}

table.goals-table > tbody > tr {
    cursor: default;
}

.measurement-type-lock-message.alert-warning {
    position: relative;
    margin-top: 12px;
    padding: 16px 42px 16px 16px;
    border: 1px solid #f5c542;
    border-radius: 4px;
    background: transparent !important;
    color: #c99700 !important;
    text-shadow: none !important;
    font-weight: 600;
    line-height: 1.45;
}

.measurement-type-lock-message__icon {
    position: absolute;
    top: 12px;
    right: 14px;
    color: #c99700;
    font-size: 16px;
}
