.bptodo-task.todo-completed,
.bptodo-task.bptodo-tasktodo-completed {
    text-decoration: line-through;
    animation: strike 0.2s linear;
}

@keyframes strike {
    from {
        text-decoration-color: transparent;
    }

    to {
        text-decoration-color: auto;
    }
}

.add-todo-cat-row {
    display: none;
    margin-top: 15px;
}

.bptodo-add-todo-success {
    border: 1px solid #eeeeee;
    padding: 10px;
    padding-bottom: 0;
    background-color: #ddffd9;
    margin-bottom: 5px;
    vertical-align: middle;
}

.bptodo-add-todo-success p {
    color: #0f9200;
}


/** TODO LIST CSS **/

.bptodo-adming-setting {
    /*	float: left;*/
    width: 100%;
}

button.bptodo-item {
    background-color: #5e6c85;
    border: medium none;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    margin-bottom: 15px;
    outline: medium none;
    padding: 15px 20px;
    text-align: right;
    transition: all 0.4s ease 0s;
    width: 100%;
    font-weight: bold;
}

button.bptodo-item:hover {
    background-color: #0285ff !important;
}

div.bptodo-panel {
    padding: 0 0px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    margin: 0px 5%;
}

button.bptodo-item::after {
    color: #fff;
    content: "+";
    float: left;
    font-size: 13px;
    font-weight: bolder;
    margin-right: 5px;
}

button.bptodo-item::after:hover {
    color: #fff;
}

button.bptodo-item.active::after {
    content: "−";
    color: rgb(255, 255, 255);
}

.bptodo-admin-row {
    clear: both;
    overflow: hidden;
    padding-bottom: 5px;
}

.bptodo-item-accord {
    margin-right: 0px;
}

.bptodo-admin-row div.bptodo-panel {
    margin: 0px;
}

table.bp-todo-reminder th {
    background: #f9f9f9;
    border: none;
    text-align: right;
}

table.bp-todo-reminder th:first-child,
table.bp-todo-reminder td:first-child {
    padding-right: 10px;
}

table.bp-todo-reminder th:last-child,
table.bp-todo-reminder td:last-child {
    padding-left: 10px;
}

table.bp-todo-reminder {
    width: 100%;
    border: none;
}

table.bp-todo-reminder tbody td.bp-to-do-actions ul li {
    display: inline-block;
    margin: 4px;
}

table.bp-todo-reminder tbody td.bp-to-do-actions ul li a {
    background: #dedede;
    border-radius: 50px;
    height: 25px;
    width: 25px;
    line-height: 25px;
    display: block;
    text-align: center;
    color: #313131;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

table.bp-todo-reminder tbody td.bp-to-do-actions ul li a:hover {
    color: #fff;
    background: #2094f4;
}

table.bp-todo-reminder tbody td {
    text-align: right;
    padding: 10px;
}

.bp-todo-reminder tbody td img,
.type-bp-todo img {
    display: block;
}

td.bp-to-do-actions ul {
    margin: 0;
    padding: 0;
}

.add-todo-category span {
    margin: 0px 10px;
    padding: 0px;
    height: 26px;
    width: 26px;
    display: inline-block;
    background: url(images/plus.svg) no-repeat center center;
    background-size: 22px;
    border-radius: 100px;
    vertical-align: middle;
}

.add-todo-category span.remove-cat-icon {
    background: url(images/minus.svg) no-repeat center center;
    background-size: 22px;
}

.buddyboss-select {
    width: 50%;
}

.add-todo-cat-row input {
    width: 50%;
}

.bptodo-add-cat-empty::-webkit-input-placeholder {
    color: red;
}

.bptodo-add-todo-tbl,
.bptodo-add-todo-tbl th,
.bptodo-add-todo-tbl td {
    border: none;
    /*vertical-align: top!important;*/
}

.bptodo-add-todo-tbl {
    width: 100%;
    margin-bottom: 0px;
}

table.bptodo-add-todo-tbl tbody tr td {
    padding: 5px 0;
    display: block;
    width: 100%;
}

table.bptodo-add-todo-tbl tbody tr td:first-child {
    font-weight: 500;
}

table.bptodo-add-todo-tbl tbody tr td input[type="text"] {
    width: 100%;
}

table.bptodo-add-todo-tbl tbody tr {
    display: block;
    margin-bottom: 5px;
}

/* Fix select dropdowns text cutoff on add/edit pages */
.bptodo-form-add table.bptodo-add-todo-tbl select,
table.bptodo-add-todo-tbl select {
    min-height: 42px;
    line-height: 1.6;
    height: auto;
    padding: 10px 12px;
}

/* Ensure priority and category selects have proper height */
#bp_todo_priority,
#bp_todo_categories {
    min-height: 42px;
    line-height: 1.6;
    height: auto;
}

#bptodo-calender .buddyboss-select-inner select {
    width: 100% !important;
}

.bp-user #buddypress table a {
    color: #000 !important;
}

a:focus,
button:focus {
    outline: none !important;
}

.bptodo-form-add input[type="text"],
textarea {
    width: 100% !important;
}

#todo-category-name {
    width: 70% !important;
}

#add-todo-cat {
    width: 25% !important;
    margin: 0px 5px 0px 0px;
    padding: 10px !important;
}

/* Container styling */
.bp_todo_categories {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#bp_todo_categories {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 15px;
    padding: 10px 14px 10px 40px;
    outline: none;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23777" stroke-width="2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#bp_todo_categories:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* Add button */
.add-todo-category {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0285ff !important;
    color: #fff !important;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.add-todo-category:hover {
    background-color: #0285ff !important;
    color: #fff !important;
}

.add-todo-category i {
    font-size: 16px;
}

/*** 26/12/2017 ***/

#bptodo-todos {
    margin: 0px;
    padding: 0;
}

#bptodo-tabs {
    background: #fff;
    margin-top: 10px;
    border-radius: 0 !important;
    border: 0;
}

#bptodo-dashboard ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

#bptodo-dashboard ul li {
    width: 100%;
    font-size: 14px;
    text-align: center;
    border: 1px solid #ddd;
    background: #f9f9f9;
    display: inline-block;
    margin: 5px;
    padding: 10px;
    border-radius: 5px;
}

#bptodo-dashboard ul li p {
    margin-bottom: 5px;
}

#bptodo-dashboard * {
    box-sizing: border-box !important;
}

#bptodo-dashboard-box {
    display: flex;
    position: relative !important;
    overflow: hidden !important;
}


/* *** 05-01-2018 **
#bptodo-settings-tbl .ui-widget-content {
  background: #fff;
}

#bptodo-tabs .ui-widget-header {
  background: #fff;
  border: 0;
  border-radius: 0;
  border-bottom: 0px solid #ccc;
  margin: 0;
  padding: 0;
}

#bptodo-tabs.ui-tabs .ui-tabs-nav li {
  border-radius: 0;
  font-weight: normal;
}

#bptodo-tabs.ui-tabs .ui-tabs-nav li.ui-state-hover {
  background: #f9f9f9;
}

#bptodo-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active {
  margin-bottom: 0;
  border-radius: 0;
  font-weight: normal;
  background: #fff;
  border-bottom: 0;
}

#bptodo-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active a,
#bptodo-tabs.ui-tabs .ui-tabs-nav li a {
  font-size: 14px;
  color: #399dff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#bptodo-tabs.ui-tabs .ui-tabs-nav li img{
  width: 20px;
  height: auto;
  margin-right: 8px;
} */

.bp-todo-dashboard-at-a-glance-box h4 {
    font-size: 30px;
    margin-bottom: 10px;
}

.bptodo-light-grey {
    background-color: #fff;
    position: relative;
    border-radius: 100px !important;
    overflow: hidden;
}

.bptodo-color {
    height: 18px !important;
    width: 25%;
    border-radius: 100px !important;
    position: relative;
}

.bptodo-color:before {
    content: '';
    background-color: #06bd1c;
    /* animation: 1s ease-in-out;
  animation-fill-mode: both; */
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

.bptodo-progress-section {
    padding: 20px;
    position: relative;
    background: #f5f2ff;
    border-radius: 10px !important;
    margin: 10px 0;
}

.bptodo-light-grey>span {
    color: #fff;
    min-width: 80px;
    display: block;
    padding-right: 10px;
    font-size: 12px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.bptodo-progress-section .task-progress-task-count-wrap {
    position: relative;
    top: -5px;
    min-width: 100px;
    z-index: 1;
}

.bptodo-progress-section h5 {
    margin: 0 0 2rem;
}

.bptodo-progress-section .task-progress-task-count {
    position: relative;
    background: #5e6c85;
    border: 1px solid #5e6c85;
}

.bptodo-progress-section .task-progress-task-count {
    display: inline-block;
    text-align: center;
    font-size: 10px;
    background: #5e6c85;
    color: #fff;
    padding: 0px 10px;
    border-radius: 4px;
}

.bptodo-progress-section .task-progress-task-count::after {
    content: " ";
    position: absolute;
    top: 100%;
    /* At the bottom of the tooltip */
    right: 50%;
    margin-right: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #5e6c85 transparent transparent transparent;
}

#bptodo-task-tabs .bptodo-task-tabs-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 20px;
    padding: 10px 10px 0;
}


/* 
#bptodo-task-tabs.ui-tabs {
  border: 0;
  background: 0;
}

.ui-tabs #bptodo-dashboard.ui-tabs-bptodo-panel,
.ui-tabs #bptodo-todos.ui-tabs-bptodo-panel {
  border-width: 1px;
}

#bptodo-tabs .ui-tabs-bptodo-panel > h2 {
  padding: 0 5px;
}

#bptodo-task-tabs .ui-widget-header {
  border-bottom: 0;
}

#bptodo-task-tabs.ui-tabs .ui-tabs-nav li {
  font-size: 14px;
  border: 0px solid #3a9dfb;
  border-radius: 5px;
  background: #fff;
  font-weight: normal;
  margin-right: 10px;
} */

#bptodo-task-tabs .bptodo-task-tabs-btn {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0px;
    padding: 0px;
}

#bptodo-task-tabs .bptodo-task-tabs-btn li {
    font-size: 14px;
    border: 0px solid #3a9dfb;
    border-radius: 5px;
    background: #fff;
    font-weight: normal;
    margin-left: 10px;
}

#bptodo-task-tabs .bptodo-task-tabs-btn li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #5e6c85;
    color: #fff;
    padding: 8px 20px;
    border-radius: 100px;
    min-height: 40px;
}

#bptodo-task-tabs .bptodo-task-tabs-btn li.active a {
    background: #0285ff;
}

#bptodo-task-tabs .bptodo-task-tabs-btn li a img {
    width: 24px;
    margin-left: 5px;
}

#bptodo-task-tabs .bptodo-task-tabs-btn li a .bpdoto-count-tab {
    min-width: 22px;
    height: 22px;
    background: #fff;
    text-align: center;
    border-radius: 100px;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0285ff;
}

#bptodo-task-tabs .bptodo-task-tabs-head .all-bp-todo-list-export {
    float: left;
    background: #5e6c85;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    min-height: 40px;
}

#bptodo-task-tabs .bptodo-task-tabs-head .all-bp-todo-list-export a#export_my_tasks {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
}

#bptodo-task-tabs .bptodo-task-tabs-head .all-bp-todo-list-export .export-download,
#bptodo-task-tabs .bptodo-task-tabs-head .all-bp-todo-list-export .reload-spin {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    background: url(images/export.svg) no-repeat center center;
    background-size: cover;
}

#bptodo-task-tabs .bptodo-task-tabs-head .all-bp-todo-list-export .reload-spin {
    background: url(images/loading-white.svg) no-repeat center center;
    animation-name: reload;
    animation-duration: 2000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes reload {
    from {
        transform: rotate(-359deg);
    }

    to {
        transform: rotate(0deg);
    }
}


/* #bptodo-task-tabs.ui-tabs .ui-tabs-nav li a {
  border: 0px solid #3a9dfb;
  border-radius: 100px;
  background: #616161;
  font-weight: normal;
  color: #fff;
  transition: all 0.3s;
}

#bptodo-task-tabs.ui-tabs .ui-tabs-nav li i{
  margin-right: 5px;
}

#bptodo-task-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active {
  border: 0px solid #3a9dfb;
  border-radius: 100px;
  background: #0285ff;
  font-weight: normal;
}

#bptodo-task-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active a {
  color: #fff;
  background: #0285ff;
}

.bp_all_todo_count,
.bp_completed_todo_count,
#bptodo-task-tabs .ui-tabs-nav li a span {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  color: #0285ff;
  line-height: 17px;
  font-weight: 500;
  margin: 1px 0 0 5px;
  padding: 0 5px;
  vertical-align: top;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  font-size: 12px;
}

#bptodo-task-tabs .ui-tabs-nav li a span {
  position: relative;
  min-width: 18px;
  min-height: 18px;
} */


/*** To-do Priority css ***/

table.bp-todo-reminder tbody td.bptodo-priority {
    width: 140px;
}

.bptodo-priority .bptodo-priority-critical,
.bptodo-priority .bptodo-priority-high,
.bptodo-priority .bptodo-priority-normal {
    display: inline-block;
    width: 100%;
    max-width: 100px;
    margin: 0 auto;
    padding: 5px 5px;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    background: #f44336;
    border-radius: 100px;
    text-align: center;
}

.bptodo-priority .bptodo-priority-high {
    background: #fb8c00;
}

.bptodo-priority .bptodo-priority-normal {
    background: #4caf50;
}


/* BuddyPress Nouveau Fixes */

body.bp-nouveau.buddypress .buddypress-wrap .bptodo-adming-setting h1,
body.bp-nouveau.buddypress .buddypress-wrap .bptodo-adming-setting h2,
body.bp-nouveau.buddypress .buddypress-wrap .bptodo-adming-setting h3,
body.bp-nouveau.buddypress .buddypress-wrap .bptodo-adming-setting h4,
body.bp-nouveau.buddypress .buddypress-wrap .bptodo-adming-setting h5,
body.bp-nouveau.buddypress .buddypress-wrap .bptodo-adming-settingh6 {
    margin: 0 0 15px;
}

.bp-nouveau.buddypress .buddypress-wrap #insert-media-button {
    padding: 0 10px 1px;
}


/******** Report Table *************/
.todo-reports-wrapper {
    margin-top: 20px;
}

.select-todo-option {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.select-todo-option label {
    flex: 0 0 auto;
}

.select-todo-option select#todo-select {
    width: 100%;
}

#bp-todo-table_wrapper div#bp-todo-table_filter {
    margin-bottom: 15px;
}

#bp-todo-table_wrapper div#bp-todo-table_filter label {
    display: flex;
    align-items: center;
    gap: 5px;
}

div#bp-todo-table_wrapper div#bp-todo-table_length select {
    width: 55px;
}

.single-to-report table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin: 0 0 1rem;
    border: 1px solid #ddd;
}

.single-to-report table th,
.single-to-report table td {
    padding: 1rem;
    border: 1px solid #ddd;
    text-align: center;
}


/* Shortcode Form */

.bptodo-loggedout-user-bptodo-panel {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px !important;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0px 70px #edebeb;
}

.bptodo-loggedout-user-bptodo-panel form#loginform p {
    margin-bottom: 15px;
}

.bptodo-loggedout-user-bptodo-panel form#loginform input[type="text"],
.bptodo-loggedout-user-bptodo-panel form#loginform input[type="email"],
.bptodo-loggedout-user-bptodo-panel form#loginform input[type="password"] {
    width: 100%;
    margin-top: 5px;
}

.bptodo-loggedout-user-bptodo-panel form#loginform label {
    display: block;
}

.theme-buddysocial .bptodo-loggedout-user-bptodo-panel input#wp-submit,
.theme-varuna .bptodo-loggedout-user-bptodo-panel input#wp-submit {
    background: #333;
    border-radius: 5px;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px 20px;
}


/* Media Query */

@media only screen and (max-width: 543px) {
    .todo-detail {
        overflow-x: auto;
    }

    #bptodo-dashboard-box {
        display: block;
    }

    #bptodo-dashboard ul li {
        width: 100%;
        margin: 0;
        margin-bottom: 10px;
    }

    #bptodo-dashboard ul li:last-child {
        margin-bottom: 0;
    }

    .todo-reports-wrapper select#todo-select {
        width: 100%;
    }

    #bp-todo-table_wrapper div#bp-todo-table_filter label {
        justify-content: center;
    }
}

/* Groups To-do-List */
.groups .bptodo-form-add table.bptodo-add-todo-tbl span.select2.select2-container.select2-container--default {
    width: 100% !important;
}

.groups .bptodo-form-add .select2-container .select2-selection--multiple .select2-selection__rendered {
    margin: 0;
}

.groups .bptodo-form-add table.bptodo-add-todo-tbl .select2-container--default .select2-selection--multiple {
    padding: 0;
    border-color: #ddd;
}

.groups .bptodo-form-add .select2-container--default .select2-selection--multiple .select2-selection__choice {
    padding-right: 24px;
    border-radius: 5px !important;
}

.groups .bptodo-form-add .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-radius: 0 !important;
}

.groups .bptodo-form-add .select2-container--default .select2-selection--multiple button.select2-selection__choice__remove {
    line-height: 23px;
}

.groups .bptodo-form-add .select2-container .select2-selection--multiple .select2-selection__clear {
    color: inherit;
}

.groups .bptodo-form-add .select2-container .select2-selection--multiple .select2-selection__clear:hover {
    background: transparent;
}

.groups .bptodo-form-add .select2-container .select2-search--inline .select2-search__field {
    font-family: inherit;
    font-size: 15px;
    border: 0;
}

.select2-container.select2-container--open .select2-dropdown--below:has(#select2-todo_group_members-results) {
    margin-top: 30px;
}


/*==================
New UI
==================*/

.todo-header {
    background: #f7faff;
}

.todo-header .todo-header-head {
    display: flex;
    list-style: none;
    margin: 0px;
    padding: 0px;
    font-weight: 500;
}

.todo-header .todo-header-head .bptodo-check,
.todo-header .todo-header-head .bptodo-priority,
.todo-header .todo-header-head .bptodo-date,
.todo-header .todo-header-head .bptodo-cat,
.todo-header .todo-header-head .bptodo-task,
.todo-header .todo-header-head .bptodo-actions,
.todo-header .todo-header-head .bptodo-check,
.todo-header .todo-header-head .bptodo-priority,
.todo-header .todo-header-head .bptodo-date,
.todo-header .todo-header-head .bptodo-cat,
.todo-header .todo-header-head .bptodo-task,
.todo-header .todo-header-head .bptodo-actions,
.todo-header-list-row .bptodo-check,
.todo-header-list-row .bptodo-priority,
.todo-header-list-row .todo-completed,
.todo-header-list-row .bp-to-do-actions,
.todo-header-list-row .bptodo-date,
.todo-header-list-row .bptodo-cat,
.todo-header-list-row .bptodo-task {
    padding: 20px 10px;
    box-sizing: border-box;
}

.todo-header .todo-header-head .bptodo-check,
.todo-header-list-row .bptodo-check {
    width: 70px;
    flex-shrink: 0;
}

.todo-header .todo-header-head .bptodo-priority,
.todo-header-list-row .bptodo-priority {
    width: 120px;
    flex-shrink: 0;
}

.todo-header .todo-header-head .bptodo-date,
.todo-header-list-row .bptodo-date {
    width: 150px;
    flex-shrink: 0;
}

.todo-header-list-row .bptodo-date span,
.todo-header-list-row .bptodo-cat span.bptodo-cat-mobile-title {
    display: none;
}

.todo-header .todo-header-head .bptodo-cat,
.todo-header-list-row .bptodo-cat {
    width: 180px;
    flex-shrink: 0;
}

.todo-header .todo-header-head .bptodo-task,
.todo-header-list-row .bptodo-task {
    flex: 1;
    min-width: 0;
}

.todo-header .todo-header-head .bptodo-actions,
.todo-header-list-row .bp-to-do-actions {
    width: 140px;
    flex-shrink: 0;
    text-align: center;
}

.todo-header-list-row .bptodo-task {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure proper text wrapping in fixed-width columns */
.todo-header .todo-header-head .bptodo-priority,
.todo-header .todo-header-head .bptodo-date,
.todo-header .todo-header-head .bptodo-cat,
.todo-header-list-row .bptodo-priority,
.todo-header-list-row .bptodo-date,
.todo-header-list-row .bptodo-cat {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.todo-header-list .todo-header-list-row {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0px;
    padding: 10px 0;
    border-top: 1px #efefef solid;
    background: #fff;
}


/* .todo-header-list .todo-header-list-row:nth-child(2n){
  background: #f7faff;
} */

.todo-header-list .todo-header-list-row.completed {
    background: #f7faff;
}

.todo-header-list .todo-header-list-row.completed .bptodo-date {
    color: #30bb36;
}

.todo-header-list-row .bptodo-progress-group {
    text-align: center;
    margin-top: 10px;
    background: #5e6c85;
    padding: 5px;
    border-radius: 100px !important;
    color: #fff;
    font-size: 15px;
}

.bp-to-do-actions .bp-to-do-actions-list button.trigger {
    border: none;
    background: none;
    padding: 0px;
    color: #000;
    ;
}

.bp-to-do-actions .bp-to-do-actions-list button.trigger:hover {
    background: none;
}

.bp-to-do-actions .bp-to-do-actions-list img {
    width: 22px;
    height: auto;
}

.option-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
    position: relative;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height: 22px !important;
    width: 22px !important;
    transition: all 0.15s ease-out 0s;
    background: #dae7f9;
    border: none;
    color: #FFF;
    cursor: pointer;
    display: inline-block;
    margin-left: 0.5rem;
    outline: none;
    position: relative;
    z-index: 1;
    border-radius: 5px;
}

.option-input:hover {
    background: #cddef5;
}

.option-input:checked {
    background: #0285ff;
}

.option-input:checked::before {
    width: 22px;
    height: 22px;
    display: flex;
    content: "";
    background: url(images/check.svg) no-repeat center center;
}

.option-input:checked::after {
    background: #dae7f9;
    content: "";
    display: block;
    position: relative;
    z-index: 100;
}

.option-input.disabled,
.option-input.disabled:hover {
    background: #f5f5f5 !important;
    cursor: inherit;
}

.bp-to-do-actions-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: space-around;
    margin: 0;
    padding: 0;
}

.bptodo-expires-today,
.bptodo-expired .bptodo-date {
    color: #f51c0c;
}

#wp-bptodo-summary-input-wrap button#bptodo-summary-input-tmce,
#wp-bptodo-summary-input-wrap button#bptodo-summary-input-html {
    background: transparent;
    border-color: #ccc;
    border-radius: 0;
    color: #777;
}

#wp-bptodo-summary-input-wrap.html-active button#bptodo-summary-input-html,
#wp-bptodo-summary-input-wrap.tmce-active button#bptodo-summary-input-tmce {
    color: #000;
    background-color: #fff;
}


/*========================
widget 
=========================*/

.widget-bptodo-list-row ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
}

.widget-bptodo-list-row ul li {
    border-bottom: 1px #e3e3e3 solid;
    margin: 0 0 10px;
    padding: 0 0 10px;
}

.widget-bptodo-list-row ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0px;
    border-bottom: 0px;
}

.widget-bptodo-list-meta {
    display: flex;
    align-items: center;
    margin: 5px 0 0;
    padding: 0px;
}

.widget-bptodo-list-meta .bptodo-priority {
    margin-left: 10px;
}

.widget-bptodo-list-meta .bptodo-priority {
    min-width: 80px;
}

.widget-bptodo-list-meta span.post-date {
    opacity: 0.8;
    font-size: 13px;
}

.widget_bp_todo_member_todo .bptodo-priority .bptodo-priority-critical,
.widget_bp_todo_member_todo .bptodo-priority .bptodo-priority-high,
.widget_bp_todo_member_todo .bptodo-priority .bptodo-priority-normal {
    padding: 3px 5px;
    font-size: 13px;
    line-height: 1.3;
}


/*.modal-closed{
  opacity: 0;
  z-index: -999;
}
.modal-open{
  position: fixed;
    opacity: 1;
    z-index: 999;
    bottom: 0%;
    background: white;
    left: 36%;
    padding: 50px;
} */


/*==================
Single To DO 
==================*/

.bptodo-list-single .signle-bptodo-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 25px;
}

.bptodo-list-single .signle-bptodo-meta .single-todo-priority {
    display: inline-block;
    min-width: 100px;
    max-width: 100px;
    padding: 5px 5px;
    font-size: 14px;
    color: #fff;
    background: #4caf50;
    border-radius: 100px;
    text-align: center;
    text-transform: capitalize;
}

.bptodo-list-single .signle-bptodo-meta .single-todo-date,
.bptodo-list-single .signle-bptodo-meta .single-todo-cat {
    position: relative;
}

.bptodo-list-single .signle-bptodo-meta .single-todo-date:before,
.bptodo-list-single .signle-bptodo-meta .single-todo-cat:before {
    content: '';
    height: 5px;
    width: 5px;
    border-radius: 100px;
    background: #c3c3c3;
    position: absolute;
    right: -50%;
    top: 10px;
}


/*========================
Edit popup
========================*/

.bptodo-modal.modal {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 0vh;
    background-color: transparent;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: background-color 0.25s ease;
    z-index: 9999;
}

.bptodo-modal.modal.open {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 1;
    visibility: visible;
    transition: background-color 0.25s;
}


/* .bptodo-modal.modal.open > .content-wrapper {
  transform: scale(1);
} */

.bptodo-modal.modal .content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 500px;
    max-height: 80%;
    margin: 0;
    padding: 0;
    background-color: #fff;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 0 2.5rem rgba(0, 0, 0, 0.12);
    margin: 20px;
    /* transform: scale(0); */
    /* transition: transform 0.25s;
  transition-delay: 0.15s; */
}

.bptodo-modal .content-wrapper .close {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background-color: transparent;
    transition: 0.25s linear;
    cursor: pointer;
}

.bptodo-modal.modal .content-wrapper .close:before,
.bptodo-modal.modal .content-wrapper .close:after {
    position: absolute;
    content: "";
    width: 1.25rem;
    height: 0.125rem;
    background-color: #000;
}

.bptodo-modal.modal .content-wrapper .close:before {
    transform: rotate(-45deg);
}

.bptodo-modal.modal .content-wrapper .close:after {
    transform: rotate(-135deg);
}

.bptodo-modal.modal .content-wrapper .close:hover:before,
.bptodo-modal .content-wrapper .close:hover:after {
    background-color: #e12807;
}

.bptodo-modal .edit_form_popup {
    padding: 30px;
    width: 100%;
    overflow-y: scroll;
}

.bptodo-modal .edit_form_popup::-webkit-scrollbar {
    width: 0.5em;
}

.bptodo-modal .edit_form_popup::-webkit-scrollbar-thumb {
    background-color: #f1f0f0;
}

.bptodo-modal .wp-editor-container textarea.wp-editor-area {
    height: auto !important;
    min-height: 100px !important;
}

/* Improved Modal Form Styling */
.bptodo-modal table.bptodo-add-todo-tbl tbody tr {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.bptodo-modal table.bptodo-add-todo-tbl tbody tr td {
    padding: 0;
    display: block;
    width: 100%;
}

.bptodo-modal table.bptodo-add-todo-tbl tbody tr td:first-child {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Category field - flex layout for dropdown + button */
.bptodo-modal table.bptodo-add-todo-tbl tbody tr td > div {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Consistent styling for all form inputs */
.bptodo-modal table.bptodo-add-todo-tbl select,
.bptodo-modal table.bptodo-add-todo-tbl input[type="text"],
.bptodo-modal table.bptodo-add-todo-tbl input[type="date"],
.bptodo-modal table.bptodo-add-todo-tbl .bptodo-text-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
    min-height: 42px;
}

/* Select specific adjustments */
.bptodo-modal table.bptodo-add-todo-tbl select {
    height: auto;
    line-height: 1.6;
}

.bptodo-modal table.bptodo-add-todo-tbl select:focus,
.bptodo-modal table.bptodo-add-todo-tbl input[type="text"]:focus,
.bptodo-modal table.bptodo-add-todo-tbl input[type="date"]:focus,
.bptodo-modal table.bptodo-add-todo-tbl .bptodo-text-input:focus {
    border-color: #5897fb;
    box-shadow: 0 0 0 3px rgba(88, 151, 251, 0.1);
    outline: none;
}

/* Category dropdown specific */
.bptodo-modal table.bptodo-add-todo-tbl select#bp_todo_categories {
    flex: 1;
}

/* Add category button */
.bptodo-modal table.bptodo-add-todo-tbl .add-todo-category {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #5897fb;
    border-radius: 5px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.bptodo-modal table.bptodo-add-todo-tbl .add-todo-category:hover {
    background-color: #4179d4;
}

.bptodo-modal table.bptodo-add-todo-tbl .add-todo-category .add-cat-icon {
    width: 20px;
    height: 20px;
    position: relative;
    display: block;
}

.bptodo-modal table.bptodo-add-todo-tbl .add-todo-category .add-cat-icon:before,
.bptodo-modal table.bptodo-add-todo-tbl .add-todo-category .add-cat-icon:after {
    content: '';
    position: absolute;
    background-color: #fff;
    border-radius: 1px;
}

.bptodo-modal table.bptodo-add-todo-tbl .add-todo-category .add-cat-icon:before {
    width: 2px;
    height: 16px;
    right: 9px;
    top: 2px;
}

.bptodo-modal table.bptodo-add-todo-tbl .add-todo-category .add-cat-icon:after {
    width: 16px;
    height: 2px;
    right: 2px;
    top: 9px;
}

/* Add category row */
.bptodo-modal .add-todo-cat-row {
    display: none;
    margin-top: 10px;
    gap: 10px;
    flex-direction: row;
}

.bptodo-modal .add-todo-cat-row.show {
    display: flex;
}

.bptodo-modal .add-todo-cat-row input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.bptodo-modal .add-todo-cat-row button {
    padding: 10px 20px;
    background-color: #5897fb;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bptodo-modal .add-todo-cat-row button:hover {
    background-color: #4179d4;
}

/* WP Editor container */
.bptodo-modal .wp-editor-container {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.bptodo-modal .wp-editor-tools {
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
}

/* Submit button */
.bptodo-modal table.bptodo-add-todo-tbl input[type="submit"] {
    width: 100%;
    padding: 12px 20px;
    background-color: #5897fb;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.bptodo-modal table.bptodo-add-todo-tbl input[type="submit"]:hover {
    background-color: #4179d4;
}

.bptodo-modal table.bptodo-add-todo-tbl input[type="submit"]:active {
    transform: scale(0.98);
}

/* Last row (button row) spacing */
.bptodo-modal table.bptodo-add-todo-tbl tbody tr:last-child {
    margin-top: 10px;
    margin-bottom: 0;
}

/* Hide empty label cells in submit row */
.bptodo-modal table.bptodo-add-todo-tbl tbody tr td:first-child:empty {
    display: none;
    margin-bottom: 0;
}

/* Ensure consistent spacing for all form fields */
.bptodo-modal table.bptodo-add-todo-tbl tbody tr td:last-child {
    margin-bottom: 0;
}

.bptodo-adming-setting.bptod-category-shortcode-block {
    padding: 0px;
}

#ui-datepicker-div {
    background: #fff;
    box-shadow: 0 0 1px;
}

/* Youzify */

#youzify .youzify-group-content nav#youzify-profile-navmenu #nav-to-do-groups-li a span {
    font-size: 11px;
    min-width: 20px;
    margin-right: 5px;
    padding: 2px 5px;
    text-align: center;
    display: inline-block;
    background-color: var(--yzfy-card-secondary-bg-color);
    border-radius: var(--reign-global-border-radius);
}

#youzify .youzify-group-content #youzify-group-body nav#subnav {
    padding: 15px 20px;
    margin: 0 0 35px;
    background-color: var(--yzfy-card-bg-color);
    border-radius: 3px;
}

#youzify .youzify-group-content #youzify-group-body nav#subnav ul.subnav {
    width: 100%;
    display: table;
}

#youzify .youzify-group-content #youzify-group-body nav#subnav ul.subnav li {
    display: inline-block;
    float: right;
}

#youzify .youzify-group-content #youzify-group-body nav#subnav ul.subnav li a {
    padding: 0;
    margin: 5px 0 5px 12px;
    color: var(--yzfy-submenu-link-color);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
}

#youzify .youzify-group-content #youzify-group-body nav#subnav ul.subnav li a:before {
    background: #32A0FF;
    content: "\f044";
    width: 32px;
    height: 32px;
    font-size: var(--yzfy-big-font-size);
    line-height: 32px;
    display: block;
    border-radius: 100px;
    text-align: center;
    background: linear-gradient(to right, #24C6DC, #514A9D);
    background: -webkit-linear-gradient(left, #24C6DC, #514A9D);
    color: #fff;
    font-family: "Font Awesome 5 Free" !important;
}

#youzify .youzify-group-content #youzify-group-body nav#subnav ul.subnav li#add-groups-li a#add:before {
    content: '\f303';
    background: #FF7376;
    background: linear-gradient(to right, #fa6d9d, #ff1e6b);
    background: -webkit-linear-gradient(left, #fa6d9d, #ff1e6b);
}

#youzify .youzify-group-content #youzify-group-body nav#subnav ul.subnav li#reports-groups-li a#reports:before {
    content: '\f15b';
    background: #24cbbb;
    background: linear-gradient(to right, #45eada, #009688);
    background: -webkit-linear-gradient(left, #45eada, #009688);
}

#youzify .youzify-group-content #youzify-group-body nav#subnav ul.subnav li#overview-groups-li a#overview:before {
    content: '\f080';
    background: #9C27B0;
    background: linear-gradient(to right, #BA68C8, #7B1FA2);
    background: -webkit-linear-gradient(left, #BA68C8, #7B1FA2);
}

#youzify .youzify-group-content #youzify-group-body form#myForm.bptodo-form-add {
    padding: 20px;
    background-color: var(--yzfy-card-bg-color);
    border-radius: 3px;
}

#youzify .youzify-group-content #youzify-group-body table.bptodo-add-todo-tbl tbody tr td {
    text-align: right;
}

#youzify .youzify-group-content #youzify-group-body .bptodo-add-todo-tbl select#bp_todo_categories,
#youzify .youzify-group-content #youzify-group-body table.bptodo-add-todo-tbl .nice-select {
    width: 60%;
    border: 1px solid #e3e3e3;
    text-align: right !important;
    margin-left: 10px;
    display: inline-block !important;
}

#youzify .youzify-group-content #youzify-group-body table .bp_todo_categories .nice-select {
    display: none !important;
}

#youzify .youzify-group-content #youzify-group-body table.bptodo-add-todo-tbl span.current {
    text-align: right !important;
}

#youzify .youzify-group-content #youzify-group-body table.bptodo-add-todo-tbl .nice-select.open .list {
    width: 100%;
}

#youzify .youzify-group-content #youzify-group-body table.bptodo-add-todo-tbl tbody tr {
    border: none;
    margin-bottom: 10px;
}

#youzify .youzify-group-content #youzify-group-body table.bptodo-add-todo-tbl tbody tr td label {
    font-size: 15px;
}

#youzify .youzify-group-content #youzify-group-body form input[type=submit]#bp-add-new-todo {
    width: 40%;
    height: 48px;
}

/* Reign Theme */
.wb-reign-theme #youzify .youzify-group-content #youzify-group-body nav#subnav {
    background-color: var(--reign-site-sections-bg-color);
}

.wb-reign-theme #youzify section.bptodo-adming-setting {
    margin-bottom: 40px;
}

.wb-reign-theme #youzify #add-todo-cat {
    color: var(--reign-site-button-text-color);
}

.wb-reign-theme #youzify-group-body form input[type=submit]#bp-add-new-todo {
    color: var(--reign-site-button-text-color);
}

/* Add Nav Icons */
.buddyx-nav-iconic .groups-nav li#nav-to-do-groups-li a:before,
.wb-reign-theme #nav-to-do-groups-li a#nav-to-do::before {
    content: "\f044";
}

.buddyx-nav-iconic #todo-personal-li>a:before,
.buddyx-nav-iconic #nav-todo-groups-li>a:before,
.reign-nav-iconic #todo-personal-li>a:before,
.reign-nav-iconic #nav-todo-groups-li>a:before {
    content: "\f0ae";
}

.reign-nav-iconic #add-groups-li>a:before,
.reign-nav-iconic #add-personal-li>a:before,
.buddyx-nav-iconic #add-groups-li>a:before,
.buddyx-nav-iconic #add-personal-li>a:before {
    content: "\f044";
}

.reign-nav-iconic #list-groups-li>a:before,
.reign-nav-iconic #list-personal-li>a:before,
.buddyx-nav-iconic #list-groups-li>a:before,
.buddyx-nav-iconic #list-personal-li>a:before {
    content: "\f0ae";
}

.reign-nav-iconic #reports-groups-li>a:before,
.buddyx-nav-iconic #reports-groups-li>a:before {
    content: "\f15b";
}

.reign-nav-iconic #overview-groups-li>a:before,
.buddyx-nav-iconic #overview-groups-li>a:before {
    content: "\f080";
}

/*BuddyBoss Theme*/

body.bp-user.list.buddypress.buddyboss-theme footer.entry-footer {
    display: none !important;
}

.buddyboss-theme .todo-reports-wrapper table#bp-todo-table.dataTable thead .sorting:before,
.buddyboss-theme .todo-reports-wrapper table#bp-todo-table.dataTable thead .sorting:after {
    display: none;
}

@media only screen and (min-width: 768px) {
    #bptodo-all {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    #bptodo-all>.bptodo-admin-row {
        overflow: visible;
        padding-bottom: 0;
    }

    #bptodo-all::-webkit-scrollbar {
        height: 8px;
    }

    #bptodo-all::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
    }

    #bptodo-all::-webkit-scrollbar-thumb:hover {
        background-color: #999;
    }

    .todo-panel {
        min-width: 800px;
    }
}

@media only screen and (max-width: 768px) {
    .todo-header {
        display: none;
    }

    #buddypress .todo-header-list .todo-header-list-row,
    .todo-header-list .todo-header-list-row {
        flex-wrap: wrap;
        padding: 60px 15px 15px 15px;
        position: relative;
        border: 1px #e6e2f3 solid;
        margin-bottom: 20px;
        border-radius: 10px;
        box-shadow: inset 0 0 15px #f7faff;
    }

    .todo-header-list-row .bptodo-priority {
        position: absolute;
        top: 20px;
        right: 15px;
        padding: 0;
    }

    .todo-header-list-row .bp-to-do-actions {
        position: absolute;
        left: 0;
        top: 0;
        width: 150px;
    }

    .todo-header-list-row .bptodo-check {
        width: 32px;
        padding: 10px 0;
    }

    .todo-header-list-row .bptodo-task {
        width: calc(100% - 32px);
        order: 3;
        padding-right: 0;
        padding: 10px 0;
    }

    .todo-header-list-row .bptodo-date,
    .todo-header-list-row .bptodo-cat {
        width: 100%;
        order: 5;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .todo-header-list-row .bptodo-date span,
    .todo-header-list-row .bptodo-cat span.bptodo-cat-mobile-title {
        display: block;
        color: initial;
        font-weight: 500;
    }

    .todo-header-list-row .bptodo-cat {
        width: 100%;
        order: 6;
        padding: 10px 0px 0;
    }

    #bptodo-task-tabs .bptodo-task-tabs-btn li a {
        padding: 5px 10px;
        min-height: 36px;
    }

    #bptodo-task-tabs .bptodo-task-tabs-head .all-bp-todo-list-export {
        padding: 5px 20px;
        min-height: 36px;
    }

    .bp-to-do-actions-list {
        justify-content: flex-end;
    }

    .bp-to-do-actions-list li {
        margin-right: 10px;
    }

    .groups .todo-header-list-row .bp-to-do-actions {
        left: 0;
        bottom: 0;
        top: inherit;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-top: 1px #e6e2f3 solid;
        border-radius: 0px !important;
        padding: 10px;
    }

    .groups .todo-header-list-row .bptodo-progress-group {
        margin-top: 0px;
        padding: 5px 20px;
    }

    .groups #buddypress .todo-header-list .todo-header-list-row,
    .groups .todo-header-list .todo-header-list-row {
        padding: 60px 15px 70px 15px;
    }
}

@media only screen and (max-width: 480px) {

    #bptodo-task-tabs .bptodo-task-tabs-head,
    #bptodo-task-tabs .bptodo-task-tabs-btn {
        display: block;
    }

    #bptodo-task-tabs .bptodo-task-tabs-btn li,
    #bptodo-task-tabs .bptodo-task-tabs-head .all-bp-todo-list-export {
        margin: 0 0 10px;
    }
}
/* ========================================
   Group Task Progress Report Styles
   ======================================== */

.bptodo-group-report-wrapper {
    margin: 30px 0;
    padding: 0;
    background: transparent;
}

/* Overall Completion Stats */
.bptodo-report-overview {
    margin: 25px 0;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.bptodo-completion-summary {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.bptodo-completion-percentage {
    font-size: 2.5em;
    font-weight: 700;
    color: #0073aa;
    line-height: 1;
}

.bptodo-completion-details {
    font-size: 1em;
    color: #666;
}

/* Progress Bar */
.bptodo-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.bptodo-progress-fill {
    height: 100%;
    background: #46b450;
    transition: width 0.3s ease;
}

.bptodo-progress-text {
    display: block;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Member Progress List */
.bptodo-member-progress-list {
    margin-top: 30px;
}

.bptodo-member-list-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 20px;
    color: #333;
}

/* Member Grid - 3 Column Layout */
.bptodo-member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.bptodo-member-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.bptodo-member-item:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bptodo-member-item.status-complete .bptodo-member-avatar {
    border: 2px solid #46b450;
}

.bptodo-member-item.status-incomplete .bptodo-member-avatar {
    border: 2px solid #ff9800;
}

.bptodo-member-avatar {
    border-radius: 50%;
    flex-shrink: 0;
}

.bptodo-member-info {
    flex: 1;
    min-width: 0; /* Allow text truncation */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bptodo-member-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bptodo-member-name:hover {
    color: #0073aa;
}

.bptodo-member-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bptodo-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.bptodo-status-done {
    background: #e8f5e9;
    color: #2e7d32;
}

.bptodo-status-pending {
    background: #fff3e0;
    color: #e65100;
}

.bptodo-member-time {
    font-size: 12px;
    color: #666;
}

.bptodo-status-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Grid Responsive Breakpoints */
@media only screen and (max-width: 1024px) {
    .bptodo-member-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media only screen and (max-width: 640px) {
    .bptodo-member-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
    .bptodo-group-report-wrapper {
        padding: 20px 15px;
    }
    
    .bptodo-completion-stats {
        flex-direction: column;
    }
    
    .bptodo-stat-item {
        min-width: 100%;
    }
    
    .bptodo-member-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media only screen and (max-width: 480px) {
    .bptodo-report-title {
        font-size: 18px;
    }
    
    .bptodo-stat-number {
        font-size: 28px;
    }
    
    .bptodo-member-list-title {
        font-size: 16px;
    }
}

/* ========================================
   Group Overview View Switcher
   ======================================== */
.bptodo-view-switcher {
  display: flex;
  gap: 0;
  margin: 20px 0 30px 0;
  border-bottom: 1px solid #e5e5e5;
  background: transparent;
}

.bptodo-view-switcher .bptodo-view-btn {
  padding: 10px 20px;
  text-decoration: none;
  text-align: center;
  color: #666;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bptodo-view-switcher .bptodo-view-btn .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.bptodo-view-switcher .bptodo-view-btn:hover {
  color: #0073aa;
}

.bptodo-view-switcher .bptodo-view-btn.active {
  color: #0073aa;
  border-bottom-color: #0073aa;
  font-weight: 600;
}

/* ========================================
   Group Overview Task Cards
   ======================================== */
.bptodo-group-overview-wrapper {
  margin-top: 20px;
}

.bptodo-group-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bptodo-group-task-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid #e5e5e5;
  padding: 25px 0;
  transition: background 0.2s ease;
}

.bptodo-group-task-card:hover {
  background: #fafafa;
}

.bptodo-task-header {
  margin-bottom: 15px;
}

.bptodo-task-title {
  margin: 0 0 10px 0;
  font-size: 1.3em;
  font-weight: 600;
  line-height: 1.4;
}

.bptodo-task-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bptodo-task-title a:hover {
  color: #007cba;
}

.bptodo-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.bptodo-priority-badge,
.bptodo-due-date-badge,
.bptodo-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 500;
}

.bptodo-priority-badge .dashicons,
.bptodo-due-date-badge .dashicons,
.bptodo-category-badge .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.bptodo-priority-badge.bptodo-priority-critical {
  background: #dc3232;
  color: #fff;
}

.bptodo-priority-badge.bptodo-priority-high {
  background: #ff9800;
  color: #fff;
}

.bptodo-priority-badge.bptodo-priority-normal {
  background: #46b450;
  color: #fff;
}

.bptodo-due-date-badge {
  background: #f0f0f1;
  color: #666;
}

.bptodo-category-badge {
  background: #e5f5ff;
  color: #0073aa;
}

/* ========================================
   Task Completion Progress
   ======================================== */
.bptodo-task-completion {
  margin: 15px 0;
  padding: 0;
  background: transparent;
}

.bptodo-completion-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.bptodo-completion-text {
  font-size: 1.1em;
}

.bptodo-completion-text strong {
  font-size: 1.3em;
  color: #007cba;
}

.bptodo-completion-count {
  color: #666;
  font-size: 0.95em;
}

.bptodo-progress-bar {
  width: 100%;
  height: 25px;
  background: #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.bptodo-progress-fill {
  height: 100%;
  background: linear-gradient(-90deg, #46b450 0%, #3ea843 100%);
  border-radius: 12px;
  transition: width 0.5s ease;
  min-width: 2%;
}

/* ========================================
   Member Breakdown Section
   ======================================== */
.bptodo-member-breakdown {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e5e5e5;
}

.bptodo-toggle-members {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-bottom: 1px dashed #ccc;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 500;
  color: #0073aa;
  transition: all 0.2s ease;
  width: auto;
}

.bptodo-toggle-members:hover {
  color: #005a87;
  border-bottom-color: #005a87;
}

.bptodo-toggle-members .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.bptodo-members-list {
  margin-top: 15px;
  display: none;
}

.bptodo-member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: opacity 0.2s ease;
}

.bptodo-member-item:last-child {
  border-bottom: none;
}

.bptodo-member-item:hover {
  opacity: 0.8;
}

.bptodo-member-item img {
  border-radius: 50%;
  flex-shrink: 0;
}

.bptodo-member-name {
  flex: 1;
  font-weight: 500;
}

.bptodo-member-name a {
  color: #333;
  text-decoration: none;
}

.bptodo-member-name a:hover {
  color: #007cba;
  text-decoration: underline;
}

.bptodo-member-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9em;
  font-weight: 500;
}

.bptodo-member-item.completed .bptodo-member-status {
  color: #46b450;
}

.bptodo-member-item.incomplete .bptodo-member-status {
  color: #ff9800;
}

.bptodo-member-status .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 1;
  vertical-align: middle;
}

.bptodo-member-item.completed .dashicons {
  color: #46b450;
}

.bptodo-member-item.incomplete .dashicons {
  color: #ff9800;
}

/* ========================================
   Task Actions
   ======================================== */
.bptodo-task-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e5e5e5;
  flex-wrap: wrap;
}

.bptodo-task-actions .button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  text-decoration: none;
  font-size: 0.9em;
}

.bptodo-task-actions .button .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* ========================================
   No Tasks Message
   ======================================== */
.bptodo-no-tasks {
  text-align: center;
  padding: 40px 20px;
  background: #f9f9f9;
  border-radius: 8px;
  color: #666;
}

.bptodo-no-tasks p {
  margin: 0;
  font-size: 1.1em;
}

/* ========================================
   Responsive Design
   ======================================== */
@media screen and (max-width: 768px) {
  .bptodo-view-switcher {
    flex-direction: column;
  }

  .bptodo-view-switcher .bptodo-view-btn {
    border-bottom: 1px solid #ddd;
  }

  .bptodo-view-switcher .bptodo-view-btn.active {
    border-right: 3px solid #007cba;
    border-bottom: 1px solid #ddd;
  }

  .bptodo-task-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .bptodo-completion-stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .bptodo-task-actions {
    flex-direction: column;
  }

  .bptodo-task-actions .button {
    width: 100%;
    justify-content: center;
  }

  .bptodo-member-item {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 480px) {
  .bptodo-group-task-card {
    padding: 15px;
  }

  .bptodo-task-title {
    font-size: 1.1em;
  }

  .bptodo-task-completion {
    padding: 10px;
  }

  .bptodo-completion-text {
    font-size: 1em;
  }
}

/* ========================================
   Theme Compatibility Enhancements
   ======================================== */
.bptodo-group-overview-wrapper * {
  box-sizing: border-box;
}

.bptodo-group-task-card h3 {
  color: inherit;
}

.bptodo-task-actions .button {
  line-height: inherit;
  height: auto;
}

/* ========================================
   Single Task Report Enhancements
   ======================================== */
.bptodo-member-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0;
  transition: all 0.2s ease;
}

.bptodo-member-item:hover {
  opacity: 0.8;
}

.bptodo-member-item.status-complete .bptodo-member-avatar {
  border: 2px solid #46b450;
}

.bptodo-member-item.status-incomplete .bptodo-member-avatar {
  border: 2px solid #ff9800;
}

.bptodo-member-avatar {
  border-radius: 50%;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.bptodo-member-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bptodo-member-name {
  font-weight: 600;
  font-size: 1.05em;
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bptodo-member-name:hover {
  color: #007cba;
  text-decoration: underline;
}

.bptodo-member-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bptodo-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
}

.bptodo-status-badge .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 1;
}

.bptodo-status-badge.bptodo-status-done {
  background: #46b450;
  color: #fff;
}

.bptodo-status-badge.bptodo-status-pending {
  background: #ff9800;
  color: #fff;
}

.bptodo-member-time {
  font-size: 0.9em;
  color: #666;
  font-style: italic;
}

/* Responsive adjustments for single task report */
@media screen and (max-width: 600px) {
  .bptodo-member-item {
    flex-direction: row;
    align-items: center;
  }

  .bptodo-member-info {
    gap: 3px;
  }

  .bptodo-member-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .bptodo-member-avatar {
    width: 35px;
    height: 35px;
  }
}

/* ========================================
   Group Report Navigation
   ======================================== */
.bptodo-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e5e5;
  flex-wrap: wrap;
  gap: 15px;
}

.bptodo-report-title {
  margin: 0;
  font-size: 1.4em;
  font-weight: 600;
}

.bptodo-back-to-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  color: #0073aa;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
  border-bottom: 1px dashed transparent;
  transition: all 0.2s ease;
}

.bptodo-back-to-group:hover {
  color: #005a87;
  border-bottom-color: #005a87;
}

.bptodo-back-to-group .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

@media screen and (max-width: 600px) {
  .bptodo-report-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================================
   Member List Filters
   ======================================== */
.bptodo-member-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.bptodo-member-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bptodo-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bptodo-filter-btn:hover {
  border-color: #0073aa;
  color: #0073aa;
}

.bptodo-filter-btn.active {
  background: #0073aa;
  border-color: #0073aa;
  color: #fff;
}

.bptodo-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
}

.bptodo-filter-btn.active .bptodo-filter-count {
  background: rgba(255, 255, 255, 0.2);
}

@media screen and (max-width: 600px) {
  .bptodo-member-list-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .bptodo-member-filters {
    width: 100%;
  }

  .bptodo-filter-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ========================================
   Group Overview Page
   ======================================== */
.bptodo-overview-wrapper {
    padding: 20px 0;
}

.bptodo-overview-header {
    margin-bottom: 30px;
}

.bptodo-overview-header h3 {
    font-size: 1.6em;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
}

.bptodo-overview-description {
    color: #666;
    margin: 0;
    font-size: 1em;
}

/* Group Statistics Section */
.bptodo-group-progress-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
}

.bptodo-group-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.bptodo-stat-item {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
}

.bptodo-stat-value {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: #0073aa;
    line-height: 1;
    margin-bottom: 8px;
}

.bptodo-stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bptodo-group-progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.bptodo-group-progress-fill {
    height: 100%;
    background: linear-gradient(-90deg, #46b450 0%, #5dca63 100%);
    transition: width 0.3s ease;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .bptodo-group-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bptodo-stat-value {
        font-size: 1.6em;
    }
}

/* ========================================
   Pagination
   ======================================== */
.bptodo-pagination {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.bptodo-pagination-info {
    color: #666;
    font-size: 0.95em;
}

.bptodo-pagination-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bptodo-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.bptodo-page-btn:hover {
    background: #005a87;
    color: #fff;
}

.bptodo-page-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.bptodo-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.bptodo-page-num:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

.bptodo-page-num.active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    font-weight: 600;
}

.bptodo-page-dots {
    padding: 0 8px;
    color: #999;
}

@media screen and (max-width: 600px) {
    .bptodo-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .bptodo-pagination-info {
        text-align: center;
    }

    .bptodo-pagination-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .bptodo-page-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ========================================
   Task Selector
   ======================================== */
.bptodo-task-selector {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.bptodo-task-selector label {
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.bptodo-task-dropdown {
    flex: 1;
    min-width: 250px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    background: #fff;
    transition: border-color 0.2s ease;
}

.bptodo-task-dropdown:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

#task-selector {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#task-selector option {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width: 600px) {
    .bptodo-task-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .bptodo-task-dropdown {
        min-width: 100%;
    }
}

/* ========================================
   Admin Read-Only Mode
   ======================================== */
.bptodo-readonly-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f0f1;
    color: #646970;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    margin-right: 8px;
    font-weight: 500;
}

.bptodo-readonly-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Read-only notice for single task pages */
.bptodo-readonly-notice {
    background: #e7f3ff;
    border-right: 4px solid #0073aa;
    padding: 12px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 3px;
}

.bptodo-readonly-notice .dashicons {
    color: #0073aa;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.bptodo-readonly-notice p {
    margin: 0;
    color: #0073aa;
    font-weight: 500;
}

/* Disabled checkbox for readonly tasks */
.bptodo-check input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Prevent clicking on read-only task rows */
.bptodo-complete-todo.bptodo-readonly {
    cursor: not-allowed;
    pointer-events: none;
}

.bptodo-complete-todo.bptodo-readonly input[type="checkbox"] {
    pointer-events: auto;
}

/* Fallback for browsers that support :has() */
.bptodo-complete-todo:has(input[type="checkbox"]:disabled) {
    cursor: not-allowed;
    pointer-events: none;
}

.bptodo-complete-todo:has(input[type="checkbox"]:disabled) input[type="checkbox"] {
    pointer-events: auto;
}

@media screen and (max-width: 600px) {
    .bptodo-readonly-badge {
        display: block;
        margin-right: 0;
        margin-top: 5px;
        width: fit-content;
    }
}
