:root {
  --status-01: #fdab3d;
  --status-02: #00c875;
  --status-03: #df2f4a;
  --priority-01: #579bfc;
  --priority-02: #401694;
  --priority-03: #5559df;
  --zpm-le-border-color: #d0d4e4;
}

.status-01 {
  background: var(--status-01);
  color: #fff;
}

.zpm-is-resizing {
  cursor: col-resize !important;
}

.status-02 {
  background: var(--status-02);
  color: #fff;
}

.status-03 {
  background: var(--status-03);
  color: #fff;
}

.zpm-modern-table-container {
  border-radius: 10px;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
  overflow-x: auto;
  max-width: 100%;
  display: block; /* Prevent flex centering from parents */
}

.zpm-modern-table {
  width: auto;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.zpm-modern-table thead {
  background: white;
}

.zpm-modern-table th,
.zpm-modern-table td {
  /*padding: 12px 16px;*/
  padding: 0 16px;
  text-align: left;
  transition:
    background-color 0.2s,
    outline 0.2s;
  box-sizing: border-box;
}

.zpm-modern-table th {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  user-select: none;
}

/* Add sorting styles */
.zpm-modern-table th.zpm-sortable {
  cursor: pointer;
  position: relative;
  padding-right: 20px;
}

.zpm-modern-table th.zpm-sortable:hover {
  background-color: #f8f9fa;
}

.zpm-modern-table th.zpm-sortable::after {
  content: '↕';
  position: absolute;
  right: 8px;
  top: 10px;
  opacity: 0.3;
}

.zpm-modern-table th.zpm-sort-asc::after {
  content: '↑';
  opacity: 1;
}

.zpm-modern-table th.zpm-sort-desc::after {
  content: '↓';
  opacity: 1;
}

.zpm-modern-table tbody {
  border-right: 1px solid var(--zpm-le-border-color);
  border-top: 1px solid var(--zpm-le-border-color);
  border-bottom: 1px solid var(--zpm-le-border-color);
}

.zpm-modern-table tbody tr {
  border-bottom: 1px solid var(--zpm-le-border-color);
  border-left: 3px solid #0070f3;
  cursor: pointer;
}

.zpm-modern-table tbody tr[data-day='Mon'] {
  border-left-color: #0070f3 !important;
}

.zpm-modern-table tbody tr[data-day='Tue'] {
  border-left-color: #7755ee !important;
}

.zpm-modern-table tbody tr[data-day='Wed'] {
  border-left-color: #fa6969 !important;
}

.zpm-modern-table tbody tr[data-day='Thu'] {
  border-left-color: #ffad2a !important;
}

.zpm-modern-table tbody tr[data-day='Fri'] {
  border-left-color: #fadd4f !important;
}

.zpm-modern-table tbody tr[data-day='Sat'] {
  border-left-color: #2aa390 !important;
}

.zpm-modern-table tbody tr[data-day='Sun'] {
  border-left-color: #81d742 !important;
}

.zpm_task_list_row {
  border: none !important;
}

.zpm_task_project,
.zpm-task-team {
  background: rgba(255, 255, 255, 0.3);
}

/*.zpm_task_list_row[data-day="Mon"] *,*/
/*.zpm_task_list_row[data-day="Tue"] *,*/
/*.zpm_task_list_row[data-day="Wed"] *,*/
/*.zpm_task_list_row[data-day="Thu"] *,*/
/*.zpm_task_list_row[data-day="Fri"] *,*/
/*.zpm_task_list_row[data-day="Sat"] *,*/
/*.zpm_task_list_row[data-day="Sun"] * {*/
/*	color: #fff !important;*/
/*}*/

.zpm-modern-table tbody tr:last-child {
  border-bottom: none;
}

.zpm-modern-table tbody tr:hover {
  background: #eaf3ff;
}

.zpm-modern-table tbody tr.selected {
  background: #d0eaff;
}

.zpm-modern-table td {
  position: relative;
  cursor: pointer;
}

/* td:hover {
    background: #eaf3ff;
} */

.zpm-modern-table td.selected {
  background: #d0eaff;
  outline: 2px solid #0070f3;
}

.zpm-modern-table .editable {
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 14px;
  /* width: 100%; */
  outline: none;
}

[data-column='done'] {
  max-width: 50px;
  width: 50px;
  min-width: 50px;
}

th[data-column='name'] {
  width: 250px;
}

.zpm-modern-table .status-select {
  font-size: 14px;
  padding: 6px 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.zpm-modern-table .delete-btn {
  background: #228be6;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.zpm-modern-table .delete-btn:hover {
  background: #1c7ed6;
}

.zpm-modern-table .zpm-status-button {
  background-color: #e74c3c;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.zpm-modern-table .zpm-modern-dropdown {
  position: relative;
  display: inline-block;
}

.zpm-modern-table .zpm-modern-dropdown-content {
  display: none;
  background-color: white;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  border-radius: 8px;
  padding: 5px 0;
}

.zpm-modern-table .zpm-modern-dropdown-content.zpm-is-open {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.zpm-modern-table .zpm-modern-dropdown-content div {
  padding: 12px 16px;
  cursor: pointer;
  text-align: center;
}

.zpm-modern-table .zpm-modern-dropdown-content div:hover {
  background-color: #f1f1f1;
}

.zpm-modern-table .done {
  background-color: #27ae60;
  color: white;
}

.zpm-modern-table .working {
  background-color: #f39c12;
  color: white;
}

.zpm-modern-table .stuck {
  background-color: #e74c3c;
  color: white;
}

.zpm-modern-table .not-started {
  background-color: #bdc3c7;
  color: white;
}

.zpm-modern-table .status-column {
  padding: 0;
}

.zpm-modern-table .dropdown {
  width: 100%;
  height: 100%;
}

.zpm-modern-table .dropdown button {
  width: 100%;
  height: 100%;
  min-height: 52px;
}

.zpm-modern-table #dropdown-content {
  padding: 20px;
  min-width: 200px;
  flex-direction: column;
  gap: 0.5rem;
}

.zpm-modern-table .dropdown-content div {
  font-size: 13px;
  margin-bottom: 0.5rem;
}

.zephyr-theme-default #zpm_front_project_page,
.zephyr-theme-default {
  background: #fff;
}

#zpm-quick-search__container {
  display: none !important;
}

#zpm_front_project_page.zpm-theme-ultimate {
  background: #fff !important;
}

.zpm-th-label {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.zpm-modern-table td.zpm-nowrap,
.zpm-th-label {
  min-width: 0;
}

[data-column='name'] {
  min-width: 100px;
}

table.zpm-modern-table {
  border: none !important;
}

table.zpm-modern-table th {
  border: none !important;
}

.zpm-modern-table {
  --theme-table-border-color: var(--zpm-le-border-color);
  --theme-border-color: var(--zpm-le-border-color);
}

.zpm-modern-table thead,
.zpm-modern-table thead * {
  background: transparent;
}

.zpm-modern-table {
  background: #fff;
}

#zpm_task_list_container {
  box-shadow: none !important;
  background: none;
  border: none;
}

.zpm-modern-dropdown {
  position: relative;
}

.zpm-modern-table .zpm-modern-dropdown-content {
  padding: 20px;
  min-width: 250px;
}

#zpm-modern-task-table-body td {
  position: relative;
}

.zpm-modern-table-container td {
  font-size: 13px !important;
}

[zpm-modern-status-select='none'] {
  color: #333 !important;
  background: none !important;
}

#zpm_task_list_container #zpm-modern-task-table-body {
  color: #323338;
}

.zpm-concealed-link {
  text-decoration: none;
  color: #323338;
}

.zpm-concealed-link:hover {
  color: var(--zpm-primary-color);
}

.zpm-dynamic-task-filter-hide-incomplete [data-task-row]:not(.zpm-is-completed) {
  display: none !important;
}

.zpm-dynamic-task-filter-hide-completed [data-task-row].zpm-is-completed {
  display: none !important;
}

[data-show-in-multi-edit] {
  display: none;
}

.zpm-task-list--bulk-edit [data-show-in-multi-edit] {
  display: block;
}

.zpm-modern-table .zpm-modern-dropdown {
  position: absolute;
  z-index: 99;
  left: 50%;
  top: 50px;
  transform: translateX(-50%);
}

.zpm-modern-dropdown-content {
  margin-top: 10px;
  transition: all 0.12s ease !important;
}

.zpm-modern-dropdown-content.zpm-is-open {
  margin-top: 0px;
}

[zpm-modern-status-set] {
  white-space: nowrap;
}

.zpm-modern-table-container {
  margin-top: 20px;
}

.zpm-task-list-page.zephyr-theme-default #zpm_front_project_page,
.zpm-task-list-page.zephyr-theme-default {
  background: #fff !important;
}

#zpm-subtask-list > tr {
  display: none !important;
}

.zpm-filtering-row td {
  padding: 15px;
}

.zpm-modern-table th.zpm-sortable {
  user-select: none;
}
.zpm-modern-table th.zpm-sortable {
  width: 100px;
}

.zpm-modern-table th.zpm-sortable:after {
  opacity: 0;
  padding-right: 5px;
}
.zpm-modern-table th.zpm-sortable:hover:after {
  opacity: 1;
}

.zpm-column-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  z-index: 99;
}

.zpm-column-resizer:hover,
.zpm-is-resizing .zpm-column-resizer:hover {
  background-color: #0070f3;
  opacity: 0.5;
}

.zpm-modern-table th {
  position: relative;
  overflow: visible !important; /* Ensure resizer isn't clipped */
}

.zpm-modern-table th {
  position: relative;
}

.zpm-task-table th.zpm-sortable {
  cursor: pointer;
  position: relative;
  padding-right: 20px;
}

.zpm-task-table th.zpm-sortable:hover {
  background-color: #f5f5f5;
}

.zpm-sort-icon {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #999;
}

.zpm-task-table th.zpm-sort-asc .zpm-sort-icon {
  border-bottom: 5px solid var(--zpm-primary-color);
}

.zpm-task-table th.zpm-sort-desc .zpm-sort-icon {
  border-top: 5px solid var(--zpm-primary-color);
  border-bottom: none;
}

#zpm_task_list_container #zpm-modern-task-table .zpm-is-subtask,
#zpm_task_list .zpm-is-subtask {
  display: none;
}
