.task-center {
  position: absolute;
  top: 64px;
  right: 0;
  width: 500px;
  max-width: 500px;
  background: var(--task-bg);
  color: var(--task-text);
  border: 1px solid var(--task-border);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  display: none;
  overflow-x: hidden;

  &.visible {
    display: block;
  }

  .task-header {
    padding: 4px 10px;
    border-bottom: 1px solid var(--task-header-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--task-header-bg);

    h3 {
      font-size: 14px;
      margin: 0;
    }

    .create-task-button {
      border: none;
      color: var(--task-button-text);
      padding: 4px 12px;
      border-radius: 4px;
      cursor: pointer;
      font-weight: 500;

      &:hover {
        background-color: var(--task-button-hover-bg);
      }
    }
  }

  .task-section {
    margin: 0;
    padding: 0;
  }

  .section-title {
    padding: 0px 10px;
    margin: 0px;
    background: var(--task-section-bg);
    font-weight: 650;
    border-bottom: 1px solid var(--task-section-border);
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .task-row-container {
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .task-row {
    cursor: pointer;
    border-bottom: 1px solid var(--task-row-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    &:hover {
      background: var(--task-row-hover-bg);
    }

    .task-title-cell {
      flex: 1;
      padding: 6px 8px;
      vertical-align: top;
      line-height: 1.2;
      max-width: 350px;

      .task-title {
        font-size: 16px;
        font-weight: 550;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: inline-block;
        vertical-align: middle;
      }

      .task-ro-number {
        margin-top: 20px;
        color: var(--task-ro-number);
      }
    }

    .task-due-cell {
      padding: 6px 8px;
      vertical-align: top;
      line-height: 1.2;
      text-align: right;
      white-space: nowrap;
      color: var(--task-due-text);
    }
  }

  button {
    margin: 8px auto;
    padding: 4px 10px;
    background-color: var(--task-button-bg);
    color: var(--task-button-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;

    &:hover {
      background-color: var(--task-button-hover-bg);
    }

    &:disabled {
      background-color: var(--task-button-disabled-bg);
      cursor: not-allowed;
    }
  }

  .no-tasks-message,
  .error-message {
    padding: 16px;
    text-align: center;
    color: var(--task-message-text);
  }

  .loading-footer {
    padding: 16px;
    text-align: center;
  }
}

.task-center--dark {
  color-scheme: dark;
}

.task-center--light {
  color-scheme: light;
}
