.timesheet-and-goal-submission, .mycred-ct-form-general {
    flex-basis: 100%;  
    margin-top: 15px; 
    display: block;  
}

.hmo-task-goal-form,
.hmo-task-timesheet-form {
    margin-bottom: 15px; 
}

.hmo-task-extra-forms {
    flex-basis: 100%;  
    margin-top: 15px; 
    display: block;  
}

/* Container for both forms */
.timesheet-and-goal-submission, .mycred-ct-form-general {
    margin-top: 20px;
}

/* Each form wrapper */
.timesheet-and-goal-submission form, .mycred-ct-form-general form{
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Label and input alignment */
.timesheet-and-goal-submission form p, .mycred-ct-form-general form p{
    margin-bottom: 15px;
}

.timesheet-and-goal-submission form label, .mycred-ct-form-general form label{
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
    color: #333;
}

/* Text & number inputs */
.timesheet-and-goal-submission form input[type="text"], .mycred-ct-form-general form input[type="text"]
.timesheet-and-goal-submission form input[type="number"], .mycred-ct-form-general form input[type="number"]
.timesheet-and-goal-submission form input[type="datetime-local"], .mycred-ct-form-general form input[type="datetime-local"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.timesheet-and-goal-submission form input:focus, .mycred-ct-form-general form input:focus{
    border-color: var(--bb-primary-button-border-hover); 
    box-shadow: 0 0 0 2px rgba(124,58,237,0.2);
    outline: none;
}

/* Checkbox alignment */
.timesheet-and-goal-submission form input[type="checkbox"], .mycred-ct-form-general form input[type="checkbox"]{
    margin-right: 6px;
}



.mycred-ct-datatables table{
    width:100%;
    font-size:12px;
    line-height: 12px;
}

/* .timesheet-submissions-table table{
    width:100%;
    font-size:10px;
    line-height: 12px;
} */

.mycred-ct-datatables label{
    font-size:12px;
    line-height: 12px;
}

.timesheet-submissions-table button{
    font-size:10px;
    line-height: 12px;
    padding: 5px 10px;
    margin: 5px;
}

/* .timesheet-submissions-table table.dataTable th select{
    font-size: 10px;
    padding: 2px 4px;
    max-height: 30px;
    line-height: 12px;
}

.timesheet-submissions-table th{
    padding-left: 5px;
    padding-right: 20px;
} */

.timesheet-submissions-table table.dataTable td {
    white-space: normal !important;
    word-wrap: break-word;
}

#timesheets-history_wrapper table.dataTable td {
    white-space: normal !important;
    word-wrap: break-word;
}


.mycred-timesheet-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.mycred-timesheet-form label {
    font-weight: bold;
}

.mycred-timesheet-form textarea,
.mycred-timesheet-form input[type="text"],
.mycred-timesheet-form input[type="file"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


#timesheet-timer {
    font-family: Arial, sans-serif;
    font-size: 24px;
    color: #333;
    background-color: #f0f0f0;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.unlock-text-color {
    color:orange;
}

 .goal-donation-wrapper {
    max-width:400px;
    padding:15px;
    border:1px solid #ddd;
    border-radius:10px;
    box-shadow:0 3px 8px rgba(0,0,0,0.1);
} 


.ts-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fafafa;
}
.ts-label {
    display: block;
    margin: 12px 0 6px;
    font-weight: 600;
}
.ts-input, .ts-input-file, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.ts-timer {
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0;
    color: #333;
}

/* Scope to only timesheet submissions DataTables */
/* .timesheet-submissions-table .dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
}

.timesheet-submissions-table .dataTables_scroll {
    overflow: auto;
}

.timesheet-submissions-table table.dataTable {
    width: 100% !important;
} */


.mycred-et-table-wrapper {
    overflow-x: auto !important;
    width: 100% !important;
}


/* Wrapper */
.task-permission-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: "Segoe UI", Tahoma, sans-serif;
}

/* Labels */
.task-permission-wrapper label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #444;
}

/* Task dropdown */
.task-permission-wrapper .task-select {
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 6px 10px;
    font-size: 14px;
}

/* Rows */
.user-permission-row {
    display: flex;
    gap: 15px;
    align-items: center;
    background: #fafafa;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Select2 inputs */
.reminder-modal .select2-container--default .select2-selection--multiple,
.reminder-modal .select2-container--default .select2-selection--single,
.task-permission-wrapper .select2-container--default .select2-selection--single,
.task-permission-wrapper .select2-container--default .select2-selection--multiple,
.task-reminder-form .select2-container--default .select2-selection--multiple {
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    min-height: 40px;
    padding: 4px 6px;
    font-size: 14px;
}

.reminder-modal .select2-selection__choice,
.task-reminder-form .select2-selection__choice,
.task-permission-wrapper .select2-selection__choice {
    background: var(--bb-primary-button-background-regular) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
}

/* Buttons */
.task-permission-wrapper button.button {
    border: none;
    border-radius: 6px;
    color: #fff;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}


.task-permission-wrapper button.button-primary {
    margin-left: 10px;
}


/* Multi-select container */
.reminder-modal .select2-container--default .select2-selection--multiple,
.task-reminder-form .select2-container--default .select2-selection--multiple,
.task-permission-wrapper .select2-container--default .select2-selection--multiple {
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    min-height: 42px;
    padding: 6px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: #fff;
}

/* Placeholder text */
.reminder-modal .select2-container--default .select2-search--inline .select2-search__field,
.task-reminder-form .select2-container--default .select2-search--inline .select2-search__field,
.task-permission-wrapper .select2-container--default .select2-search--inline .select2-search__field {
    color: #888;
    margin: 2px 0 !important;
    padding: 4px !important;
    font-size: 14px;
}

/* Selected option pill */
.reminder-modal .select2-container--default .select2-selection__choice,
.task-reminder-form .select2-container--default .select2-selection__choice,
.task-permission-wrapper .select2-container--default .select2-selection__choice {
    background: #f3e5f5 !important; /* light purple */
    color: var(--bb-primary-button-background-regular) !important;
    border: 1px solid #ce93d8 !important;
    border-radius: 20px !important;
    padding: 4px 22px !important;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Remove (x) button inside pills */
.reminder-modal .select2-container--default .select2-selection__choice__remove,
.task-reminder-form .select2-container--default .select2-selection__choice__remove,
.task-permission-wrapper .select2-container--default .select2-selection__choice__remove {
    color: var(--bb-primary-button-background-regular) !important;
    font-weight: bold;
    margin-right: 2px;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-top: 3px;
}

.reminder-modal .select2-container--default .select2-selection__choice__remove {
    margin-top: 9px;
}

.reminder-modal .select2-container--default .select2-selection__choice__remove:hover,
.task-reminder-form .select2-container--default .select2-selection__choice__remove:hover,
.task-permission-wrapper .select2-container--default .select2-selection__choice__remove:hover {
    color: #d32f2f !important;
}

/* Dropdown list */
.reminder-modal .select2-container--default .select2-results__option,
.task-reminder-form .select2-container--default .select2-results__option,
.task-permission-wrapper .select2-container--default .select2-results__option {
    padding: 8px 12px;
    font-size: 14px;
    border-bottom: 1px solid #f2f2f2;
}

.reminder-modal .select2-container--default .select2-results__option--highlighted,
.task-reminder-form .select2-container--default .select2-results__option--highlighted,
.task-permission-wrapper .select2-container--default .select2-results__option--highlighted {
    background: var(--bb-primary-button-background-regular) !important;
    color: #fff !important;
}

.task-permission-wrapper #task-permissions-form,  #post-permissions-form {
    margin-top: 10px;
} 

#detect-location.button, #get-location-btn {
    padding: 4px 10px;     
    font-size: 12px;     
    line-height: 1.2;
    height: auto;
    min-width: 80px;      
}

.reminder-modal .select2-container--default .select2-selection--multiple .select2-selection__choice,
.task-reminder-form .select2-container--default .select2-selection--multiple .select2-selection__choice,
.timesheet-and-goal-submission .select2-container--default .select2-selection--multiple .select2-selection__choice,
.mycred-ct-form-general .select2-container--default .select2-selection--multiple .select2-selection__choice {
    max-block-size: fit-content;
    width: fit-content;
    padding: 0px 10px 0px 20px;
}


table.existing-timesheets td {
    white-space: normal !important; 
    word-break: break-word;         
}


#all-task-permissions {
  width: 100% !important;
  table-layout: auto;
  word-wrap: break-word;
  white-space: normal;
}
#all-task-permissions td, 
#all-task-permissions th {
  white-space: normal !important;
  word-break: break-word;
  max-width: 300px; /* adjust if needed */
}

.task-budget-wrapper {
    max-width:600px;
    margin:20px auto;
}
.task-budget-progressbar {
    height:25px;
    text-align:center;
    color:#fff;
    font-size:12px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.task-budget-progressbar-wrapper {
    background:#eee;
    border-radius:6px;
    overflow:hidden;
    height:25px;
    margin-bottom:10px;
    display:flex;
}

.task-reminder-form {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.task-reminder-form p { margin-bottom: 15px; }
.task-reminder-form input:not(.ed_button),
.task-reminder-form select,
.task-reminder-form textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}


.ct-comment-tracking-wrap { margin: 18px 0; }
.ct-toolbar { display:flex; gap:12px; align-items:center; margin-bottom:8px; }
.ct-toolbar .ct-label { display:block; font-size:12px; color:#666; margin-bottom:4px; }
#ct-global-search { padding:8px 10px; border:1px solid #ddd; border-radius:4px; }
.ct-filters-row input, .ct-filters-row select { width:100%; box-sizing:border-box; padding:6px 8px; border:1px solid #eee; border-radius:4px; }
.ct-reply-btn { margin-left:8px !important; font-size:13px !important; padding:6px 8px !important; }
p.replied-by {
    margin-bottom: 8px !important;
}

 .ct-comment-table{
    line-height: 1.4 !important;
 }

 .ct-reply-block {
    margin-bottom: 10px;
}

.ct-reply-label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111;
}

.ct-reply-excerpt {
    font-size: 14px;
    color: #333;
    background: #f8f8f8;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #e2e2e2;
    line-height: 1.4;
}

.ct-reply-author {
    background: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #e2e2e2;
    font-weight: 500;
    color: #222;
    line-height: 1.4;
}





/* Modal */
.ct-modal { position:fixed; z-index:99999; top:0; left:0; right:0; bottom:0; display:flex; align-items:center; justify-content:center; }
.ct-modal-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.45); }
.ct-modal-content { position:relative; background:#fff; max-width:760px; width:100%; padding:20px; border-radius:6px; max-height:80vh; overflow:auto; box-shadow:0 6px 30px rgba(0,0,0,0.25); }
.ct-modal-close { position:absolute; right:12px; top:8px; border:0; background:transparent; font-size:15px; cursor:pointer; }
.ct-modal-actions { margin-top:12px; display:flex; gap:8px; justify-content:flex-end; }
#ct-reply-content { width:100%; min-height:140px; box-sizing:border-box; padding:10px; border:1px solid #ddd; border-radius:4px; }

.table-layout-auto {
    table-layout: auto !important;
}



#reminder-modal {
    display: none;               /* default hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size:15px;
}

#reminder-modal.active {
    display: flex;               /* show + center */
}


#reminder-modal .reminder-modal-inner {
    background: #fff;
    max-width: 650px;
    width: 100%;
    padding: 25px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 35px rgba(0,0,0,0.3);
    max-height: 85vh;
    overflow-y: auto;
}

.reminder-modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
}

#reminder-modal-view p,
#reminder-modal-edit p {
    margin-bottom: 15px;
}


#reminder-modal-edit p {
    display: flex;
    align-items: center;
    gap: 12px;
}

#reminder-modal-edit p label {
    width: 160px; /* adjust */
    margin: 0;
}

#reminder-modal-edit p input,
#reminder-modal-edit p select,
#reminder-modal-edit p .wp-editor-wrap {
    flex: 1;
}

.posts-permissions-table .ui-widget-header {
    background: none;
    border: none;
}

.posts-permissions-table .ui-icon-carat-2-n-s, .posts-permissions-table .ui-icon-triangle-1-n
.mycred-ct-datatables .ui-icon-carat-2-n-s, .mycred-ct-datatables .ui-icon-triangle-1-n {
    display:none;
}

#task-reminders-table .edit-reminder {
    margin-right: 4px;
}

.see-more-inline{
    cursor:pointer;
}

.ct-sell-assets input:not(.ed_button) {
    width:100%;
}

.download-asset {
     cursor: pointer;
    display: inline-block;
    padding: 5px;
        background-color: var(--bb-primary-button-background-regular);
    color: var(--bb-primary-button-text-regular);
    border: 1px solid var(--bb-primary-button-border-regular);
    /* border-radius: var(--bb-button-radius); */
    margin-right:2px;
        margin-bottom: 2px;
    border-radius: 2px;
}

.download-asset:hover {
         outline: none;
    text-decoration: none;
    background-color: var(--bb-primary-button-background-hover);
    color: var(--bb-primary-button-text-hover);
    border-color: var(--bb-primary-button-border-hover);

}



/* .ct-kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
} */

.ct-kanban-wrapper {
    overflow-x: auto;
    padding-bottom: 10px;
}

.ct-kanban-board {
    display: flex;
    gap: 20px;
    min-width: max-content;
}


.ct-kanban-column {
    width: 280px;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 12px;
    flex: 0 0 280px;
}

.ct-kanban-column-header {
    font-weight: 600;
    margin-bottom: 12px;
}

.ct-kanban-column-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ct-kanban-empty {
    text-align: center;
    color: #888;
    padding: 20px 0;
}

.ct-kanban-card {
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.ct-kanban-card-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.ct-kanban-badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.priority-high { background:#ffe5e5; color:#b30000; }
.priority-medium { background:#fff4e5; color:#a35d00; }
.priority-low { background:#e6f4ff; color:#0057a3; }

.ct-kanban-meta {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
}

.ct-progress-bar {
    background: #e5e5e5;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.ct-progress-bar span {
    display: block;
    height: 100%;
    background: var(--theme-primary, #6a5acd);
}

.ct-kanban-desc {
    font-size: 13px;
    color: #444;
    margin-top: 8px;
}
.ct-kanban-column {
    border-radius: 10px;
    padding: 14px;
    background: #fafafa;
    border-top: 4px solid transparent;
}

.ct-kanban-column[data-status="pending"]   { border-color: #ffb100; }
.ct-kanban-column[data-status="accepted"]  { border-color: #3498db; }
.ct-kanban-column[data-status="completed"] { border-color: #2ecc71; }
.ct-kanban-column[data-status="canceled"]  { border-color: #e74c3c; }


.ct-kanban-card {
    border: 1px solid #eee;
    transition: box-shadow .2s ease, transform .2s ease;
}

.ct-kanban-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.ct-kanban-card.status-pending   { border-left: 4px solid #ffb100; }
.ct-kanban-card.status-accepted  { border-left: 4px solid #3498db; }
.ct-kanban-card.status-completed { border-left: 4px solid #2ecc71; }
.ct-kanban-card.status-canceled  { border-left: 4px solid #e74c3c; }


.status-pending   .ct-progress-bar span { background: #ffb100; }
.status-accepted  .ct-progress-bar span { background: #3498db; }
.status-completed .ct-progress-bar span { background: #2ecc71; }
.status-canceled  .ct-progress-bar span { background: #e74c3c; }

.ct-po-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ct-stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    border-top: 4px solid transparent;
}

.ct-stat-num {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.ct-stat-label {
    font-size: 13px;
    color: #666;
}

.ct-stat-card.pending   { border-color:#ffb100; background:#fff9ec; }
.ct-stat-card.accepted  { border-color:#3498db; background:#f1f8fe; }
.ct-stat-card.completed { border-color:#2ecc71; background:#f1fcf5; }
.ct-stat-card.canceled  { border-color:#e74c3c; background:#fef1f1; }
.ct-stat-card.total     { border-color:#999; }


.ct-kanban-card-footer {
    margin-top: 12px;
    text-align: right;
}

.ct-po-view-btn {
    display: inline-block;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    color: #333;
    background: #fff;
    text-decoration: none;
    transition: all .2s ease;
}

.ct-po-view-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}


.ct-kanban-users {
    font-size: 12px;
    color: #555;
    margin-top: 8px;
}

.ct-kanban-users a {
    color: #3498db;
    text-decoration: none;
}

.ct-kanban-users a:hover {
    text-decoration: underline;
}


.ct-kanban-scroll-top {
    overflow-x: auto;
    overflow-y: hidden;
    height: 14px;
    margin-bottom: 10px;
}

.ct-kanban-scroll-inner {
    height: 1px;
}

.ct-kanban-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
}

.ct-kanban-board {
    display: flex;
    gap: 20px;
    min-width: max-content;
}
