.timesheet-and-goal-submission {
    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 {
    margin-top: 20px;
}

/* Each form wrapper */
.timesheet-and-goal-submission 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 {
    margin-bottom: 15px;
}

.timesheet-and-goal-submission 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"],
.timesheet-and-goal-submission form input[type="number"],
.timesheet-and-goal-submission 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 {
    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"] {
    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 {
    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 {
    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,
.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;
}
