/* Brand Colors from Style Guide (October 2023) */
:root {
    --tbb-dark-blue: #1D1F59;
    --tbb-green: #67CFB0;
    --tbb-red: #FF715B;
    --tbb-mid-blue: #0075FF;
    --tbb-light-blue: #5BCEFF;
    --tbb-purple: #7000FF;
    --tbb-grey: #B5B5B5;
}

/* =========================================================================
   Scoped Styles (only apply within #my-profile)
   ========================================================================= */

#my-profile .table > :not(caption) > * > * {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

#my-profile .table thead th {
    font-weight: 500;
    font-size: 0.875rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    color: var(--tbb-dark-blue);
}

#my-profile .btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.775rem;
}

#my-profile .tbb-badge-sm {
    padding: 0.2em 0.4em;
    font-size: 0.65rem;
}

@media (max-width: 767.98px) {
    #my-profile .table-responsive .table th.tbb-border-left,
    #my-profile .table-responsive .table td.tbb-border-left {
        display: none !important;
    }
}

/* Enhanced Mobile Responsive Styles */
@media (max-width: 991.98px) {
    #my-profile .btn-group {
        flex-direction: column;
        width: 100%;
    }

    #my-profile .btn-group .btn {
        margin-bottom: 0.25rem;
        border-radius: 0.375rem !important;
    }
}

@media (max-width: 767.98px) {
    #my-profile .table-responsive .table,
    #my-profile .table-responsive .table thead,
    #my-profile .table-responsive .table tbody,
    #my-profile .table-responsive .table th,
    #my-profile .table-responsive .table td,
    #my-profile .table-responsive .table tr {
        display: block;
    }

    #my-profile .table-responsive .table thead {
        display: none;
    }

    #my-profile .table-responsive .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
        background-color: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    #my-profile .table-responsive .table tbody tr td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f8f9fa;
        position: relative;
        padding-left: 0;
        text-align: left;
    }

    #my-profile .table-responsive .table tbody tr td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    #my-profile .table-responsive .table tbody tr td:before {
        content: attr(data-label) ': ';
        font-weight: 600;
        color: #6c757d;
        display: inline-block;
        width: auto;
        margin-right: 0.5rem;
        font-size: 0.875rem;
    }

    #my-profile .table-responsive .table tbody tr td:last-child {
        text-align: center;
        padding-top: 1rem;
        margin-top: 0.5rem;
        border-top: 1px solid #f8f9fa;
    }

    #my-profile .table-responsive .table tbody tr td:last-child:before {
        content: '';
        display: none;
    }

    #my-profile .table-responsive .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    #my-profile .table-responsive .btn-group .btn {
        width: 100%;
        margin: 0;
        justify-content: center;
    }

    #my-profile .mb-4.row.flex-column {
        margin-bottom: 2rem !important;
    }

    #my-profile .btn-group-sm .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 575.98px) {
    #my-profile .container,
    #my-profile .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    #my-profile .table-responsive .table tbody tr {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    #my-profile .btn-group .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    #my-profile .row.justify-content-center.text-center.mb-3 .col-12.col-md-auto {
        margin-bottom: 0.5rem;
    }

    #my-profile .row.justify-content-center.text-center.mb-3 .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

#my-profile .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    #my-profile .table-responsive .table {
        display: table;
    }

    #my-profile .table-responsive .table thead,
    #my-profile .table-responsive .table tbody,
    #my-profile .table-responsive .table tr,
    #my-profile .table-responsive .table th,
    #my-profile .table-responsive .table td {
        display: table-row-group;
    }

    #my-profile .table-responsive .table thead {
        display: table-header-group;
    }

    #my-profile .table-responsive .table tbody {
        display: table-row-group;
    }

    #my-profile .table-responsive .table tr {
        display: table-row;
    }

    #my-profile .table-responsive .table th,
    #my-profile .table-responsive .table td {
        display: table-cell;
    }
}

#my-profile .tbb-text-truncate-mobile {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

@media (max-width: 767.98px) {
    #my-profile .tbb-text-truncate-mobile {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        max-width: none;
    }
}

#my-profile .table td .btn-group .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

@media (max-width: 767.98px) {
    #my-profile .badge {
        font-size: 0.7rem;
        padding: 0.3em 0.6em;
    }
}

#my-profile th.tbb-border-left {
    width: 8px;
    padding: 0;
    border-right: none;
    background-color: #f8f9fa;
}

#my-profile td.tbb-border-left {
    width: 8px;
    padding: 0;
    background-color: #198754;
    border-right: none;
}

/* =========================================================================
   TBB Custom Classes (namespaced to avoid WordPress conflicts)
   ========================================================================= */

#my-profile .tbb-text-orange {
    color: #f3883d !important;
}

/* Page Titles */
#my-profile h1.tbb-page-title {
    display: block;
    font-size: 2.0rem;
    font-weight: bold;
    unicode-bidi: isolate;
    color: var(--tbb-dark-blue);
}

#my-profile h2.tbb-section-title {
    display: block;
    font-size: 1.7rem;
    font-weight: bold;
    unicode-bidi: isolate;
    color: var(--tbb-dark-blue);
}

/* =========================================================================
   TBB Button Styles
   Note: These are global (not scoped to #my-profile) because SweetAlert
   and other modals render at body level outside the #my-profile container.
   The tbb- prefix prevents conflicts with other site styles.
   ========================================================================= */

.btn-tbb-green {
    color: var(--tbb-dark-blue);
    background-color: var(--tbb-green);
    border-color: var(--tbb-green);
}

.btn-tbb-green:hover {
    color: #fff;
    background-color: #52b89a;
    border-color: #52b89a;
}

.btn-outline-tbb-green {
    color: var(--tbb-dark-blue);
    border-color: var(--tbb-green);
}

.btn-outline-tbb-green:hover {
    color: #fff;
    background-color: var(--tbb-green);
    border-color: var(--tbb-green);
}

.btn-outline-tbb-blue {
    color: var(--tbb-mid-blue);
    border-color: var(--tbb-mid-blue);
}

.btn-outline-tbb-blue:hover {
    color: #fff;
    background-color: var(--tbb-mid-blue);
    border-color: var(--tbb-mid-blue);
}

.btn-outline-tbb-red {
    color: var(--tbb-red);
    border-color: var(--tbb-red);
}

.btn-outline-tbb-red:hover {
    color: #fff;
    background-color: var(--tbb-red);
    border-color: var(--tbb-red);
}

.btn-outline-tbb-dark {
    color: var(--tbb-dark-blue);
    border-color: var(--tbb-dark-blue);
}

.btn-outline-tbb-dark:hover {
    color: #fff;
    background-color: var(--tbb-dark-blue);
    border-color: var(--tbb-dark-blue);
}

/* Links */
#my-profile .tbb-link-blue {
    color: var(--tbb-dark-blue);
    text-decoration: none;
}

#my-profile .tbb-link-blue:hover {
    color: var(--tbb-mid-blue);
    text-decoration: underline;
}

#my-profile .tbb-link-red {
    color: var(--tbb-red);
    text-decoration: none;
}

#my-profile .tbb-link-red:hover {
    color: #e65a45;
    text-decoration: underline;
}

/* Section cards */
#my-profile .tbb-section-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    border-left: 4px solid var(--tbb-green);
}

/* Quick nav buttons */
#my-profile .tbb-quick-nav .btn {
    border-radius: 2rem;
}

/* Status indicators */
#my-profile .tbb-status-enabled {
    color: var(--tbb-green) !important;
}

#my-profile .tbb-status-disabled {
    color: var(--tbb-grey) !important;
}

/* =========================================================================
   BQM Create Form Validation Styles
   ========================================================================= */

#my-profile .validation-step {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    background: #f8f9fa;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

#my-profile .validation-step.loading {
    background: #e7f3ff;
}

#my-profile .validation-step.success {
    background: #d4edda;
}

#my-profile .validation-step.warning {
    background: #fff3cd;
}

#my-profile .validation-step.error {
    background: #f8d7da;
}

#my-profile .validation-step .badge {
    flex-shrink: 0;
    font-size: 1rem;
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#my-profile .validation-step .content {
    flex: 1;
}

#my-profile .validation-step .content strong {
    display: block;
    margin-bottom: 0.25rem;
}

#my-profile .validation-step .details {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

#my-profile .validation-step .warning-message {
    font-size: 0.875rem;
    color: #856404;
    background: #fff;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
    border-left: 3px solid #ffc107;
}

#my-profile .validation-step .error-message {
    font-size: 0.875rem;
    color: #721c24;
    background: #fff;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
    border-left: 3px solid #dc3545;
}

#my-profile #preSubmitValidation {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

#my-profile #validationSteps {
    margin-top: 1rem;
}

#my-profile .validation-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

#my-profile .validation-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

#my-profile #submitBtn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================================
   BQM Calendar/Picker Styles
   ========================================================================= */

#my-profile .picker__box,
#my-profile .picker__box *,
#my-profile .picker__table,
#my-profile .picker__table *,
#my-profile .picker__day,
#my-profile .picker__day * {
    list-style: none !important;
}

#my-profile .picker__day::before,
#my-profile .picker__day::after,
#my-profile .picker__day *::before,
#my-profile .picker__day *::after {
    content: none !important;
}

#my-profile .picker__day--disabled .disabled,
#my-profile .picker__day--today a,
#my-profile .on-day,
#my-profile a.has-data,
#my-profile a.no-data {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-weight: 500 !important;
    border-radius: 3px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border: 2px solid transparent !important;
    box-sizing: border-box !important;
    vertical-align: top !important;
}

#my-profile .picker__day {
    padding: .3125em 0;
    font-weight: 200;
    border: 1px solid transparent;
}

#my-profile .picker__day .on-day {
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 8px;
    background-color: var(--tbb-purple);
    border-radius: 50%;
}

#my-profile .picker__nav--disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#my-profile .picker__day--disabled {
    opacity: 0.4;
}

#my-profile .picker__day > *,
#my-profile .picker__day a,
#my-profile .picker__day span {
    border-radius: 3px !important;
}

#my-profile .picker__day--disabled .disabled {
    color: white !important;
    cursor: not-allowed !important;
    background-color: #6c757d !important;
    font-weight: 500 !important;
}

#my-profile .picker__day--today {
    background-color: var(--tbb-red) !important;
    color: white !important;
    border-radius: 3px !important;
    font-weight: 700;
    padding: 4px;
}

#my-profile .picker__day--today a {
    color: white !important;
    background-color: var(--tbb-red) !important;
    border-radius: 3px !important;
    font-weight: 700 !important;
}

#my-profile .picker__day--today a:hover {
    background-color: #e55a47 !important;
    color: white !important;
    border-radius: 3px !important;
}

#my-profile .on-day {
    background-color: var(--tbb-red) !important;
    color: white !important;
    border-radius: 3px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 3px 10px rgba(255, 113, 91, 0.4) !important;
}

#my-profile .picker__empty-state {
    padding: 15px 0;
}

#my-profile .picker__status {
    font-size: 1rem;
    text-align: center;
    padding: 10px 0;
    color: var(--tbb-dark-blue);
    font-weight: 500;
}

#my-profile .picker__status .text-muted {
    color: var(--tbb-dark-blue) !important;
}

#my-profile .picker__footer {
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

#my-profile .picker__warning {
    margin-bottom: 15px;
}

#my-profile a.has-data {
    color: white !important;
    background-color: var(--tbb-green) !important;
    font-weight: 700 !important;
}

#my-profile a.has-data:hover {
    background-color: #52b89a !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(103, 207, 176, 0.4) !important;
}

#my-profile a.no-data {
    color: var(--tbb-dark-blue) !important;
    opacity: 0.6 !important;
    background-color: rgba(29, 31, 89, 0.05) !important;
    font-weight: 500 !important;
}

#my-profile a.no-data:hover {
    opacity: 1 !important;
    background-color: rgba(29, 31, 89, 0.1) !important;
    text-decoration: none !important;
    border-color: rgba(29, 31, 89, 0.2) !important;
}

#my-profile .badge-success {
    background-color: var(--tbb-green);
    color: white;
}

#my-profile .badge-secondary {
    background-color: var(--tbb-dark-blue);
    color: white;
}

#my-profile .badge-warning {
    background-color: var(--tbb-red);
    color: white;
}

#my-profile .picker__weekday {
    color: var(--tbb-dark-blue);
    font-weight: 600;
    text-align: center;
    padding: 8px 4px;
    border-bottom: 2px solid rgba(29, 31, 89, 0.1);
}

#my-profile .picker__month,
#my-profile .picker__year {
    color: var(--tbb-dark-blue);
    font-weight: 600;
}

#my-profile .picker__box *:focus,
#my-profile .picker__box a:focus {
    outline: none !important;
    box-shadow: none !important;
}

#my-profile .picker__nav--prev,
#my-profile .picker__nav--next {
    color: var(--tbb-dark-blue);
    transition: color 0.2s ease;
    background: none !important;
    border: none !important;
    outline: none !important;
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
}

#my-profile .picker__nav--prev:hover,
#my-profile .picker__nav--next:hover {
    color: var(--tbb-red);
    background-color: rgba(255, 113, 91, 0.1) !important;
}

#my-profile .picker__nav--prev:focus,
#my-profile .picker__nav--next:focus {
    outline: none !important;
    box-shadow: none !important;
}

#my-profile a:has(.picker__nav--prev),
#my-profile a:has(.picker__nav--next) {
    text-decoration: none !important;
    outline: none !important;
}

#my-profile a:has(.picker__nav--prev):focus,
#my-profile a:has(.picker__nav--next):focus {
    outline: none !important;
    box-shadow: none !important;
}

#my-profile .picker__table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

#my-profile .picker__table thead,
#my-profile .picker__table tbody,
#my-profile .picker__table tr {
    display: table-header-group !important;
}

#my-profile .picker__table tbody {
    display: table-row-group !important;
}

#my-profile .picker__table tr {
    display: table-row !important;
}

#my-profile .picker__table th,
#my-profile .picker__table td {
    display: table-cell !important;
    width: 14.28571429% !important;
    text-align: center !important;
    vertical-align: middle !important;
}

#my-profile .picker__table td::before,
#my-profile .picker__table td::after,
#my-profile .picker__table th::before,
#my-profile .picker__table th::after,
#my-profile .picker__table a::before,
#my-profile .picker__table a::after,
#my-profile .picker__table span::before,
#my-profile .picker__table span::after {
    content: none !important;
    display: none !important;
}

/* Picker Mobile Responsive Styles */
@media (max-width: 767.98px) {
    #my-profile .picker__box {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: auto !important;
    }

    #my-profile .picker__header {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }

    #my-profile .picker__month,
    #my-profile .picker__year {
        font-size: 1rem !important;
    }

    #my-profile .picker__weekday {
        font-size: 0.75rem !important;
        padding: 8px 2px !important;
        font-weight: 600 !important;
    }

    #my-profile .picker__table td {
        padding: 1px !important;
        height: 45px !important;
        vertical-align: middle !important;
    }

    #my-profile .picker__day--disabled .disabled,
    #my-profile .picker__day--today a,
    #my-profile .on-day,
    #my-profile a.has-data,
    #my-profile a.no-data {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
        line-height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    #my-profile .picker__day {
        padding: 2px 0 !important;
        text-align: center !important;
    }

    #my-profile .picker__status {
        font-size: 0.85rem !important;
        padding: 8px 10px !important;
    }
}

@media (max-width: 575.98px) {
    #my-profile .picker__header {
        padding: 8px !important;
    }

    #my-profile .picker__month,
    #my-profile .picker__year {
        font-size: 0.9rem !important;
    }

    #my-profile .picker__weekday {
        font-size: 0.7rem !important;
        padding: 6px 1px !important;
    }

    #my-profile .picker__day--disabled .disabled,
    #my-profile .picker__day--today a,
    #my-profile .on-day,
    #my-profile a.has-data,
    #my-profile a.no-data {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
        line-height: 28px !important;
    }

    #my-profile .picker__table td {
        height: 35px !important;
    }
}

@media (max-width: 767.98px) and (orientation: landscape) {
    #my-profile .picker__day--disabled .disabled,
    #my-profile .picker__day--today a,
    #my-profile .on-day,
    #my-profile a.has-data,
    #my-profile a.no-data {
        width: 30px !important;
        height: 30px !important;
    }

    #my-profile .picker__table td {
        height: 38px !important;
    }
}

@media screen {
    #my-profile .picker__table,
    #my-profile .picker__table * {
        box-sizing: border-box !important;
    }
}

@supports (-webkit-appearance: none) {
    @media (max-width: 767.98px) {
        #my-profile .picker__table {
            display: table !important;
            width: 100% !important;
        }

        #my-profile .picker__table tbody {
            display: table-row-group !important;
        }

        #my-profile .picker__table tr {
            display: table-row !important;
        }

        #my-profile .picker__table td,
        #my-profile .picker__table th {
            display: table-cell !important;
        }
    }
}

@media (hover: none) and (pointer: coarse) {
    #my-profile a.has-data:hover,
    #my-profile a.no-data:hover,
    #my-profile .picker__day--today a:hover,
    #my-profile .picker__nav--prev:hover,
    #my-profile .picker__nav--next:hover {
        transform: none !important;
    }
}

/* =========================================================================
   Download Dropdown Styles
   ========================================================================= */

#my-profile .tbb-download-dropdown {
    position: relative;
    display: block;
}

#my-profile .tbb-dropdown-toggle {
    transition: all 0.15s ease-in-out;
}

#my-profile .tbb-dropdown-toggle[aria-expanded="true"] {
    background-color: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

#my-profile .tbb-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 1050;
    width: 100%;
    padding: 0.35rem 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

#my-profile .tbb-dropdown-menu.show {
    display: block;
    opacity: 1;
}

#my-profile .tbb-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 1.25rem;
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    transform: rotate(45deg);
}

#my-profile .tbb-dropdown-menu--inline {
    left: 0;
    right: auto;
    width: auto;
    min-width: 200px;
}

#my-profile .tbb-dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 1rem;
    color: #495057;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.8125rem;
    border-left: 2px solid transparent;
    transition: all 0.12s ease-in-out;
}

#my-profile .tbb-dropdown-item:hover {
    background-color: #f0f4f8;
    color: #212529;
    border-left-color: #6c757d;
    text-decoration: none;
}

#my-profile .tbb-dropdown-item + .tbb-dropdown-item {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* =========================================================================
   Daterangepicker Styles
   Note: Daterangepicker renders at body level, not inside #my-profile
   ========================================================================= */

.daterangepicker .drp-buttons .applyBtn {
    background-color: #ff8c7a;
    border-color: #ff8c7a;
    color: #fff;
}

.daterangepicker .drp-buttons .applyBtn:hover {
    background-color: #FF715B;
    border-color: #FF715B;
    color: #fff;
}

/* =========================================================================
   Chart Container Styles
   ========================================================================= */

#my-profile .chart-container {
    width: 100%;
    height: 300px;
}

@media (max-width: 767.98px) {
    #my-profile .chart-container {
        height: 250px;
    }

    /* Chart section header responsive layout */
    #my-profile .chart-container + .d-flex.justify-content-between,
    #my-profile .mb-4 > .d-flex.justify-content-between.align-items-center.flex-wrap:first-child {
        flex-direction: column;
        align-items: stretch;
    }

    #my-profile .chart-container + .d-flex.justify-content-between > div,
    #my-profile .mb-4 > .d-flex.justify-content-between.align-items-center.flex-wrap:first-child > div {
        width: 100%;
        text-align: center;
    }

    #my-profile #timespan {
        font-size: 0.8rem;
        word-break: break-word;
    }

    #my-profile .table img {
        max-width: 30px;
        height: auto;
    }

    #my-profile .table-responsive .table tbody tr td img {
        display: block;
        margin-top: 0.25rem;
        max-width: 100px;
        height: auto;
    }

    #my-profile .table-responsive .table tbody tr td:has(img) {
        padding-bottom: 0.75rem;
    }

    #my-profile .table tbody tr td[data-label*="Reliability"],
    #my-profile .table tbody tr td[data-label*="Customer Service"],
    #my-profile .table tbody tr td[data-label*="Overall Satisfaction"] {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    #my-profile .table tbody tr td[data-label*="Reliability"]:before,
    #my-profile .table tbody tr td[data-label*="Customer Service"]:before,
    #my-profile .table tbody tr td[data-label*="Overall Satisfaction"]:before {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 575.98px) {
    #my-profile .chart-container {
        height: 200px;
    }
}

/* =========================================================================
   Badge Color Overrides
   ========================================================================= */

#my-profile .badge.bg-warning,
#my-profile .badge.bg-warning.bg-opacity-25 {
    color: var(--tbb-red) !important;
}

/* =========================================================================
   User Postcodes Collapse Animation Styles
   Note: Using [id^="changes-"] selector instead of .collapse to avoid
   conflicts with Bootstrap's collapse component
   ========================================================================= */

#my-profile [id^="changes-"] {
    overflow: hidden;
    height: 0;
    transition: height 0.35s ease;
}

#my-profile [id^="changes-"].expanded {
    height: auto;
}

#my-profile [id^="changes-"] .p-2 {
    max-height: 300px;
    overflow-y: auto;
}

/* User Postcodes Mobile Responsive */
@media (max-width: 767.98px) {
    #my-profile .table-responsive .table tbody tr td[data-label="Recent Changes"] {
        display: block;
    }

    #my-profile .table-responsive .table tbody tr td[data-label="Recent Changes"] .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    #my-profile .table-responsive .table tbody tr td[data-label="Recent Changes"] .d-flex > div:first-child {
        width: 100%;
    }

    #my-profile .table-responsive .table tbody tr td[data-label="Recent Changes"] button {
        align-self: flex-end;
        margin-top: -1.5rem;
    }

    #my-profile [id^="changes-"] .p-2 {
        font-size: 0.85rem;
    }

    #my-profile [id^="changes-"] .d-flex.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }

    #my-profile [id^="changes-"] .badge {
        font-size: 0.6rem !important;
    }

    #my-profile [id^="changes-"] .text-muted {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }

    #my-profile .row.mt-5.text-center .col-md-4 {
        margin-bottom: 1rem;
    }

    #my-profile .row.mt-5.text-center .col-md-4:last-child {
        margin-bottom: 0;
    }

    #my-profile .btn-group.flex-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    #my-profile .btn-group.flex-wrap .btn {
        flex: 1;
        min-width: 0;
    }

    #my-profile .row.g-2 .col-6.col-lg-3 {
        margin-bottom: 1rem;
    }

    #my-profile .d-flex.align-items-center.flex-column.flex-sm-row {
        text-align: center;
    }

    #my-profile .table-responsive .table tbody tr td[data-label="Change"] .d-flex {
        justify-content: flex-start;
        gap: 0.25rem;
    }

    #my-profile .table-responsive .table tbody tr td[data-label="Change"] .badge {
        font-size: 0.6rem !important;
        padding: 0.2em 0.4em;
    }

    #my-profile #allChanges .d-flex.justify-content-between.align-items-center.flex-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    #my-profile #allChanges .badge {
        font-size: 0.6rem !important;
    }

    #my-profile #allChanges .d-flex.align-items-center.justify-content-between.flex-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    #my-profile .btn-group.flex-wrap .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }

    #my-profile .row.g-2 .col-6 {
        margin-bottom: 0.75rem;
    }
}

/* =========================================================================
   Password Reset - Password Meter Styles
   ========================================================================= */

#my-profile .password-meter {
    display: flex;
    height: 5px;
    margin-top: 10px;
}

#my-profile .password-meter .meter-section {
    flex: 1;
    background-color: #ddd;
}

#my-profile .password-meter .meter-section.weak {
    background-color: #ff4d4d;
}

#my-profile .password-meter .meter-section.medium {
    background-color: #ffd633;
}

#my-profile .password-meter .meter-section.strong {
    background-color: #00b300;
}

#my-profile .password-meter .meter-section.very-strong {
    background-color: #009900;
}

/* =========================================================================
   Reviews/Ratings Page Styles
   ========================================================================= */

#my-profile .hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#my-profile .hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

#my-profile .logo-container {
    flex-shrink: 0;
}

#my-profile .isp-rating-section {
    transition: box-shadow 0.2s ease;
}

#my-profile .isp-rating-section:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

#my-profile .review-preview {
    line-height: 1.5;
}

#my-profile .isp-logo-container {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 0.25rem;
}

@media (max-width: 767.98px) {
    #my-profile .table td[data-label="Review Text"] {
        max-width: 100%;
        word-break: break-word;
    }
}

/* =========================================================================
   Multi-Location Graph Cards
   ========================================================================= */

#my-profile .graph-card {
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#my-profile .graph-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#my-profile .graph-card-header {
    min-height: 48px;
}

#my-profile .graph-card-body img {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#my-profile .graph-card-body img:hover {
    opacity: 0.9;
}

@media (max-width: 991.98px) {
    #my-profile .graph-card {
        margin-bottom: 1rem;
    }
}

/* =========================================================================
   Share Link Cards
   ========================================================================= */

#my-profile .tbb-share-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#my-profile .tbb-share-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
    color: var(--tbb-dark-blue);
}

#my-profile .tbb-code-block {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.8125rem;
    color: #495057;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
}

#my-profile .tbb-copy-btn {
    transition: all 0.2s ease;
}

#my-profile .tbb-copy-btn.copied {
    background-color: var(--tbb-green);
    border-color: var(--tbb-green);
    color: #fff;
}

/* =========================================================================
   Monitor Cards (Index Page)
   ========================================================================= */

#my-profile .monitor-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#my-profile .monitor-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#my-profile .monitor-card.monitor-inactive {
    opacity: 0.8;
}

#my-profile .monitor-card.monitor-inactive:hover {
    opacity: 1;
}

#my-profile .monitor-graph-img {
    height: 200px;
    object-fit: contain;
    background: #f8f9fa;
}

#my-profile .monitor-graph-placeholder {
    height: 200px;
}

#my-profile .monitor-card .card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#my-profile .monitor-card .card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#my-profile .monitor-card .multi-location-notice {
    background-color: #fff3cd;
    color: #856404;
    margin-top: 0.5rem;
}

#my-profile .monitor-card .multi-location-notice-placeholder {
    visibility: hidden;
    margin-top: 0.5rem;
}

#my-profile #monitorTabs .nav-link {
    color: var(--tbb-dark-blue);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1rem;
}

#my-profile #monitorTabs .nav-link:hover {
    border-color: transparent;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

#my-profile #monitorTabs .nav-link.active {
    color: var(--tbb-red);
    border-color: transparent;
    border-bottom-color: var(--tbb-red);
    background: transparent;
}

/* =========================================================================
   Monitor Calendar Sidebar (Show Page)
   ========================================================================= */

#my-profile .calendar-chevron {
    transition: transform 0.2s ease;
}

#my-profile .legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

#my-profile .calendar-sidebar .picker__table {
    font-size: 0.85rem;
}

#my-profile .calendar-sidebar .picker__weekday {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tbb-dark-blue);
    padding: 0.5rem 0.25rem !important;
}

#my-profile .calendar-sidebar .picker__day--disabled .disabled,
#my-profile .calendar-sidebar .picker__day--today a,
#my-profile .calendar-sidebar .on-day,
#my-profile .calendar-sidebar a.has-data,
#my-profile .calendar-sidebar a.no-data {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.8rem !important;
}

/* =========================================================================
   Ping Box Selection (Create/Edit Monitor)
   ========================================================================= */

#my-profile .ping-box-option {
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

#my-profile .ping-box-option:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    border-color: var(--bs-primary) !important;
}

#my-profile .ping-box-option:has(input:checked) {
    background-color: #ced4da;
    border-color: #6c757d !important;
}

#my-profile .ping-box-option:has(input:checked) .fw-semibold {
    color: #343a40;
}

#my-profile .min-width-0 {
    min-width: 0;
}

#my-profile .acknowledge-required {
    background-color: rgba(var(--bs-danger-rgb), 0.1);
    border: 2px solid var(--bs-danger) !important;
    border-radius: 0.375rem;
    padding: 0.75rem 0.75rem 0.75rem 2.25rem;
    animation: tbb-pulse-danger 1.5s ease-in-out infinite;
}

#my-profile .acknowledge-required label {
    color: var(--bs-danger);
    font-weight: 600;
}

#my-profile .acknowledge-required .form-check-input {
    margin-left: -1.5rem;
}

@keyframes tbb-pulse-danger {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-danger-rgb), 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(var(--bs-danger-rgb), 0);
    }
}
